victory 37.3.4 → 37.3.6
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/CHANGELOG.md +4 -0
- package/dist/victory.js +2 -2
- package/dist/victory.min.js +1 -1
- package/package.json +31 -28
package/dist/victory.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Victory=n(require("react")):t.Victory=n(t.React)}(self,(function(t){return function(){var n={3644:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),n=new Uint32Array(512),e=function(t){var n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()};function r(t,n,e,r){var i=t-e,o=n-r;return i*i+o*o}function i(t,n,e,r,i,o){var a=(r-n)*(i-t),s=(e-t)*(o-n);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function o(t,n,e,r,o,a){return(i(o,a,t,n,e,r)||i(t,n,e,r,o,a)||i(e,r,o,a,t,n))<0}function a(t,n,e,r,i,o){var a=e-t,s=r-n,l=i-t,c=o-n,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l),f=(c*u-s*h)*d,p=(a*h-l*u)*d;return f*f+p*p}function s(t,n,e,r){if(r-e<=20)for(var i=e+1;i<=r;i++){for(var o=t[i],a=n[o],c=i-1;c>=e&&n[t[c]]>a;)t[c+1]=t[c--];t[c+1]=o}else{var u=e+1,h=r;l(t,e+r>>1,u),n[t[e]]>n[t[r]]&&l(t,e,r),n[t[u]]>n[t[r]]&&l(t,u,r),n[t[e]]>n[t[u]]&&l(t,e,u);for(var d=t[u],f=n[d];;){do{u++}while(n[t[u]]<f);do{h--}while(n[t[h]]>f);if(h<u)break;l(t,u,h)}t[e+1]=t[h],t[h]=d,r-u+1>=h-e?(s(t,n,u,r),s(t,n,e,h-1)):(s(t,n,e,h-1),s(t,n,u,r))}}function l(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function c(t){return t[0]}function u(t){return t[1]}return e.from=function(t,n,r){void 0===n&&(n=c),void 0===r&&(r=u);for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;a++){var s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new e(o)},e.prototype.update=function(){for(var n=this,e=n.coords,i=n._hullPrev,l=n._hullNext,c=n._hullTri,u=n._hullHash,h=e.length>>1,d=1/0,f=1/0,p=-1/0,m=-1/0,y=0;y<h;y++){var g=e[2*y],x=e[2*y+1];g<d&&(d=g),x<f&&(f=x),g>p&&(p=g),x>m&&(m=x),this._ids[y]=y}for(var v,b,_,M=(d+p)/2,C=(f+m)/2,w=1/0,A=0;A<h;A++){var E=r(M,C,e[2*A],e[2*A+1]);E<w&&(v=A,w=E)}var k=e[2*v],S=e[2*v+1];w=1/0;for(var O=0;O<h;O++)if(O!==v){var D=r(k,S,e[2*O],e[2*O+1]);D<w&&D>0&&(b=O,w=D)}for(var P=e[2*b],L=e[2*b+1],T=1/0,j=0;j<h;j++)if(j!==v&&j!==b){var $=a(k,S,P,L,e[2*j],e[2*j+1]);$<T&&(_=j,T=$)}var N=e[2*_],z=e[2*_+1];if(T===1/0){for(var R=0;R<h;R++)this._dists[R]=e[2*R]-e[0]||e[2*R+1]-e[1];s(this._ids,this._dists,0,h-1);for(var I=new Uint32Array(h),F=0,B=0,W=-1/0;B<h;B++){var V=this._ids[B];this._dists[V]>W&&(I[F++]=V,W=this._dists[V])}return this.hull=I.subarray(0,F),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(o(k,S,P,L,N,z)){var U=b,q=P,H=L;b=_,P=N,L=z,_=U,N=q,z=H}var G=function(t,n,e,r,i,o){var a=e-t,s=r-n,l=i-t,c=o-n,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l);return{x:t+(c*u-s*h)*d,y:n+(a*h-l*u)*d}}(k,S,P,L,N,z);this._cx=G.x,this._cy=G.y;for(var K=0;K<h;K++)this._dists[K]=r(e[2*K],e[2*K+1],G.x,G.y);s(this._ids,this._dists,0,h-1),this._hullStart=v;var Y=3;l[v]=i[_]=b,l[b]=i[v]=_,l[_]=i[b]=v,c[v]=0,c[b]=1,c[_]=2,u.fill(-1),u[this._hashKey(k,S)]=v,u[this._hashKey(P,L)]=b,u[this._hashKey(N,z)]=_,this.trianglesLen=0,this._addTriangle(v,b,_,-1,-1,-1);for(var X=0,Z=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],tt=e[2*J],nt=e[2*J+1];if(!(X>0&&Math.abs(tt-Z)<=t&&Math.abs(nt-Q)<=t)&&(Z=tt,Q=nt,J!==v&&J!==b&&J!==_)){for(var et=0,rt=0,it=this._hashKey(tt,nt);rt<this._hashSize&&(-1===(et=u[(it+rt)%this._hashSize])||et===l[et]);rt++);for(var ot=et=i[et],at=void 0;at=l[ot],!o(tt,nt,e[2*ot],e[2*ot+1],e[2*at],e[2*at+1]);)if((ot=at)===et){ot=-1;break}if(-1!==ot){var st=this._addTriangle(ot,J,l[ot],-1,-1,c[ot]);c[J]=this._legalize(st+2),c[ot]=st,Y++;for(var lt=l[ot];at=l[lt],o(tt,nt,e[2*lt],e[2*lt+1],e[2*at],e[2*at+1]);)st=this._addTriangle(lt,J,at,c[J],-1,c[lt]),c[J]=this._legalize(st+2),l[lt]=lt,Y--,lt=at;if(ot===et)for(;o(tt,nt,e[2*(at=i[ot])],e[2*at+1],e[2*ot],e[2*ot+1]);)st=this._addTriangle(at,J,ot,-1,c[ot],c[at]),this._legalize(st+2),c[at]=st,l[ot]=ot,Y--,ot=at;this._hullStart=i[J]=ot,l[ot]=i[lt]=J,l[J]=lt,u[this._hashKey(tt,nt)]=J,u[this._hashKey(e[2*ot],e[2*ot+1])]=ot}}}this.hull=new Uint32Array(Y);for(var ct=0,ut=this._hullStart;ct<Y;ct++)this.hull[ct]=ut,ut=l[ut];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},e.prototype._hashKey=function(t,n){return Math.floor((e=t-this._cx,r=n-this._cy,i=e/(Math.abs(e)+Math.abs(r)),(r>0?3-i:1+i)/4*this._hashSize))%this._hashSize;var e,r,i},e.prototype._legalize=function(t){for(var e=this,r=e._triangles,i=e._halfedges,o=e.coords,a=0,s=0;;){var l=i[t],c=t-t%3;if(s=c+(t+2)%3,-1!==l){var u=l-l%3,h=c+(t+1)%3,d=u+(l+2)%3,f=r[s],p=r[t],m=r[h],y=r[d];if(b=o[2*f],_=o[2*f+1],M=o[2*p],C=o[2*p+1],w=o[2*m],A=o[2*m+1],E=o[2*y],k=o[2*y+1],S=void 0,O=void 0,D=void 0,P=void 0,L=void 0,T=void 0,j=void 0,$=void 0,(S=b-E)*((P=C-k)*($=(L=w-E)*L+(T=A-k)*T)-(j=(D=M-E)*D+P*P)*T)-(O=_-k)*(D*$-j*L)+(S*S+O*O)*(D*T-P*L)<0){r[t]=y,r[l]=f;var g=i[d];if(-1===g){var x=this._hullStart;do{if(this._hullTri[x]===d){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,g),this._link(l,i[s]),this._link(s,d);var v=u+(l+1)%3;a<n.length&&(n[a++]=v)}else{if(0===a)break;t=n[--a]}}else{if(0===a)break;t=n[--a]}}var b,_,M,C,w,A,E,k,S,O,D,P,L,T,j,$;return s},e.prototype._link=function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)},e.prototype._addTriangle=function(t,n,e,r,i,o){var a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=n,this._triangles[a+2]=e,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a},e}()},6898:function(t,n,e){"use strict";n.Z=void 0;var r,i=(r=e(3644))&&r.__esModule?r:{default:r};function o(t){return t[0]}function a(t){return t[1]}function s(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}var l=function(){function t(t){var n=new i.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=n.coords,this._init(n)}var n=t.prototype;return n._init=function(t){var n=t,e=this.points;if(n.hull&&n.hull.length>2&&function(t){for(var n=t.triangles,e=t.coords,r=0;r<n.length;r+=3){var i=2*n[r],o=2*n[r+1],a=2*n[r+2];if((e[a]-e[i])*(e[o+1]-e[i+1])-(e[o]-e[i])*(e[a+1]-e[i+1])>1e-10)return!1}return!0}(n)){this.collinear=Int32Array.from({length:e.length/2},(function(t,n){return n})).sort((function(t,n){return e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]}));for(var r=this.collinear[0],o=this.collinear[this.collinear.length-1],a=[e[2*r],e[2*r+1],e[2*o],e[2*o+1]],l=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),c=0,u=e.length/2;c<u;++c){var h=s(e[2*c],e[2*c+1],l);e[2*c]=h[0],e[2*c+1]=h[1]}t=new i.default(e)}for(var d=this.halfedges=t.halfedges,f=this.hull=t.hull,p=this.triangles=t.triangles,m=this.inedges.fill(-1),y=this._hullIndex.fill(-1),g=0,x=d.length;g<x;++g){var v=p[g%3==2?g-2:g+1];-1!==d[g]&&-1!==m[v]||(m[v]=g)}for(var b=0,_=f.length;b<_;++b)y[f[b]]=b;f.length<=2&&f.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=f[0],this.triangles[1]=f[1],this.triangles[2]=f[1],m[f[0]]=1,2===f.length&&(m[f[1]]=0))},n.neighbors=function(t){var n=[],e=this.inedges,r=this.hull,i=this._hullIndex,o=this.halfedges,a=this.triangles,s=e[t];if(-1===s)return n;var l=s,c=-1;do{if(c=a[l],n.push(c),a[l=l%3==2?l-2:l+1]!==t)break;if(-1===(l=o[l])){var u=r[(i[t]+1)%r.length];u!==c&&n.push(u);break}}while(l!==s);return n},n.find=function(t,n,e){if(void 0===e&&(e=0),(t=+t)!=t||(n=+n)!=n)return-1;for(var r,i=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==i;)e=r;return r},n._step=function(t,n,e){var r=this.inedges,i=this.points;if(-1===r[t]||!i.length)return(t+1)%(i.length>>1);var o=t,a=Math.pow(n-i[2*t],2)+Math.pow(e-i[2*t+1],2),s=this.neighbors(t),l=Array.isArray(s),c=0;for(s=l?s:s[Symbol.iterator]();;){var u;if(l){if(c>=s.length)break;u=s[c++]}else{if((c=s.next()).done)break;u=c.value}var h=u,d=Math.pow(n-i[2*h],2)+Math.pow(e-i[2*h+1],2);d<a&&(a=d,o=h)}return o},t}();n.Z=l,l.from=function(t,n,e,r){return void 0===n&&(n=o),void 0===e&&(e=a),new l(function(t,n,e,r){for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;++a){var s=t[a];o[2*a]=n.call(r,s,a,t),o[2*a+1]=e.call(r,s,a,t)}return o}(t,n,e,r))}},2516:function(t,n){function e(t,n){var e=[],r=[];return null==n&&(n=function(t,n){return e[0]===n?"[Circular ~]":"[Circular ~."+r.slice(0,e.indexOf(n)).join(".")+"]"}),function(i,o){if(e.length>0){var a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?r.splice(a,1/0,i):r.push(i),~e.indexOf(o)&&(o=n.call(this,i,o))}else e.push(o);return null==t?o:t.call(this,i,o)}}(t.exports=function(t,n,r,i){return JSON.stringify(t,e(n,i),r)}).getSerialize=e},503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),s=e(8541);function l(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},3273:function(t,n,e){var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),s=e(8541);function l(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},6649:function(t){t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];n(r,a,e(a),t)}return r}},5510:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9955:function(t){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},1634:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:function(t,n,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},4508:function(t){t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];n(r,a,e(a),t)}return r}},8347:function(t,n,e){var r=e(5525);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},7451:function(t){t.exports=function(t,n,e){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,e)}),n)}},6457:function(t,n,e){var r=e(9559),i=e(3608);t.exports=function t(n,e,o,a,s){var l=-1,c=n.length;for(o||(o=i),s||(s=[]);++l<c;){var u=n[l];e>0&&o(u)?e>1?t(u,e-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},320:function(t,n,e){var r=e(4710)();t.exports=r},2446:function(t,n,e){var r=e(320),i=e(7747);t.exports=function(t,n){return t&&r(t,n,i)}},4432:function(t,n,e){var r=e(9026),i=e(3110);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},563:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:function(t){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),i=e(3474);t.exports=function t(n,e,o,a,s){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,s))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),s=e(9667),l=e(163),c=e(4801),u=e(4289),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,m,y,g){var x=l(t),v=l(n),b=x?d:s(t),_=v?d:s(n),M=(b=b==h?f:b)==f,C=(_=_==h?f:_)==f,w=b==_;if(w&&c(t)){if(!c(n))return!1;x=!0,M=!1}if(w&&!M)return g||(g=new r),x||u(t)?i(t,n,e,m,y,g):o(t,n,b,e,m,y,g);if(!(1&e)){var A=M&&p.call(t,"__wrapped__"),E=C&&p.call(n,"__wrapped__");if(A||E){var k=A?t.value():t,S=E?n.value():n;return g||(g=new r),y(k,S,e,m,g)}}return!!w&&(g||(g=new r),a(t,n,e,m,y,g))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=e[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=e[a])[0],h=t[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in t))return!1}else{var f=new r;if(o)var p=o(h,d,u,t,n,f);if(!(void 0===p?i(d,h,3,o,f):p))return!1}}return!0}},2229:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),s=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},758:function(t,n,e){var r=e(9548),i=e(597),o=e(6878);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),i=e(9201),o=e(5066),a=e(726),s=e(5385),l=e(6878),c=e(3110);t.exports=function(t,n){return a(t)&&s(n)?l(c(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),i=e(4432),o=e(3472),a=e(383),s=e(9521),l=e(9110),c=e(9409),u=e(5346),h=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return h(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[u];var d=-1;n=r(n,l(o));var f=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++d,value:t}}));return s(f,(function(t,n){return c(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),i=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6371:function(t,n,e){var r=e(4432),i=e(6539),o=e(9026);t.exports=function(t,n,e){for(var a=-1,s=n.length,l={};++a<s;){var c=n[a],u=r(t,c);e(u,c)&&i(l,o(c,t),u)}return l}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},7805:function(t){var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=e(n((r-t)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=t,t+=i;return l}},6317:function(t,n,e){var r=e(5346),i=e(4280),o=e(201);t.exports=function(t,n){return o(i(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),i=e(9026),o=e(9099),a=e(7709),s=e(3110);t.exports=function(t,n,e,l){if(!a(t))return t;for(var c=-1,u=(n=i(n,t)).length,h=u-1,d=t;null!=d&&++c<u;){var f=s(n[c]),p=e;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(c!=h){var m=d[f];void 0===(p=l?l(m,f,d):void 0)&&(p=a(m)?m:o(n[c+1])?[]:{})}r(d,f,p),d=d[f]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,i=t.length,o=0,a=[];++e<i;){var s=t[e],l=n?n(s):s;if(!e||!r(l,c)){var c=l;a[o++]=0===s?0:s}}return a}},4738:function(t,n,e){var r=e(8644);t.exports=function(t,n){return r(n,(function(n){return[n,t[n]]}))}},6316:function(t,n,e){var r=e(2596),i=e(8644),o=e(163),a=e(1995),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return l?l.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},1367:function(t,n,e){var r=e(4120),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(9914),s=e(6602),l=e(6226);t.exports=function(t,n,e){var c=-1,u=i,h=t.length,d=!0,f=[],p=f;if(e)d=!1,u=o;else if(h>=200){var m=n?null:s(t);if(m)return l(m);d=!1,u=a,p=new r}else p=n?[]:f;t:for(;++c<h;){var y=t[c],g=n?n(y):y;if(y=e||0!==y?y:0,d&&g==g){for(var x=p.length;x--;)if(p[x]===g)continue t;n&&p.push(g),f.push(y)}else u(p,g,e)||(p!==f&&p.push(g),f.push(y))}return f}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},674:function(t){t.exports=function(t){return t}},9026:function(t,n,e){var r=e(163),i=e(726),o=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==n,l=null===n,c=n==n,u=r(n);if(!l&&!u&&!a&&t>n||a&&s&&c&&!l&&!u||i&&s&&c||!e&&c||!o)return 1;if(!i&&!a&&!u&&t<n||u&&e&&o&&!i&&!a||l&&e&&o||!s&&o||!c)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,a=n.criteria,s=o.length,l=e.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==e[i]?-1:1)}return t.index-n.index}},9021:function(t,n,e){var r=e(4132),i=e(8347);t.exports=function(t,n,e,o){var a=!e;e||(e={});for(var s=-1,l=n.length;++s<l;){var c=n[s],u=o?o(e[c],t[c],c,e,t):void 0;void 0===u&&(u=t[c]),a?i(e,c,u):r(e,c,u)}return e}},5659:function(t,n,e){var r=e(6649),i=e(4508),o=e(3472),a=e(163);t.exports=function(t,n){return function(e,s){var l=a(e)?r:i,c=n?n():{};return l(e,t,o(s,2),c)}}},6092:function(t,n,e){var r=e(6317),i=e(8286);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,a=o>1?e[o-1]:void 0,s=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(e[0],e[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++r<o;){var l=e[r];l&&t(n,l,r,a)}return n}))}},4710:function(t){t.exports=function(t){return function(n,e,r){for(var i=-1,o=Object(n),a=r(n),s=a.length;s--;){var l=a[t?s:++i];if(!1===e(o[l],l,o))break}return n}}},2507:function(t,n,e){var r=e(7805),i=e(8286),o=e(9139);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&i(n,e,a)&&(e=a=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),a=void 0===a?n<e?1:-1:o(a),r(n,e,a,t)}}},6602:function(t){t.exports=function(){}},5976:function(t,n,e){var r=e(4738),i=e(9667),o=e(2900),a=e(3757);t.exports=function(t){return function(n){var e=i(n);return"[object Map]"==e?o(n):"[object Set]"==e?a(n):r(n,t(n))}}},5525:function(t,n,e){var r=e(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,n,e){var r=e(3273),i=e(1634),o=e(9914);t.exports=function(t,n,e,a,s,l){var c=1&e,u=t.length,h=n.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(t),f=l.get(n);if(d&&f)return d==n&&f==t;var p=-1,m=!0,y=2&e?new r:void 0;for(l.set(t,n),l.set(n,t);++p<u;){var g=t[p],x=n[p];if(a)var v=c?a(x,g,p,n,t,l):a(g,x,p,t,n,l);if(void 0!==v){if(v)continue;m=!1;break}if(y){if(!i(n,(function(t,n){if(!o(y,n)&&(g===t||s(g,t,e,a,l)))return y.push(n)}))){m=!1;break}}else if(g!==x&&!s(g,x,e,a,l)){m=!1;break}}return l.delete(t),l.delete(n),m}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,s){var l=1&e,c=r(t),u=c.length;if(u!=r(n).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in n:i.call(n,d)))return!1}var f=s.get(t),p=s.get(n);if(f&&p)return f==n&&p==t;var m=!0;s.set(t,n),s.set(n,t);for(var y=l;++h<u;){var g=t[d=c[h]],x=n[d];if(o)var v=l?o(x,g,d,n,t,s):o(g,x,d,t,n,s);if(!(void 0===v?g===x||a(g,x,e,o,s):v)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var b=t.constructor,_=n.constructor;b==_||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(t),s.delete(n),m}},5557:function(t,n,e){var r=e(2645),i=e(4280),o=e(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},597:function(t,n,e){var r=e(5385),i=e(7747);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},3743:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},9817:function(t,n,e){var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:function(t,n,e){var r=e(9026),i=e(5075),o=e(163),a=e(9099),s=e(8454),l=e(3110);t.exports=function(t,n,e){for(var c=-1,u=(n=r(n,t)).length,h=!1;++c<u;){var d=l(n[c]);if(!(h=null!=t&&e(t,d)))break;t=t[d]}return h||++c!=u?h:!!(u=null==t?0:t.length)&&s(u)&&a(d,u)&&(o(t)||i(t))}},3608:function(t,n,e){var r=e(2596),i=e(5075),o=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:function(t){t.exports=function(){return!1}},726:function(t,n,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,n,e){var r=e(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,n,e){var r=e(3162),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},4859:function(t,n,e){var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:function(t,n,e){var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,n,e){var r=e(3162);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},2900:function(t){t.exports=function(){return[]}},6878:function(t){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},2453:function(t){t.exports=function(t){return t}},2348:function(t,n,e){t=e.nmd(t);var r=e(2117),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},5125:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,s=i(o.length-n,0),l=Array(s);++a<s;)l[a]=o[n+a];a=-1;for(var c=Array(n+1);++a<n;)c[a]=o[a];return c[n]=e(l),r(t,this,c)}}},2373:function(t,n,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},3757:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},3110:function(t,n,e){var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4120:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},156:function(t,n,e){var r=e(4132),i=e(9021),o=e(6092),a=e(981),s=e(5782),l=e(7747),c=Object.prototype.hasOwnProperty,u=o((function(t,n){if(s(n)||a(n))i(n,l(n),t);else for(var e in n)c.call(n,e)&&r(t,e,n[e])}));t.exports=u},5034:function(t,n,e){var r=e(7709),i=e(6987),o=e(5812),a=Math.max,s=Math.min;t.exports=function(t,n,e){var l,c,u,h,d,f,p=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(n){var e=l,r=c;return l=c=void 0,p=n,h=t.apply(r,e)}function v(t){return p=t,d=setTimeout(_,n),m?x(t):h}function b(t){var e=t-f;return void 0===f||e>=n||e<0||y&&t-p>=u}function _(){var t=i();if(b(t))return M(t);d=setTimeout(_,function(t){var e=n-(t-f);return y?s(e,u-(t-p)):e}(t))}function M(t){return d=void 0,g&&l?x(t):(l=c=void 0,h)}function C(){var t=i(),e=b(t);if(l=arguments,c=this,f=t,e){if(void 0===d)return v(f);if(y)return clearTimeout(d),d=setTimeout(_,n),x(f)}return void 0===d&&(d=setTimeout(_,n)),h}return n=o(n)||0,r(e)&&(m=!!e.leading,u=(y="maxWait"in e)?a(o(e.maxWait)||0,n):u,g="trailing"in e?!!e.trailing:g),C.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=c=d=void 0},C.flush=function(){return void 0===d?h:M(i())},C}},1893:function(t,n,e){var r=e(6317),i=e(788),o=e(8286),a=e(8855),s=Object.prototype,l=s.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&o(n[0],n[1],c)&&(r=1);++e<r;)for(var u=n[e],h=a(u),d=-1,f=h.length;++d<f;){var p=h[d],m=t[p];(void 0===m||i(m,s[p])&&!l.call(t,p))&&(t[p]=u[p])}return t}));t.exports=c},9324:function(t,n,e){var r=e(7451),i=e(6317),o=e(5812),a=i((function(t,n,e){return r(t,o(n)||0,e)}));t.exports=a},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},3105:function(t,n,e){var r=e(2446),i=e(674);t.exports=function(t,n){return t&&r(t,i(n))}},7314:function(t){t.exports=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},9056:function(t,n,e){var r=e(8347),i=e(5659),o=Object.prototype.hasOwnProperty,a=i((function(t,n,e){o.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:function(t,n,e){var r=e(6776),i=e(3096);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var n=Array.isArray;t.exports=n},981:function(t,n,e){var r=e(9642),i=e(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),i=e(9110),o=e(2348),a=o&&o.isDate,s=a?i(a):r;t.exports=s},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),s=e(981),l=e(4801),c=e(5782),u=e(4289),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(h.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),i=e(7709);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,n,e){var r=e(563),i=e(9817),o=e(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&l.call(e)==u}},5395:function(t,n,e){var r=e(2229),i=e(9110),o=e(2348),a=o&&o.isRegExp,s=a?i(a):r;t.exports=s},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1594:function(t,n,e){var r=e(503);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},6987:function(t,n,e){var r=e(2373);t.exports=function(){return r.Date.now()}},1616:function(t,n,e){var r=e(3472),i=e(6051),o=e(4912);t.exports=function(t,n){return o(t,i(r(n)))}},4143:function(t,n,e){var r=e(8245),i=e(163);t.exports=function(t,n,e,o){return null==t?[]:(i(n)||(n=null==n?[]:[n]),i(e=o?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),i=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},4912:function(t,n,e){var r=e(8644),i=e(3472),o=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),i=e(3301),o=e(726),a=e(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},8825:function(t,n,e){var r=e(2507)();t.exports=r},2829:function(t,n,e){var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},8163:function(t,n,e){var r=e(5034),i=e(7709);t.exports=function(t,n,e){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:o,maxWait:n,trailing:a})}},9139:function(t,n,e){var r=e(5812);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5812:function(t,n,e){var r=e(1367),i=e(7709),o=e(1995),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||l.test(t)?c(t.slice(2),e?2:8):a.test(t)?NaN:+t}},4542:function(t,n,e){var r=e(5976)(e(7747));t.exports=r},7010:function(t,n,e){var r=e(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,n,e){var r=e(946);t.exports=function(t){return t&&t.length?r(t):[]}},8961:function(t,n,e){var r=e(3472),i=e(946);t.exports=function(t,n){return t&&t.length?i(t,r(n,2)):[]}},660:function(t,n,e){var r=e(7010),i=0;t.exports=function(t){var n=++i;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(l=s;0!=l--;)if(!o(t[l],a[l]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(u=t.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=t.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(u=t.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(l=s;0!=l--;)if(t[l]!==a[l])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((s=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(n&&t instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!t.$$typeof)&&!o(t[c[l]],a[c[l]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return o(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(n){"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i={};return function(){"use strict";r.r(i),r.d(i,{Arc:function(){return Ky},Area:function(){return Yc},Axis:function(){return b},Background:function(){return xy},Bar:function(){return Up},Border:function(){return Xp},Box:function(){return Xp},BrushHelpers:function(){return Cm},Candle:function(){return Wm},CanvasBar:function(){return iy},CanvasCurve:function(){return ay},CanvasGroup:function(){return oy},CanvasPoint:function(){return yy},Circle:function(){return hu},ClipPath:function(){return cu},Collection:function(){return n},CursorHelpers:function(){return Zg},Curve:function(){return av},Data:function(){return s},DefaultTransitions:function(){return y},Domain:function(){return l},ErrorBar:function(){return lx},Events:function(){return v},Flyout:function(){return Fg},Helpers:function(){return t},Hooks:function(){return w},Immutable:function(){return a},LabelHelpers:function(){return c},Line:function(){return Wf},LineHelpers:function(){return h},LineSegment:function(){return Uf},Log:function(){return f},Path:function(){return Ic},Point:function(){return Mg},PointPathHelpers:function(){return M},Portal:function(){return Jc},PortalContext:function(){return nu},PortalOutlet:function(){return iu},PortalProvider:function(){return ru},RawZoomHelpers:function(){return Og},Rect:function(){return fu},Scale:function(){return o},Selection:function(){return _},SelectionHelpers:function(){return jg},Slice:function(){return xv},Style:function(){return p},TSpan:function(){return vu},Text:function(){return xu},TextSize:function(){return m},Timer:function(){return of},TimerContext:function(){return sf},Transitions:function(){return x},UserProps:function(){return d},VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS:function(){return wm},VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS:function(){return Qg},VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS:function(){return $g},VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS:function(){return Gg},VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS:function(){return Pg},VictoryAccessibleGroup:function(){return vg},VictoryAnimation:function(){return cf},VictoryArea:function(){return Ff},VictoryAxis:function(){return Ep},VictoryBar:function(){return Kp},VictoryBoxPlot:function(){return dm},VictoryBrushContainer:function(){return Em},VictoryBrushLine:function(){return Fm},VictoryCandlestick:function(){return ny},VictoryChart:function(){return xg},VictoryClipContainer:function(){return pu},VictoryContainer:function(){return lu},VictoryCursorContainer:function(){return tx},VictoryErrorBar:function(){return xx},VictoryGroup:function(){return Sx},VictoryHistogram:function(){return Bx},VictoryLabel:function(){return Zh},VictoryLegend:function(){return iv},VictoryLine:function(){return cv},VictoryPie:function(){return Mv},VictoryPolarAxis:function(){return cg},VictoryPortal:function(){return gu},VictoryScatter:function(){return kv},VictorySelectionContainer:function(){return zg},VictorySharedEvents:function(){return qy},VictoryStack:function(){return zv},VictoryTheme:function(){return Mh},VictoryTooltip:function(){return Wg},VictoryTransition:function(){return vf},VictoryVoronoi:function(){return Sb},VictoryVoronoiContainer:function(){return Xg},VictoryZoomContainer:function(){return Tg},Voronoi:function(){return Iv},VoronoiHelpers:function(){return Hg},Whisker:function(){return Qp},Wrapper:function(){return C},ZoomHelpers:function(){return Dg},addEvents:function(){return zf},createContainer:function(){return ix},getBarPath:function(){return Bp},getBarPosition:function(){return kp},getBarWidth:function(){return Sp},getCornerRadius:function(){return Op},getCustomBarPath:function(){return Np},getHorizontalBarPath:function(){return Ip},getPolarBarPath:function(){return Wp},getStyle:function(){return Dp},getVerticalBarPath:function(){return Rp},getVerticalPolarBarPath:function(){return Fp},makeCreateContainerFunction:function(){return rx},mergeRefs:function(){return tu},useCanvasContext:function(){return ry},usePortalContext:function(){return eu},useVictoryBrushContainer:function(){return Am},useVictoryContainer:function(){return su},useVictoryCursorContainer:function(){return Jg},useVictorySelectionContainer:function(){return Ng},useVictoryVoronoiContainer:function(){return Yg},useVictoryZoomContainer:function(){return Lg}});var t={};r.r(t),r.d(t,{createAccessor:function(){return ut},degreesToRadians:function(){return rt},evaluateProp:function(){return nt},evaluateStyle:function(){return et},getCurrentAxis:function(){return dt},getDefaultStyles:function(){return J},getPadding:function(){return Z},getPoint:function(){return Y},getPolarOrigin:function(){return at},getRadius:function(){return ot},getRange:function(){return st},getStyles:function(){return tt},invert:function(){return G},isFunction:function(){return ct},isHorizontal:function(){return yt},isNil:function(){return lt},isTooltip:function(){return Q},mapValues:function(){return ft},modifyProps:function(){return ht},omit:function(){return K},radiansToDegrees:function(){return it},range:function(){return pt},reduceChildren:function(){return mt},scalePoint:function(){return X}});var n={};r.r(n),r.d(n,{containsDates:function(){return vt},containsNumbers:function(){return bt},containsOnlyStrings:function(){return _t},containsStrings:function(){return xt},difference:function(){return Mt},getMaxValue:function(){return At},getMinValue:function(){return Et},isArrayOfArrays:function(){return Ct},removeUndefined:function(){return wt}});var e={};r.r(e),r.d(e,{scaleBand:function(){return $t},scaleDiverging:function(){return Io},scaleDivergingLog:function(){return Fo},scaleDivergingPow:function(){return Wo},scaleDivergingSqrt:function(){return Vo},scaleDivergingSymlog:function(){return Bo},scaleIdentity:function(){return _e},scaleImplicit:function(){return Tt},scaleLinear:function(){return be},scaleLog:function(){return De},scaleOrdinal:function(){return jt},scalePoint:function(){return zt},scalePow:function(){return Ie},scaleQuantile:function(){return Ze},scaleQuantize:function(){return Qe},scaleRadial:function(){return Ve},scaleSequential:function(){return Po},scaleSequentialLog:function(){return Lo},scaleSequentialPow:function(){return jo},scaleSequentialQuantile:function(){return No},scaleSequentialSqrt:function(){return $o},scaleSequentialSymlog:function(){return To},scaleSqrt:function(){return Fe},scaleSymlog:function(){return je},scaleThreshold:function(){return Je},scaleTime:function(){return ko},scaleUtc:function(){return So},tickFormat:function(){return xe}});var o={};r.r(o),r.d(o,{getBaseScale:function(){return Yo},getDefaultScale:function(){return Xo},getScaleFromName:function(){return Ko},getScaleFromProps:function(){return Zo},getScaleType:function(){return Qo},getType:function(){return ta},validScale:function(){return qo}});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:function(){return na},IMMUTABLE_LIST:function(){return ra},IMMUTABLE_MAP:function(){return ia},IMMUTABLE_RECORD:function(){return ea},isImmutable:function(){return sa},isIterable:function(){return oa},isList:function(){return la},isMap:function(){return ca},isRecord:function(){return aa},shallowToJS:function(){return ua}});var s={};r.r(s),r.d(s,{createStringMap:function(){return ya},downsample:function(){return ga},formatData:function(){return xa},formatDataFromDomain:function(){return ma},generateData:function(){return va},getCategories:function(){return ba},getData:function(){return _a},getStringsFromAxes:function(){return Ma},getStringsFromCategories:function(){return Ca},getStringsFromData:function(){return wa},isDataComponent:function(){return Aa}});var l={};r.r(l),r.d(l,{createDomainFunction:function(){return Pa},formatDomain:function(){return La},getDomain:function(){return Ta},getDomainFromCategories:function(){return ja},getDomainFromData:function(){return $a},getDomainFromMinMax:function(){return Na},getDomainFromProps:function(){return za},getDomainWithZero:function(){return Ra},getMaxFromProps:function(){return Ia},getMinFromProps:function(){return Fa},getSymmetricDomain:function(){return Ba},isDomainComponent:function(){return Wa}});var c={};r.r(c),r.d(c,{getDegrees:function(){return Ka},getPolarAngle:function(){return Ga},getPolarTextAnchor:function(){return qa},getPolarVerticalAnchor:function(){return Ha},getProps:function(){return Ya},getText:function(){return Ua}});var u={};r.r(u),r.d(u,{arc:function(){return Rs},area:function(){return hs},areaRadial:function(){return gs},curveBasis:function(){return Pl},curveBasisClosed:function(){return Tl},curveBasisOpen:function(){return $l},curveBumpX:function(){return qs},curveBumpY:function(){return Hs},curveBundle:function(){return zl},curveCardinal:function(){return Fl},curveCardinalClosed:function(){return Wl},curveCardinalOpen:function(){return Ul},curveCatmullRom:function(){return Gl},curveCatmullRomClosed:function(){return Yl},curveCatmullRomOpen:function(){return Zl},curveLinear:function(){return ss},curveLinearClosed:function(){return Jl},curveMonotoneX:function(){return sc},curveMonotoneY:function(){return lc},curveNatural:function(){return hc},curveStep:function(){return fc},curveStepAfter:function(){return mc},curveStepBefore:function(){return pc},line:function(){return us},lineRadial:function(){return ys},link:function(){return Xs},linkHorizontal:function(){return Zs},linkRadial:function(){return Js},linkVertical:function(){return Qs},pie:function(){return Bs},pointRadial:function(){return Ws},radialArea:function(){return gs},radialLine:function(){return ys},stack:function(){return bc},stackOffsetDiverging:function(){return Mc},stackOffsetExpand:function(){return _c},stackOffsetNone:function(){return yc},stackOffsetSilhouette:function(){return Cc},stackOffsetWiggle:function(){return wc},stackOrderAppearance:function(){return Ac},stackOrderAscending:function(){return kc},stackOrderDescending:function(){return Oc},stackOrderInsideOut:function(){return Dc},stackOrderNone:function(){return gc},stackOrderReverse:function(){return Pc},symbol:function(){return kl},symbolAsterisk:function(){return nl},symbolCircle:function(){return el},symbolCross:function(){return rl},symbolDiamond:function(){return al},symbolDiamond2:function(){return sl},symbolPlus:function(){return ll},symbolSquare:function(){return cl},symbolSquare2:function(){return ul},symbolStar:function(){return pl},symbolTriangle:function(){return yl},symbolTriangle2:function(){return xl},symbolWye:function(){return Cl},symbolX:function(){return wl},symbols:function(){return Al},symbolsFill:function(){return Al},symbolsStroke:function(){return El}});var h={};r.r(h),r.d(h,{getInterpolationFunction:function(){return Nc},getLineFunction:function(){return zc}});var d={};r.r(d),r.d(d,{assert:function(){return Bc},getSafeUserProps:function(){return Wc},withSafeUserProps:function(){return Vc}});var f={};r.r(f),r.d(f,{warn:function(){return mu}});var p={};r.r(p),r.d(p,{getColorScale:function(){return wh},toTransformString:function(){return Ch}});var m={};r.r(m),r.d(m,{_approximateTextSizeInternal:function(){return Ih},approximateTextSize:function(){return Fh},convertLengthToPixels:function(){return Th}});var y={};r.r(y),r.d(y,{continuousPolarTransitions:function(){return Jh},continuousTransitions:function(){return Qh},discreteTransitions:function(){return td}});var g={};r.r(g),r.d(g,{easeBack:function(){return Ld},easeBackIn:function(){return Dd},easeBackInOut:function(){return Ld},easeBackOut:function(){return Pd},easeBounce:function(){return kd},easeBounceIn:function(){return Ed},easeBounceInOut:function(){return Sd},easeBounceOut:function(){return kd},easeCircle:function(){return wd},easeCircleIn:function(){return Md},easeCircleInOut:function(){return wd},easeCircleOut:function(){return Cd},easeCubic:function(){return cd},easeCubicIn:function(){return sd},easeCubicInOut:function(){return cd},easeCubicOut:function(){return ld},easeElastic:function(){return $d},easeElasticIn:function(){return jd},easeElasticInOut:function(){return Nd},easeElasticOut:function(){return $d},easeExp:function(){return _d},easeExpIn:function(){return vd},easeExpInOut:function(){return _d},easeExpOut:function(){return bd},easeLinear:function(){return rd},easePoly:function(){return dd},easePolyIn:function(){return ud},easePolyInOut:function(){return dd},easePolyOut:function(){return hd},easeQuad:function(){return ad},easeQuadIn:function(){return id},easeQuadInOut:function(){return ad},easeQuadOut:function(){return od},easeSin:function(){return gd},easeSinIn:function(){return md},easeSinInOut:function(){return gd},easeSinOut:function(){return yd}});var x={};r.r(x),r.d(x,{getInitialTransitionState:function(){return yf},getTransitionPropsFactory:function(){return gf}});var v={};r.r(v),r.d(v,{emulateReactEvent:function(){return jf},getComponentEvents:function(){return Df},getEventState:function(){return Ef},getEvents:function(){return Cf},getExternalMutation:function(){return Of},getExternalMutations:function(){return Sf},getExternalMutationsWithChildren:function(){return kf},getGlobalEventNameFromKey:function(){return Pf},getGlobalEvents:function(){return Lf},getPartialEvents:function(){return Af},getScopedEvents:function(){return wf},omitGlobalEvents:function(){return Tf}});var b={};r.r(b),r.d(b,{findAxisComponents:function(){return Yf},getAxis:function(){return Kf},getAxisComponent:function(){return Xf},getAxisComponentsWithParent:function(){return Zf},getAxisValue:function(){return lp},getDomain:function(){return sp},getOrigin:function(){return Qf},getOriginSign:function(){return Jf},getTickFormat:function(){return rp},getTicks:function(){return op},isVertical:function(){return tp},modifyProps:function(){return cp},stringTicks:function(){return np}});var _={};r.r(_),r.d(_,{getBounds:function(){return vm},getDataCoordinates:function(){return xm},getDomainCoordinates:function(){return gm},getParentSVG:function(){return mm},getSVGEventCoordinates:function(){return ym}});var M={};r.r(M),r.d(M,{circle:function(){return sy},cross:function(){return fy},diamond:function(){return cy},minus:function(){return py},plus:function(){return dy},square:function(){return ly},star:function(){return my},triangleDown:function(){return uy},triangleUp:function(){return hy}});var C={};r.r(C),r.d(C,{addBinsToParentPropsIfHistogram:function(){return Cy},getAllEvents:function(){return Py},getCategories:function(){return Iy},getCategoryAndAxisStringsFromChildren:function(){return zy},getChildStyle:function(){return jy},getColor:function(){return Ly},getData:function(){return Ay},getDataFromChildren:function(){return wy},getDefaultDomainPadding:function(){return ky},getDomain:function(){return Oy},getDomainFromChildren:function(){return Sy},getScale:function(){return Dy},getStringsFromChildren:function(){return Ry},getStringsFromChildrenCategories:function(){return $y},getStringsFromData:function(){return Ny},getStyle:function(){return Ty},getWidth:function(){return Ey}});var w={};r.r(w),r.d(w,{useAnimationState:function(){return by},usePreviousProps:function(){return Fy}});var A=r(9787),E=r.n(A),k=r(4155),S=r.n(k),O=r(8254),D=r.n(O),P=r(3849),L=r.n(P),T=r(8999),j=r.n(T),$=r(1616),N=r.n($),z=r(4143),R=r.n(z),I=r(8532),F=r.n(I),B=r(9602),W=r.n(B),V=r(1893),U=r.n(V),q=r(9082),H=r.n(q);function G(t){return Object.entries(t).reduce(((t,n)=>(t[n[1]]=n[0],t)),{})}function K(t,n){void 0===n&&(n=[]);const e={};for(const r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Y(t){const{_x:n,_x1:e,_x0:r,_voronoiX:i,_y:o,_y1:a,_y0:s,_voronoiY:l}=t,c={x:i??e??n,x0:r??n,y:l??a??o,y0:s??o};return U()({},c,t)}function X(t,n){const{scale:e,polar:r,horizontal:i}=t,o=Y(n),a=t.origin||{x:0,y:0},s=i?e.y(o.y):e.x(o.x),l=i?e.y(o.y0):e.x(o.x0),c=i?e.x(o.x):e.y(o.y),u=i?e.x(o.x0):e.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function Z(t){const n="number"==typeof t?t:0,e="object"==typeof t?t:{};return{top:e.top||n,bottom:e.bottom||n,left:e.left||n,right:e.right||n}}function Q(t){return"tooltip"===(t&&t.type&&t.type.role)}function J(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!Q(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=U()({},o,i.labels);return U()({},{labels:a},i)}function tt(t,n){const e="100%",r="100%";if(!t)return U()({parent:{height:r,width:e}},n);const{data:i,labels:o,parent:a}=t,s=n&&n.parent||{},l=n&&n.labels||{},c=n&&n.data||{};return{parent:U()({},a,s,{width:e,height:r}),labels:U()({},o,l),data:U()({},i,c)}}function nt(t,n){return ct(t)?t(n):t}function et(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>ct(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=nt(t[r],n),e)),{}):t}function rt(t){return"number"==typeof t?t*(Math.PI/180):t}function it(t){return"number"==typeof t?t/(Math.PI/180):t}function ot(t){const{width:n,height:e,padding:r}=t,{left:i,right:o,top:a,bottom:s}=r;return Math.min(n-i-o,e-a-s)/2}function at(t){const{width:n,height:e}=t,{top:r,bottom:i,left:o,right:a}=Z(t.padding),s=Math.min(n-o-a,e-r-i)/2,l=n/2+o-a,c=e/2+r-i;return{x:l+s>n?s+o-a:l,y:c+s>e?s+r-i:c}}function st(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?"x"===(e={axis:n,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle,height:t.height,width:t.width,padding:Z(t.padding)}).axis?[rt(e.startAngle||0),rt(e.endAngle||360)]:[e.innerRadius||0,ot({height:e.height,width:e.width,padding:e.padding})]:function(t){return"x"!==t.axis?[t.height-t.padding.bottom,t.padding.top]:[t.padding.left,t.width-t.padding.right]}({axis:n,height:t.height,width:t.width,padding:Z(t.padding)});var e}function lt(t){return null==t}function ct(t){return"function"==typeof t}function ut(t){return ct(t)?t:null==t?t=>t:F()(t)}function ht(t,n,e){const r=K(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=yt(t),o=void 0===i?{}:{horizontal:i};return U()(o,t,r,n)}function dt(t,n){return n?"x"===t?"y":"x":t}function ft(t,n){if(t)return Object.keys(t).reduce(((e,r)=>(e[r]=n(t[r]),e)),{})}function pt(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=e||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),((t,n)=>r+n*s*l))}function mt(t,n,e,r,i){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===i&&(i=(t,n)=>t.concat(n));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,s,l)=>t.reduce(((t,r,c)=>{let u=t;const h=r.type&&r.type.role,d=r.props.name||`${h}-${s[c]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,H()(e,o)),n=r.type&&"stack"===r.type.role&&ct(r.type.getChildren)?r.type.getChildren(t):E().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,H()(t,o));return E().cloneElement(n,e)})),s=n.map(((t,n)=>`${d}-${n}`)),l=a(n,s,r);u=i(u,l)}else{const t=n(r,d,l);t&&(u=i(u,t))}return u}),r),s=t.filter(A.isValidElement),l=s.map(((t,n)=>n));return a(s,l)}function yt(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,e)=>{const r=e.props||{};return t||r.horizontal||!r.children?t||r.horizontal:n(E().Children.toArray(r.children))}),!1);return n(E().Children.toArray(t.children))}function gt(t){return Array.isArray(t)&&t.length>0}function xt(t){return Array.isArray(t)&&t.some((t=>"string"==typeof t))}function vt(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function bt(t){return Array.isArray(t)&&t.some((t=>"number"==typeof t))}function _t(t){return gt(t)&&t.every((t=>"string"==typeof t))}function Mt(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function Ct(t){return gt(t)&&t.every(Array.isArray)}function wt(t){return t.filter((t=>void 0!==t))}function At(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return vt(i)?new Date(Math.max(...i)):Math.max(...i)}function Et(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return vt(i)?new Date(Math.min(...i)):Math.min(...i)}function kt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function St(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Ot(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}class Dt extends Map{constructor(t,n=Lt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(Pt(this,t))}has(t){return super.has(Pt(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function Pt({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Lt(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Tt=Symbol("implicit");function jt(){var t=new Dt,n=[],e=[],r=Tt;function i(i){let o=t.get(i);if(void 0===o){if(r!==Tt)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new Dt;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return jt(n,e).unknown(r)},St.apply(i,arguments),i}function $t(){var t,n,e=jt().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function h(){var e=r().length,h=a<o,d=h?a:o,f=h?o:a;t=(f-d)/Math.max(1,e-l+2*c),s&&(t=Math.floor(t)),d+=(f-d-t*(e-l))*u,n=t*(1-l),s&&(d=Math.round(d),n=Math.round(n));var p=kt(e).map((function(n){return d+t*n}));return i(h?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),h()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(s=!!t,h()):s},e.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},e.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},e.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},e.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},e.copy=function(){return $t(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},St.apply(h(),arguments)}function Nt(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Nt(n())},t}function zt(){return Nt($t.apply(null,arguments).paddingInner(1))}var Rt=Math.sqrt(50),It=Math.sqrt(10),Ft=Math.sqrt(2);function Bt(t,n,e){var r,i,o,a,s=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=Wt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++s<i;)o[s]=(e+s)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++s<i;)o[s]=(e+s)/a}return r&&o.reverse(),o}function Wt(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Rt?10:o>=It?5:o>=Ft?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rt?10:o>=It?5:o>=Ft?2:1)}function Vt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Rt?i*=10:o>=It?i*=5:o>=Ft&&(i*=2),n<t?-i:i}function Ut(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function qt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Ht(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=Ut,e=(n,e)=>Ut(t(n),e),r=(n,e)=>t(n)-e):(n=t===Ut||t===qt?t:Gt,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const a=i(t,n,e,o-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function Gt(){return 0}function Kt(t){return null===t?NaN:+t}const Yt=Ht(Ut),Xt=Yt.right;Yt.left,Ht(Kt).center;var Zt=Xt;function Qt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Jt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function tn(){}var nn=.7,en=1/nn,rn="\\s*([+-]?\\d+)\\s*",on="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sn=/^#([0-9a-f]{3,8})$/,ln=new RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`),cn=new RegExp(`^rgb\\(${an},${an},${an}\\)$`),un=new RegExp(`^rgba\\(${rn},${rn},${rn},${on}\\)$`),hn=new RegExp(`^rgba\\(${an},${an},${an},${on}\\)$`),dn=new RegExp(`^hsl\\(${on},${an},${an}\\)$`),fn=new RegExp(`^hsla\\(${on},${an},${an},${on}\\)$`),pn={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};function mn(){return this.rgb().formatHex()}function yn(){return this.rgb().formatRgb()}function gn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=sn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?xn(n):3===e?new Mn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?vn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?vn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=ln.exec(t))?new Mn(n[1],n[2],n[3],1):(n=cn.exec(t))?new Mn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=un.exec(t))?vn(n[1],n[2],n[3],n[4]):(n=hn.exec(t))?vn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=dn.exec(t))?Sn(n[1],n[2]/100,n[3]/100,1):(n=fn.exec(t))?Sn(n[1],n[2]/100,n[3]/100,n[4]):pn.hasOwnProperty(t)?xn(pn[t]):"transparent"===t?new Mn(NaN,NaN,NaN,0):null}function xn(t){return new Mn(t>>16&255,t>>8&255,255&t,1)}function vn(t,n,e,r){return r<=0&&(t=n=e=NaN),new Mn(t,n,e,r)}function bn(t){return t instanceof tn||(t=gn(t)),t?new Mn((t=t.rgb()).r,t.g,t.b,t.opacity):new Mn}function _n(t,n,e,r){return 1===arguments.length?bn(t):new Mn(t,n,e,null==r?1:r)}function Mn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Cn(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}`}function wn(){const t=An(this.opacity);return`${1===t?"rgb(":"rgba("}${En(this.r)}, ${En(this.g)}, ${En(this.b)}${1===t?")":`, ${t})`}`}function An(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function En(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function kn(t){return((t=En(t))<16?"0":"")+t.toString(16)}function Sn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Dn(t,n,e,r)}function On(t){if(t instanceof Dn)return new Dn(t.h,t.s,t.l,t.opacity);if(t instanceof tn||(t=gn(t)),!t)return new Dn;if(t instanceof Dn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=n===o?(e-r)/s+6*(e<r):e===o?(r-n)/s+2:(n-e)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Dn(a,s,l,t.opacity)}function Dn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Pn(t){return(t=(t||0)%360)<0?t+360:t}function Ln(t){return Math.max(0,Math.min(1,t||0))}function Tn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function jn(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}Qt(tn,gn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:mn,formatHex:mn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return On(this).formatHsl()},formatRgb:yn,toString:yn}),Qt(Mn,_n,Jt(tn,{brighter(t){return t=null==t?en:Math.pow(en,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Mn(En(this.r),En(this.g),En(this.b),An(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:Cn,formatHex:Cn,formatHex8:function(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}${kn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wn,toString:wn})),Qt(Dn,(function(t,n,e,r){return 1===arguments.length?On(t):new Dn(t,n,e,null==r?1:r)}),Jt(tn,{brighter(t){return t=null==t?en:Math.pow(en,t),new Dn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new Dn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Mn(Tn(t>=240?t-240:t+120,i,r),Tn(t,i,r),Tn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Dn(Pn(this.h),Ln(this.s),Ln(this.l),An(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=An(this.opacity);return`${1===t?"hsl(":"hsla("}${Pn(this.h)}, ${100*Ln(this.s)}%, ${100*Ln(this.l)}%${1===t?")":`, ${t})`}`}}));var $n=t=>()=>t;function Nn(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):$n(isNaN(t)?n:t)}var zn=function t(n){var e=function(t){return 1==(t=+t)?Nn:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):$n(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=_n(t)).r,(n=_n(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Nn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Rn(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),s=new Array(i);for(e=0;e<i;++e)r=_n(n[e]),o[e]=r.r||0,a[e]=r.g||0,s[e]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function In(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=Gn(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function Fn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Bn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Wn(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Gn(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}Rn((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<n-1?t[r+2]:2*o-i;return jn((e-r/n)*n,a,i,o,s)}})),Rn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],s=t[(r+2)%n];return jn((e-r/n)*n,i,o,a,s)}}));var Vn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Un=new RegExp(Vn.source,"g");function qn(t,n){var e,r,i,o=Vn.lastIndex=Un.lastIndex=0,a=-1,s=[],l=[];for(t+="",n+="";(e=Vn.exec(t))&&(r=Un.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(e=e[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Bn(e,r)})),o=Un.lastIndex;return o<n.length&&(i=n.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(n){return t(n)+""}}(l[0].x):function(t){return function(){return t}}(n):(n=l.length,function(t){for(var e,r=0;r<n;++r)s[(e=l[r]).i]=e.x(t);return s.join("")})}function Hn(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function Gn(t,n){var e,r=typeof n;return null==n||"boolean"===r?$n(n):("number"===r?Bn:"string"===r?(e=gn(n))?(n=e,zn):qn:n instanceof gn?zn:n instanceof Date?Fn:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?Hn:Array.isArray(n)?In:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Wn:Bn)(t,n)}function Kn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Yn(t){return+t}var Xn=[0,1];function Zn(t){return t}function Qn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function(t){return function(){return t}}(isNaN(n)?NaN:.5)}function Jn(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=Qn(i,r),o=e(a,o)):(r=Qn(r,i),o=e(o,a)),function(t){return o(r(t))}}function te(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=Qn(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=Zt(t,n,1,r)-1;return o[e](i[e](n))}}function ne(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ee(){var t,n,e,r,i,o,a=Xn,s=Xn,l=Gn,c=Zn;function u(){var t=Math.min(a.length,s.length);return c!==Zn&&(c=function(t,n){var e;return t>n&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(a[0],a[t-1])),r=t>2?te:Jn,i=o=null,h}function h(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),s,l)))(t(c(n)))}return h.invert=function(e){return c(n((o||(o=r(s,a.map(t),Bn)))(e)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Yn),u()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Kn,u()},h.clamp=function(t){return arguments.length?(c=!!t||Zn,u()):c!==Zn},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(e=t,h):e},function(e,r){return t=e,n=r,u()}}function re(){return ee()(Zn,Zn)}var ie,oe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ae(t){if(!(n=oe.exec(t)))throw new Error("invalid format: "+t);var n;return new se({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function se(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function le(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function ce(t){return(t=le(Math.abs(t)))?t[1]:NaN}function ue(t,n){var e=le(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ae.prototype=se.prototype,se.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var he={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>ue(100*t,n),r:ue,s:function(t,n){var e=le(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ie=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+le(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function de(t){return t}var fe,pe,me,ye=Array.prototype.map,ge=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xe(t,n,e,r){var i,o=Vt(t,n,e);switch((r=ae(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ce(n)/3)))-ce(Math.abs(t)))}(o,a))||(r.precision=i),me(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,ce(n)-ce(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-ce(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return pe(r)}function ve(t){var n=t.domain;return t.ticks=function(t){var e=n();return Bt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return xe(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=Wt(l,c,e))===r)return o[a]=l,o[s]=c,n(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function be(){var t=re();return t.copy=function(){return ne(t,be())},St.apply(t,arguments),ve(t)}function _e(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,Yn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return _e(t).unknown(n)},t=arguments.length?Array.from(t,Yn):[0,1],ve(e)}function Me(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function Ce(t){return Math.log(t)}function we(t){return Math.exp(t)}function Ae(t){return-Math.log(-t)}function Ee(t){return-Math.exp(-t)}function ke(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Se(t){return(n,e)=>-t(-n,e)}function Oe(t){const n=t(Ce,we),e=n.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?ke:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=Se(r),i=Se(i),t(Ae,Ee)):t(Ce,we),n}return n.base=function(t){return arguments.length?(o=+t,a()):o},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],s=n[n.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,h=r(a),d=r(s);const f=null==t?10:+t;let p=[];if(!(o%1)&&d-h<f){if(h=Math.floor(h),d=Math.ceil(d),a>0){for(;h<=d;++h)for(c=1;c<o;++c)if(u=h<0?c/i(-h):c*i(h),!(u<a)){if(u>s)break;p.push(u)}}else for(;h<=d;++h)for(c=o-1;c>=1;--c)if(u=h>0?c/i(-h):c*i(h),!(u<a)){if(u>s)break;p.push(u)}2*p.length<f&&(p=Bt(a,s,f))}else p=Bt(h,d,Math.min(d-h,f)).map(i);return l?p.reverse():p},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=ae(e)).precision||(e.trim=!0),e=pe(e)),t===1/0)return e;const a=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=a?e(t):""}},n.nice=()=>e(Me(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function De(){const t=Oe(ee()).domain([1,10]);return t.copy=()=>ne(t,De()).base(t.base()),St.apply(t,arguments),t}function Pe(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function Le(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Te(t){var n=1,e=t(Pe(n),Le(n));return e.constant=function(e){return arguments.length?t(Pe(n=+e),Le(n)):n},ve(e)}function je(){var t=Te(ee());return t.copy=function(){return ne(t,je()).constant(t.constant())},St.apply(t,arguments)}function $e(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Ne(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ze(t){return t<0?-t*t:t*t}function Re(t){var n=t(Zn,Zn),e=1;function r(){return 1===e?t(Zn,Zn):.5===e?t(Ne,ze):t($e(e),$e(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},ve(n)}function Ie(){var t=Re(ee());return t.copy=function(){return ne(t,Ie()).exponent(t.exponent())},St.apply(t,arguments),t}function Fe(){return Ie.apply(null,arguments).exponent(.5)}function Be(t){return Math.sign(t)*t*t}function We(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Ve(){var t,n=re(),e=[0,1],r=!1;function i(e){var i=We(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(Be(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Yn)).map(Be)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Ve(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},St.apply(i,arguments),ve(i)}function Ue(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function qe(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function He(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Ge(t,n,e=0,r=t.length-1,i){for(i=void 0===i?He:function(t=Ut){if(t===Ut)return He;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);Ge(t,n,Math.max(e,Math.floor(n-a*l/o+c)),Math.min(r,Math.floor(n+(o-a)*l/o+c)),i)}const o=t[n];let a=e,s=r;for(Ke(t,e,n),i(t[r],o)>0&&Ke(t,e,r);a<s;){for(Ke(t,a,s),++a,--s;i(t[a],o)<0;)++a;for(;i(t[s],o)>0;)--s}0===i(t[e],o)?Ke(t,e,s):(++s,Ke(t,s,r)),s<=n&&(e=s+1),n<=s&&(r=s-1)}return t}function Ke(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Ye(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return qe(t);if(n>=1)return Ue(t);var r,i=(r-1)*n,o=Math.floor(i),a=Ue(Ge(t,o).subarray(0,o+1));return a+(qe(t.subarray(o+1))-a)*(i-o)}}function Xe(t,n,e=Kt){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function Ze(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=Xe(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[Zt(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Ut),i()},o.range=function(t){return arguments.length?(e=Array.from(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return Ze().domain(n).range(e).unknown(t)},St.apply(o,arguments)}function Qe(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[Zt(i,n,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,s()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Qe().domain([n,e]).range(o).unknown(t)},St.apply(ve(a),arguments)}function Je(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[Zt(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Je().domain(n).range(e).unknown(t)},St.apply(i,arguments)}fe=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?de:(n=ye.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=n[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?de:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(ye.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var n=(t=ae(t)).fill,e=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,y=t.precision,g=t.trim,x=t.type;"n"===x?(m=!0,x="g"):he[x]||(void 0===y&&(y=12),g=!0,x="g"),(f||"0"===n&&"="===e)&&(f=!0,n="0",e="=");var v="$"===d?i:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",b="$"===d?o:/[%p]/.test(x)?l:"",_=he[x],M=/[defgprs%]/.test(x);function C(t){var i,o,l,d=v,C=b;if("c"===x)C=_(t)+C,t="";else{var w=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:_(Math.abs(t),y),g&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),w&&0==+t&&"+"!==h&&(w=!1),d=(w?"("===h?h:c:"-"===h||"("===h?"":h)+d,C=("s"===x?ge[8+ie/3]:"")+C+(w&&"("===h?")":""),M)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){C=(46===l?a+t.slice(i+1):t.slice(i))+C,t=t.slice(0,i);break}}m&&!f&&(t=r(t,1/0));var A=d.length+t.length+C.length,E=A<p?new Array(p-A+1).join(n):"";switch(m&&f&&(t=r(E+t,E.length?p-C.length:1/0),E=""),e){case"<":t=d+t+C+E;break;case"=":t=d+E+t+C;break;case"^":t=E.slice(0,A=E.length>>1)+d+t+C+E.slice(A);break;default:t=E+d+t+C}return s(t)}return y=void 0===y?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,n){var e=h(((t=ae(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ce(n)/3))),i=Math.pow(10,-r),o=ge[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),pe=fe.format,me=fe.formatPrefix;const tr=1e3,nr=6e4,er=36e5,rr=864e5,ir=6048e5,or=31536e6;var ar=new Date,sr=new Date;function lr(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,s=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return s;do{s.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return s},i.filter=function(e){return lr((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return ar.setTime(+n),sr.setTime(+r),t(ar),t(sr),Math.floor(e(ar,sr))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var cr=lr((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));cr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?lr((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):cr:null};var ur=cr,hr=(cr.range,lr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*tr)}),(function(t,n){return(n-t)/tr}),(function(t){return t.getUTCSeconds()}))),dr=hr,fr=(hr.range,lr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tr)}),(function(t,n){t.setTime(+t+n*nr)}),(function(t,n){return(n-t)/nr}),(function(t){return t.getMinutes()}))),pr=fr,mr=(fr.range,lr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tr-t.getMinutes()*nr)}),(function(t,n){t.setTime(+t+n*er)}),(function(t,n){return(n-t)/er}),(function(t){return t.getHours()}))),yr=mr,gr=(mr.range,lr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nr)/rr),(t=>t.getDate()-1))),xr=gr;function vr(t){return lr((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nr)/ir}))}gr.range;var br=vr(0),_r=vr(1),Mr=vr(2),Cr=vr(3),wr=vr(4),Ar=vr(5),Er=vr(6),kr=(br.range,_r.range,Mr.range,Cr.range,wr.range,Ar.range,Er.range,lr((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Sr=kr,Or=(kr.range,lr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Or.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lr((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var Dr=Or,Pr=(Or.range,lr((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*nr)}),(function(t,n){return(n-t)/nr}),(function(t){return t.getUTCMinutes()}))),Lr=Pr,Tr=(Pr.range,lr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*er)}),(function(t,n){return(n-t)/er}),(function(t){return t.getUTCHours()}))),jr=Tr,$r=(Tr.range,lr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/rr}),(function(t){return t.getUTCDate()-1}))),Nr=$r;function zr(t){return lr((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/ir}))}$r.range;var Rr=zr(0),Ir=zr(1),Fr=zr(2),Br=zr(3),Wr=zr(4),Vr=zr(5),Ur=zr(6),qr=(Rr.range,Ir.range,Fr.range,Br.range,Wr.range,Vr.range,Ur.range,lr((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Hr=qr,Gr=(qr.range,lr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Gr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lr((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var Kr=Gr;function Yr(t,n,e,r,i,o){const a=[[dr,1,tr],[dr,5,5e3],[dr,15,15e3],[dr,30,3e4],[o,1,nr],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,er],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,rr],[r,2,1728e5],[e,1,ir],[n,1,2592e6],[n,3,7776e6],[t,1,or]];function s(n,e,r){const i=Math.abs(e-n)/r,o=Ht((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Vt(n/or,e/or,r));if(0===o)return ur.every(Math.max(Vt(n,e,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:s(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},s]}Gr.range;const[Xr,Zr]=Yr(Kr,Hr,Rr,Nr,jr,Lr),[Qr,Jr]=Yr(Dr,Sr,br,xr,yr,pr);function ti(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ni(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ei(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var ri,ii,oi,ai={"-":"",_:" ",0:"0"},si=/^\s*\d+/,li=/^%/,ci=/[\\^$*+?|[\]().{}]/g;function ui(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function hi(t){return t.replace(ci,"\\$&")}function di(t){return new RegExp("^(?:"+t.map(hi).join("|")+")","i")}function fi(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function pi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function mi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function yi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function gi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function xi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=si.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function _i(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Mi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Ci(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function wi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Ai(t,n,e){var r=si.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Ei(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Si(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Oi(t,n,e){var r=si.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Di(t,n,e){var r=si.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Pi(t,n,e){var r=li.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Li(t,n,e){var r=si.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ti(t,n,e){var r=si.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function ji(t,n){return ui(t.getDate(),n,2)}function $i(t,n){return ui(t.getHours(),n,2)}function Ni(t,n){return ui(t.getHours()%12||12,n,2)}function zi(t,n){return ui(1+xr.count(Dr(t),t),n,3)}function Ri(t,n){return ui(t.getMilliseconds(),n,3)}function Ii(t,n){return Ri(t,n)+"000"}function Fi(t,n){return ui(t.getMonth()+1,n,2)}function Bi(t,n){return ui(t.getMinutes(),n,2)}function Wi(t,n){return ui(t.getSeconds(),n,2)}function Vi(t){var n=t.getDay();return 0===n?7:n}function Ui(t,n){return ui(br.count(Dr(t)-1,t),n,2)}function qi(t){var n=t.getDay();return n>=4||0===n?wr(t):wr.ceil(t)}function Hi(t,n){return t=qi(t),ui(wr.count(Dr(t),t)+(4===Dr(t).getDay()),n,2)}function Gi(t){return t.getDay()}function Ki(t,n){return ui(_r.count(Dr(t)-1,t),n,2)}function Yi(t,n){return ui(t.getFullYear()%100,n,2)}function Xi(t,n){return ui((t=qi(t)).getFullYear()%100,n,2)}function Zi(t,n){return ui(t.getFullYear()%1e4,n,4)}function Qi(t,n){var e=t.getDay();return ui((t=e>=4||0===e?wr(t):wr.ceil(t)).getFullYear()%1e4,n,4)}function Ji(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ui(n/60|0,"0",2)+ui(n%60,"0",2)}function to(t,n){return ui(t.getUTCDate(),n,2)}function no(t,n){return ui(t.getUTCHours(),n,2)}function eo(t,n){return ui(t.getUTCHours()%12||12,n,2)}function ro(t,n){return ui(1+Nr.count(Kr(t),t),n,3)}function io(t,n){return ui(t.getUTCMilliseconds(),n,3)}function oo(t,n){return io(t,n)+"000"}function ao(t,n){return ui(t.getUTCMonth()+1,n,2)}function so(t,n){return ui(t.getUTCMinutes(),n,2)}function lo(t,n){return ui(t.getUTCSeconds(),n,2)}function co(t){var n=t.getUTCDay();return 0===n?7:n}function uo(t,n){return ui(Rr.count(Kr(t)-1,t),n,2)}function ho(t){var n=t.getUTCDay();return n>=4||0===n?Wr(t):Wr.ceil(t)}function fo(t,n){return t=ho(t),ui(Wr.count(Kr(t),t)+(4===Kr(t).getUTCDay()),n,2)}function po(t){return t.getUTCDay()}function mo(t,n){return ui(Ir.count(Kr(t)-1,t),n,2)}function yo(t,n){return ui(t.getUTCFullYear()%100,n,2)}function go(t,n){return ui((t=ho(t)).getUTCFullYear()%100,n,2)}function xo(t,n){return ui(t.getUTCFullYear()%1e4,n,4)}function vo(t,n){var e=t.getUTCDay();return ui((t=e>=4||0===e?Wr(t):Wr.ceil(t)).getUTCFullYear()%1e4,n,4)}function bo(){return"+0000"}function _o(){return"%"}function Mo(t){return+t}function Co(t){return Math.floor(+t/1e3)}function wo(t){return new Date(t)}function Ao(t){return t instanceof Date?+t:+new Date(+t)}function Eo(t,n,e,r,i,o,a,s,l,c){var u=re(),h=u.invert,d=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),x=c("%b %d"),v=c("%B"),b=c("%Y");function _(t){return(l(t)<t?f:s(t)<t?p:a(t)<t?m:o(t)<t?y:r(t)<t?i(t)<t?g:x:e(t)<t?v:b)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,Ao)):d().map(wo)},u.ticks=function(n){var e=d();return t(e[0],e[e.length-1],null==n?10:n)},u.tickFormat=function(t,n){return null==n?_:c(n)},u.nice=function(t){var e=d();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?d(Me(e,t)):u},u.copy=function(){return ne(u,Eo(t,n,e,r,i,o,a,s,l,c))},u}function ko(){return St.apply(Eo(Qr,Jr,Dr,Sr,br,xr,yr,pr,dr,ii).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function So(){return St.apply(Eo(Xr,Zr,Kr,Hr,Rr,Nr,jr,Lr,dr,oi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Oo(){var t,n,e,r,i,o=0,a=1,s=Zn,l=!1;function c(n){return null==n||isNaN(n=+n)?i:s(0===e?.5:(n=(r(n)-t)*e,l?Math.max(0,Math.min(1,n)):n))}function u(t){return function(n){var e,r;return arguments.length?([e,r]=n,s=t(e,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),c):[o,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=u(Gn),c.rangeRound=u(Kn),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),c}}function Do(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Po(){var t=ve(Oo()(Zn));return t.copy=function(){return Do(t,Po())},Ot.apply(t,arguments)}function Lo(){var t=Oe(Oo()).domain([1,10]);return t.copy=function(){return Do(t,Lo()).base(t.base())},Ot.apply(t,arguments)}function To(){var t=Te(Oo());return t.copy=function(){return Do(t,To()).constant(t.constant())},Ot.apply(t,arguments)}function jo(){var t=Re(Oo());return t.copy=function(){return Do(t,jo()).exponent(t.exponent())},Ot.apply(t,arguments)}function $o(){return jo.apply(null,arguments).exponent(.5)}function No(){var t=[],n=Zn;function e(e){if(null!=e&&!isNaN(e=+e))return n((Zt(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(Ut),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>Ye(t,r/n)))},e.copy=function(){return No(n).domain(t)},Ot.apply(e,arguments)}function zo(t,n){void 0===n&&(n=t,t=Gn);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function Ro(){var t,n,e,r,i,o,a,s=0,l=.5,c=1,u=1,h=Zn,d=!1;function f(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(u*t<u*n?r:i),h(d?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,h=zo(t,[e,r,i]),f):[h(0),h(.5),h(1)]}}return f.domain=function(a){return arguments.length?([s,l,c]=a,t=o(s=+s),n=o(l=+l),e=o(c=+c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),u=n<t?-1:1,f):[s,l,c]},f.clamp=function(t){return arguments.length?(d=!!t,f):d},f.interpolator=function(t){return arguments.length?(h=t,f):h},f.range=p(Gn),f.rangeRound=p(Kn),f.unknown=function(t){return arguments.length?(a=t,f):a},function(a){return o=a,t=a(s),n=a(l),e=a(c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),u=n<t?-1:1,f}}function Io(){var t=ve(Ro()(Zn));return t.copy=function(){return Do(t,Io())},Ot.apply(t,arguments)}function Fo(){var t=Oe(Ro()).domain([.1,1,10]);return t.copy=function(){return Do(t,Fo()).base(t.base())},Ot.apply(t,arguments)}function Bo(){var t=Te(Ro());return t.copy=function(){return Do(t,Bo()).constant(t.constant())},Ot.apply(t,arguments)}function Wo(){var t=Re(Ro());return t.copy=function(){return Do(t,Wo()).exponent(t.exponent())},Ot.apply(t,arguments)}function Vo(){return Wo.apply(null,arguments).exponent(.5)}ri=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=di(i),u=fi(i),h=di(o),d=fi(o),f=di(a),p=fi(a),m=di(s),y=fi(s),g=di(l),x=fi(l),v={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:ji,e:ji,f:Ii,g:Xi,G:Qi,H:$i,I:Ni,j:zi,L:Ri,m:Fi,M:Bi,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Mo,s:Co,S:Wi,u:Vi,U:Ui,V:Hi,w:Gi,W:Ki,x:null,X:null,y:Yi,Y:Zi,Z:Ji,"%":_o},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:to,e:to,f:oo,g:go,G:vo,H:no,I:eo,j:ro,L:io,m:ao,M:so,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Mo,s:Co,S:lo,u:co,U:uo,V:fo,w:po,W:mo,x:null,X:null,y:yo,Y:xo,Z:bo,"%":_o},_={a:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=h.exec(n.slice(e));return r?(t.w=d.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=x.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return w(t,n,e,r)},d:wi,e:wi,f:Di,g:bi,G:vi,H:Ei,I:Ei,j:Ai,L:Oi,m:Ci,M:ki,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=u.get(r[0].toLowerCase()),e+r[0].length):-1},q:Mi,Q:Li,s:Ti,S:Si,u:mi,U:yi,V:gi,w:pi,W:xi,x:function(t,n,r){return w(t,e,n,r)},X:function(t,n,e){return w(t,r,n,e)},y:bi,Y:vi,Z:_i,"%":Pi};function M(t,n){return function(e){var r,i,o,a=[],s=-1,l=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=ai[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function C(t,n){return function(e){var r,i,o=ei(1900,void 0,1);if(w(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ni(ei(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ir.ceil(r):Ir(r),r=Nr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ti(ei(o.y,0,1))).getDay(),r=i>4||0===i?_r.ceil(r):_r(r),r=xr.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ni(ei(o.y,0,1)).getUTCDay():ti(ei(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ni(o)):ti(o)}}function w(t,n,e,r){for(var i,o,a=0,s=n.length,l=e.length;a<s;){if(r>=l)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=_[i in ai?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return v.x=M(e,v),v.X=M(r,v),v.c=M(n,v),b.x=M(e,b),b.X=M(r,b),b.c=M(n,b),{format:function(t){var n=M(t+="",v);return n.toString=function(){return t},n},parse:function(t){var n=C(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=C(t+="",!0);return n.toString=function(){return t},n}}}({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"]}),ii=ri.format,ri.parse,oi=ri.utcFormat,ri.utcParse;const Uo=["linear","time","log","sqrt"];function qo(t){return"function"==typeof t?ct(t.copy)&&ct(t.domain)&&ct(t.range):"string"==typeof t&&Uo.includes(t)}function Ho(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Go(t,n){if(!t.data)return"linear";const e=ut(t[n]);return vt(t.data.map((t=>{const r=L()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Ko(t){if(qo(t)){const n=`scale${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`;return e[n]()}return be()}function Yo(t,n){const e=Zo(t,n);return e?"string"==typeof e?Ko(e):e:Ko(function(t,n){let e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return vt(e)?"time":"linear"}(t,n)||Go(t,n))}function Xo(){return be()}function Zo(t,n){if(!Ho(t,n))return;const e=t.scale[n]||t.scale;return qo(e)?ct(e)?e:Ko(e):void 0}function Qo(t,n){return function(t,n){if(!Ho(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:ta(e)}(t,n)||Go(t,n)}const Jo=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ta(t){if("string"==typeof t)return t;const n=Jo.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}const na="@@__IMMUTABLE_ITERABLE__@@",ea="@@__IMMUTABLE_RECORD__@@",ra="@@__IMMUTABLE_LIST__@@",ia="@@__IMMUTABLE_MAP__@@";function oa(t){return!(!t||!t[na])}function aa(t){return!(!t||!t[ea])}function sa(t){return oa(t)||aa(t)}function la(t){return!(!t||!t[ra])}function ca(t){return!(!t||!t[ia])}function ua(t,n){return oa(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=ua(e)),t[r]=i,t}),la(t)?[]:{}):t}function ha(t){return sa(t)?ua(t,{errorX:!0,errorY:!0}):t}function da(t){return oa(t)?t.size:t.length}function fa(t,n){const e=(L()(t.domain)?t.domain[n]:t.domain)||Yo(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=pt(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function pa(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const i="ascending"===e?"asc":"desc";return R()(t,r,i)}function ma(t,n,e){const r=t=>void 0!==t,i=Et(n.x),o=At(n.x),a=Et(n.y),s=At(n.y),l=t=>n=>r(n)&&n<t,c=t=>n=>r(n)&&n>t,u=l(i),h=l(a),d=c(o),f=c(s);return t.map((t=>{let{_x:n,_y:i,_y0:o,_y1:l}=t;(u(n)||d(n))&&(n=null);const c=r(o)?o:e,p=r(l)?l:i;return r(p)?(r(c)||!h(p)&&!f(p)||(i=null),(h(c)&&h(p)||f(c)&&f(p))&&(i=o=l=null),h(c)&&!h(p)&&(o=a),f(c)&&!f(p)&&(o=s),Object.assign({},t,N()({_x:n,_y:i,_y0:o,_y1:l},j()))):t}))}function ya(t,n){const e=Ma(t,n),r=Ca(t,n),i=wa(t,n),o=W()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function ga(t,n,e){void 0===e&&(e=0);const r=da(t);if(r>n){const i=Math.pow(2,Math.ceil(Math.log2(r/n)));return t.filter(((t,n)=>(n+e)%i==0))}return t}function xa(t,n,e){if(!Array.isArray(t)&&!oa(t)||da(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=ut(void 0!==n[r=e]?n[r]:r),t}),{}),o=D()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?ya(n,"x"):void 0,y:-1!==e.indexOf("y")?ya(n,"y"):void 0,y0:-1!==e.indexOf("y0")?ya(n,"y"):void 0});const s=o?t:t.reduce(((t,n,r)=>{const o=ha(n),s={x:r,y:o},l=e.reduce(((t,n)=>{const e=i[n](o),r=void 0!==e?e:s[n];return void 0!==r&&("string"==typeof r&&a[n]?(t[`${n}Name`]=r,t[`_${n}`]=a[n][r]):t[`_${n}`]=r),t}),{}),c=Object.assign({},l,o);return S()(c)||t.push(c),t}),[]),l=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Qo(n,"x"),y:Qo(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const i=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>i(t,"x")&&i(t,"y")&&i(t,"y0")?t:(t=>{const n=i(t,"x")?t._x:e,r=i(t,"y")?t._y:e,o=i(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:o})})(t)))}(pa(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=ct(i=t.eventKey)?i:null==i?()=>{}:F()(i);var i;return n.map(((t,n)=>{if(void 0!==t.eventKey)return t;if(e){const e=r(t,n);return void 0!==e?Object.assign({eventKey:e},t):t}return t}))}(n,l)}function va(t){const n=fa(t,"x"),e=fa(t,"y"),r=n.map(((t,n)=>({x:t,y:e[n]})));return r}function ba(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function _a(t){return t.data?xa(t.data,t):xa(va(t),t)}function Ma(t,n){const{tickValues:e,tickFormat:r}=t;let i;return i=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],i.filter((t=>"string"==typeof t))}function Ca(t,n){if(!t.categories)return[];const e=ba(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?wt(r):[]}function wa(t,n){if(!Array.isArray(t.data)&&!oa(t.data))return[];const e=ut(void 0===t[n]?n:t[n]);return pa(t.data.reduce(((t,n)=>(t.push(ha(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=ha(n);return t.push(e(r)),t}),[]).filter((t=>"string"==typeof t)).reduce(((t,n)=>(null!=n&&-1===t.indexOf(n)&&t.push(n),t)),[])}function Aa(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=E().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}var Ea=r(4295),ka=r.n(Ea),Sa=r(2829),Oa=r.n(Sa);function Da(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),i="max"===e?-1/0:1/0;let o=!1;const a=t.flat().reduce(((t,e)=>{const i=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],s=r([i,a]);return o=o||i instanceof Date||a instanceof Date,r([t,s])}),i);return o?new Date(a):a}function Pa(t,n){const e=ct(t)?t:$a,r=ct(n)?n:La;return(t,n)=>{const i=za(t,n);if(i)return r(i,t,n);const o=ba(t,n),a=o?ja(t,n,o):e(t,n);return a?r(a,t,n):void 0}}function La(t,n,e){return function(t,n,e){return"log"!==Qo(n,e)?t:(t=>{const n=t[0]<0||t[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER;return[0===t[0]?n:t[0],0===t[1]?n:t[1]]})(t)}(function(t,n,e){if(!n.domainPadding)return t;const r=Fa(n,e),i=Ia(n,e),o=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return L()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!o.left&&!o.right)return t;const a=Et(t),s=At(t),l=st(n,dt(e,n.horizontal)),c=Math.abs(l[0]-l[1]),u=Math.max(c-o.left-o.right,1),h=Math.abs(s.valueOf()-a.valueOf())/u*c,d=h*o.left/c,f=h*o.right/c;let p={min:a.valueOf()-d,max:s.valueOf()+f};const m=L()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,y=(t,n)=>"min"===n&&a.valueOf()>=0&&t<=0||"max"===n&&s.valueOf()<=0&&t>=0?0:t;if((a.valueOf()>=0&&p.min<=0||s.valueOf()<=0&&p.max>=0)&&!1!==m){const t={left:Math.abs(s-a)*o.left/c,right:Math.abs(s-a)*o.right/c},n={min:y(a.valueOf()-t.left,"min"),max:y(s.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*o.left/c,right:Math.abs(n.max-n.min)*o.right/c};p={min:y(a.valueOf()-e.left,"min"),max:y(s.valueOf()+e.right,"max")}}const g={min:void 0!==r?r:p.min,max:void 0!==i?i:p.max};return a instanceof Date||s instanceof Date?Na(new Date(g.min),new Date(g.max)):Na(g.min,g.max)}(t,n,e),n,e)}function Ta(t,n){return Pa()(t,n)}function ja(t,n,e){const r=e||ba(t,n),{polar:i,startAngle:o=0,endAngle:a=360}=t;if(!r)return;const s=Fa(t,n),l=Ia(t,n),c=xt(r)?Ca(t,n):[],u=0===c.length?null:c.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),h=u?r.map((t=>u[t])):r,d=Na(void 0!==s?s:Et(h),void 0!==l?l:At(h));return i&&"x"===n&&360===Math.abs(o-a)?Ba(d,h):d}function $a(t,n,e){const r=e||_a(t),{polar:i,startAngle:o=0,endAngle:a=360}=t,s=Fa(t,n),l=Ia(t,n);if(r.length<1)return void 0!==s&&void 0!==l?Na(s,l):void 0;const c=Na(void 0!==s?s:Da(r,n,"min"),void 0!==l?l:Da(r,n,"max"));return i&&"x"===n&&360===Math.abs(o-a)?Ba(c,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):c}function Na(t,n){return Number(t)===Number(n)?(t=>{const n=0===t?2*Math.pow(10,-10):Math.pow(10,-10),e=t instanceof Date?new Date(Number(t)-1):Number(t)-n,r=t instanceof Date?new Date(Number(t)+1):Number(t)+n;return 0===t?[0,r]:[e,r]})(n):[t,n]}function za(t,n){const e=Fa(t,n),r=Ia(t,n);return L()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?Na(e,r):void 0}function Ra(t,n){const e=za(t,n);if(e)return e;const r=_a(t),i=r.reduce(((t,n)=>n._y0<t?n._y0:t),1/0);return Pa((()=>$a(t,n,r)),(e=>La((e=>{if("x"===n)return e;const r=i!==1/0?i:0,o=Ia(t,n),a=Fa(t,n),s=void 0!==o?o:At(e,r);return Na(void 0!==a?a:Et(e,r),s)})(e),t,n)))(t,n)}function Ia(t,n){return L()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||ka()(t.maxDomain)?t.maxDomain:void 0}function Fa(t,n){return L()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||ka()(t.minDomain)?t.minDomain:void 0}function Ba(t,n){const e=Oa()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function Wa(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=E().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}function Va(t){const{labelComponent:n,labelPlacement:e,polar:r}=t,i=r?"perpendicular":"vertical";return e||n.props&&n.props.labelPlacement||i}function Ua(t,n,e){return void 0===n&&(n={}),void 0!==n.label?n.label:Array.isArray(t.labels)?t.labels[e]:t.labels}function qa(t,n){const e=Va(t);return"perpendicular"===e||"vertical"===e&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}function Ha(t,n){const e=Va(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(n);return"parallel"===e||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function Ga(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=void 0!==n?n%360:Ka(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}function Ka(t,n){const{x:e}=Y(n);return it(t.scale.x(e))%360}function Ya(t,n){const{scale:e,data:r,style:i,horizontal:o,polar:a,width:s,height:l,theme:c,labelComponent:u,disableInlineStyles:h}=t,d=r[n],f=Ka(t,d),p=a?qa(t,f):function(t,n){void 0===n&&(n={});const{style:e,horizontal:r}=t,i=n._y>=0?1:-1,o=e&&e.labels||{};return n.verticalAnchor||o.verticalAnchor?n.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}(t,d),m=a?Ha(t,f):function(t,n){void 0===n&&(n={});const e=n._y>=0?1:-1,r=t.style&&t.style.labels||{};return n.verticalAnchor||r.verticalAnchor?n.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":e>=0?"end":"start"}(t,d),y=function(t,n){void 0===n&&(n={});const e=t.style&&t.style.labels||{};return void 0===n.angle?e.angle:n.angle}(t,d),g=Ua(t,d,n),x=Va(t),{x:v,y:b}=function(t,n){const{polar:e}=t,{x:r,y:i}=X(t,n);if(!e)return{x:r,y:i};const o=function(t,n){const{style:e}=t,r=Ka(t,n),i=nt((e.labels||{}).padding,t)||0,o=rt(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}(t,n);return{x:r+o.x,y:i+o.y}}(t,d),{dx:_,dy:M}=function(t,n){if(t.polar)return{};const e=function(t,n){void 0===n&&(n={});const{horizontal:e,style:r}=t,i=nt((r.labels||{}).padding,t)||0,o=n._y<0?-1:1;return{x:e?o*i:0,y:e?0:-1*o*i}}(t,n);return{dx:e.x,dy:e.y}}(t,d),C={angle:y,data:r,datum:d,disableInlineStyles:h,horizontal:o,index:n,polar:a,scale:e,labelPlacement:x,text:g,textAnchor:p,verticalAnchor:m,x:v,y:b,dx:_,dy:M,width:s,height:l,style:i.labels};if(!Q(u))return C;const w=c&&c.tooltip||{};return U()({},C,K(w,["style"]))}const Xa=Math.PI,Za=2*Xa,Qa=1e-6,Ja=Za-Qa;function ts(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ns(){return new ts}ts.prototype=ns.prototype={constructor:ts,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,s=e-t,l=r-n,c=o-t,u=a-n,h=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>Qa)if(Math.abs(u*s-l*c)>Qa&&i){var d=e-o,f=r-a,p=s*s+l*l,m=d*d+f*f,y=Math.sqrt(p),g=Math.sqrt(h),x=i*Math.tan((Xa-Math.acos((p+h-m)/(2*y*g)))/2),v=x/g,b=x/y;Math.abs(v-1)>Qa&&(this._+="L"+(t+v*c)+","+(n+v*u)),this._+="A"+i+","+i+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+b*s)+","+(this._y1=n+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),s=e*Math.sin(r),l=t+a,c=n+s,u=1^o,h=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Qa||Math.abs(this._y1-c)>Qa)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%Za+Za),h>Ja?this._+="A"+e+","+e+",0,1,"+u+","+(t-a)+","+(n-s)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>Qa&&(this._+="A"+e+","+e+",0,"+ +(h>=Xa)+","+u+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var es=ns,rs=Array.prototype.slice;function is(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function os(t){return function(){return t}}function as(t){this._context=t}function ss(t){return new as(t)}function ls(t){return t[0]}function cs(t){return t[1]}function us(t,n){var e=os(!0),r=null,i=ss,o=null;function a(a){var s,l,c,u=(a=is(a)).length,h=!1;for(null==r&&(o=i(c=es())),s=0;s<=u;++s)!(s<u&&e(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+n(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?ls:os(t),n="function"==typeof n?n:void 0===n?cs:os(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:os(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function hs(t,n,e){var r=null,i=os(!0),o=null,a=ss,s=null;function l(l){var c,u,h,d,f,p=(l=is(l)).length,m=!1,y=new Array(p),g=new Array(p);for(null==o&&(s=a(f=es())),c=0;c<=p;++c){if(!(c<p&&i(d=l[c],c,l))===m)if(m=!m)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=u;--h)s.point(y[h],g[h]);s.lineEnd(),s.areaEnd()}m&&(y[c]=+t(d,c,l),g[c]=+n(d,c,l),s.point(r?+r(d,c,l):y[c],e?+e(d,c,l):g[c]))}if(f)return s=null,f+""||null}function c(){return us().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?ls:os(+t),n="function"==typeof n?n:os(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?cs:os(+e),l.x=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),r=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:os(+t),l):r},l.y=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),e=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),l):n},l.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:os(+t),l):e},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(e)},l.lineX1=function(){return c().x(r).y(n)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:os(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var ds=ps(ss);function fs(t){this._curve=t}function ps(t){function n(n){return new fs(t(n))}return n._curve=t,n}function ms(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(ps(t)):n()._curve},t}function ys(){return ms(us().curve(ds))}function gs(){var t=hs().curve(ds),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ms(e())},delete t.lineX0,t.lineEndAngle=function(){return ms(r())},delete t.lineX1,t.lineInnerRadius=function(){return ms(i())},delete t.lineY0,t.lineOuterRadius=function(){return ms(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(ps(t)):n()._curve},t}fs.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};const xs=Math.abs,vs=Math.atan2,bs=Math.cos,_s=Math.max,Ms=Math.min,Cs=Math.sin,ws=Math.sqrt,As=1e-12,Es=Math.PI,ks=Es/2,Ss=2*Es;function Os(t){return t>1?0:t<-1?Es:Math.acos(t)}function Ds(t){return t>=1?ks:t<=-1?-ks:Math.asin(t)}function Ps(t){return t.innerRadius}function Ls(t){return t.outerRadius}function Ts(t){return t.startAngle}function js(t){return t.endAngle}function $s(t){return t&&t.padAngle}function Ns(t,n,e,r,i,o,a,s){var l=e-t,c=r-n,u=a-i,h=s-o,d=h*l-u*c;if(!(d*d<As))return[t+(d=(u*(n-o)-h*(t-i))/d)*l,n+d*c]}function zs(t,n,e,r,i,o,a){var s=t-e,l=n-r,c=(a?o:-o)/ws(s*s+l*l),u=c*l,h=-c*s,d=t+u,f=n+h,p=e+u,m=r+h,y=(d+p)/2,g=(f+m)/2,x=p-d,v=m-f,b=x*x+v*v,_=i-o,M=d*m-p*f,C=(v<0?-1:1)*ws(_s(0,_*_*b-M*M)),w=(M*v-x*C)/b,A=(-M*x-v*C)/b,E=(M*v+x*C)/b,k=(-M*x+v*C)/b,S=w-y,O=A-g,D=E-y,P=k-g;return S*S+O*O>D*D+P*P&&(w=E,A=k),{cx:w,cy:A,x01:-u,y01:-h,x11:w*(i/_-1),y11:A*(i/_-1)}}function Rs(){var t=Ps,n=Ls,e=os(0),r=null,i=Ts,o=js,a=$s,s=null;function l(){var l,c,u=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-ks,f=o.apply(this,arguments)-ks,p=xs(f-d),m=f>d;if(s||(s=l=es()),h<u&&(c=h,h=u,u=c),h>As)if(p>Ss-As)s.moveTo(h*bs(d),h*Cs(d)),s.arc(0,0,h,d,f,!m),u>As&&(s.moveTo(u*bs(f),u*Cs(f)),s.arc(0,0,u,f,d,m));else{var y,g,x=d,v=f,b=d,_=f,M=p,C=p,w=a.apply(this,arguments)/2,A=w>As&&(r?+r.apply(this,arguments):ws(u*u+h*h)),E=Ms(xs(h-u)/2,+e.apply(this,arguments)),k=E,S=E;if(A>As){var O=Ds(A/u*Cs(w)),D=Ds(A/h*Cs(w));(M-=2*O)>As?(b+=O*=m?1:-1,_-=O):(M=0,b=_=(d+f)/2),(C-=2*D)>As?(x+=D*=m?1:-1,v-=D):(C=0,x=v=(d+f)/2)}var P=h*bs(x),L=h*Cs(x),T=u*bs(_),j=u*Cs(_);if(E>As){var $,N=h*bs(v),z=h*Cs(v),R=u*bs(b),I=u*Cs(b);if(p<Es&&($=Ns(P,L,R,I,N,z,T,j))){var F=P-$[0],B=L-$[1],W=N-$[0],V=z-$[1],U=1/Cs(Os((F*W+B*V)/(ws(F*F+B*B)*ws(W*W+V*V)))/2),q=ws($[0]*$[0]+$[1]*$[1]);k=Ms(E,(u-q)/(U-1)),S=Ms(E,(h-q)/(U+1))}}C>As?S>As?(y=zs(R,I,P,L,h,S,m),g=zs(N,z,T,j,h,S,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),S<E?s.arc(y.cx,y.cy,S,vs(y.y01,y.x01),vs(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,S,vs(y.y01,y.x01),vs(y.y11,y.x11),!m),s.arc(0,0,h,vs(y.cy+y.y11,y.cx+y.x11),vs(g.cy+g.y11,g.cx+g.x11),!m),s.arc(g.cx,g.cy,S,vs(g.y11,g.x11),vs(g.y01,g.x01),!m))):(s.moveTo(P,L),s.arc(0,0,h,x,v,!m)):s.moveTo(P,L),u>As&&M>As?k>As?(y=zs(T,j,N,z,u,-k,m),g=zs(P,L,R,I,u,-k,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),k<E?s.arc(y.cx,y.cy,k,vs(y.y01,y.x01),vs(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,k,vs(y.y01,y.x01),vs(y.y11,y.x11),!m),s.arc(0,0,u,vs(y.cy+y.y11,y.cx+y.x11),vs(g.cy+g.y11,g.cx+g.x11),m),s.arc(g.cx,g.cy,k,vs(g.y11,g.x11),vs(g.y01,g.x01),!m))):s.arc(0,0,u,_,b,m):s.lineTo(T,j)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Es/2;return[bs(r)*e,Cs(r)*e]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),l):n},l.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:os(+t),l):e},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:os(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),l):i},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:os(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:os(+t),l):a},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function Is(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Fs(t){return t}function Bs(){var t=Fs,n=Is,e=null,r=os(0),i=os(Ss),o=os(0);function a(a){var s,l,c,u,h,d=(a=is(a)).length,f=0,p=new Array(d),m=new Array(d),y=+r.apply(this,arguments),g=Math.min(Ss,Math.max(-Ss,i.apply(this,arguments)-y)),x=Math.min(Math.abs(g)/d,o.apply(this,arguments)),v=x*(g<0?-1:1);for(s=0;s<d;++s)(h=m[p[s]=s]=+t(a[s],s,a))>0&&(f+=h);for(null!=n?p.sort((function(t,e){return n(m[t],m[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),s=0,c=f?(g-d*v)/f:0;s<d;++s,y=u)l=p[s],u=y+((h=m[l])>0?h*c:0)+v,m[l]={data:a[l],index:s,value:h,startAngle:y,endAngle:u,padAngle:x};return m}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:os(+t),a):o},a}function Ws(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}class Vs{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class Us{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0==this._point++)this._x0=t,this._y0=n;else{const e=Ws(this._x0,this._y0),r=Ws(this._x0,this._y0=(this._y0+n)/2),i=Ws(t,this._y0),o=Ws(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}}}function qs(t){return new Vs(t,!0)}function Hs(t){return new Vs(t,!1)}function Gs(t){return new Us(t)}function Ks(t){return t.source}function Ys(t){return t.target}function Xs(t){let n=Ks,e=Ys,r=ls,i=cs,o=null,a=null;function s(){let s;const l=rs.call(arguments),c=n.apply(this,l),u=e.apply(this,l);if(null==o&&(a=t(s=es())),a.lineStart(),l[0]=c,a.point(+r.apply(this,l),+i.apply(this,l)),l[0]=u,a.point(+r.apply(this,l),+i.apply(this,l)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.x=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),s):i},s.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),s):o},s}function Zs(){return Xs(qs)}function Qs(){return Xs(Hs)}function Js(){const t=Xs(Gs);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const tl=ws(3);var nl={draw(t,n){const e=.59436*ws(n+Ms(n/28,.75)),r=e/2,i=r*tl;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},el={draw(t,n){const e=ws(n/Es);t.moveTo(e,0),t.arc(0,0,e,0,Ss)}},rl={draw(t,n){const e=ws(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};const il=ws(1/3),ol=2*il;var al={draw(t,n){const e=ws(n/ol),r=e*il;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},sl={draw(t,n){const e=.62625*ws(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},ll={draw(t,n){const e=.87559*ws(n-Ms(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},cl={draw(t,n){const e=ws(n),r=-e/2;t.rect(r,r,e,e)}},ul={draw(t,n){const e=.4431*ws(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}};const hl=Cs(Es/10)/Cs(7*Es/10),dl=Cs(Ss/10)*hl,fl=-bs(Ss/10)*hl;var pl={draw(t,n){const e=ws(.8908130915292852*n),r=dl*e,i=fl*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=Ss*n/5,a=bs(o),s=Cs(o);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}};const ml=ws(3);var yl={draw(t,n){const e=-ws(n/(3*ml));t.moveTo(0,2*e),t.lineTo(-ml*e,-e),t.lineTo(ml*e,-e),t.closePath()}};const gl=ws(3);var xl={draw(t,n){const e=.6824*ws(n),r=e/2,i=e*gl/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}};const vl=-.5,bl=ws(3)/2,_l=1/ws(12),Ml=3*(_l/2+1);var Cl={draw(t,n){const e=ws(n/Ml),r=e/2,i=e*_l,o=r,a=e*_l+e,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(vl*r-bl*i,bl*r+vl*i),t.lineTo(vl*o-bl*a,bl*o+vl*a),t.lineTo(vl*s-bl*l,bl*s+vl*l),t.lineTo(vl*r+bl*i,vl*i-bl*r),t.lineTo(vl*o+bl*a,vl*a-bl*o),t.lineTo(vl*s+bl*l,vl*l-bl*s),t.closePath()}},wl={draw(t,n){const e=.6189*ws(n-Ms(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}};const Al=[el,rl,al,cl,pl,yl,Cl],El=[el,ll,wl,xl,nl,ul,sl];function kl(t,n){let e=null;function r(){let r;if(e||(e=r=es()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:os(t||el),n="function"==typeof n?n:os(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:os(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Sl(){}function Ol(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Dl(t){this._context=t}function Pl(t){return new Dl(t)}function Ll(t){this._context=t}function Tl(t){return new Ll(t)}function jl(t){this._context=t}function $l(t){return new jl(t)}function Nl(t,n){this._basis=new Dl(t),this._beta=n}Dl.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:Ol(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:Ol(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ll.prototype={areaStart:Sl,areaEnd:Sl,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)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Ol(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},jl.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Ol(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,s=n[e]-o,l=-1;++l<=e;)r=l/e,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*n[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var zl=function t(n){function e(t){return 1===n?new Dl(t):new Nl(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Rl(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Il(t,n){this._context=t,this._k=(1-n)/6}Il.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:Rl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Fl=function t(n){function e(t){return new Il(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Bl(t,n){this._context=t,this._k=(1-n)/6}Bl.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Wl=function t(n){function e(t){return new Bl(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Vl(t,n){this._context=t,this._k=(1-n)/6}Vl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ul=function t(n){function e(t){return new Vl(t,n)}return e.tension=function(n){return t(+n)},e}(0);function ql(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>As){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>As){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/u,a=(a*c+t._y1*t._l23_2a-e*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Hl(t,n){this._context=t,this._alpha=n}Hl.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:ql(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Gl=function t(n){function e(t){return n?new Hl(t,n):new Il(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Kl(t,n){this._context=t,this._alpha=n}Kl.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:ql(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yl=function t(n){function e(t){return n?new Kl(t,n):new Bl(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Xl(t,n){this._context=t,this._alpha=n}Xl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ql(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Zl=function t(n){function e(t){return n?new Xl(t,n):new Vl(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Ql(t){this._context=t}function Jl(t){return new Ql(t)}function tc(t){return t<0?-1:1}function nc(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(tc(o)+tc(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ec(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function rc(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*n,o-s,a-s*e,o,a)}function ic(t){this._context=t}function oc(t){this._context=new ac(t)}function ac(t){this._context=t}function sc(t){return new ic(t)}function lc(t){return new oc(t)}function cc(t){this._context=t}function uc(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function hc(t){return new cc(t)}function dc(t,n){this._context=t,this._t=n}function fc(t){return new dc(t,.5)}function pc(t){return new dc(t,0)}function mc(t){return new dc(t,1)}function yc(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],s=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<s;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function gc(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function xc(t,n){return t[n]}function vc(t){const n=[];return n.key=t,n}function bc(){var t=os([]),n=gc,e=yc,r=xc;function i(i){var o,a,s=Array.from(t.apply(this,arguments),vc),l=s.length,c=-1;for(const t of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=is(n(s));o<l;++o)s[a[o]].index=o;return e(s,a),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:os(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?gc:"function"==typeof t?t:os(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?yc:t,i):e},i}function _c(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}yc(t,n)}}function Mc(t,n){if((s=t.length)>0)for(var e,r,i,o,a,s,l=0,c=t[n[0]].length;l<c;++l)for(o=a=0,e=0;e<s;++e)(i=(r=t[n[e]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function Cc(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<e;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}yc(t,n)}}function wc(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=t[n[s]],h=u[a][1]||0,d=(h-(u[a-1][1]||0))/2,f=0;f<s;++f){var p=t[n[f]];d+=(p[a][1]||0)-(p[a-1][1]||0)}l+=h,c+=d*h}e[a-1][1]+=e[a-1][0]=o,l&&(o-=c/l)}e[a-1][1]+=e[a-1][0]=o,yc(t,n)}}function Ac(t){var n=t.map(Ec);return gc(t).sort((function(t,e){return n[t]-n[e]}))}function Ec(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function kc(t){var n=t.map(Sc);return gc(t).sort((function(t,e){return n[t]-n[e]}))}function Sc(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function Oc(t){return kc(t).reverse()}function Dc(t){var n,e,r=t.length,i=t.map(Sc),o=Ac(t),a=0,s=0,l=[],c=[];for(n=0;n<r;++n)e=o[n],a<s?(a+=i[e],l.push(e)):(s+=i[e],c.push(e));return c.reverse().concat(l)}function Pc(t){return gc(t).reverse()}Ql.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},ic.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:rc(this,this._t0,ec(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,rc(this,ec(this,e=nc(this,t,n)),e);break;default:rc(this,this._t0,e=nc(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(oc.prototype=Object.create(ic.prototype)).point=function(t,n){ic.prototype.point.call(this,n,t)},ac.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=uc(t),i=uc(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},dc.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};const Lc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,Tc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),jc=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),$c=t=>`curve${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`,Nc=t=>{const{interpolation:n}=t;if("function"==typeof n)return n;if("string"==typeof n){const{polar:e,openCurve:r=!e}=t,i=r?$c(n):(t=>`${$c(t)}Closed`)(n);return u[i]}return ss},zc=t=>{const{polar:n,scale:e,horizontal:r}=t;return n?ys().defined(Lc).curve(Nc(t)).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).radius(jc(e)):us().defined(Lc).curve(Nc(t)).x(r?jc(e):Tc(e)).y(r?Tc(e):jc(e))};function Rc(){return Rc=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Rc.apply(this,arguments)}const Ic=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("path",Rc({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("path",Rc({},s,{ref:n}))})),Fc={startsWith:["data-","aria-"],exactMatch:[]};function Bc(t,n){if(null==t)throw new Error(n)}const Wc=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return Fc.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>Fc.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,nt(r,t)]})))},Vc=(t,n)=>A.cloneElement(t,Wc(n)),Uc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,qc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),Hc=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),Gc=t=>n=>t.y(n._y0),Kc={groupComponent:E().createElement("g",null),pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Yc=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({fill:"black"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Kc)),{ariaLabel:e,role:r,shapeRendering:i,className:o,polar:a,origin:s,data:l,pathComponent:c,events:u,groupComponent:h,clipPath:d,id:f,style:p,desc:m,tabIndex:y}=n,g=Wc(n),x=a&&s?`translate(${s.x}, ${s.y})`:void 0,v=n.transform||x,b=p.stroke&&"none"!==p.stroke&&"transparent"!==p.stroke,_=(t=>{const{polar:n,scale:e}=t,r=Nc(t);return n?gs().defined(Uc).curve(r).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).outerRadius(Hc(e)).innerRadius(Gc(e)):(t=>{const{horizontal:n,scale:e}=t,r=Nc(t);return n?hs().defined(Uc).curve(r).x0(Gc(e)).x1(Hc(e)).y(qc(e)):hs().defined(Uc).curve(r).x(qc(e)).y1(Hc(e)).y0(Gc(e))})(t)})(n),M=b&&zc(n),C=p.stroke?"none":p.fill,w={"aria-label":e,className:o,role:r,shapeRendering:i,transform:v,...u,clipPath:d,tabIndex:y},A=E().cloneElement(c,Object.assign({key:`${f}-area`,style:Object.assign({},p,{stroke:C}),d:_(l),desc:m,tabIndex:y},w,g)),k=b?E().cloneElement(c,Object.assign({key:`${f}-area-stroke`,style:Object.assign({},p,{fill:"none"}),d:M(l)},w)):null;return b?E().cloneElement(h,g,[A,k]):A};var Xc=r(660),Zc=r.n(Xc);function Qc(){return Qc=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Qc.apply(this,arguments)}const Jc=E().forwardRef(((t,n)=>E().createElement("svg",Qc({ref:n},t))));function tu(t){return n=>{t.forEach((t=>{ct(t)?t(n):null!=t&&(t.current=n)}))}}const nu=E().createContext(void 0);nu.displayName="PortalContext";const eu=()=>E().useContext(nu),ru=t=>{let{children:n}=t;const[e,r]=E().useState(new Map),i=E().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),o=E().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=E().useMemo((()=>({addChild:i,removeChild:o,children:e})),[i,o,e]);return E().createElement(nu.Provider,{value:a},n)},iu=t=>{let{as:n,...e}=t;const r=eu();if(!r)return null;const i=Array.from(r.children.values());return E().cloneElement(n,e,i)};function ou(){return ou=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ou.apply(this,arguments)}const au={className:"VictoryContainer",portalComponent:E().createElement(Jc,null),portalZIndex:99,responsive:!0,role:"img"};function su(t){const n={...au,...t},{title:e,desc:r,width:i,height:o,responsive:a}=n,s=(0,A.useRef)(null),l=(0,A.useRef)(Zc()("victory-container-")),c=n.containerId??l.current,u=t=>`${c}-${t}`,h=Wc(n),d=a?{width:"100%",height:"100%"}:{width:i,height:o},f=a?`0 0 ${i} ${o}`:void 0,p=a?n.preserveAspectRatio:void 0,m=[e&&u("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,y=[r&&u("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,g=u("title"),x=u("desc");return{...n,titleId:g,descId:x,dimensions:d,viewBox:f,preserveAspectRatio:p,ariaLabelledBy:m,ariaDescribedBy:y,userProps:h,localContainerRef:s}}const lu=t=>{const{role:n,title:e,desc:r,children:i,className:o,portalZIndex:a,portalComponent:s,width:l,height:c,style:u,tabIndex:h,responsive:d,events:f,ouiaId:p,ouiaSafe:m,ouiaType:y,dimensions:g,ariaDescribedBy:x,ariaLabelledBy:v,viewBox:b,preserveAspectRatio:_,userProps:M,titleId:C,descId:w,containerRef:A,localContainerRef:k}=su(t);return E().useEffect((()=>{if(!f?.onWheel)return;const t=t=>t.preventDefault(),n=k?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),E().createElement("div",{className:o,style:{...u,width:d?u?.width:g.width,height:d?u?.height:g.height,pointerEvents:u?.pointerEvents??"none",touchAction:u?.touchAction??"none",position:u?.position??"relative"},"data-ouia-component-id":p,"data-ouia-component-type":y,"data-ouia-safe":m,ref:tu([k,A])},E().createElement(ru,null,E().createElement("svg",ou({width:l,height:c,tabIndex:h,role:n,"aria-labelledby":v,"aria-describedby":x,viewBox:b,preserveAspectRatio:_,style:{...g,pointerEvents:"all"}},M,f),e?E().createElement("title",{id:C},e):null,r?E().createElement("desc",{id:w},r):null,i),E().createElement("div",{style:{...g,zIndex:a,position:"absolute",top:0,left:0}},E().createElement(iu,{as:s,width:l,height:c,viewBox:b,preserveAspectRatio:_,style:{...g,overflow:"visible"}}))))};lu.role="container";const cu=t=>E().createElement("defs",null,E().createElement("clipPath",{id:t.clipId?.toString()},t.children));function uu(){return uu=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},uu.apply(this,arguments)}const hu=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("circle",uu({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("circle",uu({},s,{ref:n}))}));function du(){return du=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},du.apply(this,arguments)}const fu=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("rect",du({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("rect",du({},s,{ref:n}))}));class pu extends E().Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:E().createElement(hu,null),rectComponent:E().createElement(fu,null),clipPathComponent:E().createElement(cu,null),groupComponent:E().createElement("g",null)};constructor(t){super(t),this.state={clipId:t?.clipId}}componentDidMount(){this.state.clipId||this.setState({clipId:Zc()("victory-clip-")})}calculateAttributes(t){const{polar:n,origin:e,clipWidth:r=0,clipHeight:i=0,translateX:o=0,translateY:a=0}=t,s=Z(t.clipPadding),l=t.radius||ot(t);return{x:(n?e.x:o)-s.left,y:(n?e.y:a)-s.top,width:Math.max((n?l:r)+s.left+s.right,0),height:Math.max((n?l:i)+s.top+s.bottom,0)}}renderClippedGroup(t,n){const e=Wc(t),{style:r,events:i,transform:o,children:a,className:s,groupComponent:l,tabIndex:c}=t,u=this.renderClipComponent(t,n),h=Object.assign({className:s,style:r,transform:o,key:`clipped-group-${n}`,clipPath:`url(#${n})`},i);return E().cloneElement(l,{...h,tabIndex:c,...e},[u,...E().Children.toArray(a)])}renderGroup(t){const{style:n,events:e,transform:r,children:i,className:o,groupComponent:a,tabIndex:s}=t;return E().cloneElement(a,Object.assign({className:o,style:n,transform:r,"aria-label":t["aria-label"],tabIndex:s},e),i)}renderClipComponent(t,n){const{polar:e,origin:r,clipWidth:i=0,clipHeight:o=0,translateX:a=0,translateY:s=0,circleComponent:l,rectComponent:c,clipPathComponent:u}=t,{top:h,bottom:d,left:f,right:p}=Z(t.clipPadding);let m;if(e){const n=t.radius||ot(t),e={r:Math.max(n+f+p,n+h+d,0),cx:r.x-f,cy:r.y-h};m=E().cloneElement(l,e)}else{const t={x:a-f,y:s-h,width:Math.max(i+f+p,0),height:Math.max(o+h+d,0)};m=E().cloneElement(c,t)}return E().cloneElement(u,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),m)}getClipValue(t,n){const e={x:t.clipWidth,y:t.clipHeight};if(void 0!==e[n])return e[n];const r=st(t,n);return r&&Math.abs(r[0]-r[1])||void 0}getTranslateValue(t,n){const e={x:t.translateX,y:t.translateY};if(void 0!==e[n])return e[n];const r=st(t,n);return r?Math.min(...r):void 0}render(){const t=this.getClipValue(this.props,"y"),n=this.getClipValue(this.props,"x");if(void 0===n||void 0===t)return this.renderGroup(this.props);const e=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),i=U()({},this.props,{clipHeight:t,clipWidth:n,translateX:e,translateY:r});return this.renderClippedGroup(i,this.state.clipId)}}function mu(t){}const yu={groupComponent:E().createElement("g",null)},gu=t=>{const n={...yu,...t},[e]=(0,A.useState)(Zc()()),r=eu(),i=Array.isArray(n.children)?n.children[0]:n.children,{groupComponent:o}=n,a=i&&i.props||{},s=a.groupComponent?{groupComponent:o,standalone:!1}:{},l=U()(s,a,K(n,["children","groupComponent"]),{key:a.key??e}),c=i&&E().cloneElement(i,l);return E().useEffect((()=>{r?.addChild(e,c)}),[n.children]),E().useEffect((()=>()=>r?.removeChild(e)),[]),r?null:c};gu.role="portal";const xu=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:o,title:a,...s}=t,l={id:nt(r,t)?.toString(),tabIndex:nt(o,t),...s};return E().createElement("text",l,a&&E().createElement("title",null,a),e&&E().createElement("desc",null,e),n)},vu=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...o}=t,a={id:nt(e,t)?.toString(),tabIndex:nt(r,t),...o};return E().createElement("tspan",a)},bu=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],_u="#252525",Mu="#969696",Cu={width:450,height:300,padding:50,colorScale:bu},wu={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:_u,stroke:"transparent"},Au=Object.assign({textAnchor:"middle"},wu),Eu={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:bu,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:_u},labels:wu}},Cu),axis:Object.assign({style:{axis:{fill:"transparent",stroke:_u,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},Au,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:wu}},Cu),bar:Object.assign({style:{data:{fill:_u,padding:8,strokeWidth:0},labels:wu}},Cu),boxplot:Object.assign({style:{max:{padding:8,stroke:_u,strokeWidth:1},maxLabels:Object.assign({},wu,{padding:3}),median:{padding:8,stroke:_u,strokeWidth:1},medianLabels:Object.assign({},wu,{padding:3}),min:{padding:8,stroke:_u,strokeWidth:1},minLabels:Object.assign({},wu,{padding:3}),q1:{padding:8,fill:Mu},q1Labels:Object.assign({},wu,{padding:3}),q3:{padding:8,fill:Mu},q3Labels:Object.assign({},wu,{padding:3})},boxWidth:20},Cu),candlestick:Object.assign({style:{data:{stroke:_u,strokeWidth:1},labels:Object.assign({},wu,{padding:5})},candleColors:{positive:"#ffffff",negative:_u}},Cu),chart:Cu,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:_u,strokeWidth:2},labels:wu}},Cu),group:Object.assign({colorScale:bu},Cu),histogram:Object.assign({style:{data:{fill:Mu,stroke:_u,strokeWidth:2},labels:wu}},Cu),legend:{colorScale:bu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:wu,title:Object.assign({},wu,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:_u,strokeWidth:2},labels:wu}},Cu),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},wu,{padding:20})},colorScale:bu,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:_u,stroke:"transparent",strokeWidth:0},labels:wu}},Cu),stack:Object.assign({colorScale:bu},Cu),tooltip:{style:Object.assign({},wu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:_u,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},wu,{padding:5,pointerEvents:"none"}),flyout:{stroke:_u,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Cu)},ku="#FFF59D",Su="#F4511E",Ou="#8BC34A",Du="#00796B",Pu="#006064",Lu=[Su,ku,"#DCE775",Ou,Du,Pu],Tu="#ECEFF1",ju="#90A4AE",$u="#455A64",Nu="#212121",zu={blue:"#4F7DA1",pink:"#E2A37F",teal:Du,purple:"#DF948A",green:Ou,orange:Su,cyan:Pu,red:"#DF5A49",yellow:ku},Ru=[Tu,ju,$u,Nu],Iu={width:350,height:350,padding:50},Fu={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:$u,stroke:"transparent",strokeWidth:0},Bu=Object.assign({textAnchor:"middle"},Fu),Wu="round",Vu="round",Uu={palette:{colors:zu,grayscale:Ru,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:Nu},labels:Fu}},Iu),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ju,strokeWidth:2,strokeLinecap:Wu,strokeLinejoin:Vu},axisLabel:Object.assign({},Bu,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Tu,strokeDasharray:"10, 5",strokeLinecap:Wu,strokeLinejoin:Vu,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ju,strokeWidth:1,strokeLinecap:Wu,strokeLinejoin:Vu},tickLabels:Object.assign({},Fu,{fill:$u})}},Iu),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:$u,padding:8,strokeWidth:0},labels:Fu}},Iu),boxplot:Object.assign({style:{max:{padding:8,stroke:$u,strokeWidth:1},maxLabels:Object.assign({},Fu,{padding:3}),median:{padding:8,stroke:$u,strokeWidth:1},medianLabels:Object.assign({},Fu,{padding:3}),min:{padding:8,stroke:$u,strokeWidth:1},minLabels:Object.assign({},Fu,{padding:3}),q1:{padding:8,fill:$u},q1Labels:Object.assign({},Fu,{padding:3}),q3:{padding:8,fill:$u},q3Labels:Object.assign({},Fu,{padding:3})},boxWidth:20},Iu),candlestick:Object.assign({style:{data:{stroke:$u},labels:Object.assign({},Fu,{padding:5})},candleColors:{positive:"#ffffff",negative:$u}},Iu),chart:Iu,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:$u,strokeWidth:2},labels:Fu}},Iu),group:Object.assign({colorScale:Lu},Iu),histogram:Object.assign({style:{data:{fill:$u,stroke:Nu,strokeWidth:2},labels:Fu}},Iu),legend:{colorScale:Lu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Fu,title:Object.assign({},Fu,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:$u,strokeWidth:2},labels:Fu}},Iu),pie:Object.assign({colorScale:Lu,style:{data:{padding:8,stroke:Tu,strokeWidth:1},labels:Object.assign({},Fu,{padding:20})}},Iu),scatter:Object.assign({style:{data:{fill:$u,opacity:1,stroke:"transparent",strokeWidth:0},labels:Fu}},Iu),stack:Object.assign({colorScale:Lu},Iu),tooltip:{style:Object.assign({},Fu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Nu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Fu,{padding:5,pointerEvents:"none"}),flyout:{stroke:Nu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Iu)},qu="#FFFFFF",Hu="#F2F2F2",Gu="#E0E0E0",Ku="#D1D1D1",Yu="#757575",Xu="#424242",Zu="#292929",Qu="#FCB400",Ju="#FF6F2C",th={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},nh="#8B46FF",eh={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},rh="#18BFFF",ih="#20D9D2",oh={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},ah={blue:eh[500],cyan:rh,green:oh[500],yellow:Qu,orange:Ju,red:th[500],purple:nh,teal:ih},sh=Object.values(ah),lh=[Hu,Gu,Yu,Xu,Zu],ch=["#FFD66E",Qu,Ju,"#D74D26",th[500]],uh=[nh,eh[500],rh,ih,oh[500]],hh=[oh[900],oh[500],Qu,Ju,th[500]],dh=Object.values(th),fh=Object.values(oh),ph=Object.values(eh),mh=eh[500],yh={width:450,height:300,padding:60,colorScale:sh},gh={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:Zu,stroke:"transparent"},xh=Object.assign({textAnchor:"middle"},gh),vh="10, 5",bh="round",_h="round",Mh={grayscale:Eu,material:Uu,clean:{palette:{colors:ah,grayscale:lh,qualitative:sh,heatmap:hh,warm:ch,cool:uh,red:dh,green:fh,blue:ph},area:Object.assign({style:{data:{fill:mh,strokeWidth:2,fillOpacity:.5},labels:gh}},yh),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Yu,strokeWidth:1,strokeLinecap:bh,strokeLinejoin:_h},axisLabel:Object.assign({},xh,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:gh}},yh),polarAxis:Object.assign({style:{axis:{stroke:Yu},grid:{stroke:Ku,strokeDasharray:vh,strokeLinecap:bh,strokeLinejoin:_h,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ku,strokeWidth:1,strokeLinecap:bh,strokeLinejoin:_h},tickLabels:gh}}),polarDependentAxis:Object.assign({style:{axis:{stroke:Yu},grid:{stroke:Ku,strokeDasharray:vh,strokeLinecap:bh,strokeLinejoin:_h,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Gu,strokeWidth:1,strokeLinecap:bh,strokeLinejoin:_h},tickLabels:gh}}),bar:Object.assign({style:{data:{fill:mh,padding:8,strokeWidth:1,fillOpacity:.5},labels:gh},cornerRadius:{top:1}},yh),boxplot:Object.assign({style:{max:{padding:8,stroke:Ku,strokeWidth:2},maxLabels:Object.assign({},gh,{padding:3}),median:{padding:8,stroke:qu,strokeWidth:2},medianLabels:Object.assign({},gh,{padding:3}),min:{padding:8,stroke:Ku,strokeWidth:2},minLabels:Object.assign({},gh,{padding:3}),q1:{padding:8,fill:sh[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},gh,{padding:3}),q3:{padding:8,fill:sh[1],rx:1},q3Labels:Object.assign({},gh,{padding:3})},boxWidth:20},yh),candlestick:Object.assign({style:{data:{stroke:Gu,strokeWidth:0,rx:1},labels:Object.assign({},gh,{padding:5})},candleColors:{positive:oh[500],negative:th[500]},wickStrokeWidth:2},yh),chart:yh,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Xu,strokeWidth:2,strokeLinecap:bh},labels:gh}},yh),group:Object.assign({colorScale:sh},yh),histogram:Object.assign({style:{data:{fill:rh,fillOpacity:.5},labels:gh},binSpacing:4,cornerRadius:{top:1}},yh),label:gh,legend:{colorScale:sh,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...gh,fontSize:12},title:Object.assign({},gh,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:mh,strokeWidth:2,strokeLinecap:bh,strokeLinejoin:_h},labels:gh}},yh),pie:Object.assign({style:{parent:{backgroundColor:qu},data:{padding:8,stroke:qu,strokeWidth:1},labels:{...gh,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:sh,cornerRadius:1},yh),scatter:Object.assign({style:{data:{fill:mh,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...gh,padding:20}}},yh),stack:Object.assign({colorScale:sh},yh),tooltip:{style:Object.assign({},gh,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Gu,strokeWidth:2,fill:qu,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:eh[100],stroke:mh,strokeWidth:2},labels:Object.assign({},gh,{padding:5,pointerEvents:"none"}),flyout:{stroke:Zu,strokeWidth:1,fill:Hu,pointerEvents:"none"},padding:{left:2,bottom:2}}},yh)}},Ch=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce(((t,n)=>[t,Ch(n)].join(" ")),Ch(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];i.push(`${n}(${e})`)}return i.join(" ").trim()};function wh(t,n){void 0===n&&(n=Mh.material);const{palette:{grayscale:e=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:i=[],warm:o=[],cool:a=[],red:s=[],blue:l=[],green:c=[]}={}}=n,u={grayscale:e,qualitative:r,heatmap:i,warm:o,cool:a,red:s,blue:l,green:c};return t&&u[t]?.length?u[t]:u.grayscale}var Ah=r(1594),Eh=r.n(Ah);const kh={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Sh={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Oh={em:1,ex:.5},Dh={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Ph=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Lh=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Th=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?Sh.hasOwnProperty(e)?r*Sh[e]:Oh.hasOwnProperty(e)?(n?r*n:r*Dh.fontSize)*Oh[e]:r:r||0,i},jh=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=U()({},e,Dh);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Th(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Th(String(r.fontSize))})},$h=(t,n)=>{const e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=((t,n)=>void 0===t||""===t||null===t?0:Ph(t).reduce(((t,e,r)=>{const i=jh(n,r),o=e.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,n),i=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=Ph(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=jh(n,e),s=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>kh[t]))||"Helvetica";return kh[n]})(a),l=t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,n)=>n+t),0)*i;return l+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?Lh(i,r,e):i,height:1.05*(e?Lh(r,i,e):r)}},Nh=Eh()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(n),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),n})),zh=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",Rh=Eh()(((t,n)=>{let e=Nh();e.isConnected||(Nh.cache.clear?.(),e=Nh());const r=Ph(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=jh(n,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),e.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?Lh(o,i,n?.angle):o,height:n?.angle?Lh(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(zh).join():zh(n)}`)),Ih={impl:function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?$h(t,n):Rh(t,n)}},Fh=(t,n)=>Ih.impl(t,n),Bh={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Wh=(t,n)=>t.datum?X(t,t.datum)[n]:0,Vh=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return Bh.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?Bh.fontSize:t}return Bh.fontSize},Uh=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},qh=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!S()(n)||Array.isArray(e)&&!S()(e)},Hh=(t,n)=>{const{direction:e,textAnchor:r,x:i,dx:o}=t;if("rtl"===e)return i-n;switch(r){case"middle":return Math.round(i-n/2);case"end":return Math.round(i-n);default:return i+(o||0)}},Gh=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:i=0}=t,o=r+i;switch(e){case"start":return Math.floor(o);case"end":return Math.ceil(o-n);default:return Math.floor(o-n/2)}},Kh=(t,n)=>qh(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:c}=t,u=n.map(((t,i)=>{const o=Uh(n,i-1),s=t.textSize,u=t.fontSize*t.lineHeight,h=Math.ceil(u),d=Uh(a,i),f=Uh(a,i-1),p=l&&r||0,m=i&&!l?o.fontSize*o.lineHeight+f.top+f.bottom:e-.5*u-(t.fontSize-t.capHeight);return{textHeight:h,labelSize:s,heightWithPadding:h+d.top+d.bottom,widthWithPadding:s.width+d.left+d.right+p,y:c,fontSize:t.fontSize,dy:m}}));return u.map(((n,e)=>{const r=Hh(t,n.labelSize.width),h=u.slice(0,e+1).reduce(((t,n)=>t+n.dy),c),d=Uh(a,e),f=n.heightWithPadding,p=l?((t,n,e)=>{const{textAnchor:r}=t,i=n.map((t=>t.widthWithPadding)),o=-i.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return i.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return i.reduce(((t,n,r)=>r>e?t-n:t),0);default:return i.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),o)}})(t,u,e)+r-d.left:r,m=l?Gh(t,f)-d.top:h,y={key:`tspan-background-${e}`,height:f,style:Uh(o,e),width:n.widthWithPadding,transform:i,x:p-d.left,y:m};return E().cloneElement(s,U()({},s.props,y))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=t,c=n.map((t=>t.textSize)),u=a?Math.max(...c.map((t=>t.height))):c.reduce(((t,e,r)=>{const i=r?0:l/2;return t+e.height*(n[r].lineHeight-i)}),0),h=a?c.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...c.map((t=>t.width))),d=Hh(t,h),f=Gh(t,u),p={key:"background",height:u+s.top+s.bottom,style:o,transform:r,width:h+s.left+s.right,x:a?d-s.left:d+e-s.left,y:f};return E().cloneElement(i,U()({},i.props,p))})(t,n),Yh=(t,n,e)=>{const{inline:r}=n,i=Uh(t,e);return e&&!r?((t,n,e)=>{const r=Uh(t,n),i=Uh(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return qh(e)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},Xh={backgroundComponent:E().createElement(fu,null),groupComponent:E().createElement("g",null),direction:"inherit",textComponent:E().createElement(xu,null),tspanComponent:E().createElement(vu,null),capHeight:.71,lineHeight:1},Zh=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>nt(t,n)));const e=nt(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),e=((t,n)=>{if(n.disableInlineStyles){const e=et(t,n);return{fontSize:Vh(e)}}const e=t=>{const e=et(t?U()({},t,Bh):Bh,n);return Object.assign({},e,{fontSize:Vh(e)})};return Array.isArray(t)&&!S()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!S()(t)?t.map((t=>et(t,n))):et(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>Z(nt(n,t)))):Z(nt(t.backgroundPadding,t)))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=nt(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})(U()({},t,Xh));if(null===n.text||void 0===n.text)return null;const e=(t=>{const n=nt(t.ariaLabel,t),e=Uh(t.style),r=(t=>{const n=nt(t.lineHeight,t);return Array.isArray(n)&&S()(n)?[1]:n})(t),i=t.direction?nt(t.direction,t):"inherit",o=t.textAnchor?nt(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?nt(t.verticalAnchor,t):e.verticalAnchor||"middle",s=t.dx?nt(t.dx,t):0,l=((t,n,e)=>{const r=t.dy?nt(t.dy,t):0,i=t.inline?1:t.text.length,o=nt(t.capHeight,t),a=n?nt(n,t):"middle",s=[...Array(i).keys()].map((n=>Uh(t.style,n).fontSize)),l=[...Array(i).keys()].map((t=>Uh(e,t)));if("start"===a)return r+(o/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*l[n])*s[n]/i),0);return"end"===a?r+c:r+c/2+o/2*l[i-1]*s[i-1]})(t,a,r),c=void 0!==t.x?t.x:Wh(t,"x"),u=void 0!==t.y?t.y:Wh(t,"y"),h=((t,n,e)=>{const{polar:r}=t,i=Uh(t.style),o=r?Ga(t):0,a=void 0===i.angle?nt(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&nt(l,t);return c||s?Ch(c,s&&{rotate:[s,n,e]}):void 0})(t,c,u);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:nt(t.dy,t),transform:h,x:c,y:u})})(n),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=e,l=r.map(((t,n)=>{const e=Uh(i,n),r=Th(`${o}em`,e.fontSize),l=Uh(s,n);return{style:e,fontSize:e.fontSize||Bh.fontSize,capHeight:r,text:t,textSize:Fh(t,e),lineHeight:l,backgroundPadding:Uh(a,n)}})),c=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:h,transform:d,x:f,y:p,desc:m,id:y,tabIndex:g,tspanComponent:x,textComponent:v}=t,b=Wc(t),_={"aria-label":e,key:"text",...a,direction:s,dx:u,x:f,y:p+h,transform:d,className:i,title:o,desc:nt(m,t),tabIndex:nt(g,t),id:y,...b},M=l.map(((e,i)=>{const o=n[i].style,a={key:`${y}-key-${i}`,x:r?void 0:f,dx:r?u+n[i].backgroundPadding.left:u,dy:Yh(n,t,i),textAnchor:o.textAnchor||c,style:o,children:e};return E().cloneElement(x,a)}));return E().cloneElement(v,_,M)})(e,l);if(n.backgroundStyle){const t=[Kh(e,l),c],r=E().cloneElement(n.groupComponent,{},t);return n.renderInPortal?E().createElement(gu,null,r):r}return n.renderInPortal?E().createElement(gu,null,c):c};function Qh(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Jh(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}}}function td(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}}}Zh.displayName="VictoryLabel",Zh.role="label",Zh.defaultStyles=Bh;var nd=r(7491),ed=r.n(nd);const rd=t=>+t;function id(t){return t*t}function od(t){return t*(2-t)}function ad(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function sd(t){return t*t*t}function ld(t){return--t*t*t+1}function cd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ud=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),hd=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),dd=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),fd=Math.PI,pd=fd/2;function md(t){return 1==+t?1:1-Math.cos(t*pd)}function yd(t){return Math.sin(t*pd)}function gd(t){return(1-Math.cos(fd*t))/2}function xd(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function vd(t){return xd(1-+t)}function bd(t){return 1-xd(t)}function _d(t){return((t*=2)<=1?xd(1-t):2-xd(t-1))/2}function Md(t){return 1-Math.sqrt(1-t*t)}function Cd(t){return Math.sqrt(1- --t*t)}function wd(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Ad=7.5625;function Ed(t){return 1-kd(1-t)}function kd(t){return(t=+t)<.36363636363636365?Ad*t*t:t<.7272727272727273?Ad*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Ad*(t-=.8181818181818182)*t+.9375:Ad*(t-=.9545454545454546)*t+.984375}function Sd(t){return((t*=2)<=1?1-kd(1-t):kd(t-1)+1)/2}var Od=1.70158,Dd=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Od),Pd=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Od),Ld=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Od),Td=2*Math.PI,jd=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Td);function i(t){return n*xd(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Td)},i.period=function(e){return t(n,e)},i}(1,.3),$d=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Td);function i(t){return 1-n*xd(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Td)},i.period=function(e){return t(n,e)},i}(1,.3),Nd=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Td);function i(t){return((t=2*t-1)<0?n*xd(-t)*Math.sin((r-t)/e):2-n*xd(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Td)},i.period=function(e){return t(n,e)},i}(1,.3);const zd=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||L()(t)}return!1},Rd=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},Id=function(t,n){return function(e){return e>=1?n:function(){const r="function"==typeof t?t.apply(this,arguments):t,i="function"==typeof n?n.apply(this,arguments):n;return Gn(r,i)(e)}}},Fd=function(t,n){const e=(t,n)=>t!==n&&zd(t)&&zd(n)?"function"==typeof t||"function"==typeof n?Id(t,n):"object"==typeof t&&L()(t)||"object"==typeof n&&L()(n)?Fd(t,n):Gn(t,n):Rd(t,n),r=t=>Array.isArray(t)?R()(t,"key"):t,i={},o={};let a,s=t,l=n;for(a in null!==s&&"object"==typeof s||(s={}),null!==l&&"object"==typeof l||(l={}),l)a in s?i[a]=e(r(s[a]),r(l[a])):o[a]=l[a];return function(t){for(a in i)o[a]=i[a](t);return o}};var Bd,Wd,Vd=0,Ud=0,qd=0,Hd=0,Gd=0,Kd=0,Yd="object"==typeof performance&&performance.now?performance:Date,Xd="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Zd(){return Gd||(Xd(Qd),Gd=Yd.now()+Kd)}function Qd(){Gd=0}function Jd(){this._call=this._time=this._next=null}function tf(t,n,e){var r=new Jd;return r.restart(t,n,e),r}function nf(){Gd=(Hd=Yd.now())+Kd,Vd=Ud=0;try{!function(){Zd(),++Vd;for(var t,n=Bd;n;)(t=Gd-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Vd}()}finally{Vd=0,function(){for(var t,n,e=Bd,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Bd=n);Wd=t,rf(r)}(),Gd=0}}function ef(){var t=Yd.now(),n=t-Hd;n>1e3&&(Kd-=n,Hd=t)}function rf(t){Vd||(Ud&&(Ud=clearTimeout(Ud)),t-Gd>24?(t<1/0&&(Ud=setTimeout(nf,t-Yd.now()-Kd)),qd&&(qd=clearInterval(qd))):(qd||(Hd=Yd.now(),qd=setInterval(ef,1e3)),Vd=1,Xd(nf)))}Jd.prototype=tf.prototype={constructor:Jd,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Zd():+e)+(null==n?0:+n),this._next||Wd===this||(Wd?Wd._next=this:Bd=this,Wd=this),this._call=t,this._time=e,rf()},stop:function(){this._call&&(this._call=null,this._time=1/0,rf())}};class of{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(Zd()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=tf(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:Zd(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),e}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const af=E().createContext({transitionTimer:new of,animationTimer:new of});af.displayName="TimerContext";var sf=af;const lf=1e3,cf=t=>{let{duration:n=lf,easing:e="quadInOut",delay:r=0,data:i,children:o,onEnd:a}=t;const[s,l]=E().useState({data:Array.isArray(i)?i[0]:i,animationInfo:{progress:0,animating:!1}}),c=E().useContext(sf).animationTimer,u=E().useRef(Array.isArray(i)?i.slice(1):[]),h=E().useRef(null),d=E().useRef(void 0),f=g[(p=e,`ease${p.charAt(0).toUpperCase()+p.slice(1)}`)];var p;E().useEffect((()=>(u.current.length&&m(),()=>{d.current?c.unsubscribe(d.current):c.stop()})),[]),E().useEffect((()=>{h.current&&s.animationInfo&&s.animationInfo.progress<1?l({data:h.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(c.unsubscribe(d.current),u.current=Array.isArray(i)?i:[i],m())}),[i]);const m=()=>{if(u.current.length){const t=u.current[0];h.current=function(t,n){return t!==n&&zd(t)&&zd(n)?"function"==typeof t||"function"==typeof n?Id(t,n):L()(t)||L()(n)?Fd(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return Gn(e(t),e(n))}(t,n):Gn(t,n):Rd(t,n)}(s.data,t),r?setTimeout((()=>{d.current=c.subscribe(y,n)}),r):d.current=c.subscribe(y,n)}else a&&a()},y=t=>{if(!h.current)return;const e=n?t/n:1;if(e>=1)return l({data:h.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),d.current&&c.unsubscribe(d.current),u.current.shift(),void m();l({data:h.current(f(e)),animationInfo:{progress:e,animating:e<1}})};return o(s.data,s.animationInfo)};var uf=r(5346),hf=r.n(uf);function df(t,n){return(t.key||n).toString()}function ff(t){return t.reduce(((t,n,e)=>(t[df(n,e)]=n,t)),{})}function pf(t,n){let e=!1;const r=Object.keys(t).reduce(((t,r)=>(r in n||(e=!0,t[r]=!0),t)),{});return e&&r}function mf(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function yf(t,n){let e=!1,r=!1;const i=(t,n)=>t.map(((o,a)=>o&&o.props&&o.props.children&&n[a]?i(E().Children.toArray(t[a].props.children),E().Children.toArray(n[a].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:i,exiting:o}=function(t,n){const e=t&&ff(t),r=n&&ff(n);return{entering:e&&pf(r,e),exiting:r&&pf(e,r)}}(mf(t),mf(n))||{};return e=e||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(o,n[a]))),o=i(E().Children.toArray(t),E().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function gf(t,n,e){const r=n&&n.nodesWillExit,i=n&&n.nodesWillEnter,o=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,s=n&&n.nodesDoneLoad,l=n&&n.childrenTransitions||[],c={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},u=(t,n,r)=>a?function(t,n,r){const i=Object.assign({},t,{onEnd:()=>{e({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let o=n;if(i&&i.onLoad&&!i.onLoad.duration)return{animate:t,data:n};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:hf();return o=n.map(((t,e)=>Object.assign({},t,a(t,e,n)))),{animate:i,data:o}}(r,n):function(t,n,r,i){const o=Object.assign({},t,{onEnd:()=>{e({nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:r};const a=o.onLoad&&o.onLoad.before?o.onLoad.before:hf();return{animate:o,data:r.map(((t,n)=>Object.assign({},t,a(t,n,r)))),clipWidth:0}}(r,0,n),h=(t,n,r,i)=>function(t,n,r,i,o){const a=t&&t.onExit,s=Object.assign({},t,a);let l=r;if(i){t.onEnd=()=>{e({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:hf();l=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:s,data:l}}(i,0,r,t),d=(t,n,r,i)=>o?function(t,n,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let s=n;if(r){a.onEnd=()=>{e({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:hf();s=n.map(((e,i)=>{const o=df(e,i);return r[o]?Object.assign({},e,t(e,i,n)):e}))}return{animate:a,data:s}}(i,r,t):function(t,n,r,i,o){let a=t,s=r;if(i){a=Object.assign({},t,{onEnd:()=>{e({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:hf();s=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:a,data:s}}(i,0,r,t),f=function(t,n){const e=t.props.animate;if(!t.type)return{};const r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){const t=e[n]&&e[n].duration;return void 0!==t?t:r[n]&&r[n].duration}return{}};return function(e,a){const p=mf(e)||[],m=U()({},t.animate,e.props.animate),y=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;m.onExit=U()({},m.onExit,y&&y.onExit),m.onEnter=U()({},m.onEnter,y&&y.onEnter),m.onLoad=U()({},m.onLoad,y&&y.onLoad);const g=l[a]||l[0];if(!s){const t={duration:void 0!==c.load?c.load:f(e,"onLoad")};return u(0,p,Object.assign({},m,t))}if(r){const t=g&&g.exiting,n=void 0!==c.exit?c.exit:f(e,"onExit"),r=t?{duration:n}:{delay:n};return h(t,0,p,Object.assign({},m,r))}if(i){const t=g&&g.entering,n=void 0!==c.enter?c.enter:f(e,"onEnter"),r=void 0!==c.move?c.move:e.props.animate&&e.props.animate.duration,i={duration:o&&t?n:r};return d(t,0,p,Object.assign({},m,i))}return!n&&m&&m.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:hf();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(m,p):{animate:m,data:p}}}function xf(){return xf=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},xf.apply(this,arguments)}class vf extends E().Component{static displayName="VictoryTransition";static contextType=sf;constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const e=this.props.children,r=e.props.polar;this.continuous=!r&&e.type&&!0===e.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return ed()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(()=>this.timer.resumeAnimation()))),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:e}=t;if(!e)return{};if(e.parentState)return{oldProps:e.parentState.nodesWillExit?t:null,nextProps:n};const r=E().Children.toArray(t.children),i=E().Children.toArray(n.children),{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:l}=yf(r,i);return{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:l,oldProps:o?t:null,nextProps:n}}getDomainFromChildren(t,n){const e=t=>t.reduce(((t,r)=>{if(r.type&&ct(r.type.getDomain)){const e=r.props&&r.type.getDomain(r.props,n);return e?t.concat(e):t}return r.props&&r.props.children?t.concat(e(E().Children.toArray(r.props.children))):t}),[]),r=E().Children.toArray(t.children)[0],i=r.props||{},o=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[n];if(!i.children&&o)return o;const a=e([r]);return 0===a.length?[0,1]:[Et(a),At(a)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(t){const n=t.animate?.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const e=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==e?e:(()=>{const e=st(n.props,"x");return e?Math.abs(e[1]-e[0]):t.width})()}render(){const t=this.pickProps(),n=this.props.animate?.getTransitions?this.props.animate.getTransitions:gf(t,this.state,(t=>this.setState(t))),e=E().Children.toArray(t.children)[0],r=n(e);this.transitionProps=r;const i={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},o=this.getClipWidth(t,e),a=U()({domain:i,clipWidth:o},r,e.props),s=(t.animationWhitelist||[]).concat(["clipWidth"]),l=s.length?H()(a,s):a;return E().createElement(cf,xf({},a.animate,{data:l}),(t=>{if(e.props.groupComponent){const n=this.continuous?E().cloneElement(e.props.groupComponent,{clipWidth:t.clipWidth||0}):e.props.groupComponent;return E().cloneElement(e,U()({animate:null,animating:!0,groupComponent:n},t,a))}return E().cloneElement(e,U()({animate:null,animating:!0},t,a))}))}}var bf=r(4912),_f=r.n(bf);const Mf=/^onGlobal(.*)$/;function Cf(t,n,e,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,e)=>void 0!==e.target?(Array.isArray(e.target)?e.target.includes(n):`${e.target}`==`${n}`)?t.concat(e):t:t.concat(e)),[]);return void 0!==e&&"parent"!==n?r.filter((t=>{const n=t.eventKey,r=t=>!t||`${t}`==`${e}`;return Array.isArray(n)?n.some((t=>r(t))):r(n)})):r})();return Array.isArray(r)&&r.reduce(((t,n)=>n?Object.assign(t,n.eventHandlers):t),{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=o&&ct(r)?r(i(o),n):void 0;if(!t.sharedEvents)return a;const s=t.sharedEvents.getEvents,l=t.sharedEvents.events&&s(i(t.sharedEvents.events),n);return Object.assign({},l,a)}function wf(t,n,e,r){if(S()(t))return{};const i=r||this.baseProps,o=(t,n)=>{const{childName:e,target:r,key:o}=t,a="props"===n?i:this.state||{},s=null!=e&&a[e]?a[e]:a;return"parent"===o?s.parent:s[o]&&s[o][r]},a=(t,r)=>{const a="parent"===n?t.childName:t.childName||e,s=t.target||n,l=(n,e)=>{const r=this.state||{};if(!ct(t.mutation))return r;const a=o({childName:e,key:n,target:s},"props"),l=o({childName:e,key:n,target:s},"state"),c=t.mutation(Object.assign({},a,l),i),u=r[e]||{},h=t=>c?(t=>"parent"===s?Object.assign(t,{[n]:Object.assign(t[n]||{},c)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[s]:c})}))(t):(t=>(t[n]&&t[n][s]&&delete t[n][s],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:h(u)}):h(r)},c=n=>{const e=(n=>"parent"===s?"parent":"all"===t.eventKey?i[n]?Object.keys(i[n]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?i[n]?Object.keys(i[n]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r)(n);return Array.isArray(e)?e.reduce(((t,e)=>Object.assign(t,l(e,n))),{}):l(e,n)},u="all"===a?Object.keys(i).filter((t=>"parent"!==t)):a;return Array.isArray(u)?u.reduce(((t,n)=>Object.assign(t,c(n))),{}):c(u)},s=(n,e,r,i)=>{const o=t[i](n,e,r,this);if(!S()(o)){const t=(t=>{const n=t=>ct(t.callback)&&t.callback,e=(Array.isArray(t)?t.map((t=>n(t))):[n(t)]).filter((t=>!1!==t));return e.length?()=>e.forEach((t=>t())):void 0})(o);this.setState(((t,n)=>Array.isArray(t)?t.reduce(((t,e)=>Object.assign({},t,a(e,n))),{}):a(t,n))(o,r),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=s,t)),{})}function Af(t,n,e){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,e,n,i),r)),{}):{}}function Ef(t,n,e){const r=this.state||{};return e?r[e]&&r[e][t]&&r[e][t][n]:"parent"===t?r[t]&&r[t][n]||r[t]:r[t]&&r[t][n]}function kf(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),r.reduce(((r,i)=>{const o=e[i],a=Sf(t,n[i],e[i],i);return r[i]=a||o,_f()(r,(t=>!S()(t)))}),{})}function Sf(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),Object.keys(n).reduce(((i,o)=>{const a=e[o]||{},s=n[o]||{};if("parent"===o){const n=Of(t,s,a,{eventKey:o,target:"parent"});i[o]=void 0!==n?Object.assign({},a,n):a}else{const n=W()(Object.keys(s).concat(Object.keys(a)));i[o]=n.reduce(((n,e)=>{const i={eventKey:o,target:e,childName:r},l=Of(t,s[e],a[e],i);return n[e]=void 0!==l?Object.assign({},a[e],l):a[e],_f()(n,(t=>!S()(t)))}),{})}return _f()(i,(t=>!S()(t)))}),{})}function Of(t,n,e,r){const i=(t,n)=>"string"==typeof t[n]?"all"===t[n]||t[n]===r[n]:!!Array.isArray(t[n])&&t[n].map((t=>`${t}`)).includes(r[n]);let o=Array.isArray(t)?t:[t];r.childName&&(o=t.filter((t=>i(t,"childName"))));const a=o.filter((t=>i(t,"target")));if(S()(a))return;const s=a.filter((t=>i(t,"eventKey")));return S()(s)?void 0:s.reduce(((t,r)=>{const i=(r&&ct(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,i)}),{})}function Df(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],i=r&&r.type&&r.type.defaultEvents,o=ct(i)?i(r.props):i;return Array.isArray(o)?n.concat(...o):n}),[]);return e&&e.length?e:void 0}function Pf(t){const n=t.match(Mf);return n&&n[1]&&n[1].toLowerCase()}const Lf=t=>_f()(t,((t,n)=>Mf.test(n))),Tf=t=>N()(t,((t,n)=>Mf.test(n))),jf=t=>Object.assign(t,{nativeEvent:t}),$f=t=>!lt(t._x)&&!lt(t._y),Nf=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function zf(t,n){return void 0===n&&(n={}),class extends t{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=Ef.bind(this);getScopedEvents=wf.bind(this);getEvents=(t,n,e)=>Cf.call(this,t,n,e,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(t){const n=this.getExternalMutations(t),e=this.props.animating||this.props.animate,r=!ed()(n,this.externalMutations);if(e||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=n,this.applyExternalMutations(t,n),!0;const i=this.getStateChanges(t);return ed()(this.calculatedState,i)?!ed()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const n=this.getStateChanges(t);this.calculatedState=n;const e=Object.keys(this.globalEvents);Mt(this.prevGlobalEventKeys,e).forEach((t=>this.removeGlobalListener(t))),Mt(e,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e(jf(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Pf(t),n)}removeGlobalListener(t){window.removeEventListener(Pf(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const e=(t,n)=>{const e=U()({},this.getEventState(t,n),this.getSharedEventState(t,n));return S()(e)?void 0:e};return(n.components||Nf).map((n=>{if(t.standalone||"parent"!==n.name)return void 0!==n.index?e(n.index,n.name):this.dataKeys.map((t=>e(t,n.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,n){if(!S()(n)){const e=t.externalEventMutations.reduce(((t,n)=>ct(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getCalculatedValues(n){const{sharedEvents:e}=n,r=Df(n,t.expectedComponents),i=e&&ct(e.getEventState)?e.getEventState:()=>{},o=this.getBaseProps(n,i);return{componentEvents:r,getSharedEventState:i,baseProps:o,dataKeys:Object.keys(o).filter((t=>"parent"!==t)),hasEvents:n.events||n.sharedEvents||r,events:this.getAllEvents(n)}}getExternalMutations(t){const{sharedEvents:n,externalEventMutations:e}=t;return S()(e)||n?void 0:Sf(e,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((n=>{this[n]=t[n]}))}getBaseProps(n,e){const r=(e||this.getSharedEventState.bind(this))("parent","parent"),i=this.getEventState("parent","parent"),o=U()({},i,r),a=o.parentControlledProps,s=a?H()(o,a):{},l=U()({},s,n);return"function"==typeof t.getBaseProps?t.getBaseProps(l):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(n,e,r){const i=this.props.name||t.role,o=this.dataKeys&&this.dataKeys[r]||r,a=`${i}-${e}-${o}`,s=this.baseProps[o]&&this.baseProps[o][e]||this.baseProps[o];if(!s&&!this.hasEvents)return;const l=n&&"object"==typeof n&&"props"in n?n.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,e,o),n=U()({index:r,key:a},this.getEventState(o,e),this.getSharedEventState(o,e),l,s,{id:a}),i=U()({},Af(t,o,n),n.events);return Object.assign({},n,{events:i})}return U()({index:r,key:a},l,s,{id:a})}renderContainer(t,n){const e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return e.events&&(this.globalEvents=Lf(e.events),e.events=Tf(e.events)),E().cloneElement(t,e,n)}animateComponent(t,n){const e="object"==typeof t.animate&&t.animate?.animationWhitelist||n,r=this.constructor;return E().createElement(vf,{animate:t.animate,animationWhitelist:e},E().createElement(r,t))}renderContinuousData(t){const{dataComponent:n,labelComponent:e,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),o=i.reduce(((t,n)=>{let r=t;const i=this.getComponentProps(e,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(r=r.concat(E().cloneElement(e,i))),r}),[]),a=this.getComponentProps(n,"data","all"),s=[E().cloneElement(n,a),...o];return this.renderContainer(r,s)}renderData(t,n){void 0===n&&(n=$f);const{dataComponent:e,labelComponent:r,groupComponent:i}=t,o=[...this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]),...this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return E().cloneElement(r,e)})).filter(Boolean)];return this.renderContainer(i,o)}}}const Rf={width:450,height:300,padding:50,interpolation:"linear"};class If extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Yc,null),groupComponent:E().createElement(pu,null),labelComponent:E().createElement(Zh,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static displayName="VictoryArea";static role="area";static continuous=!0;static defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}};static defaultPolarTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}};static getDomain=Ra;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"area"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=J(t,"area"),r=tt(t.style,e),i={x:st(t,"x"),y:st(t,"y")},o={x:Ra(t,"x"),y:Ra(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||at(t):void 0,l=((t,n)=>{let e=_a(t);e.length<2&&(e=[]);const r=t=>{const e="log"===ta(n[t])?1/Number.MAX_SAFE_INTEGER:0,r=n[t].domain(),i=Et(r),o=At(r);let a=e;return i.valueOf()<0&&o.valueOf()<=0?a=o:i.valueOf()>=0&&o.valueOf()>0&&(a=i),vt(r)?new Date(a):a};return e.map((t=>{const n=void 0!==t._y1?t._y1:t._y,e=void 0!==t._y0?t._y0:r("y"),i=void 0!==t._x1?t._x1:t._x,o=void 0!==t._x0?t._x0:r("x");return Object.assign({},t,{_y0:e,_y1:n,_x0:o,_x1:i})}))})(t,a);return{style:r,data:l,scale:a,domain:o,origin:s}})(e)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:h,padding:d,polar:f,scale:p,sharedEvents:m,standalone:y,style:g,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:g.parent,width:v,height:l,scale:p,data:i,domain:o,standalone:y,theme:x,polar:f,origin:h,padding:d,name:_,horizontal:c},all:{data:{horizontal:c,polar:f,origin:h,scale:p,data:i,interpolation:u,groupComponent:s,style:M?{}:g.data,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ua(r,n,e)||b&&(a||m))&&(t[lt(n.eventKey)?e:n.eventKey]={labels:Ya(r,e)}),t)),C)})(t,Rf)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=If,e=ht(this.props,Rf,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Ff=zf(If,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]});function Bf(){return Bf=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Bf.apply(this,arguments)}const Wf=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("line",Bf({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("line",Bf({},s,{ref:n}))})),Vf={lineComponent:E().createElement(Wf,null),role:"presentation",shapeRendering:"auto"},Uf=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({stroke:"black"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Vf));return E().cloneElement(n.lineComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2,transform:n.transform,clipPath:n.clipPath})};var qf=r(7709),Hf=r.n(qf);function Gf(t){return t}function Kf(t){const{dependentAxis:n}=t;return n?"y":"x"}function Yf(t,n){const e=n||Gf,r=t=>t.reduce(((t,n)=>n.type&&"axis"===n.type.role&&e(n)?t.concat(n):n.props&&n.props.children?t.concat(r(E().Children.toArray(n.props.children))):t),[]);return r(t)}function Xf(t,n){return Yf(t,(t=>t.type.getAxis(t.props)===n))[0]}function Zf(t,n){const e=t=>t.reduce(((t,r)=>r.type&&"axis"===r.type.role&&(t=>"dependent"===n?t.props.dependentAxis:!t.props.dependentAxis)(r)||r.props&&r.props.children&&e(E().Children.toArray(r.props.children)).length>0?t.concat(r):t),[]);return e(t)}function Qf(t){const n=t=>{const n=Math.min(...t),e=Math.max(...t);return e<0?e:Math.max(0,n)};return{x:vt(t.x)?new Date(Math.min(...t.x)):n(t.x),y:vt(t.y)?new Date(Math.min(...t.y)):n(t.y)}}function Jf(t,n){return vt(n)?"positive":t<=0&&Math.max(...n)<=0?"negative":"positive"}function tp(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function np(t){return void 0!==t.tickValues&&xt(t.tickValues)}function ep(t){const{tickValues:n,tickFormat:e}=t;if(0===n?.length)return[];const r=Kf(t),i=t.stringMap&&t.stringMap[r];let o=n;i&&(o=function(t){const n=Kf(t),e=t.stringMap&&t.stringMap[n],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[n],i=r&&_t(r)?r.map((t=>e[t])):void 0,o=e&&Object.values(e);return i&&0!==i.length?i:o}(t)),n&&xt(n)&&(o=i?n.map((t=>i[t])):pt(1,n.length+1));const a=o?W()(o):(()=>{if(e&&Array.isArray(e))return xt(e)?e.map(((t,n)=>n)):e})();return Array.isArray(a)&&a.length?(n=>{const e=[],i=t.domain&&t.domain[r]||t.domain;if(n)return n.forEach(((t,n)=>{Array.isArray(i)?t>=Et(i).valueOf()&&t<=At(i).valueOf()&&e.push({value:t,index:n}):e.push({value:t,index:n})})),e})(a):void 0}function rp(t,n){const{tickFormat:e}=t,r=Kf(t),i=t.stringMap&&t.stringMap[r];if(!e){const e=function(t){const{tickValues:n}=t,e=Kf(t),r=t.stringMap&&t.stringMap[e],i=n&&!vt(n)?t=>t:void 0;if(!r)return np(t)?(t,e)=>n[e]:i;const o=r&&G(r),a=["",...R()(Object.values(r),(t=>t)).map((t=>o[t])),""];return t=>a[t]}(t),r=n.tickFormat&&ct(n.tickFormat)?n.tickFormat():t=>t;return e||r}if(e&&Array.isArray(e)){const n=ep(t)?.map((t=>t.index)),r=e.filter(((t,e)=>n?.includes(e)));return(t,n)=>r[n]}if(e&&ct(e)){const n=(n,e,r)=>{const o=G(i),a=r.map((t=>o[t]));return t.tickFormat(o[n],e,a)};return i?n:e}return t=>t}function ip(t,n){if(!n||!Array.isArray(t)||t.length<=n)return t;const e=Math.floor(t.length/n);return t.filter(((t,n)=>n%e==0))}function op(t,n,e){void 0===e&&(e=!1);const{tickCount:r}=t,i=ep(t);if(0===i?.length)return[""];const o=i?i.map((t=>t.value)):void 0;if(o)return ip(o,r);if(n.ticks&&ct(n.ticks)){const t=r||5,i=n.ticks(t),o=ip(Array.isArray(i)&&i.length?i:n.domain(),r);if(e){const t=o.filter((t=>0!==t));return t.length?t:o}return o}return n.domain()}function ap(t,n){const{polar:e,startAngle:r=0,endAngle:i=360}=t,o=ep(t),a=o&&0!==o?.length?o.map((t=>t.value)):void 0;if(!Array.isArray(a))return;const s=Fa(t,n),l=Ia(t,n),c=np(t),u=a.map((t=>Number(t))),h=c?1:Et(u),d=c?a.length:At(u),f=Na(void 0!==s?s:h,void 0!==l?l:d),p=e&&"x"===n&&360===Math.abs(r-i)?Ba(f,u):f;return tp(t)&&!e&&p.reverse(),p}function sp(t,n){const e=Kf(t);if(!n||n===e)return Pa(ap)(t,e)}function lp(t,n){if(!t.axisValue)return;const e="x"===n?"y":"x",r=Hf()(t.scale)&&ct(t.scale[e])?t.scale[e]:void 0;if(!r)return;const i="x"===n?"y":"x",o=Hf()(t.stringMap)&&t.stringMap[i];return r(o&&"string"==typeof t.axisValue?o[t.axisValue]:t.axisValue)}function cp(t,n){if(!Hf()(t.theme))return ht(t,n,"axis");let e="axis";if(t.dependentAxis&&t.theme.dependentAxis?e="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(e="independentAxis"),"axis"===e)return ht(t,n,"axis");const r=U()({},t.theme[e],t.theme.axis),i=Object.assign({},t.theme,{axis:r});return ht(Object.assign({},t,{theme:i}),n,"axis")}const up={top:-1,left:-1,right:1,bottom:1},hp=t=>null!=t,dp=function(t,n){void 0===n&&(n={});const e=t.style||{};return{parent:U()(e.parent,n.parent,{height:"100%",width:"100%"}),axis:U()({},e.axis,n.axis),axisLabel:U()({},e.axisLabel,n.axisLabel),grid:U()({},e.grid,n.grid),ticks:U()({},e.ticks,n.ticks),tickLabels:U()({},e.tickLabels,n.tickLabels)}},fp=(t,n,e)=>{const{position:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:n,datum:e}},pp=(t,n,e,r,i)=>{const{position:o,transform:a}=t;return{style:n,x:a.x+o.x,y:a.y+o.y,verticalAnchor:e.verticalAnchor,textAnchor:e.textAnchor,angle:n.angle,text:i,datum:r}},mp=(t,n,e)=>{const{edge:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:n,datum:e}},yp=(t,n,e)=>{const r=n||"positive";return e?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][t]},gp=(t,n)=>t instanceof Date&&n instanceof Date?t.getTime()===n.getTime():t===n,xp=(t,n,e)=>{const{orientation:r,axis:i}=n,o=lp(t,i);return{top:{x:0,y:void 0!==o?o:e.y},bottom:{x:0,y:void 0!==o?o:t.height-e.y},left:{x:void 0!==o?o:e.x,y:0},right:{x:void 0!==o?o:t.width-e.x,y:0}}[r]},vp=(t,n,e)=>{const{tickStyle:r,labelStyle:i}=t,o=r.size||0,a=o+(r.padding||0)+(i.padding||0),s=up[n];return{x:e?s*a:0,x2:e?s*o:0,y:e?0:s*a,y2:e?0:s*o}},bp=(t,n,e)=>({x:e?n.x:t+n.x,y:e?t+n.y:n.y}),_p=(t,n)=>{const{orientation:e,padding:r,isVertical:i}=n,o=-up[e];return{x:i?o*(t.width-(r.left+r.right)):0,y:i?0:o*(t.height-(r.top+r.bottom))}},Mp=(t,n)=>{const{padding:e,orientation:r,crossAxis:i}=t,o="right"===r?e.right:e.left,a="top"===r?e.top:e.bottom;return{x:i?n.x-o:0,y:i?n.y-a:0}},Cp=(t,n)=>{const e=cp(t,n),r=(t=>{const n=(t=>{const{theme:n,dependentAxis:e}=t,r=n&&n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n&&n[i]&&n[i].style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=U()({},o[n],r[n]),t)),{}):o||r})(t),e=dp(t,n),r=Z(t.padding),i=((t,n)=>{const e=n.axisLabel||{};if(void 0!==e.padding&&null!==e.padding)return e.padding;const r=tp(t),i=e.fontSize||14;return t.label?i*(r?2.3:1.6):0})(t,e),o=np(t)?t.tickValues:void 0,a=Kf(t),s=sp(t),l=(t=>{const n=Kf(t),e=((t,n)=>{const{orientation:e,horizontal:r}=t;return e?{top:"x",bottom:"x",left:"y",right:"y"}[e]:r?"x"===n?"y":"x":n})(t,n),r=Yo(t,n),i=t.domain&&t.domain[n]||sp(t)||r.domain();return r.range(st(t,e)),r.domain(i),r})(t),c="x"===a?s:void 0,u="y"===a?s:void 0,h="x"===a?l:void 0,d="y"===a?l:void 0,f=!(!1===t.crossAxis||!0===t.standalone),p=op(t,l,f),m=rp(t,l),y={x:st(t,"x"),y:st(t,"y")},g={x:t.domain&&t.domain.x?t.domain.x:c,y:t.domain&&t.domain.y?t.domain.y:u},x={x:t.domain&&t.domain.x?Yo(t,"x").domain(t.domain.x).range(t.horizontal?y.y:y.x):h,y:t.domain&&t.domain.y?Yo(t,"y").domain(t.domain.y).range(t.horizontal?y.x:y.y):d},v=g.x&&g.y?Qf(g):void 0,b=v?{x:Jf(v.x,g.x),y:Jf(v.y,g.y)}:void 0,_=b?{x:yp("x",b.y,t.horizontal),y:yp("y",b.x,t.horizontal)}:void 0,M=_?t.orientation||_[a]:(t=>{if(t.orientation)return t.orientation;const n={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?n.dependent:n.independent})(t),C=tp(Object.assign({},t,{orientation:M})),w=((t,n)=>{const e={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:n?e:"middle",verticalAnchor:n?"middle":e}})(M,C);return{anchors:w,axis:a,crossAxis:f,domain:g,isVertical:C,labelPadding:i,orientation:M,orientations:_,origin:v,padding:r,scale:x,stringTicks:o,style:e,tickFormat:m,ticks:p}})(e),{axis:i,style:o,orientation:a,isVertical:s,scale:l,ticks:c,tickFormat:u,anchors:h,domain:d,stringTicks:f}=r,p="x"===i?"y":"x",{width:m,height:y,standalone:g,theme:x,polar:v,padding:b,horizontal:_}=e,{globalTransform:M,gridOffset:C,gridEdge:w}=((t,n)=>{let e;return e=n.domain.x&&n.domain.y?t.horizontal?((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:l,bottom:c,left:u,right:h}=s,d="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"bottom"===d?c:l,y:"left"===f?u:h},m="left"===f?0:t.width,y="bottom"===d?t.height:0,g=gp(r.x,a.x[0])||gp(r.x,a.x[1])?0:e.x(r.x),x=gp(r.y,a.y[0])||gp(r.y,a.y[1])?0:e.y(r.y),v=g?Math.abs(y-g):p.x,b=x?Math.abs(m-x):p.y;return{x:hp(t.offsetX)?t.offsetX:b,y:hp(t.offsetY)?t.offsetY:v}})(t,n):((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:l,bottom:c,left:u,right:h}=s,d="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"left"===f?u:h,y:"bottom"===d?c:l},m="left"===f?0:t.width,y="bottom"===d?t.height:0,g=gp(r.x,a.x[0])||gp(r.x,a.x[1])?0:e.x(r.x),x=gp(r.y,a.y[0])||gp(r.y,a.y[1])?0:e.y(r.y),v=g?Math.abs(m-g):p.x,b=x?Math.abs(y-x):p.y;return{x:hp(t.offsetX)?t.offsetX:v,y:hp(t.offsetY)?t.offsetY:b}})(t,n):((t,n)=>{const{style:e,scale:r,orientation:i,padding:o,axis:a,ticks:s,stringTicks:l,isVertical:c,labelPadding:u}=n,{polar:h,horizontal:d}=t,f={scale:{[a]:r},polar:h,horizontal:d,ticks:s,stringTicks:l},p="right"===i?o.right:o.left,m="top"===i?o.top:o.bottom,y=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:p,g=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:m,x=e.axisLabel.fontSize||14,v=s.map(((n,r)=>{const i=l?t.tickValues[n-1]:n;return et(e.ticks,Object.assign({},f,{tick:i,index:r})).size||0})),b=x+2*Math.max(...v)+u,_=1.2*x;return{x:null!=y?y:c?b:_,y:null!=g?g:c?_:b}})(t,n),{globalTransform:xp(t,n,e),gridOffset:Mp(n,e),gridEdge:_p(t,n)}})(e,r),A={scale:{[i]:l[i]},polar:v,horizontal:_,ticks:c,stringTicks:f},E=((t,n,e)=>{const{style:r,padding:i,isVertical:o}=n,{width:a,height:s}=t;return{style:r.axis,x1:o?e.x:i.left+e.x,x2:o?e.x:a-i.right+e.x,y1:o?i.top+e.y:e.y,y2:o?s-i.bottom+e.y:e.y}})(e,r,M),k=((t,n,e)=>{const{style:r,orientation:i,padding:o,labelPadding:a,isVertical:s}=n,l=up[i],c=o.left+o.right,u=o.top+o.bottom,h=l<0?"end":"start",d=r.axisLabel,f=s?-90:0;return{x:s?e.x+l*a:(t.width-c)/2+o.left+e.x,y:s?(t.height-u)/2+o.top+e.y:l*a+e.y,verticalAnchor:d.verticalAnchor||h,textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?f:d.angle,style:d,text:t.label}})(e,r,M),S={parent:Object.assign({style:o.parent,ticks:c,standalone:g,theme:x,width:m,height:y,padding:b,domain:d},A)},O={dimension:p,range:{[p]:st(e,p)},scale:e.scale&&e.scale[p]?{[p]:e.scale[p]}:void 0};return c.reduce(((t,n,e)=>{const r=f?f[e]:n,d=u(n,e,c),p=((t,n)=>({tickStyle:et(t.ticks,n),labelStyle:et(t.tickLabels,n),gridStyle:et(t.grid,n)}))(o,Object.assign({},A,{tick:r,tickValue:n,index:e,text:d})),m={position:vp(p,a,s),transform:bp(l[i]?.(n),M,s)},y={edge:w,transform:{x:s?-C.x+M.x:l[i]?.(n)+M.x,y:s?l[i]?.(n)+M.y:C.y+M.y}};return t[e]={axis:Object.assign({dimension:i},A,E),axisLabel:Object.assign({},A,k),ticks:Object.assign({},A,fp(m,p.tickStyle,n)),tickLabels:Object.assign({},A,pp(m,p.labelStyle,h,n,d)),grid:Object.assign({},A,O,mp(y,p.gridStyle,n))},t}),S)},wp={width:450,height:300,padding:50};class Ap extends E().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:E().createElement(Uf,null),axisLabelComponent:E().createElement(Zh,null),tickLabelComponent:E().createElement(Zh,null),tickComponent:E().createElement(Uf,null),gridComponent:E().createElement(Uf,null),standalone:!0,theme:Mh.grayscale,containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",{role:"presentation"}),fixLabelOverlap:!1};static getDomain=sp;static getAxis=Kf;static getStyles(t){return dp(t)}static getBaseProps(t){return Cp(t,wp)}static expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];renderLine(t){const{axisComponent:n}=t,e=this.getComponentProps(n,"axis",0);return E().cloneElement(n,e)}renderLabel(t){const{axisLabelComponent:n,label:e}=t;if(!e)return null;const r=this.getComponentProps(n,"axisLabel",0);return E().cloneElement(n,r)}renderGridAndTicks(t){const{tickComponent:n,tickLabelComponent:e,gridComponent:r,name:i}=t,o=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!S()(e)};return this.dataKeys.map(((a,s)=>{const l=this.getComponentProps(n,"ticks",s),c=E().cloneElement(n,l),u=o(c.props)?c:void 0,h=this.getComponentProps(r,"grid",s),d=E().cloneElement(r,h),f=o(d.props)?d:void 0,p=this.getComponentProps(e,"tickLabels",s),m=[f,u,E().cloneElement(e,p)].filter(Boolean);return E().cloneElement(t.groupComponent,{key:`${i}-tick-group-${a}`},m)}))}fixLabelOverlap(t,n){const e=tp(n),r=e?n.height:n.width,i=t=>t.type&&"label"===t.type.role,o=t.map((t=>t.props.children)).reduce(((t,n)=>t.concat(n)),[]).filter(i).map((t=>t.props)).reduce(((t,n)=>{const r=(t=>"object"==typeof t?Object.assign({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t})(n.style.padding),i=Fh(n.text,{angle:n.angle,fontSize:n.style.fontSize,letterSpacing:n.style.letterSpacing,fontFamily:n.style.fontFamily});return t+(e?i.height+r.top+r.bottom:i.width+r.right+r.left)}),0),a=Math.floor(r*t.length/o),s=Math.ceil(t.length/a)||1,l=t=>t.props.children.filter(i).reduce(((t,n)=>(e?n.props.y:n.props.x)||0),0),c=t.sort(((t,n)=>e?l(n)-l(t):l(t)-l(n)));return c.filter(((t,n)=>n%s==0))}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=Ep,n=cp(this.props,wp),e=Wc(this.props);if(this.shouldAnimate())return this.animateComponent(n,t);const r=this.renderGridAndTicks(n),i=n.fixLabelOverlap?this.fixLabelOverlap(r,n):r,o=[this.renderLine(n),this.renderLabel(n),...i],a=E().cloneElement(n.containerComponent,e);return n.standalone?this.renderContainer(a,o):E().cloneElement(n.groupComponent,e,o)}}const Ep=zf(Ap,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),kp=(t,n)=>{const e=e=>{let r="log"===ta(t.scale[e])?1/Number.MAX_SAFE_INTEGER:0;const i=Et(t.domain[e]),o=At(t.domain[e]);return i<0&&o<=0?r=o:i>=0&&o>0&&(r=i),n[`_${e}`]instanceof Date?new Date(r):r},r=void 0!==n._y0?n._y0:e("y"),i=void 0!==n._x0?n._x0:e("x");return X(t,Object.assign({},n,{_y0:r,_x0:i}))},Sp=(t,n)=>{const{scale:e,data:r,style:i}=n;if(t)return nt(t,n);if(i.width)return i.width;const o=e.x.range(),a=Math.abs(o[1]-o[0]),s=r.length+2,l=(n.barRatio||.5)*(r.length<2?8:a/s);return Math.max(1,l)},Op=(t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return L()(t)}(t)?((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=(r,i)=>{lt(t[r])?lt(t[i])||(e[r]=nt(t[i],n)):e[r]=nt(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e})(t,n):(e.topLeft=nt(t,n),e.topRight=nt(t,n),e):e},Dp=function(t,n){if(void 0===t&&(t={}),n.disableInlineStyles)return{};const e={fill:"black",stroke:t.fill||"black"};return et(Object.assign(e,t),n)},Pp=(t,n)=>({x:t,y:n,distance(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add(t){return Pp(this.x+t.x,this.y+t.y)},subtract(t){return Pp(this.x-t.x,this.y-t.y)},scalarMult(t){return Pp(this.x*t,this.y*t)},scalarDivide(t){if(0===t)throw new Error("Division by 0 error");return Pp(this.x/t,this.y/t)},equals(t){return this.x===t.x&&this.y===t.y}}),Lp=(t,n)=>({center:t,radius:n,hasIntersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals(t){const n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];const a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),s=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),l=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),{x:c,y:u}=n,{x:h,y:d}=e,{x:f,y:p}=l,m=[Pp(f-s*(d-u)/o,p+s*(h-c)/o),Pp(f+s*(d-u)/o,p-s*(h-c)/o)];return m.sort(((t,n)=>t.x-n.x)),m},solveX(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}),Tp=(t,n)=>{const{x:e,x0:r,y:i,y0:o,horizontal:a}=t,s=t.alignment||"middle",l="middle"===s?n/2:n,c=a?-1:1;return a?{x0:r,x1:e,y0:"start"===s?i:i-c*l,y1:"end"===s?i:i+c*l}:{x0:"start"===s?e:e-c*l,x1:"end"===s?e:e+c*l,y0:o,y1:i}},jp=(t,n)=>{const{data:e,scale:r}=t,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},$p=t=>-1*t+Math.PI/2,Np=(t,n)=>{const{getPath:e}=t;if("function"==typeof e)return e({...t,...Tp(t,n)})},zp=(t,n,e)=>{const r=`${n.topLeft} ${n.topLeft} ${e}`,i=`${n.topRight} ${n.topRight} ${e}`;return`${["M",`A ${n.bottomLeft} ${n.bottomLeft} ${e},`,"L",`A ${r},`,"L",`A ${i},`,"L",`A ${n.bottomRight} ${n.bottomRight} ${e},`].reduce(((n,e,r)=>`${n}${e} ${t[r].x}, ${t[r].y} \n`),"")} z`},Rp=(t,n,e)=>{const r=Tp(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=((t,n,e)=>{const{x0:r,x1:i,y0:o,y1:a}=t,s=t=>{const s="Left"===t,l=s?1:-1,c=s?r:i;let u={x:c+l*e[`bottom${t}`],y:o},h={x:c,y:o-n*e[`bottom${t}`]},d={x:c,y:a+n*e[`top${t}`]},f={x:c+l*e[`top${t}`],y:a};if(1===n?o-e[`bottom${t}`]<a+e[`top${t}`]:o+e[`bottom${t}`]>a-e[`top${t}`]){const r=Pp(c+l*e[`top${t}`],a+n*e[`top${t}`]),i=Lp(r,e[`top${t}`]),p=Pp(c+l*e[`bottom${t}`],o-n*e[`bottom${t}`]),m=Lp(p,e[`bottom${t}`]),y=i.intersection(m);if(y.length>0){const t=y[s?0:1];h={x:t.x,y:t.y},d={x:t.x,y:t.y}}else if(e[`top${t}`]>e[`bottom${t}`]){const t=i.solveX(o)[s?0:1];u={x:t,y:o},h={x:t,y:o},d={x:t,y:o}}else{const t=m.solveX(a)[s?0:1];h={x:t,y:a},d={x:t,y:a},f={x:t,y:a}}}const p=[u,h,d,f];return s?p:p.reverse()};return s("Left").concat(s("Right"))})(r,i,e);return zp(a,e,o)},Ip=(t,n,e)=>{const r=Tp(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=((t,n,e)=>{const{y0:r,y1:i}=t,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,s=t=>{const s="top"===t,l=s?-1:1,c=s?i:r;let u={x:o,y:c-l*e[`${t}Left`]},h={x:o+e[`${t}Left`],y:c},d={x:a-e[`${t}Right`],y:c},f={x:a,y:c-l*e[`${t}Right`]};if(h.x>d.x){const r=Pp(o+e[`${t}Left`],c-l*e[`${t}Left`]),i=Lp(r,e[`${t}Left`]),p=Pp(a-e[`${t}Right`],c-l*e[`${t}Right`]),m=Lp(p,e[`${t}Right`]),y=i.intersection(m);if(y.length>0){const t=y[n>0?1:0];h={x:t.x,y:t.y},d={x:t.x,y:t.y}}else if(e[`${t}Right`]>e[`${t}Left`]){const t=m.solveY(o)[s?0:1];u={x:o,y:t},h={x:o,y:t},d={x:o,y:t}}else{const t=i.solveY(a)[s?0:1];f={x:a,y:t},d={x:a,y:t},h={x:a,y:t}}}return[u,h,d,f]},l=s("top"),c=s("bottom");return[c[1],c[0],...l,c[3],c[2]]})(r,i,o);return zp(a,o,"0 0 1")},Fp=(t,n)=>{const{datum:e,scale:r,index:i,alignment:o,style:a}=t,s=r.y(e._y0||0),l=r.y(void 0!==e._y1?e._y1:e._y),c=r.x(void 0!==e._x1?e._x1:e._x);let u,h;if(a.width){const n=((t,n)=>{const{scale:e}=t,r=e.y.range(),i=Math.max(...r),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o})(t,a.width),e="middle"===o?n/2:n;u="start"===o?c:c-e,h="end"===o?c:c+e}else u=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=jp(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=0===n?jp(t,e.length-1)-2*Math.PI:jp(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?s:o:(o+s)/2})(t,Number(i)),h=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=jp(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=r.x.range()[1]===2*Math.PI?jp(t,0)+2*Math.PI:r.x.range()[1],l=n===e.length-1?jp(t,0)+2*Math.PI:jp(t,n+1);return n===e.length-1&&a<2*Math.PI?s:"start"===i||"end"===i?"start"===i?o:l:(o+l)/2})(t,Number(i));const d=t=>Rs().innerRadius(s).outerRadius(l).startAngle($p(u)).endAngle($p(h)).cornerRadius(n[t])(),f=t=>{const n=d(`${t}Right`),e=n.match(/[A-Z]/g)||[],r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=d(`${t}Left`),a=o.match(/[A-Z]/g)||[],s=o.split(/[A-Z]/).slice(1),l=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:s,leftMiddle:l}};return`${[...(()=>{const{topRight:t,topLeft:e}=n,r=l*Math.abs(h-u),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:s,leftCoords:c,leftMiddle:d}=f("top");let p,m;if(t===e||r<2*t+2*e)p=t>e?i:s,m=t>e?o:c;else{const n=t=>t<3,r=e>t&&n(a)?1:2;let l;if(t>e){const t=n(a)?d:d-2;l=n(d)?d-1:t}else{const t=n(d)?1:2;l=n(a)?t:d-2}p=[...i.slice(0,r),...s.slice(l)],m=[...o.slice(0,r),...c.slice(l)]}const y=p.indexOf("L"),g=p.slice(0,y),x=m.slice(0,y);return g.map(((t,n)=>({command:t,coords:x[n].split(",")})))})(),...(()=>{const{bottomRight:t,bottomLeft:e}=n,r=s*Math.abs(h-u),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:l,leftCoords:c,leftMiddle:d}=f("bottom");let p,m;if(t===e||r<2*t+2*e)p=t>e?i:l,m=t>e?o:c;else{const n=(t,n)=>t.length-n<4,r=(t>e?n(i,a):n(l,d))?-1:-3;p=[...l.slice(0,d+2),...i.slice(r)],m=[...c.slice(0,d+2),...o.slice(r)]}const y=p.indexOf("L"),g=p.slice(y,-1),x=m.slice(y,-1);return g.map(((t,n)=>({command:t,coords:x[n].split(",")})))})()].reduce(((t,n)=>`${t}${n.command} ${n.coords.join()}`),"")} z`},Bp=(t,n,e)=>t.getPath?Np(t,n):t.horizontal?Ip(t,n,e):Rp(t,n,e),Wp=(t,n)=>Fp(t,n),Vp={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Up=(0,A.forwardRef)((function(t,n){const e=(t=>{const n=Dp(t.style,t),e=Sp(t.barWidth,Object.assign({},t,{style:n})),r=Op(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e})),i=nt(t.ariaLabel,t),o=nt(t.desc,t),a=nt(t.id,t),s=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:a,tabIndex:s})})(U()({},t,Vp)),{polar:r,origin:i,style:o,barWidth:a,cornerRadius:s}=e,l=r?Wp(e,s):Bp(e,a,s),c=r&&i?`translate(${i.x}, ${i.y})`:void 0;return e.pathComponent?E().cloneElement(e.pathComponent,{...e.events,"aria-label":e.ariaLabel,style:o,d:l,className:e.className,clipPath:e.clipPath,desc:e.desc,index:e.index,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform||c,tabIndex:e.tabIndex,ref:n}):null})),qp={width:450,height:300,padding:50},Hp=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}];class Gp extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBar";static role="bar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static defaultProps={containerComponent:E().createElement(lu,null),data:Hp,dataComponent:E().createElement(Up,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(Zh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ra;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"bar"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=J(t,"bar"),r=t.disableInlineStyles?{}:tt(t.style,e),i=t.range||{x:st(t,"x"),y:st(t,"y")},o={x:Ra(t,"x"),y:Ra(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||at(t):void 0;let l=_a(t);return l=ma(l,o,0),t.groupComponent.type===pu&&(l=l.map((t=>({...t,_x:t.x,_y:t.y})))),{style:r,data:l,scale:a,domain:o,origin:s}})(e)),{alignment:i,barRatio:o,cornerRadius:a,data:s,disableInlineStyles:l,domain:c,events:u,height:h,horizontal:d,origin:f,padding:p,polar:m,scale:y,sharedEvents:g,standalone:x,style:v,theme:b,width:_,labels:M,name:C,barWidth:w,getPath:A}=r,E={parent:{horizontal:d,domain:c,scale:y,width:_,height:h,data:s,standalone:x,name:C,theme:b,polar:m,origin:f,padding:p,style:v.parent}};return s.reduce(((t,n,e)=>{const c=lt(n.eventKey)?e:n.eventKey,{x:p,y:x,y0:b,x0:C}=kp(r,n),E={alignment:i,barRatio:o,barWidth:w,cornerRadius:a,data:s,datum:n,disableInlineStyles:l,getPath:A,horizontal:d,index:e,polar:m,origin:f,scale:y,style:v.data,width:_,height:h,x:p,y:x,y0:b,x0:C};return t[c]={data:E},(null!=Ua(r,n,e)||M&&(u||g))&&(t[c].labels=Ya(r,e)),t}),E)})(t,qp)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];static shouldRenderDatum=()=>!0;shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Kp,e=ht(this.props,qp,n);if(this.shouldAnimate())return this.animateComponent(e,t);let r;r=e.groupComponent.type===pu?this.renderData(e,Gp.shouldRenderDatum):this.renderData(e);const i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Kp=zf(Gp),Yp={rectComponent:E().createElement(fu,null),role:"presentation",shapeRendering:"auto"},Xp=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({fill:"none"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Yp));return E().cloneElement(n.rectComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,transform:n.transform,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x:n.x,y:n.y,width:n.width,height:n.height,clipPath:n.clipPath})},Zp={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Wf,null),role:"presentation",shapeRendering:"auto"},Qp=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(t.style,t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Zp)),{ariaLabel:e,groupComponent:r,lineComponent:i,events:o,className:a,majorWhisker:s,minorWhisker:l,transform:c,clipPath:u,role:h,shapeRendering:d,style:f,desc:p,tabIndex:m}=n,y={...o,style:f,desc:p,tabIndex:m,className:a,transform:c,clipPath:u,role:h,shapeRendering:d};return E().cloneElement(r,{},[E().cloneElement(i,Object.assign({key:"major-whisker","aria-label":e},y,s)),E().cloneElement(i,Object.assign({key:"minor-whisker","aria-label":e},y,l))])};var Jp=r(9056),tm=r.n(Jp);const nm=["max","min","median","q1","q3"],em=t=>Number.isNaN(t)?null:t,rm=t=>{const n=t.map((t=>t._y)),e={_q1:em(Ye(n,.25)),_q3:em(Ye(n,.75)),_min:em(qe(n)),_median:em(Ye(n,.5)),_max:em(Ue(n))};return Object.assign({},t[0],e,{_y:t[0]._y})},im=t=>{const n=nm.concat("x","y"),e=xa(t.data,t,n);return e.length?(t=>{const n=(t=>{if(t.every((t=>nm.every((n=>void 0!==t[`_${n}`]))))){const n=t.map((t=>t._x));if(!W()(n).length===n.length)throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n ");return!0}return!1})(t);if(n)return t;{const n=t.every((t=>Array.isArray(t._x))),e=t.every((t=>Array.isArray(t._y))),r="_y",i="_x";if(n)throw new Error("\n data should not be given as in array for x\n ");if(e)return t.map((t=>{const n=t[r].map((n=>Object.assign({},t,{[r]:n}))),e=R()(n,r);return rm(e)}));{const n=tm()(t,i);return Object.keys(n).map((t=>{const e=n[t],i=R()(e,r);return rm(i)}))}}})(e):[]},om=(t,n)=>{const e=Fa(t,n),r=Ia(t,n),i=im(t);return i.length<1?void 0!==e&&void 0!==r?Na(e,r):void 0:"y"===n?((t,n,e)=>{const r=Fa(n,e),i=Ia(n,e);return Na(void 0!==r?r:t.reduce(((t,n)=>t<n._min?t:n._min),1/0),void 0!==i?i:t.reduce(((t,n)=>t>n._max?t:n._max),-1/0))})(i,t,n):((t,n,e)=>{const r=Fa(n,e),i=Ia(n,e);return Na(void 0!==r?r:t.reduce(((t,n)=>t<n[`_${e}`]?t:n[`_${e}`]),1/0),void 0!==i?i:t.reduce(((t,n)=>t>n[`_${e}`]?t:n[`_${e}`]),-1/0))})(i,t,n)},am=(t,n)=>Pa(om)(t,n),sm=(t,n,e)=>{const r=t[`${e}LabelComponent`]||t.labelComponent,i=n[`${e}Labels`]||n.labels;if(!Q(r))return i;const o=t.theme&&t.theme.tooltip||{};return U()({},o.style,i)},lm=(t,n)=>{const e=ht(t,n,"boxplot"),r=Object.assign({},e,(t=>{const{theme:n,horizontal:e}=t,r=im(t),i={x:st(t,"x"),y:st(t,"y")},o={x:am(t,"x"),y:am(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=function(t,n){if(void 0===n&&(n={}),t.disableInlineStyles)return{};const e=t.style||{},r=U()({},e.labels,sm(t,n)),i=U()({},e.boxes,n.boxes),o=U()({},e.whiskers,n.whiskers);return{boxes:i,labels:r,parent:U()({},e.parent,n.parent,{height:"100%",width:"100%"}),max:U()({},e.max,n.max,o),maxLabels:U()({},e.maxLabels,sm(t,n,"max"),r),median:U()({},e.median,n.median,o),medianLabels:U()({},e.medianLabels,sm(t,n,"median"),r),min:U()({},e.min,n.min,o),minLabels:U()({},e.minLabels,sm(t,n,"min"),r),q1:U()({},e.q1,n.q1,i),q1Labels:U()({},e.q1Labels,sm(t,n,"q1"),r),q3:U()({},e.q3,n.q3,i),q3Labels:U()({},e.q3Labels,sm(t,n,"q3"),r),whiskers:o}}(t,n&&n.boxplot&&n.boxplot.style?n.boxplot.style:{}),l=t.horizontal?"top":"right";return{data:r,horizontal:e,domain:o,scale:a,style:s,labelOrientation:t.labelOrientation||l,boxWidth:t.boxWidth||1}})(e)),{groupComponent:i,width:o,height:a,padding:s,standalone:l,theme:c,events:u,sharedEvents:h,scale:d,horizontal:f,data:p,style:m,domain:y,name:g}=r,x={parent:{domain:y,scale:d,width:o,height:a,data:p,standalone:l,name:g,theme:c,style:m.parent||{},padding:s,groupComponent:i,horizontal:f}},v=d.y;return p.reduce(((t,n,e)=>{const i=lt(n.eventKey)?e:n.eventKey;if(((t,n)=>{const e=t=>void 0!==t,{_x:r,_min:i,_max:o}=t,a=Et(n.x),s=At(n.x),l=Et(n.y),c=At(n.y),u=t=>n=>e(n)&&n<t,h=t=>n=>e(n)&&n>t,d=u(a),f=u(l),p=h(s),m=h(c);let y,g;return(d(r)||p(r))&&(g=!0),(f(i)&&f(o)||m(i)&&m(o))&&(y=!0),y||g})(n,y))return t;const o={x:f?d.y(n._y):d.x(n._x),y:f?d.x(n._x):d.y(n._y),min:v(n._min),max:v(n._max),median:v(n._median),q1:v(n._q1),q3:v(n._q3)},a=Object.assign({index:e,datum:n,positions:o},r),s=nm.reduce(((t,n)=>(t[n]=((t,n)=>"median"===n?(t=>{const{boxWidth:n,horizontal:e,style:r,datum:i,scale:o,index:a,disableInlineStyles:s}=t,{median:l,x:c,y:u}=t.positions;return{datum:i,scale:o,index:a,x1:e?l:c-n/2,y1:e?u-n/2:l,x2:e?l:c+n/2,y2:e?u+n/2:l,style:s?{}:r.median,disableInlineStyles:s}})(t):"min"===n||"max"===n?((t,n)=>{const{horizontal:e,style:r,boxWidth:i,whiskerWidth:o,datum:a,scale:s,index:l,disableInlineStyles:c}=t,{min:u,max:h,q1:d,q3:f,x:p,y:m}=t.positions,y="min"===n?d:f,g="min"===n?u:h,x="number"==typeof o?o:i;return{datum:a,index:l,scale:s,majorWhisker:{x1:e?y:p,y1:e?m:y,x2:e?g:p,y2:e?m:g},minorWhisker:{x1:e?g:p-x/2,y1:e?m-x/2:g,x2:e?g:p+x/2,y2:e?m+x/2:g},style:c?{}:r[n]||r.whisker,disableInlineStyles:c}})(t,n):((t,n)=>{const{horizontal:e,boxWidth:r,style:i,scale:o,datum:a,index:s,disableInlineStyles:l}=t,{median:c,q1:u,q3:h,x:d,y:f}=t.positions;return{datum:a,scale:o,index:s,x:e?"q1"===n?u:c:d-r/2,y:e?f-r/2:"q1"===n?c:h,width:e?"q1"===n?c-u:h-c:r,height:e?r:"q1"===n?u-c:c-h,style:l?{}:i[n]||i.boxes,disableInlineStyles:l}})(t,n))(a,n),t)),{});return t[i]=s,nm.forEach((n=>{const e=((t,n)=>{const{datum:e,index:r,labels:i}=t,o=t[`${n}Labels`];return o||i?!0===o||!0===i?`${e[`_${n}`]}`:Array.isArray(o)?o[r]:o:null})(a,n),o=r.labels||r[`${n}Labels`];if(null!=e||o&&(u||h)){const o=`${n}Labels`;t[i][o]=((t,n,e)=>{const{datum:r,positions:i,index:o,boxWidth:a,horizontal:s,labelOrientation:l,style:c,theme:u,disableInlineStyles:h}=t,d=((t,n)=>"object"==typeof t&&t[n]||t)(l,e),f=c[`${e}Labels`]||c.labels,p="number"==typeof t.whiskerWidth?t.whiskerWidth:a,m="min"===e||"max"===e?p:a,y=t=>{const n={x:"left"===d?-1:1,y:"top"===d?-1:1};return n[t]*m/2+n[t]*(f.padding||0)},g={text:n,datum:r,index:o,orientation:d,style:h?{}:f,y:s?i.y:i[e],x:s?i[e]:i.x,dy:s?y("y"):0,dx:s?0:y("x"),textAnchor:f.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[d],verticalAnchor:f.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[d],angle:f.angle,horizontal:s,disableInlineStyles:h};if(!Q(t[`${e}LabelComponent`]))return g;const x=u&&u.tooltip||{};return U()({},g,K(x,["style"]))})(Object.assign({},r,a),e,n)}})),t}),x)},cm={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},um=[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}];class hm extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBoxPlot";static role="boxplot";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),data:um,dataComponent:E().createElement(Xp,null),groupComponent:E().createElement("g",{role:"presentation"}),maxComponent:E().createElement(Qp,null),maxLabelComponent:E().createElement(Zh,null),medianComponent:E().createElement(Uf,null),medianLabelComponent:E().createElement(Zh,null),minComponent:E().createElement(Qp,null),minLabelComponent:E().createElement(Zh,null),q1Component:E().createElement(Xp,null),q1LabelComponent:E().createElement(Zh,null),q3Component:E().createElement(Xp,null),q3LabelComponent:E().createElement(Zh,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return am(t,n)}static getData(t){return im(t)}static getBaseProps(t){return lm(t,cm)}static expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];renderBoxPlot(t){const n=["q1","q3","max","min","median"],e=[...n.map((n=>this.dataKeys.reduce(((e,r,i)=>{const o=t[`${n}Component`],a=this.getComponentProps(o,n,i);return this.shouldRenderDatum(a.datum)&&e.push(E().cloneElement(o,a)),e}),[]))).flat(),...n.map((n=>this.dataKeys.reduce(((e,r,i)=>{const o=`${n}Labels`,a=t[`${n}LabelComponent`],s=this.getComponentProps(a,o,i);return void 0!==s.text&&null!==s.text&&e.push(E().cloneElement(a,s)),e}),[]).filter(Boolean))).flat()];return this.renderContainer(t.groupComponent,e)}shouldAnimate(){return!!this.props.animate}shouldRenderDatum(t){const n=!lt(t._x),e=!lt(t._y);return!(lt(t._min)||lt(t._max)||lt(t._median)||lt(t._q1)||lt(t._q3))&&(this.props.horizontal?e:n)}render(){const{animationWhitelist:t,role:n}=dm,e=ht(this.props,cm,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderBoxPlot(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const dm=zf(hm,{components:[{name:"min"},{name:"minLabels"},{name:"max"},{name:"maxLabels"},{name:"median"},{name:"medianLabels"},{name:"q1"},{name:"q1Labels"},{name:"q3"},{name:"q3Labels"},{name:"parent",index:"parent"}]});function fm(t,n,e){const{a:r,d:i,e:o,f:a}=n;return"y"===e?i*t+a:r*t+o}function pm(t){return!(!t||void 0===t.identifier)}function mm(t){if(pm(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}function ym(t,n){if(pm(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};const e=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(n||mm(e));return{x:fm(e.clientX,r,"x"),y:fm(e.clientY,r,"y")}}function gm(t,n){const{horizontal:e}=t,r=t.scale,i=n||{x:r.x.domain(),y:r.y.domain()};return{x:e?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:e?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function xm(t,n,e,r){const{polar:i,horizontal:o}=t;if(!i)return{x:o?n.x.invert(r):n.x.invert(e),y:o?n.y.invert(e):n.y.invert(r)};const a=t.origin||{x:0,y:0},s=e-a.x,l=r-a.y,c=Math.abs(s*Math.sqrt(1+Math.pow(-l/s,2))),u=(-Math.atan2(l,s)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(u),y:n.y.invert(c)}}function vm(t){const{x1:n,x2:e,y1:r,y2:i,scale:o}=t,a=xm(t,o,n,r),s=xm(t,o,e,i),l=(t,n)=>[Et([t,n]),At([t,n])];return{x:l(a.x,s.x),y:l(a.y,s.y)}}var bm=r(8163),_m=r.n(bm);const Mm={getDimension(t){const{horizontal:n,brushDimension:e}=t;return n&&e?"x"===e?"y":"x":e},withinBounds(t,n,e){const{x1:r,x2:i,y1:o,y2:a}=ft(n,Number),{x:s,y:l}=ft(t,Number),c=e?e/2:0;return s+c>=Math.min(r,i)&&s-c<=Math.max(r,i)&&l+c>=Math.min(o,a)&&l-c<=Math.max(o,a)},getDomainBox(t,n,e){const r=this.getDimension(t),i=U()({},n,t.domain),o=U()({},e,i),a=gm(t,i),s=gm(t,o);return{x1:"y"!==r?Math.min(...s.x):Math.min(...a.x),x2:"y"!==r?Math.max(...s.x):Math.max(...a.x),y1:"x"!==r?Math.min(...s.y):Math.min(...a.y),y2:"x"!==r?Math.max(...s.y):Math.max(...a.y)}},getHandles(t,n){const e=this.getDimension(t),{x1:r,x2:i,y1:o,y2:a}=n,s=Math.min(r,i),l=Math.max(r,i),c=Math.min(o,a),u=Math.max(o,a),h=t.handleWidth/2;return{left:"y"!==e&&{x1:s-h,x2:s+h,y1:o,y2:a},right:"y"!==e&&{x1:l-h,x2:l+h,y1:o,y2:a},top:"x"!==e&&{x1:r,x2:i,y1:c-h,y2:c+h},bottom:"x"!==e&&{x1:r,x2:i,y1:u-h,y2:u+h}}},getActiveHandles(t,n,e){const r=this.getHandles(n,e),i=["top","bottom","left","right"].reduce(((n,e)=>r[e]&&this.withinBounds(t,r[e])?n.concat(e):n),[]);return i.length&&i},getResizeMutation(t,n){const{x1:e,y1:r,x2:i,y2:o}=t,a={left:{x1:Math.max(e,i),x2:Math.min(e,i),y1:r,y2:o},right:{x1:Math.min(e,i),x2:Math.max(e,i),y1:r,y2:o},top:{y1:Math.max(r,o),y2:Math.min(r,o),x1:e,x2:i},bottom:{y1:Math.min(r,o),y2:Math.max(r,o),x1:e,x2:i}};return n.reduce(((t,n)=>Object.assign(t,a[n])),{})},getMinimumDomain:()=>({x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}),getDefaultBrushArea(t,n,e){const{domain:r,fullDomain:i,scale:o,horizontal:a,allowResize:s}=t,l=s||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===l)return this.getMinimumDomain();if("disable"===l)return n;if("move"===l){const r=this.getDomainBox(t,i,n),s=t.parentSVG||mm(e),l=this.panBox({...t,...r,brushDomain:n,startX:(r.x1+r.x2)/2,startY:(r.y1+r.y2)/2},ym(e,s)),c=t.fullDomainBox||this.getDomainBox(t,i);return vm({...this.constrainBox(l,c),scale:o,horizontal:a})}return r},getSelectionMutation(t,n,e){const{x:r,y:i}=t,{x1:o,x2:a,y1:s,y2:l}=n;return{x1:"y"!==e?r:o,y1:"x"!==e?i:s,x2:"y"!==e?r:a,y2:"x"!==e?i:l}},panBox(t,n){const{domain:e,startX:r,startY:i}=t,o=this.getDimension(t),a=U()({},t.brushDomain,e),s=U()({},t.fullDomain,e),{x1:l,x2:c,y1:u,y2:h}=t.x1?t:this.getDomainBox(t,s,a),{x:d,y:f}=n,p=r?r-d:0,m=i?i-f:0;return{x1:"y"!==o?Math.min(l,c)-p:Math.min(l,c),x2:"y"!==o?Math.max(l,c)-p:Math.max(l,c),y1:"x"!==o?Math.min(u,h)-m:Math.min(u,h),y2:"x"!==o?Math.max(u,h)-m:Math.max(u,h)}},constrainBox(t,n){const{x1:e,y1:r,x2:i,y2:o}=ft(n,Number);return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,e),y1:t.y2>o?o-Math.abs(t.y2-t.y1):Math.max(t.y1,r),x2:t.x1<e?e+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<r?r+Math.abs(t.y2-t.y1):Math.min(t.y2,o)}},constrainPoint(t,n){const{x1:e,y1:r,x2:i,y2:o}=ft(n,Number);return{x:Math.min(Math.max(t.x,e),i),y:Math.min(Math.max(t.y,r),o)}},hasMoved(t){const{x1:n,x2:e,y1:r,y2:i,mouseMoveThreshold:o}=t,a=this.getDimension(t),s=Math.abs(n-e)>=o,l=Math.abs(r-i)>=o;switch(a){case"x":return s;case"y":return l;default:return s||l}},onMouseDown(t,n){t.preventDefault();const{handleWidth:e,cachedBrushDomain:r,domain:i,allowResize:o,allowDrag:a,allowDraw:s}=n,l=this.getDimension(n),c=o||n.defaultBrushArea?n.defaultBrushArea:"move";if(!o&&!a)return{};const u=n.fullDomainBox||this.getDomainBox(n,i),h=n.parentSVG||mm(t),{x:d,y:f}=ym(t,h);if(!this.withinBounds({x:d,y:f},u,e))return{};const p=U()({},n.brushDomain,i),m=ed()(p,r)?n.currentDomain||p||i:p||i,y=this.getDomainBox(n,i,m),g=o&&this.getActiveHandles({x:d,y:f},n,y);return g?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:y,fullDomainBox:u,cachedBrushDomain:p,currentDomain:m,parentSVG:h,...this.getResizeMutation(y,g)})}]:this.withinBounds({x:d,y:f},y)&&!ed()(i,m)?[{target:"parent",mutation:()=>({isPanning:a,startX:d,startY:f,domainBox:y,fullDomainBox:u,currentDomain:m,cachedBrushDomain:p,parentSVG:h,...y})}]:s?[{target:"parent",mutation:()=>({isSelecting:o||"move"===c,domainBox:y,fullDomainBox:u,parentSVG:h,cachedBrushDomain:p,cachedCurrentDomain:m,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:d,y:f},y,l)})}]:{}},onGlobalMouseMove(t,n){const{scale:e,isPanning:r,isSelecting:i,fullDomainBox:o,onBrushDomainChange:a,allowResize:s,allowDrag:l,horizontal:c,mouseMoveThreshold:u,parentSVG:h}=n,d=this.getDimension(n),{x:f,y:p}=ym(t,h);if(!s&&!l||u>0&&!this.hasMoved({...n,x2:f,y2:p}))return{};if(l&&r){const{startX:t,startY:r}=n,i=this.panBox(n,{x:f,y:p}),s=this.constrainBox(i,o),l=vm({...s,scale:e,horizontal:c}),u={currentDomain:l,parentSVG:h,startX:i.x2>=o.x2||i.x1<=o.x1?t:f,startY:i.y2>=o.y2||i.y1<=o.y1?r:p,...s};return ct(a)&&a(l,U()({},u,n)),[{target:"parent",mutation:()=>u}]}if(s&&i){const{x:t,y:r}=this.constrainPoint({x:"y"!==d?f:n.x2,y:"x"!==d?p:n.y2},o),i=vm({x2:t,y2:r,x1:n.x1,y1:n.y1,scale:e,horizontal:c}),s={x2:t,y2:r,currentDomain:i,parentSVG:h};return ct(a)&&a(i,U()({},s,n)),[{target:"parent",mutation:()=>s}]}return{}},onGlobalMouseUp(t,n){if(!n.isPanning&&!n.isSelecting)return{};const{x1:e,y1:r,x2:i,y2:o,isPanning:a,isSelecting:s,onBrushDomainChange:l,onBrushDomainChangeEnd:c,onBrushCleared:u,currentDomain:h,allowResize:d,allowDrag:f}=n,p=d||n.defaultBrushArea?n.defaultBrushArea:"move",m={isPanning:!1,isSelecting:!1};if(!d&&(void 0===p||"none"===p)||e!==i&&r!==o)(f&&a||d&&s)&&ct(c)&&c(h,U()({},m,n));else{const e=n.cachedCurrentDomain||h,r=this.getDefaultBrushArea(n,e,t);m.currentDomain=r,ct(l)&&l(r,U()({},m,n)),ct(c)&&c(r,U()({},m,n)),ct(u)&&u(r,U()({},m,n))}return[{target:"parent",mutation:()=>m}]}},Cm={...Mm,onMouseDown:Mm.onMouseDown.bind(Mm),onGlobalMouseUp:Mm.onGlobalMouseUp.bind(Mm),onGlobalMouseMove:_m()(Mm.onGlobalMouseMove.bind(Mm),16,{leading:!0,trailing:!1})},wm={allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:E().createElement(fu,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:E().createElement(fu,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0},Am=t=>{const n={...wm,...t},{children:e}=n,r=t=>{const{handleWidth:e,handleStyle:r,handleComponent:i,name:o}=n,a=Cm.getDomainBox(n,t),{x1:s,x2:l,y1:c,y2:u}=a,{top:h,bottom:d,left:f,right:p}=Cm.getHandles(n,a),m=Math.abs(l-s)||1,y=Math.abs(u-c)||1,g=i.props&&i.props.style||{},x=U()({},g,r),v=(()=>{const t={yProps:"ns-resize",xProps:"ew-resize"};return!n.allowResize&&n.allowDrag?(t.xProps="move",t.yProps="move"):n.allowResize||n.allowDrag||(t.xProps="auto",t.yProps="auto"),t})(),b={style:x,width:m,height:e,cursor:v.yProps},_={style:x,width:e,height:y,cursor:v.xProps},M={top:h&&Object.assign({x:h.x1,y:h.y1},b),bottom:d&&Object.assign({x:d.x1,y:d.y1},b),left:f&&Object.assign({y:f.y1,x:f.x1},_),right:p&&Object.assign({y:p.y1,x:p.x1},_)},C=["top","bottom","left","right"].reduce(((t,n)=>M[n]?t.concat(E().cloneElement(i,Object.assign({key:`${o}-handle-${n}`},M[n]))):t),[]);return C.length?C:null};return{props:n,children:[...E().Children.toArray(e),...(()=>{const{currentDomain:t,cachedBrushDomain:e}=n,i=U()({},n.brushDomain,n.domain),o=ed()(i,e)?U()({},t,i):i,a=(t=>{const{x:e,y:r}=t,{brushStyle:i,brushComponent:o,name:a}=n,s=o.props&&o.props.style,l=n.allowDrag||n.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?E().cloneElement(o,{key:`${a}-brush`,width:Math.abs(e[1]-e[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(e[0],e[1]),y:Math.min(r[0],r[1]),cursor:l,style:U()({},s,i)}):null})(gm(n,o));return a?[a,r(o)]:[]})()]}},Em=t=>{const{props:n,children:e}=Am(t);return E().createElement(lu,n,e)};Em.role="container",Em.defaultEvents=t=>{const n={...wm,...t},e=(t,e)=>(r,i,o,a)=>n.disable||e?.(i)?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Cm.onMouseDown),onTouchStart:e(Cm.onMouseDown),onGlobalMouseMove:e(Cm.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalTouchMove:e(Cm.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalMouseUp:e(Cm.onGlobalMouseUp),onGlobalTouchEnd:e(Cm.onGlobalMouseUp),onGlobalTouchCancel:e(Cm.onGlobalMouseUp)}}]};const km=1/Number.MAX_SAFE_INTEGER,Sm=t=>{const{scale:n={},dimension:e="x"}=t;if(n[e])return n[e];const r=Yo(t,e),i=st(t,e),o=za(t,e)||[0,1];return r.range(i).domain(o),r},Om=t=>{const{horizontal:n,dimension:e="x"}=t;return n?"x"===e?"y":"x":e},Dm=(t,n)=>{const e=Sm(t);return[e(Math.min(...n)),e(Math.max(...n))]},Pm=(t,n)=>{const e=Sm(t);return[e.invert(Math.min(...n)),e.invert(Math.max(...n))]},Lm=t=>Sm(t).range(),Tm=t=>Sm(t).domain(),jm=(t,n)=>t>=Et(n)&&t<=At(n),$m=(t,n)=>{if(t){const e=Et(t),r=At(t),i=Et(n),o=At(n),a=e<i?i:Number(o)-km,s=r>o?o:Number(i)+km;return[jm(e,n)?e:a,jm(r,n)?r:s]}return n},Nm=(t,n,e)=>{const r=t.handleWidth/2,i=Om(t),o=["min","max"].reduce(((t,o)=>(t[o]=jm(n,(t=>{const n={min:"x"===i?Math.min(...e):Math.max(...e),max:"x"===i?Math.max(...e):Math.min(...e)};return[n[t]-r,n[t]+r]})(o))?o:void 0,t)),{});return o.min&&o.max?"both":o.min||o.max},zm={stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.2:.1}},Rm={pointerEvents:"none",stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.4:.3}},Im={pointerEvents:"none",stroke:"none",fill:"none"};class Fm extends E().Component{static defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:E().createElement(Xp,null),brushComponent:E().createElement(Xp,null),groupComponent:E().createElement("g",null),handleComponent:E().createElement(Xp,null),handleWidth:10,lineComponent:E().createElement(Uf,null),width:10};static defaultEvents=function(t){return t.disable?void 0:[{target:t.type,eventHandlers:{onMouseEnter:(t,n)=>{t.preventDefault();const{allowResize:e,brushDomain:r}=n,i=Om(n),o=n.parentSVG||mm(t),a=ym(t,o)[i],s=Tm(n),l=$m(r,s),c=Dm(n,l),u=e&&Nm(n,a,c),h={brushArea:!n.brushDomain,brush:jm(a,c)&&!ed()(s,l),minHandle:"min"===u||"both"===u,maxHandle:"min"===u||"both"===u};return[{mutation:()=>({activeBrushes:h,brushDomain:n.brushDomain,parentSVG:o})}]},onMouseDown:(t,n)=>{t.preventDefault();const{allowResize:e,allowDrag:r,allowDraw:i,activeBrushes:o,brushDomain:a}=n,s=Om(n);if(!e&&!r)return[];const l=Tm(n),c=$m(a,l),u=n.parentSVG||mm(t),h=ym(t,u)[s],d=Dm(n,c),f=e&&Nm(n,h,d);return f?[{mutation:()=>({parentSVG:u,isSelecting:!0,activeHandle:f,brushDomain:c,startPosition:h,activeBrushes:o})}]:jm(h,d)&&!ed()(l,c)?[{mutation:()=>({isPanning:r,startPosition:h,brushDomain:c,activeBrushes:o,parentSVG:u})}]:i?[{mutation:()=>({isSelecting:e,brushDomain:null,startPosition:h,activeBrushes:o,parentSVG:u})}]:[]},onMouseMove:(t,n)=>{const{isPanning:e,isSelecting:r,allowResize:i,allowDrag:o,onBrushDomainChange:a,brushDomain:s}=n,l=Om(n);(e||r)&&(t.preventDefault(),t.stopPropagation());const c=n.parentSVG||mm(t),u=ym(t,c)[l],h=Tm(n),d=$m(s,h),f=Dm(n,d),p=Nm(n,u,f),m={brushArea:!n.brushDomain,brush:jm(u,f)&&!ed()(h,d),minHandle:"min"===p||"both"===p,maxHandle:"max"===p||"both"===p};if(!n.isPanning&&!n.isSelecting)return[{mutation:()=>({activeBrushes:m,brushDomain:n.brushDomain,parentSVG:c})}];if(o&&e){const t=Lm(n),e=((t,n)=>{const{brushDomain:e,startPosition:r}=t,i=Dm(t,e),o=Lm(t),a=Math.abs(i[1]-i[0]),s=Math.min(...o),l=Math.max(...o),c=r?r-n:0,u=Math.min(...i)-c,h=Math.max(...i)-c;return[u>l-a?l-a:Math.max(u,s),h<s+a?s+a:Math.min(h,l)]})(n,u),r=Pm(n,e),i={startPosition:Math.max(...e)>=Math.max(...t)||Math.min(...e)<=Math.min(...t)?n.startPosition:u,isPanning:!0,brushDomain:r,activeBrushes:{brush:!0},parentSVG:c};return ct(a)&&a(r,U()({},i,n)),[{mutation:()=>i}]}if(i&&r){let t=s||[0,km];const e=Dm(n,t),i="min"===n.activeHandle?"max":"min",o=n.activeHandle&&"both"===Nm(n,u,e)?i:n.activeHandle;if(o){const r="x"===l?Math.max(...e):Math.min(...e),i="x"===l?Math.min(...e):Math.max(...e);t=Pm(n,["max"===o?i:u,"min"===o?r:u])}else t=Pm(n,[n.startPosition,u]);const h={brushDomain:t,startPosition:n.startPosition,isSelecting:r,activeHandle:o,parentSVG:c,activeBrushes:{brush:!0,minHandle:"min"===p,maxHandle:"max"===p}};return ct(a)&&a(t,U()({},h,n)),[{mutation:()=>h}]}return[]},onMouseUp:(t,n)=>{const{onBrushDomainChange:e,brushDomain:r,allowResize:i,activeBrushes:o}=n,a={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:o};return i&&ct(e)&&e(r,U()({},a,n)),[{mutation:()=>a}]},onMouseLeave:(t,n)=>{const{brushDomain:e}=n;return[{mutation:()=>({isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:e,activeBrushes:{}})}]}}}]};getRectDimensions(t,n,e){const{brushDomain:r}=t,i=Om(t),o=Dm(t,e||$m(r,Tm(t))),a="x"===i?{y1:t.y1,y2:t.y2,x1:Math.min(...o),x2:Math.max(...o)}:{x1:t.x1,x2:t.x2,y1:Math.min(...o),y2:Math.max(...o)},{x1:s,x2:l,y1:c,y2:u}=a,h="x"===i?0:n/2,d="y"===i?0:n/2,f=Math.min(s,l)-h,p=Math.min(c,u)-d;return{x:f,y:p,width:Math.max(s,l)+h-f,height:Math.max(c,u)+d-p}}getHandleDimensions(t){const{handleWidth:n,x1:e,x2:r,y1:i,y2:o,brushDomain:a}=t,s=Om(t),l=t.brushWidth||t.width,c=$m(a,Tm(t)),u=Dm(t,c),h=Math.min(e,r)-l/2,d=Math.min(i,o)-l/2,f={min:"x"===s?Math.min(...u)-n/2:h,max:"x"===s?Math.max(...u)-n/2:h},p={min:"y"===s?Math.max(...u)-n/2:d,max:"y"===s?Math.min(...u)-n/2:d},m="x"===s?n:l,y="x"===s?l:n;return{min:{x:f.min,y:p.min,width:m,height:y},max:{x:f.max,y:p.max,width:m,height:y}}}getCursor(t){const{activeBrushes:n={}}=t,e=Om(t);return n.minHandle||n.maxHandle?"x"===e?"ew-resize":"ns-resize":n.brush?"move":"crosshair"}renderHandles(t){const{handleComponent:n,handleStyle:e,id:r,brushDomain:i,datum:o={},activeBrushes:a={}}=t;if(!i)return null;const s=this.getHandleDimensions(t),l=Object.assign({},Im,e),c=Object.assign({handleValue:Et(i)},o),u=Object.assign({handleValue:At(i)},o),h=Object.assign({key:`${r}-min`,style:et(l,{datum:c,active:a.minHandle})},s.min),d=Object.assign({key:`${r}-max`,style:et(l,{datum:u,active:a.maxHandle})},s.max);return[E().cloneElement(n,h),E().cloneElement(n,d)]}renderBrush(t){const{brushComponent:n,brushStyle:e,activeBrushes:r={},datum:i={},brushDomain:o}=t;if(!o)return null;const a=t.brushWidth||t.width,s=this.getRectDimensions(t,a),l=et(Object.assign({},Rm,e),{datum:i,active:r.brush}),c=Object.assign({style:l},s);return E().cloneElement(n,c)}renderBrushArea(t){const{brushAreaComponent:n,brushAreaStyle:e,activeBrushes:r={},datum:i={}}=t,o=t.brushAreaWidth||t.width,a=this.getCursor(t),s=this.getRectDimensions(t,o,Tm(t)),l=et(Object.assign({cursor:a},zm,e),{datum:i,active:r.brushArea}),c=Object.assign({style:l},s);return E().cloneElement(n,c)}renderLine(t){const n=H()(t,["x1","x2","y1","y2","datum","scale","active","style"]);return E().cloneElement(t.lineComponent,n)}render(){return E().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}const Bm={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Wf,null),rectComponent:E().createElement(fu,null),role:"presentation",shapeRendering:"auto"},Wm=t=>{const n=(t=>{const n=et(Object.assign({stroke:"black"},t.style),t),e=((t,n)=>{const{style:e}=n;return t?ct(t)?nt(t,n):t:e.width?e.width:t})(t.candleWidth,Object.assign({},t,{style:n})),r=nt(t.ariaLabel,t),i=nt(t.desc,t),o=nt(t.id,t),a=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:r,style:n,candleWidth:e,desc:i,id:o,tabIndex:a})})(U()({},t,Bm)),{ariaLabel:e,events:r,groupComponent:i,clipPath:o,rectComponent:a,lineComponent:s,role:l,shapeRendering:c,className:u,wickStrokeWidth:h,transform:d,style:f,desc:p,tabIndex:m}=n,y=U()({strokeWidth:h},f),g={...r,"aria-label":e,role:l,shapeRendering:c,className:u,transform:d,clipPath:o,desc:p,tabIndex:m},x=Object.assign(((t,n)=>{const{id:e,x:r,close:i,open:o,horizontal:a,candleWidth:s}=t,l=Math.abs(i-o);return{key:`${e}-candle`,style:K(n,["width"]),x:a?Math.min(o,i):r-s/2,y:a?r-s/2:Math.min(o,i),width:a?l:s,height:a?s:l}})(n,f),g),v=Object.assign(((t,n)=>{const{horizontal:e,high:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-highWick`,style:K(n,["width"]),x1:e?r:a,x2:e?Math.max(i,o):a,y1:e?a:r,y2:e?a:Math.min(i,o)}})(n,y),g),b=Object.assign(((t,n)=>{const{horizontal:e,low:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-lowWick`,style:K(n,["width"]),x1:e?Math.min(i,o):a,x2:e?r:a,y1:e?a:Math.max(i,o),y2:e?a:r}})(n,y),g);return E().cloneElement(i,{},[E().cloneElement(a,x),E().cloneElement(s,v),E().cloneElement(s,b)])},Vm=["close","open","high","low"],Um=t=>xa(t.data,t,["x","high","low","close","open"]),qm=(t,n,e)=>{const r="x"===n?"_x":{min:"_low",max:"_high"}[e],i="min"===e?1/0:-1/0;return t.reduce(((t,n)=>{const i=n[r];return t<i&&"min"===e||t>i&&"max"===e?t:i}),i)},Hm=(t,n)=>{const e=Fa(t,n),r=Ia(t,n),i=Um(t);return i.length<1?void 0!==e&&void 0!==r?Na(e,r):void 0:Na(void 0!==e?e:qm(i,n,"min"),void 0!==r?r:qm(i,n,"max"))},Gm=(t,n)=>Pa(Hm)(t,n),Km=(t,n,e)=>{const r=t[`${e}LabelComponent`],i=n[`${e}Labels`]||n.labels;if(!Q(r))return i;const o=t.theme&&t.theme.tooltip||{};return U()({},o.style,i)},Ym=(t,n,e,r)=>{const{x:i,high:o,low:a,open:s,close:l,index:c,scale:u,datum:h,data:d,horizontal:f,candleWidth:p,labelOrientation:m,theme:y}=t,g=t[`${r}LabelComponent`]||t.labelComponent,x=f?"top":"right",v=g.props&&g.props.orientation||function(t,n){return void 0===n&&(n="labels"),L()(t)?t[n]:t}(m,r)||x,b={high:o,low:a,open:s,close:l},_=e[r?`${r}Labels`:"labels"]||e.labels,M={positions:b,labelStyle:_,x:i,horizontal:f,computedType:r||"labels",candleWidth:p,orientation:v},{yValue:C,xValue:w,dx:A,dy:E}=(t=>{const{positions:n,labelStyle:e,x:r,horizontal:i,computedType:o,candleWidth:a,orientation:s}=t;n.labels=(n.open+n.close)/2;const l="left"===s?-1:1,c="top"===s?-1:1;if(i){const t=r,i=n[o],u="top"===s||"bottom"===s?c*(a/2)+c*(e.padding||0):0;return{yValue:t,xValue:i,dx:"top"===s||"bottom"===s?0:l*(e.padding||1),dy:u}}const u=r,h=n[o],d="top"===s||"bottom"===s?c*(e.padding||1):0;return{yValue:h,xValue:u,dx:"top"===s||"bottom"===s?0:l*(a/2)+l*(e.padding||0),dy:d}})(M),k={style:_,y:C,x:w,dx:A,dy:E,text:n,index:c,scale:u,datum:h,data:d,orientation:v,textAnchor:_.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[v],verticalAnchor:_.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[v],angle:_.angle,horizontal:f};if(!Q(g))return k;const S=y&&y.tooltip||{};return U()({},k,K(S,["style"]))},Xm=(t,n)=>{const e=ht(t,n,"candlestick"),r=(t=>{const{polar:n}=t,e=J(t,"candlestick"),r=function(t,n,e){if(void 0===e&&(e={}),t.disableInlineStyles)return{};const r="100%",i="100%";if(!n)return U()({parent:{height:i,width:r}},e);const o=e.parent||{},a=e.labels||{},s=e.data||{},l=U()({},n.labels,a);return{parent:U()({},n.parent,o,{width:r,height:i}),labels:l,data:U()({},n.data,s),openLabels:U()({},n.openLabels,Km(t,e,"open"),l),closeLabels:U()({},n.closeLabels,Km(t,e,"close"),l),lowLabels:U()({},n.lowLabels,Km(t,e,"low"),l),highLabels:U()({},n.highLabels,Km(t,e,"high"),l)}}(t,t.style,e),i=Um(t),o={x:st(t,"x"),y:st(t,"y")},a={x:Gm(t,"x"),y:Gm(t,"y")},s={x:Yo(t,"x").domain(a.x).range(t.horizontal?o.y:o.x),y:Yo(t,"y").domain(a.y).range(t.horizontal?o.x:o.y)},l=n?t.origin||at(t):void 0,c=t.horizontal?"top":"right";return{domain:a,data:i,scale:s,style:r,origin:l,labelOrientation:t.labelOrientation||c}})(e),{data:i,style:o,scale:a,domain:s,origin:l,labelOrientation:c}=r,{groupComponent:u,width:h,height:d,padding:f,standalone:p,name:m,candleWidth:y,candleRatio:g,theme:x,polar:v,wickStrokeWidth:b,labels:_,events:M,sharedEvents:C,horizontal:w,disableInlineStyles:A}=e,E={parent:{domain:s,scale:a,width:h,height:d,data:i,standalone:p,theme:x,polar:v,origin:l,name:m,style:o.parent,padding:f,horizontal:w}};return i.reduce(((t,n,r)=>{const d=lt(n.eventKey)?r:n.eventKey,f=a.x(void 0!==n._x1?n._x1:n._x),p=((t,n)=>{const e=Et(n.x),r=At(n.x),i=Et(n.y),o=At(n.y);let{_x:a,_low:s,_open:l,_close:c,_high:u}=t;return(a<e||a>r)&&(a=null),s<i&&l<i&&c<i&&u<i&&(s=l=c=u=null),s>o&&l>o&&c>o&&u>o&&(s=l=c=u=null),Object.assign({},t,{_x:a,_low:s,_open:l,_close:c,_high:u})})(n,s),{_low:m,_open:x,_close:E,_high:k}=p,S=a.y(k),O=a.y(E),D=a.y(x),P=a.y(m),L=function(t,n,e){if(void 0===n&&(n={}),e.disableInlineStyles)return{};const r=t._open>t._close?e.candleColors.negative:e.candleColors.positive,i=n.fill||r,o=n.stroke,a="none"===(s=o)||"transparent"===s?i:o||"black";var s;return Object.assign({},n,{stroke:a,fill:i})}(p,o.data,e),T={x:f,high:S,low:P,candleWidth:y,candleRatio:g,scale:a,data:i,datum:p,groupComponent:u,index:r,style:L,width:h,polar:v,origin:l,wickStrokeWidth:b,open:D,close:O,horizontal:w,labelOrientation:c,disableInlineStyles:A};T.candleWidth=((t,n)=>{const{data:e,candleWidth:r,scale:i}=t;if(r)return ct(r)?nt(r,t):r;const o=i.x.range(),a=Math.abs(o[1]-o[0]),s=e.length+2,l=(t.candleRatio||.5)*(e.length<2?8:a/s);return Math.max(1,l)})(T);const j=U()(Object.assign({},T),e);if(t[d]={data:T},_){const n=Ua(e,p,r);(null!=n||_&&(M||C))&&(t[d].labels=Ym(j,n,o))}return Vm.forEach((n=>{const r=((t,n)=>{const{datum:e,index:r,labels:i}=t,o=t[`${n}Labels`];return o||i?!0===o||!0===i?`${e[`_${n}`]}`:Array.isArray(o)?o[r]:o:null})(j,n),i=e.labels||e[`${n}Labels`];if(null!=r||i&&(M||C)){const e=`${n}Labels`;t[d][e]=Ym(j,r,o,n)}})),t}),E)},Zm={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},Qm=[{x:new Date(2016,6,1),open:5,close:10,high:15,low:0},{x:new Date(2016,6,2),open:10,close:15,high:20,low:5},{x:new Date(2016,6,3),open:15,close:20,high:25,low:10},{x:new Date(2016,6,4),open:20,close:25,high:30,low:15},{x:new Date(2016,6,5),open:25,close:30,high:35,low:20},{x:new Date(2016,6,6),open:30,close:35,high:40,low:25},{x:new Date(2016,6,7),open:35,close:40,high:45,low:30},{x:new Date(2016,6,8),open:40,close:45,high:50,low:35}],Jm=t=>!lt(t._x)&&!lt(t._y);class ty extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","size","style","width"];static displayName="VictoryCandlestick";static role="candlestick";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),data:Qm,dataComponent:E().createElement(Wm,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(Zh,null),highLabelComponent:E().createElement(Zh,null),lowLabelComponent:E().createElement(Zh,null),openLabelComponent:E().createElement(Zh,null),closeLabelComponent:E().createElement(Zh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return Gm(t,n)}static getData(t){return Um(t)}static getBaseProps(t){return Xm(t,Zm)}static expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}shouldRenderDatum=t=>!(lt(t._x)||lt(t._high)||lt(t._low)||lt(t._close)||lt(t._open));renderCandleData(t,n){void 0===n&&(n=Jm);const{dataComponent:e,labelComponent:r,groupComponent:i}=t;if(!i)throw new Error("VictoryCandlestick expects a groupComponent prop");const o=[];if(e){const t=this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]);o.push(...t)}const a=["close","open","low","high"].flatMap((n=>this.dataKeys.map(((e,r)=>{const i=`${n}Labels`,o=t[`${n}LabelComponent`],a=this.getComponentProps(o,i,r);if(void 0!==a.text&&null!==a.text)return E().cloneElement(o,a)})).filter((t=>void 0!==t))));if(o.push(...a),r){const t=this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text&&"boolean"!=typeof e.text)return E().cloneElement(r,e)})).filter((t=>void 0!==t));o.push(...t)}return this.renderContainer(i,o)}render(){const{animationWhitelist:t,role:n}=ny,e=ht(this.props,Zm,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderCandleData(e,this.shouldRenderDatum),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const ny=zf(ty,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),ey=E().createContext(void 0),ry=()=>{const t=E().useContext(ey);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},iy=t=>{const{canvasRef:n}=ry(),e=(t=>{const n=Dp(t.style,t),e=Sp(t.barWidth,Object.assign({},t,{style:n})),r=Op(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e}));return Object.assign({},t,{style:n,barWidth:e,cornerRadius:r})})(t),{polar:r,style:i,barWidth:o,cornerRadius:a,origin:s}=e,l=E().useMemo((()=>{const t=r?Wp(e,a):Bp(e,o,a);return new Path2D(t)}),[r,o,a,e]),c=(t=>{const n=E().useRef();return E().useEffect((()=>{n.current=t})),n.current})(l),u=E().useCallback(((t,n)=>{t.fillStyle=i.fill,t.strokeStyle=i.stroke,t.globalAlpha=i.fillOpacity,t.lineWidth=i.strokeWidth,r&&t.translate(s?.x||0,s?.y||0),t.fill(n),t.setTransform(1,0,0,1,0,0)}),[i,s,r]),h=E().useCallback((t=>{if(c){t.save();const n=i.strokeWidth||0;t.lineWidth=n+2,t.globalCompositeOperation="destination-out",u(t,c),t.stroke(c),t.restore()}}),[u,c,i]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&(h(t),u(t,l))}),[n,u,r,o,a,e,l,h]),null},oy=t=>{const n=E().useRef(null),{children:e,width:r=0,height:i=0,clipWidth:o,padding:a}=t,s=E().useCallback((t=>t.clearRect(0,0,r,i)),[r,i]),l=E().useCallback((t=>{const n="number"==typeof a?a:a?.right||0,e=r-n-("number"==typeof a?a:a?.left||0);t.clearRect(r-n,0,o?-1*(e-o):0,i)}),[r,i,a,o]);return E().createElement(ey.Provider,{value:{canvasRef:n,clear:s,clip:l}},E().createElement("foreignObject",{width:r,height:i,x:0,y:0},E().createElement("canvas",{width:r,height:i,ref:n})),e)};oy.role="container";const ay=t=>{const{canvasRef:n,clear:e,clip:r}=ry(),{style:i,data:o}=t,{stroke:a,strokeWidth:s}=i,l=E().useCallback((n=>{const e=zc(t);n.strokeStyle=a,n.lineWidth=s,e.context(n)(o),n.stroke()}),[o,t,a,s]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&(e(t),l(t),r(t))}),[n,l,e,r]),null};function sy(t,n,e){return`M ${t}, ${n}\n m ${-e}, 0\n a ${e}, ${e} 0 1,0 ${2*e},0\n a ${e}, ${e} 0 1,0 ${2*-e},0`}function ly(t,n,e){const r=.87*e,i=t-r,o=t+r-i;return`M ${i}, ${n+r}\n h${o}\n v-${o}\n h-${o}\n z`}function cy(t,n,e){const r=.87*e,i=Math.sqrt(r*r*2);return`M ${t}, ${n+i}\n l ${i}, -${i}\n l -${i}, -${i}\n l -${i}, ${i}\n l ${i}, ${i}\n z`}function uy(t,n,e){const r=n-e;return`M ${t-e}, ${r}\n L ${t+e}, ${r}\n L ${t}, ${n+e/2*Math.sqrt(3)}\n z`}function hy(t,n,e){const r=n+e;return`M ${t-e}, ${r}\n L ${t+e}, ${r}\n L ${t}, ${n-e/2*Math.sqrt(3)}\n z`}function dy(t,n,e){const r=1.1*e,i=r/1.5;return`\n M ${t-i/2}, ${n+r}\n v-${i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${i}\n z`}function fy(t,n,e){const r=.8*e,i=r/1.5;return`\n M ${t-i/2}, ${n+r+i}\n v-${2*i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${2*i}\n z`}function py(t,n,e){const r=1.1*e,i=r-.3*r,o=t-r,a=t+r-o;return`M ${o}, ${n+i/2}\n h${a}\n v-${i}\n h-${a}\n z`}function my(t,n,e){const r=1.35*e,i=Math.PI/5;return`M ${pt(10).map((e=>{const o=e%2==0?r:r/2;return`${o*Math.sin(i*(e+1))+t},\n ${o*Math.cos(i*(e+1))+n}`})).join("L")} z`}const yy=t=>{const{canvasRef:n}=ry(),e=(t=>{const n=nt(t.size,t),e=et(t.style,t),r=nt(t.symbol,t);return Object.assign({},t,{size:n,style:e,symbol:r})})(t),r=E().useCallback((t=>{const{style:n}=e,r=(t=>{const{x:n,y:e,size:r,symbol:i}=t;if(t.getPath)return t.getPath(n,e,r);const o={circle:sy,square:ly,diamond:cy,triangleDown:uy,triangleUp:hy,plus:dy,minus:py,star:my,cross:fy};return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)})(e);t.fillStyle=n.fill;const i=new Path2D(r);t.fill(i)}),[e]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&r(t)}),[]),null},gy={circleComponent:E().createElement(hu,null),rectComponent:E().createElement(fu,null),role:"presentation",shapeRendering:"auto"},xy=t=>{const n=(t=>{const n=nt(t.id,t);return Object.assign({},t,{id:n})})(U()({},t,gy));return n.polar?E().cloneElement(n.circleComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,cx:n.x,cy:n.y,r:n.height,className:n.className}):E().cloneElement(n.rectComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,x:n.x,y:n.y,rx:n.rx,ry:n.ry,width:n.width,height:n.height,className:n.className})},vy={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},by=function(t){void 0===t&&(t=vy);const[n,e]=E().useState(t),r=E().useCallback((t=>{e((n=>({...n,...t})))}),[e]),i=E().useCallback(((t,e,i)=>{if(!t?.animate)return e.props.animate;let o=t.animate&&t.animate.getTransitions;const a=(()=>{let t=n&&n.childrenTransitions;return t=Ct(t)?t[i]:t,U()({childrenTransitions:t},n)})(),s=t.animate&&t.animate.parentState||a;if(!o){const n=gf(t,a,(t=>r(t)));o=t=>n(t,i)}return U()({getTransitions:o,parentState:s},t.animate,e.props.animate)}),[n,r]),o=E().useCallback(((t,n)=>{if(t?.animate)if(t.animate.parentState){const e=t.animate.parentState.nodesWillExit?t:null,i=U()({oldProps:e,nextProps:n},t.animate.parentState);r(i)}else{const e=E().Children.toArray(t.children),i=E().Children.toArray(n.children),o=t=>{const n=t=>t.type&&t.type.continuous;return Array.isArray(t)?t.some(n):n(t)},a=!t.polar&&e.some((t=>o(t)||t?.props?.children&&o(t.props.children))),{nodesWillExit:s,nodesWillEnter:l,childrenTransitions:c,nodesShouldEnter:u}=yf(e,i);r({nodesWillExit:s,nodesWillEnter:l,nodesShouldEnter:u,childrenTransitions:Ct(c)?c[0]:c,oldProps:s?t:void 0,nextProps:n,continuous:a})}}),[r]),a=E().useCallback((t=>n&&n.nodesWillExit&&n.oldProps||t),[n]);return{state:n,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}};var _y=r(8961),My=r.n(_y);function Cy(t){let{children:n,props:e,childComponents:r,parentProps:i}=t;const o=n.some((t=>t.type&&"histogram"===t.type.role)),a=o&&n.length&&n.every((t=>t.type&&"histogram"===t.type.role));if(!a)return i;let s=e.bins||r[0].props.bins;if(!Array.isArray(s)){const t=n.reduce(((t,n)=>{const e=ut(n.props.x||"x");return t.concat(n.props.data.map((t=>({x:e(t)}))))}),[]);s=(0,n[0].type.getFormattedData)({data:t,bins:s}).reduce(((t,n,e)=>{let{x0:r,x1:i}=n;return 0===e?t.concat([r,i]):t.concat(i)}),[])}return{...i,bins:s}}function wy(t,n){const{polar:e,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s}=t;let l={polar:e,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s},c=0;const u=n?n.slice(0):E().Children.toArray(t.children);l=Cy({children:u,props:t,childComponents:n,parentProps:l});const h=u.filter((t=>t.type&&"stack"===t.type.role)).length,d=mt(u,((t,n,e)=>{const r=Object.assign({},t.props,l);let i,o=t;return Aa(t)?(t.type&&ct(t.type.getData)?(o=e?E().cloneElement(t,e.props):t,i=o.type.getData(r)):i=_a(r),c+=1,i.map(((t,n)=>Object.assign({_stack:c,_group:n},t)))):null}),t,[],((t,n)=>t.concat(My()(n,"_group")))),f=h?"_group":"_stack";return Object.values(tm()(d,f))}function Ay(t,n){return t.data?_a(t):wy(t,n||E().Children.toArray(t.children))}function Ey(t,n,e){const{datasets:r,horizontal:i}=t,o=st(t,i?"y":"x"),a=Math.abs(o[1]-o[0]),s=void 0!==e?e:Array.isArray(r[0])&&r[0].length||1,l=(n||r.length)*s;return Math.round(.5*a/l)}function ky(t,n,e){if(t.polar||"x"!==n)return;const r=e.filter((t=>t.type&&t.type.role&&"group"===t.type.role));if(r.length<1)return;const{offset:i,children:o}=r[0].props;if(!i)return;const a=Array.isArray(o)&&o[0];if(!a)return;let s=a.props.barWidth,l=a.props.data&&a.props.data.length||1;if(a&&"stack"===a.type.role){const t=a.props.children&&a.props.children[0];if(!t)return;s=t.props.barWidth,l=a.props.children.length}const c=s||Ey(t,o.length,l);return{x:c*o.length/2+(i-c*((o.length-1)/2))}}function Sy(t,n,e){const r=e?e.slice(0):E().Children.toArray(t.children),i=t.data?_a(t):void 0,{polar:o,startAngle:a,endAngle:s,categories:l,minDomain:c,maxDomain:u,horizontal:h}=t,d={horizontal:h,polar:o,startAngle:a,endAngle:s,minDomain:c,maxDomain:u,categories:l},f=i?Object.assign(d,{data:i}):d,p=mt(r,(t=>{const e=Object.assign({},t.props,f);return Wa(t)?t.type&&ct(t.type.getDomain)?t.props&&t.type.getDomain(e,n):Ta(e,n):null}),t);return[0===p.length?0:Et(p),0===p.length?1:At(p)]}function Oy(t,n,e){const r=e||E().Children.toArray(t.children),i=za(t,n),o=ky(t,n,r);let a;if(i)a=i;else{const e=Fa(t,n),i=Ia(t,n),o=(t.data||t.y)&&_a(t),s=o?$a(t,n,o):[],l=Sy(t,n,r);a=Na(e||Et([...s,...l]),i||At([...s,...l]))}return La(a,Object.assign({domainPadding:o},t),n)}function Dy(t,n,e){if(t.data)return Yo(t,n);const r=e?e.slice(0):E().Children.toArray(t.children),i=W()(mt(r,(e=>Qo(Object.assign({},e.props,{horizontal:t.horizontal}),n)),t));return i.length>1?Ko("linear"):Ko(i[0])}function Py(t){const n=Df(t,["groupComponent","containerComponent","labelComponent"]);let e=t.events;return Array.isArray(n)&&(e=Array.isArray(t.events)?n.concat(...t.events):n),e||[]}function Ly(t,n,e,r){const{style:i}=t;let{colorScale:o,color:a}=t;if(i&&i.data&&i.data.fill)return i.data.fill;if(o=n.props&&n.props.colorScale?n.props.colorScale:o,a=n.props&&n.props.color?n.props.color:a,!o&&!a)return;const s=Array.isArray(o)?o:wh(o,r);return a||s[e%s.length]}function Ty(t,n,e){return tt(n,t&&t[e]&&t[e].style?t[e].style:{})}function jy(t,n,e,r){const{style:i,role:o}=e,a=t.props.style||{};if(Array.isArray(a))return a;const s=t.type&&t.type.role,l="stack"===s?void 0:Ly(e,t,n,r),c="line"===s?{fill:"none",stroke:l}:{fill:l},u="stack"===o?{}:{width:Ey(e)},h=U()({},a.data,Object.assign({},u,i.data,c)),d=U()({},a.labels,i.labels);return{...a,parent:i.parent,data:h,labels:d}}function $y(t,n){return mt(t.slice(0),(t=>Wa(t)?Ca(t.props||{},n):null))}function Ny(t){return mt(t.slice(0),(t=>{const n=t.props||{};let e;return Aa(t)?(e=t.type&&ct(t.type.getData)?t.type.getData(n):_a(n),e.map((t=>({x:t.xName,y:t.yName})))):null}),{},{x:[],y:[]},((t,n)=>{const e=Array.isArray(n)?n.map((t=>t.x)).filter(Boolean):n.x,r=Array.isArray(n)?n.map((t=>t.y)).filter(Boolean):n.y;return{x:void 0!==e?t.x.concat(e):t.x,y:void 0!==r?t.y.concat(r):t.y}}))}function zy(t,n,e){const r=Ca(t,n),i=Xf(e,n),o=i?Ma(i.props,n):[],a=r.length?r:$y(e,n);return W()([...a,...o].flat())}function Ry(t,n){const e=n||E().Children.toArray(t.children),r=zy(t,"x",e),i=zy(t,"y",e),o=Ny(e);return{x:W()([...r,...o.x].flat()),y:W()([...i,...o.y].flat())}}function Iy(t,n,e){const r=t.categories&&Ca(t,"x"),i=t.categories&&Ca(t,"y"),o=r&&i?{}:e||Ry(t,n),a=r||o.x,s=i||o.y;return{x:a.length>0?a:void 0,y:s.length>0?s:void 0}}function Fy(t){const n=E().useRef();return E().useEffect((()=>{n.current=t})),n.current}var By=r(7314),Wy=r.n(By),Vy=r(2516),Uy=r.n(Vy);class qy extends E().Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=sf;static defaultProps={groupComponent:E().createElement("g",null)};constructor(t){super(t),this.getScopedEvents=wf.bind(this),this.getEventState=Ef.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!ed()(this.props,t)){this.baseProps=this.getBaseProps(t);const n=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,n)}return!0}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(){const t=Object.keys(this.globalEvents);Mt(this.prevGlobalEventKeys,t).forEach((t=>this.removeGlobalListener(t))),Mt(t,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e(jf(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Pf(t),n)}removeGlobalListener(t){window.removeEventListener(Pf(t),this.boundGlobalEvents[t])}getAllEvents(t){const n=Df(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat(...t.events):n:t.events}applyExternalMutations(t,n){if(!S()(n)){const e=t.externalEventMutations.reduce(((t,n)=>ct(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getExternalMutations(t,n){return S()(t.externalEventMutations)?void 0:kf(t.externalEventMutations,n,this.state,Object.keys(n))}cacheSharedEvents(t,n,e){this.sharedEventsCache[t]=[n,e]}getCachedSharedEvents(t,n){const[e,r]=this.sharedEventsCache[t]||[];if(e&&ed()(n,r))return e}getBaseProps(t){const{container:n}=t,e=E().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(e),i=n?n.props:{};return Object.assign({},r,{parent:i})}getBasePropsFromChildren(t){const n=mt(t,((t,n)=>{if(t.type&&ct(t.type.getBaseProps)){const e=t.props&&t.type.getBaseProps(t.props);return e?[[n,e]]:null}return null}));return Wy()(n)}getNewChildren(t,n){const{events:e,eventKey:r}=t,i=(t,o)=>t.reduce(((t,a,s)=>{if(a.props.children){const n=E().Children.toArray(a.props.children),e=o.slice(s,s+n.length),r=E().cloneElement(a,a.props,i(n,e));return t.concat(r)}if("parent"!==o[s]&&a.type&&ct(a.type.getBaseProps)){const i=a.props.name||o[s],l=Array.isArray(e)&&e.filter((t=>"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(i)>-1:t.childName===i||"all"===t.childName))),c=[i,n,l,Uy()(this.state[i])],u=this.getCachedSharedEvents(i,c)||{events:l,getEvents:(t,e)=>this.getScopedEvents(t,e,i,n),getEventState:(t,n)=>this.getEventState(t,n,i)};return this.cacheSharedEvents(i,u,c),t.concat(E().cloneElement(a,Object.assign({key:`events-${i}`,sharedEvents:u,eventKey:r,name:i},a.props)))}return t.concat(a)}),[]),o=Object.keys(n),a=E().Children.toArray(t.children);return i(a,o)}getContainer(t,n,e){const r=this.getNewChildren(t,n),i=Array.isArray(e)?e.filter((t=>"parent"===t.target)):[],o=i.length>0?{events:i,getEvents:(t,e)=>this.getScopedEvents(t,e,null,n),getEventState:this.getEventState}:null,a=t.container||t.groupComponent,s=a.type&&a.type.role,l=a.props||{},c=Cf.bind(this),u=o&&c({sharedEvents:o},"parent"),h=U()({},this.getEventState("parent","parent"),l,n.parent,{children:r}),d=U()({},Af(u,"parent",h),l.events);this.globalEvents=Lf(d);const f=Tf(d);return"container"===s?E().cloneElement(a,Object.assign({},h,{events:f})):E().cloneElement(a,f,r)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):E().cloneElement(this.props.container,{children:this.props.children})}}const Hy=t=>{const{cx:n,cy:e,r:r,startAngle:i,endAngle:o,closedPath:a}=t,s=Math.abs(o-i)/2+i,l=n+r*Math.cos(rt(i)),c=e-r*Math.sin(rt(i));return`${a?` M ${n}, ${e} L ${l}, ${c}`:`M ${l}, ${c}`} A ${r}, ${r}, 0, ${s-i<=180?0:1}, 0, ${n+r*Math.cos(rt(s))}, ${e-r*Math.sin(rt(s))} A ${r}, ${r}, 0, ${o-s<=180?0:1}, 0, ${n+r*Math.cos(rt(o))}, ${e-r*Math.sin(rt(o))} ${a?"Z":""}`},Gy={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Ky=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({stroke:"black",fill:"none"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Gy));return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:Hy(n),style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,transform:n.transform,clipPath:n.clipPath})},Yy=(t,n,e)=>"x"===e?t*Math.cos(n):-t*Math.sin(n),Xy=t=>{const n=t.dependentAxis?"radial":"angular",e="angular"===n?"radial":"angular";return t.horizontal?e:n},Zy=(t,n)=>({tickStyle:et(t.ticks,n),labelStyle:et(t.tickLabels,n),gridStyle:et(t.grid,n)}),Qy=t=>{const{left:n,right:e,top:r,bottom:i}=Z(t.padding),{width:o,height:a}=t;if(void 0===o||void 0===a)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-e,a-r-i)/2},Jy=(t,n)=>{if(t.range&&t.range[n])return t.range[n];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===Xy(t))return[rt(t.startAngle),rt(t.endAngle)];const e=Qy(t);return[t.innerRadius||0,e]},tg=t=>{const n=Kf(t),e=Yo(t,n),r=sp(t,n)||e.domain(),i=Jy(t,n);return e.range(i),e.domain(r),e},ng=function(t,n){if(void 0===n&&(n={}),t.disableInlineStyles)return{};const e=t.style||{};return{parent:U()({height:"auto",width:"100%"},e.parent,n.parent),axis:U()({},e.axis,n.axis),axisLabel:U()({},e.axisLabel,n.axisLabel),grid:U()({},e.grid,n.grid),ticks:U()({},e.ticks,n.ticks),tickLabels:U()({},e.tickLabels,n.tickLabels)}},eg=t=>{const{axisAngle:n,startAngle:e,dependentAxis:r}=t,i=lp(t,Kf(t));return void 0!==i&&r?it(i):void 0===n?e:n},rg=(t,n,e,r)=>{const{axisType:i,radius:o,scale:a,style:s,stringTicks:l,ticks:c,tickFormat:u,origin:h}=n,d=u(e,r,c),f=l?l[r]:e,{tickStyle:p}=Zy(s,{tick:f,tickValue:e,index:r,ticks:c,stringTicks:l,radius:o,scale:a,axisType:i,text:d}),m="radial"===i?eg(t):void 0,y=p.padding||p.size||0,g=rt(90-m),x="angular"===i?a(e):rt(-1*m),v="angular"===i?o:a(e);return"angular"===i?{index:r,datum:f,style:p,x1:Yy(v,x,"x")+h.x,y1:Yy(v,x,"y")+h.y,x2:Yy(v+y,x,"x")+h.x,y2:Yy(v+y,x,"y")+h.y}:{index:r,datum:f,style:p,x1:v*Math.cos(x)+Math.cos(g)*y+h.x,x2:v*Math.cos(x)-Math.cos(g)*y+h.x,y1:v*Math.sin(x)+Math.sin(g)*y+h.y,y2:v*Math.sin(x)-Math.sin(g)*y+h.y}},ig=(t,n,e,r)=>{const{axisType:i,radius:o,tickFormat:a,style:s,scale:l,ticks:c,stringTicks:u,origin:h}=n,d=a(e,r,c),f=u?u[r]:e,{labelStyle:p}=Zy(s,{text:d,tick:f,tickValue:e,index:r,ticks:c,stringTicks:u,radius:o,scale:l,axisType:i}),{tickLabelComponent:m}=t,y=m?.props.labelPlacement?m.props.labelPlacement:t.labelPlacement,g=p.padding||0,x="radial"===i?eg(t):void 0,v="angular"===i?it(l(e)):x+0,b=void 0===p.angle?Ga(Object.assign({},t,{labelPlacement:y}),v):p.angle,_="angular"===i?o+g:l(e);return{index:r,datum:f,style:p,angle:b,textAnchor:p.textAnchor||qa(Object.assign({},t,{labelPlacement:y}),v),text:d,x:_*Math.cos(rt(v))+h.x,y:-_*Math.sin(rt(v))+h.y}},og=(t,n,e,r)=>{const{axisType:i,radius:o,style:a,scale:s,stringTicks:l,ticks:c,tickFormat:u,origin:h}=n,d=u(e,r,c),{startAngle:f,endAngle:p,innerRadius:m=0}=t,y=l?l[r]:e,{gridStyle:g}=Zy(a,{tick:y,tickValue:e,index:r,ticks:c,stringTicks:l,radius:o,scale:s,axisType:i,text:d}),x=s(e);return"angular"===i?{index:r,datum:y,style:g,x1:Yy(o,x,"x")+h.x,y1:Yy(o,x,"y")+h.y,x2:Yy(m,x,"x")+h.x,y2:Yy(m,x,"y")+h.y}:{style:g,index:r,datum:y,cx:h.x,cy:h.y,r:s(e),startAngle:f,endAngle:p}},ag=(t,n)=>{const e=cp(t,n),r=(t=>{const n=Object.assign({polar:!0},t),e=(t=>{const{theme:n={},dependentAxis:e}=t,r=n.polarAxis&&n.polarAxis.style||n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n?.[e?"polarDependentAxis":"polarIndependentAxis"]?.style||n?.[i]?.style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=U()({},o?.[n],r?.[n]),t)),{}):o||r})(n),r=ng(n,e),i=Z(n.padding),o=Kf(n),a=Xy(n),s=np(n)?n.tickValues:void 0,l=sp(n,o),c=Jy(n,o),u=tg(n),h=op(n,u),d="angular"===a?((t,n)=>My()(t,(t=>n(t)%(2*Math.PI))))(h,u):h;return{axis:o,style:r,padding:i,stringTicks:s,axisType:a,scale:u,ticks:d,tickFormat:rp(n,u),domain:l,range:c,radius:Qy(n),origin:at(n)}})(e),{style:i,scale:o,ticks:a,domain:s}=r,{width:l,height:c,standalone:u,theme:h,name:d}=e,f=((t,n)=>{const{style:e,axisType:r,radius:i,origin:o}=n,{startAngle:a,endAngle:s,innerRadius:l=0}=t,c="radial"===r?rt(eg(t)):void 0;return"radial"===r?{style:e.axis,x1:Yy(l,c,"x")+o.x,x2:Yy(i,c,"x")+o.x,y1:Yy(l,c,"y")+o.y,y2:Yy(i,c,"y")+o.y}:{style:e.axis,cx:o.x,cy:o.y,r:i,startAngle:a,endAngle:s}})(e,r),p=((t,n)=>{const{axisType:e,radius:r,style:i,origin:o}=n,{axisLabelComponent:a}=t;if("radial"!==e)return{};const s=a?.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,l=i&&i.axisLabel||{},c="radial"===e?eg(t):void 0,u=void 0===l.angle?Ga(Object.assign({},t,{labelPlacement:s}),c):l.angle,h=r+(l.padding||0);return{style:l,angle:u,textAnchor:l.textAnchor||qa(Object.assign({},t,{labelPlacement:s}),c),verticalAnchor:l.verticalAnchor||Ha(Object.assign({},t,{labelPlacement:s}),c),text:t.label,x:Yy(h,rt(c),"x")+o.x,y:Yy(h,rt(c),"y")+o.y}})(e,r),m={parent:{style:i.parent,ticks:a,scale:o,width:l,height:c,domain:s,standalone:u,theme:h,name:d}};return a.reduce(((t,n,i)=>(t[i]={axis:f,axisLabel:p,ticks:rg(e,r,n,i),tickLabels:ig(e,r,n,i),grid:og(e,r,n,i)},t)),m)},sg={width:450,height:300,padding:50};class lg extends E().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:E().createElement(Uf,null),axisLabelComponent:E().createElement(Zh,null),circularAxisComponent:E().createElement(Ky,null),circularGridComponent:E().createElement(Ky,null),containerComponent:E().createElement(lu,null),endAngle:360,gridComponent:E().createElement(Uf,null),groupComponent:E().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Mh.grayscale,tickComponent:E().createElement(Uf,null),tickLabelComponent:E().createElement(Zh,null)};static getDomain=sp;static getAxis=Kf;static getScale(t){return tg(t)}static getStyles(t){return ng(t,sg.style)}static getBaseProps(t){return ag(t,sg)}static expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];renderAxisLine(t){const{dependentAxis:n}=t,e=n?t.axisComponent:t.circularAxisComponent,r=this.getComponentProps(e,"axis",0);return E().cloneElement(e,r)}renderLabel(t){const{axisLabelComponent:n,dependentAxis:e,label:r}=t;if(!r||!e)return null;const i=this.getComponentProps(n,"axisLabel",0);return E().cloneElement(n,i)}renderAxis(t){const{tickComponent:n,tickLabelComponent:e,name:r}=t,i=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!S()(e)},o="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,a=this.dataKeys.map(((t,e)=>{const o=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(n,"ticks",e)),a=E().cloneElement(n,o);return i(a.props)?a:void 0})).filter(Boolean),s=this.dataKeys.map(((t,n)=>{const e=Object.assign({key:`${r}-grid-${t}`},this.getComponentProps(o,"grid",n)),a=E().cloneElement(o,e);return i(a.props)?a:void 0})).filter(Boolean),l=this.dataKeys.map(((t,n)=>{const i=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(e,"tickLabels",n));return E().cloneElement(e,i)})),c=[this.renderAxisLine(t),this.renderLabel(t),...a,...s,...l];return this.renderGroup(t,c)}renderGroup(t,n){const{groupComponent:e}=t;return E().cloneElement(e,{},n)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=cg,n=cp(this.props,sg);if(this.shouldAnimate())return this.animateComponent(n,t);const e=this.renderAxis(n);return n.standalone?this.renderContainer(n.containerComponent,e):e}}const cg=zf(lg,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),ug={width:450,height:300,padding:50};function hg(t,n){const e=function(t){const n=t.style&&t.style.parent;return{parent:U()({},n,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=ht(t,ug,"chart"),{horizontal:i,polar:o}=r,a=Ry(r,n),s=Iy(r,n,a),l=pg(r,n,a),c={x:fg(Object.assign({},r,{categories:s}),"x",n),y:fg(Object.assign({},r,{categories:s}),"y",n)},u={x:st(r,"x"),y:st(r,"y")},h={x:Zo(r,"x")||Dy(r,"x"),y:Zo(r,"y")||Dy(r,"y")};return{categories:s,domain:c,range:u,horizontal:i,scale:{x:h.x.domain(c.x).range(i?u.y:u.x),y:h.y.domain(c.y).range(i?u.x:u.y)},stringMap:l,style:e,origin:o?at(r):Qf(c),padding:Z(r.padding)}}const dg=(t,n)=>{let e=E().Children.toArray(t.children);if(0===e.length)e.push(n.independent,n.dependent);else{const r={dependent:Zf(e,"dependent"),independent:Zf(e,"independent")};0===r.dependent.length&&0===r.independent.length&&(e=t.prependDefaultAxes?[n.independent,n.dependent].concat(e):e.concat([n.independent,n.dependent]))}return e},fg=(t,n,e)=>{const r=e||E().Children.toArray(t.children),i=Oy(t,n,r),o=Xf(r,n);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},pg=(t,n,e)=>{const r=e.x&&0!==e.x.length?e.x.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null,i=e.y&&0!==e.y.length?e.y.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null;return{x:r,y:i}},mg={width:450,height:300,padding:50},yg={backgroundComponent:E().createElement(xy,null),containerComponent:E().createElement(lu,null),defaultAxes:{independent:E().createElement(Ep,null),dependent:E().createElement(Ep,{dependentAxis:!0})},defaultPolarAxes:{independent:E().createElement(cg,null),dependent:E().createElement(cg,{dependentAxis:!0})},groupComponent:E().createElement("g",null),standalone:!0,theme:Mh.grayscale},gg=t=>{const n=E().useMemo((()=>U()({},t,yg)),[t]),{getAnimationProps:e,setAnimationState:r,getProps:i}=by(),o=i(n),a=ht(o,mg,"chart"),{desc:s,eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,name:g,title:x}=a,v=o.polar?a.defaultPolarAxes:a.defaultAxes,b=E().useMemo((()=>dg(a,v)),[a,v]),_=E().useMemo((()=>hg(a,b)),[a,b]),{domain:M,scale:C,style:w,origin:A,horizontal:k}=_,O=E().useMemo((()=>{const t=function(t,n,e){const r=n||dg(t),i=e||hg(t,r),o=i.style.parent,{height:a,polar:s,theme:l,width:c}=t,{origin:u,horizontal:h}=i,d=t.name||"chart";return r.filter(E().isValidElement).map(((n,e)=>{const r=n.type&&n.type.role,f=Array.isArray(n.props.style)?n.props.style:U()({},n.props.style,{parent:o}),p=function(t,n,e){const r=Yf([t]);if(r.length>0)return function(t,n,e){const{domain:r,scale:i,stringMap:o,categories:a,horizontal:s}=e;return{stringMap:o,horizontal:s,categories:a,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,domain:r,scale:i}}(r[0],n,e);const{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}=e;return{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}}(n,t,i),m=n.props.name||`${d}-${r}-${e}`,y=U()({horizontal:h,height:a,polar:s,theme:l,width:c,style:f,name:m,origin:s?u:void 0,padding:i.padding,key:`${m}-key-${e}`,standalone:!1},p);return E().cloneElement(n,y)}))}(o,b,_).map(((t,n)=>{const r=Object.assign({animate:e(o,t,n)},t.props);return E().cloneElement(t,r)}));if(o.style&&o.style.background){const n=function(t,n){const e=t.backgroundComponent,r=t.polar?n.range.y[1]:n.range.y[0]-n.range.y[1],i=n.range.x[1]-n.range.x[0],o=t.horizontal?n.scale.y.range()[0]:n.scale.x.range()[0],a=t.horizontal?n.scale.x.range()[1]:n.scale.y.range()[1],s=t.polar?n.origin.x:o,l=t.polar?n.origin.y:a,c=t.name||"chart",u={height:r,polar:t.polar,scale:n.scale,style:t.style.background,x:s,y:l,key:`${c}-background`,width:i};return E().cloneElement(e,U()({},e.props,u))}(o,_);t.unshift(n)}return t}),[e,b,o,_]),D=E().useMemo((()=>u?{desc:s,domain:M,width:f,height:p,horizontal:k,name:g,origin:y?A:void 0,polar:y,theme:m,title:x,scale:C,standalone:u,style:w.parent}:{}),[s,M,p,k,g,A,y,C,u,w,x,m,f]),P=E().useMemo((()=>{if(u){const t=U()({},c.props,D,Wc(n));return E().cloneElement(c,t)}return h}),[h,u,c,D,n]),L=E().useMemo((()=>Py(o)),[o]),T=Fy(n);return E().useEffect((()=>()=>{n.animate&&r(T,n)}),[r,T,n]),S()(L)?E().cloneElement(P,P.props,O):E().createElement(qy,{container:P,eventKey:l,events:L,externalEventMutations:d},O)},xg=E().memo(gg,ed());xg.displayName="VictoryChart",xg.expectedComponents=["groupComponent","containerComponent"];const vg=t=>{let{desc:n,children:e,tabIndex:r,className:i="VictoryAccessibleGroup",...o}=t;const a=n&&(o["aria-describedby"]||n.split(" ").join("-"));return n?E().createElement("g",{"aria-label":o["aria-label"],"aria-describedby":a,className:i,tabIndex:r},E().createElement("desc",{id:a},n),e):E().createElement("g",{"aria-label":o["aria-label"],"aria-describedby":o["aria-describedby"],className:i,tabIndex:r},e)},bg=t=>{const{x:n,y:e,size:r,symbol:i}=t;if(t.getPath)return t.getPath(n,e,r);const o=M;return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)},_g={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Mg=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=nt(t.size,t),o=et(t.style,t),a=nt(t.symbol,t),s=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,size:i,style:o,symbol:a,tabIndex:s})})(U()({},t,_g)),e=Wc(n);return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:bg(n),style:n.style,desc:n.desc,tabIndex:n.tabIndex,role:n.role,shapeRendering:n.shapeRendering,className:n.className,transform:n.transform,clipPath:n.clipPath,...e})};var Cg=r(3105),wg=r.n(Cg),Ag=r(4542),Eg=r.n(Ag),kg=r(9324),Sg=r.n(kg);const Og={checkDomainEquality(t,n){const e=e=>{const r=t&&t[e],i=n&&n[e];return!r&&!i||!(!r||!i)&&Number(r[0])===Number(i[0])&&Number(r[1])===Number(i[1])};return e("x")&&e("y")},scale(t,n,e,r){const[i,o]=t,a=Math.abs(o-i),s=e.minimumZoom&&e.minimumZoom[r],l=this.getScaleFactor(n);if(s&&a<=s&&l<1)return t;const[c,u]=this.getDomain(e)[r],h=this.getScalePercent(n,e,r),d=l*i+h*(l*a),f=this.getMinimumDomain(d,e,r),[p,m]=this.getScaledDomain(t,l,h),y=[p>c&&p<u?p:c,m<u&&m>c?m:u],g=Math.abs(f[1]-f[0])>Math.abs(y[1]-y[0])?f:y;return vt([c,u])?[new Date(g[0]),new Date(g[1])]:g},getScaledDomain(t,n,e){const[r,i]=t,o=Math.abs(i-r),a=o-o*n,s=Number(r)+a*Math.max(e,0),l=Number(i)-a*Math.max(1-e,0);return[Math.min(s,l),Math.max(s,l)]},getMinimumDomain(t,n,e){const{minimumZoom:r}=n,i=this.getDomain(n)[e],[o,a]=i,s=Math.abs(o-a)/1e3,l=r&&r[e]||s,c=t-l/2,u=t+l/2;return[c>o&&c<a?c:o,u<a&&u>o?u:Number(o)+l/2]},zoommingOut:t=>t.deltaY>0,getScaleFactor(t){const n=this.zoommingOut(t)?1:-1,e=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+n*e)},getScalePercent(t,n,e){const r=this.getDomain(n),[i,o]=r[e];return(this.getPosition(t,n,r)[e]-i)/Math.abs(o-i)},getPosition(t,n,e){const{x:r,y:i}=ym(t),o={x:n.scale.x.domain(e.x),y:n.scale.y.domain(e.y)};return xm(n,o,r,i)},pan(t,n,e){const[r,i]=t.map((t=>Number(t))),[o,a]=n.map((t=>Number(t))),s=r+e,l=i+e;let c;return c=s>o&&l<a?[s,l]:s<o?[o,o+(i-r)]:l>a?[a-(i-r),a]:t,vt(t)||vt(n)?c.map((t=>new Date(t))):c},getDomainScale(t,n,e){const r=Array.isArray(t)?t:t[e],[i,o]=r,a=n[e].range();return Math.abs(a[0]-a[1])/(o-i)},handleAnimation(t){const n=t.context.animationTimer,e=t.context.transitionTimer;return e.bypassAnimation(),n.bypassAnimation(),Sg()((()=>{n.resumeAnimation(),e.resumeAnimation()}),16)},getLastDomain(t,n){const{zoomDomain:e,cachedZoomDomain:r,currentDomain:i,domain:o}=t;return e&&!this.checkDomainEquality(e,r)?U()({},e,o):U()({},i||e||n,o)},getDomain(t){const{originalDomain:n,domain:e,children:r,zoomDimension:i}=t,o=A.Children.toArray(r);let a={};return o.length&&(a=i?{[i]:Sy(t,i,o)}:{x:Sy(t,"x",o),y:Sy(t,"y",o)}),U()({},a,n,e)},onMouseDown(t,n){if(t.preventDefault(),!n.allowPan)return;const e=n.parentSVG||mm(t),{x:r,y:i}=ym(t,e);return[{target:"parent",mutation:()=>({startX:r,startY:i,panning:!0,parentSVG:e,parentControlledProps:["domain"]})}]},onMouseUp(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseLeave(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseMove(t,n,e,r){if(n.panning&&n.allowPan){const{scale:e,startX:i,startY:o,onZoomDomainChange:a,zoomDomain:s,zoomDimension:l,horizontal:c}=n,u=n.parentSVG||mm(t),{x:h,y:d}=ym(t,u),f=this.getDomain(n),p=this.getLastDomain(n,f),m=c?i-h:d-o,y=(c?d-o:i-h)/this.getDomainScale(p,e,"x"),g=m/this.getDomainScale(p,e,"y"),x={x:"y"===l?f.x:this.pan(p.x,f.x,y),y:"x"===l?f.y:this.pan(p.y,f.y,g)},v=this.handleAnimation(r),b={parentControlledProps:["domain"],startX:h,startY:d,parentSVG:u,currentDomain:x,originalDomain:f,cachedZoomDomain:s,zoomActive:!this.checkDomainEquality(f,p)};return ct(a)&&a(x,U()({},b,n)),[{target:"parent",callback:v,mutation:()=>b}]}},onWheel(t,n,e,r){if(!n.allowZoom)return;const{onZoomDomainChange:i,zoomDimension:o,zoomDomain:a}=n,s=this.getDomain(n),l=this.getLastDomain(n,s),{x:c,y:u}=l,h={x:"y"===o?l.x:this.scale(c,t,n,"x"),y:"x"===o?l.y:this.scale(u,t,n,"y")},d=this.handleAnimation(r),f={currentDomain:h,originalDomain:s,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||n.zoomActive&&!this.checkDomainEquality(s,l)};return ct(i)&&i(h,U()({},f,n)),[{target:"parent",callback:d,mutation:()=>f}]}},Dg={checkDomainEquality:Og.checkDomainEquality.bind(Og),onMouseDown:Og.onMouseDown.bind(Og),onMouseUp:Og.onMouseUp.bind(Og),onMouseLeave:Og.onMouseLeave.bind(Og),onMouseMove:_m()(Og.onMouseMove.bind(Og),16,{leading:!0,trailing:!1}),onWheel:_m()(Og.onWheel.bind(Og),16,{leading:!0,trailing:!1})},Pg={clipContainerComponent:E().createElement(pu,null),allowPan:!0,allowZoom:!0,zoomActive:!1},Lg=t=>{const n={...Pg,...t},{children:e,currentDomain:r,zoomActive:i,allowZoom:o,downsample:a,scale:s,clipContainerComponent:l,polar:c,origin:u,horizontal:h}=n,d=(t,e)=>{const r=(n=>{const{data:e,x:r,y:i}=n,o=t.type&&"function"==typeof t.type.getData?t.type.getData:()=>{};return!Array.isArray(e)||r||i?o(n):e})(t.props);if(!a||!e||!r)return;const i=!0===a?150:a,o=n.zoomDimension||"x";let s=r.findIndex((t=>t[o]>=e[o][0])),l=r.findIndex((t=>t[o]>e[o][1]));return 0!==s&&(s-=1),-1!==l&&(l+=1),ga(r.slice(s,l),i,s)},f=E().Children.toArray(e).map((t=>{const e=t.type&&t.type.role,a=Aa(t),f=U()({},n.originalDomain,n.domain),p=U()({},n.zoomDomain,n.domain),m=U()({},n.cachedZoomDomain,n.domain);let y;y=Dg.checkDomainEquality(p,m)?o&&!i?t.props.domain:U()({},r,f):p;let g=n.polar?{x:f.x,y:[0,y.y[1]]}:y;g&&n.zoomDimension&&(g={...p,[n.zoomDimension]:g[n.zoomDimension]});const x=a&&"stack"!==e?{domain:g,data:d(t,g)}:{domain:g},v=E().cloneElement(t,U()(x,t.props));if(Aa(v)){const t=h?s.y.range():s.x.range(),n=h?s.x.range():s.y.range(),e=Math.abs(t[0]-t[1]),r=Math.abs(n[0]-n[1]),i=Math.max(...n),o=E().cloneElement(l,{clipWidth:e,clipHeight:r,translateX:Math.min(...t),translateY:Math.min(...n),polar:c,origin:c?u:void 0,radius:c?i:void 0,...l.props});return E().cloneElement(v,{groupComponent:o})}return v}));return{props:n,children:f}},Tg=t=>{const{props:n,children:e}=Lg(t);return E().createElement(lu,n,e)};Tg.role="container",Tg.defaultEvents=t=>{const n={...Pg,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Dg.onMouseDown),onTouchStart:e(Dg.onMouseDown),onMouseUp:e(Dg.onMouseUp),onTouchEnd:e(Dg.onMouseUp),onMouseLeave:e(Dg.onMouseLeave),onTouchCancel:e(Dg.onMouseLeave),onMouseMove:e(Dg.onMouseMove),onTouchMove:e(Dg.onMouseMove),onWheel:e(Dg.onWheel,!n.allowZoom)}}]};const jg=new class{getDimension(t){const{horizontal:n,selectionDimension:e}=t;return n&&e?"x"===e?"y":"x":e}getDatasets(t){return t.data?[{data:t.data}]:mt(E().Children.toArray(t.children),((n,e,r)=>{const i=t.selectionBlacklist||[];let o;if(!Aa(n)||i.includes(e))return null;if(n.type&&ct(n.type.getData)){o=r?E().cloneElement(n,r.props):n;const t=o.props&&o.type.getData(o.props);return t?{childName:e,data:t}:null}const a=(t=>{const n=_a(t);return Array.isArray(n)&&n.length>0?n:void 0})(o.props);return a?{childName:e,data:a}:null}),t)}filterDatasets(t,n){const e=n.reduce(((n,e)=>{const r=this.getSelectedData(t,e.data);return r?n.concat({childName:e.childName,eventKey:r.eventKey,data:r.data}):n}),[]);return e.length?e:null}getSelectedData(t,n){const{x1:e,y1:r,x2:i,y2:o}=t,a=n=>{const a=X(t,n);return a.x>=Math.min(e,i)&&a.x<=Math.max(e,i)&&a.y>=Math.min(r,o)&&a.y<=Math.max(r,o)},s=[],l=[];let c=0;for(let t=0,e=n.length;t<e;t++){const e=n[t];a(e)&&(l[c]=e,s[c]=void 0===e.eventKey?t:e.eventKey,c++)}return c>0?{eventKey:s,data:l}:null}onMouseDown=(t,n)=>{t.preventDefault();const{activateSelectedData:e,allowSelection:r,polar:i,selectedData:o}=n;if(!r)return{};const a=this.getDimension(n),s=n.parentSVG||mm(t),{x:l,y:c}=ym(t,s),u={x1:i||"y"!==a?l:gm(n).x[0],y1:i||"x"!==a?c:gm(n).y[0],select:!0,x2:i||"y"!==a?l:gm(n).x[1],y2:i||"x"!==a?c:gm(n).y[1],parentSVG:s};o&&ct(n.onSelectionCleared)&&n.onSelectionCleared(U()({},u,n));const h=[{target:"parent",mutation:()=>u}],d=o&&e?o.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>null}))):[];return h.concat(...d)};handleMouseMove=(t,n)=>{const{allowSelection:e,select:r,polar:i}=n,o=this.getDimension(n);if(!e||!r)return null;const a=n.parentSVG||mm(t),{x:s,y:l}=ym(t,a),c=i||"y"!==o?s:gm(n).x[1],u=i||"x"!==o?l:gm(n).y[1];return{target:"parent",mutation:()=>({x2:c,y2:u,parentSVG:a})}};onMouseMove=_m()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseUp=(t,n)=>{const{activateSelectedData:e,allowSelection:r,x2:i,y2:o}=n;if(!r)return null;if(!i||!o)return[{target:"parent",mutation:()=>({select:!1,x1:null,x2:null,y1:null,y2:null})}];const a=this.getDatasets(n),s=vm(n),l=this.filterDatasets(n,a),c={selectedData:l,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},u=l&&ct(n.onSelection)?n.onSelection(l,s,U()({},c,n)):{},h=[{target:"parent",mutation:()=>c}],d=l&&e?l.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>Object.assign({active:!0},u)}))):[];return h.concat(d)}},$g={activateSelectedData:!0,allowSelection:!0,selectionComponent:E().createElement(fu,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}},Ng=t=>{const n={...$g,...t},{x1:e,x2:r,y1:i,y2:o,selectionStyle:a,selectionComponent:s,children:l,name:c}=n,u=Math.abs(r-e)||1,h=Math.abs(o-i)||1,d=Math.min(e,r),f=Math.min(i,o);return{props:n,children:[l,i&&o&&e&&r&&E().cloneElement(s,{key:`${c}-selection`,x:d,y:f,width:u,height:h,style:a})]}},zg=t=>{const{props:n,children:e}=Ng(t);return E().createElement(lu,n,e)};zg.role="container",zg.defaultEvents=t=>{const n={...$g,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseDown:e(jg.onMouseDown),onTouchStart:e(jg.onMouseDown),onMouseMove:e(jg.onMouseMove),onTouchMove:e(jg.onMouseMove),onMouseUp:e(jg.onMouseUp),onTouchEnd:e(jg.onMouseUp)}}]};const Rg=t=>{const n=t.orientation||"top";return"left"===n||"right"===n?(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,s="left"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,h=a.y,d=u-s*(i/2),f=u+s*(i/2),p=h+o/2,m=h-o/2,y=s*(l-d)>0?0:t.pointerLength,g=`${e} ${e} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${d}, ${h-n/2}\n L ${y?l:d}, ${y?c:h+n/2}\n L ${d}, ${h+n/2}\n L ${d}, ${p-e}\n A ${g} ${d+s*e}, ${p}\n L ${f-s*e}, ${p}\n A ${g} ${f}, ${p-e}\n L ${f}, ${m+e}\n A ${g} ${f-s*e}, ${m}\n L ${d+s*e}, ${m}\n A ${g} ${d}, ${m+e}\n z`})(t):(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,s="bottom"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,h=a.y,d=h+s*(o/2),f=h-s*(o/2),p=u+i/2,m=u-i/2,y=s*(c-d)<0?0:t.pointerLength,g=`${e} ${e} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-n/2}, ${d}\n L ${y?l:u+n/2}, ${y?c:d}\n L ${u+n/2}, ${d}\n L ${p-e}, ${d}\n A ${g} ${p}, ${d-s*e}\n L ${p}, ${f+s*e}\n A ${g} ${p-e}, ${f}\n L ${m+e}, ${f}\n A ${g} ${m}, ${f+s*e}\n L ${m}, ${d-s*e}\n A ${g} ${m+e}, ${d}\n z`})(t)},Ig={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Fg=t=>{const n=(t=>{const n=nt(t.id,t),e=et(t.style,t);return{...t,id:n,style:e}})(U()({},t,Ig)),e=Wc(n);Bc(n.height,"Flyout props[height] is undefined"),Bc(n.width,"Flyout props[width] is undefined"),Bc(n.x,"Flyout props[x] is undefined"),Bc(n.y,"Flyout props[y] is undefined");const r={center:n.center||{x:0,y:0},cornerRadius:n.cornerRadius||0,dx:n.dx,dy:n.dy,height:n.height,orientation:n.orientation||"top",pointerLength:n.pointerLength||0,pointerWidth:n.pointerWidth||0,width:n.width,x:n.x,y:n.y};return E().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:Rg(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},Bg={cornerRadius:5,pointerLength:10,pointerWidth:10};class Wg extends E().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:E().createElement(Zh,null),flyoutComponent:E().createElement(Fg,null),groupComponent:E().createElement("g",null)};static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],e=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>e,onBlur:()=>e,onTouchEnd:()=>e}}]}constructor(t){super(t),this.id=void 0===t.id?Zc()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:e,polar:r}=t;if(!r){const t=e?"right":"top",r=e?"left":"bottom";return n&&n.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=Ka(t,t.datum),e=t.labelPlacement||"vertical";return"vertical"===e?this.getVerticalOrientations(n):"parallel"===e?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||Mh.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>U()({},t,e))):U()({},t.style,e),i=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},o=t.flyoutStyle?U()({},t.flyoutStyle,i):i,a=Array.isArray(r)?r.map((n=>et(n,t))):et(r,t);return{style:a,flyoutStyle:et(o,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:i}=t,o=nt(t.active,t);let a=nt(t.text,Object.assign({},t,{active:o}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:s,flyoutStyle:l}=this.getStyles(Object.assign({},t,{active:o,text:a})),c=nt(t.orientation,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l}))||this.getDefaultOrientation(t),u=Z(nt(t.flyoutPadding,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c}))||this.getLabelPadding(s)),h=nt(t.pointerWidth,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),d=nt(t.pointerLength,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),f=Fh(a,s),{flyoutHeight:p,flyoutWidth:m}=this.getDimensions(Object.assign({},t,{style:s,flyoutStyle:l,active:o,text:a,orientation:c,flyoutPadding:u,pointerWidth:h,pointerLength:d}),f),y=Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c,flyoutHeight:p,flyoutWidth:m,flyoutPadding:u,pointerWidth:h,pointerLength:d}),g=L()(e)&&void 0!==e?.x?nt(e.x,y):0,x=L()(e)&&void 0!==e?.y?nt(e.y,y):0;return{...y,centerOffset:{x:g,y:x},dx:void 0!==r?nt(r,y):0,dy:void 0!==i?nt(i,y):0,cornerRadius:nt(n,y)}}getCalculatedValues(t){const{style:n,text:e,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:n,flyoutStyle:r,labelSize:Fh(e,n),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:n,y:e,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${n} ${e})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:e,orientation:r,datum:i}=t;if(!n||!e||"vertical"===e)return 0;const o=Ka(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270:90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}constrainTooltip(t,n,e){const{x:r,y:i}=t,{width:o,height:a}=e,s=[0,n.width],l=[0,n.height],c=[r-o/2,r+o/2],u=[i-a/2,i+a/2],h=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],d=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(r+h[0]-h[1]),y:Math.round(i+d[0]-d[1])}}getFlyoutCenter(t,n){const{x:e,y:r,dx:i,dy:o,pointerLength:a,orientation:s,constrainToVisibleArea:l,centerOffset:c}=t,{height:u,width:h}=n,d="left"===s?-1:1,f="bottom"===s?-1:1,p={x:"left"===s||"right"===s?e+d*(a+h/2+d*i):e+i,y:"top"===s||"bottom"===s?r-f*(a+u/2-f*o):r+o},m=L()(t.center)&&void 0!==t.center.x?t.center.x:p.x,y=L()(t.center)&&void 0!==t.center.y?t.center.y:p.y,g={x:m+c.x,y:y+c.y};return l?this.constrainTooltip(g,t,n):g}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:e,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:s}=t,l=nt(t.cornerRadius,t);return{flyoutHeight:o?nt(o,t):(()=>{const t=n.height+s.top+s.bottom,r="top"===e||"bottom"===e?2*l:2*l+i;return Math.max(r,t)})(),flyoutWidth:a?nt(a,t):(()=>{const t=n.width+s.left+s.right,i="left"===e||"right"===e?2*l+r:2*l;return Math.max(i,t)})()}}getLabelProps(t,n){const{flyoutCenter:e,style:r,labelSize:i,dy:o=0,dx:a=0}=n,{text:s,datum:l,activePoints:c,labelComponent:u,index:h,flyoutPadding:d}=t,f=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return U()({},u.props,{key:`${this.id}-label-${h}`,text:s,datum:l,activePoints:c,textAnchor:f,dy:o,dx:a,style:r,x:(()=>{if(!f||"middle"===f)return e.x;const t="end"===f?-1:1;return e.x-t*(i.width/2)})()+(d.left-d.right)/2,y:e.y+(d.top-d.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,e){const r=n.y+e.height/2,i=n.y-e.height/2,o=n.x-e.width/2,a=n.x+e.width/2,s=[{side:"top",val:i>t.y?i-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:o>t.x?o-t.x:-1}];return R()(s,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:e,flyoutStyle:r,flyoutCenter:i}=n,{x:o,y:a,dx:s,dy:l,datum:c,activePoints:u,index:h,pointerLength:d,pointerWidth:f,cornerRadius:p,events:m,flyoutComponent:y}=t,g=nt(t.pointerOrientation,t);return U()({},y.props,{x:o,y:a,dx:s,dy:l,datum:c,activePoints:u,index:h,pointerLength:d,pointerWidth:f,cornerRadius:p,events:m,orientation:g||this.getPointerOrientation({x:o,y:a},i,e),key:`${this.id}-tooltip-${h}`,width:e.width,height:e.height,style:r,center:i})}renderTooltip(t){const n=nt(t.active,t),{renderInPortal:e}=t;if(!n)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,s=this.getCalculatedValues(r),l=[E().cloneElement(i,this.getFlyoutProps(r,s)),E().cloneElement(o,this.getLabelProps(r,s))],c=E().cloneElement(a,{role:"presentation",transform:s.transform},l);return e?E().createElement(gu,null,c):c}render(){const t=ht(this.props,Bg,"tooltip");return this.renderTooltip(t)}}var Vg=r(5395),Ug=r.n(Vg),qg=r(6898);const Hg=new class{withinBounds(t,n){const{width:e,height:r,polar:i,origin:o,scale:a}=t,s=Z(t.voronoiPadding),{x:l,y:c}=n;if(i){const t=Math.pow(l-o.x,2)+Math.pow(c-o.y,2),n=Math.max(...a.y.range());return t<Math.pow(n,2)}return l>=s.left&&l<=e-s.right&&c>=s.top&&c<=r-s.bottom}getDatasets(t){const n={x:Et(t.domain.x),y:Et(t.domain.y)},e=E().Children.toArray(t.children),r=(e,r,i)=>{const o=i&&i.type&&i.type.continuous,a=i?i.props&&i.props.style:t.style;return e.map(((e,i)=>{const{x:s,y:l,y0:c,x0:u}=Y(e),h=(Number(s)+Number(u))/2,d=(Number(l)+Number(c))/2;return Object.assign({_voronoiX:"y"===t.voronoiDimension?n.x:h,_voronoiY:"x"===t.voronoiDimension?n.y:d,eventKey:i,childName:r,continuous:o,style:a},e)}))};if(t.data)return r(t.data);const i=t=>{const n=_a(t);return Array.isArray(n)&&n.length>0?n:void 0};return mt(e,((n,e)=>{const o=(n.props||{}).name||e,a=t.voronoiBlacklist||[],s=a.filter((t=>!!t&&"string"==typeof t.valueOf())),l=a.filter(Ug()).some((t=>t.test(o)));if(!Aa(n)||s.includes(o)||l)return null;const c=(n.type&&ct(n.type.getData)?n.type.getData:i)(n.props);return c?r(c,o,n):null}),t)}findPoints(t,n){return t.filter((t=>n._voronoiX===t._voronoiX&&n._voronoiY===t._voronoiY))}withinRadius(t,n,e){if(!t)return!1;if(!e)return!0;const{x:r,y:i}=n;return Math.pow(r-t[0],2)+Math.pow(i-t[1],2)<Math.pow(e,2)}getVoronoiPoints(t,n){const e=this.getDatasets(t),r=e.map((n=>{const{x:e,y:r}=X(t,n);return[e,r]})),i=qg.Z.from(r).find(n.x,n.y);return{points:this.withinRadius(r[i],n,t.radius)?this.findPoints(e,e[i]):[],index:i}}getActiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const s=i?["data"]:[],l=a&&!o?s:s.concat("labels");return S()(l)?[]:l.map((t=>{const i=!0===r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const s=i?["data"]:[],l=a&&!o?s:s.concat("labels");return S()(l)?[]:l.map((t=>{const i=r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>null}}))}getParentMutation(t,n,e,r){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:t,mousePosition:n,parentSVG:e,vIndex:r})}]}onActivated(t,n){ct(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){ct(t.onDeactivated)&&t.onDeactivated(n,t)}onMouseLeave=(t,n)=>{this.onMouseMove.cancel();const e=n.activePoints||[];this.onDeactivated(n,e);const r=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([]).concat(...r)};handleMouseMove=(t,n)=>{const e=n.activePoints||[],r=n.parentSVG||mm(t),i=ym(t,r);if(!this.withinBounds(n,i)){this.onDeactivated(n,e);const t=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([],i,r).concat(...t)}const{points:o=[],index:a}=this.getVoronoiPoints(n,i),s=this.getParentMutation(o,i,r,a);if(e.length&&ed()(o,e))return s;this.onActivated(n,o),this.onDeactivated(n,e);const l=o.length?o.map((t=>this.getActiveMutations(n,t))):[],c=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return s.concat(...c,...l)};onMouseMove=_m()(this.handleMouseMove,32,{leading:!0,trailing:!1})},Gg={activateData:!0,activateLabels:!0,labelComponent:E().createElement(Wg,null),voronoiPadding:5},Kg=t=>H()(t,["_x","_x1","_x0","_y","_y1","_y0"]),Yg=t=>{const n={...Gg,...t},{children:e}=n,r=(t,e)=>{const{labels:r,labelComponent:i,theme:o}=n,a=i.props||{},s=o&&o.voronoi&&o.voronoi.style?o.voronoi.style:{},l="flyout"===e?a.flyoutStyle:a.style;return t.reduce(((t,n,i)=>{const o=U()({},a,{datum:n,active:!0}),c=ct(r)?r(o):void 0,u=void 0!==c?`${c}`.split("\n"):[],h=n.style&&n.style[e]||{},d=Array.isArray(l)?l[i]:l,f=et(U()({},d,h,s[e]),o),p=u.length?u.map((()=>f)):[f];return t.concat(p)}),[])},i=t=>{const{labels:e,scale:i,labelComponent:o,theme:a,width:s,height:l}=n,c=o.props||{},u=t.reduce(((t,n)=>{const r=U()({},c,{datum:n,active:!0}),i=ct(e)?e(r):null;return null==i?t:t.concat(`${i}`.split("\n"))}),[]),{childName:h,eventKey:d,style:f,continuous:p,...m}=t[0],y=n.name===h?h:`${n.name}-${h}`,g=U()({key:`${y}-${d}-voronoi-tooltip`,id:`${y}-${d}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:t,datum:m,scale:i,theme:a},c,{text:u,width:s,height:l,style:r(t,"labels"),flyoutStyle:r(t,"flyout")[0]},(t=>{const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:i}=n,o=Kg(t[0]),a=e&&t.length>1,s=void 0!==o._y1?o._y1:o._y;return{orientation:i?void 0:r?s<0?"left":"right":s<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!i)||void 0}})(t)),x=((t,e)=>{const{mousePosition:r,mouseFollowTooltips:i}=n,o=(()=>{const{horizontal:t,voronoiDimension:e}=n;return t&&e?"x"===e?"y":"x":e})(),a=Kg(e[0]),s=X(n,a);let l=i?r:void 0;if(!o||e.length<2)return{...s,center:U()({},t.center,l)};const c="y"===o?r.x:s.x,u="x"===o?r.y:s.y;return l=i?r:{x:c,y:u},{x:c,y:u,center:U()({},t.center,l)}})(g,t);return U()({},x,g)};return{props:n,children:[...E().Children.toArray(e),(()=>{const{labels:t,activePoints:e,labelComponent:r}=n;if(!t)return null;if(Array.isArray(e)&&e.length){const t=i(e),{text:n}=t;return(Array.isArray(n)?n.filter(Boolean).length:n)?E().cloneElement(r,t):null}return null})()]}},Xg=t=>{const{props:n,children:e}=Yg(t);return E().createElement(lu,n,e)};Xg.role="container",Xg.defaultEvents=t=>{const n={...Gg,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(Hg.onMouseLeave),onTouchCancel:e(Hg.onMouseLeave),onMouseMove:e(Hg.onMouseMove),onTouchMove:e(Hg.onMouseMove)}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]};const Zg=new class{getDimension(t){const{horizontal:n,cursorDimension:e}=t;return n&&e?"x"===e?"y":"x":e}withinBounds(t,n){const{x1:e,x2:r,y1:i,y2:o}=ft(n,Number),{x:a,y:s}=ft(t,Number);return a>=Math.min(e,r)&&a<=Math.max(e,r)&&s>=Math.min(i,o)&&s<=Math.max(i,o)}handleMouseMove=(t,n)=>{const{onCursorChange:e,domain:r}=n,i=this.getDimension(n),o=n.parentSVG||mm(t),a=ym(t,o);let s=xm(n,n.scale,a.x,a.y);return this.withinBounds(s,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]})||(s=null),ct(e)&&(s?e(i?s[i]:s,n):s!==n.cursorValue&&e(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:s,parentSVG:o})}]};onMouseMove=_m()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,n)=>{const{onCursorChange:e}=n;return ct(n.onCursorChange)&&e(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}},Qg={cursorLabelComponent:E().createElement(Zh,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:E().createElement(Uf,null)},Jg=t=>{const n={...Qg,...t},{children:e}=n;return{props:n,children:[...E().Children.toArray(e),...(()=>{const{scale:t,cursorLabelComponent:e,cursorLabel:r,cursorComponent:i,width:o,height:a,name:s,horizontal:l,theme:c}=n,u=Zg.getDimension(n),h=(()=>{const{cursorValue:t,defaultCursorValue:e,domain:r,cursorDimension:i}=n;return t||("number"==typeof e?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,...i?{[i]:e}:{}}:e)})(),d=(()=>{const{cursorLabelOffset:t}=n;return"number"==typeof t?{x:t,y:t}:t})();if(!h)return[];const f=[],p=(()=>{if(void 0===n.padding){const t=Array.isArray(n.children)?n.children.find((t=>Hf()(t.props)&&void 0!==t.props.padding)):n.children;return Z(t?.props?.padding)}return Z(n.padding)})(),m=t&&"x"in t&&"y"in t&&"function"==typeof t.y&&"function"==typeof t.x?{x:l?t.y(h.y):t.x(h.x),y:l?t.x(h.x):t.y(h.y)}:{x:h.x,y:h.y};if(r){let t=U()({active:!0},e.props,{x:m.x+d.x,y:m.y+d.y,datum:h,active:!0,key:`${s}-cursor-label`});if(Q(e)){const n=c&&c.tooltip||{};t=U()({},t,n)}f.push(E().cloneElement(e,U()({},t,{text:nt(r,t)})))}const y=Object.assign({stroke:"black"},i.props.style);return"x"!==u&&void 0!==u||f.push(E().cloneElement(i,{key:`${s}-x-cursor`,x1:m.x,x2:m.x,y1:p.top,y2:("number"==typeof a?a:0)-p.bottom,style:y})),"y"!==u&&void 0!==u||f.push(E().cloneElement(i,{key:`${s}-y-cursor`,x1:p.left,x2:("number"==typeof o?o:0)-p.right,y1:m.y,y2:m.y,style:y})),f})()]}},tx=t=>{const{props:n,children:e}=Jg(t);return E().createElement(lu,n,e)};function nx(t){return t?Array.isArray(t)?t:[t]:[]}tx.role="container",tx.defaultEvents=t=>{const n={...Qg,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(Zg.onMouseLeave),onMouseMove:e(Zg.onMouseMove),onTouchMove:e(Zg.onMouseMove)}}]};const ex={zoom:Lg,selection:Ng,brush:Am,cursor:Jg,voronoi:Yg};function rx(t,n){return function(e,r){const i=t[e],o=t[r],a=ex[e],s=ex[r],l=t=>{const{children:e,props:r}=a(t),{children:i,props:o}=s({...r,children:e});return E().createElement(n,o,i)};return l.displayName=`Victory${e}${r}Container`,l.role="container",l.defaultEvents=t=>(t=>{const n=tm()(t,"target"),e=Eg()(n).map((t=>{let[n,e]=t;const r=e.filter(Boolean);return S()(r)?null:{target:n,eventHandlers:(i=e.map((t=>t.eventHandlers)),i.reduce(((t,n)=>(wg()(t,((t,e)=>{const r=n[e];n[e]=r?function(){const n=nx(r(...arguments)),e=nx(t(...arguments));return n.concat(e)}:t})),n))))};var i}));return e.filter(Boolean)})([...i.defaultEvents(t),...o.defaultEvents(t)]),l}}const ix=rx({zoom:Tg,selection:zg,brush:Em,cursor:tx,voronoi:Xg},lu),ox=(t,n,e)=>{const r="right"===e||"left"===e;return E().cloneElement(t.lineComponent,{...t.events,role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:`${t.id}-border-${e}`,x1:r?n[e]:t.x-t.borderWidth,x2:r?n[e]:t.x+t.borderWidth,y1:r?t.y-t.borderWidth:n[e],y2:r?t.y+t.borderWidth:n[e],"data-type":`border-${e}`})},ax=(t,n,e)=>{const r="top"===e||"bottom"===e;return E().cloneElement(t.lineComponent,{...t.events,role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:`${t.id}-cross-${e}`,x1:t.x,x2:r?t.x:n[e],y1:t.y,y2:r?n[e]:t.y,"data-type":`cross-${e}`})},sx={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Wf,null),role:"presentation",shapeRendering:"auto"},lx=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=et(Object.assign({stroke:"black"},t.style),t),i=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})(U()({},t,sx)),{groupComponent:e}=n,r=Wc(n),{tabIndex:i,ariaLabel:o}=n,a=(t=>{const{errorX:n,errorY:e}=t,r={right:{error:n,errorIndex:0},left:{error:n,errorIndex:1},top:{error:e,errorIndex:1},bottom:{error:e,errorIndex:0}};return["right","left","top","bottom"].reduce(((t,n)=>(t[n]=(t=>{const{error:n,errorIndex:e}=r[t];return n?n[e]:void 0})(n),t)),{})})(n),s=[a.right?ox(n,a,"right"):null,a.left?ox(n,a,"left"):null,a.bottom?ox(n,a,"bottom"):null,a.top?ox(n,a,"top"):null,a.right?ax(n,a,"right"):null,a.left?ax(n,a,"left"):null,a.bottom?ax(n,a,"bottom"):null,a.top?ax(n,a,"top"):null].filter(Boolean);return E().cloneElement(e,{tabIndex:i,"aria-label":o,...r},s)};var cx=r(156),ux=r.n(cx);const hx=(t,n,e)=>{const r=n[{x:"_errorX",y:"_errorY"}[e]];if(0===r)return!1;const i=t.scale[e];return Array.isArray(r)?[0!==r[0]&&i(r[0]+n[`_${e}`]),0!==r[1]&&i(n[`_${e}`]-r[1])]:[i(r+n[`_${e}`]),i(n[`_${e}`]-r)]},dx=t=>{const n=["x","y","errorX","errorY"];return t.data?xa(t.data,t,n):xa(t.errorX||t.errorY?va(t):[],t,n)},fx=(t,n)=>{const e=Fa(t,n),r=Ia(t,n),i=dx(t);if(i.length<1)return void 0!==e&&void 0!==r?Na(e,r):void 0;const o="x"===n?"_errorX":"_errorY",a=t=>{const e="min"===t?1/0:-1/0,r="min"===t?1:0,a="min"===t?-1:1;return i.reduce(((e,i)=>{const s=Array.isArray(i[o])?i[o][r]:i[o],l=i[`_${n}`]+a*(s||0);return e<l&&"min"===t||e>l&&"max"===t?e:l}),e)};return Na(void 0!==e?e:a("min"),void 0!==r?r:a("max"))},px=(t,n)=>Pa(fx)(t,n),mx={width:450,height:300,padding:50},yx=[{x:1,y:1,errorX:.1,errorY:.1},{x:2,y:2,errorX:.2,errorY:.2},{x:3,y:3,errorX:.3,errorY:.3},{x:4,y:4,errorX:.4,errorY:.4}];class gx extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"];static displayName="VictoryErrorBar";static role="errorbar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),data:yx,dataComponent:E().createElement(lx,null),labelComponent:E().createElement(Zh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return px(t,n)}static getData(t){return dx(t)}static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"errorbar"),r=Object.assign({},e,(t=>{const n=J(t,"errorbar"),e=tt(t.style,n)||{},r=dx(t),i={x:st(t,"x"),y:st(t,"y")},o={x:px(t,"x"),y:px(t,"y")};return{domain:o,data:r,scale:{x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},style:e,origin:t.polar?t.origin||at(t):void 0}})(e)),{borderWidth:i,data:o,domain:a,events:s,groupComponent:l,height:c,horizontal:u,labels:h,name:d,origin:f,padding:p,polar:m,scale:y,sharedEvents:g,standalone:x,style:v,theme:b,width:_,disableInlineStyles:M}=r,C={parent:{data:o,domain:a,height:c,horizontal:u,name:d,origin:f,padding:p,polar:m,scale:y,standalone:x,style:v.parent,theme:b,width:_}};return o.reduce(((t,n,e)=>{const c=lt(n.eventKey)?e:n.eventKey,{x:d,y:f}=X(ux()({},r,{scale:y}),n),p=((t,n)=>{const e=Et(n.x),r=At(n.x),i=Et(n.y),o=At(n.y);let{_x:a,_y:s}=t;return(a<e||a>r||s<i||s>o)&&(a=s=null),Object.assign({},t,{_x:a,_y:s})})(n,a),m=hx(r,p,"x"),x=hx(r,p,"y"),b={borderWidth:i,data:o,datum:p,errorX:u?x:m,errorY:u?m:x,groupComponent:l,horizontal:u,index:e,scale:y,style:M?{}:v.data,x:d,y:f,disableInlineStyles:M};t[c]={data:b};const _=Ua(r,n,e);return(null!=_||h&&(s||g))&&(t[c].labels=((t,n,e)=>{const{x:r,y:i,index:o,scale:a,errorY:s,errorX:l,horizontal:c,labelComponent:u,theme:h,disableInlineStyles:d}=t,f=function(n){void 0===n&&(n="x");const e="y"===n?s:l;return(e&&Array.isArray(e)?e[0]:e)||t[n]},p=e.labels||{},m=p.padding||0,y=c?"start":"middle",g=c?"middle":"end",x={style:p,y:c?i:f("y"),x:c?f("x"):r,dy:c?0:-m,dx:c?m:0,text:n,index:o,scale:a,datum:t.datum,data:t.data,textAnchor:p.textAnchor||y,verticalAnchor:p.verticalAnchor||g,angle:p.angle,horizontal:c,disableInlineStyles:d};if(!Q(u))return x;const v=h&&h.tooltip||{};return U()({},x,K(v,["style"]))})(Object.assign({},r,b),_,v)),t}),C)})(t,mx)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=xx,e=ht(this.props,mx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const xx=zf(gx),vx={width:450,height:300,padding:50,offset:0};function bx(t,n){const e="group",r=ht(t,vx,e),i=Ty(r.theme,r.style,e),{offset:o,colorScale:a,color:s,polar:l,horizontal:c}=r,u=r.categories||Iy(r,n,null),h=r.datasets||wy(r,null),d={x:Oy(Object.assign({},r,{categories:u}),"x",n),y:Oy(Object.assign({},r,{categories:u}),"y",n)},f=r.range||{x:st(r,"x"),y:st(r,"y")},p={x:Zo(r,"x")||Dy(r,"x"),y:Zo(r,"y")||Dy(r,"y")};return{datasets:h,categories:u,range:f,domain:d,horizontal:c,scale:{x:p.x.domain(d.x).range(r.horizontal?f.y:f.x),y:p.y.domain(d.y).range(r.horizontal?f.x:f.y)},style:i,colorScale:a,color:s,offset:o,origin:l?r.origin:at(r),padding:Z(r.padding)}}function _x(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme&&t.theme.group?r||t.theme.group.colorScale:r}function Mx(t,n,e){void 0===n&&(n=[]);const r=t.data||t.y?_a(t):n,i=e||0;return r.map((t=>{const n=t._x instanceof Date?new Date(t._x.getTime()+i):t._x+i;return Object.assign({},t,{_x1:n})}))}function Cx(t,n,e){const r=ht(t,vx,"stack"),i=n||E().Children.toArray(r.children),o=e||bx(r,i),{datasets:a}=o,{labelComponent:s,polar:l,theme:c}=r,u=function(t,n){const{categories:e,domain:r,range:i,scale:o,horizontal:a,origin:s,padding:l}=n,{width:c,height:u,theme:h,polar:d}=t;return{height:u,width:c,theme:h,polar:d,origin:s,categories:e,domain:r,range:i,scale:o,horizontal:a,padding:l,standalone:!1}}(r,o),h=r.name||"group";return i.map(((t,n)=>{const e=t.type&&t.type.role,i=l?function(t,n,e,r){const i=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,o=function(t,n){const{range:e}=n,r=Math.abs(e.x[1]-e.x[0]),i=Math.max(...e.y);return t.offset/(2*Math.PI*i)*r}(t,n);return(e-i)*o}(r,o,n,e):function(t,n,e,r){const i=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,o=function(t,n,e){if(!t.offset)return 0;const r=dt("x",t.horizontal),i=e.domain.x,o=e.range[r];return(Math.max(...i)-Math.min(...i))/(Math.max(...o)-Math.min(...o))*t.offset}(t,0,n);return(e-i)*o}(r,o,n,e),d="voronoi"===e||"tooltip"===e||"label"===e?t.props.style:jy(t,n,o,c),f=r.labels?function(t,n,e){if(t.labels)return Math.floor(n.length/2)===e?t.labels:void 0}(r,a,n):t.props.labels,p=t.props.name||`${h}-${e}-${n}`;return E().cloneElement(t,Object.assign({labels:f,style:d,key:`${p}-key-${n}`,name:p,data:Mx(r,a[n],i),colorScale:_x(r,t),labelComponent:s||t.props.labelComponent,xOffset:i},u))}))}const wx={width:450,height:300,padding:50,offset:0},Ax={containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",null),samples:50,standalone:!0,theme:Mh.grayscale},Ex=t=>{const n=Sx?.role,{getAnimationProps:e,setAnimationState:r,getProps:i}=by(),o=E().useMemo((()=>U()({},t,Ax)),[t]),a=i(o),s=ht(a,wx,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,horizontal:g,name:x}=s,v=E().Children.toArray(s.children),b=function(t){const n=(t=>{const{children:n}=t,e=E().Children.toArray(n).map((t=>({...t,props:K(t.props,["sharedEvents"])})));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{ed()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>bx(e,e.children)),[e])}(s),{domain:_,scale:M,style:C,origin:w}=b,A=E().useMemo((()=>Cx(a,v,b).map(((t,n)=>{const r=Object.assign({animate:e(a,t,n)},t.props);return E().cloneElement(t,r)}))),[a,v,b,e]),k=E().useMemo((()=>u?{domain:_,scale:M,width:f,height:p,standalone:u,theme:m,style:C.parent,horizontal:g,polar:y,origin:w,name:x}:{}),[u,_,M,f,p,m,C,g,y,w,x]),O=E().useMemo((()=>Wc(o)),[o]),D=E().useMemo((()=>{if(u){const t=U()({},c.props,k,O);return E().cloneElement(c,t)}return E().cloneElement(h,O)}),[h,u,c,k,O]),P=E().useMemo((()=>Py(a)),[a]),L=Fy(o);return E().useEffect((()=>()=>{o.animate&&r(L,a)}),[r,L,o,a]),S()(P)?E().cloneElement(D,D.props,A):E().createElement(qy,{container:D,eventKey:l,events:P,externalEventMutations:d},A)},kx={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Cx},Sx=Object.assign(E().memo(Ex,ed()),kx);Sx.displayName="VictoryGroup";var Ox=Array.prototype,Dx=Ox.slice;function Px(t){return()=>t}function Lx(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}function Tx(t){return t}function jx(t){return Math.ceil(Math.log(function(t,n){let e=0;for(let n of t)null!=n&&(n=+n)>=n&&++e;return e}(t))/Math.LN2)+1}Ox.map;const $x=(t=>{let n,e,r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(r&&ed()(n,o))return e;const s=t(...o);return r=!0,e=s,n=o,s}})((t=>{let{data:n=[],x:e,bins:r}=t;if(!(n&&n.length||Array.isArray(r)))return[];const i=(t=>{let{data:n,bins:e,x:r}=t;const i=ut(r||"x"),o=n?.some((t=>i(t)instanceof Date))||!1,a=Array.isArray(e)&&e.some((t=>t instanceof Date));return o||a})({data:n,bins:r,x:e}),o=(t=>{let{data:n,x:e,bins:r,dataOrBinsContainsDates:i}=t;const o=ut(e||"x"),a=function(){var t=Tx,n=Lx,e=jx;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,s=r.length,l=new Array(s);for(i=0;i<s;++i)l[i]=t(r[i],i,r);var c=n(l),u=c[0],h=c[1],d=e(l,u,h);if(!Array.isArray(d)){const t=h,e=+d;if(n===Lx&&([u,h]=function(t,n,e){let r;for(;;){const i=Wt(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}(u,h,e)),(d=Bt(u,h,e))[0]<=u&&(a=Wt(u,h,e)),d[d.length-1]>=h)if(t>=h&&n===Lx){const t=Wt(u,h,e);isFinite(t)&&(t>0?h=(Math.floor(h/t)+1)*t:t<0&&(h=(Math.ceil(h*-t)+1)/-t))}else d.pop()}for(var f=d.length;d[0]<=u;)d.shift(),--f;for(;d[f-1]>h;)d.pop(),--f;var p,m=new Array(f+1);for(i=0;i<=f;++i)(p=m[i]=[]).x0=i>0?d[i-1]:u,p.x1=i<f?d[i]:h;if(isFinite(a)){if(a>0)for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=h&&m[Math.min(f,Math.floor((o-u)/a))].push(r[i]);else if(a<0)for(i=0;i<s;++i)if(null!=(o=l[i])&&u<=o&&o<=h){const t=Math.floor((u-o)*a);m[Math.min(f,t+(d[t]<=o))].push(r[i])}}else for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=h&&m[Zt(d,o,0,f)].push(r[i]);return m}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:Px(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:Px([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Px(Dx.call(t)):Px(t),r):e},r}().value(o),s=(i?ko():be()).domain(Lx(n,o)).nice();return Array.isArray(r)?(a.domain([r[0],r[r.length-1]]),a.thresholds(r.slice(1,r.length-1)),a):Number.isInteger(r)?(a.domain(s.domain()),a.thresholds(r),a):i?(a.domain(s.domain()),a.thresholds(s.ticks()),a):(a.domain(s.domain()),a)})({data:n,x:e,bins:r,dataOrBinsContainsDates:i});return[...o(n)].filter((t=>{let{x0:n,x1:e}=t;return n instanceof Date&&e instanceof Date?new Date(n).getTime()!==new Date(e).getTime():n!==e})).map((t=>{const n=i?new Date(t.x0):t.x0||0,e=i?new Date(t.x1):t.x1||0;return{x0:n,x1:e,x:i?new Date((n.getTime()+e.getTime())/2):(n+e)/2,y:t.length,binnedData:[...t]}}))})),Nx=t=>{const{bins:n,data:e,x:r}=t,i=e?.some((t=>{let{_y:n}=t;return!lt(n)})),o=i?e:$x({data:e,x:r,bins:n});return _a({...t,data:o,x:"x"})},zx=(t,n)=>{const e=Nx(t);if(!e.length)return[0,1];if("x"===n){const n=e[0],r=e[e.length-1];return Ra({...t,data:[{x:n.x0},{x:r.x1}],x:"x"},"x")}return t.data?.length?Ra({...t,data:e},"y"):[0,1]},Rx={width:450,height:300,padding:50},Ix=[];class Fx extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryHistogram";static role="histogram";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static getFormattedData(){return $x(...arguments)}static defaultProps={containerComponent:E().createElement(lu,null),data:Ix,dataComponent:E().createElement(Up,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(Zh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return zx(t,n)}static getData(t){return Nx(t)}static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"histogram"),r=Object.assign({},e,(t=>{const n=J(t,"histogram"),e=tt(t.style,n),r=t.range||{x:st(t,"x"),y:st(t,"y")},i={x:zx(t,"x"),y:zx(t,"y")};let o=Nx(t);return o=ma(o,i,0),{style:e,data:o,scale:{x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},domain:i}})(e)),{binSpacing:i,cornerRadius:o,data:a,domain:s,events:l,height:c,horizontal:u,padding:h,scale:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,name:v,getPath:b,disableInlineStyles:_}=r,M={parent:{horizontal:u,domain:s,scale:d,width:g,height:c,data:a,standalone:p,name:v,theme:y,padding:h,style:m.parent}},C=t=>{const n=d.x(t.x0),e=d.x(t.x1);return Math.abs(e-n)};return a.reduce(((t,n,e)=>{const s=lt(n.eventKey)?e:n.eventKey,{x:h,y:p,y0:y,x0:v}=kp(r,n),M=(t=>i?C(t)-i:C(t))(n),w={alignment:"middle",barWidth:M,cornerRadius:o,data:a,datum:n,horizontal:u,index:e,scale:d,style:_?{}:m.data,width:g,height:c,x:h,y:p,y0:y,x0:v,getPath:b,disableInlineStyles:_};return t[s]={data:w},(null!=Ua(r,n,e)||x&&(l||f))&&(t[s].labels=Ya(r,e)),t}),M)})(t,Rx)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Fx,e=ht(this.props,Rx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Bx=zf(Fx);var Wx=r(8825),Vx=r.n(Wx);const Ux=t=>{const{data:n,style:e}=t;return n.map(((t,r)=>et(U()({},t.labels,e.labels),{datum:t,index:r,data:n})))},qx=t=>{const{orientation:n,theme:e}=t,r=function(t,n){void 0===n&&(n={});const e=t.style||{};return{parent:U()(e.parent,n.parent,{height:"100%",width:"100%"}),data:U()({},e.data,n.data),labels:U()({},e.labels,n.labels),border:U()({},e.border,n.border),title:U()({},e.title,n.title)}}(t,e&&e.legend&&e.legend.style?e.legend.style:{}),i=(t=>{const{colorScale:n,theme:e}=t;return"string"==typeof n?wh(n,e):n||[]})(t),o="horizontal"===n,a=Z(t.borderPadding);return Object.assign({},t,{style:r,isHorizontal:o,colorScale:i,borderPadding:a})},Hx=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?n%e:Math.floor(n/e):r?n:0},Gx=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?Math.floor(n/e):n%e:r?0:n},Kx=t=>{const{data:n}=t,e=t.style&&t.style.data||{},r=Ux(t);return n.map(((n,i)=>{const o=n.symbol||{},{fontSize:a}=r[i],s=o.size||e.size||a/2.5,l=t.symbolSpacer||Math.max(s,a);return{...n,size:s,symbolSpacer:l,fontSize:a,textSize:Fh(n.name,r[i]),column:Hx(t,i),row:Gx(t,i)}}))},Yx=(t,n)=>{const e=t.gutter||{},r="object"==typeof e?(e.left||0)+(e.right||0):e||0,i=tm()(n,"column");return Object.keys(i).reduce(((t,n,e)=>{const o=i[n].map((t=>t.textSize.width+t.size+t.symbolSpacer+r));return t[e]=Math.max(...o),t}),[])},Xx=(t,n)=>{const e=t.rowGutter||{},r="object"==typeof e?(e.top||0)+(e.bottom||0):e||0,i=tm()(n,"row");return Object.keys(i).reduce(((t,n,e)=>{const o=i[n].map((t=>t.textSize.height+t.symbolSpacer+r));return t[e]=Math.max(...o),t}),[])},Zx=t=>{const n=t.style&&t.style.title||{},e=Fh(t.title,n),r=n.padding||0;return{height:e.height+2*r||0,width:e.width+2*r||0}},Qx=(t,n)=>{const e=ht(t,n,"legend"),r=Object.assign({},e,qx(e)),{title:i,titleOrientation:o}=r,a=Kx(r),s=Yx(r,a),l=Xx(r,a),c=i?Zx(r):{height:0,width:0};return{height:"left"===o||"right"===o?Math.max(tv(l),c.height):tv(l)+c.height,width:"left"===o||"right"===o?tv(s)+c.width:Math.max(tv(s),c.width)}},Jx=(t,n)=>{const e=ht(t,n,"legend"),r=Object.assign({},e,qx(e)),{data:i,standalone:o,theme:a,padding:s,style:l,colorScale:c,gutter:u,rowGutter:h,borderPadding:d,title:f,titleOrientation:p,name:m,x:y=0,y:g=0}=r,x=Kx(r),v=Yx(r,x),b=Xx(r,x),_=Ux(r),M=f?Zx(r):{height:0,width:0},C="left"===p?M.width:0,w="top"===p?M.height:0,A=u&&"object"==typeof u&&u.left||0,E=h&&"object"==typeof h&&h.top||0,{height:k,width:S}=Qx(r,n),O=((t,n,e)=>{const{x:r,y:i,borderPadding:o,style:a}=t;return{x:r,y:i,height:(n||0)+o.top+o.bottom,width:(e||0)+o.left+o.right,style:Object.assign({fill:"none"},a.border)}})(r,k,S),D=((t,n)=>{const{title:e,titleOrientation:r,centerTitle:i,borderPadding:o}=t,{height:a,width:s}=n,l=(t=>{const{titleOrientation:n,centerTitle:e,titleComponent:r}=t,i=t.style&&t.style.title||{},o=r.props&&r.props.style||{},a=((t,n)=>{const e={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(n){const n="top"===t||"bottom"===t;return{textAnchor:n?"middle":e.textAnchor,verticalAnchor:n?e.verticalAnchor:"middle"}}return e})(n,e);return Array.isArray(o)?o.map((t=>U()({},t,i,a))):U()({},o,i,a)})(t),c=Array.isArray(l)?l[0].padding:l.padding,u="top"===r||"bottom"===r,h="right"===r?"right":"left",d={x:i?s/2:o["bottom"===r?"bottom":"top"]+(c||0),y:i?a/2:o[h]+(c||0)},f=()=>o[r]+(c||0),p=u?d.x:f(),m=u?f():d.y;return{x:"right"===r?t.x+s-p:t.x+p,y:"bottom"===r?t.y+a-m:t.y+m,style:l,text:e}})(r,O),P={parent:{data:i,standalone:o,theme:a,padding:s,name:m,height:r.height,width:r.width,style:l.parent},all:{border:O,title:D}};return x.reduce(((t,n,e)=>{const r=c[e%c.length],o=U()({},n.symbol,l.data,{fill:r}),a=lt(n.eventKey)?e:n.eventKey,s=((t,n,e)=>{const{column:r,row:i}=t;return{x:Vx()(r).reduce(((t,n)=>t+e[n]),0),y:Vx()(i).reduce(((t,e)=>t+n[e]),0)}})(n,b,v),u=g+d.top+n.symbolSpacer,h=y+d.left+n.symbolSpacer,f={index:e,data:i,datum:n,symbol:o.type||o.symbol||"circle",size:n.size,style:o,y:u+s.y+w+E,x:h+s.x+C+A},p={datum:n,data:i,text:n.name,style:_[e],y:f.y,x:f.x+n.symbolSpacer+n.size/2};return t[a]={data:f,labels:p},t}),P)};function tv(t){if(t&&t.length){let n=0;for(let e=0;e<t.length;e++)n+=t[e];return n}return 0}const nv={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},ev=[{name:"Series 1"},{name:"Series 2"}];class rv extends E().Component{static displayName="VictoryLegend";static role="legend";static defaultProps={borderComponent:E().createElement(Xp,null),data:ev,containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Mg,null),groupComponent:E().createElement("g",null),labelComponent:E().createElement(Zh,null),standalone:!0,theme:Mh.grayscale,titleComponent:E().createElement(Zh,null)};static getBaseProps(t){return Jx(t,nv)}static getDimensions(t){return Qx(t,nv)}static expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];renderChildren(t){const{dataComponent:n,labelComponent:e,title:r}=t,i=[];if(t.borderComponent){const n=this.getComponentProps(t.borderComponent,"border","all"),e=E().cloneElement(t.borderComponent,n);i.push(e)}if(n){const t=this.dataKeys.map(((t,e)=>{if("all"===t)return;const r=this.getComponentProps(n,"data",e);return E().cloneElement(n,r)})).filter((t=>void 0!==t));i.push(...t)}if(r&&t.titleComponent){const n=this.getComponentProps(r,"title","all"),e=E().cloneElement(t.titleComponent,n);i.push(e)}if(e){const t=this.dataKeys.map(((t,n)=>{if("all"===t)return;const r=this.getComponentProps(e,"labels",n);return void 0!==r.text&&null!==r.text?E().cloneElement(e,r):void 0})).filter((t=>void 0!==t));i.push(...t)}return i}render(){const{role:t}=this.constructor,n=ht(this.props,nv,t),e=this.renderChildren(n);return n.standalone?this.renderContainer(n.containerComponent,e):E().cloneElement(n.groupComponent,{},e)}}const iv=zf(rv),ov={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},av=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=et(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),i=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})(U()({},t,ov)),e=Wc(n),{polar:r,origin:i}=n,o=zc(n),a=r&&i?`translate(${i.x}, ${i.y})`:void 0,s=o(n.data);return E().cloneElement(n.pathComponent,{...n.events,...e,"aria-label":n.ariaLabel,d:s,style:n.style,transform:n.transform||a,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex})},sv={width:450,height:300,padding:50,interpolation:"linear"};class lv extends E().Component{constructor(t){super(t)}static animationWhitelist=["data","domain","height","padding","samples","style","width"];static displayName="VictoryLine";static role="line";static defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}};static defaultPolarTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}};static continuous=!0;static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(av,null),labelComponent:E().createElement(Zh,{renderInPortal:!0}),groupComponent:E().createElement(pu,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"line"),r=Object.assign({},e,(t=>{let n=_a(t);n.length<2&&(n=[]);const e={x:st(t,"x"),y:st(t,"y")},r={x:Ta(t,"x"),y:Ta(t,"y")},i={x:Yo(t,"x").domain(r.x).range(t.horizontal?e.y:e.x),y:Yo(t,"y").domain(r.y).range(t.horizontal?e.x:e.y)},o=t.polar?t.origin||at(t):void 0,a=J(t,"line");return{domain:r,data:n,scale:i,style:tt(t.style,a),origin:o}})(e)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:h,padding:d,polar:f,scale:p,sharedEvents:m,standalone:y,style:g,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:g.parent,scale:p,data:i,height:l,width:v,name:_,domain:o,standalone:y,polar:f,origin:h,padding:d,horizontal:c},all:{data:{horizontal:c,polar:f,origin:h,scale:p,data:i,interpolation:u,groupComponent:s,style:M?{}:g.data,theme:x,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ua(r,n,e)||b&&(a||m))&&(t[lt(n.eventKey)?e:n.eventKey]={labels:Ya(r,e)}),t)),C)})(t,sv)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=lv,e=ht(this.props,sv,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const cv=zf(lv,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),uv=t=>{const{colorScale:n,theme:e}=t,r=J(t,"pie"),i=tt(t.style,r),o=Array.isArray(n)?n:wh(n,e),a=Z(t.padding),s=((t,n)=>"number"==typeof t.radius?t.radius:Math.min(t.width-n.left-n.right,t.height-n.top-n.bottom)/2)(t,a),l=((t,n)=>{const{width:e,height:r}=t,i=L()(t.origin)?t.origin:{};return{x:void 0!==i.x?i.x:(n.left-n.right+e)/2,y:void 0!==i.y?i.y:(n.top-n.bottom+r)/2}})(t,a),c=((t,n)=>{const e=[];return(t=>Array.isArray(t.categories)?t.categories:t?.categories?.x??[])(t).forEach((t=>{const r=n.findIndex((n=>{let{x:e}=n;return e===t}));if(r>=0){const t=n.splice(r,1)[0];e.push(t)}})),[...e,...n]})(t,_a(t)),u=((t,n)=>{const e=ct(t.padAngle)?0:t.padAngle;return Bs().sort(null).startAngle(rt(t.startAngle)).endAngle(rt(t.endAngle)).padAngle(rt(e)).value((t=>t._y))(n)})(t,c);return Object.assign({},t,{style:i,colors:o,padding:a,defaultRadius:s,data:c,slices:u,origin:l})},hv=(t,n)=>{const{style:e,colors:r}=n,i=((t,n,e)=>t&&t.data&&t.data.fill?t.data.fill:n&&n[e%n.length])(e,r,t);return Object.assign({fill:i},e.data)},dv=(t,n)=>t*(t=>Math.cos(t-rt(90)))(n),fv=(t,n)=>t*(t=>Math.sin(t-rt(90)))(n),pv=t=>t.reduce(((t,n)=>t+n),0)/t.length,mv=(t,n)=>{const e=ht(t,n,"pie"),r=uv(e),{slices:i,style:o,data:a,origin:s,defaultRadius:l,labels:c,events:u,sharedEvents:h,height:d,width:f,standalone:p,name:m,innerRadius:y,cornerRadius:g,padAngle:x,disableInlineStyles:v,labelIndicator:b}=r,_=e.radius||l,M={parent:{standalone:p,height:d,width:f,slices:i,name:m,style:o.parent}};return i.reduce(((t,n,i)=>{const o=U()({},a[i],{startAngle:it(n.startAngle),endAngle:it(n.endAngle),padAngle:it(n.padAngle)}),l=lt(o.eventKey)?i:o.eventKey,d={index:i,slice:n,datum:o,data:a,origin:s,innerRadius:y,radius:_,cornerRadius:g,padAngle:x,style:v?{}:hv(i,r),disableInlineStyles:v};t[l]={data:d};const f=((t,n,e)=>{let r;return r=n.label?n.label:Array.isArray(t.labels)?t.labels[e]:ct(t.labels)?t.labels:n.xName||n._x,(t=>null==t||ct(t)?t:`${t}`)(r)})(e,o,i);if(null!=f||c&&(u||h)){const n=nt(f,d);if(t[l].labels=((t,n,e)=>{const{index:r,datum:i,data:o,slice:a,labelComponent:s,theme:l}=n,{style:c,defaultRadius:u,origin:h,width:d,height:f}=e,p=nt(e.labelRadius,Object.assign({text:t},n)),m=nt(e.labelPosition,Object.assign({text:t},n))||"centroid",y=nt(e.labelPlacement,Object.assign({text:t},n))||"vertical",g=Object.assign({padding:0},c.labels),x=((t,n,e)=>{const r=e&&e.padding||0;return n||t+r})(u,p,et(g,Object.assign({labelRadius:p,text:t},n))),v=(t=>Rs().outerRadius(t).innerRadius(t))(x),b=((t,n,e)=>{const r={startAngle:"startAngle"===e?n.startAngle:n.endAngle,endAngle:"endAngle"===e?n.endAngle:n.startAngle},i=Object.assign({},n,r);return t.centroid(i)})(v,a,m),_=((t,n,e)=>{let r=0;return r=void 0!==n.angle?e.angle:it("centroid"===n?(t.startAngle+t.endAngle)/2:"startAngle"===n?t.startAngle:t.endAngle),(r<0?360-r:r)%360})(a,m,g),M=((t,n)=>"vertical"===n?0:"parallel"===n?t>180&&t<360?t+90:t-90:t>90&&t<270?t-180:t)(_,y),C=((t,n)=>"perpendicular"===n?t>90&&t<270?"bottom":"top":"parallel"===n?t>=0&&t<=180?"right":"left":t<45||t>315?"top":t>=45&&t<135?"right":t>=135&&t<225?"bottom":"left")(_,y),w=g.textAnchor||(t=>"top"===t||"bottom"===t?"middle":"right"===t?"start":"end")(C),A=g.verticalAnchor||(t=>"left"===t||"right"===t?"middle":"bottom"===t?"start":"end")(C),E={width:d,height:f,index:r,datum:i,data:o,slice:a,orientation:C,text:t,style:g,x:Math.round(b[0])+h.x,y:Math.round(b[1])+h.y,textAnchor:w,verticalAnchor:A,angle:M,calculatedLabelRadius:x};if(!Q(s))return E;const k=l&&l.tooltip||{};return U()({},E,K(k,["style"]))})(n,Object.assign({},e,d),r),b){const n=t[l].labels;n.calculatedLabelRadius>_&&(t[l].labelIndicators=((t,n,e)=>{const{innerRadius:r,radius:i,slice:{startAngle:o,endAngle:a},labelIndicatorInnerOffset:s,labelIndicatorOuterOffset:l,index:c}=t,{height:u,width:h}=n,{calculatedLabelRadius:d}=e,f=pv([r,i]),p=pv([a,o]),m=h/2,y=u/2,g=f+s,x=d-l,v={x1:m+dv(g,p),y1:y+fv(g,p),x2:m+dv(x,p),y2:y+fv(x,p),index:c};return U()({},v)})(Object.assign({},e,d),r,n))}}return t}),M)},yv=t=>{const{slice:n,radius:e,innerRadius:r,cornerRadius:i}=t;if(ct(t.pathFunction))return t.pathFunction(n);const o=rt(t.padAngle),a=rt(t.sliceStartAngle),s=rt(t.sliceEndAngle);return Rs().cornerRadius(i).outerRadius(e).innerRadius(r||0)(U()({startAngle:a,endAngle:s,padAngle:o},n))},gv={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},xv=t=>{const n=(t=>{const n=et(t.style,t),e=nt(t.radius,Object.assign({},t,{style:n})),r=nt(t.innerRadius,Object.assign({},t,{style:n,radius:e})),i=nt(t.ariaLabel,t),o=nt(t.id,t),a=nt(t.cornerRadius,t),s=nt(t.padAngle,t),l=nt(t.sliceStartAngle,t),c=nt(t.sliceEndAngle,t),u=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,radius:e,innerRadius:r,id:o,cornerRadius:a,padAngle:s,sliceStartAngle:l,sliceEndAngle:c,tabIndex:u})})(U()({},t,gv)),e=n.origin?`translate(${n.origin.x}, ${n.origin.y})`:void 0;return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:yv(n),style:n.style,transform:n.transform||e,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex})},vv={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},bv=t=>!lt(t._x)&&!lt(t._y);class _v extends E().Component{static animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];static displayName="VictoryPie";static role="pie";static defaultTransitions={onExit:{duration:500,before:()=>({_y:0,label:" "})},onEnter:{duration:500,before:()=>({_y:0,label:" "}),after:t=>({y_:t._y,label:t.label})}};static defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:E().createElement(xv,null),labelComponent:E().createElement(Zh,null),containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",null),sortOrder:"ascending",theme:Mh.grayscale};static getBaseProps(t){return mv(t,vv)}static getData=_a;static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];shouldAnimate(){return Boolean(this.props.animate)}renderComponents(t,n){void 0===n&&(n=bv);const{dataComponent:e,labelComponent:r,groupComponent:i,labelIndicator:o,labelPosition:a}=t;if(!i)throw new Error("VictoryPie expects a groupComponent prop");const s=o&&"centroid"===a,l=[];if(e){const t=this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]);l.push(...t)}if(r){const t=this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return E().cloneElement(r,e)})).filter((t=>void 0!==t));l.push(...t)}if(s&&o){let t=E().createElement(Uf,null);"object"==typeof o&&(t=o);const n=this.dataKeys.map(((n,e)=>{const r=this.getComponentProps(t,"labelIndicators",e);return E().cloneElement(t,r)}));l.push(...n)}return this.renderContainer(i,l)}render(){const{animationWhitelist:t,role:n}=Mv,e=ht(this.props,vv,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderComponents(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Mv=zf(_v),Cv=(t,n)=>n.bubbleProperty?"circle":t.symbol||n.symbol,wv=(t,n)=>{const{size:e,z:r}=n;return t.size?"function"==typeof t.size?t.size:Math.max(t.size,1):"function"==typeof n.size?e:t[r]?((t,n)=>{const{data:e,z:r,maxBubbleSize:i,minBubbleSize:o}=n,a=e.map((t=>t[r])),s=Math.min(...a),l=Math.max(...a),c=i||(()=>{const t=Math.min(...Object.values(Z(n.padding)));return Math.max(t,5)})(),u=o||.1*c;if(l===s)return Math.max(u,1);const h=Math.PI*Math.pow(c,2),d=Math.PI*Math.pow(u,2),f=(t[r]-s)/(l-s)*h,p=Math.max(f,d),m=Math.sqrt(p/Math.PI);return Math.max(m,1)})(t,n):Math.max(e||0,1)},Av={width:450,height:300,padding:50,size:3,symbol:"circle"};class Ev extends E().Component{static animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"];static displayName="VictoryScatter";static role="scatter";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Mg,null),labelComponent:E().createElement(Zh,null),groupComponent:E().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=J(t,"scatter"),e=tt(t.style,n),r={x:st(t,"x"),y:st(t,"y")},i={x:Ta(t,"x"),y:Ta(t,"y")},o={x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},a=t.polar?t.origin||at(t):void 0,s=t.bubbleProperty||"z";let l=_a(t);return l=ma(l,i),{domain:i,data:l,scale:o,style:e,origin:a,z:s}})(e)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,scale:h,name:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,horizontal:v,disableInlineStyles:b}=r,_={parent:{style:m.parent,scale:h,domain:o,data:i,height:s,width:g,standalone:p,theme:y,origin:l,polar:u,padding:c,name:d,horizontal:v}};return i.reduce(((t,n,e)=>{const o=lt(n.eventKey)?e:n.eventKey,{x:s,y:c}=X(r,n),d={x:s,y:c,datum:n,data:i,index:e,scale:h,polar:u,origin:l,horizontal:v,size:wv(n,r),symbol:Cv(n,r),style:b?{}:m.data,disableInlineStyles:b};return t[o]={data:d},(null!=Ua(r,n,e)||x&&(a||f))&&(t[o].labels=Ya(r,e)),t}),_)})(t,Av)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=kv,e=ht(this.props,Av,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const kv=zf(Ev),Sv={width:450,height:300,padding:50};function Ov(t,n){const e=wy(t,n),r=function(t,n){const{fillInMissingData:e}=t,r=n.reduce(((t,n)=>(n.forEach((n=>{t[n._x instanceof Date?n._x.getTime():n._x]=!0})),t)),{}),i=Object.keys(r).map((t=>Number(t))),o=R()(i);return n.map((t=>{let n=0;const r=t[0]&&t[0]._x instanceof Date,i=o.map(((i,o)=>{let a=Number(i);const s=t[o-n];if(s){if((r?s._x.getTime():s._x)===a)return s;n++;const t=e?0:null;return a=r?new Date(a):a,{x:a,y:t,_x:a,_y:t}}const l=e?0:null;return a=r?new Date(a):a,{x:a,y:l,_x:a,_y:l}}));return i}))}(t,e);return r.map((t=>t.filter((t=>null!==t._x&&null!==t._y)))).map(((n,e)=>function(t,n,e){const r=t.xOffset||0;return n[e].map((t=>{const i=function(t,n,e){if(t.y0)return t.y0;const r=t._y,i=t._group,o=e[0].map((t=>t.y0)),a=e.slice(0,n).reduce(((n,e)=>n.concat(e.filter((n=>t._x instanceof Date?n._x.getTime()===t._x.getTime():n._x===t._x)).map((t=>t._y||0)))),[]),s=a.length&&a.reduce(((t,n)=>r<0&&n<0||r>=0&&n>=0?Number(n)+t:t),o[i]||0);return a.some((t=>t instanceof Date))?new Date(s):s}(t,e,n)||0;return Object.assign({},t,{_y0:t._y instanceof Date?i?new Date(i):t._y:i,_y1:null===t._y?null:t._y instanceof Date?new Date(Number(t._y)+Number(i)):t._y+i,_x1:null===t._x?null:t._x instanceof Date?new Date(Number(t._x)+Number(r)):t._x+r})}))}(t,r,e)))}function Dv(t,n){const e=n||E().Children.toArray(t.children),r="stack",i=ht(t,Sv,r),o=Ty(i.theme,i.style,r),a=i.categories||Iy(i,e),s=i.datasets||Ov(i,e),l=e.map(((t,n)=>E().cloneElement(t,{data:s[n]}))),c={x:Oy(Object.assign({},i,{categories:a}),"x",l),y:Oy(Object.assign({},i,{categories:a}),"y",l)},u=i.range||{x:st(i,"x"),y:st(i,"y")},h={x:Zo(i,"x")||Dy(i,"x"),y:Zo(i,"y")||Dy(i,"y")},d={x:h.x.domain(c.x).range(i.horizontal?u.y:u.x),y:h.y.domain(c.y).range(i.horizontal?u.x:u.y)},{colorScale:f,horizontal:p}=i;return{datasets:s,categories:a,range:u,domain:c,horizontal:p,scale:d,style:o,colorScale:f,role:r}}function Pv(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme?r||t.theme.props.colorScale:r}function Lv(t,n,e){const r=ht(t,Sv,"stack"),i=n||E().Children.toArray(r.children),o=e||Dv(r,i),{datasets:a}=o,s=function(t,n){const{categories:e,domain:r,range:i,scale:o,horizontal:a}=n;return{height:t.height,width:t.width,padding:Z(t.padding),standalone:!1,theme:t.theme,categories:e,domain:r,range:i,scale:o,horizontal:a}}(r,o),l=r.name||"stack",{theme:c}=r;return i.map(((t,n)=>{const e=t.type&&t.type.role,i=a[n],u=jy(t,n,o,c),h=r.labels?function(t,n,e){if(t.labels)return n.length===e+1?t.labels:void 0}(r,a,n):t.props.labels,d=t.props.name||`${l}-${e}-${n}`;return E().cloneElement(t,Object.assign({key:`${d}-key-${n}`,labels:h,name:d,domainPadding:t.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||t.props.labelComponent,style:u,colorScale:Pv(r,t),data:i,polar:r.polar},s))}))}const Tv={width:450,height:300,padding:50},jv={containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",null),standalone:!0,theme:Mh.grayscale,fillInMissingData:!0},$v=t=>{const{role:n}=zv,e=E().useMemo((()=>U()({},t,jv)),[t]),{setAnimationState:r,getAnimationProps:i,getProps:o}=by(),a=o(e),s=ht(a,Tv,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,horizontal:g,name:x}=s,v=E().Children.toArray(s.children),b=function(t){const n=(t=>{const{children:n}=t,e=E().Children.toArray(n).map((t=>{const n=t;return{...n,props:K(n.props,["sharedEvents"])}}));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{ed()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>Dv(e,e.children)),[e])}(s),{domain:_,scale:M,style:C}=b,w=E().useMemo((()=>Lv(a,v,b).map(((t,n)=>{const e=Object.assign({animate:i(a,t,n)},t.props);return E().cloneElement(t,e)})).reverse()),[a,v,b,i]),A=E().useMemo((()=>u?{domain:_,scale:M,width:f,height:p,standalone:u,theme:m,style:C.parent,horizontal:g,polar:y,name:x}:{}),[u,_,M,f,p,m,C,g,y,x]),k=E().useMemo((()=>Wc(e)),[e]),O=E().useMemo((()=>{if(u){const t=U()({},c.props,A,k);return E().cloneElement(c,t)}return E().cloneElement(h,k)}),[h,u,c,A,k]),D=E().useMemo((()=>Py(a)),[a]),P=Fy(e);return E().useEffect((()=>()=>{e.animate&&r(P,e)}),[r,P,e]),S()(D)?E().cloneElement(O,O.props,w):E().createElement(qy,{container:O,eventKey:l,events:D,externalEventMutations:d},w)},Nv={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Lv},zv=Object.assign(E().memo($v,ed()),Nv);zv.displayName="VictoryStack";const Rv={pathComponent:E().createElement(Ic,null),circleComponent:E().createElement(hu,null),clipPathComponent:E().createElement(cu,null),groupComponent:E().createElement("g",null),role:"presentation",shapeRendering:"auto"},Iv=t=>{const n=function(t){const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=nt(t.size,t),i=et(t.style,t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,size:r,style:i,tabIndex:o})}(U()({},t,Rv)),{ariaLabel:e,role:r,shapeRendering:i,className:o,events:a,transform:s,style:l,size:c,tabIndex:u}=n,h=(t=>{const{polygon:n}=t;return Array.isArray(n)&&n.length?`M ${t.polygon?.join("L")} Z`:""})(n),d={"aria-label":e,className:o,role:r,shapeRendering:i,style:l,tabIndex:u,transform:s,...a},f=Wc(n);if(c){const t=E().cloneElement(n.circleComponent,{...d,key:`${n.id}-circle-clip`,clipPath:`url(#${n.clipId})`,cx:n.x,cy:n.y,r:c}),e=E().cloneElement(n.clipPathComponent,{key:`${n.id}-voronoi-clip`,clipId:n.clipId},E().cloneElement(n.pathComponent,{d:h,className:o}));return E().cloneElement(n.groupComponent,{},[e,t])}return E().cloneElement(n.pathComponent,{...d,...f,d:h})};function Fv(t){return function(){return t}}function Bv(t){return t[0]}function Wv(t){return t[1]}function Vv(){this._=null}function Uv(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function qv(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Hv(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Gv(t){for(;t.L;)t=t.L;return t}Vv.prototype={constructor:Vv,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Gv(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(qv(this,e),e=(t=e).U),e.C=!1,r.C=!0,Hv(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Hv(this,e),e=(t=e).U),e.C=!1,r.C=!0,qv(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?Gv(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,qv(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Hv(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,qv(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Hv(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,qv(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Hv(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var Kv=Vv;function Yv(t,n,e,r){var i=[null,null],o=vb.push(i)-1;return i.left=t,i.right=n,e&&Zv(i,t,n,e),r&&Zv(i,n,t,r),gb[t.index].halfedges.push(o),gb[n.index].halfedges.push(o),i}function Xv(t,n,e){var r=[n,e];return r.left=t,r}function Zv(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function Qv(t,n,e,r,i){var o,a=t[0],s=t[1],l=a[0],c=a[1],u=0,h=1,d=s[0]-l,f=s[1]-c;if(o=n-l,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>u&&(u=o)}if(o=r-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<h&&(h=o)}if(o=e-c,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>u&&(u=o)}if(o=i-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<h&&(h=o)}return!(u>0||h<1)||(u>0&&(t[0]=[l+u*d,c+u*f]),h<1&&(t[1]=[l+h*d,c+h*f]),!0)}}}}}function Jv(t,n,e,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],d=c[1],f=u[0],p=u[1],m=(h+f)/2,y=(d+p)/2;if(p===d){if(m<n||m>=r)return;if(h>f){if(l){if(l[1]>=i)return}else l=[m,e];o=[m,i]}else{if(l){if(l[1]<e)return}else l=[m,i];o=[m,e]}}else if(s=y-(a=(h-f)/(p-d))*m,a<-1||a>1)if(h>f){if(l){if(l[1]>=i)return}else l=[(e-s)/a,e];o=[(i-s)/a,i]}else{if(l){if(l[1]<e)return}else l=[(i-s)/a,i];o=[(e-s)/a,e]}else if(d<p){if(l){if(l[0]>=r)return}else l=[n,a*n+s];o=[r,a*r+s]}else{if(l){if(l[0]<n)return}else l=[r,a*r+s];o=[n,a*n+s]}return t[0]=l,t[1]=o,!0}function tb(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function nb(t,n){return n[+(n.left!==t.site)]}function eb(t,n){return n[+(n.left===t.site)]}var rb,ib=[];function ob(){Uv(this),this.x=this.y=this.arc=this.site=this.cy=null}function ab(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var a=i[0],s=i[1],l=r[0]-a,c=r[1]-s,u=o[0]-a,h=o[1]-s,d=2*(l*h-c*u);if(!(d>=-_b)){var f=l*l+c*c,p=u*u+h*h,m=(h*f-c*p)/d,y=(l*p-u*f)/d,g=ib.pop()||new ob;g.arc=t,g.site=i,g.x=m+a,g.y=(g.cy=y+s)+Math.sqrt(m*m+y*y),t.circle=g;for(var x=null,v=xb._;v;)if(g.y<v.y||g.y===v.y&&g.x<=v.x){if(!v.L){x=v.P;break}v=v.L}else{if(!v.R){x=v;break}v=v.R}xb.insert(x,g),x||(rb=g)}}}}function sb(t){var n=t.circle;n&&(n.P||(rb=n.N),xb.remove(n),ib.push(n),Uv(n),t.circle=null)}var lb=[];function cb(){Uv(this),this.edge=this.site=this.circle=null}function ub(t){var n=lb.pop()||new cb;return n.site=t,n}function hb(t){sb(t),yb.remove(t),lb.push(t),Uv(t)}function db(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,s=[t];hb(t);for(var l=o;l.circle&&Math.abs(e-l.circle.x)<bb&&Math.abs(r-l.circle.cy)<bb;)o=l.P,s.unshift(l),hb(l),l=o;s.unshift(l),sb(l);for(var c=a;c.circle&&Math.abs(e-c.circle.x)<bb&&Math.abs(r-c.circle.cy)<bb;)a=c.N,s.push(c),hb(c),c=a;s.push(c),sb(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],Zv(c.edge,l.site,c.site,i);l=s[0],(c=s[h-1]).edge=Yv(l.site,c.site,null,i),ab(l),ab(c)}function fb(t){for(var n,e,r,i,o=t[0],a=t[1],s=yb._;s;)if((r=pb(s,a)-o)>bb)s=s.L;else{if(!((i=o-mb(s,a))>bb)){r>-bb?(n=s.P,e=s):i>-bb?(n=s,e=s.N):n=e=s;break}if(!s.R){n=s;break}s=s.R}!function(t){gb[t.index]={site:t,halfedges:[]}}(t);var l=ub(t);if(yb.insert(n,l),n||e){if(n===e)return sb(n),e=ub(n.site),yb.insert(l,e),l.edge=e.edge=Yv(n.site,l.site),ab(n),void ab(e);if(e){sb(n),sb(e);var c=n.site,u=c[0],h=c[1],d=t[0]-u,f=t[1]-h,p=e.site,m=p[0]-u,y=p[1]-h,g=2*(d*y-f*m),x=d*d+f*f,v=m*m+y*y,b=[(y*x-f*v)/g+u,(d*v-m*x)/g+h];Zv(e.edge,c,p,b),l.edge=Yv(c,t,null,b),e.edge=Yv(t,p,null,b),ab(n),ab(e)}else l.edge=Yv(n.site,l.site)}}function pb(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(e=a.site)[0],l=e[1],c=l-n;if(!c)return s;var u=s-r,h=1/o-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+i-o/2)))/h+r:(r+s)/2}function mb(t,n){var e=t.N;if(e)return pb(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var yb,gb,xb,vb,bb=1e-6,_b=1e-12;function Mb(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Cb(t,n){return n[1]-t[1]||n[0]-t[0]}function wb(t,n){var e,r,i,o=t.sort(Cb).pop();for(vb=[],gb=new Array(t.length),yb=new Kv,xb=new Kv;;)if(i=rb,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(fb(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;db(i.arc)}if(function(){for(var t,n,e,r,i=0,o=gb.length;i<o;++i)if((t=gb[i])&&(r=(n=t.halfedges).length)){var a=new Array(r),s=new Array(r);for(e=0;e<r;++e)a[e]=e,s[e]=tb(t,vb[n[e]]);for(a.sort((function(t,n){return s[n]-s[t]})),e=0;e<r;++e)s[e]=n[a[e]];for(e=0;e<r;++e)n[e]=s[e]}}(),n){var a=+n[0][0],s=+n[0][1],l=+n[1][0],c=+n[1][1];!function(t,n,e,r){for(var i,o=vb.length;o--;)Jv(i=vb[o],t,n,e,r)&&Qv(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>bb||Math.abs(i[0][1]-i[1][1])>bb)||delete vb[o]}(a,s,l,c),function(t,n,e,r){var i,o,a,s,l,c,u,h,d,f,p,m,y=gb.length,g=!0;for(i=0;i<y;++i)if(o=gb[i]){for(a=o.site,s=(l=o.halfedges).length;s--;)vb[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(f=eb(o,vb[l[s]]))[0],m=f[1],h=(u=nb(o,vb[l[++s%c]]))[0],d=u[1],(Math.abs(p-h)>bb||Math.abs(m-d)>bb)&&(l.splice(s,0,vb.push(Xv(a,f,Math.abs(p-t)<bb&&r-m>bb?[t,Math.abs(h-t)<bb?d:r]:Math.abs(m-r)<bb&&e-p>bb?[Math.abs(d-r)<bb?h:e,r]:Math.abs(p-e)<bb&&m-n>bb?[e,Math.abs(h-e)<bb?d:n]:Math.abs(m-n)<bb&&p-t>bb?[Math.abs(d-n)<bb?h:t,n]:null))-1),++c);c&&(g=!1)}if(g){var x,v,b,_=1/0;for(i=0,g=null;i<y;++i)(o=gb[i])&&(b=(x=(a=o.site)[0]-t)*x+(v=a[1]-n)*v)<_&&(_=b,g=o);if(g){var M=[t,n],C=[t,r],w=[e,r],A=[e,n];g.halfedges.push(vb.push(Xv(a=g.site,M,C))-1,vb.push(Xv(a,C,w))-1,vb.push(Xv(a,w,A))-1,vb.push(Xv(a,A,M))-1)}}for(i=0;i<y;++i)(o=gb[i])&&(o.halfedges.length||delete gb[i])}(a,s,l,c)}this.edges=vb,this.cells=gb,yb=xb=vb=gb=null}wb.prototype={constructor:wb,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return nb(n,t[e])}));return e.data=n.site.data,e}))},triangles:function(){var t=[],n=this.edges;return this.cells.forEach((function(e,r){if(o=(i=e.halfedges).length)for(var i,o,a,s=e.site,l=-1,c=n[i[o-1]],u=c.left===s?c.right:c.left;++l<o;)a=u,u=(c=n[i[l]]).left===s?c.right:c.left,a&&u&&r<a.index&&r<u.index&&Mb(s,a,u)<0&&t.push([s.data,a.data,u.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,n,e){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var l=t-i.site[0],c=n-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],c=n-s[1],h=l*l+c*c;h<u&&(u=h,a=s.index)}}))}while(null!==a);return o._found=r,null==e||u<=e*e?i.site:null}};const Ab=(t,n,e)=>{const r=[Math.min(...n.x),Math.min(...n.y)],i=[Math.max(...n.x),Math.max(...n.y)];return function(){var t=Bv,n=Wv,e=null;function r(r){return new wb(r.map((function(e,i){var o=[Math.round(t(e,i,r)/bb)*bb,Math.round(n(e,i,r)/bb)*bb];return o.index=i,o.data=e,o})),e)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(n){return arguments.length?(t="function"==typeof n?n:Fv(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:Fv(+t),r):n},r.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},r.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},r}().x((n=>t.polar?(t=>-1*e.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2)(n):(n=>t.horizontal?e.y(void 0!==n._y1?n._y1:n._y):e.x(void 0!==n._x1?n._x1:n._x))(n))).y((n=>(n=>t.horizontal?e.x(void 0!==n._x1?n._x1:n._x):e.y(void 0!==n._y1?n._y1:n._y))(n))).extent([r,i])},Eb={width:450,height:300,padding:50};class kb extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","size","style","width"];static displayName="VictoryVoronoi";static role="voronoi";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Iv,null),labelComponent:E().createElement(Zh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=t.theme&&t.theme.voronoi&&t.theme.voronoi.style?t.theme.voronoi.style:{},e=tt(t.style,n),r={x:st(t,"x"),y:st(t,"y")},i={x:Ta(t,"x"),y:Ta(t,"y")},o={x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)};let a=_a(t);return a=ma(a,i),a=a.filter((t=>null!==t._x&&null!==t._y)),{domain:i,data:a,scale:o,style:e,polygons:Ab(t,r,o).polygons(a),origin:t.polar?t.origin||at(t):void 0}})(e)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,polygons:h,scale:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,name:v}=r,b={parent:{style:m.parent,scale:d,domain:o,data:i,standalone:p,height:s,width:g,theme:y,origin:l,polar:u,padding:c,name:v}};return i.reduce(((t,n,e)=>{const o=h[e]?.filter((t=>"data"!==t)),s=lt(n.eventKey)?e:n.eventKey,{x:c,y:u}=X(r,n),p={x:c,y:u,datum:n,data:i,index:e,scale:d,polygon:o,origin:l,size:r.size,style:m.data};return t[s]={data:p},(null!=Ua(r,n,e)||x&&(a||f))&&(t[s].labels=Ya(r,e)),t}),b)})(t,Eb)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Sb,e=ht(this.props,Eb,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Sb=zf(kb)}(),i}()}));
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Victory=n(require("react")):t.Victory=n(t.React)}(self,(function(t){return function(){var n={3644:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),n=new Uint32Array(512),e=function(t){var n=t.length>>1;if(n>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var e=Math.max(2*n-5,0);this._triangles=new Uint32Array(3*e),this._halfedges=new Int32Array(3*e),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()};function r(t,n,e,r){var i=t-e,o=n-r;return i*i+o*o}function i(t,n,e,r,i,o){var a=(r-n)*(i-t),s=(e-t)*(o-n);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function o(t,n,e,r,o,a){return(i(o,a,t,n,e,r)||i(t,n,e,r,o,a)||i(e,r,o,a,t,n))<0}function a(t,n,e,r,i,o){var a=e-t,s=r-n,l=i-t,c=o-n,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l),f=(c*u-s*h)*d,p=(a*h-l*u)*d;return f*f+p*p}function s(t,n,e,r){if(r-e<=20)for(var i=e+1;i<=r;i++){for(var o=t[i],a=n[o],c=i-1;c>=e&&n[t[c]]>a;)t[c+1]=t[c--];t[c+1]=o}else{var u=e+1,h=r;l(t,e+r>>1,u),n[t[e]]>n[t[r]]&&l(t,e,r),n[t[u]]>n[t[r]]&&l(t,u,r),n[t[e]]>n[t[u]]&&l(t,e,u);for(var d=t[u],f=n[d];;){do{u++}while(n[t[u]]<f);do{h--}while(n[t[h]]>f);if(h<u)break;l(t,u,h)}t[e+1]=t[h],t[h]=d,r-u+1>=h-e?(s(t,n,u,r),s(t,n,e,h-1)):(s(t,n,e,h-1),s(t,n,u,r))}}function l(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function c(t){return t[0]}function u(t){return t[1]}return e.from=function(t,n,r){void 0===n&&(n=c),void 0===r&&(r=u);for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;a++){var s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new e(o)},e.prototype.update=function(){for(var n=this,e=n.coords,i=n._hullPrev,l=n._hullNext,c=n._hullTri,u=n._hullHash,h=e.length>>1,d=1/0,f=1/0,p=-1/0,m=-1/0,y=0;y<h;y++){var g=e[2*y],x=e[2*y+1];g<d&&(d=g),x<f&&(f=x),g>p&&(p=g),x>m&&(m=x),this._ids[y]=y}for(var v,b,_,M=(d+p)/2,C=(f+m)/2,w=1/0,A=0;A<h;A++){var E=r(M,C,e[2*A],e[2*A+1]);E<w&&(v=A,w=E)}var k=e[2*v],S=e[2*v+1];w=1/0;for(var O=0;O<h;O++)if(O!==v){var D=r(k,S,e[2*O],e[2*O+1]);D<w&&D>0&&(b=O,w=D)}for(var P=e[2*b],L=e[2*b+1],T=1/0,j=0;j<h;j++)if(j!==v&&j!==b){var $=a(k,S,P,L,e[2*j],e[2*j+1]);$<T&&(_=j,T=$)}var N=e[2*_],z=e[2*_+1];if(T===1/0){for(var R=0;R<h;R++)this._dists[R]=e[2*R]-e[0]||e[2*R+1]-e[1];s(this._ids,this._dists,0,h-1);for(var I=new Uint32Array(h),F=0,B=0,W=-1/0;B<h;B++){var V=this._ids[B];this._dists[V]>W&&(I[F++]=V,W=this._dists[V])}return this.hull=I.subarray(0,F),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(o(k,S,P,L,N,z)){var U=b,q=P,H=L;b=_,P=N,L=z,_=U,N=q,z=H}var G=function(t,n,e,r,i,o){var a=e-t,s=r-n,l=i-t,c=o-n,u=a*a+s*s,h=l*l+c*c,d=.5/(a*c-s*l);return{x:t+(c*u-s*h)*d,y:n+(a*h-l*u)*d}}(k,S,P,L,N,z);this._cx=G.x,this._cy=G.y;for(var K=0;K<h;K++)this._dists[K]=r(e[2*K],e[2*K+1],G.x,G.y);s(this._ids,this._dists,0,h-1),this._hullStart=v;var Y=3;l[v]=i[_]=b,l[b]=i[v]=_,l[_]=i[b]=v,c[v]=0,c[b]=1,c[_]=2,u.fill(-1),u[this._hashKey(k,S)]=v,u[this._hashKey(P,L)]=b,u[this._hashKey(N,z)]=_,this.trianglesLen=0,this._addTriangle(v,b,_,-1,-1,-1);for(var X=0,Z=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],tt=e[2*J],nt=e[2*J+1];if(!(X>0&&Math.abs(tt-Z)<=t&&Math.abs(nt-Q)<=t)&&(Z=tt,Q=nt,J!==v&&J!==b&&J!==_)){for(var et=0,rt=0,it=this._hashKey(tt,nt);rt<this._hashSize&&(-1===(et=u[(it+rt)%this._hashSize])||et===l[et]);rt++);for(var ot=et=i[et],at=void 0;at=l[ot],!o(tt,nt,e[2*ot],e[2*ot+1],e[2*at],e[2*at+1]);)if((ot=at)===et){ot=-1;break}if(-1!==ot){var st=this._addTriangle(ot,J,l[ot],-1,-1,c[ot]);c[J]=this._legalize(st+2),c[ot]=st,Y++;for(var lt=l[ot];at=l[lt],o(tt,nt,e[2*lt],e[2*lt+1],e[2*at],e[2*at+1]);)st=this._addTriangle(lt,J,at,c[J],-1,c[lt]),c[J]=this._legalize(st+2),l[lt]=lt,Y--,lt=at;if(ot===et)for(;o(tt,nt,e[2*(at=i[ot])],e[2*at+1],e[2*ot],e[2*ot+1]);)st=this._addTriangle(at,J,ot,-1,c[ot],c[at]),this._legalize(st+2),c[at]=st,l[ot]=ot,Y--,ot=at;this._hullStart=i[J]=ot,l[ot]=i[lt]=J,l[J]=lt,u[this._hashKey(tt,nt)]=J,u[this._hashKey(e[2*ot],e[2*ot+1])]=ot}}}this.hull=new Uint32Array(Y);for(var ct=0,ut=this._hullStart;ct<Y;ct++)this.hull[ct]=ut,ut=l[ut];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},e.prototype._hashKey=function(t,n){return Math.floor((e=t-this._cx,r=n-this._cy,i=e/(Math.abs(e)+Math.abs(r)),(r>0?3-i:1+i)/4*this._hashSize))%this._hashSize;var e,r,i},e.prototype._legalize=function(t){for(var e=this,r=e._triangles,i=e._halfedges,o=e.coords,a=0,s=0;;){var l=i[t],c=t-t%3;if(s=c+(t+2)%3,-1!==l){var u=l-l%3,h=c+(t+1)%3,d=u+(l+2)%3,f=r[s],p=r[t],m=r[h],y=r[d];if(b=o[2*f],_=o[2*f+1],M=o[2*p],C=o[2*p+1],w=o[2*m],A=o[2*m+1],E=o[2*y],k=o[2*y+1],S=void 0,O=void 0,D=void 0,P=void 0,L=void 0,T=void 0,j=void 0,$=void 0,(S=b-E)*((P=C-k)*($=(L=w-E)*L+(T=A-k)*T)-(j=(D=M-E)*D+P*P)*T)-(O=_-k)*(D*$-j*L)+(S*S+O*O)*(D*T-P*L)<0){r[t]=y,r[l]=f;var g=i[d];if(-1===g){var x=this._hullStart;do{if(this._hullTri[x]===d){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,g),this._link(l,i[s]),this._link(s,d);var v=u+(l+1)%3;a<n.length&&(n[a++]=v)}else{if(0===a)break;t=n[--a]}}else{if(0===a)break;t=n[--a]}}var b,_,M,C,w,A,E,k,S,O,D,P,L,T,j,$;return s},e.prototype._link=function(t,n){this._halfedges[t]=n,-1!==n&&(this._halfedges[n]=t)},e.prototype._addTriangle=function(t,n,e,r,i,o){var a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=n,this._triangles[a+2]=e,this._link(a,r),this._link(a+1,i),this._link(a+2,o),this.trianglesLen+=3,a},e}()},6898:function(t,n,e){"use strict";n.Z=void 0;var r,i=(r=e(3644))&&r.__esModule?r:{default:r};function o(t){return t[0]}function a(t){return t[1]}function s(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}var l=function(){function t(t){var n=new i.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=n.coords,this._init(n)}var n=t.prototype;return n._init=function(t){var n=t,e=this.points;if(n.hull&&n.hull.length>2&&function(t){for(var n=t.triangles,e=t.coords,r=0;r<n.length;r+=3){var i=2*n[r],o=2*n[r+1],a=2*n[r+2];if((e[a]-e[i])*(e[o+1]-e[i+1])-(e[o]-e[i])*(e[a+1]-e[i+1])>1e-10)return!1}return!0}(n)){this.collinear=Int32Array.from({length:e.length/2},(function(t,n){return n})).sort((function(t,n){return e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]}));for(var r=this.collinear[0],o=this.collinear[this.collinear.length-1],a=[e[2*r],e[2*r+1],e[2*o],e[2*o+1]],l=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),c=0,u=e.length/2;c<u;++c){var h=s(e[2*c],e[2*c+1],l);e[2*c]=h[0],e[2*c+1]=h[1]}t=new i.default(e)}for(var d=this.halfedges=t.halfedges,f=this.hull=t.hull,p=this.triangles=t.triangles,m=this.inedges.fill(-1),y=this._hullIndex.fill(-1),g=0,x=d.length;g<x;++g){var v=p[g%3==2?g-2:g+1];-1!==d[g]&&-1!==m[v]||(m[v]=g)}for(var b=0,_=f.length;b<_;++b)y[f[b]]=b;f.length<=2&&f.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=f[0],this.triangles[1]=f[1],this.triangles[2]=f[1],m[f[0]]=1,2===f.length&&(m[f[1]]=0))},n.neighbors=function(t){var n=[],e=this.inedges,r=this.hull,i=this._hullIndex,o=this.halfedges,a=this.triangles,s=e[t];if(-1===s)return n;var l=s,c=-1;do{if(c=a[l],n.push(c),a[l=l%3==2?l-2:l+1]!==t)break;if(-1===(l=o[l])){var u=r[(i[t]+1)%r.length];u!==c&&n.push(u);break}}while(l!==s);return n},n.find=function(t,n,e){if(void 0===e&&(e=0),(t=+t)!=t||(n=+n)!=n)return-1;for(var r,i=e;(r=this._step(e,t,n))>=0&&r!==e&&r!==i;)e=r;return r},n._step=function(t,n,e){var r=this.inedges,i=this.points;if(-1===r[t]||!i.length)return(t+1)%(i.length>>1);var o=t,a=Math.pow(n-i[2*t],2)+Math.pow(e-i[2*t+1],2),s=this.neighbors(t),l=Array.isArray(s),c=0;for(s=l?s:s[Symbol.iterator]();;){var u;if(l){if(c>=s.length)break;u=s[c++]}else{if((c=s.next()).done)break;u=c.value}var h=u,d=Math.pow(n-i[2*h],2)+Math.pow(e-i[2*h+1],2);d<a&&(a=d,o=h)}return o},t}();n.Z=l,l.from=function(t,n,e,r){return void 0===n&&(n=o),void 0===e&&(e=a),new l(function(t,n,e,r){for(var i=t.length,o=new Float64Array(2*i),a=0;a<i;++a){var s=t[a];o[2*a]=n.call(r,s,a,t),o[2*a+1]=e.call(r,s,a,t)}return o}(t,n,e,r))}},2516:function(t,n){function e(t,n){var e=[],r=[];return null==n&&(n=function(t,n){return e[0]===n?"[Circular ~]":"[Circular ~."+r.slice(0,e.indexOf(n)).join(".")+"]"}),function(i,o){if(e.length>0){var a=e.indexOf(this);~a?e.splice(a+1):e.push(this),~a?r.splice(a,1/0,i):r.push(i),~e.indexOf(o)&&(o=n.call(this,i,o))}else e.push(o);return null==t?o:t.call(this,i,o)}}(t.exports=function(t,n,r,i){return JSON.stringify(t,e(n,i),r)}).getSerialize=e},503:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),s=e(8541);function l(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},3273:function(t,n,e){var r=e(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,n,e){var r=e(1171),i=e(7838),o=e(4859),a=e(4073),s=e(8541);function l(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},2596:function(t,n,e){var r=e(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}},6649:function(t){t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];n(r,a,e(a),t)}return r}},5510:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},9955:function(t){t.exports=function(t,n,e){for(var r=-1,i=null==t?0:t.length;++r<i;)if(e(n,t[r]))return!0;return!1}},8644:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},9559:function(t){t.exports=function(t,n){for(var e=-1,r=n.length,i=t.length;++e<r;)t[i+e]=n[e];return t}},1634:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}},4132:function(t,n,e){var r=e(8347),i=e(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,e){var a=t[n];o.call(t,n)&&i(a,e)&&(void 0!==e||n in t)||r(t,n,e)}},3162:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=t.length;e--;)if(r(t[e][0],n))return e;return-1}},4508:function(t){t.exports=function(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];n(r,a,e(a),t)}return r}},8347:function(t,n,e){var r=e(5525);t.exports=function(t,n,e){"__proto__"==n&&r?r(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}},7451:function(t){t.exports=function(t,n,e){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,e)}),n)}},6457:function(t,n,e){var r=e(9559),i=e(3608);t.exports=function t(n,e,o,a,s){var l=-1,c=n.length;for(o||(o=i),s||(s=[]);++l<c;){var u=n[l];e>0&&o(u)?e>1?t(u,e-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},320:function(t,n,e){var r=e(4710)();t.exports=r},2446:function(t,n,e){var r=e(320),i=e(7747);t.exports=function(t,n){return t&&r(t,n,i)}},4432:function(t,n,e){var r=e(9026),i=e(3110);t.exports=function(t,n){for(var e=0,o=(n=r(n,t)).length;null!=t&&e<o;)t=t[i(n[e++])];return e&&e==o?t:void 0}},563:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6776:function(t){t.exports=function(t,n){return null!=t&&n in Object(t)}},6123:function(t){t.exports=function(t,n,e){for(var r=e-1,i=t.length;++r<i;)if(t[r]===n)return r;return-1}},7537:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object Date]"==r(t)}},9070:function(t,n,e){var r=e(7028),i=e(3474);t.exports=function t(n,e,o,a,s){return n===e||(null==n||null==e||!i(n)&&!i(e)?n!=n&&e!=e:r(n,e,o,a,t,s))}},7028:function(t,n,e){var r=e(8708),i=e(8705),o=e(2813),a=e(6682),s=e(9667),l=e(163),c=e(4801),u=e(4289),h="[object Arguments]",d="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,m,y,g){var x=l(t),v=l(n),b=x?d:s(t),_=v?d:s(n),M=(b=b==h?f:b)==f,C=(_=_==h?f:_)==f,w=b==_;if(w&&c(t)){if(!c(n))return!1;x=!0,M=!1}if(w&&!M)return g||(g=new r),x||u(t)?i(t,n,e,m,y,g):o(t,n,b,e,m,y,g);if(!(1&e)){var A=M&&p.call(t,"__wrapped__"),E=C&&p.call(n,"__wrapped__");if(A||E){var k=A?t.value():t,S=E?n.value():n;return g||(g=new r),y(k,S,e,m,g)}}return!!w&&(g||(g=new r),a(t,n,e,m,y,g))}},9548:function(t,n,e){var r=e(8708),i=e(9070);t.exports=function(t,n,e,o){var a=e.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=e[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=e[a])[0],h=t[u],d=c[1];if(l&&c[2]){if(void 0===h&&!(u in t))return!1}else{var f=new r;if(o)var p=o(h,d,u,t,n,f);if(!(void 0===p?i(d,h,3,o,f):p))return!1}}return!0}},2229:function(t,n,e){var r=e(563),i=e(3474);t.exports=function(t){return i(t)&&"[object RegExp]"==r(t)}},3472:function(t,n,e){var r=e(758),i=e(5223),o=e(5346),a=e(163),s=e(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,n){for(var e=-1,r=null==t?0:t.length,i=Array(r);++e<r;)i[e]=n(t[e],e,t);return i}},758:function(t,n,e){var r=e(9548),i=e(597),o=e(6878);t.exports=function(t){var n=i(t);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(e){return e===t||r(e,t,n)}}},5223:function(t,n,e){var r=e(9070),i=e(9201),o=e(5066),a=e(726),s=e(5385),l=e(6878),c=e(3110);t.exports=function(t,n){return a(t)&&s(n)?l(c(t),n):function(e){var a=i(e,t);return void 0===a&&a===n?o(e,t):r(n,a,3)}}},8245:function(t,n,e){var r=e(8644),i=e(4432),o=e(3472),a=e(383),s=e(9521),l=e(9110),c=e(9409),u=e(5346),h=e(163);t.exports=function(t,n,e){n=n.length?r(n,(function(t){return h(t)?function(n){return i(n,1===t.length?t[0]:t)}:t})):[u];var d=-1;n=r(n,l(o));var f=a(t,(function(t,e,i){return{criteria:r(n,(function(n){return n(t)})),index:++d,value:t}}));return s(f,(function(t,n){return c(t,n,e)}))}},5436:function(t,n,e){var r=e(6371),i=e(5066);t.exports=function(t,n){return r(t,n,(function(n,e){return i(t,e)}))}},6371:function(t,n,e){var r=e(4432),i=e(6539),o=e(9026);t.exports=function(t,n,e){for(var a=-1,s=n.length,l={};++a<s;){var c=n[a],u=r(t,c);e(u,c)&&i(l,o(c,t),u)}return l}},1600:function(t){t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},3301:function(t,n,e){var r=e(4432);t.exports=function(t){return function(n){return r(n,t)}}},7805:function(t){var n=Math.ceil,e=Math.max;t.exports=function(t,r,i,o){for(var a=-1,s=e(n((r-t)/(i||1)),0),l=Array(s);s--;)l[o?s:++a]=t,t+=i;return l}},6317:function(t,n,e){var r=e(5346),i=e(4280),o=e(201);t.exports=function(t,n){return o(i(t,n,r),t+"")}},6539:function(t,n,e){var r=e(4132),i=e(9026),o=e(9099),a=e(7709),s=e(3110);t.exports=function(t,n,e,l){if(!a(t))return t;for(var c=-1,u=(n=i(n,t)).length,h=u-1,d=t;null!=d&&++c<u;){var f=s(n[c]),p=e;if("__proto__"===f||"constructor"===f||"prototype"===f)return t;if(c!=h){var m=d[f];void 0===(p=l?l(m,f,d):void 0)&&(p=a(m)?m:o(n[c+1])?[]:{})}r(d,f,p),d=d[f]}return t}},9521:function(t){t.exports=function(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}},7556:function(t,n,e){var r=e(788);t.exports=function(t,n){for(var e=-1,i=t.length,o=0,a=[];++e<i;){var s=t[e],l=n?n(s):s;if(!e||!r(l,c)){var c=l;a[o++]=0===s?0:s}}return a}},4738:function(t,n,e){var r=e(8644);t.exports=function(t,n){return r(n,(function(n){return[n,t[n]]}))}},6316:function(t,n,e){var r=e(2596),i=e(8644),o=e(163),a=e(1995),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(o(n))return i(n,t)+"";if(a(n))return l?l.call(n):"";var e=n+"";return"0"==e&&1/n==-1/0?"-0":e}},1367:function(t,n,e){var r=e(4120),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},9110:function(t){t.exports=function(t){return function(n){return t(n)}}},946:function(t,n,e){var r=e(3273),i=e(5510),o=e(9955),a=e(9914),s=e(6602),l=e(6226);t.exports=function(t,n,e){var c=-1,u=i,h=t.length,d=!0,f=[],p=f;if(e)d=!1,u=o;else if(h>=200){var m=n?null:s(t);if(m)return l(m);d=!1,u=a,p=new r}else p=n?[]:f;t:for(;++c<h;){var y=t[c],g=n?n(y):y;if(y=e||0!==y?y:0,d&&g==g){for(var x=p.length;x--;)if(p[x]===g)continue t;n&&p.push(g),f.push(y)}else u(p,g,e)||(p!==f&&p.push(g),f.push(y))}return f}},9914:function(t,n,e){var r=e(6123);t.exports=function(t,n){return!(null==t||!t.length)&&r(t,n,0)>-1}},674:function(t){t.exports=function(t){return t}},9026:function(t,n,e){var r=e(163),i=e(726),o=e(7801),a=e(7010);t.exports=function(t,n){return r(t)?t:i(t,n)?[t]:o(a(t))}},522:function(t,n,e){var r=e(1995);t.exports=function(t,n){if(t!==n){var e=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==n,l=null===n,c=n==n,u=r(n);if(!l&&!u&&!a&&t>n||a&&s&&c&&!l&&!u||i&&s&&c||!e&&c||!o)return 1;if(!i&&!a&&!u&&t<n||u&&e&&o&&!i&&!a||l&&e&&o||!s&&o||!c)return-1}return 0}},9409:function(t,n,e){var r=e(522);t.exports=function(t,n,e){for(var i=-1,o=t.criteria,a=n.criteria,s=o.length,l=e.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==e[i]?-1:1)}return t.index-n.index}},9021:function(t,n,e){var r=e(4132),i=e(8347);t.exports=function(t,n,e,o){var a=!e;e||(e={});for(var s=-1,l=n.length;++s<l;){var c=n[s],u=o?o(e[c],t[c],c,e,t):void 0;void 0===u&&(u=t[c]),a?i(e,c,u):r(e,c,u)}return e}},5659:function(t,n,e){var r=e(6649),i=e(4508),o=e(3472),a=e(163);t.exports=function(t,n){return function(e,s){var l=a(e)?r:i,c=n?n():{};return l(e,t,o(s,2),c)}}},6092:function(t,n,e){var r=e(6317),i=e(8286);t.exports=function(t){return r((function(n,e){var r=-1,o=e.length,a=o>1?e[o-1]:void 0,s=o>2?e[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(e[0],e[1],s)&&(a=o<3?void 0:a,o=1),n=Object(n);++r<o;){var l=e[r];l&&t(n,l,r,a)}return n}))}},4710:function(t){t.exports=function(t){return function(n,e,r){for(var i=-1,o=Object(n),a=r(n),s=a.length;s--;){var l=a[t?s:++i];if(!1===e(o[l],l,o))break}return n}}},2507:function(t,n,e){var r=e(7805),i=e(8286),o=e(9139);t.exports=function(t){return function(n,e,a){return a&&"number"!=typeof a&&i(n,e,a)&&(e=a=void 0),n=o(n),void 0===e?(e=n,n=0):e=o(e),a=void 0===a?n<e?1:-1:o(a),r(n,e,a,t)}}},6602:function(t){t.exports=function(){}},5976:function(t,n,e){var r=e(4738),i=e(9667),o=e(2900),a=e(3757);t.exports=function(t){return function(n){var e=i(n);return"[object Map]"==e?o(n):"[object Set]"==e?a(n):r(n,t(n))}}},5525:function(t,n,e){var r=e(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,n,e){var r=e(3273),i=e(1634),o=e(9914);t.exports=function(t,n,e,a,s,l){var c=1&e,u=t.length,h=n.length;if(u!=h&&!(c&&h>u))return!1;var d=l.get(t),f=l.get(n);if(d&&f)return d==n&&f==t;var p=-1,m=!0,y=2&e?new r:void 0;for(l.set(t,n),l.set(n,t);++p<u;){var g=t[p],x=n[p];if(a)var v=c?a(x,g,p,n,t,l):a(g,x,p,t,n,l);if(void 0!==v){if(v)continue;m=!1;break}if(y){if(!i(n,(function(t,n){if(!o(y,n)&&(g===t||s(g,t,e,a,l)))return y.push(n)}))){m=!1;break}}else if(g!==x&&!s(g,x,e,a,l)){m=!1;break}}return l.delete(t),l.delete(n),m}},2813:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},6682:function(t,n,e){var r=e(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,n,e,o,a,s){var l=1&e,c=r(t),u=c.length;if(u!=r(n).length&&!l)return!1;for(var h=u;h--;){var d=c[h];if(!(l?d in n:i.call(n,d)))return!1}var f=s.get(t),p=s.get(n);if(f&&p)return f==n&&p==t;var m=!0;s.set(t,n),s.set(n,t);for(var y=l;++h<u;){var g=t[d=c[h]],x=n[d];if(o)var v=l?o(x,g,d,n,t,s):o(g,x,d,t,n,s);if(!(void 0===v?g===x||a(g,x,e,o,s):v)){m=!1;break}y||(y="constructor"==d)}if(m&&!y){var b=t.constructor,_=n.constructor;b==_||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof _&&_ instanceof _||(m=!1)}return s.delete(t),s.delete(n),m}},5557:function(t,n,e){var r=e(2645),i=e(4280),o=e(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,n,e){var r="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g;t.exports=r},8143:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},7271:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},597:function(t,n,e){var r=e(5385),i=e(7747);t.exports=function(t){for(var n=i(t),e=n.length;e--;){var o=n[e],a=t[o];n[e]=[o,a,r(a)]}return n}},3743:function(t){t.exports=function(t,n){return null==t?void 0:t[n]}},9817:function(t,n,e){var r=e(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},3096:function(t,n,e){var r=e(9026),i=e(5075),o=e(163),a=e(9099),s=e(8454),l=e(3110);t.exports=function(t,n,e){for(var c=-1,u=(n=r(n,t)).length,h=!1;++c<u;){var d=l(n[c]);if(!(h=null!=t&&e(t,d)))break;t=t[d]}return h||++c!=u?h:!!(u=null==t?0:t.length)&&s(u)&&a(d,u)&&(o(t)||i(t))}},3608:function(t,n,e){var r=e(2596),i=e(5075),o=e(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var r=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==r||"symbol"!=r&&n.test(t))&&t>-1&&t%1==0&&t<e}},8286:function(t){t.exports=function(){return!1}},726:function(t,n,e){var r=e(163),i=e(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,n){if(r(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=n&&t in Object(n)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,n,e){var r=e(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,n,e){var r=e(3162),i=Array.prototype.splice;t.exports=function(t){var n=this.__data__,e=r(n,t);return!(e<0||(e==n.length-1?n.pop():i.call(n,e,1),--this.size,0))}},4859:function(t,n,e){var r=e(3162);t.exports=function(t){var n=this.__data__,e=r(n,t);return e<0?void 0:n[e][1]}},4073:function(t,n,e){var r=e(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,n,e){var r=e(3162);t.exports=function(t,n){var e=this.__data__,i=r(e,t);return i<0?(++this.size,e.push([t,n])):e[i][1]=n,this}},2900:function(t){t.exports=function(){return[]}},6878:function(t){t.exports=function(t,n){return function(e){return null!=e&&e[t]===n&&(void 0!==n||t in Object(e))}}},2453:function(t){t.exports=function(t){return t}},2348:function(t,n,e){t=e.nmd(t);var r=e(2117),i=n&&!n.nodeType&&n,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},5125:function(t){t.exports=function(t,n){return function(e){return t(n(e))}}},4280:function(t,n,e){var r=e(6082),i=Math.max;t.exports=function(t,n,e){return n=i(void 0===n?t.length-1:n,0),function(){for(var o=arguments,a=-1,s=i(o.length-n,0),l=Array(s);++a<s;)l[a]=o[n+a];a=-1;for(var c=Array(n+1);++a<n;)c[a]=o[a];return c[n]=e(l),r(t,this,c)}}},2373:function(t,n,e){var r=e(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},6226:function(t){t.exports=function(){return[]}},3757:function(t){t.exports=function(){return[]}},201:function(t){t.exports=function(t){return t}},7801:function(t,n,e){var r=e(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(i,(function(t,e,r,i){n.push(r?i.replace(o,"$1"):e||t)})),n}));t.exports=a},3110:function(t,n,e){var r=e(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},4120:function(t){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},156:function(t,n,e){var r=e(4132),i=e(9021),o=e(6092),a=e(981),s=e(5782),l=e(7747),c=Object.prototype.hasOwnProperty,u=o((function(t,n){if(s(n)||a(n))i(n,l(n),t);else for(var e in n)c.call(n,e)&&r(t,e,n[e])}));t.exports=u},5034:function(t,n,e){var r=e(7709),i=e(6987),o=e(5812),a=Math.max,s=Math.min;t.exports=function(t,n,e){var l,c,u,h,d,f,p=0,m=!1,y=!1,g=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function x(n){var e=l,r=c;return l=c=void 0,p=n,h=t.apply(r,e)}function v(t){return p=t,d=setTimeout(_,n),m?x(t):h}function b(t){var e=t-f;return void 0===f||e>=n||e<0||y&&t-p>=u}function _(){var t=i();if(b(t))return M(t);d=setTimeout(_,function(t){var e=n-(t-f);return y?s(e,u-(t-p)):e}(t))}function M(t){return d=void 0,g&&l?x(t):(l=c=void 0,h)}function C(){var t=i(),e=b(t);if(l=arguments,c=this,f=t,e){if(void 0===d)return v(f);if(y)return clearTimeout(d),d=setTimeout(_,n),x(f)}return void 0===d&&(d=setTimeout(_,n)),h}return n=o(n)||0,r(e)&&(m=!!e.leading,u=(y="maxWait"in e)?a(o(e.maxWait)||0,n):u,g="trailing"in e?!!e.trailing:g),C.cancel=function(){void 0!==d&&clearTimeout(d),p=0,l=f=c=d=void 0},C.flush=function(){return void 0===d?h:M(i())},C}},1893:function(t,n,e){var r=e(6317),i=e(788),o=e(8286),a=e(8855),s=Object.prototype,l=s.hasOwnProperty,c=r((function(t,n){t=Object(t);var e=-1,r=n.length,c=r>2?n[2]:void 0;for(c&&o(n[0],n[1],c)&&(r=1);++e<r;)for(var u=n[e],h=a(u),d=-1,f=h.length;++d<f;){var p=h[d],m=t[p];(void 0===m||i(m,s[p])&&!l.call(t,p))&&(t[p]=u[p])}return t}));t.exports=c},9324:function(t,n,e){var r=e(7451),i=e(6317),o=e(5812),a=i((function(t,n,e){return r(t,o(n)||0,e)}));t.exports=a},788:function(t){t.exports=function(t,n){return t===n||t!=t&&n!=n}},2645:function(t,n,e){var r=e(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},3105:function(t,n,e){var r=e(2446),i=e(674);t.exports=function(t,n){return t&&r(t,i(n))}},7314:function(t){t.exports=function(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var i=t[n];r[i[0]]=i[1]}return r}},9201:function(t,n,e){var r=e(4432);t.exports=function(t,n,e){var i=null==t?void 0:r(t,n);return void 0===i?e:i}},9056:function(t,n,e){var r=e(8347),i=e(5659),o=Object.prototype.hasOwnProperty,a=i((function(t,n,e){o.call(t,e)?t[e].push(n):r(t,e,[n])}));t.exports=a},5066:function(t,n,e){var r=e(6776),i=e(3096);t.exports=function(t,n){return null!=t&&i(t,n,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var n=Array.isArray;t.exports=n},981:function(t,n,e){var r=e(9642),i=e(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4295:function(t,n,e){var r=e(7537),i=e(9110),o=e(2348),a=o&&o.isDate,s=a?i(a):r;t.exports=s},4155:function(t,n,e){var r=e(7190),i=e(9667),o=e(5075),a=e(163),s=e(981),l=e(4801),c=e(5782),u=e(4289),h=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var n=i(t);if("[object Map]"==n||"[object Set]"==n)return!t.size;if(c(t))return!r(t).length;for(var e in t)if(h.call(t,e))return!1;return!0}},8254:function(t,n,e){var r=e(9070);t.exports=function(t,n){return r(t,n)}},9642:function(t,n,e){var r=e(563),i=e(7709);t.exports=function(t){if(!i(t))return!1;var n=r(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,n,e){var r=e(563),i=e(9817),o=e(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var n=i(t);if(null===n)return!0;var e=c.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&l.call(e)==u}},5395:function(t,n,e){var r=e(2229),i=e(9110),o=e(2348),a=o&&o.isRegExp,s=a?i(a):r;t.exports=s},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},8999:function(t){t.exports=function(t){return void 0===t}},7747:function(t,n,e){var r=e(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var n=[];if(null!=t)for(var e in Object(t))n.push(e);return n}},1594:function(t,n,e){var r=e(503);function i(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(i.Cache||r),e}i.Cache=r,t.exports=i},6051:function(t){t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}},6987:function(t,n,e){var r=e(2373);t.exports=function(){return r.Date.now()}},1616:function(t,n,e){var r=e(3472),i=e(6051),o=e(4912);t.exports=function(t,n){return o(t,i(r(n)))}},4143:function(t,n,e){var r=e(8245),i=e(163);t.exports=function(t,n,e,o){return null==t?[]:(i(n)||(n=null==n?[]:[n]),i(e=o?void 0:e)||(e=null==e?[]:[e]),r(t,n,e))}},9082:function(t,n,e){var r=e(5436),i=e(5557)((function(t,n){return null==t?{}:r(t,n)}));t.exports=i},4912:function(t,n,e){var r=e(8644),i=e(3472),o=e(6371),a=e(7271);t.exports=function(t,n){if(null==t)return{};var e=r(a(t),(function(t){return[t]}));return n=i(n),o(t,e,(function(t,e){return n(t,e[0])}))}},8532:function(t,n,e){var r=e(1600),i=e(3301),o=e(726),a=e(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},8825:function(t,n,e){var r=e(2507)();t.exports=r},2829:function(t,n,e){var r=e(7556);t.exports=function(t){return t&&t.length?r(t):[]}},8163:function(t,n,e){var r=e(5034),i=e(7709);t.exports=function(t,n,e){var o=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return i(e)&&(o="leading"in e?!!e.leading:o,a="trailing"in e?!!e.trailing:a),r(t,n,{leading:o,maxWait:n,trailing:a})}},9139:function(t,n,e){var r=e(5812);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},5812:function(t,n,e){var r=e(1367),i=e(7709),o=e(1995),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(i(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=i(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var e=s.test(t);return e||l.test(t)?c(t.slice(2),e?2:8):a.test(t)?NaN:+t}},4542:function(t,n,e){var r=e(5976)(e(7747));t.exports=r},7010:function(t,n,e){var r=e(6316);t.exports=function(t){return null==t?"":r(t)}},9602:function(t,n,e){var r=e(946);t.exports=function(t){return t&&t.length?r(t):[]}},8961:function(t,n,e){var r=e(3472),i=e(946);t.exports=function(t,n){return t&&t.length?i(t,r(n,2)):[]}},660:function(t,n,e){var r=e(7010),i=0;t.exports=function(t){var n=++i;return r(t)+n}},7491:function(t){var n="undefined"!=typeof Element,e="function"==typeof Map,r="function"==typeof Set,i="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function o(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(l=s;0!=l--;)if(!o(t[l],a[l]))return!1;return!0}if(e&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(u=t.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=t.entries();!(l=u.next()).done;)if(!o(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(u=t.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(l=s;0!=l--;)if(t[l]!==a[l])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if((s=(c=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(l=s;0!=l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(n&&t instanceof Element)return!1;for(l=s;0!=l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!t.$$typeof)&&!o(t[c[l]],a[c[l]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,n){try{return o(t,n)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:function(n){"use strict";n.exports=t}},e={};function r(t){var i=e[t];if(void 0!==i)return i.exports;var o=e[t]={id:t,loaded:!1,exports:{}};return n[t].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var i={};return function(){"use strict";r.r(i),r.d(i,{Arc:function(){return Ky},Area:function(){return Yc},Axis:function(){return b},Background:function(){return xy},Bar:function(){return Up},Border:function(){return Xp},Box:function(){return Xp},BrushHelpers:function(){return Cm},Candle:function(){return Wm},CanvasBar:function(){return iy},CanvasCurve:function(){return ay},CanvasGroup:function(){return oy},CanvasPoint:function(){return yy},Circle:function(){return hu},ClipPath:function(){return cu},Collection:function(){return n},CursorHelpers:function(){return Zg},Curve:function(){return av},Data:function(){return s},DefaultTransitions:function(){return y},Domain:function(){return l},ErrorBar:function(){return lx},Events:function(){return v},Flyout:function(){return Fg},Helpers:function(){return t},Hooks:function(){return w},Immutable:function(){return a},LabelHelpers:function(){return c},Line:function(){return Wf},LineHelpers:function(){return h},LineSegment:function(){return Uf},Log:function(){return f},Path:function(){return Ic},Point:function(){return Mg},PointPathHelpers:function(){return M},Portal:function(){return Jc},PortalContext:function(){return nu},PortalOutlet:function(){return iu},PortalProvider:function(){return ru},RawZoomHelpers:function(){return Og},Rect:function(){return fu},Scale:function(){return o},Selection:function(){return _},SelectionHelpers:function(){return jg},Slice:function(){return xv},Style:function(){return p},TSpan:function(){return vu},Text:function(){return xu},TextSize:function(){return m},Timer:function(){return of},TimerContext:function(){return sf},Transitions:function(){return x},UserProps:function(){return d},VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS:function(){return wm},VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS:function(){return Qg},VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS:function(){return $g},VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS:function(){return Gg},VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS:function(){return Pg},VictoryAccessibleGroup:function(){return vg},VictoryAnimation:function(){return cf},VictoryArea:function(){return Ff},VictoryAxis:function(){return Ep},VictoryBar:function(){return Kp},VictoryBoxPlot:function(){return dm},VictoryBrushContainer:function(){return Em},VictoryBrushLine:function(){return Fm},VictoryCandlestick:function(){return ny},VictoryChart:function(){return xg},VictoryClipContainer:function(){return pu},VictoryContainer:function(){return lu},VictoryCursorContainer:function(){return tx},VictoryErrorBar:function(){return xx},VictoryGroup:function(){return Sx},VictoryHistogram:function(){return Bx},VictoryLabel:function(){return Zh},VictoryLegend:function(){return iv},VictoryLine:function(){return cv},VictoryPie:function(){return Mv},VictoryPolarAxis:function(){return cg},VictoryPortal:function(){return gu},VictoryScatter:function(){return kv},VictorySelectionContainer:function(){return zg},VictorySharedEvents:function(){return qy},VictoryStack:function(){return zv},VictoryTheme:function(){return Mh},VictoryTooltip:function(){return Wg},VictoryTransition:function(){return vf},VictoryVoronoi:function(){return Sb},VictoryVoronoiContainer:function(){return Xg},VictoryZoomContainer:function(){return Tg},Voronoi:function(){return Iv},VoronoiHelpers:function(){return Hg},Whisker:function(){return Qp},Wrapper:function(){return C},ZoomHelpers:function(){return Dg},addEvents:function(){return zf},createContainer:function(){return ix},getBarPath:function(){return Bp},getBarPosition:function(){return kp},getBarWidth:function(){return Sp},getCornerRadius:function(){return Op},getCustomBarPath:function(){return Np},getHorizontalBarPath:function(){return Ip},getPolarBarPath:function(){return Wp},getStyle:function(){return Dp},getVerticalBarPath:function(){return Rp},getVerticalPolarBarPath:function(){return Fp},makeCreateContainerFunction:function(){return rx},mergeRefs:function(){return tu},useCanvasContext:function(){return ry},usePortalContext:function(){return eu},useVictoryBrushContainer:function(){return Am},useVictoryContainer:function(){return su},useVictoryCursorContainer:function(){return Jg},useVictorySelectionContainer:function(){return Ng},useVictoryVoronoiContainer:function(){return Yg},useVictoryZoomContainer:function(){return Lg}});var t={};r.r(t),r.d(t,{createAccessor:function(){return ut},degreesToRadians:function(){return rt},evaluateProp:function(){return nt},evaluateStyle:function(){return et},getCurrentAxis:function(){return dt},getDefaultStyles:function(){return J},getPadding:function(){return Z},getPoint:function(){return Y},getPolarOrigin:function(){return at},getRadius:function(){return ot},getRange:function(){return st},getStyles:function(){return tt},invert:function(){return G},isFunction:function(){return ct},isHorizontal:function(){return yt},isNil:function(){return lt},isTooltip:function(){return Q},mapValues:function(){return ft},modifyProps:function(){return ht},omit:function(){return K},radiansToDegrees:function(){return it},range:function(){return pt},reduceChildren:function(){return mt},scalePoint:function(){return X}});var n={};r.r(n),r.d(n,{containsDates:function(){return vt},containsNumbers:function(){return bt},containsOnlyStrings:function(){return _t},containsStrings:function(){return xt},difference:function(){return Mt},getMaxValue:function(){return At},getMinValue:function(){return Et},isArrayOfArrays:function(){return Ct},removeUndefined:function(){return wt}});var e={};r.r(e),r.d(e,{scaleBand:function(){return $t},scaleDiverging:function(){return Io},scaleDivergingLog:function(){return Fo},scaleDivergingPow:function(){return Wo},scaleDivergingSqrt:function(){return Vo},scaleDivergingSymlog:function(){return Bo},scaleIdentity:function(){return _e},scaleImplicit:function(){return Tt},scaleLinear:function(){return be},scaleLog:function(){return De},scaleOrdinal:function(){return jt},scalePoint:function(){return zt},scalePow:function(){return Ie},scaleQuantile:function(){return Ze},scaleQuantize:function(){return Qe},scaleRadial:function(){return Ve},scaleSequential:function(){return Po},scaleSequentialLog:function(){return Lo},scaleSequentialPow:function(){return jo},scaleSequentialQuantile:function(){return No},scaleSequentialSqrt:function(){return $o},scaleSequentialSymlog:function(){return To},scaleSqrt:function(){return Fe},scaleSymlog:function(){return je},scaleThreshold:function(){return Je},scaleTime:function(){return ko},scaleUtc:function(){return So},tickFormat:function(){return xe}});var o={};r.r(o),r.d(o,{getBaseScale:function(){return Yo},getDefaultScale:function(){return Xo},getScaleFromName:function(){return Ko},getScaleFromProps:function(){return Zo},getScaleType:function(){return Qo},getType:function(){return ta},validScale:function(){return qo}});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:function(){return na},IMMUTABLE_LIST:function(){return ra},IMMUTABLE_MAP:function(){return ia},IMMUTABLE_RECORD:function(){return ea},isImmutable:function(){return sa},isIterable:function(){return oa},isList:function(){return la},isMap:function(){return ca},isRecord:function(){return aa},shallowToJS:function(){return ua}});var s={};r.r(s),r.d(s,{createStringMap:function(){return ya},downsample:function(){return ga},formatData:function(){return xa},formatDataFromDomain:function(){return ma},generateData:function(){return va},getCategories:function(){return ba},getData:function(){return _a},getStringsFromAxes:function(){return Ma},getStringsFromCategories:function(){return Ca},getStringsFromData:function(){return wa},isDataComponent:function(){return Aa}});var l={};r.r(l),r.d(l,{createDomainFunction:function(){return Pa},formatDomain:function(){return La},getDomain:function(){return Ta},getDomainFromCategories:function(){return ja},getDomainFromData:function(){return $a},getDomainFromMinMax:function(){return Na},getDomainFromProps:function(){return za},getDomainWithZero:function(){return Ra},getMaxFromProps:function(){return Ia},getMinFromProps:function(){return Fa},getSymmetricDomain:function(){return Ba},isDomainComponent:function(){return Wa}});var c={};r.r(c),r.d(c,{getDegrees:function(){return Ka},getPolarAngle:function(){return Ga},getPolarTextAnchor:function(){return qa},getPolarVerticalAnchor:function(){return Ha},getProps:function(){return Ya},getText:function(){return Ua}});var u={};r.r(u),r.d(u,{arc:function(){return Rs},area:function(){return hs},areaRadial:function(){return gs},curveBasis:function(){return Pl},curveBasisClosed:function(){return Tl},curveBasisOpen:function(){return $l},curveBumpX:function(){return qs},curveBumpY:function(){return Hs},curveBundle:function(){return zl},curveCardinal:function(){return Fl},curveCardinalClosed:function(){return Wl},curveCardinalOpen:function(){return Ul},curveCatmullRom:function(){return Gl},curveCatmullRomClosed:function(){return Yl},curveCatmullRomOpen:function(){return Zl},curveLinear:function(){return ss},curveLinearClosed:function(){return Jl},curveMonotoneX:function(){return sc},curveMonotoneY:function(){return lc},curveNatural:function(){return hc},curveStep:function(){return fc},curveStepAfter:function(){return mc},curveStepBefore:function(){return pc},line:function(){return us},lineRadial:function(){return ys},link:function(){return Xs},linkHorizontal:function(){return Zs},linkRadial:function(){return Js},linkVertical:function(){return Qs},pie:function(){return Bs},pointRadial:function(){return Ws},radialArea:function(){return gs},radialLine:function(){return ys},stack:function(){return bc},stackOffsetDiverging:function(){return Mc},stackOffsetExpand:function(){return _c},stackOffsetNone:function(){return yc},stackOffsetSilhouette:function(){return Cc},stackOffsetWiggle:function(){return wc},stackOrderAppearance:function(){return Ac},stackOrderAscending:function(){return kc},stackOrderDescending:function(){return Oc},stackOrderInsideOut:function(){return Dc},stackOrderNone:function(){return gc},stackOrderReverse:function(){return Pc},symbol:function(){return kl},symbolAsterisk:function(){return nl},symbolCircle:function(){return el},symbolCross:function(){return rl},symbolDiamond:function(){return al},symbolDiamond2:function(){return sl},symbolPlus:function(){return ll},symbolSquare:function(){return cl},symbolSquare2:function(){return ul},symbolStar:function(){return pl},symbolTriangle:function(){return yl},symbolTriangle2:function(){return xl},symbolWye:function(){return Cl},symbolX:function(){return wl},symbols:function(){return Al},symbolsFill:function(){return Al},symbolsStroke:function(){return El}});var h={};r.r(h),r.d(h,{getInterpolationFunction:function(){return Nc},getLineFunction:function(){return zc}});var d={};r.r(d),r.d(d,{assert:function(){return Bc},getSafeUserProps:function(){return Wc},withSafeUserProps:function(){return Vc}});var f={};r.r(f),r.d(f,{warn:function(){return mu}});var p={};r.r(p),r.d(p,{getColorScale:function(){return wh},toTransformString:function(){return Ch}});var m={};r.r(m),r.d(m,{_approximateTextSizeInternal:function(){return Ih},approximateTextSize:function(){return Fh},convertLengthToPixels:function(){return Th}});var y={};r.r(y),r.d(y,{continuousPolarTransitions:function(){return Jh},continuousTransitions:function(){return Qh},discreteTransitions:function(){return td}});var g={};r.r(g),r.d(g,{easeBack:function(){return Ld},easeBackIn:function(){return Dd},easeBackInOut:function(){return Ld},easeBackOut:function(){return Pd},easeBounce:function(){return kd},easeBounceIn:function(){return Ed},easeBounceInOut:function(){return Sd},easeBounceOut:function(){return kd},easeCircle:function(){return wd},easeCircleIn:function(){return Md},easeCircleInOut:function(){return wd},easeCircleOut:function(){return Cd},easeCubic:function(){return cd},easeCubicIn:function(){return sd},easeCubicInOut:function(){return cd},easeCubicOut:function(){return ld},easeElastic:function(){return $d},easeElasticIn:function(){return jd},easeElasticInOut:function(){return Nd},easeElasticOut:function(){return $d},easeExp:function(){return _d},easeExpIn:function(){return vd},easeExpInOut:function(){return _d},easeExpOut:function(){return bd},easeLinear:function(){return rd},easePoly:function(){return dd},easePolyIn:function(){return ud},easePolyInOut:function(){return dd},easePolyOut:function(){return hd},easeQuad:function(){return ad},easeQuadIn:function(){return id},easeQuadInOut:function(){return ad},easeQuadOut:function(){return od},easeSin:function(){return gd},easeSinIn:function(){return md},easeSinInOut:function(){return gd},easeSinOut:function(){return yd}});var x={};r.r(x),r.d(x,{getInitialTransitionState:function(){return yf},getTransitionPropsFactory:function(){return gf}});var v={};r.r(v),r.d(v,{emulateReactEvent:function(){return jf},getComponentEvents:function(){return Df},getEventState:function(){return Ef},getEvents:function(){return Cf},getExternalMutation:function(){return Of},getExternalMutations:function(){return Sf},getExternalMutationsWithChildren:function(){return kf},getGlobalEventNameFromKey:function(){return Pf},getGlobalEvents:function(){return Lf},getPartialEvents:function(){return Af},getScopedEvents:function(){return wf},omitGlobalEvents:function(){return Tf}});var b={};r.r(b),r.d(b,{findAxisComponents:function(){return Yf},getAxis:function(){return Kf},getAxisComponent:function(){return Xf},getAxisComponentsWithParent:function(){return Zf},getAxisValue:function(){return lp},getDomain:function(){return sp},getOrigin:function(){return Qf},getOriginSign:function(){return Jf},getTickFormat:function(){return rp},getTicks:function(){return op},isVertical:function(){return tp},modifyProps:function(){return cp},stringTicks:function(){return np}});var _={};r.r(_),r.d(_,{getBounds:function(){return vm},getDataCoordinates:function(){return xm},getDomainCoordinates:function(){return gm},getParentSVG:function(){return mm},getSVGEventCoordinates:function(){return ym}});var M={};r.r(M),r.d(M,{circle:function(){return sy},cross:function(){return fy},diamond:function(){return cy},minus:function(){return py},plus:function(){return dy},square:function(){return ly},star:function(){return my},triangleDown:function(){return uy},triangleUp:function(){return hy}});var C={};r.r(C),r.d(C,{addBinsToParentPropsIfHistogram:function(){return Cy},getAllEvents:function(){return Py},getCategories:function(){return Iy},getCategoryAndAxisStringsFromChildren:function(){return zy},getChildStyle:function(){return jy},getColor:function(){return Ly},getData:function(){return Ay},getDataFromChildren:function(){return wy},getDefaultDomainPadding:function(){return ky},getDomain:function(){return Oy},getDomainFromChildren:function(){return Sy},getScale:function(){return Dy},getStringsFromChildren:function(){return Ry},getStringsFromChildrenCategories:function(){return $y},getStringsFromData:function(){return Ny},getStyle:function(){return Ty},getWidth:function(){return Ey}});var w={};r.r(w),r.d(w,{useAnimationState:function(){return by},usePreviousProps:function(){return Fy}});var A=r(9787),E=r.n(A),k=r(4155),S=r.n(k),O=r(8254),D=r.n(O),P=r(3849),L=r.n(P),T=r(8999),j=r.n(T),$=r(1616),N=r.n($),z=r(4143),R=r.n(z),I=r(8532),F=r.n(I),B=r(9602),W=r.n(B),V=r(1893),U=r.n(V),q=r(9082),H=r.n(q);function G(t){return Object.entries(t).reduce(((t,n)=>(t[n[1]]=n[0],t)),{})}function K(t,n){void 0===n&&(n=[]);const e={};for(const r in t)n.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}function Y(t){const{_x:n,_x1:e,_x0:r,_voronoiX:i,_y:o,_y1:a,_y0:s,_voronoiY:l}=t,c={x:i??e??n,x0:r??n,y:l??a??o,y0:s??o};return U()({},c,t)}function X(t,n){const{scale:e,polar:r,horizontal:i}=t,o=Y(n),a=t.origin||{x:0,y:0},s=i?e.y(o.y):e.x(o.x),l=i?e.y(o.y0):e.x(o.x0),c=i?e.x(o.x):e.y(o.y),u=i?e.x(o.x0):e.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}function Z(t){const n="number"==typeof t?t:0,e="object"==typeof t?t:{};return{top:e.top||n,bottom:e.bottom||n,left:e.left||n,right:e.right||n}}function Q(t){return"tooltip"===(t&&t.type&&t.type.role)}function J(t,n){const{theme:e={},labelComponent:r}=t,i=e[n]&&e[n].style||{};if(!Q(r))return i;const o=e.tooltip&&e.tooltip.style||{},a=U()({},o,i.labels);return U()({},{labels:a},i)}function tt(t,n){const e="100%",r="100%";if(!t)return U()({parent:{height:r,width:e}},n);const{data:i,labels:o,parent:a}=t,s=n&&n.parent||{},l=n&&n.labels||{},c=n&&n.data||{};return{parent:U()({},a,s,{width:e,height:r}),labels:U()({},o,l),data:U()({},i,c)}}function nt(t,n){return ct(t)?t(n):t}function et(t,n){return n.disableInlineStyles?{}:t&&Object.keys(t).some((n=>ct(t[n])))?Object.keys(t).reduce(((e,r)=>(e[r]=nt(t[r],n),e)),{}):t}function rt(t){return"number"==typeof t?t*(Math.PI/180):t}function it(t){return"number"==typeof t?t/(Math.PI/180):t}function ot(t){const{width:n,height:e,padding:r}=t,{left:i,right:o,top:a,bottom:s}=r;return Math.min(n-i-o,e-a-s)/2}function at(t){const{width:n,height:e}=t,{top:r,bottom:i,left:o,right:a}=Z(t.padding),s=Math.min(n-o-a,e-r-i)/2,l=n/2+o-a,c=e/2+r-i;return{x:l+s>n?s+o-a:l,y:c+s>e?s+r-i:c}}function st(t,n){return t.range&&t.range[n]?t.range[n]:t.range&&Array.isArray(t.range)?t.range:t.polar?"x"===(e={axis:n,innerRadius:t.innerRadius,startAngle:t.startAngle,endAngle:t.endAngle,height:t.height,width:t.width,padding:Z(t.padding)}).axis?[rt(e.startAngle||0),rt(e.endAngle||360)]:[e.innerRadius||0,ot({height:e.height,width:e.width,padding:e.padding})]:function(t){return"x"!==t.axis?[t.height-t.padding.bottom,t.padding.top]:[t.padding.left,t.width-t.padding.right]}({axis:n,height:t.height,width:t.width,padding:Z(t.padding)});var e}function lt(t){return null==t}function ct(t){return"function"==typeof t}function ut(t){return ct(t)?t:null==t?t=>t:F()(t)}function ht(t,n,e){const r=K(t.theme&&t.theme[e]?t.theme[e]:{},["style"]),i=yt(t),o=void 0===i?{}:{horizontal:i};return U()(o,t,r,n)}function dt(t,n){return n?"x"===t?"y":"x":t}function ft(t,n){if(t)return Object.keys(t).reduce(((e,r)=>(e[r]=n(t[r]),e)),{})}function pt(t,n,e){const r=n?t:0;let i=n||t;i||(i=0);const o=i-r,a=Math.abs(o),s=o/a||1,l=e||1,c=Math.max(Math.ceil(a/l),0);return Array.from(Array(c),((t,n)=>r+n*s*l))}function mt(t,n,e,r,i){void 0===e&&(e={}),void 0===r&&(r=[]),void 0===i&&(i=(t,n)=>t.concat(n));const o=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=(t,s,l)=>t.reduce(((t,r,c)=>{let u=t;const h=r.type&&r.type.role,d=r.props.name||`${h}-${s[c]}`;if(r.props&&r.props.children){const t=Object.assign({},r.props,H()(e,o)),n=r.type&&"stack"===r.type.role&&ct(r.type.getChildren)?r.type.getChildren(t):E().Children.toArray(r.props.children).map((n=>{const e=Object.assign({},n.props,H()(t,o));return E().cloneElement(n,e)})),s=n.map(((t,n)=>`${d}-${n}`)),l=a(n,s,r);u=i(u,l)}else{const t=n(r,d,l);t&&(u=i(u,t))}return u}),r),s=t.filter(A.isValidElement),l=s.map(((t,n)=>n));return a(s,l)}function yt(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const n=t=>t.reduce(((t,e)=>{const r=e.props||{};return t||r.horizontal||!r.children?t||r.horizontal:n(E().Children.toArray(r.children))}),!1);return n(E().Children.toArray(t.children))}function gt(t){return Array.isArray(t)&&t.length>0}function xt(t){return Array.isArray(t)&&t.some((t=>"string"==typeof t))}function vt(t){return Array.isArray(t)&&t.some((t=>t instanceof Date))}function bt(t){return Array.isArray(t)&&t.some((t=>"number"==typeof t))}function _t(t){return gt(t)&&t.every((t=>"string"==typeof t))}function Mt(t,n){return t&&n?t.filter((t=>!n.includes(t))):[]}function Ct(t){return gt(t)&&t.every(Array.isArray)}function wt(t){return t.filter((t=>void 0!==t))}function At(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return vt(i)?new Date(Math.max(...i)):Math.max(...i)}function Et(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];const i=t.concat(e);return vt(i)?new Date(Math.min(...i)):Math.min(...i)}function kt(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r<i;)o[r]=t+r*e;return o}function St(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Ot(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}class Dt extends Map{constructor(t,n=Lt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,e]of t)this.set(n,e)}get(t){return super.get(Pt(this,t))}has(t){return super.has(Pt(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}(this,t))}}function Pt({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Lt(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Tt=Symbol("implicit");function jt(){var t=new Dt,n=[],e=[],r=Tt;function i(i){let o=t.get(i);if(void 0===o){if(r!==Tt)return r;t.set(i,o=n.push(i)-1)}return e[o%e.length]}return i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=new Dt;for(const r of e)t.has(r)||t.set(r,n.push(r)-1);return i},i.range=function(t){return arguments.length?(e=Array.from(t),i):e.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return jt(n,e).unknown(r)},St.apply(i,arguments),i}function $t(){var t,n,e=jt().unknown(void 0),r=e.domain,i=e.range,o=0,a=1,s=!1,l=0,c=0,u=.5;function h(){var e=r().length,h=a<o,d=h?a:o,f=h?o:a;t=(f-d)/Math.max(1,e-l+2*c),s&&(t=Math.floor(t)),d+=(f-d-t*(e-l))*u,n=t*(1-l),s&&(d=Math.round(d),n=Math.round(n));var p=kt(e).map((function(n){return d+t*n}));return i(h?p.reverse():p)}return delete e.unknown,e.domain=function(t){return arguments.length?(r(t),h()):r()},e.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},e.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},e.bandwidth=function(){return n},e.step=function(){return t},e.round=function(t){return arguments.length?(s=!!t,h()):s},e.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),h()):l},e.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),h()):l},e.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},e.align=function(t){return arguments.length?(u=Math.max(0,Math.min(1,t)),h()):u},e.copy=function(){return $t(r(),[o,a]).round(s).paddingInner(l).paddingOuter(c).align(u)},St.apply(h(),arguments)}function Nt(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Nt(n())},t}function zt(){return Nt($t.apply(null,arguments).paddingInner(1))}var Rt=Math.sqrt(50),It=Math.sqrt(10),Ft=Math.sqrt(2);function Bt(t,n,e){var r,i,o,a,s=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n<t)&&(i=t,t=n,n=i),0===(a=Wt(t,n,e))||!isFinite(a))return[];if(a>0){let e=Math.round(t/a),r=Math.round(n/a);for(e*a<t&&++e,r*a>n&&--r,o=new Array(i=r-e+1);++s<i;)o[s]=(e+s)*a}else{a=-a;let e=Math.round(t*a),r=Math.round(n*a);for(e/a<t&&++e,r/a>n&&--r,o=new Array(i=r-e+1);++s<i;)o[s]=(e+s)/a}return r&&o.reverse(),o}function Wt(t,n,e){var r=(n-t)/Math.max(0,e),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Rt?10:o>=It?5:o>=Ft?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Rt?10:o>=It?5:o>=Ft?2:1)}function Vt(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Rt?i*=10:o>=It?i*=5:o>=Ft&&(i*=2),n<t?-i:i}function Ut(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function qt(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Ht(t){let n,e,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<0?i=n+1:o=n}while(i<o)}return i}return 2!==t.length?(n=Ut,e=(n,e)=>Ut(t(n),e),r=(n,e)=>t(n)-e):(n=t===Ut||t===qt?t:Gt,e=t,r=t),{left:i,center:function(t,n,e=0,o=t.length){const a=i(t,n,e,o-1);return a>e&&r(t[a-1],n)>-r(t[a],n)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==n(r,r))return o;do{const n=i+o>>>1;e(t[n],r)<=0?i=n+1:o=n}while(i<o)}return i}}}function Gt(){return 0}function Kt(t){return null===t?NaN:+t}const Yt=Ht(Ut),Xt=Yt.right;Yt.left,Ht(Kt).center;var Zt=Xt;function Qt(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Jt(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function tn(){}var nn=.7,en=1/nn,rn="\\s*([+-]?\\d+)\\s*",on="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sn=/^#([0-9a-f]{3,8})$/,ln=new RegExp(`^rgb\\(${rn},${rn},${rn}\\)$`),cn=new RegExp(`^rgb\\(${an},${an},${an}\\)$`),un=new RegExp(`^rgba\\(${rn},${rn},${rn},${on}\\)$`),hn=new RegExp(`^rgba\\(${an},${an},${an},${on}\\)$`),dn=new RegExp(`^hsl\\(${on},${an},${an}\\)$`),fn=new RegExp(`^hsla\\(${on},${an},${an},${on}\\)$`),pn={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};function mn(){return this.rgb().formatHex()}function yn(){return this.rgb().formatRgb()}function gn(t){var n,e;return t=(t+"").trim().toLowerCase(),(n=sn.exec(t))?(e=n[1].length,n=parseInt(n[1],16),6===e?xn(n):3===e?new Mn(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===e?vn(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===e?vn(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=ln.exec(t))?new Mn(n[1],n[2],n[3],1):(n=cn.exec(t))?new Mn(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=un.exec(t))?vn(n[1],n[2],n[3],n[4]):(n=hn.exec(t))?vn(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=dn.exec(t))?Sn(n[1],n[2]/100,n[3]/100,1):(n=fn.exec(t))?Sn(n[1],n[2]/100,n[3]/100,n[4]):pn.hasOwnProperty(t)?xn(pn[t]):"transparent"===t?new Mn(NaN,NaN,NaN,0):null}function xn(t){return new Mn(t>>16&255,t>>8&255,255&t,1)}function vn(t,n,e,r){return r<=0&&(t=n=e=NaN),new Mn(t,n,e,r)}function bn(t){return t instanceof tn||(t=gn(t)),t?new Mn((t=t.rgb()).r,t.g,t.b,t.opacity):new Mn}function _n(t,n,e,r){return 1===arguments.length?bn(t):new Mn(t,n,e,null==r?1:r)}function Mn(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Cn(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}`}function wn(){const t=An(this.opacity);return`${1===t?"rgb(":"rgba("}${En(this.r)}, ${En(this.g)}, ${En(this.b)}${1===t?")":`, ${t})`}`}function An(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function En(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function kn(t){return((t=En(t))<16?"0":"")+t.toString(16)}function Sn(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Dn(t,n,e,r)}function On(t){if(t instanceof Dn)return new Dn(t.h,t.s,t.l,t.opacity);if(t instanceof tn||(t=gn(t)),!t)return new Dn;if(t instanceof Dn)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=n===o?(e-r)/s+6*(e<r):e===o?(r-n)/s+2:(n-e)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Dn(a,s,l,t.opacity)}function Dn(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Pn(t){return(t=(t||0)%360)<0?t+360:t}function Ln(t){return Math.max(0,Math.min(1,t||0))}function Tn(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}function jn(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}Qt(tn,gn,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:mn,formatHex:mn,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return On(this).formatHsl()},formatRgb:yn,toString:yn}),Qt(Mn,_n,Jt(tn,{brighter(t){return t=null==t?en:Math.pow(en,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new Mn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Mn(En(this.r),En(this.g),En(this.b),An(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:Cn,formatHex:Cn,formatHex8:function(){return`#${kn(this.r)}${kn(this.g)}${kn(this.b)}${kn(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:wn,toString:wn})),Qt(Dn,(function(t,n,e,r){return 1===arguments.length?On(t):new Dn(t,n,e,null==r?1:r)}),Jt(tn,{brighter(t){return t=null==t?en:Math.pow(en,t),new Dn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?nn:Math.pow(nn,t),new Dn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Mn(Tn(t>=240?t-240:t+120,i,r),Tn(t,i,r),Tn(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Dn(Pn(this.h),Ln(this.s),Ln(this.l),An(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=An(this.opacity);return`${1===t?"hsl(":"hsla("}${Pn(this.h)}, ${100*Ln(this.s)}%, ${100*Ln(this.l)}%${1===t?")":`, ${t})`}`}}));var $n=t=>()=>t;function Nn(t,n){var e=n-t;return e?function(t,n){return function(e){return t+e*n}}(t,e):$n(isNaN(t)?n:t)}var zn=function t(n){var e=function(t){return 1==(t=+t)?Nn:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):$n(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=_n(t)).r,(n=_n(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Nn(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Rn(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),s=new Array(i);for(e=0;e<i;++e)r=_n(n[e]),o[e]=r.r||0,a[e]=r.g||0,s[e]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function In(t,n){var e,r=n?n.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(e=0;e<i;++e)o[e]=Gn(t[e],n[e]);for(;e<r;++e)a[e]=n[e];return function(t){for(e=0;e<i;++e)a[e]=o[e](t);return a}}function Fn(t,n){var e=new Date;return t=+t,n=+n,function(r){return e.setTime(t*(1-r)+n*r),e}}function Bn(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Wn(t,n){var e,r={},i={};for(e in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)e in t?r[e]=Gn(t[e],n[e]):i[e]=n[e];return function(t){for(e in r)i[e]=r[e](t);return i}}Rn((function(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<n-1?t[r+2]:2*o-i;return jn((e-r/n)*n,a,i,o,s)}})),Rn((function(t){var n=t.length;return function(e){var r=Math.floor(((e%=1)<0?++e:e)*n),i=t[(r+n-1)%n],o=t[r%n],a=t[(r+1)%n],s=t[(r+2)%n];return jn((e-r/n)*n,i,o,a,s)}}));var Vn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Un=new RegExp(Vn.source,"g");function qn(t,n){var e,r,i,o=Vn.lastIndex=Un.lastIndex=0,a=-1,s=[],l=[];for(t+="",n+="";(e=Vn.exec(t))&&(r=Un.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(e=e[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Bn(e,r)})),o=Un.lastIndex;return o<n.length&&(i=n.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(n){return t(n)+""}}(l[0].x):function(t){return function(){return t}}(n):(n=l.length,function(t){for(var e,r=0;r<n;++r)s[(e=l[r]).i]=e.x(t);return s.join("")})}function Hn(t,n){n||(n=[]);var e,r=t?Math.min(n.length,t.length):0,i=n.slice();return function(o){for(e=0;e<r;++e)i[e]=t[e]*(1-o)+n[e]*o;return i}}function Gn(t,n){var e,r=typeof n;return null==n||"boolean"===r?$n(n):("number"===r?Bn:"string"===r?(e=gn(n))?(n=e,zn):qn:n instanceof gn?zn:n instanceof Date?Fn:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?Hn:Array.isArray(n)?In:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Wn:Bn)(t,n)}function Kn(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}function Yn(t){return+t}var Xn=[0,1];function Zn(t){return t}function Qn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:function(t){return function(){return t}}(isNaN(n)?NaN:.5)}function Jn(t,n,e){var r=t[0],i=t[1],o=n[0],a=n[1];return i<r?(r=Qn(i,r),o=e(a,o)):(r=Qn(r,i),o=e(o,a)),function(t){return o(r(t))}}function te(t,n,e){var r=Math.min(t.length,n.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<r;)i[a]=Qn(t[a],t[a+1]),o[a]=e(n[a],n[a+1]);return function(n){var e=Zt(t,n,1,r)-1;return o[e](i[e](n))}}function ne(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ee(){var t,n,e,r,i,o,a=Xn,s=Xn,l=Gn,c=Zn;function u(){var t=Math.min(a.length,s.length);return c!==Zn&&(c=function(t,n){var e;return t>n&&(e=t,t=n,n=e),function(e){return Math.max(t,Math.min(n,e))}}(a[0],a[t-1])),r=t>2?te:Jn,i=o=null,h}function h(n){return null==n||isNaN(n=+n)?e:(i||(i=r(a.map(t),s,l)))(t(c(n)))}return h.invert=function(e){return c(n((o||(o=r(s,a.map(t),Bn)))(e)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Yn),u()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),l=Kn,u()},h.clamp=function(t){return arguments.length?(c=!!t||Zn,u()):c!==Zn},h.interpolate=function(t){return arguments.length?(l=t,u()):l},h.unknown=function(t){return arguments.length?(e=t,h):e},function(e,r){return t=e,n=r,u()}}function re(){return ee()(Zn,Zn)}var ie,oe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ae(t){if(!(n=oe.exec(t)))throw new Error("invalid format: "+t);var n;return new se({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function se(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function le(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function ce(t){return(t=le(Math.abs(t)))?t[1]:NaN}function ue(t,n){var e=le(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}ae.prototype=se.prototype,se.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var he={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>ue(100*t,n),r:ue,s:function(t,n){var e=le(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(ie=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+le(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function de(t){return t}var fe,pe,me,ye=Array.prototype.map,ge=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xe(t,n,e,r){var i,o=Vt(t,n,e);switch((r=ae(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(n));return null!=r.precision||isNaN(i=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ce(n)/3)))-ce(Math.abs(t)))}(o,a))||(r.precision=i),me(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,ce(n)-ce(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-ce(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return pe(r)}function ve(t){var n=t.domain;return t.ticks=function(t){var e=n();return Bt(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){var r=n();return xe(r[0],r[r.length-1],null==t?10:t,e)},t.nice=function(e){null==e&&(e=10);var r,i,o=n(),a=0,s=o.length-1,l=o[a],c=o[s],u=10;for(c<l&&(i=l,l=c,c=i,i=a,a=s,s=i);u-- >0;){if((i=Wt(l,c,e))===r)return o[a]=l,o[s]=c,n(o);if(i>0)l=Math.floor(l/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function be(){var t=re();return t.copy=function(){return ne(t,be())},St.apply(t,arguments),ve(t)}function _e(t){var n;function e(t){return null==t||isNaN(t=+t)?n:t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Array.from(n,Yn),e):t.slice()},e.unknown=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return _e(t).unknown(n)},t=arguments.length?Array.from(t,Yn):[0,1],ve(e)}function Me(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(e=r,r=i,i=e,e=o,o=a,a=e),t[r]=n.floor(o),t[i]=n.ceil(a),t}function Ce(t){return Math.log(t)}function we(t){return Math.exp(t)}function Ae(t){return-Math.log(-t)}function Ee(t){return-Math.exp(-t)}function ke(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Se(t){return(n,e)=>-t(-n,e)}function Oe(t){const n=t(Ce,we),e=n.domain;let r,i,o=10;function a(){return r=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(o),i=function(t){return 10===t?ke:t===Math.E?Math.exp:n=>Math.pow(t,n)}(o),e()[0]<0?(r=Se(r),i=Se(i),t(Ae,Ee)):t(Ce,we),n}return n.base=function(t){return arguments.length?(o=+t,a()):o},n.domain=function(t){return arguments.length?(e(t),a()):e()},n.ticks=t=>{const n=e();let a=n[0],s=n[n.length-1];const l=s<a;l&&([a,s]=[s,a]);let c,u,h=r(a),d=r(s);const f=null==t?10:+t;let p=[];if(!(o%1)&&d-h<f){if(h=Math.floor(h),d=Math.ceil(d),a>0){for(;h<=d;++h)for(c=1;c<o;++c)if(u=h<0?c/i(-h):c*i(h),!(u<a)){if(u>s)break;p.push(u)}}else for(;h<=d;++h)for(c=o-1;c>=1;--c)if(u=h>0?c/i(-h):c*i(h),!(u<a)){if(u>s)break;p.push(u)}2*p.length<f&&(p=Bt(a,s,f))}else p=Bt(h,d,Math.min(d-h,f)).map(i);return l?p.reverse():p},n.tickFormat=(t,e)=>{if(null==t&&(t=10),null==e&&(e=10===o?"s":","),"function"!=typeof e&&(o%1||null!=(e=ae(e)).precision||(e.trim=!0),e=pe(e)),t===1/0)return e;const a=Math.max(1,o*t/n.ticks().length);return t=>{let n=t/i(Math.round(r(t)));return n*o<o-.5&&(n*=o),n<=a?e(t):""}},n.nice=()=>e(Me(e(),{floor:t=>i(Math.floor(r(t))),ceil:t=>i(Math.ceil(r(t)))})),n}function De(){const t=Oe(ee()).domain([1,10]);return t.copy=()=>ne(t,De()).base(t.base()),St.apply(t,arguments),t}function Pe(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function Le(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function Te(t){var n=1,e=t(Pe(n),Le(n));return e.constant=function(e){return arguments.length?t(Pe(n=+e),Le(n)):n},ve(e)}function je(){var t=Te(ee());return t.copy=function(){return ne(t,je()).constant(t.constant())},St.apply(t,arguments)}function $e(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Ne(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ze(t){return t<0?-t*t:t*t}function Re(t){var n=t(Zn,Zn),e=1;function r(){return 1===e?t(Zn,Zn):.5===e?t(Ne,ze):t($e(e),$e(1/e))}return n.exponent=function(t){return arguments.length?(e=+t,r()):e},ve(n)}function Ie(){var t=Re(ee());return t.copy=function(){return ne(t,Ie()).exponent(t.exponent())},St.apply(t,arguments),t}function Fe(){return Ie.apply(null,arguments).exponent(.5)}function Be(t){return Math.sign(t)*t*t}function We(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Ve(){var t,n=re(),e=[0,1],r=!1;function i(e){var i=We(n(e));return isNaN(i)?t:r?Math.round(i):i}return i.invert=function(t){return n.invert(Be(t))},i.domain=function(t){return arguments.length?(n.domain(t),i):n.domain()},i.range=function(t){return arguments.length?(n.range((e=Array.from(t,Yn)).map(Be)),i):e.slice()},i.rangeRound=function(t){return i.range(t).round(!0)},i.round=function(t){return arguments.length?(r=!!t,i):r},i.clamp=function(t){return arguments.length?(n.clamp(t),i):n.clamp()},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Ve(n.domain(),e).round(r).clamp(n.clamp()).unknown(t)},St.apply(i,arguments),ve(i)}function Ue(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e<n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e<i||void 0===e&&i>=i)&&(e=i)}return e}function qe(t,n){let e;if(void 0===n)for(const n of t)null!=n&&(e>n||void 0===e&&n>=n)&&(e=n);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function He(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(t<n?-1:t>n?1:0)}function Ge(t,n,e=0,r=t.length-1,i){for(i=void 0===i?He:function(t=Ut){if(t===Ut)return He;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}(i);r>e;){if(r-e>600){const o=r-e+1,a=n-e+1,s=Math.log(o),l=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*l*(o-l)/o)*(a-o/2<0?-1:1);Ge(t,n,Math.max(e,Math.floor(n-a*l/o+c)),Math.min(r,Math.floor(n+(o-a)*l/o+c)),i)}const o=t[n];let a=e,s=r;for(Ke(t,e,n),i(t[r],o)>0&&Ke(t,e,r);a<s;){for(Ke(t,a,s),++a,--s;i(t[a],o)<0;)++a;for(;i(t[s],o)>0;)--s}0===i(t[e],o)?Ke(t,e,s):(++s,Ke(t,s,r)),s<=n&&(e=s+1),n<=s&&(r=s-1)}return t}function Ke(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function Ye(t,n,e){if(t=Float64Array.from(function*(t,n){if(void 0===n)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return qe(t);if(n>=1)return Ue(t);var r,i=(r-1)*n,o=Math.floor(i),a=Ue(Ge(t,o).subarray(0,o+1));return a+(qe(t.subarray(o+1))-a)*(i-o)}}function Xe(t,n,e=Kt){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function Ze(){var t,n=[],e=[],r=[];function i(){var t=0,i=Math.max(1,e.length);for(r=new Array(i-1);++t<i;)r[t-1]=Xe(n,t/i);return o}function o(n){return null==n||isNaN(n=+n)?t:e[Zt(r,n)]}return o.invertExtent=function(t){var i=e.indexOf(t);return i<0?[NaN,NaN]:[i>0?r[i-1]:n[0],i<r.length?r[i]:n[n.length-1]]},o.domain=function(t){if(!arguments.length)return n.slice();n=[];for(let e of t)null==e||isNaN(e=+e)||n.push(e);return n.sort(Ut),i()},o.range=function(t){return arguments.length?(e=Array.from(t),i()):e.slice()},o.unknown=function(n){return arguments.length?(t=n,o):t},o.quantiles=function(){return r.slice()},o.copy=function(){return Ze().domain(n).range(e).unknown(t)},St.apply(o,arguments)}function Qe(){var t,n=0,e=1,r=1,i=[.5],o=[0,1];function a(n){return null!=n&&n<=n?o[Zt(i,n,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*e-(t-r)*n)/(r+1);return a}return a.domain=function(t){return arguments.length?([n,e]=t,n=+n,e=+e,s()):[n,e]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[n,i[0]]:a>=r?[i[r-1],e]:[i[a-1],i[a]]},a.unknown=function(n){return arguments.length?(t=n,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return Qe().domain([n,e]).range(o).unknown(t)},St.apply(ve(a),arguments)}function Je(){var t,n=[.5],e=[0,1],r=1;function i(i){return null!=i&&i<=i?e[Zt(n,i,0,r)]:t}return i.domain=function(t){return arguments.length?(n=Array.from(t),r=Math.min(n.length,e.length-1),i):n.slice()},i.range=function(t){return arguments.length?(e=Array.from(t),r=Math.min(n.length,e.length-1),i):e.slice()},i.invertExtent=function(t){var r=e.indexOf(t);return[n[r-1],n[r]]},i.unknown=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return Je().domain(n).range(e).unknown(t)},St.apply(i,arguments)}fe=function(t){var n,e,r=void 0===t.grouping||void 0===t.thousands?de:(n=ye.call(t.grouping,Number),e=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=n[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=n[a=(a+1)%n.length];return o.reverse().join(e)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?de:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(ye.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",c=void 0===t.minus?"−":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function h(t){var n=(t=ae(t)).fill,e=t.align,h=t.sign,d=t.symbol,f=t.zero,p=t.width,m=t.comma,y=t.precision,g=t.trim,x=t.type;"n"===x?(m=!0,x="g"):he[x]||(void 0===y&&(y=12),g=!0,x="g"),(f||"0"===n&&"="===e)&&(f=!0,n="0",e="=");var v="$"===d?i:"#"===d&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",b="$"===d?o:/[%p]/.test(x)?l:"",_=he[x],M=/[defgprs%]/.test(x);function C(t){var i,o,l,d=v,C=b;if("c"===x)C=_(t)+C,t="";else{var w=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:_(Math.abs(t),y),g&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r<e;++r)switch(t[r]){case".":i=n=r;break;case"0":0===i&&(i=r),n=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),w&&0==+t&&"+"!==h&&(w=!1),d=(w?"("===h?h:c:"-"===h||"("===h?"":h)+d,C=("s"===x?ge[8+ie/3]:"")+C+(w&&"("===h?")":""),M)for(i=-1,o=t.length;++i<o;)if(48>(l=t.charCodeAt(i))||l>57){C=(46===l?a+t.slice(i+1):t.slice(i))+C,t=t.slice(0,i);break}}m&&!f&&(t=r(t,1/0));var A=d.length+t.length+C.length,E=A<p?new Array(p-A+1).join(n):"";switch(m&&f&&(t=r(E+t,E.length?p-C.length:1/0),E=""),e){case"<":t=d+t+C+E;break;case"=":t=d+E+t+C;break;case"^":t=E.slice(0,A=E.length>>1)+d+t+C+E.slice(A);break;default:t=E+d+t+C}return s(t)}return y=void 0===y?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,n){var e=h(((t=ae(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(ce(n)/3))),i=Math.pow(10,-r),o=ge[8+r/3];return function(t){return e(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),pe=fe.format,me=fe.formatPrefix;const tr=1e3,nr=6e4,er=36e5,rr=864e5,ir=6048e5,or=31536e6;var ar=new Date,sr=new Date;function lr(t,n,e,r){function i(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return i.floor=function(n){return t(n=new Date(+n)),n},i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n<e-t?n:e},i.offset=function(t,e){return n(t=new Date(+t),null==e?1:Math.floor(e)),t},i.range=function(e,r,o){var a,s=[];if(e=i.ceil(e),o=null==o?1:Math.floor(o),!(e<r&&o>0))return s;do{s.push(a=new Date(+e)),n(e,o),t(e)}while(a<e&&e<r);return s},i.filter=function(e){return lr((function(n){if(n>=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return ar.setTime(+n),sr.setTime(+r),t(ar),t(sr),Math.floor(e(ar,sr))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var cr=lr((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));cr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?lr((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):cr:null};var ur=cr,hr=(cr.range,lr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*tr)}),(function(t,n){return(n-t)/tr}),(function(t){return t.getUTCSeconds()}))),dr=hr,fr=(hr.range,lr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tr)}),(function(t,n){t.setTime(+t+n*nr)}),(function(t,n){return(n-t)/nr}),(function(t){return t.getMinutes()}))),pr=fr,mr=(fr.range,lr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*tr-t.getMinutes()*nr)}),(function(t,n){t.setTime(+t+n*er)}),(function(t,n){return(n-t)/er}),(function(t){return t.getHours()}))),yr=mr,gr=(mr.range,lr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nr)/rr),(t=>t.getDate()-1))),xr=gr;function vr(t){return lr((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nr)/ir}))}gr.range;var br=vr(0),_r=vr(1),Mr=vr(2),Cr=vr(3),wr=vr(4),Ar=vr(5),Er=vr(6),kr=(br.range,_r.range,Mr.range,Cr.range,wr.range,Ar.range,Er.range,lr((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),Sr=kr,Or=(kr.range,lr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));Or.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lr((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};var Dr=Or,Pr=(Or.range,lr((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*nr)}),(function(t,n){return(n-t)/nr}),(function(t){return t.getUTCMinutes()}))),Lr=Pr,Tr=(Pr.range,lr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*er)}),(function(t,n){return(n-t)/er}),(function(t){return t.getUTCHours()}))),jr=Tr,$r=(Tr.range,lr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/rr}),(function(t){return t.getUTCDate()-1}))),Nr=$r;function zr(t){return lr((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/ir}))}$r.range;var Rr=zr(0),Ir=zr(1),Fr=zr(2),Br=zr(3),Wr=zr(4),Vr=zr(5),Ur=zr(6),qr=(Rr.range,Ir.range,Fr.range,Br.range,Wr.range,Vr.range,Ur.range,lr((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}))),Hr=qr,Gr=(qr.range,lr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));Gr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lr((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};var Kr=Gr;function Yr(t,n,e,r,i,o){const a=[[dr,1,tr],[dr,5,5e3],[dr,15,15e3],[dr,30,3e4],[o,1,nr],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,er],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,rr],[r,2,1728e5],[e,1,ir],[n,1,2592e6],[n,3,7776e6],[t,1,or]];function s(n,e,r){const i=Math.abs(e-n)/r,o=Ht((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(Vt(n/or,e/or,r));if(0===o)return ur.every(Math.max(Vt(n,e,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(t,n,e){const r=n<t;r&&([t,n]=[n,t]);const i=e&&"function"==typeof e.range?e:s(t,n,e),o=i?i.range(t,+n+1):[];return r?o.reverse():o},s]}Gr.range;const[Xr,Zr]=Yr(Kr,Hr,Rr,Nr,jr,Lr),[Qr,Jr]=Yr(Dr,Sr,br,xr,yr,pr);function ti(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ni(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ei(t,n,e){return{y:t,m:n,d:e,H:0,M:0,S:0,L:0}}var ri,ii,oi,ai={"-":"",_:" ",0:"0"},si=/^\s*\d+/,li=/^%/,ci=/[\\^$*+?|[\]().{}]/g;function ui(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<e?new Array(e-o+1).join(n)+i:i)}function hi(t){return t.replace(ci,"\\$&")}function di(t){return new RegExp("^(?:"+t.map(hi).join("|")+")","i")}function fi(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function pi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function mi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function yi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function gi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function xi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function vi(t,n,e){var r=si.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function bi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function _i(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Mi(t,n,e){var r=si.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function Ci(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function wi(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function Ai(t,n,e){var r=si.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function Ei(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ki(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function Si(t,n,e){var r=si.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function Oi(t,n,e){var r=si.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function Di(t,n,e){var r=si.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function Pi(t,n,e){var r=li.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function Li(t,n,e){var r=si.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function Ti(t,n,e){var r=si.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function ji(t,n){return ui(t.getDate(),n,2)}function $i(t,n){return ui(t.getHours(),n,2)}function Ni(t,n){return ui(t.getHours()%12||12,n,2)}function zi(t,n){return ui(1+xr.count(Dr(t),t),n,3)}function Ri(t,n){return ui(t.getMilliseconds(),n,3)}function Ii(t,n){return Ri(t,n)+"000"}function Fi(t,n){return ui(t.getMonth()+1,n,2)}function Bi(t,n){return ui(t.getMinutes(),n,2)}function Wi(t,n){return ui(t.getSeconds(),n,2)}function Vi(t){var n=t.getDay();return 0===n?7:n}function Ui(t,n){return ui(br.count(Dr(t)-1,t),n,2)}function qi(t){var n=t.getDay();return n>=4||0===n?wr(t):wr.ceil(t)}function Hi(t,n){return t=qi(t),ui(wr.count(Dr(t),t)+(4===Dr(t).getDay()),n,2)}function Gi(t){return t.getDay()}function Ki(t,n){return ui(_r.count(Dr(t)-1,t),n,2)}function Yi(t,n){return ui(t.getFullYear()%100,n,2)}function Xi(t,n){return ui((t=qi(t)).getFullYear()%100,n,2)}function Zi(t,n){return ui(t.getFullYear()%1e4,n,4)}function Qi(t,n){var e=t.getDay();return ui((t=e>=4||0===e?wr(t):wr.ceil(t)).getFullYear()%1e4,n,4)}function Ji(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ui(n/60|0,"0",2)+ui(n%60,"0",2)}function to(t,n){return ui(t.getUTCDate(),n,2)}function no(t,n){return ui(t.getUTCHours(),n,2)}function eo(t,n){return ui(t.getUTCHours()%12||12,n,2)}function ro(t,n){return ui(1+Nr.count(Kr(t),t),n,3)}function io(t,n){return ui(t.getUTCMilliseconds(),n,3)}function oo(t,n){return io(t,n)+"000"}function ao(t,n){return ui(t.getUTCMonth()+1,n,2)}function so(t,n){return ui(t.getUTCMinutes(),n,2)}function lo(t,n){return ui(t.getUTCSeconds(),n,2)}function co(t){var n=t.getUTCDay();return 0===n?7:n}function uo(t,n){return ui(Rr.count(Kr(t)-1,t),n,2)}function ho(t){var n=t.getUTCDay();return n>=4||0===n?Wr(t):Wr.ceil(t)}function fo(t,n){return t=ho(t),ui(Wr.count(Kr(t),t)+(4===Kr(t).getUTCDay()),n,2)}function po(t){return t.getUTCDay()}function mo(t,n){return ui(Ir.count(Kr(t)-1,t),n,2)}function yo(t,n){return ui(t.getUTCFullYear()%100,n,2)}function go(t,n){return ui((t=ho(t)).getUTCFullYear()%100,n,2)}function xo(t,n){return ui(t.getUTCFullYear()%1e4,n,4)}function vo(t,n){var e=t.getUTCDay();return ui((t=e>=4||0===e?Wr(t):Wr.ceil(t)).getUTCFullYear()%1e4,n,4)}function bo(){return"+0000"}function _o(){return"%"}function Mo(t){return+t}function Co(t){return Math.floor(+t/1e3)}function wo(t){return new Date(t)}function Ao(t){return t instanceof Date?+t:+new Date(+t)}function Eo(t,n,e,r,i,o,a,s,l,c){var u=re(),h=u.invert,d=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),y=c("%I %p"),g=c("%a %d"),x=c("%b %d"),v=c("%B"),b=c("%Y");function _(t){return(l(t)<t?f:s(t)<t?p:a(t)<t?m:o(t)<t?y:r(t)<t?i(t)<t?g:x:e(t)<t?v:b)(t)}return u.invert=function(t){return new Date(h(t))},u.domain=function(t){return arguments.length?d(Array.from(t,Ao)):d().map(wo)},u.ticks=function(n){var e=d();return t(e[0],e[e.length-1],null==n?10:n)},u.tickFormat=function(t,n){return null==n?_:c(n)},u.nice=function(t){var e=d();return t&&"function"==typeof t.range||(t=n(e[0],e[e.length-1],null==t?10:t)),t?d(Me(e,t)):u},u.copy=function(){return ne(u,Eo(t,n,e,r,i,o,a,s,l,c))},u}function ko(){return St.apply(Eo(Qr,Jr,Dr,Sr,br,xr,yr,pr,dr,ii).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function So(){return St.apply(Eo(Xr,Zr,Kr,Hr,Rr,Nr,jr,Lr,dr,oi).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Oo(){var t,n,e,r,i,o=0,a=1,s=Zn,l=!1;function c(n){return null==n||isNaN(n=+n)?i:s(0===e?.5:(n=(r(n)-t)*e,l?Math.max(0,Math.min(1,n)):n))}function u(t){return function(n){var e,r;return arguments.length?([e,r]=n,s=t(e,r),c):[s(0),s(1)]}}return c.domain=function(i){return arguments.length?([o,a]=i,t=r(o=+o),n=r(a=+a),e=t===n?0:1/(n-t),c):[o,a]},c.clamp=function(t){return arguments.length?(l=!!t,c):l},c.interpolator=function(t){return arguments.length?(s=t,c):s},c.range=u(Gn),c.rangeRound=u(Kn),c.unknown=function(t){return arguments.length?(i=t,c):i},function(i){return r=i,t=i(o),n=i(a),e=t===n?0:1/(n-t),c}}function Do(t,n){return n.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Po(){var t=ve(Oo()(Zn));return t.copy=function(){return Do(t,Po())},Ot.apply(t,arguments)}function Lo(){var t=Oe(Oo()).domain([1,10]);return t.copy=function(){return Do(t,Lo()).base(t.base())},Ot.apply(t,arguments)}function To(){var t=Te(Oo());return t.copy=function(){return Do(t,To()).constant(t.constant())},Ot.apply(t,arguments)}function jo(){var t=Re(Oo());return t.copy=function(){return Do(t,jo()).exponent(t.exponent())},Ot.apply(t,arguments)}function $o(){return jo.apply(null,arguments).exponent(.5)}function No(){var t=[],n=Zn;function e(e){if(null!=e&&!isNaN(e=+e))return n((Zt(t,e,1)-1)/(t.length-1))}return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(let e of n)null==e||isNaN(e=+e)||t.push(e);return t.sort(Ut),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},e.quantiles=function(n){return Array.from({length:n+1},((e,r)=>Ye(t,r/n)))},e.copy=function(){return No(n).domain(t)},Ot.apply(e,arguments)}function zo(t,n){void 0===n&&(n=t,t=Gn);for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e<r;)o[e]=t(i,i=n[++e]);return function(t){var n=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return o[n](t-n)}}function Ro(){var t,n,e,r,i,o,a,s=0,l=.5,c=1,u=1,h=Zn,d=!1;function f(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-n)*(u*t<u*n?r:i),h(d?Math.max(0,Math.min(1,t)):t))}function p(t){return function(n){var e,r,i;return arguments.length?([e,r,i]=n,h=zo(t,[e,r,i]),f):[h(0),h(.5),h(1)]}}return f.domain=function(a){return arguments.length?([s,l,c]=a,t=o(s=+s),n=o(l=+l),e=o(c=+c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),u=n<t?-1:1,f):[s,l,c]},f.clamp=function(t){return arguments.length?(d=!!t,f):d},f.interpolator=function(t){return arguments.length?(h=t,f):h},f.range=p(Gn),f.rangeRound=p(Kn),f.unknown=function(t){return arguments.length?(a=t,f):a},function(a){return o=a,t=a(s),n=a(l),e=a(c),r=t===n?0:.5/(n-t),i=n===e?0:.5/(e-n),u=n<t?-1:1,f}}function Io(){var t=ve(Ro()(Zn));return t.copy=function(){return Do(t,Io())},Ot.apply(t,arguments)}function Fo(){var t=Oe(Ro()).domain([.1,1,10]);return t.copy=function(){return Do(t,Fo()).base(t.base())},Ot.apply(t,arguments)}function Bo(){var t=Te(Ro());return t.copy=function(){return Do(t,Bo()).constant(t.constant())},Ot.apply(t,arguments)}function Wo(){var t=Re(Ro());return t.copy=function(){return Do(t,Wo()).exponent(t.exponent())},Ot.apply(t,arguments)}function Vo(){return Wo.apply(null,arguments).exponent(.5)}ri=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,c=di(i),u=fi(i),h=di(o),d=fi(o),f=di(a),p=fi(a),m=di(s),y=fi(s),g=di(l),x=fi(l),v={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:ji,e:ji,f:Ii,g:Xi,G:Qi,H:$i,I:Ni,j:zi,L:Ri,m:Fi,M:Bi,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Mo,s:Co,S:Wi,u:Vi,U:Ui,V:Hi,w:Gi,W:Ki,x:null,X:null,y:Yi,Y:Zi,Z:Ji,"%":_o},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:to,e:to,f:oo,g:go,G:vo,H:no,I:eo,j:ro,L:io,m:ao,M:so,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Mo,s:Co,S:lo,u:co,U:uo,V:fo,w:po,W:mo,x:null,X:null,y:yo,Y:xo,Z:bo,"%":_o},_={a:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=p.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(t,n,e){var r=h.exec(n.slice(e));return r?(t.w=d.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=x.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(t,n,e){var r=m.exec(n.slice(e));return r?(t.m=y.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(t,e,r){return w(t,n,e,r)},d:wi,e:wi,f:Di,g:bi,G:vi,H:Ei,I:Ei,j:Ai,L:Oi,m:Ci,M:ki,p:function(t,n,e){var r=c.exec(n.slice(e));return r?(t.p=u.get(r[0].toLowerCase()),e+r[0].length):-1},q:Mi,Q:Li,s:Ti,S:Si,u:mi,U:yi,V:gi,w:pi,W:xi,x:function(t,n,r){return w(t,e,n,r)},X:function(t,n,e){return w(t,r,n,e)},y:bi,Y:vi,Z:_i,"%":Pi};function M(t,n){return function(e){var r,i,o,a=[],s=-1,l=0,c=t.length;for(e instanceof Date||(e=new Date(+e));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=ai[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=n[r])&&(r=o(e,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function C(t,n){return function(e){var r,i,o=ei(1900,void 0,1);if(w(o,t,e+="",0)!=e.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(n&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ni(ei(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ir.ceil(r):Ir(r),r=Nr.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ti(ei(o.y,0,1))).getDay(),r=i>4||0===i?_r.ceil(r):_r(r),r=xr.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ni(ei(o.y,0,1)).getUTCDay():ti(ei(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ni(o)):ti(o)}}function w(t,n,e,r){for(var i,o,a=0,s=n.length,l=e.length;a<s;){if(r>=l)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=_[i in ai?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return v.x=M(e,v),v.X=M(r,v),v.c=M(n,v),b.x=M(e,b),b.X=M(r,b),b.c=M(n,b),{format:function(t){var n=M(t+="",v);return n.toString=function(){return t},n},parse:function(t){var n=C(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=M(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=C(t+="",!0);return n.toString=function(){return t},n}}}({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"]}),ii=ri.format,ri.parse,oi=ri.utcFormat,ri.utcParse;const Uo=["linear","time","log","sqrt"];function qo(t){return"function"==typeof t?ct(t.copy)&&ct(t.domain)&&ct(t.range):"string"==typeof t&&Uo.includes(t)}function Ho(t,n){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[n])}function Go(t,n){if(!t.data)return"linear";const e=ut(t[n]);return vt(t.data.map((t=>{const r=L()(e(t))?e(t)[n]:e(t);return void 0!==r?r:t[n]})))?"time":"linear"}function Ko(t){if(qo(t)){const n=`scale${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`;return e[n]()}return be()}function Yo(t,n){const e=Zo(t,n);return e?"string"==typeof e?Ko(e):e:Ko(function(t,n){let e;if(t.domain&&t.domain[n]?e=t.domain[n]:t.domain&&Array.isArray(t.domain)&&(e=t.domain),e)return vt(e)?"time":"linear"}(t,n)||Go(t,n))}function Xo(){return be()}function Zo(t,n){if(!Ho(t,n))return;const e=t.scale[n]||t.scale;return qo(e)?ct(e)?e:Ko(e):void 0}function Qo(t,n){return function(t,n){if(!Ho(t,n))return;const e=t.scale[n]||t.scale;return"string"==typeof e?e:ta(e)}(t,n)||Go(t,n)}const Jo=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ta(t){if("string"==typeof t)return t;const n=Jo.filter((n=>void 0!==t[n.method]))[0];return n?n.name:void 0}const na="@@__IMMUTABLE_ITERABLE__@@",ea="@@__IMMUTABLE_RECORD__@@",ra="@@__IMMUTABLE_LIST__@@",ia="@@__IMMUTABLE_MAP__@@";function oa(t){return!(!t||!t[na])}function aa(t){return!(!t||!t[ea])}function sa(t){return oa(t)||aa(t)}function la(t){return!(!t||!t[ra])}function ca(t){return!(!t||!t[ia])}function ua(t,n){return oa(t)?t.reduce(((t,e,r)=>{let i=e;return n&&n[r]&&(i=ua(e)),t[r]=i,t}),la(t)?[]:{}):t}function ha(t){return sa(t)?ua(t,{errorX:!0,errorY:!0}):t}function da(t){return oa(t)?t.size:t.length}function fa(t,n){const e=(L()(t.domain)?t.domain[n]:t.domain)||Yo(t,n).domain(),r=t.samples||1,i=Math.max(...e),o=Math.min(...e),a=pt(o,i,(i-o)/r);return a[a.length-1]===i?a:a.concat(i)}function pa(t,n,e){if(void 0===e&&(e="ascending"),!n)return t;let r=n;"x"!==n&&"y"!==n||(r=`_${n}`);const i="ascending"===e?"asc":"desc";return R()(t,r,i)}function ma(t,n,e){const r=t=>void 0!==t,i=Et(n.x),o=At(n.x),a=Et(n.y),s=At(n.y),l=t=>n=>r(n)&&n<t,c=t=>n=>r(n)&&n>t,u=l(i),h=l(a),d=c(o),f=c(s);return t.map((t=>{let{_x:n,_y:i,_y0:o,_y1:l}=t;(u(n)||d(n))&&(n=null);const c=r(o)?o:e,p=r(l)?l:i;return r(p)?(r(c)||!h(p)&&!f(p)||(i=null),(h(c)&&h(p)||f(c)&&f(p))&&(i=o=l=null),h(c)&&!h(p)&&(o=a),f(c)&&!f(p)&&(o=s),Object.assign({},t,N()({_x:n,_y:i,_y0:o,_y1:l},j()))):t}))}function ya(t,n){const e=Ma(t,n),r=Ca(t,n),i=wa(t,n),o=W()([...e,...r,...i]);return 0===o.length?null:o.reduce(((t,n,e)=>(t[n]=e+1,t)),{})}function ga(t,n,e){void 0===e&&(e=0);const r=da(t);if(r>n){const i=Math.pow(2,Math.ceil(Math.log2(r/n)));return t.filter(((t,n)=>(n+e)%i==0))}return t}function xa(t,n,e){if(!Array.isArray(t)&&!oa(t)||da(t)<1)return[];const r=["x","y","y0"],i=(e=Array.isArray(e)?e:r).reduce(((t,e)=>{var r;return t[e]=ut(void 0!==n[r=e]?n[r]:r),t}),{}),o=D()(e,r)&&"_x"===n.x&&"_y"===n.y&&"_y0"===n.y0;let a;!1===o&&(a={x:-1!==e.indexOf("x")?ya(n,"x"):void 0,y:-1!==e.indexOf("y")?ya(n,"y"):void 0,y0:-1!==e.indexOf("y0")?ya(n,"y"):void 0});const s=o?t:t.reduce(((t,n,r)=>{const o=ha(n),s={x:r,y:o},l=e.reduce(((t,n)=>{const e=i[n](o),r=void 0!==e?e:s[n];return void 0!==r&&("string"==typeof r&&a[n]?(t[`${n}Name`]=r,t[`_${n}`]=a[n][r]):t[`_${n}`]=r),t}),{}),c=Object.assign({},l,o);return S()(c)||t.push(c),t}),[]),l=function(t,n){const e=1/Number.MAX_SAFE_INTEGER,r={x:Qo(n,"x"),y:Qo(n,"y")};if("log"!==r.x&&"log"!==r.y)return t;const i=(t,n)=>"log"!==r[n]||0!==t[`_${n}`];return t.map((t=>i(t,"x")&&i(t,"y")&&i(t,"y0")?t:(t=>{const n=i(t,"x")?t._x:e,r=i(t,"y")?t._y:e,o=i(t,"y0")?t._y0:e;return Object.assign({},t,{_x:n,_y:r,_y0:o})})(t)))}(pa(s,n.sortKey,n.sortOrder),n);return function(t,n){const e=!!t.eventKey,r=ct(i=t.eventKey)?i:null==i?()=>{}:F()(i);var i;return n.map(((t,n)=>{if(void 0!==t.eventKey)return t;if(e){const e=r(t,n);return void 0!==e?Object.assign({eventKey:e},t):t}return t}))}(n,l)}function va(t){const n=fa(t,"x"),e=fa(t,"y"),r=n.map(((t,n)=>({x:t,y:e[n]})));return r}function ba(t,n){return t.categories&&!Array.isArray(t.categories)?t.categories[n]:t.categories}function _a(t){return t.data?xa(t.data,t):xa(va(t),t)}function Ma(t,n){const{tickValues:e,tickFormat:r}=t;let i;return i=e&&(Array.isArray(e)||e[n])?e[n]||e:r&&Array.isArray(r)?r:[],i.filter((t=>"string"==typeof t))}function Ca(t,n){if(!t.categories)return[];const e=ba(t,n),r=e&&e.filter((t=>"string"==typeof t));return r?wt(r):[]}function wa(t,n){if(!Array.isArray(t.data)&&!oa(t.data))return[];const e=ut(void 0===t[n]?n:t[n]);return pa(t.data.reduce(((t,n)=>(t.push(ha(n)),t)),[]),t.sortKey,t.sortOrder).reduce(((t,n)=>{const r=ha(n);return t.push(e(r)),t}),[]).filter((t=>"string"==typeof t)).reduce(((t,n)=>(null!=n&&-1===t.indexOf(n)&&t.push(n),t)),[])}function Aa(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=E().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}var Ea=r(4295),ka=r.n(Ea),Sa=r(2829),Oa=r.n(Sa);function Da(t,n,e){void 0===e&&(e="min");const r=t=>"max"===e?Math.max(...t):Math.min(...t),i="max"===e?-1/0:1/0;let o=!1;const a=t.flat().reduce(((t,e)=>{const i=void 0!==e[`_${n}0`]?e[`_${n}0`]:e[`_${n}`],a=void 0!==e[`_${n}1`]?e[`_${n}1`]:e[`_${n}`],s=r([i,a]);return o=o||i instanceof Date||a instanceof Date,r([t,s])}),i);return o?new Date(a):a}function Pa(t,n){const e=ct(t)?t:$a,r=ct(n)?n:La;return(t,n)=>{const i=za(t,n);if(i)return r(i,t,n);const o=ba(t,n),a=o?ja(t,n,o):e(t,n);return a?r(a,t,n):void 0}}function La(t,n,e){return function(t,n,e){return"log"!==Qo(n,e)?t:(t=>{const n=t[0]<0||t[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER;return[0===t[0]?n:t[0],0===t[1]?n:t[1]]})(t)}(function(t,n,e){if(!n.domainPadding)return t;const r=Fa(n,e),i=Ia(n,e),o=function(t,n){const e=t=>Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t};return L()(t.domainPadding)?e(t.domainPadding[n]):e(t.domainPadding)}(n,e);if(!o.left&&!o.right)return t;const a=Et(t),s=At(t),l=st(n,dt(e,n.horizontal)),c=Math.abs(l[0]-l[1]),u=Math.max(c-o.left-o.right,1),h=Math.abs(s.valueOf()-a.valueOf())/u*c,d=h*o.left/c,f=h*o.right/c;let p={min:a.valueOf()-d,max:s.valueOf()+f};const m=L()(n.singleQuadrantDomainPadding)?n.singleQuadrantDomainPadding[e]:n.singleQuadrantDomainPadding,y=(t,n)=>"min"===n&&a.valueOf()>=0&&t<=0||"max"===n&&s.valueOf()<=0&&t>=0?0:t;if((a.valueOf()>=0&&p.min<=0||s.valueOf()<=0&&p.max>=0)&&!1!==m){const t={left:Math.abs(s-a)*o.left/c,right:Math.abs(s-a)*o.right/c},n={min:y(a.valueOf()-t.left,"min"),max:y(s.valueOf()+t.right,"max")},e={left:Math.abs(n.max-n.min)*o.left/c,right:Math.abs(n.max-n.min)*o.right/c};p={min:y(a.valueOf()-e.left,"min"),max:y(s.valueOf()+e.right,"max")}}const g={min:void 0!==r?r:p.min,max:void 0!==i?i:p.max};return a instanceof Date||s instanceof Date?Na(new Date(g.min),new Date(g.max)):Na(g.min,g.max)}(t,n,e),n,e)}function Ta(t,n){return Pa()(t,n)}function ja(t,n,e){const r=e||ba(t,n),{polar:i,startAngle:o=0,endAngle:a=360}=t;if(!r)return;const s=Fa(t,n),l=Ia(t,n),c=xt(r)?Ca(t,n):[],u=0===c.length?null:c.reduce(((t,n,e)=>(t[n]=e+1,t)),{}),h=u?r.map((t=>u[t])):r,d=Na(void 0!==s?s:Et(h),void 0!==l?l:At(h));return i&&"x"===n&&360===Math.abs(o-a)?Ba(d,h):d}function $a(t,n,e){const r=e||_a(t),{polar:i,startAngle:o=0,endAngle:a=360}=t,s=Fa(t,n),l=Ia(t,n);if(r.length<1)return void 0!==s&&void 0!==l?Na(s,l):void 0;const c=Na(void 0!==s?s:Da(r,n,"min"),void 0!==l?l:Da(r,n,"max"));return i&&"x"===n&&360===Math.abs(o-a)?Ba(c,function(t,n){const e=`_${n}`;return t.flat().map((t=>t[e]&&void 0!==t[e][1]?t[e][1]:t[e]))}(r,n)):c}function Na(t,n){return Number(t)===Number(n)?(t=>{const n=0===t?2*Math.pow(10,-10):Math.pow(10,-10),e=t instanceof Date?new Date(Number(t)-1):Number(t)-n,r=t instanceof Date?new Date(Number(t)+1):Number(t)+n;return 0===t?[0,r]:[e,r]})(n):[t,n]}function za(t,n){const e=Fa(t,n),r=Ia(t,n);return L()(t.domain)&&t.domain[n]?t.domain[n]:Array.isArray(t.domain)?t.domain:void 0!==e&&void 0!==r?Na(e,r):void 0}function Ra(t,n){const e=za(t,n);if(e)return e;const r=_a(t),i=r.reduce(((t,n)=>n._y0<t?n._y0:t),1/0);return Pa((()=>$a(t,n,r)),(e=>La((e=>{if("x"===n)return e;const r=i!==1/0?i:0,o=Ia(t,n),a=Fa(t,n),s=void 0!==o?o:At(e,r);return Na(void 0!==a?a:Et(e,r),s)})(e),t,n)))(t,n)}function Ia(t,n){return L()(t.maxDomain)&&void 0!==t.maxDomain[n]?t.maxDomain[n]:"number"==typeof t.maxDomain||ka()(t.maxDomain)?t.maxDomain:void 0}function Fa(t,n){return L()(t.minDomain)&&void 0!==t.minDomain[n]?t.minDomain[n]:"number"==typeof t.minDomain||ka()(t.minDomain)?t.minDomain:void 0}function Ba(t,n){const e=Oa()(n.sort(((t,n)=>t-n))),r=e[1]-e[0];return[t[0],t[1]+r]}function Wa(t){const n=t=>t&&t.type?t.type.role:"";let e=n(t);if("portal"===e){const r=E().Children.toArray(t.props.children);e=r.length?n(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(e)}function Va(t){const{labelComponent:n,labelPlacement:e,polar:r}=t,i=r?"perpendicular":"vertical";return e||n.props&&n.props.labelPlacement||i}function Ua(t,n,e){return void 0===n&&(n={}),void 0!==n.label?n.label:Array.isArray(t.labels)?t.labels[e]:t.labels}function qa(t,n){const e=Va(t);return"perpendicular"===e||"vertical"===e&&(90===n||270===n)?"middle":n<=90||n>270?"start":"end"}function Ha(t,n){const e=Va(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(n);return"parallel"===e||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function Ga(t,n){const{labelPlacement:e,datum:r}=t;if(!e||"vertical"===e)return 0;const i=void 0!==n?n%360:Ka(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===e?0:90)}function Ka(t,n){const{x:e}=Y(n);return it(t.scale.x(e))%360}function Ya(t,n){const{scale:e,data:r,style:i,horizontal:o,polar:a,width:s,height:l,theme:c,labelComponent:u,disableInlineStyles:h}=t,d=r[n],f=Ka(t,d),p=a?qa(t,f):function(t,n){void 0===n&&(n={});const{style:e,horizontal:r}=t,i=n._y>=0?1:-1,o=e&&e.labels||{};return n.verticalAnchor||o.verticalAnchor?n.verticalAnchor||o.verticalAnchor:r?i>=0?"start":"end":"middle"}(t,d),m=a?Ha(t,f):function(t,n){void 0===n&&(n={});const e=n._y>=0?1:-1,r=t.style&&t.style.labels||{};return n.verticalAnchor||r.verticalAnchor?n.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":e>=0?"end":"start"}(t,d),y=function(t,n){void 0===n&&(n={});const e=t.style&&t.style.labels||{};return void 0===n.angle?e.angle:n.angle}(t,d),g=Ua(t,d,n),x=Va(t),{x:v,y:b}=function(t,n){const{polar:e}=t,{x:r,y:i}=X(t,n);if(!e)return{x:r,y:i};const o=function(t,n){const{style:e}=t,r=Ka(t,n),i=nt((e.labels||{}).padding,t)||0,o=rt(r);return{x:i*Math.cos(o),y:-i*Math.sin(o)}}(t,n);return{x:r+o.x,y:i+o.y}}(t,d),{dx:_,dy:M}=function(t,n){if(t.polar)return{};const e=function(t,n){void 0===n&&(n={});const{horizontal:e,style:r}=t,i=nt((r.labels||{}).padding,t)||0,o=n._y<0?-1:1;return{x:e?o*i:0,y:e?0:-1*o*i}}(t,n);return{dx:e.x,dy:e.y}}(t,d),C={angle:y,data:r,datum:d,disableInlineStyles:h,horizontal:o,index:n,polar:a,scale:e,labelPlacement:x,text:g,textAnchor:p,verticalAnchor:m,x:v,y:b,dx:_,dy:M,width:s,height:l,style:i.labels};if(!Q(u))return C;const w=c&&c.tooltip||{};return U()({},C,K(w,["style"]))}const Xa=Math.PI,Za=2*Xa,Qa=1e-6,Ja=Za-Qa;function ts(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ns(){return new ts}ts.prototype=ns.prototype={constructor:ts,moveTo:function(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function(t,n,e,r){this._+="Q"+ +t+","+ +n+","+(this._x1=+e)+","+(this._y1=+r)},bezierCurveTo:function(t,n,e,r,i,o){this._+="C"+ +t+","+ +n+","+ +e+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,n,e,r,i){t=+t,n=+n,e=+e,r=+r,i=+i;var o=this._x1,a=this._y1,s=e-t,l=r-n,c=o-t,u=a-n,h=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(h>Qa)if(Math.abs(u*s-l*c)>Qa&&i){var d=e-o,f=r-a,p=s*s+l*l,m=d*d+f*f,y=Math.sqrt(p),g=Math.sqrt(h),x=i*Math.tan((Xa-Math.acos((p+h-m)/(2*y*g)))/2),v=x/g,b=x/y;Math.abs(v-1)>Qa&&(this._+="L"+(t+v*c)+","+(n+v*u)),this._+="A"+i+","+i+",0,0,"+ +(u*d>c*f)+","+(this._x1=t+b*s)+","+(this._y1=n+b*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var a=(e=+e)*Math.cos(r),s=e*Math.sin(r),l=t+a,c=n+s,u=1^o,h=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Qa||Math.abs(this._y1-c)>Qa)&&(this._+="L"+l+","+c),e&&(h<0&&(h=h%Za+Za),h>Ja?this._+="A"+e+","+e+",0,1,"+u+","+(t-a)+","+(n-s)+"A"+e+","+e+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):h>Qa&&(this._+="A"+e+","+e+",0,"+ +(h>=Xa)+","+u+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};var es=ns,rs=Array.prototype.slice;function is(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function os(t){return function(){return t}}function as(t){this._context=t}function ss(t){return new as(t)}function ls(t){return t[0]}function cs(t){return t[1]}function us(t,n){var e=os(!0),r=null,i=ss,o=null;function a(a){var s,l,c,u=(a=is(a)).length,h=!1;for(null==r&&(o=i(c=es())),s=0;s<=u;++s)!(s<u&&e(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+n(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?ls:os(t),n="function"==typeof n?n:void 0===n?cs:os(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),a):n},a.defined=function(t){return arguments.length?(e="function"==typeof t?t:os(!!t),a):e},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a}function hs(t,n,e){var r=null,i=os(!0),o=null,a=ss,s=null;function l(l){var c,u,h,d,f,p=(l=is(l)).length,m=!1,y=new Array(p),g=new Array(p);for(null==o&&(s=a(f=es())),c=0;c<=p;++c){if(!(c<p&&i(d=l[c],c,l))===m)if(m=!m)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=u;--h)s.point(y[h],g[h]);s.lineEnd(),s.areaEnd()}m&&(y[c]=+t(d,c,l),g[c]=+n(d,c,l),s.point(r?+r(d,c,l):y[c],e?+e(d,c,l):g[c]))}if(f)return s=null,f+""||null}function c(){return us().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?ls:os(+t),n="function"==typeof n?n:os(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?cs:os(+e),l.x=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),r=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:os(+t),l):r},l.y=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),e=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),l):n},l.y1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:os(+t),l):e},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(e)},l.lineX1=function(){return c().x(r).y(n)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:os(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}as.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var ds=ps(ss);function fs(t){this._curve=t}function ps(t){function n(n){return new fs(t(n))}return n._curve=t,n}function ms(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(ps(t)):n()._curve},t}function ys(){return ms(us().curve(ds))}function gs(){var t=hs().curve(ds),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ms(e())},delete t.lineX0,t.lineEndAngle=function(){return ms(r())},delete t.lineX1,t.lineInnerRadius=function(){return ms(i())},delete t.lineY0,t.lineOuterRadius=function(){return ms(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(ps(t)):n()._curve},t}fs.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};const xs=Math.abs,vs=Math.atan2,bs=Math.cos,_s=Math.max,Ms=Math.min,Cs=Math.sin,ws=Math.sqrt,As=1e-12,Es=Math.PI,ks=Es/2,Ss=2*Es;function Os(t){return t>1?0:t<-1?Es:Math.acos(t)}function Ds(t){return t>=1?ks:t<=-1?-ks:Math.asin(t)}function Ps(t){return t.innerRadius}function Ls(t){return t.outerRadius}function Ts(t){return t.startAngle}function js(t){return t.endAngle}function $s(t){return t&&t.padAngle}function Ns(t,n,e,r,i,o,a,s){var l=e-t,c=r-n,u=a-i,h=s-o,d=h*l-u*c;if(!(d*d<As))return[t+(d=(u*(n-o)-h*(t-i))/d)*l,n+d*c]}function zs(t,n,e,r,i,o,a){var s=t-e,l=n-r,c=(a?o:-o)/ws(s*s+l*l),u=c*l,h=-c*s,d=t+u,f=n+h,p=e+u,m=r+h,y=(d+p)/2,g=(f+m)/2,x=p-d,v=m-f,b=x*x+v*v,_=i-o,M=d*m-p*f,C=(v<0?-1:1)*ws(_s(0,_*_*b-M*M)),w=(M*v-x*C)/b,A=(-M*x-v*C)/b,E=(M*v+x*C)/b,k=(-M*x+v*C)/b,S=w-y,O=A-g,D=E-y,P=k-g;return S*S+O*O>D*D+P*P&&(w=E,A=k),{cx:w,cy:A,x01:-u,y01:-h,x11:w*(i/_-1),y11:A*(i/_-1)}}function Rs(){var t=Ps,n=Ls,e=os(0),r=null,i=Ts,o=js,a=$s,s=null;function l(){var l,c,u=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-ks,f=o.apply(this,arguments)-ks,p=xs(f-d),m=f>d;if(s||(s=l=es()),h<u&&(c=h,h=u,u=c),h>As)if(p>Ss-As)s.moveTo(h*bs(d),h*Cs(d)),s.arc(0,0,h,d,f,!m),u>As&&(s.moveTo(u*bs(f),u*Cs(f)),s.arc(0,0,u,f,d,m));else{var y,g,x=d,v=f,b=d,_=f,M=p,C=p,w=a.apply(this,arguments)/2,A=w>As&&(r?+r.apply(this,arguments):ws(u*u+h*h)),E=Ms(xs(h-u)/2,+e.apply(this,arguments)),k=E,S=E;if(A>As){var O=Ds(A/u*Cs(w)),D=Ds(A/h*Cs(w));(M-=2*O)>As?(b+=O*=m?1:-1,_-=O):(M=0,b=_=(d+f)/2),(C-=2*D)>As?(x+=D*=m?1:-1,v-=D):(C=0,x=v=(d+f)/2)}var P=h*bs(x),L=h*Cs(x),T=u*bs(_),j=u*Cs(_);if(E>As){var $,N=h*bs(v),z=h*Cs(v),R=u*bs(b),I=u*Cs(b);if(p<Es&&($=Ns(P,L,R,I,N,z,T,j))){var F=P-$[0],B=L-$[1],W=N-$[0],V=z-$[1],U=1/Cs(Os((F*W+B*V)/(ws(F*F+B*B)*ws(W*W+V*V)))/2),q=ws($[0]*$[0]+$[1]*$[1]);k=Ms(E,(u-q)/(U-1)),S=Ms(E,(h-q)/(U+1))}}C>As?S>As?(y=zs(R,I,P,L,h,S,m),g=zs(N,z,T,j,h,S,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),S<E?s.arc(y.cx,y.cy,S,vs(y.y01,y.x01),vs(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,S,vs(y.y01,y.x01),vs(y.y11,y.x11),!m),s.arc(0,0,h,vs(y.cy+y.y11,y.cx+y.x11),vs(g.cy+g.y11,g.cx+g.x11),!m),s.arc(g.cx,g.cy,S,vs(g.y11,g.x11),vs(g.y01,g.x01),!m))):(s.moveTo(P,L),s.arc(0,0,h,x,v,!m)):s.moveTo(P,L),u>As&&M>As?k>As?(y=zs(T,j,N,z,u,-k,m),g=zs(P,L,R,I,u,-k,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),k<E?s.arc(y.cx,y.cy,k,vs(y.y01,y.x01),vs(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,k,vs(y.y01,y.x01),vs(y.y11,y.x11),!m),s.arc(0,0,u,vs(y.cy+y.y11,y.cx+y.x11),vs(g.cy+g.y11,g.cx+g.x11),m),s.arc(g.cx,g.cy,k,vs(g.y11,g.x11),vs(g.y01,g.x01),!m))):s.arc(0,0,u,_,b,m):s.lineTo(T,j)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Es/2;return[bs(r)*e,Cs(r)*e]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),l):n},l.cornerRadius=function(t){return arguments.length?(e="function"==typeof t?t:os(+t),l):e},l.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:os(+t),l):r},l.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),l):i},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:os(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:os(+t),l):a},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function Is(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Fs(t){return t}function Bs(){var t=Fs,n=Is,e=null,r=os(0),i=os(Ss),o=os(0);function a(a){var s,l,c,u,h,d=(a=is(a)).length,f=0,p=new Array(d),m=new Array(d),y=+r.apply(this,arguments),g=Math.min(Ss,Math.max(-Ss,i.apply(this,arguments)-y)),x=Math.min(Math.abs(g)/d,o.apply(this,arguments)),v=x*(g<0?-1:1);for(s=0;s<d;++s)(h=m[p[s]=s]=+t(a[s],s,a))>0&&(f+=h);for(null!=n?p.sort((function(t,e){return n(m[t],m[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),s=0,c=f?(g-d*v)/f:0;s<d;++s,y=u)l=p[s],u=y+((h=m[l])>0?h*c:0)+v,m[l]={data:a[l],index:s,value:h,startAngle:y,endAngle:u,padAngle:x};return m}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:os(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:os(+t),a):o},a}function Ws(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}class Vs{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}class Us{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,0==this._point++)this._x0=t,this._y0=n;else{const e=Ws(this._x0,this._y0),r=Ws(this._x0,this._y0=(this._y0+n)/2),i=Ws(t,this._y0),o=Ws(t,n);this._context.moveTo(...e),this._context.bezierCurveTo(...r,...i,...o)}}}function qs(t){return new Vs(t,!0)}function Hs(t){return new Vs(t,!1)}function Gs(t){return new Us(t)}function Ks(t){return t.source}function Ys(t){return t.target}function Xs(t){let n=Ks,e=Ys,r=ls,i=cs,o=null,a=null;function s(){let s;const l=rs.call(arguments),c=n.apply(this,l),u=e.apply(this,l);if(null==o&&(a=t(s=es())),a.lineStart(),l[0]=c,a.point(+r.apply(this,l),+i.apply(this,l)),l[0]=u,a.point(+r.apply(this,l),+i.apply(this,l)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(n=t,s):n},s.target=function(t){return arguments.length?(e=t,s):e},s.x=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:os(+t),s):i},s.context=function(n){return arguments.length?(null==n?o=a=null:a=t(o=n),s):o},s}function Zs(){return Xs(qs)}function Qs(){return Xs(Hs)}function Js(){const t=Xs(Gs);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const tl=ws(3);var nl={draw(t,n){const e=.59436*ws(n+Ms(n/28,.75)),r=e/2,i=r*tl;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},el={draw(t,n){const e=ws(n/Es);t.moveTo(e,0),t.arc(0,0,e,0,Ss)}},rl={draw(t,n){const e=ws(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};const il=ws(1/3),ol=2*il;var al={draw(t,n){const e=ws(n/ol),r=e*il;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},sl={draw(t,n){const e=.62625*ws(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},ll={draw(t,n){const e=.87559*ws(n-Ms(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},cl={draw(t,n){const e=ws(n),r=-e/2;t.rect(r,r,e,e)}},ul={draw(t,n){const e=.4431*ws(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}};const hl=Cs(Es/10)/Cs(7*Es/10),dl=Cs(Ss/10)*hl,fl=-bs(Ss/10)*hl;var pl={draw(t,n){const e=ws(.8908130915292852*n),r=dl*e,i=fl*e;t.moveTo(0,-e),t.lineTo(r,i);for(let n=1;n<5;++n){const o=Ss*n/5,a=bs(o),s=Cs(o);t.lineTo(s*e,-a*e),t.lineTo(a*r-s*i,s*r+a*i)}t.closePath()}};const ml=ws(3);var yl={draw(t,n){const e=-ws(n/(3*ml));t.moveTo(0,2*e),t.lineTo(-ml*e,-e),t.lineTo(ml*e,-e),t.closePath()}};const gl=ws(3);var xl={draw(t,n){const e=.6824*ws(n),r=e/2,i=e*gl/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}};const vl=-.5,bl=ws(3)/2,_l=1/ws(12),Ml=3*(_l/2+1);var Cl={draw(t,n){const e=ws(n/Ml),r=e/2,i=e*_l,o=r,a=e*_l+e,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(vl*r-bl*i,bl*r+vl*i),t.lineTo(vl*o-bl*a,bl*o+vl*a),t.lineTo(vl*s-bl*l,bl*s+vl*l),t.lineTo(vl*r+bl*i,vl*i-bl*r),t.lineTo(vl*o+bl*a,vl*a-bl*o),t.lineTo(vl*s+bl*l,vl*l-bl*s),t.closePath()}},wl={draw(t,n){const e=.6189*ws(n-Ms(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}};const Al=[el,rl,al,cl,pl,yl,Cl],El=[el,ll,wl,xl,nl,ul,sl];function kl(t,n){let e=null;function r(){let r;if(e||(e=r=es()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return t="function"==typeof t?t:os(t||el),n="function"==typeof n?n:os(void 0===n?64:+n),r.type=function(n){return arguments.length?(t="function"==typeof n?n:os(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:os(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function Sl(){}function Ol(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Dl(t){this._context=t}function Pl(t){return new Dl(t)}function Ll(t){this._context=t}function Tl(t){return new Ll(t)}function jl(t){this._context=t}function $l(t){return new jl(t)}function Nl(t,n){this._basis=new Dl(t),this._beta=n}Dl.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:Ol(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);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:Ol(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Ll.prototype={areaStart:Sl,areaEnd:Sl,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)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Ol(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},jl.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||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Ol(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,s=n[e]-o,l=-1;++l<=e;)r=l/e,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*n[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};var zl=function t(n){function e(t){return 1===n?new Dl(t):new Nl(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function Rl(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Il(t,n){this._context=t,this._k=(1-n)/6}Il.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:Rl(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Fl=function t(n){function e(t){return new Il(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Bl(t,n){this._context=t,this._k=(1-n)/6}Bl.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Wl=function t(n){function e(t){return new Bl(t,n)}return e.tension=function(n){return t(+n)},e}(0);function Vl(t,n){this._context=t,this._k=(1-n)/6}Vl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rl(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ul=function t(n){function e(t){return new Vl(t,n)}return e.tension=function(n){return t(+n)},e}(0);function ql(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>As){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>As){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/u,a=(a*c+t._y1*t._l23_2a-e*t._l12_2a)/u}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Hl(t,n){this._context=t,this._alpha=n}Hl.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)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:ql(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Gl=function t(n){function e(t){return n?new Hl(t,n):new Il(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Kl(t,n){this._context=t,this._alpha=n}Kl.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:ql(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Yl=function t(n){function e(t){return n?new Kl(t,n):new Bl(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Xl(t,n){this._context=t,this._alpha=n}Xl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ql(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Zl=function t(n){function e(t){return n?new Xl(t,n):new Vl(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function Ql(t){this._context=t}function Jl(t){return new Ql(t)}function tc(t){return t<0?-1:1}function nc(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(tc(o)+tc(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function ec(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function rc(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*n,o-s,a-s*e,o,a)}function ic(t){this._context=t}function oc(t){this._context=new ac(t)}function ac(t){this._context=t}function sc(t){return new ic(t)}function lc(t){return new oc(t)}function cc(t){this._context=t}function uc(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<r-1;++n)i[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],n=1;n<r;++n)e=i[n]/o[n-1],o[n]-=e,a[n]-=e*a[n-1];for(i[r-1]=a[r-1]/o[r-1],n=r-2;n>=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n<r-1;++n)o[n]=2*t[n+1]-i[n+1];return[i,o]}function hc(t){return new cc(t)}function dc(t,n){this._context=t,this._t=n}function fc(t){return new dc(t,.5)}function pc(t){return new dc(t,0)}function mc(t){return new dc(t,1)}function yc(t,n){if((i=t.length)>1)for(var e,r,i,o=1,a=t[n[0]],s=a.length;o<i;++o)for(r=a,a=t[n[o]],e=0;e<s;++e)a[e][1]+=a[e][0]=isNaN(r[e][1])?r[e][0]:r[e][1]}function gc(t){for(var n=t.length,e=new Array(n);--n>=0;)e[n]=n;return e}function xc(t,n){return t[n]}function vc(t){const n=[];return n.key=t,n}function bc(){var t=os([]),n=gc,e=yc,r=xc;function i(i){var o,a,s=Array.from(t.apply(this,arguments),vc),l=s.length,c=-1;for(const t of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=is(n(s));o<l;++o)s[a[o]].index=o;return e(s,a),s}return i.keys=function(n){return arguments.length?(t="function"==typeof n?n:os(Array.from(n)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:os(+t),i):r},i.order=function(t){return arguments.length?(n=null==t?gc:"function"==typeof t?t:os(Array.from(t)),i):n},i.offset=function(t){return arguments.length?(e=null==t?yc:t,i):e},i}function _c(t,n){if((r=t.length)>0){for(var e,r,i,o=0,a=t[0].length;o<a;++o){for(i=e=0;e<r;++e)i+=t[e][o][1]||0;if(i)for(e=0;e<r;++e)t[e][o][1]/=i}yc(t,n)}}function Mc(t,n){if((s=t.length)>0)for(var e,r,i,o,a,s,l=0,c=t[n[0]].length;l<c;++l)for(o=a=0,e=0;e<s;++e)(i=(r=t[n[e]][l])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function Cc(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<e;++a)s+=t[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}yc(t,n)}}function wc(t,n){if((i=t.length)>0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a<r;++a){for(var s=0,l=0,c=0;s<i;++s){for(var u=t[n[s]],h=u[a][1]||0,d=(h-(u[a-1][1]||0))/2,f=0;f<s;++f){var p=t[n[f]];d+=(p[a][1]||0)-(p[a-1][1]||0)}l+=h,c+=d*h}e[a-1][1]+=e[a-1][0]=o,l&&(o-=c/l)}e[a-1][1]+=e[a-1][0]=o,yc(t,n)}}function Ac(t){var n=t.map(Ec);return gc(t).sort((function(t,e){return n[t]-n[e]}))}function Ec(t){for(var n,e=-1,r=0,i=t.length,o=-1/0;++e<i;)(n=+t[e][1])>o&&(o=n,r=e);return r}function kc(t){var n=t.map(Sc);return gc(t).sort((function(t,e){return n[t]-n[e]}))}function Sc(t){for(var n,e=0,r=-1,i=t.length;++r<i;)(n=+t[r][1])&&(e+=n);return e}function Oc(t){return kc(t).reverse()}function Dc(t){var n,e,r=t.length,i=t.map(Sc),o=Ac(t),a=0,s=0,l=[],c=[];for(n=0;n<r;++n)e=o[n],a<s?(a+=i[e],l.push(e)):(s+=i[e],c.push(e));return c.reverse().concat(l)}function Pc(t){return gc(t).reverse()}Ql.prototype={areaStart:Sl,areaEnd:Sl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,n){t=+t,n=+n,this._point?this._context.lineTo(t,n):(this._point=1,this._context.moveTo(t,n))}},ic.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:rc(this,this._t0,ec(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var e=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,rc(this,ec(this,e=nc(this,t,n)),e);break;default:rc(this,this._t0,e=nc(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=e}}},(oc.prototype=Object.create(ic.prototype)).point=function(t,n){ic.prototype.point.call(this,n,t)},ac.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,e,r,i,o){this._context.bezierCurveTo(n,t,r,e,o,i)}},cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,e=t.length;if(e)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===e)this._context.lineTo(t[1],n[1]);else for(var r=uc(t),i=uc(n),o=0,a=1;a<e;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],n[a]);(this._line||0!==this._line&&1===e)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},dc.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&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};const Lc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,Tc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),jc=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),$c=t=>`curve${(t=>t&&t[0].toUpperCase()+t.slice(1))(t)}`,Nc=t=>{const{interpolation:n}=t;if("function"==typeof n)return n;if("string"==typeof n){const{polar:e,openCurve:r=!e}=t,i=r?$c(n):(t=>`${$c(t)}Closed`)(n);return u[i]}return ss},zc=t=>{const{polar:n,scale:e,horizontal:r}=t;return n?ys().defined(Lc).curve(Nc(t)).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).radius(jc(e)):us().defined(Lc).curve(Nc(t)).x(r?jc(e):Tc(e)).y(r?Tc(e):jc(e))};function Rc(){return Rc=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Rc.apply(this,arguments)}const Ic=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("path",Rc({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("path",Rc({},s,{ref:n}))})),Fc={startsWith:["data-","aria-"],exactMatch:[]};function Bc(t,n){if(null==t)throw new Error(n)}const Wc=t=>{const n={...t};return Object.fromEntries(Object.entries(n).filter((t=>{let[n]=t;return(t=>!(!(t=>{let n=!1;return Fc.startsWith.forEach((e=>{new RegExp(`\\b(${e})(\\w|-)+`,"g").test(t)&&(n=!0)})),n})(t)&&!(t=>Fc.exactMatch.includes(t))(t)))(n)})).map((n=>{let[e,r]=n;return[e,nt(r,t)]})))},Vc=(t,n)=>A.cloneElement(t,Wc(n)),Uc=t=>null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0,qc=t=>n=>t.x(void 0!==n._x1?n._x1:n._x),Hc=t=>n=>t.y(void 0!==n._y1?n._y1:n._y),Gc=t=>n=>t.y(n._y0),Kc={groupComponent:E().createElement("g",null),pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Yc=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({fill:"black"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Kc)),{ariaLabel:e,role:r,shapeRendering:i,className:o,polar:a,origin:s,data:l,pathComponent:c,events:u,groupComponent:h,clipPath:d,id:f,style:p,desc:m,tabIndex:y}=n,g=Wc(n),x=a&&s?`translate(${s.x}, ${s.y})`:void 0,v=n.transform||x,b=p.stroke&&"none"!==p.stroke&&"transparent"!==p.stroke,_=(t=>{const{polar:n,scale:e}=t,r=Nc(t);return n?gs().defined(Uc).curve(r).angle((t=>n=>-1*t.x(void 0!==n._x1?n._x1:n._x)+Math.PI/2)(e)).outerRadius(Hc(e)).innerRadius(Gc(e)):(t=>{const{horizontal:n,scale:e}=t,r=Nc(t);return n?hs().defined(Uc).curve(r).x0(Gc(e)).x1(Hc(e)).y(qc(e)):hs().defined(Uc).curve(r).x(qc(e)).y1(Hc(e)).y0(Gc(e))})(t)})(n),M=b&&zc(n),C=p.stroke?"none":p.fill,w={"aria-label":e,className:o,role:r,shapeRendering:i,transform:v,...u,clipPath:d,tabIndex:y},A=E().cloneElement(c,Object.assign({key:`${f}-area`,style:Object.assign({},p,{stroke:C}),d:_(l),desc:m,tabIndex:y},w,g)),k=b?E().cloneElement(c,Object.assign({key:`${f}-area-stroke`,style:Object.assign({},p,{fill:"none"}),d:M(l)},w)):null;return b?E().cloneElement(h,g,[A,k]):A};var Xc=r(660),Zc=r.n(Xc);function Qc(){return Qc=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Qc.apply(this,arguments)}const Jc=E().forwardRef(((t,n)=>E().createElement("svg",Qc({ref:n},t))));function tu(t){return n=>{t.forEach((t=>{ct(t)?t(n):null!=t&&(t.current=n)}))}}const nu=E().createContext(void 0);nu.displayName="PortalContext";const eu=()=>E().useContext(nu),ru=t=>{let{children:n}=t;const[e,r]=E().useState(new Map),i=E().useCallback(((t,n)=>{r((e=>{const r=new Map(e);return r.set(t,n),r}))}),[r]),o=E().useCallback((t=>{r((n=>{const e=new Map(n);return e.delete(t),e}))}),[r]),a=E().useMemo((()=>({addChild:i,removeChild:o,children:e})),[i,o,e]);return E().createElement(nu.Provider,{value:a},n)},iu=t=>{let{as:n,...e}=t;const r=eu();if(!r)return null;const i=Array.from(r.children.values());return E().cloneElement(n,e,i)};function ou(){return ou=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ou.apply(this,arguments)}const au={className:"VictoryContainer",portalComponent:E().createElement(Jc,null),portalZIndex:99,responsive:!0,role:"img"};function su(t){const n={...au,...t},{title:e,desc:r,width:i,height:o,responsive:a}=n,s=(0,A.useRef)(null),l=(0,A.useRef)(Zc()("victory-container-")),c=n.containerId??l.current,u=t=>`${c}-${t}`,h=Wc(n),d=a?{width:"100%",height:"100%"}:{width:i,height:o},f=a?`0 0 ${i} ${o}`:void 0,p=a?n.preserveAspectRatio:void 0,m=[e&&u("title"),n["aria-labelledby"]].filter(Boolean).join(" ")||void 0,y=[r&&u("desc"),n["aria-describedby"]].filter(Boolean).join(" ")||void 0,g=u("title"),x=u("desc");return{...n,titleId:g,descId:x,dimensions:d,viewBox:f,preserveAspectRatio:p,ariaLabelledBy:m,ariaDescribedBy:y,userProps:h,localContainerRef:s}}const lu=t=>{const{role:n,title:e,desc:r,children:i,className:o,portalZIndex:a,portalComponent:s,width:l,height:c,style:u,tabIndex:h,responsive:d,events:f,ouiaId:p,ouiaSafe:m,ouiaType:y,dimensions:g,ariaDescribedBy:x,ariaLabelledBy:v,viewBox:b,preserveAspectRatio:_,userProps:M,titleId:C,descId:w,containerRef:A,localContainerRef:k}=su(t);return E().useEffect((()=>{if(!f?.onWheel)return;const t=t=>t.preventDefault(),n=k?.current;return n?.addEventListener("wheel",t),()=>{n?.removeEventListener("wheel",t)}}),[]),E().createElement("div",{className:o,style:{...u,width:d?u?.width:g.width,height:d?u?.height:g.height,pointerEvents:u?.pointerEvents??"none",touchAction:u?.touchAction??"none",position:u?.position??"relative"},"data-ouia-component-id":p,"data-ouia-component-type":y,"data-ouia-safe":m,ref:tu([k,A])},E().createElement(ru,null,E().createElement("svg",ou({width:l,height:c,tabIndex:h,role:n,"aria-labelledby":v,"aria-describedby":x,viewBox:b,preserveAspectRatio:_,style:{...g,pointerEvents:"all"}},M,f),e?E().createElement("title",{id:C},e):null,r?E().createElement("desc",{id:w},r):null,i),E().createElement("div",{style:{...g,zIndex:a,position:"absolute",top:0,left:0}},E().createElement(iu,{as:s,width:l,height:c,viewBox:b,preserveAspectRatio:_,style:{...g,overflow:"visible"}}))))};lu.role="container";const cu=t=>E().createElement("defs",null,E().createElement("clipPath",{id:t.clipId?.toString()},t.children));function uu(){return uu=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},uu.apply(this,arguments)}const hu=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("circle",uu({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("circle",uu({},s,{ref:n}))}));function du(){return du=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},du.apply(this,arguments)}const fu=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("rect",du({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("rect",du({},s,{ref:n}))}));class pu extends E().Component{static displayName="VictoryClipContainer";static role="container";static defaultProps={circleComponent:E().createElement(hu,null),rectComponent:E().createElement(fu,null),clipPathComponent:E().createElement(cu,null),groupComponent:E().createElement("g",null)};constructor(t){super(t),this.state={clipId:t?.clipId}}componentDidMount(){this.state.clipId||this.setState({clipId:Zc()("victory-clip-")})}calculateAttributes(t){const{polar:n,origin:e,clipWidth:r=0,clipHeight:i=0,translateX:o=0,translateY:a=0}=t,s=Z(t.clipPadding),l=t.radius||ot(t);return{x:(n?e.x:o)-s.left,y:(n?e.y:a)-s.top,width:Math.max((n?l:r)+s.left+s.right,0),height:Math.max((n?l:i)+s.top+s.bottom,0)}}renderClippedGroup(t,n){const e=Wc(t),{style:r,events:i,transform:o,children:a,className:s,groupComponent:l,tabIndex:c}=t,u=this.renderClipComponent(t,n),h=Object.assign({className:s,style:r,transform:o,key:`clipped-group-${n}`,clipPath:`url(#${n})`},i);return E().cloneElement(l,{...h,tabIndex:c,...e},[u,...E().Children.toArray(a)])}renderGroup(t){const{style:n,events:e,transform:r,children:i,className:o,groupComponent:a,tabIndex:s}=t;return E().cloneElement(a,Object.assign({className:o,style:n,transform:r,"aria-label":t["aria-label"],tabIndex:s},e),i)}renderClipComponent(t,n){const{polar:e,origin:r,clipWidth:i=0,clipHeight:o=0,translateX:a=0,translateY:s=0,circleComponent:l,rectComponent:c,clipPathComponent:u}=t,{top:h,bottom:d,left:f,right:p}=Z(t.clipPadding);let m;if(e){const n=t.radius||ot(t),e={r:Math.max(n+f+p,n+h+d,0),cx:r.x-f,cy:r.y-h};m=E().cloneElement(l,e)}else{const t={x:a-f,y:s-h,width:Math.max(i+f+p,0),height:Math.max(o+h+d,0)};m=E().cloneElement(c,t)}return E().cloneElement(u,Object.assign({key:`clip-path-${n}`},t,{clipId:n}),m)}getClipValue(t,n){const e={x:t.clipWidth,y:t.clipHeight};if(void 0!==e[n])return e[n];const r=st(t,n);return r&&Math.abs(r[0]-r[1])||void 0}getTranslateValue(t,n){const e={x:t.translateX,y:t.translateY};if(void 0!==e[n])return e[n];const r=st(t,n);return r?Math.min(...r):void 0}render(){const t=this.getClipValue(this.props,"y"),n=this.getClipValue(this.props,"x");if(void 0===n||void 0===t)return this.renderGroup(this.props);const e=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),i=U()({},this.props,{clipHeight:t,clipWidth:n,translateX:e,translateY:r});return this.renderClippedGroup(i,this.state.clipId)}}function mu(t){}const yu={groupComponent:E().createElement("g",null)},gu=t=>{const n={...yu,...t},[e]=(0,A.useState)(Zc()()),r=eu(),i=Array.isArray(n.children)?n.children[0]:n.children,{groupComponent:o}=n,a=i&&i.props||{},s=a.groupComponent?{groupComponent:o,standalone:!1}:{},l=U()(s,a,K(n,["children","groupComponent"]),{key:a.key??e}),c=i&&E().cloneElement(i,l);return E().useEffect((()=>{r?.addChild(e,c)}),[n.children]),E().useEffect((()=>()=>r?.removeChild(e)),[]),r?null:c};gu.role="portal";const xu=t=>{const{children:n,desc:e,id:r,origin:i,tabIndex:o,title:a,...s}=t,l={id:nt(r,t)?.toString(),tabIndex:nt(o,t),...s};return E().createElement("text",l,a&&E().createElement("title",null,a),e&&E().createElement("desc",null,e),n)},vu=t=>{const{desc:n,id:e,tabIndex:r,origin:i,...o}=t,a={id:nt(e,t)?.toString(),tabIndex:nt(r,t),...o};return E().createElement("tspan",a)},bu=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],_u="#252525",Mu="#969696",Cu={width:450,height:300,padding:50,colorScale:bu},wu={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:_u,stroke:"transparent"},Au=Object.assign({textAnchor:"middle"},wu),Eu={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:bu,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:_u},labels:wu}},Cu),axis:Object.assign({style:{axis:{fill:"transparent",stroke:_u,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},Au,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:wu}},Cu),bar:Object.assign({style:{data:{fill:_u,padding:8,strokeWidth:0},labels:wu}},Cu),boxplot:Object.assign({style:{max:{padding:8,stroke:_u,strokeWidth:1},maxLabels:Object.assign({},wu,{padding:3}),median:{padding:8,stroke:_u,strokeWidth:1},medianLabels:Object.assign({},wu,{padding:3}),min:{padding:8,stroke:_u,strokeWidth:1},minLabels:Object.assign({},wu,{padding:3}),q1:{padding:8,fill:Mu},q1Labels:Object.assign({},wu,{padding:3}),q3:{padding:8,fill:Mu},q3Labels:Object.assign({},wu,{padding:3})},boxWidth:20},Cu),candlestick:Object.assign({style:{data:{stroke:_u,strokeWidth:1},labels:Object.assign({},wu,{padding:5})},candleColors:{positive:"#ffffff",negative:_u}},Cu),chart:Cu,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:_u,strokeWidth:2},labels:wu}},Cu),group:Object.assign({colorScale:bu},Cu),histogram:Object.assign({style:{data:{fill:Mu,stroke:_u,strokeWidth:2},labels:wu}},Cu),legend:{colorScale:bu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:wu,title:Object.assign({},wu,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:_u,strokeWidth:2},labels:wu}},Cu),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},wu,{padding:20})},colorScale:bu,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:_u,stroke:"transparent",strokeWidth:0},labels:wu}},Cu),stack:Object.assign({colorScale:bu},Cu),tooltip:{style:Object.assign({},wu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:_u,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},wu,{padding:5,pointerEvents:"none"}),flyout:{stroke:_u,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Cu)},ku="#FFF59D",Su="#F4511E",Ou="#8BC34A",Du="#00796B",Pu="#006064",Lu=[Su,ku,"#DCE775",Ou,Du,Pu],Tu="#ECEFF1",ju="#90A4AE",$u="#455A64",Nu="#212121",zu={blue:"#4F7DA1",pink:"#E2A37F",teal:Du,purple:"#DF948A",green:Ou,orange:Su,cyan:Pu,red:"#DF5A49",yellow:ku},Ru=[Tu,ju,$u,Nu],Iu={width:350,height:350,padding:50},Fu={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:$u,stroke:"transparent",strokeWidth:0},Bu=Object.assign({textAnchor:"middle"},Fu),Wu="round",Vu="round",Uu={palette:{colors:zu,grayscale:Ru,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:Nu},labels:Fu}},Iu),axis:Object.assign({style:{axis:{fill:"transparent",stroke:ju,strokeWidth:2,strokeLinecap:Wu,strokeLinejoin:Vu},axisLabel:Object.assign({},Bu,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Tu,strokeDasharray:"10, 5",strokeLinecap:Wu,strokeLinejoin:Vu,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:ju,strokeWidth:1,strokeLinecap:Wu,strokeLinejoin:Vu},tickLabels:Object.assign({},Fu,{fill:$u})}},Iu),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:$u,padding:8,strokeWidth:0},labels:Fu}},Iu),boxplot:Object.assign({style:{max:{padding:8,stroke:$u,strokeWidth:1},maxLabels:Object.assign({},Fu,{padding:3}),median:{padding:8,stroke:$u,strokeWidth:1},medianLabels:Object.assign({},Fu,{padding:3}),min:{padding:8,stroke:$u,strokeWidth:1},minLabels:Object.assign({},Fu,{padding:3}),q1:{padding:8,fill:$u},q1Labels:Object.assign({},Fu,{padding:3}),q3:{padding:8,fill:$u},q3Labels:Object.assign({},Fu,{padding:3})},boxWidth:20},Iu),candlestick:Object.assign({style:{data:{stroke:$u},labels:Object.assign({},Fu,{padding:5})},candleColors:{positive:"#ffffff",negative:$u}},Iu),chart:Iu,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:$u,strokeWidth:2},labels:Fu}},Iu),group:Object.assign({colorScale:Lu},Iu),histogram:Object.assign({style:{data:{fill:$u,stroke:Nu,strokeWidth:2},labels:Fu}},Iu),legend:{colorScale:Lu,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Fu,title:Object.assign({},Fu,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:$u,strokeWidth:2},labels:Fu}},Iu),pie:Object.assign({colorScale:Lu,style:{data:{padding:8,stroke:Tu,strokeWidth:1},labels:Object.assign({},Fu,{padding:20})}},Iu),scatter:Object.assign({style:{data:{fill:$u,opacity:1,stroke:"transparent",strokeWidth:0},labels:Fu}},Iu),stack:Object.assign({colorScale:Lu},Iu),tooltip:{style:Object.assign({},Fu,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Nu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},Fu,{padding:5,pointerEvents:"none"}),flyout:{stroke:Nu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Iu)},qu="#FFFFFF",Hu="#F2F2F2",Gu="#E0E0E0",Ku="#D1D1D1",Yu="#757575",Xu="#424242",Zu="#292929",Qu="#FCB400",Ju="#FF6F2C",th={100:"#FFDCE5",300:"#FF9EB7",500:"#F82B60",700:"#D31A3D",900:"#BA1E45"},nh="#8B46FF",eh={100:"#CFDFFF",300:"#9CC7FF",500:"#2D7FF9",700:"#0056B3",900:"#2750AE"},rh="#18BFFF",ih="#20D9D2",oh={100:"#D1F7C4",300:"#93E088",500:"#20C933",700:"#1B9B2A",900:"#338A17"},ah={blue:eh[500],cyan:rh,green:oh[500],yellow:Qu,orange:Ju,red:th[500],purple:nh,teal:ih},sh=Object.values(ah),lh=[Hu,Gu,Yu,Xu,Zu],ch=["#FFD66E",Qu,Ju,"#D74D26",th[500]],uh=[nh,eh[500],rh,ih,oh[500]],hh=[oh[900],oh[500],Qu,Ju,th[500]],dh=Object.values(th),fh=Object.values(oh),ph=Object.values(eh),mh=eh[500],yh={width:450,height:300,padding:60,colorScale:sh},gh={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:Zu,stroke:"transparent"},xh=Object.assign({textAnchor:"middle"},gh),vh="10, 5",bh="round",_h="round",Mh={grayscale:Eu,material:Uu,clean:{palette:{colors:ah,grayscale:lh,qualitative:sh,heatmap:hh,warm:ch,cool:uh,red:dh,green:fh,blue:ph},area:Object.assign({style:{data:{fill:mh,strokeWidth:2,fillOpacity:.5},labels:gh}},yh),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Yu,strokeWidth:1,strokeLinecap:bh,strokeLinejoin:_h},axisLabel:Object.assign({},xh,{padding:35,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:gh}},yh),polarAxis:Object.assign({style:{axis:{stroke:Yu},grid:{stroke:Ku,strokeDasharray:vh,strokeLinecap:bh,strokeLinejoin:_h,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ku,strokeWidth:1,strokeLinecap:bh,strokeLinejoin:_h},tickLabels:gh}}),polarDependentAxis:Object.assign({style:{axis:{stroke:Yu},grid:{stroke:Ku,strokeDasharray:vh,strokeLinecap:bh,strokeLinejoin:_h,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Gu,strokeWidth:1,strokeLinecap:bh,strokeLinejoin:_h},tickLabels:gh}}),bar:Object.assign({style:{data:{fill:mh,padding:8,strokeWidth:1,fillOpacity:.5},labels:gh},cornerRadius:{top:1}},yh),boxplot:Object.assign({style:{max:{padding:8,stroke:Ku,strokeWidth:2},maxLabels:Object.assign({},gh,{padding:3}),median:{padding:8,stroke:qu,strokeWidth:2},medianLabels:Object.assign({},gh,{padding:3}),min:{padding:8,stroke:Ku,strokeWidth:2},minLabels:Object.assign({},gh,{padding:3}),q1:{padding:8,fill:sh[0],rx:1,strokeWidth:2},q1Labels:Object.assign({},gh,{padding:3}),q3:{padding:8,fill:sh[1],rx:1},q3Labels:Object.assign({},gh,{padding:3})},boxWidth:20},yh),candlestick:Object.assign({style:{data:{stroke:Gu,strokeWidth:0,rx:1},labels:Object.assign({},gh,{padding:5})},candleColors:{positive:oh[500],negative:th[500]},wickStrokeWidth:2},yh),chart:yh,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Xu,strokeWidth:2,strokeLinecap:bh},labels:gh}},yh),group:Object.assign({colorScale:sh},yh),histogram:Object.assign({style:{data:{fill:rh,fillOpacity:.5},labels:gh},binSpacing:4,cornerRadius:{top:1}},yh),label:gh,legend:{colorScale:sh,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...gh,fontSize:12},title:Object.assign({},gh,{padding:8,fontSize:16}),border:{stroke:"#E8E8E8",strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:mh,strokeWidth:2,strokeLinecap:bh,strokeLinejoin:_h},labels:gh}},yh),pie:Object.assign({style:{parent:{backgroundColor:qu},data:{padding:8,stroke:qu,strokeWidth:1},labels:{...gh,padding:20,fill:"#5C5C5C",fontSize:10}},colorScale:sh,cornerRadius:1},yh),scatter:Object.assign({style:{data:{fill:mh,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...gh,padding:20}}},yh),stack:Object.assign({colorScale:sh},yh),tooltip:{style:Object.assign({},gh,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Gu,strokeWidth:2,fill:qu,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:eh[100],stroke:mh,strokeWidth:2},labels:Object.assign({},gh,{padding:5,pointerEvents:"none"}),flyout:{stroke:Zu,strokeWidth:1,fill:Hu,pointerEvents:"none"},padding:{left:2,bottom:2}}},yh)}},Ch=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];if(e.length>0)return e.reduce(((t,n)=>[t,Ch(n)].join(" ")),Ch(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const n in t)if(t.hasOwnProperty(n)){const e=t[n];i.push(`${n}(${e})`)}return i.join(" ").trim()};function wh(t,n){void 0===n&&(n=Mh.material);const{palette:{grayscale:e=["#cccccc","#969696","#636363","#252525"],qualitative:r=[],heatmap:i=[],warm:o=[],cool:a=[],red:s=[],blue:l=[],green:c=[]}={}}=n,u={grayscale:e,qualitative:r,heatmap:i,warm:o,cool:a,red:s,blue:l,green:c};return t&&u[t]?.length?u[t]:u.grayscale}var Ah=r(1594),Eh=r.n(Ah);const kh={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},Sh={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Oh={em:1,ex:.5},Dh={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Ph=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),Lh=(t,n,e)=>{const r=(t=>t*Math.PI/180)(e);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*n)},Th=(t,n)=>{const e=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=e?Sh.hasOwnProperty(e)?r*Sh[e]:Oh.hasOwnProperty(e)?(n?r*n:r*Dh.fontSize)*Oh[e]:r:r||0,i},jh=(t,n)=>{const e=Array.isArray(t)?t[n]:t,r=U()({},e,Dh);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Th(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Th(String(r.fontSize))})},$h=(t,n)=>{const e=Array.isArray(n)?n[0]&&n[0].angle:n&&n.angle,r=((t,n)=>void 0===t||""===t||null===t?0:Ph(t).reduce(((t,e,r)=>{const i=jh(n,r),o=e.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,n),i=((t,n)=>{if(void 0===t||""===t||null===t)return 0;const e=Ph(t).map(((t,e)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=jh(n,e),s=(t=>{const n=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>kh[t]))||"Helvetica";return kh[n]})(a),l=t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,n)=>n+t),0)*i;return l+o*Math.max(r-1,0)}));return Math.max(...e)})(t,n);return{width:e?Lh(i,r,e):i,height:1.05*(e?Lh(r,i,e):r)}},Nh=Eh()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(n),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),n})),zh=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",Rh=Eh()(((t,n)=>{let e=Nh();e.isConnected||(Nh.cache.clear?.(),e=Nh());const r=Ph(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=jh(n,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),e.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=e.getBoundingClientRect();return e.innerHTML="",{width:n?.angle?Lh(o,i,n?.angle):o,height:n?.angle?Lh(i,o,n?.angle):i}}),((t,n)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(n)?n.map(zh).join():zh(n)}`)),Ih={impl:function(t,n,e){return void 0===e&&(e=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||e?$h(t,n):Rh(t,n)}},Fh=(t,n)=>Ih.impl(t,n),Bh={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', 'Trebuchet MS', sans-serif",stroke:"transparent"},Wh=(t,n)=>t.datum?X(t,t.datum)[n]:0,Vh=t=>{const n=t&&t.fontSize;if("number"==typeof n)return n;if(null==n)return Bh.fontSize;if("string"==typeof n){const t=Number(n.replace("px",""));return isNaN(t)?Bh.fontSize:t}return Bh.fontSize},Uh=function(t,n){return void 0===n&&(n=0),Array.isArray(t)?t[n]||t[0]:t},qh=t=>{const{backgroundStyle:n,backgroundPadding:e}=t;return Array.isArray(n)&&!S()(n)||Array.isArray(e)&&!S()(e)},Hh=(t,n)=>{const{direction:e,textAnchor:r,x:i,dx:o}=t;if("rtl"===e)return i-n;switch(r){case"middle":return Math.round(i-n/2);case"end":return Math.round(i-n);default:return i+(o||0)}},Gh=(t,n)=>{const{verticalAnchor:e,y:r,originalDy:i=0}=t,o=r+i;switch(e){case"start":return Math.floor(o);case"end":return Math.ceil(o-n);default:return Math.floor(o-n/2)}},Kh=(t,n)=>qh(t)?((t,n)=>{const{dy:e,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:c}=t,u=n.map(((t,i)=>{const o=Uh(n,i-1),s=t.textSize,u=t.fontSize*t.lineHeight,h=Math.ceil(u),d=Uh(a,i),f=Uh(a,i-1),p=l&&r||0,m=i&&!l?o.fontSize*o.lineHeight+f.top+f.bottom:e-.5*u-(t.fontSize-t.capHeight);return{textHeight:h,labelSize:s,heightWithPadding:h+d.top+d.bottom,widthWithPadding:s.width+d.left+d.right+p,y:c,fontSize:t.fontSize,dy:m}}));return u.map(((n,e)=>{const r=Hh(t,n.labelSize.width),h=u.slice(0,e+1).reduce(((t,n)=>t+n.dy),c),d=Uh(a,e),f=n.heightWithPadding,p=l?((t,n,e)=>{const{textAnchor:r}=t,i=n.map((t=>t.widthWithPadding)),o=-i.reduce(((t,n)=>t+n),0)/2;switch(r){case"start":return i.reduce(((t,n,r)=>r<e?t+n:t),0);case"end":return i.reduce(((t,n,r)=>r>e?t-n:t),0);default:return i.reduce(((t,n,r)=>r===e?t+n/2:t+(r<e?n:0)),o)}})(t,u,e)+r-d.left:r,m=l?Gh(t,f)-d.top:h,y={key:`tspan-background-${e}`,height:f,style:Uh(o,e),width:n.widthWithPadding,transform:i,x:p-d.left,y:m};return E().cloneElement(s,U()({},s.props,y))}))})(t,n):((t,n)=>{const{dx:e=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=t,c=n.map((t=>t.textSize)),u=a?Math.max(...c.map((t=>t.height))):c.reduce(((t,e,r)=>{const i=r?0:l/2;return t+e.height*(n[r].lineHeight-i)}),0),h=a?c.reduce(((t,n,r)=>{const i=r?e:0;return t+n.width+i}),0):Math.max(...c.map((t=>t.width))),d=Hh(t,h),f=Gh(t,u),p={key:"background",height:u+s.top+s.bottom,style:o,transform:r,width:h+s.left+s.right,x:a?d-s.left:d+e-s.left,y:f};return E().cloneElement(i,U()({},i.props,p))})(t,n),Yh=(t,n,e)=>{const{inline:r}=n,i=Uh(t,e);return e&&!r?((t,n,e)=>{const r=Uh(t,n),i=Uh(t,n-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return qh(e)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,e,n):r?0===e?i.backgroundPadding.top:void 0:i.backgroundPadding.top},Xh={backgroundComponent:E().createElement(fu,null),groupComponent:E().createElement("g",null),direction:"inherit",textComponent:E().createElement(xu,null),tspanComponent:E().createElement(vu,null),capHeight:.71,lineHeight:1},Zh=t=>{const n=(t=>{const n=((t,n)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>nt(t,n)));const e=nt(t,n);return null!=e?Array.isArray(e)?e:`${e}`.split("\n"):void 0})(t.text,t),e=((t,n)=>{if(n.disableInlineStyles){const e=et(t,n);return{fontSize:Vh(e)}}const e=t=>{const e=et(t?U()({},t,Bh):Bh,n);return Object.assign({},e,{fontSize:Vh(e)})};return Array.isArray(t)&&!S()(t)?t.map((t=>e(t))):e(t)})(t.style,Object.assign({},t,{text:n})),r=((t,n)=>{if(t)return Array.isArray(t)&&!S()(t)?t.map((t=>et(t,n))):et(t,n)})(t.backgroundStyle,Object.assign({},t,{text:n,style:e})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((n=>Z(nt(n,t)))):Z(nt(t.backgroundPadding,t)))(Object.assign({},t,{text:n,style:e,backgroundStyle:r})),o=nt(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:e,text:n,id:o})})(U()({},t,Xh));if(null===n.text||void 0===n.text)return null;const e=(t=>{const n=nt(t.ariaLabel,t),e=Uh(t.style),r=(t=>{const n=nt(t.lineHeight,t);return Array.isArray(n)&&S()(n)?[1]:n})(t),i=t.direction?nt(t.direction,t):"inherit",o=t.textAnchor?nt(t.textAnchor,t):e.textAnchor||"start",a=t.verticalAnchor?nt(t.verticalAnchor,t):e.verticalAnchor||"middle",s=t.dx?nt(t.dx,t):0,l=((t,n,e)=>{const r=t.dy?nt(t.dy,t):0,i=t.inline?1:t.text.length,o=nt(t.capHeight,t),a=n?nt(n,t):"middle",s=[...Array(i).keys()].map((n=>Uh(t.style,n).fontSize)),l=[...Array(i).keys()].map((t=>Uh(e,t)));if("start"===a)return r+(o/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce(((t,n)=>t+(o/2+(.5-i)*l[n])*s[n]/i),0);return"end"===a?r+c:r+c/2+o/2*l[i-1]*s[i-1]})(t,a,r),c=void 0!==t.x?t.x:Wh(t,"x"),u=void 0!==t.y?t.y:Wh(t,"y"),h=((t,n,e)=>{const{polar:r}=t,i=Uh(t.style),o=r?Ga(t):0,a=void 0===i.angle?nt(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&nt(l,t);return c||s?Ch(c,s&&{rotate:[s,n,e]}):void 0})(t,c,u);return Object.assign({},t,{ariaLabel:n,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:nt(t.dy,t),transform:h,x:c,y:u})})(n),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=e,l=r.map(((t,n)=>{const e=Uh(i,n),r=Th(`${o}em`,e.fontSize),l=Uh(s,n);return{style:e,fontSize:e.fontSize||Bh.fontSize,capHeight:r,text:t,textSize:Fh(t,e),lineHeight:l,backgroundPadding:Uh(a,n)}})),c=((t,n)=>{const{ariaLabel:e,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:h,transform:d,x:f,y:p,desc:m,id:y,tabIndex:g,tspanComponent:x,textComponent:v}=t,b=Wc(t),_={"aria-label":e,key:"text",...a,direction:s,dx:u,x:f,y:p+h,transform:d,className:i,title:o,desc:nt(m,t),tabIndex:nt(g,t),id:y,...b},M=l.map(((e,i)=>{const o=n[i].style,a={key:`${y}-key-${i}`,x:r?void 0:f,dx:r?u+n[i].backgroundPadding.left:u,dy:Yh(n,t,i),textAnchor:o.textAnchor||c,style:o,children:e};return E().cloneElement(x,a)}));return E().cloneElement(v,_,M)})(e,l);if(n.backgroundStyle){const t=[Kh(e,l),c],r=E().cloneElement(n.groupComponent,{},t);return n.renderInPortal?E().createElement(gu,null,r):r}return n.renderInPortal?E().createElement(gu,null,c):c};function Qh(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function Jh(){return{onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}}}function td(){return{onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}}}Zh.displayName="VictoryLabel",Zh.role="label",Zh.defaultStyles=Bh;var nd=r(7491),ed=r.n(nd);const rd=t=>+t;function id(t){return t*t}function od(t){return t*(2-t)}function ad(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function sd(t){return t*t*t}function ld(t){return--t*t*t+1}function cd(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var ud=function t(n){function e(t){return Math.pow(t,n)}return n=+n,e.exponent=t,e}(3),hd=function t(n){function e(t){return 1-Math.pow(1-t,n)}return n=+n,e.exponent=t,e}(3),dd=function t(n){function e(t){return((t*=2)<=1?Math.pow(t,n):2-Math.pow(2-t,n))/2}return n=+n,e.exponent=t,e}(3),fd=Math.PI,pd=fd/2;function md(t){return 1==+t?1:1-Math.cos(t*pd)}function yd(t){return Math.sin(t*pd)}function gd(t){return(1-Math.cos(fd*t))/2}function xd(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function vd(t){return xd(1-+t)}function bd(t){return 1-xd(t)}function _d(t){return((t*=2)<=1?xd(1-t):2-xd(t-1))/2}function Md(t){return 1-Math.sqrt(1-t*t)}function Cd(t){return Math.sqrt(1- --t*t)}function wd(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Ad=7.5625;function Ed(t){return 1-kd(1-t)}function kd(t){return(t=+t)<.36363636363636365?Ad*t*t:t<.7272727272727273?Ad*(t-=.5454545454545454)*t+.75:t<.9090909090909091?Ad*(t-=.8181818181818182)*t+.9375:Ad*(t-=.9545454545454546)*t+.984375}function Sd(t){return((t*=2)<=1?1-kd(1-t):kd(t-1)+1)/2}var Od=1.70158,Dd=function t(n){function e(t){return(t=+t)*t*(n*(t-1)+t)}return n=+n,e.overshoot=t,e}(Od),Pd=function t(n){function e(t){return--t*t*((t+1)*n+t)+1}return n=+n,e.overshoot=t,e}(Od),Ld=function t(n){function e(t){return((t*=2)<1?t*t*((n+1)*t-n):(t-=2)*t*((n+1)*t+n)+2)/2}return n=+n,e.overshoot=t,e}(Od),Td=2*Math.PI,jd=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Td);function i(t){return n*xd(- --t)*Math.sin((r-t)/e)}return i.amplitude=function(n){return t(n,e*Td)},i.period=function(e){return t(n,e)},i}(1,.3),$d=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Td);function i(t){return 1-n*xd(t=+t)*Math.sin((t+r)/e)}return i.amplitude=function(n){return t(n,e*Td)},i.period=function(e){return t(n,e)},i}(1,.3),Nd=function t(n,e){var r=Math.asin(1/(n=Math.max(1,n)))*(e/=Td);function i(t){return((t=2*t-1)<0?n*xd(-t)*Math.sin((r-t)/e):2-n*xd(t)*Math.sin((r+t)/e))/2}return i.amplitude=function(n){return t(n,e*Td)},i.period=function(e){return t(n,e)},i}(1,.3);const zd=function(t){if(null!==t)switch(typeof t){case"undefined":case"boolean":return!1;case"number":return!isNaN(t)&&t!==Number.POSITIVE_INFINITY&&t!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return t instanceof Date||Array.isArray(t)||L()(t)}return!1},Rd=function(t,n,e){return void 0===e&&(e=0),function(r){return r<e?t:n}},Id=function(t,n){return function(e){return e>=1?n:function(){const r="function"==typeof t?t.apply(this,arguments):t,i="function"==typeof n?n.apply(this,arguments):n;return Gn(r,i)(e)}}},Fd=function(t,n){const e=(t,n)=>t!==n&&zd(t)&&zd(n)?"function"==typeof t||"function"==typeof n?Id(t,n):"object"==typeof t&&L()(t)||"object"==typeof n&&L()(n)?Fd(t,n):Gn(t,n):Rd(t,n),r=t=>Array.isArray(t)?R()(t,"key"):t,i={},o={};let a,s=t,l=n;for(a in null!==s&&"object"==typeof s||(s={}),null!==l&&"object"==typeof l||(l={}),l)a in s?i[a]=e(r(s[a]),r(l[a])):o[a]=l[a];return function(t){for(a in i)o[a]=i[a](t);return o}};var Bd,Wd,Vd=0,Ud=0,qd=0,Hd=0,Gd=0,Kd=0,Yd="object"==typeof performance&&performance.now?performance:Date,Xd="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Zd(){return Gd||(Xd(Qd),Gd=Yd.now()+Kd)}function Qd(){Gd=0}function Jd(){this._call=this._time=this._next=null}function tf(t,n,e){var r=new Jd;return r.restart(t,n,e),r}function nf(){Gd=(Hd=Yd.now())+Kd,Vd=Ud=0;try{!function(){Zd(),++Vd;for(var t,n=Bd;n;)(t=Gd-n._time)>=0&&n._call.call(void 0,t),n=n._next;--Vd}()}finally{Vd=0,function(){for(var t,n,e=Bd,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Bd=n);Wd=t,rf(r)}(),Gd=0}}function ef(){var t=Yd.now(),n=t-Hd;n>1e3&&(Kd-=n,Hd=t)}function rf(t){Vd||(Ud&&(Ud=clearTimeout(Ud)),t-Gd>24?(t<1/0&&(Ud=setTimeout(nf,t-Yd.now()-Kd)),qd&&(qd=clearInterval(qd))):(qd||(Hd=Yd.now(),qd=setInterval(ef,1e3)),Vd=1,Xd(nf)))}Jd.prototype=tf.prototype={constructor:Jd,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Zd():+e)+(null==n?0:+n),this._next||Wd===this||(Wd?Wd._next=this:Bd=this,Wd=this),this._call=t,this._time=e,rf()},stop:function(){this._call&&(this._call=null,this._time=1/0,rf())}};class of{constructor(){this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}bypassAnimation(){this.shouldAnimate=!1}resumeAnimation(){this.shouldAnimate=!0}loop=()=>{this.subscribers.forEach((t=>{t.callback(Zd()-t.startTime,t.duration)}))};start(){this.timer||(this.timer=tf(this.loop))}stop(){this.timer&&(this.timer.stop(),this.timer=null)}subscribe(t,n){const e=this.subscribers.push({startTime:Zd(),callback:t,duration:this.shouldAnimate?n:0});return this.activeSubscriptions++,this.start(),e}unsubscribe(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}const af=E().createContext({transitionTimer:new of,animationTimer:new of});af.displayName="TimerContext";var sf=af;const lf=1e3,cf=t=>{let{duration:n=lf,easing:e="quadInOut",delay:r=0,data:i,children:o,onEnd:a}=t;const[s,l]=E().useState({data:Array.isArray(i)?i[0]:i,animationInfo:{progress:0,animating:!1}}),c=E().useContext(sf).animationTimer,u=E().useRef(Array.isArray(i)?i.slice(1):[]),h=E().useRef(null),d=E().useRef(void 0),f=g[(p=e,`ease${p.charAt(0).toUpperCase()+p.slice(1)}`)];var p;E().useEffect((()=>(u.current.length&&m(),()=>{d.current?c.unsubscribe(d.current):c.stop()})),[]),E().useEffect((()=>{h.current&&s.animationInfo&&s.animationInfo.progress<1?l({data:h.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(c.unsubscribe(d.current),u.current=Array.isArray(i)?i:[i],m())}),[i]);const m=()=>{if(u.current.length){const t=u.current[0];h.current=function(t,n){return t!==n&&zd(t)&&zd(n)?"function"==typeof t||"function"==typeof n?Id(t,n):L()(t)||L()(n)?Fd(t,n):"string"==typeof t||"string"==typeof n?function(t,n){const e=t=>"string"==typeof t?t.replace(/,/g,""):t;return Gn(e(t),e(n))}(t,n):Gn(t,n):Rd(t,n)}(s.data,t),r?setTimeout((()=>{d.current=c.subscribe(y,n)}),r):d.current=c.subscribe(y,n)}else a&&a()},y=t=>{if(!h.current)return;const e=n?t/n:1;if(e>=1)return l({data:h.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),d.current&&c.unsubscribe(d.current),u.current.shift(),void m();l({data:h.current(f(e)),animationInfo:{progress:e,animating:e<1}})};return o(s.data,s.animationInfo)};var uf=r(5346),hf=r.n(uf);function df(t,n){return(t.key||n).toString()}function ff(t){return t.reduce(((t,n,e)=>(t[df(n,e)]=n,t)),{})}function pf(t,n){let e=!1;const r=Object.keys(t).reduce(((t,r)=>(r in n||(e=!0,t[r]=!0),t)),{});return e&&r}function mf(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function yf(t,n){let e=!1,r=!1;const i=(t,n)=>t.map(((o,a)=>o&&o.props&&o.props.children&&n[a]?i(E().Children.toArray(t[a].props.children),E().Children.toArray(n[a].props.children)):((t,n)=>{if(!n||t.type!==n.type)return{};const{entering:i,exiting:o}=function(t,n){const e=t&&ff(t),r=n&&ff(n);return{entering:e&&pf(r,e),exiting:r&&pf(e,r)}}(mf(t),mf(n))||{};return e=e||!!o,r=r||!!i,{entering:i||!1,exiting:o||!1}})(o,n[a]))),o=i(E().Children.toArray(t),E().Children.toArray(n));return{nodesWillExit:e,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function gf(t,n,e){const r=n&&n.nodesWillExit,i=n&&n.nodesWillEnter,o=n&&n.nodesShouldEnter,a=n&&n.nodesShouldLoad,s=n&&n.nodesDoneLoad,l=n&&n.childrenTransitions||[],c={enter:t.animate&&t.animate.onEnter&&t.animate.onEnter.duration,exit:t.animate&&t.animate.onExit&&t.animate.onExit.duration,load:t.animate&&t.animate.onLoad&&t.animate.onLoad.duration,move:t.animate&&t.animate.duration},u=(t,n,r)=>a?function(t,n,r){const i=Object.assign({},t,{onEnd:()=>{e({nodesShouldLoad:!1,nodesDoneLoad:!0})}});let o=n;if(i&&i.onLoad&&!i.onLoad.duration)return{animate:t,data:n};const a=t.onLoad&&t.onLoad.after?t.onLoad.after:hf();return o=n.map(((t,e)=>Object.assign({},t,a(t,e,n)))),{animate:i,data:o}}(r,n):function(t,n,r,i){const o=Object.assign({},t,{onEnd:()=>{e({nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:o,data:r};const a=o.onLoad&&o.onLoad.before?o.onLoad.before:hf();return{animate:o,data:r.map(((t,n)=>Object.assign({},t,a(t,n,r)))),clipWidth:0}}(r,0,n),h=(t,n,r,i)=>function(t,n,r,i,o){const a=t&&t.onExit,s=Object.assign({},t,a);let l=r;if(i){t.onEnd=()=>{e({nodesWillExit:!1})};const n=t.onExit&&t.onExit.before?t.onExit.before:hf();l=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:s,data:l}}(i,0,r,t),d=(t,n,r,i)=>o?function(t,n,r,i){const o=t&&t.onEnter,a=Object.assign({},t,o);let s=n;if(r){a.onEnd=()=>{e({nodesWillEnter:!1})};const t=a.onEnter&&a.onEnter.after?a.onEnter.after:hf();s=n.map(((e,i)=>{const o=df(e,i);return r[o]?Object.assign({},e,t(e,i,n)):e}))}return{animate:a,data:s}}(i,r,t):function(t,n,r,i,o){let a=t,s=r;if(i){a=Object.assign({},t,{onEnd:()=>{e({nodesShouldEnter:!0})}});const n=t.onEnter&&t.onEnter.before?t.onEnter.before:hf();s=r.map(((t,e)=>{const o=(t.key||e).toString();return i[o]?Object.assign({},t,n(t,e,r)):t}))}return{animate:a,data:s}}(i,0,r,t),f=function(t,n){const e=t.props.animate;if(!t.type)return{};const r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){const t=e[n]&&e[n].duration;return void 0!==t?t:r[n]&&r[n].duration}return{}};return function(e,a){const p=mf(e)||[],m=U()({},t.animate,e.props.animate),y=e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;m.onExit=U()({},m.onExit,y&&y.onExit),m.onEnter=U()({},m.onEnter,y&&y.onEnter),m.onLoad=U()({},m.onLoad,y&&y.onLoad);const g=l[a]||l[0];if(!s){const t={duration:void 0!==c.load?c.load:f(e,"onLoad")};return u(0,p,Object.assign({},m,t))}if(r){const t=g&&g.exiting,n=void 0!==c.exit?c.exit:f(e,"onExit"),r=t?{duration:n}:{delay:n};return h(t,0,p,Object.assign({},m,r))}if(i){const t=g&&g.entering,n=void 0!==c.enter?c.enter:f(e,"onEnter"),r=void 0!==c.move?c.move:e.props.animate&&e.props.animate.duration,i={duration:o&&t?n:r};return d(t,0,p,Object.assign({},m,i))}return!n&&m&&m.onExit?function(t,n){const e=t.onEnter&&t.onEnter.after?t.onEnter.after:hf();return{data:n.map(((t,r)=>Object.assign({},t,e(t,r,n))))}}(m,p):{animate:m,data:p}}}function xf(){return xf=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},xf.apply(this,arguments)}class vf extends E().Component{static displayName="VictoryTransition";static contextType=sf;constructor(t,n){super(t,n),this.state={nodesShouldLoad:!1,nodesDoneLoad:!1};const e=this.props.children,r=e.props.polar;this.continuous=!r&&e.type&&!0===e.type.continuous,this.timer=this.context.transitionTimer}componentDidMount(){this.setState({nodesShouldLoad:!0})}shouldComponentUpdate(t){return ed()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(()=>this.timer.resumeAnimation()))),!0}componentWillUnmount(){this.timer.stop()}getTransitionState(t,n){const{animate:e}=t;if(!e)return{};if(e.parentState)return{oldProps:e.parentState.nodesWillExit?t:null,nextProps:n};const r=E().Children.toArray(t.children),i=E().Children.toArray(n.children),{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:l}=yf(r,i);return{nodesWillExit:o,nodesWillEnter:a,childrenTransitions:s,nodesShouldEnter:l,oldProps:o?t:null,nextProps:n}}getDomainFromChildren(t,n){const e=t=>t.reduce(((t,r)=>{if(r.type&&ct(r.type.getDomain)){const e=r.props&&r.type.getDomain(r.props,n);return e?t.concat(e):t}return r.props&&r.props.children?t.concat(e(E().Children.toArray(r.props.children))):t}),[]),r=E().Children.toArray(t.children)[0],i=r.props||{},o=Array.isArray(i.domain)?i.domain:i.domain&&i.domain[n];if(!i.children&&o)return o;const a=e([r]);return 0===a.length?[0,1]:[Et(a),At(a)]}pickProps(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}pickDomainProps(t){const n=t.animate?.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}getClipWidth(t,n){const e=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==e?e:(()=>{const e=st(n.props,"x");return e?Math.abs(e[1]-e[0]):t.width})()}render(){const t=this.pickProps(),n=this.props.animate?.getTransitions?this.props.animate.getTransitions:gf(t,this.state,(t=>this.setState(t))),e=E().Children.toArray(t.children)[0],r=n(e);this.transitionProps=r;const i={x:this.getDomainFromChildren(this.pickDomainProps(t),"x"),y:this.getDomainFromChildren(t,"y")},o=this.getClipWidth(t,e),a=U()({domain:i,clipWidth:o},r,e.props),s=(t.animationWhitelist||[]).concat(["clipWidth"]),l=s.length?H()(a,s):a;return E().createElement(cf,xf({},a.animate,{data:l}),(t=>{if(e.props.groupComponent){const n=this.continuous?E().cloneElement(e.props.groupComponent,{clipWidth:t.clipWidth||0}):e.props.groupComponent;return E().cloneElement(e,U()({animate:null,animating:!0,groupComponent:n},t,a))}return E().cloneElement(e,U()({animate:null,animating:!0},t,a))}))}}var bf=r(4912),_f=r.n(bf);const Mf=/^onGlobal(.*)$/;function Cf(t,n,e,r){const i=t=>{const r=(()=>{const r=t.reduce(((t,e)=>void 0!==e.target?(Array.isArray(e.target)?e.target.includes(n):`${e.target}`==`${n}`)?t.concat(e):t:t.concat(e)),[]);return void 0!==e&&"parent"!==n?r.filter((t=>{const n=t.eventKey,r=t=>!t||`${t}`==`${e}`;return Array.isArray(n)?n.some((t=>r(t))):r(n)})):r})();return Array.isArray(r)&&r.reduce(((t,n)=>n?Object.assign(t,n.eventHandlers):t),{})},o=(()=>Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events)(),a=o&&ct(r)?r(i(o),n):void 0;if(!t.sharedEvents)return a;const s=t.sharedEvents.getEvents,l=t.sharedEvents.events&&s(i(t.sharedEvents.events),n);return Object.assign({},l,a)}function wf(t,n,e,r){if(S()(t))return{};const i=r||this.baseProps,o=(t,n)=>{const{childName:e,target:r,key:o}=t,a="props"===n?i:this.state||{},s=null!=e&&a[e]?a[e]:a;return"parent"===o?s.parent:s[o]&&s[o][r]},a=(t,r)=>{const a="parent"===n?t.childName:t.childName||e,s=t.target||n,l=(n,e)=>{const r=this.state||{};if(!ct(t.mutation))return r;const a=o({childName:e,key:n,target:s},"props"),l=o({childName:e,key:n,target:s},"state"),c=t.mutation(Object.assign({},a,l),i),u=r[e]||{},h=t=>c?(t=>"parent"===s?Object.assign(t,{[n]:Object.assign(t[n]||{},c)}):Object.assign(t,{[n]:Object.assign(t[n]||{},{[s]:c})}))(t):(t=>(t[n]&&t[n][s]&&delete t[n][s],t[n]&&!Object.keys(t[n]).length&&delete t[n],t))(t);return null!=e?Object.assign(r,{[e]:h(u)}):h(r)},c=n=>{const e=(n=>"parent"===s?"parent":"all"===t.eventKey?i[n]?Object.keys(i[n]).filter((t=>"parent"!==t)):Object.keys(i).filter((t=>"parent"!==t)):void 0===t.eventKey&&"parent"===r?i[n]?Object.keys(i[n]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r)(n);return Array.isArray(e)?e.reduce(((t,e)=>Object.assign(t,l(e,n))),{}):l(e,n)},u="all"===a?Object.keys(i).filter((t=>"parent"!==t)):a;return Array.isArray(u)?u.reduce(((t,n)=>Object.assign(t,c(n))),{}):c(u)},s=(n,e,r,i)=>{const o=t[i](n,e,r,this);if(!S()(o)){const t=(t=>{const n=t=>ct(t.callback)&&t.callback,e=(Array.isArray(t)?t.map((t=>n(t))):[n(t)]).filter((t=>!1!==t));return e.length?()=>e.forEach((t=>t())):void 0})(o);this.setState(((t,n)=>Array.isArray(t)?t.reduce(((t,e)=>Object.assign({},t,a(e,n))),{}):a(t,n))(o,r),t)}};return Object.keys(t).reduce(((t,n)=>(t[n]=s,t)),{})}function Af(t,n,e){return t?Object.keys(t).reduce(((r,i)=>(r[i]=r=>t[i](r,e,n,i),r)),{}):{}}function Ef(t,n,e){const r=this.state||{};return e?r[e]&&r[e][t]&&r[e][t][n]:"parent"===t?r[t]&&r[t][n]||r[t]:r[t]&&r[t][n]}function kf(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),r.reduce(((r,i)=>{const o=e[i],a=Sf(t,n[i],e[i],i);return r[i]=a||o,_f()(r,(t=>!S()(t)))}),{})}function Sf(t,n,e,r){return void 0===n&&(n={}),void 0===e&&(e={}),Object.keys(n).reduce(((i,o)=>{const a=e[o]||{},s=n[o]||{};if("parent"===o){const n=Of(t,s,a,{eventKey:o,target:"parent"});i[o]=void 0!==n?Object.assign({},a,n):a}else{const n=W()(Object.keys(s).concat(Object.keys(a)));i[o]=n.reduce(((n,e)=>{const i={eventKey:o,target:e,childName:r},l=Of(t,s[e],a[e],i);return n[e]=void 0!==l?Object.assign({},a[e],l):a[e],_f()(n,(t=>!S()(t)))}),{})}return _f()(i,(t=>!S()(t)))}),{})}function Of(t,n,e,r){const i=(t,n)=>"string"==typeof t[n]?"all"===t[n]||t[n]===r[n]:!!Array.isArray(t[n])&&t[n].map((t=>`${t}`)).includes(r[n]);let o=Array.isArray(t)?t:[t];r.childName&&(o=t.filter((t=>i(t,"childName"))));const a=o.filter((t=>i(t,"target")));if(S()(a))return;const s=a.filter((t=>i(t,"eventKey")));return S()(s)?void 0:s.reduce(((t,r)=>{const i=(r&&ct(r.mutation)?r.mutation:()=>{})(Object.assign({},n,e));return Object.assign({},t,i)}),{})}function Df(t,n){const e=Array.isArray(n)&&n.reduce(((n,e)=>{const r=t[e],i=r&&r.type&&r.type.defaultEvents,o=ct(i)?i(r.props):i;return Array.isArray(o)?n.concat(...o):n}),[]);return e&&e.length?e:void 0}function Pf(t){const n=t.match(Mf);return n&&n[1]&&n[1].toLowerCase()}const Lf=t=>_f()(t,((t,n)=>Mf.test(n))),Tf=t=>N()(t,((t,n)=>Mf.test(n))),jf=t=>Object.assign(t,{nativeEvent:t}),$f=t=>!lt(t._x)&&!lt(t._y),Nf=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function zf(t,n){return void 0===n&&(n={}),class extends t{constructor(t){super(t),this.cacheValues(this.getCalculatedValues(t))}state={};getEventState=Ef.bind(this);getScopedEvents=wf.bind(this);getEvents=(t,n,e)=>Cf.call(this,t,n,e,this.getScopedEvents);externalMutations=this.getExternalMutations(this.props);calculatedState=this.getStateChanges(this.props);globalEvents={};prevGlobalEventKeys=[];boundGlobalEvents={};shouldComponentUpdate(t){const n=this.getExternalMutations(t),e=this.props.animating||this.props.animate,r=!ed()(n,this.externalMutations);if(e||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=n,this.applyExternalMutations(t,n),!0;const i=this.getStateChanges(t);return ed()(this.calculatedState,i)?!ed()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(t){const n=this.getStateChanges(t);this.calculatedState=n;const e=Object.keys(this.globalEvents);Mt(this.prevGlobalEventKeys,e).forEach((t=>this.removeGlobalListener(t))),Mt(e,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=e}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e(jf(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Pf(t),n)}removeGlobalListener(t){window.removeEventListener(Pf(t),this.boundGlobalEvents[t])}getStateChanges(t){if(!this.hasEvents)return{};const e=(t,n)=>{const e=U()({},this.getEventState(t,n),this.getSharedEventState(t,n));return S()(e)?void 0:e};return(n.components||Nf).map((n=>{if(t.standalone||"parent"!==n.name)return void 0!==n.index?e(n.index,n.name):this.dataKeys.map((t=>e(t,n.name))).filter(Boolean)})).filter(Boolean)}applyExternalMutations(t,n){if(!S()(n)){const e=t.externalEventMutations.reduce(((t,n)=>ct(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getCalculatedValues(n){const{sharedEvents:e}=n,r=Df(n,t.expectedComponents),i=e&&ct(e.getEventState)?e.getEventState:()=>{},o=this.getBaseProps(n,i);return{componentEvents:r,getSharedEventState:i,baseProps:o,dataKeys:Object.keys(o).filter((t=>"parent"!==t)),hasEvents:n.events||n.sharedEvents||r,events:this.getAllEvents(n)}}getExternalMutations(t){const{sharedEvents:n,externalEventMutations:e}=t;return S()(e)||n?void 0:Sf(e,this.baseProps,this.state)}cacheValues(t){Object.keys(t).forEach((n=>{this[n]=t[n]}))}getBaseProps(n,e){const r=(e||this.getSharedEventState.bind(this))("parent","parent"),i=this.getEventState("parent","parent"),o=U()({},i,r),a=o.parentControlledProps,s=a?H()(o,a):{},l=U()({},s,n);return"function"==typeof t.getBaseProps?t.getBaseProps(l):{}}getAllEvents(t){return Array.isArray(this.componentEvents)?Array.isArray(t.events)?this.componentEvents.concat(...t.events):this.componentEvents:t.events}getComponentProps(n,e,r){const i=this.props.name||t.role,o=this.dataKeys&&this.dataKeys[r]||r,a=`${i}-${e}-${o}`,s=this.baseProps[o]&&this.baseProps[o][e]||this.baseProps[o];if(!s&&!this.hasEvents)return;const l=n&&"object"==typeof n&&"props"in n?n.props:void 0;if(this.hasEvents){const t=this.getEvents(this.props,e,o),n=U()({index:r,key:a},this.getEventState(o,e),this.getSharedEventState(o,e),l,s,{id:a}),i=U()({},Af(t,o,n),n.events);return Object.assign({},n,{events:i})}return U()({index:r,key:a},l,s,{id:a})}renderContainer(t,n){const e=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return e.events&&(this.globalEvents=Lf(e.events),e.events=Tf(e.events)),E().cloneElement(t,e,n)}animateComponent(t,n){const e="object"==typeof t.animate&&t.animate?.animationWhitelist||n,r=this.constructor;return E().createElement(vf,{animate:t.animate,animationWhitelist:e},E().createElement(r,t))}renderContinuousData(t){const{dataComponent:n,labelComponent:e,groupComponent:r}=t,i=this.dataKeys.filter((t=>"all"!==t)),o=i.reduce(((t,n)=>{let r=t;const i=this.getComponentProps(e,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(r=r.concat(E().cloneElement(e,i))),r}),[]),a=this.getComponentProps(n,"data","all"),s=[E().cloneElement(n,a),...o];return this.renderContainer(r,s)}renderData(t,n){void 0===n&&(n=$f);const{dataComponent:e,labelComponent:r,groupComponent:i}=t,o=[...this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]),...this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return E().cloneElement(r,e)})).filter(Boolean)];return this.renderContainer(i,o)}}}const Rf={width:450,height:300,padding:50,interpolation:"linear"};class If extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Yc,null),groupComponent:E().createElement(pu,null),labelComponent:E().createElement(Zh,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static displayName="VictoryArea";static role="area";static continuous=!0;static defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}};static defaultPolarTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}};static getDomain=Ra;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"area"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=J(t,"area"),r=tt(t.style,e),i={x:st(t,"x"),y:st(t,"y")},o={x:Ra(t,"x"),y:Ra(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||at(t):void 0,l=((t,n)=>{let e=_a(t);e.length<2&&(e=[]);const r=t=>{const e="log"===ta(n[t])?1/Number.MAX_SAFE_INTEGER:0,r=n[t].domain(),i=Et(r),o=At(r);let a=e;return i.valueOf()<0&&o.valueOf()<=0?a=o:i.valueOf()>=0&&o.valueOf()>0&&(a=i),vt(r)?new Date(a):a};return e.map((t=>{const n=void 0!==t._y1?t._y1:t._y,e=void 0!==t._y0?t._y0:r("y"),i=void 0!==t._x1?t._x1:t._x,o=void 0!==t._x0?t._x0:r("x");return Object.assign({},t,{_y0:e,_y1:n,_x0:o,_x1:i})}))})(t,a);return{style:r,data:l,scale:a,domain:o,origin:s}})(e)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:h,padding:d,polar:f,scale:p,sharedEvents:m,standalone:y,style:g,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:g.parent,width:v,height:l,scale:p,data:i,domain:o,standalone:y,theme:x,polar:f,origin:h,padding:d,name:_,horizontal:c},all:{data:{horizontal:c,polar:f,origin:h,scale:p,data:i,interpolation:u,groupComponent:s,style:M?{}:g.data,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ua(r,n,e)||b&&(a||m))&&(t[lt(n.eventKey)?e:n.eventKey]={labels:Ya(r,e)}),t)),C)})(t,Rf)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=If,e=ht(this.props,Rf,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Ff=zf(If,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]});function Bf(){return Bf=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Bf.apply(this,arguments)}const Wf=(0,A.forwardRef)(((t,n)=>{const{desc:e,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:nt(r,t)?.toString(),tabIndex:nt(i,t),...a};return e?E().createElement("line",Bf({},s,{ref:n}),E().createElement("desc",null,e)):E().createElement("line",Bf({},s,{ref:n}))})),Vf={lineComponent:E().createElement(Wf,null),role:"presentation",shapeRendering:"auto"},Uf=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({stroke:"black"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Vf));return E().cloneElement(n.lineComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2,transform:n.transform,clipPath:n.clipPath})};var qf=r(7709),Hf=r.n(qf);function Gf(t){return t}function Kf(t){const{dependentAxis:n}=t;return n?"y":"x"}function Yf(t,n){const e=n||Gf,r=t=>t.reduce(((t,n)=>n.type&&"axis"===n.type.role&&e(n)?t.concat(n):n.props&&n.props.children?t.concat(r(E().Children.toArray(n.props.children))):t),[]);return r(t)}function Xf(t,n){return Yf(t,(t=>t.type.getAxis(t.props)===n))[0]}function Zf(t,n){const e=t=>t.reduce(((t,r)=>r.type&&"axis"===r.type.role&&(t=>"dependent"===n?t.props.dependentAxis:!t.props.dependentAxis)(r)||r.props&&r.props.children&&e(E().Children.toArray(r.props.children)).length>0?t.concat(r):t),[]);return e(t)}function Qf(t){const n=t=>{const n=Math.min(...t),e=Math.max(...t);return e<0?e:Math.max(0,n)};return{x:vt(t.x)?new Date(Math.min(...t.x)):n(t.x),y:vt(t.y)?new Date(Math.min(...t.y)):n(t.y)}}function Jf(t,n){return vt(n)?"positive":t<=0&&Math.max(...n)<=0?"negative":"positive"}function tp(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function np(t){return void 0!==t.tickValues&&xt(t.tickValues)}function ep(t){const{tickValues:n,tickFormat:e}=t;if(0===n?.length)return[];const r=Kf(t),i=t.stringMap&&t.stringMap[r];let o=n;i&&(o=function(t){const n=Kf(t),e=t.stringMap&&t.stringMap[n],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[n],i=r&&_t(r)?r.map((t=>e[t])):void 0,o=e&&Object.values(e);return i&&0!==i.length?i:o}(t)),n&&xt(n)&&(o=i?n.map((t=>i[t])):pt(1,n.length+1));const a=o?W()(o):(()=>{if(e&&Array.isArray(e))return xt(e)?e.map(((t,n)=>n)):e})();return Array.isArray(a)&&a.length?(n=>{const e=[],i=t.domain&&t.domain[r]||t.domain;if(n)return n.forEach(((t,n)=>{Array.isArray(i)?t>=Et(i).valueOf()&&t<=At(i).valueOf()&&e.push({value:t,index:n}):e.push({value:t,index:n})})),e})(a):void 0}function rp(t,n){const{tickFormat:e}=t,r=Kf(t),i=t.stringMap&&t.stringMap[r];if(!e){const e=function(t){const{tickValues:n}=t,e=Kf(t),r=t.stringMap&&t.stringMap[e],i=n&&!vt(n)?t=>t:void 0;if(!r)return np(t)?(t,e)=>n[e]:i;const o=r&&G(r),a=["",...R()(Object.values(r),(t=>t)).map((t=>o[t])),""];return t=>a[t]}(t),r=n.tickFormat&&ct(n.tickFormat)?n.tickFormat():t=>t;return e||r}if(e&&Array.isArray(e)){const n=ep(t)?.map((t=>t.index)),r=e.filter(((t,e)=>n?.includes(e)));return(t,n)=>r[n]}if(e&&ct(e)){const n=(n,e,r)=>{const o=G(i),a=r.map((t=>o[t]));return t.tickFormat(o[n],e,a)};return i?n:e}return t=>t}function ip(t,n){if(!n||!Array.isArray(t)||t.length<=n)return t;const e=Math.floor(t.length/n);return t.filter(((t,n)=>n%e==0))}function op(t,n,e){void 0===e&&(e=!1);const{tickCount:r}=t,i=ep(t);if(0===i?.length)return[""];const o=i?i.map((t=>t.value)):void 0;if(o)return ip(o,r);if(n.ticks&&ct(n.ticks)){const t=r||5,i=n.ticks(t),o=ip(Array.isArray(i)&&i.length?i:n.domain(),r);if(e){const t=o.filter((t=>0!==t));return t.length?t:o}return o}return n.domain()}function ap(t,n){const{polar:e,startAngle:r=0,endAngle:i=360}=t,o=ep(t),a=o&&0!==o?.length?o.map((t=>t.value)):void 0;if(!Array.isArray(a))return;const s=Fa(t,n),l=Ia(t,n),c=np(t),u=a.map((t=>Number(t))),h=c?1:Et(u),d=c?a.length:At(u),f=Na(void 0!==s?s:h,void 0!==l?l:d),p=e&&"x"===n&&360===Math.abs(r-i)?Ba(f,u):f;return tp(t)&&!e&&p.reverse(),p}function sp(t,n){const e=Kf(t);if(!n||n===e)return Pa(ap)(t,e)}function lp(t,n){if(!t.axisValue)return;const e="x"===n?"y":"x",r=Hf()(t.scale)&&ct(t.scale[e])?t.scale[e]:void 0;if(!r)return;const i="x"===n?"y":"x",o=Hf()(t.stringMap)&&t.stringMap[i];return r(o&&"string"==typeof t.axisValue?o[t.axisValue]:t.axisValue)}function cp(t,n){if(!Hf()(t.theme))return ht(t,n,"axis");let e="axis";if(t.dependentAxis&&t.theme.dependentAxis?e="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(e="independentAxis"),"axis"===e)return ht(t,n,"axis");const r=U()({},t.theme[e],t.theme.axis),i=Object.assign({},t.theme,{axis:r});return ht(Object.assign({},t,{theme:i}),n,"axis")}const up={top:-1,left:-1,right:1,bottom:1},hp=t=>null!=t,dp=function(t,n){void 0===n&&(n={});const e=t.style||{};return{parent:U()(e.parent,n.parent,{height:"100%",width:"100%"}),axis:U()({},e.axis,n.axis),axisLabel:U()({},e.axisLabel,n.axisLabel),grid:U()({},e.grid,n.grid),ticks:U()({},e.ticks,n.ticks),tickLabels:U()({},e.tickLabels,n.tickLabels)}},fp=(t,n,e)=>{const{position:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:n,datum:e}},pp=(t,n,e,r,i)=>{const{position:o,transform:a}=t;return{style:n,x:a.x+o.x,y:a.y+o.y,verticalAnchor:e.verticalAnchor,textAnchor:e.textAnchor,angle:n.angle,text:i,datum:r}},mp=(t,n,e)=>{const{edge:r,transform:i}=t;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:n,datum:e}},yp=(t,n,e)=>{const r=n||"positive";return e?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][t]},gp=(t,n)=>t instanceof Date&&n instanceof Date?t.getTime()===n.getTime():t===n,xp=(t,n,e)=>{const{orientation:r,axis:i}=n,o=lp(t,i);return{top:{x:0,y:void 0!==o?o:e.y},bottom:{x:0,y:void 0!==o?o:t.height-e.y},left:{x:void 0!==o?o:e.x,y:0},right:{x:void 0!==o?o:t.width-e.x,y:0}}[r]},vp=(t,n,e)=>{const{tickStyle:r,labelStyle:i}=t,o=r.size||0,a=o+(r.padding||0)+(i.padding||0),s=up[n];return{x:e?s*a:0,x2:e?s*o:0,y:e?0:s*a,y2:e?0:s*o}},bp=(t,n,e)=>({x:e?n.x:t+n.x,y:e?t+n.y:n.y}),_p=(t,n)=>{const{orientation:e,padding:r,isVertical:i}=n,o=-up[e];return{x:i?o*(t.width-(r.left+r.right)):0,y:i?0:o*(t.height-(r.top+r.bottom))}},Mp=(t,n)=>{const{padding:e,orientation:r,crossAxis:i}=t,o="right"===r?e.right:e.left,a="top"===r?e.top:e.bottom;return{x:i?n.x-o:0,y:i?n.y-a:0}},Cp=(t,n)=>{const e=cp(t,n),r=(t=>{const n=(t=>{const{theme:n,dependentAxis:e}=t,r=n&&n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n&&n[i]&&n[i].style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=U()({},o[n],r[n]),t)),{}):o||r})(t),e=dp(t,n),r=Z(t.padding),i=((t,n)=>{const e=n.axisLabel||{};if(void 0!==e.padding&&null!==e.padding)return e.padding;const r=tp(t),i=e.fontSize||14;return t.label?i*(r?2.3:1.6):0})(t,e),o=np(t)?t.tickValues:void 0,a=Kf(t),s=sp(t),l=(t=>{const n=Kf(t),e=((t,n)=>{const{orientation:e,horizontal:r}=t;return e?{top:"x",bottom:"x",left:"y",right:"y"}[e]:r?"x"===n?"y":"x":n})(t,n),r=Yo(t,n),i=t.domain&&t.domain[n]||sp(t)||r.domain();return r.range(st(t,e)),r.domain(i),r})(t),c="x"===a?s:void 0,u="y"===a?s:void 0,h="x"===a?l:void 0,d="y"===a?l:void 0,f=!(!1===t.crossAxis||!0===t.standalone),p=op(t,l,f),m=rp(t,l),y={x:st(t,"x"),y:st(t,"y")},g={x:t.domain&&t.domain.x?t.domain.x:c,y:t.domain&&t.domain.y?t.domain.y:u},x={x:t.domain&&t.domain.x?Yo(t,"x").domain(t.domain.x).range(t.horizontal?y.y:y.x):h,y:t.domain&&t.domain.y?Yo(t,"y").domain(t.domain.y).range(t.horizontal?y.x:y.y):d},v=g.x&&g.y?Qf(g):void 0,b=v?{x:Jf(v.x,g.x),y:Jf(v.y,g.y)}:void 0,_=b?{x:yp("x",b.y,t.horizontal),y:yp("y",b.x,t.horizontal)}:void 0,M=_?t.orientation||_[a]:(t=>{if(t.orientation)return t.orientation;const n={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?n.dependent:n.independent})(t),C=tp(Object.assign({},t,{orientation:M})),w=((t,n)=>{const e={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:n?e:"middle",verticalAnchor:n?"middle":e}})(M,C);return{anchors:w,axis:a,crossAxis:f,domain:g,isVertical:C,labelPadding:i,orientation:M,orientations:_,origin:v,padding:r,scale:x,stringTicks:o,style:e,tickFormat:m,ticks:p}})(e),{axis:i,style:o,orientation:a,isVertical:s,scale:l,ticks:c,tickFormat:u,anchors:h,domain:d,stringTicks:f}=r,p="x"===i?"y":"x",{width:m,height:y,standalone:g,theme:x,polar:v,padding:b,horizontal:_}=e,{globalTransform:M,gridOffset:C,gridEdge:w}=((t,n)=>{let e;return e=n.domain.x&&n.domain.y?t.horizontal?((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:l,bottom:c,left:u,right:h}=s,d="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"bottom"===d?c:l,y:"left"===f?u:h},m="left"===f?0:t.width,y="bottom"===d?t.height:0,g=gp(r.x,a.x[0])||gp(r.x,a.x[1])?0:e.x(r.x),x=gp(r.y,a.y[0])||gp(r.y,a.y[1])?0:e.y(r.y),v=g?Math.abs(y-g):p.x,b=x?Math.abs(m-x):p.y;return{x:hp(t.offsetX)?t.offsetX:b,y:hp(t.offsetY)?t.offsetY:v}})(t,n):((t,n)=>{const{scale:e,origin:r,orientation:i,orientations:o,domain:a,padding:s}=n,{top:l,bottom:c,left:u,right:h}=s,d="bottom"===i||"top"===i?i:o.x,f="left"===i||"right"===i?i:o.y,p={x:"left"===f?u:h,y:"bottom"===d?c:l},m="left"===f?0:t.width,y="bottom"===d?t.height:0,g=gp(r.x,a.x[0])||gp(r.x,a.x[1])?0:e.x(r.x),x=gp(r.y,a.y[0])||gp(r.y,a.y[1])?0:e.y(r.y),v=g?Math.abs(m-g):p.x,b=x?Math.abs(y-x):p.y;return{x:hp(t.offsetX)?t.offsetX:v,y:hp(t.offsetY)?t.offsetY:b}})(t,n):((t,n)=>{const{style:e,scale:r,orientation:i,padding:o,axis:a,ticks:s,stringTicks:l,isVertical:c,labelPadding:u}=n,{polar:h,horizontal:d}=t,f={scale:{[a]:r},polar:h,horizontal:d,ticks:s,stringTicks:l},p="right"===i?o.right:o.left,m="top"===i?o.top:o.bottom,y=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:p,g=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:m,x=e.axisLabel.fontSize||14,v=s.map(((n,r)=>{const i=l?t.tickValues[n-1]:n;return et(e.ticks,Object.assign({},f,{tick:i,index:r})).size||0})),b=x+2*Math.max(...v)+u,_=1.2*x;return{x:null!=y?y:c?b:_,y:null!=g?g:c?_:b}})(t,n),{globalTransform:xp(t,n,e),gridOffset:Mp(n,e),gridEdge:_p(t,n)}})(e,r),A={scale:{[i]:l[i]},polar:v,horizontal:_,ticks:c,stringTicks:f},E=((t,n,e)=>{const{style:r,padding:i,isVertical:o}=n,{width:a,height:s}=t;return{style:r.axis,x1:o?e.x:i.left+e.x,x2:o?e.x:a-i.right+e.x,y1:o?i.top+e.y:e.y,y2:o?s-i.bottom+e.y:e.y}})(e,r,M),k=((t,n,e)=>{const{style:r,orientation:i,padding:o,labelPadding:a,isVertical:s}=n,l=up[i],c=o.left+o.right,u=o.top+o.bottom,h=l<0?"end":"start",d=r.axisLabel,f=s?-90:0;return{x:s?e.x+l*a:(t.width-c)/2+o.left+e.x,y:s?(t.height-u)/2+o.top+e.y:l*a+e.y,verticalAnchor:d.verticalAnchor||h,textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?f:d.angle,style:d,text:t.label}})(e,r,M),S={parent:Object.assign({style:o.parent,ticks:c,standalone:g,theme:x,width:m,height:y,padding:b,domain:d},A)},O={dimension:p,range:{[p]:st(e,p)},scale:e.scale&&e.scale[p]?{[p]:e.scale[p]}:void 0};return c.reduce(((t,n,e)=>{const r=f?f[e]:n,d=u(n,e,c),p=((t,n)=>({tickStyle:et(t.ticks,n),labelStyle:et(t.tickLabels,n),gridStyle:et(t.grid,n)}))(o,Object.assign({},A,{tick:r,tickValue:n,index:e,text:d})),m={position:vp(p,a,s),transform:bp(l[i]?.(n),M,s)},y={edge:w,transform:{x:s?-C.x+M.x:l[i]?.(n)+M.x,y:s?l[i]?.(n)+M.y:C.y+M.y}};return t[e]={axis:Object.assign({dimension:i},A,E),axisLabel:Object.assign({},A,k),ticks:Object.assign({},A,fp(m,p.tickStyle,n)),tickLabels:Object.assign({},A,pp(m,p.labelStyle,h,n,d)),grid:Object.assign({},A,O,mp(y,p.gridStyle,n))},t}),S)},wp={width:450,height:300,padding:50};class Ap extends E().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:E().createElement(Uf,null),axisLabelComponent:E().createElement(Zh,null),tickLabelComponent:E().createElement(Zh,null),tickComponent:E().createElement(Uf,null),gridComponent:E().createElement(Uf,null),standalone:!0,theme:Mh.grayscale,containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",{role:"presentation"}),fixLabelOverlap:!1};static getDomain=sp;static getAxis=Kf;static getStyles(t){return dp(t)}static getBaseProps(t){return Cp(t,wp)}static expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];renderLine(t){const{axisComponent:n}=t,e=this.getComponentProps(n,"axis",0);return E().cloneElement(n,e)}renderLabel(t){const{axisLabelComponent:n,label:e}=t;if(!e)return null;const r=this.getComponentProps(n,"axisLabel",0);return E().cloneElement(n,r)}renderGridAndTicks(t){const{tickComponent:n,tickLabelComponent:e,gridComponent:r,name:i}=t,o=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!S()(e)};return this.dataKeys.map(((a,s)=>{const l=this.getComponentProps(n,"ticks",s),c=E().cloneElement(n,l),u=o(c.props)?c:void 0,h=this.getComponentProps(r,"grid",s),d=E().cloneElement(r,h),f=o(d.props)?d:void 0,p=this.getComponentProps(e,"tickLabels",s),m=[f,u,E().cloneElement(e,p)].filter(Boolean);return E().cloneElement(t.groupComponent,{key:`${i}-tick-group-${a}`},m)}))}fixLabelOverlap(t,n){const e=tp(n),r=e?n.height:n.width,i=t=>t.type&&"label"===t.type.role,o=t.map((t=>t.props.children)).reduce(((t,n)=>t.concat(n)),[]).filter(i).map((t=>t.props)).reduce(((t,n)=>{const r=(t=>"object"==typeof t?Object.assign({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t})(n.style.padding),i=Fh(n.text,{angle:n.angle,fontSize:n.style.fontSize,letterSpacing:n.style.letterSpacing,fontFamily:n.style.fontFamily});return t+(e?i.height+r.top+r.bottom:i.width+r.right+r.left)}),0),a=Math.floor(r*t.length/o),s=Math.ceil(t.length/a)||1,l=t=>t.props.children.filter(i).reduce(((t,n)=>(e?n.props.y:n.props.x)||0),0),c=t.sort(((t,n)=>e?l(n)-l(t):l(t)-l(n)));return c.filter(((t,n)=>n%s==0))}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=Ep,n=cp(this.props,wp),e=Wc(this.props);if(this.shouldAnimate())return this.animateComponent(n,t);const r=this.renderGridAndTicks(n),i=n.fixLabelOverlap?this.fixLabelOverlap(r,n):r,o=[this.renderLine(n),this.renderLabel(n),...i],a=E().cloneElement(n.containerComponent,e);return n.standalone?this.renderContainer(a,o):E().cloneElement(n.groupComponent,e,o)}}const Ep=zf(Ap,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),kp=(t,n)=>{const e=e=>{let r="log"===ta(t.scale[e])?1/Number.MAX_SAFE_INTEGER:0;const i=Et(t.domain[e]),o=At(t.domain[e]);return i<0&&o<=0?r=o:i>=0&&o>0&&(r=i),n[`_${e}`]instanceof Date?new Date(r):r},r=void 0!==n._y0?n._y0:e("y"),i=void 0!==n._x0?n._x0:e("x");return X(t,Object.assign({},n,{_y0:r,_x0:i}))},Sp=(t,n)=>{const{scale:e,data:r,style:i}=n;if(t)return nt(t,n);if(i.width)return i.width;const o=e.x.range(),a=Math.abs(o[1]-o[0]),s=r.length+2,l=(n.barRatio||.5)*(r.length<2?8:a/s);return Math.max(1,l)},Op=(t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return L()(t)}(t)?((t,n)=>{const e={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=(r,i)=>{lt(t[r])?lt(t[i])||(e[r]=nt(t[i],n)):e[r]=nt(t[r],n)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),e})(t,n):(e.topLeft=nt(t,n),e.topRight=nt(t,n),e):e},Dp=function(t,n){if(void 0===t&&(t={}),n.disableInlineStyles)return{};const e={fill:"black",stroke:t.fill||"black"};return et(Object.assign(e,t),n)},Pp=(t,n)=>({x:t,y:n,distance(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add(t){return Pp(this.x+t.x,this.y+t.y)},subtract(t){return Pp(this.x-t.x,this.y-t.y)},scalarMult(t){return Pp(this.x*t,this.y*t)},scalarDivide(t){if(0===t)throw new Error("Division by 0 error");return Pp(this.x/t,this.y/t)},equals(t){return this.x===t.x&&this.y===t.y}}),Lp=(t,n)=>({center:t,radius:n,hasIntersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);return!(o>r+i||o<Math.abs(r-i))},equals(t){const n=this.center,e=t.center;return this.radius===t.radius&&n.equals(e)},intersection(t){const n=this.center,e=t.center,r=this.radius,i=t.radius,o=n.distance(e);if(!this.hasIntersection(t)||this.equals(t))return[];const a=(Math.pow(r,2)-Math.pow(i,2)+Math.pow(o,2))/(2*o),s=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),l=n.add(e.subtract(n).scalarMult(a).scalarDivide(o)),{x:c,y:u}=n,{x:h,y:d}=e,{x:f,y:p}=l,m=[Pp(f-s*(d-u)/o,p+s*(h-c)/o),Pp(f+s*(d-u)/o,p-s*(h-c)/o)];return m.sort(((t,n)=>t.x-n.x)),m},solveX(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-n,this.center.x+n]},solveY(t){const n=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-n,this.center.y+n]}}),Tp=(t,n)=>{const{x:e,x0:r,y:i,y0:o,horizontal:a}=t,s=t.alignment||"middle",l="middle"===s?n/2:n,c=a?-1:1;return a?{x0:r,x1:e,y0:"start"===s?i:i-c*l,y1:"end"===s?i:i+c*l}:{x0:"start"===s?e:e-c*l,x1:"end"===s?e:e+c*l,y0:o,y1:i}},jp=(t,n)=>{const{data:e,scale:r}=t,i=void 0===e[n]._x1?"_x":"_x1";return r.x(e[n][i])},$p=t=>-1*t+Math.PI/2,Np=(t,n)=>{const{getPath:e}=t;if("function"==typeof e)return e({...t,...Tp(t,n)})},zp=(t,n,e)=>{const r=`${n.topLeft} ${n.topLeft} ${e}`,i=`${n.topRight} ${n.topRight} ${e}`;return`${["M",`A ${n.bottomLeft} ${n.bottomLeft} ${e},`,"L",`A ${r},`,"L",`A ${i},`,"L",`A ${n.bottomRight} ${n.bottomRight} ${e},`].reduce(((n,e,r)=>`${n}${e} ${t[r].x}, ${t[r].y} \n`),"")} z`},Rp=(t,n,e)=>{const r=Tp(t,n),i=r.y0>r.y1?1:-1,o=i>0?"0 0 1":"0 0 0",a=((t,n,e)=>{const{x0:r,x1:i,y0:o,y1:a}=t,s=t=>{const s="Left"===t,l=s?1:-1,c=s?r:i;let u={x:c+l*e[`bottom${t}`],y:o},h={x:c,y:o-n*e[`bottom${t}`]},d={x:c,y:a+n*e[`top${t}`]},f={x:c+l*e[`top${t}`],y:a};if(1===n?o-e[`bottom${t}`]<a+e[`top${t}`]:o+e[`bottom${t}`]>a-e[`top${t}`]){const r=Pp(c+l*e[`top${t}`],a+n*e[`top${t}`]),i=Lp(r,e[`top${t}`]),p=Pp(c+l*e[`bottom${t}`],o-n*e[`bottom${t}`]),m=Lp(p,e[`bottom${t}`]),y=i.intersection(m);if(y.length>0){const t=y[s?0:1];h={x:t.x,y:t.y},d={x:t.x,y:t.y}}else if(e[`top${t}`]>e[`bottom${t}`]){const t=i.solveX(o)[s?0:1];u={x:t,y:o},h={x:t,y:o},d={x:t,y:o}}else{const t=m.solveX(a)[s?0:1];h={x:t,y:a},d={x:t,y:a},f={x:t,y:a}}}const p=[u,h,d,f];return s?p:p.reverse()};return s("Left").concat(s("Right"))})(r,i,e);return zp(a,e,o)},Ip=(t,n,e)=>{const r=Tp(t,n),i=r.x0<r.x1?1:-1,o={topRight:i>0?e.topLeft:e.bottomLeft,bottomRight:i>0?e.topRight:e.bottomRight,bottomLeft:i>0?e.bottomRight:e.topRight,topLeft:i>0?e.bottomLeft:e.topLeft},a=((t,n,e)=>{const{y0:r,y1:i}=t,o=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,s=t=>{const s="top"===t,l=s?-1:1,c=s?i:r;let u={x:o,y:c-l*e[`${t}Left`]},h={x:o+e[`${t}Left`],y:c},d={x:a-e[`${t}Right`],y:c},f={x:a,y:c-l*e[`${t}Right`]};if(h.x>d.x){const r=Pp(o+e[`${t}Left`],c-l*e[`${t}Left`]),i=Lp(r,e[`${t}Left`]),p=Pp(a-e[`${t}Right`],c-l*e[`${t}Right`]),m=Lp(p,e[`${t}Right`]),y=i.intersection(m);if(y.length>0){const t=y[n>0?1:0];h={x:t.x,y:t.y},d={x:t.x,y:t.y}}else if(e[`${t}Right`]>e[`${t}Left`]){const t=m.solveY(o)[s?0:1];u={x:o,y:t},h={x:o,y:t},d={x:o,y:t}}else{const t=i.solveY(a)[s?0:1];f={x:a,y:t},d={x:a,y:t},h={x:a,y:t}}}return[u,h,d,f]},l=s("top"),c=s("bottom");return[c[1],c[0],...l,c[3],c[2]]})(r,i,o);return zp(a,o,"0 0 1")},Fp=(t,n)=>{const{datum:e,scale:r,index:i,alignment:o,style:a}=t,s=r.y(e._y0||0),l=r.y(void 0!==e._y1?e._y1:e._y),c=r.x(void 0!==e._x1?e._x1:e._x);let u,h;if(a.width){const n=((t,n)=>{const{scale:e}=t,r=e.y.range(),i=Math.max(...r),o=Math.abs(e.x.range()[1]-e.x.range()[0]);return n/(2*Math.PI*i)*o})(t,a.width),e="middle"===o?n/2:n;u="start"===o?c:c-e,h="end"===o?c:c+e}else u=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=jp(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=0===n?jp(t,e.length-1)-2*Math.PI:jp(t,n-1);return 0===n&&a<2*Math.PI?r.x.range()[0]:"start"===i||"end"===i?"start"===i?s:o:(o+s)/2})(t,Number(i)),h=((t,n)=>{const{data:e,scale:r,alignment:i}=t,o=jp(t,n),a=Math.abs(r.x.range()[1]-r.x.range()[0]),s=r.x.range()[1]===2*Math.PI?jp(t,0)+2*Math.PI:r.x.range()[1],l=n===e.length-1?jp(t,0)+2*Math.PI:jp(t,n+1);return n===e.length-1&&a<2*Math.PI?s:"start"===i||"end"===i?"start"===i?o:l:(o+l)/2})(t,Number(i));const d=t=>Rs().innerRadius(s).outerRadius(l).startAngle($p(u)).endAngle($p(h)).cornerRadius(n[t])(),f=t=>{const n=d(`${t}Right`),e=n.match(/[A-Z]/g)||[],r=n.split(/[A-Z]/).slice(1),i=e.indexOf("L"),o=d(`${t}Left`),a=o.match(/[A-Z]/g)||[],s=o.split(/[A-Z]/).slice(1),l=a.indexOf("L");return{rightMoves:e,rightCoords:r,rightMiddle:i,leftMoves:a,leftCoords:s,leftMiddle:l}};return`${[...(()=>{const{topRight:t,topLeft:e}=n,r=l*Math.abs(h-u),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:s,leftCoords:c,leftMiddle:d}=f("top");let p,m;if(t===e||r<2*t+2*e)p=t>e?i:s,m=t>e?o:c;else{const n=t=>t<3,r=e>t&&n(a)?1:2;let l;if(t>e){const t=n(a)?d:d-2;l=n(d)?d-1:t}else{const t=n(d)?1:2;l=n(a)?t:d-2}p=[...i.slice(0,r),...s.slice(l)],m=[...o.slice(0,r),...c.slice(l)]}const y=p.indexOf("L"),g=p.slice(0,y),x=m.slice(0,y);return g.map(((t,n)=>({command:t,coords:x[n].split(",")})))})(),...(()=>{const{bottomRight:t,bottomLeft:e}=n,r=s*Math.abs(h-u),{rightMoves:i,rightCoords:o,rightMiddle:a,leftMoves:l,leftCoords:c,leftMiddle:d}=f("bottom");let p,m;if(t===e||r<2*t+2*e)p=t>e?i:l,m=t>e?o:c;else{const n=(t,n)=>t.length-n<4,r=(t>e?n(i,a):n(l,d))?-1:-3;p=[...l.slice(0,d+2),...i.slice(r)],m=[...c.slice(0,d+2),...o.slice(r)]}const y=p.indexOf("L"),g=p.slice(y,-1),x=m.slice(y,-1);return g.map(((t,n)=>({command:t,coords:x[n].split(",")})))})()].reduce(((t,n)=>`${t}${n.command} ${n.coords.join()}`),"")} z`},Bp=(t,n,e)=>t.getPath?Np(t,n):t.horizontal?Ip(t,n,e):Rp(t,n,e),Wp=(t,n)=>Fp(t,n),Vp={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Up=(0,A.forwardRef)((function(t,n){const e=(t=>{const n=Dp(t.style,t),e=Sp(t.barWidth,Object.assign({},t,{style:n})),r=Op(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e})),i=nt(t.ariaLabel,t),o=nt(t.desc,t),a=nt(t.id,t),s=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,barWidth:e,cornerRadius:r,desc:o,id:a,tabIndex:s})})(U()({},t,Vp)),{polar:r,origin:i,style:o,barWidth:a,cornerRadius:s}=e,l=r?Wp(e,s):Bp(e,a,s),c=r&&i?`translate(${i.x}, ${i.y})`:void 0;return e.pathComponent?E().cloneElement(e.pathComponent,{...e.events,"aria-label":e.ariaLabel,style:o,d:l,className:e.className,clipPath:e.clipPath,desc:e.desc,index:e.index,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform||c,tabIndex:e.tabIndex,ref:n}):null})),qp={width:450,height:300,padding:50},Hp=[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}];class Gp extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBar";static role="bar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static defaultProps={containerComponent:E().createElement(lu,null),data:Hp,dataComponent:E().createElement(Up,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(Zh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ra;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"bar"),r=Object.assign({},e,(t=>{const{polar:n}=t,e=J(t,"bar"),r=t.disableInlineStyles?{}:tt(t.style,e),i=t.range||{x:st(t,"x"),y:st(t,"y")},o={x:Ra(t,"x"),y:Ra(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=n?t.origin||at(t):void 0;let l=_a(t);return l=ma(l,o,0),t.groupComponent?.type===pu&&(l=l.map((t=>({...t,_x:t.x,_y:t.y})))),{style:r,data:l,scale:a,domain:o,origin:s}})(e)),{alignment:i,barRatio:o,cornerRadius:a,data:s,disableInlineStyles:l,domain:c,events:u,height:h,horizontal:d,origin:f,padding:p,polar:m,scale:y,sharedEvents:g,standalone:x,style:v,theme:b,width:_,labels:M,name:C,barWidth:w,getPath:A}=r,E={parent:{horizontal:d,domain:c,scale:y,width:_,height:h,data:s,standalone:x,name:C,theme:b,polar:m,origin:f,padding:p,style:v.parent}};return s.reduce(((t,n,e)=>{const c=lt(n.eventKey)?e:n.eventKey,{x:p,y:x,y0:b,x0:C}=kp(r,n),E={alignment:i,barRatio:o,barWidth:w,cornerRadius:a,data:s,datum:n,disableInlineStyles:l,getPath:A,horizontal:d,index:e,polar:m,origin:f,scale:y,style:v.data,width:_,height:h,x:p,y:x,y0:b,x0:C};return t[c]={data:E},(null!=Ua(r,n,e)||M&&(u||g))&&(t[c].labels=Ya(r,e)),t}),E)})(t,qp)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];static shouldRenderDatum=()=>!0;shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Kp,e=ht(this.props,qp,n);if(this.shouldAnimate())return this.animateComponent(e,t);let r;r=e.groupComponent?.type===pu?this.renderData(e,Gp.shouldRenderDatum):this.renderData(e);const i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Kp=zf(Gp),Yp={rectComponent:E().createElement(fu,null),role:"presentation",shapeRendering:"auto"},Xp=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({fill:"none"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Yp));return E().cloneElement(n.rectComponent,{...n.events,"aria-label":n.ariaLabel,style:n.style,desc:n.desc,tabIndex:n.tabIndex,transform:n.transform,className:n.className,role:n.role,shapeRendering:n.shapeRendering,x:n.x,y:n.y,width:n.width,height:n.height,clipPath:n.clipPath})},Zp={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Wf,null),role:"presentation",shapeRendering:"auto"},Qp=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(t.style,t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Zp)),{ariaLabel:e,groupComponent:r,lineComponent:i,events:o,className:a,majorWhisker:s,minorWhisker:l,transform:c,clipPath:u,role:h,shapeRendering:d,style:f,desc:p,tabIndex:m}=n,y={...o,style:f,desc:p,tabIndex:m,className:a,transform:c,clipPath:u,role:h,shapeRendering:d};return E().cloneElement(r,{},[E().cloneElement(i,Object.assign({key:"major-whisker","aria-label":e},y,s)),E().cloneElement(i,Object.assign({key:"minor-whisker","aria-label":e},y,l))])};var Jp=r(9056),tm=r.n(Jp);const nm=["max","min","median","q1","q3"],em=t=>Number.isNaN(t)?null:t,rm=t=>{const n=t.map((t=>t._y)),e={_q1:em(Ye(n,.25)),_q3:em(Ye(n,.75)),_min:em(qe(n)),_median:em(Ye(n,.5)),_max:em(Ue(n))};return Object.assign({},t[0],e,{_y:t[0]._y})},im=t=>{const n=nm.concat("x","y"),e=xa(t.data,t,n);return e.length?(t=>{const n=(t=>{if(t.every((t=>nm.every((n=>void 0!==t[`_${n}`]))))){const n=t.map((t=>t._x));if(!W()(n).length===n.length)throw new Error("\n data prop may only take an array of objects with a unique\n independent variable. Make sure your x values are distinct.\n ");return!0}return!1})(t);if(n)return t;{const n=t.every((t=>Array.isArray(t._x))),e=t.every((t=>Array.isArray(t._y))),r="_y",i="_x";if(n)throw new Error("\n data should not be given as in array for x\n ");if(e)return t.map((t=>{const n=t[r].map((n=>Object.assign({},t,{[r]:n}))),e=R()(n,r);return rm(e)}));{const n=tm()(t,i);return Object.keys(n).map((t=>{const e=n[t],i=R()(e,r);return rm(i)}))}}})(e):[]},om=(t,n)=>{const e=Fa(t,n),r=Ia(t,n),i=im(t);return i.length<1?void 0!==e&&void 0!==r?Na(e,r):void 0:"y"===n?((t,n,e)=>{const r=Fa(n,e),i=Ia(n,e);return Na(void 0!==r?r:t.reduce(((t,n)=>t<n._min?t:n._min),1/0),void 0!==i?i:t.reduce(((t,n)=>t>n._max?t:n._max),-1/0))})(i,t,n):((t,n,e)=>{const r=Fa(n,e),i=Ia(n,e);return Na(void 0!==r?r:t.reduce(((t,n)=>t<n[`_${e}`]?t:n[`_${e}`]),1/0),void 0!==i?i:t.reduce(((t,n)=>t>n[`_${e}`]?t:n[`_${e}`]),-1/0))})(i,t,n)},am=(t,n)=>Pa(om)(t,n),sm=(t,n,e)=>{const r=t[`${e}LabelComponent`]||t.labelComponent,i=n[`${e}Labels`]||n.labels;if(!Q(r))return i;const o=t.theme&&t.theme.tooltip||{};return U()({},o.style,i)},lm=(t,n)=>{const e=ht(t,n,"boxplot"),r=Object.assign({},e,(t=>{const{theme:n,horizontal:e}=t,r=im(t),i={x:st(t,"x"),y:st(t,"y")},o={x:am(t,"x"),y:am(t,"y")},a={x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},s=function(t,n){if(void 0===n&&(n={}),t.disableInlineStyles)return{};const e=t.style||{},r=U()({},e.labels,sm(t,n)),i=U()({},e.boxes,n.boxes),o=U()({},e.whiskers,n.whiskers);return{boxes:i,labels:r,parent:U()({},e.parent,n.parent,{height:"100%",width:"100%"}),max:U()({},e.max,n.max,o),maxLabels:U()({},e.maxLabels,sm(t,n,"max"),r),median:U()({},e.median,n.median,o),medianLabels:U()({},e.medianLabels,sm(t,n,"median"),r),min:U()({},e.min,n.min,o),minLabels:U()({},e.minLabels,sm(t,n,"min"),r),q1:U()({},e.q1,n.q1,i),q1Labels:U()({},e.q1Labels,sm(t,n,"q1"),r),q3:U()({},e.q3,n.q3,i),q3Labels:U()({},e.q3Labels,sm(t,n,"q3"),r),whiskers:o}}(t,n&&n.boxplot&&n.boxplot.style?n.boxplot.style:{}),l=t.horizontal?"top":"right";return{data:r,horizontal:e,domain:o,scale:a,style:s,labelOrientation:t.labelOrientation||l,boxWidth:t.boxWidth||1}})(e)),{groupComponent:i,width:o,height:a,padding:s,standalone:l,theme:c,events:u,sharedEvents:h,scale:d,horizontal:f,data:p,style:m,domain:y,name:g}=r,x={parent:{domain:y,scale:d,width:o,height:a,data:p,standalone:l,name:g,theme:c,style:m.parent||{},padding:s,groupComponent:i,horizontal:f}},v=d.y;return p.reduce(((t,n,e)=>{const i=lt(n.eventKey)?e:n.eventKey;if(((t,n)=>{const e=t=>void 0!==t,{_x:r,_min:i,_max:o}=t,a=Et(n.x),s=At(n.x),l=Et(n.y),c=At(n.y),u=t=>n=>e(n)&&n<t,h=t=>n=>e(n)&&n>t,d=u(a),f=u(l),p=h(s),m=h(c);let y,g;return(d(r)||p(r))&&(g=!0),(f(i)&&f(o)||m(i)&&m(o))&&(y=!0),y||g})(n,y))return t;const o={x:f?d.y(n._y):d.x(n._x),y:f?d.x(n._x):d.y(n._y),min:v(n._min),max:v(n._max),median:v(n._median),q1:v(n._q1),q3:v(n._q3)},a=Object.assign({index:e,datum:n,positions:o},r),s=nm.reduce(((t,n)=>(t[n]=((t,n)=>"median"===n?(t=>{const{boxWidth:n,horizontal:e,style:r,datum:i,scale:o,index:a,disableInlineStyles:s}=t,{median:l,x:c,y:u}=t.positions;return{datum:i,scale:o,index:a,x1:e?l:c-n/2,y1:e?u-n/2:l,x2:e?l:c+n/2,y2:e?u+n/2:l,style:s?{}:r.median,disableInlineStyles:s}})(t):"min"===n||"max"===n?((t,n)=>{const{horizontal:e,style:r,boxWidth:i,whiskerWidth:o,datum:a,scale:s,index:l,disableInlineStyles:c}=t,{min:u,max:h,q1:d,q3:f,x:p,y:m}=t.positions,y="min"===n?d:f,g="min"===n?u:h,x="number"==typeof o?o:i;return{datum:a,index:l,scale:s,majorWhisker:{x1:e?y:p,y1:e?m:y,x2:e?g:p,y2:e?m:g},minorWhisker:{x1:e?g:p-x/2,y1:e?m-x/2:g,x2:e?g:p+x/2,y2:e?m+x/2:g},style:c?{}:r[n]||r.whisker,disableInlineStyles:c}})(t,n):((t,n)=>{const{horizontal:e,boxWidth:r,style:i,scale:o,datum:a,index:s,disableInlineStyles:l}=t,{median:c,q1:u,q3:h,x:d,y:f}=t.positions;return{datum:a,scale:o,index:s,x:e?"q1"===n?u:c:d-r/2,y:e?f-r/2:"q1"===n?c:h,width:e?"q1"===n?c-u:h-c:r,height:e?r:"q1"===n?u-c:c-h,style:l?{}:i[n]||i.boxes,disableInlineStyles:l}})(t,n))(a,n),t)),{});return t[i]=s,nm.forEach((n=>{const e=((t,n)=>{const{datum:e,index:r,labels:i}=t,o=t[`${n}Labels`];return o||i?!0===o||!0===i?`${e[`_${n}`]}`:Array.isArray(o)?o[r]:o:null})(a,n),o=r.labels||r[`${n}Labels`];if(null!=e||o&&(u||h)){const o=`${n}Labels`;t[i][o]=((t,n,e)=>{const{datum:r,positions:i,index:o,boxWidth:a,horizontal:s,labelOrientation:l,style:c,theme:u,disableInlineStyles:h}=t,d=((t,n)=>"object"==typeof t&&t[n]||t)(l,e),f=c[`${e}Labels`]||c.labels,p="number"==typeof t.whiskerWidth?t.whiskerWidth:a,m="min"===e||"max"===e?p:a,y=t=>{const n={x:"left"===d?-1:1,y:"top"===d?-1:1};return n[t]*m/2+n[t]*(f.padding||0)},g={text:n,datum:r,index:o,orientation:d,style:h?{}:f,y:s?i.y:i[e],x:s?i[e]:i.x,dy:s?y("y"):0,dx:s?0:y("x"),textAnchor:f.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[d],verticalAnchor:f.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[d],angle:f.angle,horizontal:s,disableInlineStyles:h};if(!Q(t[`${e}LabelComponent`]))return g;const x=u&&u.tooltip||{};return U()({},g,K(x,["style"]))})(Object.assign({},r,a),e,n)}})),t}),x)},cm={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},um=[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}];class hm extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryBoxPlot";static role="boxplot";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),data:um,dataComponent:E().createElement(Xp,null),groupComponent:E().createElement("g",{role:"presentation"}),maxComponent:E().createElement(Qp,null),maxLabelComponent:E().createElement(Zh,null),medianComponent:E().createElement(Uf,null),medianLabelComponent:E().createElement(Zh,null),minComponent:E().createElement(Qp,null),minLabelComponent:E().createElement(Zh,null),q1Component:E().createElement(Xp,null),q1LabelComponent:E().createElement(Zh,null),q3Component:E().createElement(Xp,null),q3LabelComponent:E().createElement(Zh,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return am(t,n)}static getData(t){return im(t)}static getBaseProps(t){return lm(t,cm)}static expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];renderBoxPlot(t){const n=["q1","q3","max","min","median"],e=[...n.map((n=>this.dataKeys.reduce(((e,r,i)=>{const o=t[`${n}Component`],a=this.getComponentProps(o,n,i);return this.shouldRenderDatum(a.datum)&&e.push(E().cloneElement(o,a)),e}),[]))).flat(),...n.map((n=>this.dataKeys.reduce(((e,r,i)=>{const o=`${n}Labels`,a=t[`${n}LabelComponent`],s=this.getComponentProps(a,o,i);return void 0!==s.text&&null!==s.text&&e.push(E().cloneElement(a,s)),e}),[]).filter(Boolean))).flat()];return this.renderContainer(t.groupComponent,e)}shouldAnimate(){return!!this.props.animate}shouldRenderDatum(t){const n=!lt(t._x),e=!lt(t._y);return!(lt(t._min)||lt(t._max)||lt(t._median)||lt(t._q1)||lt(t._q3))&&(this.props.horizontal?e:n)}render(){const{animationWhitelist:t,role:n}=dm,e=ht(this.props,cm,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderBoxPlot(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const dm=zf(hm,{components:[{name:"min"},{name:"minLabels"},{name:"max"},{name:"maxLabels"},{name:"median"},{name:"medianLabels"},{name:"q1"},{name:"q1Labels"},{name:"q3"},{name:"q3Labels"},{name:"parent",index:"parent"}]});function fm(t,n,e){const{a:r,d:i,e:o,f:a}=n;return"y"===e?i*t+a:r*t+o}function pm(t){return!(!t||void 0===t.identifier)}function mm(t){if(pm(t.nativeEvent))return;const n=t=>"svg"===t.nodeName?t:t.parentNode?n(t.parentNode):t;return n(t.target)}function ym(t,n){if(pm(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};const e=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(n||mm(e));return{x:fm(e.clientX,r,"x"),y:fm(e.clientY,r,"y")}}function gm(t,n){const{horizontal:e}=t,r=t.scale,i=n||{x:r.x.domain(),y:r.y.domain()};return{x:e?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:e?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function xm(t,n,e,r){const{polar:i,horizontal:o}=t;if(!i)return{x:o?n.x.invert(r):n.x.invert(e),y:o?n.y.invert(e):n.y.invert(r)};const a=t.origin||{x:0,y:0},s=e-a.x,l=r-a.y,c=Math.abs(s*Math.sqrt(1+Math.pow(-l/s,2))),u=(-Math.atan2(l,s)+2*Math.PI)%(2*Math.PI);return{x:n.x.invert(u),y:n.y.invert(c)}}function vm(t){const{x1:n,x2:e,y1:r,y2:i,scale:o}=t,a=xm(t,o,n,r),s=xm(t,o,e,i),l=(t,n)=>[Et([t,n]),At([t,n])];return{x:l(a.x,s.x),y:l(a.y,s.y)}}var bm=r(8163),_m=r.n(bm);const Mm={getDimension(t){const{horizontal:n,brushDimension:e}=t;return n&&e?"x"===e?"y":"x":e},withinBounds(t,n,e){const{x1:r,x2:i,y1:o,y2:a}=ft(n,Number),{x:s,y:l}=ft(t,Number),c=e?e/2:0;return s+c>=Math.min(r,i)&&s-c<=Math.max(r,i)&&l+c>=Math.min(o,a)&&l-c<=Math.max(o,a)},getDomainBox(t,n,e){const r=this.getDimension(t),i=U()({},n,t.domain),o=U()({},e,i),a=gm(t,i),s=gm(t,o);return{x1:"y"!==r?Math.min(...s.x):Math.min(...a.x),x2:"y"!==r?Math.max(...s.x):Math.max(...a.x),y1:"x"!==r?Math.min(...s.y):Math.min(...a.y),y2:"x"!==r?Math.max(...s.y):Math.max(...a.y)}},getHandles(t,n){const e=this.getDimension(t),{x1:r,x2:i,y1:o,y2:a}=n,s=Math.min(r,i),l=Math.max(r,i),c=Math.min(o,a),u=Math.max(o,a),h=t.handleWidth/2;return{left:"y"!==e&&{x1:s-h,x2:s+h,y1:o,y2:a},right:"y"!==e&&{x1:l-h,x2:l+h,y1:o,y2:a},top:"x"!==e&&{x1:r,x2:i,y1:c-h,y2:c+h},bottom:"x"!==e&&{x1:r,x2:i,y1:u-h,y2:u+h}}},getActiveHandles(t,n,e){const r=this.getHandles(n,e),i=["top","bottom","left","right"].reduce(((n,e)=>r[e]&&this.withinBounds(t,r[e])?n.concat(e):n),[]);return i.length&&i},getResizeMutation(t,n){const{x1:e,y1:r,x2:i,y2:o}=t,a={left:{x1:Math.max(e,i),x2:Math.min(e,i),y1:r,y2:o},right:{x1:Math.min(e,i),x2:Math.max(e,i),y1:r,y2:o},top:{y1:Math.max(r,o),y2:Math.min(r,o),x1:e,x2:i},bottom:{y1:Math.min(r,o),y2:Math.max(r,o),x1:e,x2:i}};return n.reduce(((t,n)=>Object.assign(t,a[n])),{})},getMinimumDomain:()=>({x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}),getDefaultBrushArea(t,n,e){const{domain:r,fullDomain:i,scale:o,horizontal:a,allowResize:s}=t,l=s||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===l)return this.getMinimumDomain();if("disable"===l)return n;if("move"===l){const r=this.getDomainBox(t,i,n),s=t.parentSVG||mm(e),l=this.panBox({...t,...r,brushDomain:n,startX:(r.x1+r.x2)/2,startY:(r.y1+r.y2)/2},ym(e,s)),c=t.fullDomainBox||this.getDomainBox(t,i);return vm({...this.constrainBox(l,c),scale:o,horizontal:a})}return r},getSelectionMutation(t,n,e){const{x:r,y:i}=t,{x1:o,x2:a,y1:s,y2:l}=n;return{x1:"y"!==e?r:o,y1:"x"!==e?i:s,x2:"y"!==e?r:a,y2:"x"!==e?i:l}},panBox(t,n){const{domain:e,startX:r,startY:i}=t,o=this.getDimension(t),a=U()({},t.brushDomain,e),s=U()({},t.fullDomain,e),{x1:l,x2:c,y1:u,y2:h}=t.x1?t:this.getDomainBox(t,s,a),{x:d,y:f}=n,p=r?r-d:0,m=i?i-f:0;return{x1:"y"!==o?Math.min(l,c)-p:Math.min(l,c),x2:"y"!==o?Math.max(l,c)-p:Math.max(l,c),y1:"x"!==o?Math.min(u,h)-m:Math.min(u,h),y2:"x"!==o?Math.max(u,h)-m:Math.max(u,h)}},constrainBox(t,n){const{x1:e,y1:r,x2:i,y2:o}=ft(n,Number);return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,e),y1:t.y2>o?o-Math.abs(t.y2-t.y1):Math.max(t.y1,r),x2:t.x1<e?e+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<r?r+Math.abs(t.y2-t.y1):Math.min(t.y2,o)}},constrainPoint(t,n){const{x1:e,y1:r,x2:i,y2:o}=ft(n,Number);return{x:Math.min(Math.max(t.x,e),i),y:Math.min(Math.max(t.y,r),o)}},hasMoved(t){const{x1:n,x2:e,y1:r,y2:i,mouseMoveThreshold:o}=t,a=this.getDimension(t),s=Math.abs(n-e)>=o,l=Math.abs(r-i)>=o;switch(a){case"x":return s;case"y":return l;default:return s||l}},onMouseDown(t,n){t.preventDefault();const{handleWidth:e,cachedBrushDomain:r,domain:i,allowResize:o,allowDrag:a,allowDraw:s}=n,l=this.getDimension(n),c=o||n.defaultBrushArea?n.defaultBrushArea:"move";if(!o&&!a)return{};const u=n.fullDomainBox||this.getDomainBox(n,i),h=n.parentSVG||mm(t),{x:d,y:f}=ym(t,h);if(!this.withinBounds({x:d,y:f},u,e))return{};const p=U()({},n.brushDomain,i),m=ed()(p,r)?n.currentDomain||p||i:p||i,y=this.getDomainBox(n,i,m),g=o&&this.getActiveHandles({x:d,y:f},n,y);return g?[{target:"parent",mutation:()=>({isSelecting:!0,domainBox:y,fullDomainBox:u,cachedBrushDomain:p,currentDomain:m,parentSVG:h,...this.getResizeMutation(y,g)})}]:this.withinBounds({x:d,y:f},y)&&!ed()(i,m)?[{target:"parent",mutation:()=>({isPanning:a,startX:d,startY:f,domainBox:y,fullDomainBox:u,currentDomain:m,cachedBrushDomain:p,parentSVG:h,...y})}]:s?[{target:"parent",mutation:()=>({isSelecting:o||"move"===c,domainBox:y,fullDomainBox:u,parentSVG:h,cachedBrushDomain:p,cachedCurrentDomain:m,currentDomain:this.getMinimumDomain(),...this.getSelectionMutation({x:d,y:f},y,l)})}]:{}},onGlobalMouseMove(t,n){const{scale:e,isPanning:r,isSelecting:i,fullDomainBox:o,onBrushDomainChange:a,allowResize:s,allowDrag:l,horizontal:c,mouseMoveThreshold:u,parentSVG:h}=n,d=this.getDimension(n),{x:f,y:p}=ym(t,h);if(!s&&!l||u>0&&!this.hasMoved({...n,x2:f,y2:p}))return{};if(l&&r){const{startX:t,startY:r}=n,i=this.panBox(n,{x:f,y:p}),s=this.constrainBox(i,o),l=vm({...s,scale:e,horizontal:c}),u={currentDomain:l,parentSVG:h,startX:i.x2>=o.x2||i.x1<=o.x1?t:f,startY:i.y2>=o.y2||i.y1<=o.y1?r:p,...s};return ct(a)&&a(l,U()({},u,n)),[{target:"parent",mutation:()=>u}]}if(s&&i){const{x:t,y:r}=this.constrainPoint({x:"y"!==d?f:n.x2,y:"x"!==d?p:n.y2},o),i=vm({x2:t,y2:r,x1:n.x1,y1:n.y1,scale:e,horizontal:c}),s={x2:t,y2:r,currentDomain:i,parentSVG:h};return ct(a)&&a(i,U()({},s,n)),[{target:"parent",mutation:()=>s}]}return{}},onGlobalMouseUp(t,n){if(!n.isPanning&&!n.isSelecting)return{};const{x1:e,y1:r,x2:i,y2:o,isPanning:a,isSelecting:s,onBrushDomainChange:l,onBrushDomainChangeEnd:c,onBrushCleared:u,currentDomain:h,allowResize:d,allowDrag:f}=n,p=d||n.defaultBrushArea?n.defaultBrushArea:"move",m={isPanning:!1,isSelecting:!1};if(!d&&(void 0===p||"none"===p)||e!==i&&r!==o)(f&&a||d&&s)&&ct(c)&&c(h,U()({},m,n));else{const e=n.cachedCurrentDomain||h,r=this.getDefaultBrushArea(n,e,t);m.currentDomain=r,ct(l)&&l(r,U()({},m,n)),ct(c)&&c(r,U()({},m,n)),ct(u)&&u(r,U()({},m,n))}return[{target:"parent",mutation:()=>m}]}},Cm={...Mm,onMouseDown:Mm.onMouseDown.bind(Mm),onGlobalMouseUp:Mm.onGlobalMouseUp.bind(Mm),onGlobalMouseMove:_m()(Mm.onGlobalMouseMove.bind(Mm),16,{leading:!0,trailing:!1})},wm={allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:E().createElement(fu,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:E().createElement(fu,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0},Am=t=>{const n={...wm,...t},{children:e}=n,r=t=>{const{handleWidth:e,handleStyle:r,handleComponent:i,name:o}=n,a=Cm.getDomainBox(n,t),{x1:s,x2:l,y1:c,y2:u}=a,{top:h,bottom:d,left:f,right:p}=Cm.getHandles(n,a),m=Math.abs(l-s)||1,y=Math.abs(u-c)||1,g=i.props&&i.props.style||{},x=U()({},g,r),v=(()=>{const t={yProps:"ns-resize",xProps:"ew-resize"};return!n.allowResize&&n.allowDrag?(t.xProps="move",t.yProps="move"):n.allowResize||n.allowDrag||(t.xProps="auto",t.yProps="auto"),t})(),b={style:x,width:m,height:e,cursor:v.yProps},_={style:x,width:e,height:y,cursor:v.xProps},M={top:h&&Object.assign({x:h.x1,y:h.y1},b),bottom:d&&Object.assign({x:d.x1,y:d.y1},b),left:f&&Object.assign({y:f.y1,x:f.x1},_),right:p&&Object.assign({y:p.y1,x:p.x1},_)},C=["top","bottom","left","right"].reduce(((t,n)=>M[n]?t.concat(E().cloneElement(i,Object.assign({key:`${o}-handle-${n}`},M[n]))):t),[]);return C.length?C:null};return{props:n,children:[...E().Children.toArray(e),...(()=>{const{currentDomain:t,cachedBrushDomain:e}=n,i=U()({},n.brushDomain,n.domain),o=ed()(i,e)?U()({},t,i):i,a=(t=>{const{x:e,y:r}=t,{brushStyle:i,brushComponent:o,name:a}=n,s=o.props&&o.props.style,l=n.allowDrag||n.allowResize?"move":"auto";return e[0]!==e[1]&&r[0]!==r[1]?E().cloneElement(o,{key:`${a}-brush`,width:Math.abs(e[1]-e[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(e[0],e[1]),y:Math.min(r[0],r[1]),cursor:l,style:U()({},s,i)}):null})(gm(n,o));return a?[a,r(o)]:[]})()]}},Em=t=>{const{props:n,children:e}=Am(t);return E().createElement(lu,n,e)};Em.role="container",Em.defaultEvents=t=>{const n={...wm,...t},e=(t,e)=>(r,i,o,a)=>n.disable||e?.(i)?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Cm.onMouseDown),onTouchStart:e(Cm.onMouseDown),onGlobalMouseMove:e(Cm.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalTouchMove:e(Cm.onGlobalMouseMove,(t=>!t.isPanning&&!t.isSelecting)),onGlobalMouseUp:e(Cm.onGlobalMouseUp),onGlobalTouchEnd:e(Cm.onGlobalMouseUp),onGlobalTouchCancel:e(Cm.onGlobalMouseUp)}}]};const km=1/Number.MAX_SAFE_INTEGER,Sm=t=>{const{scale:n={},dimension:e="x"}=t;if(n[e])return n[e];const r=Yo(t,e),i=st(t,e),o=za(t,e)||[0,1];return r.range(i).domain(o),r},Om=t=>{const{horizontal:n,dimension:e="x"}=t;return n?"x"===e?"y":"x":e},Dm=(t,n)=>{const e=Sm(t);return[e(Math.min(...n)),e(Math.max(...n))]},Pm=(t,n)=>{const e=Sm(t);return[e.invert(Math.min(...n)),e.invert(Math.max(...n))]},Lm=t=>Sm(t).range(),Tm=t=>Sm(t).domain(),jm=(t,n)=>t>=Et(n)&&t<=At(n),$m=(t,n)=>{if(t){const e=Et(t),r=At(t),i=Et(n),o=At(n),a=e<i?i:Number(o)-km,s=r>o?o:Number(i)+km;return[jm(e,n)?e:a,jm(r,n)?r:s]}return n},Nm=(t,n,e)=>{const r=t.handleWidth/2,i=Om(t),o=["min","max"].reduce(((t,o)=>(t[o]=jm(n,(t=>{const n={min:"x"===i?Math.min(...e):Math.max(...e),max:"x"===i?Math.max(...e):Math.min(...e)};return[n[t]-r,n[t]+r]})(o))?o:void 0,t)),{});return o.min&&o.max?"both":o.min||o.max},zm={stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.2:.1}},Rm={pointerEvents:"none",stroke:"none",fill:"black",opacity:t=>{let{active:n}=t;return n?.4:.3}},Im={pointerEvents:"none",stroke:"none",fill:"none"};class Fm extends E().Component{static defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:E().createElement(Xp,null),brushComponent:E().createElement(Xp,null),groupComponent:E().createElement("g",null),handleComponent:E().createElement(Xp,null),handleWidth:10,lineComponent:E().createElement(Uf,null),width:10};static defaultEvents=function(t){return t.disable?void 0:[{target:t.type,eventHandlers:{onMouseEnter:(t,n)=>{t.preventDefault();const{allowResize:e,brushDomain:r}=n,i=Om(n),o=n.parentSVG||mm(t),a=ym(t,o)[i],s=Tm(n),l=$m(r,s),c=Dm(n,l),u=e&&Nm(n,a,c),h={brushArea:!n.brushDomain,brush:jm(a,c)&&!ed()(s,l),minHandle:"min"===u||"both"===u,maxHandle:"min"===u||"both"===u};return[{mutation:()=>({activeBrushes:h,brushDomain:n.brushDomain,parentSVG:o})}]},onMouseDown:(t,n)=>{t.preventDefault();const{allowResize:e,allowDrag:r,allowDraw:i,activeBrushes:o,brushDomain:a}=n,s=Om(n);if(!e&&!r)return[];const l=Tm(n),c=$m(a,l),u=n.parentSVG||mm(t),h=ym(t,u)[s],d=Dm(n,c),f=e&&Nm(n,h,d);return f?[{mutation:()=>({parentSVG:u,isSelecting:!0,activeHandle:f,brushDomain:c,startPosition:h,activeBrushes:o})}]:jm(h,d)&&!ed()(l,c)?[{mutation:()=>({isPanning:r,startPosition:h,brushDomain:c,activeBrushes:o,parentSVG:u})}]:i?[{mutation:()=>({isSelecting:e,brushDomain:null,startPosition:h,activeBrushes:o,parentSVG:u})}]:[]},onMouseMove:(t,n)=>{const{isPanning:e,isSelecting:r,allowResize:i,allowDrag:o,onBrushDomainChange:a,brushDomain:s}=n,l=Om(n);(e||r)&&(t.preventDefault(),t.stopPropagation());const c=n.parentSVG||mm(t),u=ym(t,c)[l],h=Tm(n),d=$m(s,h),f=Dm(n,d),p=Nm(n,u,f),m={brushArea:!n.brushDomain,brush:jm(u,f)&&!ed()(h,d),minHandle:"min"===p||"both"===p,maxHandle:"max"===p||"both"===p};if(!n.isPanning&&!n.isSelecting)return[{mutation:()=>({activeBrushes:m,brushDomain:n.brushDomain,parentSVG:c})}];if(o&&e){const t=Lm(n),e=((t,n)=>{const{brushDomain:e,startPosition:r}=t,i=Dm(t,e),o=Lm(t),a=Math.abs(i[1]-i[0]),s=Math.min(...o),l=Math.max(...o),c=r?r-n:0,u=Math.min(...i)-c,h=Math.max(...i)-c;return[u>l-a?l-a:Math.max(u,s),h<s+a?s+a:Math.min(h,l)]})(n,u),r=Pm(n,e),i={startPosition:Math.max(...e)>=Math.max(...t)||Math.min(...e)<=Math.min(...t)?n.startPosition:u,isPanning:!0,brushDomain:r,activeBrushes:{brush:!0},parentSVG:c};return ct(a)&&a(r,U()({},i,n)),[{mutation:()=>i}]}if(i&&r){let t=s||[0,km];const e=Dm(n,t),i="min"===n.activeHandle?"max":"min",o=n.activeHandle&&"both"===Nm(n,u,e)?i:n.activeHandle;if(o){const r="x"===l?Math.max(...e):Math.min(...e),i="x"===l?Math.min(...e):Math.max(...e);t=Pm(n,["max"===o?i:u,"min"===o?r:u])}else t=Pm(n,[n.startPosition,u]);const h={brushDomain:t,startPosition:n.startPosition,isSelecting:r,activeHandle:o,parentSVG:c,activeBrushes:{brush:!0,minHandle:"min"===p,maxHandle:"max"===p}};return ct(a)&&a(t,U()({},h,n)),[{mutation:()=>h}]}return[]},onMouseUp:(t,n)=>{const{onBrushDomainChange:e,brushDomain:r,allowResize:i,activeBrushes:o}=n,a={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:o};return i&&ct(e)&&e(r,U()({},a,n)),[{mutation:()=>a}]},onMouseLeave:(t,n)=>{const{brushDomain:e}=n;return[{mutation:()=>({isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:e,activeBrushes:{}})}]}}}]};getRectDimensions(t,n,e){const{brushDomain:r}=t,i=Om(t),o=Dm(t,e||$m(r,Tm(t))),a="x"===i?{y1:t.y1,y2:t.y2,x1:Math.min(...o),x2:Math.max(...o)}:{x1:t.x1,x2:t.x2,y1:Math.min(...o),y2:Math.max(...o)},{x1:s,x2:l,y1:c,y2:u}=a,h="x"===i?0:n/2,d="y"===i?0:n/2,f=Math.min(s,l)-h,p=Math.min(c,u)-d;return{x:f,y:p,width:Math.max(s,l)+h-f,height:Math.max(c,u)+d-p}}getHandleDimensions(t){const{handleWidth:n,x1:e,x2:r,y1:i,y2:o,brushDomain:a}=t,s=Om(t),l=t.brushWidth||t.width,c=$m(a,Tm(t)),u=Dm(t,c),h=Math.min(e,r)-l/2,d=Math.min(i,o)-l/2,f={min:"x"===s?Math.min(...u)-n/2:h,max:"x"===s?Math.max(...u)-n/2:h},p={min:"y"===s?Math.max(...u)-n/2:d,max:"y"===s?Math.min(...u)-n/2:d},m="x"===s?n:l,y="x"===s?l:n;return{min:{x:f.min,y:p.min,width:m,height:y},max:{x:f.max,y:p.max,width:m,height:y}}}getCursor(t){const{activeBrushes:n={}}=t,e=Om(t);return n.minHandle||n.maxHandle?"x"===e?"ew-resize":"ns-resize":n.brush?"move":"crosshair"}renderHandles(t){const{handleComponent:n,handleStyle:e,id:r,brushDomain:i,datum:o={},activeBrushes:a={}}=t;if(!i)return null;const s=this.getHandleDimensions(t),l=Object.assign({},Im,e),c=Object.assign({handleValue:Et(i)},o),u=Object.assign({handleValue:At(i)},o),h=Object.assign({key:`${r}-min`,style:et(l,{datum:c,active:a.minHandle})},s.min),d=Object.assign({key:`${r}-max`,style:et(l,{datum:u,active:a.maxHandle})},s.max);return[E().cloneElement(n,h),E().cloneElement(n,d)]}renderBrush(t){const{brushComponent:n,brushStyle:e,activeBrushes:r={},datum:i={},brushDomain:o}=t;if(!o)return null;const a=t.brushWidth||t.width,s=this.getRectDimensions(t,a),l=et(Object.assign({},Rm,e),{datum:i,active:r.brush}),c=Object.assign({style:l},s);return E().cloneElement(n,c)}renderBrushArea(t){const{brushAreaComponent:n,brushAreaStyle:e,activeBrushes:r={},datum:i={}}=t,o=t.brushAreaWidth||t.width,a=this.getCursor(t),s=this.getRectDimensions(t,o,Tm(t)),l=et(Object.assign({cursor:a},zm,e),{datum:i,active:r.brushArea}),c=Object.assign({style:l},s);return E().cloneElement(n,c)}renderLine(t){const n=H()(t,["x1","x2","y1","y2","datum","scale","active","style"]);return E().cloneElement(t.lineComponent,n)}render(){return E().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}const Bm={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Wf,null),rectComponent:E().createElement(fu,null),role:"presentation",shapeRendering:"auto"},Wm=t=>{const n=(t=>{const n=et(Object.assign({stroke:"black"},t.style),t),e=((t,n)=>{const{style:e}=n;return t?ct(t)?nt(t,n):t:e.width?e.width:t})(t.candleWidth,Object.assign({},t,{style:n})),r=nt(t.ariaLabel,t),i=nt(t.desc,t),o=nt(t.id,t),a=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:r,style:n,candleWidth:e,desc:i,id:o,tabIndex:a})})(U()({},t,Bm)),{ariaLabel:e,events:r,groupComponent:i,clipPath:o,rectComponent:a,lineComponent:s,role:l,shapeRendering:c,className:u,wickStrokeWidth:h,transform:d,style:f,desc:p,tabIndex:m}=n,y=U()({strokeWidth:h},f),g={...r,"aria-label":e,role:l,shapeRendering:c,className:u,transform:d,clipPath:o,desc:p,tabIndex:m},x=Object.assign(((t,n)=>{const{id:e,x:r,close:i,open:o,horizontal:a,candleWidth:s}=t,l=Math.abs(i-o);return{key:`${e}-candle`,style:K(n,["width"]),x:a?Math.min(o,i):r-s/2,y:a?r-s/2:Math.min(o,i),width:a?l:s,height:a?s:l}})(n,f),g),v=Object.assign(((t,n)=>{const{horizontal:e,high:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-highWick`,style:K(n,["width"]),x1:e?r:a,x2:e?Math.max(i,o):a,y1:e?a:r,y2:e?a:Math.min(i,o)}})(n,y),g),b=Object.assign(((t,n)=>{const{horizontal:e,low:r,open:i,close:o,x:a,id:s}=t;return{key:`${s}-lowWick`,style:K(n,["width"]),x1:e?Math.min(i,o):a,x2:e?r:a,y1:e?a:Math.max(i,o),y2:e?a:r}})(n,y),g);return E().cloneElement(i,{},[E().cloneElement(a,x),E().cloneElement(s,v),E().cloneElement(s,b)])},Vm=["close","open","high","low"],Um=t=>xa(t.data,t,["x","high","low","close","open"]),qm=(t,n,e)=>{const r="x"===n?"_x":{min:"_low",max:"_high"}[e],i="min"===e?1/0:-1/0;return t.reduce(((t,n)=>{const i=n[r];return t<i&&"min"===e||t>i&&"max"===e?t:i}),i)},Hm=(t,n)=>{const e=Fa(t,n),r=Ia(t,n),i=Um(t);return i.length<1?void 0!==e&&void 0!==r?Na(e,r):void 0:Na(void 0!==e?e:qm(i,n,"min"),void 0!==r?r:qm(i,n,"max"))},Gm=(t,n)=>Pa(Hm)(t,n),Km=(t,n,e)=>{const r=t[`${e}LabelComponent`],i=n[`${e}Labels`]||n.labels;if(!Q(r))return i;const o=t.theme&&t.theme.tooltip||{};return U()({},o.style,i)},Ym=(t,n,e,r)=>{const{x:i,high:o,low:a,open:s,close:l,index:c,scale:u,datum:h,data:d,horizontal:f,candleWidth:p,labelOrientation:m,theme:y}=t,g=t[`${r}LabelComponent`]||t.labelComponent,x=f?"top":"right",v=g.props&&g.props.orientation||function(t,n){return void 0===n&&(n="labels"),L()(t)?t[n]:t}(m,r)||x,b={high:o,low:a,open:s,close:l},_=e[r?`${r}Labels`:"labels"]||e.labels,M={positions:b,labelStyle:_,x:i,horizontal:f,computedType:r||"labels",candleWidth:p,orientation:v},{yValue:C,xValue:w,dx:A,dy:E}=(t=>{const{positions:n,labelStyle:e,x:r,horizontal:i,computedType:o,candleWidth:a,orientation:s}=t;n.labels=(n.open+n.close)/2;const l="left"===s?-1:1,c="top"===s?-1:1;if(i){const t=r,i=n[o],u="top"===s||"bottom"===s?c*(a/2)+c*(e.padding||0):0;return{yValue:t,xValue:i,dx:"top"===s||"bottom"===s?0:l*(e.padding||1),dy:u}}const u=r,h=n[o],d="top"===s||"bottom"===s?c*(e.padding||1):0;return{yValue:h,xValue:u,dx:"top"===s||"bottom"===s?0:l*(a/2)+l*(e.padding||0),dy:d}})(M),k={style:_,y:C,x:w,dx:A,dy:E,text:n,index:c,scale:u,datum:h,data:d,orientation:v,textAnchor:_.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[v],verticalAnchor:_.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[v],angle:_.angle,horizontal:f};if(!Q(g))return k;const S=y&&y.tooltip||{};return U()({},k,K(S,["style"]))},Xm=(t,n)=>{const e=ht(t,n,"candlestick"),r=(t=>{const{polar:n}=t,e=J(t,"candlestick"),r=function(t,n,e){if(void 0===e&&(e={}),t.disableInlineStyles)return{};const r="100%",i="100%";if(!n)return U()({parent:{height:i,width:r}},e);const o=e.parent||{},a=e.labels||{},s=e.data||{},l=U()({},n.labels,a);return{parent:U()({},n.parent,o,{width:r,height:i}),labels:l,data:U()({},n.data,s),openLabels:U()({},n.openLabels,Km(t,e,"open"),l),closeLabels:U()({},n.closeLabels,Km(t,e,"close"),l),lowLabels:U()({},n.lowLabels,Km(t,e,"low"),l),highLabels:U()({},n.highLabels,Km(t,e,"high"),l)}}(t,t.style,e),i=Um(t),o={x:st(t,"x"),y:st(t,"y")},a={x:Gm(t,"x"),y:Gm(t,"y")},s={x:Yo(t,"x").domain(a.x).range(t.horizontal?o.y:o.x),y:Yo(t,"y").domain(a.y).range(t.horizontal?o.x:o.y)},l=n?t.origin||at(t):void 0,c=t.horizontal?"top":"right";return{domain:a,data:i,scale:s,style:r,origin:l,labelOrientation:t.labelOrientation||c}})(e),{data:i,style:o,scale:a,domain:s,origin:l,labelOrientation:c}=r,{groupComponent:u,width:h,height:d,padding:f,standalone:p,name:m,candleWidth:y,candleRatio:g,theme:x,polar:v,wickStrokeWidth:b,labels:_,events:M,sharedEvents:C,horizontal:w,disableInlineStyles:A}=e,E={parent:{domain:s,scale:a,width:h,height:d,data:i,standalone:p,theme:x,polar:v,origin:l,name:m,style:o.parent,padding:f,horizontal:w}};return i.reduce(((t,n,r)=>{const d=lt(n.eventKey)?r:n.eventKey,f=a.x(void 0!==n._x1?n._x1:n._x),p=((t,n)=>{const e=Et(n.x),r=At(n.x),i=Et(n.y),o=At(n.y);let{_x:a,_low:s,_open:l,_close:c,_high:u}=t;return(a<e||a>r)&&(a=null),s<i&&l<i&&c<i&&u<i&&(s=l=c=u=null),s>o&&l>o&&c>o&&u>o&&(s=l=c=u=null),Object.assign({},t,{_x:a,_low:s,_open:l,_close:c,_high:u})})(n,s),{_low:m,_open:x,_close:E,_high:k}=p,S=a.y(k),O=a.y(E),D=a.y(x),P=a.y(m),L=function(t,n,e){if(void 0===n&&(n={}),e.disableInlineStyles)return{};const r=t._open>t._close?e.candleColors.negative:e.candleColors.positive,i=n.fill||r,o=n.stroke,a="none"===(s=o)||"transparent"===s?i:o||"black";var s;return Object.assign({},n,{stroke:a,fill:i})}(p,o.data,e),T={x:f,high:S,low:P,candleWidth:y,candleRatio:g,scale:a,data:i,datum:p,groupComponent:u,index:r,style:L,width:h,polar:v,origin:l,wickStrokeWidth:b,open:D,close:O,horizontal:w,labelOrientation:c,disableInlineStyles:A};T.candleWidth=((t,n)=>{const{data:e,candleWidth:r,scale:i}=t;if(r)return ct(r)?nt(r,t):r;const o=i.x.range(),a=Math.abs(o[1]-o[0]),s=e.length+2,l=(t.candleRatio||.5)*(e.length<2?8:a/s);return Math.max(1,l)})(T);const j=U()(Object.assign({},T),e);if(t[d]={data:T},_){const n=Ua(e,p,r);(null!=n||_&&(M||C))&&(t[d].labels=Ym(j,n,o))}return Vm.forEach((n=>{const r=((t,n)=>{const{datum:e,index:r,labels:i}=t,o=t[`${n}Labels`];return o||i?!0===o||!0===i?`${e[`_${n}`]}`:Array.isArray(o)?o[r]:o:null})(j,n),i=e.labels||e[`${n}Labels`];if(null!=r||i&&(M||C)){const e=`${n}Labels`;t[d][e]=Ym(j,r,o,n)}})),t}),E)},Zm={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},Qm=[{x:new Date(2016,6,1),open:5,close:10,high:15,low:0},{x:new Date(2016,6,2),open:10,close:15,high:20,low:5},{x:new Date(2016,6,3),open:15,close:20,high:25,low:10},{x:new Date(2016,6,4),open:20,close:25,high:30,low:15},{x:new Date(2016,6,5),open:25,close:30,high:35,low:20},{x:new Date(2016,6,6),open:30,close:35,high:40,low:25},{x:new Date(2016,6,7),open:35,close:40,high:45,low:30},{x:new Date(2016,6,8),open:40,close:45,high:50,low:35}],Jm=t=>!lt(t._x)&&!lt(t._y);class ty extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","size","style","width"];static displayName="VictoryCandlestick";static role="candlestick";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),data:Qm,dataComponent:E().createElement(Wm,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(Zh,null),highLabelComponent:E().createElement(Zh,null),lowLabelComponent:E().createElement(Zh,null),openLabelComponent:E().createElement(Zh,null),closeLabelComponent:E().createElement(Zh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return Gm(t,n)}static getData(t){return Um(t)}static getBaseProps(t){return Xm(t,Zm)}static expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}shouldRenderDatum=t=>!(lt(t._x)||lt(t._high)||lt(t._low)||lt(t._close)||lt(t._open));renderCandleData(t,n){void 0===n&&(n=Jm);const{dataComponent:e,labelComponent:r,groupComponent:i}=t;if(!i)throw new Error("VictoryCandlestick expects a groupComponent prop");const o=[];if(e){const t=this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]);o.push(...t)}const a=["close","open","low","high"].flatMap((n=>this.dataKeys.map(((e,r)=>{const i=`${n}Labels`,o=t[`${n}LabelComponent`],a=this.getComponentProps(o,i,r);if(void 0!==a.text&&null!==a.text)return E().cloneElement(o,a)})).filter((t=>void 0!==t))));if(o.push(...a),r){const t=this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text&&"boolean"!=typeof e.text)return E().cloneElement(r,e)})).filter((t=>void 0!==t));o.push(...t)}return this.renderContainer(i,o)}render(){const{animationWhitelist:t,role:n}=ny,e=ht(this.props,Zm,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderCandleData(e,this.shouldRenderDatum),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const ny=zf(ty,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),ey=E().createContext(void 0),ry=()=>{const t=E().useContext(ey);if(!t)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return t},iy=t=>{const{canvasRef:n}=ry(),e=(t=>{const n=Dp(t.style,t),e=Sp(t.barWidth,Object.assign({},t,{style:n})),r=Op(t.cornerRadius,Object.assign({},t,{style:n,barWidth:e}));return Object.assign({},t,{style:n,barWidth:e,cornerRadius:r})})(t),{polar:r,style:i,barWidth:o,cornerRadius:a,origin:s}=e,l=E().useMemo((()=>{const t=r?Wp(e,a):Bp(e,o,a);return new Path2D(t)}),[r,o,a,e]),c=(t=>{const n=E().useRef();return E().useEffect((()=>{n.current=t})),n.current})(l),u=E().useCallback(((t,n)=>{t.fillStyle=i.fill,t.strokeStyle=i.stroke,t.globalAlpha=i.fillOpacity,t.lineWidth=i.strokeWidth,r&&t.translate(s?.x||0,s?.y||0),t.fill(n),t.setTransform(1,0,0,1,0,0)}),[i,s,r]),h=E().useCallback((t=>{if(c){t.save();const n=i.strokeWidth||0;t.lineWidth=n+2,t.globalCompositeOperation="destination-out",u(t,c),t.stroke(c),t.restore()}}),[u,c,i]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&(h(t),u(t,l))}),[n,u,r,o,a,e,l,h]),null},oy=t=>{const n=E().useRef(null),{children:e,width:r=0,height:i=0,clipWidth:o,padding:a}=t,s=E().useCallback((t=>t.clearRect(0,0,r,i)),[r,i]),l=E().useCallback((t=>{const n="number"==typeof a?a:a?.right||0,e=r-n-("number"==typeof a?a:a?.left||0);t.clearRect(r-n,0,o?-1*(e-o):0,i)}),[r,i,a,o]);return E().createElement(ey.Provider,{value:{canvasRef:n,clear:s,clip:l}},E().createElement("foreignObject",{width:r,height:i,x:0,y:0},E().createElement("canvas",{width:r,height:i,ref:n})),e)};oy.role="container";const ay=t=>{const{canvasRef:n,clear:e,clip:r}=ry(),{style:i,data:o}=t,{stroke:a,strokeWidth:s}=i,l=E().useCallback((n=>{const e=zc(t);n.strokeStyle=a,n.lineWidth=s,e.context(n)(o),n.stroke()}),[o,t,a,s]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&(e(t),l(t),r(t))}),[n,l,e,r]),null};function sy(t,n,e){return`M ${t}, ${n}\n m ${-e}, 0\n a ${e}, ${e} 0 1,0 ${2*e},0\n a ${e}, ${e} 0 1,0 ${2*-e},0`}function ly(t,n,e){const r=.87*e,i=t-r,o=t+r-i;return`M ${i}, ${n+r}\n h${o}\n v-${o}\n h-${o}\n z`}function cy(t,n,e){const r=.87*e,i=Math.sqrt(r*r*2);return`M ${t}, ${n+i}\n l ${i}, -${i}\n l -${i}, -${i}\n l -${i}, ${i}\n l ${i}, ${i}\n z`}function uy(t,n,e){const r=n-e;return`M ${t-e}, ${r}\n L ${t+e}, ${r}\n L ${t}, ${n+e/2*Math.sqrt(3)}\n z`}function hy(t,n,e){const r=n+e;return`M ${t-e}, ${r}\n L ${t+e}, ${r}\n L ${t}, ${n-e/2*Math.sqrt(3)}\n z`}function dy(t,n,e){const r=1.1*e,i=r/1.5;return`\n M ${t-i/2}, ${n+r}\n v-${i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${i}\n z`}function fy(t,n,e){const r=.8*e,i=r/1.5;return`\n M ${t-i/2}, ${n+r+i}\n v-${2*i}\n h-${i}\n v-${i}\n h${i}\n v-${i}\n h${i}\n v${i}\n h${i}\n v${i}\n h-${i}\n v${2*i}\n z`}function py(t,n,e){const r=1.1*e,i=r-.3*r,o=t-r,a=t+r-o;return`M ${o}, ${n+i/2}\n h${a}\n v-${i}\n h-${a}\n z`}function my(t,n,e){const r=1.35*e,i=Math.PI/5;return`M ${pt(10).map((e=>{const o=e%2==0?r:r/2;return`${o*Math.sin(i*(e+1))+t},\n ${o*Math.cos(i*(e+1))+n}`})).join("L")} z`}const yy=t=>{const{canvasRef:n}=ry(),e=(t=>{const n=nt(t.size,t),e=et(t.style,t),r=nt(t.symbol,t);return Object.assign({},t,{size:n,style:e,symbol:r})})(t),r=E().useCallback((t=>{const{style:n}=e,r=(t=>{const{x:n,y:e,size:r,symbol:i}=t;if(t.getPath)return t.getPath(n,e,r);const o={circle:sy,square:ly,diamond:cy,triangleDown:uy,triangleUp:hy,plus:dy,minus:py,star:my,cross:fy};return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)})(e);t.fillStyle=n.fill;const i=new Path2D(r);t.fill(i)}),[e]);return E().useEffect((()=>{const t=n.current?.getContext("2d");t&&r(t)}),[]),null},gy={circleComponent:E().createElement(hu,null),rectComponent:E().createElement(fu,null),role:"presentation",shapeRendering:"auto"},xy=t=>{const n=(t=>{const n=nt(t.id,t);return Object.assign({},t,{id:n})})(U()({},t,gy));return n.polar?E().cloneElement(n.circleComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,cx:n.x,cy:n.y,r:n.height,className:n.className}):E().cloneElement(n.rectComponent,{...n.events,style:n.style,role:n.role,shapeRendering:n.shapeRendering,x:n.x,y:n.y,rx:n.rx,ry:n.ry,width:n.width,height:n.height,className:n.className})},vy={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},by=function(t){void 0===t&&(t=vy);const[n,e]=E().useState(t),r=E().useCallback((t=>{e((n=>({...n,...t})))}),[e]),i=E().useCallback(((t,e,i)=>{if(!t?.animate)return e.props.animate;let o=t.animate&&t.animate.getTransitions;const a=(()=>{let t=n&&n.childrenTransitions;return t=Ct(t)?t[i]:t,U()({childrenTransitions:t},n)})(),s=t.animate&&t.animate.parentState||a;if(!o){const n=gf(t,a,(t=>r(t)));o=t=>n(t,i)}return U()({getTransitions:o,parentState:s},t.animate,e.props.animate)}),[n,r]),o=E().useCallback(((t,n)=>{if(t?.animate)if(t.animate.parentState){const e=t.animate.parentState.nodesWillExit?t:null,i=U()({oldProps:e,nextProps:n},t.animate.parentState);r(i)}else{const e=E().Children.toArray(t.children),i=E().Children.toArray(n.children),o=t=>{const n=t=>t.type&&t.type.continuous;return Array.isArray(t)?t.some(n):n(t)},a=!t.polar&&e.some((t=>o(t)||t?.props?.children&&o(t.props.children))),{nodesWillExit:s,nodesWillEnter:l,childrenTransitions:c,nodesShouldEnter:u}=yf(e,i);r({nodesWillExit:s,nodesWillEnter:l,nodesShouldEnter:u,childrenTransitions:Ct(c)?c[0]:c,oldProps:s?t:void 0,nextProps:n,continuous:a})}}),[r]),a=E().useCallback((t=>n&&n.nodesWillExit&&n.oldProps||t),[n]);return{state:n,setState:r,getAnimationProps:i,setAnimationState:o,getProps:a}};var _y=r(8961),My=r.n(_y);function Cy(t){let{children:n,props:e,childComponents:r,parentProps:i}=t;const o=n.some((t=>t.type&&"histogram"===t.type.role)),a=o&&n.length&&n.every((t=>t.type&&"histogram"===t.type.role));if(!a)return i;let s=e.bins||r[0].props.bins;if(!Array.isArray(s)){const t=n.reduce(((t,n)=>{const e=ut(n.props.x||"x");return t.concat(n.props.data.map((t=>({x:e(t)}))))}),[]);s=(0,n[0].type.getFormattedData)({data:t,bins:s}).reduce(((t,n,e)=>{let{x0:r,x1:i}=n;return 0===e?t.concat([r,i]):t.concat(i)}),[])}return{...i,bins:s}}function wy(t,n){const{polar:e,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s}=t;let l={polar:e,startAngle:r,endAngle:i,categories:o,minDomain:a,maxDomain:s},c=0;const u=n?n.slice(0):E().Children.toArray(t.children);l=Cy({children:u,props:t,childComponents:n,parentProps:l});const h=u.filter((t=>t.type&&"stack"===t.type.role)).length,d=mt(u,((t,n,e)=>{const r=Object.assign({},t.props,l);let i,o=t;return Aa(t)?(t.type&&ct(t.type.getData)?(o=e?E().cloneElement(t,e.props):t,i=o.type.getData(r)):i=_a(r),c+=1,i.map(((t,n)=>Object.assign({_stack:c,_group:n},t)))):null}),t,[],((t,n)=>t.concat(My()(n,"_group")))),f=h?"_group":"_stack";return Object.values(tm()(d,f))}function Ay(t,n){return t.data?_a(t):wy(t,n||E().Children.toArray(t.children))}function Ey(t,n,e){const{datasets:r,horizontal:i}=t,o=st(t,i?"y":"x"),a=Math.abs(o[1]-o[0]),s=void 0!==e?e:Array.isArray(r[0])&&r[0].length||1,l=(n||r.length)*s;return Math.round(.5*a/l)}function ky(t,n,e){if(t.polar||"x"!==n)return;const r=e.filter((t=>t.type&&t.type.role&&"group"===t.type.role));if(r.length<1)return;const{offset:i,children:o}=r[0].props;if(!i)return;const a=Array.isArray(o)&&o[0];if(!a)return;let s=a.props.barWidth,l=a.props.data&&a.props.data.length||1;if(a&&"stack"===a.type.role){const t=a.props.children&&a.props.children[0];if(!t)return;s=t.props.barWidth,l=a.props.children.length}const c=s||Ey(t,o.length,l);return{x:c*o.length/2+(i-c*((o.length-1)/2))}}function Sy(t,n,e){const r=e?e.slice(0):E().Children.toArray(t.children),i=t.data?_a(t):void 0,{polar:o,startAngle:a,endAngle:s,categories:l,minDomain:c,maxDomain:u,horizontal:h}=t,d={horizontal:h,polar:o,startAngle:a,endAngle:s,minDomain:c,maxDomain:u,categories:l},f=i?Object.assign(d,{data:i}):d,p=mt(r,(t=>{const e=Object.assign({},t.props,f);return Wa(t)?t.type&&ct(t.type.getDomain)?t.props&&t.type.getDomain(e,n):Ta(e,n):null}),t);return[0===p.length?0:Et(p),0===p.length?1:At(p)]}function Oy(t,n,e){const r=e||E().Children.toArray(t.children),i=za(t,n),o=ky(t,n,r);let a;if(i)a=i;else{const e=Fa(t,n),i=Ia(t,n),o=(t.data||t.y)&&_a(t),s=o?$a(t,n,o):[],l=Sy(t,n,r);a=Na(e||Et([...s,...l]),i||At([...s,...l]))}return La(a,Object.assign({domainPadding:o},t),n)}function Dy(t,n,e){if(t.data)return Yo(t,n);const r=e?e.slice(0):E().Children.toArray(t.children),i=W()(mt(r,(e=>Qo(Object.assign({},e.props,{horizontal:t.horizontal}),n)),t));return i.length>1?Ko("linear"):Ko(i[0])}function Py(t){const n=Df(t,["groupComponent","containerComponent","labelComponent"]);let e=t.events;return Array.isArray(n)&&(e=Array.isArray(t.events)?n.concat(...t.events):n),e||[]}function Ly(t,n,e,r){const{style:i}=t;let{colorScale:o,color:a}=t;if(i&&i.data&&i.data.fill)return i.data.fill;if(o=n.props&&n.props.colorScale?n.props.colorScale:o,a=n.props&&n.props.color?n.props.color:a,!o&&!a)return;const s=Array.isArray(o)?o:wh(o,r);return a||s[e%s.length]}function Ty(t,n,e){return tt(n,t&&t[e]&&t[e].style?t[e].style:{})}function jy(t,n,e,r){const{style:i,role:o}=e,a=t.props.style||{};if(Array.isArray(a))return a;const s=t.type&&t.type.role,l="stack"===s?void 0:Ly(e,t,n,r),c="line"===s?{fill:"none",stroke:l}:{fill:l},u="stack"===o?{}:{width:Ey(e)},h=U()({},a.data,Object.assign({},u,i.data,c)),d=U()({},a.labels,i.labels);return{...a,parent:i.parent,data:h,labels:d}}function $y(t,n){return mt(t.slice(0),(t=>Wa(t)?Ca(t.props||{},n):null))}function Ny(t){return mt(t.slice(0),(t=>{const n=t.props||{};let e;return Aa(t)?(e=t.type&&ct(t.type.getData)?t.type.getData(n):_a(n),e.map((t=>({x:t.xName,y:t.yName})))):null}),{},{x:[],y:[]},((t,n)=>{const e=Array.isArray(n)?n.map((t=>t.x)).filter(Boolean):n.x,r=Array.isArray(n)?n.map((t=>t.y)).filter(Boolean):n.y;return{x:void 0!==e?t.x.concat(e):t.x,y:void 0!==r?t.y.concat(r):t.y}}))}function zy(t,n,e){const r=Ca(t,n),i=Xf(e,n),o=i?Ma(i.props,n):[],a=r.length?r:$y(e,n);return W()([...a,...o].flat())}function Ry(t,n){const e=n||E().Children.toArray(t.children),r=zy(t,"x",e),i=zy(t,"y",e),o=Ny(e);return{x:W()([...r,...o.x].flat()),y:W()([...i,...o.y].flat())}}function Iy(t,n,e){const r=t.categories&&Ca(t,"x"),i=t.categories&&Ca(t,"y"),o=r&&i?{}:e||Ry(t,n),a=r||o.x,s=i||o.y;return{x:a.length>0?a:void 0,y:s.length>0?s:void 0}}function Fy(t){const n=E().useRef();return E().useEffect((()=>{n.current=t})),n.current}var By=r(7314),Wy=r.n(By),Vy=r(2516),Uy=r.n(Vy);class qy extends E().Component{static displayName="VictorySharedEvents";static role="shared-event-wrapper";static contextType=sf;static defaultProps={groupComponent:E().createElement("g",null)};constructor(t){super(t),this.getScopedEvents=wf.bind(this),this.getEventState=Ef.bind(this),this.state=this.state||{},this.sharedEventsCache={},this.globalEvents={},this.prevGlobalEventKeys=[],this.boundGlobalEvents={},this.baseProps=this.getBaseProps(t)}shouldComponentUpdate(t){if(!ed()(this.props,t)){this.baseProps=this.getBaseProps(t);const n=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,n)}return!0}componentDidMount(){const t=Object.keys(this.globalEvents);t.forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentDidUpdate(){const t=Object.keys(this.globalEvents);Mt(this.prevGlobalEventKeys,t).forEach((t=>this.removeGlobalListener(t))),Mt(t,this.prevGlobalEventKeys).forEach((t=>this.addGlobalListener(t))),this.prevGlobalEventKeys=t}componentWillUnmount(){this.prevGlobalEventKeys.forEach((t=>this.removeGlobalListener(t)))}addGlobalListener(t){const n=n=>{const e=this.globalEvents[t];return e&&e(jf(n))};this.boundGlobalEvents[t]=n,window.addEventListener(Pf(t),n)}removeGlobalListener(t){window.removeEventListener(Pf(t),this.boundGlobalEvents[t])}getAllEvents(t){const n=Df(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat(...t.events):n:t.events}applyExternalMutations(t,n){if(!S()(n)){const e=t.externalEventMutations.reduce(((t,n)=>ct(n.callback)?t.concat(n.callback):t),[]),r=e.length?()=>{e.forEach((t=>t()))}:void 0;this.setState(n,r)}}getExternalMutations(t,n){return S()(t.externalEventMutations)?void 0:kf(t.externalEventMutations,n,this.state,Object.keys(n))}cacheSharedEvents(t,n,e){this.sharedEventsCache[t]=[n,e]}getCachedSharedEvents(t,n){const[e,r]=this.sharedEventsCache[t]||[];if(e&&ed()(n,r))return e}getBaseProps(t){const{container:n}=t,e=E().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(e),i=n?n.props:{};return Object.assign({},r,{parent:i})}getBasePropsFromChildren(t){const n=mt(t,((t,n)=>{if(t.type&&ct(t.type.getBaseProps)){const e=t.props&&t.type.getBaseProps(t.props);return e?[[n,e]]:null}return null}));return Wy()(n)}getNewChildren(t,n){const{events:e,eventKey:r}=t,i=(t,o)=>t.reduce(((t,a,s)=>{if(a.props.children){const n=E().Children.toArray(a.props.children),e=o.slice(s,s+n.length),r=E().cloneElement(a,a.props,i(n,e));return t.concat(r)}if("parent"!==o[s]&&a.type&&ct(a.type.getBaseProps)){const i=a.props.name||o[s],l=Array.isArray(e)&&e.filter((t=>"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(i)>-1:t.childName===i||"all"===t.childName))),c=[i,n,l,Uy()(this.state[i])],u=this.getCachedSharedEvents(i,c)||{events:l,getEvents:(t,e)=>this.getScopedEvents(t,e,i,n),getEventState:(t,n)=>this.getEventState(t,n,i)};return this.cacheSharedEvents(i,u,c),t.concat(E().cloneElement(a,Object.assign({key:`events-${i}`,sharedEvents:u,eventKey:r,name:i},a.props)))}return t.concat(a)}),[]),o=Object.keys(n),a=E().Children.toArray(t.children);return i(a,o)}getContainer(t,n,e){const r=this.getNewChildren(t,n),i=Array.isArray(e)?e.filter((t=>"parent"===t.target)):[],o=i.length>0?{events:i,getEvents:(t,e)=>this.getScopedEvents(t,e,null,n),getEventState:this.getEventState}:null,a=t.container||t.groupComponent,s=a.type&&a.type.role,l=a.props||{},c=Cf.bind(this),u=o&&c({sharedEvents:o},"parent"),h=U()({},this.getEventState("parent","parent"),l,n.parent,{children:r}),d=U()({},Af(u,"parent",h),l.events);this.globalEvents=Lf(d);const f=Tf(d);return"container"===s?E().cloneElement(a,Object.assign({},h,{events:f})):E().cloneElement(a,f,r)}render(){const t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):E().cloneElement(this.props.container,{children:this.props.children})}}const Hy=t=>{const{cx:n,cy:e,r:r,startAngle:i,endAngle:o,closedPath:a}=t,s=Math.abs(o-i)/2+i,l=n+r*Math.cos(rt(i)),c=e-r*Math.sin(rt(i));return`${a?` M ${n}, ${e} L ${l}, ${c}`:`M ${l}, ${c}`} A ${r}, ${r}, 0, ${s-i<=180?0:1}, 0, ${n+r*Math.cos(rt(s))}, ${e-r*Math.sin(rt(s))} A ${r}, ${r}, 0, ${o-s<=180?0:1}, 0, ${n+r*Math.cos(rt(o))}, ${e-r*Math.sin(rt(o))} ${a?"Z":""}`},Gy={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Ky=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=et(Object.assign({stroke:"black",fill:"none"},t.style),t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,style:i,tabIndex:o})})(U()({},t,Gy));return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:Hy(n),style:n.style,desc:n.desc,tabIndex:n.tabIndex,className:n.className,role:n.role,shapeRendering:n.shapeRendering,transform:n.transform,clipPath:n.clipPath})},Yy=(t,n,e)=>"x"===e?t*Math.cos(n):-t*Math.sin(n),Xy=t=>{const n=t.dependentAxis?"radial":"angular",e="angular"===n?"radial":"angular";return t.horizontal?e:n},Zy=(t,n)=>({tickStyle:et(t.ticks,n),labelStyle:et(t.tickLabels,n),gridStyle:et(t.grid,n)}),Qy=t=>{const{left:n,right:e,top:r,bottom:i}=Z(t.padding),{width:o,height:a}=t;if(void 0===o||void 0===a)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(o-n-e,a-r-i)/2},Jy=(t,n)=>{if(t.range&&t.range[n])return t.range[n];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===Xy(t))return[rt(t.startAngle),rt(t.endAngle)];const e=Qy(t);return[t.innerRadius||0,e]},tg=t=>{const n=Kf(t),e=Yo(t,n),r=sp(t,n)||e.domain(),i=Jy(t,n);return e.range(i),e.domain(r),e},ng=function(t,n){if(void 0===n&&(n={}),t.disableInlineStyles)return{};const e=t.style||{};return{parent:U()({height:"auto",width:"100%"},e.parent,n.parent),axis:U()({},e.axis,n.axis),axisLabel:U()({},e.axisLabel,n.axisLabel),grid:U()({},e.grid,n.grid),ticks:U()({},e.ticks,n.ticks),tickLabels:U()({},e.tickLabels,n.tickLabels)}},eg=t=>{const{axisAngle:n,startAngle:e,dependentAxis:r}=t,i=lp(t,Kf(t));return void 0!==i&&r?it(i):void 0===n?e:n},rg=(t,n,e,r)=>{const{axisType:i,radius:o,scale:a,style:s,stringTicks:l,ticks:c,tickFormat:u,origin:h}=n,d=u(e,r,c),f=l?l[r]:e,{tickStyle:p}=Zy(s,{tick:f,tickValue:e,index:r,ticks:c,stringTicks:l,radius:o,scale:a,axisType:i,text:d}),m="radial"===i?eg(t):void 0,y=p.padding||p.size||0,g=rt(90-m),x="angular"===i?a(e):rt(-1*m),v="angular"===i?o:a(e);return"angular"===i?{index:r,datum:f,style:p,x1:Yy(v,x,"x")+h.x,y1:Yy(v,x,"y")+h.y,x2:Yy(v+y,x,"x")+h.x,y2:Yy(v+y,x,"y")+h.y}:{index:r,datum:f,style:p,x1:v*Math.cos(x)+Math.cos(g)*y+h.x,x2:v*Math.cos(x)-Math.cos(g)*y+h.x,y1:v*Math.sin(x)+Math.sin(g)*y+h.y,y2:v*Math.sin(x)-Math.sin(g)*y+h.y}},ig=(t,n,e,r)=>{const{axisType:i,radius:o,tickFormat:a,style:s,scale:l,ticks:c,stringTicks:u,origin:h}=n,d=a(e,r,c),f=u?u[r]:e,{labelStyle:p}=Zy(s,{text:d,tick:f,tickValue:e,index:r,ticks:c,stringTicks:u,radius:o,scale:l,axisType:i}),{tickLabelComponent:m}=t,y=m?.props.labelPlacement?m.props.labelPlacement:t.labelPlacement,g=p.padding||0,x="radial"===i?eg(t):void 0,v="angular"===i?it(l(e)):x+0,b=void 0===p.angle?Ga(Object.assign({},t,{labelPlacement:y}),v):p.angle,_="angular"===i?o+g:l(e);return{index:r,datum:f,style:p,angle:b,textAnchor:p.textAnchor||qa(Object.assign({},t,{labelPlacement:y}),v),text:d,x:_*Math.cos(rt(v))+h.x,y:-_*Math.sin(rt(v))+h.y}},og=(t,n,e,r)=>{const{axisType:i,radius:o,style:a,scale:s,stringTicks:l,ticks:c,tickFormat:u,origin:h}=n,d=u(e,r,c),{startAngle:f,endAngle:p,innerRadius:m=0}=t,y=l?l[r]:e,{gridStyle:g}=Zy(a,{tick:y,tickValue:e,index:r,ticks:c,stringTicks:l,radius:o,scale:s,axisType:i,text:d}),x=s(e);return"angular"===i?{index:r,datum:y,style:g,x1:Yy(o,x,"x")+h.x,y1:Yy(o,x,"y")+h.y,x2:Yy(m,x,"x")+h.x,y2:Yy(m,x,"y")+h.y}:{style:g,index:r,datum:y,cx:h.x,cy:h.y,r:s(e),startAngle:f,endAngle:p}},ag=(t,n)=>{const e=cp(t,n),r=(t=>{const n=Object.assign({polar:!0},t),e=(t=>{const{theme:n={},dependentAxis:e}=t,r=n.polarAxis&&n.polarAxis.style||n.axis&&n.axis.style,i=e?"dependentAxis":"independentAxis",o=n?.[e?"polarDependentAxis":"polarIndependentAxis"]?.style||n?.[i]?.style;return r&&o?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce(((t,n)=>(t[n]=U()({},o?.[n],r?.[n]),t)),{}):o||r})(n),r=ng(n,e),i=Z(n.padding),o=Kf(n),a=Xy(n),s=np(n)?n.tickValues:void 0,l=sp(n,o),c=Jy(n,o),u=tg(n),h=op(n,u),d="angular"===a?((t,n)=>My()(t,(t=>n(t)%(2*Math.PI))))(h,u):h;return{axis:o,style:r,padding:i,stringTicks:s,axisType:a,scale:u,ticks:d,tickFormat:rp(n,u),domain:l,range:c,radius:Qy(n),origin:at(n)}})(e),{style:i,scale:o,ticks:a,domain:s}=r,{width:l,height:c,standalone:u,theme:h,name:d}=e,f=((t,n)=>{const{style:e,axisType:r,radius:i,origin:o}=n,{startAngle:a,endAngle:s,innerRadius:l=0}=t,c="radial"===r?rt(eg(t)):void 0;return"radial"===r?{style:e.axis,x1:Yy(l,c,"x")+o.x,x2:Yy(i,c,"x")+o.x,y1:Yy(l,c,"y")+o.y,y2:Yy(i,c,"y")+o.y}:{style:e.axis,cx:o.x,cy:o.y,r:i,startAngle:a,endAngle:s}})(e,r),p=((t,n)=>{const{axisType:e,radius:r,style:i,origin:o}=n,{axisLabelComponent:a}=t;if("radial"!==e)return{};const s=a?.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,l=i&&i.axisLabel||{},c="radial"===e?eg(t):void 0,u=void 0===l.angle?Ga(Object.assign({},t,{labelPlacement:s}),c):l.angle,h=r+(l.padding||0);return{style:l,angle:u,textAnchor:l.textAnchor||qa(Object.assign({},t,{labelPlacement:s}),c),verticalAnchor:l.verticalAnchor||Ha(Object.assign({},t,{labelPlacement:s}),c),text:t.label,x:Yy(h,rt(c),"x")+o.x,y:Yy(h,rt(c),"y")+o.y}})(e,r),m={parent:{style:i.parent,ticks:a,scale:o,width:l,height:c,domain:s,standalone:u,theme:h,name:d}};return a.reduce(((t,n,i)=>(t[i]={axis:f,axisLabel:p,ticks:rg(e,r,n,i),tickLabels:ig(e,r,n,i),grid:og(e,r,n,i)},t)),m)},sg={width:450,height:300,padding:50};class lg extends E().Component{static animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"];static displayName="VictoryAxis";static role="axis";static defaultTransitions={onExit:{duration:500},onEnter:{duration:500}};static defaultProps={axisComponent:E().createElement(Uf,null),axisLabelComponent:E().createElement(Zh,null),circularAxisComponent:E().createElement(Ky,null),circularGridComponent:E().createElement(Ky,null),containerComponent:E().createElement(lu,null),endAngle:360,gridComponent:E().createElement(Uf,null),groupComponent:E().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Mh.grayscale,tickComponent:E().createElement(Uf,null),tickLabelComponent:E().createElement(Zh,null)};static getDomain=sp;static getAxis=Kf;static getScale(t){return tg(t)}static getStyles(t){return ng(t,sg.style)}static getBaseProps(t){return ag(t,sg)}static expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];renderAxisLine(t){const{dependentAxis:n}=t,e=n?t.axisComponent:t.circularAxisComponent,r=this.getComponentProps(e,"axis",0);return E().cloneElement(e,r)}renderLabel(t){const{axisLabelComponent:n,dependentAxis:e,label:r}=t;if(!r||!e)return null;const i=this.getComponentProps(n,"axisLabel",0);return E().cloneElement(n,i)}renderAxis(t){const{tickComponent:n,tickLabelComponent:e,name:r}=t,i=t=>{const{style:n={},events:e={}}=t;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!S()(e)},o="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,a=this.dataKeys.map(((t,e)=>{const o=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(n,"ticks",e)),a=E().cloneElement(n,o);return i(a.props)?a:void 0})).filter(Boolean),s=this.dataKeys.map(((t,n)=>{const e=Object.assign({key:`${r}-grid-${t}`},this.getComponentProps(o,"grid",n)),a=E().cloneElement(o,e);return i(a.props)?a:void 0})).filter(Boolean),l=this.dataKeys.map(((t,n)=>{const i=Object.assign({key:`${r}-tick-${t}`},this.getComponentProps(e,"tickLabels",n));return E().cloneElement(e,i)})),c=[this.renderAxisLine(t),this.renderLabel(t),...a,...s,...l];return this.renderGroup(t,c)}renderGroup(t,n){const{groupComponent:e}=t;return E().cloneElement(e,{},n)}shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t}=cg,n=cp(this.props,sg);if(this.shouldAnimate())return this.animateComponent(n,t);const e=this.renderAxis(n);return n.standalone?this.renderContainer(n.containerComponent,e):e}}const cg=zf(lg,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),ug={width:450,height:300,padding:50};function hg(t,n){const e=function(t){const n=t.style&&t.style.parent;return{parent:U()({},n,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=ht(t,ug,"chart"),{horizontal:i,polar:o}=r,a=Ry(r,n),s=Iy(r,n,a),l=pg(r,n,a),c={x:fg(Object.assign({},r,{categories:s}),"x",n),y:fg(Object.assign({},r,{categories:s}),"y",n)},u={x:st(r,"x"),y:st(r,"y")},h={x:Zo(r,"x")||Dy(r,"x"),y:Zo(r,"y")||Dy(r,"y")};return{categories:s,domain:c,range:u,horizontal:i,scale:{x:h.x.domain(c.x).range(i?u.y:u.x),y:h.y.domain(c.y).range(i?u.x:u.y)},stringMap:l,style:e,origin:o?at(r):Qf(c),padding:Z(r.padding)}}const dg=(t,n)=>{let e=E().Children.toArray(t.children);if(0===e.length)e.push(n.independent,n.dependent);else{const r={dependent:Zf(e,"dependent"),independent:Zf(e,"independent")};0===r.dependent.length&&0===r.independent.length&&(e=t.prependDefaultAxes?[n.independent,n.dependent].concat(e):e.concat([n.independent,n.dependent]))}return e},fg=(t,n,e)=>{const r=e||E().Children.toArray(t.children),i=Oy(t,n,r),o=Xf(r,n);return o&&o.props&&o.props.invertAxis?i.concat().reverse():i},pg=(t,n,e)=>{const r=e.x&&0!==e.x.length?e.x.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null,i=e.y&&0!==e.y.length?e.y.reduce(((t,n,e)=>(t[n]=e+1,t)),{}):null;return{x:r,y:i}},mg={width:450,height:300,padding:50},yg={backgroundComponent:E().createElement(xy,null),containerComponent:E().createElement(lu,null),defaultAxes:{independent:E().createElement(Ep,null),dependent:E().createElement(Ep,{dependentAxis:!0})},defaultPolarAxes:{independent:E().createElement(cg,null),dependent:E().createElement(cg,{dependentAxis:!0})},groupComponent:E().createElement("g",null),standalone:!0,theme:Mh.grayscale},gg=t=>{const n=E().useMemo((()=>U()({},t,yg)),[t]),{getAnimationProps:e,setAnimationState:r,getProps:i}=by(),o=i(n),a=ht(o,mg,"chart"),{desc:s,eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,name:g,title:x}=a,v=o.polar?a.defaultPolarAxes:a.defaultAxes,b=E().useMemo((()=>dg(a,v)),[a,v]),_=E().useMemo((()=>hg(a,b)),[a,b]),{domain:M,scale:C,style:w,origin:A,horizontal:k}=_,O=E().useMemo((()=>{const t=function(t,n,e){const r=n||dg(t),i=e||hg(t,r),o=i.style.parent,{height:a,polar:s,theme:l,width:c}=t,{origin:u,horizontal:h}=i,d=t.name||"chart";return r.filter(E().isValidElement).map(((n,e)=>{const r=n.type&&n.type.role,f=Array.isArray(n.props.style)?n.props.style:U()({},n.props.style,{parent:o}),p=function(t,n,e){const r=Yf([t]);if(r.length>0)return function(t,n,e){const{domain:r,scale:i,stringMap:o,categories:a,horizontal:s}=e;return{stringMap:o,horizontal:s,categories:a,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,domain:r,scale:i}}(r[0],n,e);const{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}=e;return{categories:i,domain:o,range:a,scale:s,stringMap:l,horizontal:c}}(n,t,i),m=n.props.name||`${d}-${r}-${e}`,y=U()({horizontal:h,height:a,polar:s,theme:l,width:c,style:f,name:m,origin:s?u:void 0,padding:i.padding,key:`${m}-key-${e}`,standalone:!1},p);return E().cloneElement(n,y)}))}(o,b,_).map(((t,n)=>{const r=Object.assign({animate:e(o,t,n)},t.props);return E().cloneElement(t,r)}));if(o.style&&o.style.background){const n=function(t,n){const e=t.backgroundComponent,r=t.polar?n.range.y[1]:n.range.y[0]-n.range.y[1],i=n.range.x[1]-n.range.x[0],o=t.horizontal?n.scale.y.range()[0]:n.scale.x.range()[0],a=t.horizontal?n.scale.x.range()[1]:n.scale.y.range()[1],s=t.polar?n.origin.x:o,l=t.polar?n.origin.y:a,c=t.name||"chart",u={height:r,polar:t.polar,scale:n.scale,style:t.style.background,x:s,y:l,key:`${c}-background`,width:i};return E().cloneElement(e,U()({},e.props,u))}(o,_);t.unshift(n)}return t}),[e,b,o,_]),D=E().useMemo((()=>u?{desc:s,domain:M,width:f,height:p,horizontal:k,name:g,origin:y?A:void 0,polar:y,theme:m,title:x,scale:C,standalone:u,style:w.parent}:{}),[s,M,p,k,g,A,y,C,u,w,x,m,f]),P=E().useMemo((()=>{if(u){const t=U()({},c.props,D,Wc(n));return E().cloneElement(c,t)}return h}),[h,u,c,D,n]),L=E().useMemo((()=>Py(o)),[o]),T=Fy(n);return E().useEffect((()=>()=>{n.animate&&r(T,n)}),[r,T,n]),S()(L)?E().cloneElement(P,P.props,O):E().createElement(qy,{container:P,eventKey:l,events:L,externalEventMutations:d},O)},xg=E().memo(gg,ed());xg.displayName="VictoryChart",xg.expectedComponents=["groupComponent","containerComponent"];const vg=t=>{let{desc:n,children:e,tabIndex:r,className:i="VictoryAccessibleGroup",...o}=t;const a=n&&(o["aria-describedby"]||n.split(" ").join("-"));return n?E().createElement("g",{"aria-label":o["aria-label"],"aria-describedby":a,className:i,tabIndex:r},E().createElement("desc",{id:a},n),e):E().createElement("g",{"aria-label":o["aria-label"],"aria-describedby":o["aria-describedby"],className:i,tabIndex:r},e)},bg=t=>{const{x:n,y:e,size:r,symbol:i}=t;if(t.getPath)return t.getPath(n,e,r);const o=M;return("function"==typeof o[i]?o[i]:o.circle)(n,e,r)},_g={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Mg=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.desc,t),r=nt(t.id,t),i=nt(t.size,t),o=et(t.style,t),a=nt(t.symbol,t),s=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,desc:e,id:r,size:i,style:o,symbol:a,tabIndex:s})})(U()({},t,_g)),e=Wc(n);return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:bg(n),style:n.style,desc:n.desc,tabIndex:n.tabIndex,role:n.role,shapeRendering:n.shapeRendering,className:n.className,transform:n.transform,clipPath:n.clipPath,...e})};var Cg=r(3105),wg=r.n(Cg),Ag=r(4542),Eg=r.n(Ag),kg=r(9324),Sg=r.n(kg);const Og={checkDomainEquality(t,n){const e=e=>{const r=t&&t[e],i=n&&n[e];return!r&&!i||!(!r||!i)&&Number(r[0])===Number(i[0])&&Number(r[1])===Number(i[1])};return e("x")&&e("y")},scale(t,n,e,r){const[i,o]=t,a=Math.abs(o-i),s=e.minimumZoom&&e.minimumZoom[r],l=this.getScaleFactor(n);if(s&&a<=s&&l<1)return t;const[c,u]=this.getDomain(e)[r],h=this.getScalePercent(n,e,r),d=l*i+h*(l*a),f=this.getMinimumDomain(d,e,r),[p,m]=this.getScaledDomain(t,l,h),y=[p>c&&p<u?p:c,m<u&&m>c?m:u],g=Math.abs(f[1]-f[0])>Math.abs(y[1]-y[0])?f:y;return vt([c,u])?[new Date(g[0]),new Date(g[1])]:g},getScaledDomain(t,n,e){const[r,i]=t,o=Math.abs(i-r),a=o-o*n,s=Number(r)+a*Math.max(e,0),l=Number(i)-a*Math.max(1-e,0);return[Math.min(s,l),Math.max(s,l)]},getMinimumDomain(t,n,e){const{minimumZoom:r}=n,i=this.getDomain(n)[e],[o,a]=i,s=Math.abs(o-a)/1e3,l=r&&r[e]||s,c=t-l/2,u=t+l/2;return[c>o&&c<a?c:o,u<a&&u>o?u:Number(o)+l/2]},zoommingOut:t=>t.deltaY>0,getScaleFactor(t){const n=this.zoommingOut(t)?1:-1,e=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+n*e)},getScalePercent(t,n,e){const r=this.getDomain(n),[i,o]=r[e];return(this.getPosition(t,n,r)[e]-i)/Math.abs(o-i)},getPosition(t,n,e){const{x:r,y:i}=ym(t),o={x:n.scale.x.domain(e.x),y:n.scale.y.domain(e.y)};return xm(n,o,r,i)},pan(t,n,e){const[r,i]=t.map((t=>Number(t))),[o,a]=n.map((t=>Number(t))),s=r+e,l=i+e;let c;return c=s>o&&l<a?[s,l]:s<o?[o,o+(i-r)]:l>a?[a-(i-r),a]:t,vt(t)||vt(n)?c.map((t=>new Date(t))):c},getDomainScale(t,n,e){const r=Array.isArray(t)?t:t[e],[i,o]=r,a=n[e].range();return Math.abs(a[0]-a[1])/(o-i)},handleAnimation(t){const n=t.context.animationTimer,e=t.context.transitionTimer;return e.bypassAnimation(),n.bypassAnimation(),Sg()((()=>{n.resumeAnimation(),e.resumeAnimation()}),16)},getLastDomain(t,n){const{zoomDomain:e,cachedZoomDomain:r,currentDomain:i,domain:o}=t;return e&&!this.checkDomainEquality(e,r)?U()({},e,o):U()({},i||e||n,o)},getDomain(t){const{originalDomain:n,domain:e,children:r,zoomDimension:i}=t,o=A.Children.toArray(r);let a={};return o.length&&(a=i?{[i]:Sy(t,i,o)}:{x:Sy(t,"x",o),y:Sy(t,"y",o)}),U()({},a,n,e)},onMouseDown(t,n){if(t.preventDefault(),!n.allowPan)return;const e=n.parentSVG||mm(t),{x:r,y:i}=ym(t,e);return[{target:"parent",mutation:()=>({startX:r,startY:i,panning:!0,parentSVG:e,parentControlledProps:["domain"]})}]},onMouseUp(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseLeave(t,n){if(n.allowPan)return[{target:"parent",mutation:()=>({panning:!1})}]},onMouseMove(t,n,e,r){if(n.panning&&n.allowPan){const{scale:e,startX:i,startY:o,onZoomDomainChange:a,zoomDomain:s,zoomDimension:l,horizontal:c}=n,u=n.parentSVG||mm(t),{x:h,y:d}=ym(t,u),f=this.getDomain(n),p=this.getLastDomain(n,f),m=c?i-h:d-o,y=(c?d-o:i-h)/this.getDomainScale(p,e,"x"),g=m/this.getDomainScale(p,e,"y"),x={x:"y"===l?f.x:this.pan(p.x,f.x,y),y:"x"===l?f.y:this.pan(p.y,f.y,g)},v=this.handleAnimation(r),b={parentControlledProps:["domain"],startX:h,startY:d,parentSVG:u,currentDomain:x,originalDomain:f,cachedZoomDomain:s,zoomActive:!this.checkDomainEquality(f,p)};return ct(a)&&a(x,U()({},b,n)),[{target:"parent",callback:v,mutation:()=>b}]}},onWheel(t,n,e,r){if(!n.allowZoom)return;const{onZoomDomainChange:i,zoomDimension:o,zoomDomain:a}=n,s=this.getDomain(n),l=this.getLastDomain(n,s),{x:c,y:u}=l,h={x:"y"===o?l.x:this.scale(c,t,n,"x"),y:"x"===o?l.y:this.scale(u,t,n,"y")},d=this.handleAnimation(r),f={currentDomain:h,originalDomain:s,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||n.zoomActive&&!this.checkDomainEquality(s,l)};return ct(i)&&i(h,U()({},f,n)),[{target:"parent",callback:d,mutation:()=>f}]}},Dg={checkDomainEquality:Og.checkDomainEquality.bind(Og),onMouseDown:Og.onMouseDown.bind(Og),onMouseUp:Og.onMouseUp.bind(Og),onMouseLeave:Og.onMouseLeave.bind(Og),onMouseMove:_m()(Og.onMouseMove.bind(Og),16,{leading:!0,trailing:!1}),onWheel:_m()(Og.onWheel.bind(Og),16,{leading:!0,trailing:!1})},Pg={clipContainerComponent:E().createElement(pu,null),allowPan:!0,allowZoom:!0,zoomActive:!1},Lg=t=>{const n={...Pg,...t},{children:e,currentDomain:r,zoomActive:i,allowZoom:o,downsample:a,scale:s,clipContainerComponent:l,polar:c,origin:u,horizontal:h}=n,d=(t,e)=>{const r=(n=>{const{data:e,x:r,y:i}=n,o=t.type&&"function"==typeof t.type.getData?t.type.getData:()=>{};return!Array.isArray(e)||r||i?o(n):e})(t.props);if(!a||!e||!r)return;const i=!0===a?150:a,o=n.zoomDimension||"x";let s=r.findIndex((t=>t[o]>=e[o][0])),l=r.findIndex((t=>t[o]>e[o][1]));return 0!==s&&(s-=1),-1!==l&&(l+=1),ga(r.slice(s,l),i,s)},f=E().Children.toArray(e).map((t=>{const e=t.type&&t.type.role,a=Aa(t),f=U()({},n.originalDomain,n.domain),p=U()({},n.zoomDomain,n.domain),m=U()({},n.cachedZoomDomain,n.domain);let y;y=Dg.checkDomainEquality(p,m)?o&&!i?t.props.domain:U()({},r,f):p;let g=n.polar?{x:f.x,y:[0,y.y[1]]}:y;g&&n.zoomDimension&&(g={...p,[n.zoomDimension]:g[n.zoomDimension]});const x=a&&"stack"!==e?{domain:g,data:d(t,g)}:{domain:g},v=E().cloneElement(t,U()(x,t.props));if(Aa(v)){const t=h?s.y.range():s.x.range(),n=h?s.x.range():s.y.range(),e=Math.abs(t[0]-t[1]),r=Math.abs(n[0]-n[1]),i=Math.max(...n),o=E().cloneElement(l,{clipWidth:e,clipHeight:r,translateX:Math.min(...t),translateY:Math.min(...n),polar:c,origin:c?u:void 0,radius:c?i:void 0,...l.props});return E().cloneElement(v,{groupComponent:o})}return v}));return{props:n,children:f}},Tg=t=>{const{props:n,children:e}=Lg(t);return E().createElement(lu,n,e)};Tg.role="container",Tg.defaultEvents=t=>{const n={...Pg,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseDown:e(Dg.onMouseDown),onTouchStart:e(Dg.onMouseDown),onMouseUp:e(Dg.onMouseUp),onTouchEnd:e(Dg.onMouseUp),onMouseLeave:e(Dg.onMouseLeave),onTouchCancel:e(Dg.onMouseLeave),onMouseMove:e(Dg.onMouseMove),onTouchMove:e(Dg.onMouseMove),onWheel:e(Dg.onWheel,!n.allowZoom)}}]};const jg=new class{getDimension(t){const{horizontal:n,selectionDimension:e}=t;return n&&e?"x"===e?"y":"x":e}getDatasets(t){return t.data?[{data:t.data}]:mt(E().Children.toArray(t.children),((n,e,r)=>{const i=t.selectionBlacklist||[];let o;if(!Aa(n)||i.includes(e))return null;if(n.type&&ct(n.type.getData)){o=r?E().cloneElement(n,r.props):n;const t=o.props&&o.type.getData(o.props);return t?{childName:e,data:t}:null}const a=(t=>{const n=_a(t);return Array.isArray(n)&&n.length>0?n:void 0})(o.props);return a?{childName:e,data:a}:null}),t)}filterDatasets(t,n){const e=n.reduce(((n,e)=>{const r=this.getSelectedData(t,e.data);return r?n.concat({childName:e.childName,eventKey:r.eventKey,data:r.data}):n}),[]);return e.length?e:null}getSelectedData(t,n){const{x1:e,y1:r,x2:i,y2:o}=t,a=n=>{const a=X(t,n);return a.x>=Math.min(e,i)&&a.x<=Math.max(e,i)&&a.y>=Math.min(r,o)&&a.y<=Math.max(r,o)},s=[],l=[];let c=0;for(let t=0,e=n.length;t<e;t++){const e=n[t];a(e)&&(l[c]=e,s[c]=void 0===e.eventKey?t:e.eventKey,c++)}return c>0?{eventKey:s,data:l}:null}onMouseDown=(t,n)=>{t.preventDefault();const{activateSelectedData:e,allowSelection:r,polar:i,selectedData:o}=n;if(!r)return{};const a=this.getDimension(n),s=n.parentSVG||mm(t),{x:l,y:c}=ym(t,s),u={x1:i||"y"!==a?l:gm(n).x[0],y1:i||"x"!==a?c:gm(n).y[0],select:!0,x2:i||"y"!==a?l:gm(n).x[1],y2:i||"x"!==a?c:gm(n).y[1],parentSVG:s};o&&ct(n.onSelectionCleared)&&n.onSelectionCleared(U()({},u,n));const h=[{target:"parent",mutation:()=>u}],d=o&&e?o.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>null}))):[];return h.concat(...d)};handleMouseMove=(t,n)=>{const{allowSelection:e,select:r,polar:i}=n,o=this.getDimension(n);if(!e||!r)return null;const a=n.parentSVG||mm(t),{x:s,y:l}=ym(t,a),c=i||"y"!==o?s:gm(n).x[1],u=i||"x"!==o?l:gm(n).y[1];return{target:"parent",mutation:()=>({x2:c,y2:u,parentSVG:a})}};onMouseMove=_m()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseUp=(t,n)=>{const{activateSelectedData:e,allowSelection:r,x2:i,y2:o}=n;if(!r)return null;if(!i||!o)return[{target:"parent",mutation:()=>({select:!1,x1:null,x2:null,y1:null,y2:null})}];const a=this.getDatasets(n),s=vm(n),l=this.filterDatasets(n,a),c={selectedData:l,datasets:a,select:!1,x1:null,x2:null,y1:null,y2:null},u=l&&ct(n.onSelection)?n.onSelection(l,s,U()({},c,n)):{},h=[{target:"parent",mutation:()=>c}],d=l&&e?l.map((t=>({childName:t.childName,eventKey:t.eventKey,target:"data",mutation:()=>Object.assign({active:!0},u)}))):[];return h.concat(d)}},$g={activateSelectedData:!0,allowSelection:!0,selectionComponent:E().createElement(fu,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}},Ng=t=>{const n={...$g,...t},{x1:e,x2:r,y1:i,y2:o,selectionStyle:a,selectionComponent:s,children:l,name:c}=n,u=Math.abs(r-e)||1,h=Math.abs(o-i)||1,d=Math.min(e,r),f=Math.min(i,o);return{props:n,children:[l,i&&o&&e&&r&&E().cloneElement(s,{key:`${c}-selection`,x:d,y:f,width:u,height:h,style:a})]}},zg=t=>{const{props:n,children:e}=Ng(t);return E().createElement(lu,n,e)};zg.role="container",zg.defaultEvents=t=>{const n={...$g,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseDown:e(jg.onMouseDown),onTouchStart:e(jg.onMouseDown),onMouseMove:e(jg.onMouseMove),onTouchMove:e(jg.onMouseMove),onMouseUp:e(jg.onMouseUp),onTouchEnd:e(jg.onMouseUp)}}]};const Rg=t=>{const n=t.orientation||"top";return"left"===n||"right"===n?(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,s="left"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,h=a.y,d=u-s*(i/2),f=u+s*(i/2),p=h+o/2,m=h-o/2,y=s*(l-d)>0?0:t.pointerLength,g=`${e} ${e} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${d}, ${h-n/2}\n L ${y?l:d}, ${y?c:h+n/2}\n L ${d}, ${h+n/2}\n L ${d}, ${p-e}\n A ${g} ${d+s*e}, ${p}\n L ${f-s*e}, ${p}\n A ${g} ${f}, ${p-e}\n L ${f}, ${m+e}\n A ${g} ${f-s*e}, ${m}\n L ${d+s*e}, ${m}\n A ${g} ${d}, ${m+e}\n z`})(t):(t=>{const{pointerWidth:n,cornerRadius:e,orientation:r,width:i,height:o,center:a}=t,s="bottom"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,h=a.y,d=h+s*(o/2),f=h-s*(o/2),p=u+i/2,m=u-i/2,y=s*(c-d)<0?0:t.pointerLength,g=`${e} ${e} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-n/2}, ${d}\n L ${y?l:u+n/2}, ${y?c:d}\n L ${u+n/2}, ${d}\n L ${p-e}, ${d}\n A ${g} ${p}, ${d-s*e}\n L ${p}, ${f+s*e}\n A ${g} ${p-e}, ${f}\n L ${m+e}, ${f}\n A ${g} ${m}, ${f+s*e}\n L ${m}, ${d-s*e}\n A ${g} ${m+e}, ${d}\n z`})(t)},Ig={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},Fg=t=>{const n=(t=>{const n=nt(t.id,t),e=et(t.style,t);return{...t,id:n,style:e}})(U()({},t,Ig)),e=Wc(n);Bc(n.height,"Flyout props[height] is undefined"),Bc(n.width,"Flyout props[width] is undefined"),Bc(n.x,"Flyout props[x] is undefined"),Bc(n.y,"Flyout props[y] is undefined");const r={center:n.center||{x:0,y:0},cornerRadius:n.cornerRadius||0,dx:n.dx,dy:n.dy,height:n.height,orientation:n.orientation||"top",pointerLength:n.pointerLength||0,pointerWidth:n.pointerWidth||0,width:n.width,x:n.x,y:n.y};return E().cloneElement(n.pathComponent,{...n.events,...e,style:n.style,d:Rg(r),className:n.className,shapeRendering:n.shapeRendering,role:n.role,transform:n.transform,clipPath:n.clipPath})},Bg={cornerRadius:5,pointerLength:10,pointerWidth:10};class Wg extends E().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:E().createElement(Zh,null),flyoutComponent:E().createElement(Fg,null),groupComponent:E().createElement("g",null)};static defaultEvents(t){const n=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],e=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>n,onFocus:()=>n,onTouchStart:()=>n,onMouseOut:()=>e,onBlur:()=>e,onTouchEnd:()=>e}}]}constructor(t){super(t),this.id=void 0===t.id?Zc()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:n,horizontal:e,polar:r}=t;if(!r){const t=e?"right":"top",r=e?"left":"bottom";return n&&n.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const n=Ka(t,t.datum),e=t.labelPlacement||"vertical";return"vertical"===e?this.getVerticalOrientations(n):"parallel"===e?n<90||n>270?"right":"left":n>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const n=t.theme||Mh.grayscale,e=n&&n.tooltip&&n.tooltip.style?n.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>U()({},t,e))):U()({},t.style,e),i=n&&n.tooltip&&n.tooltip.flyoutStyle?n.tooltip.flyoutStyle:{},o=t.flyoutStyle?U()({},t.flyoutStyle,i):i,a=Array.isArray(r)?r.map((n=>et(n,t))):et(r,t);return{style:a,flyoutStyle:et(o,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:n,centerOffset:e,dx:r,dy:i}=t,o=nt(t.active,t);let a=nt(t.text,Object.assign({},t,{active:o}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());const{style:s,flyoutStyle:l}=this.getStyles(Object.assign({},t,{active:o,text:a})),c=nt(t.orientation,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l}))||this.getDefaultOrientation(t),u=Z(nt(t.flyoutPadding,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c}))||this.getLabelPadding(s)),h=nt(t.pointerWidth,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),d=nt(t.pointerLength,Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c})),f=Fh(a,s),{flyoutHeight:p,flyoutWidth:m}=this.getDimensions(Object.assign({},t,{style:s,flyoutStyle:l,active:o,text:a,orientation:c,flyoutPadding:u,pointerWidth:h,pointerLength:d}),f),y=Object.assign({},t,{active:o,text:a,style:s,flyoutStyle:l,orientation:c,flyoutHeight:p,flyoutWidth:m,flyoutPadding:u,pointerWidth:h,pointerLength:d}),g=L()(e)&&void 0!==e?.x?nt(e.x,y):0,x=L()(e)&&void 0!==e?.y?nt(e.y,y):0;return{...y,centerOffset:{x:g,y:x},dx:void 0!==r?nt(r,y):0,dy:void 0!==i?nt(i,y):0,cornerRadius:nt(n,y)}}getCalculatedValues(t){const{style:n,text:e,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:n,flyoutStyle:r,labelSize:Fh(e,n),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:n,y:e,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${n} ${e})`:void 0}getDefaultAngle(t){const{polar:n,labelPlacement:e,orientation:r,datum:i}=t;if(!n||!e||"vertical"===e)return 0;const o=Ka(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270:90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===e?0:90)}constrainTooltip(t,n,e){const{x:r,y:i}=t,{width:o,height:a}=e,s=[0,n.width],l=[0,n.height],c=[r-o/2,r+o/2],u=[i-a/2,i+a/2],h=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],d=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(r+h[0]-h[1]),y:Math.round(i+d[0]-d[1])}}getFlyoutCenter(t,n){const{x:e,y:r,dx:i,dy:o,pointerLength:a,orientation:s,constrainToVisibleArea:l,centerOffset:c}=t,{height:u,width:h}=n,d="left"===s?-1:1,f="bottom"===s?-1:1,p={x:"left"===s||"right"===s?e+d*(a+h/2+d*i):e+i,y:"top"===s||"bottom"===s?r-f*(a+u/2-f*o):r+o},m=L()(t.center)&&void 0!==t.center.x?t.center.x:p.x,y=L()(t.center)&&void 0!==t.center.y?t.center.y:p.y,g={x:m+c.x,y:y+c.y};return l?this.constrainTooltip(g,t,n):g}getLabelPadding(t){if(!t)return 0;const n=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...n,0)}getDimensions(t,n){const{orientation:e,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:s}=t,l=nt(t.cornerRadius,t);return{flyoutHeight:o?nt(o,t):(()=>{const t=n.height+s.top+s.bottom,r="top"===e||"bottom"===e?2*l:2*l+i;return Math.max(r,t)})(),flyoutWidth:a?nt(a,t):(()=>{const t=n.width+s.left+s.right,i="left"===e||"right"===e?2*l+r:2*l;return Math.max(i,t)})()}}getLabelProps(t,n){const{flyoutCenter:e,style:r,labelSize:i,dy:o=0,dx:a=0}=n,{text:s,datum:l,activePoints:c,labelComponent:u,index:h,flyoutPadding:d}=t,f=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return U()({},u.props,{key:`${this.id}-label-${h}`,text:s,datum:l,activePoints:c,textAnchor:f,dy:o,dx:a,style:r,x:(()=>{if(!f||"middle"===f)return e.x;const t="end"===f?-1:1;return e.x-t*(i.width/2)})()+(d.left-d.right)/2,y:e.y+(d.top-d.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,e){const r=n.y+e.height/2,i=n.y-e.height/2,o=n.x-e.width/2,a=n.x+e.width/2,s=[{side:"top",val:i>t.y?i-t.y:-1},{side:"bottom",val:r<t.y?t.y-r:-1},{side:"right",val:a<t.x?t.x-a:-1},{side:"left",val:o>t.x?o-t.x:-1}];return R()(s,"val","desc")[0].side}getFlyoutProps(t,n){const{flyoutDimensions:e,flyoutStyle:r,flyoutCenter:i}=n,{x:o,y:a,dx:s,dy:l,datum:c,activePoints:u,index:h,pointerLength:d,pointerWidth:f,cornerRadius:p,events:m,flyoutComponent:y}=t,g=nt(t.pointerOrientation,t);return U()({},y.props,{x:o,y:a,dx:s,dy:l,datum:c,activePoints:u,index:h,pointerLength:d,pointerWidth:f,cornerRadius:p,events:m,orientation:g||this.getPointerOrientation({x:o,y:a},i,e),key:`${this.id}-tooltip-${h}`,width:e.width,height:e.height,style:r,center:i})}renderTooltip(t){const n=nt(t.active,t),{renderInPortal:e}=t;if(!n)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,s=this.getCalculatedValues(r),l=[E().cloneElement(i,this.getFlyoutProps(r,s)),E().cloneElement(o,this.getLabelProps(r,s))],c=E().cloneElement(a,{role:"presentation",transform:s.transform},l);return e?E().createElement(gu,null,c):c}render(){const t=ht(this.props,Bg,"tooltip");return this.renderTooltip(t)}}var Vg=r(5395),Ug=r.n(Vg),qg=r(6898);const Hg=new class{withinBounds(t,n){const{width:e,height:r,polar:i,origin:o,scale:a}=t,s=Z(t.voronoiPadding),{x:l,y:c}=n;if(i){const t=Math.pow(l-o.x,2)+Math.pow(c-o.y,2),n=Math.max(...a.y.range());return t<Math.pow(n,2)}return l>=s.left&&l<=e-s.right&&c>=s.top&&c<=r-s.bottom}getDatasets(t){const n={x:Et(t.domain.x),y:Et(t.domain.y)},e=E().Children.toArray(t.children),r=(e,r,i)=>{const o=i&&i.type&&i.type.continuous,a=i?i.props&&i.props.style:t.style;return e.map(((e,i)=>{const{x:s,y:l,y0:c,x0:u}=Y(e),h=(Number(s)+Number(u))/2,d=(Number(l)+Number(c))/2;return Object.assign({_voronoiX:"y"===t.voronoiDimension?n.x:h,_voronoiY:"x"===t.voronoiDimension?n.y:d,eventKey:i,childName:r,continuous:o,style:a},e)}))};if(t.data)return r(t.data);const i=t=>{const n=_a(t);return Array.isArray(n)&&n.length>0?n:void 0};return mt(e,((n,e)=>{const o=(n.props||{}).name||e,a=t.voronoiBlacklist||[],s=a.filter((t=>!!t&&"string"==typeof t.valueOf())),l=a.filter(Ug()).some((t=>t.test(o)));if(!Aa(n)||s.includes(o)||l)return null;const c=(n.type&&ct(n.type.getData)?n.type.getData:i)(n.props);return c?r(c,o,n):null}),t)}findPoints(t,n){return t.filter((t=>n._voronoiX===t._voronoiX&&n._voronoiY===t._voronoiY))}withinRadius(t,n,e){if(!t)return!1;if(!e)return!0;const{x:r,y:i}=n;return Math.pow(r-t[0],2)+Math.pow(i-t[1],2)<Math.pow(e,2)}getVoronoiPoints(t,n){const e=this.getDatasets(t),r=e.map((n=>{const{x:e,y:r}=X(t,n);return[e,r]})),i=qg.Z.from(r).find(n.x,n.y);return{points:this.withinRadius(r[i],n,t.radius)?this.findPoints(e,e[i]):[],index:i}}getActiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const s=i?["data"]:[],l=a&&!o?s:s.concat("labels");return S()(l)?[]:l.map((t=>{const i=!0===r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>({active:!0})}}))}getInactiveMutations(t,n){const{childName:e,continuous:r}=n,{activateData:i,activateLabels:o,labels:a}=t;if(!i&&!o)return[];const s=i?["data"]:[],l=a&&!o?s:s.concat("labels");return S()(l)?[]:l.map((t=>{const i=r&&"data"===t?"all":n.eventKey;return{childName:e,eventKey:i,target:t,mutation:()=>null}}))}getParentMutation(t,n,e,r){return[{target:"parent",eventKey:"parent",mutation:()=>({activePoints:t,mousePosition:n,parentSVG:e,vIndex:r})}]}onActivated(t,n){ct(t.onActivated)&&t.onActivated(n,t)}onDeactivated(t,n){ct(t.onDeactivated)&&t.onDeactivated(n,t)}onMouseLeave=(t,n)=>{this.onMouseMove.cancel();const e=n.activePoints||[];this.onDeactivated(n,e);const r=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([]).concat(...r)};handleMouseMove=(t,n)=>{const e=n.activePoints||[],r=n.parentSVG||mm(t),i=ym(t,r);if(!this.withinBounds(n,i)){this.onDeactivated(n,e);const t=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return this.getParentMutation([],i,r).concat(...t)}const{points:o=[],index:a}=this.getVoronoiPoints(n,i),s=this.getParentMutation(o,i,r,a);if(e.length&&ed()(o,e))return s;this.onActivated(n,o),this.onDeactivated(n,e);const l=o.length?o.map((t=>this.getActiveMutations(n,t))):[],c=e.length?e.map((t=>this.getInactiveMutations(n,t))):[];return s.concat(...c,...l)};onMouseMove=_m()(this.handleMouseMove,32,{leading:!0,trailing:!1})},Gg={activateData:!0,activateLabels:!0,labelComponent:E().createElement(Wg,null),voronoiPadding:5},Kg=t=>H()(t,["_x","_x1","_x0","_y","_y1","_y0"]),Yg=t=>{const n={...Gg,...t},{children:e}=n,r=(t,e)=>{const{labels:r,labelComponent:i,theme:o}=n,a=i.props||{},s=o&&o.voronoi&&o.voronoi.style?o.voronoi.style:{},l="flyout"===e?a.flyoutStyle:a.style;return t.reduce(((t,n,i)=>{const o=U()({},a,{datum:n,active:!0}),c=ct(r)?r(o):void 0,u=void 0!==c?`${c}`.split("\n"):[],h=n.style&&n.style[e]||{},d=Array.isArray(l)?l[i]:l,f=et(U()({},d,h,s[e]),o),p=u.length?u.map((()=>f)):[f];return t.concat(p)}),[])},i=t=>{const{labels:e,scale:i,labelComponent:o,theme:a,width:s,height:l}=n,c=o.props||{},u=t.reduce(((t,n)=>{const r=U()({},c,{datum:n,active:!0}),i=ct(e)?e(r):null;return null==i?t:t.concat(`${i}`.split("\n"))}),[]),{childName:h,eventKey:d,style:f,continuous:p,...m}=t[0],y=n.name===h?h:`${n.name}-${h}`,g=U()({key:`${y}-${d}-voronoi-tooltip`,id:`${y}-${d}-voronoi-tooltip`,active:!0,renderInPortal:!1,activePoints:t,datum:m,scale:i,theme:a},c,{text:u,width:s,height:l,style:r(t,"labels"),flyoutStyle:r(t,"flyout")[0]},(t=>{const{voronoiDimension:e,horizontal:r,mouseFollowTooltips:i}=n,o=Kg(t[0]),a=e&&t.length>1,s=void 0!==o._y1?o._y1:o._y;return{orientation:i?void 0:r?s<0?"left":"right":s<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!i)||void 0}})(t)),x=((t,e)=>{const{mousePosition:r,mouseFollowTooltips:i}=n,o=(()=>{const{horizontal:t,voronoiDimension:e}=n;return t&&e?"x"===e?"y":"x":e})(),a=Kg(e[0]),s=X(n,a);let l=i?r:void 0;if(!o||e.length<2)return{...s,center:U()({},t.center,l)};const c="y"===o?r.x:s.x,u="x"===o?r.y:s.y;return l=i?r:{x:c,y:u},{x:c,y:u,center:U()({},t.center,l)}})(g,t);return U()({},x,g)};return{props:n,children:[...E().Children.toArray(e),(()=>{const{labels:t,activePoints:e,labelComponent:r}=n;if(!t)return null;if(Array.isArray(e)&&e.length){const t=i(e),{text:n}=t;return(Array.isArray(n)?n.filter(Boolean).length:n)?E().cloneElement(r,t):null}return null})()]}},Xg=t=>{const{props:n,children:e}=Yg(t);return E().createElement(lu,n,e)};Xg.role="container",Xg.defaultEvents=t=>{const n={...Gg,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(Hg.onMouseLeave),onTouchCancel:e(Hg.onMouseLeave),onMouseMove:e(Hg.onMouseMove),onTouchMove:e(Hg.onMouseMove)}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:()=>null,onMouseOut:()=>null,onMouseMove:()=>null}}]};const Zg=new class{getDimension(t){const{horizontal:n,cursorDimension:e}=t;return n&&e?"x"===e?"y":"x":e}withinBounds(t,n){const{x1:e,x2:r,y1:i,y2:o}=ft(n,Number),{x:a,y:s}=ft(t,Number);return a>=Math.min(e,r)&&a<=Math.max(e,r)&&s>=Math.min(i,o)&&s<=Math.max(i,o)}handleMouseMove=(t,n)=>{const{onCursorChange:e,domain:r}=n,i=this.getDimension(n),o=n.parentSVG||mm(t),a=ym(t,o);let s=xm(n,n.scale,a.x,a.y);return this.withinBounds(s,{x1:r.x[0],x2:r.x[1],y1:r.y[0],y2:r.y[1]})||(s=null),ct(e)&&(s?e(i?s[i]:s,n):s!==n.cursorValue&&e(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:s,parentSVG:o})}]};onMouseMove=_m()(this.handleMouseMove,16,{leading:!0,trailing:!1});onMouseLeave=this.handleMouseMove;onTouchEnd=(t,n)=>{const{onCursorChange:e}=n;return ct(n.onCursorChange)&&e(null,n),[{target:"parent",eventKey:"parent",mutation:()=>({cursorValue:null})}]}},Qg={cursorLabelComponent:E().createElement(Zh,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:E().createElement(Uf,null)},Jg=t=>{const n={...Qg,...t},{children:e}=n;return{props:n,children:[...E().Children.toArray(e),...(()=>{const{scale:t,cursorLabelComponent:e,cursorLabel:r,cursorComponent:i,width:o,height:a,name:s,horizontal:l,theme:c}=n,u=Zg.getDimension(n),h=(()=>{const{cursorValue:t,defaultCursorValue:e,domain:r,cursorDimension:i}=n;return t||("number"==typeof e?{x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2,...i?{[i]:e}:{}}:e)})(),d=(()=>{const{cursorLabelOffset:t}=n;return"number"==typeof t?{x:t,y:t}:t})();if(!h)return[];const f=[],p=(()=>{if(void 0===n.padding){const t=Array.isArray(n.children)?n.children.find((t=>Hf()(t.props)&&void 0!==t.props.padding)):n.children;return Z(t?.props?.padding)}return Z(n.padding)})(),m=t&&"x"in t&&"y"in t&&"function"==typeof t.y&&"function"==typeof t.x?{x:l?t.y(h.y):t.x(h.x),y:l?t.x(h.x):t.y(h.y)}:{x:h.x,y:h.y};if(r){let t=U()({active:!0},e.props,{x:m.x+d.x,y:m.y+d.y,datum:h,active:!0,key:`${s}-cursor-label`});if(Q(e)){const n=c&&c.tooltip||{};t=U()({},t,n)}f.push(E().cloneElement(e,U()({},t,{text:nt(r,t)})))}const y=Object.assign({stroke:"black"},i.props.style);return"x"!==u&&void 0!==u||f.push(E().cloneElement(i,{key:`${s}-x-cursor`,x1:m.x,x2:m.x,y1:p.top,y2:("number"==typeof a?a:0)-p.bottom,style:y})),"y"!==u&&void 0!==u||f.push(E().cloneElement(i,{key:`${s}-y-cursor`,x1:p.left,x2:("number"==typeof o?o:0)-p.right,y1:m.y,y2:m.y,style:y})),f})()]}},tx=t=>{const{props:n,children:e}=Jg(t);return E().createElement(lu,n,e)};function nx(t){return t?Array.isArray(t)?t:[t]:[]}tx.role="container",tx.defaultEvents=t=>{const n={...Qg,...t},e=(t,e)=>(r,i,o,a)=>e||n.disable?{}:t(r,{...n,...i},o,a);return[{target:"parent",eventHandlers:{onMouseLeave:e(Zg.onMouseLeave),onMouseMove:e(Zg.onMouseMove),onTouchMove:e(Zg.onMouseMove)}}]};const ex={zoom:Lg,selection:Ng,brush:Am,cursor:Jg,voronoi:Yg};function rx(t,n){return function(e,r){const i=t[e],o=t[r],a=ex[e],s=ex[r],l=t=>{const{children:e,props:r}=a(t),{children:i,props:o}=s({...r,children:e});return E().createElement(n,o,i)};return l.displayName=`Victory${e}${r}Container`,l.role="container",l.defaultEvents=t=>(t=>{const n=tm()(t,"target"),e=Eg()(n).map((t=>{let[n,e]=t;const r=e.filter(Boolean);return S()(r)?null:{target:n,eventHandlers:(i=e.map((t=>t.eventHandlers)),i.reduce(((t,n)=>(wg()(t,((t,e)=>{const r=n[e];n[e]=r?function(){const n=nx(r(...arguments)),e=nx(t(...arguments));return n.concat(e)}:t})),n))))};var i}));return e.filter(Boolean)})([...i.defaultEvents(t),...o.defaultEvents(t)]),l}}const ix=rx({zoom:Tg,selection:zg,brush:Em,cursor:tx,voronoi:Xg},lu),ox=(t,n,e)=>{const r="right"===e||"left"===e;return E().cloneElement(t.lineComponent,{...t.events,role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:`${t.id}-border-${e}`,x1:r?n[e]:t.x-t.borderWidth,x2:r?n[e]:t.x+t.borderWidth,y1:r?t.y-t.borderWidth:n[e],y2:r?t.y+t.borderWidth:n[e],"data-type":`border-${e}`})},ax=(t,n,e)=>{const r="top"===e||"bottom"===e;return E().cloneElement(t.lineComponent,{...t.events,role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:`${t.id}-cross-${e}`,x1:t.x,x2:r?t.x:n[e],y1:t.y,y2:r?n[e]:t.y,"data-type":`cross-${e}`})},sx={groupComponent:E().createElement("g",null),lineComponent:E().createElement(Wf,null),role:"presentation",shapeRendering:"auto"},lx=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=et(Object.assign({stroke:"black"},t.style),t),i=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})(U()({},t,sx)),{groupComponent:e}=n,r=Wc(n),{tabIndex:i,ariaLabel:o}=n,a=(t=>{const{errorX:n,errorY:e}=t,r={right:{error:n,errorIndex:0},left:{error:n,errorIndex:1},top:{error:e,errorIndex:1},bottom:{error:e,errorIndex:0}};return["right","left","top","bottom"].reduce(((t,n)=>(t[n]=(t=>{const{error:n,errorIndex:e}=r[t];return n?n[e]:void 0})(n),t)),{})})(n),s=[a.right?ox(n,a,"right"):null,a.left?ox(n,a,"left"):null,a.bottom?ox(n,a,"bottom"):null,a.top?ox(n,a,"top"):null,a.right?ax(n,a,"right"):null,a.left?ax(n,a,"left"):null,a.bottom?ax(n,a,"bottom"):null,a.top?ax(n,a,"top"):null].filter(Boolean);return E().cloneElement(e,{tabIndex:i,"aria-label":o,...r},s)};var cx=r(156),ux=r.n(cx);const hx=(t,n,e)=>{const r=n[{x:"_errorX",y:"_errorY"}[e]];if(0===r)return!1;const i=t.scale[e];return Array.isArray(r)?[0!==r[0]&&i(r[0]+n[`_${e}`]),0!==r[1]&&i(n[`_${e}`]-r[1])]:[i(r+n[`_${e}`]),i(n[`_${e}`]-r)]},dx=t=>{const n=["x","y","errorX","errorY"];return t.data?xa(t.data,t,n):xa(t.errorX||t.errorY?va(t):[],t,n)},fx=(t,n)=>{const e=Fa(t,n),r=Ia(t,n),i=dx(t);if(i.length<1)return void 0!==e&&void 0!==r?Na(e,r):void 0;const o="x"===n?"_errorX":"_errorY",a=t=>{const e="min"===t?1/0:-1/0,r="min"===t?1:0,a="min"===t?-1:1;return i.reduce(((e,i)=>{const s=Array.isArray(i[o])?i[o][r]:i[o],l=i[`_${n}`]+a*(s||0);return e<l&&"min"===t||e>l&&"max"===t?e:l}),e)};return Na(void 0!==e?e:a("min"),void 0!==r?r:a("max"))},px=(t,n)=>Pa(fx)(t,n),mx={width:450,height:300,padding:50},yx=[{x:1,y:1,errorX:.1,errorY:.1},{x:2,y:2,errorX:.2,errorY:.2},{x:3,y:3,errorX:.3,errorY:.3},{x:4,y:4,errorX:.4,errorY:.4}];class gx extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"];static displayName="VictoryErrorBar";static role="errorbar";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),data:yx,dataComponent:E().createElement(lx,null),labelComponent:E().createElement(Zh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return px(t,n)}static getData(t){return dx(t)}static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"errorbar"),r=Object.assign({},e,(t=>{const n=J(t,"errorbar"),e=tt(t.style,n)||{},r=dx(t),i={x:st(t,"x"),y:st(t,"y")},o={x:px(t,"x"),y:px(t,"y")};return{domain:o,data:r,scale:{x:Yo(t,"x").domain(o.x).range(t.horizontal?i.y:i.x),y:Yo(t,"y").domain(o.y).range(t.horizontal?i.x:i.y)},style:e,origin:t.polar?t.origin||at(t):void 0}})(e)),{borderWidth:i,data:o,domain:a,events:s,groupComponent:l,height:c,horizontal:u,labels:h,name:d,origin:f,padding:p,polar:m,scale:y,sharedEvents:g,standalone:x,style:v,theme:b,width:_,disableInlineStyles:M}=r,C={parent:{data:o,domain:a,height:c,horizontal:u,name:d,origin:f,padding:p,polar:m,scale:y,standalone:x,style:v.parent,theme:b,width:_}};return o.reduce(((t,n,e)=>{const c=lt(n.eventKey)?e:n.eventKey,{x:d,y:f}=X(ux()({},r,{scale:y}),n),p=((t,n)=>{const e=Et(n.x),r=At(n.x),i=Et(n.y),o=At(n.y);let{_x:a,_y:s}=t;return(a<e||a>r||s<i||s>o)&&(a=s=null),Object.assign({},t,{_x:a,_y:s})})(n,a),m=hx(r,p,"x"),x=hx(r,p,"y"),b={borderWidth:i,data:o,datum:p,errorX:u?x:m,errorY:u?m:x,groupComponent:l,horizontal:u,index:e,scale:y,style:M?{}:v.data,x:d,y:f,disableInlineStyles:M};t[c]={data:b};const _=Ua(r,n,e);return(null!=_||h&&(s||g))&&(t[c].labels=((t,n,e)=>{const{x:r,y:i,index:o,scale:a,errorY:s,errorX:l,horizontal:c,labelComponent:u,theme:h,disableInlineStyles:d}=t,f=function(n){void 0===n&&(n="x");const e="y"===n?s:l;return(e&&Array.isArray(e)?e[0]:e)||t[n]},p=e.labels||{},m=p.padding||0,y=c?"start":"middle",g=c?"middle":"end",x={style:p,y:c?i:f("y"),x:c?f("x"):r,dy:c?0:-m,dx:c?m:0,text:n,index:o,scale:a,datum:t.datum,data:t.data,textAnchor:p.textAnchor||y,verticalAnchor:p.verticalAnchor||g,angle:p.angle,horizontal:c,disableInlineStyles:d};if(!Q(u))return x;const v=h&&h.tooltip||{};return U()({},x,K(v,["style"]))})(Object.assign({},r,b),_,v)),t}),C)})(t,mx)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=xx,e=ht(this.props,mx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const xx=zf(gx),vx={width:450,height:300,padding:50,offset:0};function bx(t,n){const e="group",r=ht(t,vx,e),i=Ty(r.theme,r.style,e),{offset:o,colorScale:a,color:s,polar:l,horizontal:c}=r,u=r.categories||Iy(r,n,null),h=r.datasets||wy(r,null),d={x:Oy(Object.assign({},r,{categories:u}),"x",n),y:Oy(Object.assign({},r,{categories:u}),"y",n)},f=r.range||{x:st(r,"x"),y:st(r,"y")},p={x:Zo(r,"x")||Dy(r,"x"),y:Zo(r,"y")||Dy(r,"y")};return{datasets:h,categories:u,range:f,domain:d,horizontal:c,scale:{x:p.x.domain(d.x).range(r.horizontal?f.y:f.x),y:p.y.domain(d.y).range(r.horizontal?f.x:f.y)},style:i,colorScale:a,color:s,offset:o,origin:l?r.origin:at(r),padding:Z(r.padding)}}function _x(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme&&t.theme.group?r||t.theme.group.colorScale:r}function Mx(t,n,e){void 0===n&&(n=[]);const r=t.data||t.y?_a(t):n,i=e||0;return r.map((t=>{const n=t._x instanceof Date?new Date(t._x.getTime()+i):t._x+i;return Object.assign({},t,{_x1:n})}))}function Cx(t,n,e){const r=ht(t,vx,"stack"),i=n||E().Children.toArray(r.children),o=e||bx(r,i),{datasets:a}=o,{labelComponent:s,polar:l,theme:c}=r,u=function(t,n){const{categories:e,domain:r,range:i,scale:o,horizontal:a,origin:s,padding:l}=n,{width:c,height:u,theme:h,polar:d}=t;return{height:u,width:c,theme:h,polar:d,origin:s,categories:e,domain:r,range:i,scale:o,horizontal:a,padding:l,standalone:!1}}(r,o),h=r.name||"group";return i.map(((t,n)=>{const e=t.type&&t.type.role,i=l?function(t,n,e,r){const i=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,o=function(t,n){const{range:e}=n,r=Math.abs(e.x[1]-e.x[0]),i=Math.max(...e.y);return t.offset/(2*Math.PI*i)*r}(t,n);return(e-i)*o}(r,o,n,e):function(t,n,e,r){const i=(("stack"===r?n.datasets[0].length:n.datasets.length)-1)/2,o=function(t,n,e){if(!t.offset)return 0;const r=dt("x",t.horizontal),i=e.domain.x,o=e.range[r];return(Math.max(...i)-Math.min(...i))/(Math.max(...o)-Math.min(...o))*t.offset}(t,0,n);return(e-i)*o}(r,o,n,e),d="voronoi"===e||"tooltip"===e||"label"===e?t.props.style:jy(t,n,o,c),f=r.labels?function(t,n,e){if(t.labels)return Math.floor(n.length/2)===e?t.labels:void 0}(r,a,n):t.props.labels,p=t.props.name||`${h}-${e}-${n}`;return E().cloneElement(t,Object.assign({labels:f,style:d,key:`${p}-key-${n}`,name:p,data:Mx(r,a[n],i),colorScale:_x(r,t),labelComponent:s||t.props.labelComponent,xOffset:i},u))}))}const wx={width:450,height:300,padding:50,offset:0},Ax={containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",null),samples:50,standalone:!0,theme:Mh.grayscale},Ex=t=>{const n=Sx?.role,{getAnimationProps:e,setAnimationState:r,getProps:i}=by(),o=E().useMemo((()=>U()({},t,Ax)),[t]),a=i(o),s=ht(a,wx,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,horizontal:g,name:x}=s,v=E().Children.toArray(s.children),b=function(t){const n=(t=>{const{children:n}=t,e=E().Children.toArray(n).map((t=>({...t,props:K(t.props,["sharedEvents"])})));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{ed()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>bx(e,e.children)),[e])}(s),{domain:_,scale:M,style:C,origin:w}=b,A=E().useMemo((()=>Cx(a,v,b).map(((t,n)=>{const r=Object.assign({animate:e(a,t,n)},t.props);return E().cloneElement(t,r)}))),[a,v,b,e]),k=E().useMemo((()=>u?{domain:_,scale:M,width:f,height:p,standalone:u,theme:m,style:C.parent,horizontal:g,polar:y,origin:w,name:x}:{}),[u,_,M,f,p,m,C,g,y,w,x]),O=E().useMemo((()=>Wc(o)),[o]),D=E().useMemo((()=>{if(u){const t=U()({},c.props,k,O);return E().cloneElement(c,t)}return E().cloneElement(h,O)}),[h,u,c,k,O]),P=E().useMemo((()=>Py(a)),[a]),L=Fy(o);return E().useEffect((()=>()=>{o.animate&&r(L,a)}),[r,L,o,a]),S()(P)?E().cloneElement(D,D.props,A):E().createElement(qy,{container:D,eventKey:l,events:P,externalEventMutations:d},A)},kx={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Cx},Sx=Object.assign(E().memo(Ex,ed()),kx);Sx.displayName="VictoryGroup";var Ox=Array.prototype,Dx=Ox.slice;function Px(t){return()=>t}function Lx(t,n){let e,r;if(void 0===n)for(const n of t)null!=n&&(void 0===e?n>=n&&(e=r=n):(e>n&&(e=n),r<n&&(r=n)));else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(void 0===e?o>=o&&(e=r=o):(e>o&&(e=o),r<o&&(r=o)))}return[e,r]}function Tx(t){return t}function jx(t){return Math.ceil(Math.log(function(t,n){let e=0;for(let n of t)null!=n&&(n=+n)>=n&&++e;return e}(t))/Math.LN2)+1}Ox.map;const $x=(t=>{let n,e,r=!1;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];if(r&&ed()(n,o))return e;const s=t(...o);return r=!0,e=s,n=o,s}})((t=>{let{data:n=[],x:e,bins:r}=t;if(!(n&&n.length||Array.isArray(r)))return[];const i=(t=>{let{data:n,bins:e,x:r}=t;const i=ut(r||"x"),o=n?.some((t=>i(t)instanceof Date))||!1,a=Array.isArray(e)&&e.some((t=>t instanceof Date));return o||a})({data:n,bins:r,x:e}),o=(t=>{let{data:n,x:e,bins:r,dataOrBinsContainsDates:i}=t;const o=ut(e||"x"),a=function(){var t=Tx,n=Lx,e=jx;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a,s=r.length,l=new Array(s);for(i=0;i<s;++i)l[i]=t(r[i],i,r);var c=n(l),u=c[0],h=c[1],d=e(l,u,h);if(!Array.isArray(d)){const t=h,e=+d;if(n===Lx&&([u,h]=function(t,n,e){let r;for(;;){const i=Wt(t,n,e);if(i===r||0===i||!isFinite(i))return[t,n];i>0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}(u,h,e)),(d=Bt(u,h,e))[0]<=u&&(a=Wt(u,h,e)),d[d.length-1]>=h)if(t>=h&&n===Lx){const t=Wt(u,h,e);isFinite(t)&&(t>0?h=(Math.floor(h/t)+1)*t:t<0&&(h=(Math.ceil(h*-t)+1)/-t))}else d.pop()}for(var f=d.length;d[0]<=u;)d.shift(),--f;for(;d[f-1]>h;)d.pop(),--f;var p,m=new Array(f+1);for(i=0;i<=f;++i)(p=m[i]=[]).x0=i>0?d[i-1]:u,p.x1=i<f?d[i]:h;if(isFinite(a)){if(a>0)for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=h&&m[Math.min(f,Math.floor((o-u)/a))].push(r[i]);else if(a<0)for(i=0;i<s;++i)if(null!=(o=l[i])&&u<=o&&o<=h){const t=Math.floor((u-o)*a);m[Math.min(f,t+(d[t]<=o))].push(r[i])}}else for(i=0;i<s;++i)null!=(o=l[i])&&u<=o&&o<=h&&m[Zt(d,o,0,f)].push(r[i]);return m}return r.value=function(n){return arguments.length?(t="function"==typeof n?n:Px(n),r):t},r.domain=function(t){return arguments.length?(n="function"==typeof t?t:Px([t[0],t[1]]),r):n},r.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Px(Dx.call(t)):Px(t),r):e},r}().value(o),s=(i?ko():be()).domain(Lx(n,o)).nice();return Array.isArray(r)?(a.domain([r[0],r[r.length-1]]),a.thresholds(r.slice(1,r.length-1)),a):Number.isInteger(r)?(a.domain(s.domain()),a.thresholds(r),a):i?(a.domain(s.domain()),a.thresholds(s.ticks()),a):(a.domain(s.domain()),a)})({data:n,x:e,bins:r,dataOrBinsContainsDates:i});return[...o(n)].filter((t=>{let{x0:n,x1:e}=t;return n instanceof Date&&e instanceof Date?new Date(n).getTime()!==new Date(e).getTime():n!==e})).map((t=>{const n=i?new Date(t.x0):t.x0||0,e=i?new Date(t.x1):t.x1||0;return{x0:n,x1:e,x:i?new Date((n.getTime()+e.getTime())/2):(n+e)/2,y:t.length,binnedData:[...t]}}))})),Nx=t=>{const{bins:n,data:e,x:r}=t,i=e?.some((t=>{let{_y:n}=t;return!lt(n)})),o=i?e:$x({data:e,x:r,bins:n});return _a({...t,data:o,x:"x"})},zx=(t,n)=>{const e=Nx(t);if(!e.length)return[0,1];if("x"===n){const n=e[0],r=e[e.length-1];return Ra({...t,data:[{x:n.x0},{x:r.x1}],x:"x"},"x")}return t.data?.length?Ra({...t,data:e},"y"):[0,1]},Rx={width:450,height:300,padding:50},Ix=[];class Fx extends E().Component{static animationWhitelist=["data","domain","height","padding","style","width"];static displayName="VictoryHistogram";static role="histogram";static defaultTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:()=>({_y:0,yOffset:0})},onEnter:{duration:500,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})}};static getFormattedData(){return $x(...arguments)}static defaultProps={containerComponent:E().createElement(lu,null),data:Ix,dataComponent:E().createElement(Up,null),groupComponent:E().createElement("g",{role:"presentation"}),labelComponent:E().createElement(Zh,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain(t,n){return zx(t,n)}static getData(t){return Nx(t)}static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"histogram"),r=Object.assign({},e,(t=>{const n=J(t,"histogram"),e=tt(t.style,n),r=t.range||{x:st(t,"x"),y:st(t,"y")},i={x:zx(t,"x"),y:zx(t,"y")};let o=Nx(t);return o=ma(o,i,0),{style:e,data:o,scale:{x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},domain:i}})(e)),{binSpacing:i,cornerRadius:o,data:a,domain:s,events:l,height:c,horizontal:u,padding:h,scale:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,name:v,getPath:b,disableInlineStyles:_}=r,M={parent:{horizontal:u,domain:s,scale:d,width:g,height:c,data:a,standalone:p,name:v,theme:y,padding:h,style:m.parent}},C=t=>{const n=d.x(t.x0),e=d.x(t.x1);return Math.abs(e-n)};return a.reduce(((t,n,e)=>{const s=lt(n.eventKey)?e:n.eventKey,{x:h,y:p,y0:y,x0:v}=kp(r,n),M=(t=>i?C(t)-i:C(t))(n),w={alignment:"middle",barWidth:M,cornerRadius:o,data:a,datum:n,horizontal:u,index:e,scale:d,style:_?{}:m.data,width:g,height:c,x:h,y:p,y0:y,x0:v,getPath:b,disableInlineStyles:_};return t[s]={data:w},(null!=Ua(r,n,e)||x&&(l||f))&&(t[s].labels=Ya(r,e)),t}),M)})(t,Rx)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Fx,e=ht(this.props,Rx,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Bx=zf(Fx);var Wx=r(8825),Vx=r.n(Wx);const Ux=t=>{const{data:n,style:e}=t;return n.map(((t,r)=>et(U()({},t.labels,e.labels),{datum:t,index:r,data:n})))},qx=t=>{const{orientation:n,theme:e}=t,r=function(t,n){void 0===n&&(n={});const e=t.style||{};return{parent:U()(e.parent,n.parent,{height:"100%",width:"100%"}),data:U()({},e.data,n.data),labels:U()({},e.labels,n.labels),border:U()({},e.border,n.border),title:U()({},e.title,n.title)}}(t,e&&e.legend&&e.legend.style?e.legend.style:{}),i=(t=>{const{colorScale:n,theme:e}=t;return"string"==typeof n?wh(n,e):n||[]})(t),o="horizontal"===n,a=Z(t.borderPadding);return Object.assign({},t,{style:r,isHorizontal:o,colorScale:i,borderPadding:a})},Hx=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?n%e:Math.floor(n/e):r?n:0},Gx=(t,n)=>{const{itemsPerRow:e,isHorizontal:r}=t;return e?r?Math.floor(n/e):n%e:r?0:n},Kx=t=>{const{data:n}=t,e=t.style&&t.style.data||{},r=Ux(t);return n.map(((n,i)=>{const o=n.symbol||{},{fontSize:a}=r[i],s=o.size||e.size||a/2.5,l=t.symbolSpacer||Math.max(s,a);return{...n,size:s,symbolSpacer:l,fontSize:a,textSize:Fh(n.name,r[i]),column:Hx(t,i),row:Gx(t,i)}}))},Yx=(t,n)=>{const e=t.gutter||{},r="object"==typeof e?(e.left||0)+(e.right||0):e||0,i=tm()(n,"column");return Object.keys(i).reduce(((t,n,e)=>{const o=i[n].map((t=>t.textSize.width+t.size+t.symbolSpacer+r));return t[e]=Math.max(...o),t}),[])},Xx=(t,n)=>{const e=t.rowGutter||{},r="object"==typeof e?(e.top||0)+(e.bottom||0):e||0,i=tm()(n,"row");return Object.keys(i).reduce(((t,n,e)=>{const o=i[n].map((t=>t.textSize.height+t.symbolSpacer+r));return t[e]=Math.max(...o),t}),[])},Zx=t=>{const n=t.style&&t.style.title||{},e=Fh(t.title,n),r=n.padding||0;return{height:e.height+2*r||0,width:e.width+2*r||0}},Qx=(t,n)=>{const e=ht(t,n,"legend"),r=Object.assign({},e,qx(e)),{title:i,titleOrientation:o}=r,a=Kx(r),s=Yx(r,a),l=Xx(r,a),c=i?Zx(r):{height:0,width:0};return{height:"left"===o||"right"===o?Math.max(tv(l),c.height):tv(l)+c.height,width:"left"===o||"right"===o?tv(s)+c.width:Math.max(tv(s),c.width)}},Jx=(t,n)=>{const e=ht(t,n,"legend"),r=Object.assign({},e,qx(e)),{data:i,standalone:o,theme:a,padding:s,style:l,colorScale:c,gutter:u,rowGutter:h,borderPadding:d,title:f,titleOrientation:p,name:m,x:y=0,y:g=0}=r,x=Kx(r),v=Yx(r,x),b=Xx(r,x),_=Ux(r),M=f?Zx(r):{height:0,width:0},C="left"===p?M.width:0,w="top"===p?M.height:0,A=u&&"object"==typeof u&&u.left||0,E=h&&"object"==typeof h&&h.top||0,{height:k,width:S}=Qx(r,n),O=((t,n,e)=>{const{x:r,y:i,borderPadding:o,style:a}=t;return{x:r,y:i,height:(n||0)+o.top+o.bottom,width:(e||0)+o.left+o.right,style:Object.assign({fill:"none"},a.border)}})(r,k,S),D=((t,n)=>{const{title:e,titleOrientation:r,centerTitle:i,borderPadding:o}=t,{height:a,width:s}=n,l=(t=>{const{titleOrientation:n,centerTitle:e,titleComponent:r}=t,i=t.style&&t.style.title||{},o=r.props&&r.props.style||{},a=((t,n)=>{const e={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(n){const n="top"===t||"bottom"===t;return{textAnchor:n?"middle":e.textAnchor,verticalAnchor:n?e.verticalAnchor:"middle"}}return e})(n,e);return Array.isArray(o)?o.map((t=>U()({},t,i,a))):U()({},o,i,a)})(t),c=Array.isArray(l)?l[0].padding:l.padding,u="top"===r||"bottom"===r,h="right"===r?"right":"left",d={x:i?s/2:o["bottom"===r?"bottom":"top"]+(c||0),y:i?a/2:o[h]+(c||0)},f=()=>o[r]+(c||0),p=u?d.x:f(),m=u?f():d.y;return{x:"right"===r?t.x+s-p:t.x+p,y:"bottom"===r?t.y+a-m:t.y+m,style:l,text:e}})(r,O),P={parent:{data:i,standalone:o,theme:a,padding:s,name:m,height:r.height,width:r.width,style:l.parent},all:{border:O,title:D}};return x.reduce(((t,n,e)=>{const r=c[e%c.length],o=U()({},n.symbol,l.data,{fill:r}),a=lt(n.eventKey)?e:n.eventKey,s=((t,n,e)=>{const{column:r,row:i}=t;return{x:Vx()(r).reduce(((t,n)=>t+e[n]),0),y:Vx()(i).reduce(((t,e)=>t+n[e]),0)}})(n,b,v),u=g+d.top+n.symbolSpacer,h=y+d.left+n.symbolSpacer,f={index:e,data:i,datum:n,symbol:o.type||o.symbol||"circle",size:n.size,style:o,y:u+s.y+w+E,x:h+s.x+C+A},p={datum:n,data:i,text:n.name,style:_[e],y:f.y,x:f.x+n.symbolSpacer+n.size/2};return t[a]={data:f,labels:p},t}),P)};function tv(t){if(t&&t.length){let n=0;for(let e=0;e<t.length;e++)n+=t[e];return n}return 0}const nv={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},ev=[{name:"Series 1"},{name:"Series 2"}];class rv extends E().Component{static displayName="VictoryLegend";static role="legend";static defaultProps={borderComponent:E().createElement(Xp,null),data:ev,containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Mg,null),groupComponent:E().createElement("g",null),labelComponent:E().createElement(Zh,null),standalone:!0,theme:Mh.grayscale,titleComponent:E().createElement(Zh,null)};static getBaseProps(t){return Jx(t,nv)}static getDimensions(t){return Qx(t,nv)}static expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];renderChildren(t){const{dataComponent:n,labelComponent:e,title:r}=t,i=[];if(t.borderComponent){const n=this.getComponentProps(t.borderComponent,"border","all"),e=E().cloneElement(t.borderComponent,n);i.push(e)}if(n){const t=this.dataKeys.map(((t,e)=>{if("all"===t)return;const r=this.getComponentProps(n,"data",e);return E().cloneElement(n,r)})).filter((t=>void 0!==t));i.push(...t)}if(r&&t.titleComponent){const n=this.getComponentProps(r,"title","all"),e=E().cloneElement(t.titleComponent,n);i.push(e)}if(e){const t=this.dataKeys.map(((t,n)=>{if("all"===t)return;const r=this.getComponentProps(e,"labels",n);return void 0!==r.text&&null!==r.text?E().cloneElement(e,r):void 0})).filter((t=>void 0!==t));i.push(...t)}return i}render(){const{role:t}=this.constructor,n=ht(this.props,nv,t),e=this.renderChildren(n);return n.standalone?this.renderContainer(n.containerComponent,e):E().cloneElement(n.groupComponent,{},e)}}const iv=zf(rv),ov={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},av=t=>{const n=(t=>{const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=et(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),i=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,style:r,tabIndex:i})})(U()({},t,ov)),e=Wc(n),{polar:r,origin:i}=n,o=zc(n),a=r&&i?`translate(${i.x}, ${i.y})`:void 0,s=o(n.data);return E().cloneElement(n.pathComponent,{...n.events,...e,"aria-label":n.ariaLabel,d:s,style:n.style,transform:n.transform||a,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex})},sv={width:450,height:300,padding:50,interpolation:"linear"};class lv extends E().Component{constructor(t){super(t)}static animationWhitelist=["data","domain","height","padding","samples","style","width"];static displayName="VictoryLine";static role="line";static defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}};static defaultPolarTransitions={onLoad:{duration:2e3,before:()=>({_y:0,_y1:0,_y0:0}),after:t=>({_y:t._y,_y1:t._y1,_y0:t._y0})},onExit:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:(t,n,e)=>{const r=t=>(0===n?e[n+1]:e[n-1])[t];return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:t=>({_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0})}};static continuous=!0;static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(av,null),labelComponent:E().createElement(Zh,{renderInPortal:!0}),groupComponent:E().createElement(pu,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"line"),r=Object.assign({},e,(t=>{let n=_a(t);n.length<2&&(n=[]);const e={x:st(t,"x"),y:st(t,"y")},r={x:Ta(t,"x"),y:Ta(t,"y")},i={x:Yo(t,"x").domain(r.x).range(t.horizontal?e.y:e.x),y:Yo(t,"y").domain(r.y).range(t.horizontal?e.x:e.y)},o=t.polar?t.origin||at(t):void 0,a=J(t,"line");return{domain:r,data:n,scale:i,style:tt(t.style,a),origin:o}})(e)),{data:i,domain:o,events:a,groupComponent:s,height:l,horizontal:c,interpolation:u,origin:h,padding:d,polar:f,scale:p,sharedEvents:m,standalone:y,style:g,theme:x,width:v,labels:b,name:_,disableInlineStyles:M}=r,C={parent:{style:g.parent,scale:p,data:i,height:l,width:v,name:_,domain:o,standalone:y,polar:f,origin:h,padding:d,horizontal:c},all:{data:{horizontal:c,polar:f,origin:h,scale:p,data:i,interpolation:u,groupComponent:s,style:M?{}:g.data,theme:x,disableInlineStyles:M}}};return i.reduce(((t,n,e)=>((null!=Ua(r,n,e)||b&&(a||m))&&(t[lt(n.eventKey)?e:n.eventKey]={labels:Ya(r,e)}),t)),C)})(t,sv)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=lv,e=ht(this.props,sv,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderContinuousData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const cv=zf(lv,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),uv=t=>{const{colorScale:n,theme:e}=t,r=J(t,"pie"),i=tt(t.style,r),o=Array.isArray(n)?n:wh(n,e),a=Z(t.padding),s=((t,n)=>"number"==typeof t.radius?t.radius:Math.min(t.width-n.left-n.right,t.height-n.top-n.bottom)/2)(t,a),l=((t,n)=>{const{width:e,height:r}=t,i=L()(t.origin)?t.origin:{};return{x:void 0!==i.x?i.x:(n.left-n.right+e)/2,y:void 0!==i.y?i.y:(n.top-n.bottom+r)/2}})(t,a),c=((t,n)=>{const e=[];return(t=>Array.isArray(t.categories)?t.categories:t?.categories?.x??[])(t).forEach((t=>{const r=n.findIndex((n=>{let{x:e}=n;return e===t}));if(r>=0){const t=n.splice(r,1)[0];e.push(t)}})),[...e,...n]})(t,_a(t)),u=((t,n)=>{const e=ct(t.padAngle)?0:t.padAngle;return Bs().sort(null).startAngle(rt(t.startAngle)).endAngle(rt(t.endAngle)).padAngle(rt(e)).value((t=>t._y))(n)})(t,c);return Object.assign({},t,{style:i,colors:o,padding:a,defaultRadius:s,data:c,slices:u,origin:l})},hv=(t,n)=>{const{style:e,colors:r}=n,i=((t,n,e)=>t&&t.data&&t.data.fill?t.data.fill:n&&n[e%n.length])(e,r,t);return Object.assign({fill:i},e.data)},dv=(t,n)=>t*(t=>Math.cos(t-rt(90)))(n),fv=(t,n)=>t*(t=>Math.sin(t-rt(90)))(n),pv=t=>t.reduce(((t,n)=>t+n),0)/t.length,mv=(t,n)=>{const e=ht(t,n,"pie"),r=uv(e),{slices:i,style:o,data:a,origin:s,defaultRadius:l,labels:c,events:u,sharedEvents:h,height:d,width:f,standalone:p,name:m,innerRadius:y,cornerRadius:g,padAngle:x,disableInlineStyles:v,labelIndicator:b}=r,_=e.radius||l,M={parent:{standalone:p,height:d,width:f,slices:i,name:m,style:o.parent}};return i.reduce(((t,n,i)=>{const o=U()({},a[i],{startAngle:it(n.startAngle),endAngle:it(n.endAngle),padAngle:it(n.padAngle)}),l=lt(o.eventKey)?i:o.eventKey,d={index:i,slice:n,datum:o,data:a,origin:s,innerRadius:y,radius:_,cornerRadius:g,padAngle:x,style:v?{}:hv(i,r),disableInlineStyles:v};t[l]={data:d};const f=((t,n,e)=>{let r;return r=n.label?n.label:Array.isArray(t.labels)?t.labels[e]:ct(t.labels)?t.labels:n.xName||n._x,(t=>null==t||ct(t)?t:`${t}`)(r)})(e,o,i);if(null!=f||c&&(u||h)){const n=nt(f,d);if(t[l].labels=((t,n,e)=>{const{index:r,datum:i,data:o,slice:a,labelComponent:s,theme:l}=n,{style:c,defaultRadius:u,origin:h,width:d,height:f}=e,p=nt(e.labelRadius,Object.assign({text:t},n)),m=nt(e.labelPosition,Object.assign({text:t},n))||"centroid",y=nt(e.labelPlacement,Object.assign({text:t},n))||"vertical",g=Object.assign({padding:0},c.labels),x=((t,n,e)=>{const r=e&&e.padding||0;return n||t+r})(u,p,et(g,Object.assign({labelRadius:p,text:t},n))),v=(t=>Rs().outerRadius(t).innerRadius(t))(x),b=((t,n,e)=>{const r={startAngle:"startAngle"===e?n.startAngle:n.endAngle,endAngle:"endAngle"===e?n.endAngle:n.startAngle},i=Object.assign({},n,r);return t.centroid(i)})(v,a,m),_=((t,n,e)=>{let r=0;return r=void 0!==n.angle?e.angle:it("centroid"===n?(t.startAngle+t.endAngle)/2:"startAngle"===n?t.startAngle:t.endAngle),(r<0?360-r:r)%360})(a,m,g),M=((t,n)=>"vertical"===n?0:"parallel"===n?t>180&&t<360?t+90:t-90:t>90&&t<270?t-180:t)(_,y),C=((t,n)=>"perpendicular"===n?t>90&&t<270?"bottom":"top":"parallel"===n?t>=0&&t<=180?"right":"left":t<45||t>315?"top":t>=45&&t<135?"right":t>=135&&t<225?"bottom":"left")(_,y),w=g.textAnchor||(t=>"top"===t||"bottom"===t?"middle":"right"===t?"start":"end")(C),A=g.verticalAnchor||(t=>"left"===t||"right"===t?"middle":"bottom"===t?"start":"end")(C),E={width:d,height:f,index:r,datum:i,data:o,slice:a,orientation:C,text:t,style:g,x:Math.round(b[0])+h.x,y:Math.round(b[1])+h.y,textAnchor:w,verticalAnchor:A,angle:M,calculatedLabelRadius:x};if(!Q(s))return E;const k=l&&l.tooltip||{};return U()({},E,K(k,["style"]))})(n,Object.assign({},e,d),r),b){const n=t[l].labels;n.calculatedLabelRadius>_&&(t[l].labelIndicators=((t,n,e)=>{const{innerRadius:r,radius:i,slice:{startAngle:o,endAngle:a},labelIndicatorInnerOffset:s,labelIndicatorOuterOffset:l,index:c}=t,{height:u,width:h}=n,{calculatedLabelRadius:d}=e,f=pv([r,i]),p=pv([a,o]),m=h/2,y=u/2,g=f+s,x=d-l,v={x1:m+dv(g,p),y1:y+fv(g,p),x2:m+dv(x,p),y2:y+fv(x,p),index:c};return U()({},v)})(Object.assign({},e,d),r,n))}}return t}),M)},yv=t=>{const{slice:n,radius:e,innerRadius:r,cornerRadius:i}=t;if(ct(t.pathFunction))return t.pathFunction(n);const o=rt(t.padAngle),a=rt(t.sliceStartAngle),s=rt(t.sliceEndAngle);return Rs().cornerRadius(i).outerRadius(e).innerRadius(r||0)(U()({startAngle:a,endAngle:s,padAngle:o},n))},gv={pathComponent:E().createElement(Ic,null),role:"presentation",shapeRendering:"auto"},xv=t=>{const n=(t=>{const n=et(t.style,t),e=nt(t.radius,Object.assign({},t,{style:n})),r=nt(t.innerRadius,Object.assign({},t,{style:n,radius:e})),i=nt(t.ariaLabel,t),o=nt(t.id,t),a=nt(t.cornerRadius,t),s=nt(t.padAngle,t),l=nt(t.sliceStartAngle,t),c=nt(t.sliceEndAngle,t),u=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:i,style:n,radius:e,innerRadius:r,id:o,cornerRadius:a,padAngle:s,sliceStartAngle:l,sliceEndAngle:c,tabIndex:u})})(U()({},t,gv)),e=n.origin?`translate(${n.origin.x}, ${n.origin.y})`:void 0;return E().cloneElement(n.pathComponent,{...n.events,"aria-label":n.ariaLabel,d:yv(n),style:n.style,transform:n.transform||e,className:n.className,role:n.role,shapeRendering:n.shapeRendering,clipPath:n.clipPath,tabIndex:n.tabIndex})},vv={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid",labelIndicatorInnerOffset:15,labelIndicatorOuterOffset:5},bv=t=>!lt(t._x)&&!lt(t._y);class _v extends E().Component{static animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"];static displayName="VictoryPie";static role="pie";static defaultTransitions={onExit:{duration:500,before:()=>({_y:0,label:" "})},onEnter:{duration:500,before:()=>({_y:0,label:" "}),after:t=>({y_:t._y,label:t.label})}};static defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:E().createElement(xv,null),labelComponent:E().createElement(Zh,null),containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",null),sortOrder:"ascending",theme:Mh.grayscale};static getBaseProps(t){return mv(t,vv)}static getData=_a;static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];shouldAnimate(){return Boolean(this.props.animate)}renderComponents(t,n){void 0===n&&(n=bv);const{dataComponent:e,labelComponent:r,groupComponent:i,labelIndicator:o,labelPosition:a}=t;if(!i)throw new Error("VictoryPie expects a groupComponent prop");const s=o&&"centroid"===a,l=[];if(e){const t=this.dataKeys.reduce(((t,r,i)=>{const o=this.getComponentProps(e,"data",i);return n(o.datum)&&t.push(E().cloneElement(e,o)),t}),[]);l.push(...t)}if(r){const t=this.dataKeys.map(((t,n)=>{const e=this.getComponentProps(r,"labels",n);if(void 0!==e.text&&null!==e.text)return E().cloneElement(r,e)})).filter((t=>void 0!==t));l.push(...t)}if(s&&o){let t=E().createElement(Uf,null);"object"==typeof o&&(t=o);const n=this.dataKeys.map(((n,e)=>{const r=this.getComponentProps(t,"labelIndicators",e);return E().cloneElement(t,r)}));l.push(...n)}return this.renderContainer(i,l)}render(){const{animationWhitelist:t,role:n}=Mv,e=ht(this.props,vv,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderComponents(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Mv=zf(_v),Cv=(t,n)=>n.bubbleProperty?"circle":t.symbol||n.symbol,wv=(t,n)=>{const{size:e,z:r}=n;return t.size?"function"==typeof t.size?t.size:Math.max(t.size,1):"function"==typeof n.size?e:t[r]?((t,n)=>{const{data:e,z:r,maxBubbleSize:i,minBubbleSize:o}=n,a=e.map((t=>t[r])),s=Math.min(...a),l=Math.max(...a),c=i||(()=>{const t=Math.min(...Object.values(Z(n.padding)));return Math.max(t,5)})(),u=o||.1*c;if(l===s)return Math.max(u,1);const h=Math.PI*Math.pow(c,2),d=Math.PI*Math.pow(u,2),f=(t[r]-s)/(l-s)*h,p=Math.max(f,d),m=Math.sqrt(p/Math.PI);return Math.max(m,1)})(t,n):Math.max(e||0,1)},Av={width:450,height:300,padding:50,size:3,symbol:"circle"};class Ev extends E().Component{static animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"];static displayName="VictoryScatter";static role="scatter";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Mg,null),labelComponent:E().createElement(Zh,null),groupComponent:E().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=J(t,"scatter"),e=tt(t.style,n),r={x:st(t,"x"),y:st(t,"y")},i={x:Ta(t,"x"),y:Ta(t,"y")},o={x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)},a=t.polar?t.origin||at(t):void 0,s=t.bubbleProperty||"z";let l=_a(t);return l=ma(l,i),{domain:i,data:l,scale:o,style:e,origin:a,z:s}})(e)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,scale:h,name:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,horizontal:v,disableInlineStyles:b}=r,_={parent:{style:m.parent,scale:h,domain:o,data:i,height:s,width:g,standalone:p,theme:y,origin:l,polar:u,padding:c,name:d,horizontal:v}};return i.reduce(((t,n,e)=>{const o=lt(n.eventKey)?e:n.eventKey,{x:s,y:c}=X(r,n),d={x:s,y:c,datum:n,data:i,index:e,scale:h,polar:u,origin:l,horizontal:v,size:wv(n,r),symbol:Cv(n,r),style:b?{}:m.data,disableInlineStyles:b};return t[o]={data:d},(null!=Ua(r,n,e)||x&&(a||f))&&(t[o].labels=Ya(r,e)),t}),_)})(t,Av)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=kv,e=ht(this.props,Av,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const kv=zf(Ev),Sv={width:450,height:300,padding:50};function Ov(t,n){const e=wy(t,n),r=function(t,n){const{fillInMissingData:e}=t,r=n.reduce(((t,n)=>(n.forEach((n=>{t[n._x instanceof Date?n._x.getTime():n._x]=!0})),t)),{}),i=Object.keys(r).map((t=>Number(t))),o=R()(i);return n.map((t=>{let n=0;const r=t[0]&&t[0]._x instanceof Date,i=o.map(((i,o)=>{let a=Number(i);const s=t[o-n];if(s){if((r?s._x.getTime():s._x)===a)return s;n++;const t=e?0:null;return a=r?new Date(a):a,{x:a,y:t,_x:a,_y:t}}const l=e?0:null;return a=r?new Date(a):a,{x:a,y:l,_x:a,_y:l}}));return i}))}(t,e);return r.map((t=>t.filter((t=>null!==t._x&&null!==t._y)))).map(((n,e)=>function(t,n,e){const r=t.xOffset||0;return n[e].map((t=>{const i=function(t,n,e){if(t.y0)return t.y0;const r=t._y,i=t._group,o=e[0].map((t=>t.y0)),a=e.slice(0,n).reduce(((n,e)=>n.concat(e.filter((n=>t._x instanceof Date?n._x.getTime()===t._x.getTime():n._x===t._x)).map((t=>t._y||0)))),[]),s=a.length&&a.reduce(((t,n)=>r<0&&n<0||r>=0&&n>=0?Number(n)+t:t),o[i]||0);return a.some((t=>t instanceof Date))?new Date(s):s}(t,e,n)||0;return Object.assign({},t,{_y0:t._y instanceof Date?i?new Date(i):t._y:i,_y1:null===t._y?null:t._y instanceof Date?new Date(Number(t._y)+Number(i)):t._y+i,_x1:null===t._x?null:t._x instanceof Date?new Date(Number(t._x)+Number(r)):t._x+r})}))}(t,r,e)))}function Dv(t,n){const e=n||E().Children.toArray(t.children),r="stack",i=ht(t,Sv,r),o=Ty(i.theme,i.style,r),a=i.categories||Iy(i,e),s=i.datasets||Ov(i,e),l=e.map(((t,n)=>E().cloneElement(t,{data:s[n]}))),c={x:Oy(Object.assign({},i,{categories:a}),"x",l),y:Oy(Object.assign({},i,{categories:a}),"y",l)},u=i.range||{x:st(i,"x"),y:st(i,"y")},h={x:Zo(i,"x")||Dy(i,"x"),y:Zo(i,"y")||Dy(i,"y")},d={x:h.x.domain(c.x).range(i.horizontal?u.y:u.x),y:h.y.domain(c.y).range(i.horizontal?u.x:u.y)},{colorScale:f,horizontal:p}=i;return{datasets:s,categories:a,range:u,domain:c,horizontal:p,scale:d,style:o,colorScale:f,role:r}}function Pv(t,n){const e=n.type&&n.type.role,r=n.props.colorScale||t.colorScale;if("group"===e||"stack"===e)return t.theme?r||t.theme.props.colorScale:r}function Lv(t,n,e){const r=ht(t,Sv,"stack"),i=n||E().Children.toArray(r.children),o=e||Dv(r,i),{datasets:a}=o,s=function(t,n){const{categories:e,domain:r,range:i,scale:o,horizontal:a}=n;return{height:t.height,width:t.width,padding:Z(t.padding),standalone:!1,theme:t.theme,categories:e,domain:r,range:i,scale:o,horizontal:a}}(r,o),l=r.name||"stack",{theme:c}=r;return i.map(((t,n)=>{const e=t.type&&t.type.role,i=a[n],u=jy(t,n,o,c),h=r.labels?function(t,n,e){if(t.labels)return n.length===e+1?t.labels:void 0}(r,a,n):t.props.labels,d=t.props.name||`${l}-${e}-${n}`;return E().cloneElement(t,Object.assign({key:`${d}-key-${n}`,labels:h,name:d,domainPadding:t.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||t.props.labelComponent,style:u,colorScale:Pv(r,t),data:i,polar:r.polar},s))}))}const Tv={width:450,height:300,padding:50},jv={containerComponent:E().createElement(lu,null),groupComponent:E().createElement("g",null),standalone:!0,theme:Mh.grayscale,fillInMissingData:!0},$v=t=>{const{role:n}=zv,e=E().useMemo((()=>U()({},t,jv)),[t]),{setAnimationState:r,getAnimationProps:i,getProps:o}=by(),a=o(e),s=ht(a,Tv,n),{eventKey:l,containerComponent:c,standalone:u,groupComponent:h,externalEventMutations:d,width:f,height:p,theme:m,polar:y,horizontal:g,name:x}=s,v=E().Children.toArray(s.children),b=function(t){const n=(t=>{const{children:n}=t,e=E().Children.toArray(n).map((t=>{const n=t;return{...n,props:K(n.props,["sharedEvents"])}}));return t.children=e,t})(t),[e,r]=E().useState(n);return E().useEffect((()=>{ed()(n,e)||r(n)}),[e,r,n]),E().useMemo((()=>Dv(e,e.children)),[e])}(s),{domain:_,scale:M,style:C}=b,w=E().useMemo((()=>Lv(a,v,b).map(((t,n)=>{const e=Object.assign({animate:i(a,t,n)},t.props);return E().cloneElement(t,e)})).reverse()),[a,v,b,i]),A=E().useMemo((()=>u?{domain:_,scale:M,width:f,height:p,standalone:u,theme:m,style:C.parent,horizontal:g,polar:y,name:x}:{}),[u,_,M,f,p,m,C,g,y,x]),k=E().useMemo((()=>Wc(e)),[e]),O=E().useMemo((()=>{if(u){const t=U()({},c.props,A,k);return E().cloneElement(c,t)}return E().cloneElement(h,k)}),[h,u,c,A,k]),D=E().useMemo((()=>Py(a)),[a]),P=Fy(e);return E().useEffect((()=>()=>{e.animate&&r(P,e)}),[r,P,e]),S()(D)?E().cloneElement(O,O.props,w):E().createElement(qy,{container:O,eventKey:l,events:D,externalEventMutations:d},w)},Nv={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Lv},zv=Object.assign(E().memo($v,ed()),Nv);zv.displayName="VictoryStack";const Rv={pathComponent:E().createElement(Ic,null),circleComponent:E().createElement(hu,null),clipPathComponent:E().createElement(cu,null),groupComponent:E().createElement("g",null),role:"presentation",shapeRendering:"auto"},Iv=t=>{const n=function(t){const n=nt(t.ariaLabel,t),e=nt(t.id,t),r=nt(t.size,t),i=et(t.style,t),o=nt(t.tabIndex,t);return Object.assign({},t,{ariaLabel:n,id:e,size:r,style:i,tabIndex:o})}(U()({},t,Rv)),{ariaLabel:e,role:r,shapeRendering:i,className:o,events:a,transform:s,style:l,size:c,tabIndex:u}=n,h=(t=>{const{polygon:n}=t;return Array.isArray(n)&&n.length?`M ${t.polygon?.join("L")} Z`:""})(n),d={"aria-label":e,className:o,role:r,shapeRendering:i,style:l,tabIndex:u,transform:s,...a},f=Wc(n);if(c){const t=E().cloneElement(n.circleComponent,{...d,key:`${n.id}-circle-clip`,clipPath:`url(#${n.clipId})`,cx:n.x,cy:n.y,r:c}),e=E().cloneElement(n.clipPathComponent,{key:`${n.id}-voronoi-clip`,clipId:n.clipId},E().cloneElement(n.pathComponent,{d:h,className:o}));return E().cloneElement(n.groupComponent,{},[e,t])}return E().cloneElement(n.pathComponent,{...d,...f,d:h})};function Fv(t){return function(){return t}}function Bv(t){return t[0]}function Wv(t){return t[1]}function Vv(){this._=null}function Uv(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function qv(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function Hv(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function Gv(t){for(;t.L;)t=t.L;return t}Vv.prototype={constructor:Vv,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=Gv(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(qv(this,e),e=(t=e).U),e.C=!1,r.C=!0,Hv(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(Hv(this,e),e=(t=e).U),e.C=!1,r.C=!0,qv(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?Gv(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,qv(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Hv(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,qv(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,Hv(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,qv(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,Hv(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var Kv=Vv;function Yv(t,n,e,r){var i=[null,null],o=vb.push(i)-1;return i.left=t,i.right=n,e&&Zv(i,t,n,e),r&&Zv(i,n,t,r),gb[t.index].halfedges.push(o),gb[n.index].halfedges.push(o),i}function Xv(t,n,e){var r=[n,e];return r.left=t,r}function Zv(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function Qv(t,n,e,r,i){var o,a=t[0],s=t[1],l=a[0],c=a[1],u=0,h=1,d=s[0]-l,f=s[1]-c;if(o=n-l,d||!(o>0)){if(o/=d,d<0){if(o<u)return;o<h&&(h=o)}else if(d>0){if(o>h)return;o>u&&(u=o)}if(o=r-l,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o<u)return;o<h&&(h=o)}if(o=e-c,f||!(o>0)){if(o/=f,f<0){if(o<u)return;o<h&&(h=o)}else if(f>0){if(o>h)return;o>u&&(u=o)}if(o=i-c,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o<u)return;o<h&&(h=o)}return!(u>0||h<1)||(u>0&&(t[0]=[l+u*d,c+u*f]),h<1&&(t[1]=[l+h*d,c+h*f]),!0)}}}}}function Jv(t,n,e,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],d=c[1],f=u[0],p=u[1],m=(h+f)/2,y=(d+p)/2;if(p===d){if(m<n||m>=r)return;if(h>f){if(l){if(l[1]>=i)return}else l=[m,e];o=[m,i]}else{if(l){if(l[1]<e)return}else l=[m,i];o=[m,e]}}else if(s=y-(a=(h-f)/(p-d))*m,a<-1||a>1)if(h>f){if(l){if(l[1]>=i)return}else l=[(e-s)/a,e];o=[(i-s)/a,i]}else{if(l){if(l[1]<e)return}else l=[(i-s)/a,i];o=[(e-s)/a,e]}else if(d<p){if(l){if(l[0]>=r)return}else l=[n,a*n+s];o=[r,a*r+s]}else{if(l){if(l[0]<n)return}else l=[r,a*r+s];o=[n,a*n+s]}return t[0]=l,t[1]=o,!0}function tb(t,n){var e=t.site,r=n.left,i=n.right;return e===i&&(i=r,r=e),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(e===r?(r=n[1],i=n[0]):(r=n[0],i=n[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function nb(t,n){return n[+(n.left!==t.site)]}function eb(t,n){return n[+(n.left===t.site)]}var rb,ib=[];function ob(){Uv(this),this.x=this.y=this.arc=this.site=this.cy=null}function ab(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,o=e.site;if(r!==o){var a=i[0],s=i[1],l=r[0]-a,c=r[1]-s,u=o[0]-a,h=o[1]-s,d=2*(l*h-c*u);if(!(d>=-_b)){var f=l*l+c*c,p=u*u+h*h,m=(h*f-c*p)/d,y=(l*p-u*f)/d,g=ib.pop()||new ob;g.arc=t,g.site=i,g.x=m+a,g.y=(g.cy=y+s)+Math.sqrt(m*m+y*y),t.circle=g;for(var x=null,v=xb._;v;)if(g.y<v.y||g.y===v.y&&g.x<=v.x){if(!v.L){x=v.P;break}v=v.L}else{if(!v.R){x=v;break}v=v.R}xb.insert(x,g),x||(rb=g)}}}}function sb(t){var n=t.circle;n&&(n.P||(rb=n.N),xb.remove(n),ib.push(n),Uv(n),t.circle=null)}var lb=[];function cb(){Uv(this),this.edge=this.site=this.circle=null}function ub(t){var n=lb.pop()||new cb;return n.site=t,n}function hb(t){sb(t),yb.remove(t),lb.push(t),Uv(t)}function db(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,s=[t];hb(t);for(var l=o;l.circle&&Math.abs(e-l.circle.x)<bb&&Math.abs(r-l.circle.cy)<bb;)o=l.P,s.unshift(l),hb(l),l=o;s.unshift(l),sb(l);for(var c=a;c.circle&&Math.abs(e-c.circle.x)<bb&&Math.abs(r-c.circle.cy)<bb;)a=c.N,s.push(c),hb(c),c=a;s.push(c),sb(c);var u,h=s.length;for(u=1;u<h;++u)c=s[u],l=s[u-1],Zv(c.edge,l.site,c.site,i);l=s[0],(c=s[h-1]).edge=Yv(l.site,c.site,null,i),ab(l),ab(c)}function fb(t){for(var n,e,r,i,o=t[0],a=t[1],s=yb._;s;)if((r=pb(s,a)-o)>bb)s=s.L;else{if(!((i=o-mb(s,a))>bb)){r>-bb?(n=s.P,e=s):i>-bb?(n=s,e=s.N):n=e=s;break}if(!s.R){n=s;break}s=s.R}!function(t){gb[t.index]={site:t,halfedges:[]}}(t);var l=ub(t);if(yb.insert(n,l),n||e){if(n===e)return sb(n),e=ub(n.site),yb.insert(l,e),l.edge=e.edge=Yv(n.site,l.site),ab(n),void ab(e);if(e){sb(n),sb(e);var c=n.site,u=c[0],h=c[1],d=t[0]-u,f=t[1]-h,p=e.site,m=p[0]-u,y=p[1]-h,g=2*(d*y-f*m),x=d*d+f*f,v=m*m+y*y,b=[(y*x-f*v)/g+u,(d*v-m*x)/g+h];Zv(e.edge,c,p,b),l.edge=Yv(c,t,null,b),e.edge=Yv(t,p,null,b),ab(n),ab(e)}else l.edge=Yv(n.site,l.site)}}function pb(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(e=a.site)[0],l=e[1],c=l-n;if(!c)return s;var u=s-r,h=1/o-1/c,d=u/c;return h?(-d+Math.sqrt(d*d-2*h*(u*u/(-2*c)-l+c/2+i-o/2)))/h+r:(r+s)/2}function mb(t,n){var e=t.N;if(e)return pb(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var yb,gb,xb,vb,bb=1e-6,_b=1e-12;function Mb(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Cb(t,n){return n[1]-t[1]||n[0]-t[0]}function wb(t,n){var e,r,i,o=t.sort(Cb).pop();for(vb=[],gb=new Array(t.length),yb=new Kv,xb=new Kv;;)if(i=rb,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===e&&o[1]===r||(fb(o),e=o[0],r=o[1]),o=t.pop();else{if(!i)break;db(i.arc)}if(function(){for(var t,n,e,r,i=0,o=gb.length;i<o;++i)if((t=gb[i])&&(r=(n=t.halfedges).length)){var a=new Array(r),s=new Array(r);for(e=0;e<r;++e)a[e]=e,s[e]=tb(t,vb[n[e]]);for(a.sort((function(t,n){return s[n]-s[t]})),e=0;e<r;++e)s[e]=n[a[e]];for(e=0;e<r;++e)n[e]=s[e]}}(),n){var a=+n[0][0],s=+n[0][1],l=+n[1][0],c=+n[1][1];!function(t,n,e,r){for(var i,o=vb.length;o--;)Jv(i=vb[o],t,n,e,r)&&Qv(i,t,n,e,r)&&(Math.abs(i[0][0]-i[1][0])>bb||Math.abs(i[0][1]-i[1][1])>bb)||delete vb[o]}(a,s,l,c),function(t,n,e,r){var i,o,a,s,l,c,u,h,d,f,p,m,y=gb.length,g=!0;for(i=0;i<y;++i)if(o=gb[i]){for(a=o.site,s=(l=o.halfedges).length;s--;)vb[l[s]]||l.splice(s,1);for(s=0,c=l.length;s<c;)p=(f=eb(o,vb[l[s]]))[0],m=f[1],h=(u=nb(o,vb[l[++s%c]]))[0],d=u[1],(Math.abs(p-h)>bb||Math.abs(m-d)>bb)&&(l.splice(s,0,vb.push(Xv(a,f,Math.abs(p-t)<bb&&r-m>bb?[t,Math.abs(h-t)<bb?d:r]:Math.abs(m-r)<bb&&e-p>bb?[Math.abs(d-r)<bb?h:e,r]:Math.abs(p-e)<bb&&m-n>bb?[e,Math.abs(h-e)<bb?d:n]:Math.abs(m-n)<bb&&p-t>bb?[Math.abs(d-n)<bb?h:t,n]:null))-1),++c);c&&(g=!1)}if(g){var x,v,b,_=1/0;for(i=0,g=null;i<y;++i)(o=gb[i])&&(b=(x=(a=o.site)[0]-t)*x+(v=a[1]-n)*v)<_&&(_=b,g=o);if(g){var M=[t,n],C=[t,r],w=[e,r],A=[e,n];g.halfedges.push(vb.push(Xv(a=g.site,M,C))-1,vb.push(Xv(a,C,w))-1,vb.push(Xv(a,w,A))-1,vb.push(Xv(a,A,M))-1)}}for(i=0;i<y;++i)(o=gb[i])&&(o.halfedges.length||delete gb[i])}(a,s,l,c)}this.edges=vb,this.cells=gb,yb=xb=vb=gb=null}wb.prototype={constructor:wb,polygons:function(){var t=this.edges;return this.cells.map((function(n){var e=n.halfedges.map((function(e){return nb(n,t[e])}));return e.data=n.site.data,e}))},triangles:function(){var t=[],n=this.edges;return this.cells.forEach((function(e,r){if(o=(i=e.halfedges).length)for(var i,o,a,s=e.site,l=-1,c=n[i[o-1]],u=c.left===s?c.right:c.left;++l<o;)a=u,u=(c=n[i[l]]).left===s?c.right:c.left,a&&u&&r<a.index&&r<u.index&&Mb(s,a,u)<0&&t.push([s.data,a.data,u.data])})),t},links:function(){return this.edges.filter((function(t){return t.right})).map((function(t){return{source:t.left.data,target:t.right.data}}))},find:function(t,n,e){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var l=t-i.site[0],c=n-i.site[1],u=l*l+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],c=n-s[1],h=l*l+c*c;h<u&&(u=h,a=s.index)}}))}while(null!==a);return o._found=r,null==e||u<=e*e?i.site:null}};const Ab=(t,n,e)=>{const r=[Math.min(...n.x),Math.min(...n.y)],i=[Math.max(...n.x),Math.max(...n.y)];return function(){var t=Bv,n=Wv,e=null;function r(r){return new wb(r.map((function(e,i){var o=[Math.round(t(e,i,r)/bb)*bb,Math.round(n(e,i,r)/bb)*bb];return o.index=i,o.data=e,o})),e)}return r.polygons=function(t){return r(t).polygons()},r.links=function(t){return r(t).links()},r.triangles=function(t){return r(t).triangles()},r.x=function(n){return arguments.length?(t="function"==typeof n?n:Fv(+n),r):t},r.y=function(t){return arguments.length?(n="function"==typeof t?t:Fv(+t),r):n},r.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},r.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],r):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},r}().x((n=>t.polar?(t=>-1*e.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2)(n):(n=>t.horizontal?e.y(void 0!==n._y1?n._y1:n._y):e.x(void 0!==n._x1?n._x1:n._x))(n))).y((n=>(n=>t.horizontal?e.x(void 0!==n._x1?n._x1:n._x):e.y(void 0!==n._y1?n._y1:n._y))(n))).extent([r,i])},Eb={width:450,height:300,padding:50};class kb extends E().Component{static animationWhitelist=["data","domain","height","padding","samples","size","style","width"];static displayName="VictoryVoronoi";static role="voronoi";static defaultTransitions={onLoad:{duration:2e3,before:()=>({opacity:0}),after:t=>t},onExit:{duration:600,before:()=>({opacity:0})},onEnter:{duration:600,before:()=>({opacity:0}),after:t=>t}};static defaultProps={containerComponent:E().createElement(lu,null),dataComponent:E().createElement(Iv,null),labelComponent:E().createElement(Zh,null),groupComponent:E().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Mh.grayscale};static getDomain=Ta;static getData=_a;static getBaseProps(t){return((t,n)=>{const e=ht(t,n,"scatter"),r=Object.assign({},e,(t=>{const n=t.theme&&t.theme.voronoi&&t.theme.voronoi.style?t.theme.voronoi.style:{},e=tt(t.style,n),r={x:st(t,"x"),y:st(t,"y")},i={x:Ta(t,"x"),y:Ta(t,"y")},o={x:Yo(t,"x").domain(i.x).range(t.horizontal?r.y:r.x),y:Yo(t,"y").domain(i.y).range(t.horizontal?r.x:r.y)};let a=_a(t);return a=ma(a,i),a=a.filter((t=>null!==t._x&&null!==t._y)),{domain:i,data:a,scale:o,style:e,polygons:Ab(t,r,o).polygons(a),origin:t.polar?t.origin||at(t):void 0}})(e)),{data:i,domain:o,events:a,height:s,origin:l,padding:c,polar:u,polygons:h,scale:d,sharedEvents:f,standalone:p,style:m,theme:y,width:g,labels:x,name:v}=r,b={parent:{style:m.parent,scale:d,domain:o,data:i,standalone:p,height:s,width:g,theme:y,origin:l,polar:u,padding:c,name:v}};return i.reduce(((t,n,e)=>{const o=h[e]?.filter((t=>"data"!==t)),s=lt(n.eventKey)?e:n.eventKey,{x:c,y:u}=X(r,n),p={x:c,y:u,datum:n,data:i,index:e,scale:d,polygon:o,origin:l,size:r.size,style:m.data};return t[s]={data:p},(null!=Ua(r,n,e)||x&&(a||f))&&(t[s].labels=Ya(r,e)),t}),b)})(t,Eb)}static expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];shouldAnimate(){return!!this.props.animate}render(){const{animationWhitelist:t,role:n}=Sb,e=ht(this.props,Eb,n);if(this.shouldAnimate())return this.animateComponent(e,t);const r=this.renderData(e),i=e.standalone?this.renderContainer(e.containerComponent,r):r;return Vc(i,e)}}const Sb=zf(kb)}(),i}()}));
|
|
2
2
|
//# sourceMappingURL=victory.min.js.map
|