@moderneinc/react-charts 1.2.0-next.2f2ee2 → 1.2.0-next.313329

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,42 +1,42 @@
1
- "use strict";var RM=Object.defineProperty;var DM=(e,t,r)=>t in e?RM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var so=(e,t,r)=>DM(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("react/jsx-runtime"),V=require("@mui/material"),O=require("react"),uA=require("@mui/icons-material");function IM(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Tr=IM(O);function NM(e){return e}var Rc=1,Dc=2,ym=3,Oo=4,rb=1e-6;function LM(e){return"translate("+e+",0)"}function BM(e){return"translate(0,"+e+")"}function qM(e){return t=>+e(t)}function FM(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function zM(){return!this.__axis}function lA(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,l=e===Rc||e===Oo?-1:1,c=e===Oo||e===Dc?"x":"y",f=e===Rc||e===ym?LM:BM;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):NM),d=Math.max(a,0)+s,g=t.range(),_=+g[0]+u,b=+g[g.length-1]+u,x=(t.bandwidth?FM:qM)(t.copy(),u),v=p.selection?p.selection():p,w=v.selectAll(".domain").data([null]),S=v.selectAll(".tick").data(y,t).order(),A=S.exit(),P=S.enter().append("g").attr("class","tick"),C=S.select("line"),T=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(P),C=C.merge(P.append("line").attr("stroke","currentColor").attr(c+"2",l*a)),T=T.merge(P.append("text").attr("fill","currentColor").attr(c,l*d).attr("dy",e===Rc?"0em":e===ym?"0.71em":"0.32em")),p!==v&&(w=w.transition(p),S=S.transition(p),C=C.transition(p),T=T.transition(p),A=A.transition(p).attr("opacity",rb).attr("transform",function(E){return isFinite(E=x(E))?f(E+u):this.getAttribute("transform")}),P.attr("opacity",rb).attr("transform",function(E){var M=this.parentNode.__axis;return f((M&&isFinite(M=M(E))?M:x(E))+u)})),A.remove(),w.attr("d",e===Oo||e===Dc?o?"M"+l*o+","+_+"H"+u+"V"+b+"H"+l*o:"M"+u+","+_+"V"+b:o?"M"+_+","+l*o+"V"+u+"H"+b+"V"+l*o:"M"+_+","+u+"H"+b),S.attr("opacity",1).attr("transform",function(E){return f(x(E)+u)}),C.attr(c+"2",l*a),T.attr(c,l*d).text(m),v.filter(zM).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Dc?"start":e===Oo?"end":"middle"),v.each(function(){this.__axis=x})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(u=+p,h):u},h}function Ko(e){return lA(ym,e)}function Yo(e){return lA(Oo,e)}var UM={value:()=>{}};function vv(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new Au(r)}function Au(e){this._=e}function WM(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}Au.prototype=vv.prototype={constructor:Au,on:function(e,t){var r=this._,n=WM(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=GM(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=nb(r[i],e.name,t);else if(t==null)for(i in r)r[i]=nb(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Au(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function GM(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function nb(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=UM,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var vm="http://www.w3.org/1999/xhtml";const ib={svg:"http://www.w3.org/2000/svg",xhtml:vm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Wl(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),ib.hasOwnProperty(t)?{space:ib[t],local:e}:e}function HM(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===vm&&t.documentElement.namespaceURI===vm?t.createElement(e):t.createElementNS(r,e)}}function KM(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function cA(e){var t=Wl(e);return(t.local?KM:HM)(t)}function YM(){}function gv(e){return e==null?YM:function(){return this.querySelector(e)}}function XM(e){typeof e!="function"&&(e=gv(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),u,l,c=0;c<o;++c)(u=a[c])&&(l=e.call(u,u.__data__,c,a))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new dr(n,this._parents)}function VM(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function ZM(){return[]}function fA(e){return e==null?ZM:function(){return this.querySelectorAll(e)}}function JM(e){return function(){return VM(e.apply(this,arguments))}}function QM(e){typeof e=="function"?e=JM(e):e=fA(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&(n.push(e.call(u,u.__data__,l,o)),i.push(u));return new dr(n,i)}function hA(e){return function(){return this.matches(e)}}function pA(e){return function(t){return t.matches(e)}}var tk=Array.prototype.find;function ek(e){return function(){return tk.call(this.children,e)}}function rk(){return this.firstElementChild}function nk(e){return this.select(e==null?rk:ek(typeof e=="function"?e:pA(e)))}var ik=Array.prototype.filter;function ak(){return Array.from(this.children)}function ok(e){return function(){return ik.call(this.children,e)}}function sk(e){return this.selectAll(e==null?ak:ok(typeof e=="function"?e:pA(e)))}function uk(e){typeof e!="function"&&(e=hA(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new dr(n,this._parents)}function dA(e){return new Array(e.length)}function lk(){return new dr(this._enter||this._groups.map(dA),this._parents)}function $u(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$u.prototype={constructor:$u,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 ck(e){return function(){return e}}function fk(e,t,r,n,i,a){for(var o=0,s,u=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new $u(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function hk(e,t,r,n,i,a,o){var s,u,l=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(u=t[s])&&(h[s]=p=o.call(u,u.__data__,s,t)+"",l.has(p)?i[s]=u:l.set(p,u));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(u=l.get(p))?(n[s]=u,u.__data__=a[s],l.delete(p)):r[s]=new $u(e,a[s]);for(s=0;s<c;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function pk(e){return e.__data__}function dk(e,t){if(!arguments.length)return Array.from(this,pk);var r=t?hk:fk,n=this._parents,i=this._groups;typeof e!="function"&&(e=ck(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var c=n[l],f=i[l],h=f.length,p=mk(e.call(c,c&&c.__data__,l,n)),y=p.length,m=s[l]=new Array(y),d=o[l]=new Array(y),g=u[l]=new Array(h);r(c,f,m,d,g,p,t);for(var _=0,b=0,x,v;_<y;++_)if(x=m[_]){for(_>=b&&(b=_+1);!(v=d[b])&&++b<y;);x._next=v||null}}return o=new dr(o,n),o._enter=s,o._exit=u,o}function mk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function yk(){return new dr(this._exit||this._groups.map(dA),this._parents)}function vk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function gk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var l=r[u],c=n[u],f=l.length,h=s[u]=new Array(f),p,y=0;y<f;++y)(p=l[y]||c[y])&&(h[y]=p);for(;u<i;++u)s[u]=r[u];return new dr(s,this._parents)}function bk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function _k(e){e||(e=xk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,u=i[a]=new Array(s),l,c=0;c<s;++c)(l=o[c])&&(u[c]=l);u.sort(t)}return new dr(i,this._parents).order()}function xk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wk(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Sk(){return Array.from(this)}function Ok(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function Ak(){let e=0;for(const t of this)++e;return e}function Pk(){return!this.node()}function Tk(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Ek(e){return function(){this.removeAttribute(e)}}function Ck(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mk(e,t){return function(){this.setAttribute(e,t)}}function kk(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $k(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function jk(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Rk(e,t){var r=Wl(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?Ck:Ek:typeof t=="function"?r.local?jk:$k:r.local?kk:Mk)(r,t))}function mA(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Dk(e){return function(){this.style.removeProperty(e)}}function Ik(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Nk(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function Lk(e,t,r){return arguments.length>1?this.each((t==null?Dk:typeof t=="function"?Nk:Ik)(e,t,r??"")):da(this.node(),e)}function da(e,t){return e.style.getPropertyValue(t)||mA(e).getComputedStyle(e,null).getPropertyValue(t)}function Bk(e){return function(){delete this[e]}}function qk(e,t){return function(){this[e]=t}}function Fk(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function zk(e,t){return arguments.length>1?this.each((t==null?Bk:typeof t=="function"?Fk:qk)(e,t)):this.node()[e]}function yA(e){return e.trim().split(/^|\s+/)}function bv(e){return e.classList||new vA(e)}function vA(e){this._node=e,this._names=yA(e.getAttribute("class")||"")}vA.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 gA(e,t){for(var r=bv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function bA(e,t){for(var r=bv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function Uk(e){return function(){gA(this,e)}}function Wk(e){return function(){bA(this,e)}}function Gk(e,t){return function(){(t.apply(this,arguments)?gA:bA)(this,e)}}function Hk(e,t){var r=yA(e+"");if(arguments.length<2){for(var n=bv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?Gk:t?Uk:Wk)(r,t))}function Kk(){this.textContent=""}function Yk(e){return function(){this.textContent=e}}function Xk(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Vk(e){return arguments.length?this.each(e==null?Kk:(typeof e=="function"?Xk:Yk)(e)):this.node().textContent}function Zk(){this.innerHTML=""}function Jk(e){return function(){this.innerHTML=e}}function Qk(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function t$(e){return arguments.length?this.each(e==null?Zk:(typeof e=="function"?Qk:Jk)(e)):this.node().innerHTML}function e$(){this.nextSibling&&this.parentNode.appendChild(this)}function r$(){return this.each(e$)}function n$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function i$(){return this.each(n$)}function a$(e){var t=typeof e=="function"?e:cA(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function o$(){return null}function s$(e,t){var r=typeof e=="function"?e:cA(e),n=t==null?o$:typeof t=="function"?t:gv(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function u$(){var e=this.parentNode;e&&e.removeChild(this)}function l$(){return this.each(u$)}function c$(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function f$(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function h$(e){return this.select(e?f$:c$)}function p$(e){return arguments.length?this.property("__data__",e):this.node().__data__}function d$(e){return function(t){e.call(this,t,this.__data__)}}function m$(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function y$(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function v$(e,t,r){return function(){var n=this.__on,i,a=d$(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function g$(e,t,r){var n=m$(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?v$:y$,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function _A(e,t,r){var n=mA(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function b$(e,t){return function(){return _A(this,e,t)}}function _$(e,t){return function(){return _A(this,e,t.apply(this,arguments))}}function x$(e,t){return this.each((typeof t=="function"?_$:b$)(e,t))}function*w$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var xA=[null];function dr(e,t){this._groups=e,this._parents=t}function Xa(){return new dr([[document.documentElement]],xA)}function S$(){return this}dr.prototype=Xa.prototype={constructor:dr,select:XM,selectAll:QM,selectChild:nk,selectChildren:sk,filter:uk,data:dk,enter:lk,exit:yk,join:vk,merge:gk,selection:S$,order:bk,sort:_k,call:wk,nodes:Sk,node:Ok,size:Ak,empty:Pk,each:Tk,attr:Rk,style:Lk,property:zk,classed:Hk,text:Vk,html:t$,raise:r$,lower:i$,append:a$,insert:s$,remove:l$,clone:h$,datum:p$,on:g$,dispatch:x$,[Symbol.iterator]:w$};function ee(e){return typeof e=="string"?new dr([[document.querySelector(e)]],[document.documentElement]):new dr([[e]],xA)}function O$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Xo(e,t){if(e=O$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const gm={capture:!0,passive:!1};function bm(e){e.preventDefault(),e.stopImmediatePropagation()}function A$(e){var t=e.document.documentElement,r=ee(e).on("dragstart.drag",bm,gm);"onselectstart"in t?r.on("selectstart.drag",bm,gm):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function P$(e,t){var r=e.document.documentElement,n=ee(e).on("dragstart.drag",null);t&&(n.on("click.drag",bm,gm),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function _v(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wA(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function qs(){}var Vo=.7,ju=1/Vo,aa="\\s*([+-]?\\d+)\\s*",Zo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",T$=/^#([0-9a-f]{3,8})$/,E$=new RegExp(`^rgb\\(${aa},${aa},${aa}\\)$`),C$=new RegExp(`^rgb\\(${Qr},${Qr},${Qr}\\)$`),M$=new RegExp(`^rgba\\(${aa},${aa},${aa},${Zo}\\)$`),k$=new RegExp(`^rgba\\(${Qr},${Qr},${Qr},${Zo}\\)$`),$$=new RegExp(`^hsl\\(${Zo},${Qr},${Qr}\\)$`),j$=new RegExp(`^hsla\\(${Zo},${Qr},${Qr},${Zo}\\)$`),ab={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};_v(qs,Ei,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ob,formatHex:ob,formatHex8:R$,formatHsl:D$,formatRgb:sb,toString:sb});function ob(){return this.rgb().formatHex()}function R$(){return this.rgb().formatHex8()}function D$(){return SA(this).formatHsl()}function sb(){return this.rgb().formatRgb()}function Ei(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=T$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ub(t):r===3?new He(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?nu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?nu(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=E$.exec(e))?new He(t[1],t[2],t[3],1):(t=C$.exec(e))?new He(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=M$.exec(e))?nu(t[1],t[2],t[3],t[4]):(t=k$.exec(e))?nu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$$.exec(e))?fb(t[1],t[2]/100,t[3]/100,1):(t=j$.exec(e))?fb(t[1],t[2]/100,t[3]/100,t[4]):ab.hasOwnProperty(e)?ub(ab[e]):e==="transparent"?new He(NaN,NaN,NaN,0):null}function ub(e){return new He(e>>16&255,e>>8&255,e&255,1)}function nu(e,t,r,n){return n<=0&&(e=t=r=NaN),new He(e,t,r,n)}function I$(e){return e instanceof qs||(e=Ei(e)),e?(e=e.rgb(),new He(e.r,e.g,e.b,e.opacity)):new He}function _m(e,t,r,n){return arguments.length===1?I$(e):new He(e,t,r,n??1)}function He(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}_v(He,_m,wA(qs,{brighter(e){return e=e==null?ju:Math.pow(ju,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vo:Math.pow(Vo,e),new He(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new He(_i(this.r),_i(this.g),_i(this.b),Ru(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:lb,formatHex:lb,formatHex8:N$,formatRgb:cb,toString:cb}));function lb(){return`#${fi(this.r)}${fi(this.g)}${fi(this.b)}`}function N$(){return`#${fi(this.r)}${fi(this.g)}${fi(this.b)}${fi((isNaN(this.opacity)?1:this.opacity)*255)}`}function cb(){const e=Ru(this.opacity);return`${e===1?"rgb(":"rgba("}${_i(this.r)}, ${_i(this.g)}, ${_i(this.b)}${e===1?")":`, ${e})`}`}function Ru(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _i(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fi(e){return e=_i(e),(e<16?"0":"")+e.toString(16)}function fb(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,n)}function SA(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof qs||(e=Ei(e)),!e)return new Nr;if(e instanceof Nr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new Nr(o,s,u,e.opacity)}function L$(e,t,r,n){return arguments.length===1?SA(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}_v(Nr,L$,wA(qs,{brighter(e){return e=e==null?ju:Math.pow(ju,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vo:Math.pow(Vo,e),new Nr(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new He(Ic(e>=240?e-240:e+120,i,n),Ic(e,i,n),Ic(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Nr(hb(this.h),iu(this.s),iu(this.l),Ru(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=Ru(this.opacity);return`${e===1?"hsl(":"hsla("}${hb(this.h)}, ${iu(this.s)*100}%, ${iu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hb(e){return e=(e||0)%360,e<0?e+360:e}function iu(e){return Math.max(0,Math.min(1,e||0))}function Ic(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const xv=e=>()=>e;function B$(e,t){return function(r){return e+r*t}}function q$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function F$(e){return(e=+e)==1?OA:function(t,r){return r-t?q$(t,r,e):xv(isNaN(t)?r:t)}}function OA(e,t){var r=t-e;return r?B$(e,r):xv(isNaN(e)?t:e)}const Du=(function e(t){var r=F$(t);function n(i,a){var o=r((i=_m(i)).r,(a=_m(a)).r),s=r(i.g,a.g),u=r(i.b,a.b),l=OA(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return n.gamma=e,n})(1);function z$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function U$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function W$(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=Ni(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function G$(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ir(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function H$(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=Ni(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var xm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nc=new RegExp(xm.source,"g");function K$(e){return function(){return e}}function Y$(e){return function(t){return e(t)+""}}function AA(e,t){var r=xm.lastIndex=Nc.lastIndex=0,n,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(n=xm.exec(e))&&(i=Nc.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ir(n,i)})),r=Nc.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Y$(u[0].x):K$(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function Ni(e,t){var r=typeof t,n;return t==null||r==="boolean"?xv(t):(r==="number"?Ir:r==="string"?(n=Ei(t))?(t=n,Du):AA:t instanceof Ei?Du:t instanceof Date?G$:U$(t)?z$:Array.isArray(t)?W$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?H$:Ir)(e,t)}function wv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var pb=180/Math.PI,wm={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function PA(e,t,r,n,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n<t*r&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*pb,skewX:Math.atan(u)*pb,scaleX:o,scaleY:s}}var au;function X$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?wm:PA(t.a,t.b,t.c,t.d,t.e,t.f)}function V$(e){return e==null||(au||(au=document.createElementNS("http://www.w3.org/2000/svg","g")),au.setAttribute("transform",e),!(e=au.transform.baseVal.consolidate()))?wm:(e=e.matrix,PA(e.a,e.b,e.c,e.d,e.e,e.f))}function TA(e,t,r,n){function i(l){return l.length?l.pop()+" ":""}function a(l,c,f,h,p,y){if(l!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Ir(l,f)},{i:m-2,x:Ir(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Ir(l,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Ir(l,c)}):c&&f.push(i(f)+"skewX("+c+n)}function u(l,c,f,h,p,y){if(l!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Ir(l,f)},{i:m-2,x:Ir(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),a(l.translateX,l.translateY,c.translateX,c.translateY,f,h),o(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var Z$=TA(X$,"px, ","px)","deg)"),J$=TA(V$,", ",")",")");function Q$(e,t){t===void 0&&(t=e,e=Ni);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var ma=0,Ao=0,uo=0,EA=1e3,Iu,Po,Nu=0,Ci=0,Gl=0,Jo=typeof performance=="object"&&performance.now?performance:Date,CA=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Sv(){return Ci||(CA(tj),Ci=Jo.now()+Gl)}function tj(){Ci=0}function Lu(){this._call=this._time=this._next=null}Lu.prototype=MA.prototype={constructor:Lu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Sv():+r)+(t==null?0:+t),!this._next&&Po!==this&&(Po?Po._next=this:Iu=this,Po=this),this._call=e,this._time=r,Sm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sm())}};function MA(e,t,r){var n=new Lu;return n.restart(e,t,r),n}function ej(){Sv(),++ma;for(var e=Iu,t;e;)(t=Ci-e._time)>=0&&e._call.call(void 0,t),e=e._next;--ma}function db(){Ci=(Nu=Jo.now())+Gl,ma=Ao=0;try{ej()}finally{ma=0,nj(),Ci=0}}function rj(){var e=Jo.now(),t=e-Nu;t>EA&&(Gl-=t,Nu=e)}function nj(){for(var e,t=Iu,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:Iu=r);Po=e,Sm(n)}function Sm(e){if(!ma){Ao&&(Ao=clearTimeout(Ao));var t=e-Ci;t>24?(e<1/0&&(Ao=setTimeout(db,e-Jo.now()-Gl)),uo&&(uo=clearInterval(uo))):(uo||(Nu=Jo.now(),uo=setInterval(rj,EA)),ma=1,CA(db))}}function mb(e,t,r){var n=new Lu;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var ij=vv("start","end","cancel","interrupt"),aj=[],kA=0,yb=1,Om=2,Pu=3,vb=4,Am=5,Tu=6;function Hl(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;oj(e,r,{name:t,index:n,group:i,on:ij,tween:aj,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:kA})}function Ov(e,t){var r=qr(e,t);if(r.state>kA)throw new Error("too late; already scheduled");return r}function an(e,t){var r=qr(e,t);if(r.state>Pu)throw new Error("too late; already running");return r}function qr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function oj(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=MA(a,0,r.time);function a(l){r.state=yb,r.timer.restart(o,r.delay,r.time),r.delay<=l&&o(l-r.delay)}function o(l){var c,f,h,p;if(r.state!==yb)return u();for(c in n)if(p=n[c],p.name===r.name){if(p.state===Pu)return mb(o);p.state===vb?(p.state=Tu,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=Tu,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(mb(function(){r.state===Pu&&(r.state=vb,r.timer.restart(s,r.delay,r.time),s(l))}),r.state=Om,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Om){for(r.state=Pu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(l){for(var c=l<r.duration?r.ease.call(null,l/r.duration):(r.timer.restart(u),r.state=Am,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===Am&&(r.on.call("end",e,e.__data__,r.index,r.group),u())}function u(){r.state=Tu,r.timer.stop(),delete n[t];for(var l in n)return;delete e.__transition}}function Pm(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>Om&&n.state<Am,n.state=Tu,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function sj(e){return this.each(function(){Pm(this,e)})}function uj(e,t){var r,n;return function(){var i=an(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function lj(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=an(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}a.tween=i}}function cj(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=qr(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?uj:lj)(r,e,t))}function Av(e,t,r){var n=e._id;return e.each(function(){var i=an(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return qr(i,n).value[t]}}function $A(e,t){var r;return(typeof t=="number"?Ir:t instanceof Ei?Du:(r=Ei(t))?(t=r,Du):AA)(e,t)}function fj(e){return function(){this.removeAttribute(e)}}function hj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function pj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function dj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function mj(e,t,r){var n,i,a;return function(){var o,s=r(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s)))}}function yj(e,t,r){var n,i,a;return function(){var o,s=r(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s)))}}function vj(e,t){var r=Wl(e),n=r==="transform"?J$:$A;return this.attrTween(e,typeof t=="function"?(r.local?yj:mj)(r,n,Av(this,"attr."+e,t)):t==null?(r.local?hj:fj)(r):(r.local?dj:pj)(r,n,t))}function gj(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function bj(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function _j(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&bj(e,a)),r}return i._value=t,i}function xj(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&gj(e,a)),r}return i._value=t,i}function wj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=Wl(e);return this.tween(r,(n.local?_j:xj)(n,t))}function Sj(e,t){return function(){Ov(this,e).delay=+t.apply(this,arguments)}}function Oj(e,t){return t=+t,function(){Ov(this,e).delay=t}}function Aj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Sj:Oj)(t,e)):qr(this.node(),t).delay}function Pj(e,t){return function(){an(this,e).duration=+t.apply(this,arguments)}}function Tj(e,t){return t=+t,function(){an(this,e).duration=t}}function Ej(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Pj:Tj)(t,e)):qr(this.node(),t).duration}function Cj(e,t){if(typeof t!="function")throw new Error;return function(){an(this,e).ease=t}}function Mj(e){var t=this._id;return arguments.length?this.each(Cj(t,e)):qr(this.node(),t).ease}function kj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;an(this,e).ease=r}}function $j(e){if(typeof e!="function")throw new Error;return this.each(kj(this._id,e))}function jj(e){typeof e!="function"&&(e=hA(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],u,l=0;l<o;++l)(u=a[l])&&e.call(u,u.__data__,l,a)&&s.push(u);return new wn(n,this._parents,this._name,this._id)}function Rj(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var u=t[s],l=r[s],c=u.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=u[p]||l[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new wn(o,this._parents,this._name,this._id)}function Dj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function Ij(e,t,r){var n,i,a=Dj(t)?Ov:an;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function Nj(e,t){var r=this._id;return arguments.length<2?qr(this.node(),r).on.on(e):this.each(Ij(r,e,t))}function Lj(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Bj(){return this.on("end.remove",Lj(this._id))}function qj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=gv(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],u=s.length,l=a[o]=new Array(u),c,f,h=0;h<u;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),l[h]=f,Hl(l[h],t,r,h,l,qr(c,r)));return new wn(a,this._parents,t,r)}function Fj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=fA(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var u=n[s],l=u.length,c,f=0;f<l;++f)if(c=u[f]){for(var h=e.call(c,c.__data__,f,u),p,y=qr(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Hl(p,t,r,m,h,y);a.push(h),o.push(c)}return new wn(a,o,t,r)}var zj=Xa.prototype.constructor;function Uj(){return new zj(this._groups,this._parents)}function Wj(e,t){var r,n,i;return function(){var a=da(this,e),o=(this.style.removeProperty(e),da(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function jA(e){return function(){this.style.removeProperty(e)}}function Gj(e,t,r){var n,i=r+"",a;return function(){var o=da(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function Hj(e,t,r){var n,i,a;return function(){var o=da(this,e),s=r(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),da(this,e))),o===u?null:o===n&&u===i?a:(i=u,a=t(n=o,s))}}function Kj(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var u=an(this,e),l=u.on,c=u.value[a]==null?s||(s=jA(t)):void 0;(l!==r||i!==c)&&(n=(r=l).copy()).on(o,i=c),u.on=n}}function Yj(e,t,r){var n=(e+="")=="transform"?Z$:$A;return t==null?this.styleTween(e,Wj(e,n)).on("end.style."+e,jA(e)):typeof t=="function"?this.styleTween(e,Hj(e,n,Av(this,"style."+e,t))).each(Kj(this._id,e)):this.styleTween(e,Gj(e,n,t),r).on("end.style."+e,null)}function Xj(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Vj(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Xj(e,o,r)),n}return a._value=t,a}function Zj(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Vj(e,t,r??""))}function Jj(e){return function(){this.textContent=e}}function Qj(e){return function(){var t=e(this);this.textContent=t??""}}function t2(e){return this.tween("text",typeof e=="function"?Qj(Av(this,"text",e)):Jj(e==null?"":e+""))}function e2(e){return function(t){this.textContent=e.call(this,t)}}function r2(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&e2(i)),t}return n._value=e,n}function n2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,r2(e))}function i2(){for(var e=this._name,t=this._id,r=RA(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,u,l=0;l<s;++l)if(u=o[l]){var c=qr(u,t);Hl(u,e,r,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new wn(n,this._parents,e,r)}function a2(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};r.each(function(){var l=an(this,n),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t}),i===0&&a()})}var o2=0;function wn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function Pv(e){return Xa().transition(e)}function RA(){return++o2}var cn=Xa.prototype;wn.prototype=Pv.prototype={constructor:wn,select:qj,selectAll:Fj,selectChild:cn.selectChild,selectChildren:cn.selectChildren,filter:jj,merge:Rj,selection:Uj,transition:i2,call:cn.call,nodes:cn.nodes,node:cn.node,size:cn.size,empty:cn.empty,each:cn.each,on:Nj,attr:vj,attrTween:wj,style:Yj,styleTween:Zj,text:t2,textTween:n2,remove:Bj,tween:cj,delay:Aj,duration:Ej,ease:Mj,easeVarying:$j,end:a2,[Symbol.iterator]:cn[Symbol.iterator]};function s2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var u2={time:null,delay:0,duration:250,ease:s2};function l2(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function c2(e){var t,r;e instanceof wn?(t=e._id,e=e._name):(t=RA(),(r=u2).time=Sv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,u,l=0;l<s;++l)(u=o[l])&&Hl(u,e,t,l,o,r||l2(u,t));return new wn(n,this._parents,e,t)}Xa.prototype.interrupt=sj;Xa.prototype.transition=c2;const Lc=e=>()=>e;function f2(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function h2(e){e.stopImmediatePropagation()}function Bc(e){e.preventDefault(),e.stopImmediatePropagation()}var gb={name:"drag"},qc={name:"space"},Hi={name:"handle"},Ki={name:"center"};const{abs:bb,max:ke,min:$e}=Math;function _b(e){return[+e[0],+e[1]]}function xb(e){return[_b(e[0]),_b(e[1])]}var Eu={name:"x",handles:["w","e"].map(Tm),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Fc={},fn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},wb={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Sb={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},p2={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},d2={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Tm(e){return{type:e}}function m2(e){return!e.ctrlKey&&!e.button}function y2(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function v2(){return navigator.maxTouchPoints||"ontouchstart"in this}function zc(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function g2(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Kl(){return b2(Eu)}function b2(e){var t=y2,r=m2,n=v2,i=!0,a=vv("start","brush","end"),o=6,s;function u(d){var g=d.property("__brush",m).selectAll(".overlay").data([Tm("overlay")]);g.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fn.overlay).merge(g).each(function(){var b=zc(this).extent;ee(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),d.selectAll(".selection").data([Tm("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var _=d.selectAll(".handle").data(e.handles,function(b){return b.type});_.exit().remove(),_.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return fn[b.type]}),d.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(d,g,_){d.tween?d.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,x=b.__brush,v=c(b,arguments),w=x.selection,S=e.input(typeof g=="function"?g.apply(this,arguments):g,x.extent),A=Ni(w,S);function P(C){x.selection=C===1&&S===null?null:A(C),l.call(b),v.brush()}return w!==null&&S!==null?P:P(1)}):d.each(function(){var b=this,x=arguments,v=b.__brush,w=e.input(typeof g=="function"?g.apply(b,x):g,v.extent),S=c(b,x).beforestart();Pm(b),v.selection=w===null?null:w,l.call(b),S.start(_).brush(_).end(_)})},u.clear=function(d,g){u.move(d,null,g)};function l(){var d=ee(this),g=zc(this).selection;g?(d.selectAll(".selection").style("display",null).attr("x",g[0][0]).attr("y",g[0][1]).attr("width",g[1][0]-g[0][0]).attr("height",g[1][1]-g[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(_){return _.type[_.type.length-1]==="e"?g[1][0]-o/2:g[0][0]-o/2}).attr("y",function(_){return _.type[0]==="s"?g[1][1]-o/2:g[0][1]-o/2}).attr("width",function(_){return _.type==="n"||_.type==="s"?g[1][0]-g[0][0]+o:o}).attr("height",function(_){return _.type==="e"||_.type==="w"?g[1][1]-g[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,g,_){var b=d.__brush.emitter;return b&&(!_||!b.clean)?b:new f(d,g,_)}function f(d,g,_){this.that=d,this.args=g,this.state=d.__brush,this.active=0,this.clean=_}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,g){return this.starting?(this.starting=!1,this.emit("start",d,g)):this.emit("brush",d),this},brush:function(d,g){return this.emit("brush",d,g),this},end:function(d,g){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,g)),this},emit:function(d,g,_){var b=ee(this.that).datum();a.call(d,this.that,new f2(d,{sourceEvent:g,target:u,selection:e.output(this.state.selection),mode:_,dispatch:a}),b)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var g=this,_=d.target.__data__.type,b=(i&&d.metaKey?_="overlay":_)==="selection"?gb:i&&d.altKey?Ki:Hi,x=e===Fc?null:p2[_],v=e===Eu?null:d2[_],w=zc(g),S=w.extent,A=w.selection,P=S[0][0],C,T,E=S[0][1],M,R,$=S[1][0],k,D,L=S[1][1],q,I,j=0,B=0,W,G=x&&v&&i&&d.shiftKey,X,Z,J=Array.from(d.touches||[d],at=>{const pt=at.identifier;return at=Xo(at,g),at.point0=at.slice(),at.identifier=pt,at});Pm(g);var z=c(g,arguments,!0).beforestart();if(_==="overlay"){A&&(W=!0);const at=[J[0],J[1]||J[0]];w.selection=A=[[C=e===Fc?P:$e(at[0][0],at[1][0]),M=e===Eu?E:$e(at[0][1],at[1][1])],[k=e===Fc?$:ke(at[0][0],at[1][0]),q=e===Eu?L:ke(at[0][1],at[1][1])]],J.length>1&&st(d)}else C=A[0][0],M=A[0][1],k=A[1][0],q=A[1][1];T=C,R=M,D=k,I=q;var F=ee(g).attr("pointer-events","none"),H=F.selectAll(".overlay").attr("cursor",fn[_]);if(d.touches)z.moved=N,z.ended=K;else{var Q=ee(d.view).on("mousemove.brush",N,!0).on("mouseup.brush",K,!0);i&&Q.on("keydown.brush",ot,!0).on("keyup.brush",ht,!0),A$(d.view)}l.call(g),z.start(d,b.name);function N(at){for(const pt of at.changedTouches||[at])for(const Tt of J)Tt.identifier===pt.identifier&&(Tt.cur=Xo(pt,g));if(G&&!X&&!Z&&J.length===1){const pt=J[0];bb(pt.cur[0]-pt[0])>bb(pt.cur[1]-pt[1])?Z=!0:X=!0}for(const pt of J)pt.cur&&(pt[0]=pt.cur[0],pt[1]=pt.cur[1]);W=!0,Bc(at),st(at)}function st(at){const pt=J[0],Tt=pt.point0;var it;switch(j=pt[0]-Tt[0],B=pt[1]-Tt[1],b){case qc:case gb:{x&&(j=ke(P-C,$e($-k,j)),T=C+j,D=k+j),v&&(B=ke(E-M,$e(L-q,B)),R=M+B,I=q+B);break}case Hi:{J[1]?(x&&(T=ke(P,$e($,J[0][0])),D=ke(P,$e($,J[1][0])),x=1),v&&(R=ke(E,$e(L,J[0][1])),I=ke(E,$e(L,J[1][1])),v=1)):(x<0?(j=ke(P-C,$e($-C,j)),T=C+j,D=k):x>0&&(j=ke(P-k,$e($-k,j)),T=C,D=k+j),v<0?(B=ke(E-M,$e(L-M,B)),R=M+B,I=q):v>0&&(B=ke(E-q,$e(L-q,B)),R=M,I=q+B));break}case Ki:{x&&(T=ke(P,$e($,C-j*x)),D=ke(P,$e($,k+j*x))),v&&(R=ke(E,$e(L,M-B*v)),I=ke(E,$e(L,q+B*v)));break}}D<T&&(x*=-1,it=C,C=k,k=it,it=T,T=D,D=it,_ in wb&&H.attr("cursor",fn[_=wb[_]])),I<R&&(v*=-1,it=M,M=q,q=it,it=R,R=I,I=it,_ in Sb&&H.attr("cursor",fn[_=Sb[_]])),w.selection&&(A=w.selection),X&&(T=A[0][0],D=A[1][0]),Z&&(R=A[0][1],I=A[1][1]),(A[0][0]!==T||A[0][1]!==R||A[1][0]!==D||A[1][1]!==I)&&(w.selection=[[T,R],[D,I]],l.call(g),z.brush(at,b.name))}function K(at){if(h2(at),at.touches){if(at.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else P$(at.view,W),Q.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),H.attr("cursor",fn.overlay),w.selection&&(A=w.selection),g2(A)&&(w.selection=null,l.call(g)),z.end(at,b.name)}function ot(at){switch(at.keyCode){case 16:{G=x&&v;break}case 18:{b===Hi&&(x&&(k=D-j*x,C=T+j*x),v&&(q=I-B*v,M=R+B*v),b=Ki,st(at));break}case 32:{(b===Hi||b===Ki)&&(x<0?k=D-j:x>0&&(C=T-j),v<0?q=I-B:v>0&&(M=R-B),b=qc,H.attr("cursor",fn.selection),st(at));break}default:return}Bc(at)}function ht(at){switch(at.keyCode){case 16:{G&&(X=Z=G=!1,st(at));break}case 18:{b===Ki&&(x<0?k=D:x>0&&(C=T),v<0?q=I:v>0&&(M=R),b=Hi,st(at));break}case 32:{b===qc&&(at.altKey?(x&&(k=D-j*x,C=T+j*x),v&&(q=I-B*v,M=R+B*v),b=Ki):(x<0?k=D:x>0&&(C=T),v<0?q=I:v>0&&(M=R),b=Hi),H.attr("cursor",fn[_]),st(at));break}default:return}Bc(at)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=xb(t.apply(this,arguments)),d.dim=e,d}return u.extent=function(d){return arguments.length?(t=typeof d=="function"?d:Lc(xb(d)),u):t},u.filter=function(d){return arguments.length?(r=typeof d=="function"?d:Lc(!!d),u):r},u.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:Lc(!!d),u):n},u.handleSize=function(d){return arguments.length?(o=+d,u):o},u.keyModifiers=function(d){return arguments.length?(i=!!d,u):i},u.on=function(){var d=a.on.apply(a,arguments);return d===a?u:d},u}function Un(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function _2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Tv(e){let t,r,n;e.length!==2?(t=Un,r=(s,u)=>Un(e(s),u),n=(s,u)=>e(s)-u):(t=e===Un||e===_2?e:x2,r=e,n=e);function i(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;r(s[f],u)<0?l=f+1:c=f}while(l<c)}return l}function a(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;r(s[f],u)<=0?l=f+1:c=f}while(l<c)}return l}function o(s,u,l=0,c=s.length){const f=i(s,u,l,c-1);return f>l&&n(s[f-1],u)>-n(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function x2(){return 0}function DA(e){return e===null?NaN:+e}function*w2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const S2=Tv(Un),Fs=S2.right;Tv(DA).center;class Ob extends Map{constructor(t,r=P2){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Ab(this,t))}has(t){return super.has(Ab(this,t))}set(t,r){return super.set(O2(this,t),r)}delete(t){return super.delete(A2(this,t))}}function Ab({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function O2({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function A2({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function P2(e){return e!==null&&typeof e=="object"?e.valueOf():e}function T2(e=Un){if(e===Un)return IA;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function IA(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const E2=Math.sqrt(50),C2=Math.sqrt(10),M2=Math.sqrt(2);function Bu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=E2?10:a>=C2?5:a>=M2?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(e*l),u=Math.round(t*l),s/l<e&&++s,u/l>t&&--u,l=-l):(l=Math.pow(10,i)*o,s=Math.round(e/l),u=Math.round(t/l),s*l<e&&++s,u*l>t&&--u),u<s&&.5<=r&&r<2?Bu(e,t,r*2):[s,u,l]}function Em(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?Bu(t,e,r):Bu(e,t,r);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(n)if(o<0)for(let l=0;l<s;++l)u[l]=(a-l)/-o;else for(let l=0;l<s;++l)u[l]=(a-l)*o;else if(o<0)for(let l=0;l<s;++l)u[l]=(i+l)/-o;else for(let l=0;l<s;++l)u[l]=(i+l)*o;return u}function Cm(e,t,r){return t=+t,e=+e,r=+r,Bu(e,t,r)[2]}function Mm(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Cm(t,e,r):Cm(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Pb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Tb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function NA(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?IA:T2(i);n>r;){if(n-r>600){const u=n-r+1,l=t-r+1,c=Math.log(u),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),p=Math.max(r,Math.floor(t-l*f/u+h)),y=Math.min(n,Math.floor(t+(u-l)*f/u+h));NA(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(lo(e,r,t),i(e[n],a)>0&&lo(e,r,n);o<s;){for(lo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?lo(e,r,s):(++s,lo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function lo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function k2(e,t,r){if(e=Float64Array.from(w2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Tb(e);if(t>=1)return Pb(e);var n,i=(n-1)*t,a=Math.floor(i),o=Pb(NA(e,a).subarray(0,a+1)),s=Tb(e.subarray(a+1));return o+(s-o)*(i-a)}}function $2(e,t,r=DA){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function j2(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Mr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function En(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const km=Symbol("implicit");function Ev(){var e=new Ob,t=[],r=[],n=km;function i(a){let o=e.get(a);if(o===void 0){if(n!==km)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Ob;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ev(t,r).unknown(n)},Mr.apply(i,arguments),i}function Qo(){var e=Ev().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-u+l*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-u))*c,o=a*(1-u),s&&(y=Math.round(y),o=Math.round(o));var d=j2(h).map(function(g){return y+a*g});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,l=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return Qo(t(),[n,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},Mr.apply(f(),arguments)}function LA(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return LA(t())},e}function $o(){return LA(Qo.apply(null,arguments).paddingInner(1))}function R2(e){return function(){return e}}function qu(e){return+e}var Eb=[0,1];function Ue(e){return e}function $m(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:R2(isNaN(t)?NaN:.5)}function D2(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function I2(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=$m(i,n),a=r(o,a)):(n=$m(n,i),a=r(a,o)),function(s){return a(n(s))}}function N2(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=$m(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var u=Fs(e,s,1,n)-1;return a[u](i[u](s))}}function zs(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Yl(){var e=Eb,t=Eb,r=Ni,n,i,a,o=Ue,s,u,l;function c(){var h=Math.min(e.length,t.length);return o!==Ue&&(o=D2(e[0],e[h-1])),s=h>2?N2:I2,u=l=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((l||(l=s(t,e.map(n),Ir)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,qu),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=wv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:Ue,c()):o!==Ue},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function Cv(){return Yl()(Ue,Ue)}function L2(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fu(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ya(e){return e=Fu(Math.abs(e)),e?e[1]:NaN}function B2(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),a.push(r.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function q2(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var F2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ts(e){if(!(t=F2.exec(e)))throw new Error("invalid format: "+e);var t;return new Mv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ts.prototype=Mv.prototype;function Mv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Mv.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 z2(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var BA;function U2(e,t){var r=Fu(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(BA=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Fu(e,Math.max(0,t+a-1))[0]}function Cb(e,t){var r=Fu(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Mb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:L2,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Cb(e*100,t),r:Cb,s:U2,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function kb(e){return e}var $b=Array.prototype.map,jb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function W2(e){var t=e.grouping===void 0||e.thousands===void 0?kb:B2($b.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?kb:q2($b.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=ts(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,g=f.width,_=f.comma,b=f.precision,x=f.trim,v=f.type;v==="n"?(_=!0,v="g"):Mb[v]||(b===void 0&&(b=12),x=!0,v="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",S=m==="$"?n:/[%p]/.test(v)?o:"",A=Mb[v],P=/[defgprs%]/.test(v);b=b===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function C(T){var E=w,M=S,R,$,k;if(v==="c")M=A(T)+M,T="";else{T=+T;var D=T<0||1/T<0;if(T=isNaN(T)?u:A(Math.abs(T),b),x&&(T=z2(T)),D&&+T==0&&y!=="+"&&(D=!1),E=(D?y==="("?y:s:y==="-"||y==="("?"":y)+E,M=(v==="s"?jb[8+BA/3]:"")+M+(D&&y==="("?")":""),P){for(R=-1,$=T.length;++R<$;)if(k=T.charCodeAt(R),48>k||k>57){M=(k===46?i+T.slice(R+1):T.slice(R))+M,T=T.slice(0,R);break}}}_&&!d&&(T=t(T,1/0));var L=E.length+T.length+M.length,q=L<g?new Array(g-L+1).join(h):"";switch(_&&d&&(T=t(q+T,q.length?g-M.length:1/0),q=""),p){case"<":T=E+T+M+q;break;case"=":T=E+q+T+M;break;case"^":T=q.slice(0,L=q.length>>1)+E+T+M+q.slice(L);break;default:T=q+E+T+M;break}return a(T)}return C.toString=function(){return f+""},C}function c(f,h){var p=l((f=ts(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(ya(h)/3)))*3,m=Math.pow(10,-y),d=jb[8+y/3];return function(g){return p(m*g)+d}}return{format:l,formatPrefix:c}}var ou,kv,qA;G2({thousands:",",grouping:[3],currency:["$",""]});function G2(e){return ou=W2(e),kv=ou.format,qA=ou.formatPrefix,ou}function H2(e){return Math.max(0,-ya(Math.abs(e)))}function K2(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ya(t)/3)))*3-ya(Math.abs(e)))}function Y2(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ya(t)-ya(e))+1}function FA(e,t,r,n){var i=Mm(e,t,r),a;switch(n=ts(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=K2(i,o))&&(n.precision=a),qA(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=Y2(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=H2(i))&&(n.precision=a-(n.type==="%")*2);break}}return kv(n)}function Yn(e){var t=e.domain;return e.ticks=function(r){var n=t();return Em(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return FA(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],u,l,c=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);c-- >0;){if(l=Cm(o,s,r),l===u)return n[i]=o,n[a]=s,t(n);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Mi(){var e=Cv();return e.copy=function(){return zs(e,Mi())},Mr.apply(e,arguments),Yn(e)}function zA(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,qu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return zA(e).unknown(t)},e=arguments.length?Array.from(e,qu):[0,1],Yn(r)}function UA(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Rb(e){return Math.log(e)}function Db(e){return Math.exp(e)}function X2(e){return-Math.log(-e)}function V2(e){return-Math.exp(-e)}function Z2(e){return isFinite(e)?+("1e"+e):e<0?0:e}function J2(e){return e===10?Z2:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Q2(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Ib(e){return(t,r)=>-e(-t,r)}function $v(e){const t=e(Rb,Db),r=t.domain;let n=10,i,a;function o(){return i=Q2(n),a=J2(n),r()[0]<0?(i=Ib(i),a=Ib(a),e(X2,V2)):e(Rb,Db),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const u=r();let l=u[0],c=u[u.length-1];const f=c<l;f&&([l,c]=[c,l]);let h=i(l),p=i(c),y,m;const d=s==null?10:+s;let g=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),l>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;g.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<l)){if(m>c)break;g.push(m)}g.length*2<d&&(g=Em(l,c,d))}else g=Em(h,p,Math.min(p-h,d)).map(a);return f?g.reverse():g},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=ts(u)).precision==null&&(u.trim=!0),u=kv(u)),s===1/0)return u;const l=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=l?u(c):""}},t.nice=()=>r(UA(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function WA(){const e=$v(Yl()).domain([1,10]);return e.copy=()=>zs(e,WA()).base(e.base()),Mr.apply(e,arguments),e}function Nb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Lb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function jv(e){var t=1,r=e(Nb(t),Lb(t));return r.constant=function(n){return arguments.length?e(Nb(t=+n),Lb(t)):t},Yn(r)}function GA(){var e=jv(Yl());return e.copy=function(){return zs(e,GA()).constant(e.constant())},Mr.apply(e,arguments)}function Bb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function tR(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function eR(e){return e<0?-e*e:e*e}function Rv(e){var t=e(Ue,Ue),r=1;function n(){return r===1?e(Ue,Ue):r===.5?e(tR,eR):e(Bb(r),Bb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Yn(t)}function Dv(){var e=Rv(Yl());return e.copy=function(){return zs(e,Dv()).exponent(e.exponent())},Mr.apply(e,arguments),e}function rR(){return Dv.apply(null,arguments).exponent(.5)}function qb(e){return Math.sign(e)*e*e}function nR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function HA(){var e=Cv(),t=[0,1],r=!1,n;function i(a){var o=nR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(qb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,qu)).map(qb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return HA(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Mr.apply(i,arguments),Yn(i)}function KA(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=$2(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Fs(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Un),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return KA().domain(e).range(t).unknown(n)},Mr.apply(a,arguments)}function YA(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(u){return u!=null&&u<=u?i[Fs(n,u,0,r)]:a}function s(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},o.range=function(u){return arguments.length?(r=(i=Array.from(u)).length-1,s()):i.slice()},o.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,n[0]]:l>=r?[n[r-1],t]:[n[l-1],n[l]]},o.unknown=function(u){return arguments.length&&(a=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return YA().domain([e,t]).range(i).unknown(a)},Mr.apply(Yn(o),arguments)}function XA(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Fs(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return XA().domain(e).range(t).unknown(r)},Mr.apply(i,arguments)}const Uc=new Date,Wc=new Date;function xe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let l;do u.push(l=new Date(+a)),t(a,s),e(a);while(l<a&&a<o);return u},i.filter=a=>xe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Uc.setTime(+a),Wc.setTime(+o),e(Uc),e(Wc),Math.floor(r(Uc,Wc))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const zu=xe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);zu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):zu);zu.range;const yn=1e3,Sr=yn*60,vn=Sr*60,Sn=vn*24,Iv=Sn*7,Fb=Sn*30,Gc=Sn*365,hi=xe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*yn)},(e,t)=>(t-e)/yn,e=>e.getUTCSeconds());hi.range;const Nv=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yn)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getMinutes());Nv.range;const Lv=xe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Sr)},(e,t)=>(t-e)/Sr,e=>e.getUTCMinutes());Lv.range;const Bv=xe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*yn-e.getMinutes()*Sr)},(e,t)=>{e.setTime(+e+t*vn)},(e,t)=>(t-e)/vn,e=>e.getHours());Bv.range;const qv=xe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*vn)},(e,t)=>(t-e)/vn,e=>e.getUTCHours());qv.range;const Us=xe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Sr)/Sn,e=>e.getDate()-1);Us.range;const Xl=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sn,e=>e.getUTCDate()-1);Xl.range;const VA=xe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sn,e=>Math.floor(e/Sn));VA.range;function Li(e){return xe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Sr)/Iv)}const Vl=Li(0),Uu=Li(1),iR=Li(2),aR=Li(3),va=Li(4),oR=Li(5),sR=Li(6);Vl.range;Uu.range;iR.range;aR.range;va.range;oR.range;sR.range;function Bi(e){return xe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/Iv)}const Zl=Bi(0),Wu=Bi(1),uR=Bi(2),lR=Bi(3),ga=Bi(4),cR=Bi(5),fR=Bi(6);Zl.range;Wu.range;uR.range;lR.range;ga.range;cR.range;fR.range;const Fv=xe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Fv.range;const zv=xe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());zv.range;const On=xe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());On.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});On.range;const An=xe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());An.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});An.range;function ZA(e,t,r,n,i,a){const o=[[hi,1,yn],[hi,5,5*yn],[hi,15,15*yn],[hi,30,30*yn],[a,1,Sr],[a,5,5*Sr],[a,15,15*Sr],[a,30,30*Sr],[i,1,vn],[i,3,3*vn],[i,6,6*vn],[i,12,12*vn],[n,1,Sn],[n,2,2*Sn],[r,1,Iv],[t,1,Fb],[t,3,3*Fb],[e,1,Gc]];function s(l,c,f){const h=c<l;h&&([l,c]=[c,l]);const p=f&&typeof f.range=="function"?f:u(l,c,f),y=p?p.range(l,+c+1):[];return h?y.reverse():y}function u(l,c,f){const h=Math.abs(c-l)/f,p=Tv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(Mm(l/Gc,c/Gc,f));if(p===0)return zu.every(Math.max(Mm(l,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,u]}const[hR,pR]=ZA(An,zv,Zl,VA,qv,Lv),[dR,mR]=ZA(On,Fv,Vl,Us,Bv,Nv);function Hc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Kc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function co(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function yR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,l=fo(i),c=ho(i),f=fo(a),h=ho(a),p=fo(o),y=ho(o),m=fo(s),d=ho(s),g=fo(u),_=ho(u),b={a:D,A:L,b:q,B:I,c:null,d:Kb,e:Kb,f:BR,g:XR,G:ZR,H:IR,I:NR,j:LR,L:JA,m:qR,M:FR,p:j,q:B,Q:Vb,s:Zb,S:zR,u:UR,U:WR,V:GR,w:HR,W:KR,x:null,X:null,y:YR,Y:VR,Z:JR,"%":Xb},x={a:W,A:G,b:X,B:Z,c:null,d:Yb,e:Yb,f:rD,g:hD,G:dD,H:QR,I:tD,j:eD,L:tP,m:nD,M:iD,p:J,q:z,Q:Vb,s:Zb,S:aD,u:oD,U:sD,V:uD,w:lD,W:cD,x:null,X:null,y:fD,Y:pD,Z:mD,"%":Xb},v={a:C,A:T,b:E,B:M,c:R,d:Gb,e:Gb,f:$R,g:Wb,G:Ub,H:Hb,I:Hb,j:ER,L:kR,m:TR,M:CR,p:P,q:PR,Q:RR,s:DR,S:MR,u:xR,U:wR,V:SR,w:_R,W:OR,x:$,X:k,y:Wb,Y:Ub,Z:AR,"%":jR};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),x.x=w(r,x),x.X=w(n,x),x.c=w(t,x);function w(F,H){return function(Q){var N=[],st=-1,K=0,ot=F.length,ht,at,pt;for(Q instanceof Date||(Q=new Date(+Q));++st<ot;)F.charCodeAt(st)===37&&(N.push(F.slice(K,st)),(at=zb[ht=F.charAt(++st)])!=null?ht=F.charAt(++st):at=ht==="e"?" ":"0",(pt=H[ht])&&(ht=pt(Q,at)),N.push(ht),K=st+1);return N.push(F.slice(K,st)),N.join("")}}function S(F,H){return function(Q){var N=co(1900,void 0,1),st=A(N,F,Q+="",0),K,ot;if(st!=Q.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(H&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(K=Kc(co(N.y,0,1)),ot=K.getUTCDay(),K=ot>4||ot===0?Wu.ceil(K):Wu(K),K=Xl.offset(K,(N.V-1)*7),N.y=K.getUTCFullYear(),N.m=K.getUTCMonth(),N.d=K.getUTCDate()+(N.w+6)%7):(K=Hc(co(N.y,0,1)),ot=K.getDay(),K=ot>4||ot===0?Uu.ceil(K):Uu(K),K=Us.offset(K,(N.V-1)*7),N.y=K.getFullYear(),N.m=K.getMonth(),N.d=K.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),ot="Z"in N?Kc(co(N.y,0,1)).getUTCDay():Hc(co(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(ot+5)%7:N.w+N.U*7-(ot+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Kc(N)):Hc(N)}}function A(F,H,Q,N){for(var st=0,K=H.length,ot=Q.length,ht,at;st<K;){if(N>=ot)return-1;if(ht=H.charCodeAt(st++),ht===37){if(ht=H.charAt(st++),at=v[ht in zb?H.charAt(st++):ht],!at||(N=at(F,Q,N))<0)return-1}else if(ht!=Q.charCodeAt(N++))return-1}return N}function P(F,H,Q){var N=l.exec(H.slice(Q));return N?(F.p=c.get(N[0].toLowerCase()),Q+N[0].length):-1}function C(F,H,Q){var N=p.exec(H.slice(Q));return N?(F.w=y.get(N[0].toLowerCase()),Q+N[0].length):-1}function T(F,H,Q){var N=f.exec(H.slice(Q));return N?(F.w=h.get(N[0].toLowerCase()),Q+N[0].length):-1}function E(F,H,Q){var N=g.exec(H.slice(Q));return N?(F.m=_.get(N[0].toLowerCase()),Q+N[0].length):-1}function M(F,H,Q){var N=m.exec(H.slice(Q));return N?(F.m=d.get(N[0].toLowerCase()),Q+N[0].length):-1}function R(F,H,Q){return A(F,t,H,Q)}function $(F,H,Q){return A(F,r,H,Q)}function k(F,H,Q){return A(F,n,H,Q)}function D(F){return o[F.getDay()]}function L(F){return a[F.getDay()]}function q(F){return u[F.getMonth()]}function I(F){return s[F.getMonth()]}function j(F){return i[+(F.getHours()>=12)]}function B(F){return 1+~~(F.getMonth()/3)}function W(F){return o[F.getUTCDay()]}function G(F){return a[F.getUTCDay()]}function X(F){return u[F.getUTCMonth()]}function Z(F){return s[F.getUTCMonth()]}function J(F){return i[+(F.getUTCHours()>=12)]}function z(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var H=w(F+="",b);return H.toString=function(){return F},H},parse:function(F){var H=S(F+="",!1);return H.toString=function(){return F},H},utcFormat:function(F){var H=w(F+="",x);return H.toString=function(){return F},H},utcParse:function(F){var H=S(F+="",!0);return H.toString=function(){return F},H}}}var zb={"-":"",_:" ",0:"0"},Pe=/^\s*\d+/,vR=/^%/,gR=/[\\^$*+?|[\]().{}]/g;function kt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function bR(e){return e.replace(gR,"\\$&")}function fo(e){return new RegExp("^(?:"+e.map(bR).join("|")+")","i")}function ho(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function _R(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function xR(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function wR(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function SR(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function OR(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ub(e,t,r){var n=Pe.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Wb(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function AR(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function PR(e,t,r){var n=Pe.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function TR(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Gb(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ER(e,t,r){var n=Pe.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Hb(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function CR(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function MR(e,t,r){var n=Pe.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function kR(e,t,r){var n=Pe.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function $R(e,t,r){var n=Pe.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function jR(e,t,r){var n=vR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function RR(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function DR(e,t,r){var n=Pe.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Kb(e,t){return kt(e.getDate(),t,2)}function IR(e,t){return kt(e.getHours(),t,2)}function NR(e,t){return kt(e.getHours()%12||12,t,2)}function LR(e,t){return kt(1+Us.count(On(e),e),t,3)}function JA(e,t){return kt(e.getMilliseconds(),t,3)}function BR(e,t){return JA(e,t)+"000"}function qR(e,t){return kt(e.getMonth()+1,t,2)}function FR(e,t){return kt(e.getMinutes(),t,2)}function zR(e,t){return kt(e.getSeconds(),t,2)}function UR(e){var t=e.getDay();return t===0?7:t}function WR(e,t){return kt(Vl.count(On(e)-1,e),t,2)}function QA(e){var t=e.getDay();return t>=4||t===0?va(e):va.ceil(e)}function GR(e,t){return e=QA(e),kt(va.count(On(e),e)+(On(e).getDay()===4),t,2)}function HR(e){return e.getDay()}function KR(e,t){return kt(Uu.count(On(e)-1,e),t,2)}function YR(e,t){return kt(e.getFullYear()%100,t,2)}function XR(e,t){return e=QA(e),kt(e.getFullYear()%100,t,2)}function VR(e,t){return kt(e.getFullYear()%1e4,t,4)}function ZR(e,t){var r=e.getDay();return e=r>=4||r===0?va(e):va.ceil(e),kt(e.getFullYear()%1e4,t,4)}function JR(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+kt(t/60|0,"0",2)+kt(t%60,"0",2)}function Yb(e,t){return kt(e.getUTCDate(),t,2)}function QR(e,t){return kt(e.getUTCHours(),t,2)}function tD(e,t){return kt(e.getUTCHours()%12||12,t,2)}function eD(e,t){return kt(1+Xl.count(An(e),e),t,3)}function tP(e,t){return kt(e.getUTCMilliseconds(),t,3)}function rD(e,t){return tP(e,t)+"000"}function nD(e,t){return kt(e.getUTCMonth()+1,t,2)}function iD(e,t){return kt(e.getUTCMinutes(),t,2)}function aD(e,t){return kt(e.getUTCSeconds(),t,2)}function oD(e){var t=e.getUTCDay();return t===0?7:t}function sD(e,t){return kt(Zl.count(An(e)-1,e),t,2)}function eP(e){var t=e.getUTCDay();return t>=4||t===0?ga(e):ga.ceil(e)}function uD(e,t){return e=eP(e),kt(ga.count(An(e),e)+(An(e).getUTCDay()===4),t,2)}function lD(e){return e.getUTCDay()}function cD(e,t){return kt(Wu.count(An(e)-1,e),t,2)}function fD(e,t){return kt(e.getUTCFullYear()%100,t,2)}function hD(e,t){return e=eP(e),kt(e.getUTCFullYear()%100,t,2)}function pD(e,t){return kt(e.getUTCFullYear()%1e4,t,4)}function dD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?ga(e):ga.ceil(e),kt(e.getUTCFullYear()%1e4,t,4)}function mD(){return"+0000"}function Xb(){return"%"}function Vb(e){return+e}function Zb(e){return Math.floor(+e/1e3)}var Yi,rP,nP;yD({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 yD(e){return Yi=yR(e),rP=Yi.format,Yi.parse,nP=Yi.utcFormat,Yi.utcParse,Yi}function vD(e){return new Date(e)}function gD(e){return e instanceof Date?+e:+new Date(+e)}function Uv(e,t,r,n,i,a,o,s,u,l){var c=Cv(),f=c.invert,h=c.domain,p=l(".%L"),y=l(":%S"),m=l("%I:%M"),d=l("%I %p"),g=l("%a %d"),_=l("%b %d"),b=l("%B"),x=l("%Y");function v(w){return(u(w)<w?p:s(w)<w?y:o(w)<w?m:a(w)<w?d:n(w)<w?i(w)<w?g:_:r(w)<w?b:x)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,gD)):h().map(vD)},c.ticks=function(w){var S=h();return e(S[0],S[S.length-1],w??10)},c.tickFormat=function(w,S){return S==null?v:l(S)},c.nice=function(w){var S=h();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?h(UA(S,w)):c},c.copy=function(){return zs(c,Uv(e,t,r,n,i,a,o,s,u,l))},c}function Gu(){return Mr.apply(Uv(dR,mR,On,Fv,Vl,Us,Bv,Nv,hi,rP).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function bD(){return Mr.apply(Uv(hR,pR,An,zv,Zl,Xl,qv,Lv,hi,nP).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Jl(){var e=0,t=1,r,n,i,a,o=Ue,s=!1,u;function l(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(o=f,l):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),l):[o(0),o(1)]}}return l.range=c(Ni),l.rangeRound=c(wv),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),l}}function Xn(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function iP(){var e=Yn(Jl()(Ue));return e.copy=function(){return Xn(e,iP())},En.apply(e,arguments)}function aP(){var e=$v(Jl()).domain([1,10]);return e.copy=function(){return Xn(e,aP()).base(e.base())},En.apply(e,arguments)}function oP(){var e=jv(Jl());return e.copy=function(){return Xn(e,oP()).constant(e.constant())},En.apply(e,arguments)}function Wv(){var e=Rv(Jl());return e.copy=function(){return Xn(e,Wv()).exponent(e.exponent())},En.apply(e,arguments)}function _D(){return Wv.apply(null,arguments).exponent(.5)}function sP(){var e=[],t=Ue;function r(n){if(n!=null&&!isNaN(n=+n))return t((Fs(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Un),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>k2(e,a/n))},r.copy=function(){return sP(t).domain(e)},En.apply(r,arguments)}function Ql(){var e=0,t=.5,r=1,n=1,i,a,o,s,u,l=Ue,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:u),l(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(l=m,p):l};function y(m){return function(d){var g,_,b;return arguments.length?([g,_,b]=d,l=Q$(m,[g,_,b]),p):[l(0),l(.5),l(1)]}}return p.range=y(Ni),p.rangeRound=y(wv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function uP(){var e=Yn(Ql()(Ue));return e.copy=function(){return Xn(e,uP())},En.apply(e,arguments)}function lP(){var e=$v(Ql()).domain([.1,1,10]);return e.copy=function(){return Xn(e,lP()).base(e.base())},En.apply(e,arguments)}function cP(){var e=jv(Ql());return e.copy=function(){return Xn(e,cP()).constant(e.constant())},En.apply(e,arguments)}function Gv(){var e=Rv(Ql());return e.copy=function(){return Xn(e,Gv()).exponent(e.exponent())},En.apply(e,arguments)}function xD(){return Gv.apply(null,arguments).exponent(.5)}function Zt(e){return function(){return e}}const fP=Math.cos,Hu=Math.sin,Fr=Math.sqrt,Jb=1e-12,Ku=Math.PI,tc=2*Ku,jm=Math.PI,Rm=2*jm,ui=1e-6,wD=Rm-ui;function hP(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function SD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return hP;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class OD{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?hP:SD(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=n-t,l=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>ui)if(!(Math.abs(f*u-l*c)>ui)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=u*u+l*l,d=p*p+y*y,g=Math.sqrt(m),_=Math.sqrt(h),b=a*Math.tan((jm-Math.acos((m+h-d)/(2*g*_)))/2),x=b/_,v=b/g;Math.abs(x-1)>ui&&this._append`L${t+x*c},${r+x*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+v*u},${this._y1=r+v*l}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),u=n*Math.sin(i),l=t+s,c=r+u,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>ui||Math.abs(this._y1-c)>ui)&&this._append`L${l},${c}`,n&&(h<0&&(h=h%Rm+Rm),h>wD?this._append`A${n},${n},0,1,${f},${t-s},${r-u}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:h>ui&&this._append`A${n},${n},0,${+(h>=jm)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Hv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new OD(t)}function Kv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function pP(e){this._context=e}pP.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ec(e){return new pP(e)}function dP(e){return e[0]}function mP(e){return e[1]}function Yv(e,t){var r=Zt(!0),n=null,i=ec,a=null,o=Hv(s);e=typeof e=="function"?e:e===void 0?dP:Zt(e),t=typeof t=="function"?t:t===void 0?mP:Zt(t);function s(u){var l,c=(u=Kv(u)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),l=0;l<=c;++l)!(l<c&&r(f=u[l],l,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,l,u),+t(f,l,u));if(p)return a=null,p+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Zt(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Zt(+u),s):t},s.defined=function(u){return arguments.length?(r=typeof u=="function"?u:Zt(!!u),s):r},s.curve=function(u){return arguments.length?(i=u,n!=null&&(a=i(n)),s):i},s.context=function(u){return arguments.length?(u==null?n=a=null:a=i(n=u),s):n},s}function pi(e,t,r){var n=null,i=Zt(!0),a=null,o=ec,s=null,u=Hv(l);e=typeof e=="function"?e:e===void 0?dP:Zt(+e),t=typeof t=="function"?t:Zt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?mP:Zt(+r);function l(f){var h,p,y,m=(f=Kv(f)).length,d,g=!1,_,b=new Array(m),x=new Array(m);for(a==null&&(s=o(_=u())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===g)if(g=!g)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(b[y],x[y]);s.lineEnd(),s.areaEnd()}g&&(b[h]=+e(d,h,f),x[h]=+t(d,h,f),s.point(n?+n(d,h,f):b[h],r?+r(d,h,f):x[h]))}if(_)return s=null,_+""||null}function c(){return Yv().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Zt(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Zt(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Zt(+f),l):n},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:Zt(+f),r=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Zt(+f),l):t},l.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Zt(+f),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(t)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(n).y(t)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Zt(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}class yP{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function AD(e){return new yP(e,!0)}function PD(e){return new yP(e,!1)}const Xv={draw(e,t){const r=Fr(t/Ku);e.moveTo(r,0),e.arc(0,0,r,0,tc)}},TD={draw(e,t){const r=Fr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},vP=Fr(1/3),ED=vP*2,CD={draw(e,t){const r=Fr(t/ED),n=r*vP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},MD={draw(e,t){const r=Fr(t),n=-r/2;e.rect(n,n,r,r)}},kD=.8908130915292852,gP=Hu(Ku/10)/Hu(7*Ku/10),$D=Hu(tc/10)*gP,jD=-fP(tc/10)*gP,RD={draw(e,t){const r=Fr(t*kD),n=$D*r,i=jD*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=tc*a/5,s=fP(o),u=Hu(o);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},Yc=Fr(3),DD={draw(e,t){const r=-Fr(t/(Yc*3));e.moveTo(0,r*2),e.lineTo(-Yc*r,-r),e.lineTo(Yc*r,-r),e.closePath()}},gr=-.5,br=Fr(3)/2,Dm=1/Fr(12),ID=(Dm/2+1)*3,ND={draw(e,t){const r=Fr(t/ID),n=r/2,i=r*Dm,a=n,o=r*Dm+r,s=-a,u=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(gr*n-br*i,br*n+gr*i),e.lineTo(gr*a-br*o,br*a+gr*o),e.lineTo(gr*s-br*u,br*s+gr*u),e.lineTo(gr*n+br*i,gr*i-br*n),e.lineTo(gr*a+br*o,gr*o-br*a),e.lineTo(gr*s+br*u,gr*u-br*s),e.closePath()}};function LD(e,t){let r=null,n=Hv(i);e=typeof e=="function"?e:Zt(e||Xv),t=typeof t=="function"?t:Zt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Zt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Zt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Yu(){}function Xu(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function bP(e){this._context=e}bP.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:Xu(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:Xu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BD(e){return new bP(e)}function _P(e){this._context=e}_P.prototype={areaStart:Yu,areaEnd:Yu,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Xu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qD(e){return new _P(e)}function xP(e){this._context=e}xP.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Xu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function FD(e){return new xP(e)}function Qb(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function Vv(e,t){this._context=e,this._k=(1-t)/6}Vv.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:Qb(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Qb(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function r(n){return new Vv(n,t)}return r.tension=function(n){return e(+n)},r})(0);function zD(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Jb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Jb){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*l+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function wP(e,t){this._context=e,this._alpha=t}wP.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:zD(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Im=(function e(t){function r(n){return t?new wP(n,t):new Vv(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function SP(e){this._context=e}SP.prototype={areaStart:Yu,areaEnd:Yu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function UD(e){return new SP(e)}function t0(e){return e<0?-1:1}function e0(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(t0(a)+t0(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function r0(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function Xc(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Vu(e){this._context=e}Vu.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:Xc(this,this._t0,r0(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Xc(this,r0(this,r=e0(this,e,t)),r);break;default:Xc(this,this._t0,r=e0(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function OP(e){this._context=new AP(e)}(OP.prototype=Object.create(Vu.prototype)).point=function(e,t){Vu.prototype.point.call(this,t,e)};function AP(e){this._context=e}AP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function PP(e){return new Vu(e)}function WD(e){return new OP(e)}function TP(e){this._context=e}TP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=n0(e),i=n0(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function n0(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function GD(e){return new TP(e)}function rc(e,t){this._context=e,this._t=t}rc.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function HD(e){return new rc(e,.5)}function KD(e){return new rc(e,0)}function YD(e){return new rc(e,1)}function ba(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Nm(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function XD(e,t){return e[t]}function VD(e){const t=[];return t.key=e,t}function Zu(){var e=Zt([]),t=Nm,r=ba,n=XD;function i(a){var o=Array.from(e.apply(this,arguments),VD),s,u=o.length,l=-1,c;for(const f of a)for(s=0,++l;s<u;++s)(o[s][l]=[0,+n(f,o[s].key,l,a)]).data=f;for(s=0,c=Kv(t(o));s<u;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Zt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Zt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?Nm:typeof a=="function"?a:Zt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??ba,i):r},i}function ZD(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}ba(e,t)}}function JD(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}ba(e,t)}}function QD(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,u=0,l=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,g=m[n-1][1]||0;p+=d-g}u+=f,l+=p*f}i[n-1][1]+=i[n-1][0]=r,u&&(r-=l/u)}i[n-1][1]+=i[n-1][0]=r,ba(e,t)}}function dn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
1
+ "use strict";var hk=Object.defineProperty;var pk=(e,t,r)=>t in e?hk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var zo=(e,t,r)=>pk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("react/jsx-runtime"),Q=require("@mui/material"),O=require("react"),WO=require("@mui/icons-material");function dk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Fr=dk(O);function mk(e){return e}var vf=1,bf=2,Qm=3,is=4,L0=1e-6;function yk(e){return"translate("+e+",0)"}function gk(e){return"translate(0,"+e+")"}function vk(e){return t=>+e(t)}function bk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function _k(){return!this.__axis}function HO(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===vf||e===is?-1:1,c=e===is||e===bf?"x":"y",f=e===vf||e===Qm?yk:gk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):mk),d=Math.max(a,0)+s,v=t.range(),x=+v[0]+l,b=+v[v.length-1]+l,_=(t.bandwidth?bk:vk)(t.copy(),l),g=p.selection?p.selection():p,w=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),M=S.select("line"),P=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),M=M.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",e===vf?"0em":e===Qm?"0.71em":"0.32em")),p!==g&&(w=w.transition(p),S=S.transition(p),M=M.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",L0).attr("transform",function(E){return isFinite(E=_(E))?f(E+l):this.getAttribute("transform")}),T.attr("opacity",L0).attr("transform",function(E){var C=this.parentNode.__axis;return f((C&&isFinite(C=C(E))?C:_(E))+l)})),A.remove(),w.attr("d",e===is||e===bf?o?"M"+u*o+","+x+"H"+l+"V"+b+"H"+u*o:"M"+l+","+x+"V"+b:o?"M"+x+","+u*o+"V"+l+"H"+b+"V"+u*o:"M"+x+","+l+"H"+b),S.attr("opacity",1).attr("transform",function(E){return f(_(E)+l)}),M.attr(c+"2",u*a),P.attr(c,u*d).text(m),g.filter(_k).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===bf?"start":e===is?"end":"middle"),g.each(function(){this.__axis=_})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(l=+p,h):l},h}function Es(e){return HO(Qm,e)}function Cs(e){return HO(is,e)}var xk={value:()=>{}};function Qg(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new iu(r)}function iu(e){this._=e}function wk(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}iu.prototype=Qg.prototype={constructor:iu,on:function(e,t){var r=this._,n=wk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=Sk(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=B0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=B0(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new iu(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function Sk(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function B0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=xk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var ty="http://www.w3.org/1999/xhtml";const q0={svg:"http://www.w3.org/2000/svg",xhtml:ty,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Sc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),q0.hasOwnProperty(t)?{space:q0[t],local:e}:e}function Ak(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ty&&t.documentElement.namespaceURI===ty?t.createElement(e):t.createElementNS(r,e)}}function Ok(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function GO(e){var t=Sc(e);return(t.local?Ok:Ak)(t)}function Tk(){}function tv(e){return e==null?Tk:function(){return this.querySelector(e)}}function Pk(e){typeof e!="function"&&(e=tv(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),l,u,c=0;c<o;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new Cr(n,this._parents)}function Ek(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ck(){return[]}function KO(e){return e==null?Ck:function(){return this.querySelectorAll(e)}}function Mk(e){return function(){return Ek(e.apply(this,arguments))}}function kk(e){typeof e=="function"?e=Mk(e):e=KO(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(n.push(e.call(l,l.__data__,u,o)),i.push(l));return new Cr(n,i)}function XO(e){return function(){return this.matches(e)}}function YO(e){return function(t){return t.matches(e)}}var $k=Array.prototype.find;function jk(e){return function(){return $k.call(this.children,e)}}function Rk(){return this.firstElementChild}function Dk(e){return this.select(e==null?Rk:jk(typeof e=="function"?e:YO(e)))}var Ik=Array.prototype.filter;function Nk(){return Array.from(this.children)}function Lk(e){return function(){return Ik.call(this.children,e)}}function Bk(e){return this.selectAll(e==null?Nk:Lk(typeof e=="function"?e:YO(e)))}function qk(e){typeof e!="function"&&(e=XO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Cr(n,this._parents)}function VO(e){return new Array(e.length)}function Fk(){return new Cr(this._enter||this._groups.map(VO),this._parents)}function fu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}fu.prototype={constructor:fu,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 zk(e){return function(){return e}}function Uk(e,t,r,n,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new fu(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function Wk(e,t,r,n,i,a,o){var s,l,u=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(l=t[s])&&(h[s]=p=o.call(l,l.__data__,s,t)+"",u.has(p)?i[s]=l:u.set(p,l));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(l=u.get(p))?(n[s]=l,l.__data__=a[s],u.delete(p)):r[s]=new fu(e,a[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(h[s])===l&&(i[s]=l)}function Hk(e){return e.__data__}function Gk(e,t){if(!arguments.length)return Array.from(this,Hk);var r=t?Wk:Uk,n=this._parents,i=this._groups;typeof e!="function"&&(e=zk(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],f=i[u],h=f.length,p=Kk(e.call(c,c&&c.__data__,u,n)),y=p.length,m=s[u]=new Array(y),d=o[u]=new Array(y),v=l[u]=new Array(h);r(c,f,m,d,v,p,t);for(var x=0,b=0,_,g;x<y;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(g=d[b])&&++b<y;);_._next=g||null}}return o=new Cr(o,n),o._enter=s,o._exit=l,o}function Kk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xk(){return new Cr(this._exit||this._groups.map(VO),this._parents)}function Yk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Vk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var u=r[l],c=n[l],f=u.length,h=s[l]=new Array(f),p,y=0;y<f;++y)(p=u[y]||c[y])&&(h[y]=p);for(;l<i;++l)s[l]=r[l];return new Cr(s,this._parents)}function Zk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Jk(e){e||(e=Qk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,l=i[a]=new Array(s),u,c=0;c<s;++c)(u=o[c])&&(l[c]=u);l.sort(t)}return new Cr(i,this._parents).order()}function Qk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function t2(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function e2(){return Array.from(this)}function r2(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function n2(){let e=0;for(const t of this)++e;return e}function i2(){return!this.node()}function a2(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function o2(e){return function(){this.removeAttribute(e)}}function s2(e){return function(){this.removeAttributeNS(e.space,e.local)}}function l2(e,t){return function(){this.setAttribute(e,t)}}function u2(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function c2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function f2(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function h2(e,t){var r=Sc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?s2:o2:typeof t=="function"?r.local?f2:c2:r.local?u2:l2)(r,t))}function ZO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function p2(e){return function(){this.style.removeProperty(e)}}function d2(e,t,r){return function(){this.style.setProperty(e,t,r)}}function m2(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function y2(e,t,r){return arguments.length>1?this.each((t==null?p2:typeof t=="function"?m2:d2)(e,t,r??"")):Ka(this.node(),e)}function Ka(e,t){return e.style.getPropertyValue(t)||ZO(e).getComputedStyle(e,null).getPropertyValue(t)}function g2(e){return function(){delete this[e]}}function v2(e,t){return function(){this[e]=t}}function b2(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function _2(e,t){return arguments.length>1?this.each((t==null?g2:typeof t=="function"?b2:v2)(e,t)):this.node()[e]}function JO(e){return e.trim().split(/^|\s+/)}function ev(e){return e.classList||new QO(e)}function QO(e){this._node=e,this._names=JO(e.getAttribute("class")||"")}QO.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 tT(e,t){for(var r=ev(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function eT(e,t){for(var r=ev(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function x2(e){return function(){tT(this,e)}}function w2(e){return function(){eT(this,e)}}function S2(e,t){return function(){(t.apply(this,arguments)?tT:eT)(this,e)}}function A2(e,t){var r=JO(e+"");if(arguments.length<2){for(var n=ev(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?S2:t?x2:w2)(r,t))}function O2(){this.textContent=""}function T2(e){return function(){this.textContent=e}}function P2(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function E2(e){return arguments.length?this.each(e==null?O2:(typeof e=="function"?P2:T2)(e)):this.node().textContent}function C2(){this.innerHTML=""}function M2(e){return function(){this.innerHTML=e}}function k2(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function $2(e){return arguments.length?this.each(e==null?C2:(typeof e=="function"?k2:M2)(e)):this.node().innerHTML}function j2(){this.nextSibling&&this.parentNode.appendChild(this)}function R2(){return this.each(j2)}function D2(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function I2(){return this.each(D2)}function N2(e){var t=typeof e=="function"?e:GO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function L2(){return null}function B2(e,t){var r=typeof e=="function"?e:GO(e),n=t==null?L2:typeof t=="function"?t:tv(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function q2(){var e=this.parentNode;e&&e.removeChild(this)}function F2(){return this.each(q2)}function z2(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U2(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2(e){return this.select(e?U2:z2)}function H2(e){return arguments.length?this.property("__data__",e):this.node().__data__}function G2(e){return function(t){e.call(this,t,this.__data__)}}function K2(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function X2(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function Y2(e,t,r){return function(){var n=this.__on,i,a=G2(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function V2(e,t,r){var n=K2(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(i=0,c=s[l];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?Y2:X2,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function rT(e,t,r){var n=ZO(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Z2(e,t){return function(){return rT(this,e,t)}}function J2(e,t){return function(){return rT(this,e,t.apply(this,arguments))}}function Q2(e,t){return this.each((typeof t=="function"?J2:Z2)(e,t))}function*t$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var nT=[null];function Cr(e,t){this._groups=e,this._parents=t}function Co(){return new Cr([[document.documentElement]],nT)}function e$(){return this}Cr.prototype=Co.prototype={constructor:Cr,select:Pk,selectAll:kk,selectChild:Dk,selectChildren:Bk,filter:qk,data:Gk,enter:Fk,exit:Xk,join:Yk,merge:Vk,selection:e$,order:Zk,sort:Jk,call:t2,nodes:e2,node:r2,size:n2,empty:i2,each:a2,attr:h2,style:y2,property:_2,classed:A2,text:E2,html:$2,raise:R2,lower:I2,append:N2,insert:B2,remove:F2,clone:W2,datum:H2,on:V2,dispatch:Q2,[Symbol.iterator]:t$};function ee(e){return typeof e=="string"?new Cr([[document.querySelector(e)]],[document.documentElement]):new Cr([[e]],nT)}function r$(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ms(e,t){if(e=r$(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const ey={capture:!0,passive:!1};function ry(e){e.preventDefault(),e.stopImmediatePropagation()}function n$(e){var t=e.document.documentElement,r=ee(e).on("dragstart.drag",ry,ey);"onselectstart"in t?r.on("selectstart.drag",ry,ey):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function i$(e,t){var r=e.document.documentElement,n=ee(e).on("dragstart.drag",null);t&&(n.on("click.drag",ry,ey),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function rv(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function iT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function xl(){}var ks=.7,hu=1/ks,La="\\s*([+-]?\\d+)\\s*",$s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a$=/^#([0-9a-f]{3,8})$/,o$=new RegExp(`^rgb\\(${La},${La},${La}\\)$`),s$=new RegExp(`^rgb\\(${Sn},${Sn},${Sn}\\)$`),l$=new RegExp(`^rgba\\(${La},${La},${La},${$s}\\)$`),u$=new RegExp(`^rgba\\(${Sn},${Sn},${Sn},${$s}\\)$`),c$=new RegExp(`^hsl\\(${$s},${Sn},${Sn}\\)$`),f$=new RegExp(`^hsla\\(${$s},${Sn},${Sn},${$s}\\)$`),F0={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};rv(xl,na,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:z0,formatHex:z0,formatHex8:h$,formatHsl:p$,formatRgb:U0,toString:U0});function z0(){return this.rgb().formatHex()}function h$(){return this.rgb().formatHex8()}function p$(){return aT(this).formatHsl()}function U0(){return this.rgb().formatRgb()}function na(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=a$.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?W0(t):r===3?new or(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Nl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Nl(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=o$.exec(e))?new or(t[1],t[2],t[3],1):(t=s$.exec(e))?new or(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=l$.exec(e))?Nl(t[1],t[2],t[3],t[4]):(t=u$.exec(e))?Nl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=c$.exec(e))?K0(t[1],t[2]/100,t[3]/100,1):(t=f$.exec(e))?K0(t[1],t[2]/100,t[3]/100,t[4]):F0.hasOwnProperty(e)?W0(F0[e]):e==="transparent"?new or(NaN,NaN,NaN,0):null}function W0(e){return new or(e>>16&255,e>>8&255,e&255,1)}function Nl(e,t,r,n){return n<=0&&(e=t=r=NaN),new or(e,t,r,n)}function d$(e){return e instanceof xl||(e=na(e)),e?(e=e.rgb(),new or(e.r,e.g,e.b,e.opacity)):new or}function ny(e,t,r,n){return arguments.length===1?d$(e):new or(e,t,r,n??1)}function or(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}rv(or,ny,iT(xl,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new or(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new or(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new or(Yi(this.r),Yi(this.g),Yi(this.b),pu(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:H0,formatHex:H0,formatHex8:m$,formatRgb:G0,toString:G0}));function H0(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}`}function m$(){return`#${Fi(this.r)}${Fi(this.g)}${Fi(this.b)}${Fi((isNaN(this.opacity)?1:this.opacity)*255)}`}function G0(){const e=pu(this.opacity);return`${e===1?"rgb(":"rgba("}${Yi(this.r)}, ${Yi(this.g)}, ${Yi(this.b)}${e===1?")":`, ${e})`}`}function pu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fi(e){return e=Yi(e),(e<16?"0":"")+e.toString(16)}function K0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new tn(e,t,r,n)}function aT(e){if(e instanceof tn)return new tn(e.h,e.s,e.l,e.opacity);if(e instanceof xl||(e=na(e)),!e)return new tn;if(e instanceof tn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new tn(o,s,l,e.opacity)}function y$(e,t,r,n){return arguments.length===1?aT(e):new tn(e,t,r,n??1)}function tn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}rv(tn,y$,iT(xl,{brighter(e){return e=e==null?hu:Math.pow(hu,e),new tn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ks:Math.pow(ks,e),new tn(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,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new or(_f(e>=240?e-240:e+120,i,n),_f(e,i,n),_f(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new tn(X0(this.h),Ll(this.s),Ll(this.l),pu(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=pu(this.opacity);return`${e===1?"hsl(":"hsla("}${X0(this.h)}, ${Ll(this.s)*100}%, ${Ll(this.l)*100}%${e===1?")":`, ${e})`}`}}));function X0(e){return e=(e||0)%360,e<0?e+360:e}function Ll(e){return Math.max(0,Math.min(1,e||0))}function _f(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const nv=e=>()=>e;function g$(e,t){return function(r){return e+r*t}}function v$(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function b$(e){return(e=+e)==1?oT:function(t,r){return r-t?v$(t,r,e):nv(isNaN(t)?r:t)}}function oT(e,t){var r=t-e;return r?g$(e,r):nv(isNaN(e)?t:e)}const du=(function e(t){var r=b$(t);function n(i,a){var o=r((i=ny(i)).r,(a=ny(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=oT(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function _$(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function x$(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function w$(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=pa(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function S$(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Qr(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function A$(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=pa(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var iy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xf=new RegExp(iy.source,"g");function O$(e){return function(){return e}}function T$(e){return function(t){return e(t)+""}}function sT(e,t){var r=iy.lastIndex=xf.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=iy.exec(e))&&(i=xf.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Qr(n,i)})),r=xf.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?T$(l[0].x):O$(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function pa(e,t){var r=typeof t,n;return t==null||r==="boolean"?nv(t):(r==="number"?Qr:r==="string"?(n=na(t))?(t=n,du):sT:t instanceof na?du:t instanceof Date?S$:x$(t)?_$:Array.isArray(t)?w$:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A$:Qr)(e,t)}function iv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var Y0=180/Math.PI,ay={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lT(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Y0,skewX:Math.atan(l)*Y0,scaleX:o,scaleY:s}}var Bl;function P$(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ay:lT(t.a,t.b,t.c,t.d,t.e,t.f)}function E$(e){return e==null||(Bl||(Bl=document.createElementNS("http://www.w3.org/2000/svg","g")),Bl.setAttribute("transform",e),!(e=Bl.transform.baseVal.consolidate()))?ay:(e=e.matrix,lT(e.a,e.b,e.c,e.d,e.e,e.f))}function uT(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:Qr(u,f)},{i:m-2,x:Qr(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:Qr(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:Qr(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:Qr(u,f)},{i:m-2,x:Qr(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var C$=uT(P$,"px, ","px)","deg)"),M$=uT(E$,", ",")",")");function k$(e,t){t===void 0&&(t=e,e=pa);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var Xa=0,as=0,Uo=0,cT=1e3,mu,os,yu=0,ia=0,Ac=0,js=typeof performance=="object"&&performance.now?performance:Date,fT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function av(){return ia||(fT($$),ia=js.now()+Ac)}function $$(){ia=0}function gu(){this._call=this._time=this._next=null}gu.prototype=hT.prototype={constructor:gu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?av():+r)+(t==null?0:+t),!this._next&&os!==this&&(os?os._next=this:mu=this,os=this),this._call=e,this._time=r,oy()},stop:function(){this._call&&(this._call=null,this._time=1/0,oy())}};function hT(e,t,r){var n=new gu;return n.restart(e,t,r),n}function j$(){av(),++Xa;for(var e=mu,t;e;)(t=ia-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Xa}function V0(){ia=(yu=js.now())+Ac,Xa=as=0;try{j$()}finally{Xa=0,D$(),ia=0}}function R$(){var e=js.now(),t=e-yu;t>cT&&(Ac-=t,yu=e)}function D$(){for(var e,t=mu,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:mu=r);os=e,oy(n)}function oy(e){if(!Xa){as&&(as=clearTimeout(as));var t=e-ia;t>24?(e<1/0&&(as=setTimeout(V0,e-js.now()-Ac)),Uo&&(Uo=clearInterval(Uo))):(Uo||(yu=js.now(),Uo=setInterval(R$,cT)),Xa=1,fT(V0))}}function Z0(e,t,r){var n=new gu;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var I$=Qg("start","end","cancel","interrupt"),N$=[],pT=0,J0=1,sy=2,au=3,Q0=4,ly=5,ou=6;function Oc(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;L$(e,r,{name:t,index:n,group:i,on:I$,tween:N$,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:pT})}function ov(e,t){var r=nn(e,t);if(r.state>pT)throw new Error("too late; already scheduled");return r}function En(e,t){var r=nn(e,t);if(r.state>au)throw new Error("too late; already running");return r}function nn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function L$(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=hT(a,0,r.time);function a(u){r.state=J0,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,h,p;if(r.state!==J0)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===au)return Z0(o);p.state===Q0?(p.state=ou,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=ou,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(Z0(function(){r.state===au&&(r.state=Q0,r.timer.restart(s,r.delay,r.time),s(u))}),r.state=sy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===sy){for(r.state=au,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=ly,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===ly&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=ou,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function uy(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>sy&&n.state<ly,n.state=ou,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function B$(e){return this.each(function(){uy(this,e)})}function q$(e,t){var r,n;return function(){var i=En(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function F$(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=En(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function z$(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=nn(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?q$:F$)(r,e,t))}function sv(e,t,r){var n=e._id;return e.each(function(){var i=En(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return nn(i,n).value[t]}}function dT(e,t){var r;return(typeof t=="number"?Qr:t instanceof na?du:(r=na(t))?(t=r,du):sT)(e,t)}function U$(e){return function(){this.removeAttribute(e)}}function W$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function H$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function G$(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function K$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function X$(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Y$(e,t){var r=Sc(e),n=r==="transform"?M$:dT;return this.attrTween(e,typeof t=="function"?(r.local?X$:K$)(r,n,sv(this,"attr."+e,t)):t==null?(r.local?W$:U$)(r):(r.local?G$:H$)(r,n,t))}function V$(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Z$(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function J$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Z$(e,a)),r}return i._value=t,i}function Q$(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&V$(e,a)),r}return i._value=t,i}function tj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=Sc(e);return this.tween(r,(n.local?J$:Q$)(n,t))}function ej(e,t){return function(){ov(this,e).delay=+t.apply(this,arguments)}}function rj(e,t){return t=+t,function(){ov(this,e).delay=t}}function nj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ej:rj)(t,e)):nn(this.node(),t).delay}function ij(e,t){return function(){En(this,e).duration=+t.apply(this,arguments)}}function aj(e,t){return t=+t,function(){En(this,e).duration=t}}function oj(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ij:aj)(t,e)):nn(this.node(),t).duration}function sj(e,t){if(typeof t!="function")throw new Error;return function(){En(this,e).ease=t}}function lj(e){var t=this._id;return arguments.length?this.each(sj(t,e)):nn(this.node(),t).ease}function uj(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;En(this,e).ease=r}}function cj(e){if(typeof e!="function")throw new Error;return this.each(uj(this._id,e))}function fj(e){typeof e!="function"&&(e=XO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Hn(n,this._parents,this._name,this._id)}function hj(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var l=t[s],u=r[s],c=l.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new Hn(o,this._parents,this._name,this._id)}function pj(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function dj(e,t,r){var n,i,a=pj(t)?ov:En;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function mj(e,t){var r=this._id;return arguments.length<2?nn(this.node(),r).on.on(e):this.each(dj(r,e,t))}function yj(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function gj(){return this.on("end.remove",yj(this._id))}function vj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=tv(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,f,h=0;h<l;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,Oc(u[h],t,r,h,u,nn(c,r)));return new Hn(a,this._parents,t,r)}function bj(e){var t=this._name,r=this._id;typeof e!="function"&&(e=KO(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l=n[s],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=e.call(c,c.__data__,f,l),p,y=nn(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Oc(p,t,r,m,h,y);a.push(h),o.push(c)}return new Hn(a,o,t,r)}var _j=Co.prototype.constructor;function xj(){return new _j(this._groups,this._parents)}function wj(e,t){var r,n,i;return function(){var a=Ka(this,e),o=(this.style.removeProperty(e),Ka(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function mT(e){return function(){this.style.removeProperty(e)}}function Sj(e,t,r){var n,i=r+"",a;return function(){var o=Ka(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function Aj(e,t,r){var n,i,a;return function(){var o=Ka(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Ka(this,e))),o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s))}}function Oj(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var l=En(this,e),u=l.on,c=l.value[a]==null?s||(s=mT(t)):void 0;(u!==r||i!==c)&&(n=(r=u).copy()).on(o,i=c),l.on=n}}function Tj(e,t,r){var n=(e+="")=="transform"?C$:dT;return t==null?this.styleTween(e,wj(e,n)).on("end.style."+e,mT(e)):typeof t=="function"?this.styleTween(e,Aj(e,n,sv(this,"style."+e,t))).each(Oj(this._id,e)):this.styleTween(e,Sj(e,n,t),r).on("end.style."+e,null)}function Pj(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function Ej(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&Pj(e,o,r)),n}return a._value=t,a}function Cj(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,Ej(e,t,r??""))}function Mj(e){return function(){this.textContent=e}}function kj(e){return function(){var t=e(this);this.textContent=t??""}}function $j(e){return this.tween("text",typeof e=="function"?kj(sv(this,"text",e)):Mj(e==null?"":e+""))}function jj(e){return function(t){this.textContent=e.call(this,t)}}function Rj(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&jj(i)),t}return n._value=e,n}function Dj(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Rj(e))}function Ij(){for(var e=this._name,t=this._id,r=yT(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var c=nn(l,t);Oc(l,e,r,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Hn(n,this._parents,e,r)}function Nj(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};r.each(function(){var u=En(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),i===0&&a()})}var Lj=0;function Hn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function lv(e){return Co().transition(e)}function yT(){return++Lj}var jn=Co.prototype;Hn.prototype=lv.prototype={constructor:Hn,select:vj,selectAll:bj,selectChild:jn.selectChild,selectChildren:jn.selectChildren,filter:fj,merge:hj,selection:xj,transition:Ij,call:jn.call,nodes:jn.nodes,node:jn.node,size:jn.size,empty:jn.empty,each:jn.each,on:mj,attr:Y$,attrTween:tj,style:Tj,styleTween:Cj,text:$j,textTween:Dj,remove:gj,tween:z$,delay:nj,duration:oj,ease:lj,easeVarying:cj,end:Nj,[Symbol.iterator]:jn[Symbol.iterator]};function Bj(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var qj={time:null,delay:0,duration:250,ease:Bj};function Fj(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function zj(e){var t,r;e instanceof Hn?(t=e._id,e=e._name):(t=yT(),(r=qj).time=av(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&Oc(l,e,t,u,o,r||Fj(l,t));return new Hn(n,this._parents,e,t)}Co.prototype.interrupt=B$;Co.prototype.transition=zj;const wf=e=>()=>e;function Uj(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function Wj(e){e.stopImmediatePropagation()}function Sf(e){e.preventDefault(),e.stopImmediatePropagation()}var tb={name:"drag"},Af={name:"space"},Aa={name:"handle"},Oa={name:"center"};const{abs:eb,max:Fe,min:ze}=Math;function rb(e){return[+e[0],+e[1]]}function nb(e){return[rb(e[0]),rb(e[1])]}var su={name:"x",handles:["w","e"].map(cy),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Of={},Rn={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ib={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ab={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Hj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Gj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function cy(e){return{type:e}}function Kj(e){return!e.ctrlKey&&!e.button}function Xj(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Yj(){return navigator.maxTouchPoints||"ontouchstart"in this}function Tf(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Vj(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Tc(){return Zj(su)}function Zj(e){var t=Xj,r=Kj,n=Yj,i=!0,a=Qg("start","brush","end"),o=6,s;function l(d){var v=d.property("__brush",m).selectAll(".overlay").data([cy("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Rn.overlay).merge(v).each(function(){var b=Tf(this).extent;ee(this).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1])}),d.selectAll(".selection").data([cy("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Rn.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var x=d.selectAll(".handle").data(e.handles,function(b){return b.type});x.exit().remove(),x.enter().append("rect").attr("class",function(b){return"handle handle--"+b.type}).attr("cursor",function(b){return Rn[b.type]}),d.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(d,v,x){d.tween?d.on("start.brush",function(b){c(this,arguments).beforestart().start(b)}).on("interrupt.brush end.brush",function(b){c(this,arguments).end(b)}).tween("brush",function(){var b=this,_=b.__brush,g=c(b,arguments),w=_.selection,S=e.input(typeof v=="function"?v.apply(this,arguments):v,_.extent),A=pa(w,S);function T(M){_.selection=M===1&&S===null?null:A(M),u.call(b),g.brush()}return w!==null&&S!==null?T:T(1)}):d.each(function(){var b=this,_=arguments,g=b.__brush,w=e.input(typeof v=="function"?v.apply(b,_):v,g.extent),S=c(b,_).beforestart();uy(b),g.selection=w===null?null:w,u.call(b),S.start(x).brush(x).end(x)})},l.clear=function(d,v){l.move(d,null,v)};function u(){var d=ee(this),v=Tf(this).selection;v?(d.selectAll(".selection").style("display",null).attr("x",v[0][0]).attr("y",v[0][1]).attr("width",v[1][0]-v[0][0]).attr("height",v[1][1]-v[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(x){return x.type[x.type.length-1]==="e"?v[1][0]-o/2:v[0][0]-o/2}).attr("y",function(x){return x.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(x){return x.type==="n"||x.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(x){return x.type==="e"||x.type==="w"?v[1][1]-v[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,v,x){var b=d.__brush.emitter;return b&&(!x||!b.clean)?b:new f(d,v,x)}function f(d,v,x){this.that=d,this.args=v,this.state=d.__brush,this.active=0,this.clean=x}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,v){return this.starting?(this.starting=!1,this.emit("start",d,v)):this.emit("brush",d),this},brush:function(d,v){return this.emit("brush",d,v),this},end:function(d,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,v)),this},emit:function(d,v,x){var b=ee(this.that).datum();a.call(d,this.that,new Uj(d,{sourceEvent:v,target:l,selection:e.output(this.state.selection),mode:x,dispatch:a}),b)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var v=this,x=d.target.__data__.type,b=(i&&d.metaKey?x="overlay":x)==="selection"?tb:i&&d.altKey?Oa:Aa,_=e===Of?null:Hj[x],g=e===su?null:Gj[x],w=Tf(v),S=w.extent,A=w.selection,T=S[0][0],M,P,E=S[0][1],C,k,j=S[1][0],R,L,z=S[1][1],W,I,D=0,N=0,q,K=_&&g&&i&&d.shiftKey,B,V,J=Array.from(d.touches||[d],ot=>{const ut=ot.identifier;return ot=Ms(ot,v),ot.point0=ot.slice(),ot.identifier=ut,ot});uy(v);var H=c(v,arguments,!0).beforestart();if(x==="overlay"){A&&(q=!0);const ot=[J[0],J[1]||J[0]];w.selection=A=[[M=e===Of?T:ze(ot[0][0],ot[1][0]),C=e===su?E:ze(ot[0][1],ot[1][1])],[R=e===Of?j:Fe(ot[0][0],ot[1][0]),W=e===su?z:Fe(ot[0][1],ot[1][1])]],J.length>1&&rt(d)}else M=A[0][0],C=A[0][1],R=A[1][0],W=A[1][1];P=M,k=C,L=R,I=W;var F=ee(v).attr("pointer-events","none"),X=F.selectAll(".overlay").attr("cursor",Rn[x]);if(d.touches)H.moved=$,H.ended=U;else{var Y=ee(d.view).on("mousemove.brush",$,!0).on("mouseup.brush",U,!0);i&&Y.on("keydown.brush",ct,!0).on("keyup.brush",mt,!0),n$(d.view)}u.call(v),H.start(d,b.name);function $(ot){for(const ut of ot.changedTouches||[ot])for(const St of J)St.identifier===ut.identifier&&(St.cur=Ms(ut,v));if(K&&!B&&!V&&J.length===1){const ut=J[0];eb(ut.cur[0]-ut[0])>eb(ut.cur[1]-ut[1])?V=!0:B=!0}for(const ut of J)ut.cur&&(ut[0]=ut.cur[0],ut[1]=ut.cur[1]);q=!0,Sf(ot),rt(ot)}function rt(ot){const ut=J[0],St=ut.point0;var at;switch(D=ut[0]-St[0],N=ut[1]-St[1],b){case Af:case tb:{_&&(D=Fe(T-M,ze(j-R,D)),P=M+D,L=R+D),g&&(N=Fe(E-C,ze(z-W,N)),k=C+N,I=W+N);break}case Aa:{J[1]?(_&&(P=Fe(T,ze(j,J[0][0])),L=Fe(T,ze(j,J[1][0])),_=1),g&&(k=Fe(E,ze(z,J[0][1])),I=Fe(E,ze(z,J[1][1])),g=1)):(_<0?(D=Fe(T-M,ze(j-M,D)),P=M+D,L=R):_>0&&(D=Fe(T-R,ze(j-R,D)),P=M,L=R+D),g<0?(N=Fe(E-C,ze(z-C,N)),k=C+N,I=W):g>0&&(N=Fe(E-W,ze(z-W,N)),k=C,I=W+N));break}case Oa:{_&&(P=Fe(T,ze(j,M-D*_)),L=Fe(T,ze(j,R+D*_))),g&&(k=Fe(E,ze(z,C-N*g)),I=Fe(E,ze(z,W+N*g)));break}}L<P&&(_*=-1,at=M,M=R,R=at,at=P,P=L,L=at,x in ib&&X.attr("cursor",Rn[x=ib[x]])),I<k&&(g*=-1,at=C,C=W,W=at,at=k,k=I,I=at,x in ab&&X.attr("cursor",Rn[x=ab[x]])),w.selection&&(A=w.selection),B&&(P=A[0][0],L=A[1][0]),V&&(k=A[0][1],I=A[1][1]),(A[0][0]!==P||A[0][1]!==k||A[1][0]!==L||A[1][1]!==I)&&(w.selection=[[P,k],[L,I]],u.call(v),H.brush(ot,b.name))}function U(ot){if(Wj(ot),ot.touches){if(ot.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else i$(ot.view,q),Y.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);F.attr("pointer-events","all"),X.attr("cursor",Rn.overlay),w.selection&&(A=w.selection),Vj(A)&&(w.selection=null,u.call(v)),H.end(ot,b.name)}function ct(ot){switch(ot.keyCode){case 16:{K=_&&g;break}case 18:{b===Aa&&(_&&(R=L-D*_,M=P+D*_),g&&(W=I-N*g,C=k+N*g),b=Oa,rt(ot));break}case 32:{(b===Aa||b===Oa)&&(_<0?R=L-D:_>0&&(M=P-D),g<0?W=I-N:g>0&&(C=k-N),b=Af,X.attr("cursor",Rn.selection),rt(ot));break}default:return}Sf(ot)}function mt(ot){switch(ot.keyCode){case 16:{K&&(B=V=K=!1,rt(ot));break}case 18:{b===Oa&&(_<0?R=L:_>0&&(M=P),g<0?W=I:g>0&&(C=k),b=Aa,rt(ot));break}case 32:{b===Af&&(ot.altKey?(_&&(R=L-D*_,M=P+D*_),g&&(W=I-N*g,C=k+N*g),b=Oa):(_<0?R=L:_>0&&(M=P),g<0?W=I:g>0&&(C=k),b=Aa),X.attr("cursor",Rn[x]),rt(ot));break}default:return}Sf(ot)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=nb(t.apply(this,arguments)),d.dim=e,d}return l.extent=function(d){return arguments.length?(t=typeof d=="function"?d:wf(nb(d)),l):t},l.filter=function(d){return arguments.length?(r=typeof d=="function"?d:wf(!!d),l):r},l.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:wf(!!d),l):n},l.handleSize=function(d){return arguments.length?(o=+d,l):o},l.keyModifiers=function(d){return arguments.length?(i=!!d,l):i},l.on=function(){var d=a.on.apply(a,arguments);return d===a?l:d},l}function di(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Jj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uv(e){let t,r,n;e.length!==2?(t=di,r=(s,l)=>di(e(s),l),n=(s,l)=>e(s)-l):(t=e===di||e===Jj?e:Qj,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function Qj(){return 0}function gT(e){return e===null?NaN:+e}function*tR(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const eR=uv(di),wl=eR.right;uv(gT).center;class ob extends Map{constructor(t,r=iR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(sb(this,t))}has(t){return super.has(sb(this,t))}set(t,r){return super.set(rR(this,t),r)}delete(t){return super.delete(nR(this,t))}}function sb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function rR({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function nR({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function iR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function aR(e=di){if(e===di)return vT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function vT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const oR=Math.sqrt(50),sR=Math.sqrt(10),lR=Math.sqrt(2);function vu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=oR?10:a>=sR?5:a>=lR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?vu(e,t,r*2):[s,l,u]}function fy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?vu(t,e,r):vu(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function hy(e,t,r){return t=+t,e=+e,r=+r,vu(e,t,r)[2]}function py(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?hy(t,e,r):hy(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function lb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function ub(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function bT(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?vT:aR(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+h)),y=Math.min(n,Math.floor(t+(l-u)*f/l+h));bT(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(Wo(e,r,t),i(e[n],a)>0&&Wo(e,r,n);o<s;){for(Wo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Wo(e,r,s):(++s,Wo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Wo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function uR(e,t,r){if(e=Float64Array.from(tR(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return ub(e);if(t>=1)return lb(e);var n,i=(n-1)*t,a=Math.floor(i),o=lb(bT(e,a).subarray(0,a+1)),s=ub(e.subarray(a+1));return o+(s-o)*(i-a)}}function cR(e,t,r=gT){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fR(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function Wr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Zn(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const dy=Symbol("implicit");function cv(){var e=new ob,t=[],r=[],n=dy;function i(a){let o=e.get(a);if(o===void 0){if(n!==dy)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ob;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return cv(t,r).unknown(n)},Wr.apply(i,arguments),i}function Rs(){var e=cv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-l+u*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-l))*c,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var d=fR(h).map(function(v){return y+a*v});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return Rs(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},Wr.apply(f(),arguments)}function _T(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _T(t())},e}function hs(){return _T(Rs.apply(null,arguments).paddingInner(1))}function hR(e){return function(){return e}}function bu(e){return+e}var cb=[0,1];function tr(e){return e}function my(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:hR(isNaN(t)?NaN:.5)}function pR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function dR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=my(i,n),a=r(o,a)):(n=my(n,i),a=r(a,o)),function(s){return a(n(s))}}function mR(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=my(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=wl(e,s,1,n)-1;return a[l](i[l](s))}}function Sl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Pc(){var e=cb,t=cb,r=pa,n,i,a,o=tr,s,l,u;function c(){var h=Math.min(e.length,t.length);return o!==tr&&(o=pR(e[0],e[h-1])),s=h>2?mR:dR,l=u=null,f}function f(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((u||(u=s(t,e.map(n),Qr)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,bu),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=iv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:tr,c()):o!==tr},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function fv(){return Pc()(tr,tr)}function yR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _u(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ya(e){return e=_u(Math.abs(e)),e?e[1]:NaN}function gR(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function vR(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var bR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ds(e){if(!(t=bR.exec(e)))throw new Error("invalid format: "+e);var t;return new hv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Ds.prototype=hv.prototype;function hv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hv.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 _R(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var xT;function xR(e,t){var r=_u(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(xT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+_u(e,Math.max(0,t+a-1))[0]}function fb(e,t){var r=_u(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const hb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:yR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>fb(e*100,t),r:fb,s:xR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function pb(e){return e}var db=Array.prototype.map,mb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wR(e){var t=e.grouping===void 0||e.thousands===void 0?pb:gR(db.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?pb:vR(db.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Ds(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,v=f.width,x=f.comma,b=f.precision,_=f.trim,g=f.type;g==="n"?(x=!0,g="g"):hb[g]||(b===void 0&&(b=12),_=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?n:/[%p]/.test(g)?o:"",A=hb[g],T=/[defgprs%]/.test(g);b=b===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function M(P){var E=w,C=S,k,j,R;if(g==="c")C=A(P)+C,P="";else{P=+P;var L=P<0||1/P<0;if(P=isNaN(P)?l:A(Math.abs(P),b),_&&(P=_R(P)),L&&+P==0&&y!=="+"&&(L=!1),E=(L?y==="("?y:s:y==="-"||y==="("?"":y)+E,C=(g==="s"?mb[8+xT/3]:"")+C+(L&&y==="("?")":""),T){for(k=-1,j=P.length;++k<j;)if(R=P.charCodeAt(k),48>R||R>57){C=(R===46?i+P.slice(k+1):P.slice(k))+C,P=P.slice(0,k);break}}}x&&!d&&(P=t(P,1/0));var z=E.length+P.length+C.length,W=z<v?new Array(v-z+1).join(h):"";switch(x&&d&&(P=t(W+P,W.length?v-C.length:1/0),W=""),p){case"<":P=E+P+C+W;break;case"=":P=E+W+P+C;break;case"^":P=W.slice(0,z=W.length>>1)+E+P+C+W.slice(z);break;default:P=W+E+P+C;break}return a(P)}return M.toString=function(){return f+""},M}function c(f,h){var p=u((f=Ds(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(Ya(h)/3)))*3,m=Math.pow(10,-y),d=mb[8+y/3];return function(v){return p(m*v)+d}}return{format:u,formatPrefix:c}}var ql,pv,wT;SR({thousands:",",grouping:[3],currency:["$",""]});function SR(e){return ql=wR(e),pv=ql.format,wT=ql.formatPrefix,ql}function AR(e){return Math.max(0,-Ya(Math.abs(e)))}function OR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ya(t)/3)))*3-Ya(Math.abs(e)))}function TR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ya(t)-Ya(e))+1}function ST(e,t,r,n){var i=py(e,t,r),a;switch(n=Ds(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=OR(i,o))&&(n.precision=a),wT(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=TR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=AR(i))&&(n.precision=a-(n.type==="%")*2);break}}return pv(n)}function bi(e){var t=e.domain;return e.ticks=function(r){var n=t();return fy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ST(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=hy(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function aa(){var e=fv();return e.copy=function(){return Sl(e,aa())},Wr.apply(e,arguments),bi(e)}function AT(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,bu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return AT(e).unknown(t)},e=arguments.length?Array.from(e,bu):[0,1],bi(r)}function OT(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function yb(e){return Math.log(e)}function gb(e){return Math.exp(e)}function PR(e){return-Math.log(-e)}function ER(e){return-Math.exp(-e)}function CR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function MR(e){return e===10?CR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function kR(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function vb(e){return(t,r)=>-e(-t,r)}function dv(e){const t=e(yb,gb),r=t.domain;let n=10,i,a;function o(){return i=kR(n),a=MR(n),r()[0]<0?(i=vb(i),a=vb(a),e(PR,ER)):e(yb,gb),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let h=i(u),p=i(c),y,m;const d=s==null?10:+s;let v=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;v.push(m)}v.length*2<d&&(v=fy(u,c,d))}else v=fy(h,p,Math.min(p-h,d)).map(a);return f?v.reverse():v},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Ds(l)).precision==null&&(l.trim=!0),l=pv(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(OT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function TT(){const e=dv(Pc()).domain([1,10]);return e.copy=()=>Sl(e,TT()).base(e.base()),Wr.apply(e,arguments),e}function bb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function _b(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function mv(e){var t=1,r=e(bb(t),_b(t));return r.constant=function(n){return arguments.length?e(bb(t=+n),_b(t)):t},bi(r)}function PT(){var e=mv(Pc());return e.copy=function(){return Sl(e,PT()).constant(e.constant())},Wr.apply(e,arguments)}function xb(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $R(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function jR(e){return e<0?-e*e:e*e}function yv(e){var t=e(tr,tr),r=1;function n(){return r===1?e(tr,tr):r===.5?e($R,jR):e(xb(r),xb(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},bi(t)}function gv(){var e=yv(Pc());return e.copy=function(){return Sl(e,gv()).exponent(e.exponent())},Wr.apply(e,arguments),e}function RR(){return gv.apply(null,arguments).exponent(.5)}function wb(e){return Math.sign(e)*e*e}function DR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function ET(){var e=fv(),t=[0,1],r=!1,n;function i(a){var o=DR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(wb(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,bu)).map(wb)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return ET(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Wr.apply(i,arguments),bi(i)}function CT(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=cR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[wl(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(di),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return CT().domain(e).range(t).unknown(n)},Wr.apply(a,arguments)}function MT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[wl(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return MT().domain([e,t]).range(i).unknown(a)},Wr.apply(bi(o),arguments)}function kT(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[wl(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return kT().domain(e).range(t).unknown(r)},Wr.apply(i,arguments)}const Pf=new Date,Ef=new Date;function Te(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>Te(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Pf.setTime(+a),Ef.setTime(+o),e(Pf),e(Ef),Math.floor(r(Pf,Ef))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const xu=Te(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Te(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):xu);xu.range;const Bn=1e3,Nr=Bn*60,qn=Nr*60,Gn=qn*24,vv=Gn*7,Sb=Gn*30,Cf=Gn*365,zi=Te(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getUTCSeconds());zi.range;const bv=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bn)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getMinutes());bv.range;const _v=Te(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Nr)},(e,t)=>(t-e)/Nr,e=>e.getUTCMinutes());_v.range;const xv=Te(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Bn-e.getMinutes()*Nr)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getHours());xv.range;const wv=Te(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getUTCHours());wv.range;const Al=Te(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Nr)/Gn,e=>e.getDate()-1);Al.range;const Ec=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gn,e=>e.getUTCDate()-1);Ec.range;const $T=Te(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Gn,e=>Math.floor(e/Gn));$T.range;function da(e){return Te(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Nr)/vv)}const Cc=da(0),wu=da(1),IR=da(2),NR=da(3),Va=da(4),LR=da(5),BR=da(6);Cc.range;wu.range;IR.range;NR.range;Va.range;LR.range;BR.range;function ma(e){return Te(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/vv)}const Mc=ma(0),Su=ma(1),qR=ma(2),FR=ma(3),Za=ma(4),zR=ma(5),UR=ma(6);Mc.range;Su.range;qR.range;FR.range;Za.range;zR.range;UR.range;const Sv=Te(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Sv.range;const Av=Te(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Av.range;const Kn=Te(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Kn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Kn.range;const Xn=Te(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Te(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Xn.range;function jT(e,t,r,n,i,a){const o=[[zi,1,Bn],[zi,5,5*Bn],[zi,15,15*Bn],[zi,30,30*Bn],[a,1,Nr],[a,5,5*Nr],[a,15,15*Nr],[a,30,30*Nr],[i,1,qn],[i,3,3*qn],[i,6,6*qn],[i,12,12*qn],[n,1,Gn],[n,2,2*Gn],[r,1,vv],[t,1,Sb],[t,3,3*Sb],[e,1,Cf]];function s(u,c,f){const h=c<u;h&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:l(u,c,f),y=p?p.range(u,+c+1):[];return h?y.reverse():y}function l(u,c,f){const h=Math.abs(c-u)/f,p=uv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(py(u/Cf,c/Cf,f));if(p===0)return xu.every(Math.max(py(u,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,l]}const[WR,HR]=jT(Xn,Av,Mc,$T,wv,_v),[GR,KR]=jT(Kn,Sv,Cc,Al,xv,bv);function Mf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function kf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ho(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function XR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Go(i),c=Ko(i),f=Go(a),h=Ko(a),p=Go(o),y=Ko(o),m=Go(s),d=Ko(s),v=Go(l),x=Ko(l),b={a:L,A:z,b:W,B:I,c:null,d:Cb,e:Cb,f:gD,g:PD,G:CD,H:dD,I:mD,j:yD,L:RT,m:vD,M:bD,p:D,q:N,Q:$b,s:jb,S:_D,u:xD,U:wD,V:SD,w:AD,W:OD,x:null,X:null,y:TD,Y:ED,Z:MD,"%":kb},_={a:q,A:K,b:B,B:V,c:null,d:Mb,e:Mb,f:RD,g:WD,G:GD,H:kD,I:$D,j:jD,L:IT,m:DD,M:ID,p:J,q:H,Q:$b,s:jb,S:ND,u:LD,U:BD,V:qD,w:FD,W:zD,x:null,X:null,y:UD,Y:HD,Z:KD,"%":kb},g={a:M,A:P,b:E,B:C,c:k,d:Pb,e:Pb,f:cD,g:Tb,G:Ob,H:Eb,I:Eb,j:oD,L:uD,m:aD,M:sD,p:T,q:iD,Q:hD,s:pD,S:lD,u:QR,U:tD,V:eD,w:JR,W:rD,x:j,X:R,y:Tb,Y:Ob,Z:nD,"%":fD};b.x=w(r,b),b.X=w(n,b),b.c=w(t,b),_.x=w(r,_),_.X=w(n,_),_.c=w(t,_);function w(F,X){return function(Y){var $=[],rt=-1,U=0,ct=F.length,mt,ot,ut;for(Y instanceof Date||(Y=new Date(+Y));++rt<ct;)F.charCodeAt(rt)===37&&($.push(F.slice(U,rt)),(ot=Ab[mt=F.charAt(++rt)])!=null?mt=F.charAt(++rt):ot=mt==="e"?" ":"0",(ut=X[mt])&&(mt=ut(Y,ot)),$.push(mt),U=rt+1);return $.push(F.slice(U,rt)),$.join("")}}function S(F,X){return function(Y){var $=Ho(1900,void 0,1),rt=A($,F,Y+="",0),U,ct;if(rt!=Y.length)return null;if("Q"in $)return new Date($.Q);if("s"in $)return new Date($.s*1e3+("L"in $?$.L:0));if(X&&!("Z"in $)&&($.Z=0),"p"in $&&($.H=$.H%12+$.p*12),$.m===void 0&&($.m="q"in $?$.q:0),"V"in $){if($.V<1||$.V>53)return null;"w"in $||($.w=1),"Z"in $?(U=kf(Ho($.y,0,1)),ct=U.getUTCDay(),U=ct>4||ct===0?Su.ceil(U):Su(U),U=Ec.offset(U,($.V-1)*7),$.y=U.getUTCFullYear(),$.m=U.getUTCMonth(),$.d=U.getUTCDate()+($.w+6)%7):(U=Mf(Ho($.y,0,1)),ct=U.getDay(),U=ct>4||ct===0?wu.ceil(U):wu(U),U=Al.offset(U,($.V-1)*7),$.y=U.getFullYear(),$.m=U.getMonth(),$.d=U.getDate()+($.w+6)%7)}else("W"in $||"U"in $)&&("w"in $||($.w="u"in $?$.u%7:"W"in $?1:0),ct="Z"in $?kf(Ho($.y,0,1)).getUTCDay():Mf(Ho($.y,0,1)).getDay(),$.m=0,$.d="W"in $?($.w+6)%7+$.W*7-(ct+5)%7:$.w+$.U*7-(ct+6)%7);return"Z"in $?($.H+=$.Z/100|0,$.M+=$.Z%100,kf($)):Mf($)}}function A(F,X,Y,$){for(var rt=0,U=X.length,ct=Y.length,mt,ot;rt<U;){if($>=ct)return-1;if(mt=X.charCodeAt(rt++),mt===37){if(mt=X.charAt(rt++),ot=g[mt in Ab?X.charAt(rt++):mt],!ot||($=ot(F,Y,$))<0)return-1}else if(mt!=Y.charCodeAt($++))return-1}return $}function T(F,X,Y){var $=u.exec(X.slice(Y));return $?(F.p=c.get($[0].toLowerCase()),Y+$[0].length):-1}function M(F,X,Y){var $=p.exec(X.slice(Y));return $?(F.w=y.get($[0].toLowerCase()),Y+$[0].length):-1}function P(F,X,Y){var $=f.exec(X.slice(Y));return $?(F.w=h.get($[0].toLowerCase()),Y+$[0].length):-1}function E(F,X,Y){var $=v.exec(X.slice(Y));return $?(F.m=x.get($[0].toLowerCase()),Y+$[0].length):-1}function C(F,X,Y){var $=m.exec(X.slice(Y));return $?(F.m=d.get($[0].toLowerCase()),Y+$[0].length):-1}function k(F,X,Y){return A(F,t,X,Y)}function j(F,X,Y){return A(F,r,X,Y)}function R(F,X,Y){return A(F,n,X,Y)}function L(F){return o[F.getDay()]}function z(F){return a[F.getDay()]}function W(F){return l[F.getMonth()]}function I(F){return s[F.getMonth()]}function D(F){return i[+(F.getHours()>=12)]}function N(F){return 1+~~(F.getMonth()/3)}function q(F){return o[F.getUTCDay()]}function K(F){return a[F.getUTCDay()]}function B(F){return l[F.getUTCMonth()]}function V(F){return s[F.getUTCMonth()]}function J(F){return i[+(F.getUTCHours()>=12)]}function H(F){return 1+~~(F.getUTCMonth()/3)}return{format:function(F){var X=w(F+="",b);return X.toString=function(){return F},X},parse:function(F){var X=S(F+="",!1);return X.toString=function(){return F},X},utcFormat:function(F){var X=w(F+="",_);return X.toString=function(){return F},X},utcParse:function(F){var X=S(F+="",!0);return X.toString=function(){return F},X}}}var Ab={"-":"",_:" ",0:"0"},je=/^\s*\d+/,YR=/^%/,VR=/[\\^$*+?|[\]().{}]/g;function Ct(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function ZR(e){return e.replace(VR,"\\$&")}function Go(e){return new RegExp("^(?:"+e.map(ZR).join("|")+")","i")}function Ko(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function JR(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function tD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function eD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function rD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Ob(e,t,r){var n=je.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Tb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function nD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function iD(e,t,r){var n=je.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function aD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Pb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=je.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function uD(e,t,r){var n=je.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function cD(e,t,r){var n=je.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function fD(e,t,r){var n=YR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function hD(e,t,r){var n=je.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function pD(e,t,r){var n=je.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Cb(e,t){return Ct(e.getDate(),t,2)}function dD(e,t){return Ct(e.getHours(),t,2)}function mD(e,t){return Ct(e.getHours()%12||12,t,2)}function yD(e,t){return Ct(1+Al.count(Kn(e),e),t,3)}function RT(e,t){return Ct(e.getMilliseconds(),t,3)}function gD(e,t){return RT(e,t)+"000"}function vD(e,t){return Ct(e.getMonth()+1,t,2)}function bD(e,t){return Ct(e.getMinutes(),t,2)}function _D(e,t){return Ct(e.getSeconds(),t,2)}function xD(e){var t=e.getDay();return t===0?7:t}function wD(e,t){return Ct(Cc.count(Kn(e)-1,e),t,2)}function DT(e){var t=e.getDay();return t>=4||t===0?Va(e):Va.ceil(e)}function SD(e,t){return e=DT(e),Ct(Va.count(Kn(e),e)+(Kn(e).getDay()===4),t,2)}function AD(e){return e.getDay()}function OD(e,t){return Ct(wu.count(Kn(e)-1,e),t,2)}function TD(e,t){return Ct(e.getFullYear()%100,t,2)}function PD(e,t){return e=DT(e),Ct(e.getFullYear()%100,t,2)}function ED(e,t){return Ct(e.getFullYear()%1e4,t,4)}function CD(e,t){var r=e.getDay();return e=r>=4||r===0?Va(e):Va.ceil(e),Ct(e.getFullYear()%1e4,t,4)}function MD(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ct(t/60|0,"0",2)+Ct(t%60,"0",2)}function Mb(e,t){return Ct(e.getUTCDate(),t,2)}function kD(e,t){return Ct(e.getUTCHours(),t,2)}function $D(e,t){return Ct(e.getUTCHours()%12||12,t,2)}function jD(e,t){return Ct(1+Ec.count(Xn(e),e),t,3)}function IT(e,t){return Ct(e.getUTCMilliseconds(),t,3)}function RD(e,t){return IT(e,t)+"000"}function DD(e,t){return Ct(e.getUTCMonth()+1,t,2)}function ID(e,t){return Ct(e.getUTCMinutes(),t,2)}function ND(e,t){return Ct(e.getUTCSeconds(),t,2)}function LD(e){var t=e.getUTCDay();return t===0?7:t}function BD(e,t){return Ct(Mc.count(Xn(e)-1,e),t,2)}function NT(e){var t=e.getUTCDay();return t>=4||t===0?Za(e):Za.ceil(e)}function qD(e,t){return e=NT(e),Ct(Za.count(Xn(e),e)+(Xn(e).getUTCDay()===4),t,2)}function FD(e){return e.getUTCDay()}function zD(e,t){return Ct(Su.count(Xn(e)-1,e),t,2)}function UD(e,t){return Ct(e.getUTCFullYear()%100,t,2)}function WD(e,t){return e=NT(e),Ct(e.getUTCFullYear()%100,t,2)}function HD(e,t){return Ct(e.getUTCFullYear()%1e4,t,4)}function GD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Za(e):Za.ceil(e),Ct(e.getUTCFullYear()%1e4,t,4)}function KD(){return"+0000"}function kb(){return"%"}function $b(e){return+e}function jb(e){return Math.floor(+e/1e3)}var Ta,LT,BT;XD({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 XD(e){return Ta=XR(e),LT=Ta.format,Ta.parse,BT=Ta.utcFormat,Ta.utcParse,Ta}function YD(e){return new Date(e)}function VD(e){return e instanceof Date?+e:+new Date(+e)}function Ov(e,t,r,n,i,a,o,s,l,u){var c=fv(),f=c.invert,h=c.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),d=u("%I %p"),v=u("%a %d"),x=u("%b %d"),b=u("%B"),_=u("%Y");function g(w){return(l(w)<w?p:s(w)<w?y:o(w)<w?m:a(w)<w?d:n(w)<w?i(w)<w?v:x:r(w)<w?b:_)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,VD)):h().map(YD)},c.ticks=function(w){var S=h();return e(S[0],S[S.length-1],w??10)},c.tickFormat=function(w,S){return S==null?g:u(S)},c.nice=function(w){var S=h();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?h(OT(S,w)):c},c.copy=function(){return Sl(c,Ov(e,t,r,n,i,a,o,s,l,u))},c}function Au(){return Wr.apply(Ov(GR,KR,Kn,Sv,Cc,Al,xv,bv,zi,LT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ZD(){return Wr.apply(Ov(WR,HR,Xn,Av,Mc,Ec,wv,_v,zi,BT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function kc(){var e=0,t=1,r,n,i,a,o=tr,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),u):[o(0),o(1)]}}return u.range=c(pa),u.rangeRound=c(iv),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function _i(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function qT(){var e=bi(kc()(tr));return e.copy=function(){return _i(e,qT())},Zn.apply(e,arguments)}function FT(){var e=dv(kc()).domain([1,10]);return e.copy=function(){return _i(e,FT()).base(e.base())},Zn.apply(e,arguments)}function zT(){var e=mv(kc());return e.copy=function(){return _i(e,zT()).constant(e.constant())},Zn.apply(e,arguments)}function Tv(){var e=yv(kc());return e.copy=function(){return _i(e,Tv()).exponent(e.exponent())},Zn.apply(e,arguments)}function JD(){return Tv.apply(null,arguments).exponent(.5)}function UT(){var e=[],t=tr;function r(n){if(n!=null&&!isNaN(n=+n))return t((wl(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(di),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>uR(e,a/n))},r.copy=function(){return UT(t).domain(e)},Zn.apply(r,arguments)}function $c(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=tr,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:l),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(d){var v,x,b;return arguments.length?([v,x,b]=d,u=k$(m,[v,x,b]),p):[u(0),u(.5),u(1)]}}return p.range=y(pa),p.rangeRound=y(iv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function WT(){var e=bi($c()(tr));return e.copy=function(){return _i(e,WT())},Zn.apply(e,arguments)}function HT(){var e=dv($c()).domain([.1,1,10]);return e.copy=function(){return _i(e,HT()).base(e.base())},Zn.apply(e,arguments)}function GT(){var e=mv($c());return e.copy=function(){return _i(e,GT()).constant(e.constant())},Zn.apply(e,arguments)}function Pv(){var e=yv($c());return e.copy=function(){return _i(e,Pv()).exponent(e.exponent())},Zn.apply(e,arguments)}function QD(){return Pv.apply(null,arguments).exponent(.5)}function Kt(e){return function(){return e}}const KT=Math.cos,Ou=Math.sin,an=Math.sqrt,Rb=1e-12,Tu=Math.PI,jc=2*Tu,yy=Math.PI,gy=2*yy,Li=1e-6,tI=gy-Li;function XT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function eI(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return XT;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class rI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?XT:eI(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Li)if(!(Math.abs(f*l-u*c)>Li)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=l*l+u*u,d=p*p+y*y,v=Math.sqrt(m),x=Math.sqrt(h),b=a*Math.tan((yy-Math.acos((m+h-d)/(2*v*x)))/2),_=b/x,g=b/v;Math.abs(_-1)>Li&&this._append`L${t+_*c},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*l},${this._y1=r+g*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Li||Math.abs(this._y1-c)>Li)&&this._append`L${u},${c}`,n&&(h<0&&(h=h%gy+gy),h>tI?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:h>Li&&this._append`A${n},${n},0,${+(h>=yy)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Ev(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new rI(t)}function Cv(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YT(e){this._context=e}YT.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function oa(e){return new YT(e)}function VT(e){return e[0]}function ZT(e){return e[1]}function Mv(e,t){var r=Kt(!0),n=null,i=oa,a=null,o=Ev(s);e=typeof e=="function"?e:e===void 0?VT:Kt(e),t=typeof t=="function"?t:t===void 0?ZT:Kt(t);function s(l){var u,c=(l=Cv(l)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,u,l),+t(f,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:Kt(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:Kt(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:Kt(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function Ui(e,t,r){var n=null,i=Kt(!0),a=null,o=oa,s=null,l=Ev(u);e=typeof e=="function"?e:e===void 0?VT:Kt(+e),t=typeof t=="function"?t:Kt(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ZT:Kt(+r);function u(f){var h,p,y,m=(f=Cv(f)).length,d,v=!1,x,b=new Array(m),_=new Array(m);for(a==null&&(s=o(x=l())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===v)if(v=!v)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(b[y],_[y]);s.lineEnd(),s.areaEnd()}v&&(b[h]=+e(d,h,f),_[h]=+t(d,h,f),s.point(n?+n(d,h,f):b[h],r?+r(d,h,f):_[h]))}if(x)return s=null,x+""||null}function c(){return Mv().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Kt(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Kt(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Kt(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Kt(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Kt(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Kt(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Kt(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class JT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function nI(e){return new JT(e,!0)}function iI(e){return new JT(e,!1)}const kv={draw(e,t){const r=an(t/Tu);e.moveTo(r,0),e.arc(0,0,r,0,jc)}},aI={draw(e,t){const r=an(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},QT=an(1/3),oI=QT*2,sI={draw(e,t){const r=an(t/oI),n=r*QT;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},lI={draw(e,t){const r=an(t),n=-r/2;e.rect(n,n,r,r)}},uI=.8908130915292852,tP=Ou(Tu/10)/Ou(7*Tu/10),cI=Ou(jc/10)*tP,fI=-KT(jc/10)*tP,hI={draw(e,t){const r=an(t*uI),n=cI*r,i=fI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=jc*a/5,s=KT(o),l=Ou(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},$f=an(3),pI={draw(e,t){const r=-an(t/($f*3));e.moveTo(0,r*2),e.lineTo(-$f*r,-r),e.lineTo($f*r,-r),e.closePath()}},$r=-.5,jr=an(3)/2,vy=1/an(12),dI=(vy/2+1)*3,mI={draw(e,t){const r=an(t/dI),n=r/2,i=r*vy,a=n,o=r*vy+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo($r*n-jr*i,jr*n+$r*i),e.lineTo($r*a-jr*o,jr*a+$r*o),e.lineTo($r*s-jr*l,jr*s+$r*l),e.lineTo($r*n+jr*i,$r*i-jr*n),e.lineTo($r*a+jr*o,$r*o-jr*a),e.lineTo($r*s+jr*l,$r*l-jr*s),e.closePath()}};function yI(e,t){let r=null,n=Ev(i);e=typeof e=="function"?e:Kt(e||kv),t=typeof t=="function"?t:Kt(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:Kt(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:Kt(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Pu(){}function Eu(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function eP(e){this._context=e}eP.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:Eu(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:Eu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new eP(e)}function rP(e){this._context=e}rP.prototype={areaStart:Pu,areaEnd:Pu,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Eu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function vI(e){return new rP(e)}function nP(e){this._context=e}nP.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Eu(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function bI(e){return new nP(e)}function Db(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function $v(e,t){this._context=e,this._k=(1-t)/6}$v.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:Db(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Db(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};(function e(t){function r(n){return new $v(n,t)}return r.tension=function(n){return e(+n)},r})(0);function _I(e,t,r){var n=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Rb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Rb){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,a,o,e._x2,e._y2)}function iP(e,t){this._context=e,this._alpha=t}iP.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(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:_I(this,e,t);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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const xI=(function e(t){function r(n){return t?new iP(n,t):new $v(n,0)}return r.alpha=function(n){return e(+n)},r})(.5);function aP(e){this._context=e}aP.prototype={areaStart:Pu,areaEnd:Pu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function wI(e){return new aP(e)}function Ib(e){return e<0?-1:1}function Nb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Ib(a)+Ib(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Lb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function jf(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function Cu(e){this._context=e}Cu.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:jf(this,this._t0,Lb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,jf(this,Lb(this,r=Nb(this,e,t)),r);break;default:jf(this,this._t0,r=Nb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function oP(e){this._context=new sP(e)}(oP.prototype=Object.create(Cu.prototype)).point=function(e,t){Cu.prototype.point.call(this,t,e)};function sP(e){this._context=e}sP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function SI(e){return new Cu(e)}function AI(e){return new oP(e)}function lP(e){this._context=e}lP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=Bb(e),i=Bb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Bb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function OI(e){return new lP(e)}function Rc(e,t){this._context=e,this._t=t}Rc.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function TI(e){return new Rc(e,.5)}function PI(e){return new Rc(e,0)}function EI(e){return new Rc(e,1)}function Ja(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function by(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function CI(e,t){return e[t]}function MI(e){const t=[];return t.key=e,t}function Mu(){var e=Kt([]),t=by,r=Ja,n=CI;function i(a){var o=Array.from(e.apply(this,arguments),MI),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=Cv(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Kt(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:Kt(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?by:typeof a=="function"?a:Kt(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??Ja,i):r},i}function kI(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ja(e,t)}}function $I(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}Ja(e,t)}}function jI(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,v=m[n-1][1]||0;p+=d-v}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,Ja(e,t)}}function Nn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
2
2
  * GSAP 3.13.0
3
3
  * https://gsap.com
4
4
  *
5
5
  * @license Copyright 2008-2025, GreenSock. All rights reserved.
6
6
  * Subject to the terms at https://gsap.com/standard-license
7
7
  * @author: Jack Doyle, jack@greensock.com
8
- */var pr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},_a={duration:.5,overwrite:!1,delay:0},Zv,Ce,te,Or=1e8,Kt=1/Or,Lm=Math.PI*2,tI=Lm/4,eI=0,CP=Math.sqrt,rI=Math.cos,nI=Math.sin,Ae=function(t){return typeof t=="string"},oe=function(t){return typeof t=="function"},Pn=function(t){return typeof t=="number"},Jv=function(t){return typeof t>"u"},rn=function(t){return typeof t=="object"},Xe=function(t){return t!==!1},Qv=function(){return typeof window<"u"},su=function(t){return oe(t)||Ae(t)},MP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Ne=Array.isArray,Bm=/(?:-?\.?\d|\.)+/gi,kP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ta=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Vc=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,$P=/[+-]=-?[.\d]+/,jP=/[^,'"\[\]\s]+/gi,iI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ne,Kr,qm,tg,mr={},Ju={},RP,DP=function(t){return(Ju=xa(t,mr))&&er},eg=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},es=function(t,r){return!r&&console.warn(t)},IP=function(t,r){return t&&(mr[t]=r)&&Ju&&(Ju[t]=r)||mr},rs=function(){return 0},aI={suppressEvents:!0,isStart:!0,kill:!1},Cu={suppressEvents:!0,kill:!1},oI={suppressEvents:!0},rg={},Wn=[],Fm={},NP,lr={},Zc={},i0=30,Mu=[],ng="",ig=function(t){var r=t[0],n,i;if(rn(r)||oe(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=Mu.length;i--&&!Mu[i].targetTest(r););n=Mu[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new sT(t[i],n)))||t.splice(i,1);return t},xi=function(t){return t._gsap||ig(Ar(t))[0]._gsap},LP=function(t,r,n){return(n=t[r])&&oe(n)?t[r]():Jv(n)&&t.getAttribute&&t.getAttribute(r)||n},Ve=function(t,r){return(t=t.split(",")).forEach(r)||t},ue=function(t){return Math.round(t*1e5)/1e5||0},de=function(t){return Math.round(t*1e7)/1e7||0},oa=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},sI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},Qu=function(){var t=Wn.length,r=Wn.slice(0),n,i;for(Fm={},Wn.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},ag=function(t){return!!(t._initted||t._startAt||t.add)},BP=function(t,r,n,i){Wn.length&&!Ce&&Qu(),t.render(r,n,!!(Ce&&r<0&&ag(t))),Wn.length&&!Ce&&Qu()},qP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(jP).length<2?r:Ae(t)?t.trim():t},FP=function(t){return t},yr=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},uI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},xa=function(t,r){for(var n in r)t[n]=r[n];return t},a0=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=rn(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},tl=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},jo=function(t){var r=t.parent||ne,n=t.keyframes?uI(Ne(t.keyframes)):yr;if(Xe(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},lI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},zP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},nc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},Hn=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},wi=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},cI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},zm=function(t,r,n,i){return t._startAt&&(Ce?t._startAt.revert(Cu):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},fI=function e(t){return!t||t._ts&&e(t.parent)},o0=function(t){return t._repeat?wa(t._tTime,t=t.duration()+t._rDelay)*t:0},wa=function(t,r){var n=Math.floor(t=de(t/r));return t&&n===t?n-1:n},el=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},ic=function(t){return t._end=de(t._start+(t._tDur/Math.abs(t._ts||t._rts||Kt)||0))},ac=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=de(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),ic(t),n._dirty||wi(n,t)),t},UP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=el(t.rawTime(),r),(!r._dur||Ws(0,r.totalDuration(),n)-r._tTime>Kt)&&r.render(n,!0)),wi(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Kt}},Xr=function(t,r,n,i){return r.parent&&Hn(r),r._start=de((Pn(n)?n:n||t!==ne?xr(t,n,r):t._time)+r._delay),r._end=de(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),zP(t,r,"_first","_last",t._sort?"_start":0),Um(r)||(t._recent=r),i||UP(t,r),t._ts<0&&ac(t,t._tTime),t},WP=function(t,r){return(mr.ScrollTrigger||eg("scrollTrigger",r))&&mr.ScrollTrigger.create(r,t)},GP=function(t,r,n,i,a){if(sg(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Ce&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&NP!==cr.frame)return Wn.push(t),t._lazy=[a,i],1},hI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Um=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},pI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&hI(t)&&!(!t._initted&&Um(t))||(t._ts<0||t._dp._ts<0)&&!Um(t))?0:1,s=t._rDelay,u=0,l,c,f;if(s&&t._repeat&&(u=Ws(0,t._tDur,r),c=wa(u,s),t._yoyo&&c&1&&(o=1-o),c!==wa(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Ce||i||t._zTime===Kt||!r&&t._zTime){if(!t._initted&&GP(t,r,i,n,u))return;for(f=t._zTime,t._zTime=r||(n?Kt:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=u,l=t._pt;l;)l.r(o,l.d),l=l._next;r<0&&zm(t,r,n,!0),t._onUpdate&&!n&&hr(t,"onUpdate"),u&&t._repeat&&!n&&t.parent&&hr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&Hn(t,1),!n&&!Ce&&(hr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},dI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},Sa=function(t,r,n,i){var a=t._repeat,o=de(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:de(o*(a+1)+t._rDelay*a):o,s>0&&!i&&ac(t,t._tTime=t._tDur*s),t.parent&&ic(t),n||wi(t.parent,t),t},s0=function(t){return t instanceof Fe?wi(t):Sa(t,t._dur)},mI={_start:0,endTime:rs,totalDuration:rs},xr=function e(t,r,n){var i=t.labels,a=t._recent||mI,o=t.duration()>=Or?a.endTime(!1):t._dur,s,u,l;return Ae(r)&&(isNaN(r)||r in i)?(u=r.charAt(0),l=r.substr(-1)==="%",s=r.indexOf("="),u==="<"||u===">"?(s>=0&&(r=r.replace(/=/,"")),(u==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(l?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(u=parseFloat(r.charAt(s-1)+r.substr(s+1)),l&&n&&(u=u/100*(Ne(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+u:o+u)):r==null?o:+r},Ro=function(t,r,n){var i=Pn(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,u;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,u=n;u&&!("immediateRender"in s);)s=u.vars.defaults||{},u=Xe(u.vars.inherit)&&u.parent;o.immediateRender=Xe(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new pe(r[0],o,r[a+1])},Vn=function(t,r){return t||t===0?r(t):r},Ws=function(t,r,n){return n<t?t:n>r?r:n},Ie=function(t,r){return!Ae(t)||!(r=iI.exec(t))?"":r[1]},yI=function(t,r,n){return Vn(n,function(i){return Ws(t,r,i)})},Wm=[].slice,HP=function(t,r){return t&&rn(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&rn(t[0]))&&!t.nodeType&&t!==Kr},vI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Ae(i)&&!r||HP(i,1)?(a=n).push.apply(a,Ar(i)):n.push(i)})||n},Ar=function(t,r,n){return te&&!r&&te.selector?te.selector(t):Ae(t)&&!n&&(qm||!Oa())?Wm.call((r||tg).querySelectorAll(t),0):Ne(t)?vI(t,n):HP(t)?Wm.call(t,0):t?[t]:[]},Gm=function(t){return t=Ar(t)[0]||es("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Ar(r,n.querySelectorAll?n:n===t?es("Invalid scope")||tg.createElement("div"):t)}},KP=function(t){return t.sort(function(){return .5-Math.random()})},YP=function(t){if(oe(t))return t;var r=rn(t)?t:{each:t},n=Si(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,u=isNaN(i)||s,l=r.axis,c=i,f=i;return Ae(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&u&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],g,_,b,x,v,w,S,A,P;if(!d){if(P=r.grid==="auto"?0:(r.grid||[1,Or])[1],!P){for(S=-Or;S<(S=y[P++].getBoundingClientRect().left)&&P<m;);P<m&&P--}for(d=o[m]=[],g=u?Math.min(P,m)*c-.5:i%P,_=P===Or?0:u?m*f/P-.5:i/P|0,S=0,A=Or,w=0;w<m;w++)b=w%P-g,x=_-(w/P|0),d[w]=v=l?Math.abs(l==="y"?x:b):CP(b*b+x*x),v>S&&(S=v),v<A&&(A=v);i==="random"&&KP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(P>m?m-1:l?l==="y"?m/P:P:Math.max(P,m/P))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=Ie(r.amount||r.each)||0,n=n&&m<0?iT(n):n}return m=(d[h]-d.min)/d.max||0,de(d.b+(n?n(m):m)*d.v)+d.u}},Hm=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=de(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Pn(n)?0:Ie(n))}},XP=function(t,r){var n=Ne(t),i,a;return!n&&rn(t)&&(i=n=t.radius||Or,t.values?(t=Ar(t.values),(a=!Pn(t[0]))&&(i*=i)):t=Hm(t.increment)),Vn(r,n?oe(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),u=parseFloat(a?o.y:0),l=Or,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-u,h=h*h+p*p):h=Math.abs(t[f]-s),h<l&&(l=h,c=f);return c=!i||l<=i?t[c]:o,a||c===o||Pn(o)?c:c+Ie(o)}:Hm(t))},VP=function(t,r,n,i){return Vn(Ne(t)?!r:n===!0?!!(n=0):!i,function(){return Ne(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},gI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},bI=function(t,r){return function(n){return t(parseFloat(n))+(r||Ie(n))}},_I=function(t,r,n){return JP(t,r,0,1,n)},ZP=function(t,r,n){return Vn(n,function(i){return t[~~r(i)]})},xI=function e(t,r,n){var i=r-t;return Ne(t)?ZP(t,e(0,t.length),r):Vn(n,function(a){return(i+(a-t)%i)%i+t})},wI=function e(t,r,n){var i=r-t,a=i*2;return Ne(t)?ZP(t,e(0,t.length-1),r):Vn(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},ns=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?jP:Bm),n+=t.substr(r,i-r)+VP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},JP=function(t,r,n,i,a){var o=r-t,s=i-n;return Vn(a,function(u){return n+((u-t)/o*s||0)})},SI=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=Ae(t),s={},u,l,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Ne(t)&&!Ne(r)){for(c=[],f=t.length,h=f-2,l=1;l<f;l++)c.push(e(t[l-1],t[l]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=xa(Ne(t)?[]:{},t));if(!c){for(u in r)og.call(s,t,u,"get",r[u]);a=function(y){return cg(y,s)||(o?t.p:t)}}}return Vn(n,a)},u0=function(t,r,n){var i=t.labels,a=Or,o,s,u;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(u=o,a=s);return u},hr=function(t,r,n){var i=t.vars,a=i[r],o=te,s=t._ctx,u,l,c;if(a)return u=i[r+"Params"],l=i.callbackScope||t,n&&Wn.length&&Qu(),s&&(te=s),c=u?a.apply(l,u):a.call(l),te=o,c},To=function(t){return Hn(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Ce),t.progress()<1&&hr(t,"onInterrupt"),t},ea,QP=[],tT=function(t){if(t)if(t=!t.name&&t.default||t,Qv()||t.headless){var r=t.name,n=oe(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:rs,render:cg,add:og,kill:BI,modifier:LI,rawVars:0},o={targetTest:0,get:0,getSetter:lg,aliases:{},register:0};if(Oa(),t!==i){if(lr[r])return;yr(i,yr(tl(t,a),o)),xa(i.prototype,xa(a,tl(t,o))),lr[i.prop=r]=i,t.targetTest&&(Mu.push(i),rg[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}IP(r,i),t.register&&t.register(er,i,Ze)}else QP.push(t)},Ht=255,Eo={aqua:[0,Ht,Ht],lime:[0,Ht,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ht],navy:[0,0,128],white:[Ht,Ht,Ht],olive:[128,128,0],yellow:[Ht,Ht,0],orange:[Ht,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ht,0,0],pink:[Ht,192,203],cyan:[0,Ht,Ht],transparent:[Ht,Ht,Ht,0]},Jc=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Ht+.5|0},eT=function(t,r,n){var i=t?Pn(t)?[t>>16,t>>8&Ht,t&Ht]:0:Eo.black,a,o,s,u,l,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Eo[t])i=Eo[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Ht,i&Ht,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Ht,t&Ht]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(Bm),!r)u=+i[0]%360/360,l=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(l+1):c+l-c*l,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=Jc(u+1/3,a,o),i[1]=Jc(u,a,o),i[2]=Jc(u-1/3,a,o);else if(~t.indexOf("="))return i=t.match(kP),n&&i.length<4&&(i[3]=1),i}else i=t.match(Bm)||Eo.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Ht,o=i[1]/Ht,s=i[2]/Ht,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?u=l=0:(p=f-h,l=c>.5?p/(2-f-h):p/(f+h),u=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,u*=60),i[0]=~~(u+.5),i[1]=~~(l*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},rT=function(t){var r=[],n=[],i=-1;return t.split(Gn).forEach(function(a){var o=a.match(ta)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},l0=function(t,r,n){var i="",a=(t+i).match(Gn),o=r?"hsla(":"rgba(",s=0,u,l,c,f;if(!a)return t;if(a=a.map(function(h){return(h=eT(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=rT(t),u=n.c,u.join(i)!==c.c.join(i)))for(l=t.replace(Gn,"1").split(ta),f=l.length-1;s<f;s++)i+=l[s]+(~u.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!l)for(l=t.split(Gn),f=l.length-1;s<f;s++)i+=l[s]+a[s];return i+l[f]},Gn=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in Eo)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),OI=/hsl[a]?\(/,nT=function(t){var r=t.join(" "),n;if(Gn.lastIndex=0,Gn.test(r))return n=OI.test(r),t[1]=l0(t[1],n),t[0]=l0(t[0],n,rT(t[1])),!0},is,cr=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],u,l,c,f,h,p,y=function m(d){var g=e()-i,_=d===!0,b,x,v,w;if((g>t||g<0)&&(n+=g-r),i+=g,v=i-n,b=v-o,(b>0||_)&&(w=++f.frame,h=v-f.time*1e3,f.time=v=v/1e3,o+=b+(b>=a?4:a-b),x=1),_||(u=l(m)),x)for(p=0;p<s.length;p++)s[p](v,h,w,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){RP&&(!qm&&Qv()&&(Kr=qm=window,tg=Kr.document||{},mr.gsap=er,(Kr.gsapVersions||(Kr.gsapVersions=[])).push(er.version),DP(Ju||Kr.GreenSockGlobals||!Kr.gsap&&Kr||{}),QP.forEach(tT)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,u&&f.sleep(),l=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},is=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(u),is=0,l=rs},lagSmoothing:function(d,g){t=d||1/0,r=Math.min(g||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,g,_){var b=g?function(x,v,w,S){d(x,v,w,S),f.remove(b)}:d;return f.remove(d),s[_?"unshift":"push"](b),Oa(),b},remove:function(d,g){~(g=s.indexOf(d))&&s.splice(g,1)&&p>=g&&p--},_listeners:s},f})(),Oa=function(){return!is&&cr.wake()},Pt={},AI=/^[\d.\-M][\d.\-,\s]/,PI=/["']/g,TI=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,u,l;a<o;a++)u=n[a],s=a!==o-1?u.lastIndexOf(","):u.length,l=u.substr(0,s),r[i]=isNaN(l)?l.replace(PI,"").trim():+l,i=u.substr(s+1).trim();return r},EI=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},CI=function(t){var r=(t+"").split("("),n=Pt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[TI(r[1])]:EI(t).split(",").map(qP)):Pt._CE&&AI.test(t)?Pt._CE("",t):n},iT=function(t){return function(r){return 1-t(1-r)}},aT=function e(t,r){for(var n=t._first,i;n;)n instanceof Fe?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},Si=function(t,r){return t&&(oe(t)?t:Pt[t]||CI(t))||r},qi=function(t,r,n,i){n===void 0&&(n=function(u){return 1-r(1-u)}),i===void 0&&(i=function(u){return u<.5?r(u*2)/2:1-r((1-u)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return Ve(t,function(s){Pt[s]=mr[s]=a,Pt[o=s.toLowerCase()]=n;for(var u in a)Pt[o+(u==="easeIn"?".in":u==="easeOut"?".out":".inOut")]=Pt[s+"."+u]=a[u]}),a},oT=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},Qc=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/Lm*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*nI((c-o)*a)+1},u=t==="out"?s:t==="in"?function(l){return 1-s(1-l)}:oT(s);return a=Lm/a,u.config=function(l,c){return e(t,l,c)},u},tf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:oT(n);return i.config=function(a){return e(t,a)},i};Ve("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;qi(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Pt.Linear.easeNone=Pt.none=Pt.Linear.easeIn;qi("Elastic",Qc("in"),Qc("out"),Qc());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};qi("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);qi("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});qi("Circ",function(e){return-(CP(1-e*e)-1)});qi("Sine",function(e){return e===1?1:-rI(e*tI)+1});qi("Back",tf("in"),tf("out"),tf());Pt.SteppedEase=Pt.steps=mr.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-Kt;return function(s){return((i*Ws(0,o,s)|0)+a)*n}}};_a.ease=Pt["quad.out"];Ve("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return ng+=e+","+e+"Params,"});var sT=function(t,r){this.id=eI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:LP,this.set=r?r.getSetter:lg},as=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,Sa(this,+r.duration,1,1),this.data=r.data,te&&(this._ctx=te,te.data.push(this)),is||cr.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,Sa(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(Oa(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(ac(this,n),!a._dp||a.parent||UP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&Xr(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Kt||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),BP(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+o0(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+o0(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?wa(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Kt?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?el(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Kt?0:this._rts,this.totalTime(Ws(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),ic(this),cI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Oa(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Kt&&(this._tTime-=Kt)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Xr(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(Xe(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?el(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=oI);var i=Ce;return Ce=n,ag(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Ce=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,s0(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,s0(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(xr(this,n),Xe(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,Xe(i)),this._dur||(this._zTime=-Kt),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Kt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Kt,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-Kt)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=oe(n)?n:FP,s=function(){var l=i.then;i.then=null,oe(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=l),a(o),i.then=l};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){To(this)},e})();yr(as.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Kt,_prom:0,_ps:!1,_rts:1});var Fe=(function(e){EP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=Xe(n.sortChildren),ne&&Xr(n.parent||ne,dn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&WP(dn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return Ro(0,arguments,this),this},r.from=function(i,a,o){return Ro(1,arguments,this),this},r.fromTo=function(i,a,o,s){return Ro(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,jo(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new pe(i,a,xr(this,o),1),this},r.call=function(i,a,o){return Xr(this,pe.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,u,l,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=l,o.onCompleteParams=c,o.parent=this,new pe(i,o,xr(this,u)),this},r.staggerFrom=function(i,a,o,s,u,l,c){return o.runBackwards=1,jo(o).immediateRender=Xe(o.immediateRender),this.staggerTo(i,a,o,s,u,l,c)},r.staggerFromTo=function(i,a,o,s,u,l,c,f){return s.startAt=o,jo(s).immediateRender=Xe(s.immediateRender),this.staggerTo(i,a,s,u,l,c,f)},r.render=function(i,a,o){var s=this._time,u=this._dirty?this.totalDuration():this._tDur,l=this._dur,c=i<=0?0:de(i),f=this._zTime<0!=i<0&&(this._initted||!l),h,p,y,m,d,g,_,b,x,v,w,S;if(this!==ne&&c>u&&i>=0&&(c=u),c!==this._tTime||o||f){if(s!==this._time&&l&&(c+=this._time-s,i+=this._time-s),h=c,x=this._start,b=this._ts,g=!b,f&&(l||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,d=l+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=de(c%d),c===u?(m=this._repeat,h=l):(v=de(c/d),m=~~v,m&&m===v&&(h=l,m--),h>l&&(h=l)),v=wa(this._tTime,d),!s&&this._tTime&&v!==m&&this._tTime-v*d-this._dur<=0&&(v=m),w&&m&1&&(h=l-h,S=1),m!==v&&!this._lock){var A=w&&v&1,P=A===(w&&m&1);if(m<v&&(A=!A),s=A?0:c%l?l:c,this._lock=1,this.render(s||(S?0:de(m*d)),a,!l)._lock=0,this._tTime=c,!a&&this.parent&&hr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||g!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(l=this._dur,u=this._tDur,P&&(this._lock=2,s=A?l:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!g)return this;aT(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(_=dI(this,de(s),de(h)),_&&(c-=h-(h=_._start))),this._tTime=c,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!v&&(hr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&_!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!g){_=0,y&&(c+=this._zTime=-Kt);break}}p=y}else{p=this._last;for(var C=i<0?i:h;p;){if(y=p._prev,(p._act||C<=p._end)&&p._ts&&_!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(C-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(C-p._start)*p._ts,a,o||Ce&&ag(p)),h!==this._time||!this._ts&&!g){_=0,y&&(c+=this._zTime=C?-Kt:Kt);break}}p=y}}if(_&&!a&&(this.pause(),_.render(h>=s?0:-Kt)._zTime=h>=s?1:-1,this._ts))return this._start=x,ic(this),this.render(i,a,o);this._onUpdate&&!a&&hr(this,"onUpdate",!0),(c===u&&this._tTime>=this.totalDuration()||!c&&s)&&(x===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!l)&&(c===u&&this._ts>0||!c&&this._ts<0)&&Hn(this,1),!a&&!(i<0&&!s)&&(c||s||!u)&&(hr(this,c===u&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<u&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(Pn(a)||(a=xr(this,a,i)),!(i instanceof as)){if(Ne(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Ae(i))return this.addLabel(i,a);if(oe(i))i=pe.delayedCall(0,i);else return this}return this!==i?Xr(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Or);for(var u=[],l=this._first;l;)l._start>=s&&(l instanceof pe?a&&u.push(l):(o&&u.push(l),i&&u.push.apply(u,l.getChildren(!0,a,o)))),l=l._next;return u},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return Ae(i)?this.removeLabel(i):oe(i)?this.killTweensOf(i):(i.parent===this&&nc(this,i),i===this._recent&&(this._recent=this._last),wi(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=de(cr.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=xr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=pe.delayedCall(0,a||rs,o);return s.data="isPause",this._hasPause=1,Xr(this,s,xr(this,i))},r.removePause=function(i){var a=this._first;for(i=xr(this,i);a;)a._start===i&&a.data==="isPause"&&Hn(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),u=s.length;u--;)Nn!==s[u]&&s[u].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Ar(i),u=this._first,l=Pn(a),c;u;)u instanceof pe?sI(u._targets,s)&&(l?(!Nn||u._initted&&u._ts)&&u.globalTime(0)<=a&&u.globalTime(u.totalDuration())>a:!a||u.isActive())&&o.push(u):(c=u.getTweensOf(s,a)).length&&o.push.apply(o,c),u=u._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=xr(o,i),u=a,l=u.startAt,c=u.onStart,f=u.onStartParams,h=u.immediateRender,p,y=pe.to(o,yr({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale())||Kt,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(l&&"time"in l?l.time:o._time))/o.timeScale());y._dur!==d&&Sa(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,yr({startAt:{time:xr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),u0(this,xr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),u0(this,xr(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Kt)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,u=this.labels,l;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(l in u)u[l]>=o&&(u[l]+=i);return wi(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),wi(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,u=Or,l,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)l=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>u&&o._sort&&s._ts&&!o._lock?(o._lock=1,Xr(o,s,c-s._delay,1)._lock=0):u=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),u=0),s._end>a&&s._ts&&(a=s._end),s=l;Sa(o,o===ne&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(ne._ts&&(BP(ne,el(i,ne)),NP=cr.frame),cr.frame>=i0){i0+=pr.autoSleep||120;var a=ne._first;if((!a||!a._ts)&&pr.autoSleep&&cr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||cr.sleep()}}},t})(as);yr(Fe.prototype,{_lock:0,_hasPause:0,_forcing:0});var MI=function(t,r,n,i,a,o,s){var u=new Ze(this._pt,t,r,0,1,pT,null,a),l=0,c=0,f,h,p,y,m,d,g,_;for(u.b=n,u.e=i,n+="",i+="",(g=~i.indexOf("random("))&&(i=ns(i)),o&&(_=[n,i],o(_,t,r),n=_[0],i=_[1]),h=n.match(Vc)||[];f=Vc.exec(i);)y=f[0],m=i.substring(l,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,u._pt={_next:u._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?oa(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},l=Vc.lastIndex);return u.c=l<i.length?i.substring(l,i.length):"",u.fp=s,($P.test(i)||g)&&(u.e=0),this._pt=u,u},og=function(t,r,n,i,a,o,s,u,l,c){oe(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:oe(f)?l?t[r.indexOf("set")||!oe(t["get"+r.substr(3)])?r:"get"+r.substr(3)](l):t[r]():f,p=oe(f)?l?DI:fT:ug,y;if(Ae(i)&&(~i.indexOf("random(")&&(i=ns(i)),i.charAt(1)==="="&&(y=oa(h,i)+(Ie(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Km)return!isNaN(h*i)&&i!==""?(y=new Ze(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?NI:hT,0,p),l&&(y.fp=l),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&eg(r,i),MI.call(this,t,r,h,i,p,u||pr.stringFilter,l))},kI=function(t,r,n,i,a){if(oe(t)&&(t=Do(t,a,r,n,i)),!rn(t)||t.style&&t.nodeType||Ne(t)||MP(t))return Ae(t)?Do(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=Do(t[s],a,r,n,i);return o},uT=function(t,r,n,i,a,o){var s,u,l,c;if(lr[t]&&(s=new lr[t]).init(a,s.rawVars?r[t]:kI(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=u=new Ze(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==ea))for(l=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)l[s._props[c]]=u;return s},Nn,Km,sg=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,u=i.lazy,l=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,g=t.parent,_=g&&g.data==="nested"?g.vars.targets:d,b=t._overwrite==="auto"&&!Zv,x=t.timeline,v,w,S,A,P,C,T,E,M,R,$,k,D;if(x&&(!h||!a)&&(a="none"),t._ease=Si(a,_a.ease),t._yEase=f?iT(Si(f===!0?a:f,_a.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!x&&!!i.runBackwards,!x||h&&!i.stagger){if(E=d[0]?xi(d[0]).harness:0,k=E&&i[E.prop],v=tl(i,rg),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?Cu:aI),m._lazy=0),o){if(Hn(t._startAt=pe.set(d,yr({data:"isStart",overwrite:!1,parent:g,immediateRender:!0,lazy:!m&&Xe(u),startAt:null,delay:0,onUpdate:l&&function(){return hr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ce||!s&&!p)&&t._startAt.revert(Cu),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=yr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&Xe(u),immediateRender:s,stagger:0,parent:g},v),k&&(S[E.prop]=k),Hn(t._startAt=pe.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Ce?t._startAt.revert(Cu):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Kt,Kt);else if(!r)return}for(t._pt=t._ptCache=0,u=y&&Xe(u)||u&&!y,w=0;w<d.length;w++){if(P=d[w],T=P._gsap||ig(d)[w]._gsap,t._ptLookup[w]=R={},Fm[T.id]&&Wn.length&&Qu(),$=_===d?w:_.indexOf(P),E&&(M=new E).init(P,k||v,t,$,_)!==!1&&(t._pt=A=new Ze(t._pt,P,M.name,0,1,M.render,M,0,M.priority),M._props.forEach(function(L){R[L]=A}),M.priority&&(C=1)),!E||k)for(S in v)lr[S]&&(M=uT(S,v,t,$,P,_))?M.priority&&(C=1):R[S]=A=og.call(t,P,S,"get",v[S],$,_,0,i.stringFilter);t._op&&t._op[w]&&t.kill(P,t._op[w]),b&&t._pt&&(Nn=t,ne.killTweensOf(P,R,t.globalTime(r)),D=!t.parent,Nn=0),t._pt&&u&&(Fm[T.id]=1)}C&&dT(t),t._onInit&&t._onInit(t)}t._onUpdate=l,t._initted=(!t._op||t._pt)&&!D,h&&r<=0&&x.render(Or,!0,!0)},$I=function(t,r,n,i,a,o,s,u){var l=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!l)for(l=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return Km=1,t.vars[r]="+=0",sg(t,s),Km=0,u?es(r+" not eligible for reset"):1;l.push(c)}for(p=l.length;p--;)f=l[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=ue(n)+Ie(f.e)),f.b&&(f.b=c.s+Ie(f.b))},jI=function(t,r){var n=t[0]?xi(t[0]).harness:0,i=n&&n.aliases,a,o,s,u;if(!i)return r;a=xa({},r);for(o in i)if(o in a)for(u=i[o].split(","),s=u.length;s--;)a[u[s]]=a[o];return a},RI=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Ne(r))s=n[t]||(n[t]=[]),r.forEach(function(u,l){return s.push({t:l/(r.length-1)*100,v:u,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},Do=function(t,r,n,i,a){return oe(t)?t.call(r,n,i,a):Ae(t)&&~t.indexOf("random(")?ns(t):t},lT=ng+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",cT={};Ve(lT+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return cT[e]=1});var pe=(function(e){EP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:jo(i))||this;var u=s.vars,l=u.duration,c=u.delay,f=u.immediateRender,h=u.stagger,p=u.overwrite,y=u.keyframes,m=u.defaults,d=u.scrollTrigger,g=u.yoyoEase,_=i.parent||ne,b=(Ne(n)||MP(n)?Pn(n[0]):"length"in i)?[n]:Ar(n),x,v,w,S,A,P,C,T;if(s._targets=b.length?ig(b):es("GSAP target "+n+" not found. https://gsap.com",!pr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||su(l)||su(c)){if(i=s.vars,x=s.timeline=new Fe({data:"nested",defaults:m||{},targets:_&&_.data==="nested"?_.vars.targets:b}),x.kill(),x.parent=x._dp=dn(s),x._start=0,h||su(l)||su(c)){if(S=b.length,C=h&&YP(h),rn(h))for(A in h)~lT.indexOf(A)&&(T||(T={}),T[A]=h[A]);for(v=0;v<S;v++)w=tl(i,cT),w.stagger=0,g&&(w.yoyoEase=g),T&&xa(w,T),P=b[v],w.duration=+Do(l,dn(s),v,P,b),w.delay=(+Do(c,dn(s),v,P,b)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),x.to(P,w,C?C(v,P,b):0),x._ease=Pt.none;x.duration()?l=c=0:s.timeline=0}else if(y){jo(yr(x.vars.defaults,{ease:"none"})),x._ease=Si(y.ease||i.ease||"none");var E=0,M,R,$;if(Ne(y))y.forEach(function(k){return x.to(b,k,">")}),x.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||RI(A,y[A],w,y.easeEach);for(A in w)for(M=w[A].sort(function(k,D){return k.t-D.t}),E=0,v=0;v<M.length;v++)R=M[v],$={ease:R.e,duration:(R.t-(v?M[v-1].t:0))/100*l},$[A]=R.v,x.to(b,$,E),E+=$.duration;x.duration()<l&&x.to({},{duration:l-x.duration()})}}l||s.duration(l=x.duration())}else s.timeline=0;return p===!0&&!Zv&&(Nn=dn(s),ne.killTweensOf(b),Nn=0),Xr(_,dn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!l&&!y&&s._start===de(_._time)&&Xe(f)&&fI(dn(s))&&_.data!=="nested")&&(s._tTime=-Kt,s.render(Math.max(0,-c)||0)),d&&WP(dn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,u=this._tDur,l=this._dur,c=i<0,f=i>u-Kt&&!c?u:i<Kt?0:i,h,p,y,m,d,g,_,b,x;if(!l)pI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,b=this.timeline,this._repeat){if(m=l+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=de(f%m),f===u?(y=this._repeat,h=l):(d=de(f/m),y=~~d,y&&y===d?(h=l,y--):h>l&&(h=l)),g=this._yoyo&&y&1,g&&(x=this._yEase,h=l-h),d=wa(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(b&&this._yEase&&aT(b,g),this.vars.repeatRefresh&&!g&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(de(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(GP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(l!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=_=(x||this._ease)(h/l),this._from&&(this.ratio=_=1-_),!s&&f&&!a&&!d&&(hr(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(_,p.d),p=p._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&zm(this,i,a,o),hr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&hr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&zm(this,i,!0,!0),(i||!l)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Hn(this,1),!a&&!(c&&!s)&&(f||s||g)&&(hr(this,f===u?"onComplete":"onReverseComplete",!0),this._prom&&!(f<u&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,u){is||cr.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||sg(this,l),c=this._ease(l/this._dur),$I(this,i,a,o,s,c,l,u)?this.resetTo(i,a,o,s,1):(ac(this,0),this.parent||zP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?To(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Ce),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,Nn&&Nn.vars.overwrite!==!0)._first||To(this),this.parent&&o!==this.timeline.totalDuration()&&Sa(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,u=i?Ar(i):s,l=this._ptLookup,c=this._pt,f,h,p,y,m,d,g;if((!a||a==="all")&&lI(s,u))return a==="all"&&(this._pt=0),To(this);for(f=this._op=this._op||[],a!=="all"&&(Ae(a)&&(m={},Ve(a,function(_){return m[_]=1}),a=m),a=jI(s,a)),g=s.length;g--;)if(~u.indexOf(s[g])){h=l[g],a==="all"?(f[g]=a,y=h,p={}):(p=f[g]=f[g]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&nc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&To(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return Ro(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return Ro(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return ne.killTweensOf(i,a,o)},t})(as);yr(pe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ve("staggerTo,staggerFrom,staggerFromTo",function(e){pe[e]=function(){var t=new Fe,r=Wm.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var ug=function(t,r,n){return t[r]=n},fT=function(t,r,n){return t[r](n)},DI=function(t,r,n,i){return t[r](i.fp,n)},II=function(t,r,n){return t.setAttribute(r,n)},lg=function(t,r){return oe(t[r])?fT:Jv(t[r])&&t.setAttribute?II:ug},hT=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},NI=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},pT=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},cg=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},LI=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},BI=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?nc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},qI=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},dT=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},Ze=(function(){function e(r,n,i,a,o,s,u,l,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||hT,this.d=u||this,this.set=l||ug,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=qI,this.m=n,this.mt=a,this.tween=i},e})();Ve(ng+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return rg[e]=1});mr.TweenMax=mr.TweenLite=pe;mr.TimelineLite=mr.TimelineMax=Fe;ne=new Fe({sortChildren:!1,defaults:_a,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});pr.stringFilter=nT;var Oi=[],ku={},FI=[],c0=0,zI=0,ef=function(t){return(ku[t]||FI).map(function(r){return r()})},Ym=function(){var t=Date.now(),r=[];t-c0>2&&(ef("matchMediaInit"),Oi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,u,l;for(s in i)o=Kr.matchMedia(i[s]).matches,o&&(u=1),o!==a[s]&&(a[s]=o,l=1);l&&(n.revert(),u&&r.push(n))}),ef("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),c0=t,ef("matchMedia"))},mT=(function(){function e(r,n){this.selector=n&&Gm(n),this.data=[],this._r=[],this.isReverted=!1,this.id=zI++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){oe(n)&&(a=i,i=n,n=oe);var o=this,s=function(){var l=te,c=o.selector,f;return l&&l!==o&&l.data.push(o),a&&(o.selector=Gm(a)),te=o,f=i.apply(o,arguments),oe(f)&&o._r.push(f),te=l,o.selector=c,o.isReverted=!1,f};return o.last=s,n===oe?s(o,function(u){return o.add(null,u)}):n?o[n]=s:s},t.ignore=function(n){var i=te;te=null,n(this),te=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof pe&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),u=a.data.length,l;u--;)l=a.data[u],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),u=a.data.length;u--;)l=a.data[u],l instanceof Fe?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof pe)&&l.revert&&l.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=Oi.length;o--;)Oi[o].id===this.id&&Oi.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),UI=(function(){function e(r){this.contexts=[],this.scope=r,te&&te.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){rn(n)||(n={matches:n});var o=new mT(0,a||this.scope),s=o.conditions={},u,l,c;te&&!o.selector&&(o.selector=te.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(l in n)l==="all"?c=1:(u=Kr.matchMedia(n[l]),u&&(Oi.indexOf(o)<0&&Oi.push(o),(s[l]=u.matches)&&(c=1),u.addListener?u.addListener(Ym):u.addEventListener("change",Ym)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),rl={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return tT(i)})},timeline:function(t){return new Fe(t)},getTweensOf:function(t,r){return ne.getTweensOf(t,r)},getProperty:function(t,r,n,i){Ae(t)&&(t=Ar(t)[0]);var a=xi(t||{}).get,o=n?FP:qP;return n==="native"&&(n=""),t&&(r?o((lr[r]&&lr[r].get||a)(t,r,n,i)):function(s,u,l){return o((lr[s]&&lr[s].get||a)(t,s,u,l))})},quickSetter:function(t,r,n){if(t=Ar(t),t.length>1){var i=t.map(function(c){return er.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=lr[r],s=xi(t),u=s.harness&&(s.harness.aliases||{})[r]||r,l=o?function(c){var f=new o;ea._pt=0,f.init(t,n?c+n:c,ea,0,[t]),f.render(1,f),ea._pt&&cg(1,ea)}:s.set(t,u);return o?l:function(c){return l(t,u,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=er.to(t,yr((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(u,l,c){return a.resetTo(r,u,l,c)};return o.tween=a,o},isTweening:function(t){return ne.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Si(t.ease,_a.ease)),a0(_a,t||{})},config:function(t){return a0(pr,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!lr[s]&&!mr[s]&&es(r+" effect requires "+s+" plugin.")}),Zc[r]=function(s,u,l){return n(Ar(s),yr(u||{},a),l)},o&&(Fe.prototype[r]=function(s,u,l){return this.add(Zc[r](s,rn(u)?u:(l=u)&&{},this),l)})},registerEase:function(t,r){Pt[t]=Si(r)},parseEase:function(t,r){return arguments.length?Si(t,r):Pt},getById:function(t){return ne.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Fe(t),i,a;for(n.smoothChildTiming=Xe(t.smoothChildTiming),ne.remove(n),n._dp=0,n._time=n._tTime=ne._time,i=ne._first;i;)a=i._next,(r||!(!i._dur&&i instanceof pe&&i.vars.onComplete===i._targets[0]))&&Xr(n,i,i._start-i._delay),i=a;return Xr(ne,n,0),n},context:function(t,r){return t?new mT(t,r):te},matchMedia:function(t){return new UI(t)},matchMediaRefresh:function(){return Oi.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||Ym()},addEventListener:function(t,r){var n=ku[t]||(ku[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=ku[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:xI,wrapYoyo:wI,distribute:YP,random:VP,snap:XP,normalize:_I,getUnit:Ie,clamp:yI,splitColor:eT,toArray:Ar,selector:Gm,mapRange:JP,pipe:gI,unitize:bI,interpolate:SI,shuffle:KP},install:DP,effects:Zc,ticker:cr,updateRoot:Fe.updateRoot,plugins:lr,globalTimeline:ne,core:{PropTween:Ze,globals:IP,Tween:pe,Timeline:Fe,Animation:as,getCache:xi,_removeLinkedListItem:nc,reverting:function(){return Ce},context:function(t){return t&&te&&(te.data.push(t),t._ctx=te),te},suppressOverwrites:function(t){return Zv=t}}};Ve("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return rl[e]=pe[e]});cr.add(Fe.updateRoot);ea=rl.to({},{duration:0});var WI=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},GI=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=WI(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},rf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var u,l;if(Ae(a)&&(u={},Ve(a,function(c){return u[c]=1}),a=u),r){u={};for(l in a)u[l]=r(a[l]);a=u}GI(s,a)}}}},er=rl.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,u;this.tween=n;for(o in r)u=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(u||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=u,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)Ce?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},rf("roundProps",Hm),rf("modifiers"),rf("snap",XP))||rl;pe.version=Fe.version=er.version="3.13.0";RP=1;Qv()&&Oa();Pt.Power0;Pt.Power1;Pt.Power2;Pt.Power3;Pt.Power4;Pt.Linear;Pt.Quad;Pt.Cubic;Pt.Quart;Pt.Quint;Pt.Strong;Pt.Elastic;Pt.Back;Pt.SteppedEase;Pt.Bounce;Pt.Sine;Pt.Expo;Pt.Circ;/*!
8
+ */var Er={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Qa={duration:.5,overwrite:!1,delay:0},jv,Be,te,Lr=1e8,Ut=1/Lr,_y=Math.PI*2,RI=_y/4,DI=0,cP=Math.sqrt,II=Math.cos,NI=Math.sin,$e=function(t){return typeof t=="string"},ue=function(t){return typeof t=="function"},Yn=function(t){return typeof t=="number"},Rv=function(t){return typeof t>"u"},Tn=function(t){return typeof t=="object"},ur=function(t){return t!==!1},Dv=function(){return typeof window<"u"},Fl=function(t){return ue(t)||$e(t)},fP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Xe=Array.isArray,xy=/(?:-?\.?\d|\.)+/gi,hP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ja=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Rf=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pP=/[+-]=-?[.\d]+/,dP=/[^,'"\[\]\s]+/gi,LI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,ie,gn,wy,Iv,Mr={},ku={},mP,yP=function(t){return(ku=to(t,Mr))&&mr},Nv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},Is=function(t,r){return!r&&console.warn(t)},gP=function(t,r){return t&&(Mr[t]=r)&&ku&&(ku[t]=r)||Mr},Ns=function(){return 0},BI={suppressEvents:!0,isStart:!0,kill:!1},lu={suppressEvents:!0,kill:!1},qI={suppressEvents:!0},Lv={},mi=[],Sy={},vP,Ar={},Df={},qb=30,uu=[],Bv="",qv=function(t){var r=t[0],n,i;if(Tn(r)||ue(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=uu.length;i--&&!uu[i].targetTest(r););n=uu[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new zP(t[i],n)))||t.splice(i,1);return t},Vi=function(t){return t._gsap||qv(Br(t))[0]._gsap},bP=function(t,r,n){return(n=t[r])&&ue(n)?t[r]():Rv(n)&&t.getAttribute&&t.getAttribute(r)||n},cr=function(t,r){return(t=t.split(",")).forEach(r)||t},fe=function(t){return Math.round(t*1e5)/1e5||0},ge=function(t){return Math.round(t*1e7)/1e7||0},Ba=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},FI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},$u=function(){var t=mi.length,r=mi.slice(0),n,i;for(Sy={},mi.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Fv=function(t){return!!(t._initted||t._startAt||t.add)},_P=function(t,r,n,i){mi.length&&!Be&&$u(),t.render(r,n,!!(Be&&r<0&&Fv(t))),mi.length&&!Be&&$u()},xP=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(dP).length<2?r:$e(t)?t.trim():t},wP=function(t){return t},kr=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},zI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},to=function(t,r){for(var n in r)t[n]=r[n];return t},Fb=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=Tn(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},ju=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},ps=function(t){var r=t.parent||ie,n=t.keyframes?zI(Xe(t.keyframes)):kr;if(ur(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},UI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},SP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},Dc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},gi=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Zi=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},WI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Ay=function(t,r,n,i){return t._startAt&&(Be?t._startAt.revert(lu):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},HI=function e(t){return!t||t._ts&&e(t.parent)},zb=function(t){return t._repeat?eo(t._tTime,t=t.duration()+t._rDelay)*t:0},eo=function(t,r){var n=Math.floor(t=ge(t/r));return t&&n===t?n-1:n},Ru=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Ic=function(t){return t._end=ge(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ut)||0))},Nc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=ge(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Ic(t),n._dirty||Zi(n,t)),t},AP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=Ru(t.rawTime(),r),(!r._dur||Ol(0,r.totalDuration(),n)-r._tTime>Ut)&&r.render(n,!0)),Zi(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-Ut}},bn=function(t,r,n,i){return r.parent&&gi(r),r._start=ge((Yn(n)?n:n||t!==ie?Dr(t,n,r):t._time)+r._delay),r._end=ge(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),SP(t,r,"_first","_last",t._sort?"_start":0),Oy(r)||(t._recent=r),i||AP(t,r),t._ts<0&&Nc(t,t._tTime),t},OP=function(t,r){return(Mr.ScrollTrigger||Nv("scrollTrigger",r))&&Mr.ScrollTrigger.create(r,t)},TP=function(t,r,n,i,a){if(Uv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!Be&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vP!==Or.frame)return mi.push(t),t._lazy=[a,i],1},GI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Oy=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},KI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&GI(t)&&!(!t._initted&&Oy(t))||(t._ts<0||t._dp._ts<0)&&!Oy(t))?0:1,s=t._rDelay,l=0,u,c,f;if(s&&t._repeat&&(l=Ol(0,t._tDur,r),c=eo(l,s),t._yoyo&&c&1&&(o=1-o),c!==eo(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||Be||i||t._zTime===Ut||!r&&t._zTime){if(!t._initted&&TP(t,r,i,n,l))return;for(f=t._zTime,t._zTime=r||(n?Ut:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;r<0&&Ay(t,r,n,!0),t._onUpdate&&!n&&Pr(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Pr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&gi(t,1),!n&&!Be&&(Pr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},XI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},ro=function(t,r,n,i){var a=t._repeat,o=ge(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:ge(o*(a+1)+t._rDelay*a):o,s>0&&!i&&Nc(t,t._tTime=t._tDur*s),t.parent&&Ic(t),n||Zi(t.parent,t),t},Ub=function(t){return t instanceof Je?Zi(t):ro(t,t._dur)},YI={_start:0,endTime:Ns,totalDuration:Ns},Dr=function e(t,r,n){var i=t.labels,a=t._recent||YI,o=t.duration()>=Lr?a.endTime(!1):t._dur,s,l,u;return $e(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),u&&n&&(l=l/100*(Xe(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+l:o+l)):r==null?o:+r},ds=function(t,r,n){var i=Yn(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,l;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,l=n;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=ur(l.vars.inherit)&&l.parent;o.immediateRender=ur(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new ye(r[0],o,r[a+1])},xi=function(t,r){return t||t===0?r(t):r},Ol=function(t,r,n){return n<t?t:n>r?r:n},Ke=function(t,r){return!$e(t)||!(r=LI.exec(t))?"":r[1]},VI=function(t,r,n){return xi(n,function(i){return Ol(t,r,i)})},Ty=[].slice,PP=function(t,r){return t&&Tn(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&Tn(t[0]))&&!t.nodeType&&t!==gn},ZI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return $e(i)&&!r||PP(i,1)?(a=n).push.apply(a,Br(i)):n.push(i)})||n},Br=function(t,r,n){return te&&!r&&te.selector?te.selector(t):$e(t)&&!n&&(wy||!no())?Ty.call((r||Iv).querySelectorAll(t),0):Xe(t)?ZI(t,n):PP(t)?Ty.call(t,0):t?[t]:[]},Py=function(t){return t=Br(t)[0]||Is("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return Br(r,n.querySelectorAll?n:n===t?Is("Invalid scope")||Iv.createElement("div"):t)}},EP=function(t){return t.sort(function(){return .5-Math.random()})},CP=function(t){if(ue(t))return t;var r=Tn(t)?t:{each:t},n=Ji(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,l=isNaN(i)||s,u=r.axis,c=i,f=i;return $e(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],v,x,b,_,g,w,S,A,T;if(!d){if(T=r.grid==="auto"?0:(r.grid||[1,Lr])[1],!T){for(S=-Lr;S<(S=y[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(d=o[m]=[],v=l?Math.min(T,m)*c-.5:i%T,x=T===Lr?0:l?m*f/T-.5:i/T|0,S=0,A=Lr,w=0;w<m;w++)b=w%T-v,_=x-(w/T|0),d[w]=g=u?Math.abs(u==="y"?_:b):cP(b*b+_*_),g>S&&(S=g),g<A&&(A=g);i==="random"&&EP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(T>m?m-1:u?u==="y"?m/T:T:Math.max(T,m/T))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=Ke(r.amount||r.each)||0,n=n&&m<0?BP(n):n}return m=(d[h]-d.min)/d.max||0,ge(d.b+(n?n(m):m)*d.v)+d.u}},Ey=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=ge(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(Yn(n)?0:Ke(n))}},MP=function(t,r){var n=Xe(t),i,a;return!n&&Tn(t)&&(i=n=t.radius||Lr,t.values?(t=Br(t.values),(a=!Yn(t[0]))&&(i*=i)):t=Ey(t.increment)),xi(r,n?ue(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),l=parseFloat(a?o.y:0),u=Lr,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-l,h=h*h+p*p):h=Math.abs(t[f]-s),h<u&&(u=h,c=f);return c=!i||u<=i?t[c]:o,a||c===o||Yn(o)?c:c+Ke(o)}:Ey(t))},kP=function(t,r,n,i){return xi(Xe(t)?!r:n===!0?!!(n=0):!i,function(){return Xe(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},JI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},QI=function(t,r){return function(n){return t(parseFloat(n))+(r||Ke(n))}},tN=function(t,r,n){return jP(t,r,0,1,n)},$P=function(t,r,n){return xi(n,function(i){return t[~~r(i)]})},eN=function e(t,r,n){var i=r-t;return Xe(t)?$P(t,e(0,t.length),r):xi(n,function(a){return(i+(a-t)%i)%i+t})},rN=function e(t,r,n){var i=r-t,a=i*2;return Xe(t)?$P(t,e(0,t.length-1),r):xi(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Ls=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?dP:xy),n+=t.substr(r,i-r)+kP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},jP=function(t,r,n,i,a){var o=r-t,s=i-n;return xi(a,function(l){return n+((l-t)/o*s||0)})},nN=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=$e(t),s={},l,u,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(Xe(t)&&!Xe(r)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(e(t[u-1],t[u]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=to(Xe(t)?[]:{},t));if(!c){for(l in r)zv.call(s,t,l,"get",r[l]);a=function(y){return Gv(y,s)||(o?t.p:t)}}}return xi(n,a)},Wb=function(t,r,n){var i=t.labels,a=Lr,o,s,l;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(l=o,a=s);return l},Pr=function(t,r,n){var i=t.vars,a=i[r],o=te,s=t._ctx,l,u,c;if(a)return l=i[r+"Params"],u=i.callbackScope||t,n&&mi.length&&$u(),s&&(te=s),c=l?a.apply(u,l):a.call(u),te=o,c},ss=function(t){return gi(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Be),t.progress()<1&&Pr(t,"onInterrupt"),t},Ra,RP=[],DP=function(t){if(t)if(t=!t.name&&t.default||t,Dv()||t.headless){var r=t.name,n=ue(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:Ns,render:Gv,add:zv,kill:bN,modifier:vN,rawVars:0},o={targetTest:0,get:0,getSetter:Hv,aliases:{},register:0};if(no(),t!==i){if(Ar[r])return;kr(i,kr(ju(t,a),o)),to(i.prototype,to(a,ju(t,o))),Ar[i.prop=r]=i,t.targetTest&&(uu.push(i),Lv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}gP(r,i),t.register&&t.register(mr,i,fr)}else RP.push(t)},zt=255,ls={aqua:[0,zt,zt],lime:[0,zt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,zt],navy:[0,0,128],white:[zt,zt,zt],olive:[128,128,0],yellow:[zt,zt,0],orange:[zt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[zt,0,0],pink:[zt,192,203],cyan:[0,zt,zt],transparent:[zt,zt,zt,0]},If=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*zt+.5|0},IP=function(t,r,n){var i=t?Yn(t)?[t>>16,t>>8&zt,t&zt]:0:ls.black,a,o,s,l,u,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ls[t])i=ls[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&zt,i&zt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&zt,t&zt]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(xy),!r)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=If(l+1/3,a,o),i[1]=If(l,a,o),i[2]=If(l-1/3,a,o);else if(~t.indexOf("="))return i=t.match(hP),n&&i.length<4&&(i[3]=1),i}else i=t.match(xy)||ls.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/zt,o=i[1]/zt,s=i[2]/zt,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?l=u=0:(p=f-h,u=c>.5?p/(2-f-h):p/(f+h),l=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},NP=function(t){var r=[],n=[],i=-1;return t.split(yi).forEach(function(a){var o=a.match(ja)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Hb=function(t,r,n){var i="",a=(t+i).match(yi),o=r?"hsla(":"rgba(",s=0,l,u,c,f;if(!a)return t;if(a=a.map(function(h){return(h=IP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=NP(t),l=n.c,l.join(i)!==c.c.join(i)))for(u=t.replace(yi,"1").split(ja),f=u.length-1;s<f;s++)i+=u[s]+(~l.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!u)for(u=t.split(yi),f=u.length-1;s<f;s++)i+=u[s]+a[s];return i+u[f]},yi=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ls)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),iN=/hsl[a]?\(/,LP=function(t){var r=t.join(" "),n;if(yi.lastIndex=0,yi.test(r))return n=iN.test(r),t[1]=Hb(t[1],n),t[0]=Hb(t[0],n,NP(t[1])),!0},Bs,Or=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],l,u,c,f,h,p,y=function m(d){var v=e()-i,x=d===!0,b,_,g,w;if((v>t||v<0)&&(n+=v-r),i+=v,g=i-n,b=g-o,(b>0||x)&&(w=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=b+(b>=a?4:a-b),_=1),x||(l=u(m)),_)for(p=0;p<s.length;p++)s[p](g,h,w,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){mP&&(!wy&&Dv()&&(gn=wy=window,Iv=gn.document||{},Mr.gsap=mr,(gn.gsapVersions||(gn.gsapVersions=[])).push(mr.version),yP(ku||gn.GreenSockGlobals||!gn.gsap&&gn||{}),RP.forEach(DP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},Bs=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Bs=0,u=Ns},lagSmoothing:function(d,v){t=d||1/0,r=Math.min(v||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,v,x){var b=v?function(_,g,w,S){d(_,g,w,S),f.remove(b)}:d;return f.remove(d),s[x?"unshift":"push"](b),no(),b},remove:function(d,v){~(v=s.indexOf(d))&&s.splice(v,1)&&p>=v&&p--},_listeners:s},f})(),no=function(){return!Bs&&Or.wake()},Tt={},aN=/^[\d.\-M][\d.\-,\s]/,oN=/["']/g,sN=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,l,u;a<o;a++)l=n[a],s=a!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,s),r[i]=isNaN(u)?u.replace(oN,"").trim():+u,i=l.substr(s+1).trim();return r},lN=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},uN=function(t){var r=(t+"").split("("),n=Tt[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[sN(r[1])]:lN(t).split(",").map(xP)):Tt._CE&&aN.test(t)?Tt._CE("",t):n},BP=function(t){return function(r){return 1-t(1-r)}},qP=function e(t,r){for(var n=t._first,i;n;)n instanceof Je?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},Ji=function(t,r){return t&&(ue(t)?t:Tt[t]||uN(t))||r},ya=function(t,r,n,i){n===void 0&&(n=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return cr(t,function(s){Tt[s]=Mr[s]=a,Tt[o=s.toLowerCase()]=n;for(var l in a)Tt[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Tt[s+"."+l]=a[l]}),a},FP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},Nf=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/_y*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*NI((c-o)*a)+1},l=t==="out"?s:t==="in"?function(u){return 1-s(1-u)}:FP(s);return a=_y/a,l.config=function(u,c){return e(t,u,c)},l},Lf=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:FP(n);return i.config=function(a){return e(t,a)},i};cr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;ya(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Tt.Linear.easeNone=Tt.none=Tt.Linear.easeIn;ya("Elastic",Nf("in"),Nf("out"),Nf());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};ya("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);ya("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});ya("Circ",function(e){return-(cP(1-e*e)-1)});ya("Sine",function(e){return e===1?1:-II(e*RI)+1});ya("Back",Lf("in"),Lf("out"),Lf());Tt.SteppedEase=Tt.steps=Mr.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-Ut;return function(s){return((i*Ol(0,o,s)|0)+a)*n}}};Qa.ease=Tt["quad.out"];cr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Bv+=e+","+e+"Params,"});var zP=function(t,r){this.id=DI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:bP,this.set=r?r.getSetter:Hv},qs=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,ro(this,+r.duration,1,1),this.data=r.data,te&&(this._ctx=te,te.data.push(this)),Bs||Or.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,ro(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(no(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Nc(this,n),!a._dp||a.parent||AP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&bn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===Ut||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),_P(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+zb(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+zb(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?eo(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-Ut?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?Ru(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-Ut?0:this._rts,this.totalTime(Ol(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Ic(this),WI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(no(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ut&&(this._tTime-=Ut)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&bn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(ur(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ru(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=qI);var i=Be;return Be=n,Fv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),Be=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Ub(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Ub(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Dr(this,n),ur(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,ur(i)),this._dur||(this._zTime=-Ut),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-Ut:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ut,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-Ut)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=ue(n)?n:wP,s=function(){var u=i.then;i.then=null,ue(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),a(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){ss(this)},e})();kr(qs.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ut,_prom:0,_ps:!1,_rts:1});var Je=(function(e){uP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=ur(n.sortChildren),ie&&bn(n.parent||ie,Nn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&OP(Nn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return ds(0,arguments,this),this},r.from=function(i,a,o){return ds(1,arguments,this),this},r.fromTo=function(i,a,o,s){return ds(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,ps(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new ye(i,a,Dr(this,o),1),this},r.call=function(i,a,o){return bn(this,ye.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,l,u,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new ye(i,o,Dr(this,l)),this},r.staggerFrom=function(i,a,o,s,l,u,c){return o.runBackwards=1,ps(o).immediateRender=ur(o.immediateRender),this.staggerTo(i,a,o,s,l,u,c)},r.staggerFromTo=function(i,a,o,s,l,u,c,f){return s.startAt=o,ps(s).immediateRender=ur(s.immediateRender),this.staggerTo(i,a,s,l,u,c,f)},r.render=function(i,a,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:ge(i),f=this._zTime<0!=i<0&&(this._initted||!u),h,p,y,m,d,v,x,b,_,g,w,S;if(this!==ie&&c>l&&i>=0&&(c=l),c!==this._tTime||o||f){if(s!==this._time&&u&&(c+=this._time-s,i+=this._time-s),h=c,_=this._start,b=this._ts,v=!b,f&&(u||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,d=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=ge(c%d),c===l?(m=this._repeat,h=u):(g=ge(c/d),m=~~g,m&&m===g&&(h=u,m--),h>u&&(h=u)),g=eo(this._tTime,d),!s&&this._tTime&&g!==m&&this._tTime-g*d-this._dur<=0&&(g=m),w&&m&1&&(h=u-h,S=1),m!==g&&!this._lock){var A=w&&g&1,T=A===(w&&m&1);if(m<g&&(A=!A),s=A?0:c%u?u:c,this._lock=1,this.render(s||(S?0:ge(m*d)),a,!u)._lock=0,this._tTime=c,!a&&this.parent&&Pr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||v!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,T&&(this._lock=2,s=A?u:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!v)return this;qP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(x=XI(this,ge(s),ge(h)),x&&(c-=h-(h=x._start))),this._tTime=c,this._time=h,this._act=!b,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!g&&(Pr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&x!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!v){x=0,y&&(c+=this._zTime=-Ut);break}}p=y}else{p=this._last;for(var M=i<0?i:h;p;){if(y=p._prev,(p._act||M<=p._end)&&p._ts&&x!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(M-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(M-p._start)*p._ts,a,o||Be&&Fv(p)),h!==this._time||!this._ts&&!v){x=0,y&&(c+=this._zTime=M?-Ut:Ut);break}}p=y}}if(x&&!a&&(this.pause(),x.render(h>=s?0:-Ut)._zTime=h>=s?1:-1,this._ts))return this._start=_,Ic(this),this.render(i,a,o);this._onUpdate&&!a&&Pr(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(_===this._start||Math.abs(b)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&gi(this,1),!a&&!(i<0&&!s)&&(c||s||!l)&&(Pr(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(Yn(a)||(a=Dr(this,a,i)),!(i instanceof qs)){if(Xe(i))return i.forEach(function(s){return o.add(s,a)}),this;if($e(i))return this.addLabel(i,a);if(ue(i))i=ye.delayedCall(0,i);else return this}return this!==i?bn(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Lr);for(var l=[],u=this._first;u;)u._start>=s&&(u instanceof ye?a&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,a,o)))),u=u._next;return l},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return $e(i)?this.removeLabel(i):ue(i)?this.killTweensOf(i):(i.parent===this&&Dc(this,i),i===this._recent&&(this._recent=this._last),Zi(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ge(Or.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=Dr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=ye.delayedCall(0,a||Ns,o);return s.data="isPause",this._hasPause=1,bn(this,s,Dr(this,i))},r.removePause=function(i){var a=this._first;for(i=Dr(this,i);a;)a._start===i&&a.data==="isPause"&&gi(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),l=s.length;l--;)li!==s[l]&&s[l].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=Br(i),l=this._first,u=Yn(a),c;l;)l instanceof ye?FI(l._targets,s)&&(u?(!li||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&o.push(l):(c=l.getTweensOf(s,a)).length&&o.push.apply(o,c),l=l._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=Dr(o,i),l=a,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,p,y=ye.to(o,kr({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale())||Ut,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale());y._dur!==d&&ro(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,kr({startAt:{time:Dr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Dr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Wb(this,Dr(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+Ut)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,u;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(u in l)l[u]>=o&&(l[u]+=i);return Zi(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Zi(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,l=Lr,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)u=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,bn(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=u;ro(o,o===ie&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(ie._ts&&(_P(ie,Ru(i,ie)),vP=Or.frame),Or.frame>=qb){qb+=Er.autoSleep||120;var a=ie._first;if((!a||!a._ts)&&Er.autoSleep&&Or._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Or.sleep()}}},t})(qs);kr(Je.prototype,{_lock:0,_hasPause:0,_forcing:0});var cN=function(t,r,n,i,a,o,s){var l=new fr(this._pt,t,r,0,1,XP,null,a),u=0,c=0,f,h,p,y,m,d,v,x;for(l.b=n,l.e=i,n+="",i+="",(v=~i.indexOf("random("))&&(i=Ls(i)),o&&(x=[n,i],o(x,t,r),n=x[0],i=x[1]),h=n.match(Rf)||[];f=Rf.exec(i);)y=f[0],m=i.substring(u,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?Ba(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},u=Rf.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=s,(pP.test(i)||v)&&(l.e=0),this._pt=l,l},zv=function(t,r,n,i,a,o,s,l,u,c){ue(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:ue(f)?u?t[r.indexOf("set")||!ue(t["get"+r.substr(3)])?r:"get"+r.substr(3)](u):t[r]():f,p=ue(f)?u?mN:GP:Wv,y;if($e(i)&&(~i.indexOf("random(")&&(i=Ls(i)),i.charAt(1)==="="&&(y=Ba(h,i)+(Ke(h)||0),(y||y===0)&&(i=y))),!c||h!==i||Cy)return!isNaN(h*i)&&i!==""?(y=new fr(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?gN:KP,0,p),u&&(y.fp=u),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Nv(r,i),cN.call(this,t,r,h,i,p,l||Er.stringFilter,u))},fN=function(t,r,n,i,a){if(ue(t)&&(t=ms(t,a,r,n,i)),!Tn(t)||t.style&&t.nodeType||Xe(t)||fP(t))return $e(t)?ms(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=ms(t[s],a,r,n,i);return o},UP=function(t,r,n,i,a,o){var s,l,u,c;if(Ar[t]&&(s=new Ar[t]).init(a,s.rawVars?r[t]:fN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=l=new fr(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==Ra))for(u=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)u[s._props[c]]=l;return s},li,Cy,Uv=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,l=i.lazy,u=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,v=t.parent,x=v&&v.data==="nested"?v.vars.targets:d,b=t._overwrite==="auto"&&!jv,_=t.timeline,g,w,S,A,T,M,P,E,C,k,j,R,L;if(_&&(!h||!a)&&(a="none"),t._ease=Ji(a,Qa.ease),t._yEase=f?BP(Ji(f===!0?a:f,Qa.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!_&&!!i.runBackwards,!_||h&&!i.stagger){if(E=d[0]?Vi(d[0]).harness:0,R=E&&i[E.prop],g=ju(i,Lv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?lu:BI),m._lazy=0),o){if(gi(t._startAt=ye.set(d,kr({data:"isStart",overwrite:!1,parent:v,immediateRender:!0,lazy:!m&&ur(l),startAt:null,delay:0,onUpdate:u&&function(){return Pr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Be||!s&&!p)&&t._startAt.revert(lu),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=kr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&ur(l),immediateRender:s,stagger:0,parent:v},g),R&&(S[E.prop]=R),gi(t._startAt=ye.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(Be?t._startAt.revert(lu):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,Ut,Ut);else if(!r)return}for(t._pt=t._ptCache=0,l=y&&ur(l)||l&&!y,w=0;w<d.length;w++){if(T=d[w],P=T._gsap||qv(d)[w]._gsap,t._ptLookup[w]=k={},Sy[P.id]&&mi.length&&$u(),j=x===d?w:x.indexOf(T),E&&(C=new E).init(T,R||g,t,j,x)!==!1&&(t._pt=A=new fr(t._pt,T,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(z){k[z]=A}),C.priority&&(M=1)),!E||R)for(S in g)Ar[S]&&(C=UP(S,g,t,j,T,x))?C.priority&&(M=1):k[S]=A=zv.call(t,T,S,"get",g[S],j,x,0,i.stringFilter);t._op&&t._op[w]&&t.kill(T,t._op[w]),b&&t._pt&&(li=t,ie.killTweensOf(T,k,t.globalTime(r)),L=!t.parent,li=0),t._pt&&l&&(Sy[P.id]=1)}M&&YP(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!L,h&&r<=0&&_.render(Lr,!0,!0)},hN=function(t,r,n,i,a,o,s,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!u)for(u=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return Cy=1,t.vars[r]="+=0",Uv(t,s),Cy=0,l?Is(r+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=fe(n)+Ke(f.e)),f.b&&(f.b=c.s+Ke(f.b))},pN=function(t,r){var n=t[0]?Vi(t[0]).harness:0,i=n&&n.aliases,a,o,s,l;if(!i)return r;a=to({},r);for(o in i)if(o in a)for(l=i[o].split(","),s=l.length;s--;)a[l[s]]=a[o];return a},dN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(Xe(r))s=n[t]||(n[t]=[]),r.forEach(function(l,u){return s.push({t:u/(r.length-1)*100,v:l,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},ms=function(t,r,n,i,a){return ue(t)?t.call(r,n,i,a):$e(t)&&~t.indexOf("random(")?Ls(t):t},WP=Bv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",HP={};cr(WP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return HP[e]=1});var ye=(function(e){uP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:ps(i))||this;var l=s.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,y=l.keyframes,m=l.defaults,d=l.scrollTrigger,v=l.yoyoEase,x=i.parent||ie,b=(Xe(n)||fP(n)?Yn(n[0]):"length"in i)?[n]:Br(n),_,g,w,S,A,T,M,P;if(s._targets=b.length?qv(b):Is("GSAP target "+n+" not found. https://gsap.com",!Er.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Fl(u)||Fl(c)){if(i=s.vars,_=s.timeline=new Je({data:"nested",defaults:m||{},targets:x&&x.data==="nested"?x.vars.targets:b}),_.kill(),_.parent=_._dp=Nn(s),_._start=0,h||Fl(u)||Fl(c)){if(S=b.length,M=h&&CP(h),Tn(h))for(A in h)~WP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)w=ju(i,HP),w.stagger=0,v&&(w.yoyoEase=v),P&&to(w,P),T=b[g],w.duration=+ms(u,Nn(s),g,T,b),w.delay=(+ms(c,Nn(s),g,T,b)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),_.to(T,w,M?M(g,T,b):0),_._ease=Tt.none;_.duration()?u=c=0:s.timeline=0}else if(y){ps(kr(_.vars.defaults,{ease:"none"})),_._ease=Ji(y.ease||i.ease||"none");var E=0,C,k,j;if(Xe(y))y.forEach(function(R){return _.to(b,R,">")}),_.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||dN(A,y[A],w,y.easeEach);for(A in w)for(C=w[A].sort(function(R,L){return R.t-L.t}),E=0,g=0;g<C.length;g++)k=C[g],j={ease:k.e,duration:(k.t-(g?C[g-1].t:0))/100*u},j[A]=k.v,_.to(b,j,E),E+=j.duration;_.duration()<u&&_.to({},{duration:u-_.duration()})}}u||s.duration(u=_.duration())}else s.timeline=0;return p===!0&&!jv&&(li=Nn(s),ie.killTweensOf(b),li=0),bn(x,Nn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!u&&!y&&s._start===ge(x._time)&&ur(f)&&HI(Nn(s))&&x.data!=="nested")&&(s._tTime=-Ut,s.render(Math.max(0,-c)||0)),d&&OP(Nn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,l=this._tDur,u=this._dur,c=i<0,f=i>l-Ut&&!c?l:i<Ut?0:i,h,p,y,m,d,v,x,b,_;if(!u)KI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,b=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=ge(f%m),f===l?(y=this._repeat,h=u):(d=ge(f/m),y=~~d,y&&y===d?(h=u,y--):h>u&&(h=u)),v=this._yoyo&&y&1,v&&(_=this._yEase,h=u-h),d=eo(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(b&&this._yEase&&qP(b,v),this.vars.repeatRefresh&&!v&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(ge(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(TP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(u!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=x=(_||this._ease)(h/u),this._from&&(this.ratio=x=1-x),!s&&f&&!a&&!d&&(Pr(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(x,p.d),p=p._next;b&&b.render(i<0?i:b._dur*b._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&Ay(this,i,a,o),Pr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&Pr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Ay(this,i,!0,!0),(i||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&gi(this,1),!a&&!(c&&!s)&&(f||s||v)&&(Pr(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,l){Bs||Or.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Uv(this,u),c=this._ease(u/this._dur),hN(this,i,a,o,s,c,u,l)?this.resetTo(i,a,o,s,1):(Nc(this,0),this.parent||SP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?ss(this):this.scrollTrigger&&this.scrollTrigger.kill(!!Be),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,li&&li.vars.overwrite!==!0)._first||ss(this),this.parent&&o!==this.timeline.totalDuration()&&ro(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=i?Br(i):s,u=this._ptLookup,c=this._pt,f,h,p,y,m,d,v;if((!a||a==="all")&&UI(s,l))return a==="all"&&(this._pt=0),ss(this);for(f=this._op=this._op||[],a!=="all"&&($e(a)&&(m={},cr(a,function(x){return m[x]=1}),a=m),a=pN(s,a)),v=s.length;v--;)if(~l.indexOf(s[v])){h=u[v],a==="all"?(f[v]=a,y=h,p={}):(p=f[v]=f[v]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&Dc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&ss(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return ds(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return ds(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return ie.killTweensOf(i,a,o)},t})(qs);kr(ye.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});cr("staggerTo,staggerFrom,staggerFromTo",function(e){ye[e]=function(){var t=new Je,r=Ty.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Wv=function(t,r,n){return t[r]=n},GP=function(t,r,n){return t[r](n)},mN=function(t,r,n,i){return t[r](i.fp,n)},yN=function(t,r,n){return t.setAttribute(r,n)},Hv=function(t,r){return ue(t[r])?GP:Rv(t[r])&&t.setAttribute?yN:Wv},KP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},gN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},XP=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Gv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},vN=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},bN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?Dc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},_N=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},YP=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},fr=(function(){function e(r,n,i,a,o,s,l,u,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||KP,this.d=l||this,this.set=u||Wv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=_N,this.m=n,this.mt=a,this.tween=i},e})();cr(Bv+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return Lv[e]=1});Mr.TweenMax=Mr.TweenLite=ye;Mr.TimelineLite=Mr.TimelineMax=Je;ie=new Je({sortChildren:!1,defaults:Qa,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Er.stringFilter=LP;var Qi=[],cu={},xN=[],Gb=0,wN=0,Bf=function(t){return(cu[t]||xN).map(function(r){return r()})},My=function(){var t=Date.now(),r=[];t-Gb>2&&(Bf("matchMediaInit"),Qi.forEach(function(n){var i=n.queries,a=n.conditions,o,s,l,u;for(s in i)o=gn.matchMedia(i[s]).matches,o&&(l=1),o!==a[s]&&(a[s]=o,u=1);u&&(n.revert(),l&&r.push(n))}),Bf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Gb=t,Bf("matchMedia"))},VP=(function(){function e(r,n){this.selector=n&&Py(n),this.data=[],this._r=[],this.isReverted=!1,this.id=wN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){ue(n)&&(a=i,i=n,n=ue);var o=this,s=function(){var u=te,c=o.selector,f;return u&&u!==o&&u.data.push(o),a&&(o.selector=Py(a)),te=o,f=i.apply(o,arguments),ue(f)&&o._r.push(f),te=u,o.selector=c,o.isReverted=!1,f};return o.last=s,n===ue?s(o,function(l){return o.add(null,l)}):n?o[n]=s:s},t.ignore=function(n){var i=te;te=null,n(this),te=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof ye&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),l=a.data.length,u;l--;)u=a.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),l=a.data.length;l--;)u=a.data[l],u instanceof Je?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof ye)&&u.revert&&u.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=Qi.length;o--;)Qi[o].id===this.id&&Qi.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),SN=(function(){function e(r){this.contexts=[],this.scope=r,te&&te.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){Tn(n)||(n={matches:n});var o=new VP(0,a||this.scope),s=o.conditions={},l,u,c;te&&!o.selector&&(o.selector=te.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(u in n)u==="all"?c=1:(l=gn.matchMedia(n[u]),l&&(Qi.indexOf(o)<0&&Qi.push(o),(s[u]=l.matches)&&(c=1),l.addListener?l.addListener(My):l.addEventListener("change",My)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),Du={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return DP(i)})},timeline:function(t){return new Je(t)},getTweensOf:function(t,r){return ie.getTweensOf(t,r)},getProperty:function(t,r,n,i){$e(t)&&(t=Br(t)[0]);var a=Vi(t||{}).get,o=n?wP:xP;return n==="native"&&(n=""),t&&(r?o((Ar[r]&&Ar[r].get||a)(t,r,n,i)):function(s,l,u){return o((Ar[s]&&Ar[s].get||a)(t,s,l,u))})},quickSetter:function(t,r,n){if(t=Br(t),t.length>1){var i=t.map(function(c){return mr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=Ar[r],s=Vi(t),l=s.harness&&(s.harness.aliases||{})[r]||r,u=o?function(c){var f=new o;Ra._pt=0,f.init(t,n?c+n:c,Ra,0,[t]),f.render(1,f),Ra._pt&&Gv(1,Ra)}:s.set(t,l);return o?u:function(c){return u(t,l,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=mr.to(t,kr((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(l,u,c){return a.resetTo(r,l,u,c)};return o.tween=a,o},isTweening:function(t){return ie.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ji(t.ease,Qa.ease)),Fb(Qa,t||{})},config:function(t){return Fb(Er,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!Ar[s]&&!Mr[s]&&Is(r+" effect requires "+s+" plugin.")}),Df[r]=function(s,l,u){return n(Br(s),kr(l||{},a),u)},o&&(Je.prototype[r]=function(s,l,u){return this.add(Df[r](s,Tn(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,r){Tt[t]=Ji(r)},parseEase:function(t,r){return arguments.length?Ji(t,r):Tt},getById:function(t){return ie.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new Je(t),i,a;for(n.smoothChildTiming=ur(t.smoothChildTiming),ie.remove(n),n._dp=0,n._time=n._tTime=ie._time,i=ie._first;i;)a=i._next,(r||!(!i._dur&&i instanceof ye&&i.vars.onComplete===i._targets[0]))&&bn(n,i,i._start-i._delay),i=a;return bn(ie,n,0),n},context:function(t,r){return t?new VP(t,r):te},matchMedia:function(t){return new SN(t)},matchMediaRefresh:function(){return Qi.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||My()},addEventListener:function(t,r){var n=cu[t]||(cu[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=cu[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:eN,wrapYoyo:rN,distribute:CP,random:kP,snap:MP,normalize:tN,getUnit:Ke,clamp:VI,splitColor:IP,toArray:Br,selector:Py,mapRange:jP,pipe:JI,unitize:QI,interpolate:nN,shuffle:EP},install:yP,effects:Df,ticker:Or,updateRoot:Je.updateRoot,plugins:Ar,globalTimeline:ie,core:{PropTween:fr,globals:gP,Tween:ye,Timeline:Je,Animation:qs,getCache:Vi,_removeLinkedListItem:Dc,reverting:function(){return Be},context:function(t){return t&&te&&(te.data.push(t),t._ctx=te),te},suppressOverwrites:function(t){return jv=t}}};cr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Du[e]=ye[e]});Or.add(Je.updateRoot);Ra=Du.to({},{duration:0});var AN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},ON=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=AN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},qf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var l,u;if($e(a)&&(l={},cr(a,function(c){return l[c]=1}),a=l),r){l={};for(u in a)l[u]=r(a[u]);a=l}ON(s,a)}}}},mr=Du.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,l;this.tween=n;for(o in r)l=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(l||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)Be?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},qf("roundProps",Ey),qf("modifiers"),qf("snap",MP))||Du;ye.version=Je.version=mr.version="3.13.0";mP=1;Dv()&&no();Tt.Power0;Tt.Power1;Tt.Power2;Tt.Power3;Tt.Power4;Tt.Linear;Tt.Quad;Tt.Cubic;Tt.Quart;Tt.Quint;Tt.Strong;Tt.Elastic;Tt.Back;Tt.SteppedEase;Tt.Bounce;Tt.Sine;Tt.Expo;Tt.Circ;/*!
9
9
  * CSSPlugin 3.13.0
10
10
  * https://gsap.com
11
11
  *
12
12
  * Copyright 2008-2025, GreenSock. All rights reserved.
13
13
  * Subject to the terms at https://gsap.com/standard-license
14
14
  * @author: Jack Doyle, jack@greensock.com
15
- */var f0,Ln,sa,fg,di,h0,hg,HI=function(){return typeof window<"u"},Tn={},li=180/Math.PI,ua=Math.PI/180,Xi=Math.atan2,p0=1e8,pg=/([A-Z])/g,KI=/(left|right|width|margin|padding|x)/i,YI=/[\s,\(]\S/,Vr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Xm=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},XI=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},VI=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},ZI=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},yT=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},vT=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},JI=function(t,r,n){return t.style[r]=n},QI=function(t,r,n){return t.style.setProperty(r,n)},tN=function(t,r,n){return t._gsap[r]=n},eN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},rN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},nN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ie="transform",Je=ie+"Origin",iN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Tn&&a){if(this.tfm=this.tfm||{},t!=="transform")t=Vr[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=mn(i,s)}):this.tfm[t]=o.x?o[t]:mn(i,t),t===Je&&(this.tfm.zOrigin=o.zOrigin);else return Vr.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ie)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Je,r,"")),t=ie}(a||r)&&this.props.push(t,r,a[t])},gT=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},aN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(pg,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=hg(),(!a||!a.isStart)&&!n[ie]&&(gT(n),i.zOrigin&&n[Je]&&(n[Je]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},bT=function(t,r){var n={target:t,props:[],revert:aN,save:iN};return t._gsap||er.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},_T,Vm=function(t,r){var n=Ln.createElementNS?Ln.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ln.createElement(t);return n&&n.style?n:Ln.createElement(t)},Pr=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(pg,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,Aa(r)||r,1)||""},d0="O,Moz,ms,Ms,Webkit".split(","),Aa=function(t,r,n){var i=r||di,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(d0[o]+t in a););return o<0?null:(o===3?"ms":o>=0?d0[o]:"")+t},Zm=function(){HI()&&window.document&&(f0=window,Ln=f0.document,sa=Ln.documentElement,di=Vm("div")||{style:{}},Vm("div"),ie=Aa(ie),Je=ie+"Origin",di.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",_T=!!Aa("perspective"),hg=er.core.reverting,fg=1)},m0=function(t){var r=t.ownerSVGElement,n=Vm("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),sa.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),sa.removeChild(n),a},y0=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},xT=function(t){var r,n;try{r=t.getBBox()}catch{r=m0(t),n=1}return r&&(r.width||r.height)||n||(r=m0(t)),r&&!r.width&&!r.x&&!r.y?{x:+y0(t,["x","cx","x1"])||0,y:+y0(t,["y","cy","y1"])||0,width:0,height:0}:r},wT=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&xT(t))},ki=function(t,r){if(r){var n=t.style,i;r in Tn&&r!==Je&&(r=ie),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(pg,"-$1").toLowerCase())):n.removeAttribute(r)}},Bn=function(t,r,n,i,a,o){var s=new Ze(t._pt,r,n,0,1,o?vT:yT);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},v0={deg:1,rad:1,turn:1},oN={grid:1,flex:1},Kn=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=di.style,u=KI.test(r),l=t.tagName.toLowerCase()==="svg",c=(l?"client":"offset")+(u?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,g;if(i===o||!a||v0[i]||v0[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),g=t.getCTM&&wT(t),(p||o==="%")&&(Tn[r]||~r.indexOf("adius")))return y=g?t.getBBox()[u?"width":"height"]:t[c],ue(p?a/y*f:a/100*y);if(s[u?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!l?t:t.parentNode,g&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===Ln||!m.appendChild)&&(m=Ln.body),d=m._gsap,d&&p&&d.width&&u&&d.time===cr.time&&!d.uncache)return ue(a/d.width*f);if(p&&(r==="height"||r==="width")){var _=t.style[r];t.style[r]=f+i,y=t[c],_?t.style[r]=_:ki(t,r)}else(p||o==="%")&&!oN[Pr(m,"display")]&&(s.position=Pr(t,"position")),m===t&&(s.position="static"),m.appendChild(di),y=di[c],m.removeChild(di),s.position="absolute";return u&&p&&(d=xi(m),d.time=cr.time,d.width=m[c]),ue(h?y*a/f:y&&a?f/y*a:0)},mn=function(t,r,n,i){var a;return fg||Zm(),r in Vr&&r!=="transform"&&(r=Vr[r],~r.indexOf(",")&&(r=r.split(",")[0])),Tn[r]&&r!=="transform"?(a=ss(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:il(Pr(t,Je))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=nl[r]&&nl[r](t,r,n)||Pr(t,r)||LP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?Kn(t,r,a,n)+n:a},sN=function(t,r,n,i){if(!n||n==="none"){var a=Aa(r,t,1),o=a&&Pr(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=Pr(t,"borderTopColor"))}var s=new Ze(this._pt,t.style,r,0,1,pT),u=0,l=0,c,f,h,p,y,m,d,g,_,b,x,v;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=Pr(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=Pr(t,r)||i,m?t.style[r]=m:ki(t,r)),c=[n,i],nT(c),n=c[0],i=c[1],h=n.match(ta)||[],v=i.match(ta)||[],v.length){for(;f=ta.exec(i);)d=f[0],_=i.substring(u,f.index),y?y=(y+1)%5:(_.substr(-5)==="rgba("||_.substr(-5)==="hsla(")&&(y=1),d!==(m=h[l++]||"")&&(p=parseFloat(m)||0,x=m.substr((p+"").length),d.charAt(1)==="="&&(d=oa(p,d)+x),g=parseFloat(d),b=d.substr((g+"").length),u=ta.lastIndex-b.length,b||(b=b||pr.units[r]||x,u===i.length&&(i+=b,s.e+=b)),x!==b&&(p=Kn(t,r,m,b)||0),s._pt={_next:s._pt,p:_||l===1?_:",",s:p,c:g-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=u<i.length?i.substring(u,i.length):""}else s.r=r==="display"&&i==="none"?vT:yT;return $P.test(i)&&(s.e=0),this._pt=s,s},g0={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},uN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=g0[n]||n,r[1]=g0[i]||i,r.join(" ")},lN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,u,l;if(a==="all"||a===!0)i.cssText="",u=1;else for(a=a.split(","),l=a.length;--l>-1;)s=a[l],Tn[s]&&(u=1,s=s==="transformOrigin"?Je:ie),ki(n,s);u&&(ki(n,ie),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",ss(n,1),o.uncache=1,gT(i)))}},nl={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new Ze(t._pt,r,n,0,0,lN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},os=[1,0,0,1,0,0],ST={},OT=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},b0=function(t){var r=Pr(t,ie);return OT(r)?os:r.substr(7).match(kP).map(ue)},dg=function(t,r){var n=t._gsap||xi(t),i=t.style,a=b0(t),o,s,u,l;return n.svg&&t.getAttribute("transform")?(u=t.transform.baseVal.consolidate().matrix,a=[u.a,u.b,u.c,u.d,u.e,u.f],a.join(",")==="1,0,0,1,0,0"?os:a):(a===os&&!t.offsetParent&&t!==sa&&!n.svg&&(u=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(l=1,s=t.nextElementSibling,sa.appendChild(t)),a=b0(t),u?i.display=u:ki(t,"display"),l&&(s?o.insertBefore(t,s):o?o.appendChild(t):sa.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Jm=function(t,r,n,i,a,o){var s=t._gsap,u=a||dg(t,!0),l=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=u[0],y=u[1],m=u[2],d=u[3],g=u[4],_=u[5],b=r.split(" "),x=parseFloat(b[0])||0,v=parseFloat(b[1])||0,w,S,A,P;n?u!==os&&(S=p*d-y*m)&&(A=x*(d/S)+v*(-m/S)+(m*_-d*g)/S,P=x*(-y/S)+v*(p/S)-(p*_-y*g)/S,x=A,v=P):(w=xT(t),x=w.x+(~b[0].indexOf("%")?x/100*w.width:x),v=w.y+(~(b[1]||b[0]).indexOf("%")?v/100*w.height:v)),i||i!==!1&&s.smooth?(g=x-l,_=v-c,s.xOffset=f+(g*p+_*m)-g,s.yOffset=h+(g*y+_*d)-_):s.xOffset=s.yOffset=0,s.xOrigin=x,s.yOrigin=v,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[Je]="0px 0px",o&&(Bn(o,s,"xOrigin",l,x),Bn(o,s,"yOrigin",c,v),Bn(o,s,"xOffset",f,s.xOffset),Bn(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",x+" "+v)},ss=function(t,r){var n=t._gsap||new sT(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",u=getComputedStyle(t),l=Pr(t,Je)||"0",c,f,h,p,y,m,d,g,_,b,x,v,w,S,A,P,C,T,E,M,R,$,k,D,L,q,I,j,B,W,G,X;return c=f=h=m=d=g=_=b=x=0,p=y=1,n.svg=!!(t.getCTM&&wT(t)),u.translate&&((u.translate!=="none"||u.scale!=="none"||u.rotate!=="none")&&(i[ie]=(u.translate!=="none"?"translate3d("+(u.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(u.rotate!=="none"?"rotate("+u.rotate+") ":"")+(u.scale!=="none"?"scale("+u.scale.split(" ").join(",")+") ":"")+(u[ie]!=="none"?u[ie]:"")),i.scale=i.rotate=i.translate="none"),S=dg(t,n.svg),n.svg&&(n.uncache?(L=t.getBBox(),l=n.xOrigin-L.x+"px "+(n.yOrigin-L.y)+"px",D=""):D=!r&&t.getAttribute("data-svg-origin"),Jm(t,D||l,!!D||n.originIsAbsolute,n.smooth!==!1,S)),v=n.xOrigin||0,w=n.yOrigin||0,S!==os&&(T=S[0],E=S[1],M=S[2],R=S[3],c=$=S[4],f=k=S[5],S.length===6?(p=Math.sqrt(T*T+E*E),y=Math.sqrt(R*R+M*M),m=T||E?Xi(E,T)*li:0,_=M||R?Xi(M,R)*li+m:0,_&&(y*=Math.abs(Math.cos(_*ua))),n.svg&&(c-=v-(v*T+w*M),f-=w-(v*E+w*R))):(X=S[6],W=S[7],I=S[8],j=S[9],B=S[10],G=S[11],c=S[12],f=S[13],h=S[14],A=Xi(X,B),d=A*li,A&&(P=Math.cos(-A),C=Math.sin(-A),D=$*P+I*C,L=k*P+j*C,q=X*P+B*C,I=$*-C+I*P,j=k*-C+j*P,B=X*-C+B*P,G=W*-C+G*P,$=D,k=L,X=q),A=Xi(-M,B),g=A*li,A&&(P=Math.cos(-A),C=Math.sin(-A),D=T*P-I*C,L=E*P-j*C,q=M*P-B*C,G=R*C+G*P,T=D,E=L,M=q),A=Xi(E,T),m=A*li,A&&(P=Math.cos(A),C=Math.sin(A),D=T*P+E*C,L=$*P+k*C,E=E*P-T*C,k=k*P-$*C,T=D,$=L),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,g=180-g),p=ue(Math.sqrt(T*T+E*E+M*M)),y=ue(Math.sqrt(k*k+X*X)),A=Xi($,k),_=Math.abs(A)>2e-4?A*li:0,x=G?1/(G<0?-G:G):0),n.svg&&(D=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!OT(Pr(t,ie)),D&&t.setAttribute("transform",D))),Math.abs(_)>90&&Math.abs(_)<270&&(a?(p*=-1,_+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,_+=_<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=ue(p),n.scaleY=ue(y),n.rotation=ue(m)+s,n.rotationX=ue(d)+s,n.rotationY=ue(g)+s,n.skewX=_+s,n.skewY=b+s,n.transformPerspective=x+o,(n.zOrigin=parseFloat(l.split(" ")[2])||!r&&n.zOrigin||0)&&(i[Je]=il(l)),n.xOffset=n.yOffset=0,n.force3D=pr.force3D,n.renderTransform=n.svg?fN:_T?AT:cN,n.uncache=0,n},il=function(t){return(t=t.split(" "))[0]+" "+t[1]},nf=function(t,r,n){var i=Ie(r);return ue(parseFloat(r)+parseFloat(Kn(t,"x",n+"px",i)))+i},cN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,AT(t,r)},ai="0deg",po="0px",oi=") ",AT=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,u=n.z,l=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,g=n.force3D,_=n.target,b=n.zOrigin,x="",v=g==="auto"&&t&&t!==1||g===!0;if(b&&(f!==ai||c!==ai)){var w=parseFloat(c)*ua,S=Math.sin(w),A=Math.cos(w),P;w=parseFloat(f)*ua,P=Math.cos(w),o=nf(_,o,S*P*-b),s=nf(_,s,-Math.sin(w)*-b),u=nf(_,u,A*P*-b+b)}d!==po&&(x+="perspective("+d+oi),(i||a)&&(x+="translate("+i+"%, "+a+"%) "),(v||o!==po||s!==po||u!==po)&&(x+=u!==po||v?"translate3d("+o+", "+s+", "+u+") ":"translate("+o+", "+s+oi),l!==ai&&(x+="rotate("+l+oi),c!==ai&&(x+="rotateY("+c+oi),f!==ai&&(x+="rotateX("+f+oi),(h!==ai||p!==ai)&&(x+="skew("+h+", "+p+oi),(y!==1||m!==1)&&(x+="scale("+y+", "+m+oi),_.style[ie]=x||"translate(0, 0)"},fN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,u=n.rotation,l=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,g=n.yOffset,_=n.forceCSS,b=parseFloat(o),x=parseFloat(s),v,w,S,A,P;u=parseFloat(u),l=parseFloat(l),c=parseFloat(c),c&&(c=parseFloat(c),l+=c,u+=c),u||l?(u*=ua,l*=ua,v=Math.cos(u)*f,w=Math.sin(u)*f,S=Math.sin(u-l)*-h,A=Math.cos(u-l)*h,l&&(c*=ua,P=Math.tan(l-c),P=Math.sqrt(1+P*P),S*=P,A*=P,c&&(P=Math.tan(c),P=Math.sqrt(1+P*P),v*=P,w*=P)),v=ue(v),w=ue(w),S=ue(S),A=ue(A)):(v=f,A=h,w=S=0),(b&&!~(o+"").indexOf("px")||x&&!~(s+"").indexOf("px"))&&(b=Kn(p,"x",o,"px"),x=Kn(p,"y",s,"px")),(y||m||d||g)&&(b=ue(b+y-(y*v+m*S)+d),x=ue(x+m-(y*w+m*A)+g)),(i||a)&&(P=p.getBBox(),b=ue(b+i/100*P.width),x=ue(x+a/100*P.height)),P="matrix("+v+","+w+","+S+","+A+","+b+","+x+")",p.setAttribute("transform",P),_&&(p.style[ie]=P)},hN=function(t,r,n,i,a){var o=360,s=Ae(a),u=parseFloat(a)*(s&&~a.indexOf("rad")?li:1),l=u-i,c=i+l+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),f==="cw"&&l<0?l=(l+o*p0)%o-~~(l/o)*o:f==="ccw"&&l>0&&(l=(l-o*p0)%o-~~(l/o)*o)),t._pt=h=new Ze(t._pt,r,n,i,l,XI),h.e=c,h.u="deg",t._props.push(n),h},_0=function(t,r){for(var n in r)t[n]=r[n];return t},pN=function(t,r,n){var i=_0({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,u,l,c,f,h,p,y;i.svg?(l=n.getAttribute("transform"),n.setAttribute("transform",""),o[ie]=r,s=ss(n,1),ki(n,ie),n.setAttribute("transform",l)):(l=getComputedStyle(n)[ie],o[ie]=r,s=ss(n,1),o[ie]=l);for(u in Tn)l=i[u],c=s[u],l!==c&&a.indexOf(u)<0&&(p=Ie(l),y=Ie(c),f=p!==y?Kn(n,u,l,y):parseFloat(l),h=parseFloat(c),t._pt=new Ze(t._pt,s,u,f,h-f,Xm),t._pt.u=y||0,t._props.push(u));_0(s,i)};Ve("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});nl[t>1?"border"+e:e]=function(s,u,l,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return mn(s,y,l)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(u,p,f)}});var PT={name:"css",register:Zm,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,u=n.vars.startAt,l,c,f,h,p,y,m,d,g,_,b,x,v,w,S,A;fg||Zm(),this.styles=this.styles||bT(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(lr[m]&&uT(m,r,n,i,t,a)))){if(p=typeof c,y=nl[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=ns(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")l=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",Gn.lastIndex=0,Gn.test(l)||(d=Ie(l),g=Ie(c)),g?d!==g&&(l=Kn(t,m,l,g)+g):d&&(c+=d),this.add(s,"setProperty",l,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(u&&m in u?(l=typeof u[m]=="function"?u[m].call(n,i,t,a):u[m],Ae(l)&&~l.indexOf("random(")&&(l=ns(l)),Ie(l+"")||l==="auto"||(l+=pr.units[m]||Ie(mn(t,m))||""),(l+"").charAt(1)==="="&&(l=mn(t,m))):l=mn(t,m),h=parseFloat(l),_=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),_&&(c=c.substr(2)),f=parseFloat(c),m in Vr&&(m==="autoAlpha"&&(h===1&&mn(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),Bn(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=Vr[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Tn,b){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=Pr(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),x||(v=t._gsap,v.renderTransform&&!r.parseTransform||ss(t,r.parseTransform),w=r.smoothOrigin!==!1&&v.smooth,x=this._pt=new Ze(this._pt,s,ie,0,1,v.renderTransform,v,0,-1),x.dep=1),m==="scale")this._pt=new Ze(this._pt,v,"scaleY",v.scaleY,(_?oa(v.scaleY,_+f):f)-v.scaleY||0,Xm),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(Je,0,s[Je]),c=uN(c),v.svg?Jm(t,c,0,w,0,this):(g=parseFloat(c.split(" ")[2])||0,g!==v.zOrigin&&Bn(this,v,"zOrigin",v.zOrigin,g),Bn(this,s,m,il(l),il(c)));continue}else if(m==="svgOrigin"){Jm(t,c,1,w,0,this);continue}else if(m in ST){hN(this,v,m,h,_?oa(h,_+c):c);continue}else if(m==="smoothOrigin"){Bn(this,v,"smooth",v.smooth,c);continue}else if(m==="force3D"){v[m]=c;continue}else if(m==="transform"){pN(this,c,t);continue}}else m in s||(m=Aa(m)||m);if(b||(f||f===0)&&(h||h===0)&&!YI.test(c)&&m in s)d=(l+"").substr((h+"").length),f||(f=0),g=Ie(c)||(m in pr.units?pr.units[m]:d),d!==g&&(h=Kn(t,m,l,g)),this._pt=new Ze(this._pt,b?v:s,m,h,(_?oa(h,_+f):f)-h,!b&&(g==="px"||m==="zIndex")&&r.autoRound!==!1?ZI:Xm),this._pt.u=g||0,d!==g&&g!=="%"&&(this._pt.b=l,this._pt.r=VI);else if(m in s)sN.call(this,t,m,l,_?_+c:c);else if(m in t)this.add(t,m,l||t[m],_?_+c:c,i,a);else if(m!=="parseTransform"){eg(m,c);continue}b||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,l||t[m])),o.push(m)}}S&&dT(this)},render:function(t,r){if(r.tween._time||!hg())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:mn,aliases:Vr,getSetter:function(t,r,n){var i=Vr[r];return i&&i.indexOf(",")<0&&(r=i),r in Tn&&r!==Je&&(t._gsap.x||mn(t,"x"))?n&&h0===n?r==="scale"?eN:tN:(h0=n||{})&&(r==="scale"?rN:nN):t.style&&!Jv(t.style[r])?JI:~r.indexOf("-")?QI:lg(t,r)},core:{_removeProperty:ki,_getMatrix:dg}};er.utils.checkPrefix=Aa;er.core.getStyleSaver=bT;(function(e,t,r,n){var i=Ve(e+","+t+","+r,function(a){Tn[a]=1});Ve(t,function(a){pr.units[a]="deg",ST[a]=1}),Vr[i[13]]=e+","+t,Ve(n,function(a){var o=a.split(":");Vr[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ve("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){pr.units[e]="px"});er.registerPlugin(PT);var Qm=er.registerPlugin(PT)||er;Qm.core.Tween;const mo={IN_OUT:"power2.inOut",OUT:"power2.out"},uu={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class TT{constructor(t,r={}){so(this,"timeline");so(this,"currentStage","");so(this,"callbacks");so(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Qm.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToBar",n),n+=t.seatsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToBar(t,r){const n=this.durations.seatsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const u=o.getAttribute("x"),l=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",u||"0"),o.setAttribute("data-orig-y",l||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:mo.IN_OUT,stagger:uu.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToBar")}},"seatsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:mo.IN_OUT,stagger:uu.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:mo.OUT,stagger:uu.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=uu.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const u=o,l=u.getAttribute("data-final-y")||"0",c=u.getAttribute("data-final-height")||"0",f=parseInt(u.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(u,{height:0,y:parseFloat(u.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(l),height:parseFloat(c),duration:i,delay:p,ease:mo.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,u=s.getAttribute("class");if(!u)return;const l=u.match(/category-([\w-]+)/);if(l&&l[1]){const f=l[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,u=s.getAttribute("data-category");if(!u)return;const l=n.get(u);l&&Qm.to(s,{attr:{d:l},duration:a,ease:mo.IN_OUT})}),this.timeline.call(()=>{var s,u;this.currentStage="barsToArea",(u=(s=this.callbacks).onStageComplete)==null||u.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function dN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:u,innerRadiusRatio:l}=t,c=i*l,f=e.reduce((E,M)=>E+M.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const M=E*Math.PI/180;for(let R=s;R>=o;R-=.1){const $=R*2,k=$*u,D=Math.floor((i-c)/k);for(let L=1;L<=Math.min(D,10);L++){let q=0;for(let I=0;I<L;I++){const j=c+(I+.5)*k,B=$*u/j,W=Math.floor(M/B);q+=W}if(q>=f){const I=f/q,j=(R-o)/(s-o),B=(q-f)/f,W=B<.15?1:B<.3?.7:B<.5?.4:.1,G=1-Math.abs(E-r)/n,X=W*.5+j*.3+I*.15+G*.05;X>h.score&&(h={seatSize:R,arcAngle:E,rings:L,score:X})}}}}const m=h.seatSize,d=h.arcAngle,g=d*Math.PI/180,_=m*2,b=_*u,x=Math.floor((i-c)/b),v=[],w=-g/2-Math.PI/2,S=[];let A=0,P=[];for(let E=1;E<=x;E++){let M=0;const R=[];for(let $=0;$<E;$++){const k=c+($+.5)*b,D=_*u/k,L=Math.floor(g/D);R.push(L),M+=L}if(M>=f){A=E,P=R;break}}if(A>0)S.push(...P);else for(let E=0;E<x;E++){const M=c+(E+.5)*b,R=_*u/M,$=Math.floor(g/R);S.push($)}for(let E=0;E<S.length;E++){const M=c+(E+.5)*b,R=S[E]??0;if(R>0){const $=g/R;for(let k=0;k<R;k++){const D=w+(k+.5)*$,L=Math.cos(D)*M,q=Math.sin(D)*M;v.push({ring:E,index:k,angle:D,x:L,y:q})}}}v.sort((E,M)=>{const R=E.angle-M.angle;return Math.abs(R)>.001?R:E.ring-M.ring});const C=[];let T=0;return e.forEach((E,M)=>{const R=Math.min(E.seats,v.length-T);for(let $=0;$<R&&T<v.length;$++){const k=v[T++];k&&C.push({x:k.x,y:k.y,category:E.name,categoryIndex:M,seatIndex:$,ring:k.ring,angle:k.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:C,totalSeats:f}}function mN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const Qe={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},Io=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],Ke={greyHatch:{background:Qe.neoGrey[200],lines:Qe.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function yN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",Ke.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",Ke.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",Ke.greyHatch.lines).attr("stroke-width",.5)}function vN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",Ke.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",Ke.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",Ke.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",Ke.dataMissingHatch.lines).attr("stroke-width",.5)}function gN(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",Ke.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",Ke.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",Ke.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",Ke.noLstHatch.lines).attr("stroke-width",.5)}function lu(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),yN(r,t),vN(r,t),gN(r,t)}function x0(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function ET(e){return e.includes("greyHatchPattern")?Ke.greyHatch.lines:e.includes("dataMissingHatchPattern")?Ke.dataMissingHatch.lines:e.includes("noLstHatchPattern")?Ke.noLstHatch.lines:e}function ty(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,u=pi().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(Im.alpha(.5)),l=Yv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(Im.alpha(.5)),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var g;const y=r[p];if(!y)return;const m=((g=y.parliamentMapping)==null?void 0:g.isSpecialCategory)??!1,d=ET(y.color);if(m){const _=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",l).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;_.attr("class",b)}}else{const _=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",u).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;_.attr("class",b)}}})}function bN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,u=a,l=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:u,y1:l,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function Ge(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function CT(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:u=200}=n,l=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",l)),t.seats.forEach(p=>{const y=r.find(g=>g.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const g=s?`seat seat-${s} seat-${Ge(p.category)}`:`seat seat-${Ge(p.category)}`;m.attr("class",g),d.attr("class",g)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-u*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function _N(e,t,r,n,i,a,o=!1){var f;const s=new Map;let u=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;u=r(new Date(h))}const l=new Map;for(const h of e.seats)l.has(h.category)||l.set(h.category,[]),l.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:u,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const g=l.get(h.category)??[],_=h.seatIndex,b=g.length;if(b===1)d=(y+m)/2;else{const x=_/(b-1);d=y+(m-y)*x}}else d=m;s.set(h,{x:u,y:d})}return s}function xN(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const u=n[s.dataKey]||0,l=a,c=a+u;i.push({dataKey:s.dataKey,label:s.label,y0:l,y1:c,value:u,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=u}return i}function wN(e){const t=e;return{seatsToBar:t*.27,crossFadePause:t*.03,barSlideToTimeline:t*.25,axesAndBarsGrow:t*.25,barsToArea:t*.2}}const mi=new Map;ee.prototype.transition=Pv;const SN=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:u=!0,showAxes:l=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:d=900,onMorphComplete:g,onAnimationStateChange:_,onTimelineReady:b,onAnimationProgress:x,onHoveredDataChange:v,hoveredCategory:w,maxSeats:S=2e3,parliamentTimestamp:A,enableBrush:P=!1,onTimeRangeChange:C,showScaleIndicator:T=!1,reposPerSeat:E=1,timelineEvents:M=[],showTimeline:R=!1,timelineHeight:$=40,timelineOffset:k=35})=>{const[D,L]=O.useState("area"),[q,I]=O.useState(!1),[j,B]=O.useState(null),[W,G]=O.useState(0),[X,Z]=O.useState(null),[J,z]=O.useState(null),[F,H]=O.useState([]),Q=O.useRef(null),N=O.useRef(n),st=O.useRef(!0),K=O.useRef(!1),ot=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),ht=O.useRef(void 0),at=O.useRef(s),pt=O.useRef(g),Tt=O.useRef(_),it=O.useRef(b),ft=O.useRef(x),wt=O.useRef(v);O.useEffect(()=>{pt.current=g,Tt.current=_,it.current=b,ft.current=x,wt.current=v},[g,_,b,x,v]),O.useEffect(()=>{if(e.current&&D==="parliament")if(w){const Et=r.find(Dt=>Dt.dataKey===w);if(Et){const Dt=Et.label;B(Dt),No(e.current,Dt)}}else B(null),No(e.current,null)},[w,D,r,t]);const $t=i-o.left-o.right,Gt=a-o.top-o.bottom;return O.useEffect(()=>{var vt;if(!e.current||t.length===0||r.length===0||(ht.current&&(ht.current(),ht.current=void 0),K.current))return;const Et=ee(e.current),Dt=n!==N.current;st.current?(Et.selectAll("*").remove(),lu(Et,ot.current),st.current=!1):Dt||(Et.selectAll("*").remove(),lu(Et,ot.current));const ye=t[t.length-1],Ur=r.reduce((lt,jt)=>lt+(ye.values[jt.dataKey]||0),0),on=t.map(lt=>{const jt={timestamp:lt.timestamp};for(const Ft of r)jt[Ft.dataKey]=lt.values[Ft.dataKey]||0;return jt}),vr=r.map(lt=>lt.dataKey),Me=Zu().keys(vr),sn=Me(on),Wr=t.map(lt=>lt.timestamp),ri=Dt||!s?Math.min(...Wr):s[0],kr=Dt||!s?Math.max(...Wr):s[1],un=[...Wr].sort((lt,jt)=>lt-jt),nr=[];for(let lt=0;lt<un.length-1;lt++)nr.push(un[lt+1]-un[lt]);const kn=nr.length>0?nr.reduce((lt,jt)=>lt+jt,0)/nr.length:0,rt=kr+kn*1.15,ct=Gu().domain([new Date(ri),new Date(rt)]).range([0,$t]),_t=on.filter(lt=>lt.timestamp>=ri&&lt.timestamp<=kr),St=Me(_t),Ot=St.length>0?Math.max(...St[St.length-1].map(lt=>lt[1]??0)):0,Mt=Mi().domain([0,Ot*1.15]).range([Gt,0]),Xt=r.map(lt=>({...lt,color:x0(lt.color,ot.current)})),Le=Xt.map(lt=>({dataKey:lt.dataKey,label:lt.label,color:lt.color,value:ye.values[lt.dataKey]||0})),se=mN(Le,Ur,S).reverse(),Se=dN(se,{arcAngle:p,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});Q.current=Se;const tt=xN(on,r),mt=_N(Se,tt,ct,Mt,$t,Gt);if(Dt&&!K.current){K.current=!0,I(!0),(vt=Tt.current)==null||vt.call(Tt,!0),Z(null),H([]),G(0);let lt=Et.select("g[transform]");if(lt.empty()&&(lt=Et.select("g")),lt.empty()){Et.selectAll("*").remove(),lu(Et,ot.current),af(Et,n==="parliament"?"parliament":"area",sn,Xt,Se,ct,Mt,$t,Gt,o,u,l,c,f,P,C,ot.current,h,s,H,Z,M,R,$,k,z),I(!1),L(n==="parliament"?"parliament":"area"),G(n==="parliament"?1:0),N.current=n;return}const jt=setTimeout(()=>{K.current=!1,I(!1),N.current=n},d*3);PN(Et,n,sn,Xt,Se,mt,ct,Mt,$t,Gt,o,d,()=>{var Ft,Be;if(clearTimeout(jt),K.current=!1,I(!1),L(n==="parliament"?"parliament":"area"),n==="parliament"&&G(1),(Ft=Tt.current)==null||Ft.call(Tt,!1),(Be=pt.current)==null||Be.call(pt),N.current=n,n==="parliament"&&e.current&&wt.current&&(ht.current=of(e.current,Xt,t,j,B,wt.current,T,E,ot.current)),n!=="parliament"&&e.current){const ce=ee(e.current),qe=ce.select(ot.current?`.main-chart-group-${ot.current}`:".main-chart-group");if(M&&M.length>0&&z&&MT(ce,M,ct,Gt,$t,$,k,ot.current,z,P,C),P&&C&&!(M!=null&&M.length)){const ir=qe.select(ot.current?`.chart-content-group-${ot.current}`:".chart-content-group");ON(ir,$t,Gt,ct,C,ot.current,ce)}if(h.length>0&&H&&Z&&s){const ir=h.filter(Jt=>Jt.timestamp>=(s[0]??0)&&Jt.timestamp<=(s[1]??1/0)).map(Jt=>({...Jt,x:ct(new Date(Jt.timestamp))}));H(ir),ir.length>0&&AN(qe,ir,Gt,$t,P,Z,ot.current)}}},l,c,f,it.current,(Ft,Be)=>{var ce;if(n==="parliament"&&Ft>=.95){const qe=(Ft-.95)/.05;G(Math.min(qe,1))}(ce=ft.current)==null||ce.call(ft,Ft,Be)},A,ot.current)}else N.current=n,n==="parliament"&&(Z(null),H([])),af(Et,n==="parliament"?"parliament":"area",sn,Xt,Se,ct,Mt,$t,Gt,o,u,l,c,f,P,C,ot.current,h,s,H,Z,M,R,$,k,z),L(n==="parliament"?"parliament":"area"),G(n==="parliament"?1:0),n==="parliament"&&e.current&&wt.current&&(ht.current=of(e.current,Xt,t,j,B,wt.current,T,E,ot.current));return()=>{ht.current&&(ht.current(),ht.current=void 0)}},[n]),O.useEffect(()=>{var _t,St;if(!e.current||t.length===0||K.current)return;if(st.current){at.current=s;return}if(!(s!==at.current&&((s==null?void 0:s[0])!==((_t=at.current)==null?void 0:_t[0])||(s==null?void 0:s[1])!==((St=at.current)==null?void 0:St[1]))))return;at.current=s;const Dt=ee(e.current),ye=t.map(Ot=>{const Mt={timestamp:Ot.timestamp};for(const Xt of r)Mt[Xt.dataKey]=Ot.values[Xt.dataKey]||0;return Mt}),Ur=r.map(Ot=>Ot.dataKey),vr=Zu().keys(Ur)(ye),Me=t.map(Ot=>Ot.timestamp),sn=s?s[0]:Math.min(...Me),Wr=s?s[1]:Math.max(...Me),kr=(Me.length>1?(Me[Me.length-1]-Me[0])/(Me.length-1):0)*.5,un=Gu().domain([new Date(sn-kr),new Date(Wr+kr)]).range([0,i-o.left-o.right]),nr=Math.max(...vr[vr.length-1].map(Ot=>Ot[1])),kn=Mi().domain([0,nr*1.1]).range([a-o.top-o.bottom,0]);if(!Q.current)return;const rt=Q.current,ct=r.map(Ot=>({...Ot,color:x0(Ot.color,ot.current)}));Dt.selectAll("*").remove(),lu(Dt,ot.current),af(Dt,D==="parliament"?"parliament":"area",vr,ct,rt,un,kn,i-o.left-o.right,a-o.top-o.bottom,o,u,l,c,f,P,C,ot.current,h,s,H,Z,M,R,$,k,z),D==="parliament"&&e.current&&wt.current&&(ht.current=of(e.current,ct,t,j,B,wt.current,T,E,ot.current))},[s]),{isMorphing:q,currentMode:D,hoveredCategory:j,scaleIndicatorOpacity:W,visibleMarkers:F,hoveredMarker:X,setHoveredMarker:Z,hoveredTimelineEvent:J,setHoveredTimelineEvent:z}};function ON(e,t,r,n,i,a,o){const s=Kl().extent([[0,0],[t,r]]).on("end",l=>{if(!l.selection)return;const[c,f]=l.selection,h=[+n.invert(c),+n.invert(f)];i(h),o.select(".brush").call(s.move,null)}),u=e.append("g").attr("class","brush").call(s);u.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),u.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),u.on("dblclick",()=>{const l=n.domain(),c=[+l[0],+l[1]];i(c)})}function AN(e,t,r,n,i,a,o){const s=e.select(o?`.chart-content-group-${o}`:".chart-content-group"),u=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",u);t.forEach(h=>{l.append("line").attr("class","marker-line").attr("data-timestamp",h.timestamp).attr("x1",h.x).attr("x2",h.x).attr("y1",0).attr("y2",r).attr("stroke",h.color??"#992FB9").attr("stroke-width",2).attr("opacity",0),h.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",h.timestamp).attr("x",h.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",h.color??"#992FB9").attr("opacity",0)});let c=null,f;i?f=s.select(".brush .overlay"):f=s.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",r).attr("fill","none").attr("pointer-events","all"),f.on("mousemove",function(h){const[p]=Xo(h,this);let y=null,m=1/0;if(t.forEach(_=>{const b=Math.abs(p-_.x);b<m&&(m=b,y=_)}),!y||m>50){c!==null&&(c=null,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),a(null));return}const g=y;c!==g.timestamp&&(c=g.timestamp,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),l.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(g.timestamp)}).attr("opacity",.6),l.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(g.timestamp)}).attr("opacity",1),a(g))}),f.on("mouseleave",function(){c=null,l.selectAll(".marker-line").attr("opacity",0),l.selectAll(".marker-label").attr("opacity",0),a(null)})}function af(e,t,r,n,i,a,o,s,u,l,c,f,h,p,y=!1,m,d,g=[],_=[0,0],b,x,v=[],w=!1,S=40,A=15,P){let C=null;const T=d?`main-chart-group main-chart-group-${d}`:"main-chart-group",E=e.append("g").attr("class",T).attr("transform",`translate(${l.left},${l.top})`),M=d?`chart-clip-${d}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",M).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",u);const R=d?`chart-content-group chart-content-group-${d}`:"chart-content-group",$=E.append("g").attr("class",R).attr("clip-path",`url(#${M})`);if(c&&t!=="parliament"&&($.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Ko(a).ticks(6).tickSize(u).tickFormat(()=>"")),$.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Yo(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(ty($,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:d}),g.length>0)){const k=g.filter(D=>D.timestamp>=_[0]&&D.timestamp<=_[1]).map(D=>({...D,x:a(new Date(D.timestamp))}));C={markersGroup:null,visibleMarkers:k},b&&b(k)}if(t==="parliament"){const k=s/2,D=i.radius+10,L=u-i.radius*.3,q=Math.max(D,L);CT($,i,n,{centerX:k,centerY:q,addClasses:!0,instanceId:d,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const k=Ko(a).ticks(6);h&&k.tickFormat(L=>h(+L)),E.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).call(k).selectAll("text").attr("font-size",14).attr("font-weight",500);const D=Yo(o).ticks(5);p&&D.tickFormat(L=>p(+L)),E.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",14).attr("font-weight",500)}if(y&&m&&t==="area"){const k=Kl().extent([[0,0],[s,u]]).on("end",L=>{if(!L.selection)return;const[q,I]=L.selection,j=[+a.invert(q),+a.invert(I)];m(j),e.select(".brush").call(k.move,null)}),D=$.append("g").attr("class","brush").call(k);D.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),D.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),D.on("dblclick",()=>{const L=a.domain(),q=[+L[0],+L[1]];m(q)})}if(t==="area"&&C&&C.visibleMarkers.length>0){const k=E.append("g").attr("class","markers").attr("clip-path",`url(#${M})`);C.visibleMarkers.forEach(D=>{k.append("line").attr("class","marker-line").attr("data-timestamp",D.timestamp).attr("x1",D.x).attr("x2",D.x).attr("y1",0).attr("y2",u).attr("stroke",D.color??"#992FB9").attr("stroke-width",2).attr("opacity",0),D.label&&k.append("text").attr("class","marker-label").attr("data-timestamp",D.timestamp).attr("x",D.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",D.color??"#992FB9").attr("opacity",0)}),C.markersGroup=k}if(t==="area"&&v&&v.length>0&&P&&MT(e,v,a,u,s,S,A,d,P,y,m),C&&C.visibleMarkers.length>0&&x&&t==="area"){const{markersGroup:k,visibleMarkers:D}=C;let L=null,q;y?q=$.select(".brush .overlay"):q=$.append("rect").attr("class","marker-hover-overlay").attr("width",s).attr("height",u).attr("fill","none").attr("pointer-events","all");const I=j=>{let B=null,W=1/0;if(D.forEach(Z=>{const J=Math.abs(j-Z.x);J<W&&(W=J,B=Z)}),!B||W>50)return L!==null&&(L=null,k.selectAll(".marker-line").attr("opacity",0),k.selectAll(".marker-label").attr("opacity",0),x(null)),!1;const X=B;return L===X.timestamp||(L=X.timestamp,k.selectAll(".marker-line").attr("opacity",0),k.selectAll(".marker-label").attr("opacity",0),k.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(X.timestamp)}).attr("opacity",.6),k.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(X.timestamp)}).attr("opacity",1),x(X)),!0};q.on("mousemove",function(j){const[B]=Xo(j,this);I(B)}),q.on("mouseleave",function(){L=null,k.selectAll(".marker-line").attr("opacity",0),k.selectAll(".marker-label").attr("opacity",0),x(null)})}}function MT(e,t,r,n,i,a,o,s,u,l=!1,c){const f=n+o,h=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),p=s?`timeline-track timeline-track-${s}`:"timeline-track",y=h.append("g").attr("class",p),m=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",m).append("rect").attr("x",0).attr("y",f).attr("width",i).attr("height",a),y.append("rect").attr("class","timeline-background").attr("x",0).attr("y",f).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const d=y.append("g").attr("clip-path",`url(#${m})`),g=3,_=d.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",x=>r(new Date(x.timestamp))-g/2).attr("y",f).attr("width",g).attr("height",a).attr("fill",x=>x.color||"#992FB9").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",x=>x.timestamp).attr("data-event-name",x=>x.eventName),b=6;if(_.on("mouseenter",function(x,v){const w=ee(this),S=r(new Date(v.timestamp));w.transition().duration(150).attr("x",S-b/2).attr("width",b),u&&u({timestamp:v.timestamp,eventName:v.eventName,x:S})}).on("mouseleave",function(x,v){const w=ee(this),S=r(new Date(v.timestamp));w.transition().duration(150).attr("x",S-g/2).attr("width",g),u&&u(null)}),l&&c){const x=Kl().extent([[0,f],[i,f+a]]).on("end",S=>{if(!S.selection)return;const[A,P]=S.selection,C=[+r.invert(A),+r.invert(P)];c(C);const T=s?`.timeline-brush-${s}`:".timeline-brush";e.select(T).call(x.move,null)}),v=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",w=h.append("g").attr("class",v).call(x);w.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),w.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8),w.on("dblclick",()=>{const S=r.domain(),A=[+S[0],+S[1]];c(A)})}}function PN(e,t,r,n,i,a,o,s,u,l,c,f,h,p=!0,y,m,d,g,_,b){const x=e.select(b?`.main-chart-group-${b}`:".main-chart-group");x.selectAll(".markers").remove(),x.selectAll(".marker-hover-overlay").remove(),x.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?TN(x,r,n,i,a,o,s,u,l,f,h,p,y,m,d,g,_,b):EN(x,r,n,i,a,o,s,u,l,f,h,p,y,m,d,g,_,b)}function yi(e,t,r,n,i,a,o,s){const u=e[a];if(!u)return"";const l=u.find(w=>w.data.timestamp===o);if(!l)return"";const c=l.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,g=l[0],_=l[1],b=s?i:n(g),x=s?i:n(_),v=[];return v.push(`M ${m} ${b}`),v.push(`L ${m} ${x}`),v.push(`L ${m+d} ${x}`),v.push(`L ${m+d} ${b}`),v.push("Z"),v.join(" ")}function TN(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,m,d,g){var Se;const _=g?`.seat-${g}`:".seat",b=e.selectAll(_),x=g?`.chart-content-group-${g}`:".chart-content-group";let v=e.select(x);if(v.empty()){const tt=e.attr("clip-path"),mt=tt?((Se=tt.match(/url\(#(.+)\)/))==null?void 0:Se[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,vt=g?`chart-content-group chart-content-group-${g}`:"chart-content-group";v=e.append("g").attr("class",vt).attr("clip-path",`url(#${mt})`)}if(b.size()===0){ty(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:g}),c();return}const w=wN(l),S=g?mi.get(g):void 0;S&&(S.destroy(),g&&mi.delete(g));const A=tt=>tt<.3?"seatsToBar":tt<.425?"axesReveal":tt<.55?"barSlide":tt<.8?"barsGrow":"barsToArea",P=new TT({seatsToBar:w.seatsToBar,axesReveal:w.barSlideToTimeline*.3,barSlide:w.barSlideToTimeline*.7,barsGrow:w.axesAndBarsGrow,barsToArea:w.barsToArea},{onStageComplete:tt=>{},onProgress:tt=>{if(m){const mt=A(tt);m(tt,mt)}},onComplete:()=>{c()}});g&&mi.set(g,P),y&&y(P.getControls().getTimeline());const C=t[0].map(tt=>tt.data),T=bN(C,r),E=s/2,M=n.radius+10,R=u-n.radius*.3,$=Math.max(M,R),k=C.map(tt=>tt.timestamp),D=d??Math.max(...k),L=new Map,q=[];k.forEach((tt,mt)=>{const vt=a(new Date(tt)),lt=k[mt+1];if(lt){const Ft=a(new Date(lt))-vt;q.push(Ft)}});const I=q.length>0?q.reduce((tt,mt)=>tt+mt,0)/q.length:30;k.forEach((tt,mt)=>{const vt=a(new Date(tt)),lt=k[mt+1],Ft=mt===k.length-1?I:a(new Date(lt))-vt;L.set(tt,{x:vt,width:Ft})});const j=T.filter(tt=>tt.timestamp===D),B=L.get(D),W=Math.max(...n.seats.map(tt=>E+tt.x)),G=g?`parliament-bar-path parliament-bar-path-${g}`:"parliament-bar-path",X=v.append("g").attr("class",G);j.sort((tt,mt)=>mt.y0-tt.y0);const Z=new Map;Z.set(D,{x:W-B.width/2,width:B.width});const J=[];j.forEach(tt=>{if(!r.find(Ft=>Ft.dataKey===tt.dataKey))return;const vt=r.findIndex(Ft=>Ft.dataKey===tt.dataKey);if(vt===-1)return;const lt=yi(t,r,Z,o,u,vt,D,!1);if(!lt)return;const jt=X.append("path").attr("class",`parliament-bar-segment category-${Ge(tt.dataKey)}`).attr("d",lt).attr("fill",tt.color).style("opacity",0).node();jt&&J.push(jt)}),g&&(window.orchestratorMap=mi);const z=P.getControls().getTimeline(),F=w.seatsToBar/1e3,H=[];j.forEach((tt,mt)=>{const vt=b.filter(`.seat-${Ge(tt.category)}`),lt=vt.size();if(lt===0)return;const jt=o(tt.y1),Ft=o(tt.y0)-o(tt.y1),Be=vt.nodes().sort((ii,oo)=>{const Qs=parseInt(ii.getAttribute("data-layout-index")||"-1",10),ln=parseInt(oo.getAttribute("data-layout-index")||"-1",10);return Qs-ln}),ce=Math.max(B.width,100),qe=Ft,ir=ce/Math.max(qe,1),Jt=Math.max(2,Math.ceil(Math.sqrt(lt*ir))),Gr=Math.ceil(lt/Jt),$n=ce*.8,Zs=qe*.8,Gi=Jt>1?$n/(Jt-1):0,ni=Gr>1?Zs/(Gr-1):0,Js=Jt>1?(Jt-1)*Gi:0,TM=Gr>1?(Gr-1)*ni:0,tb=W-ce/2+(ce-Js)/2,EM=jt+(qe-TM)/2;Be.forEach((ii,oo)=>{const Qs=parseInt(ii.getAttribute("data-layout-index")||"-1",10),ln=Qs>=0?n.seats[Qs]:void 0,CM=ln?E+ln.x:parseFloat(ii.getAttribute("cx")||"0"),MM=ln?$+ln.y:parseFloat(ii.getAttribute("cy")||"0"),kM=(ln==null?void 0:ln.radius)||parseFloat(ii.getAttribute("r")||"4"),jn=lt%Jt;let tu,eu;if(jn>0&&oo<jn)eu=0,tu=oo;else{const ru=oo-(jn>0?jn:0);tu=ru%Jt,eu=Math.floor(ru/Jt)+(jn>0?1:0)}let eb=tb+tu*Gi;if(jn>0&&eu===0){const ru=jn>1?(jn-1)*Gi:0,jM=(Js-ru)/2;eb=tb+jM+tu*Gi}const $M=EM+eu*ni;H.push({element:ii,startX:CM,startY:MM,startRadius:kM,category:tt.dataKey,segmentIndex:mt,endY:$M,endX:eb})})});const Q=H.map(tt=>{const mt=tt.startX-E,vt=tt.startY-$,lt=Math.atan2(vt,mt);return{...tt,angle:lt}});Q.sort((tt,mt)=>mt.angle-tt.angle);const N=F*.8,st=.6,K=Q.length,ot=N/Math.max(K,1);Q.forEach((tt,mt)=>{const vt=mt*ot,lt=tt.endX,jt=tt.endY,Ft=n.radius,Be=lt-tt.startX;z.to(tt.element,{attr:{cx:lt,cy:jt,r:3.5},opacity:1,duration:st,ease:"power2.out",onUpdate:function(){const ce=this.progress(),qe=this.targets()[0],ir=tt.startX+Be*ce,Jt=Math.sin(ce*Math.PI)*Ft*.3,$n=tt.startY+(jt-tt.startY)*ce-Jt;qe.setAttribute("cx",ir.toString()),qe.setAttribute("cy",$n.toString())}},`seatsToBar+=${vt}`)});const ht=ot*(K-1)+st,at=F*.3,pt=ht;z.to(b.nodes(),{opacity:0,duration:at,ease:"power2.inOut"},`seatsToBar+=${pt}`),z.to(J,{opacity:1,duration:at,ease:"power2.inOut"},`seatsToBar+=${pt}`);const Tt=w.barSlideToTimeline/1e3;let it=null,ft=null;if(f){const tt=Ko(a).ticks(6);h&&tt.tickFormat(vt=>h(vt.getTime())),it=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${u})`).attr("opacity",0),it.call(tt).selectAll("text").attr("font-size",14).attr("font-weight",500);const mt=Yo(o).ticks(5);p&&mt.tickFormat(vt=>p(vt)),ft=e.append("g").attr("class","axis axis-y").attr("opacity",0),ft.call(mt).selectAll("text").attr("font-size",14).attr("font-weight",500)}const wt=new Map;wt.set(D,{x:B.x,width:B.width});const $t=w.crossFadePause/1e3,Gt=pt+at+$t;J.forEach((tt,mt)=>{const vt=j[mt];if(!vt)return;const lt=r.findIndex(Ft=>Ft.dataKey===vt.dataKey);if(lt===-1)return;const jt=yi(t,r,wt,o,u,lt,D,!1);jt&&z.to(tt,{attr:{d:jt},duration:Tt,ease:"power2.out"},`seatsToBar+=${Gt}`)});const Et=pi().x(tt=>a(tt.data.timestamp)).y0(tt=>o(tt[0])).y1(tt=>o(tt[1])).curve(PP),Dt=new Map;t.forEach((tt,mt)=>{const vt=r[mt];if(vt){const lt=Et(tt)||"";Dt.set(vt.dataKey,lt)}});const ye=Gt+Tt;f&&it&&ft&&z.to([it.node(),ft.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${Gt}`);const Ur=v.select(".grid-vertical"),on=v.select(".grid-horizontal");if(!Ur.empty()||!on.empty()){const mt=[];Ur.empty()||mt.push(Ur.node()),on.empty()||mt.push(on.node()),z.to(mt,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${Gt}`)}const vr=w.axesAndBarsGrow/1e3,Me=w.barsToArea/1e3,sn=g?`histogram-paths histogram-paths-${g}`:"histogram-paths",Wr=v.append("g").attr("class",sn);k.forEach(tt=>{if(tt===D)return;const mt=L.get(tt);mt&&r.forEach((vt,lt)=>{const jt=yi(t,r,L,o,u,lt,tt,!0),Ft=yi(t,r,L,o,u,lt,tt,!1);if(!jt||!Ft)return;const Be=g?`histogram-path histogram-path-${g} category-${Ge(vt.dataKey)}`:`histogram-path category-${Ge(vt.dataKey)}`;Wr.append("path").attr("class",Be).attr("d",jt).attr("fill",vt.color).attr("stroke",vt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",vt.dataKey).attr("data-timestamp",tt).attr("data-x-position",mt.x).attr("data-full-height-path",Ft)})});const ri=g?`.histogram-path-${g}`:".histogram-path",kr=Wr.selectAll(ri);z.to(kr.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${ye}`);const un=B.x+B.width/2;kr.each(function(){var ce;const tt=this.getAttribute("data-full-height-path");if(!tt)return;const mt=parseFloat(this.getAttribute("data-x-position")||"0"),vt=parseFloat(this.getAttribute("data-timestamp")||"0"),lt=((ce=L.get(vt))==null?void 0:ce.width)||0,jt=mt+lt/2,Be=Math.abs(jt-un)*8e-4;z.to(this,{attr:{d:tt},duration:vr,ease:"power2.out"},`seatsToBar+=${ye+Be}`)});const nr=ye+vr,kn=k[k.length-1],ct=a(new Date(kn))+I,St=a.invert(ct).getTime(),Ot=t.map(tt=>{const mt=tt[tt.length-1],vt={...mt,data:{...mt.data,timestamp:St}};return[...tt,vt]});ty(e,Ot,r,{xScale:a,yScale:o,addClasses:!0,instanceId:g});const Mt=g?`.area-${g}`:".area",Xt=e.selectAll(Mt);Xt.attr("opacity",0),z.to(kr.nodes(),{opacity:0,duration:Me,ease:"power2.inOut"},`seatsToBar+=${nr}`);const Le=X.selectAll("path").nodes();Le.length>0&&z.to(Le,{opacity:0,duration:Me,ease:"power2.inOut"},`seatsToBar+=${nr}`),z.to(Xt.nodes(),{opacity:1,duration:Me,ease:"power2.inOut"},`seatsToBar+=${nr}`);const se=c;P.getControls().getTimeline().eventCallback("onComplete",()=>{const tt=g?`.morph-bar-${g}`:".morph-bar";e.selectAll(tt).remove();const mt=g?`.histogram-paths-${g}`:".histogram-paths";e.selectAll(mt).remove(),f&&(it&&it.attr("opacity",1),ft&&ft.attr("opacity",1)),se()}),P.play()}function EN(e,t,r,n,i,a,o,s,u,l,c,f=!0,h,p,y,m,d,g){var nr,kn;const _=g?`.chart-content-group-${g}`:".chart-content-group";let b=e.select(_);if(b.empty()){const rt=e.attr("clip-path"),ct=rt?((nr=rt.match(/url\(#(.+)\)/))==null?void 0:nr[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,_t=g?`chart-content-group chart-content-group-${g}`:"chart-content-group";b=e.append("g").attr("class",_t).attr("clip-path",`url(#${ct})`)}const x=g?`.area-${g}`:".area",v=e.selectAll(x);if(v.size()===0){CN(e,r,n,s,u,g),c();return}const w={areaToBar:l*.2,barsShrink:l*.25,barSlide:l*.175,axesHide:l*.025,barToSeats:l*.3},S=g?mi.get(g):void 0;S&&(S.destroy(),g&&mi.delete(g));const A=rt=>rt<.2?"areaToBar":rt<.45?"barsShrink":rt<.475?"axesHide":rt<.65?"barSlide":"barToSeats",P=new TT({seatsToBar:w.barToSeats,axesReveal:w.axesHide,barSlide:w.barSlide,barsGrow:w.barsShrink,barsToArea:w.areaToBar},{onStageComplete:rt=>{},onProgress:rt=>{if(m){const ct=A(rt);m(rt,ct)}},onComplete:()=>{c()}});g&&mi.set(g,P),y&&y(P.getControls().getTimeline());const T=t[0].map(rt=>rt.data).map(rt=>rt.timestamp),E=d??Math.max(...T),M=new Map,R=[];T.forEach((rt,ct)=>{const _t=a(new Date(rt)),St=T[ct+1];if(St){const Mt=a(new Date(St))-_t;R.push(Mt)}});const $=R.length>0?R.reduce((rt,ct)=>rt+ct,0)/R.length:30;T.forEach((rt,ct)=>{const _t=a(new Date(rt)),St=T[ct+1],Mt=ct===T.length-1?$:a(new Date(St))-_t;M.set(rt,{x:_t,width:Mt})});const k=P.getControls().getTimeline(),D=w.areaToBar/1e3,L=g?`histogram-paths histogram-paths-${g}`:"histogram-paths",q=b.append("g").attr("class",L);T.forEach(rt=>{const ct=M.get(rt);ct&&r.forEach((_t,St)=>{const Ot=yi(t,r,M,o,u,St,rt,!1);if(!Ot)return;const Mt=g?`histogram-path histogram-path-${g} category-${Ge(_t.dataKey)}`:`histogram-path category-${Ge(_t.dataKey)}`;q.append("path").attr("class",Mt).attr("d",Ot).attr("fill",_t.color).attr("stroke",_t.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",_t.dataKey).attr("data-timestamp",rt).attr("data-x-position",ct.x)})});const I=g?`.histogram-path-${g}`:".histogram-path",j=q.selectAll(I);k.to(v.nodes(),{opacity:0,duration:D,ease:"power2.inOut"},"areaToBar"),k.to(j.nodes(),{opacity:1,duration:D,ease:"power2.inOut"},"areaToBar");const B=w.barsShrink/1e3,W=D;j.each(function(){const rt=parseFloat(this.getAttribute("data-timestamp")||"0");if(rt===E)return;const ct=r.find(Ot=>this.classList.contains(`category-${Ge(Ot.dataKey)}`));if(!ct)return;const _t=r.indexOf(ct),St=yi(t,r,M,o,u,_t,rt,!0);St&&k.to(this,{attr:{d:St},duration:B,ease:"power2.in"},W)});const G=w.axesHide/1e3,X=W+B;if(f){const rt=e.select(".axis-x"),ct=e.select(".axis-y");rt.empty()||k.to(rt.node(),{opacity:0,duration:G,ease:"power2.inOut"},X),ct.empty()||k.to(ct.node(),{opacity:0,duration:G,ease:"power2.inOut"},X)}const Z=b.select(".grid-vertical"),J=b.select(".grid-horizontal");Z.empty()||k.to(Z.node(),{opacity:0,duration:G,ease:"power2.inOut"},X),J.empty()||k.to(J.node(),{opacity:0,duration:G,ease:"power2.inOut"},X);const z=w.barSlide/1e3,F=X+G,H=s/2,N=Math.max(...n.seats.map(rt=>H+rt.x));j.each(function(){var Le;const rt=parseFloat(this.getAttribute("data-timestamp")||"0"),ct=((Le=M.get(rt))==null?void 0:Le.width)||0,_t=r.find(se=>this.classList.contains(`category-${Ge(se.dataKey)}`));if(!_t)return;const St=r.indexOf(_t),Ot=rt===E,Mt=new Map(M);Mt.set(rt,{x:N-ct/2,width:ct});const Xt=yi(t,r,Mt,o,u,St,rt,!Ot);Xt&&(k.to(this,{attr:{d:Xt},duration:z,ease:"power2.out"},F),this.setAttribute("data-x-position",(N-ct/2).toString()))});const st=w.barToSeats/1e3,K=F+z,ot=s/2,ht=n.radius+10,at=u-n.radius*.3,pt=Math.max(ht,at),Tt=g?`parliament parliament-${g}`:"parliament",it=b.append("g").attr("class",Tt),ft=N,wt=((kn=M.get(E))==null?void 0:kn.width)||30,$t=[];t.forEach((rt,ct)=>{const _t=rt.find(Ot=>Ot.data.timestamp===E);if(!_t)return;const St=r[ct];St&&$t.push({category:St.label,dataKey:St.dataKey,color:St.color,y0:_t[0],y1:_t[1]})}),$t.sort((rt,ct)=>ct.y0-rt.y0);const Gt=new Map;$t.forEach(rt=>{const ct=n.seats.filter(qe=>qe.category===rt.category),_t=o(rt.y1),St=o(rt.y0)-o(rt.y1),Ot=ct.length,Mt=Math.max(wt,100),Xt=St,Le=Mt/Math.max(Xt,1),se=Math.max(2,Math.ceil(Math.sqrt(Ot*Le))),Se=Math.ceil(Ot/se),tt=Mt*.8,mt=Xt*.8,vt=se>1?tt/(se-1):0,lt=Se>1?mt/(Se-1):0,jt=se>1?(se-1)*vt:0,Ft=Se>1?(Se-1)*lt:0,Be=ft-Mt/2+(Mt-jt)/2,ce=_t+(Xt-Ft)/2;ct.forEach((qe,ir)=>{const Jt=Ot%se;let Gr,$n;if(Jt>0&&ir<Jt)$n=0,Gr=ir;else{const ni=ir-(Jt>0?Jt:0);Gr=ni%se,$n=Math.floor(ni/se)+(Jt>0?1:0)}let Zs=Be+Gr*vt;if(Jt>0&&$n===0){const ni=Jt>1?(Jt-1)*vt:0,Js=(jt-ni)/2;Zs=Be+Js+Gr*vt}const Gi=ce+$n*lt;Gt.set(qe,{x:Zs,y:Gi})})}),n.seats.forEach((rt,ct)=>{const _t=r.find(se=>se.label===rt.category);if(!_t)return;const St=Gt.get(rt),Ot=St?St.x:ot+rt.x,Mt=St?St.y:pt+rt.y,Xt=ot+rt.x,Le=pt+rt.y;it.append("circle").attr("cx",Ot).attr("cy",Mt).attr("r",2).attr("fill",_t.color).attr("stroke",_t.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>g?`seat seat-${g} seat-${Ge(rt.category)}`:`seat seat-${Ge(rt.category)}`).attr("data-layout-index",ct).attr("data-final-x",Xt).attr("data-final-y",Le).attr("data-final-r",rt.radius)});const Et=g?`.seat-${g}`:".seat",Dt=it.selectAll(Et),ye=st*.15;k.to(Dt.nodes(),{opacity:.8,duration:ye,ease:"power2.in"},K),k.to(j.nodes(),{opacity:0,duration:st*.3,ease:"power2.out"},K+ye*.5);const vr=Dt.nodes().map(rt=>{const ct=parseFloat(rt.getAttribute("cx")||"0"),_t=parseFloat(rt.getAttribute("cy")||"0"),St=parseFloat(rt.getAttribute("data-final-x")||"0"),Ot=parseFloat(rt.getAttribute("data-final-y")||"0"),Mt=parseFloat(rt.getAttribute("data-final-r")||"4");return{element:rt,startX:ct,startY:_t,finalX:St,finalY:Ot,finalR:Mt}}).map(rt=>{const ct=rt.finalX-ot,_t=rt.finalY-pt,St=Math.atan2(_t,ct);return{...rt,angle:St}});vr.sort((rt,ct)=>ct.angle-rt.angle);const Me=ye,sn=st*.8,Wr=.6,ri=vr.length,kr=sn/Math.max(ri,1);vr.forEach((rt,ct)=>{const _t=Me+ct*kr,St=rt.finalX-rt.startX,Ot=n.radius;k.to(rt.element,{attr:{cx:rt.finalX,cy:rt.finalY,r:rt.finalR},opacity:1,duration:Wr,ease:"power2.out",onUpdate:function(){const Mt=this.progress(),Xt=this.targets()[0],Le=rt.startX+St*Mt,se=Math.sin(Mt*Math.PI)*Ot*.3,tt=rt.startY+(rt.finalY-rt.startY)*Mt-se;Xt.setAttribute("cx",Le.toString()),Xt.setAttribute("cy",tt.toString())}},K+_t)});const un=c;P.getControls().getTimeline().eventCallback("onComplete",()=>{const rt=g?`.areas-${g}`:".areas",ct=g?`.histogram-paths-${g}`:".histogram-paths";e.selectAll(rt).remove(),e.selectAll(ct).remove(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const _t=g?`.parliament-label-${g}`:".parliament-label";if(e.select(_t).empty()){const Ot=s/2,Mt=n.radius+10,Xt=u-n.radius*.3,Le=Math.max(Mt,Xt),se=g?`parliament-label parliament-label-${g}`:"parliament-label",Se=e.append("g").attr("class",se).attr("transform",`translate(${Ot},${Le-n.radius*.15})`).style("opacity","0").style("pointer-events","none");Se.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),Se.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const tt=Se.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");tt.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),tt.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}un()}),P.play()}function CN(e,t,r,n,i,a){const o=n/2,s=r.radius+10,u=i-r.radius*.3,l=Math.max(s,u);CT(e,r,t,{centerX:o,centerY:l,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function w0(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=ee(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const u=o.select(".scale-indicator");r?u.style("opacity","1").select("text").text(`= ~${n} repos`):u.style("opacity","0")}else o.style("opacity","0")}function of(e,t,r,n,i,a,o,s,u){const l=e.querySelectorAll(".seat");if(!l||l.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];l.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),l.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(v=>v.startsWith("seat-")),g=d[d.length-1];if(!g)return;const _=g.substring(5),b=t.find(v=>Ge(v.label)===_);if(!b)return;const x=()=>{i(b.label);const v=Math.round(c.values[b.dataKey]||0),w=ET(b.color),S={label:b.label,value:v,color:w};a&&a(S),w0(e,S,o??!1,s??1,u),No(e,b.label)};p.addEventListener("mouseenter",x),f.push({element:p,handler:x})});const h=()=>{i(null),a&&a(null),w0(e,null,!1,1,u),No(e,null)};return e.addEventListener("mouseleave",h),n&&No(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),l.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function No(e,t){const r=e.querySelectorAll(".seat"),n=t?Ge(t):null;r.forEach(i=>{const a=i,u=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),l=u[u.length-1];if(!l)return;const c=l.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const kT=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:u=!0,formatDate:l,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:p=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:d,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:x,hoveredCategory:v,maxSeats:w=500,showTooltip:S=!0,showTable:A=!1,showScaledIndicator:P=!0,parliamentTimestamp:C,enableBrush:T=!1,onTimeRangeChange:E,timelineEvents:M=[],showTimeline:R=!1,timelineHeight:$=40,timelineOffset:k=35})=>{const D=O.useRef(null),L=O.useCallback(F=>{x&&x(F)},[x]),q=e[e.length-1],I=q?t.reduce((F,H)=>F+(q.values[H.dataKey]||0),0):0,j=I>w,B=j?Math.round(I/w):1,W=R&&r==="stacked-area"?i+$+k:i,{isMorphing:G,currentMode:X,visibleMarkers:Z,hoveredMarker:J,hoveredTimelineEvent:z}=SN({containerRef:D,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:u,formatDate:l,formatValue:c,markers:f,arcAngle:h,parliamentRadius:p,seatSize:y,animationDuration:m,onMorphComplete:d,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:L,hoveredCategory:v,maxSeats:w,parliamentTimestamp:C,enableBrush:T,onTimeRangeChange:E,showScaleIndicator:P&&j,reposPerSeat:B,timelineEvents:M,showTimeline:R,timelineHeight:$,timelineOffset:k});return U.jsxs(V.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[U.jsx("svg",{ref:D,viewBox:`0 0 ${n} ${W}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),X==="area"&&Z.map(F=>{const H=(F.x+a.left)/n*100,Q=a.top/i*100,N=new Date(F.timestamp),st=l?l(F.timestamp):N.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),K=U.jsxs(V.Box,{children:[U.jsx(V.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:F.label?.5:0},children:st}),F.label&&U.jsx(V.Box,{sx:{color:"white",fontWeight:500},children:F.label})]});return U.jsx(V.Tooltip,{title:K,open:(J==null?void 0:J.timestamp)===F.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:U.jsx(V.Box,{sx:{position:"absolute",left:`${H}%`,top:`${Q}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},F.timestamp)}),z&&X==="area"&&U.jsx(V.Tooltip,{title:U.jsxs(V.Box,{children:[U.jsx(V.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:l?l(z.timestamp):new Date(z.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),U.jsx(V.Box,{sx:{color:"white",fontWeight:500},children:z.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:U.jsx(V.Box,{sx:{position:"absolute",left:`${(z.x+a.left)/n*100}%`,top:`${(i+k+$/2)/W*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),G&&U.jsxs(V.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",X," → ",r]})]})},$T=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:20,maxSeatSize:20},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:16,maxSeatSize:16},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:12,maxSeatSize:12},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:8.5,maxSeatSize:8.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:7,maxSeatSize:7},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:6.5,maxSeatSize:6.5}],mg=({repositoryCount:e})=>{const t=$T.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},yg=({repositoryCount:e})=>{const t=$T.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class Gs{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Gs.prototype.normal={};Gs.prototype.property={};Gs.prototype.space=void 0;function jT(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Gs(r,n,t)}function us(e){return e.toLowerCase()}class rr{constructor(t,r){this.attribute=r,this.property=t}}rr.prototype.attribute="";rr.prototype.booleanish=!1;rr.prototype.boolean=!1;rr.prototype.commaOrSpaceSeparated=!1;rr.prototype.commaSeparated=!1;rr.prototype.defined=!1;rr.prototype.mustUseProperty=!1;rr.prototype.number=!1;rr.prototype.overloadedBoolean=!1;rr.prototype.property="";rr.prototype.spaceSeparated=!1;rr.prototype.space=void 0;let MN=0;const xt=Fi(),fe=Fi(),ey=Fi(),et=Fi(),Vt=Fi(),la=Fi(),ar=Fi();function Fi(){return 2**++MN}const ry=Object.freeze(Object.defineProperty({__proto__:null,boolean:xt,booleanish:fe,commaOrSpaceSeparated:ar,commaSeparated:la,number:et,overloadedBoolean:ey,spaceSeparated:Vt},Symbol.toStringTag,{value:"Module"})),sf=Object.keys(ry);class vg extends rr{constructor(t,r,n,i){let a=-1;if(super(t,r),S0(this,"space",i),typeof n=="number")for(;++a<sf.length;){const o=sf[a];S0(this,sf[a],(n&ry[o])===ry[o])}}}vg.prototype.defined=!0;function S0(e,t,r){r&&(e[t]=r)}function Va(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new vg(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[us(n)]=n,r[us(a.attribute)]=n}return new Gs(t,r,e.space)}const RT=Va({properties:{ariaActiveDescendant:null,ariaAtomic:fe,ariaAutoComplete:null,ariaBusy:fe,ariaChecked:fe,ariaColCount:et,ariaColIndex:et,ariaColSpan:et,ariaControls:Vt,ariaCurrent:null,ariaDescribedBy:Vt,ariaDetails:null,ariaDisabled:fe,ariaDropEffect:Vt,ariaErrorMessage:null,ariaExpanded:fe,ariaFlowTo:Vt,ariaGrabbed:fe,ariaHasPopup:null,ariaHidden:fe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Vt,ariaLevel:et,ariaLive:null,ariaModal:fe,ariaMultiLine:fe,ariaMultiSelectable:fe,ariaOrientation:null,ariaOwns:Vt,ariaPlaceholder:null,ariaPosInSet:et,ariaPressed:fe,ariaReadOnly:fe,ariaRelevant:null,ariaRequired:fe,ariaRoleDescription:Vt,ariaRowCount:et,ariaRowIndex:et,ariaRowSpan:et,ariaSelected:fe,ariaSetSize:et,ariaSort:null,ariaValueMax:et,ariaValueMin:et,ariaValueNow:et,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function DT(e,t){return t in e?e[t]:t}function IT(e,t){return DT(e,t.toLowerCase())}const kN=Va({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:la,acceptCharset:Vt,accessKey:Vt,action:null,allow:null,allowFullScreen:xt,allowPaymentRequest:xt,allowUserMedia:xt,alt:null,as:null,async:xt,autoCapitalize:null,autoComplete:Vt,autoFocus:xt,autoPlay:xt,blocking:Vt,capture:null,charSet:null,checked:xt,cite:null,className:Vt,cols:et,colSpan:null,content:null,contentEditable:fe,controls:xt,controlsList:Vt,coords:et|la,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xt,defer:xt,dir:null,dirName:null,disabled:xt,download:ey,draggable:fe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xt,formTarget:null,headers:Vt,height:et,hidden:ey,high:et,href:null,hrefLang:null,htmlFor:Vt,httpEquiv:Vt,id:null,imageSizes:null,imageSrcSet:null,inert:xt,inputMode:null,integrity:null,is:null,isMap:xt,itemId:null,itemProp:Vt,itemRef:Vt,itemScope:xt,itemType:Vt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xt,low:et,manifest:null,max:null,maxLength:et,media:null,method:null,min:null,minLength:et,multiple:xt,muted:xt,name:null,nonce:null,noModule:xt,noValidate:xt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xt,optimum:et,pattern:null,ping:Vt,placeholder:null,playsInline:xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xt,referrerPolicy:null,rel:Vt,required:xt,reversed:xt,rows:et,rowSpan:et,sandbox:Vt,scope:null,scoped:xt,seamless:xt,selected:xt,shadowRootClonable:xt,shadowRootDelegatesFocus:xt,shadowRootMode:null,shape:null,size:et,sizes:null,slot:null,span:et,spellCheck:fe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:et,step:null,style:null,tabIndex:et,target:null,title:null,translate:null,type:null,typeMustMatch:xt,useMap:null,value:fe,width:et,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Vt,axis:null,background:null,bgColor:null,border:et,borderColor:null,bottomMargin:et,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xt,declare:xt,event:null,face:null,frame:null,frameBorder:null,hSpace:et,leftMargin:et,link:null,longDesc:null,lowSrc:null,marginHeight:et,marginWidth:et,noResize:xt,noHref:xt,noShade:xt,noWrap:xt,object:null,profile:null,prompt:null,rev:null,rightMargin:et,rules:null,scheme:null,scrolling:fe,standby:null,summary:null,text:null,topMargin:et,valueType:null,version:null,vAlign:null,vLink:null,vSpace:et,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xt,disableRemotePlayback:xt,prefix:null,property:null,results:et,security:null,unselectable:null},space:"html",transform:IT}),$N=Va({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ar,accentHeight:et,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:et,amplitude:et,arabicForm:null,ascent:et,attributeName:null,attributeType:null,azimuth:et,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:et,by:null,calcMode:null,capHeight:et,className:Vt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:et,diffuseConstant:et,direction:null,display:null,dur:null,divisor:et,dominantBaseline:null,download:xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:et,enableBackground:null,end:null,event:null,exponent:et,externalResourcesRequired:null,fill:null,fillOpacity:et,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:la,g2:la,glyphName:la,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:et,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:et,horizOriginX:et,horizOriginY:et,id:null,ideographic:et,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:et,k:et,k1:et,k2:et,k3:et,k4:et,kernelMatrix:ar,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:et,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:et,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:et,overlineThickness:et,paintOrder:null,panose1:null,path:null,pathLength:et,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Vt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:et,pointsAtY:et,pointsAtZ:et,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ar,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ar,rev:ar,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ar,requiredFeatures:ar,requiredFonts:ar,requiredFormats:ar,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:et,specularExponent:et,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:et,strikethroughThickness:et,string:null,stroke:null,strokeDashArray:ar,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:et,strokeOpacity:et,strokeWidth:null,style:null,surfaceScale:et,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ar,tabIndex:et,tableValues:null,target:null,targetX:et,targetY:et,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ar,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:et,underlineThickness:et,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:et,values:null,vAlphabetic:et,vMathematical:et,vectorEffect:null,vHanging:et,vIdeographic:et,version:null,vertAdvY:et,vertOriginX:et,vertOriginY:et,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:et,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:DT}),NT=Va({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),LT=Va({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:IT}),BT=Va({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),jN=/[A-Z]/g,O0=/-[a-z]/g,RN=/^data[-\w.:]+$/i;function qT(e,t){const r=us(t);let n=t,i=rr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&RN.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(O0,IN);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!O0.test(a)){let o=a.replace(jN,DN);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=vg}return new i(n,t)}function DN(e){return"-"+e.toLowerCase()}function IN(e){return e.charAt(1).toUpperCase()}const FT=jT([RT,kN,NT,LT,BT],"html"),gg=jT([RT,$N,NT,LT,BT],"svg");function A0(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function NN(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const P0=/[#.]/g;function LN(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){P0.lastIndex=i;const s=P0.exec(r),u=r.slice(i,s?s.index:r.length);u&&(a?a==="#"?n.id=u:Array.isArray(n.className)?n.className.push(u):n.className=[u]:o=u,i+=u.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function T0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function BN(e){return e.join(" ").trim()}function zT(e,t,r){const n=r?UN(r):void 0;function i(a,o,...s){let u;if(a==null){u={type:"root",children:[]};const l=o;s.unshift(l)}else{u=LN(a,t);const l=u.tagName.toLowerCase(),c=n?n.get(l):void 0;if(u.tagName=c||l,qN(o))s.unshift(o);else for(const[f,h]of Object.entries(o))FN(e,u.properties,f,h)}for(const l of s)ny(u.children,l);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function qN(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function FN(e,t,r,n){const i=qT(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=T0(n):i.commaSeparated?a=A0(n):i.commaOrSpaceSeparated?a=T0(A0(n).join(" ")):a=E0(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?zN(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(E0(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function ny(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)ny(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?ny(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function E0(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||us(r)===us(t)))return!0}return r}function zN(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function UN(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const WN=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];zT(FT,"div");const Hs=zT(gg,"g",WN),UT=(e=Hs)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:Qe.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:Qe.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:Qe.neoGrey[400],"stroke-width":.5})]),WT=(e=Hs)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),GT=(e=Hs)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Ut={greyHatch:{background:Qe.neoGrey[200],lines:Qe.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},GN=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>U.jsx(V.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:U.jsxs(V.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[U.jsx("thead",{children:U.jsxs(V.TableRow,{children:[U.jsx(V.TableCell,{}),U.jsx(V.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?U.jsxs(U.Fragment,{children:[U.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),U.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):U.jsxs(U.Fragment,{children:[U.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),U.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),U.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),U.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:a.color;return U.jsxs(V.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[U.jsx(V.TableCell,{align:"center",sx:{width:20},children:U.jsx(V.Box,{sx:{width:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?Ut.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.background:a.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
15
+ */var Kb,ui,qa,Kv,Wi,Xb,Xv,TN=function(){return typeof window<"u"},Vn={},Bi=180/Math.PI,Fa=Math.PI/180,Pa=Math.atan2,Yb=1e8,Yv=/([A-Z])/g,PN=/(left|right|width|margin|padding|x)/i,EN=/[\s,\(]\S/,_n={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ky=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},CN=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},MN=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},kN=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},ZP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},JP=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},$N=function(t,r,n){return t.style[r]=n},jN=function(t,r,n){return t.style.setProperty(r,n)},RN=function(t,r,n){return t._gsap[r]=n},DN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},IN=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},NN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},ae="transform",hr=ae+"Origin",LN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in Vn&&a){if(this.tfm=this.tfm||{},t!=="transform")t=_n[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=Ln(i,s)}):this.tfm[t]=o.x?o[t]:Ln(i,t),t===hr&&(this.tfm.zOrigin=o.zOrigin);else return _n.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(ae)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(hr,r,"")),t=ae}(a||r)&&this.props.push(t,r,a[t])},QP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},BN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Yv,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=Xv(),(!a||!a.isStart)&&!n[ae]&&(QP(n),i.zOrigin&&n[hr]&&(n[hr]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},tE=function(t,r){var n={target:t,props:[],revert:BN,save:LN};return t._gsap||mr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},eE,$y=function(t,r){var n=ui.createElementNS?ui.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ui.createElement(t);return n&&n.style?n:ui.createElement(t)},qr=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Yv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,io(r)||r,1)||""},Vb="O,Moz,ms,Ms,Webkit".split(","),io=function(t,r,n){var i=r||Wi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Vb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Vb[o]:"")+t},jy=function(){TN()&&window.document&&(Kb=window,ui=Kb.document,qa=ui.documentElement,Wi=$y("div")||{style:{}},$y("div"),ae=io(ae),hr=ae+"Origin",Wi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",eE=!!io("perspective"),Xv=mr.core.reverting,Kv=1)},Zb=function(t){var r=t.ownerSVGElement,n=$y("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),qa.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),qa.removeChild(n),a},Jb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},rE=function(t){var r,n;try{r=t.getBBox()}catch{r=Zb(t),n=1}return r&&(r.width||r.height)||n||(r=Zb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Jb(t,["x","cx","x1"])||0,y:+Jb(t,["y","cy","y1"])||0,width:0,height:0}:r},nE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&rE(t))},sa=function(t,r){if(r){var n=t.style,i;r in Vn&&r!==hr&&(r=ae),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Yv,"-$1").toLowerCase())):n.removeAttribute(r)}},ci=function(t,r,n,i,a,o){var s=new fr(t._pt,r,n,0,1,o?JP:ZP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},Qb={deg:1,rad:1,turn:1},qN={grid:1,flex:1},vi=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Wi.style,l=PN.test(r),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,v;if(i===o||!a||Qb[i]||Qb[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),v=t.getCTM&&nE(t),(p||o==="%")&&(Vn[r]||~r.indexOf("adius")))return y=v?t.getBBox()[l?"width":"height"]:t[c],fe(p?a/y*f:a/100*y);if(s[l?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===ui||!m.appendChild)&&(m=ui.body),d=m._gsap,d&&p&&d.width&&l&&d.time===Or.time&&!d.uncache)return fe(a/d.width*f);if(p&&(r==="height"||r==="width")){var x=t.style[r];t.style[r]=f+i,y=t[c],x?t.style[r]=x:sa(t,r)}else(p||o==="%")&&!qN[qr(m,"display")]&&(s.position=qr(t,"position")),m===t&&(s.position="static"),m.appendChild(Wi),y=Wi[c],m.removeChild(Wi),s.position="absolute";return l&&p&&(d=Vi(m),d.time=Or.time,d.width=m[c]),fe(h?y*a/f:y&&a?f/y*a:0)},Ln=function(t,r,n,i){var a;return Kv||jy(),r in _n&&r!=="transform"&&(r=_n[r],~r.indexOf(",")&&(r=r.split(",")[0])),Vn[r]&&r!=="transform"?(a=zs(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Nu(qr(t,hr))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Iu[r]&&Iu[r](t,r,n)||qr(t,r)||bP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?vi(t,r,a,n)+n:a},FN=function(t,r,n,i){if(!n||n==="none"){var a=io(r,t,1),o=a&&qr(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=qr(t,"borderTopColor"))}var s=new fr(this._pt,t.style,r,0,1,XP),l=0,u=0,c,f,h,p,y,m,d,v,x,b,_,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=qr(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=qr(t,r)||i,m?t.style[r]=m:sa(t,r)),c=[n,i],LP(c),n=c[0],i=c[1],h=n.match(ja)||[],g=i.match(ja)||[],g.length){for(;f=ja.exec(i);)d=f[0],x=i.substring(l,f.index),y?y=(y+1)%5:(x.substr(-5)==="rgba("||x.substr(-5)==="hsla(")&&(y=1),d!==(m=h[u++]||"")&&(p=parseFloat(m)||0,_=m.substr((p+"").length),d.charAt(1)==="="&&(d=Ba(p,d)+_),v=parseFloat(d),b=d.substr((v+"").length),l=ja.lastIndex-b.length,b||(b=b||Er.units[r]||_,l===i.length&&(i+=b,s.e+=b)),_!==b&&(p=vi(t,r,m,b)||0),s._pt={_next:s._pt,p:x||u===1?x:",",s:p,c:v-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=l<i.length?i.substring(l,i.length):""}else s.r=r==="display"&&i==="none"?JP:ZP;return pP.test(i)&&(s.e=0),this._pt=s,s},t_={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},zN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=t_[n]||n,r[1]=t_[i]||i,r.join(" ")},UN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,l,u;if(a==="all"||a===!0)i.cssText="",l=1;else for(a=a.split(","),u=a.length;--u>-1;)s=a[u],Vn[s]&&(l=1,s=s==="transformOrigin"?hr:ae),sa(n,s);l&&(sa(n,ae),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",zs(n,1),o.uncache=1,QP(i)))}},Iu={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new fr(t._pt,r,n,0,0,UN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},Fs=[1,0,0,1,0,0],iE={},aE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},e_=function(t){var r=qr(t,ae);return aE(r)?Fs:r.substr(7).match(hP).map(fe)},Vv=function(t,r){var n=t._gsap||Vi(t),i=t.style,a=e_(t),o,s,l,u;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?Fs:a):(a===Fs&&!t.offsetParent&&t!==qa&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,s=t.nextElementSibling,qa.appendChild(t)),a=e_(t),l?i.display=l:sa(t,"display"),u&&(s?o.insertBefore(t,s):o?o.appendChild(t):qa.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Ry=function(t,r,n,i,a,o){var s=t._gsap,l=a||Vv(t,!0),u=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=l[0],y=l[1],m=l[2],d=l[3],v=l[4],x=l[5],b=r.split(" "),_=parseFloat(b[0])||0,g=parseFloat(b[1])||0,w,S,A,T;n?l!==Fs&&(S=p*d-y*m)&&(A=_*(d/S)+g*(-m/S)+(m*x-d*v)/S,T=_*(-y/S)+g*(p/S)-(p*x-y*v)/S,_=A,g=T):(w=rE(t),_=w.x+(~b[0].indexOf("%")?_/100*w.width:_),g=w.y+(~(b[1]||b[0]).indexOf("%")?g/100*w.height:g)),i||i!==!1&&s.smooth?(v=_-u,x=g-c,s.xOffset=f+(v*p+x*m)-v,s.yOffset=h+(v*y+x*d)-x):s.xOffset=s.yOffset=0,s.xOrigin=_,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[hr]="0px 0px",o&&(ci(o,s,"xOrigin",u,_),ci(o,s,"yOrigin",c,g),ci(o,s,"xOffset",f,s.xOffset),ci(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",_+" "+g)},zs=function(t,r){var n=t._gsap||new zP(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",l=getComputedStyle(t),u=qr(t,hr)||"0",c,f,h,p,y,m,d,v,x,b,_,g,w,S,A,T,M,P,E,C,k,j,R,L,z,W,I,D,N,q,K,B;return c=f=h=m=d=v=x=b=_=0,p=y=1,n.svg=!!(t.getCTM&&nE(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[ae]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[ae]!=="none"?l[ae]:"")),i.scale=i.rotate=i.translate="none"),S=Vv(t,n.svg),n.svg&&(n.uncache?(z=t.getBBox(),u=n.xOrigin-z.x+"px "+(n.yOrigin-z.y)+"px",L=""):L=!r&&t.getAttribute("data-svg-origin"),Ry(t,L||u,!!L||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,w=n.yOrigin||0,S!==Fs&&(P=S[0],E=S[1],C=S[2],k=S[3],c=j=S[4],f=R=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt(k*k+C*C),m=P||E?Pa(E,P)*Bi:0,x=C||k?Pa(C,k)*Bi+m:0,x&&(y*=Math.abs(Math.cos(x*Fa))),n.svg&&(c-=g-(g*P+w*C),f-=w-(g*E+w*k))):(B=S[6],q=S[7],I=S[8],D=S[9],N=S[10],K=S[11],c=S[12],f=S[13],h=S[14],A=Pa(B,N),d=A*Bi,A&&(T=Math.cos(-A),M=Math.sin(-A),L=j*T+I*M,z=R*T+D*M,W=B*T+N*M,I=j*-M+I*T,D=R*-M+D*T,N=B*-M+N*T,K=q*-M+K*T,j=L,R=z,B=W),A=Pa(-C,N),v=A*Bi,A&&(T=Math.cos(-A),M=Math.sin(-A),L=P*T-I*M,z=E*T-D*M,W=C*T-N*M,K=k*M+K*T,P=L,E=z,C=W),A=Pa(E,P),m=A*Bi,A&&(T=Math.cos(A),M=Math.sin(A),L=P*T+E*M,z=j*T+R*M,E=E*T-P*M,R=R*T-j*M,P=L,j=z),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,v=180-v),p=fe(Math.sqrt(P*P+E*E+C*C)),y=fe(Math.sqrt(R*R+B*B)),A=Pa(j,R),x=Math.abs(A)>2e-4?A*Bi:0,_=K?1/(K<0?-K:K):0),n.svg&&(L=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!aE(qr(t,ae)),L&&t.setAttribute("transform",L))),Math.abs(x)>90&&Math.abs(x)<270&&(a?(p*=-1,x+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,x+=x<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=fe(p),n.scaleY=fe(y),n.rotation=fe(m)+s,n.rotationX=fe(d)+s,n.rotationY=fe(v)+s,n.skewX=x+s,n.skewY=b+s,n.transformPerspective=_+o,(n.zOrigin=parseFloat(u.split(" ")[2])||!r&&n.zOrigin||0)&&(i[hr]=Nu(u)),n.xOffset=n.yOffset=0,n.force3D=Er.force3D,n.renderTransform=n.svg?HN:eE?oE:WN,n.uncache=0,n},Nu=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ff=function(t,r,n){var i=Ke(r);return fe(parseFloat(r)+parseFloat(vi(t,"x",n+"px",i)))+i},WN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,oE(t,r)},Di="0deg",Xo="0px",Ii=") ",oE=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.z,u=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,v=n.force3D,x=n.target,b=n.zOrigin,_="",g=v==="auto"&&t&&t!==1||v===!0;if(b&&(f!==Di||c!==Di)){var w=parseFloat(c)*Fa,S=Math.sin(w),A=Math.cos(w),T;w=parseFloat(f)*Fa,T=Math.cos(w),o=Ff(x,o,S*T*-b),s=Ff(x,s,-Math.sin(w)*-b),l=Ff(x,l,A*T*-b+b)}d!==Xo&&(_+="perspective("+d+Ii),(i||a)&&(_+="translate("+i+"%, "+a+"%) "),(g||o!==Xo||s!==Xo||l!==Xo)&&(_+=l!==Xo||g?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+Ii),u!==Di&&(_+="rotate("+u+Ii),c!==Di&&(_+="rotateY("+c+Ii),f!==Di&&(_+="rotateX("+f+Ii),(h!==Di||p!==Di)&&(_+="skew("+h+", "+p+Ii),(y!==1||m!==1)&&(_+="scale("+y+", "+m+Ii),x.style[ae]=_||"translate(0, 0)"},HN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.rotation,u=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,v=n.yOffset,x=n.forceCSS,b=parseFloat(o),_=parseFloat(s),g,w,S,A,T;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Fa,u*=Fa,g=Math.cos(l)*f,w=Math.sin(l)*f,S=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=Fa,T=Math.tan(u-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,w*=T)),g=fe(g),w=fe(w),S=fe(S),A=fe(A)):(g=f,A=h,w=S=0),(b&&!~(o+"").indexOf("px")||_&&!~(s+"").indexOf("px"))&&(b=vi(p,"x",o,"px"),_=vi(p,"y",s,"px")),(y||m||d||v)&&(b=fe(b+y-(y*g+m*S)+d),_=fe(_+m-(y*w+m*A)+v)),(i||a)&&(T=p.getBBox(),b=fe(b+i/100*T.width),_=fe(_+a/100*T.height)),T="matrix("+g+","+w+","+S+","+A+","+b+","+_+")",p.setAttribute("transform",T),x&&(p.style[ae]=T)},GN=function(t,r,n,i,a){var o=360,s=$e(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?Bi:1),u=l-i,c=i+u+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Yb)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Yb)%o-~~(u/o)*o)),t._pt=h=new fr(t._pt,r,n,i,u,CN),h.e=c,h.u="deg",t._props.push(n),h},r_=function(t,r){for(var n in r)t[n]=r[n];return t},KN=function(t,r,n){var i=r_({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,l,u,c,f,h,p,y;i.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),o[ae]=r,s=zs(n,1),sa(n,ae),n.setAttribute("transform",u)):(u=getComputedStyle(n)[ae],o[ae]=r,s=zs(n,1),o[ae]=u);for(l in Vn)u=i[l],c=s[l],u!==c&&a.indexOf(l)<0&&(p=Ke(u),y=Ke(c),f=p!==y?vi(n,l,u,y):parseFloat(u),h=parseFloat(c),t._pt=new fr(t._pt,s,l,f,h-f,ky),t._pt.u=y||0,t._props.push(l));r_(s,i)};cr("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});Iu[t>1?"border"+e:e]=function(s,l,u,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return Ln(s,y,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(l,p,f)}});var sE={name:"css",register:jy,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,l=n.vars.startAt,u,c,f,h,p,y,m,d,v,x,b,_,g,w,S,A;Kv||jy(),this.styles=this.styles||tE(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(Ar[m]&&UP(m,r,n,i,t,a)))){if(p=typeof c,y=Iu[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Ls(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",yi.lastIndex=0,yi.test(u)||(d=Ke(u),v=Ke(c)),v?d!==v&&(u=vi(t,m,u,v)+v):d&&(c+=d),this.add(s,"setProperty",u,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(n,i,t,a):l[m],$e(u)&&~u.indexOf("random(")&&(u=Ls(u)),Ke(u+"")||u==="auto"||(u+=Er.units[m]||Ke(Ln(t,m))||""),(u+"").charAt(1)==="="&&(u=Ln(t,m))):u=Ln(t,m),h=parseFloat(u),x=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),x&&(c=c.substr(2)),f=parseFloat(c),m in _n&&(m==="autoAlpha"&&(h===1&&Ln(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),ci(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=_n[m],~m.indexOf(",")&&(m=m.split(",")[0]))),b=m in Vn,b){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=qr(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),_||(g=t._gsap,g.renderTransform&&!r.parseTransform||zs(t,r.parseTransform),w=r.smoothOrigin!==!1&&g.smooth,_=this._pt=new fr(this._pt,s,ae,0,1,g.renderTransform,g,0,-1),_.dep=1),m==="scale")this._pt=new fr(this._pt,g,"scaleY",g.scaleY,(x?Ba(g.scaleY,x+f):f)-g.scaleY||0,ky),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(hr,0,s[hr]),c=zN(c),g.svg?Ry(t,c,0,w,0,this):(v=parseFloat(c.split(" ")[2])||0,v!==g.zOrigin&&ci(this,g,"zOrigin",g.zOrigin,v),ci(this,s,m,Nu(u),Nu(c)));continue}else if(m==="svgOrigin"){Ry(t,c,1,w,0,this);continue}else if(m in iE){GN(this,g,m,h,x?Ba(h,x+c):c);continue}else if(m==="smoothOrigin"){ci(this,g,"smooth",g.smooth,c);continue}else if(m==="force3D"){g[m]=c;continue}else if(m==="transform"){KN(this,c,t);continue}}else m in s||(m=io(m)||m);if(b||(f||f===0)&&(h||h===0)&&!EN.test(c)&&m in s)d=(u+"").substr((h+"").length),f||(f=0),v=Ke(c)||(m in Er.units?Er.units[m]:d),d!==v&&(h=vi(t,m,u,v)),this._pt=new fr(this._pt,b?g:s,m,h,(x?Ba(h,x+f):f)-h,!b&&(v==="px"||m==="zIndex")&&r.autoRound!==!1?kN:ky),this._pt.u=v||0,d!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=MN);else if(m in s)FN.call(this,t,m,u,x?x+c:c);else if(m in t)this.add(t,m,u||t[m],x?x+c:c,i,a);else if(m!=="parseTransform"){Nv(m,c);continue}b||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,u||t[m])),o.push(m)}}S&&YP(this)},render:function(t,r){if(r.tween._time||!Xv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:Ln,aliases:_n,getSetter:function(t,r,n){var i=_n[r];return i&&i.indexOf(",")<0&&(r=i),r in Vn&&r!==hr&&(t._gsap.x||Ln(t,"x"))?n&&Xb===n?r==="scale"?DN:RN:(Xb=n||{})&&(r==="scale"?IN:NN):t.style&&!Rv(t.style[r])?$N:~r.indexOf("-")?jN:Hv(t,r)},core:{_removeProperty:sa,_getMatrix:Vv}};mr.utils.checkPrefix=io;mr.core.getStyleSaver=tE;(function(e,t,r,n){var i=cr(e+","+t+","+r,function(a){Vn[a]=1});cr(t,function(a){Er.units[a]="deg",iE[a]=1}),_n[i[13]]=e+","+t,cr(n,function(a){var o=a.split(":");_n[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");cr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Er.units[e]="px"});mr.registerPlugin(sE);var Dy=mr.registerPlugin(sE)||mr;Dy.core.Tween;const Ea={IN_OUT:"power2.inOut",OUT:"power2.out"},Yo={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class lE{constructor(t,r={}){zo(this,"timeline");zo(this,"currentStage","");zo(this,"callbacks");zo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Dy.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToRings",n),n+=t.seatsToRings/1e3,this.timeline.addLabel("ringsToBar",n),n+=t.ringsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToRings(t,r){const n=this.durations.seatsToRings/1e3;return t.each(function(){const i=this;if(!i.getAttribute("data-orig-x")){const a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("width"),l=i.getAttribute("height");i.setAttribute("data-orig-x",a||"0"),i.setAttribute("data-orig-y",o||"0"),i.setAttribute("data-orig-width",s||"0"),i.setAttribute("data-orig-height",l||"0")}}),this.timeline.to(t.nodes(),{width:2,y:(i,a)=>parseFloat(a.getAttribute("y")||"0"),height:(i,a)=>{const o=parseFloat(a.getAttribute("y")||"0");return r-o},duration:n,ease:Ea.IN_OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToRings",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToRings")}},"seatsToRings"),this}animateRingsToBar(t,r){const n=this.durations.ringsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const l=o.getAttribute("x"),u=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",l||"0"),o.setAttribute("data-orig-y",u||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:Ea.IN_OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="ringsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"ringsToBar")}},"ringsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:Ea.IN_OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:Ea.OUT,stagger:Yo.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=Yo.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const l=o,u=l.getAttribute("data-final-y")||"0",c=l.getAttribute("data-final-height")||"0",f=parseInt(l.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(l,{height:0,y:parseFloat(l.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(u),height:parseFloat(c),duration:i,delay:p,ease:Ea.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,l=s.getAttribute("class");if(!l)return;const u=l.match(/category-([\w-]+)/);if(u&&u[1]){const f=u[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,l=s.getAttribute("data-category");if(!l)return;const u=n.get(l);u&&Dy.to(s,{attr:{d:u},duration:a,ease:Ea.IN_OUT})}),this.timeline.call(()=>{var s,l;this.currentStage="barsToArea",(l=(s=this.callbacks).onStageComplete)==null||l.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function XN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:l,innerRadiusRatio:u}=t,c=i*u,f=e.reduce((E,C)=>E+C.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const C=E*Math.PI/180;for(let k=s;k>=o;k-=.1){const j=k*2,R=j*l,L=Math.floor((i-c)/R);for(let z=1;z<=Math.min(L,10);z++){let W=0;for(let I=0;I<z;I++){const D=c+(I+.5)*R,N=j*l/D,q=Math.floor(C/N);W+=q}if(W>=f){const I=f/W,D=(k-o)/(s-o),N=(W-f)/f,q=N<.15?1:N<.3?.7:N<.5?.4:.1,K=1-Math.abs(E-r)/n,B=q*.5+D*.3+I*.15+K*.05;B>h.score&&(h={seatSize:k,arcAngle:E,rings:z,score:B})}}}}const m=h.seatSize,d=h.arcAngle,v=d*Math.PI/180,x=m*2,b=x*l,_=Math.floor((i-c)/b),g=[],w=-v/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=_;E++){let C=0;const k=[];for(let j=0;j<E;j++){const R=c+(j+.5)*b,L=x*l/R,z=Math.floor(v/L);k.push(z),C+=z}if(C>=f){A=E,T=k;break}}if(A>0)S.push(...T);else for(let E=0;E<_;E++){const C=c+(E+.5)*b,k=x*l/C,j=Math.floor(v/k);S.push(j)}for(let E=0;E<S.length;E++){const C=c+(E+.5)*b,k=S[E]??0;if(k>0){const j=v/k;for(let R=0;R<k;R++){const L=w+(R+.5)*j,z=Math.cos(L)*C,W=Math.sin(L)*C;g.push({ring:E,index:R,angle:L,x:z,y:W})}}}g.sort((E,C)=>{const k=E.angle-C.angle;return Math.abs(k)>.001?k:E.ring-C.ring});const M=[];let P=0;return e.forEach((E,C)=>{const k=Math.min(E.seats,g.length-P);for(let j=0;j<k&&P<g.length;j++){const R=g[P++];R&&M.push({x:R.x,y:R.y,category:E.name,categoryIndex:C,seatIndex:j,ring:R.ring,angle:R.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:M,totalSeats:f}}function YN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}const pr={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},ys=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],sr={greyHatch:{background:pr.neoGrey[200],lines:pr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function VN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",sr.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",sr.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",sr.greyHatch.lines).attr("stroke-width",.5)}function ZN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",sr.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",sr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",sr.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",sr.dataMissingHatch.lines).attr("stroke-width",.5)}function JN(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",sr.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",sr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",sr.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",sr.noLstHatch.lines).attr("stroke-width",.5)}function zl(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),VN(r,t),ZN(r,t),JN(r,t)}function n_(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function uE(e){return e.includes("greyHatchPattern")?sr.greyHatch.lines:e.includes("dataMissingHatchPattern")?sr.dataMissingHatch.lines:e.includes("noLstHatchPattern")?sr.noLstHatch.lines:e}function Iy(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,l=Ui().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(oa),u=Mv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(oa),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var v;const y=r[p];if(!y)return;const m=((v=y.parliamentMapping)==null?void 0:v.isSpecialCategory)??!1,d=uE(y.color);if(m){const x=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",u).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;x.attr("class",b)}}else{const x=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",l).style("pointer-events","none");if(o){const b=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;x.attr("class",b)}}})}function QN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,l=a,u=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:l,y1:u,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function We(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function cE(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:l=200}=n,u=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",u)),t.seats.forEach(p=>{const y=r.find(v=>v.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const v=s?`seat seat-${s} seat-${We(p.category)}`:`seat seat-${We(p.category)}`;m.attr("class",v),d.attr("class",v)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-l*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function tL(e,t,r,n,i,a,o=!1){var f;const s=new Map;let l=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;l=r(new Date(h))}const u=new Map;for(const h of e.seats)u.has(h.category)||u.set(h.category,[]),u.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:l,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const v=u.get(h.category)??[],x=h.seatIndex,b=v.length;if(b===1)d=(y+m)/2;else{const _=x/(b-1);d=y+(m-y)*_}}else d=m;s.set(h,{x:l,y:d})}return s}function eL(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const l=n[s.dataKey]||0,u=a,c=a+l;i.push({dataKey:s.dataKey,label:s.label,y0:u,y1:c,value:l,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=l}return i}function rL(e){const t=e;return{seatsToLines:t*.2,seatsToBar:t*.07,crossFadePause:t*.003,barSlideToTimeline:t*.22,axesAndBarsGrow:t*.22,barsToArea:t*.287}}const Hi=new Map;ee.prototype.transition=lv;const nL=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:l=!0,showAxes:u=!0,formatDate:c,formatValue:f,markers:h=[],arcAngle:p=200,parliamentRadius:y=200,seatSize:m=4.5,animationDuration:d=900,onMorphComplete:v,onAnimationStateChange:x,onTimelineReady:b,onAnimationProgress:_,onHoveredDataChange:g,hoveredCategory:w,maxSeats:S=2e3,parliamentTimestamp:A,enableBrush:T=!1,onTimeRangeChange:M,minAllowedTime:P,maxAllowedTime:E,showScaleIndicator:C=!1,reposPerSeat:k=1,timelineEvents:j=[],showTimeline:R=!1,timelineHeight:L=40,timelineOffset:z=35,brushColor:W="#69b3a2"})=>{const[I,D]=O.useState("area"),[N,q]=O.useState(!1),[K,B]=O.useState(null),[V,J]=O.useState(0),[H,F]=O.useState(null),[X,Y]=O.useState(null),[$,rt]=O.useState([]),U=O.useRef(null),ct=O.useRef(n),mt=O.useRef(!0),ot=O.useRef(!1),ut=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),St=O.useRef(void 0),at=O.useRef(s),dt=O.useRef(v),wt=O.useRef(x),Xt=O.useRef(b),oe=O.useRef(_),It=O.useRef(g);O.useEffect(()=>{dt.current=v,wt.current=x,Xt.current=b,oe.current=_,It.current=g},[v,x,b,_,g]),O.useEffect(()=>{if(e.current&&I==="parliament")if(w){const Jt=r.find(be=>be.dataKey===w);if(Jt){const be=Jt.label;B(be),vs(e.current,be)}}else B(null),vs(e.current,null)},[w,I,r,t]);const Nt=i-o.left-o.right,ne=a-o.top-o.bottom;return O.useEffect(()=>{var ht;if(!e.current||t.length===0||r.length===0||(St.current&&(St.current(),St.current=void 0),ot.current))return;const Jt=ee(e.current),be=n!==ct.current;mt.current?(Jt.selectAll("*").remove(),zl(Jt,ut.current),mt.current=!1):be||(Jt.selectAll("*").remove(),zl(Jt,ut.current));const Ee=t[t.length-1],Hr=r.reduce((lt,_t)=>lt+(Ee.values[_t.dataKey]||0),0),sn=t.map(lt=>{const _t={timestamp:lt.timestamp};for(const At of r)_t[At.dataKey]=lt.values[At.dataKey]||0;return _t}),rr=r.map(lt=>lt.dataKey),_e=Mu().keys(rr),gr=_e(sn),Gr=t.map(lt=>lt.timestamp),ln=be||!s?Math.min(...Gr):s[0],un=be||!s?Math.max(...Gr):s[1],nr=[...Gr].sort((lt,_t)=>lt-_t),Kr=[];for(let lt=0;lt<nr.length-1;lt++)Kr.push(nr[lt+1]-nr[lt]);const cn=Kr.length>0?Kr.reduce((lt,_t)=>lt+_t,0)/Kr.length:0,Pi=un+cn*1.15,Ye=Au().domain([new Date(ln),new Date(Pi)]).range([0,Nt]),Cn=sn.filter(lt=>lt.timestamp>=ln&&lt.timestamp<=un),fn=_e(Cn),Re=fn.length>0?Math.max(...fn[fn.length-1].map(lt=>lt[1]??0)):0,Ve=aa().domain([0,Re*1.15]).range([ne,0]),Ce=r.map(lt=>({...lt,color:n_(lt.color,ut.current)})),Ei=Ce.map(lt=>({dataKey:lt.dataKey,label:lt.label,color:lt.color,value:Ee.values[lt.dataKey]||0})),Xr=YN(Ei,Hr,S).reverse(),ir=XN(Xr,{arcAngle:p,radius:y,seatSize:m,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4});U.current=ir;const xa=eL(sn,r),tt=tL(ir,xa,Ye,Ve,Nt,ne);if(be&&!ot.current){ot.current=!0,q(!0),(ht=wt.current)==null||ht.call(wt,!0),F(null),rt([]),J(0);let lt=Jt.select("g[transform]");if(lt.empty()&&(lt=Jt.select("g")),lt.empty()){Jt.selectAll("*").remove(),zl(Jt,ut.current),zf(Jt,n==="parliament"?"parliament":"area",gr,Ce,ir,Ye,Ve,Nt,ne,o,l,u,c,f,T,M,ut.current,h,s,rt,F,j,R,L,z,Y,P,E,W),q(!1),D(n==="parliament"?"parliament":"area"),J(n==="parliament"?1:0),ct.current=n;return}const _t=setTimeout(()=>{ot.current=!1,q(!1),ct.current=n},d*3);sL(Jt,n,gr,Ce,ir,tt,Ye,Ve,Nt,ne,o,d,()=>{var At,Ft;if(clearTimeout(_t),ot.current=!1,q(!1),D(n==="parliament"?"parliament":"area"),n==="parliament"&&J(1),(At=wt.current)==null||At.call(wt,!1),(Ft=dt.current)==null||Ft.call(dt),ct.current=n,n==="parliament"&&e.current&&It.current&&(St.current=Uf(e.current,Ce,t,K,B,It.current,C,k,ut.current)),n!=="parliament"&&e.current){const Yt=ee(e.current),Ht=Yt.select(ut.current?`.main-chart-group-${ut.current}`:".main-chart-group");if(R&&Y){const Me=ut.current?`.timeline-track-${ut.current}`:".timeline-track",se=ut.current?`.timeline-brush-${ut.current}`:".timeline-brush";Ht.select(Me).remove(),Ht.select(se).remove(),fE(Yt,j,Ye,ne,Nt,L,z,ut.current,Y,T,M,P,E,W)}if(T&&M&&!R){const Me=Ht.select(ut.current?`.chart-content-group-${ut.current}`:".chart-content-group");iL(Me,Nt,ne,Ye,M,ut.current,Yt,P,E,W)}if(h.length>0&&rt&&F&&s){const se=h.filter(Vt=>Vt.timestamp>=(s[0]??0)-1&&Vt.timestamp<=(s[1]??1/0)+1).map(Vt=>({...Vt,x:Ye(new Date(Vt.timestamp))}));if(rt(se),se.length>0){aL(Ht,se,ne,Nt,T,F,ut.current);const Vt=Ht.select(ut.current?`.markers-${ut.current}`:".markers");if(!Vt.empty()){Ht.selectAll(".marker-hover-overlay").remove();const vr=Ht.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",Nt).attr("height",ne).attr("fill","none").attr("pointer-events","all");let Ze=null;vr.on("mousemove",function(Mn){const[Ci]=Ms(Mn,this);let ti=null,hn=1/0;if(se.forEach(kn=>{const qo=Math.abs(Ci-kn.x);qo<hn&&(hn=qo,ti=kn)}),!ti||hn>50){Ze!==null&&(Ze=null,Vt.selectAll(".marker-line").attr("opacity",0),Vt.selectAll(".marker-label").attr("opacity",0),F(null));return}const pn=ti;Ze!==pn.timestamp&&(Ze=pn.timestamp,Vt.selectAll(".marker-line").attr("opacity",0),Vt.selectAll(".marker-label").attr("opacity",0),Vt.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(pn.timestamp)}).attr("opacity",.6),Vt.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(pn.timestamp)}).attr("opacity",1),F(pn))}),vr.on("mouseleave",function(){Ze=null,Vt.selectAll(".marker-line").attr("opacity",0),Vt.selectAll(".marker-label").attr("opacity",0),F(null)})}}}}},u,c,f,Xt.current,(At,Ft)=>{var Yt;if(n==="parliament"&&At>=.95){const Ht=(At-.95)/.05;J(Math.min(Ht,1))}(Yt=oe.current)==null||Yt.call(oe,At,Ft)},A,ut.current)}else ct.current=n,n==="parliament"&&(F(null),rt([])),zf(Jt,n==="parliament"?"parliament":"area",gr,Ce,ir,Ye,Ve,Nt,ne,o,l,u,c,f,T,M,ut.current,h,s,rt,F,j,R,L,z,Y,P,E,W),D(n==="parliament"?"parliament":"area"),J(n==="parliament"?1:0),n==="parliament"&&e.current&&It.current&&(St.current=Uf(e.current,Ce,t,K,B,It.current,C,k,ut.current));return()=>{St.current&&(St.current(),St.current=void 0)}},[n]),O.useEffect(()=>{var Cn,fn;if(!e.current||t.length===0||ot.current)return;if(mt.current){at.current=s;return}if(!(s!==at.current&&((s==null?void 0:s[0])!==((Cn=at.current)==null?void 0:Cn[0])||(s==null?void 0:s[1])!==((fn=at.current)==null?void 0:fn[1]))))return;at.current=s;const be=ee(e.current),Ee=t.map(Re=>{const Ve={timestamp:Re.timestamp};for(const Ce of r)Ve[Ce.dataKey]=Re.values[Ce.dataKey]||0;return Ve}),Hr=r.map(Re=>Re.dataKey),rr=Mu().keys(Hr)(Ee),_e=t.map(Re=>Re.timestamp),gr=s?s[0]:Math.min(..._e),Gr=s?s[1]:Math.max(..._e),un=(_e.length>1?(_e[_e.length-1]-_e[0])/(_e.length-1):0)*.5,nr=Au().domain([new Date(gr-un),new Date(Gr+un)]).range([0,i-o.left-o.right]),Kr=Math.max(...rr[rr.length-1].map(Re=>Re[1])),cn=aa().domain([0,Kr*1.1]).range([a-o.top-o.bottom,0]);if(!U.current)return;const Pi=U.current,Ye=r.map(Re=>({...Re,color:n_(Re.color,ut.current)}));be.selectAll("*").remove(),zl(be,ut.current),zf(be,I==="parliament"?"parliament":"area",rr,Ye,Pi,nr,cn,i-o.left-o.right,a-o.top-o.bottom,o,l,u,c,f,T,M,ut.current,h,s,rt,F,j,R,L,z,Y,P,E,W),I==="parliament"&&e.current&&It.current&&(St.current=Uf(e.current,Ye,t,K,B,It.current,C,k,ut.current))},[s]),{isMorphing:N,currentMode:I,hoveredCategory:K,scaleIndicatorOpacity:V,visibleMarkers:$,hoveredMarker:H,setHoveredMarker:F,hoveredTimelineEvent:X,setHoveredTimelineEvent:Y}};function iL(e,t,r,n,i,a,o,s,l,u){const c=s,f=l,h=Tc().extent([[0,0],[t,r]]).on("start",y=>{if(!y.selection&&c!==void 0&&f!==void 0){const m=y.sourceEvent;if(m){const d=m.offsetX,v=+n.invert(d);if(v<c||v>f){o.select(".brush").call(h.move,null);return}}}}).on("brush",y=>{if(!y.selection)return;const[m,d]=y.selection;let v=+n.invert(m),x=+n.invert(d);c!==void 0&&(v=Math.max(v,c),x=Math.max(x,c)),f!==void 0&&(v=Math.min(v,f),x=Math.min(x,f));const b=n(new Date(v)),_=n(new Date(x));(b!==m||_!==d)&&o.select(".brush").call(h.move,[b,_])}).on("end",y=>{if(!y.selection)return;const[m,d]=y.selection,v=[+n.invert(m),+n.invert(d)];c!==void 0&&(v[0]=Math.max(v[0],c)),f!==void 0&&(v[1]=Math.min(v[1],f)),i(v),o.select(".brush").call(h.move,null)}),p=e.append("g").attr("class","brush").call(h);p.selectAll(".selection").attr("fill",u).attr("fill-opacity",.2).attr("stroke",u).attr("stroke-width",1),p.selectAll(".handle").attr("fill",u).attr("fill-opacity",.8),p.on("dblclick",()=>{const y=n.domain(),m=[+y[0],+y[1]];s!==void 0&&(m[0]=Math.max(m[0],s)),l!==void 0&&(m[1]=Math.min(m[1],l)),i(m)})}function aL(e,t,r,n,i,a,o){const s=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",s);t.forEach(u=>{l.append("line").attr("class","marker-line").attr("data-timestamp",u.timestamp).attr("x1",u.x).attr("x2",u.x).attr("y1",0).attr("y2",r).attr("stroke",u.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),u.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",u.timestamp).attr("x",u.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",u.color??"#2F42FF").attr("opacity",0)})}function oL(e,t,r,n,i,a,o){let s=null,l;a?l=e.select(".brush .overlay"):l=e.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",i).attr("fill","none").attr("pointer-events","all");const u=c=>{let f=null,h=1/0;if(r.forEach(m=>{const d=Math.abs(c-m.x);d<h&&(h=d,f=m)}),!f||h>50)return s!==null&&(s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)),!1;const y=f;return s===y.timestamp||(s=y.timestamp,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),t.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",.6),t.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",1),o(y)),!0};l.on("mousemove",function(c){const[f]=Ms(c,this);u(f)}),l.on("mouseleave",function(){s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)})}function zf(e,t,r,n,i,a,o,s,l,u,c,f,h,p,y=!1,m,d,v=[],x=[0,0],b,_,g=[],w=!1,S=40,A=15,T,M,P,E="#69b3a2"){const C=M,k=P;let j=null;const R=d?`main-chart-group main-chart-group-${d}`:"main-chart-group",L=e.append("g").attr("class",R).attr("transform",`translate(${u.left},${u.top})`),z=d?`chart-clip-${d}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",z).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",l);const W=d?`chart-content-group chart-content-group-${d}`:"chart-content-group",I=L.append("g").attr("class",W).attr("clip-path",`url(#${z})`);if(c&&t!=="parliament"&&(I.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Es(a).ticks(6).tickSize(l).tickFormat(()=>"")),I.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Cs(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(Iy(I,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:d}),v.length>0)){const N=v.filter(q=>q.timestamp>=x[0]-1&&q.timestamp<=x[1]+1).map(q=>({...q,x:a(new Date(q.timestamp))}));j={markersGroup:null,visibleMarkers:N},b&&b(N)}if(t==="parliament"){const D=s/2,N=i.radius+10,q=l-i.radius*.3,K=Math.max(N,q);cE(I,i,n,{centerX:D,centerY:K,addClasses:!0,instanceId:d,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const D=Es(a).ticks(6);h&&D.tickFormat(q=>h(+q)),L.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).call(D).selectAll("text").attr("font-size",14).attr("font-weight",500);const N=Cs(o).ticks(5);p&&N.tickFormat(q=>p(+q)),L.append("g").attr("class","axis axis-y").call(N).selectAll("text").attr("font-size",14).attr("font-weight",500)}if(y&&m&&t==="area"){const D=C,N=k,q=Tc().extent([[0,0],[s,l]]).on("start",B=>{if(!B.selection&&D!==void 0&&N!==void 0){const V=B.sourceEvent;if(V){const J=V.offsetX-((u==null?void 0:u.left)||0),H=+a.invert(J);if(H<D||H>N){e.select(".brush").call(q.move,null);return}}}}).on("brush",B=>{if(!B.selection)return;const[V,J]=B.selection;let H=+a.invert(V),F=+a.invert(J);D!==void 0&&(H=Math.max(H,D),F=Math.max(F,D)),N!==void 0&&(H=Math.min(H,N),F=Math.min(F,N));const X=a(new Date(H)),Y=a(new Date(F));(X!==V||Y!==J)&&e.select(".brush").call(q.move,[X,Y])}).on("end",B=>{if(!B.selection)return;const[V,J]=B.selection,H=[+a.invert(V),+a.invert(J)];D!==void 0&&(H[0]=Math.max(H[0],D)),N!==void 0&&(H[1]=Math.min(H[1],N)),m(H),e.select(".brush").call(q.move,null)}),K=I.append("g").attr("class","brush").call(q);K.selectAll(".selection").attr("fill",E).attr("fill-opacity",.2).attr("stroke",E).attr("stroke-width",1),K.selectAll(".handle").attr("fill",E).attr("fill-opacity",.8),K.on("dblclick",()=>{const B=a.domain(),V=[+B[0],+B[1]];m(V)})}if(t==="area"&&j&&j.visibleMarkers.length>0){const D=L.append("g").attr("class","markers").attr("clip-path",`url(#${z})`);j.visibleMarkers.forEach(N=>{D.append("line").attr("class","marker-line").attr("data-timestamp",N.timestamp).attr("x1",N.x).attr("x2",N.x).attr("y1",0).attr("y2",l).attr("stroke",N.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),N.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",N.timestamp).attr("x",N.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",N.color??"#2F42FF").attr("opacity",0)}),j.markersGroup=D}t==="area"&&w&&T&&fE(e,g,a,l,s,S,A,d,T,y,m,C,k,E),j&&j.visibleMarkers.length>0&&_&&t==="area"&&oL(I,j.markersGroup,j.visibleMarkers,s,l,y,_)}function fE(e,t,r,n,i,a,o,s,l,u=!1,c,f,h,p="#69b3a2"){const y=n+o,m=e.select(s?`.main-chart-group-${s}`:".main-chart-group"),d=s?`timeline-track timeline-track-${s}`:"timeline-track",v=m.append("g").attr("class",d),x=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",x).append("rect").attr("x",0).attr("y",y).attr("width",i).attr("height",a),v.append("rect").attr("class","timeline-background").attr("x",0).attr("y",y).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const b=v.append("g").attr("clip-path",`url(#${x})`),_=3,g=b.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",S=>r(new Date(S.timestamp))-_/2).attr("y",y).attr("width",_).attr("height",a).attr("fill",S=>S.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",S=>S.timestamp).attr("data-event-name",S=>S.eventName),w=6;if(g.on("mouseenter",function(S,A){const T=ee(this),M=r(new Date(A.timestamp));T.transition().duration(150).attr("x",M-w/2).attr("width",w),l&&l({timestamp:A.timestamp,eventName:A.eventName,x:M})}).on("mouseleave",function(S,A){const T=ee(this),M=r(new Date(A.timestamp));T.transition().duration(150).attr("x",M-_/2).attr("width",_),l&&l(null)}),u&&c){const S=f,A=h,T=Tc().extent([[0,y],[i,y+a]]).on("start",E=>{if(!E.selection&&S!==void 0&&A!==void 0){const C=E.sourceEvent;if(C){const k=C.offsetX,j=+r.invert(k);if(j<S||j>A){const R=s?`.timeline-brush-${s}`:".timeline-brush";e.select(R).call(T.move,null);return}}}}).on("brush",E=>{if(!E.selection)return;const[C,k]=E.selection;let j=+r.invert(C),R=+r.invert(k);S!==void 0&&(j=Math.max(j,S),R=Math.max(R,S)),A!==void 0&&(j=Math.min(j,A),R=Math.min(R,A));const L=r(new Date(j)),z=r(new Date(R));if(L!==C||z!==k){const W=s?`.timeline-brush-${s}`:".timeline-brush";e.select(W).call(T.move,[L,z])}}).on("end",E=>{if(!E.selection)return;const[C,k]=E.selection,j=[+r.invert(C),+r.invert(k)];S!==void 0&&(j[0]=Math.max(j[0],S)),A!==void 0&&(j[1]=Math.min(j[1],A)),c(j);const R=s?`.timeline-brush-${s}`:".timeline-brush";e.select(R).call(T.move,null)}),M=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",P=m.append("g").attr("class",M).call(T);P.selectAll(".selection").attr("fill",p).attr("fill-opacity",.2).attr("stroke",p).attr("stroke-width",1),P.selectAll(".handle").attr("fill",p).attr("fill-opacity",.8),P.on("dblclick",()=>{const E=r.domain(),C=[+E[0],+E[1]];c(C)})}}function sL(e,t,r,n,i,a,o,s,l,u,c,f,h,p=!0,y,m,d,v,x,b){const _=e.select(b?`.main-chart-group-${b}`:".main-chart-group");_.selectAll(".markers").remove(),_.selectAll(".marker-hover-overlay").remove(),_.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?lL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,x,b):uL(_,r,n,i,a,o,s,l,u,f,h,p,y,m,d,v,x,b)}function gs(e,t,r,n,i,a,o,s){const l=e[a];if(!l)return"";const u=l.find(w=>w.data.timestamp===o);if(!u)return"";const c=u.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,v=u[0],x=u[1],b=s?i:n(v),_=s?i:n(x),g=[];return g.push(`M ${m} ${b}`),g.push(`L ${m} ${_}`),g.push(`L ${m+d} ${_}`),g.push(`L ${m+d} ${b}`),g.push("Z"),g.join(" ")}function lL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var Rl;const x=v?`.seat-${v}`:".seat",b=e.selectAll(x),_=v?`.chart-content-group-${v}`:".chart-content-group";let g=e.select(_);if(g.empty()){const et=e.attr("clip-path"),st=et?((Rl=et.match(/url\(#(.+)\)/))==null?void 0:Rl[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,yt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";g=e.append("g").attr("class",yt).attr("clip-path",`url(#${st})`)}if(b.size()===0){Iy(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const w=rL(u),S=v?Hi.get(v):void 0;S&&(S.destroy(),v&&Hi.delete(v));const A=et=>et<.2?"seatsToRings":et<.35?"ringsToBar":et<.464?"axesReveal":et<.6?"barSlide":et<.82?"barsGrow":"barsToArea",T=new lE({seatsToRings:w.seatsToLines,ringsToBar:w.seatsToBar,axesReveal:w.barSlideToTimeline*.3,barSlide:w.barSlideToTimeline*.7,barsGrow:w.axesAndBarsGrow,barsToArea:w.barsToArea},{onStageComplete:et=>{},onProgress:et=>{if(m){const st=A(et);m(et,st)}},onComplete:()=>{c()}});v&&Hi.set(v,T),y&&y(T.getControls().getTimeline());const M=t[0].map(et=>et.data),P=QN(M,r),E=s/2,C=n.radius+10,k=l-n.radius*.3,j=Math.max(C,k),R=M.map(et=>et.timestamp),L=d??Math.max(...R),z=new Map,W=[];R.forEach((et,st)=>{const yt=a(new Date(et)),Et=R[st+1];if(Et){const Qt=a(new Date(Et))-yt;W.push(Qt)}});const I=W.length>0?W.reduce((et,st)=>et+st,0)/W.length:30;R.forEach((et,st)=>{const yt=a(new Date(et)),Et=R[st+1],Qt=st===R.length-1?I:a(new Date(Et))-yt;z.set(et,{x:yt,width:Qt})});const D=P.filter(et=>et.timestamp===L),N=z.get(L),q=666,K=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",B=g.append("g").attr("class",K);D.sort((et,st)=>st.y0-et.y0),new Map().set(L,{x:q-N.width/2,width:N.width});const J=[],H=(n.radius-n.innerRadius)*.6,X=l*.8,Y=j,$=D.reduce((et,st)=>et+(st.y1-st.y0),0);let rt=0;r.forEach(et=>{const st=D.find(Ie=>Ie.dataKey===et.dataKey);if(!st)return;const ce=(st.y1-st.y0)/$*X,Qt=Y-rt,qe=Y-rt-ce,De=q-H/2,ar=`M ${De} ${Qt} L ${De} ${qe} L ${De+H} ${qe} L ${De+H} ${Qt} Z`;rt+=ce;const br=B.append("path").attr("class",`parliament-bar-segment category-${We(st.dataKey)}`).attr("d",ar).attr("fill",st.color).style("opacity",0).node();br&&J.push(br)}),v&&(window.orchestratorMap=Hi);const U=T.getControls().getTimeline(),ct=w.seatsToLines/1e3,mt=w.seatsToBar/1e3;U.call(()=>{m==null||m(U.progress(),"seatsToRings")},[],"seatsToRings");const ot=b.nodes(),ut=E,St=j,at=Math.max(...n.seats.map(et=>et.ring)),dt=n.seats.filter(et=>et.ring===at),wt=e.append("g").attr("class",`seat-lines-${v||"default"}`),Xt=r.map(et=>{const st=b.filter(`.seat-${We(et.dataKey)}`).size();return st>0?{name:et.dataKey,seatCount:st,color:et.color}:null}).filter(et=>et!==null).reverse(),oe=Xt.reduce((et,st)=>et+st.seatCount,0),It=dt.length,Nt=n.radius-n.innerRadius,ne=Nt*.6,Jt=ne/2,be=Nt*.6,Ee=[];let Hr=0;Xt.forEach(et=>{const st=Math.max(1,Math.round(et.seatCount/oe*It));for(let yt=0;yt<st;yt++){const Et=(Hr+yt)/It,ce=n.arcAngle*Math.PI/180,qe=-ce/2-Math.PI/2+Et*ce,De=(n.innerRadius+n.radius)/2,ar=ut+Math.cos(qe)*De,br=St+Math.sin(qe)*De,Ie=Math.cos(qe),ei=Math.sin(qe),ki=ar-Jt*Ie,wa=br-Jt*ei,xe=ar+Jt*Ie,ri=br+Jt*ei,ni=wt.append("line").attr("class","seat-line").attr("x1",ki).attr("y1",wa).attr("x2",xe).attr("y2",ri).attr("stroke",et.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",qe*180/Math.PI).attr("data-center-x",ar).attr("data-center-y",br).attr("data-initial-length",ne).node();Ee.push({element:ni,angle:qe})}Hr+=st});const sn=()=>{wt.remove()},rr=ct*.5,_e=0,gr=[];if(gr.push(...ot),gr.sort((et,st)=>{const yt=parseInt(et.getAttribute("data-layout-index")||"-1",10),Et=parseInt(st.getAttribute("data-layout-index")||"-1",10);return yt-Et}),gr.length>0&&Ee.length>0){const et=Ee.map(st=>st.element);U.to(gr,{attr:{r:1.5},duration:rr*.3,ease:"power2.in"},`seatsToRings+=${_e}`),et.forEach(st=>{const yt=st.getAttribute("x1")||"0",Et=st.getAttribute("y1")||"0",ce=st.getAttribute("x2")||"0",Qt=st.getAttribute("y2")||"0";st.setAttribute("data-final-x1",yt),st.setAttribute("data-final-y1",Et),st.setAttribute("data-final-x2",ce),st.setAttribute("data-final-y2",Qt),st.setAttribute("x1",yt),st.setAttribute("y1",Et),st.setAttribute("x2",yt),st.setAttribute("y2",Et)}),U.to(et,{attr:{x2:(st,yt)=>parseFloat(yt.getAttribute("data-final-x2")||"0"),y2:(st,yt)=>parseFloat(yt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:rr*.6,ease:"power2.out"},`seatsToRings+=${_e+rr*.2}`),U.to(gr,{opacity:0,duration:rr*.3,ease:"power2.out"},`seatsToRings+=${_e+rr*.3}`)}const Gr=ct*.05,ln=ct*.7,un=_e+rr+Gr;if(Ee.length>0){const et=q,st=j,Et=l*.8/Ee.length,ce=st,Qt=[...Ee].sort((ar,br)=>br.angle-ar.angle),De=.6/Qt.length;Qt.forEach((ar,br)=>{const Ie=et,ki=ce-br*Et,wa=De*br*ln,xe=ar.element,ri=parseFloat(xe.getAttribute("data-final-x1")||"0"),ni=parseFloat(xe.getAttribute("data-final-y1")||"0"),Fo=parseFloat(xe.getAttribute("data-final-x2")||"0"),Sa=parseFloat(xe.getAttribute("data-final-y2")||"0"),Dl=(ri+Fo)/2,dn=(ni+Sa)/2,ii=Math.atan2(Sa-ni,Fo-ri),$i=Math.sqrt(Math.pow(Fo-ri,2)+Math.pow(Sa-ni,2));U.to({progress:0},{progress:1,duration:ln*.5,ease:"power2.inOut",delay:wa,onUpdate:function(){const pe=this.progress(),df=Dl+(Ie-Dl)*pe,mf=dn+(ki-dn)*pe,mn=40*4*pe*(1-pe),ji=df,Ri=mf-mn,gf=0-ii,$n=ii+gf*pe*pe,Il=($i+(be-$i)*pe)/2,lk=ji-Il*Math.cos($n),uk=Ri-Il*Math.sin($n),ck=ji+Il*Math.cos($n),fk=Ri+Il*Math.sin($n);xe.setAttribute("x1",lk.toString()),xe.setAttribute("y1",uk.toString()),xe.setAttribute("x2",ck.toString()),xe.setAttribute("y2",fk.toString())},onComplete:function(){const pe=be/2;xe.setAttribute("x1",(Ie-pe).toString()),xe.setAttribute("y1",ki.toString()),xe.setAttribute("x2",(Ie+pe).toString()),xe.setAttribute("y2",ki.toString())}},`seatsToRings+=${un}`),U.to(ar.element,{opacity:.95,duration:ln*.3,ease:"power2.out",delay:wa},`seatsToRings+=${un}`)})}const nr=wt,Kr=[];D.forEach((et,st)=>{const yt=b.filter(`.seat-${We(et.category)}`),Et=yt.size();if(Et===0)return;const ce=o(et.y1),Qt=o(et.y0)-o(et.y1),qe=yt.nodes().sort((dn,ii)=>{const $i=parseInt(dn.getAttribute("data-layout-index")||"-1",10),pe=parseInt(ii.getAttribute("data-layout-index")||"-1",10);return $i-pe}),De=Math.max(N.width,100),ar=Qt,br=De/Math.max(ar,1),Ie=Math.max(2,Math.ceil(Math.sqrt(Et*br))),ei=Math.ceil(Et/Ie),ki=De*.8,wa=ar*.8,xe=Ie>1?ki/(Ie-1):0,ri=ei>1?wa/(ei-1):0,ni=Ie>1?(Ie-1)*xe:0,Fo=ei>1?(ei-1)*ri:0,Sa=q-De/2+(De-ni)/2,Dl=ce+(ar-Fo)/2;qe.forEach((dn,ii)=>{const $i=parseInt(dn.getAttribute("data-layout-index")||"-1",10),pe=$i>=0?n.seats[$i]:void 0,df=pe?E+pe.x:parseFloat(dn.getAttribute("cx")||"0"),mf=pe?j+pe.y:parseFloat(dn.getAttribute("cy")||"0"),I0=(pe==null?void 0:pe.radius)||parseFloat(dn.getAttribute("r")||"4"),mn=Et%Ie;let ji,Ri;if(mn>0&&ii<mn)Ri=0,ji=ii;else{const $n=ii-(mn>0?mn:0);ji=$n%Ie,Ri=Math.floor($n/Ie)+(mn>0?1:0)}let yf=Sa+ji*xe;if(mn>0&&Ri===0){const $n=mn>1?(mn-1)*xe:0,N0=(ni-$n)/2;yf=Sa+N0+ji*xe}const gf=Dl+Ri*ri;Kr.push({element:dn,startX:df,startY:mf,startRadius:I0,category:et.dataKey,segmentIndex:st,endY:gf,endX:yf})})});const cn=Kr.map(et=>{const st=et.startX-E,yt=et.startY-j,Et=Math.atan2(yt,st);return{...et,angle:Et}});cn.sort((et,st)=>st.angle-et.angle);const Pi=mt*.8,Ye=.6,Cn=cn.length,Re=Pi/Math.max(Cn,1)*(Cn-1)+Ye,Ve=mt*.3,Ce=Re;U.to(J,{opacity:1,duration:Ve,ease:"power2.inOut"},`seatsToBar+=${Ce}`),nr&&(U.to(nr.selectAll(".seat-line").nodes(),{opacity:0,duration:Ve,ease:"power2.inOut"},`seatsToBar+=${Ce}`),U.call(()=>{sn()},[],`seatsToBar+=${Ce+Ve}`));const Ei=w.barSlideToTimeline/1e3;let Xr=null,ir=null;if(f){const et=Es(a).ticks(6);h&&et.tickFormat(yt=>h(yt.getTime())),Xr=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).attr("opacity",0),Xr.call(et).selectAll("text").attr("font-size",14).attr("font-weight",500);const st=Cs(o).ticks(5);p&&st.tickFormat(yt=>p(yt)),ir=e.append("g").attr("class","axis axis-y").attr("opacity",0),ir.call(st).selectAll("text").attr("font-size",14).attr("font-weight",500)}const xa=w.crossFadePause/1e3,tt=Ce+Ve+xa;J.forEach(et=>{const st=Array.from(et.classList).find(Qt=>Qt.startsWith("category-"));if(!st||!D.find(Qt=>We(Qt.dataKey)===st.replace("category-","")))return;const Et=r.findIndex(Qt=>We(Qt.dataKey)===st.replace("category-",""));if(Et===-1)return;const ce=gs(t,r,z,o,l,Et,L,!1);ce&&U.to(et,{attr:{d:ce},duration:Ei,ease:"power2.out"},`seatsToBar+=${tt}`)});const ht=Ui().x(et=>a(et.data.timestamp)).y0(et=>o(et[0])).y1(et=>o(et[1])).curve(oa),lt=new Map;t.forEach((et,st)=>{const yt=r[st];if(yt){const Et=ht(et)||"";lt.set(yt.dataKey,Et)}});const _t=tt+Ei;f&&Xr&&ir&&U.to([Xr.node(),ir.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${tt}`);const At=g.select(".grid-vertical"),Ft=g.select(".grid-horizontal");if(!At.empty()||!Ft.empty()){const st=[];At.empty()||st.push(At.node()),Ft.empty()||st.push(Ft.node()),U.to(st,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${tt}`)}const Yt=w.axesAndBarsGrow/1e3,Ht=w.barsToArea/1e3,Me=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",se=g.append("g").attr("class",Me);R.forEach(et=>{if(et===L)return;const st=z.get(et);st&&r.forEach((yt,Et)=>{const ce=gs(t,r,z,o,l,Et,et,!0),Qt=gs(t,r,z,o,l,Et,et,!1);if(!ce||!Qt)return;const qe=v?`histogram-path histogram-path-${v} category-${We(yt.dataKey)}`:`histogram-path category-${We(yt.dataKey)}`;se.append("path").attr("class",qe).attr("d",ce).attr("fill",yt.color).attr("stroke",yt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",yt.dataKey).attr("data-timestamp",et).attr("data-x-position",st.x).attr("data-full-height-path",Qt)})});const Vt=v?`.histogram-path-${v}`:".histogram-path",vr=se.selectAll(Vt);U.to(vr.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${_t}`);const Ze=N.x+N.width/2;vr.each(function(){var De;const et=this.getAttribute("data-full-height-path");if(!et)return;const st=parseFloat(this.getAttribute("data-x-position")||"0"),yt=parseFloat(this.getAttribute("data-timestamp")||"0"),Et=((De=z.get(yt))==null?void 0:De.width)||0,ce=st+Et/2,qe=Math.abs(ce-Ze)*8e-4;U.to(this,{attr:{d:et},duration:Yt,ease:"power2.out"},`seatsToBar+=${_t+qe}`)});const Mn=_t+Yt,Ci=R[R.length-1],hn=a(new Date(Ci))+I,pn=a.invert(hn).getTime(),kn=t.map(et=>{const st=et[et.length-1],yt={...st,data:{...st.data,timestamp:pn}};return[...et,yt]});Iy(e,kn,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const qo=v?`.area-${v}`:".area",Mi=e.selectAll(qo);Mi.attr("opacity",0),U.to(vr.nodes(),{opacity:0,duration:Ht,ease:"power2.inOut"},`seatsToBar+=${Mn}`);const jl=B.selectAll("path").nodes();jl.length>0&&U.to(jl,{opacity:0,duration:Ht,ease:"power2.inOut"},`seatsToBar+=${Mn}`),U.to(Mi.nodes(),{opacity:1,duration:Ht,ease:"power2.inOut"},`seatsToBar+=${Mn}`);const pf=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const et=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(et).remove();const st=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(st).remove(),f&&(Xr&&Xr.attr("opacity",1),ir&&ir.attr("opacity",1)),pf()}),T.play()}function uL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h,p,y,m,d,v){var xa;const x=v?`.chart-content-group-${v}`:".chart-content-group";let b=e.select(x);if(b.empty()){const tt=e.attr("clip-path"),ht=tt?((xa=tt.match(/url\(#(.+)\)/))==null?void 0:xa[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,lt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";b=e.append("g").attr("class",lt).attr("clip-path",`url(#${ht})`)}const _=v?`.area-${v}`:".area",g=e.selectAll(_);if(g.size()===0){cL(e,r,n,s,l,v),c();return}const w={areaToBar:u*.18,barsShrink:u*.22,barSlide:u*.22,axesHide:u*.03,barToRings:u*.07,ringsExpand:u*.18,ringsHold:u*.05,ringsToSeats:u*.07},S=v?Hi.get(v):void 0;S&&(S.destroy(),v&&Hi.delete(v));const A=tt=>tt<.18?"areaToBar":tt<.4?"barsShrink":tt<.62?"barSlide":tt<.65?"axesHide":tt<.72?"barToRings":tt<.9?"ringsExpand":tt<.95?"ringsHold":"ringsToSeats",T=new lE({seatsToRings:w.ringsToSeats,ringsHold:w.ringsHold,ringsToBar:w.barToRings,axesReveal:w.axesHide,barSlide:w.barSlide,barsGrow:w.barsShrink,barsToArea:w.areaToBar},{onStageComplete:tt=>{},onProgress:tt=>{if(m){const ht=A(tt);m(tt,ht)}},onComplete:()=>{c()}});v&&Hi.set(v,T),y&&y(T.getControls().getTimeline());const P=t[0].map(tt=>tt.data).map(tt=>tt.timestamp),E=d??Math.max(...P),C=new Map,k=[];P.forEach((tt,ht)=>{const lt=a(new Date(tt)),_t=P[ht+1];if(_t){const Ft=a(new Date(_t))-lt;k.push(Ft)}});const j=k.length>0?k.reduce((tt,ht)=>tt+ht,0)/k.length:30;P.forEach((tt,ht)=>{const lt=a(new Date(tt)),_t=P[ht+1],Ft=ht===P.length-1?j:a(new Date(_t))-lt;C.set(tt,{x:lt,width:Ft})});const R=T.getControls().getTimeline(),L=w.areaToBar/1e3,z=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",W=b.append("g").attr("class",z);P.forEach(tt=>{const ht=C.get(tt);ht&&r.forEach((lt,_t)=>{const At=gs(t,r,C,o,l,_t,tt,!1);if(!At)return;const Ft=v?`histogram-path histogram-path-${v} category-${We(lt.dataKey)}`:`histogram-path category-${We(lt.dataKey)}`;W.append("path").attr("class",Ft).attr("d",At).attr("fill",lt.color).attr("stroke",lt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",lt.dataKey).attr("data-timestamp",tt).attr("data-x-position",ht.x)})});const I=v?`.histogram-path-${v}`:".histogram-path",D=W.selectAll(I);R.to(g.nodes(),{opacity:0,duration:L,ease:"power2.inOut"},"areaToBar"),R.to(D.nodes(),{opacity:1,duration:L,ease:"power2.inOut"},"areaToBar");const N=w.barsShrink/1e3,q=L;D.each(function(){const tt=parseFloat(this.getAttribute("data-timestamp")||"0");if(tt===E)return;const ht=r.find(At=>this.classList.contains(`category-${We(At.dataKey)}`));if(!ht)return;const lt=r.indexOf(ht),_t=gs(t,r,C,o,l,lt,tt,!0);_t&&R.to(this,{attr:{d:_t},duration:N,ease:"power2.in"},q)});const K=w.axesHide/1e3,B=q+N;if(f){const tt=e.select(".axis-x"),ht=e.select(".axis-y");tt.empty()||R.to(tt.node(),{opacity:0,duration:K,ease:"power2.inOut"},B),ht.empty()||R.to(ht.node(),{opacity:0,duration:K,ease:"power2.inOut"},B)}const V=b.select(".grid-vertical"),J=b.select(".grid-horizontal");V.empty()||R.to(V.node(),{opacity:0,duration:K,ease:"power2.inOut"},B),J.empty()||R.to(J.node(),{opacity:0,duration:K,ease:"power2.inOut"},B);const H=[];t.forEach((tt,ht)=>{const lt=tt.find(At=>At.data.timestamp===E);if(!lt)return;const _t=r[ht];_t&&H.push({category:_t.label,dataKey:_t.dataKey,color:_t.color,y0:lt[0],y1:lt[1]})}),H.sort((tt,ht)=>ht.y0-tt.y0);const F=H.reduce((tt,ht)=>tt+(ht.y1-ht.y0),0),X=n.radius-n.innerRadius,Y=s/2,$=n.radius+10,rt=l-n.radius*.3,U=Math.max($,rt),ct=X*.6,ot=l*.8,ut=U,St=w.barSlide/1e3,at=B+K,dt=666,wt=D.nodes().filter(tt=>parseFloat(tt.getAttribute("data-timestamp")||"0")!==E);R.to(wt,{opacity:0,duration:St*.2,ease:"power2.out"},at);const Xt=D.nodes().filter(tt=>parseFloat(tt.getAttribute("data-timestamp")||"0")===E);Xt.forEach(tt=>{const ht=tt.getAttribute("data-category");if(!ht)return;const lt=H.find(vr=>vr.dataKey===ht);if(!lt)return;const Ft=(lt.y1-lt.y0)/F*ot;let Yt=0;for(const vr of r){const Ze=H.find(ti=>ti.dataKey===vr.dataKey);if(!Ze)continue;if(Ze.dataKey===lt.dataKey)break;const Ci=(Ze.y1-Ze.y0)/F;Yt+=Ci*ot}const Ht=ut-Yt,Me=ut-Yt-Ft,se=dt-ct/2,Vt=`M ${se} ${Ht} L ${se} ${Me} L ${se+ct} ${Me} L ${se+ct} ${Ht} Z`;R.to(tt,{attr:{d:Vt},duration:St,ease:"power2.inOut"},at)});const oe=w.barToRings/1e3,It=at+St,Nt=w.ringsExpand/1e3,ne=It+oe,Jt=w.ringsHold/1e3,be=ne+Nt,Ee=w.ringsToSeats/1e3,Hr=be+Jt,sn=Math.max(...n.seats.map(tt=>tt.ring)),rr=n.seats.filter(tt=>tt.ring===sn),_e=b.append("g").attr("class",`slinky-${v||"h2p-default"}`),gr=()=>{_e.remove()};rr.forEach((tt,ht)=>{const lt=r.find(_t=>_t.label===tt.category);lt&&_e.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",lt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",tt.category).attr("data-category-index",tt.categoryIndex).attr("data-ring-index",ht).attr("data-seat-x",Y+tt.x).attr("data-seat-y",U+tt.y).attr("data-seat-angle",Math.atan2(tt.y,tt.x)).style("opacity",0)});const Gr=_e.selectAll(".slinky-ring").nodes(),ln=dt,un=ot/Gr.length,nr=[...Gr].sort((tt,ht)=>{const lt=parseFloat(tt.getAttribute("data-seat-angle")||"0");return parseFloat(ht.getAttribute("data-seat-angle")||"0")-lt}),Kr=ut;nr.forEach((tt,ht)=>{const lt=Kr-ht*un,At=ct/2,Ft=ln-At,Yt=ln+At;tt.setAttribute("x1",Ft.toString()),tt.setAttribute("y1",lt.toString()),tt.setAttribute("x2",Yt.toString()),tt.setAttribute("y2",lt.toString()),tt.style.opacity="0"}),R.to(Xt,{opacity:0,duration:oe*.7,ease:"power2.out"},It+oe*.3),R.to(nr,{opacity:1,duration:oe,ease:"power2.in",stagger:.005},It);const cn=X*.8;nr.forEach((tt,ht)=>{const lt=parseFloat(tt.getAttribute("data-seat-x")||"0"),_t=parseFloat(tt.getAttribute("data-seat-y")||"0"),At=parseFloat(tt.getAttribute("data-seat-angle")||"0"),Ft=(nr.length-1-ht)/nr.length*(Nt*.4),Yt=parseFloat(tt.getAttribute("x1")||"0"),Ht=parseFloat(tt.getAttribute("y1")||"0"),Me=parseFloat(tt.getAttribute("x2")||"0"),se=parseFloat(tt.getAttribute("y2")||"0"),Vt=(Yt+Me)/2,vr=(Ht+se)/2,Ze=Math.atan2(se-Ht,Me-Yt),Mn=Math.sqrt(Math.pow(Me-Yt,2)+Math.pow(se-Ht,2)),Ci=lt-cn/2*Math.cos(At),ti=_t-cn/2*Math.sin(At);R.to({progress:0},{progress:1,duration:Nt*.7,ease:"power2.out",onUpdate:function(){const hn=this.progress(),$l=Vt+(Ci-Vt)*hn,pn=vr+(ti-vr)*hn,kn=Ze+(At-Ze)*hn,Mi=(Mn+(cn-Mn)*hn)/2,jl=$l-Mi*Math.cos(kn),pf=pn-Mi*Math.sin(kn),Rl=$l+Mi*Math.cos(kn),et=pn+Mi*Math.sin(kn);tt.setAttribute("x1",jl.toString()),tt.setAttribute("y1",pf.toString()),tt.setAttribute("x2",Rl.toString()),tt.setAttribute("y2",et.toString())}},ne+Ft),R.to(tt,{opacity:.9,duration:Nt*.3,ease:"power2.in"},ne+Ft)}),R.call(()=>{m&&m(R.progress(),"ringsHold")},[],be);const Pi=v?`parliament parliament-${v}`:"parliament",Ye=b.append("g").attr("class",Pi);n.seats.forEach((tt,ht)=>{const lt=r.find(Me=>Me.label===tt.category);if(!lt)return;const _t=Y+tt.x,At=U+tt.y;let Ft,Yt,Ht;tt.ring===sn?(Ft=_t,Yt=At,Ht=2):(Ft=_t,Yt=At,Ht=tt.radius),Ye.append("circle").attr("cx",Ft).attr("cy",Yt).attr("r",Ht).attr("fill",lt.color).attr("stroke",lt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${We(tt.category)}`:`seat seat-${We(tt.category)}`).attr("data-layout-index",ht).attr("data-ring",tt.ring).attr("data-final-x",_t).attr("data-final-y",At).attr("data-final-r",tt.radius)});const Cn=v?`.seat-${v}`:".seat",fn=Ye.selectAll(Cn);R.to(Gr,{opacity:0,duration:Ee*.2,ease:"power3.out"},Hr),R.to(fn.nodes(),{opacity:.8,duration:Ee*.3,ease:"power2.in"},Hr+Ee*.25);const Re=fn.nodes(),Ve=[],Ce=[];Re.forEach(tt=>{parseInt(tt.getAttribute("data-ring")||"0")===sn?Ve.push(tt):Ce.push(tt)});const Ei=Ee*.2,Xr=Ee*.7;Ve.forEach(tt=>{const ht=parseFloat(tt.getAttribute("data-final-r")||"4");R.to(tt,{attr:{r:ht},opacity:1,duration:Xr*.6,ease:"power2.out"},Hr+Ei)}),Ce.length>0&&R.to(Ce,{opacity:1,duration:Xr*.5,ease:"power2.in"},Hr+Ei+Ee*.15);const ir=c;T.getControls().getTimeline().eventCallback("onComplete",()=>{const tt=v?`.areas-${v}`:".areas",ht=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(tt).remove(),e.selectAll(ht).remove(),gr(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),b.selectAll(".grid-vertical").remove(),b.selectAll(".grid-horizontal").remove();const lt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(lt).empty()){const At=s/2,Ft=n.radius+10,Yt=l-n.radius*.3,Ht=Math.max(Ft,Yt),Me=v?`parliament-label parliament-label-${v}`:"parliament-label",se=e.append("g").attr("class",Me).attr("transform",`translate(${At},${Ht-n.radius*.15})`).style("opacity","0").style("pointer-events","none");se.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),se.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const Vt=se.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");Vt.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),Vt.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}ir()}),T.play()}function cL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,l=i-r.radius*.3,u=Math.max(s,l);cE(e,r,t,{centerX:o,centerY:u,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function i_(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=ee(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const l=o.select(".scale-indicator");r?l.style("opacity","1").select("text").text(`= ~${n} repos`):l.style("opacity","0")}else o.style("opacity","0")}function Uf(e,t,r,n,i,a,o,s,l){const u=e.querySelectorAll(".seat");if(!u||u.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];u.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),u.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),v=d[d.length-1];if(!v)return;const x=v.substring(5),b=t.find(g=>We(g.label)===x);if(!b)return;const _=()=>{i(b.label);const g=Math.round(c.values[b.dataKey]||0),w=uE(b.color),S={label:b.label,value:g,color:w};a&&a(S),i_(e,S,o??!1,s??1,l),vs(e,b.label)};p.addEventListener("mouseenter",_),f.push({element:p,handler:_})});const h=()=>{i(null),a&&a(null),i_(e,null,!1,1,l),vs(e,null)};return e.addEventListener("mouseleave",h),n&&vs(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),u.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function vs(e,t){const r=e.querySelectorAll(".seat"),n=t?We(t):null;r.forEach(i=>{const a=i,l=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),u=l[l.length-1];if(!u)return;const c=u.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const hE=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:l=!0,formatDate:u,formatValue:c,markers:f=[],arcAngle:h=200,parliamentRadius:p=200,seatSize:y=4.5,animationDuration:m=900,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:x,onAnimationProgress:b,onHoveredDataChange:_,hoveredCategory:g,maxSeats:w=500,showTooltip:S=!0,showTable:A=!1,showScaledIndicator:T=!0,parliamentTimestamp:M,enableBrush:P=!1,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:k,timelineEvents:j=[],showTimeline:R=!1,timelineHeight:L=40,timelineOffset:z=35,brushColor:W="#69b3a2"})=>{const I=O.useRef(null),D=O.useCallback($=>{_&&_($)},[_]),N=e[e.length-1],q=N?t.reduce(($,rt)=>$+(N.values[rt.dataKey]||0),0):0,K=q>w,B=K?Math.round(q/w):1,V=R&&r==="stacked-area"?i+L+z:i,{isMorphing:J,currentMode:H,visibleMarkers:F,hoveredMarker:X,hoveredTimelineEvent:Y}=nL({containerRef:I,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:l,formatDate:u,formatValue:c,markers:f,arcAngle:h,parliamentRadius:p,seatSize:y,animationDuration:m,onMorphComplete:d,onAnimationStateChange:v,onTimelineReady:x,onAnimationProgress:b,onHoveredDataChange:D,hoveredCategory:g,maxSeats:w,parliamentTimestamp:M,enableBrush:P,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:k,showScaleIndicator:T&&K,reposPerSeat:B,timelineEvents:j,showTimeline:R,timelineHeight:L,timelineOffset:z,brushColor:W});return G.jsxs(Q.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[G.jsx("svg",{ref:I,viewBox:`0 0 ${n} ${V}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),H==="area"&&F.map($=>{const rt=($.x+a.left)/n*100,U=a.top/i*100,ct=new Date($.timestamp),mt=u?u($.timestamp):ct.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),ot=G.jsxs(Q.Box,{children:[G.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:$.label?.5:0},children:mt}),$.label&&G.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:$.label})]});return G.jsx(Q.Tooltip,{title:ot,open:(X==null?void 0:X.timestamp)===$.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:G.jsx(Q.Box,{sx:{position:"absolute",left:`${rt}%`,top:`${U}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},$.timestamp)}),Y&&H==="area"&&G.jsx(Q.Tooltip,{title:G.jsxs(Q.Box,{children:[G.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:u?u(Y.timestamp):new Date(Y.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),G.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:Y.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:G.jsx(Q.Box,{sx:{position:"absolute",left:`${(Y.x+a.left)/n*100}%`,top:`${(i+z+L/2)/V*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),J&&G.jsxs(Q.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",H," → ",r]})]})},pE=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:20,maxSeatSize:20},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:16,maxSeatSize:16},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:12,maxSeatSize:12},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:8.5,maxSeatSize:8.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:7,maxSeatSize:7},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:6.5,maxSeatSize:6.5}],Zv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},Jv=({repositoryCount:e})=>{const t=pE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class Tl{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}Tl.prototype.normal={};Tl.prototype.property={};Tl.prototype.space=void 0;function dE(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new Tl(r,n,t)}function Us(e){return e.toLowerCase()}class yr{constructor(t,r){this.attribute=r,this.property=t}}yr.prototype.attribute="";yr.prototype.booleanish=!1;yr.prototype.boolean=!1;yr.prototype.commaOrSpaceSeparated=!1;yr.prototype.commaSeparated=!1;yr.prototype.defined=!1;yr.prototype.mustUseProperty=!1;yr.prototype.number=!1;yr.prototype.overloadedBoolean=!1;yr.prototype.property="";yr.prototype.spaceSeparated=!1;yr.prototype.space=void 0;let fL=0;const xt=ga(),de=ga(),Ny=ga(),nt=ga(),Gt=ga(),za=ga(),_r=ga();function ga(){return 2**++fL}const Ly=Object.freeze(Object.defineProperty({__proto__:null,boolean:xt,booleanish:de,commaOrSpaceSeparated:_r,commaSeparated:za,number:nt,overloadedBoolean:Ny,spaceSeparated:Gt},Symbol.toStringTag,{value:"Module"})),Wf=Object.keys(Ly);class Qv extends yr{constructor(t,r,n,i){let a=-1;if(super(t,r),a_(this,"space",i),typeof n=="number")for(;++a<Wf.length;){const o=Wf[a];a_(this,Wf[a],(n&Ly[o])===Ly[o])}}}Qv.prototype.defined=!0;function a_(e,t,r){r&&(e[t]=r)}function Mo(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new Qv(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Us(n)]=n,r[Us(a.attribute)]=n}return new Tl(t,r,e.space)}const mE=Mo({properties:{ariaActiveDescendant:null,ariaAtomic:de,ariaAutoComplete:null,ariaBusy:de,ariaChecked:de,ariaColCount:nt,ariaColIndex:nt,ariaColSpan:nt,ariaControls:Gt,ariaCurrent:null,ariaDescribedBy:Gt,ariaDetails:null,ariaDisabled:de,ariaDropEffect:Gt,ariaErrorMessage:null,ariaExpanded:de,ariaFlowTo:Gt,ariaGrabbed:de,ariaHasPopup:null,ariaHidden:de,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Gt,ariaLevel:nt,ariaLive:null,ariaModal:de,ariaMultiLine:de,ariaMultiSelectable:de,ariaOrientation:null,ariaOwns:Gt,ariaPlaceholder:null,ariaPosInSet:nt,ariaPressed:de,ariaReadOnly:de,ariaRelevant:null,ariaRequired:de,ariaRoleDescription:Gt,ariaRowCount:nt,ariaRowIndex:nt,ariaRowSpan:nt,ariaSelected:de,ariaSetSize:nt,ariaSort:null,ariaValueMax:nt,ariaValueMin:nt,ariaValueNow:nt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function yE(e,t){return t in e?e[t]:t}function gE(e,t){return yE(e,t.toLowerCase())}const hL=Mo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:za,acceptCharset:Gt,accessKey:Gt,action:null,allow:null,allowFullScreen:xt,allowPaymentRequest:xt,allowUserMedia:xt,alt:null,as:null,async:xt,autoCapitalize:null,autoComplete:Gt,autoFocus:xt,autoPlay:xt,blocking:Gt,capture:null,charSet:null,checked:xt,cite:null,className:Gt,cols:nt,colSpan:null,content:null,contentEditable:de,controls:xt,controlsList:Gt,coords:nt|za,crossOrigin:null,data:null,dateTime:null,decoding:null,default:xt,defer:xt,dir:null,dirName:null,disabled:xt,download:Ny,draggable:de,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:xt,formTarget:null,headers:Gt,height:nt,hidden:Ny,high:nt,href:null,hrefLang:null,htmlFor:Gt,httpEquiv:Gt,id:null,imageSizes:null,imageSrcSet:null,inert:xt,inputMode:null,integrity:null,is:null,isMap:xt,itemId:null,itemProp:Gt,itemRef:Gt,itemScope:xt,itemType:Gt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:xt,low:nt,manifest:null,max:null,maxLength:nt,media:null,method:null,min:null,minLength:nt,multiple:xt,muted:xt,name:null,nonce:null,noModule:xt,noValidate:xt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:xt,optimum:nt,pattern:null,ping:Gt,placeholder:null,playsInline:xt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:xt,referrerPolicy:null,rel:Gt,required:xt,reversed:xt,rows:nt,rowSpan:nt,sandbox:Gt,scope:null,scoped:xt,seamless:xt,selected:xt,shadowRootClonable:xt,shadowRootDelegatesFocus:xt,shadowRootMode:null,shape:null,size:nt,sizes:null,slot:null,span:nt,spellCheck:de,src:null,srcDoc:null,srcLang:null,srcSet:null,start:nt,step:null,style:null,tabIndex:nt,target:null,title:null,translate:null,type:null,typeMustMatch:xt,useMap:null,value:de,width:nt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Gt,axis:null,background:null,bgColor:null,border:nt,borderColor:null,bottomMargin:nt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:xt,declare:xt,event:null,face:null,frame:null,frameBorder:null,hSpace:nt,leftMargin:nt,link:null,longDesc:null,lowSrc:null,marginHeight:nt,marginWidth:nt,noResize:xt,noHref:xt,noShade:xt,noWrap:xt,object:null,profile:null,prompt:null,rev:null,rightMargin:nt,rules:null,scheme:null,scrolling:de,standby:null,summary:null,text:null,topMargin:nt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:nt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:xt,disableRemotePlayback:xt,prefix:null,property:null,results:nt,security:null,unselectable:null},space:"html",transform:gE}),pL=Mo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:_r,accentHeight:nt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:nt,amplitude:nt,arabicForm:null,ascent:nt,attributeName:null,attributeType:null,azimuth:nt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:nt,by:null,calcMode:null,capHeight:nt,className:Gt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:nt,diffuseConstant:nt,direction:null,display:null,dur:null,divisor:nt,dominantBaseline:null,download:xt,dx:null,dy:null,edgeMode:null,editable:null,elevation:nt,enableBackground:null,end:null,event:null,exponent:nt,externalResourcesRequired:null,fill:null,fillOpacity:nt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:za,g2:za,glyphName:za,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:nt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:nt,horizOriginX:nt,horizOriginY:nt,id:null,ideographic:nt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:nt,k:nt,k1:nt,k2:nt,k3:nt,k4:nt,kernelMatrix:_r,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:nt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:nt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:nt,overlineThickness:nt,paintOrder:null,panose1:null,path:null,pathLength:nt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Gt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:nt,pointsAtY:nt,pointsAtZ:nt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_r,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_r,rev:_r,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_r,requiredFeatures:_r,requiredFonts:_r,requiredFormats:_r,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:nt,specularExponent:nt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:nt,strikethroughThickness:nt,string:null,stroke:null,strokeDashArray:_r,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:nt,strokeOpacity:nt,strokeWidth:null,style:null,surfaceScale:nt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_r,tabIndex:nt,tableValues:null,target:null,targetX:nt,targetY:nt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_r,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:nt,underlineThickness:nt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:nt,values:null,vAlphabetic:nt,vMathematical:nt,vectorEffect:null,vHanging:nt,vIdeographic:nt,version:null,vertAdvY:nt,vertOriginX:nt,vertOriginY:nt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:nt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:yE}),vE=Mo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),bE=Mo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:gE}),_E=Mo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),dL=/[A-Z]/g,o_=/-[a-z]/g,mL=/^data[-\w.:]+$/i;function xE(e,t){const r=Us(t);let n=t,i=yr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&mL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(o_,gL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!o_.test(a)){let o=a.replace(dL,yL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Qv}return new i(n,t)}function yL(e){return"-"+e.toLowerCase()}function gL(e){return e.charAt(1).toUpperCase()}const wE=dE([mE,hL,vE,bE,_E],"html"),t0=dE([mE,pL,vE,bE,_E],"svg");function s_(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function vL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const l_=/[#.]/g;function bL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){l_.lastIndex=i;const s=l_.exec(r),l=r.slice(i,s?s.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function u_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function _L(e){return e.join(" ").trim()}function SE(e,t,r){const n=r?AL(r):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};const u=o;s.unshift(u)}else{l=bL(a,t);const u=l.tagName.toLowerCase(),c=n?n.get(u):void 0;if(l.tagName=c||u,xL(o))s.unshift(o);else for(const[f,h]of Object.entries(o))wL(e,l.properties,f,h)}for(const u of s)By(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function xL(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function wL(e,t,r,n){const i=xE(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=u_(n):i.commaSeparated?a=s_(n):i.commaOrSpaceSeparated?a=u_(s_(n).join(" ")):a=c_(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?SL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(c_(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function By(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)By(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?By(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function c_(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Us(r)===Us(t)))return!0}return r}function SL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function AL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const OL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];SE(wE,"div");const Pl=SE(t0,"g",OL),AE=(e=Pl)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:pr.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:pr.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:pr.neoGrey[400],"stroke-width":.5})]),OE=(e=Pl)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),TE=(e=Pl)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Bt={greyHatch:{background:pr.neoGrey[200],lines:pr.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},TL=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>G.jsx(Q.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:G.jsxs(Q.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[G.jsx("thead",{children:G.jsxs(Q.TableRow,{children:[G.jsx(Q.TableCell,{}),G.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?G.jsxs(G.Fragment,{children:[G.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),G.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):G.jsxs(G.Fragment,{children:[G.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),G.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),G.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),G.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?Bt.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?Bt.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?Bt.noLstHatch.lines:a.color;return G.jsxs(Q.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[G.jsx(Q.TableCell,{align:"center",sx:{width:20},children:G.jsx(Q.Box,{sx:{width:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?Bt.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?Bt.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?Bt.noLstHatch.background:a.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
16
16
  0deg,
17
17
  transparent,
18
18
  transparent 3px,
19
- ${Ut.greyHatch.lines} 3px,
20
- ${Ut.greyHatch.lines} 4px
19
+ ${Bt.greyHatch.lines} 3px,
20
+ ${Bt.greyHatch.lines} 4px
21
21
  )`,borderRadius:"50%"}},...a.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
22
22
  45deg,
23
23
  transparent,
24
24
  transparent 3px,
25
- ${Ut.dataMissingHatch.lines} 3px,
26
- ${Ut.dataMissingHatch.lines} 4px
25
+ ${Bt.dataMissingHatch.lines} 3px,
26
+ ${Bt.dataMissingHatch.lines} 4px
27
27
  )`,borderRadius:"50%"}},...a.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
28
28
  -45deg,
29
29
  transparent,
30
30
  transparent 3px,
31
- ${Ut.noLstHatch.lines} 3px,
32
- ${Ut.noLstHatch.lines} 4px
33
- )`,borderRadius:"50%"}}}})}),U.jsx(V.TableCell,{children:U.jsxs(V.Stack,{direction:"row",alignItems:"center",gap:.5,children:[U.jsx("span",{children:a.label}),a.tooltip&&U.jsx(V.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:U.jsx(uA.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?U.jsxs(U.Fragment,{children:[U.jsx(V.TableCell,{align:"right",children:a.value}),U.jsxs(V.TableCell,{align:"right",children:[a.percentage,"%"]})]}):U.jsxs(U.Fragment,{children:[U.jsx(V.TableCell,{align:"right",children:a.value}),U.jsx(V.TableCell,{align:"right",children:a.max??"-"}),U.jsx(V.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),C0={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},HN=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,u=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,l=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:C0[f.label]};if(u){const d=u.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:C0[h.label]})}}}return[...l,...c]},KN=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},YN=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},HT=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:u,enableBrush:l=!1,showLegend:c=!0,showTooltip:f=!0,showGrid:h=!0,enableAnimation:p=!0,animationDuration:y=7777,formatDate:m,formatValue:d,onAnimationStateChange:g,onTimelineReady:_,onAnimationProgress:b})=>{YN(e);const[x,v]=O.useState(null),[w,S]=O.useState(!0),A=O.useRef("historical"),P=O.useRef(void 0),C=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),T=O.useMemo(()=>{var F;let z;return t!==void 0&&e.timeSeries[t]?(z=e.timeSeries[t].timestamp,P.current=z):A.current==="point-in-time"&&C==="historical"&&P.current!==void 0?z=P.current:z=(F=e.timeSeries[e.timeSeries.length-1])==null?void 0:F.timestamp,A.current=C,z},[t,e.timeSeries,C]),E=e.timeSeries[0].timestamp,M=e.timeSeries[e.timeSeries.length-1].timestamp,[R,$]=O.useState([E,M]),k=s??R,D=O.useCallback(z=>{u?u(z):$(z)},[u]);O.useEffect(()=>{v(null)},[C]);const L=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),q=O.useMemo(()=>KN(e),[e]),I=O.useMemo(()=>HN(e,C),[e,C]),j=O.useMemo(()=>{const z=e.timeSeries[e.timeSeries.length-1];return z?Object.values(z.values).reduce((F,H)=>F+H,0):0},[e.timeSeries]),B=O.useMemo(()=>mg({repositoryCount:j}),[j]),W=O.useMemo(()=>yg({repositoryCount:j}),[j]),G=O.useMemo(()=>{const z=o-L.top-L.bottom;return Math.round(z*.9)},[o,L]),X=O.useMemo(()=>e.events?e.events.map(z=>({timestamp:z.timestamp,label:z.eventName,color:"#992FB9"})):[],[e.events]),Z=O.useCallback(z=>{if(z){const F=e.categories.find(H=>H.label===z.label);v((F==null?void 0:F.id)??null)}else v(null)},[e.categories]),J=O.useCallback(z=>{S(!z),g&&g(z)},[g]);return U.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&U.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&U.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&U.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),U.jsx(V.Box,{sx:{position:"relative",width:"100%"},children:U.jsx(kT,{data:q.data,categories:q.categories,mode:C==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:k,onTimeRangeChange:D,enableBrush:l,showGrid:h,showAxes:!0,margin:L,markers:X,formatDate:m,formatValue:d,animationDuration:y,onAnimationStateChange:J,onTimelineReady:_,onAnimationProgress:b,onHoveredDataChange:Z,hoveredCategory:x,arcAngle:B,parliamentRadius:G,seatSize:W,parliamentTimestamp:T,timelineEvents:e.events,showTimeline:C==="historical"})}),U.jsx(GN,{categories:I,activeCategory:x,onCategoryHover:v,mode:C,visible:w})]})},XN=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:u=!0,showYAxis:l=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:g})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const _=ee(e.current),b=n-a.left-a.right,x=i-a.top-a.bottom;_.selectAll("*").remove();const v=_.append("g").attr("transform",`translate(${a.left},${a.top})`),w=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;_.append("defs").append("clipPath").attr("id",w).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",x);const S=v.append("g").attr("clip-path",`url(#${w})`),A=r.map(j=>j.dataKey),P=Zu().keys(A),C=P(t),T=t.map(j=>j.timestamp),E=o?o[0]:Math.min(...T),M=o?o[1]:Math.max(...T),R=Gu().domain([new Date(E),new Date(M)]).range([0,b]),$=t.filter(j=>j.timestamp>=E&&j.timestamp<=M),k=P($),D=k.length>0?Math.max(...k[k.length-1].map(j=>j[1]??0)):0,L=Mi().domain([0,D*1.1]).range([x,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Ko(R).ticks(6).tickSize(x).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Yo(L).ticks(5).tickSize(-b).tickFormat(()=>"")));const q=pi().x(j=>R(new Date(j.data.timestamp))).y0(j=>L(j[0])).y1(j=>L(j[1])).curve(Im.alpha(.5)),I=S.append("g").attr("class","areas");if(C.forEach((j,B)=>{const W=r[B];if(!W)return;const G=I.append("path").datum(j).attr("class",`area area-${W.dataKey}`).attr("fill",W.color).attr("fill-opacity",W.fillOpacity??.7).attr("stroke",W.color).attr("stroke-width",W.strokeWidth??1.5).attr("d",q);W.strokeDasharray&&G.attr("stroke-dasharray",W.strokeDasharray)}),m.length>0){const j=S.append("g").attr("class","markers"),B=d==="hover"?0:.6,W=m.filter(G=>G.timestamp>=E&&G.timestamp<=M).map(G=>({...G,x:R(new Date(G.timestamp))}));if(W.forEach(G=>{const X=j.append("line").attr("class","marker-line").attr("data-timestamp",G.timestamp).attr("x1",G.x).attr("x2",G.x).attr("y1",0).attr("y2",x).attr("stroke",G.color??"#131E7A").attr("stroke-width",2).attr("opacity",B);G.strokeDasharray&&X.attr("stroke-dasharray",G.strokeDasharray),G.label&&j.append("text").attr("class","marker-label").attr("data-timestamp",G.timestamp).attr("x",G.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",G.color??"#131E7A").attr("opacity",B).text(G.label)}),d==="hover"&&W.length>0){const G=_.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),X=G.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),Z=G.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let J=null;const z=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",x).attr("fill","none").attr("pointer-events","all"),F=H=>{let Q=null,N=1/0;if(W.forEach(Gt=>{const Et=Math.abs(H-Gt.x);Et<N&&(N=Et,Q=Gt)}),!Q||N>50)return J!==null&&(J=null,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),G.style("display","none"),g==null||g(!1)),!1;const K=Q;if(J===null&&(g==null||g(!0)),J===K.timestamp)return!0;J=K.timestamp,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),j.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(K.timestamp)}).attr("opacity",.6),j.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(K.timestamp)}).attr("opacity",1);const ot=new Date(K.timestamp),ht=p?p(K.timestamp):ot.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),at=K.label?`${K.label}: ${ht}`:ht;Z.text(at);const pt=Z.node().getBBox(),Tt=8,it=pt.width+Tt*2,ft=pt.height+Tt*2;X.attr("width",it).attr("height",ft);let wt=K.x-it/2;const $t=10;return wt<0?wt=0:wt+it>b&&(wt=b-it),G.attr("transform",`translate(${a.left+wt},${a.top+$t})`),Z.attr("x",it/2).attr("y",ft/2+4),G.style("display","block"),!0};z.on("mousemove",function(H){const[Q]=Xo(H,this);F(Q)&&H.stopPropagation()}),z.on("mouseleave",function(){J=null,j.selectAll(".marker-line").attr("opacity",0),j.selectAll(".marker-label").attr("opacity",0),G.style("display","none"),g==null||g(!1)})}}if(u){const j=Ko(R).ticks(6);p&&j.tickFormat(B=>p(+B)),v.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${x})`).call(j).selectAll("text").attr("font-size",11)}if(l){const j=Yo(L).ticks(5);y&&j.tickFormat(B=>y(+B)),v.append("g").attr("class","axis axis-y").call(j).selectAll("text").attr("font-size",11)}if(c&&h){const j=Kl().extent([[0,0],[b,x]]).on("end",W=>{if(!W.selection)return;const[G,X]=W.selection,Z=[+R.invert(G),+R.invert(X)];h(Z),f&&_.select(".brush").call(j.move,null)}),B=S.append("g").attr("class","brush").call(j);B.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),B.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{_.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,u,l,c,f,h,p,y,m,d,g])},VN=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:u=400,margin:l={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:g,enableBrush:_=!1,zoomToSelection:b=!1,markers:x=[],markerVisibilityMode:v="hover"})=>{const w=O.useRef(null),[S,A]=O.useState(null),[P,C]=O.useState(!1);O.useEffect(()=>{P&&A(null)},[P]),XN({containerRef:w,data:e,categories:t,width:s,height:u,margin:l,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:_,zoomToSelection:b,onTimeRangeChange:g,formatDate:m,formatValue:d,markers:x,markerVisibilityMode:v,onMarkerHoverChange:C});const M=$=>{if(!o||!w.current||P)return;const k=w.current.getBoundingClientRect(),D=$.clientX-k.left-l.left,L=$.clientY-k.top,q=s-l.left-l.right;if(D<0||D>q){A(null);return}const I=e.map(H=>H.timestamp),j=c?c[0]:Math.min(...I),B=c?c[1]:Math.max(...I),W=D/q*(B-j)+j,X=((H,Q)=>{let N=0,st=H.length;for(;N<st;){const K=N+st>>>1;H[K]<Q?N=K+1:st=K}return N})(I,W),Z=e[X-1],J=e[X];let z=J;if(Z&&J?z=W-Z.timestamp>J.timestamp-W?J:Z:Z&&(z=Z),!z){A(null);return}const F=t.map(H=>({label:H.label,value:z[H.dataKey]??0,color:H.color}));A({visible:!0,x:$.clientX-k.left,y:L,timestamp:z.timestamp,values:F})},R=()=>{o&&A(null)};return U.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&U.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&U.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&U.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),U.jsxs(V.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[U.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${u}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:M,onMouseLeave:R}),o&&S&&S.visible&&U.jsxs(V.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[U.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),U.jsx(V.Stack,{spacing:.5,sx:{mt:1},children:S.values.map($=>U.jsxs(V.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[U.jsxs(V.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[U.jsx(V.Box,{sx:{width:8,height:8,backgroundColor:$.color,borderRadius:"50%"}}),U.jsxs(V.Typography,{variant:"caption",children:[$.label,":"]})]}),U.jsx(V.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d($.value):$.value})]},$.label))})]})]}),a&&U.jsx(V.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map($=>U.jsxs(V.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[U.jsx(V.Box,{sx:{width:16,height:16,backgroundColor:$.color,opacity:$.fillOpacity??.7,border:`2px solid ${$.color}`,borderRadius:"2px",...$.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
31
+ ${Bt.noLstHatch.lines} 3px,
32
+ ${Bt.noLstHatch.lines} 4px
33
+ )`,borderRadius:"50%"}}}})}),G.jsx(Q.TableCell,{children:G.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:a.label}),a.tooltip&&G.jsx(Q.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:G.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?G.jsxs(G.Fragment,{children:[G.jsx(Q.TableCell,{align:"right",children:a.value}),G.jsxs(Q.TableCell,{align:"right",children:[a.percentage,"%"]})]}):G.jsxs(G.Fragment,{children:[G.jsx(Q.TableCell,{align:"right",children:a.value}),G.jsx(Q.TableCell,{align:"right",children:a.max??"-"}),G.jsx(Q.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),f_={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},PL=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,l=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,u=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:f_[f.label]};if(l){const d=l.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:f_[h.label]})}}}return[...u,...c]},EL=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},CL=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},PE=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:l,minAllowedTime:u,maxAllowedTime:c,enableBrush:f=!1,showLegend:h=!0,showTooltip:p=!0,showGrid:y=!0,enableAnimation:m=!0,animationDuration:d=5439,disableTimeline:v=!1,formatDate:x,formatValue:b,onAnimationStateChange:_,onTimelineReady:g,onAnimationProgress:w,brushColor:S="#69b3a2"})=>{CL(e);const[A,T]=O.useState(null),[M,P]=O.useState(!0),E=O.useRef("historical"),C=O.useRef(void 0),k=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),j=O.useMemo(()=>{var rt;let $;return t!==void 0&&e.timeSeries[t]?($=e.timeSeries[t].timestamp,C.current=$):E.current==="point-in-time"&&k==="historical"&&C.current!==void 0?$=C.current:$=(rt=e.timeSeries[e.timeSeries.length-1])==null?void 0:rt.timestamp,E.current=k,$},[t,e.timeSeries,k]),R=e.timeSeries[0].timestamp,L=e.timeSeries[e.timeSeries.length-1].timestamp,[z,W]=O.useState([R,L]),I=s??z,D=O.useCallback($=>{const rt=[u!==void 0?Math.max($[0],u):$[0],c!==void 0?Math.min($[1],c):$[1]];l?l(rt):W(rt)},[l,u,c]);O.useEffect(()=>{T(null)},[k]);const N=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),q=O.useMemo(()=>EL(e),[e]),K=O.useMemo(()=>PL(e,k),[e,k]),B=O.useMemo(()=>{const $=e.timeSeries[e.timeSeries.length-1];return $?Object.values($.values).reduce((rt,U)=>rt+U,0):0},[e.timeSeries]),V=O.useMemo(()=>Zv({repositoryCount:B}),[B]),J=O.useMemo(()=>Jv({repositoryCount:B}),[B]),H=O.useMemo(()=>{const $=o-N.top-N.bottom;return Math.round($*.9)},[o,N]),F=O.useMemo(()=>e.events?e.events.map($=>({timestamp:$.timestamp,label:$.eventName,color:typeof $.color=="string"?$.color:"#2F42FF"})):[],[e.events]),X=O.useCallback($=>{if($){const rt=e.categories.find(U=>U.label===$.label);T((rt==null?void 0:rt.id)??null)}else T(null)},[e.categories]),Y=O.useCallback($=>{P(!$),_&&_($)},[_]);return G.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&G.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&G.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&G.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),G.jsx(Q.Box,{sx:{position:"relative",width:"100%"},children:G.jsx(hE,{data:q.data,categories:q.categories,mode:k==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:I,onTimeRangeChange:D,minAllowedTime:u,maxAllowedTime:c,enableBrush:f,showGrid:y,showAxes:!0,margin:N,markers:F,formatDate:x,formatValue:b,animationDuration:d,onAnimationStateChange:Y,onTimelineReady:g,onAnimationProgress:w,onHoveredDataChange:X,hoveredCategory:A,arcAngle:V,parliamentRadius:H,seatSize:J,parliamentTimestamp:j,timelineEvents:e.events??[],showTimeline:k==="historical"&&!v,brushColor:S})}),G.jsx(TL,{categories:K,activeCategory:A,onCategoryHover:T,mode:k,visible:M})]})},ML=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:l=!0,showYAxis:u=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:v})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const x=ee(e.current),b=n-a.left-a.right,_=i-a.top-a.bottom;x.selectAll("*").remove();const g=x.append("g").attr("transform",`translate(${a.left},${a.top})`),w=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;x.append("defs").append("clipPath").attr("id",w).append("rect").attr("x",0).attr("y",0).attr("width",b).attr("height",_);const S=g.append("g").attr("clip-path",`url(#${w})`),A=r.map(D=>D.dataKey),T=Mu().keys(A),M=T(t),P=t.map(D=>D.timestamp),E=o?o[0]:Math.min(...P),C=o?o[1]:Math.max(...P),k=Au().domain([new Date(E),new Date(C)]).range([0,b]),j=t.filter(D=>D.timestamp>=E&&D.timestamp<=C),R=T(j),L=R.length>0?Math.max(...R[R.length-1].map(D=>D[1]??0)):0,z=aa().domain([0,L*1.1]).range([_,0]).nice();s&&(S.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(Es(k).ticks(6).tickSize(_).tickFormat(()=>"")),S.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(Cs(z).ticks(5).tickSize(-b).tickFormat(()=>"")));const W=Ui().x(D=>k(new Date(D.data.timestamp))).y0(D=>z(D[0])).y1(D=>z(D[1])).curve(xI.alpha(.5)),I=S.append("g").attr("class","areas");if(M.forEach((D,N)=>{const q=r[N];if(!q)return;const K=I.append("path").datum(D).attr("class",`area area-${q.dataKey}`).attr("fill",q.color).attr("fill-opacity",q.fillOpacity??.7).attr("stroke",q.color).attr("stroke-width",q.strokeWidth??1.5).attr("d",W);q.strokeDasharray&&K.attr("stroke-dasharray",q.strokeDasharray)}),m.length>0){const D=S.append("g").attr("class","markers"),N=d==="hover"?0:.6,q=m.filter(K=>K.timestamp>=E&&K.timestamp<=C).map(K=>({...K,x:k(new Date(K.timestamp))}));if(q.forEach(K=>{const B=D.append("line").attr("class","marker-line").attr("data-timestamp",K.timestamp).attr("x1",K.x).attr("x2",K.x).attr("y1",0).attr("y2",_).attr("stroke",K.color??"#131E7A").attr("stroke-width",2).attr("opacity",N);K.strokeDasharray&&B.attr("stroke-dasharray",K.strokeDasharray),K.label&&D.append("text").attr("class","marker-label").attr("data-timestamp",K.timestamp).attr("x",K.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",K.color??"#131E7A").attr("opacity",N).text(K.label)}),d==="hover"&&q.length>0){const K=x.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),B=K.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),V=K.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let J=null;const H=S.append("rect").attr("class","marker-hover-overlay").attr("width",b).attr("height",_).attr("fill","none").attr("pointer-events","all"),F=X=>{let Y=null,$=1/0;if(q.forEach(oe=>{const It=Math.abs(X-oe.x);It<$&&($=It,Y=oe)}),!Y||$>50)return J!==null&&(J=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),K.style("display","none"),v==null||v(!1)),!1;const U=Y;if(J===null&&(v==null||v(!0)),J===U.timestamp)return!0;J=U.timestamp,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),D.selectAll(".marker-line").filter(function(){return ee(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",.6),D.selectAll(".marker-label").filter(function(){return ee(this).attr("data-timestamp")===String(U.timestamp)}).attr("opacity",1);const ct=new Date(U.timestamp),mt=p?p(U.timestamp):ct.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),ot=U.label?`${U.label}: ${mt}`:mt;V.text(ot);const ut=V.node().getBBox(),St=8,at=ut.width+St*2,dt=ut.height+St*2;B.attr("width",at).attr("height",dt);let wt=U.x-at/2;const Xt=10;return wt<0?wt=0:wt+at>b&&(wt=b-at),K.attr("transform",`translate(${a.left+wt},${a.top+Xt})`),V.attr("x",at/2).attr("y",dt/2+4),K.style("display","block"),!0};H.on("mousemove",function(X){const[Y]=Ms(X,this);F(Y)&&X.stopPropagation()}),H.on("mouseleave",function(){J=null,D.selectAll(".marker-line").attr("opacity",0),D.selectAll(".marker-label").attr("opacity",0),K.style("display","none"),v==null||v(!1)})}}if(l){const D=Es(k).ticks(6);p&&D.tickFormat(N=>p(+N)),g.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${_})`).call(D).selectAll("text").attr("font-size",11)}if(u){const D=Cs(z).ticks(5);y&&D.tickFormat(N=>y(+N)),g.append("g").attr("class","axis axis-y").call(D).selectAll("text").attr("font-size",11)}if(c&&h){const D=Tc().extent([[0,0],[b,_]]).on("end",q=>{if(!q.selection)return;const[K,B]=q.selection,V=[+k.invert(K),+k.invert(B)];h(V),f&&x.select(".brush").call(D.move,null)}),N=S.append("g").attr("class","brush").call(D);N.selectAll(".selection").attr("fill","#69b3a2").attr("fill-opacity",.2).attr("stroke","#69b3a2").attr("stroke-width",1),N.selectAll(".handle").attr("fill","#69b3a2").attr("fill-opacity",.8)}return()=>{x.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,v])},kL=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:l=400,margin:u={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:v,enableBrush:x=!1,zoomToSelection:b=!1,markers:_=[],markerVisibilityMode:g="hover"})=>{const w=O.useRef(null),[S,A]=O.useState(null),[T,M]=O.useState(!1);O.useEffect(()=>{T&&A(null)},[T]),ML({containerRef:w,data:e,categories:t,width:s,height:l,margin:u,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:x,zoomToSelection:b,onTimeRangeChange:v,formatDate:m,formatValue:d,markers:_,markerVisibilityMode:g,onMarkerHoverChange:M});const C=j=>{if(!o||!w.current||T)return;const R=w.current.getBoundingClientRect(),L=j.clientX-R.left-u.left,z=j.clientY-R.top,W=s-u.left-u.right;if(L<0||L>W){A(null);return}const I=e.map(X=>X.timestamp),D=c?c[0]:Math.min(...I),N=c?c[1]:Math.max(...I),q=L/W*(N-D)+D,B=((X,Y)=>{let $=0,rt=X.length;for(;$<rt;){const U=$+rt>>>1;X[U]<Y?$=U+1:rt=U}return $})(I,q),V=e[B-1],J=e[B];let H=J;if(V&&J?H=q-V.timestamp>J.timestamp-q?J:V:V&&(H=V),!H){A(null);return}const F=t.map(X=>({label:X.label,value:H[X.dataKey]??0,color:X.color}));A({visible:!0,x:j.clientX-R.left,y:z,timestamp:H.timestamp,values:F})},k=()=>{o&&A(null)};return G.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&G.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&G.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&G.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),G.jsxs(Q.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[G.jsx("svg",{ref:w,viewBox:`0 0 ${s} ${l}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:C,onMouseLeave:k}),o&&S&&S.visible&&G.jsxs(Q.Paper,{elevation:3,sx:{position:"absolute",left:S.x+10,top:S.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:S.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[G.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(S.timestamp):new Date(S.timestamp).toLocaleDateString()}),G.jsx(Q.Stack,{spacing:.5,sx:{mt:1},children:S.values.map(j=>G.jsxs(Q.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[G.jsxs(Q.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[G.jsx(Q.Box,{sx:{width:8,height:8,backgroundColor:j.color,borderRadius:"50%"}}),G.jsxs(Q.Typography,{variant:"caption",children:[j.label,":"]})]}),G.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d(j.value):j.value})]},j.label))})]})]}),a&&G.jsx(Q.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(j=>G.jsxs(Q.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[G.jsx(Q.Box,{sx:{width:16,height:16,backgroundColor:j.color,opacity:j.fillOpacity??.7,border:`2px solid ${j.color}`,borderRadius:"2px",...j.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
34
34
  45deg,
35
35
  transparent,
36
36
  transparent 4px,
37
- ${$.color} 4px,
38
- ${$.color} 8px
39
- )`}}}),U.jsx(V.Typography,{variant:"body2",children:$.label})]},$.dataKey))})]})},ZN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],M0={}.hasOwnProperty;function JN(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&M0.call(i,e)){const u=String(i[e]);o=M0.call(s,u)?s[u]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const QN=/["&'<>`]/g,tL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,rL=/[|\\{}()[\]^$+*?.]/g,k0=new WeakMap;function nL(e,t){if(e=e.replace(t.subset?iL(t.subset):QN,n),t.subset||t.escapeOnly)return e;return e.replace(tL,r).replace(eL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function iL(e){let t=k0.get(e);return t||(t=aL(e),k0.set(e,t)),t}function aL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(rL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const oL=/[\dA-Fa-f]/;function sL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!oL.test(String.fromCharCode(t))?n:n+";"}const uL=/\d/;function lL(e,t,r){const n="&#"+String(e);return r&&t&&!uL.test(String.fromCharCode(t))?n:n+";"}const cL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],uf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},fL=["cent","copy","divide","gt","lt","not","para","times"],KT={}.hasOwnProperty,iy={};let cu;for(cu in uf)KT.call(uf,cu)&&(iy[uf[cu]]=cu);const hL=/[^\dA-Za-z]/;function pL(e,t,r,n){const i=String.fromCharCode(e);if(KT.call(iy,i)){const a=iy[i],o="&"+a;return r&&cL.includes(a)&&!fL.includes(a)&&(!n||t&&t!==61&&hL.test(String.fromCharCode(t)))?o:o+";"}return""}function dL(e,t,r){let n=sL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=pL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=lL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function ca(e,t){return nL(e,Object.assign({format:dL},t))}const mL=/^>|^->|<!--|-->|--!>|<!-$/g,yL=[">"],vL=["<",">"];function gL(e,t,r,n){return n.settings.bogusComments?"<?"+ca(e.value,Object.assign({},n.settings.characterReferences,{subset:yL}))+">":"<!--"+e.value.replace(mL,i)+"-->";function i(a){return ca(a,Object.assign({},n.settings.characterReferences,{subset:vL}))}}function bL(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function $0(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const _L=/[ \t\n\f\r]/g;function bg(e){return typeof e=="object"?e.type==="text"?j0(e.value):!1:j0(e)}function j0(e){return e.replace(_L,"")===""}const we=XT(1),YT=XT(-1),xL=[];function XT(e){return t;function t(r,n,i){const a=r?r.children:xL;let o=(n||0)+e,s=a[o];if(!i)for(;s&&bg(s);)o+=e,s=a[o];return s}}const wL={}.hasOwnProperty;function VT(e){return t;function t(r,n,i){return wL.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const _g=VT({body:OL,caption:lf,colgroup:lf,dd:EL,dt:TL,head:lf,html:SL,li:PL,optgroup:CL,option:ML,p:AL,rp:R0,rt:R0,tbody:$L,td:D0,tfoot:jL,th:D0,thead:kL,tr:RL});function lf(e,t,r){const n=we(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&bg(n.value.charAt(0)))}function SL(e,t,r){const n=we(r,t);return!n||n.type!=="comment"}function OL(e,t,r){const n=we(r,t);return!n||n.type!=="comment"}function AL(e,t,r){const n=we(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function PL(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="li"}function TL(e,t,r){const n=we(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function EL(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function R0(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function CL(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function ML(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function kL(e,t,r){const n=we(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function $L(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function jL(e,t,r){return!we(r,t)}function RL(e,t,r){const n=we(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function D0(e,t,r){const n=we(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const DL=VT({body:LL,colgroup:BL,head:NL,html:IL,tbody:qL});function IL(e){const t=we(e,-1);return!t||t.type!=="comment"}function NL(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function LL(e){const t=we(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&bg(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function BL(e,t,r){const n=YT(r,t),i=we(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&_g(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function qL(e,t,r){const n=YT(r,t),i=we(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&_g(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const fu={name:[[`
37
+ ${j.color} 4px,
38
+ ${j.color} 8px
39
+ )`}}}),G.jsx(Q.Typography,{variant:"body2",children:j.label})]},j.dataKey))})]})},$L=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],h_={}.hasOwnProperty;function jL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&h_.call(i,e)){const l=String(i[e]);o=h_.call(s,l)?s[l]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const RL=/["&'<>`]/g,DL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,IL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,NL=/[|\\{}()[\]^$+*?.]/g,p_=new WeakMap;function LL(e,t){if(e=e.replace(t.subset?BL(t.subset):RL,n),t.subset||t.escapeOnly)return e;return e.replace(DL,r).replace(IL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function BL(e){let t=p_.get(e);return t||(t=qL(e),p_.set(e,t)),t}function qL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace(NL,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const FL=/[\dA-Fa-f]/;function zL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!FL.test(String.fromCharCode(t))?n:n+";"}const UL=/\d/;function WL(e,t,r){const n="&#"+String(e);return r&&t&&!UL.test(String.fromCharCode(t))?n:n+";"}const HL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Hf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},GL=["cent","copy","divide","gt","lt","not","para","times"],EE={}.hasOwnProperty,qy={};let Ul;for(Ul in Hf)EE.call(Hf,Ul)&&(qy[Hf[Ul]]=Ul);const KL=/[^\dA-Za-z]/;function XL(e,t,r,n){const i=String.fromCharCode(e);if(EE.call(qy,i)){const a=qy[i],o="&"+a;return r&&HL.includes(a)&&!GL.includes(a)&&(!n||t&&t!==61&&KL.test(String.fromCharCode(t)))?o:o+";"}return""}function YL(e,t,r){let n=zL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=XL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=WL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Ua(e,t){return LL(e,Object.assign({format:YL},t))}const VL=/^>|^->|<!--|-->|--!>|<!-$/g,ZL=[">"],JL=["<",">"];function QL(e,t,r,n){return n.settings.bogusComments?"<?"+Ua(e.value,Object.assign({},n.settings.characterReferences,{subset:ZL}))+">":"<!--"+e.value.replace(VL,i)+"-->";function i(a){return Ua(a,Object.assign({},n.settings.characterReferences,{subset:JL}))}}function tB(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function d_(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const eB=/[ \t\n\f\r]/g;function e0(e){return typeof e=="object"?e.type==="text"?m_(e.value):!1:m_(e)}function m_(e){return e.replace(eB,"")===""}const Pe=ME(1),CE=ME(-1),rB=[];function ME(e){return t;function t(r,n,i){const a=r?r.children:rB;let o=(n||0)+e,s=a[o];if(!i)for(;s&&e0(s);)o+=e,s=a[o];return s}}const nB={}.hasOwnProperty;function kE(e){return t;function t(r,n,i){return nB.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const r0=kE({body:aB,caption:Gf,colgroup:Gf,dd:uB,dt:lB,head:Gf,html:iB,li:sB,optgroup:cB,option:fB,p:oB,rp:y_,rt:y_,tbody:pB,td:g_,tfoot:dB,th:g_,thead:hB,tr:mB});function Gf(e,t,r){const n=Pe(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&e0(n.value.charAt(0)))}function iB(e,t,r){const n=Pe(r,t);return!n||n.type!=="comment"}function aB(e,t,r){const n=Pe(r,t);return!n||n.type!=="comment"}function oB(e,t,r){const n=Pe(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function sB(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&n.tagName==="li"}function lB(e,t,r){const n=Pe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function uB(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function y_(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function cB(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function fB(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function hB(e,t,r){const n=Pe(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function pB(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function dB(e,t,r){return!Pe(r,t)}function mB(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function g_(e,t,r){const n=Pe(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const yB=kE({body:bB,colgroup:_B,head:vB,html:gB,tbody:xB});function gB(e){const t=Pe(e,-1);return!t||t.type!=="comment"}function vB(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function bB(e){const t=Pe(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&e0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function _B(e,t,r){const n=CE(r,t),i=Pe(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&r0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function xB(e,t,r){const n=CE(r,t),i=Pe(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&r0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Wl={name:[[`
40
40
  \f\r &/=>`.split(""),`
41
41
  \f\r "&'/=>\``.split("")],[`\0
42
42
  \f\r "&'/<=>`.split(""),`\0
@@ -44,25 +44,25 @@
44
44
  \f\r &>`.split(""),`\0
45
45
  \f\r "&'<=>\``.split("")],[`\0
46
46
  \f\r "&'<=>\``.split(""),`\0
47
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function FL(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let u;i.space==="html"&&e.tagName==="svg"&&(n.schema=gg);const l=zL(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(l||!a||!DL(e,t,r))&&(s.push("<",e.tagName,l?" "+l:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(u=l.charAt(l.length-1),(!n.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!_g(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function zL(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=UL(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function UL(e,t,r){const n=qT(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const u=ca(n.attribute,Object.assign({},e.settings.characterReferences,{subset:fu.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?NN:BN)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?u:(e.settings.preferUnquoted&&(s=ca(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:fu.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&$0(r,o)>$0(r,e.alternative)&&(o=e.alternative),s=o+ca(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?fu.single:fu.double)[i][a],attribute:!0}))+o),u+(s&&"="+s))}const WL=["<","&"];function ZT(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:ca(e.value,Object.assign({},n.settings.characterReferences,{subset:WL}))}function GL(e,t,r,n){return n.settings.allowDangerousHtml?e.value:ZT(e,t,r,n)}function HL(e,t,r,n){return n.all(e)}const KL=JN("type",{invalid:YL,unknown:XL,handlers:{comment:gL,doctype:bL,element:FL,raw:GL,root:HL,text:ZT}});function YL(e){throw new Error("Expected node, not `"+e+"`")}function XL(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const VL={},ZL={},JL=[];function QL(e,t){const r=VL,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:tB,all:eB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||ZN,characterReferences:r.characterReferences||ZL,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?gg:FT,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function tB(e,t,r){return KL(e,t,r,this)}function eB(e){const t=[],r=e&&e.children||JL;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const ze={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},fa={COMPLETED:Qe.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},Lo="N/A",Bo="No LST",qo="Data Missing";function rB(e,t,r,n="left-to-right",i=900,a){ee.prototype.transition=Pv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,u=o/2-Math.PI/2;let l=e.querySelector("defs");l||(l=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(l));const c="arc-sweep-clip";let f=l.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),l.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=_=>{const b=r*1.5,x=Math.cos(_)*b,v=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-_>Math.PI?1:0;return`M 0,0 L ${x},${v} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(s)),ee(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=s+(u-s)*_;h.setAttribute("d",d(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=_=>{const b=r*1.5,x=Math.cos(_)*b,v=Math.sin(_)*b,w=Math.cos(u)*b,S=Math.sin(u)*b,A=u-_>Math.PI?1:0;return`M 0,0 L ${x},${v} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(u)),ee(h).transition().duration(i).ease(_=>1-Math.pow(1-_,3)).tween("arc-sweep",()=>_=>{const b=u-(u-s)*_;h.setAttribute("d",d(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var hu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cf,I0;function JT(){if(I0)return cf;I0=1;var e=typeof hu=="object"&&hu&&hu.Object===Object&&hu;return cf=e,cf}var ff,N0;function zr(){if(N0)return ff;N0=1;var e=JT(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return ff=r,ff}var hf,L0;function nB(){if(L0)return hf;L0=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return hf=t,hf}var pf,B0;function iB(){if(B0)return pf;B0=1;var e=nB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return pf=r,pf}var df,q0;function Zn(){if(q0)return df;q0=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return df=e,df}var mf,F0;function Ks(){if(F0)return mf;F0=1;var e=zr(),t=e.Symbol;return mf=t,mf}var yf,z0;function aB(){if(z0)return yf;z0=1;var e=Ks(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),u=o[i];try{o[i]=void 0;var l=!0}catch{}var c=n.call(o);return l&&(s?o[i]=u:delete o[i]),c}return yf=a,yf}var vf,U0;function oB(){if(U0)return vf;U0=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return vf=r,vf}var gf,W0;function Cn(){if(W0)return gf;W0=1;var e=Ks(),t=aB(),r=oB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return gf=o,gf}var bf,G0;function Mn(){if(G0)return bf;G0=1;function e(t){return t!=null&&typeof t=="object"}return bf=e,bf}var _f,H0;function Za(){if(H0)return _f;H0=1;var e=Cn(),t=Mn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return _f=n,_f}var xf,K0;function xg(){if(K0)return xf;K0=1;var e=iB(),t=Zn(),r=Za(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(t(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=t(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=a.test(l);return f||o.test(l)?s(l.slice(2),f?2:8):i.test(l)?n:+l}return xf=u,xf}var wf,Y0;function QT(){if(Y0)return wf;Y0=1;var e=xg(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return wf=n,wf}var Sf,X0;function wg(){if(X0)return Sf;X0=1;var e=QT();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Sf=t,Sf}var Of,V0;function oc(){if(V0)return Of;V0=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Of=e,Of}var Af,Z0;function We(){if(Z0)return Af;Z0=1;var e=Array.isArray;return Af=e,Af}var Pf,J0;function sB(){if(J0)return Pf;J0=1;var e=Ks(),t=oc(),r=We(),n=Za(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var u=s+"";return u=="0"&&1/s==-1/0?"-0":u}return Pf=o,Pf}var Tf,Q0;function Sg(){if(Q0)return Tf;Q0=1;var e=sB();function t(r){return r==null?"":e(r)}return Tf=t,Tf}var Ef,t_;function uB(){if(t_)return Ef;t_=1;var e=zr(),t=wg(),r=xg(),n=Sg(),i=e.isFinite,a=Math.min;function o(s){var u=Math[s];return function(l,c){if(l=r(l),c=c==null?0:a(t(c),292),c&&i(l)){var f=(n(l)+"e").split("e"),h=u(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return u(l)}}return Ef=o,Ef}var Cf,e_;function lB(){if(e_)return Cf;e_=1;var e=uB(),t=e("round");return Cf=t,Cf}var cB=lB();const fB=zt(cB);var Mf,r_;function tE(){if(r_)return Mf;r_=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Mf=e,Mf}var kf,n_;function hB(){if(n_)return kf;n_=1;var e=Cn(),t=Mn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return kf=n,kf}var $f,i_;function Og(){if(i_)return $f;i_=1;var e=hB(),t=Mn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return $f=a,$f}var jf,a_;function pB(){if(a_)return jf;a_=1;var e=Ks(),t=Og(),r=We(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return jf=i,jf}var Rf,o_;function eE(){if(o_)return Rf;o_=1;var e=tE(),t=pB();function r(n,i,a,o,s){var u=-1,l=n.length;for(a||(a=t),s||(s=[]);++u<l;){var c=n[u];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return Rf=r,Rf}var Df,s_;function Ag(){if(s_)return Df;s_=1;var e=We(),t=Za(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return Df=i,Df}var If,u_;function Pg(){if(u_)return If;u_=1;var e=Cn(),t=Zn(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var u=e(s);return u==n||u==i||u==r||u==a}return If=o,If}var Nf,l_;function dB(){if(l_)return Nf;l_=1;var e=zr(),t=e["__core-js_shared__"];return Nf=t,Nf}var Lf,c_;function mB(){if(c_)return Lf;c_=1;var e=dB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Lf=r,Lf}var Bf,f_;function rE(){if(f_)return Bf;f_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Bf=r,Bf}var qf,h_;function yB(){if(h_)return qf;h_=1;var e=Pg(),t=mB(),r=Zn(),n=rE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,u=o.toString,l=s.hasOwnProperty,c=RegExp("^"+u.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return qf=f,qf}var Ff,p_;function vB(){if(p_)return Ff;p_=1;function e(t,r){return t==null?void 0:t[r]}return Ff=e,Ff}var zf,d_;function zi(){if(d_)return zf;d_=1;var e=yB(),t=vB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return zf=r,zf}var Uf,m_;function sc(){if(m_)return Uf;m_=1;var e=zi(),t=e(Object,"create");return Uf=t,Uf}var Wf,y_;function gB(){if(y_)return Wf;y_=1;var e=sc();function t(){this.__data__=e?e(null):{},this.size=0}return Wf=t,Wf}var Gf,v_;function bB(){if(v_)return Gf;v_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Gf=e,Gf}var Hf,g_;function _B(){if(g_)return Hf;g_=1;var e=sc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Hf=i,Hf}var Kf,b_;function xB(){if(b_)return Kf;b_=1;var e=sc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Kf=n,Kf}var Yf,__;function wB(){if(__)return Yf;__=1;var e=sc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Yf=r,Yf}var Xf,x_;function SB(){if(x_)return Xf;x_=1;var e=gB(),t=bB(),r=_B(),n=xB(),i=wB();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Xf=a,Xf}var Vf,w_;function OB(){if(w_)return Vf;w_=1;function e(){this.__data__=[],this.size=0}return Vf=e,Vf}var Zf,S_;function Tg(){if(S_)return Zf;S_=1;function e(t,r){return t===r||t!==t&&r!==r}return Zf=e,Zf}var Jf,O_;function uc(){if(O_)return Jf;O_=1;var e=Tg();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Jf=t,Jf}var Qf,A_;function AB(){if(A_)return Qf;A_=1;var e=uc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Qf=n,Qf}var th,P_;function PB(){if(P_)return th;P_=1;var e=uc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return th=t,th}var eh,T_;function TB(){if(T_)return eh;T_=1;var e=uc();function t(r){return e(this.__data__,r)>-1}return eh=t,eh}var rh,E_;function EB(){if(E_)return rh;E_=1;var e=uc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return rh=t,rh}var nh,C_;function lc(){if(C_)return nh;C_=1;var e=OB(),t=AB(),r=PB(),n=TB(),i=EB();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,nh=a,nh}var ih,M_;function Eg(){if(M_)return ih;M_=1;var e=zi(),t=zr(),r=e(t,"Map");return ih=r,ih}var ah,k_;function CB(){if(k_)return ah;k_=1;var e=SB(),t=lc(),r=Eg();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return ah=n,ah}var oh,$_;function MB(){if($_)return oh;$_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return oh=e,oh}var sh,j_;function cc(){if(j_)return sh;j_=1;var e=MB();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return sh=t,sh}var uh,R_;function kB(){if(R_)return uh;R_=1;var e=cc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return uh=t,uh}var lh,D_;function $B(){if(D_)return lh;D_=1;var e=cc();function t(r){return e(this,r).get(r)}return lh=t,lh}var ch,I_;function jB(){if(I_)return ch;I_=1;var e=cc();function t(r){return e(this,r).has(r)}return ch=t,ch}var fh,N_;function RB(){if(N_)return fh;N_=1;var e=cc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return fh=t,fh}var hh,L_;function Cg(){if(L_)return hh;L_=1;var e=CB(),t=kB(),r=$B(),n=jB(),i=RB();function a(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var l=o[s];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,hh=a,hh}var ph,B_;function nE(){if(B_)return ph;B_=1;var e=Cg(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],u=a.cache;if(u.has(s))return u.get(s);var l=n.apply(this,o);return a.cache=u.set(s,l)||u,l};return a.cache=new(r.Cache||e),a}return r.Cache=e,ph=r,ph}var dh,q_;function DB(){if(q_)return dh;q_=1;var e=nE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return dh=r,dh}var mh,F_;function IB(){if(F_)return mh;F_=1;var e=DB(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,u,l){a.push(u?l.replace(r,"$1"):s||o)}),a});return mh=n,mh}var yh,z_;function iE(){if(z_)return yh;z_=1;var e=We(),t=Ag(),r=IB(),n=Sg();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return yh=i,yh}var vh,U_;function fc(){if(U_)return vh;U_=1;var e=Za();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return vh=t,vh}var gh,W_;function Mg(){if(W_)return gh;W_=1;var e=iE(),t=fc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return gh=r,gh}var bh,G_;function NB(){if(G_)return bh;G_=1;var e=lc();function t(){this.__data__=new e,this.size=0}return bh=t,bh}var _h,H_;function LB(){if(H_)return _h;H_=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return _h=e,_h}var xh,K_;function BB(){if(K_)return xh;K_=1;function e(t){return this.__data__.get(t)}return xh=e,xh}var wh,Y_;function qB(){if(Y_)return wh;Y_=1;function e(t){return this.__data__.has(t)}return wh=e,wh}var Sh,X_;function FB(){if(X_)return Sh;X_=1;var e=lc(),t=Eg(),r=Cg(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var u=s.__data__;if(!t||u.length<n-1)return u.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(u)}return s.set(a,o),this.size=s.size,this}return Sh=i,Sh}var Oh,V_;function aE(){if(V_)return Oh;V_=1;var e=lc(),t=NB(),r=LB(),n=BB(),i=qB(),a=FB();function o(s){var u=this.__data__=new e(s);this.size=u.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,Oh=o,Oh}var Ah,Z_;function zB(){if(Z_)return Ah;Z_=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return Ah=t,Ah}var Ph,J_;function UB(){if(J_)return Ph;J_=1;function e(t){return this.__data__.has(t)}return Ph=e,Ph}var Th,Q_;function oE(){if(Q_)return Th;Q_=1;var e=Cg(),t=zB(),r=UB();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,Th=n,Th}var Eh,tx;function sE(){if(tx)return Eh;tx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return Eh=e,Eh}var Ch,ex;function uE(){if(ex)return Ch;ex=1;function e(t,r){return t.has(r)}return Ch=e,Ch}var Mh,rx;function lE(){if(rx)return Mh;rx=1;var e=oE(),t=sE(),r=uE(),n=1,i=2;function a(o,s,u,l,c,f){var h=u&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var g=-1,_=!0,b=u&i?new e:void 0;for(f.set(o,s),f.set(s,o);++g<p;){var x=o[g],v=s[g];if(l)var w=h?l(v,x,g,s,o,f):l(x,v,g,o,s,f);if(w!==void 0){if(w)continue;_=!1;break}if(b){if(!t(s,function(S,A){if(!r(b,A)&&(x===S||c(x,S,u,l,f)))return b.push(A)})){_=!1;break}}else if(!(x===v||c(x,v,u,l,f))){_=!1;break}}return f.delete(o),f.delete(s),_}return Mh=a,Mh}var kh,nx;function WB(){if(nx)return kh;nx=1;var e=zr(),t=e.Uint8Array;return kh=t,kh}var $h,ix;function GB(){if(ix)return $h;ix=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return $h=e,$h}var jh,ax;function kg(){if(ax)return jh;ax=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return jh=e,jh}var Rh,ox;function HB(){if(ox)return Rh;ox=1;var e=Ks(),t=WB(),r=Tg(),n=lE(),i=GB(),a=kg(),o=1,s=2,u="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",g="[object ArrayBuffer]",_="[object DataView]",b=e?e.prototype:void 0,x=b?b.valueOf:void 0;function v(w,S,A,P,C,T,E){switch(A){case _:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case g:return!(w.byteLength!=S.byteLength||!T(new t(w),new t(S)));case u:case l:case h:return r(+w,+S);case c:return w.name==S.name&&w.message==S.message;case p:case m:return w==S+"";case f:var M=i;case y:var R=P&o;if(M||(M=a),w.size!=S.size&&!R)return!1;var $=E.get(w);if($)return $==S;P|=s,E.set(w,S);var k=n(M(w),M(S),P,C,T,E);return E.delete(w),k;case d:if(x)return x.call(w)==x.call(S)}return!1}return Rh=v,Rh}var Dh,sx;function KB(){if(sx)return Dh;sx=1;var e=tE(),t=We();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Dh=r,Dh}var Ih,ux;function YB(){if(ux)return Ih;ux=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return Ih=e,Ih}var Nh,lx;function XB(){if(lx)return Nh;lx=1;function e(){return[]}return Nh=e,Nh}var Lh,cx;function VB(){if(cx)return Lh;cx=1;var e=YB(),t=XB(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Lh=a,Lh}var Bh,fx;function ZB(){if(fx)return Bh;fx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Bh=e,Bh}var Co={exports:{}},qh,hx;function JB(){if(hx)return qh;hx=1;function e(){return!1}return qh=e,qh}Co.exports;var px;function cE(){return px||(px=1,(function(e,t){var r=zr(),n=JB(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;e.exports=l})(Co,Co.exports)),Co.exports}var Fh,dx;function $g(){if(dx)return Fh;dx=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Fh=r,Fh}var zh,mx;function jg(){if(mx)return zh;mx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return zh=t,zh}var Uh,yx;function QB(){if(yx)return Uh;yx=1;var e=Cn(),t=jg(),r=Mn(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",g="[object DataView]",_="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",v="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",P="[object Uint16Array]",C="[object Uint32Array]",T={};T[_]=T[b]=T[x]=T[v]=T[w]=T[S]=T[A]=T[P]=T[C]=!0,T[n]=T[i]=T[d]=T[a]=T[g]=T[o]=T[s]=T[u]=T[l]=T[c]=T[f]=T[h]=T[p]=T[y]=T[m]=!1;function E(M){return r(M)&&t(M.length)&&!!T[e(M)]}return Uh=E,Uh}var Wh,vx;function fE(){if(vx)return Wh;vx=1;function e(t){return function(r){return t(r)}}return Wh=e,Wh}var Mo={exports:{}};Mo.exports;var gx;function tq(){return gx||(gx=1,(function(e,t){var r=JT(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var u=i&&i.require&&i.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(Mo,Mo.exports)),Mo.exports}var Gh,bx;function hE(){if(bx)return Gh;bx=1;var e=QB(),t=fE(),r=tq(),n=r&&r.isTypedArray,i=n?t(n):e;return Gh=i,Gh}var Hh,_x;function eq(){if(_x)return Hh;_x=1;var e=ZB(),t=Og(),r=We(),n=cE(),i=$g(),a=hE(),o=Object.prototype,s=o.hasOwnProperty;function u(l,c){var f=r(l),h=!f&&t(l),p=!f&&!h&&n(l),y=!f&&!h&&!p&&a(l),m=f||h||p||y,d=m?e(l.length,String):[],g=d.length;for(var _ in l)(c||s.call(l,_))&&!(m&&(_=="length"||p&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||i(_,g)))&&d.push(_);return d}return Hh=u,Hh}var Kh,xx;function rq(){if(xx)return Kh;xx=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Kh=t,Kh}var Yh,wx;function pE(){if(wx)return Yh;wx=1;function e(t,r){return function(n){return t(r(n))}}return Yh=e,Yh}var Xh,Sx;function nq(){if(Sx)return Xh;Sx=1;var e=pE(),t=e(Object.keys,Object);return Xh=t,Xh}var Vh,Ox;function iq(){if(Ox)return Vh;Ox=1;var e=rq(),t=nq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Vh=i,Vh}var Zh,Ax;function Ys(){if(Ax)return Zh;Ax=1;var e=Pg(),t=jg();function r(n){return n!=null&&t(n.length)&&!e(n)}return Zh=r,Zh}var Jh,Px;function Xs(){if(Px)return Jh;Px=1;var e=eq(),t=iq(),r=Ys();function n(i){return r(i)?e(i):t(i)}return Jh=n,Jh}var Qh,Tx;function aq(){if(Tx)return Qh;Tx=1;var e=KB(),t=VB(),r=Xs();function n(i){return e(i,r,t)}return Qh=n,Qh}var tp,Ex;function oq(){if(Ex)return tp;Ex=1;var e=aq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,u,l,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var g=h[d];if(!(f?g in o:n.call(o,g)))return!1}var _=c.get(a),b=c.get(o);if(_&&b)return _==o&&b==a;var x=!0;c.set(a,o),c.set(o,a);for(var v=f;++d<p;){g=h[d];var w=a[g],S=o[g];if(u)var A=f?u(S,w,g,o,a,c):u(w,S,g,a,o,c);if(!(A===void 0?w===S||l(w,S,s,u,c):A)){x=!1;break}v||(v=g=="constructor")}if(x&&!v){var P=a.constructor,C=o.constructor;P!=C&&"constructor"in a&&"constructor"in o&&!(typeof P=="function"&&P instanceof P&&typeof C=="function"&&C instanceof C)&&(x=!1)}return c.delete(a),c.delete(o),x}return tp=i,tp}var ep,Cx;function sq(){if(Cx)return ep;Cx=1;var e=zi(),t=zr(),r=e(t,"DataView");return ep=r,ep}var rp,Mx;function uq(){if(Mx)return rp;Mx=1;var e=zi(),t=zr(),r=e(t,"Promise");return rp=r,rp}var np,kx;function dE(){if(kx)return np;kx=1;var e=zi(),t=zr(),r=e(t,"Set");return np=r,np}var ip,$x;function lq(){if($x)return ip;$x=1;var e=zi(),t=zr(),r=e(t,"WeakMap");return ip=r,ip}var ap,jx;function cq(){if(jx)return ap;jx=1;var e=sq(),t=Eg(),r=uq(),n=dE(),i=lq(),a=Cn(),o=rE(),s="[object Map]",u="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),g=o(i),_=a;return(e&&_(new e(new ArrayBuffer(1)))!=h||t&&_(new t)!=s||r&&_(r.resolve())!=l||n&&_(new n)!=c||i&&_(new i)!=f)&&(_=function(b){var x=a(b),v=x==u?b.constructor:void 0,w=v?o(v):"";if(w)switch(w){case p:return h;case y:return s;case m:return l;case d:return c;case g:return f}return x}),ap=_,ap}var op,Rx;function fq(){if(Rx)return op;Rx=1;var e=aE(),t=lE(),r=HB(),n=oq(),i=cq(),a=We(),o=cE(),s=hE(),u=1,l="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,g,_,b,x){var v=a(m),w=a(d),S=v?c:i(m),A=w?c:i(d);S=S==l?f:S,A=A==l?f:A;var P=S==f,C=A==f,T=S==A;if(T&&o(m)){if(!o(d))return!1;v=!0,P=!1}if(T&&!P)return x||(x=new e),v||s(m)?t(m,d,g,_,b,x):r(m,d,S,g,_,b,x);if(!(g&u)){var E=P&&p.call(m,"__wrapped__"),M=C&&p.call(d,"__wrapped__");if(E||M){var R=E?m.value():m,$=M?d.value():d;return x||(x=new e),b(R,$,g,_,x)}}return T?(x||(x=new e),n(m,d,g,_,b,x)):!1}return op=y,op}var sp,Dx;function Rg(){if(Dx)return sp;Dx=1;var e=fq(),t=Mn();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return sp=r,sp}var up,Ix;function hq(){if(Ix)return up;Ix=1;var e=aE(),t=Rg(),r=1,n=2;function i(a,o,s,u){var l=s.length,c=l,f=!u;if(a==null)return!c;for(a=Object(a);l--;){var h=s[l];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++l<c;){h=s[l];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(u)var g=u(y,m,p,a,o,d);if(!(g===void 0?t(m,y,r|n,u,d):g))return!1}}return!0}return up=i,up}var lp,Nx;function mE(){if(Nx)return lp;Nx=1;var e=Zn();function t(r){return r===r&&!e(r)}return lp=t,lp}var cp,Lx;function pq(){if(Lx)return cp;Lx=1;var e=mE(),t=Xs();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return cp=r,cp}var fp,Bx;function yE(){if(Bx)return fp;Bx=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return fp=e,fp}var hp,qx;function dq(){if(qx)return hp;qx=1;var e=hq(),t=pq(),r=yE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return hp=n,hp}var pp,Fx;function vE(){if(Fx)return pp;Fx=1;var e=Mg();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return pp=t,pp}var dp,zx;function mq(){if(zx)return dp;zx=1;function e(t,r){return t!=null&&r in Object(t)}return dp=e,dp}var mp,Ux;function yq(){if(Ux)return mp;Ux=1;var e=iE(),t=Og(),r=We(),n=$g(),i=jg(),a=fc();function o(s,u,l){u=e(u,s);for(var c=-1,f=u.length,h=!1;++c<f;){var p=a(u[c]);if(!(h=s!=null&&l(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return mp=o,mp}var yp,Wx;function vq(){if(Wx)return yp;Wx=1;var e=mq(),t=yq();function r(n,i){return n!=null&&t(n,i,e)}return yp=r,yp}var vp,Gx;function gq(){if(Gx)return vp;Gx=1;var e=Rg(),t=vE(),r=vq(),n=Ag(),i=mE(),a=yE(),o=fc(),s=1,u=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|u)}}return vp=l,vp}var gp,Hx;function Ja(){if(Hx)return gp;Hx=1;function e(t){return t}return gp=e,gp}var bp,Kx;function bq(){if(Kx)return bp;Kx=1;function e(t){return function(r){return r==null?void 0:r[t]}}return bp=e,bp}var _p,Yx;function _q(){if(Yx)return _p;Yx=1;var e=Mg();function t(r){return function(n){return e(n,r)}}return _p=t,_p}var xp,Xx;function xq(){if(Xx)return xp;Xx=1;var e=bq(),t=_q(),r=Ag(),n=fc();function i(a){return r(a)?e(n(a)):t(a)}return xp=i,xp}var wp,Vx;function Jn(){if(Vx)return wp;Vx=1;var e=dq(),t=gq(),r=Ja(),n=We(),i=xq();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return wp=a,wp}var Sp,Zx;function wq(){if(Zx)return Sp;Zx=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),u=s.length;u--;){var l=s[t?u:++a];if(n(o[l],l,o)===!1)break}return r}}return Sp=e,Sp}var Op,Jx;function Sq(){if(Jx)return Op;Jx=1;var e=wq(),t=e();return Op=t,Op}var Ap,Qx;function gE(){if(Qx)return Ap;Qx=1;var e=Sq(),t=Xs();function r(n,i){return n&&e(n,i,t)}return Ap=r,Ap}var Pp,t1;function Oq(){if(t1)return Pp;t1=1;var e=Ys();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,u=Object(i);(n?s--:++s<o)&&a(u[s],s,u)!==!1;);return i}}return Pp=t,Pp}var Tp,e1;function Dg(){if(e1)return Tp;e1=1;var e=gE(),t=Oq(),r=t(e);return Tp=r,Tp}var Ep,r1;function bE(){if(r1)return Ep;r1=1;var e=Dg(),t=Ys();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,u,l){o[++a]=i(s,u,l)}),o}return Ep=r,Ep}var Cp,n1;function Aq(){if(n1)return Cp;n1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Cp=e,Cp}var Mp,i1;function Pq(){if(i1)return Mp;i1=1;var e=Za();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),u=n!==void 0,l=n===null,c=n===n,f=e(n);if(!l&&!f&&!s&&r>n||s&&u&&c&&!l&&!f||a&&u&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||l&&i&&o||!u&&o||!c)return-1}return 0}return Mp=t,Mp}var kp,a1;function Tq(){if(a1)return kp;a1=1;var e=Pq();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,u=o.length,l=i.length;++a<u;){var c=e(o[a],s[a]);if(c){if(a>=l)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return kp=t,kp}var $p,o1;function Eq(){if(o1)return $p;o1=1;var e=oc(),t=Mg(),r=Jn(),n=bE(),i=Aq(),a=fE(),o=Tq(),s=Ja(),u=We();function l(c,f,h){f.length?f=e(f,function(m){return u(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,g){var _=e(f,function(b){return b(m)});return{criteria:_,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return $p=l,$p}var jp,s1;function Cq(){if(s1)return jp;s1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return jp=e,jp}var Rp,u1;function Mq(){if(u1)return Rp;u1=1;var e=Cq(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,u=t(o.length-i,0),l=Array(u);++s<u;)l[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(l),e(n,this,c)}}return Rp=r,Rp}var Dp,l1;function kq(){if(l1)return Dp;l1=1;function e(t){return function(){return t}}return Dp=e,Dp}var Ip,c1;function _E(){if(c1)return Ip;c1=1;var e=zi(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Ip=t,Ip}var Np,f1;function $q(){if(f1)return Np;f1=1;var e=kq(),t=_E(),r=Ja(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Np=n,Np}var Lp,h1;function jq(){if(h1)return Lp;h1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),u=t-(s-o);if(o=s,u>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Lp=n,Lp}var Bp,p1;function Rq(){if(p1)return Bp;p1=1;var e=$q(),t=jq(),r=t(e);return Bp=r,Bp}var qp,d1;function Dq(){if(d1)return qp;d1=1;var e=Ja(),t=Mq(),r=Rq();function n(i,a){return r(t(i,a,e),i+"")}return qp=n,qp}var Fp,m1;function Vs(){if(m1)return Fp;m1=1;var e=Tg(),t=Ys(),r=$g(),n=Zn();function i(a,o,s){if(!n(s))return!1;var u=typeof o;return(u=="number"?t(s)&&r(o,s.length):u=="string"&&o in s)?e(s[o],a):!1}return Fp=i,Fp}var zp,y1;function Iq(){if(y1)return zp;y1=1;var e=eE(),t=Eq(),r=Dq(),n=Vs(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return zp=i,zp}var Nq=Iq();const hc=zt(Nq);var Up,v1;function Lq(){if(v1)return Up;v1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Up=e,Up}var Bq=Lq();const g1=zt(Bq);var Wp,b1;function qq(){if(b1)return Wp;b1=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,u=t(e((i-n)/(a||1)),0),l=Array(u);u--;)l[o?u:++s]=n,n+=a;return l}return Wp=r,Wp}var Gp,_1;function Fq(){if(_1)return Gp;_1=1;var e=qq(),t=Vs(),r=QT();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Gp=n,Gp}var Hp,x1;function zq(){if(x1)return Hp;x1=1;var e=Fq(),t=e();return Hp=t,Hp}var Uq=zq();const ls=zt(Uq);var Kp,w1;function Wq(){if(w1)return Kp;w1=1;var e=oc(),t=Jn(),r=bE(),n=We();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Kp=i,Kp}var Yp,S1;function Gq(){if(S1)return Yp;S1=1;var e=eE(),t=Wq();function r(n,i){return e(t(n,i),1)}return Yp=r,Yp}var Hq=Gq();const xE=zt(Hq);var Xp,O1;function wE(){if(O1)return Xp;O1=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return Xp=e,Xp}var Vp,A1;function Kq(){if(A1)return Vp;A1=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Vp=e,Vp}var Zp,P1;function Yq(){if(P1)return Zp;P1=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Zp=r,Zp}var Jp,T1;function SE(){if(T1)return Jp;T1=1;var e=Yq();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),u=r[s];r[s]=r[i],r[i]=u}return r.length=n,r}return Jp=t,Jp}var Qp,E1;function Xq(){if(E1)return Qp;E1=1;var e=wE(),t=Kq(),r=SE();function n(i,a){return r(t(i),e(a,0,i.length))}return Qp=n,Qp}var td,C1;function Vq(){if(C1)return td;C1=1;var e=oc();function t(r,n){return e(n,function(i){return r[i]})}return td=t,td}var ed,M1;function Zq(){if(M1)return ed;M1=1;var e=Vq(),t=Xs();function r(n){return n==null?[]:e(n,t(n))}return ed=r,ed}var rd,k1;function Jq(){if(k1)return rd;k1=1;var e=wE(),t=SE(),r=Zq();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return rd=n,rd}var nd,$1;function Qq(){if($1)return nd;$1=1;var e=Xq(),t=Jq(),r=We(),n=Vs(),i=wg();function a(o,s,u){(u?n(o,s,u):s===void 0)?s=1:s=i(s);var l=r(o)?e:t;return l(o,s)}return nd=a,nd}var tF=Qq();const eF=zt(tF),rF=e=>fB(e,14),j1=e=>Object.values(e).reduce((t,r)=>t+r,0),nF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=j1(e),a=g1(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),g=Math.round(d*m/i);return[y,g]})),o=g1(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,g=Math.min(Math.round(d*m/i),t);return[y,g]})),s=xE(Object.entries(e).map(([y,m])=>{const d=a[y],g=o[y];return ls(d,g).map(_=>{const b=rF(m/(_+.5));return{party:y,quotient:b}})})),u=j1(a),l=t-u,c=hc(s,({quotient:y})=>-y),f=c[l-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===l)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...eF(p,l-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},al=e=>Math.round(e*1e10)/1e10,iF=e=>e.reduce((t,r)=>t+r.seats,0),aF=e=>e.flat(),oF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:al(e*Math.cos(i)),y:al(e*Math.sin(i))}},OE=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},yo=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(OE(e,t,r,n)*t/r-i)},sF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=yo(e,n,t,r),a=0;for(yo(e,n+1,t,r)<i&&(a=1),yo(e,n-1,t,r)<i&&n>1&&(a=-1);yo(e,n+a,t,r)<i&&n>0;)i=yo(e,n+a,t,r),n+=a;return n},uF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=al((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=al((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},lF=(e,t,r)=>{const n=iF(e),i=sF(n,t,r),a=OE(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=nF(o,n);const s=[];let u,l,c;for(let h=1;h<=i;h++){const p=[];u=t-(h-1)*a,l=r*u/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...oF(u,y*l,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=uF(s,f),m=s[y],d=f[y]??0,g=m==null?void 0:m[d];g&&(g.fill=h.colour,g.party=String(h.id)),f[y]=d+1}return aF(s)},cF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),fF={seatCount:!1,arcAngle:180,hFunction:Hs},hF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},fF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=lF(e,o,a),u=(((d=s[0])==null?void 0:d.r)??0)/.4||0,l=s.map(cF(i));r&&l.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(l.length)));const c=n<=180?o+u:o*(1+Math.sin((a-Math.PI)/2))+u,f=o+u,h=Math.max(c,f),p=n<=180?-o-u/2:-o*(1+Math.sin((a-Math.PI)/2))-u/2,y=i("defs",[UT(i),WT(i),GT(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-u/2,p,2*o+u,h].join(",")},[y,...l])},pF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Hs},dF=(e,t={})=>{const r={...pF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:u,spacing:l,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((z,F)=>z+F.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,g=n+i;for(let z=d;z<=g;z+=2.5){const F=z*Math.PI/180;for(let H=u;H>=s;H-=.1){const Q=H*2,N=Q*l,st=Math.floor((a-p)/N);for(let K=1;K<=Math.min(st,10);K++){let ot=0;for(let ht=0;ht<K;ht++){const at=p+(ht+.5)*N,pt=Q*l/at,Tt=Math.floor(F/pt);ot+=Tt}if(ot>=y){const ht=y/ot,at=(H-s)/(u-s),pt=(ot-y)/y,Tt=pt<.15?1:pt<.3?.7:pt<.5?.4:.1,it=1-Math.abs(z-n)/i,ft=Tt*.5+at*.3+ht*.15+it*.05;ft>m.score&&(m={seatSize:H,arcAngle:z,rings:K,score:ft})}}}}const _=m.seatSize,b=m.arcAngle,x=b*Math.PI/180,v=_*2,w=v*l,S=Math.floor((a-p)/w),A=[],P=-x/2-Math.PI/2,C=[];let T=0,E=[];for(let z=1;z<=S;z++){let F=0;const H=[];for(let Q=0;Q<z;Q++){const N=p+(Q+.5)*w,st=v*l/N,K=Math.floor(x/st);H.push(K),F+=K}if(F>=y){T=z,E=H;break}}if(T>0)C.push(...E);else for(let z=0;z<S;z++){const F=p+(z+.5)*w,H=v*l/F,Q=Math.floor(x/H);C.push(Q)}for(let z=0;z<C.length;z++){const F=p+(z+.5)*w,H=C[z]??0;if(H>0){const Q=x/H;for(let N=0;N<H;N++){const st=P+(N+.5)*Q,K=Math.cos(st)*F,ot=Math.sin(st)*F;A.push({ring:z,index:N,angle:st,x:K,y:ot})}}}A.sort((z,F)=>{const H=z.angle-F.angle;return Math.abs(H)>.001?H:z.ring-F.ring});const M=[];let R=0;e.forEach(z=>{const F=[],H=Math.min(z.seats,A.length-R);let Q=1/0,N=-1/0;for(let K=0;K<H&&R<A.length;K++){const ot=A[R++];ot&&(Q=Math.min(Q,ot.angle),N=Math.max(N,ot.angle),Math.sqrt(ot.x*ot.x+ot.y*ot.y),F.push(h("circle",{fill:z.colour,stroke:z.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ot.x}, ${ot.y})`,r:_,"data-party":z.name,"data-party-id":String(z.id),style:"pointer-events: all; cursor: pointer;"})))}const st=F;M.push(h("g",{className:"party-group","data-party":z.name,style:"opacity: 1; outline: none;"},st))});const $=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),k=h("g",{className:"points-container"},M),D=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,L=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),UT(h),WT(h),GT(h)]),j=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[$,k,D].filter(Boolean)),B=x/2;let W;if(b<=180)W=a*Math.sin(B)+_;else{const z=B-Math.PI/2;W=a*(1+Math.sin(z))+_}const G=a+_,X=a*2,Z=Math.max(W,G);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${X} ${Z}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[j,L])};function AE(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?fa.COMPLETED:e.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:e.color}function ay(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=ze.animation.hoverOpacity.active:i.style.opacity=ze.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function oy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",ze.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const mF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:u,chartConfig:l,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(w=>w.value>0).map(w=>{const S=r<=a?w.value:Math.max(1,Math.floor(w.value*y));return{id:String(w.id),name:w.label,seats:S,colour:w.color==="url(#hatchPattern)"?fa.COMPLETED:w.color}}),d=i?dF(m,{arcAngle:n,arcAngleFlexibility:l.arcAngleFlexibility,radius:l.radius,seatSize:c,minSeatSize:l.minSeatSize,maxSeatSize:l.maxSeatSize,spacing:l.spacing,innerRadiusRatio:l.innerRadiusRatio,showLabels:!0}):hF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const g=QL(d),x=new DOMParser().parseFromString(g,"image/svg+xml").documentElement;if(!x)return;x.setAttribute("width","100%"),x.setAttribute("height","100%"),x.style.width="100%",x.style.height="auto",x.style.display="block",i?yF(x,m,t,o,s,u):vF(x,m,t,o,s,u);const v=()=>{if(o(null),u(null),i)ay(x,null);else{const w=x.querySelectorAll("circle");oy(w,null)}};return x&&x.addEventListener("mouseleave",v),e.current.appendChild(x),f&&x&&rB(x,n,l.radius,h,900,p),()=>{if(x&&x.removeEventListener("mouseleave",v),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,u,e,l,c,f,h,p])};function yF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(u=>{if(u){const l=u;l.style.stroke=ze.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${ze.animation.transitionDuration} ease, stroke-opacity ${ze.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(u=>{if(!u)return;const l=u.getAttribute("data-party"),c=u.getAttribute("data-party-id"),f=()=>{if(l&&l!==i){const h=t.find(p=>p.name===l||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=AE(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),ay(e,h.name)}}}};u.addEventListener("mouseenter",f)}),i&&ay(e,i)}function vF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const u=s;u.style.cursor="pointer",u.style.stroke=ze.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${ze.animation.transitionDuration} ease, stroke-opacity ${ze.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const u=s.getAttribute("class")||"",l=parseInt(u,10),c=t[l],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=AE(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),oy(o,u)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(u=>u.name===i);if(s){const u=t.indexOf(s);oy(o,String(u))}}}const id=Io,R1={[Lo]:fa.NOT_APPLICABLE,[Bo]:fa.NO_LST,[qo]:fa.DATA_MISSING},vo=(e,t,r)=>{if(e in R1)return R1[e];const n=r-1-t,i=id.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return id[o]??id[0]??"#000000"},PE=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([Lo,Bo,qo].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:vo(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:vo(p.label,y,i.length)})),u=n,l={id:"no-lst",label:Bo,value:r,color:vo(Bo,0,1)},c={id:"data-missing",label:qo,value:u,color:vo(qo,0,1)},f={id:"n/a",label:Lo,value:t,color:vo(Lo,0,1)},h=[];return f.value>0&&h.push(f),l.value>0&&h.push(l),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},D1={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},gF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=ze.useEnhanced,showTable:s=!0,shouldAnimate:u=!1,animationDirection:l="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),g=PE({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,P=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:P}}),_=a??mg({repositoryCount:t}),b=yg({repositoryCount:t});mF({containerRef:f,processedData:g,totalRepositories:t,arcAngle:_,useEnhanced:o,maxSeats:ze.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:ze.chartConfig,seatSize:b,shouldAnimate:u,animationDirection:l,onAnimationComplete:c});const x=g.map(S=>{const A=S.value/t*100,P=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:P,color:S.color}}),v=t>ze.maxSeats,w=v?Math.round(t/ze.maxSeats):1;return U.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[U.jsxs(V.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[U.jsx(V.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),U.jsxs(V.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&U.jsxs(O.Fragment,{children:[U.jsx(V.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),U.jsxs(V.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),v&&U.jsxs(V.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[U.jsx(V.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),U.jsxs(V.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&U.jsx(V.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:U.jsxs(V.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[U.jsx("thead",{children:U.jsxs(V.TableRow,{children:[U.jsx(V.TableCell,{}),U.jsx(V.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),U.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),U.jsx(V.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),U.jsx("tbody",{children:x.map(S=>{const A=S.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:S.color;return U.jsxs(V.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?Ut.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[U.jsx(V.TableCell,{align:"center",sx:{width:20},children:U.jsx(V.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?Ut.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?Ut.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?Ut.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
47
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function wB(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=t0);const u=SB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(u||!a||!yB(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!r0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function SB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=AB(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function AB(e,t,r){const n=xE(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Ua(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Wl.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?vL:_L)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Ua(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Wl.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&d_(r,o)>d_(r,e.alternative)&&(o=e.alternative),s=o+Ua(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Wl.single:Wl.double)[i][a],attribute:!0}))+o),l+(s&&"="+s))}const OB=["<","&"];function $E(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ua(e.value,Object.assign({},n.settings.characterReferences,{subset:OB}))}function TB(e,t,r,n){return n.settings.allowDangerousHtml?e.value:$E(e,t,r,n)}function PB(e,t,r,n){return n.all(e)}const EB=jL("type",{invalid:CB,unknown:MB,handlers:{comment:QL,doctype:tB,element:wB,raw:TB,root:PB,text:$E}});function CB(e){throw new Error("Expected node, not `"+e+"`")}function MB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const kB={},$B={},jB=[];function RB(e,t){const r=kB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:DB,all:IB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||$L,characterReferences:r.characterReferences||$B,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?t0:wE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function DB(e,t,r){return EB(e,t,r,this)}function IB(e){const t=[],r=e&&e.children||jB;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const Qe={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},Wa={COMPLETED:pr.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},bs="N/A",_s="No LST",xs="Data Missing";function NB(e,t,r,n="left-to-right",i=900,a){ee.prototype.transition=lv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,l=o/2-Math.PI/2;let u=e.querySelector("defs");u||(u=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(u));const c="arc-sweep-clip";let f=u.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),u.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=x=>{const b=r*1.5,_=Math.cos(x)*b,g=Math.sin(x)*b,w=Math.cos(l)*b,S=Math.sin(l)*b,A=l-x>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(s)),ee(h).transition().duration(i).ease(x=>1-Math.pow(1-x,3)).tween("arc-sweep",()=>x=>{const b=s+(l-s)*x;h.setAttribute("d",d(b))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=x=>{const b=r*1.5,_=Math.cos(x)*b,g=Math.sin(x)*b,w=Math.cos(l)*b,S=Math.sin(l)*b,A=l-x>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${b},${b} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(l)),ee(h).transition().duration(i).ease(x=>1-Math.pow(1-x,3)).tween("arc-sweep",()=>x=>{const b=l-(l-s)*x;h.setAttribute("d",d(b))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Hl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kf,v_;function jE(){if(v_)return Kf;v_=1;var e=typeof Hl=="object"&&Hl&&Hl.Object===Object&&Hl;return Kf=e,Kf}var Xf,b_;function on(){if(b_)return Xf;b_=1;var e=jE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Xf=r,Xf}var Yf,__;function LB(){if(__)return Yf;__=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Yf=t,Yf}var Vf,x_;function BB(){if(x_)return Vf;x_=1;var e=LB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Vf=r,Vf}var Zf,w_;function wi(){if(w_)return Zf;w_=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Zf=e,Zf}var Jf,S_;function El(){if(S_)return Jf;S_=1;var e=on(),t=e.Symbol;return Jf=t,Jf}var Qf,A_;function qB(){if(A_)return Qf;A_=1;var e=El(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return Qf=a,Qf}var th,O_;function FB(){if(O_)return th;O_=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return th=r,th}var eh,T_;function Jn(){if(T_)return eh;T_=1;var e=El(),t=qB(),r=FB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return eh=o,eh}var rh,P_;function Qn(){if(P_)return rh;P_=1;function e(t){return t!=null&&typeof t=="object"}return rh=e,rh}var nh,E_;function ko(){if(E_)return nh;E_=1;var e=Jn(),t=Qn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return nh=n,nh}var ih,C_;function n0(){if(C_)return ih;C_=1;var e=BB(),t=wi(),r=ko(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return ih=l,ih}var ah,M_;function RE(){if(M_)return ah;M_=1;var e=n0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return ah=n,ah}var oh,k_;function i0(){if(k_)return oh;k_=1;var e=RE();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return oh=t,oh}var sh,$_;function Lc(){if($_)return sh;$_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return sh=e,sh}var lh,j_;function er(){if(j_)return lh;j_=1;var e=Array.isArray;return lh=e,lh}var uh,R_;function zB(){if(R_)return uh;R_=1;var e=El(),t=Lc(),r=er(),n=ko(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return uh=o,uh}var ch,D_;function a0(){if(D_)return ch;D_=1;var e=zB();function t(r){return r==null?"":e(r)}return ch=t,ch}var fh,I_;function UB(){if(I_)return fh;I_=1;var e=on(),t=i0(),r=n0(),n=a0(),i=e.isFinite,a=Math.min;function o(s){var l=Math[s];return function(u,c){if(u=r(u),c=c==null?0:a(t(c),292),c&&i(u)){var f=(n(u)+"e").split("e"),h=l(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return l(u)}}return fh=o,fh}var hh,N_;function WB(){if(N_)return hh;N_=1;var e=UB(),t=e("round");return hh=t,hh}var HB=WB();const GB=Lt(HB);var ph,L_;function DE(){if(L_)return ph;L_=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return ph=e,ph}var dh,B_;function KB(){if(B_)return dh;B_=1;var e=Jn(),t=Qn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return dh=n,dh}var mh,q_;function o0(){if(q_)return mh;q_=1;var e=KB(),t=Qn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return mh=a,mh}var yh,F_;function XB(){if(F_)return yh;F_=1;var e=El(),t=o0(),r=er(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return yh=i,yh}var gh,z_;function IE(){if(z_)return gh;z_=1;var e=DE(),t=XB();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return gh=r,gh}var vh,U_;function s0(){if(U_)return vh;U_=1;var e=er(),t=ko(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return vh=i,vh}var bh,W_;function l0(){if(W_)return bh;W_=1;var e=Jn(),t=wi(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return bh=o,bh}var _h,H_;function YB(){if(H_)return _h;H_=1;var e=on(),t=e["__core-js_shared__"];return _h=t,_h}var xh,G_;function VB(){if(G_)return xh;G_=1;var e=YB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return xh=r,xh}var wh,K_;function NE(){if(K_)return wh;K_=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return wh=r,wh}var Sh,X_;function ZB(){if(X_)return Sh;X_=1;var e=l0(),t=VB(),r=wi(),n=NE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return Sh=f,Sh}var Ah,Y_;function JB(){if(Y_)return Ah;Y_=1;function e(t,r){return t==null?void 0:t[r]}return Ah=e,Ah}var Oh,V_;function va(){if(V_)return Oh;V_=1;var e=ZB(),t=JB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Oh=r,Oh}var Th,Z_;function Bc(){if(Z_)return Th;Z_=1;var e=va(),t=e(Object,"create");return Th=t,Th}var Ph,J_;function QB(){if(J_)return Ph;J_=1;var e=Bc();function t(){this.__data__=e?e(null):{},this.size=0}return Ph=t,Ph}var Eh,Q_;function tq(){if(Q_)return Eh;Q_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Eh=e,Eh}var Ch,tx;function eq(){if(tx)return Ch;tx=1;var e=Bc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return Ch=i,Ch}var Mh,ex;function rq(){if(ex)return Mh;ex=1;var e=Bc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return Mh=n,Mh}var kh,rx;function nq(){if(rx)return kh;rx=1;var e=Bc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return kh=r,kh}var $h,nx;function iq(){if(nx)return $h;nx=1;var e=QB(),t=tq(),r=eq(),n=rq(),i=nq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,$h=a,$h}var jh,ix;function aq(){if(ix)return jh;ix=1;function e(){this.__data__=[],this.size=0}return jh=e,jh}var Rh,ax;function u0(){if(ax)return Rh;ax=1;function e(t,r){return t===r||t!==t&&r!==r}return Rh=e,Rh}var Dh,ox;function qc(){if(ox)return Dh;ox=1;var e=u0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Dh=t,Dh}var Ih,sx;function oq(){if(sx)return Ih;sx=1;var e=qc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Ih=n,Ih}var Nh,lx;function sq(){if(lx)return Nh;lx=1;var e=qc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Nh=t,Nh}var Lh,ux;function lq(){if(ux)return Lh;ux=1;var e=qc();function t(r){return e(this.__data__,r)>-1}return Lh=t,Lh}var Bh,cx;function uq(){if(cx)return Bh;cx=1;var e=qc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Bh=t,Bh}var qh,fx;function Fc(){if(fx)return qh;fx=1;var e=aq(),t=oq(),r=sq(),n=lq(),i=uq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qh=a,qh}var Fh,hx;function c0(){if(hx)return Fh;hx=1;var e=va(),t=on(),r=e(t,"Map");return Fh=r,Fh}var zh,px;function cq(){if(px)return zh;px=1;var e=iq(),t=Fc(),r=c0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return zh=n,zh}var Uh,dx;function fq(){if(dx)return Uh;dx=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Uh=e,Uh}var Wh,mx;function zc(){if(mx)return Wh;mx=1;var e=fq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Wh=t,Wh}var Hh,yx;function hq(){if(yx)return Hh;yx=1;var e=zc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Hh=t,Hh}var Gh,gx;function pq(){if(gx)return Gh;gx=1;var e=zc();function t(r){return e(this,r).get(r)}return Gh=t,Gh}var Kh,vx;function dq(){if(vx)return Kh;vx=1;var e=zc();function t(r){return e(this,r).has(r)}return Kh=t,Kh}var Xh,bx;function mq(){if(bx)return Xh;bx=1;var e=zc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Xh=t,Xh}var Yh,_x;function f0(){if(_x)return Yh;_x=1;var e=cq(),t=hq(),r=pq(),n=dq(),i=mq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Yh=a,Yh}var Vh,xx;function LE(){if(xx)return Vh;xx=1;var e=f0(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Vh=r,Vh}var Zh,wx;function yq(){if(wx)return Zh;wx=1;var e=LE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Zh=r,Zh}var Jh,Sx;function gq(){if(Sx)return Jh;Sx=1;var e=yq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return Jh=n,Jh}var Qh,Ax;function BE(){if(Ax)return Qh;Ax=1;var e=er(),t=s0(),r=gq(),n=a0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Qh=i,Qh}var tp,Ox;function Uc(){if(Ox)return tp;Ox=1;var e=ko();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return tp=t,tp}var ep,Tx;function h0(){if(Tx)return ep;Tx=1;var e=BE(),t=Uc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return ep=r,ep}var rp,Px;function vq(){if(Px)return rp;Px=1;var e=Fc();function t(){this.__data__=new e,this.size=0}return rp=t,rp}var np,Ex;function bq(){if(Ex)return np;Ex=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return np=e,np}var ip,Cx;function _q(){if(Cx)return ip;Cx=1;function e(t){return this.__data__.get(t)}return ip=e,ip}var ap,Mx;function xq(){if(Mx)return ap;Mx=1;function e(t){return this.__data__.has(t)}return ap=e,ap}var op,kx;function wq(){if(kx)return op;kx=1;var e=Fc(),t=c0(),r=f0(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return op=i,op}var sp,$x;function qE(){if($x)return sp;$x=1;var e=Fc(),t=vq(),r=bq(),n=_q(),i=xq(),a=wq();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,sp=o,sp}var lp,jx;function Sq(){if(jx)return lp;jx=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return lp=t,lp}var up,Rx;function Aq(){if(Rx)return up;Rx=1;function e(t){return this.__data__.has(t)}return up=e,up}var cp,Dx;function FE(){if(Dx)return cp;Dx=1;var e=f0(),t=Sq(),r=Aq();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,cp=n,cp}var fp,Ix;function zE(){if(Ix)return fp;Ix=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return fp=e,fp}var hp,Nx;function UE(){if(Nx)return hp;Nx=1;function e(t,r){return t.has(r)}return hp=e,hp}var pp,Lx;function WE(){if(Lx)return pp;Lx=1;var e=FE(),t=zE(),r=UE(),n=1,i=2;function a(o,s,l,u,c,f){var h=l&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var v=-1,x=!0,b=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++v<p;){var _=o[v],g=s[v];if(u)var w=h?u(g,_,v,s,o,f):u(_,g,v,o,s,f);if(w!==void 0){if(w)continue;x=!1;break}if(b){if(!t(s,function(S,A){if(!r(b,A)&&(_===S||c(_,S,l,u,f)))return b.push(A)})){x=!1;break}}else if(!(_===g||c(_,g,l,u,f))){x=!1;break}}return f.delete(o),f.delete(s),x}return pp=a,pp}var dp,Bx;function Oq(){if(Bx)return dp;Bx=1;var e=on(),t=e.Uint8Array;return dp=t,dp}var mp,qx;function Tq(){if(qx)return mp;qx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return mp=e,mp}var yp,Fx;function p0(){if(Fx)return yp;Fx=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return yp=e,yp}var gp,zx;function Pq(){if(zx)return gp;zx=1;var e=El(),t=Oq(),r=u0(),n=WE(),i=Tq(),a=p0(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",v="[object ArrayBuffer]",x="[object DataView]",b=e?e.prototype:void 0,_=b?b.valueOf:void 0;function g(w,S,A,T,M,P,E){switch(A){case x:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case v:return!(w.byteLength!=S.byteLength||!P(new t(w),new t(S)));case l:case u:case h:return r(+w,+S);case c:return w.name==S.name&&w.message==S.message;case p:case m:return w==S+"";case f:var C=i;case y:var k=T&o;if(C||(C=a),w.size!=S.size&&!k)return!1;var j=E.get(w);if(j)return j==S;T|=s,E.set(w,S);var R=n(C(w),C(S),T,M,P,E);return E.delete(w),R;case d:if(_)return _.call(w)==_.call(S)}return!1}return gp=g,gp}var vp,Ux;function Eq(){if(Ux)return vp;Ux=1;var e=DE(),t=er();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return vp=r,vp}var bp,Wx;function Cq(){if(Wx)return bp;Wx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return bp=e,bp}var _p,Hx;function Mq(){if(Hx)return _p;Hx=1;function e(){return[]}return _p=e,_p}var xp,Gx;function kq(){if(Gx)return xp;Gx=1;var e=Cq(),t=Mq(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return xp=a,xp}var wp,Kx;function $q(){if(Kx)return wp;Kx=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return wp=e,wp}var us={exports:{}},Sp,Xx;function jq(){if(Xx)return Sp;Xx=1;function e(){return!1}return Sp=e,Sp}us.exports;var Yx;function HE(){return Yx||(Yx=1,(function(e,t){var r=on(),n=jq(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(us,us.exports)),us.exports}var Ap,Vx;function d0(){if(Vx)return Ap;Vx=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Ap=r,Ap}var Op,Zx;function m0(){if(Zx)return Op;Zx=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Op=t,Op}var Tp,Jx;function Rq(){if(Jx)return Tp;Jx=1;var e=Jn(),t=m0(),r=Qn(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",v="[object DataView]",x="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[x]=P[b]=P[_]=P[g]=P[w]=P[S]=P[A]=P[T]=P[M]=!0,P[n]=P[i]=P[d]=P[a]=P[v]=P[o]=P[s]=P[l]=P[u]=P[c]=P[f]=P[h]=P[p]=P[y]=P[m]=!1;function E(C){return r(C)&&t(C.length)&&!!P[e(C)]}return Tp=E,Tp}var Pp,Qx;function GE(){if(Qx)return Pp;Qx=1;function e(t){return function(r){return t(r)}}return Pp=e,Pp}var cs={exports:{}};cs.exports;var t1;function Dq(){return t1||(t1=1,(function(e,t){var r=jE(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(cs,cs.exports)),cs.exports}var Ep,e1;function KE(){if(e1)return Ep;e1=1;var e=Rq(),t=GE(),r=Dq(),n=r&&r.isTypedArray,i=n?t(n):e;return Ep=i,Ep}var Cp,r1;function Iq(){if(r1)return Cp;r1=1;var e=$q(),t=o0(),r=er(),n=HE(),i=d0(),a=KE(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),h=!f&&t(u),p=!f&&!h&&n(u),y=!f&&!h&&!p&&a(u),m=f||h||p||y,d=m?e(u.length,String):[],v=d.length;for(var x in u)(c||s.call(u,x))&&!(m&&(x=="length"||p&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,v)))&&d.push(x);return d}return Cp=l,Cp}var Mp,n1;function Nq(){if(n1)return Mp;n1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return Mp=t,Mp}var kp,i1;function XE(){if(i1)return kp;i1=1;function e(t,r){return function(n){return t(r(n))}}return kp=e,kp}var $p,a1;function Lq(){if(a1)return $p;a1=1;var e=XE(),t=e(Object.keys,Object);return $p=t,$p}var jp,o1;function Bq(){if(o1)return jp;o1=1;var e=Nq(),t=Lq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return jp=i,jp}var Rp,s1;function Cl(){if(s1)return Rp;s1=1;var e=l0(),t=m0();function r(n){return n!=null&&t(n.length)&&!e(n)}return Rp=r,Rp}var Dp,l1;function Ml(){if(l1)return Dp;l1=1;var e=Iq(),t=Bq(),r=Cl();function n(i){return r(i)?e(i):t(i)}return Dp=n,Dp}var Ip,u1;function qq(){if(u1)return Ip;u1=1;var e=Eq(),t=kq(),r=Ml();function n(i){return e(i,r,t)}return Ip=n,Ip}var Np,c1;function Fq(){if(c1)return Np;c1=1;var e=qq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var v=h[d];if(!(f?v in o:n.call(o,v)))return!1}var x=c.get(a),b=c.get(o);if(x&&b)return x==o&&b==a;var _=!0;c.set(a,o),c.set(o,a);for(var g=f;++d<p;){v=h[d];var w=a[v],S=o[v];if(l)var A=f?l(S,w,v,o,a,c):l(w,S,v,a,o,c);if(!(A===void 0?w===S||u(w,S,s,l,c):A)){_=!1;break}g||(g=v=="constructor")}if(_&&!g){var T=a.constructor,M=o.constructor;T!=M&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof M=="function"&&M instanceof M)&&(_=!1)}return c.delete(a),c.delete(o),_}return Np=i,Np}var Lp,f1;function zq(){if(f1)return Lp;f1=1;var e=va(),t=on(),r=e(t,"DataView");return Lp=r,Lp}var Bp,h1;function Uq(){if(h1)return Bp;h1=1;var e=va(),t=on(),r=e(t,"Promise");return Bp=r,Bp}var qp,p1;function YE(){if(p1)return qp;p1=1;var e=va(),t=on(),r=e(t,"Set");return qp=r,qp}var Fp,d1;function Wq(){if(d1)return Fp;d1=1;var e=va(),t=on(),r=e(t,"WeakMap");return Fp=r,Fp}var zp,m1;function Hq(){if(m1)return zp;m1=1;var e=zq(),t=c0(),r=Uq(),n=YE(),i=Wq(),a=Jn(),o=NE(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),v=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=h||t&&x(new t)!=s||r&&x(r.resolve())!=u||n&&x(new n)!=c||i&&x(new i)!=f)&&(x=function(b){var _=a(b),g=_==l?b.constructor:void 0,w=g?o(g):"";if(w)switch(w){case p:return h;case y:return s;case m:return u;case d:return c;case v:return f}return _}),zp=x,zp}var Up,y1;function Gq(){if(y1)return Up;y1=1;var e=qE(),t=WE(),r=Pq(),n=Fq(),i=Hq(),a=er(),o=HE(),s=KE(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,v,x,b,_){var g=a(m),w=a(d),S=g?c:i(m),A=w?c:i(d);S=S==u?f:S,A=A==u?f:A;var T=S==f,M=A==f,P=S==A;if(P&&o(m)){if(!o(d))return!1;g=!0,T=!1}if(P&&!T)return _||(_=new e),g||s(m)?t(m,d,v,x,b,_):r(m,d,S,v,x,b,_);if(!(v&l)){var E=T&&p.call(m,"__wrapped__"),C=M&&p.call(d,"__wrapped__");if(E||C){var k=E?m.value():m,j=C?d.value():d;return _||(_=new e),b(k,j,v,x,_)}}return P?(_||(_=new e),n(m,d,v,x,b,_)):!1}return Up=y,Up}var Wp,g1;function y0(){if(g1)return Wp;g1=1;var e=Gq(),t=Qn();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Wp=r,Wp}var Hp,v1;function Kq(){if(v1)return Hp;v1=1;var e=qE(),t=y0(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var h=s[u];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++u<c;){h=s[u];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(l)var v=l(y,m,p,a,o,d);if(!(v===void 0?t(m,y,r|n,l,d):v))return!1}}return!0}return Hp=i,Hp}var Gp,b1;function VE(){if(b1)return Gp;b1=1;var e=wi();function t(r){return r===r&&!e(r)}return Gp=t,Gp}var Kp,_1;function Xq(){if(_1)return Kp;_1=1;var e=VE(),t=Ml();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return Kp=r,Kp}var Xp,x1;function ZE(){if(x1)return Xp;x1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Xp=e,Xp}var Yp,w1;function Yq(){if(w1)return Yp;w1=1;var e=Kq(),t=Xq(),r=ZE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Yp=n,Yp}var Vp,S1;function JE(){if(S1)return Vp;S1=1;var e=h0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Vp=t,Vp}var Zp,A1;function Vq(){if(A1)return Zp;A1=1;function e(t,r){return t!=null&&r in Object(t)}return Zp=e,Zp}var Jp,O1;function Zq(){if(O1)return Jp;O1=1;var e=BE(),t=o0(),r=er(),n=d0(),i=m0(),a=Uc();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,h=!1;++c<f;){var p=a(l[c]);if(!(h=s!=null&&u(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return Jp=o,Jp}var Qp,T1;function Jq(){if(T1)return Qp;T1=1;var e=Vq(),t=Zq();function r(n,i){return n!=null&&t(n,i,e)}return Qp=r,Qp}var td,P1;function Qq(){if(P1)return td;P1=1;var e=y0(),t=JE(),r=Jq(),n=s0(),i=VE(),a=ZE(),o=Uc(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|l)}}return td=u,td}var ed,E1;function $o(){if(E1)return ed;E1=1;function e(t){return t}return ed=e,ed}var rd,C1;function tF(){if(C1)return rd;C1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return rd=e,rd}var nd,M1;function eF(){if(M1)return nd;M1=1;var e=h0();function t(r){return function(n){return e(n,r)}}return nd=t,nd}var id,k1;function rF(){if(k1)return id;k1=1;var e=tF(),t=eF(),r=s0(),n=Uc();function i(a){return r(a)?e(n(a)):t(a)}return id=i,id}var ad,$1;function Si(){if($1)return ad;$1=1;var e=Yq(),t=Qq(),r=$o(),n=er(),i=rF();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return ad=a,ad}var od,j1;function nF(){if(j1)return od;j1=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return od=e,od}var sd,R1;function iF(){if(R1)return sd;R1=1;var e=nF(),t=e();return sd=t,sd}var ld,D1;function QE(){if(D1)return ld;D1=1;var e=iF(),t=Ml();function r(n,i){return n&&e(n,i,t)}return ld=r,ld}var ud,I1;function aF(){if(I1)return ud;I1=1;var e=Cl();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return ud=t,ud}var cd,N1;function g0(){if(N1)return cd;N1=1;var e=QE(),t=aF(),r=t(e);return cd=r,cd}var fd,L1;function tC(){if(L1)return fd;L1=1;var e=g0(),t=Cl();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return fd=r,fd}var hd,B1;function oF(){if(B1)return hd;B1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return hd=e,hd}var pd,q1;function sF(){if(q1)return pd;q1=1;var e=ko();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return pd=t,pd}var dd,F1;function lF(){if(F1)return dd;F1=1;var e=sF();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return dd=t,dd}var md,z1;function uF(){if(z1)return md;z1=1;var e=Lc(),t=h0(),r=Si(),n=tC(),i=oF(),a=GE(),o=lF(),s=$o(),l=er();function u(c,f,h){f.length?f=e(f,function(m){return l(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,v){var x=e(f,function(b){return b(m)});return{criteria:x,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return md=u,md}var yd,U1;function cF(){if(U1)return yd;U1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return yd=e,yd}var gd,W1;function fF(){if(W1)return gd;W1=1;var e=cF(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return gd=r,gd}var vd,H1;function hF(){if(H1)return vd;H1=1;function e(t){return function(){return t}}return vd=e,vd}var bd,G1;function eC(){if(G1)return bd;G1=1;var e=va(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return bd=t,bd}var _d,K1;function pF(){if(K1)return _d;K1=1;var e=hF(),t=eC(),r=$o(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return _d=n,_d}var xd,X1;function dF(){if(X1)return xd;X1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return xd=n,xd}var wd,Y1;function mF(){if(Y1)return wd;Y1=1;var e=pF(),t=dF(),r=t(e);return wd=r,wd}var Sd,V1;function yF(){if(V1)return Sd;V1=1;var e=$o(),t=fF(),r=mF();function n(i,a){return r(t(i,a,e),i+"")}return Sd=n,Sd}var Ad,Z1;function kl(){if(Z1)return Ad;Z1=1;var e=u0(),t=Cl(),r=d0(),n=wi();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Ad=i,Ad}var Od,J1;function gF(){if(J1)return Od;J1=1;var e=IE(),t=uF(),r=yF(),n=kl(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Od=i,Od}var vF=gF();const Wc=Lt(vF);var Td,Q1;function bF(){if(Q1)return Td;Q1=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Td=e,Td}var _F=bF();const tw=Lt(_F);var Pd,ew;function xF(){if(ew)return Pd;ew=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return Pd=r,Pd}var Ed,rw;function wF(){if(rw)return Ed;rw=1;var e=xF(),t=kl(),r=RE();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return Ed=n,Ed}var Cd,nw;function SF(){if(nw)return Cd;nw=1;var e=wF(),t=e();return Cd=t,Cd}var AF=SF();const Ws=Lt(AF);var Md,iw;function OF(){if(iw)return Md;iw=1;var e=Lc(),t=Si(),r=tC(),n=er();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return Md=i,Md}var kd,aw;function TF(){if(aw)return kd;aw=1;var e=IE(),t=OF();function r(n,i){return e(t(n,i),1)}return kd=r,kd}var PF=TF();const rC=Lt(PF);var $d,ow;function nC(){if(ow)return $d;ow=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return $d=e,$d}var jd,sw;function EF(){if(sw)return jd;sw=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return jd=e,jd}var Rd,lw;function CF(){if(lw)return Rd;lw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Rd=r,Rd}var Dd,uw;function iC(){if(uw)return Dd;uw=1;var e=CF();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),l=r[s];r[s]=r[i],r[i]=l}return r.length=n,r}return Dd=t,Dd}var Id,cw;function MF(){if(cw)return Id;cw=1;var e=nC(),t=EF(),r=iC();function n(i,a){return r(t(i),e(a,0,i.length))}return Id=n,Id}var Nd,fw;function kF(){if(fw)return Nd;fw=1;var e=Lc();function t(r,n){return e(n,function(i){return r[i]})}return Nd=t,Nd}var Ld,hw;function $F(){if(hw)return Ld;hw=1;var e=kF(),t=Ml();function r(n){return n==null?[]:e(n,t(n))}return Ld=r,Ld}var Bd,pw;function jF(){if(pw)return Bd;pw=1;var e=nC(),t=iC(),r=$F();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return Bd=n,Bd}var qd,dw;function RF(){if(dw)return qd;dw=1;var e=MF(),t=jF(),r=er(),n=kl(),i=i0();function a(o,s,l){(l?n(o,s,l):s===void 0)?s=1:s=i(s);var u=r(o)?e:t;return u(o,s)}return qd=a,qd}var DF=RF();const IF=Lt(DF),NF=e=>GB(e,14),mw=e=>Object.values(e).reduce((t,r)=>t+r,0),LF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=mw(e),a=tw(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),v=Math.round(d*m/i);return[y,v]})),o=tw(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,v=Math.min(Math.round(d*m/i),t);return[y,v]})),s=rC(Object.entries(e).map(([y,m])=>{const d=a[y],v=o[y];return Ws(d,v).map(x=>{const b=NF(m/(x+.5));return{party:y,quotient:b}})})),l=mw(a),u=t-l,c=Wc(s,({quotient:y})=>-y),f=c[u-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===u)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...IF(p,u-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},Lu=e=>Math.round(e*1e10)/1e10,BF=e=>e.reduce((t,r)=>t+r.seats,0),qF=e=>e.flat(),FF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:Lu(e*Math.cos(i)),y:Lu(e*Math.sin(i))}},aC=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},Vo=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(aC(e,t,r,n)*t/r-i)},zF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=Vo(e,n,t,r),a=0;for(Vo(e,n+1,t,r)<i&&(a=1),Vo(e,n-1,t,r)<i&&n>1&&(a=-1);Vo(e,n+a,t,r)<i&&n>0;)i=Vo(e,n+a,t,r),n+=a;return n},UF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=Lu((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=Lu((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},WF=(e,t,r)=>{const n=BF(e),i=zF(n,t,r),a=aC(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=LF(o,n);const s=[];let l,u,c;for(let h=1;h<=i;h++){const p=[];l=t-(h-1)*a,u=r*l/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...FF(l,y*u,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=UF(s,f),m=s[y],d=f[y]??0,v=m==null?void 0:m[d];v&&(v.fill=h.colour,v.party=String(h.id)),f[y]=d+1}return qF(s)},HF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),GF={seatCount:!1,arcAngle:180,hFunction:Pl},KF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},GF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=WF(e,o,a),l=(((d=s[0])==null?void 0:d.r)??0)/.4||0,u=s.map(HF(i));r&&u.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const c=n<=180?o+l:o*(1+Math.sin((a-Math.PI)/2))+l,f=o+l,h=Math.max(c,f),p=n<=180?-o-l/2:-o*(1+Math.sin((a-Math.PI)/2))-l/2,y=i("defs",[AE(i),OE(i),TE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-l/2,p,2*o+l,h].join(",")},[y,...u])},XF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:Pl},YF=(e,t={})=>{const r={...XF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:l,spacing:u,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((H,F)=>H+F.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,v=n+i;for(let H=d;H<=v;H+=2.5){const F=H*Math.PI/180;for(let X=l;X>=s;X-=.1){const Y=X*2,$=Y*u,rt=Math.floor((a-p)/$);for(let U=1;U<=Math.min(rt,10);U++){let ct=0;for(let mt=0;mt<U;mt++){const ot=p+(mt+.5)*$,ut=Y*u/ot,St=Math.floor(F/ut);ct+=St}if(ct>=y){const mt=y/ct,ot=(X-s)/(l-s),ut=(ct-y)/y,St=ut<.15?1:ut<.3?.7:ut<.5?.4:.1,at=1-Math.abs(H-n)/i,dt=St*.5+ot*.3+mt*.15+at*.05;dt>m.score&&(m={seatSize:X,arcAngle:H,rings:U,score:dt})}}}}const x=m.seatSize,b=m.arcAngle,_=b*Math.PI/180,g=x*2,w=g*u,S=Math.floor((a-p)/w),A=[],T=-_/2-Math.PI/2,M=[];let P=0,E=[];for(let H=1;H<=S;H++){let F=0;const X=[];for(let Y=0;Y<H;Y++){const $=p+(Y+.5)*w,rt=g*u/$,U=Math.floor(_/rt);X.push(U),F+=U}if(F>=y){P=H,E=X;break}}if(P>0)M.push(...E);else for(let H=0;H<S;H++){const F=p+(H+.5)*w,X=g*u/F,Y=Math.floor(_/X);M.push(Y)}for(let H=0;H<M.length;H++){const F=p+(H+.5)*w,X=M[H]??0;if(X>0){const Y=_/X;for(let $=0;$<X;$++){const rt=T+($+.5)*Y,U=Math.cos(rt)*F,ct=Math.sin(rt)*F;A.push({ring:H,index:$,angle:rt,x:U,y:ct})}}}A.sort((H,F)=>{const X=H.angle-F.angle;return Math.abs(X)>.001?X:H.ring-F.ring});const C=[];let k=0;e.forEach(H=>{const F=[],X=Math.min(H.seats,A.length-k);let Y=1/0,$=-1/0;for(let U=0;U<X&&k<A.length;U++){const ct=A[k++];ct&&(Y=Math.min(Y,ct.angle),$=Math.max($,ct.angle),Math.sqrt(ct.x*ct.x+ct.y*ct.y),F.push(h("circle",{fill:H.colour,stroke:H.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${ct.x}, ${ct.y})`,r:x,"data-party":H.name,"data-party-id":String(H.id),style:"pointer-events: all; cursor: pointer;"})))}const rt=F;C.push(h("g",{className:"party-group","data-party":H.name,style:"opacity: 1; outline: none;"},rt))});const j=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),R=h("g",{className:"points-container"},C),L=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,z=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),AE(h),OE(h),TE(h)]),D=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[j,R,L].filter(Boolean)),N=_/2;let q;if(b<=180)q=a*Math.sin(N)+x;else{const H=N-Math.PI/2;q=a*(1+Math.sin(H))+x}const K=a+x,B=a*2,V=Math.max(q,K);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${B} ${V}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[D,z])};function oC(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Wa.COMPLETED:e.color==="url(#greyHatchPattern)"?Bt.greyHatch.lines:e.color}function Fy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=Qe.animation.hoverOpacity.active:i.style.opacity=Qe.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function zy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",Qe.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const VF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:l,chartConfig:u,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(w=>w.value>0).map(w=>{const S=r<=a?w.value:Math.max(1,Math.floor(w.value*y));return{id:String(w.id),name:w.label,seats:S,colour:w.color==="url(#hatchPattern)"?Wa.COMPLETED:w.color}}),d=i?YF(m,{arcAngle:n,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:c,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):KF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const v=RB(d),_=new DOMParser().parseFromString(v,"image/svg+xml").documentElement;if(!_)return;_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.style.width="100%",_.style.height="auto",_.style.display="block",i?ZF(_,m,t,o,s,l):JF(_,m,t,o,s,l);const g=()=>{if(o(null),l(null),i)Fy(_,null);else{const w=_.querySelectorAll("circle");zy(w,null)}};return _&&_.addEventListener("mouseleave",g),e.current.appendChild(_),f&&_&&NB(_,n,u.radius,h,900,p),()=>{if(_&&_.removeEventListener("mouseleave",g),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,l,e,u,c,f,h,p])};function ZF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(l=>{if(l){const u=l;u.style.stroke=Qe.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${Qe.animation.transitionDuration} ease, stroke-opacity ${Qe.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(l=>{if(!l)return;const u=l.getAttribute("data-party"),c=l.getAttribute("data-party-id"),f=()=>{if(u&&u!==i){const h=t.find(p=>p.name===u||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),Fy(e,h.name)}}}};l.addEventListener("mouseenter",f)}),i&&Fy(e,i)}function JF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const l=s;l.style.cursor="pointer",l.style.stroke=Qe.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${Qe.animation.transitionDuration} ease, stroke-opacity ${Qe.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const l=s.getAttribute("class")||"",u=parseInt(l,10),c=t[u],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=oC(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),zy(o,l)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(l=>l.name===i);if(s){const l=t.indexOf(s);zy(o,String(l))}}}const Fd=ys,yw={[bs]:Wa.NOT_APPLICABLE,[_s]:Wa.NO_LST,[xs]:Wa.DATA_MISSING},Zo=(e,t,r)=>{if(e in yw)return yw[e];const n=r-1-t,i=Fd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return Fd[o]??Fd[0]??"#000000"},sC=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([bs,_s,xs].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:Zo(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:Zo(p.label,y,i.length)})),l=n,u={id:"no-lst",label:_s,value:r,color:Zo(_s,0,1)},c={id:"data-missing",label:xs,value:l,color:Zo(xs,0,1)},f={id:"n/a",label:bs,value:t,color:Zo(bs,0,1)},h=[];return f.value>0&&h.push(f),u.value>0&&h.push(u),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},gw={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},QF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=Qe.useEnhanced,showTable:s=!0,shouldAnimate:l=!1,animationDirection:u="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),v=sC({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,T=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:T}}),x=a??Zv({repositoryCount:t}),b=Jv({repositoryCount:t});VF({containerRef:f,processedData:v,totalRepositories:t,arcAngle:x,useEnhanced:o,maxSeats:Qe.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:Qe.chartConfig,seatSize:b,shouldAnimate:l,animationDirection:u,onAnimationComplete:c});const _=v.map(S=>{const A=S.value/t*100,T=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:T,color:S.color}}),g=t>Qe.maxSeats,w=g?Math.round(t/Qe.maxSeats):1;return G.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[G.jsxs(Q.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[G.jsx(Q.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),G.jsxs(Q.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&G.jsxs(O.Fragment,{children:[G.jsx(Q.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),G.jsxs(Q.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),g&&G.jsxs(Q.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[G.jsx(Q.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),G.jsxs(Q.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&G.jsx(Q.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:G.jsxs(Q.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[G.jsx("thead",{children:G.jsxs(Q.TableRow,{children:[G.jsx(Q.TableCell,{}),G.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),G.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),G.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),G.jsx("tbody",{children:_.map(S=>{const A=S.color==="url(#greyHatchPattern)"?Bt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Bt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Bt.noLstHatch.lines:S.color;return G.jsxs(Q.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?Bt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Bt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Bt.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[G.jsx(Q.TableCell,{align:"center",sx:{width:20},children:G.jsx(Q.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?Bt.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?Bt.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?Bt.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
48
48
  0deg,
49
49
  transparent,
50
50
  transparent 3px,
51
- ${Ut.greyHatch.lines} 3px,
52
- ${Ut.greyHatch.lines} 4px
51
+ ${Bt.greyHatch.lines} 3px,
52
+ ${Bt.greyHatch.lines} 4px
53
53
  )`,borderRadius:"50%"}},...S.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
54
54
  45deg,
55
55
  transparent,
56
56
  transparent 3px,
57
- ${Ut.dataMissingHatch.lines} 3px,
58
- ${Ut.dataMissingHatch.lines} 4px
57
+ ${Bt.dataMissingHatch.lines} 3px,
58
+ ${Bt.dataMissingHatch.lines} 4px
59
59
  )`,borderRadius:"50%"}},...S.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
60
60
  -45deg,
61
61
  transparent,
62
62
  transparent 3px,
63
- ${Ut.noLstHatch.lines} 3px,
64
- ${Ut.noLstHatch.lines} 4px
65
- )`,borderRadius:"50%"}}}})}),U.jsx(V.TableCell,{children:U.jsxs(V.Stack,{direction:"row",alignItems:"center",gap:.5,children:[U.jsx("span",{children:S.label}),D1[S.label]&&U.jsx(V.Tooltip,{title:D1[S.label],placement:"right",arrow:!0,children:U.jsx(uA.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),U.jsx(V.TableCell,{align:"right",children:S.value}),U.jsxs(V.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function TE(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=TE(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function At(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=TE(e))&&(n&&(n+=" "),n+=t);return n}var bF=vE();const Er=zt(bF);var ad,I1;function _F(){if(I1)return ad;I1=1;function e(t){return t==null}return ad=e,ad}var xF=_F();const yt=zt(xF);var od,N1;function wF(){if(N1)return od;N1=1;var e=Cn(),t=We(),r=Mn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return od=i,od}var SF=wF();const $i=zt(SF);var OF=Pg();const bt=zt(OF);var AF=Zn();const Qa=zt(AF);var pu={exports:{}},It={};/**
63
+ ${Bt.noLstHatch.lines} 3px,
64
+ ${Bt.noLstHatch.lines} 4px
65
+ )`,borderRadius:"50%"}}}})}),G.jsx(Q.TableCell,{children:G.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[G.jsx("span",{children:S.label}),gw[S.label]&&G.jsx(Q.Tooltip,{title:gw[S.label],placement:"right",arrow:!0,children:G.jsx(WO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),G.jsx(Q.TableCell,{align:"right",children:S.value}),G.jsxs(Q.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function lC(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=lC(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Ot(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=lC(e))&&(n&&(n+=" "),n+=t);return n}var t5=JE();const zr=Lt(t5);var zd,vw;function e5(){if(vw)return zd;vw=1;function e(t){return t==null}return zd=e,zd}var r5=e5();const gt=Lt(r5);var Ud,bw;function n5(){if(bw)return Ud;bw=1;var e=Jn(),t=er(),r=Qn(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Ud=i,Ud}var i5=n5();const la=Lt(i5);var a5=l0();const bt=Lt(a5);var o5=wi();const jo=Lt(o5);var Gl={exports:{}},kt={};/**
66
66
  * @license React
67
67
  * react-is.production.min.js
68
68
  *
@@ -70,7 +70,7 @@
70
70
  *
71
71
  * This source code is licensed under the MIT license found in the
72
72
  * LICENSE file in the root directory of this source tree.
73
- */var L1;function PF(){if(L1)return It;L1=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var g=d.$$typeof;switch(g){case e:switch(d=d.type,d){case r:case i:case n:case l:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case u:case h:case f:case a:return d;default:return g}}case t:return g}}}return It.ContextConsumer=o,It.ContextProvider=a,It.Element=e,It.ForwardRef=u,It.Fragment=r,It.Lazy=h,It.Memo=f,It.Portal=t,It.Profiler=i,It.StrictMode=n,It.Suspense=l,It.SuspenseList=c,It.isAsyncMode=function(){return!1},It.isConcurrentMode=function(){return!1},It.isContextConsumer=function(d){return m(d)===o},It.isContextProvider=function(d){return m(d)===a},It.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},It.isForwardRef=function(d){return m(d)===u},It.isFragment=function(d){return m(d)===r},It.isLazy=function(d){return m(d)===h},It.isMemo=function(d){return m(d)===f},It.isPortal=function(d){return m(d)===t},It.isProfiler=function(d){return m(d)===i},It.isStrictMode=function(d){return m(d)===n},It.isSuspense=function(d){return m(d)===l},It.isSuspenseList=function(d){return m(d)===c},It.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===l||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===u||d.$$typeof===y||d.getModuleId!==void 0)},It.typeOf=m,It}var Nt={};/**
73
+ */var _w;function s5(){if(_w)return kt;_w=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var v=d.$$typeof;switch(v){case e:switch(d=d.type,d){case r:case i:case n:case u:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case l:case h:case f:case a:return d;default:return v}}case t:return v}}}return kt.ContextConsumer=o,kt.ContextProvider=a,kt.Element=e,kt.ForwardRef=l,kt.Fragment=r,kt.Lazy=h,kt.Memo=f,kt.Portal=t,kt.Profiler=i,kt.StrictMode=n,kt.Suspense=u,kt.SuspenseList=c,kt.isAsyncMode=function(){return!1},kt.isConcurrentMode=function(){return!1},kt.isContextConsumer=function(d){return m(d)===o},kt.isContextProvider=function(d){return m(d)===a},kt.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},kt.isForwardRef=function(d){return m(d)===l},kt.isFragment=function(d){return m(d)===r},kt.isLazy=function(d){return m(d)===h},kt.isMemo=function(d){return m(d)===f},kt.isPortal=function(d){return m(d)===t},kt.isProfiler=function(d){return m(d)===i},kt.isStrictMode=function(d){return m(d)===n},kt.isSuspense=function(d){return m(d)===u},kt.isSuspenseList=function(d){return m(d)===c},kt.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===u||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},kt.typeOf=m,kt}var $t={};/**
74
74
  * @license React
75
75
  * react-is.development.js
76
76
  *
@@ -78,83 +78,83 @@
78
78
  *
79
79
  * This source code is licensed under the MIT license found in the
80
80
  * LICENSE file in the root directory of this source tree.
81
- */var B1;function TF(){return B1||(B1=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,g=!1,_=!1,b;b=Symbol.for("react.module.reference");function x(K){return!!(typeof K=="string"||typeof K=="function"||K===r||K===i||_||K===n||K===l||K===c||g||K===p||y||m||d||typeof K=="object"&&K!==null&&(K.$$typeof===h||K.$$typeof===f||K.$$typeof===a||K.$$typeof===o||K.$$typeof===u||K.$$typeof===b||K.getModuleId!==void 0))}function v(K){if(typeof K=="object"&&K!==null){var ot=K.$$typeof;switch(ot){case e:var ht=K.type;switch(ht){case r:case i:case n:case l:case c:return ht;default:var at=ht&&ht.$$typeof;switch(at){case s:case o:case u:case h:case f:case a:return at;default:return ot}}case t:return ot}}}var w=o,S=a,A=e,P=u,C=r,T=h,E=f,M=t,R=i,$=n,k=l,D=c,L=!1,q=!1;function I(K){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(K){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(K){return v(K)===o}function W(K){return v(K)===a}function G(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function X(K){return v(K)===u}function Z(K){return v(K)===r}function J(K){return v(K)===h}function z(K){return v(K)===f}function F(K){return v(K)===t}function H(K){return v(K)===i}function Q(K){return v(K)===n}function N(K){return v(K)===l}function st(K){return v(K)===c}Nt.ContextConsumer=w,Nt.ContextProvider=S,Nt.Element=A,Nt.ForwardRef=P,Nt.Fragment=C,Nt.Lazy=T,Nt.Memo=E,Nt.Portal=M,Nt.Profiler=R,Nt.StrictMode=$,Nt.Suspense=k,Nt.SuspenseList=D,Nt.isAsyncMode=I,Nt.isConcurrentMode=j,Nt.isContextConsumer=B,Nt.isContextProvider=W,Nt.isElement=G,Nt.isForwardRef=X,Nt.isFragment=Z,Nt.isLazy=J,Nt.isMemo=z,Nt.isPortal=F,Nt.isProfiler=H,Nt.isStrictMode=Q,Nt.isSuspense=N,Nt.isSuspenseList=st,Nt.isValidElementType=x,Nt.typeOf=v})()),Nt}var q1;function EF(){return q1||(q1=1,process.env.NODE_ENV==="production"?pu.exports=PF():pu.exports=TF()),pu.exports}var CF=EF(),sd,F1;function EE(){if(F1)return sd;F1=1;var e=Cn(),t=Mn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return sd=n,sd}var ud,z1;function MF(){if(z1)return ud;z1=1;var e=EE();function t(r){return e(r)&&r!=+r}return ud=t,ud}var kF=MF();const to=zt(kF);var $F=EE();const jF=zt($F);var Lr=function(t){return t===0?0:t>0?1:-1},vi=function(t){return $i(t)&&t.indexOf("%")===t.length-1},nt=function(t){return jF(t)&&!to(t)},RF=function(t){return yt(t)},be=function(t){return nt(t)||$i(t)},DF=0,Ui=function(t){var r=++DF;return"".concat(t||"").concat(r)},ji=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!nt(t)&&!$i(t))return n;var a;if(vi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return to(a)&&(a=n),i&&a>r&&(a=r),a},In=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},IF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},le=function(t,r){return nt(t)&&nt(r)?function(n){return t+n*(r-t)}:function(){return r}};function ol(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Er(n,t))===r})}var NF=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,u=-1/0,l=0,c=0,f=0;f<r;f++)l=t[f].cx||0,c=t[f].cy||0,n+=l,i+=c,a+=l*c,o+=l*l,s=Math.min(s,l),u=Math.max(u,l);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:u,a:h,b:(i-h*n)/r}},LF=function(t,r){return nt(t)&&nt(r)?t-r:$i(t)&&$i(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function ha(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function sy(e){"@babel/helpers - typeof";return sy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sy(e)}var BF=["viewBox","children"],qF=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],U1=["points","pathLength"],ld={svg:BF,polygon:U1,polyline:U1},Ig=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],sl=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!Qa(n))return null;var i={};return Object.keys(n).forEach(function(a){Ig.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},FF=function(t,r,n){return function(i){return t(r,n,i),null}},cs=function(t,r,n){if(!Qa(t)||sy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Ig.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=FF(o,r,n))}),i},zF=["children"],UF=["children"];function W1(e,t){if(e==null)return{};var r=WF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function uy(e){"@babel/helpers - typeof";return uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uy(e)}var G1={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},bn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},H1=null,cd=null,Ng=function e(t){if(t===H1&&Array.isArray(cd))return cd;var r=[];return O.Children.forEach(t,function(n){yt(n)||(CF.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),cd=r,H1=t,r};function tr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return bn(i)}):n=[bn(t)],Ng(e).forEach(function(i){var a=Er(i,"type.displayName")||Er(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function ur(e,t){var r=tr(e,t);return r&&r[0]}var K1=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!nt(n)||n<=0||!nt(i)||i<=0)},GF=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],HF=function(t){return t&&t.type&&$i(t.type)&&GF.indexOf(t.type)>=0},CE=function(t){return t&&uy(t)==="object"&&"clipDot"in t},KF=function(t,r,n,i){var a,o=(a=ld==null?void 0:ld[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!bt(t)&&(i&&o.includes(r)||qF.includes(r))||n&&Ig.includes(r)},gt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Qa(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;KF((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},ly=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Y1(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Y1(a,o))return!1}return!0},Y1=function(t,r){if(yt(t)&&yt(r))return!0;if(!yt(t)&&!yt(r)){var n=t.props||{},i=n.children,a=W1(n,zF),o=r.props||{},s=o.children,u=W1(o,UF);return i&&s?ha(a,u)&&ly(i,s):!i&&!s?ha(a,u):!1}return!1},X1=function(t,r){var n=[],i={};return Ng(t).forEach(function(a,o){if(HF(a))n.push(a);else if(a){var s=bn(a.type),u=r[s]||{},l=u.handler,c=u.once;if(l&&(!c||!i[s])){var f=l(a,s,o);n.push(f),i[s]=!0}}}),n},YF=function(t){var r=t&&t.type;return r&&G1[r]?G1[r]:null},XF=function(t,r){return Ng(r).indexOf(t)},VF=["children","width","height","viewBox","className","style","title","desc"];function cy(){return cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cy.apply(this,arguments)}function ZF(e,t){if(e==null)return{};var r=JF(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JF(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,u=e.desc,l=ZF(e,VF),c=i||{width:r,height:n,x:0,y:0},f=At("recharts-surface",a);return O.createElement("svg",cy({},gt(l,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,u),t)}var QF=["children","className"];function hy(){return hy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hy.apply(this,arguments)}function tz(e,t){if(e==null)return{};var r=ez(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ez(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Rt=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=tz(e,QF),a=At("recharts-layer",n);return O.createElement("g",hy({className:a},gt(i,!0),{ref:t}),r)}),rz=process.env.NODE_ENV!=="production",_n=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(rz&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},fd,V1;function nz(){if(V1)return fd;V1=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return fd=e,fd}var hd,Z1;function iz(){if(Z1)return hd;Z1=1;var e=nz();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return hd=t,hd}var pd,J1;function ME(){if(J1)return pd;J1=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function u(l){return s.test(l)}return pd=u,pd}var dd,Q1;function az(){if(Q1)return dd;Q1=1;function e(t){return t.split("")}return dd=e,dd}var md,tw;function oz(){if(tw)return md;tw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+s+"|"+u+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=l+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",g=m+y+d,_="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(u+"(?="+u+")|"+_+g,"g");function x(v){return v.match(b)||[]}return md=x,md}var yd,ew;function sz(){if(ew)return yd;ew=1;var e=az(),t=ME(),r=oz();function n(i){return t(i)?r(i):e(i)}return yd=n,yd}var vd,rw;function uz(){if(rw)return vd;rw=1;var e=iz(),t=ME(),r=sz(),n=Sg();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,u=s?s[0]:o.charAt(0),l=s?e(s,1).join(""):o.slice(1);return u[a]()+l}}return vd=i,vd}var gd,nw;function lz(){if(nw)return gd;nw=1;var e=uz(),t=e("toUpperCase");return gd=t,gd}var cz=lz();const pc=zt(cz);function fs(e){"@babel/helpers - typeof";return fs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fs(e)}var fz=["type","size","sizeType"];function py(){return py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},py.apply(this,arguments)}function iw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iw(Object(r),!0).forEach(function(n){hz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function hz(e,t,r){return t=pz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pz(e){var t=dz(e,"string");return fs(t)=="symbol"?t:t+""}function dz(e,t){if(fs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mz(e,t){if(e==null)return{};var r=yz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var kE={symbolCircle:Xv,symbolCross:TD,symbolDiamond:CD,symbolSquare:MD,symbolStar:RD,symbolTriangle:DD,symbolWye:ND},vz=Math.PI/180,gz=function(t){var r="symbol".concat(pc(t));return kE[r]||Xv},bz=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*vz;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},_z=function(t,r){kE["symbol".concat(pc(t))]=r},dc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,u=mz(t,fz),l=aw(aw({},u),{},{type:n,size:a,sizeType:s}),c=function(){var d=gz(n),g=LD().type(d).size(bz(a,s,n));return g()},f=l.className,h=l.cx,p=l.cy,y=gt(l,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",py({},y,{className:At("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};dc.registerSymbol=_z;function Pa(e){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dy.apply(this,arguments)}function ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ow(Object(r),!0).forEach(function(n){hs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jE(n.key),n)}}function Oz(e,t,r){return t&&Sz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Az(e,t,r){return t=ul(t),Pz(e,$E()?Reflect.construct(t,r||[],ul(e).constructor):t.apply(e,r))}function Pz(e,t){if(t&&(Pa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tz(e)}function Tz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $E(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($E=function(){return!!e})()}function ul(e){return ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ul(e)}function Ez(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&my(e,t)}function my(e,t){return my=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},my(e,t)}function hs(e,t,r){return t=jE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jE(e){var t=Cz(e,"string");return Pa(t)=="symbol"?t:t+""}function Cz(e,t){if(Pa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _r=32,Lg=(function(e){function t(){return wz(this,t),Az(this,t,arguments)}return Ez(t,e),Oz(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=_r/2,o=_r/6,s=_r/3,u=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:u,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:_r,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:u,d:"M0,".concat(a,"h").concat(s,`
81
+ */var xw;function l5(){return xw||(xw=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,v=!1,x=!1,b;b=Symbol.for("react.module.reference");function _(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===i||x||U===n||U===u||U===c||v||U===p||y||m||d||typeof U=="object"&&U!==null&&(U.$$typeof===h||U.$$typeof===f||U.$$typeof===a||U.$$typeof===o||U.$$typeof===l||U.$$typeof===b||U.getModuleId!==void 0))}function g(U){if(typeof U=="object"&&U!==null){var ct=U.$$typeof;switch(ct){case e:var mt=U.type;switch(mt){case r:case i:case n:case u:case c:return mt;default:var ot=mt&&mt.$$typeof;switch(ot){case s:case o:case l:case h:case f:case a:return ot;default:return ct}}case t:return ct}}}var w=o,S=a,A=e,T=l,M=r,P=h,E=f,C=t,k=i,j=n,R=u,L=c,z=!1,W=!1;function I(U){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function D(U){return W||(W=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(U){return g(U)===o}function q(U){return g(U)===a}function K(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function B(U){return g(U)===l}function V(U){return g(U)===r}function J(U){return g(U)===h}function H(U){return g(U)===f}function F(U){return g(U)===t}function X(U){return g(U)===i}function Y(U){return g(U)===n}function $(U){return g(U)===u}function rt(U){return g(U)===c}$t.ContextConsumer=w,$t.ContextProvider=S,$t.Element=A,$t.ForwardRef=T,$t.Fragment=M,$t.Lazy=P,$t.Memo=E,$t.Portal=C,$t.Profiler=k,$t.StrictMode=j,$t.Suspense=R,$t.SuspenseList=L,$t.isAsyncMode=I,$t.isConcurrentMode=D,$t.isContextConsumer=N,$t.isContextProvider=q,$t.isElement=K,$t.isForwardRef=B,$t.isFragment=V,$t.isLazy=J,$t.isMemo=H,$t.isPortal=F,$t.isProfiler=X,$t.isStrictMode=Y,$t.isSuspense=$,$t.isSuspenseList=rt,$t.isValidElementType=_,$t.typeOf=g})()),$t}var ww;function u5(){return ww||(ww=1,process.env.NODE_ENV==="production"?Gl.exports=s5():Gl.exports=l5()),Gl.exports}var c5=u5(),Wd,Sw;function uC(){if(Sw)return Wd;Sw=1;var e=Jn(),t=Qn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Wd=n,Wd}var Hd,Aw;function f5(){if(Aw)return Hd;Aw=1;var e=uC();function t(r){return e(r)&&r!=+r}return Hd=t,Hd}var h5=f5();const Ro=Lt(h5);var p5=uC();const d5=Lt(p5);var en=function(t){return t===0?0:t>0?1:-1},Gi=function(t){return la(t)&&t.indexOf("%")===t.length-1},it=function(t){return d5(t)&&!Ro(t)},m5=function(t){return gt(t)},Ae=function(t){return it(t)||la(t)},y5=0,ba=function(t){var r=++y5;return"".concat(t||"").concat(r)},ua=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!it(t)&&!la(t))return n;var a;if(Gi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Ro(a)&&(a=n),i&&a>r&&(a=r),a},si=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},g5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},he=function(t,r){return it(t)&&it(r)?function(n){return t+n*(r-t)}:function(){return r}};function Bu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):zr(n,t))===r})}var v5=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:h,b:(i-h*n)/r}},b5=function(t,r){return it(t)&&it(r)?t-r:la(t)&&la(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ha(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Uy(e){"@babel/helpers - typeof";return Uy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uy(e)}var _5=["viewBox","children"],x5=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Ow=["points","pathLength"],Gd={svg:_5,polygon:Ow,polyline:Ow},v0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],qu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!jo(n))return null;var i={};return Object.keys(n).forEach(function(a){v0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},w5=function(t,r,n){return function(i){return t(r,n,i),null}},Hs=function(t,r,n){if(!jo(t)||Uy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];v0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=w5(o,r,n))}),i},S5=["children"],A5=["children"];function Tw(e,t){if(e==null)return{};var r=O5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Wy(e){"@babel/helpers - typeof";return Wy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wy(e)}var Pw={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},zn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Ew=null,Kd=null,b0=function e(t){if(t===Ew&&Array.isArray(Kd))return Kd;var r=[];return O.Children.forEach(t,function(n){gt(n)||(c5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Kd=r,Ew=t,r};function dr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return zn(i)}):n=[zn(t)],b0(e).forEach(function(i){var a=zr(i,"type.displayName")||zr(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Sr(e,t){var r=dr(e,t);return r&&r[0]}var Cw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!it(n)||n<=0||!it(i)||i<=0)},T5=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],P5=function(t){return t&&t.type&&la(t.type)&&T5.indexOf(t.type)>=0},cC=function(t){return t&&Wy(t)==="object"&&"clipDot"in t},E5=function(t,r,n,i){var a,o=(a=Gd==null?void 0:Gd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!bt(t)&&(i&&o.includes(r)||x5.includes(r))||n&&v0.includes(r)},vt=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!jo(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;E5((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Hy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Mw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Mw(a,o))return!1}return!0},Mw=function(t,r){if(gt(t)&&gt(r))return!0;if(!gt(t)&&!gt(r)){var n=t.props||{},i=n.children,a=Tw(n,S5),o=r.props||{},s=o.children,l=Tw(o,A5);return i&&s?Ha(a,l)&&Hy(i,s):!i&&!s?Ha(a,l):!1}return!1},kw=function(t,r){var n=[],i={};return b0(t).forEach(function(a,o){if(P5(a))n.push(a);else if(a){var s=zn(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},C5=function(t){var r=t&&t.type;return r&&Pw[r]?Pw[r]:null},M5=function(t,r){return b0(r).indexOf(t)},k5=["children","width","height","viewBox","className","style","title","desc"];function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function $5(e,t){if(e==null)return{};var r=j5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ky(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=$5(e,k5),c=i||{width:r,height:n,x:0,y:0},f=Ot("recharts-surface",a);return O.createElement("svg",Gy({},vt(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var R5=["children","className"];function Xy(){return Xy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xy.apply(this,arguments)}function D5(e,t){if(e==null)return{};var r=I5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Mt=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=D5(e,R5),a=Ot("recharts-layer",n);return O.createElement("g",Xy({className:a},vt(i,!0),{ref:t}),r)}),N5=process.env.NODE_ENV!=="production",Un=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if(N5&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Xd,$w;function L5(){if($w)return Xd;$w=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Xd=e,Xd}var Yd,jw;function B5(){if(jw)return Yd;jw=1;var e=L5();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Yd=t,Yd}var Vd,Rw;function fC(){if(Rw)return Vd;Rw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return Vd=l,Vd}var Zd,Dw;function q5(){if(Dw)return Zd;Dw=1;function e(t){return t.split("")}return Zd=e,Zd}var Jd,Iw;function F5(){if(Iw)return Jd;Iw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=u+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",v=m+y+d,x="(?:"+[c+s+"?",s,f,h,o].join("|")+")",b=RegExp(l+"(?="+l+")|"+x+v,"g");function _(g){return g.match(b)||[]}return Jd=_,Jd}var Qd,Nw;function z5(){if(Nw)return Qd;Nw=1;var e=q5(),t=fC(),r=F5();function n(i){return t(i)?r(i):e(i)}return Qd=n,Qd}var tm,Lw;function U5(){if(Lw)return tm;Lw=1;var e=B5(),t=fC(),r=z5(),n=a0();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return tm=i,tm}var em,Bw;function W5(){if(Bw)return em;Bw=1;var e=U5(),t=e("toUpperCase");return em=t,em}var H5=W5();const Hc=Lt(H5);function Gs(e){"@babel/helpers - typeof";return Gs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gs(e)}var G5=["type","size","sizeType"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function qw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Fw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(r),!0).forEach(function(n){K5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K5(e,t,r){return t=X5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X5(e){var t=Y5(e,"string");return Gs(t)=="symbol"?t:t+""}function Y5(e,t){if(Gs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function V5(e,t){if(e==null)return{};var r=Z5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Z5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var hC={symbolCircle:kv,symbolCross:aI,symbolDiamond:sI,symbolSquare:lI,symbolStar:hI,symbolTriangle:pI,symbolWye:mI},J5=Math.PI/180,Q5=function(t){var r="symbol".concat(Hc(t));return hC[r]||kv},tz=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*J5;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},ez=function(t,r){hC["symbol".concat(Hc(t))]=r},Gc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=V5(t,G5),u=Fw(Fw({},l),{},{type:n,size:a,sizeType:s}),c=function(){var d=Q5(n),v=yI().type(d).size(tz(a,s,n));return v()},f=u.className,h=u.cx,p=u.cy,y=vt(u,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Yy({},y,{className:Ot("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Gc.registerSymbol=ez;function ao(e){"@babel/helpers - typeof";return ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ao(e)}function Vy(){return Vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vy.apply(this,arguments)}function zw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rz(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zw(Object(r),!0).forEach(function(n){Ks(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function az(e,t,r){return t&&iz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oz(e,t,r){return t=Fu(t),sz(e,pC()?Reflect.construct(t,r||[],Fu(e).constructor):t.apply(e,r))}function sz(e,t){if(t&&(ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lz(e)}function lz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pC=function(){return!!e})()}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fu(e)}function uz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zy(e,t)}function Zy(e,t){return Zy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zy(e,t)}function Ks(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=cz(e,"string");return ao(t)=="symbol"?t:t+""}function cz(e,t){if(ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Rr=32,_0=(function(e){function t(){return nz(this,t),oz(this,t,arguments)}return uz(t,e),az(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Rr/2,o=Rr/6,s=Rr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Rr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
82
82
  A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
83
- H`).concat(_r,"M").concat(2*s,",").concat(a,`
84
- A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:u,d:"M0,".concat(_r/8,"h").concat(_r,"v").concat(_r*3/4,"h").concat(-_r,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var l=xz({},n);return delete l.legendIcon,O.cloneElement(n.legendIcon,l)}return O.createElement(dc,{fill:u,cx:a,cy:a,size:_r,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,u=i.formatter,l=i.inactiveColor,c={x:0,y:0,width:_r,height:_r},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||u,d=At(hs(hs({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=bt(p.value)?null:p.value;_n(!bt(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=p.inactive?l:p.color;return O.createElement("li",dy({className:d,style:f,key:"legend-item-".concat(y)},cs(n.props,p,y)),O.createElement(fy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},m?m(g,p,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);hs(Lg,"displayName","Legend");hs(Lg,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var bd,sw;function RE(){if(sw)return bd;sw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return bd=e,bd}var _d,uw;function Mz(){if(uw)return _d;uw=1;function e(t){return t!==t}return _d=e,_d}var xd,lw;function kz(){if(lw)return xd;lw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return xd=e,xd}var wd,cw;function $z(){if(cw)return wd;cw=1;var e=RE(),t=Mz(),r=kz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wd=n,wd}var Sd,fw;function jz(){if(fw)return Sd;fw=1;var e=$z();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Sd=t,Sd}var Od,hw;function Rz(){if(hw)return Od;hw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return Od=e,Od}var Ad,pw;function Dz(){if(pw)return Ad;pw=1;function e(){}return Ad=e,Ad}var Pd,dw;function Iz(){if(dw)return Pd;dw=1;var e=dE(),t=Dz(),r=kg(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Pd=i,Pd}var Td,mw;function Nz(){if(mw)return Td;mw=1;var e=oE(),t=jz(),r=Rz(),n=uE(),i=Iz(),a=kg(),o=200;function s(u,l,c){var f=-1,h=t,p=u.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var g=l?null:i(u);if(g)return a(g);y=!1,h=n,d=new e}else d=l?[]:m;t:for(;++f<p;){var _=u[f],b=l?l(_):_;if(_=c||_!==0?_:0,y&&b===b){for(var x=d.length;x--;)if(d[x]===b)continue t;l&&d.push(b),m.push(_)}else h(d,b,c)||(d!==m&&d.push(b),m.push(_))}return m}return Td=s,Td}var Ed,yw;function Lz(){if(yw)return Ed;yw=1;var e=Jn(),t=Nz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return Ed=r,Ed}var Bz=Lz();const vw=zt(Bz);function DE(e,t,r){return t===!0?vw(e,r):bt(t)?vw(e,t):e}function Ta(e){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}var qz=["ref"];function gw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gw(Object(r),!0).forEach(function(n){mc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NE(n.key),n)}}function zz(e,t,r){return t&&bw(e.prototype,t),r&&bw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Uz(e,t,r){return t=ll(t),Wz(e,IE()?Reflect.construct(t,r||[],ll(e).constructor):t.apply(e,r))}function Wz(e,t){if(t&&(Ta(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gz(e)}function Gz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IE=function(){return!!e})()}function ll(e){return ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ll(e)}function Hz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yy(e,t)}function yy(e,t){return yy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yy(e,t)}function mc(e,t,r){return t=NE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NE(e){var t=Kz(e,"string");return Ta(t)=="symbol"?t:t+""}function Kz(e,t){if(Ta(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ta(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Yz(e,t){if(e==null)return{};var r=Xz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Xz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vz(e){return e.value}function Zz(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Yz(t,qz);return O.createElement(Lg,r)}var _w=1,Ai=(function(e){function t(){var r;Fz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Uz(this,t,[].concat(i)),mc(r,"lastBoundingBox",{width:-1,height:-1}),r}return Hz(t,e),zz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>_w||Math.abs(i.height-this.lastBoundingBox.height)>_w)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?hn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,u=i.margin,l=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((l||0)-p.width)/2}}else f=o==="right"?{right:u&&u.right||0}:{left:u&&u.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:u&&u.bottom||0}:{top:u&&u.top||0};return hn(hn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,u=i.wrapperStyle,l=i.payloadUniqBy,c=i.payload,f=hn(hn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(u)),u);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},Zz(a,hn(hn({},this.props),{},{payload:DE(c,l,Vz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=hn(hn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&nt(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);mc(Ai,"displayName","Legend");mc(Ai,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function ps(e){"@babel/helpers - typeof";return ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ps(e)}function vy(){return vy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vy.apply(this,arguments)}function Jz(e,t){return r5(e)||e5(e,t)||t5(e,t)||Qz()}function Qz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t5(e,t){if(e){if(typeof e=="string")return xw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xw(e,t)}}function xw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function e5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function r5(e){if(Array.isArray(e))return e}function ww(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Cd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ww(Object(r),!0).forEach(function(n){n5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ww(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n5(e,t,r){return t=i5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i5(e){var t=a5(e,"string");return ps(t)=="symbol"?t:t+""}function a5(e,t){if(ps(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o5(e){return Array.isArray(e)&&be(e[0])&&be(e[1])?e.join(" ~ "):e}var s5=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,u=t.labelStyle,l=u===void 0?{}:u,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,g=t.accessibilityLayer,_=g===void 0?!1:g,b=function(){if(c&&c.length){var E={padding:0,margin:0},M=(h?hc(c,h):c).map(function(R,$){if(R.type==="none")return null;var k=Cd({display:"block",paddingTop:4,paddingBottom:4,color:R.color||"#000"},s),D=R.formatter||f||o5,L=R.value,q=R.name,I=L,j=q;if(D&&I!=null&&j!=null){var B=D(L,q,R,$,c);if(Array.isArray(B)){var W=Jz(B,2);I=W[0],j=W[1]}else I=B}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:k},be(j)?O.createElement("span",{className:"recharts-tooltip-item-name"},j):null,be(j)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},R.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},M)}return null},x=Cd({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),v=Cd({margin:0},l),w=!yt(m),S=w?m:"",A=At("recharts-default-tooltip",p),P=At("recharts-tooltip-label",y);w&&d&&c!==void 0&&c!==null&&(S=d(m,c));var C=_?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",vy({className:A,style:x},C),O.createElement("p",{className:P,style:v},O.isValidElement(S)?S:"".concat(S)),b())};function ds(e){"@babel/helpers - typeof";return ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ds(e)}function du(e,t,r){return t=u5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u5(e){var t=l5(e,"string");return ds(t)=="symbol"?t:t+""}function l5(e,t){if(ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var go="recharts-tooltip-wrapper",c5={visibility:"hidden"};function f5(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return At(go,du(du(du(du({},"".concat(go,"-right"),nt(r)&&t&&nt(t.x)&&r>=t.x),"".concat(go,"-left"),nt(r)&&t&&nt(t.x)&&r<t.x),"".concat(go,"-bottom"),nt(n)&&t&&nt(t.y)&&n>=t.y),"".concat(go,"-top"),nt(n)&&t&&nt(t.y)&&n<t.y))}function Sw(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,u=e.viewBox,l=e.viewBoxDimension;if(a&&nt(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=u[n];return h<p?Math.max(f,u[n]):Math.max(c,u[n])}var y=f+s,m=u[n]+l;return y>m?Math.max(c,u[n]):Math.max(f,u[n])}function h5(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function p5(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,u=e.viewBox,l,c,f;return o.height>0&&o.width>0&&r?(c=Sw({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:u,viewBoxDimension:u.width}),f=Sw({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:u,viewBoxDimension:u.height}),l=h5({translateX:c,translateY:f,useTranslate3d:s})):l=c5,{cssProperties:l,cssClasses:f5({translateX:c,translateY:f,coordinate:r})}}function Ea(e){"@babel/helpers - typeof";return Ea=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ea(e)}function Ow(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Aw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(r),!0).forEach(function(n){by(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ow(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BE(n.key),n)}}function y5(e,t,r){return t&&m5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v5(e,t,r){return t=cl(t),g5(e,LE()?Reflect.construct(t,r||[],cl(e).constructor):t.apply(e,r))}function g5(e,t){if(t&&(Ea(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b5(e)}function b5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LE=function(){return!!e})()}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},cl(e)}function _5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gy(e,t)}function gy(e,t){return gy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gy(e,t)}function by(e,t,r){return t=BE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BE(e){var t=x5(e,"string");return Ea(t)=="symbol"?t:t+""}function x5(e,t){if(Ea(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ea(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Pw=1,w5=(function(e){function t(){var r;d5(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=v5(this,t,[].concat(i)),by(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),by(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,u,l,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(u=r.props.coordinate)===null||u===void 0?void 0:u.x)!==null&&s!==void 0?s:0,y:(l=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&l!==void 0?l:0}})}}),r}return _5(t,e),y5(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Pw||Math.abs(n.height-this.state.lastBoundingBox.height)>Pw)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,g=i.viewBox,_=i.wrapperStyle,b=p5({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:g}),x=b.cssClasses,v=b.cssProperties,w=Aw(Aw({transition:h&&a?"transform ".concat(s,"ms ").concat(u):void 0},v),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},_);return O.createElement("div",{tabIndex:-1,className:x,style:w,ref:function(A){n.wrapperNode=A}},l)}}])})(O.PureComponent),S5=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Qn={isSsr:S5()};function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}function Tw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ew(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(r),!0).forEach(function(n){Bg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function O5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FE(n.key),n)}}function P5(e,t,r){return t&&A5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function T5(e,t,r){return t=fl(t),E5(e,qE()?Reflect.construct(t,r||[],fl(e).constructor):t.apply(e,r))}function E5(e,t){if(t&&(Ca(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C5(e)}function C5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qE(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qE=function(){return!!e})()}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fl(e)}function M5(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_y(e,t)}function _y(e,t){return _y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},_y(e,t)}function Bg(e,t,r){return t=FE(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FE(e){var t=k5(e,"string");return Ca(t)=="symbol"?t:t+""}function k5(e,t){if(Ca(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ca(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $5(e){return e.dataKey}function j5(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(s5,t)}var Yr=(function(e){function t(){return O5(this,t),T5(this,t,arguments)}return M5(t,e),P5(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,u=i.animationEasing,l=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,g=i.reverseDirection,_=i.useTranslate3d,b=i.viewBox,x=i.wrapperStyle,v=y??[];f&&v.length&&(v=DE(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,$5));var w=v.length>0;return O.createElement(w5,{allowEscapeViewBox:o,animationDuration:s,animationEasing:u,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:d,reverseDirection:g,useTranslate3d:_,viewBox:b,wrapperStyle:x},j5(l,Ew(Ew({},this.props),{},{payload:v})))}}])})(O.PureComponent);Bg(Yr,"displayName","Tooltip");Bg(Yr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Qn.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Md,Cw;function R5(){if(Cw)return Md;Cw=1;var e=zr(),t=function(){return e.Date.now()};return Md=t,Md}var kd,Mw;function D5(){if(Mw)return kd;Mw=1;var e=Zn(),t=R5(),r=xg(),n="Expected a function",i=Math.max,a=Math.min;function o(s,u,l){var c,f,h,p,y,m,d=0,g=!1,_=!1,b=!0;if(typeof s!="function")throw new TypeError(n);u=r(u)||0,e(l)&&(g=!!l.leading,_="maxWait"in l,h=_?i(r(l.maxWait)||0,u):h,b="trailing"in l?!!l.trailing:b);function x(M){var R=c,$=f;return c=f=void 0,d=M,p=s.apply($,R),p}function v(M){return d=M,y=setTimeout(A,u),g?x(M):p}function w(M){var R=M-m,$=M-d,k=u-R;return _?a(k,h-$):k}function S(M){var R=M-m,$=M-d;return m===void 0||R>=u||R<0||_&&$>=h}function A(){var M=t();if(S(M))return P(M);y=setTimeout(A,w(M))}function P(M){return y=void 0,b&&c?x(M):(c=f=void 0,p)}function C(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function T(){return y===void 0?p:P(t())}function E(){var M=t(),R=S(M);if(c=arguments,f=this,m=M,R){if(y===void 0)return v(m);if(_)return clearTimeout(y),y=setTimeout(A,u),x(m)}return y===void 0&&(y=setTimeout(A,u)),p}return E.cancel=C,E.flush=T,E}return kd=o,kd}var $d,kw;function I5(){if(kw)return $d;kw=1;var e=D5(),t=Zn(),r="Expected a function";function n(i,a,o){var s=!0,u=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,u="trailing"in o?!!o.trailing:u),e(i,a,{leading:s,maxWait:a,trailing:u})}return $d=n,$d}var N5=I5();const zE=zt(N5);function ms(e){"@babel/helpers - typeof";return ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(e)}function $w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mu(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$w(Object(r),!0).forEach(function(n){L5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$w(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L5(e,t,r){return t=B5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B5(e){var t=q5(e,"string");return ms(t)=="symbol"?t:t+""}function q5(e,t){if(ms(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F5(e,t){return G5(e)||W5(e,t)||U5(e,t)||z5()}function z5(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function U5(e,t){if(e){if(typeof e=="string")return jw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return jw(e,t)}}function jw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function W5(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function G5(e){if(Array.isArray(e))return e}var H5=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,u=s===void 0?"100%":s,l=e.minWidth,c=l===void 0?0:l,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,g=e.className,_=e.onResize,b=e.style,x=b===void 0?{}:b,v=O.useRef(null),w=O.useRef();w.current=_,O.useImperativeHandle(t,function(){return Object.defineProperty(v.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),v.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=F5(S,2),P=A[0],C=A[1],T=O.useCallback(function(M,R){C(function($){var k=Math.round(M),D=Math.round(R);return $.containerWidth===k&&$.containerHeight===D?$:{containerWidth:k,containerHeight:D}})},[]);O.useEffect(function(){var M=function(q){var I,j=q[0].contentRect,B=j.width,W=j.height;T(B,W),(I=w.current)===null||I===void 0||I.call(w,B,W)};m>0&&(M=zE(M,m,{trailing:!0,leading:!1}));var R=new ResizeObserver(M),$=v.current.getBoundingClientRect(),k=$.width,D=$.height;return T(k,D),R.observe(v.current),function(){R.disconnect()}},[T,m]);var E=O.useMemo(function(){var M=P.containerWidth,R=P.containerHeight;if(M<0||R<0)return null;_n(vi(o)||vi(u),`The width(%s) and height(%s) are both fixed numbers,
87
- maybe you don't need to use a ResponsiveContainer.`,o,u),_n(!r||r>0,"The aspect(%s) must be greater than zero.",r);var $=vi(o)?M:o,k=vi(u)?R:u;r&&r>0&&($?k=$/r:k&&($=k*r),h&&k>h&&(k=h)),_n($>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
83
+ H`).concat(Rr,"M").concat(2*s,",").concat(a,`
84
+ A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Rr/8,"h").concat(Rr,"v").concat(Rr*3/4,"h").concat(-Rr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=rz({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(Gc,{fill:l,cx:a,cy:a,size:Rr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Rr,height:Rr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||l,d=Ot(Ks(Ks({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var v=bt(p.value)?null:p.value;Un(!bt(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=p.inactive?u:p.color;return O.createElement("li",Vy({className:d,style:f,key:"legend-item-".concat(y)},Hs(n.props,p,y)),O.createElement(Ky,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},m?m(v,p,y):v))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Ks(_0,"displayName","Legend");Ks(_0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var rm,Uw;function mC(){if(Uw)return rm;Uw=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return rm=e,rm}var nm,Ww;function fz(){if(Ww)return nm;Ww=1;function e(t){return t!==t}return nm=e,nm}var im,Hw;function hz(){if(Hw)return im;Hw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return im=e,im}var am,Gw;function pz(){if(Gw)return am;Gw=1;var e=mC(),t=fz(),r=hz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return am=n,am}var om,Kw;function dz(){if(Kw)return om;Kw=1;var e=pz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return om=t,om}var sm,Xw;function mz(){if(Xw)return sm;Xw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return sm=e,sm}var lm,Yw;function yz(){if(Yw)return lm;Yw=1;function e(){}return lm=e,lm}var um,Vw;function gz(){if(Vw)return um;Vw=1;var e=YE(),t=yz(),r=p0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return um=i,um}var cm,Zw;function vz(){if(Zw)return cm;Zw=1;var e=FE(),t=dz(),r=mz(),n=UE(),i=gz(),a=p0(),o=200;function s(l,u,c){var f=-1,h=t,p=l.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var v=u?null:i(l);if(v)return a(v);y=!1,h=n,d=new e}else d=u?[]:m;t:for(;++f<p;){var x=l[f],b=u?u(x):x;if(x=c||x!==0?x:0,y&&b===b){for(var _=d.length;_--;)if(d[_]===b)continue t;u&&d.push(b),m.push(x)}else h(d,b,c)||(d!==m&&d.push(b),m.push(x))}return m}return cm=s,cm}var fm,Jw;function bz(){if(Jw)return fm;Jw=1;var e=Si(),t=vz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return fm=r,fm}var _z=bz();const Qw=Lt(_z);function yC(e,t,r){return t===!0?Qw(e,r):bt(t)?Qw(e,t):e}function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}var xz=["ref"];function tS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Dn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tS(Object(r),!0).forEach(function(n){Kc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vC(n.key),n)}}function Sz(e,t,r){return t&&eS(e.prototype,t),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Az(e,t,r){return t=zu(t),Oz(e,gC()?Reflect.construct(t,r||[],zu(e).constructor):t.apply(e,r))}function Oz(e,t){if(t&&(oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tz(e)}function Tz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gC=function(){return!!e})()}function zu(e){return zu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zu(e)}function Pz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jy(e,t)}function Jy(e,t){return Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jy(e,t)}function Kc(e,t,r){return t=vC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vC(e){var t=Ez(e,"string");return oo(t)=="symbol"?t:t+""}function Ez(e,t){if(oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Cz(e,t){if(e==null)return{};var r=Mz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Mz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kz(e){return e.value}function $z(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Cz(t,xz);return O.createElement(_0,r)}var rS=1,ta=(function(e){function t(){var r;wz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Az(this,t,[].concat(i)),Kc(r,"lastBoundingBox",{width:-1,height:-1}),r}return Pz(t,e),Sz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>rS||Math.abs(i.height-this.lastBoundingBox.height)>rS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Dn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Dn(Dn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Dn(Dn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},$z(a,Dn(Dn({},this.props),{},{payload:yC(c,u,kz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Dn(Dn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&it(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Kc(ta,"displayName","Legend");Kc(ta,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Xs(e){"@babel/helpers - typeof";return Xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xs(e)}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qy.apply(this,arguments)}function jz(e,t){return Nz(e)||Iz(e,t)||Dz(e,t)||Rz()}function Rz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
85
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dz(e,t){if(e){if(typeof e=="string")return nS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nS(e,t)}}function nS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Iz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Nz(e){if(Array.isArray(e))return e}function iS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iS(Object(r),!0).forEach(function(n){Lz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lz(e,t,r){return t=Bz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bz(e){var t=qz(e,"string");return Xs(t)=="symbol"?t:t+""}function qz(e,t){if(Xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fz(e){return Array.isArray(e)&&Ae(e[0])&&Ae(e[1])?e.join(" ~ "):e}var zz=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,v=t.accessibilityLayer,x=v===void 0?!1:v,b=function(){if(c&&c.length){var E={padding:0,margin:0},C=(h?Wc(c,h):c).map(function(k,j){if(k.type==="none")return null;var R=hm({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},s),L=k.formatter||f||Fz,z=k.value,W=k.name,I=z,D=W;if(L&&I!=null&&D!=null){var N=L(z,W,k,j,c);if(Array.isArray(N)){var q=jz(N,2);I=q[0],D=q[1]}else I=N}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:R},Ae(D)?O.createElement("span",{className:"recharts-tooltip-item-name"},D):null,Ae(D)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},_=hm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=hm({margin:0},u),w=!gt(m),S=w?m:"",A=Ot("recharts-default-tooltip",p),T=Ot("recharts-tooltip-label",y);w&&d&&c!==void 0&&c!==null&&(S=d(m,c));var M=x?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",Qy({className:A,style:_},M),O.createElement("p",{className:T,style:g},O.isValidElement(S)?S:"".concat(S)),b())};function Ys(e){"@babel/helpers - typeof";return Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}function Kl(e,t,r){return t=Uz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uz(e){var t=Wz(e,"string");return Ys(t)=="symbol"?t:t+""}function Wz(e,t){if(Ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jo="recharts-tooltip-wrapper",Hz={visibility:"hidden"};function Gz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Ot(Jo,Kl(Kl(Kl(Kl({},"".concat(Jo,"-right"),it(r)&&t&&it(t.x)&&r>=t.x),"".concat(Jo,"-left"),it(r)&&t&&it(t.x)&&r<t.x),"".concat(Jo,"-bottom"),it(n)&&t&&it(t.y)&&n>=t.y),"".concat(Jo,"-top"),it(n)&&t&&it(t.y)&&n<t.y))}function aS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&it(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=l[n];return h<p?Math.max(f,l[n]):Math.max(c,l[n])}var y=f+s,m=l[n]+u;return y>m?Math.max(c,l[n]):Math.max(f,l[n])}function Kz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Xz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=aS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=aS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=Kz({translateX:c,translateY:f,useTranslate3d:s})):u=Hz,{cssProperties:u,cssClasses:Gz({translateX:c,translateY:f,coordinate:r})}}function so(e){"@babel/helpers - typeof";return so=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},so(e)}function oS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function sS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oS(Object(r),!0).forEach(function(n){eg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Yz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Vz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_C(n.key),n)}}function Zz(e,t,r){return t&&Vz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jz(e,t,r){return t=Uu(t),Qz(e,bC()?Reflect.construct(t,r||[],Uu(e).constructor):t.apply(e,r))}function Qz(e,t){if(t&&(so(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t3(e)}function t3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bC=function(){return!!e})()}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Uu(e)}function e3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tg(e,t)}function eg(e,t,r){return t=_C(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _C(e){var t=r3(e,"string");return so(t)=="symbol"?t:t+""}function r3(e,t){if(so(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(so(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lS=1,n3=(function(e){function t(){var r;Yz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Jz(this,t,[].concat(i)),eg(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),eg(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return e3(t,e),Zz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>lS||Math.abs(n.height-this.state.lastBoundingBox.height)>lS)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,v=i.viewBox,x=i.wrapperStyle,b=Xz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:v}),_=b.cssClasses,g=b.cssProperties,w=sS(sS({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},x);return O.createElement("div",{tabIndex:-1,className:_,style:w,ref:function(A){n.wrapperNode=A}},u)}}])})(O.PureComponent),i3=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ai={isSsr:i3()};function lo(e){"@babel/helpers - typeof";return lo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lo(e)}function uS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uS(Object(r),!0).forEach(function(n){x0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function a3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wC(n.key),n)}}function s3(e,t,r){return t&&o3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function l3(e,t,r){return t=Wu(t),u3(e,xC()?Reflect.construct(t,r||[],Wu(e).constructor):t.apply(e,r))}function u3(e,t){if(t&&(lo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return c3(e)}function c3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xC=function(){return!!e})()}function Wu(e){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Wu(e)}function f3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rg(e,t)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rg(e,t)}function x0(e,t,r){return t=wC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wC(e){var t=h3(e,"string");return lo(t)=="symbol"?t:t+""}function h3(e,t){if(lo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(lo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function p3(e){return e.dataKey}function d3(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(zz,t)}var vn=(function(e){function t(){return a3(this,t),l3(this,t,arguments)}return f3(t,e),s3(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,v=i.reverseDirection,x=i.useTranslate3d,b=i.viewBox,_=i.wrapperStyle,g=y??[];f&&g.length&&(g=yC(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,p3));var w=g.length>0;return O.createElement(n3,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:d,reverseDirection:v,useTranslate3d:x,viewBox:b,wrapperStyle:_},d3(u,cS(cS({},this.props),{},{payload:g})))}}])})(O.PureComponent);x0(vn,"displayName","Tooltip");x0(vn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ai.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var pm,fS;function m3(){if(fS)return pm;fS=1;var e=on(),t=function(){return e.Date.now()};return pm=t,pm}var dm,hS;function y3(){if(hS)return dm;hS=1;var e=wi(),t=m3(),r=n0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,h,p,y,m,d=0,v=!1,x=!1,b=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(v=!!u.leading,x="maxWait"in u,h=x?i(r(u.maxWait)||0,l):h,b="trailing"in u?!!u.trailing:b);function _(C){var k=c,j=f;return c=f=void 0,d=C,p=s.apply(j,k),p}function g(C){return d=C,y=setTimeout(A,l),v?_(C):p}function w(C){var k=C-m,j=C-d,R=l-k;return x?a(R,h-j):R}function S(C){var k=C-m,j=C-d;return m===void 0||k>=l||k<0||x&&j>=h}function A(){var C=t();if(S(C))return T(C);y=setTimeout(A,w(C))}function T(C){return y=void 0,b&&c?_(C):(c=f=void 0,p)}function M(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var C=t(),k=S(C);if(c=arguments,f=this,m=C,k){if(y===void 0)return g(m);if(x)return clearTimeout(y),y=setTimeout(A,l),_(m)}return y===void 0&&(y=setTimeout(A,l)),p}return E.cancel=M,E.flush=P,E}return dm=o,dm}var mm,pS;function g3(){if(pS)return mm;pS=1;var e=y3(),t=wi(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return mm=n,mm}var v3=g3();const SC=Lt(v3);function Vs(e){"@babel/helpers - typeof";return Vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vs(e)}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){b3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b3(e,t,r){return t=_3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _3(e){var t=x3(e,"string");return Vs(t)=="symbol"?t:t+""}function x3(e,t){if(Vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w3(e,t){return T3(e)||O3(e,t)||A3(e,t)||S3()}function S3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
86
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A3(e,t){if(e){if(typeof e=="string")return mS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mS(e,t)}}function mS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function T3(e){if(Array.isArray(e))return e}var P3=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,v=e.className,x=e.onResize,b=e.style,_=b===void 0?{}:b,g=O.useRef(null),w=O.useRef();w.current=x,O.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=w3(S,2),T=A[0],M=A[1],P=O.useCallback(function(C,k){M(function(j){var R=Math.round(C),L=Math.round(k);return j.containerWidth===R&&j.containerHeight===L?j:{containerWidth:R,containerHeight:L}})},[]);O.useEffect(function(){var C=function(W){var I,D=W[0].contentRect,N=D.width,q=D.height;P(N,q),(I=w.current)===null||I===void 0||I.call(w,N,q)};m>0&&(C=SC(C,m,{trailing:!0,leading:!1}));var k=new ResizeObserver(C),j=g.current.getBoundingClientRect(),R=j.width,L=j.height;return P(R,L),k.observe(g.current),function(){k.disconnect()}},[P,m]);var E=O.useMemo(function(){var C=T.containerWidth,k=T.containerHeight;if(C<0||k<0)return null;Un(Gi(o)||Gi(l),`The width(%s) and height(%s) are both fixed numbers,
87
+ maybe you don't need to use a ResponsiveContainer.`,o,l),Un(!r||r>0,"The aspect(%s) must be greater than zero.",r);var j=Gi(o)?C:o,R=Gi(l)?k:l;r&&r>0&&(j?R=j/r:R&&(j=R*r),h&&R>h&&(R=h)),Un(j>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
88
88
  please check the style of container, or the props width(%s) and height(%s),
89
89
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
90
- height and width.`,$,k,o,u,c,f,r);var D=!Array.isArray(p)&&bn(p.type).endsWith("Chart");return O.Children.map(p,function(L){return O.isValidElement(L)?O.cloneElement(L,mu({width:$,height:k},D?{style:mu({height:"100%",width:"100%",maxHeight:k,maxWidth:$},L.props.style)}:{})):L})},[r,p,u,h,f,c,P,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:At("recharts-responsive-container",g),style:mu(mu({},x),{},{width:o,height:u,minWidth:c,minHeight:f,maxHeight:h}),ref:v},E)}),qg=function(t){return null};qg.displayName="Cell";function ys(e){"@babel/helpers - typeof";return ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ys(e)}function Rw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rw(Object(r),!0).forEach(function(n){K5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K5(e,t,r){return t=Y5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y5(e){var t=X5(e,"string");return ys(t)=="symbol"?t:t+""}function X5(e,t){if(ys(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ys(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vi={widthCache:{},cacheCount:0},V5=2e3,Z5={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Dw="recharts_measurement_span";function J5(e){var t=xy({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Fo=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Qn.isSsr)return{width:0,height:0};var n=J5(r),i=JSON.stringify({text:t,copyStyle:n});if(Vi.widthCache[i])return Vi.widthCache[i];try{var a=document.getElementById(Dw);a||(a=document.createElement("span"),a.setAttribute("id",Dw),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=xy(xy({},Z5),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),u={width:s.width,height:s.height};return Vi.widthCache[i]=u,++Vi.cacheCount>V5&&(Vi.cacheCount=0,Vi.widthCache={}),u}catch{return{width:0,height:0}}},Q5=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function vs(e){"@babel/helpers - typeof";return vs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vs(e)}function hl(e,t){return n3(e)||r3(e,t)||e3(e,t)||t3()}function t3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function e3(e,t){if(e){if(typeof e=="string")return Iw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iw(e,t)}}function Iw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function n3(e){if(Array.isArray(e))return e}function i3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nw(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o3(n.key),n)}}function a3(e,t,r){return t&&Nw(e.prototype,t),r&&Nw(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function o3(e){var t=s3(e,"string");return vs(t)=="symbol"?t:t+""}function s3(e,t){if(vs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Lw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Bw=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,u3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,l3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,UE={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},c3=Object.keys(UE),ra="NaN";function f3(e,t){return e*UE[t]}var yu=(function(){function e(t,r){i3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!u3.test(r)&&(this.num=NaN,this.unit=""),c3.includes(r)&&(this.num=f3(t,r),this.unit="px")}return a3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=l3.exec(r))!==null&&n!==void 0?n:[],a=hl(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function WE(e){if(e.includes(ra))return ra;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=Lw.exec(t))!==null&&r!==void 0?r:[],i=hl(n,4),a=i[1],o=i[2],s=i[3],u=yu.parse(a??""),l=yu.parse(s??""),c=o==="*"?u.multiply(l):u.divide(l);if(c.isNaN())return ra;t=t.replace(Lw,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=Bw.exec(t))!==null&&f!==void 0?f:[],p=hl(h,4),y=p[1],m=p[2],d=p[3],g=yu.parse(y??""),_=yu.parse(d??""),b=m==="+"?g.add(_):g.subtract(_);if(b.isNaN())return ra;t=t.replace(Bw,b.toString())}return t}var qw=/\(([^()]*)\)/;function h3(e){for(var t=e;t.includes("(");){var r=qw.exec(t),n=hl(r,2),i=n[1];t=t.replace(qw,WE(i))}return t}function p3(e){var t=e.replace(/\s+/g,"");return t=h3(t),t=WE(t),t}function d3(e){try{return p3(e)}catch{return ra}}function jd(e){var t=d3(e.slice(5,-1));return t===ra?"":t}var m3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],y3=["dx","dy","angle","className","breakAll"];function wy(){return wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wy.apply(this,arguments)}function Fw(e,t){if(e==null)return{};var r=v3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function zw(e,t){return x3(e)||_3(e,t)||b3(e,t)||g3()}function g3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b3(e,t){if(e){if(typeof e=="string")return Uw(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uw(e,t)}}function Uw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function x3(e){if(Array.isArray(e))return e}var GE=/[ \f\n\r\t\v\u2028\u2029]+/,HE=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];yt(r)||(n?a=r.toString().split(""):a=r.toString().split(GE));var o=a.map(function(u){return{word:u,width:Fo(u,i).width}}),s=n?0:Fo(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},w3=function(t,r,n,i,a){var o=t.maxLines,s=t.children,u=t.style,l=t.breakAll,c=nt(o),f=s,h=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(k,D){var L=D.word,q=D.width,I=k[k.length-1];if(I&&(i==null||a||I.width+q+n<Number(i)))I.words.push(L),I.width+=q+n;else{var j={words:[L],width:q};k.push(j)}return k},[])},p=h(r),y=function($){return $.reduce(function(k,D){return k.width>D.width?k:D})};if(!c)return p;for(var m="…",d=function($){var k=f.slice(0,$),D=HE({breakAll:l,style:u,children:k+m}).wordsWithComputedWidth,L=h(D),q=L.length>o||y(L).width>Number(i);return[q,L]},g=0,_=f.length-1,b=0,x;g<=_&&b<=f.length-1;){var v=Math.floor((g+_)/2),w=v-1,S=d(w),A=zw(S,2),P=A[0],C=A[1],T=d(v),E=zw(T,1),M=E[0];if(!P&&!M&&(g=v+1),P&&M&&(_=v-1),!P&&M){x=C;break}b++}return x||p},Ww=function(t){var r=yt(t)?[]:t.toString().split(GE);return[{words:r}]},S3=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Qn.isSsr){var u,l,c=HE({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;u=f,l=h}else return Ww(i);return w3({breakAll:o,children:i,maxLines:s,style:a},u,l,r,n)}return Ww(i)},Gw="#808080",pl=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,u=t.capHeight,l=u===void 0?"0.71em":u,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,g=d===void 0?Gw:d,_=Fw(t,m3),b=O.useMemo(function(){return S3({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:f,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,f,_.style,_.width]),x=_.dx,v=_.dy,w=_.angle,S=_.className,A=_.breakAll,P=Fw(_,y3);if(!be(n)||!be(a))return null;var C=n+(nt(x)?x:0),T=a+(nt(v)?v:0),E;switch(m){case"start":E=jd("calc(".concat(l,")"));break;case"middle":E=jd("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(l," / 2))"));break;default:E=jd("calc(".concat(b.length-1," * -").concat(s,")"));break}var M=[];if(f){var R=b[0].width,$=_.width;M.push("scale(".concat((nt($)?$/R:1)/R,")"))}return w&&M.push("rotate(".concat(w,", ").concat(C,", ").concat(T,")")),M.length&&(P.transform=M.join(" ")),O.createElement("text",wy({},gt(P,!0),{x:C,y:T,className:At("recharts-text",S),textAnchor:p,fill:g.includes("url")?Gw:g}),b.map(function(k,D){var L=k.words.join(A?"":" ");return O.createElement("tspan",{x:C,dy:D===0?E:s,key:"".concat(L,"-").concat(D)},L)}))};const Hw=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Qo,scaleDiverging:uP,scaleDivergingLog:lP,scaleDivergingPow:Gv,scaleDivergingSqrt:xD,scaleDivergingSymlog:cP,scaleIdentity:zA,scaleImplicit:km,scaleLinear:Mi,scaleLog:WA,scaleOrdinal:Ev,scalePoint:$o,scalePow:Dv,scaleQuantile:KA,scaleQuantize:YA,scaleRadial:HA,scaleSequential:iP,scaleSequentialLog:aP,scaleSequentialPow:Wv,scaleSequentialQuantile:sP,scaleSequentialSqrt:_D,scaleSequentialSymlog:oP,scaleSqrt:rR,scaleSymlog:GA,scaleThreshold:XA,scaleTime:Gu,scaleUtc:bD,tickFormat:FA},Symbol.toStringTag,{value:"Module"}));var Rd,Kw;function KE(){if(Kw)return Rd;Kw=1;var e=Za();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],u=n(s);if(u!=null&&(l===void 0?u===u&&!e(u):i(u,l)))var l=u,c=s}return c}return Rd=t,Rd}var Dd,Yw;function O3(){if(Yw)return Dd;Yw=1;function e(t,r){return t>r}return Dd=e,Dd}var Id,Xw;function A3(){if(Xw)return Id;Xw=1;var e=KE(),t=O3(),r=Ja();function n(i){return i&&i.length?e(i,r,t):void 0}return Id=n,Id}var P3=A3();const qn=zt(P3);var Nd,Vw;function T3(){if(Vw)return Nd;Vw=1;function e(t,r){return t<r}return Nd=e,Nd}var Ld,Zw;function E3(){if(Zw)return Ld;Zw=1;var e=KE(),t=T3(),r=Ja();function n(i){return i&&i.length?e(i,r,t):void 0}return Ld=n,Ld}var C3=E3();const yc=zt(C3);var Bd,Jw;function M3(){if(Jw)return Bd;Jw=1;var e=Rg();function t(r,n){return e(r,n)}return Bd=t,Bd}var k3=M3();const Ri=zt(k3);var eo=1e9,$3={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},zg,re=!0,Cr="[DecimalError] ",Pi=Cr+"Invalid argument: ",Fg=Cr+"Exponent out of range: ",ro=Math.floor,ci=Math.pow,j3=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,fr,Oe=1e7,Qt=7,YE=9007199254740991,dl=ro(YE/Qt),ut={};ut.absoluteValue=ut.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ut.comparedTo=ut.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ut.decimalPlaces=ut.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Qt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ut.dividedBy=ut.div=function(e){return xn(this,new this.constructor(e))};ut.dividedToIntegerBy=ut.idiv=function(e){var t=this,r=t.constructor;return Yt(xn(t,new r(e),0,1),r.precision)};ut.equals=ut.eq=function(e){return!this.cmp(e)};ut.exponent=function(){return me(this)};ut.greaterThan=ut.gt=function(e){return this.cmp(e)>0};ut.greaterThanOrEqualTo=ut.gte=function(e){return this.cmp(e)>=0};ut.isInteger=ut.isint=function(){return this.e>this.d.length-2};ut.isNegative=ut.isneg=function(){return this.s<0};ut.isPositive=ut.ispos=function(){return this.s>0};ut.isZero=function(){return this.s===0};ut.lessThan=ut.lt=function(e){return this.cmp(e)<0};ut.lessThanOrEqualTo=ut.lte=function(e){return this.cmp(e)<1};ut.logarithm=ut.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(fr))throw Error(Cr+"NaN");if(r.s<1)throw Error(Cr+(r.s?"NaN":"-Infinity"));return r.eq(fr)?new n(0):(re=!1,t=xn(gs(r,a),gs(e,a),a),re=!0,Yt(t,i))};ut.minus=ut.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ZE(t,e):XE(t,(e.s=-e.s,e))};ut.modulo=ut.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Cr+"NaN");return r.s?(re=!1,t=xn(r,e,0,1).times(e),re=!0,r.minus(t)):Yt(new n(r),i)};ut.naturalExponential=ut.exp=function(){return VE(this)};ut.naturalLogarithm=ut.ln=function(){return gs(this)};ut.negated=ut.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ut.plus=ut.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XE(t,e):ZE(t,(e.s=-e.s,e))};ut.precision=ut.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Pi+e);if(t=me(i)+1,n=i.d.length-1,r=n*Qt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ut.squareRoot=ut.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(Cr+"NaN")}for(e=me(s),re=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=Zr(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ro((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new u(t)):n=new u(i.toString()),r=u.precision,i=o=r+3;;)if(a=n,n=a.plus(xn(s,a,o+2)).times(.5),Zr(a.d).slice(0,o)===(t=Zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Yt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return re=!0,Yt(n,r)};ut.times=ut.mul=function(e){var t,r,n,i,a,o,s,u,l,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,u=h.length,l=p.length,u<l&&(a=h,h=p,p=a,o=u,u=l,l=o),a=[],o=u+l,n=o;n--;)a.push(0);for(n=l;--n>=0;){for(t=0,i=u+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%Oe|0,t=s/Oe|0;a[i]=(a[i]+t)%Oe|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,re?Yt(e,f.precision):e};ut.toDecimalPlaces=ut.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(nn(e,0,eo),t===void 0?t=n.rounding:nn(t,0,8),Yt(r,e+me(r)+1,t))};ut.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=Di(n,!0):(nn(e,0,eo),t===void 0?t=i.rounding:nn(t,0,8),n=Yt(new i(n),e+1,t),r=Di(n,!0,e+1)),r};ut.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?Di(i):(nn(e,0,eo),t===void 0?t=a.rounding:nn(t,0,8),n=Yt(new a(i),e+me(i)+1,t),r=Di(n.abs(),!1,e+me(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ut.toInteger=ut.toint=function(){var e=this,t=e.constructor;return Yt(new t(e),me(e)+1,t.rounding)};ut.toNumber=function(){return+this};ut.toPower=ut.pow=function(e){var t,r,n,i,a,o,s=this,u=s.constructor,l=12,c=+(e=new u(e));if(!e.s)return new u(fr);if(s=new u(s),!s.s){if(e.s<1)throw Error(Cr+"Infinity");return s}if(s.eq(fr))return s;if(n=u.precision,e.eq(fr))return Yt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=YE){for(i=new u(fr),t=Math.ceil(n/Qt+4),re=!1;r%2&&(i=i.times(s),tS(i.d,t)),r=ro(r/2),r!==0;)s=s.times(s),tS(s.d,t);return re=!0,e.s<0?new u(fr).div(i):Yt(i,n)}}else if(a<0)throw Error(Cr+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,re=!1,i=e.times(gs(s,n+l)),re=!0,i=VE(i),i.s=a,i};ut.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=me(i),n=Di(i,r<=a.toExpNeg||r>=a.toExpPos)):(nn(e,1,eo),t===void 0?t=a.rounding:nn(t,0,8),i=Yt(new a(i),e,t),r=me(i),n=Di(i,e<=r||r<=a.toExpNeg,e)),n};ut.toSignificantDigits=ut.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(nn(e,1,eo),t===void 0?t=n.rounding:nn(t,0,8)),Yt(new n(r),e,t)};ut.toString=ut.valueOf=ut.val=ut.toJSON=ut[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=me(e),r=e.constructor;return Di(e,t<=r.toExpNeg||t>=r.toExpPos)};function XE(e,t){var r,n,i,a,o,s,u,l,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),re?Yt(t,f):t;if(u=e.d,l=t.d,o=e.e,i=t.e,u=u.slice(),a=o-i,a){for(a<0?(n=u,a=-a,s=l.length):(n=l,i=o,s=u.length),o=Math.ceil(f/Qt),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=u.length,a=l.length,s-a<0&&(a=s,n=l,l=u,u=n),r=0;a;)r=(u[--a]=u[a]+l[a]+r)/Oe|0,u[a]%=Oe;for(r&&(u.unshift(r),++i),s=u.length;u[--s]==0;)u.pop();return t.d=u,t.e=i,re?Yt(t,f):t}function nn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Pi+e)}function Zr(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Qt-n.length,r&&(a+=Dn(r)),a+=n;o=e[t],n=o+"",r=Qt-n.length,r&&(a+=Dn(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var xn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%Oe|0,o=a/Oe|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,u;if(a!=o)u=a>o?1:-1;else for(s=u=0;s<a;s++)if(n[s]!=i[s]){u=n[s]>i[s]?1:-1;break}return u}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Oe+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,u,l,c,f,h,p,y,m,d,g,_,b,x,v,w,S,A,P=n.constructor,C=n.s==i.s?1:-1,T=n.d,E=i.d;if(!n.s)return new P(n);if(!i.s)throw Error(Cr+"Division by zero");for(u=n.e-i.e,S=E.length,v=T.length,p=new P(C),y=p.d=[],l=0;E[l]==(T[l]||0);)++l;if(E[l]>(T[l]||0)&&--u,a==null?_=a=P.precision:o?_=a+(me(n)-me(i))+1:_=a,_<0)return new P(0);if(_=_/Qt+2|0,l=0,S==1)for(c=0,E=E[0],_++;(l<v||c)&&_--;l++)b=c*Oe+(T[l]||0),y[l]=b/E|0,c=b%E|0;else{for(c=Oe/(E[0]+1)|0,c>1&&(E=e(E,c),T=e(T,c),S=E.length,v=T.length),x=S,m=T.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=Oe/2&&++w;do c=0,s=t(E,m,S,d),s<0?(g=m[0],S!=d&&(g=g*Oe+(m[1]||0)),c=g/w|0,c>1?(c>=Oe&&(c=Oe-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[l++]=c,s&&m[0]?m[d++]=T[x]||0:(m=[T[x]],d=1);while((x++<v||m[0]!==void 0)&&_--)}return y[0]||y.shift(),p.e=u,Yt(p,o?a+me(p)+1:a)}})();function VE(e,t){var r,n,i,a,o,s,u=0,l=0,c=e.constructor,f=c.precision;if(me(e)>16)throw Error(Fg+me(e));if(!e.s)return new c(fr);for(re=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(n=Math.log(ci(2,l))/Math.LN10*2+5|0,s+=n,r=i=a=new c(fr),c.precision=s;;){if(i=Yt(i.times(e),s),r=r.times(++u),o=a.plus(xn(i,r,s)),Zr(o.d).slice(0,s)===Zr(a.d).slice(0,s)){for(;l--;)a=Yt(a.times(a),s);return c.precision=f,t==null?(re=!0,Yt(a,f)):a}a=o}}function me(e){for(var t=e.e*Qt,r=e.d[0];r>=10;r/=10)t++;return t}function qd(e,t,r){if(t>e.LN10.sd())throw re=!0,r&&(e.precision=r),Error(Cr+"LN10 precision limit exceeded");return Yt(new e(e.LN10),t)}function Dn(e){for(var t="";e--;)t+="0";return t}function gs(e,t){var r,n,i,a,o,s,u,l,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(Cr+(p.s?"NaN":"-Infinity"));if(p.eq(fr))return new m(0);if(t==null?(re=!1,l=d):l=t,p.eq(10))return t==null&&(re=!0),qd(m,l);if(l+=h,m.precision=l,r=Zr(y),n=r.charAt(0),a=me(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=Zr(p.d),n=r.charAt(0),f++;a=me(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return u=qd(m,l+2,d).times(a+""),p=gs(new m(n+"."+r.slice(1)),l-h).plus(u),m.precision=d,t==null?(re=!0,Yt(p,d)):p;for(s=o=p=xn(p.minus(fr),p.plus(fr),l),c=Yt(p.times(p),l),i=3;;){if(o=Yt(o.times(c),l),u=s.plus(xn(o,new m(i),l)),Zr(u.d).slice(0,l)===Zr(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(qd(m,l+2,d).times(a+""))),s=xn(s,new m(f),l),m.precision=d,t==null?(re=!0,Yt(s,d)):s;s=u,i+=2}}function Qw(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=ro(r/Qt),e.d=[],n=(r+1)%Qt,r<0&&(n+=Qt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Qt;n<i;)e.d.push(+t.slice(n,n+=Qt));t=t.slice(n),n=Qt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),re&&(e.e>dl||e.e<-dl))throw Error(Fg+r)}else e.s=0,e.e=0,e.d=[0];return e}function Yt(e,t,r){var n,i,a,o,s,u,l,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Qt,i=t,l=f[c=0];else{if(c=Math.ceil((n+1)/Qt),a=f.length,c>=a)return e;for(l=a=f[c],o=1;a>=10;a/=10)o++;n%=Qt,i=n-Qt+o}if(r!==void 0&&(a=ci(10,o-i-1),s=l/a%10|0,u=t<0||f[c+1]!==void 0||l%a,u=r<4?(s||u)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||u||r==6&&(n>0?i>0?l/ci(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return u?(a=me(e),f.length=1,t=t-a-1,f[0]=ci(10,(Qt-t%Qt)%Qt),e.e=ro(-t/Qt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=ci(10,Qt-n),f[c]=i>0?(l/ci(10,o-i)%ci(10,i)|0)*a:0),u)for(;;)if(c==0){(f[0]+=a)==Oe&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=Oe)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(re&&(e.e>dl||e.e<-dl))throw Error(Fg+me(e));return e}function ZE(e,t){var r,n,i,a,o,s,u,l,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),re?Yt(t,p):t;if(u=e.d,f=t.d,n=t.e,l=e.e,u=u.slice(),o=l-n,o){for(c=o<0,c?(r=u,o=-o,s=f.length):(r=f,n=l,s=u.length),i=Math.max(Math.ceil(p/Qt),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=u.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(u[i]!=f[i]){c=u[i]<f[i];break}o=0}for(c&&(r=u,u=f,f=r,t.s=-t.s),s=u.length,i=f.length-s;i>0;--i)u[s++]=0;for(i=f.length;i>o;){if(u[--i]<f[i]){for(a=i;a&&u[--a]===0;)u[a]=Oe-1;--u[a],u[i]+=Oe}u[i]-=f[i]}for(;u[--s]===0;)u.pop();for(;u[0]===0;u.shift())--n;return u[0]?(t.d=u,t.e=n,re?Yt(t,p):t):new h(0)}function Di(e,t,r){var n,i=me(e),a=Zr(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+Dn(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+Dn(-i-1)+a,r&&(n=r-o)>0&&(a+=Dn(n))):i>=o?(a+=Dn(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+Dn(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=Dn(n))),e.s<0?"-"+a:a}function tS(e,t){if(e.length>t)return e.length=t,!0}function JE(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(Pi+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return Qw(o,a.toString())}else if(typeof a!="string")throw Error(Pi+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,j3.test(a))Qw(o,a);else throw Error(Pi+a)}if(i.prototype=ut,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=JE,i.config=i.set=R3,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function R3(e){if(!e||typeof e!="object")throw Error(Cr+"Object expected");var t,r,n,i=["precision",1,eo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(ro(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(Pi+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(Pi+r+": "+n);return this}var zg=JE($3);fr=new zg(1);const Wt=zg;function D3(e){return B3(e)||L3(e)||N3(e)||I3()}function I3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function N3(e,t){if(e){if(typeof e=="string")return Sy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sy(e,t)}}function L3(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function B3(e){if(Array.isArray(e))return Sy(e)}function Sy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var q3=function(t){return t},QE={},tC=function(t){return t===QE},eS=function(t){return function r(){return arguments.length===0||arguments.length===1&&tC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},F3=function e(t,r){return t===1?r:eS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==QE}).length;return o>=t?r.apply(void 0,i):e(t-o,eS(function(){for(var s=arguments.length,u=new Array(s),l=0;l<s;l++)u[l]=arguments[l];var c=i.map(function(f){return tC(f)?u.shift():f});return r.apply(void 0,D3(c).concat(u))}))})},vc=function(t){return F3(t.length,t)},Oy=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},z3=vc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),U3=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return q3;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,u){return u(s)},a.apply(void 0,arguments))}},Ay=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},eC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,u){return s===r[u]})||(r=a,n=t.apply(void 0,a)),n}};function W3(e){var t;return e===0?t=1:t=Math.floor(new Wt(e).abs().log(10).toNumber())+1,t}function G3(e,t,r){for(var n=new Wt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var H3=vc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),K3=vc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),Y3=vc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const gc={rangeStep:G3,getDigitCount:W3,interpolateNumber:H3,uninterpolateNumber:K3,uninterpolateTruncation:Y3};function Py(e){return Z3(e)||V3(e)||rC(e)||X3()}function X3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
94
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V3(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Z3(e){if(Array.isArray(e))return Ty(e)}function bs(e,t){return tU(e)||Q3(e,t)||rC(e,t)||J3()}function J3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rC(e,t){if(e){if(typeof e=="string")return Ty(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ty(e,t)}}function Ty(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Q3(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function tU(e){if(Array.isArray(e))return e}function nC(e){var t=bs(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function iC(e,t,r){if(e.lte(0))return new Wt(0);var n=gc.getDigitCount(e.toNumber()),i=new Wt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Wt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),u=s.mul(i);return t?u:new Wt(Math.ceil(u))}function eU(e,t,r){var n=1,i=new Wt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Wt(10).pow(gc.getDigitCount(e)-1),i=new Wt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Wt(Math.floor(e)))}else e===0?i=new Wt(Math.floor((t-1)/2)):r||(i=new Wt(Math.floor(e)));var o=Math.floor((t-1)/2),s=U3(z3(function(u){return i.add(new Wt(u-o).mul(n)).toNumber()}),Oy);return s(0,t)}function aC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Wt(0),tickMin:new Wt(0),tickMax:new Wt(0)};var a=iC(new Wt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Wt(0):(o=new Wt(e).add(t).div(2),o=o.sub(new Wt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),u=Math.ceil(new Wt(t).sub(o).div(a).toNumber()),l=s+u+1;return l>r?aC(e,t,r,n,i+1):(l<r&&(u=t>0?u+(r-l):u,s=t>0?s:s+(r-l)),{step:a,tickMin:o.sub(new Wt(s).mul(a)),tickMax:o.add(new Wt(u).mul(a))})}function rU(e){var t=bs(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=nC([r,n]),u=bs(s,2),l=u[0],c=u[1];if(l===-1/0||c===1/0){var f=c===1/0?[l].concat(Py(Oy(0,i-1).map(function(){return 1/0}))):[].concat(Py(Oy(0,i-1).map(function(){return-1/0})),[c]);return r>n?Ay(f):f}if(l===c)return eU(l,i,a);var h=aC(l,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=gc.rangeStep(y,m.add(new Wt(.1).mul(p)),p);return r>n?Ay(d):d}function nU(e,t){var r=bs(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=nC([n,i]),s=bs(o,2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[n,i];if(u===l)return[u];var c=Math.max(t,2),f=iC(new Wt(l).sub(u).div(c-1),a,0),h=[].concat(Py(gc.rangeStep(new Wt(u),new Wt(l).sub(new Wt(.99).mul(f)),f)),[l]);return n>i?Ay(h):h}var iU=eC(rU),aU=eC(nU),oU=process.env.NODE_ENV==="production",Fd="Invariant failed";function Ye(e,t){if(oU)throw new Error(Fd);var r=typeof t=="function"?t():t,n=r?"".concat(Fd,": ").concat(r):Fd;throw new Error(n)}var sU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ma(e){"@babel/helpers - typeof";return Ma=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ma(e)}function ml(){return ml=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ml.apply(this,arguments)}function uU(e,t){return hU(e)||fU(e,t)||cU(e,t)||lU()}function lU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cU(e,t){if(e){if(typeof e=="string")return rS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return rS(e,t)}}function rS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function hU(e){if(Array.isArray(e))return e}function pU(e,t){if(e==null)return{};var r=dU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uC(n.key),n)}}function vU(e,t,r){return t&&yU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gU(e,t,r){return t=yl(t),bU(e,oC()?Reflect.construct(t,r||[],yl(e).constructor):t.apply(e,r))}function bU(e,t){if(t&&(Ma(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _U(e)}function _U(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oC=function(){return!!e})()}function yl(e){return yl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yl(e)}function xU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ey(e,t)}function Ey(e,t){return Ey=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ey(e,t)}function sC(e,t,r){return t=uC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e){var t=wU(e,"string");return Ma(t)=="symbol"?t:t+""}function wU(e,t){if(Ma(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ma(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var no=(function(e){function t(){return mU(this,t),gU(this,t,arguments)}return xU(t,e),vU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,u=n.data,l=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=pU(n,sU),p=gt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?Ye(!1,'ErrorBar requires Axis type property to be "number".'):Ye());var y=u.map(function(m){var d=l(m,s),g=d.x,_=d.y,b=d.value,x=d.errorVal;if(!x)return null;var v=[],w,S;if(Array.isArray(x)){var A=uU(x,2);w=A[0],S=A[1]}else w=S=x;if(a==="vertical"){var P=c.scale,C=_+i,T=C+o,E=C-o,M=P(b-w),R=P(b+S);v.push({x1:R,y1:T,x2:R,y2:E}),v.push({x1:M,y1:C,x2:R,y2:C}),v.push({x1:M,y1:T,x2:M,y2:E})}else if(a==="horizontal"){var $=f.scale,k=g+i,D=k-o,L=k+o,q=$(b-w),I=$(b+S);v.push({x1:D,y1:I,x2:L,y2:I}),v.push({x1:k,y1:q,x2:k,y2:I}),v.push({x1:D,y1:q,x2:L,y2:q})}return O.createElement(Rt,ml({className:"recharts-errorBar",key:"bar-".concat(v.map(function(j){return"".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))},p),v.map(function(j){return O.createElement("line",ml({},j,{key:"line-".concat(j.x1,"-").concat(j.x2,"-").concat(j.y1,"-").concat(j.y2)}))}))});return O.createElement(Rt,{className:"recharts-errorBars"},y)}}])})(O.Component);sC(no,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});sC(no,"displayName","ErrorBar");function _s(e){"@babel/helpers - typeof";return _s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_s(e)}function nS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function si(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nS(Object(r),!0).forEach(function(n){SU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SU(e,t,r){return t=OU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OU(e){var t=AU(e,"string");return _s(t)=="symbol"?t:t+""}function AU(e,t){if(_s(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=ur(r,Ai);if(!o)return null;var s=Ai.defaultProps,u=s!==void 0?si(si({},s),o.props):{},l;return o.props&&o.props.payload?l=o.props&&o.props.payload:a==="children"?l=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):l=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?si(si({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:u.iconType||d||"square",color:Ug(f),value:m||y,payload:p}}),si(si(si({},u),Ai.getWithHeight(o,i)),{},{payload:l,item:o})};function xs(e){"@babel/helpers - typeof";return xs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xs(e)}function iS(e){return CU(e)||EU(e)||TU(e)||PU()}function PU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TU(e,t){if(e){if(typeof e=="string")return Cy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cy(e,t)}}function EU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CU(e){if(Array.isArray(e))return Cy(e)}function Cy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function aS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aS(Object(r),!0).forEach(function(n){pa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pa(e,t,r){return t=MU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MU(e){var t=kU(e,"string");return xs(t)=="symbol"?t:t+""}function kU(e,t){if(xs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _e(e,t,r){return yt(e)||yt(t)?r:be(t)?Er(e,t,r):bt(t)?t(e):r}function zo(e,t,r,n){var i=xE(e,function(s){return _e(s,t)});if(r==="number"){var a=i.filter(function(s){return nt(s)||parseFloat(s)});return a.length?[yc(a),qn(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!yt(s)}):i;return o.map(function(s){return be(s)||s instanceof Date?s:""})}var $U=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var u=a.range,l=0;l<s;l++){var c=l>0?i[l-1].coordinate:i[s-1].coordinate,f=i[l].coordinate,h=l>=s-1?i[0].coordinate:i[l+1].coordinate,p=void 0;if(Lr(f-c)!==Lr(h-f)){var y=[];if(Lr(h-f)===Lr(u[1]-u[0])){p=h;var m=f+u[1]-u[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+u[1]-u[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var g=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[l].index;break}}else{var _=Math.min(c,h),b=Math.max(c,h);if(t>(_+f)/2&&t<=(b+f)/2){o=i[l].index;break}}}else for(var x=0;x<s;x++)if(x===0&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x>0&&x<s-1&&t>(n[x].coordinate+n[x-1].coordinate)/2&&t<=(n[x].coordinate+n[x+1].coordinate)/2||x===s-1&&t>(n[x].coordinate+n[x-1].coordinate)/2){o=n[x].index;break}return o},Ug=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ae(ae({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,u;switch(i){case"Line":u=o;break;case"Area":case"Radar":u=o&&o!=="none"?o:s;break;default:u=s;break}return u},jU=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),u=0,l=s.length;u<l;u++)for(var c=a[s[u]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,g=m.filter(function(S){return bn(S.type).indexOf("Bar")>=0});if(g&&g.length){var _=g[0].type.defaultProps,b=_!==void 0?ae(ae({},_),g[0].props):g[0].props,x=b.barSize,v=b[d];o[v]||(o[v]=[]);var w=yt(x)?r:x;o[v].push({item:g[0],stackList:g.slice(1),barSize:yt(w)?void 0:ji(w,n,0)})}}return o},RU=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,u=o.length;if(u<1)return null;var l=ji(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/u,y=o.reduce(function(x,v){return x+v.barSize||0},0);y+=(u-1)*l,y>=i&&(y-=(u-1)*l,l=0),y>=i&&p>0&&(h=!0,p*=.9,y=u*p);var m=(i-y)/2>>0,d={offset:m-l,size:0};c=o.reduce(function(x,v){var w={item:v.item,position:{offset:d.offset+d.size+l,size:h?p:v.barSize}},S=[].concat(iS(x),[w]);return d=S[S.length-1].position,v.stackList&&v.stackList.length&&v.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var g=ji(n,i,0,!0);i-2*g-(u-1)*l<=0&&(l=0);var _=(i-2*g-(u-1)*l)/u;_>1&&(_>>=0);var b=s===+s?Math.min(_,s):_;c=o.reduce(function(x,v,w){var S=[].concat(iS(x),[{item:v.item,position:{offset:g+(_+l)*w+(_-b)/2,size:b}}]);return v.stackList&&v.stackList.length&&v.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},DU=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,u=o-(s.left||0)-(s.right||0),l=lC({children:a,legendWidth:u});if(l){var c=i||{},f=c.width,h=c.height,p=l.align,y=l.verticalAlign,m=l.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&nt(t[p]))return ae(ae({},t),{},pa({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&nt(t[y]))return ae(ae({},t),{},pa({},y,t[y]+(h||0)))}return t},IU=function(t,r,n){return yt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},cC=function(t,r,n,i,a){var o=r.props.children,s=tr(o,no).filter(function(l){return IU(i,a,l.props.direction)});if(s&&s.length){var u=s.map(function(l){return l.props.dataKey});return t.reduce(function(l,c){var f=_e(c,n);if(yt(f))return l;var h=Array.isArray(f)?[yc(f),qn(f)]:[f,f],p=u.reduce(function(y,m){var d=_e(c,m,0),g=h[0]-Math.abs(Array.isArray(d)?d[0]:d),_=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(g,y[0]),Math.max(_,y[1])]},[1/0,-1/0]);return[Math.min(p[0],l[0]),Math.max(p[1],l[1])]},[1/0,-1/0])}return null},NU=function(t,r,n,i,a){var o=r.map(function(s){return cC(t,s,n,a,i)}).filter(function(s){return!yt(s)});return o&&o.length?o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]):null},fC=function(t,r,n,i,a){var o=r.map(function(u){var l=u.props.dataKey;return n==="number"&&l&&cC(t,u,l,i)||zo(t,l,n,a)});if(n==="number")return o.reduce(function(u,l){return[Math.min(u[0],l[0]),Math.max(u[1],l[1])]},[1/0,-1/0]);var s={};return o.reduce(function(u,l){for(var c=0,f=l.length;c<f;c++)s[l[c]]||(s[l[c]]=!0,u.push(l[c]));return u},[])},hC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},pC=function(t,r,n,i){if(i)return t.map(function(u){return u.coordinate});var a,o,s=t.map(function(u){return u.coordinate===r&&(a=!0),u.coordinate===n&&(o=!0),u.coordinate});return a||s.push(r),o||s.push(n),s},gn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,u=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,l=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/u:0;if(l=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?Lr(s[0]-s[1])*2*l:l,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+l,value:f,offset:l}});return c.filter(function(f){return!to(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+l,value:f,index:h,offset:l}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+l,value:f,offset:l}}):i.domain().map(function(f,h){return{coordinate:i(f)+l,value:a?a[f]:f,index:h,offset:l}})},zd=new WeakMap,vu=function(t,r){if(typeof r!="function")return t;zd.has(t)||zd.set(t,new WeakMap);var n=zd.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},LU=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Qo(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Mi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:$o(),realScaleType:"point"}:a==="category"?{scale:Qo(),realScaleType:"band"}:{scale:Mi(),realScaleType:"linear"};if($i(i)){var u="scale".concat(pc(i));return{scale:(Hw[u]||$o)(),realScaleType:Hw[u]?u:"point"}}return bt(i)?{scale:i}:{scale:$o(),realScaleType:"point"}},oS=1e-4,BU=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-oS,o=Math.max(i[0],i[1])+oS,s=t(r[0]),u=t(r[n-1]);(s<a||s>o||u<a||u>o)&&t.domain([r[0],r[n-1]])}},qU=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},FU=function(t,r){if(!r||r.length!==2||!nt(r[0])||!nt(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!nt(t[0])||t[0]<n)&&(a[0]=n),(!nt(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},zU=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var u=to(t[s][n][1])?t[s][n][0]:t[s][n][1];u>=0?(t[s][n][0]=a,t[s][n][1]=a+u,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+u,o=t[s][n][1])}},UU=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=to(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},WU={sign:zU,expand:ZD,none:ba,silhouette:JD,wiggle:QD,positive:UU},GU=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=WU[n],o=Zu().keys(i).value(function(s,u){return+_e(s,u,0)}).order(Nm).offset(a);return o(t)},HU=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,u={},l=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ae(ae({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var g=y[n],_=f[g]||{hasStack:!1,stackGroups:{}};if(be(m)){var b=_.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),_.hasStack=!0,_.stackGroups[m]=b}else _.stackGroups[Ui("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ae(ae({},f),{},pa({},g,_))},u),c={};return Object.keys(l).reduce(function(f,h){var p=l[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var g=p.stackGroups[d];return ae(ae({},m),{},pa({},d,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:GU(t,g.items,a)}))},y)}return ae(ae({},f),{},pa({},h,p))},c)},KU=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,u=n||r.scale;if(u!=="auto"&&u!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var l=t.domain();if(!l.length)return null;var c=iU(l,a,s);return t.domain([yc(c),qn(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=aU(f,a,s);return{niceTicks:h}}return null};function ka(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!yt(i[t.dataKey])){var s=ol(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var u=_e(i,yt(o)?t.dataKey:o);return yt(u)?null:t.scale(u)}var sS=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var u=_e(o,r.dataKey,r.domain[s]);return yt(u)?null:r.scale(u)-a/2+i},YU=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},XU=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ae(ae({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(be(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},VU=function(t){return t.reduce(function(r,n){return[yc(n.concat([r[0]]).filter(nt)),qn(n.concat([r[1]]).filter(nt))]},[1/0,-1/0])},dC=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,u=s.reduce(function(l,c){var f=VU(c.slice(r,n+1));return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(u[0],i[0]),Math.max(u[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},uS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,My=function(t,r,n){if(bt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(nt(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(uS.test(t[0])){var a=+uS.exec(t[0])[1];i[0]=r[0]-a}else bt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(nt(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(lS.test(t[1])){var o=+lS.exec(t[1])[1];i[1]=r[1]+o}else bt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},vl=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=hc(r,function(f){return f.coordinate}),o=1/0,s=1,u=a.length;s<u;s++){var l=a[s],c=a[s-1];o=Math.min((l.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},cS=function(t,r,n){return!t||!t.length||Ri(t,Er(n,"type.defaultProps.domain"))?r:t},mC=function(t,r){var n=t.type.defaultProps?ae(ae({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,u=n.tooltipType,l=n.chartType,c=n.hide;return ae(ae({},gt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:Ug(t),value:_e(r,i),type:u,payload:r,chartType:l,hide:c})};function ws(e){"@babel/helpers - typeof";return ws=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ws(e)}function fS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fS(Object(r),!0).forEach(function(n){ZU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZU(e,t,r){return t=JU(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JU(e){var t=QU(e,"string");return ws(t)=="symbol"?t:t+""}function QU(e,t){if(ws(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ws(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gl=Math.PI/180,tW=function(t){return t*180/Math.PI},Ee=function(t,r,n,i){return{x:t+Math.cos(-gl*i)*n,y:r+Math.sin(-gl*i)*n}},eW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},rW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=eW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var u=(n-a)/s,l=Math.acos(u);return i>o&&(l=2*Math.PI-l),{radius:s,angle:tW(l),angleInRadian:l}},nW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},iW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},pS=function(t,r){var n=t.x,i=t.y,a=rW({x:n,y:i},r),o=a.radius,s=a.angle,u=r.innerRadius,l=r.outerRadius;if(o<u||o>l)return!1;if(o===0)return!0;var c=nW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?hS(hS({},r),{},{radius:o,angle:iW(p,r)}):null};function Ss(e){"@babel/helpers - typeof";return Ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ss(e)}var aW=["offset"];function oW(e){return cW(e)||lW(e)||uW(e)||sW()}function sW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uW(e,t){if(e){if(typeof e=="string")return ky(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ky(e,t)}}function lW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(e){if(Array.isArray(e))return ky(e)}function ky(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fW(e,t){if(e==null)return{};var r=hW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dS(Object(r),!0).forEach(function(n){pW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pW(e,t,r){return t=dW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dW(e){var t=mW(e,"string");return Ss(t)=="symbol"?t:t+""}function mW(e,t){if(Ss(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ss(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(this,arguments)}var yW=function(t){var r=t.value,n=t.formatter,i=yt(t.children)?r:t.children;return bt(n)?n(i):i},vW=function(t,r){var n=Lr(r-t),i=Math.min(Math.abs(r-t),360);return n*i},gW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,u=a,l=u.cx,c=u.cy,f=u.innerRadius,h=u.outerRadius,p=u.startAngle,y=u.endAngle,m=u.clockWise,d=(f+h)/2,g=vW(p,y),_=g>=0?1:-1,b,x;i==="insideStart"?(b=p+_*o,x=m):i==="insideEnd"?(b=y-_*o,x=!m):i==="end"&&(b=y+_*o,x=m),x=g<=0?x:!x;var v=Ee(l,c,d,b),w=Ee(l,c,d,b+(x?1:-1)*359),S="M".concat(v.x,",").concat(v.y,`
99
- A`).concat(d,",").concat(d,",0,1,").concat(x?0:1,`,
100
- `).concat(w.x,",").concat(w.y),A=yt(t.id)?Ui("recharts-radial-line-"):t.id;return O.createElement("text",Os({},n,{dominantBaseline:"central",className:At("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},bW=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,u=a.innerRadius,l=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=Ee(o,s,l+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(u+l)/2,g=Ee(o,s,d,h),_=g.x,b=g.y;return{x:_,y:b,textAnchor:"middle",verticalAnchor:"middle"}},_W=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,u=o.y,l=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=l>=0?1:-1,d=m*i,g=m>0?"end":"start",_=m>0?"start":"end";if(a==="top"){var b={x:s+l/2,y:u-f*i,textAnchor:"middle",verticalAnchor:p};return ge(ge({},b),n?{height:Math.max(u-n.y,0),width:l}:{})}if(a==="bottom"){var x={x:s+l/2,y:u+c+h,textAnchor:"middle",verticalAnchor:y};return ge(ge({},x),n?{height:Math.max(n.y+n.height-(u+c),0),width:l}:{})}if(a==="left"){var v={x:s-d,y:u+c/2,textAnchor:g,verticalAnchor:"middle"};return ge(ge({},v),n?{width:Math.max(v.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+l+d,y:u+c/2,textAnchor:_,verticalAnchor:"middle"};return ge(ge({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:l,height:c}:{};return a==="insideLeft"?ge({x:s+d,y:u+c/2,textAnchor:_,verticalAnchor:"middle"},S):a==="insideRight"?ge({x:s+l-d,y:u+c/2,textAnchor:g,verticalAnchor:"middle"},S):a==="insideTop"?ge({x:s+l/2,y:u+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?ge({x:s+l/2,y:u+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?ge({x:s+d,y:u+h,textAnchor:_,verticalAnchor:y},S):a==="insideTopRight"?ge({x:s+l-d,y:u+h,textAnchor:g,verticalAnchor:y},S):a==="insideBottomLeft"?ge({x:s+d,y:u+c-h,textAnchor:_,verticalAnchor:p},S):a==="insideBottomRight"?ge({x:s+l-d,y:u+c-h,textAnchor:g,verticalAnchor:p},S):Qa(a)&&(nt(a.x)||vi(a.x))&&(nt(a.y)||vi(a.y))?ge({x:s+ji(a.x,l),y:u+ji(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):ge({x:s+l/2,y:u+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},xW=function(t){return"cx"in t&&nt(t.cx)};function Re(e){var t=e.offset,r=t===void 0?5:t,n=fW(e,aW),i=ge({offset:r},n),a=i.viewBox,o=i.position,s=i.value,u=i.children,l=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||yt(s)&&yt(u)&&!O.isValidElement(l)&&!bt(l))return null;if(O.isValidElement(l))return O.cloneElement(l,i);var p;if(bt(l)){if(p=O.createElement(l,i),O.isValidElement(p))return p}else p=yW(i);var y=xW(a),m=gt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return gW(i,p,m);var d=y?bW(i):_W(i);return O.createElement(pl,Os({className:At("recharts-label",f)},m,d,{breakAll:h}),p)}Re.displayName="Label";var yC=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,u=t.radius,l=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,g=t.clockWise,_=t.labelViewBox;if(_)return _;if(nt(m)&&nt(d)){if(nt(f)&&nt(h))return{x:f,y:h,width:m,height:d};if(nt(p)&&nt(y))return{x:p,y,width:m,height:d}}return nt(f)&&nt(h)?{x:f,y:h,width:0,height:0}:nt(r)&&nt(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:l||0,outerRadius:c||u||s||0,clockWise:g}:t.viewBox?t.viewBox:{}},wW=function(t,r){return t?t===!0?O.createElement(Re,{key:"label-implicit",viewBox:r}):be(t)?O.createElement(Re,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===Re?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(Re,{key:"label-implicit",content:t,viewBox:r}):bt(t)?O.createElement(Re,{key:"label-implicit",content:t,viewBox:r}):Qa(t)?O.createElement(Re,Os({viewBox:r},t,{key:"label-implicit"})):null:null},SW=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=yC(t),o=tr(i,Re).map(function(u,l){return O.cloneElement(u,{viewBox:r||a,key:"label-".concat(l)})});if(!n)return o;var s=wW(t.label,r||a);return[s].concat(oW(o))};Re.parseViewBox=yC;Re.renderCallByParent=SW;var Ud,mS;function OW(){if(mS)return Ud;mS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Ud=e,Ud}var AW=OW();const PW=zt(AW);function As(e){"@babel/helpers - typeof";return As=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},As(e)}var TW=["valueAccessor"],EW=["data","dataKey","clockWise","id","textBreakAll"];function CW(e){return jW(e)||$W(e)||kW(e)||MW()}function MW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kW(e,t){if(e){if(typeof e=="string")return $y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $y(e,t)}}function $W(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jW(e){if(Array.isArray(e))return $y(e)}function $y(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bl(){return bl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bl.apply(this,arguments)}function yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){RW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RW(e,t,r){return t=DW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DW(e){var t=IW(e,"string");return As(t)=="symbol"?t:t+""}function IW(e,t){if(As(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(As(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gS(e,t){if(e==null)return{};var r=NW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function NW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var LW=function(t){return Array.isArray(t.value)?PW(t.value):t.value};function tn(e){var t=e.valueAccessor,r=t===void 0?LW:t,n=gS(e,TW),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,u=n.textBreakAll,l=gS(n,EW);return!i||!i.length?null:O.createElement(Rt,{className:"recharts-label-list"},i.map(function(c,f){var h=yt(a)?r(c,f):_e(c&&c.payload,a),p=yt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(Re,bl({},gt(c,!0),l,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:u,viewBox:Re.parseViewBox(yt(o)?c:vS(vS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}tn.displayName="LabelList";function BW(e,t){return e?e===!0?O.createElement(tn,{key:"labelList-implicit",data:t}):O.isValidElement(e)||bt(e)?O.createElement(tn,{key:"labelList-implicit",data:t,content:e}):Qa(e)?O.createElement(tn,bl({data:t},e,{key:"labelList-implicit"})):null:null}function qW(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=tr(n,tn).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=BW(e.label,t);return[a].concat(CW(i))}tn.renderCallByParent=qW;function Ps(e){"@babel/helpers - typeof";return Ps=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ps(e)}function jy(){return jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jy.apply(this,arguments)}function bS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _S(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bS(Object(r),!0).forEach(function(n){FW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FW(e,t,r){return t=zW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zW(e){var t=UW(e,"string");return Ps(t)=="symbol"?t:t+""}function UW(e,t){if(Ps(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ps(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WW=function(t,r){var n=Lr(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},gu=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,u=t.cornerRadius,l=t.cornerIsExternal,c=u*(s?1:-1)+i,f=Math.asin(u/c)/gl,h=l?a:a+o*f,p=Ee(r,n,c,h),y=Ee(r,n,i,h),m=l?a-o*f:a,d=Ee(r,n,c*Math.cos(f*gl),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},vC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,u=WW(o,s),l=o+u,c=Ee(r,n,a,o),f=Ee(r,n,a,l),h="M ".concat(c.x,",").concat(c.y,`
90
+ height and width.`,j,R,o,l,c,f,r);var L=!Array.isArray(p)&&zn(p.type).endsWith("Chart");return O.Children.map(p,function(z){return O.isValidElement(z)?O.cloneElement(z,Xl({width:j,height:R},L?{style:Xl({height:"100%",width:"100%",maxHeight:R,maxWidth:j},z.props.style)}:{})):z})},[r,p,l,h,f,c,T,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:Ot("recharts-responsive-container",v),style:Xl(Xl({},_),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),w0=function(t){return null};w0.displayName="Cell";function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}function yS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ng(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yS(Object(r),!0).forEach(function(n){E3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E3(e,t,r){return t=C3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C3(e){var t=M3(e,"string");return Zs(t)=="symbol"?t:t+""}function M3(e,t){if(Zs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ca={widthCache:{},cacheCount:0},k3=2e3,$3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},gS="recharts_measurement_span";function j3(e){var t=ng({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var ws=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ai.isSsr)return{width:0,height:0};var n=j3(r),i=JSON.stringify({text:t,copyStyle:n});if(Ca.widthCache[i])return Ca.widthCache[i];try{var a=document.getElementById(gS);a||(a=document.createElement("span"),a.setAttribute("id",gS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=ng(ng({},$3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Ca.widthCache[i]=l,++Ca.cacheCount>k3&&(Ca.cacheCount=0,Ca.widthCache={}),l}catch{return{width:0,height:0}}},R3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function Hu(e,t){return L3(e)||N3(e,t)||I3(e,t)||D3()}function D3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
91
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I3(e,t){if(e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function L3(e){if(Array.isArray(e))return e}function B3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,F3(n.key),n)}}function q3(e,t,r){return t&&bS(e.prototype,t),r&&bS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F3(e){var t=z3(e,"string");return Js(t)=="symbol"?t:t+""}function z3(e,t){if(Js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,U3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,W3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,AC={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},H3=Object.keys(AC),Da="NaN";function G3(e,t){return e*AC[t]}var Yl=(function(){function e(t,r){B3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!U3.test(r)&&(this.num=NaN,this.unit=""),H3.includes(r)&&(this.num=G3(t,r),this.unit="px")}return q3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=W3.exec(r))!==null&&n!==void 0?n:[],a=Hu(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function OC(e){if(e.includes(Da))return Da;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_S.exec(t))!==null&&r!==void 0?r:[],i=Hu(n,4),a=i[1],o=i[2],s=i[3],l=Yl.parse(a??""),u=Yl.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return Da;t=t.replace(_S,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=xS.exec(t))!==null&&f!==void 0?f:[],p=Hu(h,4),y=p[1],m=p[2],d=p[3],v=Yl.parse(y??""),x=Yl.parse(d??""),b=m==="+"?v.add(x):v.subtract(x);if(b.isNaN())return Da;t=t.replace(xS,b.toString())}return t}var wS=/\(([^()]*)\)/;function K3(e){for(var t=e;t.includes("(");){var r=wS.exec(t),n=Hu(r,2),i=n[1];t=t.replace(wS,OC(i))}return t}function X3(e){var t=e.replace(/\s+/g,"");return t=K3(t),t=OC(t),t}function Y3(e){try{return X3(e)}catch{return Da}}function ym(e){var t=Y3(e.slice(5,-1));return t===Da?"":t}var V3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Z3=["dx","dy","angle","className","breakAll"];function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ig.apply(this,arguments)}function SS(e,t){if(e==null)return{};var r=J3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function J3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function AS(e,t){return rU(e)||eU(e,t)||tU(e,t)||Q3()}function Q3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
92
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tU(e,t){if(e){if(typeof e=="string")return OS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OS(e,t)}}function OS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function rU(e){if(Array.isArray(e))return e}var TC=/[ \f\n\r\t\v\u2028\u2029]+/,PC=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];gt(r)||(n?a=r.toString().split(""):a=r.toString().split(TC));var o=a.map(function(l){return{word:l,width:ws(l,i).width}}),s=n?0:ws(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},nU=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=it(o),f=s,h=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(R,L){var z=L.word,W=L.width,I=R[R.length-1];if(I&&(i==null||a||I.width+W+n<Number(i)))I.words.push(z),I.width+=W+n;else{var D={words:[z],width:W};R.push(D)}return R},[])},p=h(r),y=function(j){return j.reduce(function(R,L){return R.width>L.width?R:L})};if(!c)return p;for(var m="…",d=function(j){var R=f.slice(0,j),L=PC({breakAll:u,style:l,children:R+m}).wordsWithComputedWidth,z=h(L),W=z.length>o||y(z).width>Number(i);return[W,z]},v=0,x=f.length-1,b=0,_;v<=x&&b<=f.length-1;){var g=Math.floor((v+x)/2),w=g-1,S=d(w),A=AS(S,2),T=A[0],M=A[1],P=d(g),E=AS(P,1),C=E[0];if(!T&&!C&&(v=g+1),T&&C&&(x=g-1),!T&&C){_=M;break}b++}return _||p},TS=function(t){var r=gt(t)?[]:t.toString().split(TC);return[{words:r}]},iU=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!Ai.isSsr){var l,u,c=PC({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;l=f,u=h}else return TS(i);return nU({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return TS(i)},PS="#808080",Gu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,v=d===void 0?PS:d,x=SS(t,V3),b=O.useMemo(function(){return iU({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:f,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,f,x.style,x.width]),_=x.dx,g=x.dy,w=x.angle,S=x.className,A=x.breakAll,T=SS(x,Z3);if(!Ae(n)||!Ae(a))return null;var M=n+(it(_)?_:0),P=a+(it(g)?g:0),E;switch(m){case"start":E=ym("calc(".concat(u,")"));break;case"middle":E=ym("calc(".concat((b.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=ym("calc(".concat(b.length-1," * -").concat(s,")"));break}var C=[];if(f){var k=b[0].width,j=x.width;C.push("scale(".concat((it(j)?j/k:1)/k,")"))}return w&&C.push("rotate(".concat(w,", ").concat(M,", ").concat(P,")")),C.length&&(T.transform=C.join(" ")),O.createElement("text",ig({},vt(T,!0),{x:M,y:P,className:Ot("recharts-text",S),textAnchor:p,fill:v.includes("url")?PS:v}),b.map(function(R,L){var z=R.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:L===0?E:s,key:"".concat(z,"-").concat(L)},z)}))};const ES=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Rs,scaleDiverging:WT,scaleDivergingLog:HT,scaleDivergingPow:Pv,scaleDivergingSqrt:QD,scaleDivergingSymlog:GT,scaleIdentity:AT,scaleImplicit:dy,scaleLinear:aa,scaleLog:TT,scaleOrdinal:cv,scalePoint:hs,scalePow:gv,scaleQuantile:CT,scaleQuantize:MT,scaleRadial:ET,scaleSequential:qT,scaleSequentialLog:FT,scaleSequentialPow:Tv,scaleSequentialQuantile:UT,scaleSequentialSqrt:JD,scaleSequentialSymlog:zT,scaleSqrt:RR,scaleSymlog:PT,scaleThreshold:kT,scaleTime:Au,scaleUtc:ZD,tickFormat:ST},Symbol.toStringTag,{value:"Module"}));var gm,CS;function EC(){if(CS)return gm;CS=1;var e=ko();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return gm=t,gm}var vm,MS;function aU(){if(MS)return vm;MS=1;function e(t,r){return t>r}return vm=e,vm}var bm,kS;function oU(){if(kS)return bm;kS=1;var e=EC(),t=aU(),r=$o();function n(i){return i&&i.length?e(i,r,t):void 0}return bm=n,bm}var sU=oU();const fi=Lt(sU);var _m,$S;function lU(){if($S)return _m;$S=1;function e(t,r){return t<r}return _m=e,_m}var xm,jS;function uU(){if(jS)return xm;jS=1;var e=EC(),t=lU(),r=$o();function n(i){return i&&i.length?e(i,r,t):void 0}return xm=n,xm}var cU=uU();const Xc=Lt(cU);var wm,RS;function fU(){if(RS)return wm;RS=1;var e=y0();function t(r,n){return e(r,n)}return wm=t,wm}var hU=fU();const ca=Lt(hU);var Do=1e9,pU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},A0,re=!0,Ur="[DecimalError] ",ea=Ur+"Invalid argument: ",S0=Ur+"Exponent out of range: ",Io=Math.floor,qi=Math.pow,dU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Tr,ke=1e7,Zt=7,CC=9007199254740991,Ku=Io(CC/Zt),ft={};ft.absoluteValue=ft.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ft.comparedTo=ft.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ft.decimalPlaces=ft.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Zt;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ft.dividedBy=ft.div=function(e){return Wn(this,new this.constructor(e))};ft.dividedToIntegerBy=ft.idiv=function(e){var t=this,r=t.constructor;return Wt(Wn(t,new r(e),0,1),r.precision)};ft.equals=ft.eq=function(e){return!this.cmp(e)};ft.exponent=function(){return ve(this)};ft.greaterThan=ft.gt=function(e){return this.cmp(e)>0};ft.greaterThanOrEqualTo=ft.gte=function(e){return this.cmp(e)>=0};ft.isInteger=ft.isint=function(){return this.e>this.d.length-2};ft.isNegative=ft.isneg=function(){return this.s<0};ft.isPositive=ft.ispos=function(){return this.s>0};ft.isZero=function(){return this.s===0};ft.lessThan=ft.lt=function(e){return this.cmp(e)<0};ft.lessThanOrEqualTo=ft.lte=function(e){return this.cmp(e)<1};ft.logarithm=ft.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Tr))throw Error(Ur+"NaN");if(r.s<1)throw Error(Ur+(r.s?"NaN":"-Infinity"));return r.eq(Tr)?new n(0):(re=!1,t=Wn(Qs(r,a),Qs(e,a),a),re=!0,Wt(t,i))};ft.minus=ft.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$C(t,e):MC(t,(e.s=-e.s,e))};ft.modulo=ft.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(Ur+"NaN");return r.s?(re=!1,t=Wn(r,e,0,1).times(e),re=!0,r.minus(t)):Wt(new n(r),i)};ft.naturalExponential=ft.exp=function(){return kC(this)};ft.naturalLogarithm=ft.ln=function(){return Qs(this)};ft.negated=ft.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ft.plus=ft.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MC(t,e):$C(t,(e.s=-e.s,e))};ft.precision=ft.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ea+e);if(t=ve(i)+1,n=i.d.length-1,r=n*Zt+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ft.squareRoot=ft.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(Ur+"NaN")}for(e=ve(s),re=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=xn(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Io((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Wn(s,a,o+2)).times(.5),xn(a.d).slice(0,o)===(t=xn(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(Wt(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return re=!0,Wt(n,r)};ft.times=ft.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=h.length,u=p.length,l<u&&(a=h,h=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%ke|0,t=s/ke|0;a[i]=(a[i]+t)%ke|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,re?Wt(e,f.precision):e};ft.toDecimalPlaces=ft.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Pn(e,0,Do),t===void 0?t=n.rounding:Pn(t,0,8),Wt(r,e+ve(r)+1,t))};ft.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=fa(n,!0):(Pn(e,0,Do),t===void 0?t=i.rounding:Pn(t,0,8),n=Wt(new i(n),e+1,t),r=fa(n,!0,e+1)),r};ft.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?fa(i):(Pn(e,0,Do),t===void 0?t=a.rounding:Pn(t,0,8),n=Wt(new a(i),e+ve(i)+1,t),r=fa(n.abs(),!1,e+ve(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ft.toInteger=ft.toint=function(){var e=this,t=e.constructor;return Wt(new t(e),ve(e)+1,t.rounding)};ft.toNumber=function(){return+this};ft.toPower=ft.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Tr);if(s=new l(s),!s.s){if(e.s<1)throw Error(Ur+"Infinity");return s}if(s.eq(Tr))return s;if(n=l.precision,e.eq(Tr))return Wt(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=CC){for(i=new l(Tr),t=Math.ceil(n/Zt+4),re=!1;r%2&&(i=i.times(s),IS(i.d,t)),r=Io(r/2),r!==0;)s=s.times(s),IS(s.d,t);return re=!0,e.s<0?new l(Tr).div(i):Wt(i,n)}}else if(a<0)throw Error(Ur+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,re=!1,i=e.times(Qs(s,n+u)),re=!0,i=kC(i),i.s=a,i};ft.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=ve(i),n=fa(i,r<=a.toExpNeg||r>=a.toExpPos)):(Pn(e,1,Do),t===void 0?t=a.rounding:Pn(t,0,8),i=Wt(new a(i),e,t),r=ve(i),n=fa(i,e<=r||r<=a.toExpNeg,e)),n};ft.toSignificantDigits=ft.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Pn(e,1,Do),t===void 0?t=n.rounding:Pn(t,0,8)),Wt(new n(r),e,t)};ft.toString=ft.valueOf=ft.val=ft.toJSON=ft[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ve(e),r=e.constructor;return fa(e,t<=r.toExpNeg||t>=r.toExpPos)};function MC(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),re?Wt(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/Zt),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/ke|0,l[a]%=ke;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,re?Wt(t,f):t}function Pn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(ea+e)}function xn(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=Zt-n.length,r&&(a+=oi(r)),a+=n;o=e[t],n=o+"",r=Zt-n.length,r&&(a+=oi(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Wn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%ke|0,o=a/ke|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*ke+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,h,p,y,m,d,v,x,b,_,g,w,S,A,T=n.constructor,M=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(Ur+"Division by zero");for(l=n.e-i.e,S=E.length,g=P.length,p=new T(M),y=p.d=[],u=0;E[u]==(P[u]||0);)++u;if(E[u]>(P[u]||0)&&--l,a==null?x=a=T.precision:o?x=a+(ve(n)-ve(i))+1:x=a,x<0)return new T(0);if(x=x/Zt+2|0,u=0,S==1)for(c=0,E=E[0],x++;(u<g||c)&&x--;u++)b=c*ke+(P[u]||0),y[u]=b/E|0,c=b%E|0;else{for(c=ke/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),_=S,m=P.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=ke/2&&++w;do c=0,s=t(E,m,S,d),s<0?(v=m[0],S!=d&&(v=v*ke+(m[1]||0)),c=v/w|0,c>1?(c>=ke&&(c=ke-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[u++]=c,s&&m[0]?m[d++]=P[_]||0:(m=[P[_]],d=1);while((_++<g||m[0]!==void 0)&&x--)}return y[0]||y.shift(),p.e=l,Wt(p,o?a+ve(p)+1:a)}})();function kC(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if(ve(e)>16)throw Error(S0+ve(e));if(!e.s)return new c(Tr);for(re=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(qi(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Tr),c.precision=s;;){if(i=Wt(i.times(e),s),r=r.times(++l),o=a.plus(Wn(i,r,s)),xn(o.d).slice(0,s)===xn(a.d).slice(0,s)){for(;u--;)a=Wt(a.times(a),s);return c.precision=f,t==null?(re=!0,Wt(a,f)):a}a=o}}function ve(e){for(var t=e.e*Zt,r=e.d[0];r>=10;r/=10)t++;return t}function Sm(e,t,r){if(t>e.LN10.sd())throw re=!0,r&&(e.precision=r),Error(Ur+"LN10 precision limit exceeded");return Wt(new e(e.LN10),t)}function oi(e){for(var t="";e--;)t+="0";return t}function Qs(e,t){var r,n,i,a,o,s,l,u,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(Ur+(p.s?"NaN":"-Infinity"));if(p.eq(Tr))return new m(0);if(t==null?(re=!1,u=d):u=t,p.eq(10))return t==null&&(re=!0),Sm(m,u);if(u+=h,m.precision=u,r=xn(y),n=r.charAt(0),a=ve(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=xn(p.d),n=r.charAt(0),f++;a=ve(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=Sm(m,u+2,d).times(a+""),p=Qs(new m(n+"."+r.slice(1)),u-h).plus(l),m.precision=d,t==null?(re=!0,Wt(p,d)):p;for(s=o=p=Wn(p.minus(Tr),p.plus(Tr),u),c=Wt(p.times(p),u),i=3;;){if(o=Wt(o.times(c),u),l=s.plus(Wn(o,new m(i),u)),xn(l.d).slice(0,u)===xn(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(Sm(m,u+2,d).times(a+""))),s=Wn(s,new m(f),u),m.precision=d,t==null?(re=!0,Wt(s,d)):s;s=l,i+=2}}function DS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Io(r/Zt),e.d=[],n=(r+1)%Zt,r<0&&(n+=Zt),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=Zt;n<i;)e.d.push(+t.slice(n,n+=Zt));t=t.slice(n),n=Zt-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),re&&(e.e>Ku||e.e<-Ku))throw Error(S0+r)}else e.s=0,e.e=0,e.d=[0];return e}function Wt(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=Zt,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/Zt),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=Zt,i=n-Zt+o}if(r!==void 0&&(a=qi(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/qi(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=ve(e),f.length=1,t=t-a-1,f[0]=qi(10,(Zt-t%Zt)%Zt),e.e=Io(-t/Zt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=qi(10,Zt-n),f[c]=i>0?(u/qi(10,o-i)%qi(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==ke&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=ke)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(re&&(e.e>Ku||e.e<-Ku))throw Error(S0+ve(e));return e}function $C(e,t){var r,n,i,a,o,s,l,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),re?Wt(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/Zt),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=ke-1;--l[a],l[i]+=ke}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,re?Wt(t,p):t):new h(0)}function fa(e,t,r){var n,i=ve(e),a=xn(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+oi(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+oi(-i-1)+a,r&&(n=r-o)>0&&(a+=oi(n))):i>=o?(a+=oi(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+oi(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=oi(n))),e.s<0?"-"+a:a}function IS(e,t){if(e.length>t)return e.length=t,!0}function jC(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(ea+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return DS(o,a.toString())}else if(typeof a!="string")throw Error(ea+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,dU.test(a))DS(o,a);else throw Error(ea+a)}if(i.prototype=ft,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=jC,i.config=i.set=mU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function mU(e){if(!e||typeof e!="object")throw Error(Ur+"Object expected");var t,r,n,i=["precision",1,Do,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Io(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(ea+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ea+r+": "+n);return this}var A0=jC(pU);Tr=new A0(1);const qt=A0;function yU(e){return _U(e)||bU(e)||vU(e)||gU()}function gU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
93
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vU(e,t){if(e){if(typeof e=="string")return ag(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ag(e,t)}}function bU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _U(e){if(Array.isArray(e))return ag(e)}function ag(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var xU=function(t){return t},RC={},DC=function(t){return t===RC},NS=function(t){return function r(){return arguments.length===0||arguments.length===1&&DC(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},wU=function e(t,r){return t===1?r:NS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==RC}).length;return o>=t?r.apply(void 0,i):e(t-o,NS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return DC(f)?l.shift():f});return r.apply(void 0,yU(c).concat(l))}))})},Yc=function(t){return wU(t.length,t)},og=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},SU=Yc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),AU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return xU;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},sg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},IC=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function OU(e){var t;return e===0?t=1:t=Math.floor(new qt(e).abs().log(10).toNumber())+1,t}function TU(e,t,r){for(var n=new qt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var PU=Yc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),EU=Yc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),CU=Yc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Vc={rangeStep:TU,getDigitCount:OU,interpolateNumber:PU,uninterpolateNumber:EU,uninterpolateTruncation:CU};function lg(e){return $U(e)||kU(e)||NC(e)||MU()}function MU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
94
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function $U(e){if(Array.isArray(e))return ug(e)}function tl(e,t){return DU(e)||RU(e,t)||NC(e,t)||jU()}function jU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
95
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e,t){if(e){if(typeof e=="string")return ug(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ug(e,t)}}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function DU(e){if(Array.isArray(e))return e}function LC(e){var t=tl(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function BC(e,t,r){if(e.lte(0))return new qt(0);var n=Vc.getDigitCount(e.toNumber()),i=new qt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new qt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new qt(Math.ceil(l))}function IU(e,t,r){var n=1,i=new qt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new qt(10).pow(Vc.getDigitCount(e)-1),i=new qt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new qt(Math.floor(e)))}else e===0?i=new qt(Math.floor((t-1)/2)):r||(i=new qt(Math.floor(e)));var o=Math.floor((t-1)/2),s=AU(SU(function(l){return i.add(new qt(l-o).mul(n)).toNumber()}),og);return s(0,t)}function qC(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new qt(0),tickMin:new qt(0),tickMax:new qt(0)};var a=BC(new qt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new qt(0):(o=new qt(e).add(t).div(2),o=o.sub(new qt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new qt(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?qC(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new qt(s).mul(a)),tickMax:o.add(new qt(l).mul(a))})}function NU(e){var t=tl(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=LC([r,n]),l=tl(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(lg(og(0,i-1).map(function(){return 1/0}))):[].concat(lg(og(0,i-1).map(function(){return-1/0})),[c]);return r>n?sg(f):f}if(u===c)return IU(u,i,a);var h=qC(u,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=Vc.rangeStep(y,m.add(new qt(.1).mul(p)),p);return r>n?sg(d):d}function LU(e,t){var r=tl(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=LC([n,i]),s=tl(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=BC(new qt(u).sub(l).div(c-1),a,0),h=[].concat(lg(Vc.rangeStep(new qt(l),new qt(u).sub(new qt(.99).mul(f)),f)),[u]);return n>i?sg(h):h}var BU=IC(NU),qU=IC(LU),FU=process.env.NODE_ENV==="production",Am="Invariant failed";function lr(e,t){if(FU)throw new Error(Am);var r=typeof t=="function"?t():t,n=r?"".concat(Am,": ").concat(r):Am;throw new Error(n)}var zU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function uo(e){"@babel/helpers - typeof";return uo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uo(e)}function Xu(){return Xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xu.apply(this,arguments)}function UU(e,t){return KU(e)||GU(e,t)||HU(e,t)||WU()}function WU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HU(e,t){if(e){if(typeof e=="string")return LS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LS(e,t)}}function LS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function KU(e){if(Array.isArray(e))return e}function XU(e,t){if(e==null)return{};var r=YU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UC(n.key),n)}}function JU(e,t,r){return t&&ZU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QU(e,t,r){return t=Yu(t),tW(e,FC()?Reflect.construct(t,r||[],Yu(e).constructor):t.apply(e,r))}function tW(e,t){if(t&&(uo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eW(e)}function eW(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FC=function(){return!!e})()}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Yu(e)}function rW(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cg(e,t)}function cg(e,t){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cg(e,t)}function zC(e,t,r){return t=UC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UC(e){var t=nW(e,"string");return uo(t)=="symbol"?t:t+""}function nW(e,t){if(uo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(uo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var No=(function(e){function t(){return VU(this,t),QU(this,t,arguments)}return rW(t,e),JU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=XU(n,zU),p=vt(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?lr(!1,'ErrorBar requires Axis type property to be "number".'):lr());var y=l.map(function(m){var d=u(m,s),v=d.x,x=d.y,b=d.value,_=d.errorVal;if(!_)return null;var g=[],w,S;if(Array.isArray(_)){var A=UU(_,2);w=A[0],S=A[1]}else w=S=_;if(a==="vertical"){var T=c.scale,M=x+i,P=M+o,E=M-o,C=T(b-w),k=T(b+S);g.push({x1:k,y1:P,x2:k,y2:E}),g.push({x1:C,y1:M,x2:k,y2:M}),g.push({x1:C,y1:P,x2:C,y2:E})}else if(a==="horizontal"){var j=f.scale,R=v+i,L=R-o,z=R+o,W=j(b-w),I=j(b+S);g.push({x1:L,y1:I,x2:z,y2:I}),g.push({x1:R,y1:W,x2:R,y2:I}),g.push({x1:L,y1:W,x2:z,y2:W})}return O.createElement(Mt,Xu({className:"recharts-errorBar",key:"bar-".concat(g.map(function(D){return"".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))},p),g.map(function(D){return O.createElement("line",Xu({},D,{key:"line-".concat(D.x1,"-").concat(D.x2,"-").concat(D.y1,"-").concat(D.y2)}))}))});return O.createElement(Mt,{className:"recharts-errorBars"},y)}}])})(O.Component);zC(No,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});zC(No,"displayName","ErrorBar");function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ni(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BS(Object(r),!0).forEach(function(n){iW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iW(e,t,r){return t=aW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aW(e){var t=oW(e,"string");return el(t)=="symbol"?t:t+""}function oW(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var WC=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Sr(r,ta);if(!o)return null;var s=ta.defaultProps,l=s!==void 0?Ni(Ni({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?Ni(Ni({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,v=p.hide;return{inactive:v,dataKey:y,type:l.iconType||d||"square",color:O0(f),value:m||y,payload:p}}),Ni(Ni(Ni({},l),ta.getWithHeight(o,i)),{},{payload:u,item:o})};function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function qS(e){return cW(e)||uW(e)||lW(e)||sW()}function sW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
97
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lW(e,t){if(e){if(typeof e=="string")return fg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fg(e,t)}}function uW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cW(e){if(Array.isArray(e))return fg(e)}function fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FS(Object(r),!0).forEach(function(n){Ga(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ga(e,t,r){return t=fW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fW(e){var t=hW(e,"string");return rl(t)=="symbol"?t:t+""}function hW(e,t){if(rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oe(e,t,r){return gt(e)||gt(t)?r:Ae(t)?zr(e,t,r):bt(t)?t(e):r}function Ss(e,t,r,n){var i=rC(e,function(s){return Oe(s,t)});if(r==="number"){var a=i.filter(function(s){return it(s)||parseFloat(s)});return a.length?[Xc(a),fi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!gt(s)}):i;return o.map(function(s){return Ae(s)||s instanceof Date?s:""})}var pW=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(en(f-c)!==en(h-f)){var y=[];if(en(h-f)===en(l[1]-l[0])){p=h;var m=f+l[1]-l[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+l[1]-l[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var v=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>v[0]&&t<=v[1]||t>=y[0]&&t<=y[1]){o=i[u].index;break}}else{var x=Math.min(c,h),b=Math.max(c,h);if(t>(x+f)/2&&t<=(b+f)/2){o=i[u].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},O0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?le(le({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},dW=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,v=m.filter(function(S){return zn(S.type).indexOf("Bar")>=0});if(v&&v.length){var x=v[0].type.defaultProps,b=x!==void 0?le(le({},x),v[0].props):v[0].props,_=b.barSize,g=b[d];o[g]||(o[g]=[]);var w=gt(_)?r:_;o[g].push({item:v[0],stackList:v.slice(1),barSize:gt(w)?void 0:ua(w,n,0)})}}return o},mW=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=ua(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,y=o.reduce(function(_,g){return _+g.barSize||0},0);y+=(l-1)*u,y>=i&&(y-=(l-1)*u,u=0),y>=i&&p>0&&(h=!0,p*=.9,y=l*p);var m=(i-y)/2>>0,d={offset:m-u,size:0};c=o.reduce(function(_,g){var w={item:g.item,position:{offset:d.offset+d.size+u,size:h?p:g.barSize}},S=[].concat(qS(_),[w]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var v=ua(n,i,0,!0);i-2*v-(l-1)*u<=0&&(u=0);var x=(i-2*v-(l-1)*u)/l;x>1&&(x>>=0);var b=s===+s?Math.min(x,s):x;c=o.reduce(function(_,g,w){var S=[].concat(qS(_),[{item:g.item,position:{offset:v+(x+u)*w+(x-b)/2,size:b}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},yW=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=WC({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,h=c.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&it(t[p]))return le(le({},t),{},Ga({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&it(t[y]))return le(le({},t),{},Ga({},y,t[y]+(h||0)))}return t},gW=function(t,r,n){return gt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},HC=function(t,r,n,i,a){var o=r.props.children,s=dr(o,No).filter(function(u){return gW(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=Oe(c,n);if(gt(f))return u;var h=Array.isArray(f)?[Xc(f),fi(f)]:[f,f],p=l.reduce(function(y,m){var d=Oe(c,m,0),v=h[0]-Math.abs(Array.isArray(d)?d[0]:d),x=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(v,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},vW=function(t,r,n,i,a){var o=r.map(function(s){return HC(t,s,n,a,i)}).filter(function(s){return!gt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},GC=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&HC(t,l,u,i)||Ss(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},KC=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},XC=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Fn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?en(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+u,value:f,offset:u}});return c.filter(function(f){return!Ro(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+u,value:f,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,h){return{coordinate:i(f)+u,value:a?a[f]:f,index:h,offset:u}})},Om=new WeakMap,Vl=function(t,r){if(typeof r!="function")return t;Om.has(t)||Om.set(t,new WeakMap);var n=Om.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},bW=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Rs(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:aa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:hs(),realScaleType:"point"}:a==="category"?{scale:Rs(),realScaleType:"band"}:{scale:aa(),realScaleType:"linear"};if(la(i)){var l="scale".concat(Hc(i));return{scale:(ES[l]||hs)(),realScaleType:ES[l]?l:"point"}}return bt(i)?{scale:i}:{scale:hs(),realScaleType:"point"}},zS=1e-4,_W=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-zS,o=Math.max(i[0],i[1])+zS,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},xW=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},wW=function(t,r){if(!r||r.length!==2||!it(r[0])||!it(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!it(t[0])||t[0]<n)&&(a[0]=n),(!it(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},SW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Ro(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},AW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Ro(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},OW={sign:SW,expand:kI,none:Ja,silhouette:$I,wiggle:jI,positive:AW},TW=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=OW[n],o=Mu().keys(i).value(function(s,l){return+Oe(s,l,0)}).order(by).offset(a);return o(t)},PW=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?le(le({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var v=y[n],x=f[v]||{hasStack:!1,stackGroups:{}};if(Ae(m)){var b=x.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};b.items.push(h),x.hasStack=!0,x.stackGroups[m]=b}else x.stackGroups[ba("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return le(le({},f),{},Ga({},v,x))},l),c={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var v=p.stackGroups[d];return le(le({},m),{},Ga({},d,{numericAxisId:n,cateAxisId:i,items:v.items,stackedData:TW(t,v.items,a)}))},y)}return le(le({},f),{},Ga({},h,p))},c)},EW=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=BU(u,a,s);return t.domain([Xc(c),fi(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=qU(f,a,s);return{niceTicks:h}}return null};function co(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!gt(i[t.dataKey])){var s=Bu(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=Oe(i,gt(o)?t.dataKey:o);return gt(l)?null:t.scale(l)}var US=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=Oe(o,r.dataKey,r.domain[s]);return gt(l)?null:r.scale(l)-a/2+i},CW=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},MW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?le(le({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Ae(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},kW=function(t){return t.reduce(function(r,n){return[Xc(n.concat([r[0]]).filter(it)),fi(n.concat([r[1]]).filter(it))]},[1/0,-1/0])},YC=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=kW(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},WS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,HS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,hg=function(t,r,n){if(bt(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(it(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(WS.test(t[0])){var a=+WS.exec(t[0])[1];i[0]=r[0]-a}else bt(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(it(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(HS.test(t[1])){var o=+HS.exec(t[1])[1];i[1]=r[1]+o}else bt(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},Vu=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Wc(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},GS=function(t,r,n){return!t||!t.length||ca(t,zr(n,"type.defaultProps.domain"))?r:t},VC=function(t,r){var n=t.type.defaultProps?le(le({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return le(le({},vt(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:O0(t),value:Oe(r,i),type:l,payload:r,chartType:u,hide:c})};function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KS(Object(r),!0).forEach(function(n){$W(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $W(e,t,r){return t=jW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jW(e){var t=RW(e,"string");return nl(t)=="symbol"?t:t+""}function RW(e,t){if(nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zu=Math.PI/180,DW=function(t){return t*180/Math.PI},Le=function(t,r,n,i){return{x:t+Math.cos(-Zu*i)*n,y:r+Math.sin(-Zu*i)*n}},IW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},NW=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=IW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:DW(u),angleInRadian:u}},LW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},BW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},YS=function(t,r){var n=t.x,i=t.y,a=NW({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=LW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?XS(XS({},r),{},{radius:o,angle:BW(p,r)}):null};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}var qW=["offset"];function FW(e){return HW(e)||WW(e)||UW(e)||zW()}function zW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UW(e,t){if(e){if(typeof e=="string")return pg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return pg(e,t)}}function WW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function HW(e){if(Array.isArray(e))return pg(e)}function pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function GW(e,t){if(e==null)return{};var r=KW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VS(Object(r),!0).forEach(function(n){XW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XW(e,t,r){return t=YW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e){var t=VW(e,"string");return il(t)=="symbol"?t:t+""}function VW(e,t){if(il(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(il(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},al.apply(this,arguments)}var ZW=function(t){var r=t.value,n=t.formatter,i=gt(t.children)?r:t.children;return bt(n)?n(i):i},JW=function(t,r){var n=en(r-t),i=Math.min(Math.abs(r-t),360);return n*i},QW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,h=l.outerRadius,p=l.startAngle,y=l.endAngle,m=l.clockWise,d=(f+h)/2,v=JW(p,y),x=v>=0?1:-1,b,_;i==="insideStart"?(b=p+x*o,_=m):i==="insideEnd"?(b=y-x*o,_=!m):i==="end"&&(b=y+x*o,_=m),_=v<=0?_:!_;var g=Le(u,c,d,b),w=Le(u,c,d,b+(_?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
99
+ A`).concat(d,",").concat(d,",0,1,").concat(_?0:1,`,
100
+ `).concat(w.x,",").concat(w.y),A=gt(t.id)?ba("recharts-radial-line-"):t.id;return O.createElement("text",al({},n,{dominantBaseline:"central",className:Ot("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},t8=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=Le(o,s,u+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(l+u)/2,v=Le(o,s,d,h),x=v.x,b=v.y;return{x,y:b,textAnchor:"middle",verticalAnchor:"middle"}},e8=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=u>=0?1:-1,d=m*i,v=m>0?"end":"start",x=m>0?"start":"end";if(a==="top"){var b={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return Se(Se({},b),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var _={x:s+u/2,y:l+c+h,textAnchor:"middle",verticalAnchor:y};return Se(Se({},_),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var g={x:s-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"};return Se(Se({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+u+d,y:l+c/2,textAnchor:x,verticalAnchor:"middle"};return Se(Se({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return a==="insideLeft"?Se({x:s+d,y:l+c/2,textAnchor:x,verticalAnchor:"middle"},S):a==="insideRight"?Se({x:s+u-d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideTop"?Se({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?Se({x:s+u/2,y:l+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?Se({x:s+d,y:l+h,textAnchor:x,verticalAnchor:y},S):a==="insideTopRight"?Se({x:s+u-d,y:l+h,textAnchor:v,verticalAnchor:y},S):a==="insideBottomLeft"?Se({x:s+d,y:l+c-h,textAnchor:x,verticalAnchor:p},S):a==="insideBottomRight"?Se({x:s+u-d,y:l+c-h,textAnchor:v,verticalAnchor:p},S):jo(a)&&(it(a.x)||Gi(a.x))&&(it(a.y)||Gi(a.y))?Se({x:s+ua(a.x,u),y:l+ua(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):Se({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},r8=function(t){return"cx"in t&&it(t.cx)};function He(e){var t=e.offset,r=t===void 0?5:t,n=GW(e,qW),i=Se({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||gt(s)&&gt(l)&&!O.isValidElement(u)&&!bt(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var p;if(bt(u)){if(p=O.createElement(u,i),O.isValidElement(p))return p}else p=ZW(i);var y=r8(a),m=vt(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return QW(i,p,m);var d=y?t8(i):e8(i);return O.createElement(Gu,al({className:Ot("recharts-label",f)},m,d,{breakAll:h}),p)}He.displayName="Label";var ZC=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,v=t.clockWise,x=t.labelViewBox;if(x)return x;if(it(m)&&it(d)){if(it(f)&&it(h))return{x:f,y:h,width:m,height:d};if(it(p)&&it(y))return{x:p,y,width:m,height:d}}return it(f)&&it(h)?{x:f,y:h,width:0,height:0}:it(r)&&it(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:v}:t.viewBox?t.viewBox:{}},n8=function(t,r){return t?t===!0?O.createElement(He,{key:"label-implicit",viewBox:r}):Ae(t)?O.createElement(He,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===He?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(He,{key:"label-implicit",content:t,viewBox:r}):bt(t)?O.createElement(He,{key:"label-implicit",content:t,viewBox:r}):jo(t)?O.createElement(He,al({viewBox:r},t,{key:"label-implicit"})):null:null},i8=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=ZC(t),o=dr(i,He).map(function(l,u){return O.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=n8(t.label,r||a);return[s].concat(FW(o))};He.parseViewBox=ZC;He.renderCallByParent=i8;var Tm,ZS;function a8(){if(ZS)return Tm;ZS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Tm=e,Tm}var o8=a8();const s8=Lt(o8);function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}var l8=["valueAccessor"],u8=["data","dataKey","clockWise","id","textBreakAll"];function c8(e){return d8(e)||p8(e)||h8(e)||f8()}function f8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
101
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h8(e,t){if(e){if(typeof e=="string")return dg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dg(e,t)}}function p8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function d8(e){if(Array.isArray(e))return dg(e)}function dg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ju.apply(this,arguments)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function QS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JS(Object(r),!0).forEach(function(n){m8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m8(e,t,r){return t=y8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y8(e){var t=g8(e,"string");return ol(t)=="symbol"?t:t+""}function g8(e,t){if(ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tA(e,t){if(e==null)return{};var r=v8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function v8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var b8=function(t){return Array.isArray(t.value)?s8(t.value):t.value};function An(e){var t=e.valueAccessor,r=t===void 0?b8:t,n=tA(e,l8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=tA(n,u8);return!i||!i.length?null:O.createElement(Mt,{className:"recharts-label-list"},i.map(function(c,f){var h=gt(a)?r(c,f):Oe(c&&c.payload,a),p=gt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(He,Ju({},vt(c,!0),u,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:l,viewBox:He.parseViewBox(gt(o)?c:QS(QS({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}An.displayName="LabelList";function _8(e,t){return e?e===!0?O.createElement(An,{key:"labelList-implicit",data:t}):O.isValidElement(e)||bt(e)?O.createElement(An,{key:"labelList-implicit",data:t,content:e}):jo(e)?O.createElement(An,Ju({data:t},e,{key:"labelList-implicit"})):null:null}function x8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=dr(n,An).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=_8(e.label,t);return[a].concat(c8(i))}An.renderCallByParent=x8;function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mg.apply(this,arguments)}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){w8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w8(e,t,r){return t=S8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S8(e){var t=A8(e,"string");return sl(t)=="symbol"?t:t+""}function A8(e,t){if(sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O8=function(t,r){var n=en(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Zl=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/Zu,h=u?a:a+o*f,p=Le(r,n,c,h),y=Le(r,n,i,h),m=u?a-o*f:a,d=Le(r,n,c*Math.cos(f*Zu),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},JC=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=O8(o,s),u=o+l,c=Le(r,n,a,o),f=Le(r,n,a,u),h="M ".concat(c.x,",").concat(c.y,`
102
102
  A `).concat(a,",").concat(a,`,0,
103
- `).concat(+(Math.abs(u)>180),",").concat(+(o>l),`,
103
+ `).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
104
104
  `).concat(f.x,",").concat(f.y,`
105
- `);if(i>0){var p=Ee(r,n,i,o),y=Ee(r,n,i,l);h+="L ".concat(y.x,",").concat(y.y,`
105
+ `);if(i>0){var p=Le(r,n,i,o),y=Le(r,n,i,u);h+="L ".concat(y.x,",").concat(y.y,`
106
106
  A `).concat(i,",").concat(i,`,0,
107
- `).concat(+(Math.abs(u)>180),",").concat(+(o<=l),`,
108
- `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},GW=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,f=Lr(c-l),h=gu({cx:r,cy:n,radius:a,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=gu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),g=d.circleTangency,_=d.lineTangency,b=d.theta,x=u?Math.abs(l-c):Math.abs(l-c)-m-b;if(x<0)return s?"M ".concat(y.x,",").concat(y.y,`
107
+ `).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
108
+ `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},T8=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=en(c-u),h=Zl({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=Zl({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),v=d.circleTangency,x=d.lineTangency,b=d.theta,_=l?Math.abs(u-c):Math.abs(u-c)-m-b;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,`
109
109
  a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
110
110
  a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
111
- `):vC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:l,endAngle:c});var v="M ".concat(y.x,",").concat(y.y,`
111
+ `):JC({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
112
112
  A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
113
- A`).concat(a,",").concat(a,",0,").concat(+(x>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
114
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,`
115
- `);if(i>0){var w=gu({cx:r,cy:n,radius:i,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),S=w.circleTangency,A=w.lineTangency,P=w.theta,C=gu({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),T=C.circleTangency,E=C.lineTangency,M=C.theta,R=u?Math.abs(l-c):Math.abs(l-c)-P-M;if(R<0&&o===0)return"".concat(v,"L").concat(r,",").concat(n,"Z");v+="L".concat(E.x,",").concat(E.y,`
116
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,`
117
- A`).concat(i,",").concat(i,",0,").concat(+(R>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
118
- A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else v+="L".concat(r,",").concat(n,"Z");return v},HW={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},gC=function(t){var r=_S(_S({},HW),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,u=r.forceCornerRadius,l=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=At("recharts-sector",h),y=o-a,m=ji(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=GW({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:c,endAngle:f}):d=vC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",jy({},gt(r,!0),{className:p,d,role:"img"}))};function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ry.apply(this,arguments)}function xS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xS(Object(r),!0).forEach(function(n){KW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KW(e,t,r){return t=YW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YW(e){var t=XW(e,"string");return Ts(t)=="symbol"?t:t+""}function XW(e,t){if(Ts(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ts(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SS={curveBasisClosed:qD,curveBasisOpen:FD,curveBasis:BD,curveBumpX:AD,curveBumpY:PD,curveLinearClosed:UD,curveLinear:ec,curveMonotoneX:PP,curveMonotoneY:WD,curveNatural:GD,curveStep:HD,curveStepAfter:YD,curveStepBefore:KD},bu=function(t){return t.x===+t.x&&t.y===+t.y},bo=function(t){return t.x},_o=function(t){return t.y},VW=function(t,r){if(bt(t))return t;var n="curve".concat(pc(t));return(n==="curveMonotone"||n==="curveBump")&&r?SS["".concat(n).concat(r==="vertical"?"Y":"X")]:SS[n]||ec},ZW=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,u=t.connectNulls,l=u===void 0?!1:u,c=VW(n,s),f=l?a.filter(function(m){return bu(m)}):a,h;if(Array.isArray(o)){var p=l?o.filter(function(m){return bu(m)}):o,y=f.map(function(m,d){return wS(wS({},m),{},{base:p[d]})});return s==="vertical"?h=pi().y(_o).x1(bo).x0(function(m){return m.base.x}):h=pi().x(bo).y1(_o).y0(function(m){return m.base.y}),h.defined(bu).curve(c),h(y)}return s==="vertical"&&nt(o)?h=pi().y(_o).x1(bo).x0(o):nt(o)?h=pi().x(bo).y1(_o).y0(o):h=Yv().x(bo).y(_o),h.defined(bu).curve(c),h(f)},Ti=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?ZW(t):i;return Tr.createElement("path",Ry({},gt(t,!1),sl(t),{className:At("recharts-curve",r),d:o,ref:a}))},_u={exports:{}},xu={exports:{}},Lt={};/** @license React v16.13.1
113
+ A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
114
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(x.x,",").concat(x.y,`
115
+ `);if(i>0){var w=Zl({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=w.circleTangency,A=w.lineTangency,T=w.theta,M=Zl({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=M.circleTangency,E=M.lineTangency,C=M.theta,k=l?Math.abs(u-c):Math.abs(u-c)-T-C;if(k<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
116
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
117
+ A`).concat(i,",").concat(i,",0,").concat(+(k>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
118
+ A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},P8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QC=function(t){var r=rA(rA({},P8),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=Ot("recharts-sector",h),y=o-a,m=ua(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=T8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):d=JC({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",mg({},vt(r,!0),{className:p,d,role:"img"}))};function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function yg(){return yg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yg.apply(this,arguments)}function nA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function iA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(r),!0).forEach(function(n){E8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function E8(e,t,r){return t=C8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C8(e){var t=M8(e,"string");return ll(t)=="symbol"?t:t+""}function M8(e,t){if(ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aA={curveBasisClosed:vI,curveBasisOpen:bI,curveBasis:gI,curveBumpX:nI,curveBumpY:iI,curveLinearClosed:wI,curveLinear:oa,curveMonotoneX:SI,curveMonotoneY:AI,curveNatural:OI,curveStep:TI,curveStepAfter:EI,curveStepBefore:PI},Jl=function(t){return t.x===+t.x&&t.y===+t.y},Qo=function(t){return t.x},ts=function(t){return t.y},k8=function(t,r){if(bt(t))return t;var n="curve".concat(Hc(t));return(n==="curveMonotone"||n==="curveBump")&&r?aA["".concat(n).concat(r==="vertical"?"Y":"X")]:aA[n]||oa},$8=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=k8(n,s),f=u?a.filter(function(m){return Jl(m)}):a,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return Jl(m)}):o,y=f.map(function(m,d){return iA(iA({},m),{},{base:p[d]})});return s==="vertical"?h=Ui().y(ts).x1(Qo).x0(function(m){return m.base.x}):h=Ui().x(Qo).y1(ts).y0(function(m){return m.base.y}),h.defined(Jl).curve(c),h(y)}return s==="vertical"&&it(o)?h=Ui().y(ts).x1(Qo).x0(o):it(o)?h=Ui().x(Qo).y1(ts).y0(o):h=Mv().x(Qo).y(ts),h.defined(Jl).curve(c),h(f)},ra=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?$8(t):i;return Fr.createElement("path",yg({},vt(t,!1),qu(t),{className:Ot("recharts-curve",r),d:o,ref:a}))},Ql={exports:{}},tu={exports:{}},jt={};/** @license React v16.13.1
119
119
  * react-is.production.min.js
120
120
  *
121
121
  * Copyright (c) Facebook, Inc. and its affiliates.
122
122
  *
123
123
  * This source code is licensed under the MIT license found in the
124
124
  * LICENSE file in the root directory of this source tree.
125
- */var OS;function JW(){if(OS)return Lt;OS=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case t:switch(v=v.type,v){case u:case l:case n:case a:case i:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case c:case y:case p:case o:return v;default:return w}}case r:return w}}}function x(v){return b(v)===l}return Lt.AsyncMode=u,Lt.ConcurrentMode=l,Lt.ContextConsumer=s,Lt.ContextProvider=o,Lt.Element=t,Lt.ForwardRef=c,Lt.Fragment=n,Lt.Lazy=y,Lt.Memo=p,Lt.Portal=r,Lt.Profiler=a,Lt.StrictMode=i,Lt.Suspense=f,Lt.isAsyncMode=function(v){return x(v)||b(v)===u},Lt.isConcurrentMode=x,Lt.isContextConsumer=function(v){return b(v)===s},Lt.isContextProvider=function(v){return b(v)===o},Lt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},Lt.isForwardRef=function(v){return b(v)===c},Lt.isFragment=function(v){return b(v)===n},Lt.isLazy=function(v){return b(v)===y},Lt.isMemo=function(v){return b(v)===p},Lt.isPortal=function(v){return b(v)===r},Lt.isProfiler=function(v){return b(v)===a},Lt.isStrictMode=function(v){return b(v)===i},Lt.isSuspense=function(v){return b(v)===f},Lt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===l||v===a||v===i||v===f||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===p||v.$$typeof===o||v.$$typeof===s||v.$$typeof===c||v.$$typeof===d||v.$$typeof===g||v.$$typeof===_||v.$$typeof===m)},Lt.typeOf=b,Lt}var Bt={};/** @license React v16.13.1
125
+ */var oA;function j8(){if(oA)return jt;oA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case t:switch(g=g.type,g){case l:case u:case n:case a:case i:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case y:case p:case o:return g;default:return w}}case r:return w}}}function _(g){return b(g)===u}return jt.AsyncMode=l,jt.ConcurrentMode=u,jt.ContextConsumer=s,jt.ContextProvider=o,jt.Element=t,jt.ForwardRef=c,jt.Fragment=n,jt.Lazy=y,jt.Memo=p,jt.Portal=r,jt.Profiler=a,jt.StrictMode=i,jt.Suspense=f,jt.isAsyncMode=function(g){return _(g)||b(g)===l},jt.isConcurrentMode=_,jt.isContextConsumer=function(g){return b(g)===s},jt.isContextProvider=function(g){return b(g)===o},jt.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},jt.isForwardRef=function(g){return b(g)===c},jt.isFragment=function(g){return b(g)===n},jt.isLazy=function(g){return b(g)===y},jt.isMemo=function(g){return b(g)===p},jt.isPortal=function(g){return b(g)===r},jt.isProfiler=function(g){return b(g)===a},jt.isStrictMode=function(g){return b(g)===i},jt.isSuspense=function(g){return b(g)===f},jt.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===u||g===a||g===i||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===p||g.$$typeof===o||g.$$typeof===s||g.$$typeof===c||g.$$typeof===d||g.$$typeof===v||g.$$typeof===x||g.$$typeof===m)},jt.typeOf=b,jt}var Rt={};/** @license React v16.13.1
126
126
  * react-is.development.js
127
127
  *
128
128
  * Copyright (c) Facebook, Inc. and its affiliates.
129
129
  *
130
130
  * This source code is licensed under the MIT license found in the
131
131
  * LICENSE file in the root directory of this source tree.
132
- */var AS;function QW(){return AS||(AS=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(N){return typeof N=="string"||typeof N=="function"||N===n||N===l||N===a||N===i||N===f||N===h||typeof N=="object"&&N!==null&&(N.$$typeof===y||N.$$typeof===p||N.$$typeof===o||N.$$typeof===s||N.$$typeof===c||N.$$typeof===d||N.$$typeof===g||N.$$typeof===_||N.$$typeof===m)}function x(N){if(typeof N=="object"&&N!==null){var st=N.$$typeof;switch(st){case t:var K=N.type;switch(K){case u:case l:case n:case a:case i:case f:return K;default:var ot=K&&K.$$typeof;switch(ot){case s:case c:case y:case p:case o:return ot;default:return st}}case r:return st}}}var v=u,w=l,S=s,A=o,P=t,C=c,T=n,E=y,M=p,R=r,$=a,k=i,D=f,L=!1;function q(N){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(N)||x(N)===u}function I(N){return x(N)===l}function j(N){return x(N)===s}function B(N){return x(N)===o}function W(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function G(N){return x(N)===c}function X(N){return x(N)===n}function Z(N){return x(N)===y}function J(N){return x(N)===p}function z(N){return x(N)===r}function F(N){return x(N)===a}function H(N){return x(N)===i}function Q(N){return x(N)===f}Bt.AsyncMode=v,Bt.ConcurrentMode=w,Bt.ContextConsumer=S,Bt.ContextProvider=A,Bt.Element=P,Bt.ForwardRef=C,Bt.Fragment=T,Bt.Lazy=E,Bt.Memo=M,Bt.Portal=R,Bt.Profiler=$,Bt.StrictMode=k,Bt.Suspense=D,Bt.isAsyncMode=q,Bt.isConcurrentMode=I,Bt.isContextConsumer=j,Bt.isContextProvider=B,Bt.isElement=W,Bt.isForwardRef=G,Bt.isFragment=X,Bt.isLazy=Z,Bt.isMemo=J,Bt.isPortal=z,Bt.isProfiler=F,Bt.isStrictMode=H,Bt.isSuspense=Q,Bt.isValidElementType=b,Bt.typeOf=x})()),Bt}var PS;function bC(){return PS||(PS=1,process.env.NODE_ENV==="production"?xu.exports=JW():xu.exports=QW()),xu.exports}/*
132
+ */var sA;function R8(){return sA||(sA=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function b($){return typeof $=="string"||typeof $=="function"||$===n||$===u||$===a||$===i||$===f||$===h||typeof $=="object"&&$!==null&&($.$$typeof===y||$.$$typeof===p||$.$$typeof===o||$.$$typeof===s||$.$$typeof===c||$.$$typeof===d||$.$$typeof===v||$.$$typeof===x||$.$$typeof===m)}function _($){if(typeof $=="object"&&$!==null){var rt=$.$$typeof;switch(rt){case t:var U=$.type;switch(U){case l:case u:case n:case a:case i:case f:return U;default:var ct=U&&U.$$typeof;switch(ct){case s:case c:case y:case p:case o:return ct;default:return rt}}case r:return rt}}}var g=l,w=u,S=s,A=o,T=t,M=c,P=n,E=y,C=p,k=r,j=a,R=i,L=f,z=!1;function W($){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I($)||_($)===l}function I($){return _($)===u}function D($){return _($)===s}function N($){return _($)===o}function q($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function K($){return _($)===c}function B($){return _($)===n}function V($){return _($)===y}function J($){return _($)===p}function H($){return _($)===r}function F($){return _($)===a}function X($){return _($)===i}function Y($){return _($)===f}Rt.AsyncMode=g,Rt.ConcurrentMode=w,Rt.ContextConsumer=S,Rt.ContextProvider=A,Rt.Element=T,Rt.ForwardRef=M,Rt.Fragment=P,Rt.Lazy=E,Rt.Memo=C,Rt.Portal=k,Rt.Profiler=j,Rt.StrictMode=R,Rt.Suspense=L,Rt.isAsyncMode=W,Rt.isConcurrentMode=I,Rt.isContextConsumer=D,Rt.isContextProvider=N,Rt.isElement=q,Rt.isForwardRef=K,Rt.isFragment=B,Rt.isLazy=V,Rt.isMemo=J,Rt.isPortal=H,Rt.isProfiler=F,Rt.isStrictMode=X,Rt.isSuspense=Y,Rt.isValidElementType=b,Rt.typeOf=_})()),Rt}var lA;function tM(){return lA||(lA=1,process.env.NODE_ENV==="production"?tu.exports=j8():tu.exports=R8()),tu.exports}/*
133
133
  object-assign
134
134
  (c) Sindre Sorhus
135
135
  @license MIT
136
- */var Wd,TS;function t8(){if(TS)return Wd;TS=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var u=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wd=i()?Object.assign:function(a,o){for(var s,u=n(a),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(u[f]=s[f]);if(e){l=e(s);for(var h=0;h<l.length;h++)r.call(s,l[h])&&(u[l[h]]=s[l[h]])}}return u},Wd}var Gd,ES;function Wg(){if(ES)return Gd;ES=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Gd=e,Gd}var Hd,CS;function _C(){return CS||(CS=1,Hd=Function.call.bind(Object.prototype.hasOwnProperty)),Hd}var Kd,MS;function e8(){if(MS)return Kd;MS=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Wg(),r={},n=_C();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,u,l){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((u||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,u,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=l?l():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Kd=i,Kd}var Yd,kS;function r8(){if(kS)return Yd;kS=1;var e=bC(),t=t8(),r=Wg(),n=_C(),i=e8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function o(){return null}return Yd=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var j=I&&(l&&I[l]||I[c]);if(typeof j=="function")return j}var h="<<anonymous>>",p={array:g("array"),bigint:g("bigint"),bool:g("boolean"),func:g("function"),number:g("number"),object:g("object"),string:g("string"),symbol:g("symbol"),any:_(),arrayOf:b,element:x(),elementType:v(),instanceOf:w,node:C(),objectOf:A,oneOf:S,oneOfType:P,shape:E,exact:M};function y(I,j){return I===j?I!==0||1/I===1/j:I!==I&&j!==j}function m(I,j){this.message=I,this.data=j&&typeof j=="object"?j:{},this.stack=""}m.prototype=Error.prototype;function d(I){if(process.env.NODE_ENV!=="production")var j={},B=0;function W(X,Z,J,z,F,H,Q){if(z=z||h,H=H||J,Q!==r){if(u){var N=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw N.name="Invariant Violation",N}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var st=z+":"+J;!j[st]&&B<3&&(a("You are manually calling a React.PropTypes validation function for the `"+H+"` prop on `"+z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),j[st]=!0,B++)}}return Z[J]==null?X?Z[J]===null?new m("The "+F+" `"+H+"` is marked as required "+("in `"+z+"`, but its value is `null`.")):new m("The "+F+" `"+H+"` is marked as required in "+("`"+z+"`, but its value is `undefined`.")):null:I(Z,J,z,F,H)}var G=W.bind(null,!1);return G.isRequired=W.bind(null,!0),G}function g(I){function j(B,W,G,X,Z,J){var z=B[W],F=k(z);if(F!==I){var H=D(z);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+H+"` supplied to `"+G+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return d(j)}function _(){return d(o)}function b(I){function j(B,W,G,X,Z){if(typeof I!="function")return new m("Property `"+Z+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var J=B[W];if(!Array.isArray(J)){var z=k(J);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+z+"` supplied to `"+G+"`, expected an array."))}for(var F=0;F<J.length;F++){var H=I(J,F,G,X,Z+"["+F+"]",r);if(H instanceof Error)return H}return null}return d(j)}function x(){function I(j,B,W,G,X){var Z=j[B];if(!s(Z)){var J=k(Z);return new m("Invalid "+G+" `"+X+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return d(I)}function v(){function I(j,B,W,G,X){var Z=j[B];if(!e.isValidElementType(Z)){var J=k(Z);return new m("Invalid "+G+" `"+X+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return d(I)}function w(I){function j(B,W,G,X,Z){if(!(B[W]instanceof I)){var J=I.name||h,z=q(B[W]);return new m("Invalid "+X+" `"+Z+"` of type "+("`"+z+"` supplied to `"+G+"`, expected ")+("instance of `"+J+"`."))}return null}return d(j)}function S(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function j(B,W,G,X,Z){for(var J=B[W],z=0;z<I.length;z++)if(y(J,I[z]))return null;var F=JSON.stringify(I,function(Q,N){var st=D(N);return st==="symbol"?String(N):N});return new m("Invalid "+X+" `"+Z+"` of value `"+String(J)+"` "+("supplied to `"+G+"`, expected one of "+F+"."))}return d(j)}function A(I){function j(B,W,G,X,Z){if(typeof I!="function")return new m("Property `"+Z+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var J=B[W],z=k(J);if(z!=="object")return new m("Invalid "+X+" `"+Z+"` of type "+("`"+z+"` supplied to `"+G+"`, expected an object."));for(var F in J)if(n(J,F)){var H=I(J,F,G,X,Z+"."+F,r);if(H instanceof Error)return H}return null}return d(j)}function P(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var j=0;j<I.length;j++){var B=I[j];if(typeof B!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(B)+" at index "+j+"."),o}function W(G,X,Z,J,z){for(var F=[],H=0;H<I.length;H++){var Q=I[H],N=Q(G,X,Z,J,z,r);if(N==null)return null;N.data&&n(N.data,"expectedType")&&F.push(N.data.expectedType)}var st=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+J+" `"+z+"` supplied to "+("`"+Z+"`"+st+"."))}return d(W)}function C(){function I(j,B,W,G,X){return R(j[B])?null:new m("Invalid "+G+" `"+X+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return d(I)}function T(I,j,B,W,G){return new m((I||"React class")+": "+j+" type `"+B+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(I){function j(B,W,G,X,Z){var J=B[W],z=k(J);if(z!=="object")return new m("Invalid "+X+" `"+Z+"` of type `"+z+"` "+("supplied to `"+G+"`, expected `object`."));for(var F in I){var H=I[F];if(typeof H!="function")return T(G,X,Z,F,D(H));var Q=H(J,F,G,X,Z+"."+F,r);if(Q)return Q}return null}return d(j)}function M(I){function j(B,W,G,X,Z){var J=B[W],z=k(J);if(z!=="object")return new m("Invalid "+X+" `"+Z+"` of type `"+z+"` "+("supplied to `"+G+"`, expected `object`."));var F=t({},B[W],I);for(var H in F){var Q=I[H];if(n(I,H)&&typeof Q!="function")return T(G,X,Z,H,D(Q));if(!Q)return new m("Invalid "+X+" `"+Z+"` key `"+H+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(B[W],null," ")+`
137
- Valid keys: `+JSON.stringify(Object.keys(I),null," "));var N=Q(J,H,G,X,Z+"."+H,r);if(N)return N}return null}return d(j)}function R(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(R);if(I===null||s(I))return!0;var j=f(I);if(j){var B=j.call(I),W;if(j!==I.entries){for(;!(W=B.next()).done;)if(!R(W.value))return!1}else for(;!(W=B.next()).done;){var G=W.value;if(G&&!R(G[1]))return!1}}else return!1;return!0;default:return!1}}function $(I,j){return I==="symbol"?!0:j?j["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&j instanceof Symbol:!1}function k(I){var j=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":$(j,I)?"symbol":j}function D(I){if(typeof I>"u"||I===null)return""+I;var j=k(I);if(j==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return j}function L(I){var j=D(I);switch(j){case"array":case"object":return"an "+j;case"boolean":case"date":case"regexp":return"a "+j;default:return j}}function q(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Yd}var Xd,$S;function n8(){if($S)return Xd;$S=1;var e=Wg();function t(){}function r(){}return r.resetWarningCache=t,Xd=function(){function n(o,s,u,l,c,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Xd}var jS;function i8(){if(jS)return _u.exports;if(jS=1,process.env.NODE_ENV!=="production"){var e=bC(),t=!0;_u.exports=r8()(e.isElement,t)}else _u.exports=n8()();return _u.exports}var a8=i8();const qt=zt(a8);var o8=Object.getOwnPropertyNames,s8=Object.getOwnPropertySymbols,u8=Object.prototype.hasOwnProperty;function RS(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function wu(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var u=e(r,n,i);return a.delete(r),a.delete(n),u}}function l8(e){return e!=null?e[Symbol.toStringTag]:void 0}function DS(e){return o8(e).concat(s8(e))}var c8=Object.hasOwn||(function(e,t){return u8.call(e,t)});function Wi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var f8="__v",h8="__o",p8="_owner",IS=Object.getOwnPropertyDescriptor,NS=Object.keys;function d8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function m8(e,t){return Wi(e.getTime(),t.getTime())}function y8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function v8(e,t){return e===t}function LS(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,u=0;(o=a.next())&&!o.done;){for(var l=t.entries(),c=!1,f=0;(s=l.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],u,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;u++}return!0}var g8=Wi;function b8(e,t,r){var n=NS(e),i=n.length;if(NS(t).length!==i)return!1;for(;i-- >0;)if(!xC(e,t,r,n[i]))return!1;return!0}function xo(e,t,r){var n=DS(e),i=n.length;if(DS(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!xC(e,t,r,a)||(o=IS(e,a),s=IS(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function _8(e,t){return Wi(e.valueOf(),t.valueOf())}function x8(e,t){return e.source===t.source&&e.flags===t.flags}function BS(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var u=t.values(),l=!1,c=0;(s=u.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){l=i[c]=!0;break}c++}if(!l)return!1}return!0}function w8(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function S8(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function xC(e,t,r,n){return(n===p8||n===h8||n===f8)&&(e.$$typeof||t.$$typeof)?!0:c8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var O8="[object Arguments]",A8="[object Boolean]",P8="[object Date]",T8="[object Error]",E8="[object Map]",C8="[object Number]",M8="[object Object]",k8="[object RegExp]",$8="[object Set]",j8="[object String]",R8="[object URL]",D8=Array.isArray,qS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,FS=Object.assign,I8=Object.prototype.toString.call.bind(Object.prototype.toString);function N8(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,l=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,g){if(m===d)return!0;if(m==null||d==null)return!1;var _=typeof m;if(_!==typeof d)return!1;if(_!=="object")return _==="number"?o(m,d,g):_==="function"?i(m,d,g):!1;var b=m.constructor;if(b!==d.constructor)return!1;if(b===Object)return s(m,d,g);if(D8(m))return t(m,d,g);if(qS!=null&&qS(m))return f(m,d,g);if(b===Date)return r(m,d,g);if(b===RegExp)return l(m,d,g);if(b===Map)return a(m,d,g);if(b===Set)return c(m,d,g);var x=I8(m);if(x===P8)return r(m,d,g);if(x===k8)return l(m,d,g);if(x===E8)return a(m,d,g);if(x===$8)return c(m,d,g);if(x===M8)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,g);if(x===R8)return h(m,d,g);if(x===T8)return n(m,d,g);if(x===O8)return s(m,d,g);if(x===A8||x===C8||x===j8)return u(m,d,g);if(p){var v=p[x];if(!v){var w=l8(m);w&&(v=p[w])}if(v)return v(m,d,g)}return!1}}function L8(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?xo:d8,areDatesEqual:m8,areErrorsEqual:y8,areFunctionsEqual:v8,areMapsEqual:n?RS(LS,xo):LS,areNumbersEqual:g8,areObjectsEqual:n?xo:b8,arePrimitiveWrappersEqual:_8,areRegExpsEqual:x8,areSetsEqual:n?RS(BS,xo):BS,areTypedArraysEqual:n?xo:w8,areUrlsEqual:S8,unknownTagComparators:void 0};if(r&&(i=FS({},i,r(i))),t){var a=wu(i.areArraysEqual),o=wu(i.areMapsEqual),s=wu(i.areObjectsEqual),u=wu(i.areSetsEqual);i=FS({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:u})}return i}function B8(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function q8(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(u,l){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(u,l,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(u,l){return r(u,l,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(u,l){return r(u,l,o)}}var F8=ti();ti({strict:!0});ti({circular:!0});ti({circular:!0,strict:!0});ti({createInternalComparator:function(){return Wi}});ti({strict:!0,createInternalComparator:function(){return Wi}});ti({circular:!0,createInternalComparator:function(){return Wi}});ti({circular:!0,createInternalComparator:function(){return Wi},strict:!0});function ti(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=L8(e),u=N8(s),l=n?n(u):B8(u);return q8({circular:r,comparator:u,createState:i,equals:l,strict:o})}function z8(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function zS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):z8(i)};requestAnimationFrame(n)}function Dy(e){"@babel/helpers - typeof";return Dy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dy(e)}function U8(e){return K8(e)||H8(e)||G8(e)||W8()}function W8(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
138
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G8(e,t){if(e){if(typeof e=="string")return US(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return US(e,t)}}function US(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function H8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function K8(e){if(Array.isArray(e))return e}function Y8(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=U8(o),u=s[0],l=s.slice(1);if(typeof u=="number"){zS(i.bind(null,l),u);return}i(u),zS(i.bind(null,l));return}Dy(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Es(e){"@babel/helpers - typeof";return Es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Es(e)}function WS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function GS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WS(Object(r),!0).forEach(function(n){wC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wC(e,t,r){return t=X8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X8(e){var t=V8(e,"string");return Es(t)==="symbol"?t:String(t)}function V8(e,t){if(Es(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Es(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Z8=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},J8=function(t){return t},Q8=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Uo=function(t,r){return Object.keys(r).reduce(function(n,i){return GS(GS({},n),{},wC({},i,t(i,r[i])))},{})},HS=function(t,r,n){return t.map(function(i){return"".concat(Q8(i)," ").concat(r,"ms ").concat(n)}).join(",")},tG=process.env.NODE_ENV!=="production",_l=function(t,r,n,i,a,o,s,u){if(tG&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,a,o,s,u],c=0;console.warn(r.replace(/%s/g,function(){return l[c++]}))}};function eG(e,t){return iG(e)||nG(e,t)||SC(e,t)||rG()}function rG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function iG(e){if(Array.isArray(e))return e}function aG(e){return uG(e)||sG(e)||SC(e)||oG()}function oG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SC(e,t){if(e){if(typeof e=="string")return Iy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Iy(e,t)}}function sG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uG(e){if(Array.isArray(e))return Iy(e)}function Iy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var xl=1e-4,OC=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},AC=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},KS=function(t,r){return function(n){var i=OC(t,r);return AC(i,n)}},lG=function(t,r){return function(n){var i=OC(t,r),a=[].concat(aG(i.map(function(o,s){return o*s}).slice(1)),[0]);return AC(a,n)}},YS=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var u=r[0].split("(");if(u[0]==="cubic-bezier"&&u[1].split(")")[0].split(",").length===4){var l=u[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=eG(l,4);i=c[0],a=c[1],o=c[2],s=c[3]}else _l(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}_l([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=KS(i,o),h=KS(a,s),p=lG(i,o),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var _=g>1?1:g,b=_,x=0;x<8;++x){var v=f(b)-_,w=p(b);if(Math.abs(v-_)<xl||w<xl)return h(b);b=y(b-v/w)}return h(b)};return m.isStepper=!1,m},cG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,u=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<xl&&Math.abs(m)<xl?[f,0]:[d,m]};return u.isStepper=!0,u.dt=s,u},fG=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return YS(i);case"spring":return cG();default:if(i.split("(")[0]==="cubic-bezier")return YS(i);_l(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(_l(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function Cs(e){"@babel/helpers - typeof";return Cs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cs(e)}function XS(e){return dG(e)||pG(e)||PC(e)||hG()}function hG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dG(e){if(Array.isArray(e))return Ly(e)}function VS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Te(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VS(Object(r),!0).forEach(function(n){Ny(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ny(e,t,r){return t=mG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mG(e){var t=yG(e,"string");return Cs(t)==="symbol"?t:String(t)}function yG(e,t){if(Cs(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Cs(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vG(e,t){return _G(e)||bG(e,t)||PC(e,t)||gG()}function gG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PC(e,t){if(e){if(typeof e=="string")return Ly(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ly(e,t)}}function Ly(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function _G(e){if(Array.isArray(e))return e}var wl=function(t,r,n){return t+(r-t)*n},By=function(t){var r=t.from,n=t.to;return r!==n},xG=function e(t,r,n){var i=Uo(function(a,o){if(By(o)){var s=t(o.from,o.to,o.velocity),u=vG(s,2),l=u[0],c=u[1];return Te(Te({},o),{},{from:l,velocity:c})}return o},r);return n<1?Uo(function(a,o){return By(o)?Te(Te({},o),{},{velocity:wl(o.velocity,i[a].velocity,n),from:wl(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const wG=(function(e,t,r,n,i){var a=Z8(e,t),o=a.reduce(function(d,g){return Te(Te({},d),{},Ny({},g,[e[g],t[g]]))},{}),s=a.reduce(function(d,g){return Te(Te({},d),{},Ny({},g,{from:e[g],velocity:0,to:t[g]}))},{}),u=-1,l,c,f=function(){return null},h=function(){return Uo(function(g,_){return _.from},s)},p=function(){return!Object.values(s).filter(By).length},y=function(g){l||(l=g);var _=g-l,b=_/r.dt;s=xG(r,s,b),i(Te(Te(Te({},e),t),h())),l=g,p()||(u=requestAnimationFrame(f))},m=function(g){c||(c=g);var _=(g-c)/n,b=Uo(function(v,w){return wl.apply(void 0,XS(w).concat([r(_)]))},o);if(i(Te(Te(Te({},e),t),b)),_<1)u=requestAnimationFrame(f);else{var x=Uo(function(v,w){return wl.apply(void 0,XS(w).concat([r(1)]))},o);i(Te(Te(Te({},e),t),x))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(u)}}});function $a(e){"@babel/helpers - typeof";return $a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$a(e)}var SG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function OG(e,t){if(e==null)return{};var r=AG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Vd(e){return CG(e)||EG(e)||TG(e)||PG()}function PG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TG(e,t){if(e){if(typeof e=="string")return qy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return qy(e,t)}}function EG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CG(e){if(Array.isArray(e))return qy(e)}function qy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function $r(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(r),!0).forEach(function(n){ko(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ko(e,t,r){return t=TC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TC(n.key),n)}}function $G(e,t,r){return t&&kG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TC(e){var t=jG(e,"string");return $a(t)==="symbol"?t:String(t)}function jG(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fy(e,t)}function Fy(e,t){return Fy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fy(e,t)}function DG(e){var t=IG();return function(){var n=Sl(e),i;if(t){var a=Sl(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return zy(this,i)}}function zy(e,t){if(t&&($a(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Uy(e)}function Uy(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Sl(e){return Sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sl(e)}var Br=(function(e){RG(r,e);var t=DG(r);function r(n,i){var a;MG(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,u=o.attributeName,l=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Uy(a)),a.changeStyle=a.changeStyle.bind(Uy(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),zy(a);if(f&&f.length)a.state={style:f[0].style};else if(l){if(typeof h=="function")return a.state={style:l},zy(a);a.state={style:u?ko({},u,l):l}}else a.state={style:{}};return a}return $G(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,u=a.attributeName,l=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:u?ko({},u,c):c};this.state&&h&&(u&&h[u]!==c||!u&&h!==c)&&this.setState(p);return}if(!(F8(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||l?f:i.to;if(this.state&&h){var d={style:u?ko({},u,m):m};(u&&h[u]!==m||!u&&h!==m)&&this.setState(d)}this.runAnimation($r($r({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,u=i.duration,l=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=wG(o,s,fG(l),u,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,u,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,u=i.onAnimationStart,l=o[0],c=l.style,f=l.duration,h=f===void 0?0:f,p=function(m,d,g){if(g===0)return m;var _=d.duration,b=d.easing,x=b===void 0?"ease":b,v=d.style,w=d.properties,S=d.onAnimationEnd,A=g>0?o[g-1]:d,P=w||Object.keys(v);if(typeof x=="function"||x==="spring")return[].concat(Vd(m),[a.runJSAnimation.bind(a,{from:A.style,to:v,duration:_,easing:x}),_]);var C=HS(P,_,x),T=$r($r($r({},A.style),v),{},{transition:C});return[].concat(Vd(m),[T,_,S]).filter(J8)};return this.manager.start([u].concat(Vd(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Y8());var a=i.begin,o=i.duration,s=i.attributeName,u=i.to,l=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof l=="function"||typeof p=="function"||l==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?ko({},s,u):u,d=HS(Object.keys(m),o,l);y.start([c,a,$r($r({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var u=OG(i,SG),l=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||l===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,g=y.className,_=O.cloneElement(p,$r($r({},u),{},{style:$r($r({},d),c),className:g}));return _};return l===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);Br.displayName="Animate";Br.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Br.propTypes={from:qt.oneOfType([qt.object,qt.string]),to:qt.oneOfType([qt.object,qt.string]),attributeName:qt.string,duration:qt.number,begin:qt.number,easing:qt.oneOfType([qt.string,qt.func]),steps:qt.arrayOf(qt.shape({duration:qt.number.isRequired,style:qt.object.isRequired,easing:qt.oneOfType([qt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),qt.func]),properties:qt.arrayOf("string"),onAnimationEnd:qt.func})),children:qt.oneOfType([qt.node,qt.func]),isActive:qt.bool,canBegin:qt.bool,onAnimationEnd:qt.func,shouldReAnimate:qt.bool,onAnimationStart:qt.func,onAnimationReStart:qt.func};function Ms(e){"@babel/helpers - typeof";return Ms=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ms(e)}function Ol(){return Ol=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ol.apply(this,arguments)}function NG(e,t){return FG(e)||qG(e,t)||BG(e,t)||LG()}function LG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BG(e,t){if(e){if(typeof e=="string")return JS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return JS(e,t)}}function JS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function FG(e){if(Array.isArray(e))return e}function QS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(r),!0).forEach(function(n){zG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zG(e,t,r){return t=UG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UG(e){var t=WG(e,"string");return Ms(t)=="symbol"?t:t+""}function WG(e,t){if(Ms(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ms(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eO=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,u=n>=0?1:-1,l=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(l,",").concat(t+u*f[0],",").concat(r)),c+="L ".concat(t+n-u*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(l,`,
145
- `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(l,`,
146
- `).concat(t+n-u*f[2],",").concat(r+i)),c+="L ".concat(t+u*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(l,`,
136
+ */var Pm,uA;function D8(){if(uA)return Pm;uA=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Pm=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Pm}var Em,cA;function T0(){if(cA)return Em;cA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Em=e,Em}var Cm,fA;function eM(){return fA||(fA=1,Cm=Function.call.bind(Object.prototype.hasOwnProperty)),Cm}var Mm,hA;function I8(){if(hA)return Mm;hA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=T0(),r={},n=eM();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Mm=i,Mm}var km,pA;function N8(){if(pA)return km;pA=1;var e=tM(),t=D8(),r=T0(),n=eM(),i=I8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return km=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var D=I&&(u&&I[u]||I[c]);if(typeof D=="function")return D}var h="<<anonymous>>",p={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:x(),arrayOf:b,element:_(),elementType:g(),instanceOf:w,node:M(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:C};function y(I,D){return I===D?I!==0||1/I===1/D:I!==I&&D!==D}function m(I,D){this.message=I,this.data=D&&typeof D=="object"?D:{},this.stack=""}m.prototype=Error.prototype;function d(I){if(process.env.NODE_ENV!=="production")var D={},N=0;function q(B,V,J,H,F,X,Y){if(H=H||h,X=X||J,Y!==r){if(l){var $=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw $.name="Invariant Violation",$}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var rt=H+":"+J;!D[rt]&&N<3&&(a("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+H+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[rt]=!0,N++)}}return V[J]==null?B?V[J]===null?new m("The "+F+" `"+X+"` is marked as required "+("in `"+H+"`, but its value is `null`.")):new m("The "+F+" `"+X+"` is marked as required in "+("`"+H+"`, but its value is `undefined`.")):null:I(V,J,H,F,X)}var K=q.bind(null,!1);return K.isRequired=q.bind(null,!0),K}function v(I){function D(N,q,K,B,V,J){var H=N[q],F=R(H);if(F!==I){var X=L(H);return new m("Invalid "+B+" `"+V+"` of type "+("`"+X+"` supplied to `"+K+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return d(D)}function x(){return d(o)}function b(I){function D(N,q,K,B,V){if(typeof I!="function")return new m("Property `"+V+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var J=N[q];if(!Array.isArray(J)){var H=R(J);return new m("Invalid "+B+" `"+V+"` of type "+("`"+H+"` supplied to `"+K+"`, expected an array."))}for(var F=0;F<J.length;F++){var X=I(J,F,K,B,V+"["+F+"]",r);if(X instanceof Error)return X}return null}return d(D)}function _(){function I(D,N,q,K,B){var V=D[N];if(!s(V)){var J=R(V);return new m("Invalid "+K+" `"+B+"` of type "+("`"+J+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return d(I)}function g(){function I(D,N,q,K,B){var V=D[N];if(!e.isValidElementType(V)){var J=R(V);return new m("Invalid "+K+" `"+B+"` of type "+("`"+J+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return d(I)}function w(I){function D(N,q,K,B,V){if(!(N[q]instanceof I)){var J=I.name||h,H=W(N[q]);return new m("Invalid "+B+" `"+V+"` of type "+("`"+H+"` supplied to `"+K+"`, expected ")+("instance of `"+J+"`."))}return null}return d(D)}function S(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function D(N,q,K,B,V){for(var J=N[q],H=0;H<I.length;H++)if(y(J,I[H]))return null;var F=JSON.stringify(I,function(Y,$){var rt=L($);return rt==="symbol"?String($):$});return new m("Invalid "+B+" `"+V+"` of value `"+String(J)+"` "+("supplied to `"+K+"`, expected one of "+F+"."))}return d(D)}function A(I){function D(N,q,K,B,V){if(typeof I!="function")return new m("Property `"+V+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var J=N[q],H=R(J);if(H!=="object")return new m("Invalid "+B+" `"+V+"` of type "+("`"+H+"` supplied to `"+K+"`, expected an object."));for(var F in J)if(n(J,F)){var X=I(J,F,K,B,V+"."+F,r);if(X instanceof Error)return X}return null}return d(D)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var D=0;D<I.length;D++){var N=I[D];if(typeof N!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+z(N)+" at index "+D+"."),o}function q(K,B,V,J,H){for(var F=[],X=0;X<I.length;X++){var Y=I[X],$=Y(K,B,V,J,H,r);if($==null)return null;$.data&&n($.data,"expectedType")&&F.push($.data.expectedType)}var rt=F.length>0?", expected one of type ["+F.join(", ")+"]":"";return new m("Invalid "+J+" `"+H+"` supplied to "+("`"+V+"`"+rt+"."))}return d(q)}function M(){function I(D,N,q,K,B){return k(D[N])?null:new m("Invalid "+K+" `"+B+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return d(I)}function P(I,D,N,q,K){return new m((I||"React class")+": "+D+" type `"+N+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function E(I){function D(N,q,K,B,V){var J=N[q],H=R(J);if(H!=="object")return new m("Invalid "+B+" `"+V+"` of type `"+H+"` "+("supplied to `"+K+"`, expected `object`."));for(var F in I){var X=I[F];if(typeof X!="function")return P(K,B,V,F,L(X));var Y=X(J,F,K,B,V+"."+F,r);if(Y)return Y}return null}return d(D)}function C(I){function D(N,q,K,B,V){var J=N[q],H=R(J);if(H!=="object")return new m("Invalid "+B+" `"+V+"` of type `"+H+"` "+("supplied to `"+K+"`, expected `object`."));var F=t({},N[q],I);for(var X in F){var Y=I[X];if(n(I,X)&&typeof Y!="function")return P(K,B,V,X,L(Y));if(!Y)return new m("Invalid "+B+" `"+V+"` key `"+X+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(N[q],null," ")+`
137
+ Valid keys: `+JSON.stringify(Object.keys(I),null," "));var $=Y(J,X,K,B,V+"."+X,r);if($)return $}return null}return d(D)}function k(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every(k);if(I===null||s(I))return!0;var D=f(I);if(D){var N=D.call(I),q;if(D!==I.entries){for(;!(q=N.next()).done;)if(!k(q.value))return!1}else for(;!(q=N.next()).done;){var K=q.value;if(K&&!k(K[1]))return!1}}else return!1;return!0;default:return!1}}function j(I,D){return I==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function R(I){var D=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":j(D,I)?"symbol":D}function L(I){if(typeof I>"u"||I===null)return""+I;var D=R(I);if(D==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return D}function z(I){var D=L(I);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function W(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},km}var $m,dA;function L8(){if(dA)return $m;dA=1;var e=T0();function t(){}function r(){}return r.resetWarningCache=t,$m=function(){function n(o,s,l,u,c,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},$m}var mA;function B8(){if(mA)return Ql.exports;if(mA=1,process.env.NODE_ENV!=="production"){var e=tM(),t=!0;Ql.exports=N8()(e.isElement,t)}else Ql.exports=L8()();return Ql.exports}var q8=B8();const Dt=Lt(q8);var F8=Object.getOwnPropertyNames,z8=Object.getOwnPropertySymbols,U8=Object.prototype.hasOwnProperty;function yA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function eu(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function W8(e){return e!=null?e[Symbol.toStringTag]:void 0}function gA(e){return F8(e).concat(z8(e))}var H8=Object.hasOwn||(function(e,t){return U8.call(e,t)});function _a(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var G8="__v",K8="__o",X8="_owner",vA=Object.getOwnPropertyDescriptor,bA=Object.keys;function Y8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function V8(e,t){return _a(e.getTime(),t.getTime())}function Z8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function J8(e,t){return e===t}function _A(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],l,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}var Q8=_a;function tH(e,t,r){var n=bA(e),i=n.length;if(bA(t).length!==i)return!1;for(;i-- >0;)if(!rM(e,t,r,n[i]))return!1;return!0}function es(e,t,r){var n=gA(e),i=n.length;if(gA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!rM(e,t,r,a)||(o=vA(e,a),s=vA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function eH(e,t){return _a(e.valueOf(),t.valueOf())}function rH(e,t){return e.source===t.source&&e.flags===t.flags}function xA(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function nH(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function iH(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function rM(e,t,r,n){return(n===X8||n===K8||n===G8)&&(e.$$typeof||t.$$typeof)?!0:H8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var aH="[object Arguments]",oH="[object Boolean]",sH="[object Date]",lH="[object Error]",uH="[object Map]",cH="[object Number]",fH="[object Object]",hH="[object RegExp]",pH="[object Set]",dH="[object String]",mH="[object URL]",yH=Array.isArray,wA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,SA=Object.assign,gH=Object.prototype.toString.call.bind(Object.prototype.toString);function vH(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,v){if(m===d)return!0;if(m==null||d==null)return!1;var x=typeof m;if(x!==typeof d)return!1;if(x!=="object")return x==="number"?o(m,d,v):x==="function"?i(m,d,v):!1;var b=m.constructor;if(b!==d.constructor)return!1;if(b===Object)return s(m,d,v);if(yH(m))return t(m,d,v);if(wA!=null&&wA(m))return f(m,d,v);if(b===Date)return r(m,d,v);if(b===RegExp)return u(m,d,v);if(b===Map)return a(m,d,v);if(b===Set)return c(m,d,v);var _=gH(m);if(_===sH)return r(m,d,v);if(_===hH)return u(m,d,v);if(_===uH)return a(m,d,v);if(_===pH)return c(m,d,v);if(_===fH)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,v);if(_===mH)return h(m,d,v);if(_===lH)return n(m,d,v);if(_===aH)return s(m,d,v);if(_===oH||_===cH||_===dH)return l(m,d,v);if(p){var g=p[_];if(!g){var w=W8(m);w&&(g=p[w])}if(g)return g(m,d,v)}return!1}}function bH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?es:Y8,areDatesEqual:V8,areErrorsEqual:Z8,areFunctionsEqual:J8,areMapsEqual:n?yA(_A,es):_A,areNumbersEqual:Q8,areObjectsEqual:n?es:tH,arePrimitiveWrappersEqual:eH,areRegExpsEqual:rH,areSetsEqual:n?yA(xA,es):xA,areTypedArraysEqual:n?es:nH,areUrlsEqual:iH,unknownTagComparators:void 0};if(r&&(i=SA({},i,r(i))),t){var a=eu(i.areArraysEqual),o=eu(i.areMapsEqual),s=eu(i.areObjectsEqual),l=eu(i.areSetsEqual);i=SA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function _H(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function xH(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(l,u,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var wH=Oi();Oi({strict:!0});Oi({circular:!0});Oi({circular:!0,strict:!0});Oi({createInternalComparator:function(){return _a}});Oi({strict:!0,createInternalComparator:function(){return _a}});Oi({circular:!0,createInternalComparator:function(){return _a}});Oi({circular:!0,createInternalComparator:function(){return _a},strict:!0});function Oi(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=bH(e),l=vH(s),u=n?n(l):_H(l);return xH({circular:r,comparator:l,createState:i,equals:u,strict:o})}function SH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function AA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):SH(i)};requestAnimationFrame(n)}function gg(e){"@babel/helpers - typeof";return gg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gg(e)}function AH(e){return EH(e)||PH(e)||TH(e)||OH()}function OH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
138
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TH(e,t){if(e){if(typeof e=="string")return OA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return OA(e,t)}}function OA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function PH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function EH(e){if(Array.isArray(e))return e}function CH(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=AH(o),l=s[0],u=s.slice(1);if(typeof l=="number"){AA(i.bind(null,u),l);return}i(l),AA(i.bind(null,u));return}gg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function PA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(n){nM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nM(e,t,r){return t=MH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MH(e){var t=kH(e,"string");return ul(t)==="symbol"?t:String(t)}function kH(e,t){if(ul(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ul(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $H=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},jH=function(t){return t},RH=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},As=function(t,r){return Object.keys(r).reduce(function(n,i){return PA(PA({},n),{},nM({},i,t(i,r[i])))},{})},EA=function(t,r,n){return t.map(function(i){return"".concat(RH(i)," ").concat(r,"ms ").concat(n)}).join(",")},DH=process.env.NODE_ENV!=="production",Qu=function(t,r,n,i,a,o,s,l){if(DH&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function IH(e,t){return BH(e)||LH(e,t)||iM(e,t)||NH()}function NH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
139
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function BH(e){if(Array.isArray(e))return e}function qH(e){return UH(e)||zH(e)||iM(e)||FH()}function FH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
140
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iM(e,t){if(e){if(typeof e=="string")return vg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vg(e,t)}}function zH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UH(e){if(Array.isArray(e))return vg(e)}function vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var tc=1e-4,aM=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},oM=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},CA=function(t,r){return function(n){var i=aM(t,r);return oM(i,n)}},WH=function(t,r){return function(n){var i=aM(t,r),a=[].concat(qH(i.map(function(o,s){return o*s}).slice(1)),[0]);return oM(a,n)}},MA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=IH(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else Qu(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}Qu([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=CA(i,o),h=CA(a,s),p=WH(i,o),y=function(v){return v>1?1:v<0?0:v},m=function(v){for(var x=v>1?1:v,b=x,_=0;_<8;++_){var g=f(b)-x,w=p(b);if(Math.abs(g-x)<tc||w<tc)return h(b);b=y(b-g/w)}return h(b)};return m.isStepper=!1,m},HH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<tc&&Math.abs(m)<tc?[f,0]:[d,m]};return l.isStepper=!0,l.dt=s,l},GH=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return MA(i);case"spring":return HH();default:if(i.split("(")[0]==="cubic-bezier")return MA(i);Qu(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(Qu(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function cl(e){"@babel/helpers - typeof";return cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function kA(e){return YH(e)||XH(e)||sM(e)||KH()}function KH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YH(e){if(Array.isArray(e))return _g(e)}function $A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(r),!0).forEach(function(n){bg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$A(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bg(e,t,r){return t=VH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VH(e){var t=ZH(e,"string");return cl(t)==="symbol"?t:String(t)}function ZH(e,t){if(cl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JH(e,t){return eG(e)||tG(e,t)||sM(e,t)||QH()}function QH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sM(e,t){if(e){if(typeof e=="string")return _g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _g(e,t)}}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function eG(e){if(Array.isArray(e))return e}var ec=function(t,r,n){return t+(r-t)*n},xg=function(t){var r=t.from,n=t.to;return r!==n},rG=function e(t,r,n){var i=As(function(a,o){if(xg(o)){var s=t(o.from,o.to,o.velocity),l=JH(s,2),u=l[0],c=l[1];return Ne(Ne({},o),{},{from:u,velocity:c})}return o},r);return n<1?As(function(a,o){return xg(o)?Ne(Ne({},o),{},{velocity:ec(o.velocity,i[a].velocity,n),from:ec(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const nG=(function(e,t,r,n,i){var a=$H(e,t),o=a.reduce(function(d,v){return Ne(Ne({},d),{},bg({},v,[e[v],t[v]]))},{}),s=a.reduce(function(d,v){return Ne(Ne({},d),{},bg({},v,{from:e[v],velocity:0,to:t[v]}))},{}),l=-1,u,c,f=function(){return null},h=function(){return As(function(v,x){return x.from},s)},p=function(){return!Object.values(s).filter(xg).length},y=function(v){u||(u=v);var x=v-u,b=x/r.dt;s=rG(r,s,b),i(Ne(Ne(Ne({},e),t),h())),u=v,p()||(l=requestAnimationFrame(f))},m=function(v){c||(c=v);var x=(v-c)/n,b=As(function(g,w){return ec.apply(void 0,kA(w).concat([r(x)]))},o);if(i(Ne(Ne(Ne({},e),t),b)),x<1)l=requestAnimationFrame(f);else{var _=As(function(g,w){return ec.apply(void 0,kA(w).concat([r(1)]))},o);i(Ne(Ne(Ne({},e),t),_))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function fo(e){"@babel/helpers - typeof";return fo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fo(e)}var iG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function aG(e,t){if(e==null)return{};var r=oG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function jm(e){return cG(e)||uG(e)||lG(e)||sG()}function sG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lG(e,t){if(e){if(typeof e=="string")return wg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return wg(e,t)}}function uG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cG(e){if(Array.isArray(e))return wg(e)}function wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Yr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){fs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fs(e,t,r){return t=lM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,lM(n.key),n)}}function pG(e,t,r){return t&&hG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lM(e){var t=dG(e,"string");return fo(t)==="symbol"?t:String(t)}function dG(e,t){if(fo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sg(e,t)}function Sg(e,t){return Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Sg(e,t)}function yG(e){var t=gG();return function(){var n=rc(e),i;if(t){var a=rc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Ag(this,i)}}function Ag(e,t){if(t&&(fo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Og(e)}function Og(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rc(e){return rc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},rc(e)}var rn=(function(e){mG(r,e);var t=yG(r);function r(n,i){var a;fG(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Og(a)),a.changeStyle=a.changeStyle.bind(Og(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Ag(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Ag(a);a.state={style:l?fs({},l,u):u}}else a.state={style:{}};return a}return pG(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:l?fs({},l,c):c};this.state&&h&&(l&&h[l]!==c||!l&&h!==c)&&this.setState(p);return}if(!(wH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?f:i.to;if(this.state&&h){var d={style:l?fs({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(d)}this.runAnimation(Yr(Yr({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=nG(o,s,GH(u),l,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,d,v){if(v===0)return m;var x=d.duration,b=d.easing,_=b===void 0?"ease":b,g=d.style,w=d.properties,S=d.onAnimationEnd,A=v>0?o[v-1]:d,T=w||Object.keys(g);if(typeof _=="function"||_==="spring")return[].concat(jm(m),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:x,easing:_}),x]);var M=EA(T,x,_),P=Yr(Yr(Yr({},A.style),g),{},{transition:M});return[].concat(jm(m),[P,x,S]).filter(jH)};return this.manager.start([l].concat(jm(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=CH());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?fs({},s,l):l,d=EA(Object.keys(m),o,u);y.start([c,a,Yr(Yr({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=aG(i,iG),u=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,v=y.className,x=O.cloneElement(p,Yr(Yr({},l),{},{style:Yr(Yr({},d),c),className:v}));return x};return u===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);rn.displayName="Animate";rn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};rn.propTypes={from:Dt.oneOfType([Dt.object,Dt.string]),to:Dt.oneOfType([Dt.object,Dt.string]),attributeName:Dt.string,duration:Dt.number,begin:Dt.number,easing:Dt.oneOfType([Dt.string,Dt.func]),steps:Dt.arrayOf(Dt.shape({duration:Dt.number.isRequired,style:Dt.object.isRequired,easing:Dt.oneOfType([Dt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Dt.func]),properties:Dt.arrayOf("string"),onAnimationEnd:Dt.func})),children:Dt.oneOfType([Dt.node,Dt.func]),isActive:Dt.bool,canBegin:Dt.bool,onAnimationEnd:Dt.func,shouldReAnimate:Dt.bool,onAnimationStart:Dt.func,onAnimationReStart:Dt.func};function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nc.apply(this,arguments)}function vG(e,t){return wG(e)||xG(e,t)||_G(e,t)||bG()}function bG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
144
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _G(e,t){if(e){if(typeof e=="string")return RA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return RA(e,t)}}function RA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function wG(e){if(Array.isArray(e))return e}function DA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function IA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?DA(Object(r),!0).forEach(function(n){SG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):DA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SG(e,t,r){return t=AG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AG(e){var t=OG(e,"string");return fl(t)=="symbol"?t:t+""}function OG(e,t){if(fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var NA=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
145
+ `).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
146
+ `).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
147
147
  `).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);c="M ".concat(t,",").concat(r+s*y,`
148
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+u*y,",").concat(r,`
149
- L `).concat(t+n-u*y,",").concat(r,`
150
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n,",").concat(r+s*y,`
148
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+l*y,",").concat(r,`
149
+ L `).concat(t+n-l*y,",").concat(r,`
150
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*y,`
151
151
  L `).concat(t+n,",").concat(r+i-s*y,`
152
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t+n-u*y,",").concat(r+i,`
153
- L `).concat(t+u*y,",").concat(r+i,`
154
- A `).concat(y,",").concat(y,",0,0,").concat(l,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},GG=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,u=r.height;if(Math.abs(s)>0&&Math.abs(u)>0){var l=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+u),h=Math.max(o,o+u);return n>=l&&n<=c&&i>=f&&i<=h}return!1},HG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Gg=function(t){var r=tO(tO({},HG),t),n=O.useRef(),i=O.useState(-1),a=NG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var u=r.x,l=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,g=r.isAnimationActive,_=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||c===0||f===0)return null;var b=At("recharts-rectangle",p);return _?O.createElement(Br,{canBegin:o>0,from:{width:c,height:f,x:u,y:l},to:{width:c,height:f,x:u,y:l},duration:m,animationEasing:y,isActive:_},function(x){var v=x.width,w=x.height,S=x.x,A=x.y;return O.createElement(Br,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:g,easing:y},O.createElement("path",Ol({},gt(r,!0),{className:b,d:eO(S,A,v,w,h),ref:n})))}):O.createElement("path",Ol({},gt(r,!0),{className:b,d:eO(u,l,c,f,h)}))};function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}var bc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=At("recharts-dot",a);return r===+r&&n===+n&&i===+i?Tr.createElement("circle",Wy({},gt(t,!1),sl(t),{className:o,cx:r,cy:n,r:i})):null};function ks(e){"@babel/helpers - typeof";return ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ks(e)}var KG=["x","y","top","left","width","height","className"];function Gy(){return Gy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gy.apply(this,arguments)}function rO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rO(Object(r),!0).forEach(function(n){XG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function XG(e,t,r){return t=VG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VG(e){var t=ZG(e,"string");return ks(t)=="symbol"?t:t+""}function ZG(e,t){if(ks(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ks(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JG(e,t){if(e==null)return{};var r=QG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var t6=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},e6=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,u=t.left,l=u===void 0?0:u,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=JG(t,KG),d=YG({x:n,y:a,top:s,left:l,width:f,height:p},m);return!nt(n)||!nt(a)||!nt(f)||!nt(p)||!nt(s)||!nt(l)?null:O.createElement("path",Gy({},gt(d,!0),{className:At("recharts-cross",y),d:t6(n,a,f,p,s,l)}))},Zd,nO;function r6(){if(nO)return Zd;nO=1;var e=pE(),t=e(Object.getPrototypeOf,Object);return Zd=t,Zd}var Jd,iO;function n6(){if(iO)return Jd;iO=1;var e=Cn(),t=r6(),r=Mn(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,u=o.call(Object);function l(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==u}return Jd=l,Jd}var i6=n6();const a6=zt(i6);var Qd,aO;function o6(){if(aO)return Qd;aO=1;var e=Cn(),t=Mn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Qd=n,Qd}var s6=o6();const u6=zt(s6);function $s(e){"@babel/helpers - typeof";return $s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$s(e)}function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Al.apply(this,arguments)}function l6(e,t){return p6(e)||h6(e,t)||f6(e,t)||c6()}function c6(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f6(e,t){if(e){if(typeof e=="string")return oO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oO(e,t)}}function oO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h6(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function p6(e){if(Array.isArray(e))return e}function sO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sO(Object(r),!0).forEach(function(n){d6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d6(e,t,r){return t=m6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m6(e){var t=y6(e,"string");return $s(t)=="symbol"?t:t+""}function y6(e,t){if($s(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($s(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lO=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},v6={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},g6=function(t){var r=uO(uO({},v6),t),n=O.useRef(),i=O.useState(-1),a=l6(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var u=r.x,l=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,g=r.isUpdateAnimationActive;if(u!==+u||l!==+l||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var _=At("recharts-trapezoid",p);return g?O.createElement(Br,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:l},to:{upperWidth:c,lowerWidth:f,height:h,x:u,y:l},duration:m,animationEasing:y,isActive:g},function(b){var x=b.upperWidth,v=b.lowerWidth,w=b.height,S=b.x,A=b.y;return O.createElement(Br,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",Al({},gt(r,!0),{className:_,d:lO(S,A,x,v,w),ref:n})))}):O.createElement("g",null,O.createElement("path",Al({},gt(r,!0),{className:_,d:lO(u,l,c,f,h)})))},b6=["option","shapeType","propTransformer","activeClassName","isActive"];function js(e){"@babel/helpers - typeof";return js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},js(e)}function _6(e,t){if(e==null)return{};var r=x6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cO(Object(r),!0).forEach(function(n){w6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function w6(e,t,r){return t=S6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S6(e){var t=O6(e,"string");return js(t)=="symbol"?t:t+""}function O6(e,t){if(js(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(js(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A6(e,t){return Pl(Pl({},t),e)}function P6(e,t){return e==="symbols"}function fO(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(Gg,r);case"trapezoid":return O.createElement(g6,r);case"sector":return O.createElement(gC,r);case"symbols":if(P6(t))return O.createElement(dc,r);break;default:return null}}function T6(e){return O.isValidElement(e)?e.props:e}function Hy(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?A6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,u=_6(e,b6),l;if(O.isValidElement(t))l=O.cloneElement(t,Pl(Pl({},u),T6(t)));else if(bt(t))l=t(u);else if(a6(t)&&!u6(t)){var c=i(t,u);l=O.createElement(fO,{shapeType:r,elementProps:c})}else{var f=u;l=O.createElement(fO,{shapeType:r,elementProps:f})}return s?O.createElement(Rt,{className:o},l):l}function _c(e,t){return t!=null&&"trapezoids"in e.props}function xc(e,t){return t!=null&&"sectors"in e.props}function Rs(e,t){return t!=null&&"points"in e.props}function E6(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function C6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function M6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function k6(e,t){var r;return _c(e,t)?r=E6:xc(e,t)?r=C6:Rs(e,t)&&(r=M6),r}function $6(e,t){var r;return _c(e,t)?r="trapezoids":xc(e,t)?r="sectors":Rs(e,t)&&(r="points"),r}function j6(e,t){if(_c(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(xc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return Rs(e,t)?t.payload:{}}function R6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=$6(r,t),a=j6(r,t),o=n.filter(function(u,l){var c=Ri(a,u),f=r.props[i].filter(function(y){var m=k6(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=l===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function Ds(e){"@babel/helpers - typeof";return Ds=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ds(e)}function hO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function pO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){EC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function EC(e,t,r){return t=D6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D6(e){var t=I6(e,"string");return Ds(t)=="symbol"?t:t+""}function I6(e,t){if(Ds(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ds(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var N6=["Webkit","Moz","O","ms"],L6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=N6.reduce(function(a,o){return pO(pO({},a),{},EC({},o+n,r))},{});return i[t]=r,i};function ja(e){"@babel/helpers - typeof";return ja=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ja(e)}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tl.apply(this,arguments)}function dO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?dO(Object(r),!0).forEach(function(n){sr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function B6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MC(n.key),n)}}function q6(e,t,r){return t&&mO(e.prototype,t),r&&mO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function F6(e,t,r){return t=El(t),z6(e,CC()?Reflect.construct(t,r||[],El(e).constructor):t.apply(e,r))}function z6(e,t){if(t&&(ja(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U6(e)}function U6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CC=function(){return!!e})()}function El(e){return El=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},El(e)}function W6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ky(e,t)}function Ky(e,t){return Ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ky(e,t)}function sr(e,t,r){return t=MC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MC(e){var t=G6(e,"string");return ja(t)=="symbol"?t:t+""}function G6(e,t){if(ja(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ja(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var H6=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var u=r.length,l=$o().domain(ls(0,u)).range([a,a+o-s]),c=l.domain().map(function(f){return l(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(i),scale:l,scaleValues:c}},yO=function(t){return t.changedTouches&&!!t.changedTouches.length},Ra=(function(e){function t(r){var n;return B6(this,t),n=F6(this,t,[r]),sr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),sr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),sr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),sr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),sr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),sr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),sr(n,"handleSlideDragStart",function(i){var a=yO(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return W6(t,e),q6(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,u=s.gap,l=s.data,c=l.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%u,endIndex:y===c?c:y-y%u}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,u=_e(a[n],s,n);return bt(o)?o(u,n):u}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,u=this.props,l=u.x,c=u.width,f=u.travellerWidth,h=u.startIndex,p=u.endIndex,y=u.onChange,m=n.pageX-a;m>0?m=Math.min(m,l+c-f-s,l+c-f-o):m<0&&(m=Math.max(m,l-o,l-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=yO(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,u=i.startX,l=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,g={startX:this.state.startX,endX:this.state.endX},_=n.pageX-a;_>0?_=Math.min(_,f+h-p-l):_<0&&(_=Math.max(_,f-l)),g[o]=l+_;var b=this.getIndex(g),x=b.startIndex,v=b.endIndex,w=function(){var A=d.length-1;return o==="startX"&&(s>u?x%m===0:v%m===0)||s<u&&v===A||o==="endX"&&(s>u?v%m===0:x%m===0)||s>u&&v===A};this.setState(sr(sr({},o,l+_),"brushMoveStartX",n.pageX),function(){y&&w()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,u=o.startX,l=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=l||i==="endX"&&p<=u||this.setState(sr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.fill,l=n.stroke;return O.createElement("rect",{stroke:l,fill:u,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.data,l=n.children,c=n.padding,f=O.Children.only(l);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:u}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,u=this.props,l=u.y,c=u.travellerWidth,f=u.height,h=u.traveller,p=u.ariaLabel,y=u.data,m=u.startIndex,d=u.endIndex,g=Math.max(n,this.props.x),_=tm(tm({},gt(this.props,!1)),{},{x:g,y:l,width:c,height:f}),b=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement(Rt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(v){["ArrowLeft","ArrowRight"].includes(v.key)&&(v.preventDefault(),v.stopPropagation(),s.handleTravellerMoveKeyboard(v.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,_))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,u=a.stroke,l=a.travellerWidth,c=Math.min(n,i)+l,f=Math.max(Math.abs(i-n)-l,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:u,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,u=n.travellerWidth,l=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:l};return O.createElement(Rt,{className:"recharts-brush-texts"},O.createElement(pl,Tl({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(pl,Tl({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+u+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,u=n.y,l=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,g=h.isTravellerMoving,_=h.isTravellerFocused;if(!i||!i.length||!nt(s)||!nt(u)||!nt(l)||!nt(c)||l<=0||c<=0)return null;var b=At("recharts-brush",a),x=O.Children.count(o)===1,v=L6("userSelect","none");return O.createElement(Rt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||g||_||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,u=n.stroke,l=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:u,stroke:"none"}),O.createElement("line",{x1:i+1,y1:l,x2:i+o-1,y2:l,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:l+2,x2:i+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):bt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,u=n.travellerWidth,l=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||l!==i.prevUpdateId)return tm({prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o},a&&a.length?H6({data:a,width:o,x:s,travellerWidth:u,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||u!==i.prevTravellerWidth)){i.scale.range([s,s+o-u]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:u,prevUpdateId:l,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var u=Math.floor((o+s)/2);n[u]>i?s=u:o=u}return i>=n[s]?s:o}}])})(O.PureComponent);sr(Ra,"displayName","Brush");sr(Ra,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var em,vO;function K6(){if(vO)return em;vO=1;var e=Dg();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return em=t,em}var rm,gO;function Y6(){if(gO)return rm;gO=1;var e=sE(),t=Jn(),r=K6(),n=We(),i=Vs();function a(o,s,u){var l=n(o)?e:r;return u&&i(o,s,u)&&(s=void 0),l(o,t(s,3))}return rm=a,rm}var X6=Y6();const V6=zt(X6);var en=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},nm,bO;function Z6(){if(bO)return nm;bO=1;var e=_E();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return nm=t,nm}var im,_O;function J6(){if(_O)return im;_O=1;var e=Z6(),t=gE(),r=Jn();function n(i,a){var o={};return a=r(a,3),t(i,function(s,u,l){e(o,u,a(s,u,l))}),o}return im=n,im}var Q6=J6();const tH=zt(Q6);var am,xO;function eH(){if(xO)return am;xO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return am=e,am}var om,wO;function rH(){if(wO)return om;wO=1;var e=Dg();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return om=t,om}var sm,SO;function nH(){if(SO)return sm;SO=1;var e=eH(),t=rH(),r=Jn(),n=We(),i=Vs();function a(o,s,u){var l=n(o)?e:t;return u&&i(o,s,u)&&(s=void 0),l(o,r(s,3))}return sm=a,sm}var iH=nH();const kC=zt(iH);var aH=["x","y"];function Da(e){"@babel/helpers - typeof";return Da=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Da(e)}function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function OO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(r),!0).forEach(function(n){oH(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function oH(e,t,r){return t=sH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sH(e){var t=uH(e,"string");return Da(t)=="symbol"?t:t+""}function uH(e,t){if(Da(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Da(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lH(e,t){if(e==null)return{};var r=cH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fH(e,t){var r=e.x,n=e.y,i=lH(e,aH),a="".concat(r),o=parseInt(a,10),s="".concat(n),u=parseInt(s,10),l="".concat(t.height||i.height),c=parseInt(l,10),f="".concat(t.width||i.width),h=parseInt(f,10);return wo(wo(wo(wo(wo({},t),i),o?{x:o}:{}),u?{y:u}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function AO(e){return O.createElement(Hy,Yy({shapeType:"rectangle",propTransformer:fH,activeClassName:"recharts-active-bar"},e))}var hH=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=nt(n)||RF(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?Ye(!1,"minPointSize callback function received a value with type of ".concat(Da(n),". Currently only numbers or null/undefined are supported.")):Ye()),r)}},pH=["value","background"],$C;function Ia(e){"@babel/helpers - typeof";return Ia=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ia(e)}function dH(e,t){if(e==null)return{};var r=mH(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function mH(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cl.apply(this,arguments)}function PO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(r),!0).forEach(function(n){Fn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function yH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,RC(n.key),n)}}function vH(e,t,r){return t&&TO(e.prototype,t),r&&TO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function gH(e,t,r){return t=Ml(t),bH(e,jC()?Reflect.construct(t,r||[],Ml(e).constructor):t.apply(e,r))}function bH(e,t){if(t&&(Ia(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _H(e)}function _H(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jC=function(){return!!e})()}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ml(e)}function xH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xy(e,t)}function Xy(e,t){return Xy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Xy(e,t)}function Fn(e,t,r){return t=RC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RC(e){var t=wH(e,"string");return Ia(t)=="symbol"?t:t+""}function wH(e,t){if(Ia(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ia(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var io=(function(e){function t(){var r;yH(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=gH(this,t,[].concat(i)),Fn(r,"state",{isAnimationFinished:!1}),Fn(r,"id",Ui("recharts-bar-")),Fn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Fn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return xH(t,e),vH(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,u=a.activeIndex,l=a.activeBar,c=gt(this.props,!1);return n&&n.map(function(f,h){var p=h===u,y=p?l:o,m=he(he(he({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(Rt,Cl({className:"recharts-bar-rectangle"},cs(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(AO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,u=i.animationBegin,l=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(Br,{begin:u,duration:l,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,g){var _=h&&h[g];if(_){var b=le(_.x,d.x),x=le(_.y,d.y),v=le(_.width,d.width),w=le(_.height,d.height);return he(he({},d),{},{x:b(y),y:x(y),width:v(y),height:w(y)})}if(o==="horizontal"){var S=le(0,d.height),A=S(y);return he(he({},d),{},{y:d.y+d.height-A,height:A})}var P=le(0,d.width),C=P(y);return he(he({},d),{},{width:C})});return O.createElement(Rt,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Ri(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,u=gt(this.props.background,!1);return a.map(function(l,c){l.value;var f=l.background,h=dH(l,pH);if(!f)return null;var p=he(he(he(he(he({},h),{},{fill:"#eee"},f),u),cs(n.props,l,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(AO,Cl({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,u=a.yAxis,l=a.layout,c=a.children,f=tr(c,no);if(!f)return null;var h=l==="vertical"?o[0].height/2:o[0].width/2,p=function(d,g){var _=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:_,errorVal:_e(d,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Rt,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:u,layout:l,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,u=n.yAxis,l=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,g=At("recharts-bar",o),_=s&&s.allowDataOverflow,b=u&&u.allowDataOverflow,x=_||b,v=yt(m)?this.id:m;return O.createElement(Rt,{className:g},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(v)},O.createElement("rect",{x:_?l:l-f/2,y:b?c:c-h/2,width:_?f:f*2,height:b?h:h*2}))):null,O.createElement(Rt,{className:"recharts-bar-rectangles",clipPath:x?"url(#clipPath-".concat(v,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(x,v),(!p||d)&&tn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);$C=io;Fn(io,"displayName","Bar");Fn(io,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Qn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Fn(io,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,l=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=qU(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?he(he({},m),r.props):r.props,g=d.dataKey,_=d.children,b=d.minPointSize,x=y==="horizontal"?o:a,v=l?x.scale.domain():null,w=YU({numericAxis:x}),S=tr(_,qg),A=f.map(function(P,C){var T,E,M,R,$,k;l?T=FU(l[c+C],v):(T=_e(P,g),Array.isArray(T)||(T=[w,T]));var D=hH(b,$C.defaultProps.minPointSize)(T[1],C);if(y==="horizontal"){var L,q=[o.scale(T[0]),o.scale(T[1])],I=q[0],j=q[1];E=sS({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:P,index:C}),M=(L=j??I)!==null&&L!==void 0?L:void 0,R=p.size;var B=I-j;if($=Number.isNaN(B)?0:B,k={x:E,y:o.y,width:R,height:o.height},Math.abs(D)>0&&Math.abs($)<Math.abs(D)){var W=Lr($||D)*(Math.abs(D)-Math.abs($));M-=W,$+=W}}else{var G=[a.scale(T[0]),a.scale(T[1])],X=G[0],Z=G[1];if(E=X,M=sS({axis:o,ticks:u,bandSize:i,offset:p.offset,entry:P,index:C}),R=Z-X,$=p.size,k={x:a.x,y:M,width:a.width,height:$},Math.abs(D)>0&&Math.abs(R)<Math.abs(D)){var J=Lr(R||D)*(Math.abs(D)-Math.abs(R));R+=J}}return he(he(he({},P),{},{x:E,y:M,width:R,height:$,value:l?T:T[1],payload:P,background:k},S&&S[C]&&S[C].props),{},{tooltipPayload:[mC(r,P)],tooltipPosition:{x:E+R/2,y:M+$/2}})});return he({data:A,layout:y},h)});function Is(e){"@babel/helpers - typeof";return Is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Is(e)}function SH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DC(n.key),n)}}function OH(e,t,r){return t&&EO(e.prototype,t),r&&EO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){wc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wc(e,t,r){return t=DC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DC(e){var t=AH(e,"string");return Is(t)=="symbol"?t:t+""}function AH(e,t){if(Is(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Is(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PH=function(t,r,n,i,a){var o=t.width,s=t.height,u=t.layout,l=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!ur(l,io);return c.reduce(function(p,y){var m=r[y],d=m.orientation,g=m.domain,_=m.padding,b=_===void 0?{}:_,x=m.mirror,v=m.reversed,w="".concat(d).concat(x?"Mirror":""),S,A,P,C,T;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=g[1]-g[0],M=1/0,R=m.categoricalDomain.sort(LF);if(R.forEach(function(G,X){X>0&&(M=Math.min((G||0)-(R[X-1]||0),M))}),Number.isFinite(M)){var $=M/E,k=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=$*k/2),m.padding==="no-gap"){var D=ji(t.barCategoryGap,$*k),L=$*k/2;S=L-D-(L-D)/k*D}}}i==="xAxis"?A=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?A=u==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:A=m.range,v&&(A=[A[1],A[0]]);var q=LU(m,a,h),I=q.scale,j=q.realScaleType;I.domain(g).range(A),BU(I);var B=KU(I,Rr(Rr({},m),{},{realScaleType:j}));i==="xAxis"?(T=d==="top"&&!x||d==="bottom"&&x,P=n.left,C=f[w]-T*m.height):i==="yAxis"&&(T=d==="left"&&!x||d==="right"&&x,P=f[w]-T*m.width,C=n.top);var W=Rr(Rr(Rr({},m),B),{},{realScaleType:j,x:P,y:C,scale:I,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return W.bandSize=vl(W,B),!m.hide&&i==="xAxis"?f[w]+=(T?-1:1)*W.height:m.hide||(f[w]+=(T?-1:1)*W.width),Rr(Rr({},p),{},wc({},y,W))},{})},IC=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},TH=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return IC({x:r,y:n},{x:i,y:a})},NC=(function(){function e(t){SH(this,e),this.scale=t}return OH(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+u}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();wc(NC,"EPS",1e-4);var Hg=function(t){var r=Object.keys(t).reduce(function(n,i){return Rr(Rr({},n),{},wc({},i,NC.create(t[i])))},{});return Rr(Rr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return tH(i,function(u,l){return r[l].apply(u,{bandAware:o,position:s})})},isInRange:function(i){return kC(i,function(a,o){return r[o].isInRange(a)})}})};function EH(e){return(e%180+180)%180}var CH=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=EH(i),o=a*Math.PI/180,s=Math.atan(n/r),u=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(u)},um,MO;function MH(){if(MO)return um;MO=1;var e=Jn(),t=Ys(),r=Xs();function n(i){return function(a,o,s){var u=Object(a);if(!t(a)){var l=e(o,3);a=r(a),o=function(f){return l(u[f],f,u)}}var c=i(a,o,s);return c>-1?u[l?a[c]:c]:void 0}}return um=n,um}var lm,kO;function kH(){if(kO)return lm;kO=1;var e=RE(),t=Jn(),r=wg(),n=Math.max;function i(a,o,s){var u=a==null?0:a.length;if(!u)return-1;var l=s==null?0:r(s);return l<0&&(l=n(u+l,0)),e(a,t(o,3),l)}return lm=i,lm}var cm,$O;function $H(){if($O)return cm;$O=1;var e=MH(),t=kH(),r=e(t);return cm=r,cm}var jH=$H();const RH=zt(jH);var DH=nE();const IH=zt(DH);var NH=IH(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function kl(e){"@babel/helpers - typeof";return kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(e)}var Kg=O.createContext(void 0),Yg=O.createContext(void 0),LC=O.createContext(void 0),BC=O.createContext({}),qC=O.createContext(void 0),FC=O.createContext(0),zC=O.createContext(0),jO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,u=t.width,l=t.height,c=NH(a);return O.createElement(Kg.Provider,{value:n},O.createElement(Yg.Provider,{value:i},O.createElement(BC.Provider,{value:a},O.createElement(LC.Provider,{value:c},O.createElement(qC.Provider,{value:o},O.createElement(FC.Provider,{value:l},O.createElement(zC.Provider,{value:u},s)))))))},LH=function(){return O.useContext(qC)};function UC(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var WC=function(t){var r=O.useContext(Kg);r==null&&(process.env.NODE_ENV!=="production"?Ye(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ye());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Ye(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(kl(t),"]. ").concat(UC(r))):Ye()),n},BH=function(){var t=O.useContext(Kg);return In(t)},qH=function(){var t=O.useContext(Yg),r=RH(t,function(n){return kC(n.domain,Number.isFinite)});return r||In(t)},GC=function(t){var r=O.useContext(Yg);r==null&&(process.env.NODE_ENV!=="production"?Ye(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):Ye());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?Ye(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(kl(t),"]. ").concat(UC(r))):Ye()),n},FH=function(){var t=O.useContext(LC);return t},zH=function(){return O.useContext(BC)},Xg=function(){return O.useContext(zC)},Vg=function(){return O.useContext(FC)};function Na(e){"@babel/helpers - typeof";return Na=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Na(e)}function UH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WH(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KC(n.key),n)}}function GH(e,t,r){return t&&WH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function HH(e,t,r){return t=$l(t),KH(e,HC()?Reflect.construct(t,r||[],$l(e).constructor):t.apply(e,r))}function KH(e,t){if(t&&(Na(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YH(e)}function YH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HC=function(){return!!e})()}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$l(e)}function XH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vy(e,t)}function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vy(e,t)}function RO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function DO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(n){Zg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zg(e,t,r){return t=KC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KC(e){var t=VH(e,"string");return Na(t)=="symbol"?t:t+""}function VH(e,t){if(Na(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Na(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ZH(e,t){return eK(e)||tK(e,t)||QH(e,t)||JH()}function JH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QH(e,t){if(e){if(typeof e=="string")return IO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IO(e,t)}}function IO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function tK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function eK(e){if(Array.isArray(e))return e}function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}var rK=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):bt(t)?n=t(r):n=O.createElement("line",Zy({},r,{className:"recharts-reference-line-line"})),n},nK=function(t,r,n,i,a,o,s,u,l){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=l.y,m=t.y.apply(y,{position:o});if(en(l,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return u==="left"?d.reverse():d}if(r){var g=l.x,_=t.x.apply(g,{position:o});if(en(l,"discard")&&!t.x.isInRange(_))return null;var b=[{x:_,y:f+p},{x:_,y:f}];return s==="top"?b.reverse():b}if(i){var x=l.segment,v=x.map(function(w){return t.apply(w,{position:o})});return en(l,"discard")&&V6(v,function(w){return!t.isInRange(w)})?null:v}return null};function iK(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,u=e.alwaysShow,l=LH(),c=WC(i),f=GC(a),h=FH();if(!l||!h)return null;_n(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Hg({x:c.scale,y:f.scale}),y=be(t),m=be(r),d=n&&n.length===2,g=nK(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!g)return null;var _=ZH(g,2),b=_[0],x=b.x,v=b.y,w=_[1],S=w.x,A=w.y,P=en(e,"hidden")?"url(#".concat(l,")"):void 0,C=DO(DO({clipPath:P},gt(e,!0)),{},{x1:x,y1:v,x2:S,y2:A});return O.createElement(Rt,{className:At("recharts-reference-line",s)},rK(o,C),Re.renderCallByParent(e,TH({x1:x,y1:v,x2:S,y2:A})))}var Sc=(function(e){function t(){return UH(this,t),HH(this,t,arguments)}return XH(t,e),GH(t,[{key:"render",value:function(){return O.createElement(iK,this.props)}}])})(O.Component);Zg(Sc,"displayName","ReferenceLine");Zg(Sc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function La(e){"@babel/helpers - typeof";return La=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},La(e)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function LO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){Oc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XC(n.key),n)}}function sK(e,t,r){return t&&oK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uK(e,t,r){return t=jl(t),lK(e,YC()?Reflect.construct(t,r||[],jl(e).constructor):t.apply(e,r))}function lK(e,t){if(t&&(La(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cK(e)}function cK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YC=function(){return!!e})()}function jl(e){return jl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},jl(e)}function fK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qy(e,t)}function Qy(e,t){return Qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qy(e,t)}function Oc(e,t,r){return t=XC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XC(e){var t=hK(e,"string");return La(t)=="symbol"?t:t+""}function hK(e,t){if(La(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(La(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pK=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=Hg({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return en(t,"discard")&&!o.isInRange(s)?null:s},Ac=(function(e){function t(){return aK(this,t),uK(this,t,arguments)}return fK(t,e),sK(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,u=n.clipPathId,l=be(i),c=be(a);if(_n(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var f=pK(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,g=en(this.props,"hidden")?"url(#".concat(u,")"):void 0,_=LO(LO({clipPath:g},gt(this.props,!0)),{},{cx:h,cy:p});return O.createElement(Rt,{className:At("recharts-reference-dot",d)},t.renderDot(m,_),Re.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);Oc(Ac,"displayName","ReferenceDot");Oc(Ac,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Oc(Ac,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(bc,Jy({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tv.apply(this,arguments)}function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function BO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(r),!0).forEach(function(n){Pc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mK(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZC(n.key),n)}}function yK(e,t,r){return t&&mK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vK(e,t,r){return t=Rl(t),gK(e,VC()?Reflect.construct(t,r||[],Rl(e).constructor):t.apply(e,r))}function gK(e,t){if(t&&(Ba(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bK(e)}function bK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VC=function(){return!!e})()}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rl(e)}function _K(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ev(e,t)}function ev(e,t){return ev=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ev(e,t)}function Pc(e,t,r){return t=ZC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZC(e){var t=xK(e,"string");return Ba(t)=="symbol"?t:t+""}function xK(e,t){if(Ba(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ba(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wK=function(t,r,n,i,a){var o=a.x1,s=a.x2,u=a.y1,l=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=Hg({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(u,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(l,{position:"end"}):h.y.rangeMax};return en(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:IC(p,y)},Tc=(function(e){function t(){return dK(this,t),vK(this,t,arguments)}return _K(t,e),yK(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,u=n.className,l=n.alwaysShow,c=n.clipPathId;_n(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=be(i),h=be(a),p=be(o),y=be(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=wK(f,h,p,y,this.props);if(!d&&!m)return null;var g=en(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(Rt,{className:At("recharts-reference-area",u)},t.renderRect(m,qO(qO({clipPath:g},gt(this.props,!0)),d)),Re.renderCallByParent(this.props,d))}}])})(O.Component);Pc(Tc,"displayName","ReferenceArea");Pc(Tc,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Pc(Tc,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(Gg,tv({},t,{className:"recharts-reference-area-rect"})),r});function JC(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function SK(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return CH(n,r)}function OK(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function Dl(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function AK(e,t){return JC(e,t+1)}function PK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,u=0,l=1,c=o,f=function(){var y=n==null?void 0:n[u];if(y===void 0)return{v:JC(n,l)};var m=u,d,g=function(){return d===void 0&&(d=r(y,m)),d},_=y.coordinate,b=u===0||Dl(e,_,g,c,s);b||(u=0,c=o,l+=1),b&&(c=_+e*(g()/2+i),u+=l)},h;l<=a.length;)if(h=f(),h)return h.v;return[]}function Ns(e){"@babel/helpers - typeof";return Ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ns(e)}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){TK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TK(e,t,r){return t=EK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EK(e){var t=CK(e,"string");return Ns(t)=="symbol"?t:t+""}function CK(e,t){if(Ns(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ns(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,u=t.end,l=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-u);a[h]=p=je(je({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=je(je({},p),{},{tickCoord:p.coordinate});var g=Dl(e,p.tickCoord,m,s,u);g&&(u=p.tickCoord-e*(m()/2+i),a[h]=je(je({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)l(c);return a}function kK(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,u=t.start,l=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-l);o[s-1]=c=je(je({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=Dl(e,c.tickCoord,function(){return f},u,l);p&&(l=c.tickCoord-e*(f/2+i),o[s-1]=je(je({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(_){var b=o[_],x,v=function(){return x===void 0&&(x=r(b,_)),x};if(_===0){var w=e*(b.coordinate-e*v()/2-u);o[_]=b=je(je({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else o[_]=b=je(je({},b),{},{tickCoord:b.coordinate});var S=Dl(e,b.tickCoord,v,u,l);S&&(u=b.tickCoord+e*(v()/2+i),o[_]=je(je({},b),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function Jg(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,u=e.interval,l=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(nt(u)||Qn.isSsr)return AK(i,typeof u=="number"&&nt(u)?u:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?Fo(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,x){var v=bt(l)?l(b.value,x):b.value;return p==="width"?SK(Fo(v,{fontSize:t,letterSpacing:r}),y,f):Fo(v,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?Lr(i[1].coordinate-i[0].coordinate):1,g=OK(a,d,p);return u==="equidistantPreserveStart"?PK(d,g,m,i,o):(u==="preserveStart"||u==="preserveStartEnd"?h=kK(d,g,m,i,o,u==="preserveStartEnd"):h=MK(d,g,m,i,o),h.filter(function(_){return _.isShow}))}var $K=["viewBox"],jK=["viewBox"],RK=["ticks"];function qa(e){"@babel/helpers - typeof";return qa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qa(e)}function na(){return na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},na.apply(this,arguments)}function zO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zO(Object(r),!0).forEach(function(n){Qg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fm(e,t){if(e==null)return{};var r=DK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function IK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tM(n.key),n)}}function NK(e,t,r){return t&&UO(e.prototype,t),r&&UO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LK(e,t,r){return t=Il(t),BK(e,QC()?Reflect.construct(t,r||[],Il(e).constructor):t.apply(e,r))}function BK(e,t){if(t&&(qa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qK(e)}function qK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QC=function(){return!!e})()}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Il(e)}function FK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rv(e,t)}function rv(e,t){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rv(e,t)}function Qg(e,t,r){return t=tM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tM(e){var t=zK(e,"string");return qa(t)=="symbol"?t:t+""}function zK(e,t){if(qa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ao=(function(e){function t(r){var n;return IK(this,t),n=LK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return FK(t,e),NK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=fm(n,$K),s=this.props,u=s.viewBox,l=fm(s,jK);return!ha(a,u)||!ha(o,l)||!ha(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,u=i.height,l=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,g,_,b=f?-1:1,x=n.tickSize||c,v=nt(n.tickCoord)?n.tickCoord:n.coordinate;switch(l){case"top":p=y=n.coordinate,d=o+ +!f*u,m=d-b*x,_=m-b*h,g=v;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-b*x,g=p-b*h,_=v;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+b*x,g=p+b*h,_=v;break;default:p=y=n.coordinate,d=o+ +f*u,m=d+b*x,_=m+b*h,g=v;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:g,y:_}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,u=n.orientation,l=n.mirror,c=n.axisLine,f=ve(ve(ve({},gt(this.props,!1)),gt(c,!1)),{},{fill:"none"});if(u==="top"||u==="bottom"){var h=+(u==="top"&&!l||u==="bottom"&&l);f=ve(ve({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(u==="left"&&!l||u==="right"&&l);f=ve(ve({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",na({},f,{className:At("recharts-cartesian-axis-line",Er(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,u=s.tickLine,l=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=Jg(ve(ve({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=gt(this.props,!1),g=gt(c,!1),_=ve(ve({},d),{},{fill:"none"},gt(u,!1)),b=p.map(function(x,v){var w=o.getTickLineCoord(x),S=w.line,A=w.tick,P=ve(ve(ve(ve({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:l},g),A),{},{index:v,payload:x,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(Rt,na({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},cs(o.props,x,v)),u&&O.createElement("line",na({},_,S,{className:At("recharts-cartesian-axis-tick-line",Er(u,"className"))})),c&&t.renderTickItem(c,P,"".concat(bt(f)?f(x.value,v):x.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,u=i.ticksGenerator,l=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=fm(f,RK),y=h;return bt(u)&&(y=h&&h.length>0?u(this.props):u(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(Rt,{className:At("recharts-cartesian-axis",l),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Re.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=At(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,ve(ve({},i),{},{className:s})):bt(n)?o=n(ve(ve({},i),{},{className:s})):o=O.createElement(pl,na({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);Qg(ao,"displayName","CartesianAxis");Qg(ao,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var UK=["x1","y1","x2","y2","key"],WK=["offset"];function Ii(e){"@babel/helpers - typeof";return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ii(e)}function WO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function De(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WO(Object(r),!0).forEach(function(n){GK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function GK(e,t,r){return t=HK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HK(e){var t=KK(e,"string");return Ii(t)=="symbol"?t:t+""}function KK(e,t){if(Ii(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ii(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gi(){return gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gi.apply(this,arguments)}function GO(e,t){if(e==null)return{};var r=YK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var XK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,u=t.ry;return O.createElement("rect",{x:i,y:a,ry:u,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function eM(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,u=GO(t,UK),l=gt(u,!1);l.offset;var c=GO(l,WK);r=O.createElement("line",gi({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function VK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,u){var l=De(De({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(u),index:u});return eM(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function ZK(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,u){var l=De(De({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(u),index:u});return eM(i,l)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function JK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,u=e.horizontal,l=u===void 0?!0:u;if(!l||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function QK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,u=e.height,l=e.verticalPoints;if(!r||!n||!n.length)return null;var c=l.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:u,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var t4=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return pC(Jg(De(De(De({},ao.defaultProps),n),{},{ticks:gn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},e4=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return pC(Jg(De(De(De({},ao.defaultProps),n),{},{ticks:gn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Zi={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function rM(e){var t,r,n,i,a,o,s=Xg(),u=Vg(),l=zH(),c=De(De({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Zi.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Zi.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Zi.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Zi.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Zi.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Zi.verticalFill,x:nt(e.x)?e.x:l.left,y:nt(e.y)?e.y:l.top,width:nt(e.width)?e.width:l.width,height:nt(e.height)?e.height:l.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,g=c.verticalValues,_=BH(),b=qH();if(!nt(p)||p<=0||!nt(y)||y<=0||!nt(f)||f!==+f||!nt(h)||h!==+h)return null;var x=c.verticalCoordinatesGenerator||t4,v=c.horizontalCoordinatesGenerator||e4,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&bt(v)){var A=d&&d.length,P=v({yAxis:b?De(De({},b),{},{ticks:A?d:b.ticks}):void 0,width:s,height:u,offset:l},A?!0:m);_n(Array.isArray(P),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Ii(P),"]")),Array.isArray(P)&&(w=P)}if((!S||!S.length)&&bt(x)){var C=g&&g.length,T=x({xAxis:_?De(De({},_),{},{ticks:C?g:_.ticks}):void 0,width:s,height:u,offset:l},C?!0:m);_n(Array.isArray(T),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Ii(T),"]")),Array.isArray(T)&&(S=T)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(XK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(VK,gi({},c,{offset:l,horizontalPoints:w,xAxis:_,yAxis:b})),O.createElement(ZK,gi({},c,{offset:l,verticalPoints:S,xAxis:_,yAxis:b})),O.createElement(JK,gi({},c,{horizontalPoints:w})),O.createElement(QK,gi({},c,{verticalPoints:S})))}rM.displayName="CartesianGrid";var r4=["type","layout","connectNulls","ref"],n4=["key"];function Fa(e){"@babel/helpers - typeof";return Fa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fa(e)}function HO(e,t){if(e==null)return{};var r=i4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function i4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wo.apply(this,arguments)}function KO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(r),!0).forEach(function(n){Dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ji(e){return u4(e)||s4(e)||o4(e)||a4()}function a4(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o4(e,t){if(e){if(typeof e=="string")return nv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nv(e,t)}}function s4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u4(e){if(Array.isArray(e))return nv(e)}function nv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iM(n.key),n)}}function c4(e,t,r){return t&&YO(e.prototype,t),r&&YO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f4(e,t,r){return t=Nl(t),h4(e,nM()?Reflect.construct(t,r||[],Nl(e).constructor):t.apply(e,r))}function h4(e,t){if(t&&(Fa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p4(e)}function p4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nM=function(){return!!e})()}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nl(e)}function d4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&iv(e,t)}function iv(e,t){return iv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},iv(e,t)}function Dr(e,t,r){return t=iM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iM(e){var t=m4(e,"string");return Fa(t)=="symbol"?t:t+""}function m4(e,t){if(Fa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Fa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ec=(function(e){function t(){var r;l4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=f4(this,t,[].concat(i)),Dr(r,"state",{isAnimationFinished:!0,totalLength:0}),Dr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Dr(r,"getStrokeDasharray",function(o,s,u){var l=u.reduce(function(g,_){return g+_});if(!l)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/l),f=o%l,h=s-o,p=[],y=0,m=0;y<u.length;m+=u[y],++y)if(m+u[y]>f){p=[].concat(Ji(u.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Ji(t.repeat(u,c)),Ji(p),d).map(function(g){return"".concat(g,"px")}).join(", ")}),Dr(r,"id",Ui("recharts-line-")),Dr(r,"pathRef",function(o){r.mainCurve=o}),Dr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Dr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return d4(t,e),c4(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,u=a.yAxis,l=a.layout,c=a.children,f=tr(c,no);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:_e(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Rt,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:u,layout:l,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,u=s.dot,l=s.points,c=s.dataKey,f=gt(this.props,!1),h=gt(u,!0),p=l.map(function(m,d){var g=or(or(or({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:l});return t.renderDotItem(u,g)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Rt,Wo({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,u=s.type,l=s.layout,c=s.connectNulls;s.ref;var f=HO(s,r4),h=or(or(or({},gt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:u,layout:l,connectNulls:c});return O.createElement(Ti,Wo({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.strokeDasharray,l=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,g=this.state,_=g.prevPoints,b=g.totalLength;return O.createElement(Br,{begin:c,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var v=x.t;if(_){var w=_.length/s.length,S=s.map(function(E,M){var R=Math.floor(M*w);if(_[R]){var $=_[R],k=le($.x,E.x),D=le($.y,E.y);return or(or({},E),{},{x:k(v),y:D(v)})}if(y){var L=le(m*2,E.x),q=le(d/2,E.y);return or(or({},E),{},{x:L(v),y:q(v)})}return or(or({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=le(0,b),P=A(v),C;if(u){var T="".concat(u).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});C=a.getStrokeDasharray(P,b,T)}else C=a.generateSimpleStrokeDasharray(b,P);return a.renderCurveStatically(s,n,i,{strokeDasharray:C})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,u=this.state,l=u.prevPoints,c=u.totalLength;return s&&o&&o.length&&(!l&&c>0||!Ri(l,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,l=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,_=s.length===1,b=At("recharts-line",u),x=l&&l.allowDataOverflow,v=c&&c.allowDataOverflow,w=x||v,S=yt(d)?this.id:d,A=(n=gt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,C=P===void 0?3:P,T=A.strokeWidth,E=T===void 0?2:T,M=CE(o)?o:{},R=M.clipDot,$=R===void 0?!0:R,k=C*2+E;return O.createElement(Rt,{className:b},x||v?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?h:h-p/2,y:v?f:f-y/2,width:x?p:p*2,height:v?y:y*2})),!$&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-k/2,y:f-k/2,width:p+k,height:y+k}))):null,!_&&this.renderCurve(w,S),this.renderErrorBar(w,S),(_||o)&&this.renderDots(w,$,S),(!m||g)&&tn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Ji(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Ji(o),Ji(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(bt(n))a=n(i);else{var o=i.key,s=HO(i,n4),u=At("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(bc,Wo({key:o},s,{className:u}))}return a}}])})(O.PureComponent);Dr(Ec,"displayName","Line");Dr(Ec,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Qn.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Dr(Ec,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,u=e.displayedData,l=e.offset,c=t.layout,f=u.map(function(h,p){var y=_e(h,o);return c==="horizontal"?{x:ka({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:yt(y)?null:n.scale(y),value:y,payload:h}:{x:yt(y)?null:r.scale(y),y:ka({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return or({points:f,layout:c},l)});var y4=["layout","type","stroke","connectNulls","isRange","ref"],v4=["key"],aM;function za(e){"@babel/helpers - typeof";return za=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},za(e)}function oM(e,t){if(e==null)return{};var r=g4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function g4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bi.apply(this,arguments)}function XO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XO(Object(r),!0).forEach(function(n){Jr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function b4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uM(n.key),n)}}function _4(e,t,r){return t&&VO(e.prototype,t),r&&VO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function x4(e,t,r){return t=Ll(t),w4(e,sM()?Reflect.construct(t,r||[],Ll(e).constructor):t.apply(e,r))}function w4(e,t){if(t&&(za(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S4(e)}function S4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sM=function(){return!!e})()}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function O4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&av(e,t)}function av(e,t){return av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},av(e,t)}function Jr(e,t,r){return t=uM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uM(e){var t=A4(e,"string");return za(t)=="symbol"?t:t+""}function A4(e,t){if(za(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(za(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ei=(function(e){function t(){var r;b4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=x4(this,t,[].concat(i)),Jr(r,"state",{isAnimationFinished:!0}),Jr(r,"id",Ui("recharts-area-")),Jr(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),bt(o)&&o()}),Jr(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),bt(o)&&o()}),r}return O4(t,e),_4(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var u=this.props,l=u.dot,c=u.points,f=u.dataKey,h=gt(this.props,!1),p=gt(l,!0),y=c.map(function(d,g){var _=Rn(Rn(Rn({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(l,_)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Rt,bi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].x,l=o[o.length-1].x,c=n*Math.abs(u-l),f=qn(o.map(function(h){return h.y||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(qn(a.map(function(h){return h.y||0})),f)),nt(f)?O.createElement("rect",{x:u<l?u:u-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,u=o[0].y,l=o[o.length-1].y,c=n*Math.abs(u-l),f=qn(o.map(function(h){return h.x||0}));return nt(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(qn(a.map(function(h){return h.x||0})),f)),nt(f)?O.createElement("rect",{x:0,y:u<l?u:u-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,u=s.layout,l=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=oM(s,y4);return O.createElement(Rt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(Ti,bi({},gt(p,!0),{points:n,connectNulls:f,type:l,baseLine:i,layout:u,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(Ti,bi({},gt(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(Ti,bi({},gt(this.props,!1),{className:"recharts-area-curve",layout:u,type:l,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,u=o.baseLine,l=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(Br,{begin:c,duration:f,isActive:l,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var _=g.t;if(m){var b=m.length/s.length,x=s.map(function(A,P){var C=Math.floor(P*b);if(m[C]){var T=m[C],E=le(T.x,A.x),M=le(T.y,A.y);return Rn(Rn({},A),{},{x:E(_),y:M(_)})}return A}),v;if(nt(u)&&typeof u=="number"){var w=le(d,u);v=w(_)}else if(yt(u)||to(u)){var S=le(d,0);v=S(_)}else v=u.map(function(A,P){var C=Math.floor(P*b);if(d[C]){var T=d[C],E=le(T.x,A.x),M=le(T.y,A.y);return Rn(Rn({},A),{},{x:E(_),y:M(_)})}return A});return a.renderAreaStatically(x,v,n,i)}return O.createElement(Rt,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(_))),O.createElement(Rt,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,u,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,u=a.isAnimationActive,l=this.state,c=l.prevPoints,f=l.prevBaseLine,h=l.totalLength;return u&&o&&o.length&&(!c&&h>0||!Ri(c,o)||!Ri(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,u=i.className,l=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var g=this.state.isAnimationFinished,_=s.length===1,b=At("recharts-area",u),x=f&&f.allowDataOverflow,v=h&&h.allowDataOverflow,w=x||v,S=yt(d)?this.id:d,A=(n=gt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},P=A.r,C=P===void 0?3:P,T=A.strokeWidth,E=T===void 0?2:T,M=CE(o)?o:{},R=M.clipDot,$=R===void 0?!0:R,k=C*2+E;return O.createElement(Rt,{className:b},x||v?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:x?c:c-p/2,y:v?l:l-y/2,width:x?p:p*2,height:v?y:y*2})),!$&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-k/2,y:l-k/2,width:p+k,height:y+k}))):null,_?null:this.renderArea(w,S),(o||_)&&this.renderDots(w,$,S),(!m||g)&&tn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);aM=ei;Jr(ei,"displayName","Area");Jr(ei,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Qn.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Jr(ei,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(nt(s)&&typeof s=="number")return s;var u=i==="horizontal"?n:r,l=u.scale.domain();if(u.type==="number"){var c=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(l[0],l[1]),0)}return s==="dataMin"?l[0]:s==="dataMax"?l[1]:l[0]});Jr(ei,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,u=e.dataKey,l=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=l&&l.length,m=aM.getBaseValue(t,r,n,i),d=p==="horizontal",g=!1,_=f.map(function(x,v){var w;y?w=l[c+v]:(w=_e(x,u),Array.isArray(w)?g=!0:w=[m,w]);var S=w[1]==null||y&&_e(x,u)==null;return d?{x:ka({axis:n,ticks:a,bandSize:s,entry:x,index:v}),y:S?null:i.scale(w[1]),value:w,payload:x}:{x:S?null:n.scale(w[1]),y:ka({axis:i,ticks:o,bandSize:s,entry:x,index:v}),value:w,payload:x}}),b;return y||g?b=_.map(function(x){var v=Array.isArray(x.value)?x.value[0]:null;return d?{x:x.x,y:v!=null&&x.y!=null?i.scale(v):null}:{x:v!=null?n.scale(v):null,y:x.y}}):b=d?i.scale(m):n.scale(m),Rn({points:_,baseLine:b,layout:p,isRange:g},h)});Jr(ei,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=At("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=oM(t,v4);r=O.createElement(bc,bi({},a,{key:i,className:n}))}return r});function Ua(e){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(e)}function P4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function E4(e,t,r){return t&&T4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function C4(e,t,r){return t=Bl(t),M4(e,lM()?Reflect.construct(t,r||[],Bl(e).constructor):t.apply(e,r))}function M4(e,t){if(t&&(Ua(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k4(e)}function k4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lM=function(){return!!e})()}function Bl(e){return Bl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Bl(e)}function $4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ov(e,t)}function ov(e,t){return ov=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ov(e,t)}function cM(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=j4(e,"string");return Ua(t)=="symbol"?t:t+""}function j4(e,t){if(Ua(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ua(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cc=(function(e){function t(){return P4(this,t),C4(this,t,arguments)}return $4(t,e),E4(t,[{key:"render",value:function(){return null}}])})(Tr.Component);cM(Cc,"displayName","ZAxis");cM(Cc,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var R4=["option","isActive"];function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Go.apply(this,arguments)}function D4(e,t){if(e==null)return{};var r=I4(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function I4(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function N4(e){var t=e.option,r=e.isActive,n=D4(e,R4);return typeof t=="string"?Tr.createElement(Hy,Go({option:Tr.createElement(dc,Go({type:t},n)),isActive:r,shapeType:"symbols"},n)):Tr.createElement(Hy,Go({option:t,isActive:r,shapeType:"symbols"},n))}function Wa(e){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wa(e)}function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(this,arguments)}function ZO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(r),!0).forEach(function(n){zn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function L4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pM(n.key),n)}}function B4(e,t,r){return t&&JO(e.prototype,t),r&&JO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function q4(e,t,r){return t=ql(t),F4(e,hM()?Reflect.construct(t,r||[],ql(e).constructor):t.apply(e,r))}function F4(e,t){if(t&&(Wa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z4(e)}function z4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hM=function(){return!!e})()}function ql(e){return ql=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ql(e)}function U4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sv(e,t)}function sv(e,t){return sv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sv(e,t)}function zn(e,t,r){return t=pM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pM(e){var t=W4(e,"string");return Wa(t)=="symbol"?t:t+""}function W4(e,t){if(Wa(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wa(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mc=(function(e){function t(){var r;L4(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=q4(this,t,[].concat(i)),zn(r,"state",{isAnimationFinished:!1}),zn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),zn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),zn(r,"id",Ui("recharts-scatter-")),r}return U4(t,e),B4(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,u=a.activeIndex,l=gt(this.props,!1);return n.map(function(c,f){var h=u===f,p=h?s:o,y=wr(wr({},l),c);return O.createElement(Rt,Ho({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},cs(i.props,c,f),{role:"img"}),O.createElement(N4,Ho({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,u=i.animationDuration,l=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(Br,{begin:s,duration:u,isActive:o,easing:l,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var g=f&&f[d];if(g){var _=le(g.cx,m.cx),b=le(g.cy,m.cy),x=le(g.size,m.size);return wr(wr({},m),{},{cx:_(p),cy:b(p),size:x(p)})}var v=le(0,m.size);return wr(wr({},m),{},{size:v(p)})});return O.createElement(Rt,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!Ri(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,u=i.children,l=tr(u,no);return l?l.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,g){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:_e(d,g)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,u=gt(this.props,!1),l=gt(a,!1),c,f;if(o==="joint")c=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var h=NF(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,g=function(x){return m*x+d};c=[{x:p,y:g(p)},{x:y,y:g(y)}]}var _=wr(wr(wr({},u),{},{fill:"none",stroke:u&&u.fill},l),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,_):bt(a)?f=a(_):f=O.createElement(Ti,Ho({},_,{type:s})),O.createElement(Rt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,u=n.xAxis,l=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,g=At("recharts-scatter",s),_=u&&u.allowDataOverflow,b=l&&l.allowDataOverflow,x=_||b,v=yt(y)?this.id:y;return O.createElement(Rt,{className:g,clipPath:x?"url(#clipPath-".concat(v,")"):null},_||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(v)},O.createElement("rect",{x:_?c:c-h/2,y:b?f:f-p/2,width:_?h:h*2,height:b?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(Rt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&tn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);zn(Mc,"displayName","Scatter");zn(Mc,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Qn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});zn(Mc,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,u=e.offset,l=i.props.tooltipType,c=tr(i.props.children,qg),f=yt(t.dataKey)?i.props.dataKey:t.dataKey,h=yt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:Cc.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,g=r.scale.bandwidth?r.scale.bandwidth():0,_=a.map(function(b,x){var v=_e(b,f),w=_e(b,h),S=!yt(p)&&_e(b,p)||"-",A=[{name:yt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:v,payload:b,dataKey:f,type:l},{name:yt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:b,dataKey:h,type:l}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:p,type:l});var P=ka({axis:t,ticks:o,bandSize:d,entry:b,index:x,dataKey:f}),C=ka({axis:r,ticks:s,bandSize:g,entry:b,index:x,dataKey:h}),T=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(T,0)/Math.PI);return wr(wr({},b),{},{cx:P,cy:C,x:P-E,y:C-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:T,node:{x:v,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:P,y:C},payload:b},c&&c[x]&&c[x].props)});return wr({points:_},u)});function Ga(e){"@babel/helpers - typeof";return Ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ga(e)}function G4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function K4(e,t,r){return t&&H4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y4(e,t,r){return t=Fl(t),X4(e,dM()?Reflect.construct(t,r||[],Fl(e).constructor):t.apply(e,r))}function X4(e,t){if(t&&(Ga(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V4(e)}function V4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function Fl(e){return Fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fl(e)}function Z4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uv(e,t)}function uv(e,t){return uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uv(e,t)}function mM(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=J4(e,"string");return Ga(t)=="symbol"?t:t+""}function J4(e,t){if(Ga(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ga(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lv(){return lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lv.apply(this,arguments)}function Q4(e){var t=e.xAxisId,r=Xg(),n=Vg(),i=WC(t);return i==null?null:Tr.createElement(ao,lv({},i,{className:At("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return gn(o,!0)}}))}var kc=(function(e){function t(){return G4(this,t),Y4(this,t,arguments)}return Z4(t,e),K4(t,[{key:"render",value:function(){return Tr.createElement(Q4,this.props)}}])})(Tr.Component);mM(kc,"displayName","XAxis");mM(kc,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Ha(e){"@babel/helpers - typeof";return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ha(e)}function tY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bM(n.key),n)}}function rY(e,t,r){return t&&eY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nY(e,t,r){return t=zl(t),iY(e,vM()?Reflect.construct(t,r||[],zl(e).constructor):t.apply(e,r))}function iY(e,t){if(t&&(Ha(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aY(e)}function aY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(vM=function(){return!!e})()}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zl(e)}function oY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cv(e,t)}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cv(e,t)}function gM(e,t,r){return t=bM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bM(e){var t=sY(e,"string");return Ha(t)=="symbol"?t:t+""}function sY(e,t){if(Ha(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ha(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fv(){return fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fv.apply(this,arguments)}var uY=function(t){var r=t.yAxisId,n=Xg(),i=Vg(),a=GC(r);return a==null?null:Tr.createElement(ao,fv({},a,{className:At("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return gn(s,!0)}}))},$c=(function(e){function t(){return tY(this,t),nY(this,t,arguments)}return oY(t,e),rY(t,[{key:"render",value:function(){return Tr.createElement(uY,this.props)}}])})(Tr.Component);gM($c,"displayName","YAxis");gM($c,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function QO(e){return hY(e)||fY(e)||cY(e)||lY()}function lY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cY(e,t){if(e){if(typeof e=="string")return hv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hv(e,t)}}function fY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hY(e){if(Array.isArray(e))return hv(e)}function hv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var pv=function(t,r,n,i,a){var o=tr(t,Sc),s=tr(t,Ac),u=[].concat(QO(o),QO(s)),l=tr(t,Tc),c="".concat(i,"Id"),f=i[0],h=r;if(u.length&&(h=u.reduce(function(m,d){if(d.props[c]===n&&en(d.props,"extendDomain")&&nt(d.props[f])){var g=d.props[f];return[Math.min(m[0],g),Math.max(m[1],g)]}return m},h)),l.length){var p="".concat(f,"1"),y="".concat(f,"2");h=l.reduce(function(m,d){if(d.props[c]===n&&en(d.props,"extendDomain")&&nt(d.props[p])&&nt(d.props[y])){var g=d.props[p],_=d.props[y];return[Math.min(m[0],g,_),Math.max(m[1],g,_)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return nt(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},hm={exports:{}},tA;function pY(){return tA||(tA=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(u,l,c){this.fn=u,this.context=l,this.once=c||!1}function a(u,l,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||u,h),y=r?r+l:l;return u._events[y]?u._events[y].fn?u._events[y]=[u._events[y],p]:u._events[y].push(p):(u._events[y]=p,u._eventsCount++),u}function o(u,l){--u._eventsCount===0?u._events=new n:delete u._events[l]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,f;if(this._eventsCount===0)return l;for(f in c=this._events)t.call(c,f)&&l.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=r?r+l:l,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(l){var c=r?r+l:l,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(l,c,f,h,p,y){var m=r?r+l:l;if(!this._events[m])return!1;var d=this._events[m],g=arguments.length,_,b;if(d.fn){switch(d.once&&this.removeListener(l,d.fn,void 0,!0),g){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(b=1,_=new Array(g-1);b<g;b++)_[b-1]=arguments[b];d.fn.apply(d.context,_)}else{var x=d.length,v;for(b=0;b<x;b++)switch(d[b].once&&this.removeListener(l,d[b].fn,void 0,!0),g){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,c);break;case 3:d[b].fn.call(d[b].context,c,f);break;case 4:d[b].fn.call(d[b].context,c,f,h);break;default:if(!_)for(v=1,_=new Array(g-1);v<g;v++)_[v-1]=arguments[v];d[b].fn.apply(d[b].context,_)}}return!0},s.prototype.on=function(l,c,f){return a(this,l,c,f,!1)},s.prototype.once=function(l,c,f){return a(this,l,c,f,!0)},s.prototype.removeListener=function(l,c,f,h){var p=r?r+l:l;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],g=y.length;m<g;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(l){var c;return l?(c=r?r+l:l,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(hm)),hm.exports}var dY=pY();const mY=zt(dY);var pm=new mY,dm="recharts.syncMouseEvents";function Ls(e){"@babel/helpers - typeof";return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(e)}function yY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_M(n.key),n)}}function gY(e,t,r){return t&&vY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function mm(e,t,r){return t=_M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _M(e){var t=bY(e,"string");return Ls(t)=="symbol"?t:t+""}function bY(e,t){if(Ls(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ls(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _Y=(function(){function e(){yY(this,e),mm(this,"activeIndex",0),mm(this,"coordinateList",[]),mm(this,"layout","horizontal")}return gY(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,u=r.layout,l=u===void 0?null:u,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=l??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,u=this.coordinateList[this.activeIndex].coordinate,l=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+u+l,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function xY(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&nt(n)&&nt(i))return!0}return!1}function wY(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function xM(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Ee(t,r,n,i),s=Ee(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function SY(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,u=t.cy,l=t.innerRadius,c=t.outerRadius,f=t.angle,h=Ee(s,u,l,f),p=Ee(s,u,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return xM(t);return[{x:n,y:i},{x:a,y:o}]}function Bs(e){"@babel/helpers - typeof";return Bs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(e)}function eA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Su(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(r),!0).forEach(function(n){OY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OY(e,t,r){return t=AY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AY(e){var t=PY(e,"string");return Bs(t)=="symbol"?t:t+""}function PY(e,t){if(Bs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Bs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TY(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,u=e.offset,l=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=Ti;if(h==="ScatterChart")y=o,m=e6;else if(h==="BarChart")y=wY(f,o,u,c),m=Gg;else if(f==="radial"){var d=xM(o),g=d.cx,_=d.cy,b=d.radius,x=d.startAngle,v=d.endAngle;y={cx:g,cy:_,startAngle:x,endAngle:v,innerRadius:b,outerRadius:b},m=gC}else y={points:SY(f,o,u)},m=Ti;var w=Su(Su(Su(Su({stroke:"#ccc",pointerEvents:"none"},u),y),gt(p,!1)),{},{payload:s,payloadIndex:l,className:At("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(m,w)}var EY=["item"],CY=["children","className","width","height","style","compact","title","desc"];function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(e)}function ia(){return ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ia.apply(this,arguments)}function rA(e,t){return $Y(e)||kY(e,t)||SM(e,t)||MY()}function MY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],u=!0,l=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(u=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $Y(e){if(Array.isArray(e))return e}function nA(e,t){if(e==null)return{};var r=jY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function RY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OM(n.key),n)}}function IY(e,t,r){return t&&DY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NY(e,t,r){return t=Ul(t),LY(e,wM()?Reflect.construct(t,r||[],Ul(e).constructor):t.apply(e,r))}function LY(e,t){if(t&&(Ka(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BY(e)}function BY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wM=function(){return!!e})()}function Ul(e){return Ul=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ul(e)}function qY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dv(e,t)}function dv(e,t){return dv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dv(e,t)}function Ya(e){return UY(e)||zY(e)||SM(e)||FY()}function FY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SM(e,t){if(e){if(typeof e=="string")return mv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return mv(e,t)}}function zY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UY(e){if(Array.isArray(e))return mv(e)}function mv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function iA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(r),!0).forEach(function(n){dt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dt(e,t,r){return t=OM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OM(e){var t=WY(e,"string");return Ka(t)=="symbol"?t:t+""}function WY(e,t){if(Ka(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ka(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GY={xAxis:["bottom","top"],yAxis:["left","right"]},HY={width:"100%",height:"100%"},AM={x:0,y:0};function Ou(e){return e}var KY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},YY=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return Y(Y(Y({},i),Ee(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var u=a.coordinate,l=i.angle;return Y(Y(Y({},i),Ee(i.cx,i.cy,u,l)),{},{angle:l,radius:u})}return AM},jc=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,u){var l=u.props.data;return l&&l.length?[].concat(Ya(s),Ya(l)):s},[]);return o.length>0?o:t&&t.length&&nt(i)&&nt(a)?t.slice(i,a+1):[]};function PM(e){return e==="number"?[0,"auto"]:void 0}var yv=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=jc(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(u,l){var c,f=(c=l.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=ol(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Ya(u),[mC(l,h)]):u},[])},aA=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=KY(a,n),s=t.orderedTooltipTicks,u=t.tooltipAxis,l=t.tooltipTicks,c=$U(o,s,l,u);if(c>=0&&l){var f=l[c]&&l[c].value,h=yv(t,r,c,f),p=YY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},XY=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=hC(c,a);return n.reduce(function(y,m){var d,g=m.type.defaultProps!==void 0?Y(Y({},m.type.defaultProps),m.props):m.props,_=g.type,b=g.dataKey,x=g.allowDataOverflow,v=g.allowDuplicatedCategory,w=g.scale,S=g.ticks,A=g.includeHidden,P=g[o];if(y[P])return y;var C=jc(t.data,{graphicalItems:i.filter(function(B){var W,G=o in B.props?B.props[o]:(W=B.type.defaultProps)===null||W===void 0?void 0:W[o];return G===P}),dataStartIndex:u,dataEndIndex:l}),T=C.length,E,M,R;xY(g.domain,x,_)&&(E=My(g.domain,null,x),p&&(_==="number"||w!=="auto")&&(R=zo(C,b,"category")));var $=PM(_);if(!E||E.length===0){var k,D=(k=g.domain)!==null&&k!==void 0?k:$;if(b){if(E=zo(C,b,_),_==="category"&&p){var L=IF(E);v&&L?(M=E,E=ls(0,T)):v||(E=cS(D,E,m).reduce(function(B,W){return B.indexOf(W)>=0?B:[].concat(Ya(B),[W])},[]))}else if(_==="category")v?E=E.filter(function(B){return B!==""&&!yt(B)}):E=cS(D,E,m).reduce(function(B,W){return B.indexOf(W)>=0||W===""||yt(W)?B:[].concat(Ya(B),[W])},[]);else if(_==="number"){var q=NU(C,i.filter(function(B){var W,G,X=o in B.props?B.props[o]:(W=B.type.defaultProps)===null||W===void 0?void 0:W[o],Z="hide"in B.props?B.props.hide:(G=B.type.defaultProps)===null||G===void 0?void 0:G.hide;return X===P&&(A||!Z)}),b,a,c);q&&(E=q)}p&&(_==="number"||w!=="auto")&&(R=zo(C,b,"category"))}else p?E=ls(0,T):s&&s[P]&&s[P].hasStack&&_==="number"?E=h==="expand"?[0,1]:dC(s[P].stackGroups,u,l):E=fC(C,i.filter(function(B){var W=o in B.props?B.props[o]:B.type.defaultProps[o],G="hide"in B.props?B.props.hide:B.type.defaultProps.hide;return W===P&&(A||!G)}),_,c,!0);if(_==="number")E=pv(f,E,P,a,S),D&&(E=My(D,E,x));else if(_==="category"&&D){var I=D,j=E.every(function(B){return I.indexOf(B)>=0});j&&(E=I)}}return Y(Y({},y),{},dt({},P,Y(Y({},g),{},{axisType:a,domain:E,categoricalDomain:R,duplicateDomain:M,originalDomain:(d=g.domain)!==null&&d!==void 0?d:$,isCategorical:p,layout:c})))},{})},VY=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.layout,f=t.children,h=jc(t.data,{graphicalItems:n,dataStartIndex:u,dataEndIndex:l}),p=h.length,y=hC(c,a),m=-1;return n.reduce(function(d,g){var _=g.type.defaultProps!==void 0?Y(Y({},g.type.defaultProps),g.props):g.props,b=_[o],x=PM("number");if(!d[b]){m++;var v;return y?v=ls(0,p):s&&s[b]&&s[b].hasStack?(v=dC(s[b].stackGroups,u,l),v=pv(f,v,b,a)):(v=My(x,fC(h,n.filter(function(w){var S,A,P=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],C="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return P===b&&!C}),"number",c),i.defaultProps.allowDataOverflow),v=pv(f,v,b,a)),Y(Y({},d),{},dt({},b,Y(Y({axisType:a},i.defaultProps),{},{hide:!0,orientation:Er(GY,"".concat(a,".").concat(m%2),null),domain:v,originalDomain:x,isCategorical:y,layout:c})))}return d},{})},ZY=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,u=r.dataStartIndex,l=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=tr(c,a),p={};return h&&h.length?p=XY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l}):o&&o.length&&(p=VY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:u,dataEndIndex:l})),p},JY=function(t){var r=In(t),n=gn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:hc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:vl(r,n)}},oA=function(t){var r=t.children,n=t.defaultShowTooltip,i=ur(r,Ra),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},QY=function(t){return!t||!t.length?!1:t.some(function(r){var n=bn(r&&r.type);return n&&n.indexOf("Bar")>=0})},sA=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},tX=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,u=s===void 0?{}:s,l=n.width,c=n.height,f=n.children,h=n.margin||{},p=ur(f,Ra),y=ur(f,Ai),m=Object.keys(u).reduce(function(v,w){var S=u[w],A=S.orientation;return!S.mirror&&!S.hide?Y(Y({},v),{},dt({},A,v[A]+S.width)):v},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(v,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?Y(Y({},v),{},dt({},A,Er(v,"".concat(A))+S.height)):v},{top:h.top||0,bottom:h.bottom||0}),g=Y(Y({},d),m),_=g.bottom;p&&(g.bottom+=p.props.height||Ra.defaultProps.height),y&&r&&(g=DU(g,i,n,r));var b=l-g.left-g.right,x=c-g.top-g.bottom;return Y(Y({brushBottom:_},g),{},{width:Math.max(b,0),height:Math.max(x,0)})},eX=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},rX=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,u=t.axisComponents,l=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(g,_){var b=_.graphicalItems,x=_.stackGroups,v=_.offset,w=_.updateId,S=_.dataStartIndex,A=_.dataEndIndex,P=g.barSize,C=g.layout,T=g.barGap,E=g.barCategoryGap,M=g.maxBarSize,R=sA(C),$=R.numericAxisName,k=R.cateAxisName,D=QY(b),L=[];return b.forEach(function(q,I){var j=jc(g.data,{graphicalItems:[q],dataStartIndex:S,dataEndIndex:A}),B=q.type.defaultProps!==void 0?Y(Y({},q.type.defaultProps),q.props):q.props,W=B.dataKey,G=B.maxBarSize,X=B["".concat($,"Id")],Z=B["".concat(k,"Id")],J={},z=u.reduce(function(ft,wt){var $t,Gt,Et=_["".concat(wt.axisType,"Map")],Dt=B["".concat(wt.axisType,"Id")];Et&&Et[Dt]||wt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?Ye(!1,"Specifying a(n) ".concat(wt.axisType,"Id requires a corresponding ").concat(wt.axisType,"Id on the targeted graphical component ").concat(($t=q==null||(Gt=q.type)===null||Gt===void 0?void 0:Gt.displayName)!==null&&$t!==void 0?$t:"")):Ye());var ye=Et[Dt];return Y(Y({},ft),{},dt(dt({},wt.axisType,ye),"".concat(wt.axisType,"Ticks"),gn(ye)))},J),F=z[k],H=z["".concat(k,"Ticks")],Q=x&&x[X]&&x[X].hasStack&&XU(q,x[X].stackGroups),N=bn(q.type).indexOf("Bar")>=0,st=vl(F,H),K=[],ot=D&&jU({barSize:P,stackGroups:x,totalSize:eX(z,k)});if(N){var ht,at,pt=yt(G)?M:G,Tt=(ht=(at=vl(F,H,!0))!==null&&at!==void 0?at:pt)!==null&&ht!==void 0?ht:0;K=RU({barGap:T,barCategoryGap:E,bandSize:Tt!==st?Tt:st,sizeList:ot[Z],maxBarSize:pt}),Tt!==st&&(K=K.map(function(ft){return Y(Y({},ft),{},{position:Y(Y({},ft.position),{},{offset:ft.position.offset-Tt/2})})}))}var it=q&&q.type&&q.type.getComposedData;it&&L.push({props:Y(Y({},it(Y(Y({},z),{},{displayedData:j,props:g,dataKey:W,item:q,bandSize:st,barPosition:K,offset:v,stackedData:Q,layout:C,dataStartIndex:S,dataEndIndex:A}))),{},dt(dt(dt({key:q.key||"item-".concat(I)},$,z[$]),k,z[k]),"animationId",w)),childIndex:XF(q,g.children),item:q})}),L},p=function(g,_){var b=g.props,x=g.dataStartIndex,v=g.dataEndIndex,w=g.updateId;if(!K1({props:b}))return null;var S=b.children,A=b.layout,P=b.stackOffset,C=b.data,T=b.reverseStackOrder,E=sA(A),M=E.numericAxisName,R=E.cateAxisName,$=tr(S,n),k=HU(C,$,"".concat(M,"Id"),"".concat(R,"Id"),P,T),D=u.reduce(function(B,W){var G="".concat(W.axisType,"Map");return Y(Y({},B),{},dt({},G,ZY(b,Y(Y({},W),{},{graphicalItems:$,stackGroups:W.axisType===M&&k,dataStartIndex:x,dataEndIndex:v}))))},{}),L=tX(Y(Y({},D),{},{props:b,graphicalItems:$}),_==null?void 0:_.legendBBox);Object.keys(D).forEach(function(B){D[B]=c(b,D[B],L,B.replace("Map",""),r)});var q=D["".concat(R,"Map")],I=JY(q),j=h(b,Y(Y({},D),{},{dataStartIndex:x,dataEndIndex:v,updateId:w,graphicalItems:$,stackGroups:k,offset:L}));return Y(Y({formattedGraphicalItems:j,graphicalItems:$,offset:L,stackGroups:k},I),D)},y=(function(d){function g(_){var b,x,v;return RY(this,g),v=NY(this,g,[_]),dt(v,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),dt(v,"accessibilityManager",new _Y),dt(v,"handleLegendBBoxUpdate",function(w){if(w){var S=v.state,A=S.dataStartIndex,P=S.dataEndIndex,C=S.updateId;v.setState(Y({legendBBox:w},p({props:v.props,dataStartIndex:A,dataEndIndex:P,updateId:C},Y(Y({},v.state),{},{legendBBox:w}))))}}),dt(v,"handleReceiveSyncEvent",function(w,S,A){if(v.props.syncId===w){if(A===v.eventEmitterSymbol&&typeof v.props.syncMethod!="function")return;v.applySyncEvent(S)}}),dt(v,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==v.state.dataStartIndex||A!==v.state.dataEndIndex){var P=v.state.updateId;v.setState(function(){return Y({dataStartIndex:S,dataEndIndex:A},p({props:v.props,dataStartIndex:S,dataEndIndex:A,updateId:P},v.state))}),v.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),dt(v,"handleMouseEnter",function(w){var S=v.getMouseInfo(w);if(S){var A=Y(Y({},S),{},{isTooltipActive:!0});v.setState(A),v.triggerSyncEvent(A);var P=v.props.onMouseEnter;bt(P)&&P(A,w)}}),dt(v,"triggeredAfterMouseMove",function(w){var S=v.getMouseInfo(w),A=S?Y(Y({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};v.setState(A),v.triggerSyncEvent(A);var P=v.props.onMouseMove;bt(P)&&P(A,w)}),dt(v,"handleItemMouseEnter",function(w){v.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),dt(v,"handleItemMouseLeave",function(){v.setState(function(){return{isTooltipActive:!1}})}),dt(v,"handleMouseMove",function(w){w.persist(),v.throttleTriggeredAfterMouseMove(w)}),dt(v,"handleMouseLeave",function(w){v.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};v.setState(S),v.triggerSyncEvent(S);var A=v.props.onMouseLeave;bt(A)&&A(S,w)}),dt(v,"handleOuterEvent",function(w){var S=YF(w),A=Er(v.props,"".concat(S));if(S&&bt(A)){var P,C;/.*touch.*/i.test(S)?C=v.getMouseInfo(w.changedTouches[0]):C=v.getMouseInfo(w),A((P=C)!==null&&P!==void 0?P:{},w)}}),dt(v,"handleClick",function(w){var S=v.getMouseInfo(w);if(S){var A=Y(Y({},S),{},{isTooltipActive:!0});v.setState(A),v.triggerSyncEvent(A);var P=v.props.onClick;bt(P)&&P(A,w)}}),dt(v,"handleMouseDown",function(w){var S=v.props.onMouseDown;if(bt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"handleMouseUp",function(w){var S=v.props.onMouseUp;if(bt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),dt(v,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseDown(w.changedTouches[0])}),dt(v,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&v.handleMouseUp(w.changedTouches[0])}),dt(v,"handleDoubleClick",function(w){var S=v.props.onDoubleClick;if(bt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"handleContextMenu",function(w){var S=v.props.onContextMenu;if(bt(S)){var A=v.getMouseInfo(w);S(A,w)}}),dt(v,"triggerSyncEvent",function(w){v.props.syncId!==void 0&&pm.emit(dm,v.props.syncId,w,v.eventEmitterSymbol)}),dt(v,"applySyncEvent",function(w){var S=v.props,A=S.layout,P=S.syncMethod,C=v.state.updateId,T=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)v.setState(Y({dataStartIndex:T,dataEndIndex:E},p({props:v.props,dataStartIndex:T,dataEndIndex:E,updateId:C},v.state)));else if(w.activeTooltipIndex!==void 0){var M=w.chartX,R=w.chartY,$=w.activeTooltipIndex,k=v.state,D=k.offset,L=k.tooltipTicks;if(!D)return;if(typeof P=="function")$=P(L,w);else if(P==="value"){$=-1;for(var q=0;q<L.length;q++)if(L[q].value===w.activeLabel){$=q;break}}var I=Y(Y({},D),{},{x:D.left,y:D.top}),j=Math.min(M,I.x+I.width),B=Math.min(R,I.y+I.height),W=L[$]&&L[$].value,G=yv(v.state,v.props.data,$),X=L[$]?{x:A==="horizontal"?L[$].coordinate:j,y:A==="horizontal"?B:L[$].coordinate}:AM;v.setState(Y(Y({},w),{},{activeLabel:W,activeCoordinate:X,activePayload:G,activeTooltipIndex:$}))}else v.setState(w)}),dt(v,"renderCursor",function(w){var S,A=v.state,P=A.isTooltipActive,C=A.activeCoordinate,T=A.activePayload,E=A.offset,M=A.activeTooltipIndex,R=A.tooltipAxisBandSize,$=v.getTooltipEventType(),k=(S=w.props.active)!==null&&S!==void 0?S:P,D=v.props.layout,L=w.key||"_recharts-cursor";return O.createElement(TY,{key:L,activeCoordinate:C,activePayload:T,activeTooltipIndex:M,chartName:r,element:w,isActive:k,layout:D,offset:E,tooltipAxisBandSize:R,tooltipEventType:$})}),dt(v,"renderPolarAxis",function(w,S,A){var P=Er(w,"type.axisType"),C=Er(v.state,"".concat(P,"Map")),T=w.type.defaultProps,E=T!==void 0?Y(Y({},T),w.props):w.props,M=C&&C[E["".concat(P,"Id")]];return O.cloneElement(w,Y(Y({},M),{},{className:At(P,M.className),key:w.key||"".concat(S,"-").concat(A),ticks:gn(M,!0)}))}),dt(v,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,P=S.polarAngles,C=S.polarRadius,T=v.state,E=T.radiusAxisMap,M=T.angleAxisMap,R=In(E),$=In(M),k=$.cx,D=$.cy,L=$.innerRadius,q=$.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(P)?P:gn($,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(C)?C:gn(R,!0).map(function(I){return I.coordinate}),cx:k,cy:D,innerRadius:L,outerRadius:q,key:w.key||"polar-grid",radialLines:A})}),dt(v,"renderLegend",function(){var w=v.state.formattedGraphicalItems,S=v.props,A=S.children,P=S.width,C=S.height,T=v.props.margin||{},E=P-(T.left||0)-(T.right||0),M=lC({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:l});if(!M)return null;var R=M.item,$=nA(M,EY);return O.cloneElement(R,Y(Y({},$),{},{chartWidth:P,chartHeight:C,margin:T,onBBoxUpdate:v.handleLegendBBoxUpdate}))}),dt(v,"renderTooltip",function(){var w,S=v.props,A=S.children,P=S.accessibilityLayer,C=ur(A,Yr);if(!C)return null;var T=v.state,E=T.isTooltipActive,M=T.activeCoordinate,R=T.activePayload,$=T.activeLabel,k=T.offset,D=(w=C.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(C,{viewBox:Y(Y({},k),{},{x:k.left,y:k.top}),active:D,label:$,payload:D?R:[],coordinate:M,accessibilityLayer:P})}),dt(v,"renderBrush",function(w){var S=v.props,A=S.margin,P=S.data,C=v.state,T=C.offset,E=C.dataStartIndex,M=C.dataEndIndex,R=C.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:vu(v.handleBrushChange,w.props.onChange),data:P,x:nt(w.props.x)?w.props.x:T.left,y:nt(w.props.y)?w.props.y:T.top+T.height+T.brushBottom-(A.bottom||0),width:nt(w.props.width)?w.props.width:T.width,startIndex:E,endIndex:M,updateId:"brush-".concat(R)})}),dt(v,"renderReferenceElement",function(w,S,A){if(!w)return null;var P=v,C=P.clipPathId,T=v.state,E=T.xAxisMap,M=T.yAxisMap,R=T.offset,$=w.type.defaultProps||{},k=w.props,D=k.xAxisId,L=D===void 0?$.xAxisId:D,q=k.yAxisId,I=q===void 0?$.yAxisId:q;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[L],yAxis:M[I],viewBox:{x:R.left,y:R.top,width:R.width,height:R.height},clipPathId:C})}),dt(v,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,P=w.basePoint,C=w.childIndex,T=w.isRange,E=[],M=S.props.key,R=S.item.type.defaultProps!==void 0?Y(Y({},S.item.type.defaultProps),S.item.props):S.item.props,$=R.activeDot,k=R.dataKey,D=Y(Y({index:C,dataKey:k,cx:A.x,cy:A.y,r:4,fill:Ug(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},gt($,!1)),sl($));return E.push(g.renderActiveDot($,D,"".concat(M,"-activePoint-").concat(C))),P?E.push(g.renderActiveDot($,Y(Y({},D),{},{cx:P.x,cy:P.y}),"".concat(M,"-basePoint-").concat(C))):T&&E.push(null),E}),dt(v,"renderGraphicChild",function(w,S,A){var P=v.filterFormatItem(w,S,A);if(!P)return null;var C=v.getTooltipEventType(),T=v.state,E=T.isTooltipActive,M=T.tooltipAxis,R=T.activeTooltipIndex,$=T.activeLabel,k=v.props.children,D=ur(k,Yr),L=P.props,q=L.points,I=L.isRange,j=L.baseLine,B=P.item.type.defaultProps!==void 0?Y(Y({},P.item.type.defaultProps),P.item.props):P.item.props,W=B.activeDot,G=B.hide,X=B.activeBar,Z=B.activeShape,J=!!(!G&&E&&D&&(W||X||Z)),z={};C!=="axis"&&D&&D.props.trigger==="click"?z={onClick:vu(v.handleItemMouseEnter,w.props.onClick)}:C!=="axis"&&(z={onMouseLeave:vu(v.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:vu(v.handleItemMouseEnter,w.props.onMouseEnter)});var F=O.cloneElement(w,Y(Y({},P.props),z));function H(wt){return typeof M.dataKey=="function"?M.dataKey(wt.payload):null}if(J)if(R>=0){var Q,N;if(M.dataKey&&!M.allowDuplicatedCategory){var st=typeof M.dataKey=="function"?H:"payload.".concat(M.dataKey.toString());Q=ol(q,st,$),N=I&&j&&ol(j,st,$)}else Q=q==null?void 0:q[R],N=I&&j&&j[R];if(Z||X){var K=w.props.activeIndex!==void 0?w.props.activeIndex:R;return[O.cloneElement(w,Y(Y(Y({},P.props),z),{},{activeIndex:K})),null,null]}if(!yt(Q))return[F].concat(Ya(v.renderActivePoints({item:P,activePoint:Q,basePoint:N,childIndex:R,isRange:I})))}else{var ot,ht=(ot=v.getItemByXY(v.state.activeCoordinate))!==null&&ot!==void 0?ot:{graphicalItem:F},at=ht.graphicalItem,pt=at.item,Tt=pt===void 0?w:pt,it=at.childIndex,ft=Y(Y(Y({},P.props),z),{},{activeIndex:it});return[O.cloneElement(Tt,ft),null,null]}return I?[F,null,null]:[F,null]}),dt(v,"renderCustomized",function(w,S,A){return O.cloneElement(w,Y(Y({key:"recharts-customized-".concat(A)},v.props),v.state))}),dt(v,"renderMap",{CartesianGrid:{handler:Ou,once:!0},ReferenceArea:{handler:v.renderReferenceElement},ReferenceLine:{handler:Ou},ReferenceDot:{handler:v.renderReferenceElement},XAxis:{handler:Ou},YAxis:{handler:Ou},Brush:{handler:v.renderBrush,once:!0},Bar:{handler:v.renderGraphicChild},Line:{handler:v.renderGraphicChild},Area:{handler:v.renderGraphicChild},Radar:{handler:v.renderGraphicChild},RadialBar:{handler:v.renderGraphicChild},Scatter:{handler:v.renderGraphicChild},Pie:{handler:v.renderGraphicChild},Funnel:{handler:v.renderGraphicChild},Tooltip:{handler:v.renderCursor,once:!0},PolarGrid:{handler:v.renderPolarGrid,once:!0},PolarAngleAxis:{handler:v.renderPolarAxis},PolarRadiusAxis:{handler:v.renderPolarAxis},Customized:{handler:v.renderCustomized}}),v.clipPathId="".concat((b=_.id)!==null&&b!==void 0?b:Ui("recharts"),"-clip"),v.throttleTriggeredAfterMouseMove=zE(v.triggeredAfterMouseMove,(x=_.throttleDelay)!==null&&x!==void 0?x:1e3/60),v.state={},v}return qY(g,d),IY(g,[{key:"componentDidMount",value:function(){var b,x;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(x=this.props.margin.top)!==null&&x!==void 0?x:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,x=b.children,v=b.data,w=b.height,S=b.layout,A=ur(x,Yr);if(A){var P=A.props.defaultIndex;if(!(typeof P!="number"||P<0||P>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[P]&&this.state.tooltipTicks[P].value,T=yv(this.state,v,P,C),E=this.state.tooltipTicks[P].coordinate,M=(this.state.offset.top+w)/2,R=S==="horizontal",$=R?{x:E,y:M}:{y:E,x:M},k=this.state.formattedGraphicalItems.find(function(L){var q=L.item;return q.type.name==="Scatter"});k&&($=Y(Y({},$),k.props.points[P].tooltipPosition),T=k.props.points[P].tooltipPayload);var D={activeTooltipIndex:P,isTooltipActive:!0,activeLabel:C,activePayload:T,activeCoordinate:$};this.setState(D),this.renderCursor(A),this.accessibilityManager.setIndex(P)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,x){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==x.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var v,w;this.accessibilityManager.setDetails({offset:{left:(v=this.props.margin.left)!==null&&v!==void 0?v:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){ly([ur(b.children,Yr)],[ur(this.props.children,Yr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=ur(this.props.children,Yr);if(b&&typeof b.props.shared=="boolean"){var x=b.props.shared?"axis":"item";return s.indexOf(x)>=0?x:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var x=this.container,v=x.getBoundingClientRect(),w=Q5(v),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},A=v.width/x.offsetWidth||1,P=this.inRange(S.chartX,S.chartY,A);if(!P)return null;var C=this.state,T=C.xAxisMap,E=C.yAxisMap,M=this.getTooltipEventType(),R=aA(this.state,this.props.data,this.props.layout,P);if(M!=="axis"&&T&&E){var $=In(T).scale,k=In(E).scale,D=$&&$.invert?$.invert(S.chartX):null,L=k&&k.invert?k.invert(S.chartY):null;return Y(Y({},S),{},{xValue:D,yValue:L},R)}return R?Y(Y({},S),R):null}},{key:"inRange",value:function(b,x){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=b/v,A=x/v;if(w==="horizontal"||w==="vertical"){var P=this.state.offset,C=S>=P.left&&S<=P.left+P.width&&A>=P.top&&A<=P.top+P.height;return C?{x:S,y:A}:null}var T=this.state,E=T.angleAxisMap,M=T.radiusAxisMap;if(E&&M){var R=In(E);return pS({x:S,y:A},R)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,x=this.getTooltipEventType(),v=ur(b,Yr),w={};v&&x==="axis"&&(v.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=sl(this.props,this.handleOuterEvent);return Y(Y({},S),w)}},{key:"addListener",value:function(){pm.on(dm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pm.removeListener(dm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,x,v){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var P=w[S];if(P.item===b||P.props.key===b.key||x===bn(P.item.type)&&v===P.childIndex)return P}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,x=this.state.offset,v=x.left,w=x.top,S=x.height,A=x.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:v,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(x,v){var w=rA(v,2),S=w[0],A=w[1];return Y(Y({},x),{},dt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(x,v){var w=rA(v,2),S=w[0],A=w[1];return Y(Y({},x),{},dt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var x;return(x=this.state.xAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getYScaleByAxisId",value:function(b){var x;return(x=this.state.yAxisMap)===null||x===void 0||(x=x[b])===null||x===void 0?void 0:x.scale}},{key:"getItemByXY",value:function(b){var x=this.state,v=x.formattedGraphicalItems,w=x.activeItem;if(v&&v.length)for(var S=0,A=v.length;S<A;S++){var P=v[S],C=P.props,T=P.item,E=T.type.defaultProps!==void 0?Y(Y({},T.type.defaultProps),T.props):T.props,M=bn(T.type);if(M==="Bar"){var R=(C.data||[]).find(function(L){return GG(b,L)});if(R)return{graphicalItem:P,payload:R}}else if(M==="RadialBar"){var $=(C.data||[]).find(function(L){return pS(b,L)});if($)return{graphicalItem:P,payload:$}}else if(_c(P,w)||xc(P,w)||Rs(P,w)){var k=R6({graphicalItem:P,activeTooltipItem:w,itemData:E.data}),D=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:Y(Y({},P),{},{childIndex:D}),payload:Rs(P,w)?E.data[k]:P.props.data[k]}}}return null}},{key:"render",value:function(){var b=this;if(!K1(this))return null;var x=this.props,v=x.children,w=x.className,S=x.width,A=x.height,P=x.style,C=x.compact,T=x.title,E=x.desc,M=nA(x,CY),R=gt(M,!1);if(C)return O.createElement(jO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(fy,ia({},R,{width:S,height:A,title:T,desc:E}),this.renderClipPath(),X1(v,this.renderMap)));if(this.props.accessibilityLayer){var $,k;R.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,R.role=(k=this.props.role)!==null&&k!==void 0?k:"application",R.onKeyDown=function(L){b.accessibilityManager.keyboardEvent(L)},R.onFocus=function(){b.accessibilityManager.focus()}}var D=this.parseEventsOfWrapper();return O.createElement(jO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",ia({className:At("recharts-wrapper",w),style:Y({position:"relative",cursor:"default",width:S,height:A},P)},D,{ref:function(q){b.container=q}}),O.createElement(fy,ia({},R,{width:S,height:A,title:T,desc:E,style:HY}),this.renderClipPath(),X1(v,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);dt(y,"displayName",r),dt(y,"defaultProps",Y({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),dt(y,"getDerivedStateFromProps",function(d,g){var _=d.dataKey,b=d.data,x=d.children,v=d.width,w=d.height,S=d.layout,A=d.stackOffset,P=d.margin,C=g.dataStartIndex,T=g.dataEndIndex;if(g.updateId===void 0){var E=oA(d);return Y(Y(Y({},E),{},{updateId:0},p(Y(Y({props:d},E),{},{updateId:0}),g)),{},{prevDataKey:_,prevData:b,prevWidth:v,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:P,prevChildren:x})}if(_!==g.prevDataKey||b!==g.prevData||v!==g.prevWidth||w!==g.prevHeight||S!==g.prevLayout||A!==g.prevStackOffset||!ha(P,g.prevMargin)){var M=oA(d),R={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},$=Y(Y({},aA(g,b,S)),{},{updateId:g.updateId+1}),k=Y(Y(Y({},M),R),$);return Y(Y(Y({},k),p(Y({props:d},k),g)),{},{prevDataKey:_,prevData:b,prevWidth:v,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:P,prevChildren:x})}if(!ly(x,g.prevChildren)){var D,L,q,I,j=ur(x,Ra),B=j&&(D=(L=j.props)===null||L===void 0?void 0:L.startIndex)!==null&&D!==void 0?D:C,W=j&&(q=(I=j.props)===null||I===void 0?void 0:I.endIndex)!==null&&q!==void 0?q:T,G=B!==C||W!==T,X=!yt(b),Z=X&&!G?g.updateId:g.updateId+1;return Y(Y({updateId:Z},p(Y(Y({props:d},g),{},{updateId:Z,dataStartIndex:B,dataEndIndex:W}),g)),{},{prevChildren:x,dataStartIndex:B,dataEndIndex:W})}return null}),dt(y,"renderActiveDot",function(d,g,_){var b;return O.isValidElement(d)?b=O.cloneElement(d,g):bt(d)?b=d(g):b=O.createElement(bc,g),O.createElement(Rt,{className:"recharts-active-dot",key:_},b)});var m=O.forwardRef(function(g,_){return O.createElement(y,ia({},g,{ref:_}))});return m.displayName=y.displayName,m},nX=rX({chartName:"ComposedChart",GraphicalChild:[Ec,ei,io,Mc],axisComponents:[{axisType:"xAxis",AxisComp:kc},{axisType:"yAxis",AxisComp:$c},{axisType:"zAxis",AxisComp:Cc}],formatAxisMap:PH});const So=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},iX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),aX=e=>new Intl.NumberFormat("en-US").format(e);function oX(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return So()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&So()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return So()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(So()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(So()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:u}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),l=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||iX,[n]),f=O.useMemo(()=>i||aX,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:u,maxTotalValue:l,dateFormatter:c,valueFormatter:f}}function sX(e,t){const r=t-1-e,n=Io.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return Io[a]??Io[0]??"#000000"}function uX(e){return Array.from({length:e},(t,r)=>sX(r,e))}const Qi=uX(5),pn={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:Qe.neoDigitalGreen[600],inProgress:"#007bff",farthest:Qi[0],far:Qi[1],close:Qi[2],closest:Qi[3],completed:Qi[4],primary:"#007bff",secondary:"#6c757d",success:Qe.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:Qe.neoGrey[200],dark:"#343a40"},Ct={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:Qe.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:Qe.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},lX={migration:Qi,severity:[pn.critical,pn.high,pn.medium,pn.low,pn.info],status:[pn.danger,pn.warning,pn.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},cX={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},fX=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Ct.display.showHeader,height:o=Ct.dimensions.height,width:s=Ct.dimensions.width,showLegend:u=Ct.display.showLegend,showTooltip:l=Ct.display.showTooltip,showXAxis:c=Ct.display.showXAxis,showYAxis:f=Ct.display.showYAxis,showGrid:h=Ct.display.showGrid,enableAnimation:p=Ct.animation.enabled,animationDuration:y=Ct.animation.duration,animationEasing:m=Ct.animation.easing,formatDate:d,formatValue:g,tooltipFormatter:_,slotProps:b,margin:x=Ct.margin,curveType:v=Ct.curve.type,stackOffset:w=Ct.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:P=!1,zoomToSelection:C=!1})=>{const{processedData:T,processedCategories:E,dateFormatter:M,valueFormatter:R}=oX({data:e,categories:t,formatDate:d,formatValue:g}),[$,k]=O.useState(null),[D,L]=O.useState(!1),[q,I]=O.useState(null),[j,B]=O.useState(null),W=O.useRef(null),G=S?[S[0],S[1]]:["dataMin","dataMax"],X=T.length>0?T[0].timestamp:0,Z=T.length>0?T[T.length-1].timestamp:0,J=O.useCallback((it,ft)=>{const wt=it/ft*100,$t=Z-X;return X+wt/100*$t},[X,Z]),z=O.useCallback(it=>{const ft=Z-X;return ft===0?0:(it-X)/ft*100},[X,Z]),F=O.useCallback(it=>{if(!P)return;const ft=it.currentTarget.getBoundingClientRect(),wt=it.clientX-ft.left,$t=J(wt,ft.width);L(!0),I($t),B($t)},[P,J]),H=O.useCallback(it=>{if(!W.current)return;const ft=it.currentTarget.getBoundingClientRect(),wt=it.clientX-ft.left,$t=ft.width,Gt=J(wt,$t);if(D)q!==null&&B(Gt);else{const Dt=r.find(ye=>Math.abs(ye.timestamp-Gt)<2592e5);k((Dt==null?void 0:Dt.timestamp)??null)}},[D,q,J,r]),Q=O.useCallback(()=>{if(D&&q!==null&&j!==null&&A){const it=Math.min(q,j),ft=Math.max(q,j);it!==ft&&A([it,ft])}L(!1),I(null),B(null)},[D,q,j,A]),N=O.useCallback(()=>{Q(),k(null)},[Q]),K=(C?D:!0)&&D&&q!==null&&j!==null?{left:z(Math.min(q,j)),width:Math.abs(z(j)-z(q))}:null,ht=(S?T.filter(it=>it.timestamp>=S[0]&&it.timestamp<=S[1]):T).slice().reverse().map(it=>{const ft=r.find(wt=>wt.timestamp===it.timestamp);return ft&&ft.label?{...it,__markerLabel:ft.label}:it}),at=it=>M(it),pt=it=>R(it),Tt=({active:it,payload:ft,label:wt})=>{if(!it||!ft||ft.length===0)return null;const $t=ht.find(Et=>Et.timestamp===wt);if($t&&"__markerLabel"in $t){const Dt=String($t.__markerLabel).split(" - "),ye=Dt[0]||"",Ur=Dt[1]||"";return U.jsxs(V.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[U.jsx(V.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Ur}),U.jsx(V.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:ye})]})}return U.jsxs(V.Box,{sx:{backgroundColor:Ct.tooltip.backgroundColor,border:`${Ct.tooltip.borderWidth}px solid ${Ct.tooltip.borderColor}`,borderRadius:Ct.tooltip.borderRadius,padding:Ct.tooltip.padding},children:[U.jsx(V.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:M(wt)}),ft.map((Et,Dt)=>U.jsxs(V.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[U.jsx(V.Box,{sx:{width:10,height:10,backgroundColor:Et.color,borderRadius:"2px"}}),U.jsxs(V.Typography,{sx:{fontSize:"14px"},children:[Et.name,": ",R(Et.value)]})]},`item-${Dt}`))]})};return U.jsxs(V.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&U.jsxs(V.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&U.jsx(V.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&U.jsx(V.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),U.jsxs(V.Box,{ref:W,sx:{width:"100%",height:`${o}px`,minHeight:Ct.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[U.jsx(H5,{width:s,height:"100%",children:U.jsxs(nX,{data:ht,margin:x,stackOffset:w,children:[h&&U.jsx(rM,{strokeDasharray:"3 3",stroke:Ct.axis.strokeColor,opacity:.3}),c&&U.jsx(kc,{dataKey:"timestamp",type:"number",domain:G,tickFormatter:at,stroke:Ct.axis.strokeColor,tick:{fill:Ct.axis.tickColor},scale:"time"}),f&&U.jsx($c,{tickFormatter:pt,stroke:Ct.axis.strokeColor,tick:{fill:Ct.axis.tickColor}}),l&&U.jsx(Yr,{content:U.jsx(Tt,{})}),u&&U.jsx(Ai,{iconSize:Ct.legend.iconSize,iconType:Ct.legend.iconType,layout:Ct.legend.layout,align:Ct.legend.align,verticalAlign:Ct.legend.verticalAlign}),E.map((it,ft)=>U.jsx(ei,{type:v,dataKey:it.dataKey,name:it.label,stackId:"1",stroke:it.color,fill:it.strokeDasharray?"transparent":it.color,fillOpacity:it.strokeDasharray?0:it.fillOpacity??.7,strokeWidth:it.strokeWidth??2,strokeDasharray:it.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-ft)*100:0},it.dataKey)),r.filter(it=>$===null||it.timestamp===$).map((it,ft)=>U.jsx(Sc,{x:it.timestamp,stroke:it.color??Ct.marker.strokeColor,strokeWidth:it.strokeWidth??Ct.marker.strokeWidth,strokeDasharray:it.strokeDasharray??Ct.marker.strokeDasharray,strokeOpacity:$===null?0:1},`marker-${it.timestamp}-${ft}`))]},S?`${S[0]}-${S[1]}`:"default")}),P&&U.jsxs(V.Box,{sx:{position:"absolute",top:x.top||0,left:x.left||0,right:x.right||0,bottom:x.bottom||0,cursor:D?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:F,onMouseMove:H,onMouseUp:Q,onMouseLeave:N,children:[K&&U.jsx(V.Box,{sx:{position:"absolute",left:`${K.left}%`,width:`${K.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),$&&U.jsx(U.Fragment,{children:r.filter(it=>it.timestamp===$).map(it=>U.jsx(V.Box,{sx:{position:"absolute",left:`${z(it.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:it.label||M(it.timestamp)},`tooltip-${it.timestamp}`))})]})]})]})},Hr={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(229, 231, 235, 0.5)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},jr={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:Hr.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${Hr.dimensions.height}px`,backgroundColor:Hr.colors.background,borderRadius:0,overflow:"hidden",border:`1px solid ${Hr.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${Hr.dimensions.eventWidth}px`,height:"100%",backgroundColor:Hr.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:Hr.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${Hr.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:Hr.colors.tooltipText,fontSize:"11px"}}},hX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},pX=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{hX()&&e.length>1&&(e.every((q,I)=>I===0||q.timestamp>=e[I-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,u]=O.useState(!1),[l,c]=O.useState(null),[f,h]=O.useState({start:null,end:null}),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState(null),g=t??f,_=a??p,b=O.useMemo(()=>{var L;return e.length>0?((L=e[0])==null?void 0:L.timestamp)??0:0},[e]),x=O.useMemo(()=>{var L;return e.length>0?((L=e[e.length-1])==null?void 0:L.timestamp)??0:0},[e]),v=O.useMemo(()=>i&&_.start&&_.end?_.start:b,[i,_,b]),w=O.useMemo(()=>i&&_.start&&_.end?_.end:x,[i,_,x]),S=O.useMemo(()=>w-v,[w,v]),A=O.useCallback(L=>S===0?0:(L-v)/S*100,[v,S]),P=O.useCallback((L,q)=>{const I=L/q*100;return v+I/100*S},[v,S]),C=O.useCallback(L=>{t===void 0&&h(L),r==null||r(L)},[t,r]),T=O.useCallback(L=>{const q=L.currentTarget.getBoundingClientRect(),I=L.clientX-q.left,j=P(I,q.width);u(!0),c(j),C({start:j,end:j})},[P,C]),E=O.useCallback(L=>{if(!s||l===null)return;const q=L.currentTarget.getBoundingClientRect(),I=L.clientX-q.left,j=P(I,q.width);C({start:Math.min(l,j),end:Math.max(l,j)})},[s,l,P,C]),M=O.useCallback(()=>{const L=s;if(u(!1),L&&i&&g.start&&g.end&&g.start!==g.end){const q={start:g.start,end:g.end};a===void 0&&y(q),o==null||o(q)}},[s,i,g,a,o]),R=O.useCallback(L=>{if(L.cancelable&&n&&L.preventDefault(),!n||!g.start||!g.end||S===0)return;const q=(g.start+g.end)/2,I=g.end-g.start,j=L.deltaY>0?1.1:.9,B=Math.max(I*j,S*.01),W=S*1.5,G=Math.min(B,W);let X=q-G/2,Z=q+G/2;X<v&&(X=v,Z=Math.min(v+G,w)),Z>w&&(Z=w,X=Math.max(w-G,v)),C({start:X,end:Z})},[n,g,S,v,w,C]),$=O.useCallback(()=>!g.start||!g.end?[]:e.filter(L=>L.timestamp>=g.start&&L.timestamp<=g.end),[e,g]),k=O.useCallback(()=>{const L={start:b,end:x};a===void 0&&y({start:null,end:null}),o==null||o(L)},[b,x,a,o]),D=O.useCallback(()=>{i&&k()},[i,k]);return{isDragging:s,dragStart:l,internalSelectedRange:g,internalVisibleRange:_,hoveredEvent:m,minDate:v,maxDate:w,timeSpan:S,getPositionFromTimestamp:A,getTimestampFromPosition:P,handleMouseDown:T,handleMouseMove:E,handleMouseUp:M,handleWheel:R,handleDoubleClick:D,setHoveredEvent:d,getEventsInRange:$,resetZoom:k}},dX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),mX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),yX=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},vX=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},gX=e=>({header:{...jr.header,...e==null?void 0:e.header},title:{...jr.title,...e==null?void 0:e.title},instructions:{...jr.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...jr.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...jr.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...jr.timeline,...e==null?void 0:e.timeline},event:{...jr.event,...e==null?void 0:e.event},selection:{...jr.selection,...e==null?void 0:e.selection},tooltip:{...jr.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...jr.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...jr.tooltipDate,...e==null?void 0:e.tooltipDate}}),bX=({events:e,onSelectionChange:t,selectedRange:r,height:n=Hr.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=dX,formatMonthYear:o=mX,showMonthLabels:s=!0,monthLabelCount:u=6,enableZoom:l=!0,showHeader:c=!0,title:f="Event Timeline Selector",zoomToSelection:h=!1,visibleRange:p,onVisibleRangeChange:y,timeRange:m,onTimeRangeChange:d,slotProps:g})=>{const _=m?{start:m[0],end:m[1]}:p,b=d?q=>{q.start!==null&&q.end!==null&&d([q.start,q.end])}:y;vX()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const x=O.useMemo(()=>gX(g),[g]),{isDragging:v,internalSelectedRange:w,hoveredEvent:S,minDate:A,timeSpan:P,getPositionFromTimestamp:C,handleMouseDown:T,handleMouseMove:E,handleMouseUp:M,handleWheel:R,handleDoubleClick:$,setHoveredEvent:k,getEventsInRange:D}=pX({events:e,selectedRange:r,onSelectionChange:t,enableZoom:l,zoomToSelection:h,visibleRange:_,onVisibleRangeChange:b}),L=w.start&&w.end?`Selected: ${a(w.start)} - ${a(w.end)} (${D().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return U.jsxs(V.Stack,{sx:{width:"100%"},children:[c&&U.jsxs(V.Stack,{spacing:1,sx:{mb:3},...x.header,children:[U.jsx(V.Typography,{variant:"h5",...x.title,children:f}),U.jsx(V.Typography,{variant:"body2",...x.instructions,children:L})]}),s&&U.jsx(V.Stack,{direction:"row",...x.monthLabelsContainer,sx:{...x.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:u},(q,I)=>{const j=A+P/(u-1)*I,B=yX(P);return U.jsx(V.Typography,{variant:"caption",...x.monthLabel,children:B(j)},I)})}),U.jsxs(V.Box,{...x.timeline,sx:{...x.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[U.jsx(V.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((q,I)=>{const j=C(q.timestamp);return U.jsx(V.Box,{onMouseEnter:()=>k(q),onMouseLeave:()=>k(null),"aria-label":`Event: ${q.eventName} at ${a(q.timestamp)}`,...x.event,sx:{...x.event.sx,left:`${j}%`,transform:(S==null?void 0:S.timestamp)===q.timestamp?"scaleX(2)":"scaleX(1)"}},`${q.timestamp}-${I}`)})}),w.start&&w.end&&(!h||v)&&U.jsx(V.Box,{...x.selection,sx:{...x.selection.sx,left:`${C(w.start)}%`,width:`${C(w.end)-C(w.start)}%`}}),U.jsx(V.Box,{role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":c?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair"},onMouseDown:T,onMouseMove:E,onMouseUp:M,onMouseLeave:M,onWheel:R,onDoubleClick:$}),!c&&U.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:L}),S&&U.jsxs(V.Box,{role:"tooltip","aria-live":"polite",...x.tooltip,sx:{...x.tooltip.sx,left:`${C(S.timestamp)}%`,transform:"translateX(-50%)"},children:[U.jsx(V.Typography,{variant:"body2",...x.tooltipEventName,children:S.eventName}),U.jsx(V.Typography,{variant:"caption",...x.tooltipDate,children:a(S.timestamp)})]})]})]})},_X="#8b5cf6",xX=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),wX=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=xX,primaryColor:i=_X})=>e.length===0?null:U.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[U.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),U.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>U.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[U.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),U.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=qo;exports.CAMPAIGN_NOT_APPLICABLE=Lo;exports.CAMPAIGN_NO_LST=Bo;exports.CATEGORY_LABELS=cX;exports.ChronoChart=HT;exports.ChronoPerspectiveChart=HT;exports.D3StackedAreaChart=VN;exports.DEFAULT_CHART_COLORS=Qe;exports.DEFAULT_CHART_CONFIG=ze;exports.DEFAULT_STACKED_AREA_COLORS=pn;exports.DEFAULT_STACKED_AREA_CONFIG=Ct;exports.MEASURE_GRADIENT_COLORS=Io;exports.MODERNE_VULNERABILITY_COLORS=fa;exports.MorphChart=kT;exports.ParliamentChart=gF;exports.STACKED_AREA_PALETTES=lX;exports.StackedAreaChart=fX;exports.TimelineChart=bX;exports.TimelineSelectedEvents=wX;exports.calculateDataSeries=PE;exports.calculateOptimalArcAngle=mg;exports.calculateOptimalSeatSize=yg;
152
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-l*y,",").concat(r+i,`
153
+ L `).concat(t+l*y,",").concat(r+i,`
154
+ A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},TG=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=h}return!1},PG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},P0=function(t){var r=IA(IA({},PG),t),n=O.useRef(),i=O.useState(-1),a=vG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isAnimationActive,x=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var b=Ot("recharts-rectangle",p);return x?O.createElement(rn,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:m,animationEasing:y,isActive:x},function(_){var g=_.width,w=_.height,S=_.x,A=_.y;return O.createElement(rn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:v,easing:y},O.createElement("path",nc({},vt(r,!0),{className:b,d:NA(S,A,g,w,h),ref:n})))}):O.createElement("path",nc({},vt(r,!0),{className:b,d:NA(l,u,c,f,h)}))};function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tg.apply(this,arguments)}var Zc=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Ot("recharts-dot",a);return r===+r&&n===+n&&i===+i?Fr.createElement("circle",Tg({},vt(t,!1),qu(t),{className:o,cx:r,cy:n,r:i})):null};function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}var EG=["x","y","top","left","width","height","className"];function Pg(){return Pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pg.apply(this,arguments)}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function CG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){MG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function MG(e,t,r){return t=kG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kG(e){var t=$G(e,"string");return hl(t)=="symbol"?t:t+""}function $G(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jG(e,t){if(e==null)return{};var r=RG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var DG=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},IG=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=jG(t,EG),d=CG({x:n,y:a,top:s,left:u,width:f,height:p},m);return!it(n)||!it(a)||!it(f)||!it(p)||!it(s)||!it(u)?null:O.createElement("path",Pg({},vt(d,!0),{className:Ot("recharts-cross",y),d:DG(n,a,f,p,s,u)}))},Rm,BA;function NG(){if(BA)return Rm;BA=1;var e=XE(),t=e(Object.getPrototypeOf,Object);return Rm=t,Rm}var Dm,qA;function LG(){if(qA)return Dm;qA=1;var e=Jn(),t=NG(),r=Qn(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==l}return Dm=u,Dm}var BG=LG();const qG=Lt(BG);var Im,FA;function FG(){if(FA)return Im;FA=1;var e=Jn(),t=Qn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Im=n,Im}var zG=FG();const UG=Lt(zG);function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ic.apply(this,arguments)}function WG(e,t){return XG(e)||KG(e,t)||GG(e,t)||HG()}function HG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
155
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GG(e,t){if(e){if(typeof e=="string")return zA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zA(e,t)}}function zA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function KG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function XG(e){if(Array.isArray(e))return e}function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){YG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YG(e,t,r){return t=VG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VG(e){var t=ZG(e,"string");return pl(t)=="symbol"?t:t+""}function ZG(e,t){if(pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HA=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},JG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QG=function(t){var r=WA(WA({},JG),t),n=O.useRef(),i=O.useState(-1),a=WG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var b=n.current.getTotalLength();b&&s(b)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var x=Ot("recharts-trapezoid",p);return v?O.createElement(rn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:h,x:l,y:u},duration:m,animationEasing:y,isActive:v},function(b){var _=b.upperWidth,g=b.lowerWidth,w=b.height,S=b.x,A=b.y;return O.createElement(rn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",ic({},vt(r,!0),{className:x,d:HA(S,A,_,g,w),ref:n})))}):O.createElement("g",null,O.createElement("path",ic({},vt(r,!0),{className:x,d:HA(l,u,c,f,h)})))},t6=["option","shapeType","propTransformer","activeClassName","isActive"];function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function e6(e,t){if(e==null)return{};var r=r6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function r6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function GA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ac(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(r),!0).forEach(function(n){n6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n6(e,t,r){return t=i6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i6(e){var t=a6(e,"string");return dl(t)=="symbol"?t:t+""}function a6(e,t){if(dl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o6(e,t){return ac(ac({},t),e)}function s6(e,t){return e==="symbols"}function KA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(P0,r);case"trapezoid":return O.createElement(QG,r);case"sector":return O.createElement(QC,r);case"symbols":if(s6(t))return O.createElement(Gc,r);break;default:return null}}function l6(e){return O.isValidElement(e)?e.props:e}function Eg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?o6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=e6(e,t6),u;if(O.isValidElement(t))u=O.cloneElement(t,ac(ac({},l),l6(t)));else if(bt(t))u=t(l);else if(qG(t)&&!UG(t)){var c=i(t,l);u=O.createElement(KA,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(KA,{shapeType:r,elementProps:f})}return s?O.createElement(Mt,{className:o},u):u}function Jc(e,t){return t!=null&&"trapezoids"in e.props}function Qc(e,t){return t!=null&&"sectors"in e.props}function ml(e,t){return t!=null&&"points"in e.props}function u6(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function c6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function f6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function h6(e,t){var r;return Jc(e,t)?r=u6:Qc(e,t)?r=c6:ml(e,t)&&(r=f6),r}function p6(e,t){var r;return Jc(e,t)?r="trapezoids":Qc(e,t)?r="sectors":ml(e,t)&&(r="points"),r}function d6(e,t){if(Jc(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Qc(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return ml(e,t)?t.payload:{}}function m6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=p6(r,t),a=d6(r,t),o=n.filter(function(l,u){var c=ca(a,l),f=r.props[i].filter(function(y){var m=h6(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=u===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function XA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(r),!0).forEach(function(n){uM(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uM(e,t,r){return t=y6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y6(e){var t=g6(e,"string");return yl(t)=="symbol"?t:t+""}function g6(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v6=["Webkit","Moz","O","ms"],b6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=v6.reduce(function(a,o){return YA(YA({},a),{},uM({},o+n,r))},{});return i[t]=r,i};function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function oc(){return oc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oc.apply(this,arguments)}function VA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(r),!0).forEach(function(n){wr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):VA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fM(n.key),n)}}function x6(e,t,r){return t&&ZA(e.prototype,t),r&&ZA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function w6(e,t,r){return t=sc(t),S6(e,cM()?Reflect.construct(t,r||[],sc(e).constructor):t.apply(e,r))}function S6(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A6(e)}function A6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cM=function(){return!!e})()}function sc(e){return sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sc(e)}function O6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cg(e,t)}function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Cg(e,t)}function wr(e,t,r){return t=fM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fM(e){var t=T6(e,"string");return ho(t)=="symbol"?t:t+""}function T6(e,t){if(ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var P6=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=hs().domain(Ws(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},JA=function(t){return t.changedTouches&&!!t.changedTouches.length},po=(function(e){function t(r){var n;return _6(this,t),n=w6(this,t,[r]),wr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),wr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),wr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),wr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),wr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),wr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),wr(n,"handleSlideDragStart",function(i){var a=JA(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return O6(t,e),x6(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:y===c?c:y-y%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=Oe(a[n],s,n);return bt(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,h=l.startIndex,p=l.endIndex,y=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,u+c-f-s,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=JA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,v={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,f+h-p-u):x<0&&(x=Math.max(x,f-u)),v[o]=u+x;var b=this.getIndex(v),_=b.startIndex,g=b.endIndex,w=function(){var A=d.length-1;return o==="startX"&&(s>l?_%m===0:g%m===0)||s<l&&g===A||o==="endX"&&(s>l?g%m===0:_%m===0)||s>l&&g===A};this.setState(wr(wr({},o,u+x),"brushMoveStartX",n.pageX),function(){y&&w()&&y(b)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(wr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,h=l.traveller,p=l.ariaLabel,y=l.data,m=l.startIndex,d=l.endIndex,v=Math.max(n,this.props.x),x=Nm(Nm({},vt(this.props,!1)),{},{x:v,y:u,width:c,height:f}),b=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement(Mt,{tabIndex:0,role:"slider","aria-label":b,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),s.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:u};return O.createElement(Mt,{className:"recharts-brush-texts"},O.createElement(Gu,oc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Gu,oc({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,v=h.isTravellerMoving,x=h.isTravellerFocused;if(!i||!i.length||!it(s)||!it(l)||!it(u)||!it(c)||u<=0||c<=0)return null;var b=Ot("recharts-brush",a),_=O.Children.count(o)===1,g=b6("userSelect","none");return O.createElement(Mt,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||v||x||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):bt(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return Nm({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?P6({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(O.PureComponent);wr(po,"displayName","Brush");wr(po,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Lm,QA;function E6(){if(QA)return Lm;QA=1;var e=g0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Lm=t,Lm}var Bm,tO;function C6(){if(tO)return Bm;tO=1;var e=zE(),t=Si(),r=E6(),n=er(),i=kl();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return Bm=a,Bm}var M6=C6();const k6=Lt(M6);var On=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},qm,eO;function $6(){if(eO)return qm;eO=1;var e=eC();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return qm=t,qm}var Fm,rO;function j6(){if(rO)return Fm;rO=1;var e=$6(),t=QE(),r=Si();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return Fm=n,Fm}var R6=j6();const D6=Lt(R6);var zm,nO;function I6(){if(nO)return zm;nO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return zm=e,zm}var Um,iO;function N6(){if(iO)return Um;iO=1;var e=g0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Um=t,Um}var Wm,aO;function L6(){if(aO)return Wm;aO=1;var e=I6(),t=N6(),r=Si(),n=er(),i=kl();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return Wm=a,Wm}var B6=L6();const hM=Lt(B6);var q6=["x","y"];function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}function Mg(){return Mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mg.apply(this,arguments)}function oO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?oO(Object(r),!0).forEach(function(n){F6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function F6(e,t,r){return t=z6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z6(e){var t=U6(e,"string");return mo(t)=="symbol"?t:t+""}function U6(e,t){if(mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function W6(e,t){if(e==null)return{};var r=H6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function G6(e,t){var r=e.x,n=e.y,i=W6(e,q6),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),h=parseInt(f,10);return rs(rs(rs(rs(rs({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function sO(e){return O.createElement(Eg,Mg({shapeType:"rectangle",propTransformer:G6,activeClassName:"recharts-active-bar"},e))}var K6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=it(n)||m5(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?lr(!1,"minPointSize callback function received a value with type of ".concat(mo(n),". Currently only numbers or null/undefined are supported.")):lr()),r)}},X6=["value","background"],pM;function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function Y6(e,t){if(e==null)return{};var r=V6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function V6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lc.apply(this,arguments)}function lO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lO(Object(r),!0).forEach(function(n){hi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Z6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mM(n.key),n)}}function J6(e,t,r){return t&&uO(e.prototype,t),r&&uO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Q6(e,t,r){return t=uc(t),t4(e,dM()?Reflect.construct(t,r||[],uc(e).constructor):t.apply(e,r))}function t4(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return e4(e)}function e4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dM=function(){return!!e})()}function uc(e){return uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},uc(e)}function r4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kg(e,t)}function kg(e,t){return kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kg(e,t)}function hi(e,t,r){return t=mM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mM(e){var t=n4(e,"string");return yo(t)=="symbol"?t:t+""}function n4(e,t){if(yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lo=(function(e){function t(){var r;Z6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Q6(this,t,[].concat(i)),hi(r,"state",{isAnimationFinished:!1}),hi(r,"id",ba("recharts-bar-")),hi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),hi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return r4(t,e),J6(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=vt(this.props,!1);return n&&n.map(function(f,h){var p=h===l,y=p?u:o,m=me(me(me({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(Mt,lc({className:"recharts-bar-rectangle"},Hs(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(sO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(rn,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,v){var x=h&&h[v];if(x){var b=he(x.x,d.x),_=he(x.y,d.y),g=he(x.width,d.width),w=he(x.height,d.height);return me(me({},d),{},{x:b(y),y:_(y),width:g(y),height:w(y)})}if(o==="horizontal"){var S=he(0,d.height),A=S(y);return me(me({},d),{},{y:d.y+d.height-A,height:A})}var T=he(0,d.width),M=T(y);return me(me({},d),{},{width:M})});return O.createElement(Mt,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!ca(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=vt(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,h=Y6(u,X6);if(!f)return null;var p=me(me(me(me(me({},h),{},{fill:"#eee"},f),l),Hs(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(sO,lc({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=dr(c,No);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(d,v){var x=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:x,errorVal:Oe(d,v)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Mt,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Ot("recharts-bar",o),x=s&&s.allowDataOverflow,b=l&&l.allowDataOverflow,_=x||b,g=gt(m)?this.id:m;return O.createElement(Mt,{className:v},x||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:x?u:u-f/2,y:b?c:c-h/2,width:x?f:f*2,height:b?h:h*2}))):null,O.createElement(Mt,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!p||d)&&An.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);pM=Lo;hi(Lo,"displayName","Bar");hi(Lo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ai.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});hi(Lo,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=xW(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?me(me({},m),r.props):r.props,v=d.dataKey,x=d.children,b=d.minPointSize,_=y==="horizontal"?o:a,g=u?_.scale.domain():null,w=CW({numericAxis:_}),S=dr(x,w0),A=f.map(function(T,M){var P,E,C,k,j,R;u?P=wW(u[c+M],g):(P=Oe(T,v),Array.isArray(P)||(P=[w,P]));var L=K6(b,pM.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var z,W=[o.scale(P[0]),o.scale(P[1])],I=W[0],D=W[1];E=US({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:M}),C=(z=D??I)!==null&&z!==void 0?z:void 0,k=p.size;var N=I-D;if(j=Number.isNaN(N)?0:N,R={x:E,y:o.y,width:k,height:o.height},Math.abs(L)>0&&Math.abs(j)<Math.abs(L)){var q=en(j||L)*(Math.abs(L)-Math.abs(j));C-=q,j+=q}}else{var K=[a.scale(P[0]),a.scale(P[1])],B=K[0],V=K[1];if(E=B,C=US({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:T,index:M}),k=V-B,j=p.size,R={x:a.x,y:C,width:a.width,height:j},Math.abs(L)>0&&Math.abs(k)<Math.abs(L)){var J=en(k||L)*(Math.abs(L)-Math.abs(k));k+=J}}return me(me(me({},T),{},{x:E,y:C,width:k,height:j,value:u?P:P[1],payload:T,background:R},S&&S[M]&&S[M].props),{},{tooltipPayload:[VC(r,T)],tooltipPosition:{x:E+k/2,y:C+j/2}})});return me({data:A,layout:y},h)});function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}function i4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function a4(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(r),!0).forEach(function(n){tf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tf(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=o4(e,"string");return gl(t)=="symbol"?t:t+""}function o4(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var s4=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!Sr(u,Lo);return c.reduce(function(p,y){var m=r[y],d=m.orientation,v=m.domain,x=m.padding,b=x===void 0?{}:x,_=m.mirror,g=m.reversed,w="".concat(d).concat(_?"Mirror":""),S,A,T,M,P;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=v[1]-v[0],C=1/0,k=m.categoricalDomain.sort(b5);if(k.forEach(function(K,B){B>0&&(C=Math.min((K||0)-(k[B-1]||0),C))}),Number.isFinite(C)){var j=C/E,R=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=j*R/2),m.padding==="no-gap"){var L=ua(t.barCategoryGap,j*R),z=j*R/2;S=z-L-(z-L)/R*L}}}i==="xAxis"?A=[n.left+(b.left||0)+(S||0),n.left+n.width-(b.right||0)-(S||0)]:i==="yAxis"?A=l==="horizontal"?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(S||0),n.top+n.height-(b.bottom||0)-(S||0)]:A=m.range,g&&(A=[A[1],A[0]]);var W=bW(m,a,h),I=W.scale,D=W.realScaleType;I.domain(v).range(A),_W(I);var N=EW(I,Zr(Zr({},m),{},{realScaleType:D}));i==="xAxis"?(P=d==="top"&&!_||d==="bottom"&&_,T=n.left,M=f[w]-P*m.height):i==="yAxis"&&(P=d==="left"&&!_||d==="right"&&_,T=f[w]-P*m.width,M=n.top);var q=Zr(Zr(Zr({},m),N),{},{realScaleType:D,x:T,y:M,scale:I,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return q.bandSize=Vu(q,N),!m.hide&&i==="xAxis"?f[w]+=(P?-1:1)*q.height:m.hide||(f[w]+=(P?-1:1)*q.width),Zr(Zr({},p),{},tf({},y,q))},{})},gM=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},l4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return gM({x:r,y:n},{x:i,y:a})},vM=(function(){function e(t){i4(this,e),this.scale=t}return a4(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();tf(vM,"EPS",1e-4);var E0=function(t){var r=Object.keys(t).reduce(function(n,i){return Zr(Zr({},n),{},tf({},i,vM.create(t[i])))},{});return Zr(Zr({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return D6(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return hM(i,function(a,o){return r[o].isInRange(a)})}})};function u4(e){return(e%180+180)%180}var c4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=u4(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Hm,hO;function f4(){if(hO)return Hm;hO=1;var e=Si(),t=Cl(),r=Ml();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return Hm=n,Hm}var Gm,pO;function h4(){if(pO)return Gm;pO=1;var e=mC(),t=Si(),r=i0(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return Gm=i,Gm}var Km,dO;function p4(){if(dO)return Km;dO=1;var e=f4(),t=h4(),r=e(t);return Km=r,Km}var d4=p4();const m4=Lt(d4);var y4=LE();const g4=Lt(y4);var v4=g4(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}var C0=O.createContext(void 0),M0=O.createContext(void 0),bM=O.createContext(void 0),_M=O.createContext({}),xM=O.createContext(void 0),wM=O.createContext(0),SM=O.createContext(0),mO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=v4(a);return O.createElement(C0.Provider,{value:n},O.createElement(M0.Provider,{value:i},O.createElement(_M.Provider,{value:a},O.createElement(bM.Provider,{value:c},O.createElement(xM.Provider,{value:o},O.createElement(wM.Provider,{value:u},O.createElement(SM.Provider,{value:l},s)))))))},b4=function(){return O.useContext(xM)};function AM(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var OM=function(t){var r=O.useContext(C0);r==null&&(process.env.NODE_ENV!=="production"?lr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):lr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?lr(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(cc(t),"]. ").concat(AM(r))):lr()),n},_4=function(){var t=O.useContext(C0);return si(t)},x4=function(){var t=O.useContext(M0),r=m4(t,function(n){return hM(n.domain,Number.isFinite)});return r||si(t)},TM=function(t){var r=O.useContext(M0);r==null&&(process.env.NODE_ENV!=="production"?lr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):lr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?lr(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(cc(t),"]. ").concat(AM(r))):lr()),n},w4=function(){var t=O.useContext(bM);return t},S4=function(){return O.useContext(_M)},k0=function(){return O.useContext(SM)},$0=function(){return O.useContext(wM)};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function A4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EM(n.key),n)}}function T4(e,t,r){return t&&O4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function P4(e,t,r){return t=fc(t),E4(e,PM()?Reflect.construct(t,r||[],fc(e).constructor):t.apply(e,r))}function E4(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C4(e)}function C4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PM=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fc(e)}function M4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$g(e,t)}function $g(e,t){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$g(e,t)}function yO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function gO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yO(Object(r),!0).forEach(function(n){j0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function j0(e,t,r){return t=EM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EM(e){var t=k4(e,"string");return go(t)=="symbol"?t:t+""}function k4(e,t){if(go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function $4(e,t){return I4(e)||D4(e,t)||R4(e,t)||j4()}function j4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
156
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R4(e,t){if(e){if(typeof e=="string")return vO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vO(e,t)}}function vO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function D4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function I4(e){if(Array.isArray(e))return e}function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jg.apply(this,arguments)}var N4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):bt(t)?n=t(r):n=O.createElement("line",jg({},r,{className:"recharts-reference-line-line"})),n},L4=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=u.y,m=t.y.apply(y,{position:o});if(On(u,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return l==="left"?d.reverse():d}if(r){var v=u.x,x=t.x.apply(v,{position:o});if(On(u,"discard")&&!t.x.isInRange(x))return null;var b=[{x,y:f+p},{x,y:f}];return s==="top"?b.reverse():b}if(i){var _=u.segment,g=_.map(function(w){return t.apply(w,{position:o})});return On(u,"discard")&&k6(g,function(w){return!t.isInRange(w)})?null:g}return null};function B4(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=b4(),c=OM(i),f=TM(a),h=w4();if(!u||!h)return null;Un(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=E0({x:c.scale,y:f.scale}),y=Ae(t),m=Ae(r),d=n&&n.length===2,v=L4(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!v)return null;var x=$4(v,2),b=x[0],_=b.x,g=b.y,w=x[1],S=w.x,A=w.y,T=On(e,"hidden")?"url(#".concat(u,")"):void 0,M=gO(gO({clipPath:T},vt(e,!0)),{},{x1:_,y1:g,x2:S,y2:A});return O.createElement(Mt,{className:Ot("recharts-reference-line",s)},N4(o,M),He.renderCallByParent(e,l4({x1:_,y1:g,x2:S,y2:A})))}var ef=(function(e){function t(){return A4(this,t),P4(this,t,arguments)}return M4(t,e),T4(t,[{key:"render",value:function(){return O.createElement(B4,this.props)}}])})(O.Component);j0(ef,"displayName","ReferenceLine");j0(ef,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rg.apply(this,arguments)}function vo(e){"@babel/helpers - typeof";return vo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vo(e)}function bO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bO(Object(r),!0).forEach(function(n){rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function q4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MM(n.key),n)}}function z4(e,t,r){return t&&F4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U4(e,t,r){return t=hc(t),W4(e,CM()?Reflect.construct(t,r||[],hc(e).constructor):t.apply(e,r))}function W4(e,t){if(t&&(vo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H4(e)}function H4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CM=function(){return!!e})()}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},hc(e)}function G4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dg(e,t)}function Dg(e,t){return Dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dg(e,t)}function rf(e,t,r){return t=MM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e){var t=K4(e,"string");return vo(t)=="symbol"?t:t+""}function K4(e,t){if(vo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var X4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=E0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return On(t,"discard")&&!o.isInRange(s)?null:s},nf=(function(e){function t(){return q4(this,t),U4(this,t,arguments)}return G4(t,e),z4(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=Ae(i),c=Ae(a);if(Un(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=X4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,v=On(this.props,"hidden")?"url(#".concat(l,")"):void 0,x=_O(_O({clipPath:v},vt(this.props,!0)),{},{cx:h,cy:p});return O.createElement(Mt,{className:Ot("recharts-reference-dot",d)},t.renderDot(m,x),He.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);rf(nf,"displayName","ReferenceDot");rf(nf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});rf(nf,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(Zc,Rg({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ig.apply(this,arguments)}function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){af(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$M(n.key),n)}}function Z4(e,t,r){return t&&V4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function J4(e,t,r){return t=pc(t),Q4(e,kM()?Reflect.construct(t,r||[],pc(e).constructor):t.apply(e,r))}function Q4(e,t){if(t&&(bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tK(e)}function tK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kM=function(){return!!e})()}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(e)}function eK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ng(e,t)}function af(e,t,r){return t=$M(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $M(e){var t=rK(e,"string");return bo(t)=="symbol"?t:t+""}function rK(e,t){if(bo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nK=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=E0({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return On(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:gM(p,y)},of=(function(e){function t(){return Y4(this,t),J4(this,t,arguments)}return eK(t,e),Z4(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Un(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Ae(i),h=Ae(a),p=Ae(o),y=Ae(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=nK(f,h,p,y,this.props);if(!d&&!m)return null;var v=On(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(Mt,{className:Ot("recharts-reference-area",l)},t.renderRect(m,wO(wO({clipPath:v},vt(this.props,!0)),d)),He.renderCallByParent(this.props,d))}}])})(O.Component);af(of,"displayName","ReferenceArea");af(of,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});af(of,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):bt(e)?r=e(t):r=O.createElement(P0,Ig({},t,{className:"recharts-reference-area-rect"})),r});function jM(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function iK(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return c4(n,r)}function aK(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function dc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function oK(e,t){return jM(e,t+1)}function sK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:jM(n,u)};var m=l,d,v=function(){return d===void 0&&(d=r(y,m)),d},x=y.coordinate,b=l===0||dc(e,x,v,c,s);b||(l=0,c=o,u+=1),b&&(c=x+e*(v()/2+i),l+=u)},h;u<=a.length;)if(h=f(),h)return h.v;return[]}function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function SO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ue(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(r),!0).forEach(function(n){lK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):SO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lK(e,t,r){return t=uK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uK(e){var t=cK(e,"string");return vl(t)=="symbol"?t:t+""}function cK(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-l);a[h]=p=Ue(Ue({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=Ue(Ue({},p),{},{tickCoord:p.coordinate});var v=dc(e,p.tickCoord,m,s,l);v&&(l=p.tickCoord-e*(m()/2+i),a[h]=Ue(Ue({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function hK(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-u);o[s-1]=c=Ue(Ue({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=dc(e,c.tickCoord,function(){return f},l,u);p&&(u=c.tickCoord-e*(f/2+i),o[s-1]=Ue(Ue({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(x){var b=o[x],_,g=function(){return _===void 0&&(_=r(b,x)),_};if(x===0){var w=e*(b.coordinate-e*g()/2-l);o[x]=b=Ue(Ue({},b),{},{tickCoord:w<0?b.coordinate-w*e:b.coordinate})}else o[x]=b=Ue(Ue({},b),{},{tickCoord:b.coordinate});var S=dc(e,b.tickCoord,g,l,u);S&&(l=b.tickCoord+e*(g()/2+i),o[x]=Ue(Ue({},b),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function R0(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(it(l)||Ai.isSsr)return oK(i,typeof l=="number"&&it(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?ws(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(b,_){var g=bt(u)?u(b.value,_):b.value;return p==="width"?iK(ws(g,{fontSize:t,letterSpacing:r}),y,f):ws(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?en(i[1].coordinate-i[0].coordinate):1,v=aK(a,d,p);return l==="equidistantPreserveStart"?sK(d,v,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=hK(d,v,m,i,o,l==="preserveStartEnd"):h=fK(d,v,m,i,o),h.filter(function(x){return x.isShow}))}var pK=["viewBox"],dK=["viewBox"],mK=["ticks"];function _o(e){"@babel/helpers - typeof";return _o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_o(e)}function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ia.apply(this,arguments)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function we(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){D0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Xm(e,t){if(e==null)return{};var r=yK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function yK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function gK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,DM(n.key),n)}}function vK(e,t,r){return t&&OO(e.prototype,t),r&&OO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bK(e,t,r){return t=mc(t),_K(e,RM()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function _K(e,t){if(t&&(_o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xK(e)}function xK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RM=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(e)}function wK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lg(e,t)}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lg(e,t)}function D0(e,t,r){return t=DM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DM(e){var t=SK(e,"string");return _o(t)=="symbol"?t:t+""}function SK(e,t){if(_o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bo=(function(e){function t(r){var n;return gK(this,t),n=bK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return wK(t,e),vK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Xm(n,pK),s=this.props,l=s.viewBox,u=Xm(s,dK);return!Ha(a,l)||!Ha(o,u)||!Ha(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,v,x,b=f?-1:1,_=n.tickSize||c,g=it(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=y=n.coordinate,d=o+ +!f*l,m=d-b*_,x=m-b*h,v=g;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-b*_,v=p-b*h,x=g;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+b*_,v=p+b*h,x=g;break;default:p=y=n.coordinate,d=o+ +f*l,m=d+b*_,x=m+b*h,v=g;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:v,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=we(we(we({},vt(this.props,!1)),vt(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);f=we(we({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=we(we({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",Ia({},f,{className:Ot("recharts-cartesian-axis-line",zr(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=R0(we(we({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=vt(this.props,!1),v=vt(c,!1),x=we(we({},d),{},{fill:"none"},vt(l,!1)),b=p.map(function(_,g){var w=o.getTickLineCoord(_),S=w.line,A=w.tick,T=we(we(we(we({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:u},v),A),{},{index:g,payload:_,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(Mt,Ia({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Hs(o.props,_,g)),l&&O.createElement("line",Ia({},x,S,{className:Ot("recharts-cartesian-axis-tick-line",zr(l,"className"))})),c&&t.renderTickItem(c,T,"".concat(bt(f)?f(_.value,g):_.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},b)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=Xm(f,mK),y=h;return bt(l)&&(y=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(Mt,{className:Ot("recharts-cartesian-axis",u),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),He.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Ot(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,we(we({},i),{},{className:s})):bt(n)?o=n(we(we({},i),{},{className:s})):o=O.createElement(Gu,Ia({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);D0(Bo,"displayName","CartesianAxis");D0(Bo,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var AK=["x1","y1","x2","y2","key"],OK=["offset"];function ha(e){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ha(e)}function TO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TO(Object(r),!0).forEach(function(n){TK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function TK(e,t,r){return t=PK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PK(e){var t=EK(e,"string");return ha(t)=="symbol"?t:t+""}function EK(e,t){if(ha(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ha(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ki(){return Ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ki.apply(this,arguments)}function PO(e,t){if(e==null)return{};var r=CK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function CK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var MK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return O.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function IM(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=PO(t,AK),u=vt(l,!1);u.offset;var c=PO(u,OK);r=O.createElement("line",Ki({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function kK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Ge(Ge({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function $K(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=Ge(Ge({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return IM(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function jK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function RK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:l,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var DK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return XC(R0(Ge(Ge(Ge({},Bo.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},IK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return XC(R0(Ge(Ge(Ge({},Bo.defaultProps),n),{},{ticks:Fn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ma={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function NM(e){var t,r,n,i,a,o,s=k0(),l=$0(),u=S4(),c=Ge(Ge({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ma.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ma.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ma.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ma.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ma.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ma.verticalFill,x:it(e.x)?e.x:u.left,y:it(e.y)?e.y:u.top,width:it(e.width)?e.width:u.width,height:it(e.height)?e.height:u.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,v=c.verticalValues,x=_4(),b=x4();if(!it(p)||p<=0||!it(y)||y<=0||!it(f)||f!==+f||!it(h)||h!==+h)return null;var _=c.verticalCoordinatesGenerator||DK,g=c.horizontalCoordinatesGenerator||IK,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&bt(g)){var A=d&&d.length,T=g({yAxis:b?Ge(Ge({},b),{},{ticks:A?d:b.ticks}):void 0,width:s,height:l,offset:u},A?!0:m);Un(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(ha(T),"]")),Array.isArray(T)&&(w=T)}if((!S||!S.length)&&bt(_)){var M=v&&v.length,P=_({xAxis:x?Ge(Ge({},x),{},{ticks:M?v:x.ticks}):void 0,width:s,height:l,offset:u},M?!0:m);Un(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(ha(P),"]")),Array.isArray(P)&&(S=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(MK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(kK,Ki({},c,{offset:u,horizontalPoints:w,xAxis:x,yAxis:b})),O.createElement($K,Ki({},c,{offset:u,verticalPoints:S,xAxis:x,yAxis:b})),O.createElement(jK,Ki({},c,{horizontalPoints:w})),O.createElement(RK,Ki({},c,{verticalPoints:S})))}NM.displayName="CartesianGrid";var NK=["type","layout","connectNulls","ref"],LK=["key"];function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function EO(e,t){if(e==null)return{};var r=BK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Os(){return Os=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Os.apply(this,arguments)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){Jr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ka(e){return UK(e)||zK(e)||FK(e)||qK()}function qK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
157
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FK(e,t){if(e){if(typeof e=="string")return Bg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bg(e,t)}}function zK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function UK(e){if(Array.isArray(e))return Bg(e)}function Bg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function WK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,BM(n.key),n)}}function HK(e,t,r){return t&&MO(e.prototype,t),r&&MO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function GK(e,t,r){return t=yc(t),KK(e,LM()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function KK(e,t){if(t&&(xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return XK(e)}function XK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LM=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(e)}function YK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qg(e,t)}function Jr(e,t,r){return t=BM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BM(e){var t=VK(e,"string");return xo(t)=="symbol"?t:t+""}function VK(e,t){if(xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sf=(function(e){function t(){var r;WK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=GK(this,t,[].concat(i)),Jr(r,"state",{isAnimationFinished:!0,totalLength:0}),Jr(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),Jr(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(v,x){return v+x});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,h=s-o,p=[],y=0,m=0;y<l.length;m+=l[y],++y)if(m+l[y]>f){p=[].concat(ka(l.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(ka(t.repeat(l,c)),ka(p),d).map(function(v){return"".concat(v,"px")}).join(", ")}),Jr(r,"id",ba("recharts-line-")),Jr(r,"pathRef",function(o){r.mainCurve=o}),Jr(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),Jr(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return YK(t,e),HK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=dr(c,No);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:Oe(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(Mt,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=vt(this.props,!1),h=vt(l,!0),p=u.map(function(m,d){var v=xr(xr(xr({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:u});return t.renderDotItem(l,v)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Mt,Os({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=EO(s,NK),h=xr(xr(xr({},vt(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(ra,Os({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,v=this.state,x=v.prevPoints,b=v.totalLength;return O.createElement(rn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var g=_.t;if(x){var w=x.length/s.length,S=s.map(function(E,C){var k=Math.floor(C*w);if(x[k]){var j=x[k],R=he(j.x,E.x),L=he(j.y,E.y);return xr(xr({},E),{},{x:R(g),y:L(g)})}if(y){var z=he(m*2,E.x),W=he(d/2,E.y);return xr(xr({},E),{},{x:z(g),y:W(g)})}return xr(xr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=he(0,b),T=A(g),M;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});M=a.getStrokeDasharray(T,b,P)}else M=a.generateSimpleStrokeDasharray(b,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!ca(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,x=s.length===1,b=Ot("recharts-line",l),_=u&&u.allowDataOverflow,g=c&&c.allowDataOverflow,w=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=cC(o)?o:{},k=C.clipDot,j=k===void 0?!0:k,R=M*2+E;return O.createElement(Mt,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?h:h-p/2,y:g?f:f-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-R/2,y:f-R/2,width:p+R,height:y+R}))):null,!x&&this.renderCurve(w,S),this.renderErrorBar(w,S),(x||o)&&this.renderDots(w,j,S),(!m||v)&&An.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(ka(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(ka(o),ka(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(bt(n))a=n(i);else{var o=i.key,s=EO(i,LK),l=Ot("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(Zc,Os({key:o},s,{className:l}))}return a}}])})(O.PureComponent);Jr(sf,"displayName","Line");Jr(sf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ai.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Jr(sf,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(h,p){var y=Oe(h,o);return c==="horizontal"?{x:co({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:gt(y)?null:n.scale(y),value:y,payload:h}:{x:gt(y)?null:r.scale(y),y:co({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return xr({points:f,layout:c},u)});var ZK=["layout","type","stroke","connectNulls","isRange","ref"],JK=["key"],qM;function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function FM(e,t){if(e==null)return{};var r=QK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xi.apply(this,arguments)}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ai(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(n){wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UM(n.key),n)}}function eX(e,t,r){return t&&$O(e.prototype,t),r&&$O(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function rX(e,t,r){return t=gc(t),nX(e,zM()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function nX(e,t){if(t&&(wo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iX(e)}function iX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zM=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(e)}function aX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fg(e,t)}function wn(e,t,r){return t=UM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UM(e){var t=oX(e,"string");return wo(t)=="symbol"?t:t+""}function oX(e,t){if(wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ti=(function(e){function t(){var r;tX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=rX(this,t,[].concat(i)),wn(r,"state",{isAnimationFinished:!0}),wn(r,"id",ba("recharts-area-")),wn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),bt(o)&&o()}),wn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),bt(o)&&o()}),r}return aX(t,e),eX(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,h=vt(this.props,!1),p=vt(u,!0),y=c.map(function(d,v){var x=ai(ai(ai({key:"dot-".concat(v),r:3},h),p),{},{index:v,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(u,x)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(Mt,Xi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=fi(o.map(function(h){return h.y||0}));return it(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(fi(a.map(function(h){return h.y||0})),f)),it(f)?O.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=fi(o.map(function(h){return h.x||0}));return it(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(fi(a.map(function(h){return h.x||0})),f)),it(f)?O.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=FM(s,ZK);return O.createElement(Mt,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(ra,Xi({},vt(p,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(ra,Xi({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(ra,Xi({},vt(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(rn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var x=v.t;if(m){var b=m.length/s.length,_=s.map(function(A,T){var M=Math.floor(T*b);if(m[M]){var P=m[M],E=he(P.x,A.x),C=he(P.y,A.y);return ai(ai({},A),{},{x:E(x),y:C(x)})}return A}),g;if(it(l)&&typeof l=="number"){var w=he(d,l);g=w(x)}else if(gt(l)||Ro(l)){var S=he(d,0);g=S(x)}else g=l.map(function(A,T){var M=Math.floor(T*b);if(d[M]){var P=d[M],E=he(P.x,A.x),C=he(P.y,A.y);return ai(ai({},A),{},{x:E(x),y:C(x)})}return A});return a.renderAreaStatically(_,g,n,i)}return O.createElement(Mt,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),O.createElement(Mt,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,h=u.totalLength;return l&&o&&o.length&&(!c&&h>0||!ca(c,o)||!ca(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var v=this.state.isAnimationFinished,x=s.length===1,b=Ot("recharts-area",l),_=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,w=_||g,S=gt(d)?this.id:d,A=(n=vt(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=cC(o)?o:{},k=C.clipDot,j=k===void 0?!0:k,R=M*2+E;return O.createElement(Mt,{className:b},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?c:c-p/2,y:g?u:u-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-R/2,y:u-R/2,width:p+R,height:y+R}))):null,x?null:this.renderArea(w,S),(o||x)&&this.renderDots(w,j,S),(!m||v)&&An.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);qM=Ti;wn(Ti,"displayName","Area");wn(Ti,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ai.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});wn(Ti,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(it(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});wn(Ti,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=qM.getBaseValue(t,r,n,i),d=p==="horizontal",v=!1,x=f.map(function(_,g){var w;y?w=u[c+g]:(w=Oe(_,l),Array.isArray(w)?v=!0:w=[m,w]);var S=w[1]==null||y&&Oe(_,l)==null;return d?{x:co({axis:n,ticks:a,bandSize:s,entry:_,index:g}),y:S?null:i.scale(w[1]),value:w,payload:_}:{x:S?null:n.scale(w[1]),y:co({axis:i,ticks:o,bandSize:s,entry:_,index:g}),value:w,payload:_}}),b;return y||v?b=x.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return d?{x:_.x,y:g!=null&&_.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):b=d?i.scale(m):n.scale(m),ai({points:x,baseLine:b,layout:p,isRange:v},h)});wn(Ti,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(bt(e))r=e(t);else{var n=Ot("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=FM(t,JK);r=O.createElement(Zc,Xi({},a,{key:i,className:n}))}return r});function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function sX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GM(n.key),n)}}function uX(e,t,r){return t&&lX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cX(e,t,r){return t=vc(t),fX(e,WM()?Reflect.construct(t,r||[],vc(e).constructor):t.apply(e,r))}function fX(e,t){if(t&&(So(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hX(e)}function hX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WM=function(){return!!e})()}function vc(e){return vc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},vc(e)}function pX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zg(e,t)}function zg(e,t){return zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},zg(e,t)}function HM(e,t,r){return t=GM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GM(e){var t=dX(e,"string");return So(t)=="symbol"?t:t+""}function dX(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lf=(function(e){function t(){return sX(this,t),cX(this,t,arguments)}return pX(t,e),uX(t,[{key:"render",value:function(){return null}}])})(Fr.Component);HM(lf,"displayName","ZAxis");HM(lf,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var mX=["option","isActive"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ts.apply(this,arguments)}function yX(e,t){if(e==null)return{};var r=gX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function gX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function vX(e){var t=e.option,r=e.isActive,n=yX(e,mX);return typeof t=="string"?Fr.createElement(Eg,Ts({option:Fr.createElement(Gc,Ts({type:t},n)),isActive:r,shapeType:"symbols"},n)):Fr.createElement(Eg,Ts({option:t,isActive:r,shapeType:"symbols"},n))}function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ps.apply(this,arguments)}function jO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jO(Object(r),!0).forEach(function(n){pi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XM(n.key),n)}}function _X(e,t,r){return t&&RO(e.prototype,t),r&&RO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function xX(e,t,r){return t=bc(t),wX(e,KM()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function wX(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SX(e)}function SX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KM=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function AX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ug(e,t)}function pi(e,t,r){return t=XM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XM(e){var t=OX(e,"string");return Ao(t)=="symbol"?t:t+""}function OX(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uf=(function(e){function t(){var r;bX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=xX(this,t,[].concat(i)),pi(r,"state",{isAnimationFinished:!1}),pi(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),pi(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),pi(r,"id",ba("recharts-scatter-")),r}return AX(t,e),_X(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=vt(this.props,!1);return n.map(function(c,f){var h=l===f,p=h?s:o,y=Ir(Ir({},u),c);return O.createElement(Mt,Ps({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},Hs(i.props,c,f),{role:"img"}),O.createElement(vX,Ps({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(rn,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var v=f&&f[d];if(v){var x=he(v.cx,m.cx),b=he(v.cy,m.cy),_=he(v.size,m.size);return Ir(Ir({},m),{},{cx:x(p),cy:b(p),size:_(p)})}var g=he(0,m.size);return Ir(Ir({},m),{},{size:g(p)})});return O.createElement(Mt,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!ca(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=dr(l,No);return u?u.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,v){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:Oe(d,v)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=vt(this.props,!1),u=vt(a,!1),c,f;if(o==="joint")c=i.map(function(b){return{x:b.cx,y:b.cy}});else if(o==="fitting"){var h=v5(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,v=function(_){return m*_+d};c=[{x:p,y:v(p)},{x:y,y:v(y)}]}var x=Ir(Ir(Ir({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,x):bt(a)?f=a(x):f=O.createElement(ra,Ps({},x,{type:s})),O.createElement(Mt,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,v=Ot("recharts-scatter",s),x=l&&l.allowDataOverflow,b=u&&u.allowDataOverflow,_=x||b,g=gt(y)?this.id:y;return O.createElement(Mt,{className:v,clipPath:_?"url(#clipPath-".concat(g,")"):null},x||b?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:x?c:c-h/2,y:b?f:f-p/2,width:x?h:h*2,height:b?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(Mt,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&An.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);pi(uf,"displayName","Scatter");pi(uf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Ai.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});pi(uf,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=dr(i.props.children,w0),f=gt(t.dataKey)?i.props.dataKey:t.dataKey,h=gt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:lf.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,v=r.scale.bandwidth?r.scale.bandwidth():0,x=a.map(function(b,_){var g=Oe(b,f),w=Oe(b,h),S=!gt(p)&&Oe(b,p)||"-",A=[{name:gt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:b,dataKey:f,type:u},{name:gt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:b,dataKey:h,type:u}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:b,dataKey:p,type:u});var T=co({axis:t,ticks:o,bandSize:d,entry:b,index:_,dataKey:f}),M=co({axis:r,ticks:s,bandSize:v,entry:b,index:_,dataKey:h}),P=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(P,0)/Math.PI);return Ir(Ir({},b),{},{cx:T,cy:M,x:T-E,y:M-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:M},payload:b},c&&c[_]&&c[_].props)});return Ir({points:x},l)});function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function TX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ZM(n.key),n)}}function EX(e,t,r){return t&&PX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function CX(e,t,r){return t=_c(t),MX(e,YM()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function MX(e,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kX(e)}function kX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YM=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function $X(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wg(e,t)}function Wg(e,t){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wg(e,t)}function VM(e,t,r){return t=ZM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ZM(e){var t=jX(e,"string");return Oo(t)=="symbol"?t:t+""}function jX(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Hg(){return Hg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hg.apply(this,arguments)}function RX(e){var t=e.xAxisId,r=k0(),n=$0(),i=OM(t);return i==null?null:Fr.createElement(Bo,Hg({},i,{className:Ot("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Fn(o,!0)}}))}var cf=(function(e){function t(){return TX(this,t),CX(this,t,arguments)}return $X(t,e),EX(t,[{key:"render",value:function(){return Fr.createElement(RX,this.props)}}])})(Fr.Component);VM(cf,"displayName","XAxis");VM(cf,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function DX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tk(n.key),n)}}function NX(e,t,r){return t&&IX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LX(e,t,r){return t=xc(t),BX(e,JM()?Reflect.construct(t,r||[],xc(e).constructor):t.apply(e,r))}function BX(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qX(e)}function qX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(JM=function(){return!!e})()}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xc(e)}function FX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gg(e,t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gg(e,t)}function QM(e,t,r){return t=tk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tk(e){var t=zX(e,"string");return To(t)=="symbol"?t:t+""}function zX(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(To(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Kg(){return Kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kg.apply(this,arguments)}var UX=function(t){var r=t.yAxisId,n=k0(),i=$0(),a=TM(r);return a==null?null:Fr.createElement(Bo,Kg({},a,{className:Ot("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Fn(s,!0)}}))},ff=(function(e){function t(){return DX(this,t),LX(this,t,arguments)}return FX(t,e),NX(t,[{key:"render",value:function(){return Fr.createElement(UX,this.props)}}])})(Fr.Component);QM(ff,"displayName","YAxis");QM(ff,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function DO(e){return KX(e)||GX(e)||HX(e)||WX()}function WX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
158
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function HX(e,t){if(e){if(typeof e=="string")return Xg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Xg(e,t)}}function GX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KX(e){if(Array.isArray(e))return Xg(e)}function Xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Yg=function(t,r,n,i,a){var o=dr(t,ef),s=dr(t,nf),l=[].concat(DO(o),DO(s)),u=dr(t,of),c="".concat(i,"Id"),f=i[0],h=r;if(l.length&&(h=l.reduce(function(m,d){if(d.props[c]===n&&On(d.props,"extendDomain")&&it(d.props[f])){var v=d.props[f];return[Math.min(m[0],v),Math.max(m[1],v)]}return m},h)),u.length){var p="".concat(f,"1"),y="".concat(f,"2");h=u.reduce(function(m,d){if(d.props[c]===n&&On(d.props,"extendDomain")&&it(d.props[p])&&it(d.props[y])){var v=d.props[p],x=d.props[y];return[Math.min(m[0],v,x),Math.max(m[1],v,x)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return it(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},Ym={exports:{}},IO;function XX(){return IO||(IO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||l,h),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],p]:l._events[y].push(p):(l._events[y]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,h,p,y){var m=r?r+u:u;if(!this._events[m])return!1;var d=this._events[m],v=arguments.length,x,b;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),v){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(b=1,x=new Array(v-1);b<v;b++)x[b-1]=arguments[b];d.fn.apply(d.context,x)}else{var _=d.length,g;for(b=0;b<_;b++)switch(d[b].once&&this.removeListener(u,d[b].fn,void 0,!0),v){case 1:d[b].fn.call(d[b].context);break;case 2:d[b].fn.call(d[b].context,c);break;case 3:d[b].fn.call(d[b].context,c,f);break;case 4:d[b].fn.call(d[b].context,c,f,h);break;default:if(!x)for(g=1,x=new Array(v-1);g<v;g++)x[g-1]=arguments[g];d[b].fn.apply(d[b].context,x)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,h){var p=r?r+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],v=y.length;m<v;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Ym)),Ym.exports}var YX=XX();const VX=Lt(YX);var Vm=new VX,Zm="recharts.syncMouseEvents";function bl(e){"@babel/helpers - typeof";return bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(e)}function ZX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ek(n.key),n)}}function QX(e,t,r){return t&&JX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jm(e,t,r){return t=ek(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ek(e){var t=tY(e,"string");return bl(t)=="symbol"?t:t+""}function tY(e,t){if(bl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var eY=(function(){function e(){ZX(this,e),Jm(this,"activeIndex",0),Jm(this,"coordinateList",[]),Jm(this,"layout","horizontal")}return QX(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function rY(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&it(n)&&it(i))return!0}return!1}function nY(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function rk(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Le(t,r,n,i),s=Le(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function iY(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,h=Le(s,l,u,f),p=Le(s,l,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return rk(t);return[{x:n,y:i},{x:a,y:o}]}function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function NO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ru(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?NO(Object(r),!0).forEach(function(n){aY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function aY(e,t,r){return t=oY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oY(e){var t=sY(e,"string");return _l(t)=="symbol"?t:t+""}function sY(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lY(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=ra;if(h==="ScatterChart")y=o,m=IG;else if(h==="BarChart")y=nY(f,o,l,c),m=P0;else if(f==="radial"){var d=rk(o),v=d.cx,x=d.cy,b=d.radius,_=d.startAngle,g=d.endAngle;y={cx:v,cy:x,startAngle:_,endAngle:g,innerRadius:b,outerRadius:b},m=QC}else y={points:iY(f,o,l)},m=ra;var w=ru(ru(ru(ru({stroke:"#ccc",pointerEvents:"none"},l),y),vt(p,!1)),{},{payload:s,payloadIndex:u,className:Ot("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(m,w)}var uY=["item"],cY=["children","className","width","height","style","compact","title","desc"];function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}function LO(e,t){return pY(e)||hY(e,t)||ik(e,t)||fY()}function fY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
159
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function pY(e){if(Array.isArray(e))return e}function BO(e,t){if(e==null)return{};var r=dY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function dY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function mY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ak(n.key),n)}}function gY(e,t,r){return t&&yY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vY(e,t,r){return t=wc(t),bY(e,nk()?Reflect.construct(t,r||[],wc(e).constructor):t.apply(e,r))}function bY(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _Y(e)}function _Y(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nk=function(){return!!e})()}function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wc(e)}function xY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vg(e,t)}function Vg(e,t){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Vg(e,t)}function Eo(e){return AY(e)||SY(e)||ik(e)||wY()}function wY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
160
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return Zg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zg(e,t)}}function SY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function AY(e){if(Array.isArray(e))return Zg(e)}function Zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function pt(e,t,r){return t=ak(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ak(e){var t=OY(e,"string");return Po(t)=="symbol"?t:t+""}function OY(e,t){if(Po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TY={xAxis:["bottom","top"],yAxis:["left","right"]},PY={width:"100%",height:"100%"},ok={x:0,y:0};function nu(e){return e}var EY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},CY=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return Z(Z(Z({},i),Le(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return Z(Z(Z({},i),Le(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return ok},hf=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Eo(s),Eo(u)):s},[]);return o.length>0?o:t&&t.length&&it(i)&&it(a)?t.slice(i,a+1):[]};function sk(e){return e==="number"?[0,"auto"]:void 0}var Jg=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=hf(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=Bu(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Eo(l),[VC(u,h)]):l},[])},FO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=EY(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=pW(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,h=Jg(t,r,c,f),p=CY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},MY=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=KC(c,a);return n.reduce(function(y,m){var d,v=m.type.defaultProps!==void 0?Z(Z({},m.type.defaultProps),m.props):m.props,x=v.type,b=v.dataKey,_=v.allowDataOverflow,g=v.allowDuplicatedCategory,w=v.scale,S=v.ticks,A=v.includeHidden,T=v[o];if(y[T])return y;var M=hf(t.data,{graphicalItems:i.filter(function(N){var q,K=o in N.props?N.props[o]:(q=N.type.defaultProps)===null||q===void 0?void 0:q[o];return K===T}),dataStartIndex:l,dataEndIndex:u}),P=M.length,E,C,k;rY(v.domain,_,x)&&(E=hg(v.domain,null,_),p&&(x==="number"||w!=="auto")&&(k=Ss(M,b,"category")));var j=sk(x);if(!E||E.length===0){var R,L=(R=v.domain)!==null&&R!==void 0?R:j;if(b){if(E=Ss(M,b,x),x==="category"&&p){var z=g5(E);g&&z?(C=E,E=Ws(0,P)):g||(E=GS(L,E,m).reduce(function(N,q){return N.indexOf(q)>=0?N:[].concat(Eo(N),[q])},[]))}else if(x==="category")g?E=E.filter(function(N){return N!==""&&!gt(N)}):E=GS(L,E,m).reduce(function(N,q){return N.indexOf(q)>=0||q===""||gt(q)?N:[].concat(Eo(N),[q])},[]);else if(x==="number"){var W=vW(M,i.filter(function(N){var q,K,B=o in N.props?N.props[o]:(q=N.type.defaultProps)===null||q===void 0?void 0:q[o],V="hide"in N.props?N.props.hide:(K=N.type.defaultProps)===null||K===void 0?void 0:K.hide;return B===T&&(A||!V)}),b,a,c);W&&(E=W)}p&&(x==="number"||w!=="auto")&&(k=Ss(M,b,"category"))}else p?E=Ws(0,P):s&&s[T]&&s[T].hasStack&&x==="number"?E=h==="expand"?[0,1]:YC(s[T].stackGroups,l,u):E=GC(M,i.filter(function(N){var q=o in N.props?N.props[o]:N.type.defaultProps[o],K="hide"in N.props?N.props.hide:N.type.defaultProps.hide;return q===T&&(A||!K)}),x,c,!0);if(x==="number")E=Yg(f,E,T,a,S),L&&(E=hg(L,E,_));else if(x==="category"&&L){var I=L,D=E.every(function(N){return I.indexOf(N)>=0});D&&(E=I)}}return Z(Z({},y),{},pt({},T,Z(Z({},v),{},{axisType:a,domain:E,categoricalDomain:k,duplicateDomain:C,originalDomain:(d=v.domain)!==null&&d!==void 0?d:j,isCategorical:p,layout:c})))},{})},kY=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=hf(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,y=KC(c,a),m=-1;return n.reduce(function(d,v){var x=v.type.defaultProps!==void 0?Z(Z({},v.type.defaultProps),v.props):v.props,b=x[o],_=sk("number");if(!d[b]){m++;var g;return y?g=Ws(0,p):s&&s[b]&&s[b].hasStack?(g=YC(s[b].stackGroups,l,u),g=Yg(f,g,b,a)):(g=hg(_,GC(h,n.filter(function(w){var S,A,T=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],M="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===b&&!M}),"number",c),i.defaultProps.allowDataOverflow),g=Yg(f,g,b,a)),Z(Z({},d),{},pt({},b,Z(Z({axisType:a},i.defaultProps),{},{hide:!0,orientation:zr(TY,"".concat(a,".").concat(m%2),null),domain:g,originalDomain:_,isCategorical:y,layout:c})))}return d},{})},$Y=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=dr(c,a),p={};return h&&h.length?p=MY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=kY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},jY=function(t){var r=si(t),n=Fn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Wc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:Vu(r,n)}},zO=function(t){var r=t.children,n=t.defaultShowTooltip,i=Sr(r,po),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},RY=function(t){return!t||!t.length?!1:t.some(function(r){var n=zn(r&&r.type);return n&&n.indexOf("Bar")>=0})},UO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},DY=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,h=n.margin||{},p=Sr(f,po),y=Sr(f,ta),m=Object.keys(l).reduce(function(g,w){var S=l[w],A=S.orientation;return!S.mirror&&!S.hide?Z(Z({},g),{},pt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?Z(Z({},g),{},pt({},A,zr(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),v=Z(Z({},d),m),x=v.bottom;p&&(v.bottom+=p.props.height||po.defaultProps.height),y&&r&&(v=yW(v,i,n,r));var b=u-v.left-v.right,_=c-v.top-v.bottom;return Z(Z({brushBottom:x},v),{},{width:Math.max(b,0),height:Math.max(_,0)})},IY=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},NY=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(v,x){var b=x.graphicalItems,_=x.stackGroups,g=x.offset,w=x.updateId,S=x.dataStartIndex,A=x.dataEndIndex,T=v.barSize,M=v.layout,P=v.barGap,E=v.barCategoryGap,C=v.maxBarSize,k=UO(M),j=k.numericAxisName,R=k.cateAxisName,L=RY(b),z=[];return b.forEach(function(W,I){var D=hf(v.data,{graphicalItems:[W],dataStartIndex:S,dataEndIndex:A}),N=W.type.defaultProps!==void 0?Z(Z({},W.type.defaultProps),W.props):W.props,q=N.dataKey,K=N.maxBarSize,B=N["".concat(j,"Id")],V=N["".concat(R,"Id")],J={},H=l.reduce(function(dt,wt){var Xt,oe,It=x["".concat(wt.axisType,"Map")],Nt=N["".concat(wt.axisType,"Id")];It&&It[Nt]||wt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?lr(!1,"Specifying a(n) ".concat(wt.axisType,"Id requires a corresponding ").concat(wt.axisType,"Id on the targeted graphical component ").concat((Xt=W==null||(oe=W.type)===null||oe===void 0?void 0:oe.displayName)!==null&&Xt!==void 0?Xt:"")):lr());var ne=It[Nt];return Z(Z({},dt),{},pt(pt({},wt.axisType,ne),"".concat(wt.axisType,"Ticks"),Fn(ne)))},J),F=H[R],X=H["".concat(R,"Ticks")],Y=_&&_[B]&&_[B].hasStack&&MW(W,_[B].stackGroups),$=zn(W.type).indexOf("Bar")>=0,rt=Vu(F,X),U=[],ct=L&&dW({barSize:T,stackGroups:_,totalSize:IY(H,R)});if($){var mt,ot,ut=gt(K)?C:K,St=(mt=(ot=Vu(F,X,!0))!==null&&ot!==void 0?ot:ut)!==null&&mt!==void 0?mt:0;U=mW({barGap:P,barCategoryGap:E,bandSize:St!==rt?St:rt,sizeList:ct[V],maxBarSize:ut}),St!==rt&&(U=U.map(function(dt){return Z(Z({},dt),{},{position:Z(Z({},dt.position),{},{offset:dt.position.offset-St/2})})}))}var at=W&&W.type&&W.type.getComposedData;at&&z.push({props:Z(Z({},at(Z(Z({},H),{},{displayedData:D,props:v,dataKey:q,item:W,bandSize:rt,barPosition:U,offset:g,stackedData:Y,layout:M,dataStartIndex:S,dataEndIndex:A}))),{},pt(pt(pt({key:W.key||"item-".concat(I)},j,H[j]),R,H[R]),"animationId",w)),childIndex:M5(W,v.children),item:W})}),z},p=function(v,x){var b=v.props,_=v.dataStartIndex,g=v.dataEndIndex,w=v.updateId;if(!Cw({props:b}))return null;var S=b.children,A=b.layout,T=b.stackOffset,M=b.data,P=b.reverseStackOrder,E=UO(A),C=E.numericAxisName,k=E.cateAxisName,j=dr(S,n),R=PW(M,j,"".concat(C,"Id"),"".concat(k,"Id"),T,P),L=l.reduce(function(N,q){var K="".concat(q.axisType,"Map");return Z(Z({},N),{},pt({},K,$Y(b,Z(Z({},q),{},{graphicalItems:j,stackGroups:q.axisType===C&&R,dataStartIndex:_,dataEndIndex:g}))))},{}),z=DY(Z(Z({},L),{},{props:b,graphicalItems:j}),x==null?void 0:x.legendBBox);Object.keys(L).forEach(function(N){L[N]=c(b,L[N],z,N.replace("Map",""),r)});var W=L["".concat(k,"Map")],I=jY(W),D=h(b,Z(Z({},L),{},{dataStartIndex:_,dataEndIndex:g,updateId:w,graphicalItems:j,stackGroups:R,offset:z}));return Z(Z({formattedGraphicalItems:D,graphicalItems:j,offset:z,stackGroups:R},I),L)},y=(function(d){function v(x){var b,_,g;return mY(this,v),g=vY(this,v,[x]),pt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),pt(g,"accessibilityManager",new eY),pt(g,"handleLegendBBoxUpdate",function(w){if(w){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,M=S.updateId;g.setState(Z({legendBBox:w},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:M},Z(Z({},g.state),{},{legendBBox:w}))))}}),pt(g,"handleReceiveSyncEvent",function(w,S,A){if(g.props.syncId===w){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),pt(g,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return Z({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),pt(g,"handleMouseEnter",function(w){var S=g.getMouseInfo(w);if(S){var A=Z(Z({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;bt(T)&&T(A,w)}}),pt(g,"triggeredAfterMouseMove",function(w){var S=g.getMouseInfo(w),A=S?Z(Z({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;bt(T)&&T(A,w)}),pt(g,"handleItemMouseEnter",function(w){g.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),pt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),pt(g,"handleMouseMove",function(w){w.persist(),g.throttleTriggeredAfterMouseMove(w)}),pt(g,"handleMouseLeave",function(w){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;bt(A)&&A(S,w)}),pt(g,"handleOuterEvent",function(w){var S=C5(w),A=zr(g.props,"".concat(S));if(S&&bt(A)){var T,M;/.*touch.*/i.test(S)?M=g.getMouseInfo(w.changedTouches[0]):M=g.getMouseInfo(w),A((T=M)!==null&&T!==void 0?T:{},w)}}),pt(g,"handleClick",function(w){var S=g.getMouseInfo(w);if(S){var A=Z(Z({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;bt(T)&&T(A,w)}}),pt(g,"handleMouseDown",function(w){var S=g.props.onMouseDown;if(bt(S)){var A=g.getMouseInfo(w);S(A,w)}}),pt(g,"handleMouseUp",function(w){var S=g.props.onMouseUp;if(bt(S)){var A=g.getMouseInfo(w);S(A,w)}}),pt(g,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),pt(g,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseDown(w.changedTouches[0])}),pt(g,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseUp(w.changedTouches[0])}),pt(g,"handleDoubleClick",function(w){var S=g.props.onDoubleClick;if(bt(S)){var A=g.getMouseInfo(w);S(A,w)}}),pt(g,"handleContextMenu",function(w){var S=g.props.onContextMenu;if(bt(S)){var A=g.getMouseInfo(w);S(A,w)}}),pt(g,"triggerSyncEvent",function(w){g.props.syncId!==void 0&&Vm.emit(Zm,g.props.syncId,w,g.eventEmitterSymbol)}),pt(g,"applySyncEvent",function(w){var S=g.props,A=S.layout,T=S.syncMethod,M=g.state.updateId,P=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)g.setState(Z({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:M},g.state)));else if(w.activeTooltipIndex!==void 0){var C=w.chartX,k=w.chartY,j=w.activeTooltipIndex,R=g.state,L=R.offset,z=R.tooltipTicks;if(!L)return;if(typeof T=="function")j=T(z,w);else if(T==="value"){j=-1;for(var W=0;W<z.length;W++)if(z[W].value===w.activeLabel){j=W;break}}var I=Z(Z({},L),{},{x:L.left,y:L.top}),D=Math.min(C,I.x+I.width),N=Math.min(k,I.y+I.height),q=z[j]&&z[j].value,K=Jg(g.state,g.props.data,j),B=z[j]?{x:A==="horizontal"?z[j].coordinate:D,y:A==="horizontal"?N:z[j].coordinate}:ok;g.setState(Z(Z({},w),{},{activeLabel:q,activeCoordinate:B,activePayload:K,activeTooltipIndex:j}))}else g.setState(w)}),pt(g,"renderCursor",function(w){var S,A=g.state,T=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,E=A.offset,C=A.activeTooltipIndex,k=A.tooltipAxisBandSize,j=g.getTooltipEventType(),R=(S=w.props.active)!==null&&S!==void 0?S:T,L=g.props.layout,z=w.key||"_recharts-cursor";return O.createElement(lY,{key:z,activeCoordinate:M,activePayload:P,activeTooltipIndex:C,chartName:r,element:w,isActive:R,layout:L,offset:E,tooltipAxisBandSize:k,tooltipEventType:j})}),pt(g,"renderPolarAxis",function(w,S,A){var T=zr(w,"type.axisType"),M=zr(g.state,"".concat(T,"Map")),P=w.type.defaultProps,E=P!==void 0?Z(Z({},P),w.props):w.props,C=M&&M[E["".concat(T,"Id")]];return O.cloneElement(w,Z(Z({},C),{},{className:Ot(T,C.className),key:w.key||"".concat(S,"-").concat(A),ticks:Fn(C,!0)}))}),pt(g,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,T=S.polarAngles,M=S.polarRadius,P=g.state,E=P.radiusAxisMap,C=P.angleAxisMap,k=si(E),j=si(C),R=j.cx,L=j.cy,z=j.innerRadius,W=j.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(T)?T:Fn(j,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(M)?M:Fn(k,!0).map(function(I){return I.coordinate}),cx:R,cy:L,innerRadius:z,outerRadius:W,key:w.key||"polar-grid",radialLines:A})}),pt(g,"renderLegend",function(){var w=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,M=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),C=WC({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:u});if(!C)return null;var k=C.item,j=BO(C,uY);return O.cloneElement(k,Z(Z({},j),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),pt(g,"renderTooltip",function(){var w,S=g.props,A=S.children,T=S.accessibilityLayer,M=Sr(A,vn);if(!M)return null;var P=g.state,E=P.isTooltipActive,C=P.activeCoordinate,k=P.activePayload,j=P.activeLabel,R=P.offset,L=(w=M.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(M,{viewBox:Z(Z({},R),{},{x:R.left,y:R.top}),active:L,label:j,payload:L?k:[],coordinate:C,accessibilityLayer:T})}),pt(g,"renderBrush",function(w){var S=g.props,A=S.margin,T=S.data,M=g.state,P=M.offset,E=M.dataStartIndex,C=M.dataEndIndex,k=M.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:Vl(g.handleBrushChange,w.props.onChange),data:T,x:it(w.props.x)?w.props.x:P.left,y:it(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:it(w.props.width)?w.props.width:P.width,startIndex:E,endIndex:C,updateId:"brush-".concat(k)})}),pt(g,"renderReferenceElement",function(w,S,A){if(!w)return null;var T=g,M=T.clipPathId,P=g.state,E=P.xAxisMap,C=P.yAxisMap,k=P.offset,j=w.type.defaultProps||{},R=w.props,L=R.xAxisId,z=L===void 0?j.xAxisId:L,W=R.yAxisId,I=W===void 0?j.yAxisId:W;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[z],yAxis:C[I],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:M})}),pt(g,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,T=w.basePoint,M=w.childIndex,P=w.isRange,E=[],C=S.props.key,k=S.item.type.defaultProps!==void 0?Z(Z({},S.item.type.defaultProps),S.item.props):S.item.props,j=k.activeDot,R=k.dataKey,L=Z(Z({index:M,dataKey:R,cx:A.x,cy:A.y,r:4,fill:O0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},vt(j,!1)),qu(j));return E.push(v.renderActiveDot(j,L,"".concat(C,"-activePoint-").concat(M))),T?E.push(v.renderActiveDot(j,Z(Z({},L),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat(M))):P&&E.push(null),E}),pt(g,"renderGraphicChild",function(w,S,A){var T=g.filterFormatItem(w,S,A);if(!T)return null;var M=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,C=P.tooltipAxis,k=P.activeTooltipIndex,j=P.activeLabel,R=g.props.children,L=Sr(R,vn),z=T.props,W=z.points,I=z.isRange,D=z.baseLine,N=T.item.type.defaultProps!==void 0?Z(Z({},T.item.type.defaultProps),T.item.props):T.item.props,q=N.activeDot,K=N.hide,B=N.activeBar,V=N.activeShape,J=!!(!K&&E&&L&&(q||B||V)),H={};M!=="axis"&&L&&L.props.trigger==="click"?H={onClick:Vl(g.handleItemMouseEnter,w.props.onClick)}:M!=="axis"&&(H={onMouseLeave:Vl(g.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:Vl(g.handleItemMouseEnter,w.props.onMouseEnter)});var F=O.cloneElement(w,Z(Z({},T.props),H));function X(wt){return typeof C.dataKey=="function"?C.dataKey(wt.payload):null}if(J)if(k>=0){var Y,$;if(C.dataKey&&!C.allowDuplicatedCategory){var rt=typeof C.dataKey=="function"?X:"payload.".concat(C.dataKey.toString());Y=Bu(W,rt,j),$=I&&D&&Bu(D,rt,j)}else Y=W==null?void 0:W[k],$=I&&D&&D[k];if(V||B){var U=w.props.activeIndex!==void 0?w.props.activeIndex:k;return[O.cloneElement(w,Z(Z(Z({},T.props),H),{},{activeIndex:U})),null,null]}if(!gt(Y))return[F].concat(Eo(g.renderActivePoints({item:T,activePoint:Y,basePoint:$,childIndex:k,isRange:I})))}else{var ct,mt=(ct=g.getItemByXY(g.state.activeCoordinate))!==null&&ct!==void 0?ct:{graphicalItem:F},ot=mt.graphicalItem,ut=ot.item,St=ut===void 0?w:ut,at=ot.childIndex,dt=Z(Z(Z({},T.props),H),{},{activeIndex:at});return[O.cloneElement(St,dt),null,null]}return I?[F,null,null]:[F,null]}),pt(g,"renderCustomized",function(w,S,A){return O.cloneElement(w,Z(Z({key:"recharts-customized-".concat(A)},g.props),g.state))}),pt(g,"renderMap",{CartesianGrid:{handler:nu,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:nu},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:nu},YAxis:{handler:nu},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((b=x.id)!==null&&b!==void 0?b:ba("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=SC(g.triggeredAfterMouseMove,(_=x.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return xY(v,d),gY(v,[{key:"componentDidMount",value:function(){var b,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(b=this.props.margin.left)!==null&&b!==void 0?b:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var b=this.props,_=b.children,g=b.data,w=b.height,S=b.layout,A=Sr(_,vn);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=Jg(this.state,g,T,M),E=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+w)/2,k=S==="horizontal",j=k?{x:E,y:C}:{y:E,x:C},R=this.state.formattedGraphicalItems.find(function(z){var W=z.item;return W.type.name==="Scatter"});R&&(j=Z(Z({},j),R.props.points[T].tooltipPosition),P=R.props.points[T].tooltipPayload);var L={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:j};this.setState(L),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(b,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==b.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==b.margin){var g,w;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(b){Hy([Sr(b.children,vn)],[Sr(this.props.children,vn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var b=Sr(this.props.children,vn);if(b&&typeof b.props.shared=="boolean"){var _=b.props.shared?"axis":"item";return s.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(b){if(!this.container)return null;var _=this.container,g=_.getBoundingClientRect(),w=R3(g),S={chartX:Math.round(b.pageX-w.left),chartY:Math.round(b.pageY-w.top)},A=g.width/_.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var M=this.state,P=M.xAxisMap,E=M.yAxisMap,C=this.getTooltipEventType(),k=FO(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&P&&E){var j=si(P).scale,R=si(E).scale,L=j&&j.invert?j.invert(S.chartX):null,z=R&&R.invert?R.invert(S.chartY):null;return Z(Z({},S),{},{xValue:L,yValue:z},k)}return k?Z(Z({},S),k):null}},{key:"inRange",value:function(b,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=b/g,A=_/g;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,M=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return M?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,C=P.radiusAxisMap;if(E&&C){var k=si(E);return YS({x:S,y:A},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var b=this.props.children,_=this.getTooltipEventType(),g=Sr(b,vn),w={};g&&_==="axis"&&(g.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=qu(this.props,this.handleOuterEvent);return Z(Z({},S),w)}},{key:"addListener",value:function(){Vm.on(Zm,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Vm.removeListener(Zm,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(b,_,g){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var T=w[S];if(T.item===b||T.props.key===b.key||_===zn(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var b=this.clipPathId,_=this.state.offset,g=_.left,w=_.top,S=_.height,A=_.width;return O.createElement("defs",null,O.createElement("clipPath",{id:b},O.createElement("rect",{x:g,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var b=this.state.xAxisMap;return b?Object.entries(b).reduce(function(_,g){var w=LO(g,2),S=w[0],A=w[1];return Z(Z({},_),{},pt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var b=this.state.yAxisMap;return b?Object.entries(b).reduce(function(_,g){var w=LO(g,2),S=w[0],A=w[1];return Z(Z({},_),{},pt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(b){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(b){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[b])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(b){var _=this.state,g=_.formattedGraphicalItems,w=_.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],M=T.props,P=T.item,E=P.type.defaultProps!==void 0?Z(Z({},P.type.defaultProps),P.props):P.props,C=zn(P.type);if(C==="Bar"){var k=(M.data||[]).find(function(z){return TG(b,z)});if(k)return{graphicalItem:T,payload:k}}else if(C==="RadialBar"){var j=(M.data||[]).find(function(z){return YS(b,z)});if(j)return{graphicalItem:T,payload:j}}else if(Jc(T,w)||Qc(T,w)||ml(T,w)){var R=m6({graphicalItem:T,activeTooltipItem:w,itemData:E.data}),L=E.activeIndex===void 0?R:E.activeIndex;return{graphicalItem:Z(Z({},T),{},{childIndex:L}),payload:ml(T,w)?E.data[R]:T.props.data[R]}}}return null}},{key:"render",value:function(){var b=this;if(!Cw(this))return null;var _=this.props,g=_.children,w=_.className,S=_.width,A=_.height,T=_.style,M=_.compact,P=_.title,E=_.desc,C=BO(_,cY),k=vt(C,!1);if(M)return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Ky,Na({},k,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),kw(g,this.renderMap)));if(this.props.accessibilityLayer){var j,R;k.tabIndex=(j=this.props.tabIndex)!==null&&j!==void 0?j:0,k.role=(R=this.props.role)!==null&&R!==void 0?R:"application",k.onKeyDown=function(z){b.accessibilityManager.keyboardEvent(z)},k.onFocus=function(){b.accessibilityManager.focus()}}var L=this.parseEventsOfWrapper();return O.createElement(mO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Na({className:Ot("recharts-wrapper",w),style:Z({position:"relative",cursor:"default",width:S,height:A},T)},L,{ref:function(W){b.container=W}}),O.createElement(Ky,Na({},k,{width:S,height:A,title:P,desc:E,style:PY}),this.renderClipPath(),kw(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);pt(y,"displayName",r),pt(y,"defaultProps",Z({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),pt(y,"getDerivedStateFromProps",function(d,v){var x=d.dataKey,b=d.data,_=d.children,g=d.width,w=d.height,S=d.layout,A=d.stackOffset,T=d.margin,M=v.dataStartIndex,P=v.dataEndIndex;if(v.updateId===void 0){var E=zO(d);return Z(Z(Z({},E),{},{updateId:0},p(Z(Z({props:d},E),{},{updateId:0}),v)),{},{prevDataKey:x,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(x!==v.prevDataKey||b!==v.prevData||g!==v.prevWidth||w!==v.prevHeight||S!==v.prevLayout||A!==v.prevStackOffset||!Ha(T,v.prevMargin)){var C=zO(d),k={chartX:v.chartX,chartY:v.chartY,isTooltipActive:v.isTooltipActive},j=Z(Z({},FO(v,b,S)),{},{updateId:v.updateId+1}),R=Z(Z(Z({},C),k),j);return Z(Z(Z({},R),p(Z({props:d},R),v)),{},{prevDataKey:x,prevData:b,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(!Hy(_,v.prevChildren)){var L,z,W,I,D=Sr(_,po),N=D&&(L=(z=D.props)===null||z===void 0?void 0:z.startIndex)!==null&&L!==void 0?L:M,q=D&&(W=(I=D.props)===null||I===void 0?void 0:I.endIndex)!==null&&W!==void 0?W:P,K=N!==M||q!==P,B=!gt(b),V=B&&!K?v.updateId:v.updateId+1;return Z(Z({updateId:V},p(Z(Z({props:d},v),{},{updateId:V,dataStartIndex:N,dataEndIndex:q}),v)),{},{prevChildren:_,dataStartIndex:N,dataEndIndex:q})}return null}),pt(y,"renderActiveDot",function(d,v,x){var b;return O.isValidElement(d)?b=O.cloneElement(d,v):bt(d)?b=d(v):b=O.createElement(Zc,v),O.createElement(Mt,{className:"recharts-active-dot",key:x},b)});var m=O.forwardRef(function(v,x){return O.createElement(y,Na({},v,{ref:x}))});return m.displayName=y.displayName,m},LY=NY({chartName:"ComposedChart",GraphicalChild:[sf,Ti,Lo,uf],axisComponents:[{axisType:"xAxis",AxisComp:cf},{axisType:"yAxis",AxisComp:ff},{axisType:"zAxis",AxisComp:lf}],formatAxisMap:s4});const ns=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},BY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),qY=e=>new Intl.NumberFormat("en-US").format(e);function FY(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return ns()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&ns()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return ns()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(ns()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(ns()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:l}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),u=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||BY,[n]),f=O.useMemo(()=>i||qY,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:l,maxTotalValue:u,dateFormatter:c,valueFormatter:f}}function zY(e,t){const r=t-1-e,n=ys.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return ys[a]??ys[0]??"#000000"}function UY(e){return Array.from({length:e},(t,r)=>zY(r,e))}const $a=UY(5),In={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:pr.neoDigitalGreen[600],inProgress:"#007bff",farthest:$a[0],far:$a[1],close:$a[2],closest:$a[3],completed:$a[4],primary:"#007bff",secondary:"#6c757d",success:pr.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:pr.neoGrey[200],dark:"#343a40"},Pt={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:pr.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:pr.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},WY={migration:$a,severity:[In.critical,In.high,In.medium,In.low,In.info],status:[In.danger,In.warning,In.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},HY={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},GY=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=Pt.display.showHeader,height:o=Pt.dimensions.height,width:s=Pt.dimensions.width,showLegend:l=Pt.display.showLegend,showTooltip:u=Pt.display.showTooltip,showXAxis:c=Pt.display.showXAxis,showYAxis:f=Pt.display.showYAxis,showGrid:h=Pt.display.showGrid,enableAnimation:p=Pt.animation.enabled,animationDuration:y=Pt.animation.duration,animationEasing:m=Pt.animation.easing,formatDate:d,formatValue:v,tooltipFormatter:x,slotProps:b,margin:_=Pt.margin,curveType:g=Pt.curve.type,stackOffset:w=Pt.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:M=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:C,valueFormatter:k}=FY({data:e,categories:t,formatDate:d,formatValue:v}),[j,R]=O.useState(null),[L,z]=O.useState(!1),[W,I]=O.useState(null),[D,N]=O.useState(null),q=O.useRef(null),K=S?[S[0],S[1]]:["dataMin","dataMax"],B=P.length>0?P[0].timestamp:0,V=P.length>0?P[P.length-1].timestamp:0,J=O.useCallback((at,dt)=>{const wt=at/dt*100,Xt=V-B;return B+wt/100*Xt},[B,V]),H=O.useCallback(at=>{const dt=V-B;return dt===0?0:(at-B)/dt*100},[B,V]),F=O.useCallback(at=>{if(!T)return;const dt=at.currentTarget.getBoundingClientRect(),wt=at.clientX-dt.left,Xt=J(wt,dt.width);z(!0),I(Xt),N(Xt)},[T,J]),X=O.useCallback(at=>{if(!q.current)return;const dt=at.currentTarget.getBoundingClientRect(),wt=at.clientX-dt.left,Xt=dt.width,oe=J(wt,Xt);if(L)W!==null&&N(oe);else{const Nt=r.find(ne=>Math.abs(ne.timestamp-oe)<2592e5);R((Nt==null?void 0:Nt.timestamp)??null)}},[L,W,J,r]),Y=O.useCallback(()=>{if(L&&W!==null&&D!==null&&A){const at=Math.min(W,D),dt=Math.max(W,D);at!==dt&&A([at,dt])}z(!1),I(null),N(null)},[L,W,D,A]),$=O.useCallback(()=>{Y(),R(null)},[Y]),U=(M?L:!0)&&L&&W!==null&&D!==null?{left:H(Math.min(W,D)),width:Math.abs(H(D)-H(W))}:null,mt=(S?P.filter(at=>at.timestamp>=S[0]&&at.timestamp<=S[1]):P).slice().reverse().map(at=>{const dt=r.find(wt=>wt.timestamp===at.timestamp);return dt&&dt.label?{...at,__markerLabel:dt.label}:at}),ot=at=>C(at),ut=at=>k(at),St=({active:at,payload:dt,label:wt})=>{if(!at||!dt||dt.length===0)return null;const Xt=mt.find(It=>It.timestamp===wt);if(Xt&&"__markerLabel"in Xt){const Nt=String(Xt.__markerLabel).split(" - "),ne=Nt[0]||"",Jt=Nt[1]||"";return G.jsxs(Q.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[G.jsx(Q.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Jt}),G.jsx(Q.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:ne})]})}return G.jsxs(Q.Box,{sx:{backgroundColor:Pt.tooltip.backgroundColor,border:`${Pt.tooltip.borderWidth}px solid ${Pt.tooltip.borderColor}`,borderRadius:Pt.tooltip.borderRadius,padding:Pt.tooltip.padding},children:[G.jsx(Q.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:C(wt)}),dt.map((It,Nt)=>G.jsxs(Q.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[G.jsx(Q.Box,{sx:{width:10,height:10,backgroundColor:It.color,borderRadius:"2px"}}),G.jsxs(Q.Typography,{sx:{fontSize:"14px"},children:[It.name,": ",k(It.value)]})]},`item-${Nt}`))]})};return G.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center"},...b==null?void 0:b.container,children:[a&&(n||i)&&G.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...b==null?void 0:b.header,children:[n&&G.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},...b==null?void 0:b.title,children:n}),i&&G.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},...b==null?void 0:b.subtitle,children:i})]}),G.jsxs(Q.Box,{ref:q,sx:{width:"100%",height:`${o}px`,minHeight:Pt.dimensions.minHeight,position:"relative"},...b==null?void 0:b.chartContainer,children:[G.jsx(P3,{width:s,height:"100%",children:G.jsxs(LY,{data:mt,margin:_,stackOffset:w,children:[h&&G.jsx(NM,{strokeDasharray:"3 3",stroke:Pt.axis.strokeColor,opacity:.3}),c&&G.jsx(cf,{dataKey:"timestamp",type:"number",domain:K,tickFormatter:ot,stroke:Pt.axis.strokeColor,tick:{fill:Pt.axis.tickColor},scale:"time"}),f&&G.jsx(ff,{tickFormatter:ut,stroke:Pt.axis.strokeColor,tick:{fill:Pt.axis.tickColor}}),u&&G.jsx(vn,{content:G.jsx(St,{})}),l&&G.jsx(ta,{iconSize:Pt.legend.iconSize,iconType:Pt.legend.iconType,layout:Pt.legend.layout,align:Pt.legend.align,verticalAlign:Pt.legend.verticalAlign}),E.map((at,dt)=>G.jsx(Ti,{type:g,dataKey:at.dataKey,name:at.label,stackId:"1",stroke:at.color,fill:at.strokeDasharray?"transparent":at.color,fillOpacity:at.strokeDasharray?0:at.fillOpacity??.7,strokeWidth:at.strokeWidth??2,strokeDasharray:at.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-dt)*100:0},at.dataKey)),r.filter(at=>j===null||at.timestamp===j).map((at,dt)=>G.jsx(ef,{x:at.timestamp,stroke:at.color??Pt.marker.strokeColor,strokeWidth:at.strokeWidth??Pt.marker.strokeWidth,strokeDasharray:at.strokeDasharray??Pt.marker.strokeDasharray,strokeOpacity:j===null?0:1},`marker-${at.timestamp}-${dt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&G.jsxs(Q.Box,{sx:{position:"absolute",top:_.top||0,left:_.left||0,right:_.right||0,bottom:_.bottom||0,cursor:L?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:F,onMouseMove:X,onMouseUp:Y,onMouseLeave:$,children:[U&&G.jsx(Q.Box,{sx:{position:"absolute",left:`${U.left}%`,width:`${U.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),j&&G.jsx(G.Fragment,{children:r.filter(at=>at.timestamp===j).map(at=>G.jsx(Q.Box,{sx:{position:"absolute",left:`${H(at.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:at.label||C(at.timestamp)},`tooltip-${at.timestamp}`))})]})]})]})},yn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},KY=(e="#4B5563")=>({startHandle:{sx:{position:"absolute",left:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}},endHandle:{sx:{position:"absolute",right:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}}}),Vr={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:yn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${yn.dimensions.height}px`,backgroundColor:yn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${yn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${yn.dimensions.eventWidth}px`,height:"100%",backgroundColor:yn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:yn.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${yn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:yn.colors.tooltipText,fontSize:"11px"}}},XY=(e="#9CA3AF")=>({startHandle:{sx:{position:"absolute",left:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}},endHandle:{sx:{position:"absolute",right:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}}}),YY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},VY=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{YY()&&e.length>1&&(e.every((V,J)=>J===0||V.timestamp>=e[J-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,l]=O.useState(!1),[u,c]=O.useState(null),[f,h]=O.useState(null),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState({start:null,end:null}),[v,x]=O.useState(null),b=O.useRef(null),_=t??p,g=a??m,w=O.useMemo(()=>{var B;return e.length>0?((B=e[0])==null?void 0:B.timestamp)??0:0},[e]),S=O.useMemo(()=>{var B;return e.length>0?((B=e[e.length-1])==null?void 0:B.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:w,[i,g,w]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),M=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&_.start!==null&&_.end!==null,[n,_]),E=O.useCallback(B=>M===0?0:(B-A)/M*100,[A,M]),C=O.useCallback((B,V)=>{const J=B/V*100;return A+J/100*M},[A,M]),k=O.useCallback(B=>{t===void 0&&y(B),r==null||r(B)},[t,r]),j=O.useCallback(B=>{const V=B.currentTarget.getBoundingClientRect(),J=B.clientX-V.left,H=C(J,V.width);l(!0),c(H),k({start:H,end:H})},[C,k]),R=O.useCallback(B=>{if(!s||u===null)return;const V=B.currentTarget.getBoundingClientRect(),J=B.clientX-V.left,H=C(J,V.width);if(f==="start"){const F=Math.min(H,_.end-M*.01);k({start:Math.max(F,A),end:_.end})}else if(f==="end"){const F=Math.max(H,_.start+M*.01);k({start:_.start,end:Math.min(F,T)})}else if(f==="body"){const F=H-u,X=_.end-_.start;let Y=_.start+F,$=_.end+F;Y<A&&(Y=A,$=A+X),$>T&&($=T,Y=T-X),k({start:Y,end:$}),c(H)}else k({start:Math.min(u,H),end:Math.max(u,H)})},[s,u,f,_,M,A,T,C,k]),L=O.useCallback(()=>{const B=s;if(l(!1),h(null),B&&i&&_.start&&_.end&&_.start!==_.end){const V={start:_.start,end:_.end};a===void 0&&d(V),o==null||o(V)}},[s,i,_,a,o]);O.useEffect(()=>{if(!s||u===null||!b.current)return;const B=J=>{const H=b.current;if(!H)return;const F=H.getBoundingClientRect(),X=J.clientX-F.left,Y=C(X,F.width);if(f==="start"){const $=Math.min(Y,_.end-M*.01);k({start:Math.max($,A),end:_.end})}else if(f==="end"){const $=Math.max(Y,_.start+M*.01);k({start:_.start,end:Math.min($,T)})}else if(f==="body"){const $=Y-u,rt=_.end-_.start;let U=_.start+$,ct=_.end+$;U<A&&(U=A,ct=A+rt),ct>T&&(ct=T,U=T-rt),k({start:U,end:ct}),c(Y)}else k({start:Math.min(u,Y),end:Math.max(u,Y)})},V=()=>{L()};return document.addEventListener("mousemove",B),document.addEventListener("mouseup",V),()=>{document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",V)}},[s,u,f,_,M,A,T,C,k,L]);const z=O.useCallback(B=>{B.stopPropagation(),_.start!==null&&(l(!0),c(_.start),h("start"))},[_]),W=O.useCallback(B=>{B.stopPropagation(),_.end!==null&&(l(!0),c(_.end),h("end"))},[_]),I=O.useCallback(B=>{B.stopPropagation();const V=b.current;if(!V)return;const J=V.getBoundingClientRect(),H=B.clientX-J.left,F=C(H,J.width);l(!0),c(F),h("body")},[C]),D=O.useCallback(B=>{if(B.cancelable&&n&&B.preventDefault(),!n||!_.start||!_.end||M===0)return;const V=(_.start+_.end)/2,J=_.end-_.start,H=B.deltaY>0?1.1:.9,F=Math.max(J*H,M*.01),X=M*1.5,Y=Math.min(F,X);let $=V-Y/2,rt=V+Y/2;$<A&&($=A,rt=Math.min(A+Y,T)),rt>T&&(rt=T,$=Math.max(T-Y,A)),k({start:$,end:rt})},[n,_,M,A,T,k]),N=O.useCallback(()=>!_.start||!_.end?[]:e.filter(B=>B.timestamp>=_.start&&B.timestamp<=_.end),[e,_]),q=O.useCallback(()=>{const B={start:w,end:S};a===void 0&&d({start:null,end:null}),o==null||o(B)},[w,S,a,o]),K=O.useCallback(()=>{i&&q()},[i,q]);return{isDragging:s,dragStart:u,dragHandleType:f,internalSelectedRange:_,internalVisibleRange:g,hoveredEvent:v,minDate:A,maxDate:T,timeSpan:M,timelineContainerRef:b,getPositionFromTimestamp:E,getTimestampFromPosition:C,handleMouseDown:j,handleMouseMove:R,handleMouseUp:L,handleWheel:D,handleDoubleClick:K,handleStartHandleMouseDown:z,handleEndHandleMouseDown:W,handleSelectionBodyMouseDown:I,setHoveredEvent:x,getEventsInRange:N,resetZoom:q,showHandles:P}},ZY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),JY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),QY=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},tV=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},eV=(e,t="arrow",r)=>{const n=t==="grip"?XY(r||"#9CA3AF"):KY(r||"#4B5563");return{header:{...Vr.header,...e==null?void 0:e.header},title:{...Vr.title,...e==null?void 0:e.title},instructions:{...Vr.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...Vr.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...Vr.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...Vr.timeline,...e==null?void 0:e.timeline},event:{...Vr.event,...e==null?void 0:e.event},selection:{...Vr.selection,...e==null?void 0:e.selection},startHandle:{...n.startHandle,...e==null?void 0:e.startHandle},endHandle:{...n.endHandle,...e==null?void 0:e.endHandle},tooltip:{...Vr.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...Vr.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...Vr.tooltipDate,...e==null?void 0:e.tooltipDate}}},rV=({events:e,onSelectionChange:t,selectedRange:r,height:n=yn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=ZY,formatMonthYear:o=JY,showMonthLabels:s=!0,monthLabelCount:l=6,enableZoom:u=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:m,onVisibleRangeChange:d,timeRange:v,onTimeRangeChange:x,slotProps:b})=>{const _=v?{start:v[0],end:v[1]}:m,g=x?B=>{B.start!==null&&B.end!==null&&x([B.start,B.end])}:d;tV()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const w=O.useMemo(()=>eV(b,c,f),[b,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:M,minDate:P,timeSpan:E,timelineContainerRef:C,getPositionFromTimestamp:k,handleMouseDown:j,handleWheel:R,handleDoubleClick:L,handleStartHandleMouseDown:z,handleEndHandleMouseDown:W,handleSelectionBodyMouseDown:I,setHoveredEvent:D,getEventsInRange:N,showHandles:q}=VY({events:e,selectedRange:r,onSelectionChange:t,enableZoom:u,zoomToSelection:y,visibleRange:_,onVisibleRangeChange:g}),K=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${N().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return G.jsxs(Q.Stack,{sx:{width:"100%"},children:[h&&G.jsxs(Q.Stack,{spacing:1,sx:{mb:3},...w.header,children:[G.jsx(Q.Typography,{variant:"h5",...w.title,children:p}),G.jsx(Q.Typography,{variant:"body2",...w.instructions,children:K})]}),s&&G.jsx(Q.Stack,{direction:"row",...w.monthLabelsContainer,sx:{...w.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:l},(B,V)=>{const J=P+E/(l-1)*V,H=QY(E);return G.jsx(Q.Typography,{variant:"caption",...w.monthLabel,children:H(J)},V)})}),G.jsxs(Q.Box,{...w.timeline,sx:{...w.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[G.jsx(Q.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((B,V)=>{const J=k(B.timestamp);return G.jsx(Q.Box,{onMouseEnter:()=>D(B),onMouseLeave:()=>D(null),"aria-label":`Event: ${B.eventName} at ${a(B.timestamp)}`,...w.event,sx:{...w.event.sx,left:`${J}%`,transform:(M==null?void 0:M.timestamp)===B.timestamp?"scaleX(2)":"scaleX(1)"}},`${B.timestamp}-${V}`)})}),T.start&&T.end&&(!y||S)&&G.jsx(Q.Box,{...w.selection,onMouseDown:q&&!S?I:void 0,sx:{...w.selection.sx,left:`${k(T.start)}%`,width:`${k(T.end)-k(T.start)}%`,pointerEvents:q?"all":"none",zIndex:2,cursor:q&&!S?A==="body"?"grabbing":"grab":"default"},children:q&&!(S&&A===null)&&G.jsxs(G.Fragment,{children:[G.jsx(Q.Box,{...w.startHandle,onMouseDown:z,sx:{...w.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),G.jsx(Q.Box,{...w.endHandle,onMouseDown:W,sx:{...w.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),G.jsx(Q.Box,{ref:C,role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":h?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair",pointerEvents:"all",zIndex:1},onMouseDown:j,onWheel:R,onDoubleClick:L}),!h&&G.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:K}),M&&G.jsxs(Q.Box,{role:"tooltip","aria-live":"polite",...w.tooltip,sx:{...w.tooltip.sx,left:`${k(M.timestamp)}%`,transform:"translateX(-50%)"},children:[G.jsx(Q.Typography,{variant:"body2",...w.tooltipEventName,children:M.eventName}),G.jsx(Q.Typography,{variant:"caption",...w.tooltipDate,children:a(M.timestamp)})]})]})]})},nV="#8b5cf6",iV=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),aV=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=iV,primaryColor:i=nV})=>e.length===0?null:G.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[G.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),G.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>G.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[G.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),G.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=xs;exports.CAMPAIGN_NOT_APPLICABLE=bs;exports.CAMPAIGN_NO_LST=_s;exports.CATEGORY_LABELS=HY;exports.ChronoChart=PE;exports.ChronoPerspectiveChart=PE;exports.D3StackedAreaChart=kL;exports.DEFAULT_CHART_COLORS=pr;exports.DEFAULT_CHART_CONFIG=Qe;exports.DEFAULT_STACKED_AREA_COLORS=In;exports.DEFAULT_STACKED_AREA_CONFIG=Pt;exports.MEASURE_GRADIENT_COLORS=ys;exports.MODERNE_VULNERABILITY_COLORS=Wa;exports.MorphChart=hE;exports.ParliamentChart=QF;exports.STACKED_AREA_PALETTES=WY;exports.StackedAreaChart=GY;exports.TimelineChart=rV;exports.TimelineSelectedEvents=aV;exports.calculateDataSeries=sC;exports.calculateOptimalArcAngle=Zv;exports.calculateOptimalSeatSize=Jv;