victory 36.9.2-next.1 → 36.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,2 @@
1
- /*! For license information please see victory.min.js.LICENSE.txt */
2
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Victory=t(require("react")):e.Victory=t(e.React)}(self,(e=>(()=>{var t={3644:function(e){e.exports=function(){"use strict";var e=Math.pow(2,-52),t=new Uint32Array(512),n=function(e){var t=e.length>>1;if(t>0&&"number"!=typeof e[0])throw new Error("Expected coords to contain numbers.");this.coords=e;var n=Math.max(2*t-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(t)),this._hullPrev=new Uint32Array(t),this._hullNext=new Uint32Array(t),this._hullTri=new Uint32Array(t),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(t),this._dists=new Float64Array(t),this.update()};function r(e,t,n,r){var o=e-n,i=t-r;return o*o+i*i}function o(e,t,n,r,o,i){var a=(r-t)*(o-e),l=(n-e)*(i-t);return Math.abs(a-l)>=33306690738754716e-32*Math.abs(a+l)?a-l:0}function i(e,t,n,r,i,a){return(o(i,a,e,t,n,r)||o(e,t,n,r,i,a)||o(n,r,i,a,e,t))<0}function a(e,t,n,r,o,i){var a=n-e,l=r-t,u=o-e,c=i-t,s=a*a+l*l,f=u*u+c*c,d=.5/(a*c-l*u),p=(c*s-l*f)*d,h=(a*f-u*s)*d;return p*p+h*h}function l(e,t,n,r){if(r-n<=20)for(var o=n+1;o<=r;o++){for(var i=e[o],a=t[i],c=o-1;c>=n&&t[e[c]]>a;)e[c+1]=e[c--];e[c+1]=i}else{var s=n+1,f=r;u(e,n+r>>1,s),t[e[n]]>t[e[r]]&&u(e,n,r),t[e[s]]>t[e[r]]&&u(e,s,r),t[e[n]]>t[e[s]]&&u(e,n,s);for(var d=e[s],p=t[d];;){do{s++}while(t[e[s]]<p);do{f--}while(t[e[f]]>p);if(f<s)break;u(e,s,f)}e[n+1]=e[f],e[f]=d,r-s+1>=f-n?(l(e,t,s,r),l(e,t,n,f-1)):(l(e,t,n,f-1),l(e,t,s,r))}}function u(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function c(e){return e[0]}function s(e){return e[1]}return n.from=function(e,t,r){void 0===t&&(t=c),void 0===r&&(r=s);for(var o=e.length,i=new Float64Array(2*o),a=0;a<o;a++){var l=e[a];i[2*a]=t(l),i[2*a+1]=r(l)}return new n(i)},n.prototype.update=function(){for(var t=this,n=t.coords,o=t._hullPrev,u=t._hullNext,c=t._hullTri,s=t._hullHash,f=n.length>>1,d=1/0,p=1/0,h=-1/0,y=-1/0,m=0;m<f;m++){var v=n[2*m],g=n[2*m+1];v<d&&(d=v),g<p&&(p=g),v>h&&(h=v),g>y&&(y=g),this._ids[m]=m}for(var b,x,w,O=(d+h)/2,_=(p+y)/2,k=1/0,S=0;S<f;S++){var j=r(O,_,n[2*S],n[2*S+1]);j<k&&(b=S,k=j)}var E=n[2*b],P=n[2*b+1];k=1/0;for(var C=0;C<f;C++)if(C!==b){var M=r(E,P,n[2*C],n[2*C+1]);M<k&&M>0&&(x=C,k=M)}for(var A=n[2*x],D=n[2*x+1],T=1/0,L=0;L<f;L++)if(L!==b&&L!==x){var N=a(E,P,A,D,n[2*L],n[2*L+1]);N<T&&(w=L,T=N)}var z=n[2*w],I=n[2*w+1];if(T===1/0){for(var R=0;R<f;R++)this._dists[R]=n[2*R]-n[0]||n[2*R+1]-n[1];l(this._ids,this._dists,0,f-1);for(var F=new Uint32Array(f),B=0,U=0,W=-1/0;U<f;U++){var V=this._ids[U];this._dists[V]>W&&(F[B++]=V,W=this._dists[V])}return this.hull=F.subarray(0,B),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(E,P,A,D,z,I)){var H=x,q=A,$=D;x=w,A=z,D=I,w=H,z=q,I=$}var K=function(e,t,n,r,o,i){var a=n-e,l=r-t,u=o-e,c=i-t,s=a*a+l*l,f=u*u+c*c,d=.5/(a*c-l*u);return{x:e+(c*s-l*f)*d,y:t+(a*f-u*s)*d}}(E,P,A,D,z,I);this._cx=K.x,this._cy=K.y;for(var G=0;G<f;G++)this._dists[G]=r(n[2*G],n[2*G+1],K.x,K.y);l(this._ids,this._dists,0,f-1),this._hullStart=b;var Y=3;u[b]=o[w]=x,u[x]=o[b]=w,u[w]=o[x]=b,c[b]=0,c[x]=1,c[w]=2,s.fill(-1),s[this._hashKey(E,P)]=b,s[this._hashKey(A,D)]=x,s[this._hashKey(z,I)]=w,this.trianglesLen=0,this._addTriangle(b,x,w,-1,-1,-1);for(var X=0,Q=void 0,Z=void 0;X<this._ids.length;X++){var J=this._ids[X],ee=n[2*J],te=n[2*J+1];if(!(X>0&&Math.abs(ee-Q)<=e&&Math.abs(te-Z)<=e)&&(Q=ee,Z=te,J!==b&&J!==x&&J!==w)){for(var ne=0,re=0,oe=this._hashKey(ee,te);re<this._hashSize&&(-1===(ne=s[(oe+re)%this._hashSize])||ne===u[ne]);re++);for(var ie=ne=o[ne],ae=void 0;ae=u[ie],!i(ee,te,n[2*ie],n[2*ie+1],n[2*ae],n[2*ae+1]);)if((ie=ae)===ne){ie=-1;break}if(-1!==ie){var le=this._addTriangle(ie,J,u[ie],-1,-1,c[ie]);c[J]=this._legalize(le+2),c[ie]=le,Y++;for(var ue=u[ie];ae=u[ue],i(ee,te,n[2*ue],n[2*ue+1],n[2*ae],n[2*ae+1]);)le=this._addTriangle(ue,J,ae,c[J],-1,c[ue]),c[J]=this._legalize(le+2),u[ue]=ue,Y--,ue=ae;if(ie===ne)for(;i(ee,te,n[2*(ae=o[ie])],n[2*ae+1],n[2*ie],n[2*ie+1]);)le=this._addTriangle(ae,J,ie,-1,c[ie],c[ae]),this._legalize(le+2),c[ae]=le,u[ie]=ie,Y--,ie=ae;this._hullStart=o[J]=ie,u[ie]=o[ue]=J,u[J]=ue,s[this._hashKey(ee,te)]=J,s[this._hashKey(n[2*ie],n[2*ie+1])]=ie}}}this.hull=new Uint32Array(Y);for(var ce=0,se=this._hullStart;ce<Y;ce++)this.hull[ce]=se,se=u[se];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},n.prototype._hashKey=function(e,t){return Math.floor((n=e-this._cx,r=t-this._cy,o=n/(Math.abs(n)+Math.abs(r)),(r>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var n,r,o},n.prototype._legalize=function(e){for(var n=this,r=n._triangles,o=n._halfedges,i=n.coords,a=0,l=0;;){var u=o[e],c=e-e%3;if(l=c+(e+2)%3,-1!==u){var s=u-u%3,f=c+(e+1)%3,d=s+(u+2)%3,p=r[l],h=r[e],y=r[f],m=r[d];if(x=i[2*p],w=i[2*p+1],O=i[2*h],_=i[2*h+1],k=i[2*y],S=i[2*y+1],j=i[2*m],E=i[2*m+1],P=void 0,C=void 0,M=void 0,A=void 0,D=void 0,T=void 0,L=void 0,N=void 0,(P=x-j)*((A=_-E)*(N=(D=k-j)*D+(T=S-E)*T)-(L=(M=O-j)*M+A*A)*T)-(C=w-E)*(M*N-L*D)+(P*P+C*C)*(M*T-A*D)<0){r[e]=m,r[u]=p;var v=o[d];if(-1===v){var g=this._hullStart;do{if(this._hullTri[g]===d){this._hullTri[g]=e;break}g=this._hullPrev[g]}while(g!==this._hullStart)}this._link(e,v),this._link(u,o[l]),this._link(l,d);var b=s+(u+1)%3;a<t.length&&(t[a++]=b)}else{if(0===a)break;e=t[--a]}}else{if(0===a)break;e=t[--a]}}var x,w,O,_,k,S,j,E,P,C,M,A,D,T,L,N;return l},n.prototype._link=function(e,t){this._halfedges[e]=t,-1!==t&&(this._halfedges[t]=e)},n.prototype._addTriangle=function(e,t,n,r,o,i){var a=this.trianglesLen;return this._triangles[a]=e,this._triangles[a+1]=t,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,o),this._link(a+2,i),this.trianglesLen+=3,a},n}()},6898:(e,t,n)=>{"use strict";t.Z=void 0;var r,o=(r=n(3644))&&r.__esModule?r:{default:r};function i(e){return e[0]}function a(e){return e[1]}function l(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}var u=function(){function e(e){var t=new o.default(e);this.inedges=new Int32Array(e.length/2),this._hullIndex=new Int32Array(e.length/2),this.points=t.coords,this._init(t)}var t=e.prototype;return t._init=function(e){var t=e,n=this.points;if(t.hull&&t.hull.length>2&&function(e){for(var t=e.triangles,n=e.coords,r=0;r<t.length;r+=3){var o=2*t[r],i=2*t[r+1],a=2*t[r+2];if((n[a]-n[o])*(n[i+1]-n[o+1])-(n[i]-n[o])*(n[a+1]-n[o+1])>1e-10)return!1}return!0}(t)){this.collinear=Int32Array.from({length:n.length/2},(function(e,t){return t})).sort((function(e,t){return n[2*e]-n[2*t]||n[2*e+1]-n[2*t+1]}));for(var r=this.collinear[0],i=this.collinear[this.collinear.length-1],a=[n[2*r],n[2*r+1],n[2*i],n[2*i+1]],u=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),c=0,s=n.length/2;c<s;++c){var f=l(n[2*c],n[2*c+1],u);n[2*c]=f[0],n[2*c+1]=f[1]}e=new o.default(n)}for(var d=this.halfedges=e.halfedges,p=this.hull=e.hull,h=this.triangles=e.triangles,y=this.inedges.fill(-1),m=this._hullIndex.fill(-1),v=0,g=d.length;v<g;++v){var b=h[v%3==2?v-2:v+1];-1!==d[v]&&-1!==y[b]||(y[b]=v)}for(var x=0,w=p.length;x<w;++x)m[p[x]]=x;p.length<=2&&p.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=p[0],this.triangles[1]=p[1],this.triangles[2]=p[1],y[p[0]]=1,2===p.length&&(y[p[1]]=0))},t.neighbors=function(e){var t=[],n=this.inedges,r=this.hull,o=this._hullIndex,i=this.halfedges,a=this.triangles,l=n[e];if(-1===l)return t;var u=l,c=-1;do{if(c=a[u],t.push(c),a[u=u%3==2?u-2:u+1]!==e)break;if(-1===(u=i[u])){var s=r[(o[e]+1)%r.length];s!==c&&t.push(s);break}}while(u!==l);return t},t.find=function(e,t,n){if(void 0===n&&(n=0),(e=+e)!=e||(t=+t)!=t)return-1;for(var r,o=n;(r=this._step(n,e,t))>=0&&r!==n&&r!==o;)n=r;return r},t._step=function(e,t,n){var r=this.inedges,o=this.points;if(-1===r[e]||!o.length)return(e+1)%(o.length>>1);var i=e,a=Math.pow(t-o[2*e],2)+Math.pow(n-o[2*e+1],2),l=this.neighbors(e),u=Array.isArray(l),c=0;for(l=u?l:l[Symbol.iterator]();;){var s;if(u){if(c>=l.length)break;s=l[c++]}else{if((c=l.next()).done)break;s=c.value}var f=s,d=Math.pow(t-o[2*f],2)+Math.pow(n-o[2*f+1],2);d<a&&(a=d,i=f)}return i},e}();t.Z=u,u.from=function(e,t,n,r){return void 0===t&&(t=i),void 0===n&&(n=a),new u(function(e,t,n,r){for(var o=e.length,i=new Float64Array(2*o),a=0;a<o;++a){var l=e[a];i[2*a]=t.call(r,l,a,e),i[2*a+1]=n.call(r,l,a,e)}return i}(e,t,n,r))}},2516:(e,t)=>{function n(e,t){var n=[],r=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(t)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=t.call(this,o,i))}else n.push(i);return null==e?i:e.call(this,o,i)}}(e.exports=function(e,t,r,o){return JSON.stringify(e,n(t,o),r)}).getSerialize=n},503:(e,t,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),l=n(8541);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},3273:(e,t,n)=>{var r=n(163);e.exports=function(){if(!arguments.length)return[];var e=arguments[0];return r(e)?e:[e]}},8708:(e,t,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),l=n(8541);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},2596:(e,t,n)=>{var r=n(2373).Symbol;e.exports=r},6082:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},6649:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},5510:(e,t,n)=>{var r=n(6123);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},9955:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},8644:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},9559:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},1634:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},4132:(e,t,n)=>{var r=n(8347),o=n(788),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},3162:(e,t,n)=>{var r=n(788);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},4508:e=>{e.exports=function(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}},8347:(e,t,n)=>{var r=n(5525);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},7451:e=>{e.exports=function(e,t,n){if("function"!=typeof e)throw new TypeError("Expected a function");return setTimeout((function(){e.apply(void 0,n)}),t)}},1377:(e,t,n)=>{var r=n(3273),o=n(5510),i=n(9955),a=n(8644),l=n(9110),u=n(9914);e.exports=function(e,t,n,c){var s=-1,f=o,d=!0,p=e.length,h=[],y=t.length;if(!p)return h;n&&(t=a(t,l(n))),c?(f=i,d=!1):t.length>=200&&(f=u,d=!1,t=new r(t));e:for(;++s<p;){var m=e[s],v=null==n?m:n(m);if(m=c||0!==m?m:0,d&&v==v){for(var g=y;g--;)if(t[g]===v)continue e;h.push(m)}else f(t,v,c)||h.push(m)}return h}},6457:(e,t,n)=>{var r=n(9559),o=n(3608);e.exports=function e(t,n,i,a,l){var u=-1,c=t.length;for(i||(i=o),l||(l=[]);++u<c;){var s=t[u];n>0&&i(s)?n>1?e(s,n-1,i,a,l):r(l,s):a||(l[l.length]=s)}return l}},320:(e,t,n)=>{var r=n(4710)();e.exports=r},2446:(e,t,n)=>{var r=n(320),o=n(7747);e.exports=function(e,t){return e&&r(e,t,o)}},4432:(e,t,n)=>{var r=n(9026),o=n(3110);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},563:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6776:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},6123:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},4287:(e,t,n)=>{var r=n(2446);e.exports=function(e,t,n,o){return r(e,(function(e,r,i){t(o,n(e),r,i)})),o}},7537:(e,t,n)=>{var r=n(563),o=n(3474);e.exports=function(e){return o(e)&&"[object Date]"==r(e)}},9070:(e,t,n)=>{var r=n(7028),o=n(3474);e.exports=function e(t,n,i,a,l){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,l))}},7028:(e,t,n)=>{var r=n(8708),o=n(8705),i=n(2813),a=n(6682),l=n(9667),u=n(163),c=n(4801),s=n(4289),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,y,m,v){var g=u(e),b=u(t),x=g?d:l(e),w=b?d:l(t),O=(x=x==f?p:x)==p,_=(w=w==f?p:w)==p,k=x==w;if(k&&c(e)){if(!c(t))return!1;g=!0,O=!1}if(k&&!O)return v||(v=new r),g||s(e)?o(e,t,n,y,m,v):i(e,t,x,n,y,m,v);if(!(1&n)){var S=O&&h.call(e,"__wrapped__"),j=_&&h.call(t,"__wrapped__");if(S||j){var E=S?e.value():e,P=j?t.value():t;return v||(v=new r),m(E,P,n,y,v)}}return!!k&&(v||(v=new r),a(e,t,n,y,m,v))}},9548:(e,t,n)=>{var r=n(8708),o=n(9070);e.exports=function(e,t,n,i){var a=n.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var c=n[a];if(u&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<l;){var s=(c=n[a])[0],f=e[s],d=c[1];if(u&&c[2]){if(void 0===f&&!(s in e))return!1}else{var p=new r;if(i)var h=i(f,d,s,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},2229:(e,t,n)=>{var r=n(563),o=n(3474);e.exports=function(e){return o(e)&&"[object RegExp]"==r(e)}},3472:(e,t,n)=>{var r=n(758),o=n(5223),i=n(5346),a=n(163),l=n(8532);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):l(e)}},7190:(e,t,n)=>{var r=n(5125)(Object.keys,Object);e.exports=r},383:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},758:(e,t,n)=>{var r=n(9548),o=n(597),i=n(6878);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},5223:(e,t,n)=>{var r=n(9070),o=n(9201),i=n(5066),a=n(726),l=n(5385),u=n(6878),c=n(3110);e.exports=function(e,t){return a(e)&&l(t)?u(c(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},8245:(e,t,n)=>{var r=n(8644),o=n(4432),i=n(3472),a=n(383),l=n(9521),u=n(9110),c=n(9409),s=n(5346),f=n(163);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[s];var d=-1;t=r(t,u(i));var p=a(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++d,value:e}}));return l(p,(function(e,t){return c(e,t,n)}))}},5436:(e,t,n)=>{var r=n(6371),o=n(5066);e.exports=function(e,t){return r(e,t,(function(t,n){return o(e,n)}))}},6371:(e,t,n)=>{var r=n(4432),o=n(6539),i=n(9026);e.exports=function(e,t,n){for(var a=-1,l=t.length,u={};++a<l;){var c=t[a],s=r(e,c);n(s,c)&&o(u,i(c,e),s)}return u}},1600:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},3301:(e,t,n)=>{var r=n(4432);e.exports=function(e){return function(t){return r(t,e)}}},7805:e=>{var t=Math.ceil,n=Math.max;e.exports=function(e,r,o,i){for(var a=-1,l=n(t((r-e)/(o||1)),0),u=Array(l);l--;)u[i?l:++a]=e,e+=o;return u}},6317:(e,t,n)=>{var r=n(5346),o=n(4280),i=n(201);e.exports=function(e,t){return i(o(e,t,r),e+"")}},6539:(e,t,n)=>{var r=n(4132),o=n(9026),i=n(9099),a=n(7709),l=n(3110);e.exports=function(e,t,n,u){if(!a(e))return e;for(var c=-1,s=(t=o(t,e)).length,f=s-1,d=e;null!=d&&++c<s;){var p=l(t[c]),h=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=f){var y=d[p];void 0===(h=u?u(y,p,d):void 0)&&(h=a(y)?y:i(t[c+1])?[]:{})}r(d,p,h),d=d[p]}return e}},9521:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},7556:(e,t,n)=>{var r=n(788);e.exports=function(e,t){for(var n=-1,o=e.length,i=0,a=[];++n<o;){var l=e[n],u=t?t(l):l;if(!n||!r(u,c)){var c=u;a[i++]=0===l?0:l}}return a}},991:e=>{e.exports=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n}},4738:(e,t,n)=>{var r=n(8644);e.exports=function(e,t){return r(t,(function(t){return[t,e[t]]}))}},6316:(e,t,n)=>{var r=n(2596),o=n(8644),i=n(163),a=n(1995),l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1367:(e,t,n)=>{var r=n(4120),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},9110:e=>{e.exports=function(e){return function(t){return e(t)}}},946:(e,t,n)=>{var r=n(3273),o=n(5510),i=n(9955),a=n(9914),l=n(6602),u=n(6226);e.exports=function(e,t,n){var c=-1,s=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,s=i;else if(f>=200){var y=t?null:l(e);if(y)return u(y);d=!1,s=a,h=new r}else h=t?[]:p;e:for(;++c<f;){var m=e[c],v=t?t(m):m;if(m=n||0!==m?m:0,d&&v==v){for(var g=h.length;g--;)if(h[g]===v)continue e;t&&h.push(v),p.push(m)}else s(h,v,n)||(h!==p&&h.push(v),p.push(m))}return p}},9914:(e,t,n)=>{var r=n(6123);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},674:e=>{e.exports=function(e){return e}},9026:(e,t,n)=>{var r=n(163),o=n(726),i=n(7801),a=n(7010);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},522:(e,t,n)=>{var r=n(1995);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,i=e==e,a=r(e),l=void 0!==t,u=null===t,c=t==t,s=r(t);if(!u&&!s&&!a&&e>t||a&&l&&c&&!u&&!s||o&&l&&c||!n&&c||!i)return 1;if(!o&&!a&&!s&&e<t||s&&n&&i&&!o&&!a||u&&n&&i||!l&&i||!c)return-1}return 0}},9409:(e,t,n)=>{var r=n(522);e.exports=function(e,t,n){for(var o=-1,i=e.criteria,a=t.criteria,l=i.length,u=n.length;++o<l;){var c=r(i[o],a[o]);if(c)return o>=u?c:c*("desc"==n[o]?-1:1)}return e.index-t.index}},9021:(e,t,n)=>{var r=n(4132),o=n(8347);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,u=t.length;++l<u;){var c=t[l],s=i?i(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),a?o(n,c,s):r(n,c,s)}return n}},5659:(e,t,n)=>{var r=n(6649),o=n(4508),i=n(3472),a=n(163);e.exports=function(e,t){return function(n,l){var u=a(n)?r:o,c=t?t():{};return u(n,e,i(l,2),c)}}},6092:(e,t,n)=>{var r=n(6317),o=n(8286);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,l=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,l&&o(n[0],n[1],l)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}},4710:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}},1093:(e,t,n)=>{var r=n(4287);e.exports=function(e,t){return function(n,o){return r(n,e,t(o),{})}}},2507:(e,t,n)=>{var r=n(7805),o=n(8286),i=n(9139);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},6602:e=>{e.exports=function(){}},5976:(e,t,n)=>{var r=n(4738),o=n(9667),i=n(2900),a=n(3757);e.exports=function(e){return function(t){var n=o(t);return"[object Map]"==n?i(t):"[object Set]"==n?a(t):r(t,e(t))}}},5525:(e,t,n)=>{var r=n(3743),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},8705:(e,t,n)=>{var r=n(3273),o=n(1634),i=n(9914);e.exports=function(e,t,n,a,l,u){var c=1&n,s=e.length,f=t.length;if(s!=f&&!(c&&f>s))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,y=!0,m=2&n?new r:void 0;for(u.set(e,t),u.set(t,e);++h<s;){var v=e[h],g=t[h];if(a)var b=c?a(g,v,h,t,e,u):a(v,g,h,e,t,u);if(void 0!==b){if(b)continue;y=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(v===e||l(v,e,n,a,u)))return m.push(t)}))){y=!1;break}}else if(v!==g&&!l(v,g,n,a,u)){y=!1;break}}return u.delete(e),u.delete(t),y}},2813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6682:(e,t,n)=>{var r=n(8143),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,l){var u=1&n,c=r(e),s=c.length;if(s!=r(t).length&&!u)return!1;for(var f=s;f--;){var d=c[f];if(!(u?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var y=!0;l.set(e,t),l.set(t,e);for(var m=u;++f<s;){var v=e[d=c[f]],g=t[d];if(i)var b=u?i(g,v,d,t,e,l):i(v,g,d,e,t,l);if(!(void 0===b?v===g||a(v,g,n,i,l):b)){y=!1;break}m||(m="constructor"==d)}if(y&&!m){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return l.delete(e),l.delete(t),y}},5557:(e,t,n)=>{var r=n(2645),o=n(4280),i=n(201);e.exports=function(e){return i(o(e,void 0,r),e+"")}},2117:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},8143:(e,t,n)=>{var r=n(5125)(Object.keys,Object);e.exports=r},7271:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},597:(e,t,n)=>{var r=n(5385),o=n(7747);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},3743:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},9817:(e,t,n)=>{var r=n(5125)(Object.getPrototypeOf,Object);e.exports=r},9667:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3096:(e,t,n)=>{var r=n(9026),o=n(5075),i=n(163),a=n(9099),l=n(8454),u=n(3110);e.exports=function(e,t,n){for(var c=-1,s=(t=r(t,e)).length,f=!1;++c<s;){var d=u(t[c]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++c!=s?f:!!(s=null==e?0:e.length)&&l(s)&&a(d,s)&&(i(e)||o(e))}},3608:(e,t,n)=>{var r=n(2596),o=n(5075),i=n(163),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},9099:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},8286:e=>{e.exports=function(){return!1}},726:(e,t,n)=>{var r=n(163),o=n(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},5782:e=>{e.exports=function(){return!1}},5385:(e,t,n)=>{var r=n(7709);e.exports=function(e){return e==e&&!r(e)}},1171:e=>{e.exports=function(){this.__data__=[],this.size=0}},7838:(e,t,n)=>{var r=n(3162),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},4859:(e,t,n)=>{var r=n(3162);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},4073:(e,t,n)=>{var r=n(3162);e.exports=function(e){return r(this.__data__,e)>-1}},8541:(e,t,n)=>{var r=n(3162);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},2900:e=>{e.exports=function(){return[]}},6878:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},2453:e=>{e.exports=function(e){return e}},2348:(e,t,n)=>{e=n.nmd(e);var r=n(2117),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},5125:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},4280:(e,t,n)=>{var r=n(6082),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),u=Array(l);++a<l;)u[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(u),r(e,this,c)}}},2373:(e,t,n)=>{var r=n(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},6226:e=>{e.exports=function(){return[]}},3757:e=>{e.exports=function(){return[]}},201:e=>{e.exports=function(e){return e}},7801:(e,t,n)=>{var r=n(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},3110:(e,t,n)=>{var r=n(1995);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},4120:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},156:(e,t,n)=>{var r=n(4132),o=n(9021),i=n(6092),a=n(981),l=n(5782),u=n(7747),c=Object.prototype.hasOwnProperty,s=i((function(e,t){if(l(t)||a(t))o(t,u(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])}));e.exports=s},1937:e=>{e.exports=function(e){return function(){return e}}},5034:(e,t,n)=>{var r=n(7709),o=n(6987),i=n(5812),a=Math.max,l=Math.min;e.exports=function(e,t,n){var u,c,s,f,d,p,h=0,y=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=u,r=c;return u=c=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(w,t),y?g(e):f}function x(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=s}function w(){var e=o();if(x(e))return O(e);d=setTimeout(w,function(e){var n=t-(e-p);return m?l(n,s-(e-h)):n}(e))}function O(e){return d=void 0,v&&u?g(e):(u=c=void 0,f)}function _(){var e=o(),n=x(e);if(u=arguments,c=this,p=e,n){if(void 0===d)return b(p);if(m)return clearTimeout(d),d=setTimeout(w,t),g(p)}return void 0===d&&(d=setTimeout(w,t)),f}return t=i(t)||0,r(n)&&(y=!!n.leading,s=(m="maxWait"in n)?a(i(n.maxWait)||0,t):s,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=c=d=void 0},_.flush=function(){return void 0===d?f:O(o())},_}},1893:(e,t,n)=>{var r=n(6317),o=n(788),i=n(8286),a=n(8855),l=Object.prototype,u=l.hasOwnProperty,c=r((function(e,t){e=Object(e);var n=-1,r=t.length,c=r>2?t[2]:void 0;for(c&&i(t[0],t[1],c)&&(r=1);++n<r;)for(var s=t[n],f=a(s),d=-1,p=f.length;++d<p;){var h=f[d],y=e[h];(void 0===y||o(y,l[h])&&!u.call(e,h))&&(e[h]=s[h])}return e}));e.exports=c},9324:(e,t,n)=>{var r=n(7451),o=n(6317),i=n(5812),a=o((function(e,t,n){return r(e,i(t)||0,n)}));e.exports=a},6354:(e,t,n)=>{var r=n(1377),o=n(6457),i=n(6317),a=n(7605),l=i((function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]}));e.exports=l},788:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},2645:(e,t,n)=>{var r=n(6457);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},3105:(e,t,n)=>{var r=n(2446),o=n(674);e.exports=function(e,t){return e&&r(e,o(t))}},7314:e=>{e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r}},9201:(e,t,n)=>{var r=n(4432);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},9056:(e,t,n)=>{var r=n(8347),o=n(5659),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},5066:(e,t,n)=>{var r=n(6776),o=n(3096);e.exports=function(e,t){return null!=e&&o(e,t,r)}},5346:e=>{e.exports=function(e){return e}},471:(e,t,n)=>{var r=n(1937),o=n(1093),i=n(5346),a=Object.prototype.toString,l=o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=a.call(t)),e[t]=n}),r(i));e.exports=l},5075:e=>{e.exports=function(){return!1}},163:e=>{var t=Array.isArray;e.exports=t},981:(e,t,n)=>{var r=n(9642),o=n(8454);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},7605:(e,t,n)=>{var r=n(981),o=n(3474);e.exports=function(e){return o(e)&&r(e)}},4801:e=>{e.exports=function(){return!1}},4295:(e,t,n)=>{var r=n(7537),o=n(9110),i=n(2348),a=i&&i.isDate,l=a?o(a):r;e.exports=l},4155:(e,t,n)=>{var r=n(7190),o=n(9667),i=n(5075),a=n(163),l=n(981),u=n(4801),c=n(5782),s=n(4289),f=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||s(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(f.call(e,n))return!1;return!0}},8254:(e,t,n)=>{var r=n(9070);e.exports=function(e,t){return r(e,t)}},9642:(e,t,n)=>{var r=n(563),o=n(7709);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},8454:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7709:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},3474:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3849:(e,t,n)=>{var r=n(563),o=n(9817),i=n(3474),a=Function.prototype,l=Object.prototype,u=a.toString,c=l.hasOwnProperty,s=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==s}},5395:(e,t,n)=>{var r=n(2229),o=n(9110),i=n(2348),a=i&&i.isRegExp,l=a?o(a):r;e.exports=l},5953:(e,t,n)=>{var r=n(563),o=n(163),i=n(3474);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},1995:e=>{e.exports=function(){return!1}},4289:e=>{e.exports=function(){return!1}},8999:e=>{e.exports=function(e){return void 0===e}},7747:(e,t,n)=>{var r=n(5125)(Object.keys,Object);e.exports=r},8855:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},1594:(e,t,n)=>{var r=n(503);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},6051:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},6987:(e,t,n)=>{var r=n(2373);e.exports=function(){return r.Date.now()}},1616:(e,t,n)=>{var r=n(3472),o=n(6051),i=n(4912);e.exports=function(e,t){return i(e,o(r(t)))}},4143:(e,t,n)=>{var r=n(8245),o=n(163);e.exports=function(e,t,n,i){return null==e?[]:(o(t)||(t=null==t?[]:[t]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(e,t,n))}},9082:(e,t,n)=>{var r=n(5436),o=n(5557)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},4912:(e,t,n)=>{var r=n(8644),o=n(3472),i=n(6371),a=n(7271);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},8532:(e,t,n)=>{var r=n(1600),o=n(3301),i=n(726),a=n(3110);e.exports=function(e){return i(e)?r(a(e)):o(e)}},8825:(e,t,n)=>{var r=n(2507)();e.exports=r},2829:(e,t,n)=>{var r=n(7556);e.exports=function(e){return e&&e.length?r(e):[]}},5367:(e,t,n)=>{var r=n(991),o=n(5346);e.exports=function(e){return e&&e.length?r(e,o):0}},8163:(e,t,n)=>{var r=n(5034),o=n(7709);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},9139:(e,t,n)=>{var r=n(5812);e.exports=function(e){return e?Infinity===(e=r(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},5812:(e,t,n)=>{var r=n(1367),o=n(7709),i=n(1995),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},4542:(e,t,n)=>{var r=n(5976)(n(7747));e.exports=r},7010:(e,t,n)=>{var r=n(6316);e.exports=function(e){return null==e?"":r(e)}},9602:(e,t,n)=>{var r=n(946);e.exports=function(e){return e&&e.length?r(e):[]}},8961:(e,t,n)=>{var r=n(3472),o=n(946);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},660:(e,t,n)=>{var r=n(7010),o=0;e.exports=function(e){var t=++o;return r(e)+t}},2050:(e,t,n)=>{"use strict";var r=n(9787),o=n(9031);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,l={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var s=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function y(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,g);m[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);m[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);m[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),O=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),E=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),D=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var L=Symbol.iterator;function N(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=L&&e[L]||e["@@iterator"])?e:null}var z,I=Object.assign;function R(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?R(e):""}function U(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function W(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case _:return"Fragment";case O:return"Portal";case S:return"Profiler";case k:return"StrictMode";case C:return"Suspense";case M:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case A:return null!==(t=e.displayName||null)?t:W(e.type)||"Memo";case D:t=e._payload,e=e._init;try{return W(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W(t);case 8:return t===k?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Q(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Q(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,se,fe=(se=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return se(e,t)}))}:se);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function ye(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=ye(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,_e=null,ke=null;function Se(e){if(e=bo(e)){if("function"!=typeof Oe)throw Error(i(280));var t=e.stateNode;t&&(t=wo(t),Oe(e.stateNode,e.type,t))}}function je(e){_e?ke?ke.push(e):ke=[e]:_e=e}function Ee(){if(_e){var e=_e,t=ke;if(ke=_e=null,Se(e),t)for(e=0;e<t.length;e++)Se(t[e])}}function Pe(e,t){return e(t)}function Ce(){}var Me=!1;function Ae(e,t,n){if(Me)return e(t,n);Me=!0;try{return Pe(e,t,n)}finally{Me=!1,(null!==_e||null!==ke)&&(Ce(),Ee())}}function De(e,t){var n=e.stateNode;if(null===n)return null;var r=wo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var Te=!1;if(s)try{var Le={};Object.defineProperty(Le,"passive",{get:function(){Te=!0}}),window.addEventListener("test",Le,Le),window.removeEventListener("test",Le,Le)}catch(se){Te=!1}function Ne(e,t,n,r,o,i,a,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var ze=!1,Ie=null,Re=!1,Fe=null,Be={onError:function(e){ze=!0,Ie=e}};function Ue(e,t,n,r,o,i,a,l,u){ze=!1,Ie=null,Ne.apply(Be,arguments)}function We(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if(We(e)!==e)throw Error(i(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=We(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return He(o),e;if(a===r)return He(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?$e(e):null}function $e(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=$e(e);if(null!==t)return t;e=e.sibling}return null}var Ke=o.unstable_scheduleCallback,Ge=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Qe=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2,ct=64,st=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=ft(l):0!=(i&=a)&&(r=ft(i))}else 0!=(a=n&~o)?r=ft(a):0!==i&&(r=ft(i));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!=(4194240&i)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var gt=0;function bt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var xt,wt,Ot,_t,kt,St=!1,jt=[],Et=null,Pt=null,Ct=null,Mt=new Map,At=new Map,Dt=[],Tt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":Mt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Nt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=bo(t))&&wt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=go(e.target);if(null!==t){var n=We(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void kt(e.priority,(function(){Ot(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Rt(e,t,n){It(e)&&n.delete(t)}function Ft(){St=!1,null!==Et&&It(Et)&&(Et=null),null!==Pt&&It(Pt)&&(Pt=null),null!==Ct&&It(Ct)&&(Ct=null),Mt.forEach(Rt),At.forEach(Rt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function Ut(e){function t(t){return Bt(t,e)}if(0<jt.length){Bt(jt[0],e);for(var n=1;n<jt.length;n++){var r=jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&Bt(Et,e),null!==Pt&&Bt(Pt,e),null!==Ct&&Bt(Ct,e),Mt.forEach(t),At.forEach(t),n=0;n<Dt.length;n++)(r=Dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Dt.length&&null===(n=Dt[0]).blockedOn;)zt(n),null===n.blockedOn&&Dt.shift()}var Wt=x.ReactCurrentBatchConfig,Vt=!0;function Ht(e,t,n,r){var o=gt,i=Wt.transition;Wt.transition=null;try{gt=1,$t(e,t,n,r)}finally{gt=o,Wt.transition=i}}function qt(e,t,n,r){var o=gt,i=Wt.transition;Wt.transition=null;try{gt=4,$t(e,t,n,r)}finally{gt=o,Wt.transition=i}}function $t(e,t,n,r){if(Vt){var o=Gt(e,t,n,r);if(null===o)Vr(e,t,r,Kt,n),Lt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Et=Nt(Et,e,t,n,r,o),!0;case"dragenter":return Pt=Nt(Pt,e,t,n,r,o),!0;case"mouseover":return Ct=Nt(Ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Mt.set(i,Nt(Mt.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,At.set(i,Nt(At.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Tt.indexOf(e)){for(;null!==o;){var i=bo(o);if(null!==i&&xt(i),null===(i=Gt(e,t,n,r))&&Vr(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Kt=null;function Gt(e,t,n,r){if(Kt=null,null!==(e=go(e=we(r))))if(null===(t=We(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Qt=null,Zt=null;function Jt(){if(Zt)return Zt;var e,t,n=Qt,r=n.length,o="value"in Xt?Xt.value:Xt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Zt=o.slice(e,1<t?1-t:void 0)}function en(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function tn(){return!0}function nn(){return!1}function rn(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?tn:nn,this.isPropagationStopped=nn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=tn)},persist:function(){},isPersistent:tn}),t}var on,an,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=rn(un),sn=I({},un,{view:0,detail:0}),fn=rn(sn),dn=I({},sn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,an=e.screenY-ln.screenY):an=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:an}}),pn=rn(dn),hn=rn(I({},dn,{dataTransfer:0})),yn=rn(I({},sn,{relatedTarget:0})),mn=rn(I({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=I({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gn=rn(vn),bn=rn(I({},un,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function kn(){return _n}var Sn=I({},sn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=en(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kn,charCode:function(e){return"keypress"===e.type?en(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?en(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),jn=rn(Sn),En=rn(I({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=rn(I({},sn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kn})),Cn=rn(I({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=I({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),An=rn(Mn),Dn=[9,13,27,32],Tn=s&&"CompositionEvent"in window,Ln=null;s&&"documentMode"in document&&(Ln=document.documentMode);var Nn=s&&"TextEvent"in window&&!Ln,zn=s&&(!Tn||Ln&&8<Ln&&11>=Ln),In=String.fromCharCode(32),Rn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){je(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,$n=null;function Kn(e){Ir(e,0)}function Gn(e){if(K(xo(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(s){var Qn;if(s){var Zn="oninput"in document;if(!Zn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Zn="function"==typeof Jn.oninput}Qn=Zn}else Qn=!1;Xn=Qn&&(!document.documentMode||9<document.documentMode)}function er(){qn&&(qn.detachEvent("onpropertychange",tr),$n=qn=null)}function tr(e){if("value"===e.propertyName&&Gn($n)){var t=[];Hn(t,$n,e,we(e)),Ae(Kn,t)}}function nr(e,t,n){"focusin"===e?(er(),$n=n,(qn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn($n)}function or(e,t){if("click"===e)return Gn(t)}function ir(e,t){if("input"===e||"change"===e)return Gn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!f.call(t,o)||!ar(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function sr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?sr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&sr(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=s&&"documentMode"in document&&11>=document.documentMode,yr=null,mr=null,vr=null,gr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==yr||yr!==G(r)||(r="selectionStart"in(r=yr)&&dr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},vr&&lr(vr,r)||(vr=r,0<(r=qr(mr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},Or={},_r={};function kr(e){if(Or[e])return Or[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Or[e]=n[t];return e}s&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Sr=kr("animationend"),jr=kr("animationiteration"),Er=kr("animationstart"),Pr=kr("transitionend"),Cr=new Map,Mr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ar(e,t){Cr.set(e,t),u(t,[e])}for(var Dr=0;Dr<Mr.length;Dr++){var Tr=Mr[Dr];Ar(Tr.toLowerCase(),"on"+(Tr[0].toUpperCase()+Tr.slice(1)))}Ar(Sr,"onAnimationEnd"),Ar(jr,"onAnimationIteration"),Ar(Er,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function zr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,c){if(Ue.apply(this,arguments),ze){if(!ze)throw Error(i(198));var s=Ie;ze=!1,Ie=null,Re||(Re=!0,Fe=s)}}(r,t,void 0,e),e.currentTarget=null}function Ir(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;zr(o,l,c),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,c=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;zr(o,l,c),i=u}}}if(Re)throw e=Fe,Re=!1,Fe=null,e}function Rr(e,t){var n=t[yo];void 0===n&&(n=t[yo]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function Ur(e){if(!e[Br]){e[Br]=!0,a.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Yt(t)){case 1:var o=Ht;break;case 4:o=qt;break;default:o=$t}n=o.bind(null,t,n,e),o=void 0,!Te||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=go(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}Ae((function(){var r=i,o=we(n),a=[];e:{var l=Cr.get(e);if(void 0!==l){var u=cn,c=e;switch(e){case"keypress":if(0===en(n))break e;case"keydown":case"keyup":u=jn;break;case"focusin":c="focus",u=yn;break;case"focusout":c="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pn;break;case Sr:case jr:case Er:u=mn;break;case Pr:u=Cn;break;case"scroll":u=fn;break;case"wheel":u=An;break;case"copy":case"cut":case"paste":u=gn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=En}var s=0!=(4&t),f=!s&&"scroll"===e,d=s?null!==l?l+"Capture":null:l;s=[];for(var p,h=r;null!==h;){var y=(p=h).stateNode;if(5===p.tag&&null!==y&&(p=y,null!==d&&null!=(y=De(h,d))&&s.push(Hr(h,y,p))),f)break;h=h.return}0<s.length&&(l=new u(l,c,null,n,o),a.push({event:l,listeners:s}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===xe||!(c=n.relatedTarget||n.fromElement)||!go(c)&&!c[ho])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?go(c):null)&&(c!==(f=We(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(s=pn,y="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(s=En,y="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:xo(u),p=null==c?l:xo(c),(l=new s(y,h+"leave",u,n,o)).target=f,l.relatedTarget=p,y=null,go(o)===r&&((s=new s(d,h+"enter",c,n,o)).target=p,s.relatedTarget=f,y=s),f=y,u&&c)e:{for(d=c,h=0,p=s=u;p;p=$r(p))h++;for(p=0,y=d;y;y=$r(y))p++;for(;0<h-p;)s=$r(s),h--;for(;0<p-h;)d=$r(d),p--;for(;h--;){if(s===d||null!==d&&s===d.alternate)break e;s=$r(s),d=$r(d)}s=null}else s=null;null!==u&&Kr(a,l,u,s,!1),null!==c&&null!==f&&Kr(a,f,c,s,!0)}if("select"===(u=(l=r?xo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var m=Yn;else if(Vn(l))if(Xn)m=ir;else{m=rr;var v=nr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=or);switch(m&&(m=m(e,r))?Hn(a,m,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&ee(l,"number",l.value)),v=r?xo(r):window,e){case"focusin":(Vn(v)||"true"===v.contentEditable)&&(yr=v,mr=r,vr=null);break;case"focusout":vr=mr=yr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,br(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":br(a,n,o)}var g;if(Tn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(zn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(g=Jt()):(Qt="value"in(Xt=o)?Xt.value:Xt.textContent,Un=!0)),0<(v=qr(r,b)).length&&(b=new bn(b,e,null,n,o),a.push({event:b,listeners:v}),(g||null!==(g=Bn(n)))&&(b.data=g))),(g=Nn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Rn=!0,In);case"textInput":return(e=t.data)===In&&Rn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Tn&&Fn(e,t)?(e=Jt(),Zt=Qt=Xt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return zn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new bn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=g)}Ir(a,t)}))}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=De(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=De(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(u=De(n,i))&&a.unshift(Hr(n,u,l)):o||null!=(u=De(n,i))&&a.push(Hr(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Yr,"")}function Qr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(i(425))}function Zr(){}var Jr=null,eo=null;function to(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var no="function"==typeof setTimeout?setTimeout:void 0,ro="function"==typeof clearTimeout?clearTimeout:void 0,oo="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==oo?function(e){return oo.resolve(null).then(e).catch(ao)}:no;function ao(e){setTimeout((function(){throw e}))}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Ut(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Ut(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var so=Math.random().toString(36).slice(2),fo="__reactFiber$"+so,po="__reactProps$"+so,ho="__reactContainer$"+so,yo="__reactEvents$"+so,mo="__reactListeners$"+so,vo="__reactHandles$"+so;function go(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ho]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[fo])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function bo(e){return!(e=e[fo]||e[ho])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function xo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function wo(e){return e[po]||null}var Oo=[],_o=-1;function ko(e){return{current:e}}function So(e){0>_o||(e.current=Oo[_o],Oo[_o]=null,_o--)}function jo(e,t){_o++,Oo[_o]=e.current,e.current=t}var Eo={},Po=ko(Eo),Co=ko(!1),Mo=Eo;function Ao(e,t){var n=e.type.contextTypes;if(!n)return Eo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Do(e){return null!=e.childContextTypes}function To(){So(Co),So(Po)}function Lo(e,t,n){if(Po.current!==Eo)throw Error(i(168));jo(Po,t),jo(Co,n)}function No(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,V(e)||"Unknown",o));return I({},n,r)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Eo,Mo=Po.current,jo(Po,e),jo(Co,Co.current),!0}function Io(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=No(e,t,Mo),r.__reactInternalMemoizedMergedChildContext=e,So(Co),So(Po),jo(Po,e)):So(Co),jo(Co,n)}var Ro=null,Fo=!1,Bo=!1;function Uo(e){null===Ro?Ro=[e]:Ro.push(e)}function Wo(){if(!Bo&&null!==Ro){Bo=!0;var e=0,t=gt;try{var n=Ro;for(gt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ro=null,Fo=!1}catch(t){throw null!==Ro&&(Ro=Ro.slice(e+1)),Ke(Je,Wo),t}finally{gt=t,Bo=!1}}return null}var Vo=[],Ho=0,qo=null,$o=0,Ko=[],Go=0,Yo=null,Xo=1,Qo="";function Zo(e,t){Vo[Ho++]=$o,Vo[Ho++]=qo,qo=e,$o=t}function Jo(e,t,n){Ko[Go++]=Xo,Ko[Go++]=Qo,Ko[Go++]=Yo,Yo=e;var r=Xo;e=Qo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Xo=1<<32-at(t)+o|n<<o|r,Qo=i+e}else Xo=1<<i|n<<o|r,Qo=e}function ei(e){null!==e.return&&(Zo(e,1),Jo(e,1,0))}function ti(e){for(;e===qo;)qo=Vo[--Ho],Vo[Ho]=null,$o=Vo[--Ho],Vo[Ho]=null;for(;e===Yo;)Yo=Ko[--Go],Ko[Go]=null,Qo=Ko[--Go],Ko[Go]=null,Xo=Ko[--Go],Ko[Go]=null}var ni=null,ri=null,oi=!1,ii=null;function ai(e,t){var n=Mc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,ri=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Yo?{id:Xo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Mc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,ri=null,!0);default:return!1}}function ui(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ci(e){if(oi){var t=ri;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ni;t&&li(e,t)?ai(r,n):(e.flags=-4097&e.flags|2,oi=!1,ni=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,oi=!1,ni=e}}}function si(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function fi(e){if(e!==ni)return!1;if(!oi)return si(e),oi=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!to(e.type,e.memoizedProps)),t&&(t=ri)){if(ui(e))throw di(),Error(i(418));for(;t;)ai(e,t),t=uo(t.nextSibling)}if(si(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=ni?uo(e.stateNode.nextSibling):null;return!0}function di(){for(var e=ri;e;)e=uo(e.nextSibling)}function pi(){ri=ni=null,oi=!1}function hi(e){null===ii?ii=[e]:ii.push(e)}var yi=x.ReactCurrentBatchConfig;function mi(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var vi=ko(null),gi=null,bi=null,xi=null;function wi(){xi=bi=gi=null}function Oi(e){var t=vi.current;So(vi),e._currentValue=t}function _i(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ki(e,t){gi=e,xi=bi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(bl=!0),e.firstContext=null)}function Si(e){var t=e._currentValue;if(xi!==e)if(e={context:e,memoizedValue:t,next:null},null===bi){if(null===gi)throw Error(i(308));bi=e,gi.dependencies={lanes:0,firstContext:e}}else bi=bi.next=e;return t}var ji=null;function Ei(e){null===ji?ji=[e]:ji.push(e)}function Pi(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ei(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ci(e,r)}function Ci(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Mi=!1;function Ai(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Di(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ti(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Li(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Eu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ci(e,n)}return null===(o=r.interleaved)?(t.next=t,Ei(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ci(e,n)}function Ni(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}function zi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ii(e,t,n,r){var o=e.updateQueue;Mi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,c=u.next;u.next=null,null===a?i=c:a.next=c,a=u;var s=e.alternate;null!==s&&(l=(s=s.updateQueue).lastBaseUpdate)!==a&&(null===l?s.firstBaseUpdate=c:l.next=c,s.lastBaseUpdate=u)}if(null!==i){var f=o.baseState;for(a=0,s=c=u=null,l=i;;){var d=l.lane,p=l.eventTime;if((r&d)===d){null!==s&&(s=s.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,y=l;switch(d=t,p=n,y.tag){case 1:if("function"==typeof(h=y.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=y.payload)?h.call(p,f,d):h))break e;f=I({},f,d);break e;case 2:Mi=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===s?(c=s=p,u=f):s=s.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===s&&(u=f),o.baseState=u,o.firstBaseUpdate=c,o.lastBaseUpdate=s,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Nu|=a,e.lanes=a,e.memoizedState=f}}function Ri(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Fi=(new r.Component).refs;function Bi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ui={isMounted:function(e){return!!(e=e._reactInternals)&&We(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ju(),o=ec(e),i=Ti(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(tc(t,e,o,r),Ni(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ju(),o=ec(e),i=Ti(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=Li(e,i,o))&&(tc(t,e,o,r),Ni(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ju(),r=ec(e),o=Ti(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Li(e,o,r))&&(tc(t,e,r,n),Ni(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Vi(e,t,n){var r=!1,o=Eo,i=t.contextType;return"object"==typeof i&&null!==i?i=Si(i):(o=Do(t)?Mo:Po.current,i=(r=null!=(r=t.contextTypes))?Ao(e,o):Eo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ui,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ui.enqueueReplaceState(t,t.state,null)}function qi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Fi,Ai(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Si(i):(i=Do(t)?Mo:Po.current,o.context=Ao(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Bi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ui.enqueueReplaceState(o,o.state,null),Ii(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function $i(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Fi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gi(e){return(0,e._init)(e._payload)}function Yi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Dc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=zc(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===_?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===D&&Gi(i)===t.type)?((r=o(t,n.props)).ref=$i(e,t,n),r.return=e,r):((r=Tc(n.type,n.key,n.props,null,e.mode,r)).ref=$i(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ic(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=zc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Tc(t.type,t.key,t.props,null,e.mode,n)).ref=$i(e,null,t),n.return=e,n;case O:return(t=Ic(t,e.mode,n)).return=e,t;case D:return d(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Lc(t,e.mode,n,null)).return=e,t;Ki(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?c(e,t,n,r):null;case O:return n.key===o?s(e,t,n,r):null;case D:return p(e,t,(o=n._init)(n._payload),r)}if(te(n)||N(n))return null!==o?null:f(e,t,n,r,null);Ki(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case O:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case D:return h(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||N(r))return f(t,e=e.get(n)||null,r,o,null);Ki(t,r)}return null}function y(o,i,l,u){for(var c=null,s=null,f=i,y=i=0,m=null;null!==f&&y<l.length;y++){f.index>y?(m=f,f=null):m=f.sibling;var v=p(o,f,l[y],u);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(o,f),i=a(v,i,y),null===s?c=v:s.sibling=v,s=v,f=m}if(y===l.length)return n(o,f),oi&&Zo(o,y),c;if(null===f){for(;y<l.length;y++)null!==(f=d(o,l[y],u))&&(i=a(f,i,y),null===s?c=f:s.sibling=f,s=f);return oi&&Zo(o,y),c}for(f=r(o,f);y<l.length;y++)null!==(m=h(f,o,y,l[y],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?y:m.key),i=a(m,i,y),null===s?c=m:s.sibling=m,s=m);return e&&f.forEach((function(e){return t(o,e)})),oi&&Zo(o,y),c}function m(o,l,u,c){var s=N(u);if("function"!=typeof s)throw Error(i(150));if(null==(u=s.call(u)))throw Error(i(151));for(var f=s=null,y=l,m=l=0,v=null,g=u.next();null!==y&&!g.done;m++,g=u.next()){y.index>m?(v=y,y=null):v=y.sibling;var b=p(o,y,g.value,c);if(null===b){null===y&&(y=v);break}e&&y&&null===b.alternate&&t(o,y),l=a(b,l,m),null===f?s=b:f.sibling=b,f=b,y=v}if(g.done)return n(o,y),oi&&Zo(o,m),s;if(null===y){for(;!g.done;m++,g=u.next())null!==(g=d(o,g.value,c))&&(l=a(g,l,m),null===f?s=g:f.sibling=g,f=g);return oi&&Zo(o,m),s}for(y=r(o,y);!g.done;m++,g=u.next())null!==(g=h(y,o,m,g.value,c))&&(e&&null!==g.alternate&&y.delete(null===g.key?m:g.key),l=a(g,l,m),null===f?s=g:f.sibling=g,f=g);return e&&y.forEach((function(e){return t(o,e)})),oi&&Zo(o,m),s}return function e(r,i,a,u){if("object"==typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var c=a.key,s=i;null!==s;){if(s.key===c){if((c=a.type)===_){if(7===s.tag){n(r,s.sibling),(i=o(s,a.props.children)).return=r,r=i;break e}}else if(s.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===D&&Gi(c)===s.type){n(r,s.sibling),(i=o(s,a.props)).ref=$i(r,s,a),i.return=r,r=i;break e}n(r,s);break}t(r,s),s=s.sibling}a.type===_?((i=Lc(a.props.children,r.mode,u,a.key)).return=r,r=i):((u=Tc(a.type,a.key,a.props,null,r.mode,u)).ref=$i(r,i,a),u.return=r,r=u)}return l(r);case O:e:{for(s=a.key;null!==i;){if(i.key===s){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Ic(a,r.mode,u)).return=r,r=i}return l(r);case D:return e(r,i,(s=a._init)(a._payload),u)}if(te(a))return y(r,i,a,u);if(N(a))return m(r,i,a,u);Ki(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=zc(a,r.mode,u)).return=r,r=i),l(r)):n(r,i)}}var Xi=Yi(!0),Qi=Yi(!1),Zi={},Ji=ko(Zi),ea=ko(Zi),ta=ko(Zi);function na(e){if(e===Zi)throw Error(i(174));return e}function ra(e,t){switch(jo(ta,t),jo(ea,e),jo(Ji,Zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}So(Ji),jo(Ji,t)}function oa(){So(Ji),So(ea),So(ta)}function ia(e){na(ta.current);var t=na(Ji.current),n=ue(t,e.type);t!==n&&(jo(ea,e),jo(Ji,n))}function aa(e){ea.current===e&&(So(Ji),So(ea))}var la=ko(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function sa(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=x.ReactCurrentDispatcher,da=x.ReactCurrentBatchConfig,pa=0,ha=null,ya=null,ma=null,va=!1,ga=!1,ba=0,xa=0;function wa(){throw Error(i(321))}function Oa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function _a(e,t,n,r,o,a){if(pa=a,ha=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?al:ll,e=n(r,o),ga){a=0;do{if(ga=!1,ba=0,25<=a)throw Error(i(301));a+=1,ma=ya=null,t.updateQueue=null,fa.current=ul,e=n(r,o)}while(ga)}if(fa.current=il,t=null!==ya&&null!==ya.next,pa=0,ma=ya=ha=null,va=!1,t)throw Error(i(300));return e}function ka(){var e=0!==ba;return ba=0,e}function Sa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ma?ha.memoizedState=ma=e:ma=ma.next=e,ma}function ja(){if(null===ya){var e=ha.alternate;e=null!==e?e.memoizedState:null}else e=ya.next;var t=null===ma?ha.memoizedState:ma.next;if(null!==t)ma=t,ya=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ya=e).memoizedState,baseState:ya.baseState,baseQueue:ya.baseQueue,queue:ya.queue,next:null},null===ma?ha.memoizedState=ma=e:ma=ma.next=e}return ma}function Ea(e,t){return"function"==typeof t?t(e):t}function Pa(e){var t=ja(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ya,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var u=l=null,c=null,s=a;do{var f=s.lane;if((pa&f)===f)null!==c&&(c=c.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var d={lane:f,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};null===c?(u=c=d,l=r):c=c.next=d,ha.lanes|=f,Nu|=f}s=s.next}while(null!==s&&s!==a);null===c?l=r:c.next=u,ar(r,t.memoizedState)||(bl=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ha.lanes|=a,Nu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ca(e){var t=ja(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);ar(a,t.memoizedState)||(bl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Ma(){}function Aa(e,t){var n=ha,r=ja(),o=t(),a=!ar(r.memoizedState,o);if(a&&(r.memoizedState=o,bl=!0),r=r.queue,Va(La.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ma&&1&ma.memoizedState.tag){if(n.flags|=2048,Ra(9,Ta.bind(null,n,r,o,t),void 0,null),null===Pu)throw Error(i(349));0!=(30&pa)||Da(n,t,o)}return o}function Da(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ta(e,t,n,r){t.value=n,t.getSnapshot=r,Na(t)&&za(e)}function La(e,t,n){return n((function(){Na(t)&&za(e)}))}function Na(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(e){return!0}}function za(e){var t=Ci(e,1);null!==t&&tc(t,e,1,-1)}function Ia(e){var t=Sa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:e},t.queue=e,e=e.dispatch=tl.bind(null,ha,e),[t.memoizedState,e]}function Ra(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ha.updateQueue)?(t={lastEffect:null,stores:null},ha.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fa(){return ja().memoizedState}function Ba(e,t,n,r){var o=Sa();ha.flags|=e,o.memoizedState=Ra(1|t,n,void 0,void 0===r?null:r)}function Ua(e,t,n,r){var o=ja();r=void 0===r?null:r;var i=void 0;if(null!==ya){var a=ya.memoizedState;if(i=a.destroy,null!==r&&Oa(r,a.deps))return void(o.memoizedState=Ra(t,n,i,r))}ha.flags|=e,o.memoizedState=Ra(1|t,n,i,r)}function Wa(e,t){return Ba(8390656,8,e,t)}function Va(e,t){return Ua(2048,8,e,t)}function Ha(e,t){return Ua(4,2,e,t)}function qa(e,t){return Ua(4,4,e,t)}function $a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ka(e,t,n){return n=null!=n?n.concat([e]):null,Ua(4,4,$a.bind(null,t,e),n)}function Ga(){}function Ya(e,t){var n=ja();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Oa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xa(e,t){var n=ja();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Oa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qa(e,t,n){return 0==(21&pa)?(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=n):(ar(n,t)||(n=yt(),ha.lanes|=n,Nu|=n,e.baseState=!0),t)}function Za(e,t){var n=gt;gt=0!==n&&4>n?n:4,e(!0);var r=da.transition;da.transition={};try{e(!1),t()}finally{gt=n,da.transition=r}}function Ja(){return ja().memoizedState}function el(e,t,n){var r=ec(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},nl(e)?rl(t,n):null!==(n=Pi(e,t,n,r))&&(tc(n,e,r,Ju()),ol(n,t,r))}function tl(e,t,n){var r=ec(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(nl(e))rl(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ar(l,a)){var u=t.interleaved;return null===u?(o.next=o,Ei(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Pi(e,t,o,r))&&(tc(n,e,r,o=Ju()),ol(n,t,r))}}function nl(e){var t=e.alternate;return e===ha||null!==t&&t===ha}function rl(e,t){ga=va=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ol(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var il={readContext:Si,useCallback:wa,useContext:wa,useEffect:wa,useImperativeHandle:wa,useInsertionEffect:wa,useLayoutEffect:wa,useMemo:wa,useReducer:wa,useRef:wa,useState:wa,useDebugValue:wa,useDeferredValue:wa,useTransition:wa,useMutableSource:wa,useSyncExternalStore:wa,useId:wa,unstable_isNewReconciler:!1},al={readContext:Si,useCallback:function(e,t){return Sa().memoizedState=[e,void 0===t?null:t],e},useContext:Si,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ba(4194308,4,$a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ba(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ba(4,2,e,t)},useMemo:function(e,t){var n=Sa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Sa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=el.bind(null,ha,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sa().memoizedState=e},useState:Ia,useDebugValue:Ga,useDeferredValue:function(e){return Sa().memoizedState=e},useTransition:function(){var e=Ia(!1),t=e[0];return e=Za.bind(null,e[1]),Sa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ha,o=Sa();if(oi){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Pu)throw Error(i(349));0!=(30&pa)||Da(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Wa(La.bind(null,r,a,e),[e]),r.flags|=2048,Ra(9,Ta.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Sa(),t=Pu.identifierPrefix;if(oi){var n=Qo;t=":"+t+"R"+(n=(Xo&~(1<<32-at(Xo)-1)).toString(32)+n),0<(n=ba++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ll={readContext:Si,useCallback:Ya,useContext:Si,useEffect:Va,useImperativeHandle:Ka,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Xa,useReducer:Pa,useRef:Fa,useState:function(){return Pa(Ea)},useDebugValue:Ga,useDeferredValue:function(e){return Qa(ja(),ya.memoizedState,e)},useTransition:function(){return[Pa(Ea)[0],ja().memoizedState]},useMutableSource:Ma,useSyncExternalStore:Aa,useId:Ja,unstable_isNewReconciler:!1},ul={readContext:Si,useCallback:Ya,useContext:Si,useEffect:Va,useImperativeHandle:Ka,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Xa,useReducer:Ca,useRef:Fa,useState:function(){return Ca(Ea)},useDebugValue:Ga,useDeferredValue:function(e){var t=ja();return null===ya?t.memoizedState=e:Qa(t,ya.memoizedState,e)},useTransition:function(){return[Ca(Ea)[0],ja().memoizedState]},useMutableSource:Ma,useSyncExternalStore:Aa,useId:Ja,unstable_isNewReconciler:!1};function cl(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function sl(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var dl="function"==typeof WeakMap?WeakMap:Map;function pl(e,t,n){(n=Ti(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,Hu=r),fl(0,t)},n}function hl(e,t,n){(n=Ti(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fl(0,t),"function"!=typeof r&&(null===qu?qu=new Set([this]):qu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function yl(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new dl;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=kc.bind(null,e,t,n),t.then(e,e))}function ml(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vl(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ti(-1,1)).tag=2,Li(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var gl=x.ReactCurrentOwner,bl=!1;function xl(e,t,n,r){t.child=null===e?Qi(t,null,n,r):Xi(t,e.child,n,r)}function wl(e,t,n,r,o){n=n.render;var i=t.ref;return ki(t,o),r=_a(e,t,n,r,i,o),n=ka(),null===e||bl?(oi&&n&&ei(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function Ol(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Ac(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_l(e,t,i,r,o))}if(i=e.child,0==(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Vl(e,t,o)}return t.flags|=1,(e=Dc(i,r)).ref=t.ref,e.return=t,t.child=e}function _l(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(bl=!1,t.pendingProps=r=i,0==(e.lanes&o))return t.lanes=e.lanes,Vl(e,t,o);0!=(131072&e.flags)&&(bl=!0)}}return jl(e,t,n,r,o)}function kl(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},jo(Du,Au),Au|=n;else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,jo(Du,Au),Au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,jo(Du,Au),Au|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,jo(Du,Au),Au|=r;return xl(e,t,o,n),t.child}function Sl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function jl(e,t,n,r,o){var i=Do(n)?Mo:Po.current;return i=Ao(t,i),ki(t,o),n=_a(e,t,n,r,i,o),r=ka(),null===e||bl?(oi&&r&&ei(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Vl(e,t,o))}function El(e,t,n,r,o){if(Do(n)){var i=!0;zo(t)}else i=!1;if(ki(t,o),null===t.stateNode)Wl(e,t),Vi(t,n,r),qi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,c=n.contextType;c="object"==typeof c&&null!==c?Si(c):Ao(t,c=Do(n)?Mo:Po.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==c)&&Hi(t,a,r,c),Mi=!1;var d=t.memoizedState;a.state=d,Ii(t,r,a,o),u=t.memoizedState,l!==r||d!==u||Co.current||Mi?("function"==typeof s&&(Bi(t,n,s,r),u=t.memoizedState),(l=Mi||Wi(t,n,l,r,d,u,c))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Di(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:mi(t.type,l),a.props=c,f=t.pendingProps,d=a.context,u="object"==typeof(u=n.contextType)&&null!==u?Si(u):Ao(t,u=Do(n)?Mo:Po.current);var p=n.getDerivedStateFromProps;(s="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&Hi(t,a,r,u),Mi=!1,d=t.memoizedState,a.state=d,Ii(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||Co.current||Mi?("function"==typeof p&&(Bi(t,n,p,r),h=t.memoizedState),(c=Mi||Wi(t,n,c,r,d,h,u)||!1)?(s||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=c):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Pl(e,t,n,r,i,o)}function Pl(e,t,n,r,o,i){Sl(e,t);var a=0!=(128&t.flags);if(!r&&!a)return o&&Io(t,n,!1),Vl(e,t,i);r=t.stateNode,gl.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Xi(t,e.child,null,i),t.child=Xi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=r.state,o&&Io(t,n,!0),t.child}function Cl(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),ra(e,t.containerInfo)}function Ml(e,t,n,r,o){return pi(),hi(o),t.flags|=256,xl(e,t,n,r),t.child}var Al,Dl,Tl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Nl(e){return{baseLanes:e,cachePool:null,transitions:null}}function zl(e,t,n){var r,o=t.pendingProps,a=la.current,l=!1,u=0!=(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),jo(la,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0==(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Nc(u,o,0,null),e=Lc(e,o,n,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Nl(n),t.memoizedState=Ll,e):Il(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,l){if(n)return 256&t.flags?(t.flags&=-257,Rl(e,t,l,r=sl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Nc({mode:"visible",children:r.children},o,0,null),(a=Lc(a,o,l,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Xi(t,e.child,null,l),t.child.memoizedState=Nl(l),t.memoizedState=Ll,a);if(0==(1&t.mode))return Rl(e,t,l,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var u=r.dgst;return r=u,Rl(e,t,l,r=sl(a=Error(i(419)),r,void 0))}if(u=0!=(l&e.childLanes),bl||u){if(null!==(r=Pu)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ci(e,o),tc(r,e,o,-1))}return hc(),Rl(e,t,l,r=sl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=jc.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,ri=uo(o.nextSibling),ni=t,oi=!0,ii=null,null!==e&&(Ko[Go++]=Xo,Ko[Go++]=Qo,Ko[Go++]=Yo,Xo=e.id,Qo=e.overflow,Yo=t),(t=Il(t,r.children)).flags|=4096,t)}(e,t,u,o,r,a,n);if(l){l=o.fallback,u=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:o.children};return 0==(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=c,t.deletions=null):(o=Dc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?l=Dc(r,l):(l=Lc(l,u,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Nl(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~n,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=Dc(l,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Il(e,t){return(t=Nc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Rl(e,t,n,r){return null!==r&&hi(r),Xi(t,e.child,null,n),(e=Il(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function Bl(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Ul(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=la.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Fl(e,n,t);else if(19===e.tag)Fl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(jo(la,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Bl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Bl(t,!0,n,null,i);break;case"together":Bl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Dc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Dc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Hl(e,t){if(!oi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ql(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function $l(e,t,n){var r=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ql(t),null;case 1:case 17:return Do(t.type)&&To(),ql(t),null;case 3:return r=t.stateNode,oa(),So(Co),So(Po),sa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ii&&(ic(ii),ii=null))),ql(t),null;case 5:aa(t);var o=na(ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Dl(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return ql(t),null}if(e=na(Ji.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[fo]=t,r[po]=a,e=0!=(1&t.mode),n){case"dialog":Rr("cancel",r),Rr("close",r);break;case"iframe":case"object":case"embed":Rr("load",r);break;case"video":case"audio":for(o=0;o<Lr.length;o++)Rr(Lr[o],r);break;case"source":Rr("error",r);break;case"img":case"image":case"link":Rr("error",r),Rr("load",r);break;case"details":Rr("toggle",r);break;case"input":X(r,a),Rr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Rr("invalid",r);break;case"textarea":oe(r,a),Rr("invalid",r)}for(var u in ge(n,a),o=null,a)if(a.hasOwnProperty(u)){var c=a[u];"children"===u?"string"==typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),o=["children",c]):"number"==typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&Qr(r.textContent,c,e),o=["children",""+c]):l.hasOwnProperty(u)&&null!=c&&"onScroll"===u&&Rr("scroll",r)}switch(n){case"input":$(r),J(r,a,!0);break;case"textarea":$(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Zr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[fo]=t,e[po]=r,Al(e,t),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Rr("cancel",e),Rr("close",e),o=r;break;case"iframe":case"object":case"embed":Rr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Lr.length;o++)Rr(Lr[o],e);o=r;break;case"source":Rr("error",e),o=r;break;case"img":case"image":case"link":Rr("error",e),Rr("load",e),o=r;break;case"details":Rr("toggle",e),o=r;break;case"input":X(e,r),o=Y(e,r),Rr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=I({},r,{value:void 0}),Rr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Rr("invalid",e)}for(a in ge(n,o),c=o)if(c.hasOwnProperty(a)){var s=c[a];"style"===a?me(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&fe(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&de(e,s):"number"==typeof s&&de(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=s&&"onScroll"===a&&Rr("scroll",e):null!=s&&b(e,a,s,u))}switch(n){case"input":$(e),J(e,r,!1);break;case"textarea":$(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return ql(t),null;case 6:if(e&&null!=t.stateNode)Tl(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=na(ta.current),na(Ji.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[fo]=t,(a=r.nodeValue!==n)&&null!==(e=ni))switch(e.tag){case 3:Qr(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[fo]=t,t.stateNode=r}return ql(t),null;case 13:if(So(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(oi&&null!==ri&&0!=(1&t.mode)&&0==(128&t.flags))di(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[fo]=t}else pi(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;ql(t),a=!1}else null!==ii&&(ic(ii),ii=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&la.current)?0===Tu&&(Tu=3):hc())),null!==t.updateQueue&&(t.flags|=4),ql(t),null);case 4:return oa(),null===e&&Ur(t.stateNode.containerInfo),ql(t),null;case 10:return Oi(t.type._context),ql(t),null;case 19:if(So(la),null===(a=t.memoizedState))return ql(t),null;if(r=0!=(128&t.flags),null===(u=a.rendering))if(r)Hl(a,!1);else{if(0!==Tu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ua(e))){for(t.flags|=128,Hl(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return jo(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Qe()>Uu&&(t.flags|=128,r=!0,Hl(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Hl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!oi)return ql(t),null}else 2*Qe()-a.renderingStartTime>Uu&&1073741824!==n&&(t.flags|=128,r=!0,Hl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Qe(),t.sibling=null,n=la.current,jo(la,r?1&n|2:1&n),t):(ql(t),null);case 22:case 23:return sc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Au)&&(ql(t),6&t.subtreeFlags&&(t.flags|=8192)):ql(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Kl(e,t){switch(ti(t),t.tag){case 1:return Do(t.type)&&To(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),So(Co),So(Po),sa(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return aa(t),null;case 13:if(So(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return So(la),null;case 4:return oa(),null;case 10:return Oi(t.type._context),null;case 22:case 23:return sc(),null;default:return null}}Al=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Dl=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,na(Ji.current);var i,a=null;switch(n){case"input":o=Y(e,o),r=Y(e,r),a=[];break;case"select":o=I({},o,{value:void 0}),r=I({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Zr)}for(s in ge(n,r),n=null,o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&null!=o[s])if("style"===s){var u=o[s];for(i in u)u.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?a||(a=[]):(a=a||[]).push(s,null));for(s in r){var c=r[s];if(u=null!=o?o[s]:void 0,r.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(i in u)!u.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&u[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(a||(a=[]),a.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(s,c)):"children"===s?"string"!=typeof c&&"number"!=typeof c||(a=a||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(l.hasOwnProperty(s)?(null!=c&&"onScroll"===s&&Rr("scroll",e),a||u===c||(a=[])):(a=a||[]).push(s,c))}n&&(a=a||[]).push("style",n);var s=a;(t.updateQueue=s)&&(t.flags|=4)}},Tl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Gl=!1,Yl=!1,Xl="function"==typeof WeakSet?WeakSet:Set,Ql=null;function Zl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){_c(e,t,n)}else n.current=null}function Jl(e,t,n){try{n()}catch(n){_c(e,t,n)}}var eu=!1;function tu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&Jl(t,n,i)}o=o.next}while(o!==r)}}function nu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ru(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[fo],delete t[po],delete t[yo],delete t[mo],delete t[vo]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function iu(e){return 5===e.tag||3===e.tag||4===e.tag}function au(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||iu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Zr));else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}function uu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}var cu=null,su=!1;function fu(e,t,n){for(n=n.child;null!==n;)du(e,t,n),n=n.sibling}function du(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Yl||Zl(n,t);case 6:var r=cu,o=su;cu=null,fu(e,t,n),su=o,null!==(cu=r)&&(su?(e=cu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cu.removeChild(n.stateNode));break;case 18:null!==cu&&(su?(e=cu,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Ut(e)):lo(cu,n.stateNode));break;case 4:r=cu,o=su,cu=n.stateNode.containerInfo,su=!0,fu(e,t,n),cu=r,su=o;break;case 0:case 11:case 14:case 15:if(!Yl&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!=(2&i)||0!=(4&i))&&Jl(n,t,a),o=o.next}while(o!==r)}fu(e,t,n);break;case 1:if(!Yl&&(Zl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){_c(n,t,e)}fu(e,t,n);break;case 21:fu(e,t,n);break;case 22:1&n.mode?(Yl=(r=Yl)||null!==n.memoizedState,fu(e,t,n),Yl=r):fu(e,t,n);break;default:fu(e,t,n)}}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xl),t.forEach((function(t){var r=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,su=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,su=!0;break e}u=u.return}if(null===cu)throw Error(i(160));du(a,l,o),cu=null,su=!1;var c=o.alternate;null!==c&&(c.return=null),o.return=null}catch(e){_c(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)yu(t,e),t=t.sibling}function yu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hu(t,e),mu(e),4&r){try{tu(3,e,e.return),nu(3,e)}catch(t){_c(e,e.return,t)}try{tu(5,e,e.return)}catch(t){_c(e,e.return,t)}}break;case 1:hu(t,e),mu(e),512&r&&null!==n&&Zl(n,n.return);break;case 5:if(hu(t,e),mu(e),512&r&&null!==n&&Zl(n,n.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(t){_c(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==n?n.memoizedProps:a,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===u&&"radio"===a.type&&null!=a.name&&Q(o,a),be(u,l);var s=be(u,a);for(l=0;l<c.length;l+=2){var f=c[l],d=c[l+1];"style"===f?me(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,s)}switch(u){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(t){_c(e,e.return,t)}}break;case 6:if(hu(t,e),mu(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){_c(e,e.return,t)}}break;case 3:if(hu(t,e),mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(t){_c(e,e.return,t)}break;case 4:default:hu(t,e),mu(e);break;case 13:hu(t,e),mu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Bu=Qe())),4&r&&pu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Yl=(s=Yl)||f,hu(t,e),Yl=s):hu(t,e),mu(e),8192&r){if(s=null!==e.memoizedState,(e.stateNode.isHidden=s)&&!f&&0!=(1&e.mode))for(Ql=e,f=e.child;null!==f;){for(d=Ql=f;null!==Ql;){switch(h=(p=Ql).child,p.tag){case 0:case 11:case 14:case 15:tu(4,p,p.return);break;case 1:Zl(p,p.return);var y=p.stateNode;if("function"==typeof y.componentWillUnmount){r=p,n=p.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(e){_c(r,n,e)}}break;case 5:Zl(p,p.return);break;case 22:if(null!==p.memoizedState){xu(d);continue}}null!==h?(h.return=p,Ql=h):xu(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,s?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,l=null!=(c=d.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,u.style.display=ye("display",l))}catch(t){_c(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=s?"":d.memoizedProps}catch(t){_c(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:hu(t,e),mu(e),4&r&&pu(e);case 21:}}function mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(iu(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(de(o,""),r.flags&=-33),uu(e,au(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;lu(e,au(e),a);break;default:throw Error(i(161))}}catch(t){_c(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vu(e,t,n){Ql=e,gu(e,t,n)}function gu(e,t,n){for(var r=0!=(1&e.mode);null!==Ql;){var o=Ql,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Gl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Yl;l=Gl;var c=Yl;if(Gl=a,(Yl=u)&&!c)for(Ql=o;null!==Ql;)u=(a=Ql).child,22===a.tag&&null!==a.memoizedState?wu(o):null!==u?(u.return=a,Ql=u):wu(o);for(;null!==i;)Ql=i,gu(i,t,n),i=i.sibling;Ql=o,Gl=l,Yl=c}bu(e)}else 0!=(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ql=i):bu(e)}}function bu(e){for(;null!==Ql;){var t=Ql;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Yl||nu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Yl)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:mi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Ri(t,a,r);break;case 3:var l=t.updateQueue;if(null!==l){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Ri(t,l,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var s=t.alternate;if(null!==s){var f=s.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ut(d)}}}break;default:throw Error(i(163))}Yl||512&t.flags&&ru(t)}catch(e){_c(t,t.return,e)}}if(t===e){Ql=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ql=n;break}Ql=t.return}}function xu(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ql=n;break}Ql=t.return}}function wu(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nu(4,t)}catch(e){_c(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){_c(t,o,e)}}var i=t.return;try{ru(t)}catch(e){_c(t,i,e)}break;case 5:var a=t.return;try{ru(t)}catch(e){_c(t,a,e)}}}catch(e){_c(t,t.return,e)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var Ou,_u=Math.ceil,ku=x.ReactCurrentDispatcher,Su=x.ReactCurrentOwner,ju=x.ReactCurrentBatchConfig,Eu=0,Pu=null,Cu=null,Mu=0,Au=0,Du=ko(0),Tu=0,Lu=null,Nu=0,zu=0,Iu=0,Ru=null,Fu=null,Bu=0,Uu=1/0,Wu=null,Vu=!1,Hu=null,qu=null,$u=!1,Ku=null,Gu=0,Yu=0,Xu=null,Qu=-1,Zu=0;function Ju(){return 0!=(6&Eu)?Qe():-1!==Qu?Qu:Qu=Qe()}function ec(e){return 0==(1&e.mode)?1:0!=(2&Eu)&&0!==Mu?Mu&-Mu:null!==yi.transition?(0===Zu&&(Zu=yt()),Zu):0!==(e=gt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function tc(e,t,n,r){if(50<Yu)throw Yu=0,Xu=null,Error(i(185));mt(e,n,r),0!=(2&Eu)&&e===Pu||(e===Pu&&(0==(2&Eu)&&(zu|=n),4===Tu&&ac(e,Mu)),nc(e,r),1===n&&0===Eu&&0==(1&t.mode)&&(Uu=Qe()+500,Fo&&Wo()))}function nc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!=(l&n)&&0==(l&r)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=dt(e,e===Pu?Mu:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Fo=!0,Uo(e)}(lc.bind(null,e)):Uo(lc.bind(null,e)),io((function(){0==(6&Eu)&&Wo()})),n=null;else{switch(bt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Qu=-1,Zu=0,0!=(6&Eu))throw Error(i(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=dt(e,e===Pu?Mu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=yc(e,r);else{t=r;var o=Eu;Eu|=2;var a=pc();for(Pu===e&&Mu===t||(Wu=null,Uu=Qe()+500,fc(e,t));;)try{vc();break}catch(t){dc(e,t)}wi(),ku.current=a,Eu=o,null!==Cu?t=0:(Pu=null,Mu=0,t=Tu)}if(0!==t){if(2===t&&0!==(o=ht(e))&&(r=o,t=oc(e,o)),1===t)throw n=Lu,fc(e,0),ac(e,r),nc(e,Qe()),n;if(6===t)ac(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ar(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=yc(e,r))&&0!==(a=ht(e))&&(r=a,t=oc(e,a)),1===t))throw n=Lu,fc(e,0),ac(e,r),nc(e,Qe()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:xc(e,Fu,Wu);break;case 3:if(ac(e,r),(130023424&r)===r&&10<(t=Bu+500-Qe())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&r)!==r){Ju(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(xc.bind(null,e,Fu,Wu),t);break}xc(e,Fu,Wu);break;case 4:if(ac(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-at(r);a=1<<l,(l=t[l])>o&&(o=l),r&=~a}if(r=o,10<(r=(120>(r=Qe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*_u(r/1960))-r)){e.timeoutHandle=no(xc.bind(null,e,Fu,Wu),r);break}xc(e,Fu,Wu);break;default:throw Error(i(329))}}}return nc(e,Qe()),e.callbackNode===n?rc.bind(null,e):null}function oc(e,t){var n=Ru;return e.current.memoizedState.isDehydrated&&(fc(e,t).flags|=256),2!==(e=yc(e,t))&&(t=Fu,Fu=n,null!==t&&ic(t)),e}function ic(e){null===Fu?Fu=e:Fu.push.apply(Fu,e)}function ac(e,t){for(t&=~Iu,t&=~zu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!=(6&Eu))throw Error(i(327));wc();var t=dt(e,0);if(0==(1&t))return nc(e,Qe()),null;var n=yc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Lu,fc(e,0),ac(e,t),nc(e,Qe()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,xc(e,Fu,Wu),nc(e,Qe()),null}function uc(e,t){var n=Eu;Eu|=1;try{return e(t)}finally{0===(Eu=n)&&(Uu=Qe()+500,Fo&&Wo())}}function cc(e){null!==Ku&&0===Ku.tag&&0==(6&Eu)&&wc();var t=Eu;Eu|=1;var n=ju.transition,r=gt;try{if(ju.transition=null,gt=1,e)return e()}finally{gt=r,ju.transition=n,0==(6&(Eu=t))&&Wo()}}function sc(){Au=Du.current,So(Du)}function fc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ro(n)),null!==Cu)for(n=Cu.return;null!==n;){var r=n;switch(ti(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&To();break;case 3:oa(),So(Co),So(Po),sa();break;case 5:aa(r);break;case 4:oa();break;case 13:case 19:So(la);break;case 10:Oi(r.type._context);break;case 22:case 23:sc()}n=n.return}if(Pu=e,Cu=e=Dc(e.current,null),Mu=Au=t,Tu=0,Lu=null,Iu=zu=Nu=0,Fu=Ru=null,null!==ji){for(t=0;t<ji.length;t++)if(null!==(r=(n=ji[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}ji=null}return e}function dc(e,t){for(;;){var n=Cu;try{if(wi(),fa.current=il,va){for(var r=ha.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}va=!1}if(pa=0,ma=ya=ha=null,ga=!1,ba=0,Su.current=null,null===n||null===n.return){Tu=1,Lu=t,Cu=null;break}e:{var a=e,l=n.return,u=n,c=t;if(t=Mu,u.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var s=c,f=u,d=f.tag;if(0==(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ml(l);if(null!==h){h.flags&=-257,vl(h,l,u,0,t),1&h.mode&&yl(a,s,t),c=s;var y=(t=h).updateQueue;if(null===y){var m=new Set;m.add(c),t.updateQueue=m}else y.add(c);break e}if(0==(1&t)){yl(a,s,t),hc();break e}c=Error(i(426))}else if(oi&&1&u.mode){var v=ml(l);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),vl(v,l,u,0,t),hi(cl(c,u));break e}}a=c=cl(c,u),4!==Tu&&(Tu=2),null===Ru?Ru=[a]:Ru.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,zi(a,pl(0,c,t));break e;case 1:u=c;var g=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof g.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===qu||!qu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,zi(a,hl(a,u,t));break e}}a=a.return}while(null!==a)}bc(n)}catch(e){t=e,Cu===n&&null!==n&&(Cu=n=n.return);continue}break}}function pc(){var e=ku.current;return ku.current=il,null===e?il:e}function hc(){0!==Tu&&3!==Tu&&2!==Tu||(Tu=4),null===Pu||0==(268435455&Nu)&&0==(268435455&zu)||ac(Pu,Mu)}function yc(e,t){var n=Eu;Eu|=2;var r=pc();for(Pu===e&&Mu===t||(Wu=null,fc(e,t));;)try{mc();break}catch(t){dc(e,t)}if(wi(),Eu=n,ku.current=r,null!==Cu)throw Error(i(261));return Pu=null,Mu=0,Tu}function mc(){for(;null!==Cu;)gc(Cu)}function vc(){for(;null!==Cu&&!Ye();)gc(Cu)}function gc(e){var t=Ou(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===t?bc(e):Cu=t,Su.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=$l(n,t,Au)))return void(Cu=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(Cu=n);if(null===e)return Tu=6,void(Cu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Cu=t);Cu=t=e}while(null!==t);0===Tu&&(Tu=5)}function xc(e,t,n){var r=gt,o=ju.transition;try{ju.transition=null,gt=1,function(e,t,n,r){do{wc()}while(null!==Ku);if(0!=(6&Eu))throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Pu&&(Cu=Pu=null,Mu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||$u||($u=!0,Pc(tt,(function(){return wc(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=ju.transition,ju.transition=null;var l=gt;gt=1;var u=Eu;Eu|=4,Su.current=null,function(e,t){if(Jr=Vt,dr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var l=0,u=-1,c=-1,s=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==o&&3!==d.nodeType||(u=l+o),d!==a||0!==r&&3!==d.nodeType||(c=l+r),3===d.nodeType&&(l+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++s===o&&(u=l),p===a&&++f===r&&(c=l),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(eo={focusedElem:e,selectionRange:n},Vt=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var y=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==y){var m=y.memoizedProps,v=y.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:mi(t.type,m),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(e){_c(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}y=eu,eu=!1}(e,n),yu(n,e),pr(eo),Vt=!!Jr,eo=Jr=null,e.current=n,vu(n,e,o),Xe(),Eu=u,gt=l,ju.transition=a}else e.current=n;if($u&&($u=!1,Ku=e,Gu=o),0===(a=e.pendingLanes)&&(qu=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),nc(e,Qe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Vu)throw Vu=!1,e=Hu,Hu=null,e;0!=(1&Gu)&&0!==e.tag&&wc(),0!=(1&(a=e.pendingLanes))?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,Wo()}(e,t,n,r)}finally{ju.transition=o,gt=r}return null}function wc(){if(null!==Ku){var e=bt(Gu),t=ju.transition,n=gt;try{if(ju.transition=null,gt=16>e?16:e,null===Ku)var r=!1;else{if(e=Ku,Ku=null,Gu=0,0!=(6&Eu))throw Error(i(331));var o=Eu;for(Eu|=4,Ql=e.current;null!==Ql;){var a=Ql,l=a.child;if(0!=(16&Ql.flags)){var u=a.deletions;if(null!==u){for(var c=0;c<u.length;c++){var s=u[c];for(Ql=s;null!==Ql;){var f=Ql;switch(f.tag){case 0:case 11:case 15:tu(8,f,a)}var d=f.child;if(null!==d)d.return=f,Ql=d;else for(;null!==Ql;){var p=(f=Ql).sibling,h=f.return;if(ou(f),f===s){Ql=null;break}if(null!==p){p.return=h,Ql=p;break}Ql=h}}}var y=a.alternate;if(null!==y){var m=y.child;if(null!==m){y.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}Ql=a}}if(0!=(2064&a.subtreeFlags)&&null!==l)l.return=a,Ql=l;else e:for(;null!==Ql;){if(0!=(2048&(a=Ql).flags))switch(a.tag){case 0:case 11:case 15:tu(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Ql=g;break e}Ql=a.return}}var b=e.current;for(Ql=b;null!==Ql;){var x=(l=Ql).child;if(0!=(2064&l.subtreeFlags)&&null!==x)x.return=l,Ql=x;else e:for(l=b;null!==Ql;){if(0!=(2048&(u=Ql).flags))try{switch(u.tag){case 0:case 11:case 15:nu(9,u)}}catch(e){_c(u,u.return,e)}if(u===l){Ql=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Ql=w;break e}Ql=u.return}}if(Eu=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{gt=n,ju.transition=t}}return!1}function Oc(e,t,n){e=Li(e,t=pl(0,t=cl(n,t),1),1),t=Ju(),null!==e&&(mt(e,1,t),nc(e,t))}function _c(e,t,n){if(3===e.tag)Oc(e,e,n);else for(;null!==t;){if(3===t.tag){Oc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qu||!qu.has(r))){t=Li(t,e=hl(t,e=cl(n,e),1),1),e=Ju(),null!==t&&(mt(t,1,e),nc(t,e));break}}t=t.return}}function kc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Ju(),e.pingedLanes|=e.suspendedLanes&n,Pu===e&&(Mu&n)===n&&(4===Tu||3===Tu&&(130023424&Mu)===Mu&&500>Qe()-Bu?fc(e,0):Iu|=n),nc(e,t)}function Sc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=st,0==(130023424&(st<<=1))&&(st=4194304)));var n=Ju();null!==(e=Ci(e,t))&&(mt(e,t,n),nc(e,n))}function jc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Sc(e,n)}function Ec(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Sc(e,n)}function Pc(e,t){return Ke(e,t)}function Cc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mc(e,t,n,r){return new Cc(e,t,n,r)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Dc(e,t){var n=e.alternate;return null===n?((n=Mc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Ac(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case _:return Lc(n.children,o,a,t);case k:l=8,o|=8;break;case S:return(e=Mc(12,n,t,2|o)).elementType=S,e.lanes=a,e;case C:return(e=Mc(13,n,t,o)).elementType=C,e.lanes=a,e;case M:return(e=Mc(19,n,t,o)).elementType=M,e.lanes=a,e;case T:return Nc(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case j:l=10;break e;case E:l=9;break e;case P:l=11;break e;case A:l=14;break e;case D:l=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Mc(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Lc(e,t,n,r){return(e=Mc(7,e,r,t)).lanes=n,e}function Nc(e,t,n,r){return(e=Mc(22,e,r,t)).elementType=T,e.lanes=n,e.stateNode={isHidden:!1},e}function zc(e,t,n){return(e=Mc(6,e,null,t)).lanes=n,e}function Ic(e,t,n){return(t=Mc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Rc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:O,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Fc(e){if(!e)return Eo;e:{if(We(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Do(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Do(n))return No(e,n,t)}return t}function Bc(e,t,n,r){var o=t.current,i=Ju(),a=ec(o);return n=Fc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ti(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Li(o,t,a))&&(tc(e,o,a,i),Ni(e,o,a)),a}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}Ou=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Co.current)bl=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return bl=!1,function(e,t,n){switch(t.tag){case 3:Cl(t),pi();break;case 5:ia(t);break;case 1:Do(t.type)&&zo(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;jo(vi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(jo(la,1&la.current),t.flags|=128,null):0!=(n&t.child.childLanes)?zl(e,t,n):(jo(la,1&la.current),null!==(e=Vl(e,t,n))?e.sibling:null);jo(la,1&la.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Ul(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),jo(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Vl(e,t,n)}(e,t,n);bl=0!=(131072&e.flags)}else bl=!1,oi&&0!=(1048576&t.flags)&&Jo(t,$o,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Wl(e,t),e=t.pendingProps;var o=Ao(t,Po.current);ki(t,n),o=_a(null,t,r,e,o,n);var a=ka();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Do(r)?(a=!0,zo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Ai(t),o.updater=Ui,t.stateNode=o,o._reactInternals=t,qi(t,r,e,n),t=Pl(null,t,r,!0,a,n)):(t.tag=0,oi&&a&&ei(t),xl(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Ac(e)?1:0;if(null!=e){if((e=e.$$typeof)===P)return 11;if(e===A)return 14}return 2}(r),e=mi(r,e),o){case 0:t=jl(null,t,r,e,n);break e;case 1:t=El(null,t,r,e,n);break e;case 11:t=wl(null,t,r,e,n);break e;case 14:t=Ol(null,t,r,mi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,jl(e,t,r,o=t.elementType===r?o:mi(r,o),n);case 1:return r=t.type,o=t.pendingProps,El(e,t,r,o=t.elementType===r?o:mi(r,o),n);case 3:e:{if(Cl(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,Di(e,t),Ii(t,r,null,n);var l=t.memoizedState;if(r=l.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ml(e,t,r,n,o=cl(Error(i(423)),t));break e}if(r!==o){t=Ml(e,t,r,n,o=cl(Error(i(424)),t));break e}for(ri=uo(t.stateNode.containerInfo.firstChild),ni=t,oi=!0,ii=null,n=Qi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Vl(e,t,n);break e}xl(e,t,r,n)}t=t.child}return t;case 5:return ia(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,to(r,o)?l=null:null!==a&&to(r,a)&&(t.flags|=32),Sl(e,t),xl(e,t,l,n),t.child;case 6:return null===e&&ci(t),null;case 13:return zl(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Xi(t,null,r,n):xl(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,wl(e,t,r,o=t.elementType===r?o:mi(r,o),n);case 7:return xl(e,t,t.pendingProps,n),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,jo(vi,r._currentValue),r._currentValue=l,null!==a)if(ar(a.value,l)){if(a.children===o.children&&!Co.current){t=Vl(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var c=u.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Ti(-1,n&-n)).tag=2;var s=a.updateQueue;if(null!==s){var f=(s=s.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),s.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),_i(a.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),_i(l,n,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,ki(t,n),r=r(o=Si(o)),t.flags|=1,xl(e,t,r,n),t.child;case 14:return o=mi(r=t.type,t.pendingProps),Ol(e,t,r,o=mi(r.type,o),n);case 15:return _l(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mi(r,o),Wl(e,t),t.tag=1,Do(r)?(e=!0,zo(t)):e=!1,ki(t,n),Vi(t,r,o),qi(t,r,o,n),Pl(null,t,r,!0,e,n);case 19:return Ul(e,t,n);case 22:return kl(e,t,n)}throw Error(i(156,t.tag))};"function"==typeof reportError&&reportError;function Vc(e){this._internalRoot=e}function Hc(e){this._internalRoot=e}function qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}Hc.prototype.render=Vc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Bc(e,t,null,null)},Hc.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cc((function(){Bc(null,e,null,null)})),t[ho]=null}},Hc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Dt.length&&0!==t&&t<Dt[n].priority;n++);Dt.splice(n,0,e),0===n&&zt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(vt(t,1|n),nc(t,Qe()),0==(6&Eu)&&(Uu=Qe()+500,Wo()))}break;case 13:cc((function(){var t=Ci(e,1);if(null!==t){var n=Ju();tc(t,e,1,n)}})),Wc(e,1)}},wt=function(e){if(13===e.tag){var t=Ci(e,134217728);null!==t&&tc(t,e,134217728,Ju()),Wc(e,134217728)}},Ot=function(e){if(13===e.tag){var t=ec(e),n=Ci(e,t);null!==n&&tc(n,e,t,Ju()),Wc(e,t)}},_t=function(){return gt},kt=function(e,t){var n=gt;try{return gt=e,t()}finally{gt=n}},Oe=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=wo(r);if(!o)throw Error(i(90));K(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=uc,Ce=cc;var $c={findFiberByHostInstance:go,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Kc={bundleType:$c.bundleType,version:$c.version,rendererPackageName:$c.rendererPackageName,rendererConfig:$c.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:$c.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Gc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gc.isDisabled&&Gc.supportsFiber)try{ot=Gc.inject(Kc),it=Gc}catch(se){}}t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!qc(t))throw Error(i(200));return Rc(e,t,null,n)}},1850:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2050)},7491:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var l,u,c,s;if(Array.isArray(e)){if((l=e.length)!=a.length)return!1;for(u=l;0!=u--;)if(!i(e[u],a[u]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(s=e.entries();!(u=s.next()).done;)if(!a.has(u.value[0]))return!1;for(s=e.entries();!(u=s.next()).done;)if(!i(u.value[1],a.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(s=e.entries();!(u=s.next()).done;)if(!a.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((l=e.length)!=a.length)return!1;for(u=l;0!=u--;)if(e[u]!==a[u])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if((l=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(u=l;0!=u--;)if(!Object.prototype.hasOwnProperty.call(a,c[u]))return!1;if(t&&e instanceof Element)return!1;for(u=l;0!=u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!i(e[c[u]],a[c[u]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},4065:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],c=l+1,s=e[c];if(0>i(u,n))c<o&&0>i(s,u)?(e[r]=s,e[c]=n,r=c):(e[r]=u,e[l]=n,r=l);else{if(!(c<o&&0>i(s,n)))break e;e[r]=s,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var c=[],s=[],f=1,d=null,p=3,h=!1,y=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(s);null!==t;){if(null===t.callback)o(s);else{if(!(t.startTime<=e))break;o(s),t.sortIndex=t.expirationTime,n(c,t)}t=r(s)}}function w(e){if(m=!1,x(e),!y)if(null!==r(c))y=!0,T(O);else{var t=r(s);null!==t&&L(w,t.startTime-e)}}function O(e,n){y=!1,m&&(m=!1,g(j),j=-1),h=!0;var i=p;try{for(x(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!C());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(c)&&o(c),x(n)}else o(c);d=r(c)}if(null!==d)var u=!0;else{var f=r(s);null!==f&&L(w,f.startTime-n),u=!1}return u}finally{d=null,p=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,k=!1,S=null,j=-1,E=5,P=-1;function C(){return!(t.unstable_now()-P<E)}function M(){if(null!==S){var e=t.unstable_now();P=e;var n=!0;try{n=S(!0,e)}finally{n?_():(k=!1,S=null)}}else k=!1}if("function"==typeof b)_=function(){b(M)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,D=A.port2;A.port1.onmessage=M,_=function(){D.postMessage(null)}}else _=function(){v(M,0)};function T(e){S=e,k||(k=!0,_())}function L(e,n){j=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){y||h||(y=!0,T(O))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(s,e),null===r(c)&&e===r(s)&&(m?(g(j),j=-1):m=!0,L(w,i-a))):(e.sortIndex=l,n(c,e),y||h||(y=!0,T(O))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},9031:(e,t,n)=>{"use strict";e.exports=n(4065)},9787:t=>{"use strict";t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var o={};return(()=>{"use strict";r.r(o),r.d(o,{Arc:()=>yb,Area:()=>cs,Axis:()=>x,Background:()=>bg,Bar:()=>Zy,Border:()=>fm,Box:()=>fm,BrushHelpers:()=>Zm,Candle:()=>Dv,CanvasBar:()=>ng,CanvasCurve:()=>og,CanvasGroup:()=>rg,CanvasPoint:()=>hg,Circle:()=>As,ClipPath:()=>js,Collection:()=>t,CursorHelpers:()=>yw,Curve:()=>j_,Data:()=>l,DefaultTransitions:()=>m,Domain:()=>u,ErrorBar:()=>Bw,Events:()=>v,Flyout:()=>Ix,Helpers:()=>e,Hooks:()=>k,Immutable:()=>a,LabelHelpers:()=>c,Line:()=>Yh,LineHelpers:()=>f,LineSegment:()=>ey,Log:()=>p,Path:()=>$c,Point:()=>rx,PointPathHelpers:()=>O,Portal:()=>ps,PortalContext:()=>hs,RawZoomHelpers:()=>dx,Rect:()=>zs,Scale:()=>i,Selection:()=>w,SelectionHelpers:()=>Sx,Slice:()=>H_,Style:()=>h,TSpan:()=>uf,Text:()=>rf,TextSize:()=>y,Timer:()=>Rp,TimerContext:()=>Bp,Transitions:()=>b,UserProps:()=>d,VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS:()=>ov,VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS:()=>ww,VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS:()=>Cx,VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS:()=>cw,VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS:()=>bx,VictoryAccessibleGroup:()=>Qb,VictoryAnimation:()=>Wp,VictoryArea:()=>kh,VictoryAxis:()=>jy,VictoryBar:()=>am,VictoryBoxPlot:()=>zm,VictoryBrushContainer:()=>av,VictoryBrushLine:()=>Ev,VictoryCandlestick:()=>Jv,VictoryChart:()=>Yb,VictoryClipContainer:()=>$s,VictoryContainer:()=>_s,VictoryCursorContainer:()=>_w,VictoryErrorBar:()=>eO,VictoryGroup:()=>xO,VictoryHistogram:()=>$O,VictoryLabel:()=>$f,VictoryLegend:()=>w_,VictoryLine:()=>T_,VictoryPie:()=>tk,VictoryPolarAxis:()=>Ib,VictoryPortal:()=>Js,VictoryScatter:()=>pk,VictorySelectionContainer:()=>Ax,VictorySharedEvents:()=>cb,VictoryStack:()=>Ak,VictoryTheme:()=>sd,VictoryTooltip:()=>Kx,VictoryTransition:()=>nh,VictoryVoronoi:()=>DS,VictoryVoronoiContainer:()=>dw,VictoryZoomContainer:()=>wx,Voronoi:()=>zk,VoronoiHelpers:()=>rw,Whisker:()=>mm,Wrapper:()=>_,ZoomHelpers:()=>px,addEvents:()=>mh,createContainer:()=>Tw,getBarPath:()=>$y,getBarPosition:()=>Ey,getBarWidth:()=>Py,getCornerRadius:()=>Cy,getCustomBarPath:()=>Uy,getHorizontalBarPath:()=>Hy,getPolarBarPath:()=>Ky,getStyle:()=>My,getVerticalBarPath:()=>Vy,getVerticalPolarBarPath:()=>qy,makeCreateContainerFunction:()=>Dw,mergeRefs:()=>ys,useCanvasContext:()=>tg,useVictoryBrushContainer:()=>iv,useVictoryContainer:()=>Os,useVictoryCursorContainer:()=>Ow,useVictorySelectionContainer:()=>Mx,useVictoryVoronoiContainer:()=>fw,useVictoryZoomContainer:()=>xx});var e={};r.r(e),r.d(e,{createAccessor:()=>ce,degreesToRadians:()=>ne,evaluateProp:()=>ee,evaluateStyle:()=>te,getCurrentAxis:()=>fe,getDefaultStyles:()=>Z,getPadding:()=>X,getPoint:()=>G,getPolarOrigin:()=>ie,getRadius:()=>oe,getRange:()=>ae,getStyles:()=>J,isFunction:()=>ue,isHorizontal:()=>ye,isNil:()=>le,isTooltip:()=>Q,mapValues:()=>de,modifyProps:()=>se,omit:()=>K,radiansToDegrees:()=>re,range:()=>pe,reduceChildren:()=>he,scalePoint:()=>Y});var t={};r.r(t),r.d(t,{containsDates:()=>xe,containsNumbers:()=>we,containsOnlyStrings:()=>Oe,containsStrings:()=>be,getMaxValue:()=>Se,getMinValue:()=>je,isArrayOfArrays:()=>_e,removeUndefined:()=>ke});var n={};r.r(n),r.d(n,{scaleBand:()=>Ne,scaleDiverging:()=>Fi,scaleDivergingLog:()=>Bi,scaleDivergingPow:()=>Wi,scaleDivergingSqrt:()=>Vi,scaleDivergingSymlog:()=>Ui,scaleIdentity:()=>wn,scaleImplicit:()=>Te,scaleLinear:()=>xn,scaleLog:()=>Mn,scaleOrdinal:()=>Le,scalePoint:()=>Ie,scalePow:()=>Fn,scaleQuantile:()=>Qn,scaleQuantize:()=>Zn,scaleRadial:()=>Vn,scaleSequential:()=>Ai,scaleSequentialLog:()=>Di,scaleSequentialPow:()=>Li,scaleSequentialQuantile:()=>zi,scaleSequentialSqrt:()=>Ni,scaleSequentialSymlog:()=>Ti,scaleSqrt:()=>Bn,scaleSymlog:()=>Ln,scaleThreshold:()=>Jn,scaleTime:()=>Ei,scaleUtc:()=>Pi,tickFormat:()=>gn});var i={};r.r(i),r.d(i,{getBaseScale:()=>Yi,getDefaultScale:()=>Xi,getScaleFromName:()=>Gi,getScaleFromProps:()=>Qi,getScaleType:()=>Zi,getType:()=>ea,validScale:()=>qi});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:()=>ta,IMMUTABLE_LIST:()=>ra,IMMUTABLE_MAP:()=>oa,IMMUTABLE_RECORD:()=>na,isImmutable:()=>la,isIterable:()=>ia,isList:()=>ua,isMap:()=>ca,isRecord:()=>aa,shallowToJS:()=>sa});var l={};r.r(l),r.d(l,{createStringMap:()=>ga,downsample:()=>ba,formatData:()=>xa,formatDataFromDomain:()=>va,generateData:()=>wa,getCategories:()=>Oa,getData:()=>_a,getStringsFromAxes:()=>ka,getStringsFromCategories:()=>Sa,getStringsFromData:()=>ja,isDataComponent:()=>Ea});var u={};r.r(u),r.d(u,{createDomainFunction:()=>Na,formatDomain:()=>za,getDomain:()=>Ia,getDomainFromCategories:()=>Ra,getDomainFromData:()=>Fa,getDomainFromMinMax:()=>Ba,getDomainFromProps:()=>Ua,getDomainWithZero:()=>Wa,getMaxFromProps:()=>Va,getMinFromProps:()=>Ha,getSymmetricDomain:()=>qa,isDomainComponent:()=>$a});var c={};r.r(c),r.d(c,{getDegrees:()=>Za,getPolarAngle:()=>Qa,getPolarTextAnchor:()=>Ya,getPolarVerticalAnchor:()=>Xa,getProps:()=>Ja,getText:()=>Ga});var s={};r.r(s),r.d(s,{arc:()=>Wl,area:()=>yl,areaRadial:()=>wl,curveBasis:()=>Nu,curveBasisClosed:()=>Iu,curveBasisOpen:()=>Fu,curveBumpX:()=>Yl,curveBumpY:()=>Xl,curveBundle:()=>Uu,curveCardinal:()=>Hu,curveCardinalClosed:()=>$u,curveCardinalOpen:()=>Gu,curveCatmullRom:()=>Qu,curveCatmullRomClosed:()=>Ju,curveCatmullRomOpen:()=>tc,curveLinear:()=>fl,curveLinearClosed:()=>rc,curveMonotoneX:()=>fc,curveMonotoneY:()=>dc,curveNatural:()=>yc,curveStep:()=>vc,curveStepAfter:()=>bc,curveStepBefore:()=>gc,line:()=>hl,lineRadial:()=>xl,link:()=>eu,linkHorizontal:()=>tu,linkRadial:()=>ru,linkVertical:()=>nu,pie:()=>ql,pointRadial:()=>$l,radialArea:()=>wl,radialLine:()=>xl,stack:()=>kc,stackOffsetDiverging:()=>jc,stackOffsetExpand:()=>Sc,stackOffsetNone:()=>xc,stackOffsetSilhouette:()=>Ec,stackOffsetWiggle:()=>Pc,stackOrderAppearance:()=>Cc,stackOrderAscending:()=>Ac,stackOrderDescending:()=>Tc,stackOrderInsideOut:()=>Lc,stackOrderNone:()=>wc,stackOrderReverse:()=>Nc,symbol:()=>Au,symbolAsterisk:()=>iu,symbolCircle:()=>au,symbolCross:()=>lu,symbolDiamond:()=>su,symbolDiamond2:()=>fu,symbolPlus:()=>du,symbolSquare:()=>pu,symbolSquare2:()=>hu,symbolStar:()=>gu,symbolTriangle:()=>xu,symbolTriangle2:()=>Ou,symbolWye:()=>Eu,symbolX:()=>Pu,symbols:()=>Cu,symbolsFill:()=>Cu,symbolsStroke:()=>Mu});var f={};r.r(f),r.d(f,{getInterpolationFunction:()=>Bc,getLineFunction:()=>Uc});var d={};r.r(d),r.d(d,{assert:()=>Zc,getSafeUserProps:()=>Jc,withSafeUserProps:()=>es});var p={};r.r(p),r.d(p,{warn:()=>Ks});var h={};r.r(h),r.d(h,{getColorScale:()=>sf,toTransformString:()=>cf});var y={};r.r(y),r.d(y,{_approximateTextSizeInternal:()=>Cf,approximateTextSize:()=>Mf,convertLengthToPixels:()=>Of});var m={};r.r(m),r.d(m,{continuousPolarTransitions:()=>dd,continuousTransitions:()=>fd,discreteTransitions:()=>pd});var v={};r.r(v),r.d(v,{emulateReactEvent:()=>Td,getComponentEvents:()=>Cd,getEventState:()=>Sd,getEvents:()=>Od,getExternalMutation:()=>Pd,getExternalMutations:()=>Ed,getExternalMutationsWithChildren:()=>jd,getGlobalEventNameFromKey:()=>Md,getGlobalEvents:()=>Ad,getPartialEvents:()=>kd,getScopedEvents:()=>_d,omitGlobalEvents:()=>Dd});var g={};r.r(g),r.d(g,{easeBack:()=>pp,easeBackIn:()=>fp,easeBackInOut:()=>pp,easeBackOut:()=>dp,easeBounce:()=>ap,easeBounceIn:()=>ip,easeBounceInOut:()=>lp,easeBounceOut:()=>ap,easeCircle:()=>rp,easeCircleIn:()=>tp,easeCircleInOut:()=>rp,easeCircleOut:()=>np,easeCubic:()=>Wd,easeCubicIn:()=>Bd,easeCubicInOut:()=>Wd,easeCubicOut:()=>Ud,easeElastic:()=>mp,easeElasticIn:()=>yp,easeElasticInOut:()=>vp,easeElasticOut:()=>mp,easeExp:()=>ep,easeExpIn:()=>Zd,easeExpInOut:()=>ep,easeExpOut:()=>Jd,easeLinear:()=>zd,easePoly:()=>qd,easePolyIn:()=>Vd,easePolyInOut:()=>qd,easePolyOut:()=>Hd,easeQuad:()=>Fd,easeQuadIn:()=>Id,easeQuadInOut:()=>Fd,easeQuadOut:()=>Rd,easeSin:()=>Xd,easeSinIn:()=>Gd,easeSinInOut:()=>Xd,easeSinOut:()=>Yd});var b={};r.r(b),r.d(b,{getInitialTransitionState:()=>Yp,getTransitionPropsFactory:()=>Xp});var x={};r.r(x),r.d(x,{findAxisComponents:()=>Mh,getAxis:()=>Ch,getAxisComponent:()=>Ah,getAxisComponentsWithParent:()=>Dh,getAxisValue:()=>Vh,getDomain:()=>Wh,getOrigin:()=>Th,getOriginSign:()=>Lh,getTickFormat:()=>Rh,getTicks:()=>Bh,isVertical:()=>Nh,modifyProps:()=>Hh,stringTicks:()=>zh});var w={};r.r(w),r.d(w,{getBounds:()=>Vm,getDataCoordinates:()=>Wm,getDomainCoordinates:()=>Um,getParentSVG:()=>Fm,getSVGEventCoordinates:()=>Bm});var O={};r.r(O),r.d(O,{circle:()=>ig,cross:()=>fg,diamond:()=>lg,minus:()=>dg,plus:()=>sg,square:()=>ag,star:()=>pg,triangleDown:()=>ug,triangleUp:()=>cg});var _={};r.r(_),r.d(_,{addBinsToParentPropsIfHistogram:()=>Lg,getAllEvents:()=>Wg,getCategories:()=>Xg,getCategoryAndAxisStringsFromChildren:()=>Gg,getChildStyle:()=>qg,getColor:()=>Vg,getData:()=>zg,getDataFromChildren:()=>Ng,getDefaultDomainPadding:()=>Rg,getDomain:()=>Bg,getDomainFromChildren:()=>Fg,getScale:()=>Ug,getStringsFromCategories:()=>$g,getStringsFromChildren:()=>Yg,getStringsFromData:()=>Kg,getStyle:()=>Hg,getWidth:()=>Ig});var k={};r.r(k),r.d(k,{useAnimationState:()=>jg,usePreviousProps:()=>Qg});var S=r(9787),j=r.n(S),E=r(1616),P=r.n(E),C=r(8999),M=r.n(C),A=r(8254),D=r.n(A),T=r(4155),L=r.n(T),N=r(4143),z=r.n(N),I=r(8532),R=r.n(I),F=r(3849),B=r.n(F),U=r(9602),W=r.n(U),V=r(9082),H=r.n(V),q=r(1893),$=r.n(q);function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function G(e){var t=function(e){return void 0!==e},n=e._x,r=e._x1,o=e._x0,i=e._voronoiX,a=e._y,l=e._y1,u=e._y0,c=e._voronoiY,s=t(r)?r:n,f=t(l)?l:a,d={x:t(i)?i:s,x0:t(o)?o:n,y:t(c)?c:f,y0:t(u)?u:a};return $()({},d,e)}function Y(e,t){var n=e.scale,r=e.polar,o=e.horizontal,i=G(t),a=e.origin||{x:0,y:0},l=o?n.y(i.y):n.x(i.x),u=o?n.y(i.y0):n.x(i.x0),c=o?n.x(i.x):n.y(i.y),s=o?n.x(i.x0):n.y(i.y0);return{x:r?c*Math.cos(l)+a.x:l,x0:r?s*Math.cos(u)+a.x:u,y:r?-c*Math.sin(l)+a.y:c,y0:r?-s*Math.sin(u)+a.x:s}}function X(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",n=e[t],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function Q(e){return"tooltip"===(e&&e.type&&e.type.role)}function Z(e,t){var n=e.theme,r=void 0===n?{}:n,o=e.labelComponent,i=r[t]&&r[t].style||{};if(!Q(o))return i;var a=r.tooltip&&r.tooltip.style||{},l=$()({},a,i.labels);return $()({},{labels:l},i)}function J(e,t){var n="100%",r="100%";if(!e)return $()({parent:{height:r,width:n}},t);var o=e.data,i=e.labels,a=e.parent,l=t&&t.parent||{},u=t&&t.labels||{},c=t&&t.data||{};return{parent:$()({},a,l,{width:n,height:r}),labels:$()({},i,u),data:$()({},o,c)}}function ee(e,t){return ue(e)?e(t):e}function te(e,t){return t.disableInlineStyles?{}:e&&Object.keys(e).some((function(t){return ue(e[t])}))?Object.keys(e).reduce((function(n,r){return n[r]=ee(e[r],t),n}),{}):e}function ne(e){return"number"==typeof e?e*(Math.PI/180):e}function re(e){return"number"==typeof e?e/(Math.PI/180):e}function oe(e){var t=X(e),n=t.left,r=t.right,o=t.top,i=t.bottom,a=e.width,l=e.height;return Math.min(a-n-r,l-o-i)/2}function ie(e){var t=e.width,n=e.height,r=X(e),o=r.top,i=r.bottom,a=r.left,l=r.right,u=Math.min(t-a-l,n-o-i)/2,c=t/2+a-l,s=n/2+o-i;return{x:c+u>t?u+a-l:c,y:s+u>n?u+o-i:s}}function ae(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?function(e,t){return"x"===t?[ne(e.startAngle||0),ne(e.endAngle||360)]:[e.innerRadius||0,oe(e)]}(e,t):function(e,t){var n="x"!==t,r=X(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}(e,t)}function le(e){return null==e}function ue(e){return"function"==typeof e}function ce(e){return ue(e)?e:null==e?function(e){return e}:R()(e)}function se(e,t,n){var r=K(e.theme&&e.theme[n]?e.theme[n]:{},["style"]),o=ye(e),i=void 0===o?{}:{horizontal:o};return $()(i,e,r,t)}function fe(e,t){return t?"x"===e?"y":"x":e}function de(e,t){if(e)return Object.keys(e).reduce((function(n,r){return n[r]=t(e[r]),n}),{})}function pe(e,t,n){var r=t?e:0,o=t||e;o||(o=0);var i=o-r,a=Math.abs(i),l=i/a||1,u=n||1,c=Math.max(Math.ceil(a/u),0);return Array.from(Array(c),(function(e,t){return r+t*l*u}))}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(e,t){return e.concat(t)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=function(e,l,u){return e.reduce((function(e,r,c){var s=e,f=r.type&&r.type.role,d=r.props.name||"".concat(f,"-").concat(l[c]);if(r.props&&r.props.children){var p=Object.assign({},r.props,H()(n,i)),h=r.type&&"stack"===r.type.role&&ue(r.type.getChildren)?r.type.getChildren(p):j().Children.toArray(r.props.children).map((function(e){var t=Object.assign({},e.props,H()(p,i));return j().cloneElement(e,t)})),y=h.map((function(e,t){return"".concat(d,"-").concat(t)})),m=a(h,y,r);s=o(s,m)}else{var v=t(r,d,u);v&&(s=o(s,v))}return s}),r)},l=e.filter(S.isValidElement),u=l.map((function(e,t){return t}));return a(l,u)}function ye(e){if(void 0!==e.horizontal||!e.children)return e.horizontal;var t=function(e){return e.reduce((function(e,n){var r=n.props||{};return e||r.horizontal||!r.children?e||r.horizontal:t(j().Children.toArray(r.children))}),!1)};return t(j().Children.toArray(e.children))}function me(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ge(e){return Array.isArray(e)&&e.length>0}function be(e){return Array.isArray(e)&&e.some((function(e){return"string"==typeof e}))}function xe(e){return Array.isArray(e)&&e.some((function(e){return e instanceof Date}))}function we(e){return Array.isArray(e)&&e.some((function(e){return"number"==typeof e}))}function Oe(e){return ge(e)&&e.every((function(e){return"string"==typeof e}))}function _e(e){return ge(e)&&e.every(Array.isArray)}function ke(e){return e.filter((function(e){return void 0!==e}))}function Se(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return xe(o)?new Date(Math.max.apply(Math,me(o))):Math.max.apply(Math,me(o))}function je(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e.concat(n);return xe(o)?new Date(Math.min.apply(Math,me(o))):Math.min.apply(Math,me(o))}function Ee(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}function Pe(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Ce(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class Me extends Map{constructor(e,t=De){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(Ae(this,e))}has(e){return super.has(Ae(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function Ae({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function De(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const Te=Symbol("implicit");function Le(){var e=new Me,t=[],n=[],r=Te;function o(o){let i=e.get(o);if(void 0===i){if(r!==Te)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Me;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Le(t,n).unknown(r)},Pe.apply(o,arguments),o}function Ne(){var e,t,n=Le().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,l=!1,u=0,c=0,s=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-u+2*c),l&&(e=Math.floor(e)),d+=(p-d-e*(n-u))*s,t=e*(1-u),l&&(d=Math.round(d),t=Math.round(t));var h=Ee(n).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(l=!!e,f()):l},n.padding=function(e){return arguments.length?(u=Math.min(1,c=+e),f()):u},n.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),f()):u},n.paddingOuter=function(e){return arguments.length?(c=+e,f()):c},n.align=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},n.copy=function(){return Ne(r(),[i,a]).round(l).paddingInner(u).paddingOuter(c).align(s)},Pe.apply(f(),arguments)}function ze(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ze(t())},e}function Ie(){return ze(Ne.apply(null,arguments).paddingInner(1))}var Re=Math.sqrt(50),Fe=Math.sqrt(10),Be=Math.sqrt(2);function Ue(e,t,n){var r,o,i,a,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=We(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)/a}return r&&i.reverse(),i}function We(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Re?10:i>=Fe?5:i>=Be?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Re?10:i>=Fe?5:i>=Be?2:1)}function Ve(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Re?o*=10:i>=Fe?o*=5:i>=Be&&(o*=2),t<e?-o:o}function He(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function qe(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function $e(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=He,n=(t,n)=>He(e(t),n),r=(t,n)=>e(t)-n):(t=e===He||e===qe?e:Ke,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function Ke(){return 0}function Ge(e){return null===e?NaN:+e}const Ye=$e(He),Xe=Ye.right,Qe=(Ye.left,$e(Ge).center,Xe);function Ze(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Je(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function et(){}var tt=.7,nt=1/tt,rt="\\s*([+-]?\\d+)\\s*",ot="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",it="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",at=/^#([0-9a-f]{3,8})$/,lt=new RegExp(`^rgb\\(${rt},${rt},${rt}\\)$`),ut=new RegExp(`^rgb\\(${it},${it},${it}\\)$`),ct=new RegExp(`^rgba\\(${rt},${rt},${rt},${ot}\\)$`),st=new RegExp(`^rgba\\(${it},${it},${it},${ot}\\)$`),ft=new RegExp(`^hsl\\(${ot},${it},${it}\\)$`),dt=new RegExp(`^hsla\\(${ot},${it},${it},${ot}\\)$`),pt={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 ht(){return this.rgb().formatHex()}function yt(){return this.rgb().formatRgb()}function mt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=at.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?vt(t):3===n?new wt(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?gt(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?gt(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=lt.exec(e))?new wt(t[1],t[2],t[3],1):(t=ut.exec(e))?new wt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ct.exec(e))?gt(t[1],t[2],t[3],t[4]):(t=st.exec(e))?gt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ft.exec(e))?Et(t[1],t[2]/100,t[3]/100,1):(t=dt.exec(e))?Et(t[1],t[2]/100,t[3]/100,t[4]):pt.hasOwnProperty(e)?vt(pt[e]):"transparent"===e?new wt(NaN,NaN,NaN,0):null}function vt(e){return new wt(e>>16&255,e>>8&255,255&e,1)}function gt(e,t,n,r){return r<=0&&(e=t=n=NaN),new wt(e,t,n,r)}function bt(e){return e instanceof et||(e=mt(e)),e?new wt((e=e.rgb()).r,e.g,e.b,e.opacity):new wt}function xt(e,t,n,r){return 1===arguments.length?bt(e):new wt(e,t,n,null==r?1:r)}function wt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ot(){return`#${jt(this.r)}${jt(this.g)}${jt(this.b)}`}function _t(){const e=kt(this.opacity);return`${1===e?"rgb(":"rgba("}${St(this.r)}, ${St(this.g)}, ${St(this.b)}${1===e?")":`, ${e})`}`}function kt(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function St(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jt(e){return((e=St(e))<16?"0":"")+e.toString(16)}function Et(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ct(e,t,n,r)}function Pt(e){if(e instanceof Ct)return new Ct(e.h,e.s,e.l,e.opacity);if(e instanceof et||(e=mt(e)),!e)return new Ct;if(e instanceof Ct)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,u=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=u<.5?i+o:2-i-o,a*=60):l=u>0&&u<1?0:a,new Ct(a,l,u,e.opacity)}function Ct(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mt(e){return(e=(e||0)%360)<0?e+360:e}function At(e){return Math.max(0,Math.min(1,e||0))}function Dt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Tt(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Ze(et,mt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ht,formatHex:ht,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Pt(this).formatHsl()},formatRgb:yt,toString:yt}),Ze(wt,xt,Je(et,{brighter(e){return e=null==e?nt:Math.pow(nt,e),new wt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?tt:Math.pow(tt,e),new wt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new wt(St(this.r),St(this.g),St(this.b),kt(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:Ot,formatHex:Ot,formatHex8:function(){return`#${jt(this.r)}${jt(this.g)}${jt(this.b)}${jt(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:_t,toString:_t})),Ze(Ct,(function(e,t,n,r){return 1===arguments.length?Pt(e):new Ct(e,t,n,null==r?1:r)}),Je(et,{brighter(e){return e=null==e?nt:Math.pow(nt,e),new Ct(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?tt:Math.pow(tt,e),new Ct(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new wt(Dt(e>=240?e-240:e+120,o,r),Dt(e,o,r),Dt(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ct(Mt(this.h),At(this.s),At(this.l),kt(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=kt(this.opacity);return`${1===e?"hsl(":"hsla("}${Mt(this.h)}, ${100*At(this.s)}%, ${100*At(this.l)}%${1===e?")":`, ${e})`}`}}));const Lt=e=>()=>e;function Nt(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Lt(isNaN(e)?t:e)}const zt=function e(t){var n=function(e){return 1==(e=+e)?Nt:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Lt(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=xt(e)).r,(t=xt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Nt(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function It(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),l=new Array(o);for(n=0;n<o;++n)r=xt(t[n]),i[n]=r.r||0,a[n]=r.g||0,l[n]=r.b||0;return i=e(i),a=e(a),l=e(l),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=l(e),r+""}}}function Rt(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=$t(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function Ft(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ut(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=$t(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}It((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,l=r<t-1?e[r+2]:2*i-o;return Tt((n-r/t)*t,a,o,i,l)}})),It((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],l=e[(r+2)%t];return Tt((n-r/t)*t,o,i,a,l)}}));var Wt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vt=new RegExp(Wt.source,"g");function Ht(e,t){var n,r,o,i=Wt.lastIndex=Vt.lastIndex=0,a=-1,l=[],u=[];for(e+="",t+="";(n=Wt.exec(e))&&(r=Vt.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(n=n[0])===(r=r[0])?l[a]?l[a]+=r:l[++a]=r:(l[++a]=null,u.push({i:a,x:Bt(n,r)})),i=Vt.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)l[(n=u[r]).i]=n.x(e);return l.join("")})}function qt(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $t(e,t){var n,r=typeof t;return null==t||"boolean"===r?Lt(t):("number"===r?Bt:"string"===r?(n=mt(t))?(t=n,zt):Ht:t instanceof mt?zt:t instanceof Date?Ft:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?qt:Array.isArray(t)?Rt:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ut:Bt)(e,t)}function Kt(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Gt(e){return+e}var Yt=[0,1];function Xt(e){return e}function Qt(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Zt(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Qt(o,r),i=n(a,i)):(r=Qt(r,o),i=n(i,a)),function(e){return i(r(e))}}function Jt(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=Qt(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=Qe(e,t,1,r)-1;return i[n](o[n](t))}}function en(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function tn(){var e,t,n,r,o,i,a=Yt,l=Yt,u=$t,c=Xt;function s(){var e=Math.min(a.length,l.length);return c!==Xt&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?Jt:Zt,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),l,u)))(e(c(t)))}return f.invert=function(n){return c(t((i||(i=r(l,a.map(e),Bt)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Gt),s()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),s()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),u=Kt,s()},f.clamp=function(e){return arguments.length?(c=!!e||Xt,s()):c!==Xt},f.interpolate=function(e){return arguments.length?(u=e,s()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,s()}}function nn(){return tn()(Xt,Xt)}var rn,on=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function an(e){if(!(t=on.exec(e)))throw new Error("invalid format: "+e);var t;return new ln({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ln(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function un(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function cn(e){return(e=un(Math.abs(e)))?e[1]:NaN}function sn(e,t){var n=un(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}an.prototype=ln.prototype,ln.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};const fn={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>sn(100*e,t),r:sn,s:function(e,t){var n=un(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(rn=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+un(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function dn(e){return e}var pn,hn,yn,mn=Array.prototype.map,vn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function gn(e,t,n,r){var o,i=Ve(e,t,n);switch((r=an(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(cn(t)/3)))-cn(Math.abs(e)))}(i,a))||(r.precision=o),yn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,cn(t)-cn(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-cn(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return hn(r)}function bn(e){var t=e.domain;return e.ticks=function(e){var n=t();return Ue(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return gn(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,l=i.length-1,u=i[a],c=i[l],s=10;for(c<u&&(o=u,u=c,c=o,o=a,a=l,l=o);s-- >0;){if((o=We(u,c,n))===r)return i[a]=u,i[l]=c,t(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function xn(){var e=nn();return e.copy=function(){return en(e,xn())},Pe.apply(e,arguments),bn(e)}function wn(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,Gt),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return wn(e).unknown(t)},e=arguments.length?Array.from(e,Gt):[0,1],bn(n)}function On(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function _n(e){return Math.log(e)}function kn(e){return Math.exp(e)}function Sn(e){return-Math.log(-e)}function jn(e){return-Math.exp(-e)}function En(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Pn(e){return(t,n)=>-e(-t,n)}function Cn(e){const t=e(_n,kn),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?En:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=Pn(r),o=Pn(o),e(Sn,jn)):e(_n,kn),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],l=t[t.length-1];const u=l<a;u&&([a,l]=[l,a]);let c,s,f=r(a),d=r(l);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(c=1;c<i;++c)if(s=f<0?c/o(-f):c*o(f),!(s<a)){if(s>l)break;h.push(s)}}else for(;f<=d;++f)for(c=i-1;c>=1;--c)if(s=f>0?c/o(-f):c*o(f),!(s<a)){if(s>l)break;h.push(s)}2*h.length<p&&(h=Ue(a,l,p))}else h=Ue(f,d,Math.min(d-f,p)).map(o);return u?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=an(n)).precision||(n.trim=!0),n=hn(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(On(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function Mn(){const e=Cn(tn()).domain([1,10]);return e.copy=()=>en(e,Mn()).base(e.base()),Pe.apply(e,arguments),e}function An(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Dn(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Tn(e){var t=1,n=e(An(t),Dn(t));return n.constant=function(n){return arguments.length?e(An(t=+n),Dn(t)):t},bn(n)}function Ln(){var e=Tn(tn());return e.copy=function(){return en(e,Ln()).constant(e.constant())},Pe.apply(e,arguments)}function Nn(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zn(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function In(e){return e<0?-e*e:e*e}function Rn(e){var t=e(Xt,Xt),n=1;function r(){return 1===n?e(Xt,Xt):.5===n?e(zn,In):e(Nn(n),Nn(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},bn(t)}function Fn(){var e=Rn(tn());return e.copy=function(){return en(e,Fn()).exponent(e.exponent())},Pe.apply(e,arguments),e}function Bn(){return Fn.apply(null,arguments).exponent(.5)}function Un(e){return Math.sign(e)*e*e}function Wn(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Vn(){var e,t=nn(),n=[0,1],r=!1;function o(n){var o=Wn(t(n));return isNaN(o)?e:r?Math.round(o):o}return o.invert=function(e){return t.invert(Un(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((n=Array.from(e,Gt)).map(Un)),o):n.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(r=!!e,o):r},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Vn(t.domain(),n).round(r).clamp(t.clamp()).unknown(e)},Pe.apply(o,arguments),bn(o)}function Hn(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function qn(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function $n(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function Kn(e,t,n=0,r=e.length-1,o){for(o=void 0===o?$n:function(e=He){if(e===He)return $n;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,l=Math.log(i),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(i-u)/i)*(a-i/2<0?-1:1);Kn(e,t,Math.max(n,Math.floor(t-a*u/i+c)),Math.min(r,Math.floor(t+(i-a)*u/i+c)),o)}const i=e[t];let a=n,l=r;for(Gn(e,n,t),o(e[r],i)>0&&Gn(e,n,r);a<l;){for(Gn(e,a,l),++a,--l;o(e[a],i)<0;)++a;for(;o(e[l],i)>0;)--l}0===o(e[n],i)?Gn(e,n,l):(++l,Gn(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Gn(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Yn(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),r=e.length){if((t=+t)<=0||r<2)return qn(e);if(t>=1)return Hn(e);var r,o=(r-1)*t,i=Math.floor(o),a=Hn(Kn(e,i).subarray(0,i+1));return a+(qn(e.subarray(i+1))-a)*(o-i)}}function Xn(e,t,n=Ge){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function Qn(){var e,t=[],n=[],r=[];function o(){var e=0,o=Math.max(1,n.length);for(r=new Array(o-1);++e<o;)r[e-1]=Xn(t,e/o);return i}function i(t){return null==t||isNaN(t=+t)?e:n[Qe(r,t)]}return i.invertExtent=function(e){var o=n.indexOf(e);return o<0?[NaN,NaN]:[o>0?r[o-1]:t[0],o<r.length?r[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(He),o()},i.range=function(e){return arguments.length?(n=Array.from(e),o()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return r.slice()},i.copy=function(){return Qn().domain(t).range(n).unknown(e)},Pe.apply(i,arguments)}function Zn(){var e,t=0,n=1,r=1,o=[.5],i=[0,1];function a(t){return null!=t&&t<=t?i[Qe(o,t,0,r)]:e}function l(){var e=-1;for(o=new Array(r);++e<r;)o[e]=((e+1)*n-(e-r)*t)/(r+1);return a}return a.domain=function(e){return arguments.length?([t,n]=e,t=+t,n=+n,l()):[t,n]},a.range=function(e){return arguments.length?(r=(i=Array.from(e)).length-1,l()):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return Zn().domain([t,n]).range(i).unknown(e)},Pe.apply(bn(a),arguments)}function Jn(){var e,t=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[Qe(t,o,0,r)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),r=Math.min(t.length,n.length-1),o):t.slice()},o.range=function(e){return arguments.length?(n=Array.from(e),r=Math.min(t.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Jn().domain(t).range(n).unknown(e)},Pe.apply(o,arguments)}pn=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?dn:(t=mn.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>r));)l=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?dn:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(mn.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",s=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=an(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,y=e.comma,m=e.precision,v=e.trim,g=e.type;"n"===g?(y=!0,g="g"):fn[g]||(void 0===m&&(m=12),v=!0,g="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===d?i:/[%p]/.test(g)?u:"",w=fn[g],O=/[defgprs%]/.test(g);function _(e){var o,i,u,d=b,_=x;if("c"===g)_=w(e)+_,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?s:w(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==f&&(k=!1),d=(k?"("===f?f:c:"-"===f||"("===f?"":f)+d,_=("s"===g?vn[8+rn/3]:"")+_+(k&&"("===f?")":""),O)for(o=-1,i=e.length;++o<i;)if(48>(u=e.charCodeAt(o))||u>57){_=(46===u?a+e.slice(o+1):e.slice(o))+_,e=e.slice(0,o);break}}y&&!p&&(e=r(e,1/0));var S=d.length+e.length+_.length,j=S<h?new Array(h-S+1).join(t):"";switch(y&&p&&(e=r(j+e,j.length?h-_.length:1/0),j=""),n){case"<":e=d+e+_+j;break;case"=":e=d+j+e+_;break;case"^":e=j.slice(0,S=j.length>>1)+d+e+_+j.slice(S);break;default:e=j+d+e+_}return l(e)}return m=void 0===m?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n=f(((e=an(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(cn(t)/3))),o=Math.pow(10,-r),i=vn[8+r/3];return function(e){return n(o*e)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),hn=pn.format,yn=pn.formatPrefix;const er=1e3,tr=6e4,nr=36e5,rr=864e5,or=6048e5,ir=31536e6;var ar=new Date,lr=new Date;function ur(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,l=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return l;do{l.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return l},o.filter=function(n){return ur((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(o.count=function(t,r){return ar.setTime(+t),lr.setTime(+r),e(ar),e(lr),Math.floor(n(ar,lr))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var cr=ur((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));cr.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ur((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):cr:null};const sr=cr;cr.range;var fr=ur((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*er)}),(function(e,t){return(t-e)/er}),(function(e){return e.getUTCSeconds()}));const dr=fr;fr.range;var pr=ur((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*er)}),(function(e,t){e.setTime(+e+t*tr)}),(function(e,t){return(t-e)/tr}),(function(e){return e.getMinutes()}));const hr=pr;pr.range;var yr=ur((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*er-e.getMinutes()*tr)}),(function(e,t){e.setTime(+e+t*nr)}),(function(e,t){return(t-e)/nr}),(function(e){return e.getHours()}));const mr=yr;yr.range;var vr=ur((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tr)/rr),(e=>e.getDate()-1));const gr=vr;function br(e){return ur((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tr)/or}))}vr.range;var xr=br(0),wr=br(1),Or=br(2),_r=br(3),kr=br(4),Sr=br(5),jr=br(6),Er=(xr.range,wr.range,Or.range,_r.range,kr.range,Sr.range,jr.range,ur((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})));const Pr=Er;Er.range;var Cr=ur((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));Cr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ur((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};const Mr=Cr;Cr.range;var Ar=ur((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*tr)}),(function(e,t){return(t-e)/tr}),(function(e){return e.getUTCMinutes()}));const Dr=Ar;Ar.range;var Tr=ur((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*nr)}),(function(e,t){return(t-e)/nr}),(function(e){return e.getUTCHours()}));const Lr=Tr;Tr.range;var Nr=ur((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/rr}),(function(e){return e.getUTCDate()-1}));const zr=Nr;function Ir(e){return ur((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/or}))}Nr.range;var Rr=Ir(0),Fr=Ir(1),Br=Ir(2),Ur=Ir(3),Wr=Ir(4),Vr=Ir(5),Hr=Ir(6),qr=(Rr.range,Fr.range,Br.range,Ur.range,Wr.range,Vr.range,Hr.range,ur((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})));const $r=qr;qr.range;var Kr=ur((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));Kr.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ur((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};const Gr=Kr;function Yr(e,t,n,r,o,i){const a=[[dr,1,er],[dr,5,5e3],[dr,15,15e3],[dr,30,3e4],[i,1,tr],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,nr],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,rr],[r,2,1728e5],[n,1,or],[t,1,2592e6],[t,3,7776e6],[e,1,ir]];function l(t,n,r){const o=Math.abs(n-t)/r,i=$e((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Ve(t/ir,n/ir,r));if(0===i)return sr.every(Math.max(Ve(t,n,r),1));const[l,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(u)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:l(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},l]}Kr.range;const[Xr,Qr]=Yr(Gr,$r,Rr,zr,Lr,Dr),[Zr,Jr]=Yr(Mr,Pr,xr,gr,mr,hr);function eo(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function to(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function no(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var ro,oo,io,ao={"-":"",_:" ",0:"0"},lo=/^\s*\d+/,uo=/^%/,co=/[\\^$*+?|[\]().{}]/g;function so(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function fo(e){return e.replace(co,"\\$&")}function po(e){return new RegExp("^(?:"+e.map(fo).join("|")+")","i")}function ho(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function yo(e,t,n){var r=lo.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function mo(e,t,n){var r=lo.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function vo(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function go(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bo(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function xo(e,t,n){var r=lo.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function wo(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Oo(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function _o(e,t,n){var r=lo.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function ko(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function So(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function jo(e,t,n){var r=lo.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Eo(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Po(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Co(e,t,n){var r=lo.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Mo(e,t,n){var r=lo.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ao(e,t,n){var r=lo.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Do(e,t,n){var r=uo.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function To(e,t,n){var r=lo.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Lo(e,t,n){var r=lo.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function No(e,t){return so(e.getDate(),t,2)}function zo(e,t){return so(e.getHours(),t,2)}function Io(e,t){return so(e.getHours()%12||12,t,2)}function Ro(e,t){return so(1+gr.count(Mr(e),e),t,3)}function Fo(e,t){return so(e.getMilliseconds(),t,3)}function Bo(e,t){return Fo(e,t)+"000"}function Uo(e,t){return so(e.getMonth()+1,t,2)}function Wo(e,t){return so(e.getMinutes(),t,2)}function Vo(e,t){return so(e.getSeconds(),t,2)}function Ho(e){var t=e.getDay();return 0===t?7:t}function qo(e,t){return so(xr.count(Mr(e)-1,e),t,2)}function $o(e){var t=e.getDay();return t>=4||0===t?kr(e):kr.ceil(e)}function Ko(e,t){return e=$o(e),so(kr.count(Mr(e),e)+(4===Mr(e).getDay()),t,2)}function Go(e){return e.getDay()}function Yo(e,t){return so(wr.count(Mr(e)-1,e),t,2)}function Xo(e,t){return so(e.getFullYear()%100,t,2)}function Qo(e,t){return so((e=$o(e)).getFullYear()%100,t,2)}function Zo(e,t){return so(e.getFullYear()%1e4,t,4)}function Jo(e,t){var n=e.getDay();return so((e=n>=4||0===n?kr(e):kr.ceil(e)).getFullYear()%1e4,t,4)}function ei(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+so(t/60|0,"0",2)+so(t%60,"0",2)}function ti(e,t){return so(e.getUTCDate(),t,2)}function ni(e,t){return so(e.getUTCHours(),t,2)}function ri(e,t){return so(e.getUTCHours()%12||12,t,2)}function oi(e,t){return so(1+zr.count(Gr(e),e),t,3)}function ii(e,t){return so(e.getUTCMilliseconds(),t,3)}function ai(e,t){return ii(e,t)+"000"}function li(e,t){return so(e.getUTCMonth()+1,t,2)}function ui(e,t){return so(e.getUTCMinutes(),t,2)}function ci(e,t){return so(e.getUTCSeconds(),t,2)}function si(e){var t=e.getUTCDay();return 0===t?7:t}function fi(e,t){return so(Rr.count(Gr(e)-1,e),t,2)}function di(e){var t=e.getUTCDay();return t>=4||0===t?Wr(e):Wr.ceil(e)}function pi(e,t){return e=di(e),so(Wr.count(Gr(e),e)+(4===Gr(e).getUTCDay()),t,2)}function hi(e){return e.getUTCDay()}function yi(e,t){return so(Fr.count(Gr(e)-1,e),t,2)}function mi(e,t){return so(e.getUTCFullYear()%100,t,2)}function vi(e,t){return so((e=di(e)).getUTCFullYear()%100,t,2)}function gi(e,t){return so(e.getUTCFullYear()%1e4,t,4)}function bi(e,t){var n=e.getUTCDay();return so((e=n>=4||0===n?Wr(e):Wr.ceil(e)).getUTCFullYear()%1e4,t,4)}function xi(){return"+0000"}function wi(){return"%"}function Oi(e){return+e}function _i(e){return Math.floor(+e/1e3)}function ki(e){return new Date(e)}function Si(e){return e instanceof Date?+e:+new Date(+e)}function ji(e,t,n,r,o,i,a,l,u,c){var s=nn(),f=s.invert,d=s.domain,p=c(".%L"),h=c(":%S"),y=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),g=c("%b %d"),b=c("%B"),x=c("%Y");function w(e){return(u(e)<e?p:l(e)<e?h:a(e)<e?y:i(e)<e?m:r(e)<e?o(e)<e?v:g:n(e)<e?b:x)(e)}return s.invert=function(e){return new Date(f(e))},s.domain=function(e){return arguments.length?d(Array.from(e,Si)):d().map(ki)},s.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},s.tickFormat=function(e,t){return null==t?w:c(t)},s.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(On(n,e)):s},s.copy=function(){return en(s,ji(e,t,n,r,o,i,a,l,u,c))},s}function Ei(){return Pe.apply(ji(Zr,Jr,Mr,Pr,xr,gr,mr,hr,dr,oo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Pi(){return Pe.apply(ji(Xr,Qr,Gr,$r,Rr,zr,Lr,Dr,dr,io).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ci(){var e,t,n,r,o,i=0,a=1,l=Xt,u=!1;function c(t){return null==t||isNaN(t=+t)?o:l(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}function s(e){return function(t){var n,r;return arguments.length?([n,r]=t,l=e(n,r),c):[l(0),l(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(u=!!e,c):u},c.interpolator=function(e){return arguments.length?(l=e,c):l},c.range=s($t),c.rangeRound=s(Kt),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function Mi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ai(){var e=bn(Ci()(Xt));return e.copy=function(){return Mi(e,Ai())},Ce.apply(e,arguments)}function Di(){var e=Cn(Ci()).domain([1,10]);return e.copy=function(){return Mi(e,Di()).base(e.base())},Ce.apply(e,arguments)}function Ti(){var e=Tn(Ci());return e.copy=function(){return Mi(e,Ti()).constant(e.constant())},Ce.apply(e,arguments)}function Li(){var e=Rn(Ci());return e.copy=function(){return Mi(e,Li()).exponent(e.exponent())},Ce.apply(e,arguments)}function Ni(){return Li.apply(null,arguments).exponent(.5)}function zi(){var e=[],t=Xt;function n(n){if(null!=n&&!isNaN(n=+n))return t((Qe(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(He),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map(((n,r)=>t(r/(e.length-1))))},n.quantiles=function(t){return Array.from({length:t+1},((n,r)=>Yn(e,r/t)))},n.copy=function(){return zi(t).domain(e)},Ce.apply(n,arguments)}function Ii(e,t){void 0===t&&(t=e,e=$t);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function Ri(){var e,t,n,r,o,i,a,l=0,u=.5,c=1,s=1,f=Xt,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(s*e<s*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=Ii(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([l,u,c]=a,e=i(l=+l),t=i(u=+u),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),s=t<e?-1:1,p):[l,u,c]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h($t),p.rangeRound=h(Kt),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(l),t=a(u),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),s=t<e?-1:1,p}}function Fi(){var e=bn(Ri()(Xt));return e.copy=function(){return Mi(e,Fi())},Ce.apply(e,arguments)}function Bi(){var e=Cn(Ri()).domain([.1,1,10]);return e.copy=function(){return Mi(e,Bi()).base(e.base())},Ce.apply(e,arguments)}function Ui(){var e=Tn(Ri());return e.copy=function(){return Mi(e,Ui()).constant(e.constant())},Ce.apply(e,arguments)}function Wi(){var e=Rn(Ri());return e.copy=function(){return Mi(e,Wi()).exponent(e.exponent())},Ce.apply(e,arguments)}function Vi(){return Wi.apply(null,arguments).exponent(.5)}ro=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,u=e.shortMonths,c=po(o),s=ho(o),f=po(i),d=ho(i),p=po(a),h=ho(a),y=po(l),m=ho(l),v=po(u),g=ho(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:No,e:No,f:Bo,g:Qo,G:Jo,H:zo,I:Io,j:Ro,L:Fo,m:Uo,M:Wo,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Oi,s:_i,S:Vo,u:Ho,U:qo,V:Ko,w:Go,W:Yo,x:null,X:null,y:Xo,Y:Zo,Z:ei,"%":wi},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:ti,e:ti,f:ai,g:vi,G:bi,H:ni,I:ri,j:oi,L:ii,m:li,M:ui,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Oi,s:_i,S:ci,u:si,U:fi,V:pi,w:hi,W:yi,x:null,X:null,y:mi,Y:gi,Z:xi,"%":wi},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:So,e:So,f:Ao,g:wo,G:xo,H:Eo,I:Eo,j:jo,L:Mo,m:ko,M:Po,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:_o,Q:To,s:Lo,S:Co,u:mo,U:vo,V:go,w:yo,W:bo,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:wo,Y:xo,Z:Oo,"%":Do};function O(e,t){return function(n){var r,o,i,a=[],l=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++l<c;)37===e.charCodeAt(l)&&(a.push(e.slice(u,l)),null!=(o=ao[r=e.charAt(++l)])?r=e.charAt(++l):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=l+1);return a.push(e.slice(u,l)),a.join("")}}function _(e,t){return function(n){var r,o,i=no(1900,void 0,1);if(k(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=to(no(i.y,0,1))).getUTCDay(),r=o>4||0===o?Fr.ceil(r):Fr(r),r=zr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=eo(no(i.y,0,1))).getDay(),r=o>4||0===o?wr.ceil(r):wr(r),r=gr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?to(no(i.y,0,1)).getUTCDay():eo(no(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,to(i)):eo(i)}}function k(e,t,n,r){for(var o,i,a=0,l=t.length,u=n.length;a<l;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in ao?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(t,b),x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),oo=ro.format,ro.parse,io=ro.utcFormat,ro.utcParse;var Hi=["linear","time","log","sqrt"];function qi(e){return"function"==typeof e?ue(e.copy)&&ue(e.domain)&&ue(e.range):"string"==typeof e&&Hi.includes(e)}function $i(e,t){return!(!e.scale||(e.scale.x||e.scale.y)&&!e.scale[t])}function Ki(e,t){if(!e.data)return"linear";var n=ce(e[t]);return xe(e.data.map((function(e){var r=B()(n(e))?n(e)[t]:n(e);return void 0!==r?r:e[t]})))?"time":"linear"}function Gi(e){if(qi(e)){var t="scale".concat(function(e){return e&&e[0].toUpperCase()+e.slice(1)}(e));return n[t]()}return xn()}function Yi(e,t){var n=Qi(e,t);return n?"string"==typeof n?Gi(n):n:Gi(function(e,t){var n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),n)return xe(n)?"time":"linear"}(e,t)||Ki(e,t))}function Xi(){return xn()}function Qi(e,t){if($i(e,t)){var n=e.scale[t]||e.scale;return qi(n)?ue(n)?n:Gi(n):void 0}}function Zi(e,t){return function(e,t){if($i(e,t)){var n=e.scale[t]||e.scale;return"string"==typeof n?n:ea(n)}}(e,t)||Ki(e,t)}var Ji=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function ea(e){if("string"==typeof e)return e;var t=Ji.filter((function(t){return void 0!==e[t.method]}))[0];return t?t.name:void 0}var ta="@@__IMMUTABLE_ITERABLE__@@",na="@@__IMMUTABLE_RECORD__@@",ra="@@__IMMUTABLE_LIST__@@",oa="@@__IMMUTABLE_MAP__@@";function ia(e){return!(!e||!e[ta])}function aa(e){return!(!e||!e[na])}function la(e){return ia(e)||aa(e)}function ua(e){return!(!e||!e[ra])}function ca(e){return!(!e||!e[oa])}function sa(e,t){return ia(e)?e.reduce((function(e,n,r){var o=n;return t&&t[r]&&(o=sa(n)),e[r]=o,e}),ua(e)?[]:{}):e}function fa(e){return function(e){if(Array.isArray(e))return da(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return da(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?da(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pa(e){return la(e)?sa(e,{errorX:!0,errorY:!0}):e}function ha(e){return ia(e)?e.size:e.length}function ya(e,t){var n=(B()(e.domain)?e.domain[t]:e.domain)||Yi(e,t).domain(),r=e.samples||1,o=Math.max.apply(Math,fa(n)),i=Math.min.apply(Math,fa(n)),a=pe(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function ma(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!t)return e;var r=t;"x"!==t&&"y"!==t||(r="_".concat(t));var o="ascending"===n?"asc":"desc";return z()(e,r,o)}function va(e,t,n){var r=function(e){return void 0!==e},o=je(t.x),i=Se(t.x),a=je(t.y),l=Se(t.y),u=function(e){return function(t){return r(t)&&t<e}},c=function(e){return function(t){return r(t)&&t>e}},s=u(o),f=u(a),d=c(i),p=c(l);return e.map((function(e){var t=e._x,o=e._y,i=e._y0,u=e._y1;(s(t)||d(t))&&(t=null);var c=r(i)?i:n,h=r(u)?u:o;return r(h)?(r(c)||!f(h)&&!p(h)||(o=null),(f(c)&&f(h)||p(c)&&p(h))&&(o=i=u=null),f(c)&&!f(h)&&(i=a),p(c)&&!p(h)&&(i=l),Object.assign({},e,P()({_x:t,_y:o,_y0:i,_y1:u},M()))):e}))}function ga(e,t){var n=ka(e,t),r=Sa(e,t),o=ja(e,t),i=W()([].concat(fa(n),fa(r),fa(o)));return 0===i.length?null:i.reduce((function(e,t,n){return e[t]=n+1,e}),{})}function ba(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=ha(e);if(r>t){var o=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter((function(e,t){return(t+n)%o==0}))}return e}function xa(e,t,n){if(!Array.isArray(e)&&!ia(e)||ha(e)<1)return[];var r,o=["x","y","y0"],i=(n=Array.isArray(n)?n:o).reduce((function(e,n){var r;return e[n]=ce(void 0!==t[r=n]?t[r]:r),e}),{}),a=D()(n,o)&&"_x"===t.x&&"_y"===t.y&&"_y0"===t.y0;!1===a&&(r={x:-1!==n.indexOf("x")?ga(t,"x"):void 0,y:-1!==n.indexOf("y")?ga(t,"y"):void 0,y0:-1!==n.indexOf("y0")?ga(t,"y"):void 0});var l=a?e:e.reduce((function(e,t,o){var a=pa(t),l={x:o,y:a},u=n.reduce((function(e,t){var n=i[t](a),o=void 0!==n?n:l[t];return void 0!==o&&("string"==typeof o&&r[t]?(e["".concat(t,"Name")]=o,e["_".concat(t)]=r[t][o]):e["_".concat(t)]=o),e}),{}),c=Object.assign({},u,a);return L()(c)||e.push(c),e}),[]),u=function(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:Zi(t,"x"),y:Zi(t,"y")};if("log"!==r.x&&"log"!==r.y)return e;var o=function(e,t){return"log"!==r[t]||0!==e["_".concat(t)]};return e.map((function(e){return o(e,"x")&&o(e,"y")&&o(e,"y0")?e:function(e){var t=o(e,"x")?e._x:n,r=o(e,"y")?e._y:n,i=o(e,"y0")?e._y0:n;return Object.assign({},e,{_x:t,_y:r,_y0:i})}(e)}))}(ma(l,t.sortKey,t.sortOrder),t);return function(e,t){var n,r=!!e.eventKey,o=ue(n=e.eventKey)?n:null==n?function(){}:R()(n);return t.map((function(e,t){if(void 0!==e.eventKey)return e;if(r){var n=o(e,t);return void 0!==n?Object.assign({eventKey:n},e):e}return e}))}(t,u)}function wa(e){var t=ya(e,"x"),n=ya(e,"y"),r=t.map((function(e,t){return{x:e,y:n[t]}}));return r}function Oa(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function _a(e){return e.data?xa(e.data,e):xa(wa(e),e)}function ka(e,t){var n=e.tickValues,r=e.tickFormat;return(n&&(Array.isArray(n)||n[t])?n[t]||n:r&&Array.isArray(r)?r:[]).filter((function(e){return"string"==typeof e}))}function Sa(e,t){if(!e.categories)return[];var n=Oa(e,t),r=n&&n.filter((function(e){return"string"==typeof e}));return r?ke(r):[]}function ja(e,t){if(!Array.isArray(e.data)&&!ia(e.data))return[];var n=ce(void 0===e[t]?t:e[t]);return ma(e.data.reduce((function(e,t){return e.push(pa(t)),e}),[]),e.sortKey,e.sortOrder).reduce((function(e,t){var r=pa(t);return e.push(n(r)),e}),[]).filter((function(e){return"string"==typeof e})).reduce((function(e,t){return null!=t&&-1===e.indexOf(t)&&e.push(t),e}),[])}function Ea(e){var t=function(e){return e&&e.type?e.type.role:""},n=t(e);if("portal"===n){var r=j().Children.toArray(e.props.children);n=r.length?t(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}var Pa=r(4295),Ca=r.n(Pa),Ma=r(2829),Aa=r.n(Ma);function Da(e){return function(e){if(Array.isArray(e))return Ta(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ta(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ta(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ta(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function La(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(e){return"max"===n?Math.max.apply(Math,Da(e)):Math.min.apply(Math,Da(e))},o="max"===n?-1/0:1/0,i=!1,a=e.flat().reduce((function(e,n){var o=void 0!==n["_".concat(t,"0")]?n["_".concat(t,"0")]:n["_".concat(t)],a=void 0!==n["_".concat(t,"1")]?n["_".concat(t,"1")]:n["_".concat(t)],l=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([e,l])}),o);return i?new Date(a):a}function Na(e,t){var n=ue(e)?e:Fa,r=ue(t)?t:za;return function(e,t){var o=Ua(e,t);if(o)return r(o,e,t);var i=Oa(e,t),a=i?Ra(e,t,i):n(e,t);return a?r(a,e,t):void 0}}function za(e,t,n){return function(e,t,n){return"log"!==Zi(t,n)?e:(o=(r=e)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(e,t,n){if(!t.domainPadding)return e;var r=Ha(t,n),o=Va(t,n),i=function(e,t){var n=function(e){return Array.isArray(e)?{left:e[0],right:e[1]}:{left:e,right:e}};return B()(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}(t,n);if(!i.left&&!i.right)return e;var a=je(e),l=Se(e),u=ae(t,fe(n,t.horizontal)),c=Math.abs(u[0]-u[1]),s=Math.max(c-i.left-i.right,1),f=Math.abs(l.valueOf()-a.valueOf())/s*c,d=f*i.left/c,p=f*i.right/c,h={min:a.valueOf()-d,max:l.valueOf()+p},y=B()(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,m=function(e,t){return"min"===t&&a>=0&&e<=0||"max"===t&&l<=0&&e>=0?0:e};if((a>=0&&h.min<=0||l<=0&&h.max>=0)&&!1!==y){var v={left:Math.abs(l-a)*i.left/c,right:Math.abs(l-a)*i.right/c},g={min:m(a.valueOf()-v.left,"min"),max:m(l.valueOf()+v.right,"max")},b={left:Math.abs(g.max-g.min)*i.left/c,right:Math.abs(g.max-g.min)*i.right/c};h={min:m(a.valueOf()-b.left,"min"),max:m(l.valueOf()+b.right,"max")}}var x={min:void 0!==r?r:h.min,max:void 0!==o?o:h.max};return a instanceof Date||l instanceof Date?Ba(new Date(x.min),new Date(x.max)):Ba(x.min,x.max)}(e,t,n),t,n)}function Ia(e,t){return Na()(e,t)}function Ra(e,t,n){var r=n||Oa(e,t),o=e.polar,i=e.startAngle,a=void 0===i?0:i,l=e.endAngle,u=void 0===l?360:l;if(r){var c=Ha(e,t),s=Va(e,t),f=be(r)?Sa(e,t):[],d=0===f.length?null:f.reduce((function(e,t,n){return e[t]=n+1,e}),{}),p=d?r.map((function(e){return d[e]})):r,h=Ba(void 0!==c?c:je(p),void 0!==s?s:Se(p));return o&&"x"===t&&360===Math.abs(a-u)?qa(h,p):h}}function Fa(e,t,n){var r=n||_a(e),o=e.polar,i=e.startAngle,a=void 0===i?0:i,l=e.endAngle,u=void 0===l?360:l,c=Ha(e,t),s=Va(e,t);if(r.length<1)return void 0!==c&&void 0!==s?Ba(c,s):void 0;var f=Ba(void 0!==c?c:La(r,t,"min"),void 0!==s?s:La(r,t,"max"));return o&&"x"===t&&360===Math.abs(a-u)?qa(f,function(e,t){var n="_".concat(t);return e.flat().map((function(e){return e[n]&&void 0!==e[n][1]?e[n][1]:e[n]}))}(r,t)):f}function Ba(e,t){var n,r,o,i;return Number(e)===Number(t)?(r=0===(n=t)?2*Math.pow(10,-10):Math.pow(10,-10),o=n instanceof Date?new Date(Number(n)-1):Number(n)-r,i=n instanceof Date?new Date(Number(n)+1):Number(n)+r,0===n?[0,i]:[o,i]):[e,t]}function Ua(e,t){var n=Ha(e,t),r=Va(e,t);return B()(e.domain)&&e.domain[t]?e.domain[t]:Array.isArray(e.domain)?e.domain:void 0!==n&&void 0!==r?Ba(n,r):void 0}function Wa(e,t){var n=Ua(e,t);if(n)return n;var r=_a(e),o=r.reduce((function(e,t){return t._y0<e?t._y0:e}),1/0);return Na((function(){return Fa(e,t,r)}),(function(n){return za(function(n){if("x"===t)return n;var r=o!==1/0?o:0,i=Va(e,t),a=Ha(e,t),l=void 0!==i?i:Se(n,r);return Ba(void 0!==a?a:je(n,r),l)}(n),e,t)}))(e,t)}function Va(e,t){return B()(e.maxDomain)&&void 0!==e.maxDomain[t]?e.maxDomain[t]:"number"==typeof e.maxDomain||Ca()(e.maxDomain)?e.maxDomain:void 0}function Ha(e,t){return B()(e.minDomain)&&void 0!==e.minDomain[t]?e.minDomain[t]:"number"==typeof e.minDomain||Ca()(e.minDomain)?e.minDomain:void 0}function qa(e,t){var n=Aa()(t.sort((function(e,t){return e-t}))),r=n[1]-n[0];return[e[0],e[1]+r]}function $a(e){var t=function(e){return e&&e.type?e.type.role:""},n=t(e);if("portal"===n){var r=j().Children.toArray(e.props.children);n=r.length?t(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function Ka(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||r}function Ga(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return void 0!==t.label?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function Ya(e,t){var n=Ka(e);return"perpendicular"===n||"vertical"===n&&(90===t||270===t)?"middle":t<=90||t>270?"start":"end"}function Xa(e,t){var n=Ka(e),r=function(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}(t);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function Qa(e,t){var n=e.labelPlacement,r=e.datum;if(!n||"vertical"===n)return 0;var o=void 0!==t?t%360:Za(e,r),i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}function Za(e,t){var n=G(t).x;return re(e.scale.x(n))%360}function Ja(e,t){var n=e.scale,r=e.data,o=e.style,i=e.horizontal,a=e.polar,l=e.width,u=e.height,c=e.theme,s=e.labelComponent,f=e.disableInlineStyles,d=r[t],p=Za(e,d),h=a?Ya(e,p):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.style,r=e.horizontal,o=t._y>=0?1:-1,i=n&&n.labels||{};return t.verticalAnchor||i.verticalAnchor?t.verticalAnchor||i.verticalAnchor:r?o>=0?"start":"end":"middle"}(e,d),y=a?Xa(e,p):function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}(e,d),m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.style&&e.style.labels||{};return void 0===t.angle?n.angle:t.angle}(e,d),v=Ga(e,d,t),g=Ka(e),b=function(e,t){var n=e.polar,r=Y(e,t),o=r.x,i=r.y;if(!n)return{x:o,y:i};var a=function(e,t){var n=e.style,r=Za(e,t),o=ee((n.labels||{}).padding,e)||0,i=ne(r);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(e,t);return{x:o+a.x,y:i+a.y}}(e,d),x=b.x,w=b.y,O=function(e,t){if(e.polar)return{};var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.horizontal,r=ee((e.style.labels||{}).padding,e)||0,o=t._y<0?-1:1;return{x:n?o*r:0,y:n?0:-1*o*r}}(e,t);return{dx:n.x,dy:n.y}}(e,d),_={angle:m,data:r,datum:d,disableInlineStyles:f,horizontal:i,index:t,polar:a,scale:n,labelPlacement:g,text:v,textAnchor:h,verticalAnchor:y,x,y:w,dx:O.dx,dy:O.dy,width:l,height:u,style:o.labels};if(!Q(s))return _;var k=c&&c.tooltip||{};return $()({},_,K(k,["style"]))}const el=Math.PI,tl=2*el,nl=1e-6,rl=tl-nl;function ol(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function il(){return new ol}ol.prototype=il.prototype={constructor:ol,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,o,i){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(e,t,n,r,o){e=+e,t=+t,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,l=n-e,u=r-t,c=i-e,s=a-t,f=c*c+s*s;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>nl)if(Math.abs(s*l-u*c)>nl&&o){var d=n-i,p=r-a,h=l*l+u*u,y=d*d+p*p,m=Math.sqrt(h),v=Math.sqrt(f),g=o*Math.tan((el-Math.acos((h+f-y)/(2*m*v)))/2),b=g/v,x=g/m;Math.abs(b-1)>nl&&(this._+="L"+(e+b*c)+","+(t+b*s)),this._+="A"+o+","+o+",0,0,"+ +(s*d>c*p)+","+(this._x1=e+x*l)+","+(this._y1=t+x*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,o,i){e=+e,t=+t,i=!!i;var a=(n=+n)*Math.cos(r),l=n*Math.sin(r),u=e+a,c=t+l,s=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>nl||Math.abs(this._y1-c)>nl)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%tl+tl),f>rl?this._+="A"+n+","+n+",0,1,"+s+","+(e-a)+","+(t-l)+"A"+n+","+n+",0,1,"+s+","+(this._x1=u)+","+(this._y1=c):f>nl&&(this._+="A"+n+","+n+",0,"+ +(f>=el)+","+s+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const al=il;var ll=Array.prototype.slice;function ul(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function cl(e){return function(){return e}}function sl(e){this._context=e}function fl(e){return new sl(e)}function dl(e){return e[0]}function pl(e){return e[1]}function hl(e,t){var n=cl(!0),r=null,o=fl,i=null;function a(a){var l,u,c,s=(a=ul(a)).length,f=!1;for(null==r&&(i=o(c=al())),l=0;l<=s;++l)!(l<s&&n(u=a[l],l,a))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+e(u,l,a),+t(u,l,a));if(c)return i=null,c+""||null}return e="function"==typeof e?e:void 0===e?dl:cl(e),t="function"==typeof t?t:void 0===t?pl:cl(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:cl(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:cl(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:cl(!!e),a):n},a.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),a):o},a.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),a):r},a}function yl(e,t,n){var r=null,o=cl(!0),i=null,a=fl,l=null;function u(u){var c,s,f,d,p,h=(u=ul(u)).length,y=!1,m=new Array(h),v=new Array(h);for(null==i&&(l=a(p=al())),c=0;c<=h;++c){if(!(c<h&&o(d=u[c],c,u))===y)if(y=!y)s=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),f=c-1;f>=s;--f)l.point(m[f],v[f]);l.lineEnd(),l.areaEnd()}y&&(m[c]=+e(d,c,u),v[c]=+t(d,c,u),l.point(r?+r(d,c,u):m[c],n?+n(d,c,u):v[c]))}if(p)return l=null,p+""||null}function c(){return hl().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?dl:cl(+e),t="function"==typeof t?t:cl(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?pl:cl(+n),u.x=function(t){return arguments.length?(e="function"==typeof t?t:cl(+t),r=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:cl(+t),u):e},u.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:cl(+e),u):r},u.y=function(e){return arguments.length?(t="function"==typeof e?e:cl(+e),n=null,u):t},u.y0=function(e){return arguments.length?(t="function"==typeof e?e:cl(+e),u):t},u.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:cl(+e),u):n},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(n)},u.lineX1=function(){return c().x(r).y(t)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:cl(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),u):i},u}sl.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var ml=gl(fl);function vl(e){this._curve=e}function gl(e){function t(t){return new vl(e(t))}return t._curve=e,t}function bl(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(gl(e)):t()._curve},e}function xl(){return bl(hl().curve(ml))}function wl(){var e=yl().curve(ml),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return bl(n())},delete e.lineX0,e.lineEndAngle=function(){return bl(r())},delete e.lineX1,e.lineInnerRadius=function(){return bl(o())},delete e.lineY0,e.lineOuterRadius=function(){return bl(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(gl(e)):t()._curve},e}vl.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};const Ol=Math.abs,_l=Math.atan2,kl=Math.cos,Sl=Math.max,jl=Math.min,El=Math.sin,Pl=Math.sqrt,Cl=1e-12,Ml=Math.PI,Al=Ml/2,Dl=2*Ml;function Tl(e){return e>1?0:e<-1?Ml:Math.acos(e)}function Ll(e){return e>=1?Al:e<=-1?-Al:Math.asin(e)}function Nl(e){return e.innerRadius}function zl(e){return e.outerRadius}function Il(e){return e.startAngle}function Rl(e){return e.endAngle}function Fl(e){return e&&e.padAngle}function Bl(e,t,n,r,o,i,a,l){var u=n-e,c=r-t,s=a-o,f=l-i,d=f*u-s*c;if(!(d*d<Cl))return[e+(d=(s*(t-i)-f*(e-o))/d)*u,t+d*c]}function Ul(e,t,n,r,o,i,a){var l=e-n,u=t-r,c=(a?i:-i)/Pl(l*l+u*u),s=c*u,f=-c*l,d=e+s,p=t+f,h=n+s,y=r+f,m=(d+h)/2,v=(p+y)/2,g=h-d,b=y-p,x=g*g+b*b,w=o-i,O=d*y-h*p,_=(b<0?-1:1)*Pl(Sl(0,w*w*x-O*O)),k=(O*b-g*_)/x,S=(-O*g-b*_)/x,j=(O*b+g*_)/x,E=(-O*g+b*_)/x,P=k-m,C=S-v,M=j-m,A=E-v;return P*P+C*C>M*M+A*A&&(k=j,S=E),{cx:k,cy:S,x01:-s,y01:-f,x11:k*(o/w-1),y11:S*(o/w-1)}}function Wl(){var e=Nl,t=zl,n=cl(0),r=null,o=Il,i=Rl,a=Fl,l=null;function u(){var u,c,s=+e.apply(this,arguments),f=+t.apply(this,arguments),d=o.apply(this,arguments)-Al,p=i.apply(this,arguments)-Al,h=Ol(p-d),y=p>d;if(l||(l=u=al()),f<s&&(c=f,f=s,s=c),f>Cl)if(h>Dl-Cl)l.moveTo(f*kl(d),f*El(d)),l.arc(0,0,f,d,p,!y),s>Cl&&(l.moveTo(s*kl(p),s*El(p)),l.arc(0,0,s,p,d,y));else{var m,v,g=d,b=p,x=d,w=p,O=h,_=h,k=a.apply(this,arguments)/2,S=k>Cl&&(r?+r.apply(this,arguments):Pl(s*s+f*f)),j=jl(Ol(f-s)/2,+n.apply(this,arguments)),E=j,P=j;if(S>Cl){var C=Ll(S/s*El(k)),M=Ll(S/f*El(k));(O-=2*C)>Cl?(x+=C*=y?1:-1,w-=C):(O=0,x=w=(d+p)/2),(_-=2*M)>Cl?(g+=M*=y?1:-1,b-=M):(_=0,g=b=(d+p)/2)}var A=f*kl(g),D=f*El(g),T=s*kl(w),L=s*El(w);if(j>Cl){var N,z=f*kl(b),I=f*El(b),R=s*kl(x),F=s*El(x);if(h<Ml&&(N=Bl(A,D,R,F,z,I,T,L))){var B=A-N[0],U=D-N[1],W=z-N[0],V=I-N[1],H=1/El(Tl((B*W+U*V)/(Pl(B*B+U*U)*Pl(W*W+V*V)))/2),q=Pl(N[0]*N[0]+N[1]*N[1]);E=jl(j,(s-q)/(H-1)),P=jl(j,(f-q)/(H+1))}}_>Cl?P>Cl?(m=Ul(R,F,A,D,f,P,y),v=Ul(z,I,T,L,f,P,y),l.moveTo(m.cx+m.x01,m.cy+m.y01),P<j?l.arc(m.cx,m.cy,P,_l(m.y01,m.x01),_l(v.y01,v.x01),!y):(l.arc(m.cx,m.cy,P,_l(m.y01,m.x01),_l(m.y11,m.x11),!y),l.arc(0,0,f,_l(m.cy+m.y11,m.cx+m.x11),_l(v.cy+v.y11,v.cx+v.x11),!y),l.arc(v.cx,v.cy,P,_l(v.y11,v.x11),_l(v.y01,v.x01),!y))):(l.moveTo(A,D),l.arc(0,0,f,g,b,!y)):l.moveTo(A,D),s>Cl&&O>Cl?E>Cl?(m=Ul(T,L,z,I,s,-E,y),v=Ul(A,D,R,F,s,-E,y),l.lineTo(m.cx+m.x01,m.cy+m.y01),E<j?l.arc(m.cx,m.cy,E,_l(m.y01,m.x01),_l(v.y01,v.x01),!y):(l.arc(m.cx,m.cy,E,_l(m.y01,m.x01),_l(m.y11,m.x11),!y),l.arc(0,0,s,_l(m.cy+m.y11,m.cx+m.x11),_l(v.cy+v.y11,v.cx+v.x11),y),l.arc(v.cx,v.cy,E,_l(v.y11,v.x11),_l(v.y01,v.x01),!y))):l.arc(0,0,s,w,x,y):l.lineTo(T,L)}else l.moveTo(0,0);if(l.closePath(),u)return l=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-Ml/2;return[kl(r)*n,El(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:cl(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:cl(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:cl(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:cl(+e),u):r},u.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:cl(+e),u):o},u.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:cl(+e),u):i},u.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:cl(+e),u):a},u.context=function(e){return arguments.length?(l=null==e?null:e,u):l},u}function Vl(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Hl(e){return e}function ql(){var e=Hl,t=Vl,n=null,r=cl(0),o=cl(Dl),i=cl(0);function a(a){var l,u,c,s,f,d=(a=ul(a)).length,p=0,h=new Array(d),y=new Array(d),m=+r.apply(this,arguments),v=Math.min(Dl,Math.max(-Dl,o.apply(this,arguments)-m)),g=Math.min(Math.abs(v)/d,i.apply(this,arguments)),b=g*(v<0?-1:1);for(l=0;l<d;++l)(f=y[h[l]=l]=+e(a[l],l,a))>0&&(p+=f);for(null!=t?h.sort((function(e,n){return t(y[e],y[n])})):null!=n&&h.sort((function(e,t){return n(a[e],a[t])})),l=0,c=p?(v-d*b)/p:0;l<d;++l,m=s)u=h[l],s=m+((f=y[u])>0?f*c:0)+b,y[u]={data:a[u],index:l,value:f,startAngle:m,endAngle:s,padAngle:g};return y}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:cl(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:cl(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:cl(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:cl(+e),a):i},a}function $l(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class Kl{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}class Gl{constructor(e){this._context=e}lineStart(){this._point=0}lineEnd(){}point(e,t){if(e=+e,t=+t,0==this._point++)this._x0=e,this._y0=t;else{const n=$l(this._x0,this._y0),r=$l(this._x0,this._y0=(this._y0+t)/2),o=$l(e,this._y0),i=$l(e,t);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...o,...i)}}}function Yl(e){return new Kl(e,!0)}function Xl(e){return new Kl(e,!1)}function Ql(e){return new Gl(e)}function Zl(e){return e.source}function Jl(e){return e.target}function eu(e){let t=Zl,n=Jl,r=dl,o=pl,i=null,a=null;function l(){let l;const u=ll.call(arguments),c=t.apply(this,u),s=n.apply(this,u);if(null==i&&(a=e(l=al())),a.lineStart(),u[0]=c,a.point(+r.apply(this,u),+o.apply(this,u)),u[0]=s,a.point(+r.apply(this,u),+o.apply(this,u)),a.lineEnd(),l)return a=null,l+""||null}return l.source=function(e){return arguments.length?(t=e,l):t},l.target=function(e){return arguments.length?(n=e,l):n},l.x=function(e){return arguments.length?(r="function"==typeof e?e:cl(+e),l):r},l.y=function(e){return arguments.length?(o="function"==typeof e?e:cl(+e),l):o},l.context=function(t){return arguments.length?(null==t?i=a=null:a=e(i=t),l):i},l}function tu(){return eu(Yl)}function nu(){return eu(Xl)}function ru(){const e=eu(Ql);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const ou=Pl(3),iu={draw(e,t){const n=.59436*Pl(t+jl(t/28,.75)),r=n/2,o=r*ou;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-o,-r),e.lineTo(o,r),e.moveTo(-o,r),e.lineTo(o,-r)}},au={draw(e,t){const n=Pl(t/Ml);e.moveTo(n,0),e.arc(0,0,n,0,Dl)}},lu={draw(e,t){const n=Pl(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},uu=Pl(1/3),cu=2*uu,su={draw(e,t){const n=Pl(t/cu),r=n*uu;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},fu={draw(e,t){const n=.62625*Pl(t);e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},du={draw(e,t){const n=.87559*Pl(t-jl(t/7,2));e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},pu={draw(e,t){const n=Pl(t),r=-n/2;e.rect(r,r,n,n)}},hu={draw(e,t){const n=.4431*Pl(t);e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},yu=El(Ml/10)/El(7*Ml/10),mu=El(Dl/10)*yu,vu=-kl(Dl/10)*yu,gu={draw(e,t){const n=Pl(.8908130915292852*t),r=mu*n,o=vu*n;e.moveTo(0,-n),e.lineTo(r,o);for(let t=1;t<5;++t){const i=Dl*t/5,a=kl(i),l=El(i);e.lineTo(l*n,-a*n),e.lineTo(a*r-l*o,l*r+a*o)}e.closePath()}},bu=Pl(3),xu={draw(e,t){const n=-Pl(t/(3*bu));e.moveTo(0,2*n),e.lineTo(-bu*n,-n),e.lineTo(bu*n,-n),e.closePath()}},wu=Pl(3),Ou={draw(e,t){const n=.6824*Pl(t),r=n/2,o=n*wu/2;e.moveTo(0,-n),e.lineTo(o,r),e.lineTo(-o,r),e.closePath()}},_u=-.5,ku=Pl(3)/2,Su=1/Pl(12),ju=3*(Su/2+1),Eu={draw(e,t){const n=Pl(t/ju),r=n/2,o=n*Su,i=r,a=n*Su+n,l=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(l,u),e.lineTo(_u*r-ku*o,ku*r+_u*o),e.lineTo(_u*i-ku*a,ku*i+_u*a),e.lineTo(_u*l-ku*u,ku*l+_u*u),e.lineTo(_u*r+ku*o,_u*o-ku*r),e.lineTo(_u*i+ku*a,_u*a-ku*i),e.lineTo(_u*l+ku*u,_u*u-ku*l),e.closePath()}},Pu={draw(e,t){const n=.6189*Pl(t-jl(t/6,1.7));e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},Cu=[au,lu,su,pu,gu,xu,Eu],Mu=[au,du,Pu,Ou,iu,hu,fu];function Au(e,t){let n=null;function r(){let r;if(n||(n=r=al()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"==typeof e?e:cl(e||au),t="function"==typeof t?t:cl(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"==typeof t?t:cl(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:cl(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}function Du(){}function Tu(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Lu(e){this._context=e}function Nu(e){return new Lu(e)}function zu(e){this._context=e}function Iu(e){return new zu(e)}function Ru(e){this._context=e}function Fu(e){return new Ru(e)}function Bu(e,t){this._basis=new Lu(e),this._beta=t}Lu.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:Tu(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Tu(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},zu.prototype={areaStart:Du,areaEnd:Du,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Tu(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Ru.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Tu(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Bu.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,l=t[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(1-this._beta)*(i+r*l));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Uu=function e(t){function n(e){return 1===t?new Lu(e):new Bu(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Wu(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Vu(e,t){this._context=e,this._k=(1-t)/6}Vu.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:Wu(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Wu(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Hu=function e(t){function n(e){return new Vu(e,t)}return n.tension=function(t){return e(+t)},n}(0);function qu(e,t){this._context=e,this._k=(1-t)/6}qu.prototype={areaStart:Du,areaEnd:Du,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Wu(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const $u=function e(t){function n(e){return new qu(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ku(e,t){this._context=e,this._k=(1-t)/6}Ku.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Wu(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Gu=function e(t){function n(e){return new Ku(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Yu(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Cl){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Cl){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,s=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*c+e._x1*e._l23_2a-t*e._l12_2a)/s,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/s}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function Xu(e,t){this._context=e,this._alpha=t}Xu.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Yu(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Qu=function e(t){function n(e){return t?new Xu(e,t):new Vu(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Zu(e,t){this._context=e,this._alpha=t}Zu.prototype={areaStart:Du,areaEnd:Du,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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Yu(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const Ju=function e(t){function n(e){return t?new Zu(e,t):new qu(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function ec(e,t){this._context=e,this._alpha=t}ec.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Yu(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const tc=function e(t){function n(e){return t?new ec(e,t):new Ku(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function nc(e){this._context=e}function rc(e){return new nc(e)}function oc(e){return e<0?-1:1}function ic(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),l=(i*o+a*r)/(r+o);return(oc(i)+oc(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function ac(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function lc(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,o+l*t,i-l,a-l*n,i,a)}function uc(e){this._context=e}function cc(e){this._context=new sc(e)}function sc(e){this._context=e}function fc(e){return new uc(e)}function dc(e){return new cc(e)}function pc(e){this._context=e}function hc(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=o[t]/i[t-1],i[t]-=n,a[t]-=n*a[t-1];for(o[r-1]=a[r-1]/i[r-1],t=r-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t<r-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function yc(e){return new pc(e)}function mc(e,t){this._context=e,this._t=t}function vc(e){return new mc(e,.5)}function gc(e){return new mc(e,0)}function bc(e){return new mc(e,1)}function xc(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<l;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function wc(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Oc(e,t){return e[t]}function _c(e){const t=[];return t.key=e,t}function kc(){var e=cl([]),t=wc,n=xc,r=Oc;function o(o){var i,a,l=Array.from(e.apply(this,arguments),_c),u=l.length,c=-1;for(const e of o)for(i=0,++c;i<u;++i)(l[i][c]=[0,+r(e,l[i].key,c,o)]).data=e;for(i=0,a=ul(t(l));i<u;++i)l[a[i]].index=i;return n(l,a),l}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:cl(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:cl(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?wc:"function"==typeof e?e:cl(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?xc:e,o):n},o}function Sc(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}xc(e,t)}}function jc(e,t){if((l=e.length)>0)for(var n,r,o,i,a,l,u=0,c=e[t[0]].length;u<c;++u)for(i=a=0,n=0;n<l;++n)(o=(r=e[t[n]][u])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)}function Ec(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,l=0;a<n;++a)l+=e[a][r][1]||0;o[r][1]+=o[r][0]=-l/2}xc(e,t)}}function Pc(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var l=0,u=0,c=0;l<o;++l){for(var s=e[t[l]],f=s[a][1]||0,d=(f-(s[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,c+=d*f}n[a-1][1]+=n[a-1][0]=i,u&&(i-=c/u)}n[a-1][1]+=n[a-1][0]=i,xc(e,t)}}function Cc(e){var t=e.map(Mc);return wc(e).sort((function(e,n){return t[e]-t[n]}))}function Mc(e){for(var t,n=-1,r=0,o=e.length,i=-1/0;++n<o;)(t=+e[n][1])>i&&(i=t,r=n);return r}function Ac(e){var t=e.map(Dc);return wc(e).sort((function(e,n){return t[e]-t[n]}))}function Dc(e){for(var t,n=0,r=-1,o=e.length;++r<o;)(t=+e[r][1])&&(n+=t);return n}function Tc(e){return Ac(e).reverse()}function Lc(e){var t,n,r=e.length,o=e.map(Dc),i=Cc(e),a=0,l=0,u=[],c=[];for(t=0;t<r;++t)n=i[t],a<l?(a+=o[n],u.push(n)):(l+=o[n],c.push(n));return c.reverse().concat(u)}function Nc(e){return wc(e).reverse()}nc.prototype={areaStart:Du,areaEnd:Du,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},uc.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:lc(this,this._t0,ac(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,lc(this,ac(this,n=ic(this,e,t)),n);break;default:lc(this,this._t0,n=ic(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(cc.prototype=Object.create(uc.prototype)).point=function(e,t){uc.prototype.point.call(this,t,e)},sc.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}},pc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=hc(e),o=hc(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},mc.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var zc=function(e){return null!=(void 0!==e._y1?e._y1:e._y)&&null!==e._y0},Ic=function(e){return function(t){return e.x(void 0!==t._x1?t._x1:t._x)}},Rc=function(e){return function(t){return e.y(void 0!==t._y1?t._y1:t._y)}},Fc=function(e){return"curve".concat(function(e){return e&&e[0].toUpperCase()+e.slice(1)}(e))},Bc=function(e){var t=e.interpolation;if("function"==typeof t)return t;if("string"==typeof t){var n=e.polar,r=e.openCurve,o=(void 0===r?!n:r)?Fc(t):function(e){return"".concat(Fc(e),"Closed")}(t);return s[o]}return fl},Uc=function(e){var t=e.polar,n=e.scale,r=e.horizontal;return t?xl().defined(zc).curve(Bc(e)).angle(function(e){return function(t){return-1*e.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2}}(n)).radius(Rc(n)):hl().defined(zc).curve(Bc(e)).x(r?Rc(n):Ic(n)).y(r?Ic(n):Rc(n))},Wc=["desc","id","tabIndex","origin"];function Vc(){return Vc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vc.apply(this,arguments)}function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $c=(0,S.forwardRef)((function(e,t){var n,r=e.desc,o=e.id,i=e.tabIndex,a=(e.origin,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Wc)),l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach((function(t){qc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:null===(n=ee(o,e))||void 0===n?void 0:n.toString(),tabIndex:ee(i,e)},a);return r?j().createElement("path",Vc({},l,{ref:t}),j().createElement("desc",null,r)):j().createElement("path",Vc({},l,{ref:t}))}));function Kc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Gc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gc(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qc={startsWith:["data-","aria-"],exactMatch:[]};function Zc(e,t){if(null==e)throw new Error(t)}var Jc=function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach((function(t){Xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);return Object.fromEntries(Object.entries(t).filter((function(e){return function(e){return!(!function(e){var t=!1;return Qc.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(e)&&(t=!0)})),t}(e)&&!function(e){return Qc.exactMatch.includes(e)}(e))}(Kc(e,1)[0])})).map((function(t){var n=Kc(t,2);return[n[0],ee(n[1],e)]})))},es=function(e,t){return S.cloneElement(e,Jc(t))};function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ts(Object(n),!0).forEach((function(t){rs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var os=function(e){return null!=(void 0!==e._y1?e._y1:e._y)&&null!==e._y0},is=function(e){return function(t){return e.x(void 0!==t._x1?t._x1:t._x)}},as=function(e){return function(t){return e.y(void 0!==t._y1?t._y1:t._y)}},ls=function(e){return function(t){return e.y(t._y0)}},us={groupComponent:j().createElement("g",null),pathComponent:j().createElement($c,null),role:"presentation",shapeRendering:"auto"},cs=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.desc,e),r=ee(e.id,e),o=te(Object.assign({fill:"black"},e.style),e),i=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:o,tabIndex:i})}(ns(ns({},us),e)),n=t.ariaLabel,r=t.role,o=t.shapeRendering,i=t.className,a=t.polar,l=t.origin,u=t.data,c=t.pathComponent,s=t.events,f=t.groupComponent,d=t.clipPath,p=t.id,h=t.style,y=t.desc,m=t.tabIndex,v=Jc(t),g=a&&l?"translate(".concat(l.x,", ").concat(l.y,")"):void 0,b=t.transform||g,x=h.stroke&&"none"!==h.stroke&&"transparent"!==h.stroke,w=function(e){var t=e.polar,n=e.scale,r=Bc(e);return t?wl().defined(os).curve(r).angle(function(e){return function(t){return-1*e.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2}}(n)).outerRadius(as(n)).innerRadius(ls(n)):function(e){var t=e.horizontal,n=e.scale,r=Bc(e);return t?yl().defined(os).curve(r).x0(ls(n)).x1(as(n)).y(is(n)):yl().defined(os).curve(r).x(is(n)).y1(as(n)).y0(ls(n))}(e)}(t),O=x&&Uc(t),_=h.stroke?"none":h.fill,k=ns(ns({"aria-label":n,className:i,role:r,shapeRendering:o,transform:b},s),{},{clipPath:d,tabIndex:m}),S=j().cloneElement(c,Object.assign({key:"".concat(p,"-area"),style:Object.assign({},h,{stroke:_}),d:w(u),desc:y,tabIndex:m},k,v)),E=x?j().cloneElement(c,Object.assign({key:"".concat(p,"-area-stroke"),style:Object.assign({},h,{fill:"none"}),d:O(u)},k)):null;return x?j().cloneElement(f,v,[S,E]):S},ss=r(660),fs=r.n(ss);function ds(){return ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ds.apply(this,arguments)}var ps=j().forwardRef((function(e,t){return j().createElement("svg",ds({ref:t},e))})),hs=j().createContext(void 0);function ys(e){return function(t){e.forEach((function(e){"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}function ms(){return ms=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ms.apply(this,arguments)}function vs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(n),!0).forEach((function(t){xs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}hs.displayName="PortalContext";var ws={className:"VictoryContainer",portalComponent:j().createElement(ps,null),portalZIndex:99,responsive:!0,role:"img"};function Os(e){var t,n,r=bs(bs({},ws),e),o=r.title,i=r.desc,a=r.width,l=r.height,u=r.responsive,c=(0,S.useRef)(null),s=(t=j().useState(),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return vs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vs(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=s[0],d=s[1],p=(0,S.useRef)(fs()("victory-container-")),h=r.containerId??p.current,y=function(e){return"".concat(h,"-").concat(e)},m=Jc(r),v=u?{width:"100%",height:"100%"}:{width:a,height:l},g=u?"0 0 ".concat(a," ").concat(l):void 0,b=u?r.preserveAspectRatio:void 0,x=[o&&y("title"),r["aria-labelledby"]].filter(Boolean).join(" ")||void 0,w=[i&&y("desc"),r["aria-describedby"]].filter(Boolean).join(" ")||void 0,O=y("title"),_=y("desc");return bs(bs({},r),{},{titleId:O,descId:_,dimensions:v,viewBox:g,preserveAspectRatio:b,ariaLabelledBy:x,ariaDescribedBy:w,userProps:m,portalRef:function(e){return d(e)},portalElement:f,localContainerRef:c})}var _s=function(e){var t=Os(e),n=t.role,r=t.title,o=t.desc,i=t.children,a=t.className,l=t.portalZIndex,u=t.portalComponent,c=t.width,s=t.height,f=t.style,d=t.tabIndex,p=t.responsive,h=t.events,y=t.ouiaId,m=t.ouiaSafe,v=t.ouiaType,g=t.dimensions,b=t.ariaDescribedBy,x=t.ariaLabelledBy,w=t.viewBox,O=t.preserveAspectRatio,_=t.userProps,k=t.titleId,S=t.descId,E=t.portalElement,P=t.portalRef,C=t.containerRef,M=t.localContainerRef;return j().useEffect((function(){if(null!=h&&h.onWheel){var e=function(e){return e.preventDefault()},t=null==C?void 0:C.current;return null==t||t.addEventListener("wheel",e),function(){null==t||t.removeEventListener("wheel",e)}}}),[]),j().createElement(hs.Provider,{value:{portalElement:E}},j().createElement("div",{className:a,style:bs(bs({},f),{},{width:p?null==f?void 0:f.width:g.width,height:p?null==f?void 0:f.height:g.height,pointerEvents:"none",touchAction:"none",position:"relative"}),"data-ouia-component-id":y,"data-ouia-component-type":v,"data-ouia-safe":m,ref:ys([M,C])},j().createElement("svg",ms({width:c,height:s,tabIndex:d,role:n,"aria-labelledby":x,"aria-describedby":b,viewBox:w,preserveAspectRatio:O,style:bs(bs({},g),{},{pointerEvents:"all"})},_,h),r?j().createElement("title",{id:k},r):null,o?j().createElement("desc",{id:S},o):null,i),j().createElement("div",{style:bs(bs({},g),{},{zIndex:l,position:"absolute",top:0,left:0})},j().cloneElement(u,{width:c,height:s,viewBox:w,preserveAspectRatio:O,style:bs(bs({},g),{},{overflow:"visible"}),ref:P}))))};_s.role="container";var ks=r(7709),Ss=r.n(ks),js=function(e){var t;return j().createElement("defs",null,j().createElement("clipPath",{id:null===(t=e.clipId)||void 0===t?void 0:t.toString()},e.children))},Es=["desc","id","tabIndex","origin"];function Ps(){return Ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ps.apply(this,arguments)}function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ms(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var As=(0,S.forwardRef)((function(e,t){var n,r=e.desc,o=e.id,i=e.tabIndex,a=(e.origin,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Es)),l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach((function(t){Ms(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({vectorEffect:"non-scaling-stroke",id:null===(n=ee(o,e))||void 0===n?void 0:n.toString(),tabIndex:ee(i,e)},a);return r?j().createElement("circle",Ps({},l,{ref:t}),j().createElement("desc",null,r)):j().createElement("circle",Ps({},l,{ref:t}))})),Ds=["desc","id","tabIndex","origin"];function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ts.apply(this,arguments)}function Ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ns(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zs=(0,S.forwardRef)((function(e,t){var n,r=e.desc,o=e.id,i=e.tabIndex,a=(e.origin,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Ds)),l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ls(Object(n),!0).forEach((function(t){Ns(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ls(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({vectorEffect:"non-scaling-stroke",id:null===(n=ee(o,e))||void 0===n?void 0:n.toString(),tabIndex:ee(i,e)},a);return r?j().createElement("rect",Ts({},l,{ref:t}),j().createElement("desc",null,r)):j().createElement("rect",Ts({},l,{ref:t}))}));function Is(e){return function(e){if(Array.isArray(e))return Rs(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Rs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rs(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Rs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fs(Object(n),!0).forEach((function(t){Us(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Us(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ws(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vs(e,t){return Vs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vs(e,t)}function Hs(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qs(e){return qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qs(e)}var $s=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vs(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qs(r);if(o){var n=qs(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Hs(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).clipId=void 0,t.clipId=Ss()(e)&&void 0!==e.clipId?e.clipId:fs()("victory-clip-"),t}return t=a,n=[{key:"calculateAttributes",value:function(e){var t=e.polar,n=e.origin,r=e.clipWidth,o=void 0===r?0:r,i=e.clipHeight,a=void 0===i?0:i,l=e.translateX,u=void 0===l?0:l,c=e.translateY,s=void 0===c?0:c,f=X({padding:e.clipPadding}),d=e.radius||oe(e);return{x:(t?n.x:u)-f.left,y:(t?n.y:s)-f.top,width:Math.max((t?d:o)+f.left+f.right,0),height:Math.max((t?d:a)+f.top+f.bottom,0)}}},{key:"renderClippedGroup",value:function(e,t){var n=Jc(e),r=e.style,o=e.events,i=e.transform,a=e.children,l=e.className,u=e.groupComponent,c=e.tabIndex,s=this.renderClipComponent(e,t),f=Object.assign({className:l,style:r,transform:i,key:"clipped-group-".concat(t),clipPath:"url(#".concat(t,")")},o);return j().cloneElement(u,Bs(Bs({},f),{},{tabIndex:c},n),[s].concat(Is(j().Children.toArray(a))))}},{key:"renderGroup",value:function(e){var t=e.style,n=e.events,r=e.transform,o=e.children,i=e.className,a=e.groupComponent,l=e.tabIndex;return j().cloneElement(a,Object.assign({className:i,style:t,transform:r,"aria-label":e["aria-label"],tabIndex:l},n),o)}},{key:"renderClipComponent",value:function(e,t){var n,r=e.polar,o=e.origin,i=e.clipWidth,a=void 0===i?0:i,l=e.clipHeight,u=void 0===l?0:l,c=e.translateX,s=void 0===c?0:c,f=e.translateY,d=void 0===f?0:f,p=e.circleComponent,h=e.rectComponent,y=e.clipPathComponent,m=X({padding:e.clipPadding}),v=m.top,g=m.bottom,b=m.left,x=m.right;if(r){var w=e.radius||oe(e),O={r:Math.max(w+b+x,w+v+g,0),cx:o.x-b,cy:o.y-v};n=j().cloneElement(p,O)}else{var _={x:s-b,y:d-v,width:Math.max(a+b+x,0),height:Math.max(u+v+g,0)};n=j().cloneElement(h,_)}return j().cloneElement(y,Object.assign({key:"clip-path-".concat(t)},e,{clipId:t}),n)}},{key:"getClipValue",value:function(e,t){var n={x:e.clipWidth,y:e.clipHeight};if(void 0!==n[t])return n[t];var r=ae(e,t);return r&&Math.abs(r[0]-r[1])||void 0}},{key:"getTranslateValue",value:function(e,t){var n={x:e.translateX,y:e.translateY};if(void 0!==n[t])return n[t];var r=ae(e,t);return r?Math.min.apply(Math,Is(r)):void 0}},{key:"render",value:function(){var e=this.getClipValue(this.props,"y"),t=this.getClipValue(this.props,"x");if(void 0===t||void 0===e)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),o=$()({},this.props,{clipHeight:e,clipWidth:t,translateX:n,translateY:r});return this.renderClippedGroup(o,this.clipId)}}],n&&Ws(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);function Ks(e){}$s.displayName="VictoryClipContainer",$s.role="container",$s.defaultProps={circleComponent:j().createElement(As,null),rectComponent:j().createElement(zs,null),clipPathComponent:j().createElement(js,null),groupComponent:j().createElement("g",null)};var Gs=r(1850);function Ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Xs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ys(Object(n),!0).forEach((function(t){Qs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zs={groupComponent:j().createElement("g",null)},Js=function(e){var t=Xs(Xs({},Zs),e),n=j().useContext(hs),r=Array.isArray(t.children)?t.children[0]:t.children,o=t.groupComponent,i=r&&r.props||{},a=i.groupComponent?{groupComponent:o,standalone:!1}:{},l=$()(a,i,K(t,["children","groupComponent"])),u=r&&j().cloneElement(r,l);return null!=n&&n.portalElement?(0,Gs.createPortal)(u,n.portalElement):u};Js.role="portal";var ef=["children","desc","id","origin","tabIndex","title"];function tf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rf=function(e){var t,n=e.children,r=e.desc,o=e.id,i=(e.origin,e.tabIndex),a=e.title,l=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ef),u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tf(Object(n),!0).forEach((function(t){nf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:null===(t=ee(o,e))||void 0===t?void 0:t.toString(),tabIndex:ee(i,e)},l);return j().createElement("text",u,a&&j().createElement("title",null,a),r&&j().createElement("desc",null,r),n)},of=["desc","id","tabIndex","origin"];function af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uf=function(e){e.desc;var t,n=e.id,r=e.tabIndex,o=(e.origin,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,of)),i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?af(Object(n),!0).forEach((function(t){lf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:null===(t=ee(n,e))||void 0===t?void 0:t.toString(),tabIndex:ee(r,e)},o);return j().createElement("tspan",i)},cf=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(e,t){return[e,cf(t)].join(" ")}),cf(e)).trim();if(null==e||"string"==typeof e)return e;var o=[];for(var i in e)if(e.hasOwnProperty(i)){var a=e[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function sf(e){var t={grayscale:["#cccccc","#969696","#636363","#252525"],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"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return e?t[e]:t.grayscale}var ff=r(1594),df=r.n(ff);function pf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||hf(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hf(e,t){if(e){if("string"==typeof e)return yf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yf(e,t):void 0}}function yf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mf={"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},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}},vf={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},gf={em:1,ex:.5},bf={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},xf=function(e){return Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g)},wf=function(e,t,n){var r=function(e){return e*Math.PI/180}(n);return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},Of=function(e,t){var n,r=null===(n=e.match(/[a-zA-Z%]+/))||void 0===n?void 0:n[0],o=Number(e.match(/[0-9.,]+/));return r?vf.hasOwnProperty(r)?o*vf[r]:gf.hasOwnProperty(r)?(t?o*t:o*bf.fontSize)*gf[r]:o:o||0},_f=function(e,t){var n=Array.isArray(e)?e[t]:e,r=$()({},n,bf);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:Of(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:Of(String(r.fontSize))})},kf=function(e,t){if(void 0===e||""===e||null===e)return 0;var n,r=xf(e).map((function(e,n){var r,o,i=e.toString().length,a=_f(t,n),l=a.fontSize,u=a.letterSpacing,c=(r=a.fontFamily,o=r.split(",").map((function(e){return e.replace(/'|"/g,"")})).find((function(e){return mf[e]}))||"Helvetica",mf[o]),s=e.toString().split("").map((function(e){return e.charCodeAt(0)<c.widths.length?c.widths[e.charCodeAt(0)]:c.avg})).reduce((function(e,t){return t+e}),0)*l;return s+u*Math.max(i-1,0)}));return Math.max.apply(Math,function(e){if(Array.isArray(e))return yf(e)}(n=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||hf(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},Sf=function(e,t){var n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=function(e,t){return void 0===e||""===e||null===e?0:xf(e).reduce((function(e,n,r){var o=_f(t,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return e+o.lineHeight*i}),0)}(e,t),o=kf(e,t);return{width:n?wf(o,r,n):o,height:1.05*(n?wf(r,o,n):r)}},jf=df()((function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300"),e.setAttribute("aria-hidden","true");var t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t})),Ef=function(e){return e?"".concat(e.angle,":").concat(e.fontFamily,":").concat(e.fontSize,":").concat(e.letterSpacing,":").concat(e.lineHeight):"null"},Pf=df()((function(e,t){var n,r,o=jf();o.isConnected||(null===(n=(r=jf.cache).clear)||void 0===n||n.call(r),o=jf());var i=xf(e),a=0;for(var l of i.entries()){var u=pf(l,2),c=u[0],s=u[1],f=document.createElementNS("http://www.w3.org/2000/svg","tspan"),d=_f(t,c);f.style.fontFamily=d.fontFamily,f.style.fontSize="".concat(d.fontSize,"px"),f.style.lineHeight=d.lineHeight,f.style.fontFamily=d.fontFamily,f.style.letterSpacing=d.letterSpacing,f.textContent=s,f.setAttribute("x","0"),f.setAttribute("y","".concat(a)),o.appendChild(f),a+=d.lineHeight*f.getBoundingClientRect().height}var p=o.getBoundingClientRect().width;return o.innerHTML="",{width:null!=t&&t.angle?wf(p,a,null==t?void 0:t.angle):p,height:null!=t&&t.angle?wf(a,p,null==t?void 0:t.angle):a}}),(function(e,t){var n=Array.isArray(e)?e.join():e,r=Array.isArray(t)?t.map(Ef).join():Ef(t);return"".concat(n,"::").concat(r)})),Cf={impl:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;return!r||n?Sf(e,t):Pf(e,t)}},Mf=function(e,t){return Cf.impl(e,t)};function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Df(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){Tf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lf(e){return function(e){if(Array.isArray(e))return Nf(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Nf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nf(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var zf={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},If=function(e,t){return e.datum?Y(e,e.datum)[t]:0},Rf=function(e){var t=e&&e.fontSize;if("number"==typeof t)return t;if(null==t)return zf.fontSize;if("string"==typeof t){var n=Number(t.replace("px",""));return isNaN(n)?zf.fontSize:n}return zf.fontSize},Ff=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},Bf=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!L()(t)||Array.isArray(n)&&!L()(n)},Uf=function(e,t){var n=e.direction,r=e.textAnchor,o=e.x,i=e.dx;if("rtl"===n)return o-t;switch(r){case"middle":return Math.round(o-t/2);case"end":return Math.round(o-t);default:return o+(i||0)}},Wf=function(e,t){var n=e.verticalAnchor,r=e.y,o=e.originalDy,i=r+(void 0===o?0:o);switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-t);default:return Math.floor(i-t/2)}},Vf=function(e,t){return Bf(e)?function(e,t){var n=e.dy,r=e.dx,o=e.transform,i=e.backgroundStyle,a=e.backgroundPadding,l=e.backgroundComponent,u=e.inline,c=e.y,s=t.map((function(e,o){var i=Ff(t,o-1),l=e.textSize,s=e.fontSize*e.lineHeight,f=Math.ceil(s),d=Ff(a,o),p=Ff(a,o-1),h=u&&r||0,y=o&&!u?i.fontSize*i.lineHeight+p.top+p.bottom:n-.5*s-(e.fontSize-e.capHeight);return{textHeight:f,labelSize:l,heightWithPadding:f+d.top+d.bottom,widthWithPadding:l.width+d.left+d.right+h,y:c,fontSize:e.fontSize,dy:y}}));return s.map((function(t,n){var r=Uf(e,t.labelSize.width),f=s.slice(0,n+1).reduce((function(e,t){return e+t.dy}),c),d=Ff(a,n),p=t.heightWithPadding,h=u?function(e,t,n){var r=e.textAnchor,o=t.map((function(e){return e.widthWithPadding})),i=-o.reduce((function(e,t){return e+t}),0)/2;switch(r){case"start":return o.reduce((function(e,t,r){return r<n?e+t:e}),0);case"end":return o.reduce((function(e,t,r){return r>n?e-t:e}),0);default:return o.reduce((function(e,t,r){return r===n?e+t/2:e+(r<n?t:0)}),i)}}(e,s,n)+r-d.left:r,y=u?Wf(e,p)-d.top:f,m={key:"tspan-background-".concat(n),height:p,style:Ff(i,n),width:t.widthWithPadding,transform:o,x:h-d.left,y};return j().cloneElement(l,$()({},l.props,m))}))}(e,t):function(e,t){var n=e.dx,r=void 0===n?0:n,o=e.transform,i=e.backgroundComponent,a=e.backgroundStyle,l=e.inline,u=e.backgroundPadding,c=e.capHeight,s=t.map((function(e){return e.textSize})),f=l?Math.max.apply(Math,Lf(s.map((function(e){return e.height})))):s.reduce((function(e,n,r){var o=r?0:c/2;return e+n.height*(t[r].lineHeight-o)}),0),d=l?s.reduce((function(e,t,n){var o=n?r:0;return e+t.width+o}),0):Math.max.apply(Math,Lf(s.map((function(e){return e.width})))),p=Uf(e,d),h=Wf(e,f),y={key:"background",height:f+u.top+u.bottom,style:a,transform:o,width:d+u.left+u.right,x:l?p-u.left:p+r-u.left,y:h};return j().cloneElement(i,$()({},i.props,y))}(e,t)},Hf=function(e,t,n){var r=t.inline,o=Ff(e,n);return n&&!r?function(e,t,n){var r=Ff(e,t),o=Ff(e,t-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,l=o.fontSize-o.capHeight,u=r.fontSize-r.capHeight,c=i-o.fontSize/2+r.fontSize/2-i/2+a/2-u/2+l/2;return Bf(n)?c+r.backgroundPadding.top+o.backgroundPadding.bottom:c}(e,n,t):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},qf={backgroundComponent:j().createElement(zs,null),groupComponent:j().createElement("g",null),direction:"inherit",textComponent:j().createElement(rf,null),tspanComponent:j().createElement(uf,null),capHeight:.71,lineHeight:1},$f=function(e){var t=function(e){var t=function(e,t){if(null!=e){if(Array.isArray(e))return e.map((function(e){return ee(e,t)}));var n=ee(e,t);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(e.text,e),n=function(e,t){if(t.disableInlineStyles){var n=te(e,t);return{fontSize:Rf(n)}}var r=function(e){var n=te(e?$()({},e,zf):zf,t);return Object.assign({},n,{fontSize:Rf(n)})};return Array.isArray(e)&&!L()(e)?e.map((function(e){return r(e)})):r(e)}(e.style,Object.assign({},e,{text:t})),r=function(e,t){if(e)return Array.isArray(e)&&!L()(e)?e.map((function(e){return te(e,t)})):te(e,t)}(e.backgroundStyle,Object.assign({},e,{text:t,style:n})),o=function(e){return e.backgroundPadding&&Array.isArray(e.backgroundPadding)?e.backgroundPadding.map((function(t){return X({padding:ee(t,e)})})):X({padding:ee(e.backgroundPadding,e)})}(Object.assign({},e,{text:t,style:n,backgroundStyle:r})),i=ee(e.id,e);return Object.assign({},e,{backgroundStyle:r,backgroundPadding:o,style:n,text:t,id:i})}(Df(Df({},qf),e));if(null===t.text||void 0===t.text)return null;var n=function(e){var t=ee(e.ariaLabel,e),n=Ff(e.style),r=function(e){var t=ee(e.lineHeight,e);return Array.isArray(t)&&L()(t)?[1]:t}(e),o=e.direction?ee(e.direction,e):"inherit",i=e.textAnchor?ee(e.textAnchor,e):n.textAnchor||"start",a=e.verticalAnchor?ee(e.verticalAnchor,e):n.verticalAnchor||"middle",l=e.dx?ee(e.dx,e):0,u=function(e,t,n){var r=e.dy?ee(e.dy,e):0,o=e.inline?1:e.text.length,i=ee(e.capHeight,e),a=t?ee(t,e):"middle",l=Lf(Array(o).keys()).map((function(t){return Ff(e.style,t).fontSize})),u=Lf(Array(o).keys()).map((function(e){return Ff(n,e)}));if("start"===a)return r+(i/2+u[0]/2)*l[0];if(e.inline)return"end"===a?r+(i/2-u[0]/2)*l[0]:r+i/2*l[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*u[0])*l[0]:r+(i/2+(.5-o/2)*u[0])*l[0];var c=Lf(Array(o).keys()).reduce((function(e,t){return e+(i/2+(.5-o)*u[t])*l[t]/o}),0);return"end"===a?r+c:r+c/2+i/2*u[o-1]*l[o-1]}(e,a,r),c=void 0!==e.x?e.x:If(e,"x"),s=void 0!==e.y?e.y:If(e,"y"),f=function(e,t,n){var r=e.polar,o=Ff(e.style),i=r?Qa(e):0,a=void 0===o.angle?ee(e.angle,e):o.angle,l=void 0===a?i:a,u=e.transform||o.transform,c=u&&ee(u,e);return c||l?cf(c,l&&{rotate:[l,t,n]}):void 0}(e,c,s);return Object.assign({},e,{ariaLabel:t,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:l,dy:u,originalDy:ee(e.dy,e),transform:f,x:c,y:s})}(t),r=n.text,o=n.style,i=n.capHeight,a=n.backgroundPadding,l=n.lineHeight,u=r.map((function(e,t){var n=Ff(o,t),r=Of("".concat(i,"em"),n.fontSize),u=Ff(l,t);return{style:n,fontSize:n.fontSize||zf.fontSize,capHeight:r,text:e,textSize:Mf(e,n),lineHeight:u,backgroundPadding:Ff(a,t)}})),c=function(e,t){var n=e.ariaLabel,r=e.inline,o=e.className,i=e.title,a=e.events,l=e.direction,u=e.text,c=e.textAnchor,s=e.dx,f=e.dy,d=e.transform,p=e.x,h=e.y,y=e.desc,m=e.id,v=e.tabIndex,g=e.tspanComponent,b=e.textComponent,x=Jc(e),w=Df(Df({"aria-label":n,key:"text"},a),{},{direction:l,dx:s,x:p,y:h+f,transform:d,className:o,title:i,desc:ee(y,e),tabIndex:ee(v,e),id:m},x),O=u.map((function(n,o){var i=t[o].style,a={key:"".concat(m,"-key-").concat(o),x:r?void 0:p,dx:r?s+t[o].backgroundPadding.left:s,dy:Hf(t,e,o),textAnchor:i.textAnchor||c,style:i,children:n};return j().cloneElement(g,a)}));return j().cloneElement(b,w,O)}(n,u);if(t.backgroundStyle){var s=[Vf(n,u),c],f=j().cloneElement(t.groupComponent,{},s);return t.renderInPortal?j().createElement(Js,null,f):f}return t.renderInPortal?j().createElement(Js,null,c):c};$f.displayName="VictoryLabel",$f.role="label",$f.defaultStyles=zf;var Kf=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],Gf="#252525",Yf="#969696",Xf={width:450,height:300,padding:50,colorScale:Kf},Qf={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:Gf,stroke:"transparent"},Zf=Object.assign({textAnchor:"middle"},Qf),Jf={area:Object.assign({style:{data:{fill:Gf},labels:Qf}},Xf),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Gf,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},Zf,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Qf}},Xf),bar:Object.assign({style:{data:{fill:Gf,padding:8,strokeWidth:0},labels:Qf}},Xf),boxplot:Object.assign({style:{max:{padding:8,stroke:Gf,strokeWidth:1},maxLabels:Object.assign({},Qf,{padding:3}),median:{padding:8,stroke:Gf,strokeWidth:1},medianLabels:Object.assign({},Qf,{padding:3}),min:{padding:8,stroke:Gf,strokeWidth:1},minLabels:Object.assign({},Qf,{padding:3}),q1:{padding:8,fill:Yf},q1Labels:Object.assign({},Qf,{padding:3}),q3:{padding:8,fill:Yf},q3Labels:Object.assign({},Qf,{padding:3})},boxWidth:20},Xf),candlestick:Object.assign({style:{data:{stroke:Gf,strokeWidth:1},labels:Object.assign({},Qf,{padding:5})},candleColors:{positive:"#ffffff",negative:Gf}},Xf),chart:Xf,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:Gf,strokeWidth:2},labels:Qf}},Xf),group:Object.assign({colorScale:Kf},Xf),histogram:Object.assign({style:{data:{fill:Yf,stroke:Gf,strokeWidth:2},labels:Qf}},Xf),legend:{colorScale:Kf,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Qf,title:Object.assign({},Qf,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:Gf,strokeWidth:2},labels:Qf}},Xf),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},Qf,{padding:20})},colorScale:Kf,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:Gf,stroke:"transparent",strokeWidth:0},labels:Qf}},Xf),stack:Object.assign({colorScale:Kf},Xf),tooltip:{style:Object.assign({},Qf,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Gf,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({},Qf,{padding:5,pointerEvents:"none"}),flyout:{stroke:Gf,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Xf)},ed=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],td="#ECEFF1",nd="#90A4AE",rd="#455A64",od="#212121",id={width:350,height:350,padding:50},ad={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:rd,stroke:"transparent",strokeWidth:0},ld=Object.assign({textAnchor:"middle"},ad),ud="round",cd="round",sd={grayscale:Jf,material:{area:Object.assign({style:{data:{fill:od},labels:ad}},id),axis:Object.assign({style:{axis:{fill:"transparent",stroke:nd,strokeWidth:2,strokeLinecap:ud,strokeLinejoin:cd},axisLabel:Object.assign({},ld,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:td,strokeDasharray:"10, 5",strokeLinecap:ud,strokeLinejoin:cd,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:nd,strokeWidth:1,strokeLinecap:ud,strokeLinejoin:cd},tickLabels:Object.assign({},ad,{fill:rd})}},id),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:rd,padding:8,strokeWidth:0},labels:ad}},id),boxplot:Object.assign({style:{max:{padding:8,stroke:rd,strokeWidth:1},maxLabels:Object.assign({},ad,{padding:3}),median:{padding:8,stroke:rd,strokeWidth:1},medianLabels:Object.assign({},ad,{padding:3}),min:{padding:8,stroke:rd,strokeWidth:1},minLabels:Object.assign({},ad,{padding:3}),q1:{padding:8,fill:rd},q1Labels:Object.assign({},ad,{padding:3}),q3:{padding:8,fill:rd},q3Labels:Object.assign({},ad,{padding:3})},boxWidth:20},id),candlestick:Object.assign({style:{data:{stroke:rd},labels:Object.assign({},ad,{padding:5})},candleColors:{positive:"#ffffff",negative:rd}},id),chart:id,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:rd,strokeWidth:2},labels:ad}},id),group:Object.assign({colorScale:ed},id),histogram:Object.assign({style:{data:{fill:rd,stroke:od,strokeWidth:2},labels:ad}},id),legend:{colorScale:ed,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ad,title:Object.assign({},ad,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:rd,strokeWidth:2},labels:ad}},id),pie:Object.assign({colorScale:ed,style:{data:{padding:8,stroke:td,strokeWidth:1},labels:Object.assign({},ad,{padding:20})}},id),scatter:Object.assign({style:{data:{fill:rd,opacity:1,stroke:"transparent",strokeWidth:0},labels:ad}},id),stack:Object.assign({colorScale:ed},id),tooltip:{style:Object.assign({},ad,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:od,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({},ad,{padding:5,pointerEvents:"none"}),flyout:{stroke:od,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},id)}};function fd(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function dd(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(e,t,n){var r=function(e){return(0===t?n[t+1]:n[t-1])[e]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(e){return(0===t?n[t+1]:n[t-1])[e]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(e){return{_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0}}}}}function pd(){return{onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}}}var hd=r(6354),yd=r.n(hd),md=r(4912),vd=r.n(md);function gd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bd(e){return function(e){if(Array.isArray(e))return xd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return xd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xd(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wd=/^onGlobal(.*)$/;function Od(e,t,n,r){var o,i=this,a=function(e){var r,o=(r=e.reduce((function(e,n){return void 0!==n.target?(Array.isArray(n.target)?n.target.includes(t):"".concat(n.target)==="".concat(t))?e.concat(n):e:e.concat(n)}),[]),void 0!==n&&"parent"!==t?r.filter((function(e){var t=e.eventKey,r=function(e){return!e||"".concat(e)==="".concat(n)};return Array.isArray(t)?t.some((function(e){return r(e)})):r(t)})):r);return Array.isArray(o)&&o.reduce((function(e,t){return t?Object.assign(e,t.eventHandlers):e}),{})},l=Array.isArray(i.componentEvents)?Array.isArray(e.events)?(o=i.componentEvents).concat.apply(o,bd(e.events)):i.componentEvents:e.events,u=l&&ue(r)?r(a(l),t):void 0;if(!e.sharedEvents)return u;var c=e.sharedEvents.getEvents,s=e.sharedEvents.events&&c(a(e.sharedEvents.events),t);return Object.assign({},s,u)}function _d(e,t,n,r){var o=this;if(L()(e))return{};var i=r||this.baseProps,a=function(e,t){var n=e.childName,r=e.target,a=e.key,l="props"===t?i:o.state||{},u=null!=n&&l[n]?l[n]:l;return"parent"===a?u.parent:u[a]&&u[a][r]},l=function(e,r){var l="parent"===t?e.childName:e.childName||n,u=e.target||t,c=function(t,n){var r=o.state||{};if(!ue(e.mutation))return r;var l=a({childName:n,key:t,target:u},"props"),c=a({childName:n,key:t,target:u},"state"),s=e.mutation(Object.assign({},l,c),i),f=r[n]||{},d=function(e){return s?function(e){return"parent"===u?Object.assign(e,gd({},t,Object.assign(e[t]||{},s))):Object.assign(e,gd({},t,Object.assign(e[t]||{},gd({},u,s))))}(e):function(e){return e[t]&&e[t][u]&&delete e[t][u],e[t]&&!Object.keys(e[t]).length&&delete e[t],e}(e)};return null!=n?Object.assign(r,gd({},n,d(f))):d(r)},s=function(t){var n=function(t){return"parent"===u?"parent":"all"===e.eventKey?i[t]?Object.keys(i[t]).filter((function(e){return"parent"!==e})):Object.keys(i).filter((function(e){return"parent"!==e})):void 0===e.eventKey&&"parent"===r?i[t]?Object.keys(i[t]):Object.keys(i):void 0!==e.eventKey?e.eventKey:r}(t);return Array.isArray(n)?n.reduce((function(e,n){return Object.assign(e,c(n,t))}),{}):c(n,t)},f="all"===l?Object.keys(i).filter((function(e){return"parent"!==e})):l;return Array.isArray(f)?f.reduce((function(e,t){return Object.assign(e,s(t))}),{}):s(f)},u=function(t,n,r,i){var a=e[i](t,n,r,o);if(!L()(a)){var u=function(e){var t=function(e){return ue(e.callback)&&e.callback},n=(Array.isArray(e)?e.map((function(e){return t(e)})):[t(e)]).filter((function(e){return!1!==e}));return n.length?function(){return n.forEach((function(e){return e()}))}:void 0}(a);o.setState(function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return Object.assign({},e,l(n,t))}),{}):l(e,t)}(a,r),u)}};return Object.keys(e).reduce((function(e,t){return e[t]=u,e}),{})}function kd(e,t,n){return e?Object.keys(e).reduce((function(r,o){return r[o]=function(r){return e[o](r,n,t,o)},r}),{}):{}}function Sd(e,t,n){var r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:"parent"===e?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function jd(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return r.reduce((function(r,o){var i=n[o],a=Ed(e,t[o],n[o],o);return r[o]=a||i,vd()(r,(function(e){return!L()(e)}))}),{})}function Ed(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=Object.keys(t);return o.reduce((function(o,i){var a=n[i]||{},l=t[i]||{};if("parent"===i){var u=Pd(e,l,a,{eventKey:i,target:"parent"});o[i]=void 0!==u?Object.assign({},a,u):a}else{var c=W()(Object.keys(l).concat(Object.keys(a)));o[i]=c.reduce((function(t,n){var o={eventKey:i,target:n,childName:r},u=Pd(e,l[n],a[n],o);return t[n]=void 0!==u?Object.assign({},a[n],u):a[n],vd()(t,(function(e){return!L()(e)}))}),{})}return vd()(o,(function(e){return!L()(e)}))}),{})}function Pd(e,t,n,r){var o=function(e,t){return"string"==typeof e[t]?"all"===e[t]||e[t]===r[t]:!!Array.isArray(e[t])&&e[t].map((function(e){return"".concat(e)})).includes(r[t])},i=Array.isArray(e)?e:[e];r.childName&&(i=e.filter((function(e){return o(e,"childName")})));var a=i.filter((function(e){return o(e,"target")}));if(!L()(a)){var l=a.filter((function(e){return o(e,"eventKey")}));if(!L()(l))return l.reduce((function(e,r){var o=(r&&ue(r.mutation)?r.mutation:function(){})(Object.assign({},t,n));return Object.assign({},e,o)}),{})}}function Cd(e,t){var n=Array.isArray(t)&&t.reduce((function(t,n){var r=e[n],o=r&&r.type&&r.type.defaultEvents,i=ue(o)?o(r.props):o;return Array.isArray(i)?t.concat.apply(t,bd(i)):t}),[]);return n&&n.length?n:void 0}function Md(e){var t=e.match(wd);return t&&t[1]&&t[1].toLowerCase()}var Ad=function(e){return vd()(e,(function(e,t){return wd.test(t)}))},Dd=function(e){return P()(e,(function(e,t){return wd.test(t)}))},Td=function(e){return Object.assign(e,{nativeEvent:e})},Ld=r(7491),Nd=r.n(Ld);const zd=e=>+e;function Id(e){return e*e}function Rd(e){return e*(2-e)}function Fd(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Bd(e){return e*e*e}function Ud(e){return--e*e*e+1}function Wd(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Vd=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),Hd=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),qd=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),$d=Math.PI,Kd=$d/2;function Gd(e){return 1==+e?1:1-Math.cos(e*Kd)}function Yd(e){return Math.sin(e*Kd)}function Xd(e){return(1-Math.cos($d*e))/2}function Qd(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function Zd(e){return Qd(1-+e)}function Jd(e){return 1-Qd(e)}function ep(e){return((e*=2)<=1?Qd(1-e):2-Qd(e-1))/2}function tp(e){return 1-Math.sqrt(1-e*e)}function np(e){return Math.sqrt(1- --e*e)}function rp(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var op=7.5625;function ip(e){return 1-ap(1-e)}function ap(e){return(e=+e)<.36363636363636365?op*e*e:e<.7272727272727273?op*(e-=.5454545454545454)*e+.75:e<.9090909090909091?op*(e-=.8181818181818182)*e+.9375:op*(e-=.9545454545454546)*e+.984375}function lp(e){return((e*=2)<=1?1-ap(1-e):ap(e-1)+1)/2}var up,cp,sp=1.70158,fp=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(sp),dp=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(sp),pp=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(sp),hp=2*Math.PI,yp=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=hp);function o(e){return t*Qd(- --e)*Math.sin((r-e)/n)}return o.amplitude=function(t){return e(t,n*hp)},o.period=function(n){return e(t,n)},o}(1,.3),mp=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=hp);function o(e){return 1-t*Qd(e=+e)*Math.sin((e+r)/n)}return o.amplitude=function(t){return e(t,n*hp)},o.period=function(n){return e(t,n)},o}(1,.3),vp=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=hp);function o(e){return((e=2*e-1)<0?t*Qd(-e)*Math.sin((r-e)/n):2-t*Qd(e)*Math.sin((r+e)/n))/2}return o.amplitude=function(t){return e(t,n*hp)},o.period=function(n){return e(t,n)},o}(1,.3),gp=function(e){if(null!==e)switch(typeof e){case"undefined":case"boolean":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":case"function":return!0;case"object":return e instanceof Date||Array.isArray(e)||B()(e)}return!1},bp=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<n?e:t}},xp=function(e,t){return function(n){return n>=1?t:function(){var r="function"==typeof e?e.apply(this,arguments):e,o="function"==typeof t?t.apply(this,arguments):t;return $t(r,o)(n)}}},wp=function(e,t){var n,r=function(e,t){return e!==t&&gp(e)&&gp(t)?"function"==typeof e||"function"==typeof t?xp(e,t):"object"==typeof e&&B()(e)||"object"==typeof t&&B()(t)?wp(e,t):$t(e,t):bp(e,t)},o=function(e){return Array.isArray(e)?z()(e,"key"):e},i={},a={},l=e,u=t;for(n in null!==l&&"object"==typeof l||(l={}),null!==u&&"object"==typeof u||(u={}),u)n in l?i[n]=r(o(l[n]),o(u[n])):a[n]=u[n];return function(e){for(n in i)a[n]=i[n](e);return a}},Op=0,_p=0,kp=0,Sp=0,jp=0,Ep=0,Pp="object"==typeof performance&&performance.now?performance:Date,Cp="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Mp(){return jp||(Cp(Ap),jp=Pp.now()+Ep)}function Ap(){jp=0}function Dp(){this._call=this._time=this._next=null}function Tp(e,t,n){var r=new Dp;return r.restart(e,t,n),r}function Lp(){jp=(Sp=Pp.now())+Ep,Op=_p=0;try{!function(){Mp(),++Op;for(var e,t=up;t;)(e=jp-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Op}()}finally{Op=0,function(){for(var e,t,n=up,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:up=t);cp=e,zp(r)}(),jp=0}}function Np(){var e=Pp.now(),t=e-Sp;t>1e3&&(Ep-=t,Sp=e)}function zp(e){Op||(_p&&(_p=clearTimeout(_p)),e-jp>24?(e<1/0&&(_p=setTimeout(Lp,e-Pp.now()-Ep)),kp&&(kp=clearInterval(kp))):(kp||(Sp=Pp.now(),kp=setInterval(Np,1e3)),Op=1,Cp(Lp)))}function Ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Dp.prototype=Tp.prototype={constructor:Dp,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Mp():+n)+(null==t?0:+t),this._next||cp===this||(cp?cp._next=this:up=this,cp=this),this._call=e,this._time=n,zp()},stop:function(){this._call&&(this._call=null,this._time=1/0,zp())}};var Rp=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){t.subscribers.forEach((function(e){e.callback(Mp()-e.startTime,e.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var t,n;return t=e,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=Tp(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(e,t){var n=this.subscribers.push({startTime:Mp(),callback:e,duration:this.shouldAnimate?t:0});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(e){null!==e&&this.subscribers[e-1]&&(delete this.subscribers[e-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&Ip(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Fp=j().createContext({transitionTimer:new Rp,animationTimer:new Rp});Fp.displayName="TimerContext";const Bp=Fp;function Up(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Wp=function(e){var t,n,r,o,i=e.duration,a=void 0===i?1e3:i,l=e.easing,u=void 0===l?"quadInOut":l,c=e.delay,s=void 0===c?0:c,f=e.data,d=e.children,p=e.onEnd,h=(r=j().useState({data:Array.isArray(f)?f[0]:f,animationInfo:{progress:0,animating:!1}}),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(r,o)||function(e,t){if(e){if("string"==typeof e)return Up(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Up(e,t):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=h[0],m=h[1],v=j().useContext(Bp).animationTimer,b=j().useRef(Array.isArray(f)?f.slice(1):[]),x=j().useRef(null),w=j().useRef(void 0),O=g[(t=u,n=t.charAt(0).toUpperCase()+t.slice(1),"ease".concat(n))];j().useEffect((function(){return b.current.length&&_(),function(){w.current?v.unsubscribe(w.current):v.stop()}}),[]),j().useEffect((function(){x.current&&y.animationInfo&&y.animationInfo.progress<1?m({data:x.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(v.unsubscribe(w.current),b.current=Array.isArray(f)?f:[f],_())}),[f]);var _=function(){if(b.current.length){var e=b.current[0];x.current=function(e,t){return e!==t&&gp(e)&&gp(t)?"function"==typeof e||"function"==typeof t?xp(e,t):B()(e)||B()(t)?wp(e,t):"string"==typeof e||"string"==typeof t?function(e,t){var n=function(e){return"string"==typeof e?e.replace(/,/g,""):e};return $t(n(e),n(t))}(e,t):$t(e,t):bp(e,t)}(y.data,e),s?setTimeout((function(){w.current=v.subscribe(k,a)}),s):w.current=v.subscribe(k,a)}else p&&p()},k=function(e){if(x.current){var t=a?e/a:1;if(t>=1)return m({data:x.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),w.current&&v.unsubscribe(w.current),b.current.shift(),void _();m({data:x.current(O(t)),animationInfo:{progress:t,animating:t<1}})}};return d(y.data,y.animationInfo)},Vp=r(5346),Hp=r.n(Vp);function qp(e,t){return(e.key||t).toString()}function $p(e){return e.reduce((function(e,t,n){return e[qp(t,n)]=t,e}),{})}function Kp(e,t){var n=!1,r=Object.keys(e).reduce((function(e,r){return r in t||(n=!0,e[r]=!0),e}),{});return n&&r}function Gp(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function Yp(e,t){var n=!1,r=!1,o=function(e,t){return e.map((function(i,a){return i&&i.props&&i.props.children&&t[a]?o(j().Children.toArray(e[a].props.children),j().Children.toArray(t[a].props.children)):function(e,t){if(!t||e.type!==t.type)return{};var o,i,a,l,u=(o=Gp(e),i=Gp(t),a=o&&$p(o),l=i&&$p(i),{entering:a&&Kp(l,a),exiting:l&&Kp(a,l)}||{}),c=u.entering,s=u.exiting;return n=n||!!s,r=r||!!c,{entering:c||!1,exiting:s||!1}}(i,t[a])}))},i=o(j().Children.toArray(e),j().Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function Xp(e,t,n){var r=t&&t.nodesWillExit,o=t&&t.nodesWillEnter,i=t&&t.nodesShouldEnter,a=t&&t.nodesShouldLoad,l=t&&t.nodesDoneLoad,u=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},s=function(e,t,r){return a?function(e,t,r){var o=Object.assign({},e,{onEnd:function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:e,data:t};var i=e.onLoad&&e.onLoad.after?e.onLoad.after:Hp();return{animate:o,data:t.map((function(e,n){return Object.assign({},e,i(e,n,t))}))}}(r,t):function(e,t,r,o){var i=Object.assign({},e,{onEnd:function(){n({nodesDoneLoad:!0})}});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:r};var a=i.onLoad&&i.onLoad.before?i.onLoad.before:Hp();return{animate:i,data:r.map((function(e,t){return Object.assign({},e,a(e,t,r))})),clipWidth:0}}(r,0,t)},f=function(e,t,r,o){return function(e,t,r,o,i){var a=e&&e.onExit,l=Object.assign({},e,a),u=r;if(o){e.onEnd=function(){n({nodesWillExit:!1})};var c=e.onExit&&e.onExit.before?e.onExit.before:Hp();u=r.map((function(e,t){var n=(e.key||t).toString();return o[n]?Object.assign({},e,c(e,t,r)):e}))}return{animate:l,data:u}}(o,0,r,e)},d=function(e,t,r,o){return i?function(e,t,r,o){var i=e&&e.onEnter,a=Object.assign({},e,i),l=t;if(r){a.onEnd=function(){n({nodesWillEnter:!1})};var u=a.onEnter&&a.onEnter.after?a.onEnter.after:Hp();l=t.map((function(e,n){var o=qp(e,n);return r[o]?Object.assign({},e,u(e,n,t)):e}))}return{animate:a,data:l}}(o,r,e):function(e,t,r,o,i){var a=e,l=r;if(o){a=Object.assign({},e,{onEnd:function(){n({nodesShouldEnter:!0})}});var u=e.onEnter&&e.onEnter.before?e.onEnter.before:Hp();l=r.map((function(e,t){var n=(e.key||t).toString();return o[n]?Object.assign({},e,u(e,t,r)):e}))}return{animate:a,data:l}}(o,0,r,e)},p=function(e,t){var n=e.props.animate;if(!e.type)return{};var r=e.props&&e.props.polar&&e.type.defaultPolarTransitions||e.type.defaultTransitions;if(r){var o=n[t]&&n[t].duration;return void 0!==o?o:r[t]&&r[t].duration}return{}};return function(n,a){var h=Gp(n)||[],y=$()({},e.animate,n.props.animate),m=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;y.onExit=$()({},y.onExit,m&&m.onExit),y.onEnter=$()({},y.onEnter,m&&m.onEnter),y.onLoad=$()({},y.onLoad,m&&m.onLoad);var v=u[a]||u[0];if(!l){var g={duration:void 0!==c.load?c.load:p(n,"onLoad")};return s(0,h,Object.assign({},y,g))}if(r){var b=v&&v.exiting,x=void 0!==c.exit?c.exit:p(n,"onExit"),w=b?{duration:x}:{delay:x};return f(b,0,h,Object.assign({},y,w))}if(o){var O=v&&v.entering,_=void 0!==c.enter?c.enter:p(n,"onEnter"),k=void 0!==c.move?c.move:n.props.animate&&n.props.animate.duration,S={duration:i&&O?_:k};return d(O,0,h,Object.assign({},y,S))}return!t&&y&&y.onExit?function(e,t){var n=e.onEnter&&e.onEnter.after?e.onEnter.after:Hp();return{data:t.map((function(e,r){return Object.assign({},e,n(e,r,t))}))}}(y,h):{animate:y,data:h}}}function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qp.apply(this,arguments)}function Zp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jp(e,t){return Jp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Jp(e,t)}function eh(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function th(e){return th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},th(e)}var nh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jp(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=th(r);if(o){var n=th(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return eh(this,e)});function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,e,t)).continuous=void 0,n.timer=void 0,n.transitionProps=void 0,n.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var r=n.props.children,o=r.props.polar;return n.continuous=!o&&r.type&&!0===r.type.continuous,n.timer=n.context.transitionTimer,n}return t=a,n=[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(e){var t=this;return Nd()(this.props,e)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,e),(function(){return t.timer.resumeAnimation()}))),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(e,t){var n=e.animate;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?e:null,nextProps:t};var r=Yp(j().Children.toArray(e.children),j().Children.toArray(t.children)),o=r.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:r.nodesWillEnter,childrenTransitions:r.childrenTransitions,nodesShouldEnter:r.nodesShouldEnter,oldProps:o?e:null,nextProps:t}}},{key:"getDomainFromChildren",value:function(e,t){var n=function(e){return e.reduce((function(e,r){if(r.type&&ue(r.type.getDomain)){var o=r.props&&r.type.getDomain(r.props,t);return o?e.concat(o):e}return r.props&&r.props.children?e.concat(n(j().Children.toArray(r.props.children))):e}),[])},r=j().Children.toArray(e.children)[0],o=r.props||{},i=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[t];if(!o.children&&i)return i;var a=n([r]);return 0===a.length?[0,1]:[je(a),Se(a)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}},{key:"pickDomainProps",value:function(e){var t,n=null===(t=e.animate)||void 0===t?void 0:t.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||e:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||e}},{key:"getClipWidth",value:function(e,t){var n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:function(){var n=ae(t.props,"x");return n?Math.abs(n[1]-n[0]):e.width}()}},{key:"render",value:function(){var e,t=this,n=this.pickProps(),r=null!==(e=this.props.animate)&&void 0!==e&&e.getTransitions?this.props.animate.getTransitions:Xp(n,this.state,(function(e){return t.setState(e)})),o=j().Children.toArray(n.children)[0],i=r(o);this.transitionProps=i;var a={x:this.getDomainFromChildren(this.pickDomainProps(n),"x"),y:this.getDomainFromChildren(n,"y")},l=this.getClipWidth(n,o),u=$()({domain:a,clipWidth:l},i,o.props),c=(n.animationWhitelist||[]).concat(["clipWidth"]),s=c.length?H()(u,c):u;return j().createElement(Wp,Qp({},u.animate,{data:s}),(function(e){if(o.props.groupComponent){var n=t.continuous?j().cloneElement(o.props.groupComponent,{clipWidth:e.clipWidth||0}):o.props.groupComponent;return j().cloneElement(o,$()({animate:null,animating:!0,groupComponent:n},e,u))}return j().cloneElement(o,$()({animate:null,animating:!0},e,u))}))}}],n&&Zp(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);function rh(e){return function(e){if(Array.isArray(e))return oh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return oh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oh(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function oh(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ih(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ah(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lh(e,t,n){return t&&ah(e.prototype,t),n&&ah(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ch(e,t)}function ch(e,t){return ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ch(e,t)}function sh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ph(e);if(t){var o=ph(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fh(this,n)}}function fh(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return dh(e)}function dh(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ph(e){return ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ph(e)}nh.displayName="VictoryTransition",nh.contextType=Bp;var hh=function(e){return!le(e._x)&&!le(e._y)},yh=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function mh(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(n){uh(o,n);var r=sh(o);function o(e){var t;return ih(this,o),(t=r.call(this,e)).state={},t.getEventState=Sd.bind(dh(t)),t.getScopedEvents=_d.bind(dh(t)),t.getEvents=function(e,n,r){return Od.call(dh(t),e,n,r,t.getScopedEvents)},t.externalMutations=t.getExternalMutations(t.props),t.calculatedState=t.getStateChanges(t.props),t.globalEvents={},t.prevGlobalEventKeys=[],t.boundGlobalEvents={},t.cacheValues(t.getCalculatedValues(e)),t}return lh(o,[{key:"shouldComponentUpdate",value:function(e){var t=this.getExternalMutations(e),n=this.props.animating||this.props.animate,r=!Nd()(t,this.externalMutations);if(n||r)return this.cacheValues(this.getCalculatedValues(e)),this.externalMutations=t,this.applyExternalMutations(e,t),!0;var o=this.getStateChanges(e);return Nd()(this.calculatedState,o)?!Nd()(this.props,e)&&(this.cacheValues(this.getCalculatedValues(e)),!0):(this.cacheValues(this.getCalculatedValues(e)),!0)}},{key:"componentDidMount",value:function(){var e=this,t=Object.keys(this.globalEvents);t.forEach((function(t){return e.addGlobalListener(t)})),this.prevGlobalEventKeys=t}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.getStateChanges(e);this.calculatedState=n;var r=Object.keys(this.globalEvents);yd()(this.prevGlobalEventKeys,r).forEach((function(e){return t.removeGlobalListener(e)})),yd()(r,this.prevGlobalEventKeys).forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var e=this;this.prevGlobalEventKeys.forEach((function(t){return e.removeGlobalListener(t)}))}},{key:"addGlobalListener",value:function(e){var t=this,n=function(n){var r=t.globalEvents[e];return r&&r(Td(n))};this.boundGlobalEvents[e]=n,window.addEventListener(Md(e),n)}},{key:"removeGlobalListener",value:function(e){window.removeEventListener(Md(e),this.boundGlobalEvents[e])}},{key:"getStateChanges",value:function(e){var n=this;if(!this.hasEvents)return{};var r=function(e,t){var r=$()({},n.getEventState(e,t),n.getSharedEventState(e,t));return L()(r)?void 0:r};return(t.components||yh).map((function(t){if(e.standalone||"parent"!==t.name)return void 0!==t.index?r(t.index,t.name):n.dataKeys.map((function(e){return r(e,t.name)})).filter(Boolean)})).filter(Boolean)}},{key:"applyExternalMutations",value:function(e,t){if(!L()(t)){var n=e.externalEventMutations.reduce((function(e,t){return ue(t.callback)?e.concat(t.callback):e}),[]),r=n.length?function(){n.forEach((function(e){return e()}))}:void 0;this.setState(t,r)}}},{key:"getCalculatedValues",value:function(t){var n=t.sharedEvents,r=Cd(t,e.expectedComponents),o=n&&ue(n.getEventState)?n.getEventState:function(){},i=this.getBaseProps(t,o);return{componentEvents:r,getSharedEventState:o,baseProps:i,dataKeys:Object.keys(i).filter((function(e){return"parent"!==e})),hasEvents:t.events||t.sharedEvents||r,events:this.getAllEvents(t)}}},{key:"getExternalMutations",value:function(e){var t=e.sharedEvents,n=e.externalEventMutations;return L()(n)||t?void 0:Ed(n,this.baseProps,this.state)}},{key:"cacheValues",value:function(e){var t=this;Object.keys(e).forEach((function(n){t[n]=e[n]}))}},{key:"getBaseProps",value:function(t,n){var r=(n||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),i=$()({},o,r),a=i.parentControlledProps,l=a?H()(i,a):{},u=$()({},l,t);return"function"==typeof e.getBaseProps?e.getBaseProps(u):{}}},{key:"getAllEvents",value:function(e){var t;return Array.isArray(this.componentEvents)?Array.isArray(e.events)?(t=this.componentEvents).concat.apply(t,rh(e.events)):this.componentEvents:e.events}},{key:"getComponentProps",value:function(t,n,r){var o=this.props.name||e.role,i=this.dataKeys&&this.dataKeys[r]||r,a="".concat(o,"-").concat(n,"-").concat(i),l=this.baseProps[i]&&this.baseProps[i][n]||this.baseProps[i];if(l||this.hasEvents){var u=t&&"object"==typeof t&&"props"in t?t.props:void 0;if(this.hasEvents){var c=this.getEvents(this.props,n,i),s=$()({index:r,key:a},this.getEventState(i,n),this.getSharedEventState(i,n),u,l,{id:a}),f=$()({},kd(c,i,s),s.events);return Object.assign({},s,{events:f})}return $()({index:r,key:a},u,l,{id:a})}}},{key:"renderContainer",value:function(e,t){var n=e.type&&"container"===e.type.role?this.getComponentProps(e,"parent","parent"):{};return n.events&&(this.globalEvents=Ad(n.events),n.events=Dd(n.events)),j().cloneElement(e,n,t)}},{key:"animateComponent",value:function(e,t){var n,r="object"==typeof e.animate&&(null===(n=e.animate)||void 0===n?void 0:n.animationWhitelist)||t,o=this.constructor;return j().createElement(nh,{animate:e.animate,animationWhitelist:r},j().createElement(o,e))}},{key:"renderContinuousData",value:function(e){var t=this,n=e.dataComponent,r=e.labelComponent,o=e.groupComponent,i=this.dataKeys.filter((function(e){return"all"!==e})),a=i.reduce((function(e,n){var o=e,i=t.getComponentProps(r,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(o=o.concat(j().cloneElement(r,i))),o}),[]),l=this.getComponentProps(n,"data","all"),u=[j().cloneElement(n,l)].concat(rh(a));return this.renderContainer(o,u)}},{key:"renderData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hh,r=e.dataComponent,o=e.labelComponent,i=e.groupComponent,a=this.dataKeys.reduce((function(e,o,i){var a=t.getComponentProps(r,"data",i);return n(a.datum)&&e.push(j().cloneElement(r,a)),e}),[]),l=this.dataKeys.map((function(e,n){var r=t.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return j().cloneElement(o,r)})).filter(Boolean),u=[].concat(rh(a),rh(l));return this.renderContainer(i,u)}}]),o}(e);return n}function vh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bh(e,t){return bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bh(e,t)}function xh(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wh(e){return wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wh(e)}var Oh={width:450,height:300,padding:50,interpolation:"linear"},_h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bh(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=wh(r);if(o){var n=wh(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return xh(this,e)});function a(){return vh(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=a.animationWhitelist,t=a.role,n=se(this.props,Oh,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&gh(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);_h.animationWhitelist=["data","domain","height","padding","style","width"],_h.defaultProps={containerComponent:j().createElement(_s,null),dataComponent:j().createElement(cs,null),groupComponent:j().createElement($s,null),labelComponent:j().createElement($f,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:sd.grayscale},_h.displayName="VictoryArea",_h.role="area",_h.continuous=!0,_h.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},_h.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(e,t,n){var r=function(e){return(0===t?n[t+1]:n[t-1])[e]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(e){return(0===t?n[t+1]:n[t-1])[e]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(e){return{_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0}}}},_h.getDomain=Wa,_h.getData=_a,_h.getBaseProps=function(e){return function(e,t){var n=se(e,t,"area"),r=Object.assign({},n,function(e){var t=e.polar,n=Z(e,"area"),r=J(e.style,n),o={x:ae(e,"x"),y:ae(e,"y")},i={x:Wa(e,"x"),y:Wa(e,"y")},a={x:Yi(e,"x").domain(i.x).range(e.horizontal?o.y:o.x),y:Yi(e,"y").domain(i.y).range(e.horizontal?o.x:o.y)},l=t?e.origin||ie(e):void 0,u=function(e,t){var n=_a(e);n.length<2&&(n=[]);var r=function(e){var n="log"===ea(t[e])?1/Number.MAX_SAFE_INTEGER:0,r=t[e].domain(),o=je(r),i=Se(r),a=n;return o<0&&i<=0?a=i:o>=0&&i>0&&(a=o),xe(r)?new Date(a):a};return n.map((function(e){var t=void 0!==e._y1?e._y1:e._y,n=void 0!==e._y0?e._y0:r("y"),o=void 0!==e._x1?e._x1:e._x,i=void 0!==e._x0?e._x0:r("x");return Object.assign({},e,{_y0:n,_y1:t,_x0:i,_x1:o})}))}(e,a);return{style:r,data:u,scale:a,domain:i,origin:l}}(n)),o=r.data,i=r.domain,a=r.events,l=r.groupComponent,u=r.height,c=r.horizontal,s=r.interpolation,f=r.origin,d=r.padding,p=r.polar,h=r.scale,y=r.sharedEvents,m=r.standalone,v=r.style,g=r.theme,b=r.width,x=r.labels,w=r.name,O=r.disableInlineStyles,_={parent:{style:v.parent,width:b,height:u,scale:h,data:o,domain:i,standalone:m,theme:g,polar:p,origin:f,padding:d,name:w,horizontal:c},all:{data:{horizontal:c,polar:p,origin:f,scale:h,data:o,interpolation:s,groupComponent:l,style:O?{}:v.data,disableInlineStyles:O}}};return o.reduce((function(e,t,n){return(null!=Ga(r,t,n)||x&&(a||y))&&(e[le(t.eventKey)?n:t.eventKey]={labels:Ja(r,n)}),e}),_)}(e,Oh)},_h.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var kh=mh(_h,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),Sh=r(471),jh=r.n(Sh);function Eh(e){return function(e){if(Array.isArray(e))return Ph(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ph(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ph(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ph(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ch(e){return e.dependentAxis?"y":"x"}function Mh(e,t){var n=t||Hp(),r=function(e){return e.reduce((function(e,t){return t.type&&"axis"===t.type.role&&n(t)?e.concat(t):t.props&&t.props.children?e.concat(r(j().Children.toArray(t.props.children))):e}),[])};return r(e)}function Ah(e,t){return Mh(e,(function(e){return e.type.getAxis(e.props)===t}))[0]}function Dh(e,t){var n=function(e){return e.reduce((function(e,r){return r.type&&"axis"===r.type.role&&function(e){return"dependent"===t?e.props.dependentAxis:!e.props.dependentAxis}(r)||r.props&&r.props.children&&n(j().Children.toArray(r.props.children)).length>0?e.concat(r):e}),[])};return n(e)}function Th(e){var t=function(e){var t=Math.min.apply(Math,Eh(e)),n=Math.max.apply(Math,Eh(e));return n<0?n:Math.max(0,t)};return{x:xe(e.x)?new Date(Math.min.apply(Math,Eh(e.x))):t(e.x),y:xe(e.y)?new Date(Math.min.apply(Math,Eh(e.y))):t(e.y)}}function Lh(e,t){return xe(t)?"positive":e<=0&&Math.max.apply(Math,Eh(t))<=0?"negative":"positive"}function Nh(e){return{top:!1,bottom:!1,left:!0,right:!0}[e.orientation||(e.dependentAxis?"left":"bottom")]}function zh(e){return void 0!==e.tickValues&&be(e.tickValues)}function Ih(e){var t=e.tickValues,n=e.tickFormat;if(0===(null==t?void 0:t.length))return[];var r=Ch(e),o=e.stringMap&&e.stringMap[r],i=t;o&&(i=function(e){var t=Ch(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],o=r&&Oe(r)?r.map((function(e){return n[e]})):void 0,i=n&&Object.values(n);return o&&0!==o.length?o:i}(e)),t&&be(t)&&(i=o?t.map((function(e){return o[e]})):pe(1,t.length+1));var a=i?W()(i):function(){if(n&&Array.isArray(n))return be(n)?n.map((function(e,t){return t})):n}();return Array.isArray(a)&&a.length?function(t){var n=[],o=e.domain&&e.domain[r]||e.domain;if(t)return t.forEach((function(e,t){Array.isArray(o)?e>=je(o)&&e<=Se(o)&&n.push({value:e,index:t}):n.push({value:e,index:t})})),n}(a):void 0}function Rh(e,t){var n=e.tickFormat,r=Ch(e),o=e.stringMap&&e.stringMap[r];if(!n){var i=function(e){var t=e.tickValues,n=Ch(e),r=e.stringMap&&e.stringMap[n],o=t&&!xe(t)?function(e){return e}:void 0;if(!r)return zh(e)?function(e,n){return t[n]}:o;var i=r&&jh()(r),a=z()(Object.values(r),(function(e){return e})).map((function(e){return i[e]})),l=[""].concat(Eh(a),[""]);return function(e){return l[e]}}(e),a=t.tickFormat&&ue(t.tickFormat)?t.tickFormat():function(e){return e};return i||a}if(n&&Array.isArray(n)){var l=Ih(e),u=null==l?void 0:l.map((function(e){return e.index})),c=n.filter((function(e,t){return null==u?void 0:u.includes(t)}));return function(e,t){return c[t]}}return n&&ue(n)?o?function(t,n,r){var i=jh()(o),a=r.map((function(e){return i[e]}));return e.tickFormat(i[t],n,a)}:n:function(e){return e}}function Fh(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter((function(e,t){return t%n==0}))}function Bh(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=e.tickCount,o=Ih(e);if(0===(null==o?void 0:o.length))return[""];var i=o?o.map((function(e){return e.value})):void 0;if(i)return Fh(i,r);if(t.ticks&&ue(t.ticks)){var a=r||5,l=t.ticks(a),u=Array.isArray(l)&&l.length?l:t.domain(),c=Fh(u,r);if(n){var s=c.filter((function(e){return 0!==e}));return s.length?s:c}return c}return t.domain()}function Uh(e,t){var n=e.polar,r=e.startAngle,o=void 0===r?0:r,i=e.endAngle,a=void 0===i?360:i,l=Ih(e),u=l&&0!==(null==l?void 0:l.length)?l.map((function(e){return e.value})):void 0;if(Array.isArray(u)){var c=Ha(e,t),s=Va(e,t),f=zh(e),d=u.map((function(e){return Number(e)})),p=f?1:je(d),h=f?u.length:Se(d),y=Ba(void 0!==c?c:p,void 0!==s?s:h),m=n&&"x"===t&&360===Math.abs(o-a)?qa(y,d):y;return Nh(e)&&!n&&m.reverse(),m}}function Wh(e,t){var n=Ch(e);if(!t||t===n)return Na(Uh)(e,n)}function Vh(e,t){if(e.axisValue){var n="x"===t?"y":"x",r=Ss()(e.scale)&&ue(e.scale[n])?e.scale[n]:void 0;if(r){var o="x"===t?"y":"x",i=Ss()(e.stringMap)&&e.stringMap[o];return r(i&&"string"==typeof e.axisValue?i[e.axisValue]:e.axisValue)}}}function Hh(e,t){if(!Ss()(e.theme))return se(e,t,"axis");var n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),"axis"===n)return se(e,t,"axis");var r=$()({},e.theme[n],e.theme.axis),o=Object.assign({},e.theme,{axis:r});return se(Object.assign({},e,{theme:o}),t,"axis")}var qh=["desc","id","tabIndex","origin"];function $h(){return $h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$h.apply(this,arguments)}function Kh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yh=(0,S.forwardRef)((function(e,t){var n,r=e.desc,o=e.id,i=e.tabIndex,a=(e.origin,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,qh)),l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kh(Object(n),!0).forEach((function(t){Gh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({vectorEffect:"non-scaling-stroke",id:null===(n=ee(o,e))||void 0===n?void 0:n.toString(),tabIndex:ee(i,e)},a);return r?j().createElement("line",$h({},l,{ref:t}),j().createElement("desc",null,r)):j().createElement("line",$h({},l,{ref:t}))}));function Xh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qh(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xh(Object(n),!0).forEach((function(t){Zh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xh(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jh={lineComponent:j().createElement(Yh,null),role:"presentation",shapeRendering:"auto"},ey=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.desc,e),r=ee(e.id,e),o=te(Object.assign({stroke:"black"},e.style),e),i=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:o,tabIndex:i})}(Qh(Qh({},Jh),e));return j().cloneElement(t.lineComponent,Qh(Qh({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,transform:t.transform,clipPath:t.clipPath}))};function ty(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ny(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ry={top:-1,left:-1,right:1,bottom:1},oy=function(e){return null!=e},iy=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:$()(n.parent,t.parent,r),axis:$()({},n.axis,t.axis),axisLabel:$()({},n.axisLabel,t.axisLabel),grid:$()({},n.grid,t.grid),ticks:$()({},n.ticks,t.ticks),tickLabels:$()({},n.tickLabels,t.tickLabels)}},ay=function(e,t,n){var r=e.position,o=e.transform;return{x1:o.x,y1:o.y,x2:o.x+r.x2,y2:o.y+r.y2,style:t,datum:n}},ly=function(e,t,n,r,o){var i=e.position,a=e.transform;return{style:t,x:a.x+i.x,y:a.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:o,datum:r}},uy=function(e,t,n){var r=e.edge,o=e.transform;return{x1:o.x,y1:o.y,x2:r.x+o.x,y2:r.y+o.y,style:t,datum:n}},cy=function(e,t,n){var r=t||"positive";return n?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][e]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][e]},sy=function(e,t){return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t},fy=function(e,t,n){var r=t.orientation,o=Vh(e,t.axis);return{top:{x:0,y:void 0!==o?o:n.y},bottom:{x:0,y:void 0!==o?o:e.height-n.y},left:{x:void 0!==o?o:n.x,y:0},right:{x:void 0!==o?o:e.width-n.x,y:0}}[r]},dy=function(e,t,n){var r=e.tickStyle,o=e.labelStyle,i=r.size||0,a=i+(r.padding||0)+(o.padding||0),l=ry[t];return{x:n?l*a:0,x2:n?l*i:0,y:n?0:l*a,y2:n?0:l*i}},py=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},hy=function(e,t){var n=t.orientation,r=t.padding,o=t.isVertical,i=-ry[n];return{x:o?i*(e.width-(r.left+r.right)):0,y:o?0:i*(e.height-(r.top+r.bottom))}},yy=function(e,t){var n=e.padding,r=e.orientation,o=e.crossAxis,i="right"===r?n.right:n.left,a="top"===r?n.top:n.bottom;return{x:o?t.x-i:0,y:o?t.y-a:0}},my=function(e,t){var n;return n=t.domain.x&&t.domain.y?e.horizontal?function(e,t){var n=t.scale,r=t.origin,o=t.orientation,i=t.orientations,a=t.domain,l=t.padding,u=l.top,c=l.bottom,s=l.left,f=l.right,d="bottom"===o||"top"===o?o:i.x,p="left"===o||"right"===o?o:i.y,h={x:"bottom"===d?c:u,y:"left"===p?s:f},y="left"===p?0:e.width,m="bottom"===d?e.height:0,v=sy(r.x,a.x[0])||sy(r.x,a.x[1])?0:n.x(r.x),g=sy(r.y,a.y[0])||sy(r.y,a.y[1])?0:n.y(r.y),b=v?Math.abs(m-v):h.x,x=g?Math.abs(y-g):h.y;return{x:oy(e.offsetX)?e.offsetX:x,y:oy(e.offsetY)?e.offsetY:b}}(e,t):function(e,t){var n=t.scale,r=t.origin,o=t.orientation,i=t.orientations,a=t.domain,l=t.padding,u=l.top,c=l.bottom,s=l.left,f=l.right,d="bottom"===o||"top"===o?o:i.x,p="left"===o||"right"===o?o:i.y,h={x:"left"===p?s:f,y:"bottom"===d?c:u},y="left"===p?0:e.width,m="bottom"===d?e.height:0,v=sy(r.x,a.x[0])||sy(r.x,a.x[1])?0:n.x(r.x),g=sy(r.y,a.y[0])||sy(r.y,a.y[1])?0:n.y(r.y),b=v?Math.abs(y-v):h.x,x=g?Math.abs(m-g):h.y;return{x:oy(e.offsetX)?e.offsetX:b,y:oy(e.offsetY)?e.offsetY:x}}(e,t):function(e,t){var n,r=t.style,o=t.scale,i=t.orientation,a=t.padding,l=t.axis,u=t.ticks,c=t.stringTicks,s=t.isVertical,f=t.labelPadding,d=e.polar,p=e.horizontal,h={scale:ny({},l,o),polar:d,horizontal:p,ticks:u,stringTicks:c},y="right"===i?a.right:a.left,m="top"===i?a.top:a.bottom,v=null!==e.offsetX&&void 0!==e.offsetX?e.offsetX:y,g=null!==e.offsetY&&void 0!==e.offsetY?e.offsetY:m,b=r.axisLabel.fontSize||14,x=u.map((function(t,n){var o=c?e.tickValues[t-1]:t;return te(r.ticks,Object.assign({},h,{tick:o,index:n})).size||0})),w=b+2*Math.max.apply(Math,function(e){if(Array.isArray(e))return ty(e)}(n=x)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return ty(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ty(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+f,O=1.2*b;return{x:null!=v?v:s?w:O,y:null!=g?g:s?O:w}}(e,t),{globalTransform:fy(e,t,n),gridOffset:yy(t,n),gridEdge:hy(e,t)}},vy=function(e,t){var n=Hh(e,t),r=function(e){var t=function(e){var t=e.theme,n=e.dependentAxis,r=t&&t.axis&&t.axis.style,o=n?"dependentAxis":"independentAxis",i=t&&t[o]&&t[o].style;return r&&i?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(e,t){return e[t]=$()({},i[t],r[t]),e}),{}):i||r}(e),n=iy(e,t),r=X(e),o=function(e,t){var n=t.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;var r=Nh(e),o=n.fontSize||14;return e.label?o*(r?2.3:1.6):0}(e,n),i=zh(e)?e.tickValues:void 0,a=Ch(e),l=Wh(e),u=function(e){var t=Ch(e),n=function(e,t){var n=e.orientation,r=e.horizontal;return n?{top:"x",bottom:"x",left:"y",right:"y"}[n]:r?"x"===t?"y":"x":t}(e,t),r=Yi(e,t),o=e.domain&&e.domain[t]||Wh(e)||r.domain();return r.range(ae(e,n)),r.domain(o),r}(e),c="x"===a?l:void 0,s="y"===a?l:void 0,f="x"===a?u:void 0,d="y"===a?u:void 0,p=!(!1===e.crossAxis||!0===e.standalone),h=Bh(e,u,p),y=Rh(e,u),m={x:ae(e,"x"),y:ae(e,"y")},v={x:e.domain&&e.domain.x?e.domain.x:c,y:e.domain&&e.domain.y?e.domain.y:s},g={x:e.domain&&e.domain.x?Yi(e,"x").domain(e.domain.x).range(e.horizontal?m.y:m.x):f,y:e.domain&&e.domain.y?Yi(e,"y").domain(e.domain.y).range(e.horizontal?m.x:m.y):d},b=v.x&&v.y?Th(v):void 0,x=b?{x:Lh(b.x,v.x),y:Lh(b.y,v.y)}:void 0,w=x?{x:cy("x",x.y,e.horizontal),y:cy("y",x.x,e.horizontal)}:void 0,O=w?e.orientation||w[a]:function(e){if(e.orientation)return e.orientation;var t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent}(e),_=Nh(Object.assign({},e,{orientation:O})),k=function(e,t){var n={top:"end",left:"end",right:"start",bottom:"start"}[e];return{textAnchor:t?n:"middle",verticalAnchor:t?"middle":n}}(O,_);return{anchors:k,axis:a,crossAxis:p,domain:v,isVertical:_,labelPadding:o,orientation:O,orientations:w,origin:b,padding:r,scale:g,stringTicks:i,style:n,tickFormat:y,ticks:h}}(n),o=r.axis,i=r.style,a=r.orientation,l=r.isVertical,u=r.scale,c=r.ticks,s=r.tickFormat,f=r.anchors,d=r.domain,p=r.stringTicks,h="x"===o?"y":"x",y=n.width,m=n.height,v=n.standalone,g=n.theme,b=n.polar,x=n.padding,w=n.horizontal,O=my(n,r),_=O.globalTransform,k=O.gridOffset,S=O.gridEdge,j={scale:ny({},o,u[o]),polar:b,horizontal:w,ticks:c,stringTicks:p},E=function(e,t,n){var r=t.style,o=t.padding,i=t.isVertical,a=e.width,l=e.height;return{style:r.axis,x1:i?n.x:o.left+n.x,x2:i?n.x:a-o.right+n.x,y1:i?o.top+n.y:n.y,y2:i?l-o.bottom+n.y:n.y}}(n,r,_),P=function(e,t,n){var r=t.style,o=t.orientation,i=t.padding,a=t.labelPadding,l=t.isVertical,u=ry[o],c=i.left+i.right,s=i.top+i.bottom,f=u<0?"end":"start",d=r.axisLabel,p=l?-90:0;return{x:l?n.x+u*a:(e.width-c)/2+i.left+n.x,y:l?(e.height-s)/2+i.top+n.y:u*a+n.y,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:void 0===d.angle?p:d.angle,style:d,text:e.label}}(n,r,_),C={parent:Object.assign({style:i.parent,ticks:c,standalone:v,theme:g,width:y,height:m,padding:x,domain:d},j)},M={dimension:h,range:ny({},h,ae(n,h)),scale:n.scale&&n.scale[h]?ny({},h,n.scale[h]):void 0};return c.reduce((function(e,t,n){var r,d,h,y=p?p[n]:t,m=s(t,n,c),v=function(e,t){return{tickStyle:te(e.ticks,t),labelStyle:te(e.tickLabels,t),gridStyle:te(e.grid,t)}}(i,Object.assign({},j,{tick:y,tickValue:t,index:n,text:m})),g={position:dy(v,a,l),transform:py(null===(r=u[o])||void 0===r?void 0:r.call(u,t),_,l)},b={edge:S,transform:{x:l?-k.x+_.x:(null===(d=u[o])||void 0===d?void 0:d.call(u,t))+_.x,y:l?(null===(h=u[o])||void 0===h?void 0:h.call(u,t))+_.y:k.y+_.y}};return e[n]={axis:Object.assign({dimension:o},j,E),axisLabel:Object.assign({},j,P),ticks:Object.assign({},j,ay(g,v.tickStyle,t)),tickLabels:Object.assign({},j,ly(g,v.labelStyle,f,t,m)),grid:Object.assign({},j,M,uy(b,v.gridStyle,t))},e}),C)};function gy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function by(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wy(e,t){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wy(e,t)}function Oy(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _y(e){return _y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_y(e)}var ky={width:450,height:300,padding:50},Sy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wy(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=_y(r);if(o){var n=_y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Oy(this,e)});function a(){return by(this,a),i.apply(this,arguments)}return t=a,n=[{key:"renderLine",value:function(e){var t=e.axisComponent,n=this.getComponentProps(t,"axis",0);return j().cloneElement(t,n)}},{key:"renderLabel",value:function(e){var t=e.axisLabelComponent;if(!e.label)return null;var n=this.getComponentProps(t,"axisLabel",0);return j().cloneElement(t,n)}},{key:"renderGridAndTicks",value:function(e){var t=this,n=e.tickComponent,r=e.tickLabelComponent,o=e.gridComponent,i=e.name,a=function(e){var t=e.style,n=void 0===t?{}:t,r=e.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!L()(o)};return this.dataKeys.map((function(l,u){var c=t.getComponentProps(n,"ticks",u),s=j().cloneElement(n,c),f=a(s.props)?s:void 0,d=t.getComponentProps(o,"grid",u),p=j().cloneElement(o,d),h=a(p.props)?p:void 0,y=t.getComponentProps(r,"tickLabels",u),m=[h,f,j().cloneElement(r,y)].filter(Boolean);return j().cloneElement(e.groupComponent,{key:"".concat(i,"-tick-group-").concat(l)},m)}))}},{key:"fixLabelOverlap",value:function(e,t){var n=Nh(t),r=n?t.height:t.width,o=function(e){return e.type&&"label"===e.type.role},i=e.map((function(e){return e.props.children})).reduce((function(e,t){return e.concat(t)}),[]).filter(o).map((function(e){return e.props})).reduce((function(e,t){var r=function(e){return"object"==typeof e?Object.assign({},{top:0,right:0,bottom:0,left:0},e):{top:e,right:e,bottom:e,left:e}}(t.style.padding),o=Mf(t.text,{angle:t.angle,fontSize:t.style.fontSize,letterSpacing:t.style.letterSpacing,fontFamily:t.style.fontFamily});return e+(n?o.height+r.top+r.bottom:o.width+r.right+r.left)}),0),a=Math.floor(r*e.length/i),l=Math.ceil(e.length/a)||1,u=function(e){return e.props.children.filter(o).reduce((function(e,t){return(n?t.props.y:t.props.x)||0}),0)},c=e.sort((function(e,t){return n?u(t)-u(e):u(e)-u(t)}));return c.filter((function(e,t){return t%l==0}))}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=jy.animationWhitelist,t=Hh(this.props,ky),n=Jc(this.props);if(this.shouldAnimate())return this.animateComponent(t,e);var r,o=this.renderGridAndTicks(t),i=t.fixLabelOverlap?this.fixLabelOverlap(o,t):o,a=[this.renderLine(t),this.renderLabel(t)].concat(function(e){if(Array.isArray(e))return gy(e)}(r=i)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return gy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gy(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=j().cloneElement(t.containerComponent,n);return t.standalone?this.renderContainer(l,a):j().cloneElement(t.groupComponent,n,a)}}],n&&xy(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);Sy.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],Sy.displayName="VictoryAxis",Sy.role="axis",Sy.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Sy.defaultProps={axisComponent:j().createElement(ey,null),axisLabelComponent:j().createElement($f,null),tickLabelComponent:j().createElement($f,null),tickComponent:j().createElement(ey,null),gridComponent:j().createElement(ey,null),standalone:!0,theme:sd.grayscale,containerComponent:j().createElement(_s,null),groupComponent:j().createElement("g",{role:"presentation"}),fixLabelOverlap:!1},Sy.getDomain=Wh,Sy.getAxis=Ch,Sy.getStyles=function(e){return iy(e)},Sy.getBaseProps=function(e){return vy(e,ky)},Sy.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var jy=mh(Sy,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Ey=function(e,t){var n=function(n){var r="log"===ea(e.scale[n])?1/Number.MAX_SAFE_INTEGER:0,o=je(e.domain[n]),i=Se(e.domain[n]);return o<0&&i<=0?r=i:o>=0&&i>0&&(r=o),t["_".concat(n)]instanceof Date?new Date(r):r},r=void 0!==t._y0?t._y0:n("y"),o=void 0!==t._x0?t._x0:n("x");return Y(e,Object.assign({},t,{_y0:r,_x0:o}))},Py=function(e,t){var n=t.scale,r=t.data,o=t.style;if(e)return ee(e,t);if(o.width)return o.width;var i=n.x.range(),a=Math.abs(i[1]-i[0]),l=r.length+2,u=(t.barRatio||.5)*(r.length<2?8:a/l);return Math.max(1,u)},Cy=function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return e?function(e){return B()(e)}(e)?function(e,t){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,o){le(e[r])?le(e[o])||(n[r]=ee(e[o],t)):n[r]=ee(e[r],t)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n}(e,t):(n.topLeft=ee(e,t),n.topRight=ee(e,t),n):n},My=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(t.disableInlineStyles)return{};var n=e.fill||"black",r={fill:"black",stroke:n};return te(Object.assign(r,e),t)},Ay=function(e,t){return{x:e,y:t,distance:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},add:function(e){return Ay(this.x+e.x,this.y+e.y)},subtract:function(e){return Ay(this.x-e.x,this.y-e.y)},scalarMult:function(e){return Ay(this.x*e,this.y*e)},scalarDivide:function(e){if(0===e)throw new Error("Division by 0 error");return Ay(this.x/e,this.y/e)},equals:function(e){return this.x===e.x&&this.y===e.y}}},Dy=function(e,t){return{center:e,radius:t,hasIntersection:function(e){var t=this.center,n=e.center,r=this.radius,o=e.radius,i=t.distance(n);return!(i>r+o||i<Math.abs(r-o))},equals:function(e){var t=this.center,n=e.center;return this.radius===e.radius&&t.equals(n)},intersection:function(e){var t=this.center,n=e.center,r=this.radius,o=e.radius,i=t.distance(n);if(!this.hasIntersection(e)||this.equals(e))return[];var a=(Math.pow(r,2)-Math.pow(o,2)+Math.pow(i,2))/(2*i),l=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),u=t.add(n.subtract(t).scalarMult(a).scalarDivide(i)),c=t.x,s=t.y,f=n.x,d=n.y,p=u.x,h=u.y,y=[Ay(p-l*(d-s)/i,h+l*(f-c)/i),Ay(p+l*(d-s)/i,h-l*(f-c)/i)];return y.sort((function(e,t){return e.x-t.x})),y},solveX:function(e){var t=Math.sqrt(Math.pow(this.radius,2)-Math.pow(e-this.center.y,2));return[this.center.x-t,this.center.x+t]},solveY:function(e){var t=Math.sqrt(Math.pow(this.radius,2)-Math.pow(e-this.center.x,2));return[this.center.y-t,this.center.y+t]}}};function Ty(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ly(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ty(Object(n),!0).forEach((function(t){Ny(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ty(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ny(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zy(e){return function(e){if(Array.isArray(e))return Iy(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Iy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Iy(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Iy(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ry=function(e,t){var n=e.x,r=e.x0,o=e.y,i=e.y0,a=e.horizontal,l=e.alignment||"middle",u="middle"===l?t/2:t,c=a?-1:1;return a?{x0:r,x1:n,y0:"start"===l?o:o-c*u,y1:"end"===l?o:o+c*u}:{x0:"start"===l?n:n-c*u,x1:"end"===l?n:n+c*u,y0:i,y1:o}},Fy=function(e,t){var n=e.data,r=e.scale,o=void 0===n[t]._x1?"_x":"_x1";return r.x(n[t][o])},By=function(e){return-1*e+Math.PI/2},Uy=function(e,t){var n=e.getPath;if("function"==typeof n)return n(Ly(Ly({},e),Ry(e,t)))},Wy=function(e,t,n){var r="".concat(t.topLeft," ").concat(t.topLeft," ").concat(n),o="".concat(t.topRight," ").concat(t.topRight," ").concat(n),i="".concat(t.bottomLeft," ").concat(t.bottomLeft," ").concat(n),a="".concat(t.bottomRight," ").concat(t.bottomRight," ").concat(n),l=["M","A ".concat(i,","),"L","A ".concat(r,","),"L","A ".concat(o,","),"L","A ".concat(a,",")].reduce((function(t,n,r){return"".concat(t).concat(n," ").concat(e[r].x,", ").concat(e[r].y," \n")}),"");return"".concat(l," z")},Vy=function(e,t,n){var r=Ry(e,t),o=r.y0>r.y1?1:-1,i=o>0?"0 0 1":"0 0 0",a=function(e,t,n){var r=e.x0,o=e.x1,i=e.y0,a=e.y1,l=function(e){var l="Left"===e,u=l?1:-1,c=l?r:o,s={x:c+u*n["bottom".concat(e)],y:i},f={x:c,y:i-t*n["bottom".concat(e)]},d={x:c,y:a+t*n["top".concat(e)]},p={x:c+u*n["top".concat(e)],y:a};if(1===t?i-n["bottom".concat(e)]<a+n["top".concat(e)]:i+n["bottom".concat(e)]>a-n["top".concat(e)]){var h=Ay(c+u*n["top".concat(e)],a+t*n["top".concat(e)]),y=Dy(h,n["top".concat(e)]),m=Ay(c+u*n["bottom".concat(e)],i-t*n["bottom".concat(e)]),v=Dy(m,n["bottom".concat(e)]),g=y.intersection(v);if(g.length>0){var b=g[l?0:1];f={x:b.x,y:b.y},d={x:b.x,y:b.y}}else if(n["top".concat(e)]>n["bottom".concat(e)]){var x=y.solveX(i)[l?0:1];s={x,y:i},f={x,y:i},d={x,y:i}}else{var w=v.solveX(a)[l?0:1];f={x:w,y:a},d={x:w,y:a},p={x:w,y:a}}}var O=[s,f,d,p];return l?O:O.reverse()};return l("Left").concat(l("Right"))}(r,o,n);return Wy(a,n,i)},Hy=function(e,t,n){var r=Ry(e,t),o=r.x0<r.x1?1:-1,i={topRight:o>0?n.topLeft:n.bottomLeft,bottomRight:o>0?n.topRight:n.bottomRight,bottomLeft:o>0?n.bottomRight:n.topRight,topLeft:o>0?n.bottomLeft:n.topLeft},a=function(e,t,n){var r=e.y0,o=e.y1,i=e.x0<e.x1?e.x0:e.x1,a=e.x0<e.x1?e.x1:e.x0,l=function(e){var l="top"===e,u=l?-1:1,c=l?o:r,s={x:i,y:c-u*n["".concat(e,"Left")]},f={x:i+n["".concat(e,"Left")],y:c},d={x:a-n["".concat(e,"Right")],y:c},p={x:a,y:c-u*n["".concat(e,"Right")]};if(f.x>d.x){var h=Ay(i+n["".concat(e,"Left")],c-u*n["".concat(e,"Left")]),y=Dy(h,n["".concat(e,"Left")]),m=Ay(a-n["".concat(e,"Right")],c-u*n["".concat(e,"Right")]),v=Dy(m,n["".concat(e,"Right")]),g=y.intersection(v);if(g.length>0){var b=g[t>0?1:0];f={x:b.x,y:b.y},d={x:b.x,y:b.y}}else if(n["".concat(e,"Right")]>n["".concat(e,"Left")]){var x=v.solveY(i)[l?0:1];s={x:i,y:x},f={x:i,y:x},d={x:i,y:x}}else{var w=y.solveY(a)[l?0:1];p={x:a,y:w},d={x:a,y:w},f={x:a,y:w}}}return[s,f,d,p]},u=l("top"),c=l("bottom");return[c[1],c[0]].concat(zy(u),[c[3],c[2]])}(r,o,i);return Wy(a,i,"0 0 1")},qy=function(e,t){var n,r,o=e.datum,i=e.scale,a=e.index,l=e.alignment,u=e.style,c=i.y(o._y0||0),s=i.y(void 0!==o._y1?o._y1:o._y),f=i.x(void 0!==o._x1?o._x1:o._x);if(u.width){var d=function(e,t){var n=e.scale,r=n.y.range(),o=Math.max.apply(Math,zy(r)),i=Math.abs(n.x.range()[1]-n.x.range()[0]);return t/(2*Math.PI*o)*i}(e,u.width),p="middle"===l?d/2:d;n="start"===l?f:f-p,r="end"===l?f:f+p}else n=function(e,t){var n=e.data,r=e.scale,o=e.alignment,i=Fy(e,t),a=Math.abs(r.x.range()[1]-r.x.range()[0]),l=0===t?Fy(e,n.length-1)-2*Math.PI:Fy(e,t-1);return 0===t&&a<2*Math.PI?r.x.range()[0]:"start"===o||"end"===o?"start"===o?l:i:(i+l)/2}(e,Number(a)),r=function(e,t){var n=e.data,r=e.scale,o=e.alignment,i=Fy(e,t),a=Math.abs(r.x.range()[1]-r.x.range()[0]),l=r.x.range()[1]===2*Math.PI?Fy(e,0)+2*Math.PI:r.x.range()[1],u=t===n.length-1?Fy(e,0)+2*Math.PI:Fy(e,t+1);return t===n.length-1&&a<2*Math.PI?l:"start"===o||"end"===o?"start"===o?i:u:(i+u)/2}(e,Number(a));var h=function(e){return Wl().innerRadius(c).outerRadius(s).startAngle(By(n)).endAngle(By(r)).cornerRadius(t[e])()},y=function(e){var t=h("".concat(e,"Right")),n=t.match(/[A-Z]/g)||[],r=t.split(/[A-Z]/).slice(1),o=n.indexOf("L"),i=h("".concat(e,"Left")),a=i.match(/[A-Z]/g)||[],l=i.split(/[A-Z]/).slice(1),u=a.indexOf("L");return{rightMoves:n,rightCoords:r,rightMiddle:o,leftMoves:a,leftCoords:l,leftMiddle:u}},m=function(){var e,o,i=t.topRight,a=t.topLeft,l=s*Math.abs(r-n),u=y("top"),c=u.rightMoves,f=u.rightCoords,d=u.rightMiddle,p=u.leftMoves,h=u.leftCoords,m=u.leftMiddle;if(i===a||l<2*i+2*a)e=i>a?c:p,o=i>a?f:h;else{var v,g=function(e){return e<3},b=a>i&&g(d)?1:2;if(i>a){var x=g(d)?m:m-2;v=g(m)?m-1:x}else{var w=g(m)?1:2;v=g(d)?w:m-2}e=[].concat(zy(c.slice(0,b)),zy(p.slice(v))),o=[].concat(zy(f.slice(0,b)),zy(h.slice(v)))}var O=e.indexOf("L"),_=e.slice(0,O),k=o.slice(0,O);return _.map((function(e,t){return{command:e,coords:k[t].split(",")}}))}(),v=function(){var e,o,i=t.bottomRight,a=t.bottomLeft,l=c*Math.abs(r-n),u=y("bottom"),s=u.rightMoves,f=u.rightCoords,d=u.rightMiddle,p=u.leftMoves,h=u.leftCoords,m=u.leftMiddle;if(i===a||l<2*i+2*a)e=i>a?s:p,o=i>a?f:h;else{var v=function(e,t){return e.length-t<4},g=(i>a?v(s,d):v(p,m))?-1:-3;e=[].concat(zy(p.slice(0,m+2)),zy(s.slice(g))),o=[].concat(zy(h.slice(0,m+2)),zy(f.slice(g)))}var b=e.indexOf("L"),x=e.slice(b,-1),w=o.slice(b,-1);return x.map((function(e,t){return{command:e,coords:w[t].split(",")}}))}(),g=[].concat(zy(m),zy(v)).reduce((function(e,t){return"".concat(e).concat(t.command," ").concat(t.coords.join())}),"");return"".concat(g," z")},$y=function(e,t,n){return e.getPath?Uy(e,t):e.horizontal?Hy(e,t,n):Vy(e,t,n)},Ky=function(e,t){return qy(e,t)};function Gy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gy(Object(n),!0).forEach((function(t){Xy(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qy={pathComponent:j().createElement($c,null),role:"presentation",shapeRendering:"auto"},Zy=(0,S.forwardRef)((function(e,t){var n=function(e){var t=My(e.style,e),n=Py(e.barWidth,Object.assign({},e,{style:t})),r=Cy(e.cornerRadius,Object.assign({},e,{style:t,barWidth:n})),o=ee(e.ariaLabel,e),i=ee(e.desc,e),a=ee(e.id,e),l=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:o,style:t,barWidth:n,cornerRadius:r,desc:i,id:a,tabIndex:l})}(Yy(Yy({},Qy),e)),r=n.polar,o=n.origin,i=n.style,a=n.barWidth,l=n.cornerRadius,u=r?Ky(n,l):$y(n,a,l),c=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0;return n.pathComponent?j().cloneElement(n.pathComponent,Yy(Yy({},n.events),{},{"aria-label":n.ariaLabel,style:i,d:u,className:n.className,clipPath:n.clipPath,desc:n.desc,index:n.index,role:n.role,shapeRendering:n.shapeRendering,transform:n.transform||c,tabIndex:n.tabIndex,ref:t})):null}));function Jy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function em(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tm(e,t){return tm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tm(e,t)}function nm(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rm(e){return rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rm(e)}var om={width:450,height:300,padding:50},im=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tm(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=rm(r);if(o){var n=rm(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return nm(this,e)});function a(){return Jy(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=am.animationWhitelist,t=am.role,n=se(this.props,om,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&em(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);im.animationWhitelist=["data","domain","height","padding","style","width"],im.displayName="VictoryBar",im.role="bar",im.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}}},im.defaultProps={containerComponent:j().createElement(_s,null),data:[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],dataComponent:j().createElement(Zy,null),groupComponent:j().createElement("g",{role:"presentation"}),labelComponent:j().createElement($f,null),samples:50,sortOrder:"ascending",standalone:!0,theme:sd.grayscale},im.getDomain=Wa,im.getData=_a,im.getBaseProps=function(e){return function(e,t){var n=se(e,t,"bar"),r=Object.assign({},n,function(e){var t=e.polar,n=Z(e,"bar"),r=e.disableInlineStyles?{}:J(e.style,n),o=e.range||{x:ae(e,"x"),y:ae(e,"y")},i={x:Wa(e,"x"),y:Wa(e,"y")},a={x:Yi(e,"x").domain(i.x).range(e.horizontal?o.y:o.x),y:Yi(e,"y").domain(i.y).range(e.horizontal?o.x:o.y)},l=t?e.origin||ie(e):void 0,u=_a(e);return{style:r,data:u=va(u,i,0),scale:a,domain:i,origin:l}}(n)),o=r.alignment,i=r.barRatio,a=r.cornerRadius,l=r.data,u=r.disableInlineStyles,c=r.domain,s=r.events,f=r.height,d=r.horizontal,p=r.origin,h=r.padding,y=r.polar,m=r.scale,v=r.sharedEvents,g=r.standalone,b=r.style,x=r.theme,w=r.width,O=r.labels,_=r.name,k=r.barWidth,S=r.getPath,j={parent:{horizontal:d,domain:c,scale:m,width:w,height:f,data:l,standalone:g,name:_,theme:x,polar:y,origin:p,padding:h,style:b.parent}};return l.reduce((function(e,t,n){var c=le(t.eventKey)?n:t.eventKey,h=Ey(r,t),g=h.x,x=h.y,_=h.y0,j=h.x0,E={alignment:o,barRatio:i,barWidth:k,cornerRadius:a,data:l,datum:t,disableInlineStyles:u,getPath:S,horizontal:d,index:n,polar:y,origin:p,scale:m,style:b.data,width:w,height:f,x:g,y:x,y0:_,x0:j};return e[c]={data:E},(null!=Ga(r,t,n)||O&&(s||v))&&(e[c].labels=Ja(r,n)),e}),j)}(e,om)},im.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var am=mh(im);function lm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function um(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lm(Object(n),!0).forEach((function(t){cm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sm={rectComponent:j().createElement(zs,null),role:"presentation",shapeRendering:"auto"},fm=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.desc,e),r=ee(e.id,e),o=te(Object.assign({fill:"none"},e.style),e),i=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:o,tabIndex:i})}(um(um({},sm),e));return j().cloneElement(t.rectComponent,um(um({},t.events),{},{"aria-label":t.ariaLabel,style:t.style,desc:t.desc,tabIndex:t.tabIndex,transform:t.transform,className:t.className,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,width:t.width,height:t.height,clipPath:t.clipPath}))};function dm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(n),!0).forEach((function(t){hm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ym={groupComponent:j().createElement("g",null),lineComponent:j().createElement(Yh,null),role:"presentation",shapeRendering:"auto"},mm=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.desc,e),r=ee(e.id,e),o=te(e.style,e),i=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:o,tabIndex:i})}(pm(pm({},ym),e)),n=t.ariaLabel,r=t.groupComponent,o=t.lineComponent,i=t.events,a=t.className,l=t.majorWhisker,u=t.minorWhisker,c=t.transform,s=t.clipPath,f=t.role,d=t.shapeRendering,p=t.style,h=t.desc,y=t.tabIndex,m=pm(pm({},i),{},{style:p,desc:h,tabIndex:y,className:a,transform:c,clipPath:s,role:f,shapeRendering:d});return j().cloneElement(r,{},[j().cloneElement(o,Object.assign({key:"major-whisker","aria-label":n},m,l)),j().cloneElement(o,Object.assign({key:"minor-whisker","aria-label":n},m,u))])},vm=r(9056),gm=r.n(vm),bm=["max","min","median","q1","q3"],xm=function(e){return Number.isNaN(e)?null:e},wm=function(e){var t=e.map((function(e){return e._y})),n={_q1:xm(Yn(t,.25)),_q3:xm(Yn(t,.75)),_min:xm(qn(t)),_median:xm(Yn(t,.5)),_max:xm(Hn(t))};return Object.assign({},e[0],n,{_y:e[0]._y})},Om=function(e){var t=bm.concat("x","y"),n=xa(e.data,e,t);return n.length?function(e){var t=function(e){if(e.every((function(e){return bm.every((function(t){return void 0!==e["_".concat(t)]}))}))){var t=e.map((function(e){return e._x}));if(!W()(t).length===t.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}(e);if(t)return e;var n=e.every((function(e){return Array.isArray(e._x)})),r=e.every((function(e){return Array.isArray(e._y)})),o="_y";if(n)throw new Error("\n data should not be given as in array for x\n ");if(r)return e.map((function(e){var t=e._y.map((function(t){return Object.assign({},e,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e._y=n,e}({},o,t))})),n=z()(t,o);return wm(n)}));var i=gm()(e,"_x");return Object.keys(i).map((function(e){var t=i[e],n=z()(t,o);return wm(n)}))}(n):[]},_m=function(e,t){var n=Ha(e,t),r=Va(e,t),o=Om(e);return o.length<1?void 0!==n&&void 0!==r?Ba(n,r):void 0:"y"===t?function(e,t,n){var r=Ha(t,n),o=Va(t,n);return Ba(void 0!==r?r:e.reduce((function(e,t){return e<t._min?e:t._min}),1/0),void 0!==o?o:e.reduce((function(e,t){return e>t._max?e:t._max}),-1/0))}(o,e,t):function(e,t,n){var r=Ha(t,n),o=Va(t,n);return Ba(void 0!==r?r:e.reduce((function(e,t){return e<t["_".concat(n)]?e:t["_".concat(n)]}),1/0),void 0!==o?o:e.reduce((function(e,t){return e>t["_".concat(n)]?e:t["_".concat(n)]}),-1/0))}(o,e,t)},km=function(e,t){return Na(_m)(e,t)},Sm=function(e,t,n){var r=e["".concat(n,"LabelComponent")]||e.labelComponent,o=t["".concat(n,"Labels")]||t.labels;if(!Q(r))return o;var i=e.theme&&e.theme.tooltip||{};return $()({},i.style,o)},jm=function(e,t){var n=se(e,t,"boxplot"),r=Object.assign({},n,function(e){var t=e.theme,n=e.horizontal,r=Om(e),o={x:ae(e,"x"),y:ae(e,"y")},i={x:km(e,"x"),y:km(e,"y")},a={x:Yi(e,"x").domain(i.x).range(e.horizontal?o.y:o.x),y:Yi(e,"y").domain(i.y).range(e.horizontal?o.x:o.y)},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.disableInlineStyles)return{};var n=e.style||{},r={height:"100%",width:"100%"},o=$()({},n.labels,Sm(e,t)),i=$()({},n.boxes,t.boxes),a=$()({},n.whiskers,t.whiskers);return{boxes:i,labels:o,parent:$()({},n.parent,t.parent,r),max:$()({},n.max,t.max,a),maxLabels:$()({},n.maxLabels,Sm(e,t,"max"),o),median:$()({},n.median,t.median,a),medianLabels:$()({},n.medianLabels,Sm(e,t,"median"),o),min:$()({},n.min,t.min,a),minLabels:$()({},n.minLabels,Sm(e,t,"min"),o),q1:$()({},n.q1,t.q1,i),q1Labels:$()({},n.q1Labels,Sm(e,t,"q1"),o),q3:$()({},n.q3,t.q3,i),q3Labels:$()({},n.q3Labels,Sm(e,t,"q3"),o),whiskers:a}}(e,t&&t.boxplot&&t.boxplot.style?t.boxplot.style:{}),u=e.horizontal?"top":"right";return{data:r,horizontal:n,domain:i,scale:a,style:l,labelOrientation:e.labelOrientation||u,boxWidth:e.boxWidth||1}}(n)),o=r.groupComponent,i=r.width,a=r.height,l=r.padding,u=r.standalone,c=r.theme,s=r.events,f=r.sharedEvents,d=r.scale,p=r.horizontal,h=r.data,y=r.style,m=r.domain,v=r.name,g={parent:{domain:m,scale:d,width:i,height:a,data:h,standalone:u,name:v,theme:c,style:y.parent||{},padding:l,groupComponent:o,horizontal:p}},b=d.y;return h.reduce((function(e,t,n){var o=le(t.eventKey)?n:t.eventKey;if(function(e,t){var n,r,o=function(e){return void 0!==e},i=e._x,a=e._min,l=e._max,u=je(t.x),c=Se(t.x),s=je(t.y),f=Se(t.y),d=function(e){return function(t){return o(t)&&t<e}},p=function(e){return function(t){return o(t)&&t>e}},h=d(u),y=d(s),m=p(c),v=p(f);return(h(i)||m(i))&&(r=!0),(y(a)&&y(l)||v(a)&&v(l))&&(n=!0),n||r}(t,m))return e;var i={x:p?d.y(t._y):d.x(t._x),y:p?d.x(t._x):d.y(t._y),min:b(t._min),max:b(t._max),median:b(t._median),q1:b(t._q1),q3:b(t._q3)},a=Object.assign({index:n,datum:t,positions:i},r),l=bm.reduce((function(e,t){return e[t]=function(e,t){return"median"===t?function(e){var t=e.boxWidth,n=e.horizontal,r=e.style,o=e.datum,i=e.scale,a=e.index,l=e.disableInlineStyles,u=e.positions,c=u.median,s=u.x,f=u.y;return{datum:o,scale:i,index:a,x1:n?c:s-t/2,y1:n?f-t/2:c,x2:n?c:s+t/2,y2:n?f+t/2:c,style:l?{}:r.median,disableInlineStyles:l}}(e):"min"===t||"max"===t?function(e,t){var n=e.horizontal,r=e.style,o=e.boxWidth,i=e.whiskerWidth,a=e.datum,l=e.scale,u=e.index,c=e.disableInlineStyles,s=e.positions,f=s.min,d=s.max,p=s.q1,h=s.q3,y=s.x,m=s.y,v="min"===t?p:h,g="min"===t?f:d,b="number"==typeof i?i:o;return{datum:a,index:u,scale:l,majorWhisker:{x1:n?v:y,y1:n?m:v,x2:n?g:y,y2:n?m:g},minorWhisker:{x1:n?g:y-b/2,y1:n?m-b/2:g,x2:n?g:y+b/2,y2:n?m+b/2:g},style:c?{}:r[t]||r.whisker,disableInlineStyles:c}}(e,t):function(e,t){var n=e.horizontal,r=e.boxWidth,o=e.style,i=e.scale,a=e.datum,l=e.index,u=e.disableInlineStyles,c=e.positions,s=c.median,f=c.q1,d=c.q3,p=c.x,h=c.y;return{datum:a,scale:i,index:l,x:n?"q1"===t?f:s:p-r/2,y:n?h-r/2:"q1"===t?s:d,width:n?"q1"===t?s-f:d-s:r,height:n?r:"q1"===t?f-s:s-d,style:u?{}:o[t]||o.boxes,disableInlineStyles:u}}(e,t)}(a,t),e}),{});return e[o]=l,bm.forEach((function(t){var n=function(e,t){var n=e.datum,r=e.index,o=e.labels,i=e["".concat(t,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(t);return"".concat(n[a])}return Array.isArray(i)?i[r]:i}(a,t),i=r.labels||r["".concat(t,"Labels")];if(null!=n||i&&(s||f)){var l="".concat(t,"Labels");e[o][l]=function(e,t,n){var r=e.datum,o=e.positions,i=e.index,a=e.boxWidth,l=e.horizontal,u=e.labelOrientation,c=e.style,s=e.theme,f=e.disableInlineStyles,d=function(e,t){return"object"==typeof e&&e[t]||e}(u,n),p=c["".concat(n,"Labels")]||c.labels,h="number"==typeof e.whiskerWidth?e.whiskerWidth:a,y="min"===n||"max"===n?h:a,m=function(e){var t={x:"left"===d?-1:1,y:"top"===d?-1:1};return t[e]*y/2+t[e]*(p.padding||0)},v={text:t,datum:r,index:i,orientation:d,style:f?{}:p,y:l?o.y:o[n],x:l?o[n]:o.x,dy:l?m("y"):0,dx:l?0:m("x"),textAnchor:p.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[d],verticalAnchor:p.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[d],angle:p.angle,horizontal:l,disableInlineStyles:f};if(!Q(e["".concat(n,"LabelComponent")]))return v;var g=s&&s.tooltip||{};return $()({},v,K(g,["style"]))}(Object.assign({},r,a),n,t)}})),e}),g)};function Em(e){return function(e){if(Array.isArray(e))return Pm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Pm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Pm(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Am(e,t){return Am=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Am(e,t)}function Dm(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Tm(e){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tm(e)}var Lm={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},Nm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Am(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Tm(r);if(o){var n=Tm(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Dm(this,e)});function a(){return Cm(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"renderBoxPlot",value:function(e){var t=this,n=["q1","q3","max","min","median"],r=n.map((function(n){return t.dataKeys.reduce((function(r,o,i){var a=e["".concat(n,"Component")],l=t.getComponentProps(a,n,i);return t.shouldRenderDatum(l.datum)&&r.push(j().cloneElement(a,l)),r}),[])})).flat(),o=n.map((function(n){return t.dataKeys.reduce((function(r,o,i){var a="".concat(n,"Labels"),l=e["".concat(n,"LabelComponent")],u=t.getComponentProps(l,a,i);return void 0!==u.text&&null!==u.text&&r.push(j().cloneElement(l,u)),r}),[]).filter(Boolean)})).flat(),i=[].concat(Em(r),Em(o));return this.renderContainer(e.groupComponent,i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(e){var t=!le(e._x),n=!le(e._y);return!(le(e._min)||le(e._max)||le(e._median)||le(e._q1)||le(e._q3))&&(this.props.horizontal?n:t)}},{key:"render",value:function(){var e=zm.animationWhitelist,t=zm.role,n=se(this.props,Lm,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderBoxPlot(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&Mm(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);Nm.animationWhitelist=["data","domain","height","padding","style","width"],Nm.displayName="VictoryBoxPlot",Nm.role="boxplot",Nm.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}},Nm.defaultProps={containerComponent:j().createElement(_s,null),data:[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}],dataComponent:j().createElement(fm,null),groupComponent:j().createElement("g",{role:"presentation"}),maxComponent:j().createElement(mm,null),maxLabelComponent:j().createElement($f,null),medianComponent:j().createElement(ey,null),medianLabelComponent:j().createElement($f,null),minComponent:j().createElement(mm,null),minLabelComponent:j().createElement($f,null),q1Component:j().createElement(fm,null),q1LabelComponent:j().createElement($f,null),q3Component:j().createElement(fm,null),q3LabelComponent:j().createElement($f,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:sd.grayscale},Nm.getDomain=km,Nm.getData=Om,Nm.getBaseProps=function(e){return jm(e,Lm)},Nm.expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];var zm=mh(Nm,{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 Im(e,t,n){var r=t.a,o=t.d,i=t.e,a=t.f;return"y"===n?o*e+a:r*e+i}function Rm(e){return!(!e||void 0===e.identifier)}function Fm(e){if(!Rm(e.nativeEvent)){var t=function(e){return"svg"===e.nodeName?e:e.parentNode?t(e.parentNode):e};return t(e.target)}}function Bm(e,t){if(Rm(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=function(e){return e.changedTouches&&e.changedTouches.length>0}(e)?e.changedTouches[0]:e,r=function(e){return e.getScreenCTM().inverse()}(t||Fm(n));return{x:Im(n.clientX,r,"x"),y:Im(n.clientY,r,"y")}}function Um(e,t){var n=e.horizontal,r=e.scale,o=t||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(o.y[0]),r.y(o.y[1])]:[r.x(o.x[0]),r.x(o.x[1])],y:n?[r.x(o.x[0]),r.x(o.x[1])]:[r.y(o.y[0]),r.y(o.y[1])]}}function Wm(e,t,n,r){var o=e.polar,i=e.horizontal;if(!o)return{x:i?t.x.invert(r):t.x.invert(n),y:i?t.y.invert(n):t.y.invert(r)};var a=e.origin||{x:0,y:0},l=n-a.x,u=r-a.y,c=Math.abs(l*Math.sqrt(1+Math.pow(-u/l,2))),s=(-Math.atan2(u,l)+2*Math.PI)%(2*Math.PI);return{x:t.x.invert(s),y:t.y.invert(c)}}function Vm(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,i=e.scale,a=Wm(e,i,t,r),l=Wm(e,i,n,o),u=function(e,t){return[je([e,t]),Se([e,t])]};return{x:u(a.x,l.x),y:u(a.y,l.y)}}var Hm=r(8163),qm=r.n(Hm);function $m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Km(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$m(Object(n),!0).forEach((function(t){Gm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ym(e){return function(e){if(Array.isArray(e))return Xm(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Xm(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xm(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qm={getDimension:function(e){var t=e.horizontal,n=e.brushDimension;return t&&n?"x"===n?"y":"x":n},withinBounds:function(e,t,n){var r=de(t,Number),o=r.x1,i=r.x2,a=r.y1,l=r.y2,u=de(e,Number),c=u.x,s=u.y,f=n?n/2:0;return c+f>=Math.min(o,i)&&c-f<=Math.max(o,i)&&s+f>=Math.min(a,l)&&s-f<=Math.max(a,l)},getDomainBox:function(e,t,n){var r=this.getDimension(e),o=$()({},t,e.domain),i=$()({},n,o),a=Um(e,o),l=Um(e,i);return{x1:"y"!==r?Math.min.apply(Math,Ym(l.x)):Math.min.apply(Math,Ym(a.x)),x2:"y"!==r?Math.max.apply(Math,Ym(l.x)):Math.max.apply(Math,Ym(a.x)),y1:"x"!==r?Math.min.apply(Math,Ym(l.y)):Math.min.apply(Math,Ym(a.y)),y2:"x"!==r?Math.max.apply(Math,Ym(l.y)):Math.max.apply(Math,Ym(a.y))}},getHandles:function(e,t){var n=this.getDimension(e),r=t.x1,o=t.x2,i=t.y1,a=t.y2,l=Math.min(r,o),u=Math.max(r,o),c=Math.min(i,a),s=Math.max(i,a),f=e.handleWidth/2;return{left:"y"!==n&&{x1:l-f,x2:l+f,y1:i,y2:a},right:"y"!==n&&{x1:u-f,x2:u+f,y1:i,y2:a},top:"x"!==n&&{x1:r,x2:o,y1:c-f,y2:c+f},bottom:"x"!==n&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(e,t,n){var r=this,o=this.getHandles(t,n),i=["top","bottom","left","right"].reduce((function(t,n){return o[n]&&r.withinBounds(e,o[n])?t.concat(n):t}),[]);return i.length&&i},getResizeMutation:function(e,t){var n=e.x1,r=e.y1,o=e.x2,i=e.y2,a={left:{x1:Math.max(n,o),x2:Math.min(n,o),y1:r,y2:i},right:{x1:Math.min(n,o),x2:Math.max(n,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:n,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:n,x2:o}};return t.reduce((function(e,t){return Object.assign(e,a[t])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(e,t,n){var r=e.domain,o=e.fullDomain,i=e.scale,a=e.horizontal,l=e.allowResize||e.defaultBrushArea?e.defaultBrushArea:"move";if("none"===l)return this.getMinimumDomain();if("disable"===l)return t;if("move"===l){var u=this.getDomainBox(e,o,t),c=e.parentSVG||Fm(n),s=this.panBox(Km(Km(Km({},e),u),{},{brushDomain:t,startX:(u.x1+u.x2)/2,startY:(u.y1+u.y2)/2}),Bm(n,c)),f=e.fullDomainBox||this.getDomainBox(e,o);return Vm(Km(Km({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return r},getSelectionMutation:function(e,t,n){var r=e.x,o=e.y,i=t.x1,a=t.x2,l=t.y1,u=t.y2;return{x1:"y"!==n?r:i,y1:"x"!==n?o:l,x2:"y"!==n?r:a,y2:"x"!==n?o:u}},panBox:function(e,t){var n=e.domain,r=e.startX,o=e.startY,i=this.getDimension(e),a=$()({},e.brushDomain,n),l=$()({},e.fullDomain,n),u=e.x1?e:this.getDomainBox(e,l,a),c=u.x1,s=u.x2,f=u.y1,d=u.y2,p=t.x,h=t.y,y=r?r-p:0,m=o?o-h:0;return{x1:"y"!==i?Math.min(c,s)-y:Math.min(c,s),x2:"y"!==i?Math.max(c,s)-y:Math.max(c,s),y1:"x"!==i?Math.min(f,d)-m:Math.min(f,d),y2:"x"!==i?Math.max(f,d)-m:Math.max(f,d)}},constrainBox:function(e,t){var n=de(t,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x1:e.x2>i?i-Math.abs(e.x2-e.x1):Math.max(e.x1,r),y1:e.y2>a?a-Math.abs(e.y2-e.y1):Math.max(e.y1,o),x2:e.x1<r?r+Math.abs(e.x2-e.x1):Math.min(e.x2,i),y2:e.y1<o?o+Math.abs(e.y2-e.y1):Math.min(e.y2,a)}},constrainPoint:function(e,t){var n=de(t,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x:Math.min(Math.max(e.x,r),i),y:Math.min(Math.max(e.y,o),a)}},hasMoved:function(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,i=e.mouseMoveThreshold,a=this.getDimension(e),l=Math.abs(t-n)>=i,u=Math.abs(r-o)>=i;switch(a){case"x":return l;case"y":return u;default:return l||u}},onMouseDown:function(e,t){var n=this;e.preventDefault();var r=t.handleWidth,o=t.cachedBrushDomain,i=t.domain,a=t.allowResize,l=t.allowDrag,u=t.allowDraw,c=this.getDimension(t),s=a||t.defaultBrushArea?t.defaultBrushArea:"move";if(!a&&!l)return{};var f=t.fullDomainBox||this.getDomainBox(t,i),d=t.parentSVG||Fm(e),p=Bm(e,d),h=p.x,y=p.y;if(!this.withinBounds({x:h,y},f,r))return{};var m=$()({},t.brushDomain,i),v=Nd()(m,o)?t.currentDomain||m||i:m||i,g=this.getDomainBox(t,i,v),b=a&&this.getActiveHandles({x:h,y},t,g);return b?[{target:"parent",mutation:function(){return Km({isSelecting:!0,domainBox:g,fullDomainBox:f,cachedBrushDomain:m,currentDomain:v,parentSVG:d},n.getResizeMutation(g,b))}}]:this.withinBounds({x:h,y},g)&&!Nd()(i,v)?[{target:"parent",mutation:function(){return Km({isPanning:l,startX:h,startY:y,domainBox:g,fullDomainBox:f,currentDomain:v,cachedBrushDomain:m,parentSVG:d},g)}}]:u?[{target:"parent",mutation:function(){return Km({isSelecting:a||"move"===s,domainBox:g,fullDomainBox:f,parentSVG:d,cachedBrushDomain:m,cachedCurrentDomain:v,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:h,y},g,c))}}]:{}},onGlobalMouseMove:function(e,t){var n=t.scale,r=t.isPanning,o=t.isSelecting,i=t.fullDomainBox,a=t.onBrushDomainChange,l=t.allowResize,u=t.allowDrag,c=t.horizontal,s=t.mouseMoveThreshold,f=t.parentSVG,d=this.getDimension(t),p=Bm(e,f),h=p.x,y=p.y;if(!l&&!u||s>0&&!this.hasMoved(Km(Km({},t),{},{x2:h,y2:y})))return{};if(u&&r){var m=t.startX,v=t.startY,g=this.panBox(t,{x:h,y}),b=this.constrainBox(g,i),x=Vm(Km(Km({},b),{},{scale:n,horizontal:c})),w=Km({currentDomain:x,parentSVG:f,startX:g.x2>=i.x2||g.x1<=i.x1?m:h,startY:g.y2>=i.y2||g.y1<=i.y1?v:y},b);return ue(a)&&a(x,$()({},w,t)),[{target:"parent",mutation:function(){return w}}]}if(l&&o){var O=this.constrainPoint({x:"y"!==d?h:t.x2,y:"x"!==d?y:t.y2},i),_=O.x,k=O.y,S=Vm({x2:_,y2:k,x1:t.x1,y1:t.y1,scale:n,horizontal:c}),j={x2:_,y2:k,currentDomain:S,parentSVG:f};return ue(a)&&a(S,$()({},j,t)),[{target:"parent",mutation:function(){return j}}]}return{}},onGlobalMouseUp:function(e,t){if(!t.isPanning&&!t.isSelecting)return{};var n=t.x1,r=t.y1,o=t.x2,i=t.y2,a=t.isPanning,l=t.isSelecting,u=t.onBrushDomainChange,c=t.onBrushDomainChangeEnd,s=t.onBrushCleared,f=t.currentDomain,d=t.allowResize,p=t.allowDrag,h=d||t.defaultBrushArea?t.defaultBrushArea:"move",y={isPanning:!1,isSelecting:!1};if(!d&&(void 0===h||"none"===h)||n!==o&&r!==i)(p&&a||d&&l)&&ue(c)&&c(f,$()({},y,t));else{var m=t.cachedCurrentDomain||f,v=this.getDefaultBrushArea(t,m,e);y.currentDomain=v,ue(u)&&u(v,$()({},y,t)),ue(c)&&c(v,$()({},y,t)),ue(s)&&s(v,$()({},y,t))}return[{target:"parent",mutation:function(){return y}}]}},Zm=Km(Km({},Qm),{},{onMouseDown:Qm.onMouseDown.bind(Qm),onGlobalMouseUp:Qm.onGlobalMouseUp.bind(Qm),onGlobalMouseMove:qm()(Qm.onGlobalMouseMove.bind(Qm),16,{leading:!0,trailing:!1})});function Jm(e){return function(e){if(Array.isArray(e))return ev(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ev(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ev(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ev(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tv(Object(n),!0).forEach((function(t){rv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ov={allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:j().createElement(zs,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:j().createElement(zs,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0},iv=function(e){var t,n,r,o,i,a=nv(nv({},ov),e),l=a.children;return{props:a,children:[].concat(Jm(j().Children.toArray(l)),Jm((t=a.currentDomain,n=a.cachedBrushDomain,r=$()({},a.brushDomain,a.domain),o=Nd()(r,n)?$()({},t,r):r,i=function(e){var t=e.x,n=e.y,r=a.brushStyle,o=a.brushComponent,i=a.name,l=o.props&&o.props.style,u=a.allowDrag||a.allowResize?"move":"auto";return t[0]!==t[1]&&n[0]!==n[1]?j().cloneElement(o,{key:"".concat(i,"-brush"),width:Math.abs(t[1]-t[0])||1,height:Math.abs(n[1]-n[0])||1,x:Math.min(t[0],t[1]),y:Math.min(n[0],n[1]),cursor:u,style:$()({},l,r)}):null}(Um(a,o)),i?[i,function(e){var t=a.handleWidth,n=a.handleStyle,r=a.handleComponent,o=a.name,i=Zm.getDomainBox(a,e),l=i.x1,u=i.x2,c=i.y1,s=i.y2,f=Zm.getHandles(a,i),d=f.top,p=f.bottom,h=f.left,y=f.right,m=Math.abs(u-l)||1,v=Math.abs(s-c)||1,g=r.props&&r.props.style||{},b=$()({},g,n),x=function(){var e={yProps:"ns-resize",xProps:"ew-resize"};return!a.allowResize&&a.allowDrag?(e.xProps="move",e.yProps="move"):a.allowResize||a.allowDrag||(e.xProps="auto",e.yProps="auto"),e}(),w={style:b,width:m,height:t,cursor:x.yProps},O={style:b,width:t,height:v,cursor:x.xProps},_={top:d&&Object.assign({x:d.x1,y:d.y1},w),bottom:p&&Object.assign({x:p.x1,y:p.y1},w),left:h&&Object.assign({y:h.y1,x:h.x1},O),right:y&&Object.assign({y:y.y1,x:y.x1},O)},k=["top","bottom","left","right"].reduce((function(e,t){return _[t]?e.concat(j().cloneElement(r,Object.assign({key:"".concat(o,"-handle-").concat(t)},_[t]))):e}),[]);return k.length?k:null}(o)]:[])))}},av=function(e){var t=iv(e),n=t.props,r=t.children;return j().createElement(_s,n,r)};function lv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cv(e,t){return cv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cv(e,t)}function sv(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fv(e){return fv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fv(e)}function dv(e){return function(e){if(Array.isArray(e))return pv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return pv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pv(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}av.role="container",av.defaultEvents=function(e){var t=nv(nv({},ov),e),n=function(e,n){return function(r,o,i,a){return t.disable||null!=n&&n(o)?{}:e(r,nv(nv({},t),o),i,a)}};return[{target:"parent",eventHandlers:{onMouseDown:n(Zm.onMouseDown),onTouchStart:n(Zm.onMouseDown),onGlobalMouseMove:n(Zm.onGlobalMouseMove,(function(e){return!e.isPanning&&!e.isSelecting})),onGlobalTouchMove:n(Zm.onGlobalMouseMove,(function(e){return!e.isPanning&&!e.isSelecting})),onGlobalMouseUp:n(Zm.onGlobalMouseUp),onGlobalTouchEnd:n(Zm.onGlobalMouseUp),onGlobalTouchCancel:n(Zm.onGlobalMouseUp)}}]};var hv=1/Number.MAX_SAFE_INTEGER,yv=function(e){var t=e.scale,n=void 0===t?{}:t,r=e.dimension,o=void 0===r?"x":r;if(n[o])return n[o];var i=Yi(e,o),a=ae(e,o),l=Ua(e,o)||[0,1];return i.range(a).domain(l),i},mv=function(e){var t=e.horizontal,n=e.dimension,r=void 0===n?"x":n;return t?"x"===r?"y":"x":r},vv=function(e,t){var n=yv(e);return[n(Math.min.apply(Math,dv(t))),n(Math.max.apply(Math,dv(t)))]},gv=function(e,t){var n=yv(e);return[n.invert(Math.min.apply(Math,dv(t))),n.invert(Math.max.apply(Math,dv(t)))]},bv=function(e){return yv(e).range()},xv=function(e){return yv(e).domain()},wv=function(e,t){return e>=je(t)&&e<=Se(t)},Ov=function(e,t){if(e){var n=je(e),r=Se(e),o=je(t),i=Se(t),a=n<o?o:Number(i)-hv,l=r>i?i:Number(o)+hv;return[wv(n,t)?n:a,wv(r,t)?r:l]}return t},_v=function(e,t,n){var r=e.handleWidth/2,o=mv(e),i=["min","max"].reduce((function(e,i){return e[i]=wv(t,function(e){var t={min:"x"===o?Math.min.apply(Math,dv(n)):Math.max.apply(Math,dv(n)),max:"x"===o?Math.max.apply(Math,dv(n)):Math.min.apply(Math,dv(n))};return[t[e]-r,t[e]+r]}(i))?i:void 0,e}),{});return i.min&&i.max?"both":i.min||i.max},kv={stroke:"none",fill:"black",opacity:function(e){return e.active?.2:.1}},Sv={pointerEvents:"none",stroke:"none",fill:"black",opacity:function(e){return e.active?.4:.3}},jv={pointerEvents:"none",stroke:"none",fill:"none"},Ev=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cv(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=fv(r);if(o){var n=fv(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return sv(this,e)});function a(){return lv(this,a),i.apply(this,arguments)}return t=a,n=[{key:"getRectDimensions",value:function(e,t,n){var r=e.brushDomain,o=mv(e),i=vv(e,n||Ov(r,xv(e))),a="x"===o?{y1:e.y1,y2:e.y2,x1:Math.min.apply(Math,dv(i)),x2:Math.max.apply(Math,dv(i))}:{x1:e.x1,x2:e.x2,y1:Math.min.apply(Math,dv(i)),y2:Math.max.apply(Math,dv(i))},l=a.x1,u=a.x2,c=a.y1,s=a.y2,f="x"===o?0:t/2,d="y"===o?0:t/2,p=Math.min(l,u)-f,h=Math.min(c,s)-d;return{x:p,y:h,width:Math.max(l,u)+f-p,height:Math.max(c,s)+d-h}}},{key:"getHandleDimensions",value:function(e){var t=e.handleWidth,n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.brushDomain,l=mv(e),u=e.brushWidth||e.width,c=Ov(a,xv(e)),s=vv(e,c),f=Math.min(n,r)-u/2,d=Math.min(o,i)-u/2,p={min:"x"===l?Math.min.apply(Math,dv(s))-t/2:f,max:"x"===l?Math.max.apply(Math,dv(s))-t/2:f},h={min:"y"===l?Math.max.apply(Math,dv(s))-t/2:d,max:"y"===l?Math.min.apply(Math,dv(s))-t/2:d},y="x"===l?t:u,m="x"===l?u:t;return{min:{x:p.min,y:h.min,width:y,height:m},max:{x:p.max,y:h.max,width:y,height:m}}}},{key:"getCursor",value:function(e){var t=e.activeBrushes,n=void 0===t?{}:t,r=mv(e);return n.minHandle||n.maxHandle?"x"===r?"ew-resize":"ns-resize":n.brush?"move":"crosshair"}},{key:"renderHandles",value:function(e){var t=e.handleComponent,n=e.handleStyle,r=e.id,o=e.brushDomain,i=e.datum,a=void 0===i?{}:i,l=e.activeBrushes,u=void 0===l?{}:l;if(!o)return null;var c=this.getHandleDimensions(e),s=Object.assign({},jv,n),f=Object.assign({handleValue:je(o)},a),d=Object.assign({handleValue:Se(o)},a),p=Object.assign({key:"".concat(r,"-min"),style:te(s,{datum:f,active:u.minHandle})},c.min),h=Object.assign({key:"".concat(r,"-max"),style:te(s,{datum:d,active:u.maxHandle})},c.max);return[j().cloneElement(t,p),j().cloneElement(t,h)]}},{key:"renderBrush",value:function(e){var t=e.brushComponent,n=e.brushStyle,r=e.activeBrushes,o=void 0===r?{}:r,i=e.datum,a=void 0===i?{}:i;if(!e.brushDomain)return null;var l=e.brushWidth||e.width,u=this.getRectDimensions(e,l),c=te(Object.assign({},Sv,n),{datum:a,active:o.brush}),s=Object.assign({style:c},u);return j().cloneElement(t,s)}},{key:"renderBrushArea",value:function(e){var t=e.brushAreaComponent,n=e.brushAreaStyle,r=e.activeBrushes,o=void 0===r?{}:r,i=e.datum,a=void 0===i?{}:i,l=e.brushAreaWidth||e.width,u=this.getCursor(e),c=this.getRectDimensions(e,l,xv(e)),s=te(Object.assign({cursor:u},kv,n),{datum:a,active:o.brushArea}),f=Object.assign({style:s},c);return j().cloneElement(t,f)}},{key:"renderLine",value:function(e){var t=H()(e,["x1","x2","y1","y2","datum","scale","active","style"]);return j().cloneElement(e.lineComponent,t)}},{key:"render",value:function(){return j().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}],n&&uv(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);function Pv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pv(Object(n),!0).forEach((function(t){Mv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ev.defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:j().createElement(fm,null),brushComponent:j().createElement(fm,null),groupComponent:j().createElement("g",null),handleComponent:j().createElement(fm,null),handleWidth:10,lineComponent:j().createElement(ey,null),width:10},Ev.defaultEvents=function(e){return e.disable?void 0:[{target:e.type,eventHandlers:{onMouseEnter:function(e,t){e.preventDefault();var n=t.allowResize,r=t.brushDomain,o=mv(t),i=t.parentSVG||Fm(e),a=Bm(e,i)[o],l=xv(t),u=Ov(r,l),c=vv(t,u),s=n&&_v(t,a,c),f={brushArea:!t.brushDomain,brush:wv(a,c)&&!Nd()(l,u),minHandle:"min"===s||"both"===s,maxHandle:"min"===s||"both"===s};return[{mutation:function(){return{activeBrushes:f,brushDomain:t.brushDomain,parentSVG:i}}}]},onMouseDown:function(e,t){e.preventDefault();var n=t.allowResize,r=t.allowDrag,o=t.allowDraw,i=t.activeBrushes,a=t.brushDomain,l=mv(t);if(!n&&!r)return[];var u=xv(t),c=Ov(a,u),s=t.parentSVG||Fm(e),f=Bm(e,s)[l],d=vv(t,c),p=n&&_v(t,f,d);return p?[{mutation:function(){return{parentSVG:s,isSelecting:!0,activeHandle:p,brushDomain:c,startPosition:f,activeBrushes:i}}}]:wv(f,d)&&!Nd()(u,c)?[{mutation:function(){return{isPanning:r,startPosition:f,brushDomain:c,activeBrushes:i,parentSVG:s}}}]:o?[{mutation:function(){return{isSelecting:n,brushDomain:null,startPosition:f,activeBrushes:i,parentSVG:s}}}]:[]},onMouseMove:function(e,t){var n=t.isPanning,r=t.isSelecting,o=t.allowResize,i=t.allowDrag,a=t.onBrushDomainChange,l=t.brushDomain,u=mv(t);(n||r)&&(e.preventDefault(),e.stopPropagation());var c=t.parentSVG||Fm(e),s=Bm(e,c)[u],f=xv(t),d=Ov(l,f),p=vv(t,d),h=_v(t,s,p),y={brushArea:!t.brushDomain,brush:wv(s,p)&&!Nd()(f,d),minHandle:"min"===h||"both"===h,maxHandle:"max"===h||"both"===h};if(!t.isPanning&&!t.isSelecting)return[{mutation:function(){return{activeBrushes:y,brushDomain:t.brushDomain,parentSVG:c}}}];if(i&&n){var m=bv(t),v=function(e,t){var n=e.brushDomain,r=e.startPosition,o=vv(e,n),i=bv(e),a=Math.abs(o[1]-o[0]),l=Math.min.apply(Math,dv(i)),u=Math.max.apply(Math,dv(i)),c=r?r-t:0,s=Math.min.apply(Math,dv(o))-c,f=Math.max.apply(Math,dv(o))-c;return[s>u-a?u-a:Math.max(s,l),f<l+a?l+a:Math.min(f,u)]}(t,s),g=gv(t,v),b={startPosition:Math.max.apply(Math,dv(v))>=Math.max.apply(Math,dv(m))||Math.min.apply(Math,dv(v))<=Math.min.apply(Math,dv(m))?t.startPosition:s,isPanning:!0,brushDomain:g,activeBrushes:{brush:!0},parentSVG:c};return ue(a)&&a(g,$()({},b,t)),[{mutation:function(){return b}}]}if(o&&r){var x=l||[0,hv],w=vv(t,x),O="min"===t.activeHandle?"max":"min",_=t.activeHandle&&"both"===_v(t,s,w)?O:t.activeHandle;if(_){var k="x"===u?Math.max.apply(Math,dv(w)):Math.min.apply(Math,dv(w)),S="x"===u?Math.min.apply(Math,dv(w)):Math.max.apply(Math,dv(w));x=gv(t,["max"===_?S:s,"min"===_?k:s])}else x=gv(t,[t.startPosition,s]);var j={brushDomain:x,startPosition:t.startPosition,isSelecting:r,activeHandle:_,parentSVG:c,activeBrushes:{brush:!0,minHandle:"min"===h,maxHandle:"max"===h}};return ue(a)&&a(x,$()({},j,t)),[{mutation:function(){return j}}]}return[]},onMouseUp:function(e,t){var n=t.onBrushDomainChange,r=t.brushDomain,o=t.allowResize,i={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:t.activeBrushes};return o&&ue(n)&&n(r,$()({},i,t)),[{mutation:function(){return i}}]},onMouseLeave:function(e,t){var n=t.brushDomain;return[{mutation:function(){return{isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:n,activeBrushes:{}}}}]}}}]};var Av={groupComponent:j().createElement("g",null),lineComponent:j().createElement(Yh,null),rectComponent:j().createElement(zs,null),role:"presentation",shapeRendering:"auto"},Dv=function(e){var t=function(e){var t=te(Object.assign({stroke:"black"},e.style),e),n=function(e,t){var n=t.style;return e?ue(e)?ee(e,t):e:n.width?n.width:e}(e.candleWidth,Object.assign({},e,{style:t})),r=ee(e.ariaLabel,e),o=ee(e.desc,e),i=ee(e.id,e),a=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:r,style:t,candleWidth:n,desc:o,id:i,tabIndex:a})}(Cv(Cv({},Av),e)),n=t.ariaLabel,r=t.events,o=t.groupComponent,i=t.clipPath,a=t.rectComponent,l=t.lineComponent,u=t.role,c=t.shapeRendering,s=t.className,f=t.wickStrokeWidth,d=t.transform,p=t.style,h=t.desc,y=t.tabIndex,m=$()({strokeWidth:f},p),v=Cv(Cv({},r),{},{"aria-label":n,role:u,shapeRendering:c,className:s,transform:d,clipPath:i,desc:h,tabIndex:y}),g=Object.assign(function(e,t){var n=e.id,r=e.x,o=e.close,i=e.open,a=e.horizontal,l=e.candleWidth,u=Math.abs(o-i);return{key:"".concat(n,"-candle"),style:K(t,["width"]),x:a?Math.min(i,o):r-l/2,y:a?r-l/2:Math.min(i,o),width:a?u:l,height:a?l:u}}(t,p),v),b=Object.assign(function(e,t){var n=e.horizontal,r=e.high,o=e.open,i=e.close,a=e.x,l=e.id;return{key:"".concat(l,"-highWick"),style:K(t,["width"]),x1:n?r:a,x2:n?Math.max(o,i):a,y1:n?a:r,y2:n?a:Math.min(o,i)}}(t,m),v),x=Object.assign(function(e,t){var n=e.horizontal,r=e.low,o=e.open,i=e.close,a=e.x,l=e.id;return{key:"".concat(l,"-lowWick"),style:K(t,["width"]),x1:n?Math.min(o,i):a,x2:n?r:a,y1:n?a:Math.max(o,i),y2:n?a:r}}(t,m),v);return j().cloneElement(o,{},[j().cloneElement(a,g),j().cloneElement(l,b),j().cloneElement(l,x)])},Tv=["close","open","high","low"],Lv=function(e){return xa(e.data,e,["x","high","low","close","open"])},Nv=function(e,t,n){var r="x"===t?"_x":{min:"_low",max:"_high"}[n],o="min"===n?1/0:-1/0;return e.reduce((function(e,t){var o=t[r];return e<o&&"min"===n||e>o&&"max"===n?e:o}),o)},zv=function(e,t){var n=Ha(e,t),r=Va(e,t),o=Lv(e);return o.length<1?void 0!==n&&void 0!==r?Ba(n,r):void 0:Ba(void 0!==n?n:Nv(o,t,"min"),void 0!==r?r:Nv(o,t,"max"))},Iv=function(e,t){return Na(zv)(e,t)},Rv=function(e,t,n){var r=e["".concat(n,"LabelComponent")],o=t["".concat(n,"Labels")]||t.labels;if(!Q(r))return o;var i=e.theme&&e.theme.tooltip||{};return $()({},i.style,o)},Fv=function(e){return"none"===e||"transparent"===e},Bv=function(e,t,n,r){var o=e.x,i=e.high,a=e.low,l=e.open,u=e.close,c=e.index,s=e.scale,f=e.datum,d=e.data,p=e.horizontal,h=e.candleWidth,y=e.labelOrientation,m=e.theme,v=e["".concat(r,"LabelComponent")]||e.labelComponent,g=p?"top":"right",b=v.props&&v.props.orientation||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"labels";return B()(e)?e[t]:e}(y,r)||g,x={high:i,low:a,open:l,close:u},w=n[r?"".concat(r,"Labels"):"labels"]||n.labels,O=function(e){var t=e.positions,n=e.labelStyle,r=e.x,o=e.horizontal,i=e.computedType,a=e.candleWidth,l=e.orientation;t.labels=(t.open+t.close)/2;var u="left"===l?-1:1,c="top"===l?-1:1;if(o){var s=r,f=t[i],d="top"===l||"bottom"===l?c*(a/2)+c*(n.padding||0):0;return{yValue:s,xValue:f,dx:"top"===l||"bottom"===l?0:u*(n.padding||1),dy:d}}var p=r,h=t[i],y="top"===l||"bottom"===l?c*(n.padding||1):0;return{yValue:h,xValue:p,dx:"top"===l||"bottom"===l?0:u*(a/2)+u*(n.padding||0),dy:y}}({positions:x,labelStyle:w,x:o,horizontal:p,computedType:r||"labels",candleWidth:h,orientation:b}),_={style:w,y:O.yValue,x:O.xValue,dx:O.dx,dy:O.dy,text:t,index:c,scale:s,datum:f,data:d,orientation:b,textAnchor:w.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[b],verticalAnchor:w.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[b],angle:w.angle,horizontal:p};if(!Q(v))return _;var k=m&&m.tooltip||{};return $()({},_,K(k,["style"]))},Uv=function(e,t){var n=se(e,t,"candlestick"),r=function(e){var t=e.polar,n=Z(e,"candlestick"),r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.disableInlineStyles)return{};var r="100%",o="100%";if(!t)return $()({parent:{height:o,width:r}},n);var i=n.parent||{},a=n.labels||{},l=n.data||{},u=$()({},t.labels,a);return{parent:$()({},t.parent,i,{width:r,height:o}),labels:u,data:$()({},t.data,l),openLabels:$()({},t.openLabels,Rv(e,n,"open"),u),closeLabels:$()({},t.closeLabels,Rv(e,n,"close"),u),lowLabels:$()({},t.lowLabels,Rv(e,n,"low"),u),highLabels:$()({},t.highLabels,Rv(e,n,"high"),u)}}(e,e.style,n),o=Lv(e),i={x:ae(e,"x"),y:ae(e,"y")},a={x:Iv(e,"x"),y:Iv(e,"y")},l={x:Yi(e,"x").domain(a.x).range(e.horizontal?i.y:i.x),y:Yi(e,"y").domain(a.y).range(e.horizontal?i.x:i.y)},u=t?e.origin||ie(e):void 0,c=e.horizontal?"top":"right";return{domain:a,data:o,scale:l,style:r,origin:u,labelOrientation:e.labelOrientation||c}}(n),o=r.data,i=r.style,a=r.scale,l=r.domain,u=r.origin,c=r.labelOrientation,s=n.groupComponent,f=n.width,d=n.height,p=n.padding,h=n.standalone,y=n.name,m=n.candleWidth,v=n.candleRatio,g=n.theme,b=n.polar,x=n.wickStrokeWidth,w=n.labels,O=n.events,_=n.sharedEvents,k=n.horizontal,S=n.disableInlineStyles,j={parent:{domain:l,scale:a,width:f,height:d,data:o,standalone:h,theme:g,polar:b,origin:u,name:y,style:i.parent,padding:p,horizontal:k}};return o.reduce((function(e,t,r){var d=le(t.eventKey)?r:t.eventKey,p=a.x(void 0!==t._x1?t._x1:t._x),h=function(e,t){var n=je(t.x),r=Se(t.x),o=je(t.y),i=Se(t.y),a=e._x,l=e._low,u=e._open,c=e._close,s=e._high;return(a<n||a>r)&&(a=null),l<o&&u<o&&c<o&&s<o&&(l=u=c=s=null),l>i&&u>i&&c>i&&s>i&&(l=u=c=s=null),Object.assign({},e,{_x:a,_low:l,_open:u,_close:c,_high:s})}(t,l),y=h._low,g=h._open,j=h._close,E=h._high,P=a.y(E),C=a.y(j),M=a.y(g),A=a.y(y),D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(n.disableInlineStyles)return{};var r=e._open>e._close?n.candleColors.negative:n.candleColors.positive,o=t.fill||r,i=t.stroke,a=Fv(i)?o:i||"black";return Object.assign({},t,{stroke:a,fill:o})}(h,i.data,n),T={x:p,high:P,low:A,candleWidth:m,candleRatio:v,scale:a,data:o,datum:h,groupComponent:s,index:r,style:D,width:f,polar:b,origin:u,wickStrokeWidth:x,open:M,close:C,horizontal:k,labelOrientation:c,disableInlineStyles:S};T.candleWidth=function(e,t){var n=e.data,r=e.candleWidth,o=e.scale;if(r)return ue(r)?ee(r,e):r;var i=o.x.range(),a=Math.abs(i[1]-i[0]),l=n.length+2,u=(e.candleRatio||.5)*(n.length<2?8:a/l);return Math.max(1,u)}(T);var L=$()(Object.assign({},T),n);if(e[d]={data:T},w){var N=Ga(n,h,r);(null!=N||w&&(O||_))&&(e[d].labels=Bv(L,N,i))}return Tv.forEach((function(t){var r=function(e,t){var n=e.datum,r=e.index,o=e.labels,i=e["".concat(t,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(t);return"".concat(n[a])}return Array.isArray(i)?i[r]:i}(L,t),o=n.labels||n["".concat(t,"Labels")];if(null!=r||o&&(O||_)){var a="".concat(t,"Labels");e[d][a]=Bv(L,r,i,t)}})),e}),j)};function Wv(e){return function(e){if(Array.isArray(e))return Vv(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Vv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vv(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $v(e,t){return $v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$v(e,t)}function Kv(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Gv(e){return Gv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gv(e)}var Yv={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},Xv=[{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}],Qv=function(e){return!le(e._x)&&!le(e._y)},Zv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$v(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Gv(r);if(o){var n=Gv(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Kv(this,e)});function a(){var e;Hv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).shouldRenderDatum=function(e){return!(le(e._x)||le(e._high)||le(e._low)||le(e._close)||le(e._open))},e}return t=a,n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"renderCandleData",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qv,r=e.dataComponent,o=e.labelComponent,i=e.groupComponent,a=["close","open","low","high"];if(!i)throw new Error("VictoryCandlestick expects a groupComponent prop");var l=[];if(r){var u=this.dataKeys.reduce((function(e,o,i){var a=t.getComponentProps(r,"data",i);return n(a.datum)&&e.push(j().cloneElement(r,a)),e}),[]);l.push.apply(l,Wv(u))}var c=a.flatMap((function(n){return t.dataKeys.map((function(r,o){var i="".concat(n,"Labels"),a=e["".concat(n,"LabelComponent")],l=t.getComponentProps(a,i,o);if(void 0!==l.text&&null!==l.text)return j().cloneElement(a,l)})).filter((function(e){return void 0!==e}))}));if(l.push.apply(l,Wv(c)),o){var s=this.dataKeys.map((function(e,n){var r=t.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return j().cloneElement(o,r)})).filter((function(e){return void 0!==e}));l.push.apply(l,Wv(s))}return this.renderContainer(i,l)}},{key:"render",value:function(){var e=Jv.animationWhitelist,t=Jv.role,n=se(this.props,Yv,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderCandleData(n,this.shouldRenderDatum),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}],n&&qv(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);Zv.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],Zv.displayName="VictoryCandlestick",Zv.role="candlestick",Zv.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}},Zv.defaultProps={containerComponent:j().createElement(_s,null),data:Xv,dataComponent:j().createElement(Dv,null),groupComponent:j().createElement("g",{role:"presentation"}),labelComponent:j().createElement($f,null),highLabelComponent:j().createElement($f,null),lowLabelComponent:j().createElement($f,null),openLabelComponent:j().createElement($f,null),closeLabelComponent:j().createElement($f,null),samples:50,sortOrder:"ascending",standalone:!0,theme:sd.grayscale},Zv.getDomain=Iv,Zv.getData=Lv,Zv.getBaseProps=function(e){return Uv(e,Yv)},Zv.expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];var Jv=mh(Zv,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),eg=j().createContext(void 0),tg=function(){var e=j().useContext(eg);if(!e)throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");return e},ng=function(e){var t=tg().canvasRef,n=function(e){var t=My(e.style,e),n=Py(e.barWidth,Object.assign({},e,{style:t})),r=Cy(e.cornerRadius,Object.assign({},e,{style:t,barWidth:n}));return Object.assign({},e,{style:t,barWidth:n,cornerRadius:r})}(e),r=n.polar,o=n.style,i=n.barWidth,a=n.cornerRadius,l=n.origin,u=j().useMemo((function(){var e=r?Ky(n,a):$y(n,i,a);return new Path2D(e)}),[r,i,a,n]),c=function(e){var t=j().useRef();return j().useEffect((function(){t.current=e})),t.current}(u),s=j().useCallback((function(e,t){e.fillStyle=o.fill,e.strokeStyle=o.stroke,e.globalAlpha=o.fillOpacity,e.lineWidth=o.strokeWidth,r&&e.translate((null==l?void 0:l.x)||0,(null==l?void 0:l.y)||0),e.fill(t),e.setTransform(1,0,0,1,0,0)}),[o,l,r]),f=j().useCallback((function(e){if(c){e.save();var t=o.strokeWidth||0;e.lineWidth=t+2,e.globalCompositeOperation="destination-out",s(e,c),e.stroke(c),e.restore()}}),[s,c,o]);return j().useEffect((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.getContext("2d");n&&(f(n),s(n,u))}),[t,s,r,i,a,n,u,f]),null},rg=function(e){var t=j().useRef(null),n=e.children,r=e.width,o=void 0===r?0:r,i=e.height,a=void 0===i?0:i,l=e.clipWidth,u=e.padding,c=j().useCallback((function(e){return e.clearRect(0,0,o,a)}),[o,a]),s=j().useCallback((function(e){var t="number"==typeof u?u:(null==u?void 0:u.right)||0,n="number"==typeof u?u:(null==u?void 0:u.left)||0,r=o-t-n;e.clearRect(o-t,0,l?-1*(r-l):0,a)}),[o,a,u,l]);return j().createElement(eg.Provider,{value:{canvasRef:t,clear:c,clip:s}},j().createElement("foreignObject",{width:o,height:a,x:0,y:0},j().createElement("canvas",{width:o,height:a,ref:t})),n)};rg.role="container";var og=function(e){var t=tg(),n=t.canvasRef,r=t.clear,o=t.clip,i=e.style,a=e.data,l=i.stroke,u=i.strokeWidth,c=j().useCallback((function(t){var n=Uc(e);t.strokeStyle=l,t.lineWidth=u,n.context(t)(a),t.stroke()}),[a,e,l,u]);return j().useEffect((function(){var e,t=null===(e=n.current)||void 0===e?void 0:e.getContext("2d");t&&(r(t),c(t),o(t))}),[n,c,r,o]),null};function ig(e,t,n){return"M ".concat(e,", ").concat(t,"\n m ").concat(-n,", 0\n a ").concat(n,", ").concat(n," 0 1,0 ").concat(2*n,",0\n a ").concat(n,", ").concat(n," 0 1,0 ").concat(2*-n,",0")}function ag(e,t,n){var r=.87*n,o=e-r,i=t+r,a=e+r-o;return"M ".concat(o,", ").concat(i,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")}function lg(e,t,n){var r=.87*n,o=Math.sqrt(r*r*2);return"M ".concat(e,", ").concat(t+o,"\n l ").concat(o,", -").concat(o,"\n l -").concat(o,", -").concat(o,"\n l -").concat(o,", ").concat(o,"\n l ").concat(o,", ").concat(o,"\n z")}function ug(e,t,n){var r=e+n,o=t-n,i=t+n/2*Math.sqrt(3);return"M ".concat(e-n,", ").concat(o,"\n L ").concat(r,", ").concat(o,"\n L ").concat(e,", ").concat(i,"\n z")}function cg(e,t,n){var r=e+n,o=t-n/2*Math.sqrt(3),i=t+n;return"M ".concat(e-n,", ").concat(i,"\n L ").concat(r,", ").concat(i,"\n L ").concat(e,", ").concat(o,"\n z")}function sg(e,t,n){var r=1.1*n,o=r/1.5;return"\n M ".concat(e-o/2,", ").concat(t+r,"\n v-").concat(o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(o,"\n z")}function fg(e,t,n){var r=.8*n,o=r/1.5;return"\n M ".concat(e-o/2,", ").concat(t+r+o,"\n v-").concat(2*o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(2*o,"\n z")}function dg(e,t,n){var r=1.1*n,o=r-.3*r,i=e-r,a=t+o/2,l=e+r-i;return"M ".concat(i,", ").concat(a,"\n h").concat(l,"\n v-").concat(o,"\n h-").concat(l,"\n z")}function pg(e,t,n){var r=1.35*n,o=Math.PI/5,i=pe(10).map((function(n){var i=n%2==0?r:r/2;return"".concat(i*Math.sin(o*(n+1))+e,",\n ").concat(i*Math.cos(o*(n+1))+t)}));return"M ".concat(i.join("L")," z")}var hg=function(e){var t=tg().canvasRef,n=function(e){var t=ee(e.size,e),n=te(e.style,e),r=ee(e.symbol,e);return Object.assign({},e,{size:t,style:n,symbol:r})}(e),r=j().useCallback((function(e){var t=n.style,r=function(e){var t=e.x,n=e.y,r=e.size,o=e.symbol;if(e.getPath)return e.getPath(t,n,r);var i={circle:ig,square:ag,diamond:lg,triangleDown:ug,triangleUp:cg,plus:sg,minus:dg,star:pg,cross:fg};return("function"==typeof i[o]?i[o]:i.circle)(t,n,r)}(n);e.fillStyle=t.fill;var o=new Path2D(r);e.fill(o)}),[n]);return j().useEffect((function(){var e,n=null===(e=t.current)||void 0===e?void 0:e.getContext("2d");n&&r(n)}),[]),null};function yg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yg(Object(n),!0).forEach((function(t){vg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gg={circleComponent:j().createElement(As,null),rectComponent:j().createElement(zs,null),role:"presentation",shapeRendering:"auto"},bg=function(e){var t=function(e){var t=ee(e.id,e);return Object.assign({},e,{id:t})}(mg(mg({},gg),e));return t.polar?j().cloneElement(t.circleComponent,mg(mg({},t.events),{},{style:t.style,role:t.role,shapeRendering:t.shapeRendering,cx:t.x,cy:t.y,r:t.height,className:t.className})):j().cloneElement(t.rectComponent,mg(mg({},t.events),{},{style:t.style,role:t.role,shapeRendering:t.shapeRendering,x:t.x,y:t.y,rx:t.rx,ry:t.ry,width:t.width,height:t.height,className:t.className}))};function xg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xg(Object(n),!0).forEach((function(t){Og(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Og(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return kg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?kg(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Sg={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},jg=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Sg,t=j().useState(e),n=_g(t,2),r=n[0],o=n[1],i=j().useCallback((function(e){o((function(t){return wg(wg({},t),e)}))}),[o]),a=j().useCallback((function(e,t,n){if(null==e||!e.animate)return t.props.animate;var o,a=e.animate&&e.animate.getTransitions,l=(o=_e(o=r&&r.childrenTransitions)?o[n]:o,$()({childrenTransitions:o},r)),u=e.animate&&e.animate.parentState||l;if(!a){var c=Xp(e,l,(function(e){return i(e)}));a=function(e){return c(e,n)}}return $()({getTransitions:a,parentState:u},e.animate,t.props.animate)}),[r,i]),l=j().useCallback((function(e,t){if(null!=e&&e.animate)if(e.animate.parentState){var n=e.animate.parentState.nodesWillExit?e:null,r=$()({oldProps:n,nextProps:t},e.animate.parentState);i(r)}else{var o=j().Children.toArray(e.children),a=j().Children.toArray(t.children),l=function(e){var t=function(e){return e.type&&e.type.continuous};return Array.isArray(e)?e.some(t):t(e)},u=!e.polar&&o.some((function(e){var t;return l(e)||(null==e||null===(t=e.props)||void 0===t?void 0:t.children)&&l(e.props.children)})),c=Yp(o,a),s=c.nodesWillExit,f=c.nodesWillEnter,d=c.childrenTransitions,p=c.nodesShouldEnter;i({nodesWillExit:s,nodesWillEnter:f,nodesShouldEnter:p,childrenTransitions:_e(d)?d[0]:d,oldProps:s?e:void 0,nextProps:t,continuous:u})}}),[i]),u=j().useCallback((function(e){return r&&r.nodesWillExit&&r.oldProps||e}),[r]);return{state:r,setState:i,getAnimationProps:a,setAnimationState:l,getProps:u}},Eg=r(8961),Pg=r.n(Eg);function Cg(e){return function(e){if(Array.isArray(e))return Mg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Mg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mg(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Dg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach((function(t){Tg(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tg(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lg(e){var t=e.children,n=e.props,r=e.childComponents,o=e.parentProps,i=t.some((function(e){return e.type&&"histogram"===e.type.role})),a=i&&t.length&&t.every((function(e){return e.type&&"histogram"===e.type.role}));if(!a)return o;var l=n.bins||r[0].props.bins;if(!Array.isArray(l)){var u=t.reduce((function(e,t){var n=ce(t.props.x||"x");return e.concat(t.props.data.map((function(e){return{x:n(e)}})))}),[]);l=(0,t[0].type.getFormattedData)({data:u,bins:l}).reduce((function(e,t,n){var r=t.x0,o=t.x1;return 0===n?e.concat([r,o]):e.concat(o)}),[])}return Dg(Dg({},o),{},{bins:l})}function Ng(e,t){var n={polar:e.polar,startAngle:e.startAngle,endAngle:e.endAngle,categories:e.categories,minDomain:e.minDomain,maxDomain:e.maxDomain},r=0,o=t?t.slice(0):j().Children.toArray(e.children);n=Lg({children:o,props:e,childComponents:t,parentProps:n});var i=o.filter((function(e){return e.type&&"stack"===e.type.role})).length,a=he(o,(function(e,t,o){var i,a=Object.assign({},e.props,n);return Ea(e)?(i=e.type&&ue(e.type.getData)?(o?j().cloneElement(e,o.props):e).type.getData(a):_a(a),r+=1,i.map((function(e,t){return Object.assign({_stack:r,_group:t},e)}))):null}),e,[],(function(e,t){return e.concat(Pg()(t,"_group"))})),l=i?"_group":"_stack";return Object.values(gm()(a,l))}function zg(e,t){return e.data?_a(e):Ng(e,t||j().Children.toArray(e.children))}function Ig(e,t,n){var r=e.datasets,o=ae(e,e.horizontal?"y":"x"),i=Math.abs(o[1]-o[0]),a=void 0!==n?n:Array.isArray(r[0])&&r[0].length||1,l=(t||r.length)*a;return Math.round(.5*i/l)}function Rg(e,t,n){if(!e.polar&&"x"===t){var r=n.filter((function(e){return e.type&&e.type.role&&"group"===e.type.role}));if(!(r.length<1)){var o=r[0].props,i=o.offset,a=o.children;if(i){var l=Array.isArray(a)&&a[0];if(l){var u=l.props.barWidth,c=l.props.data&&l.props.data.length||1;if(l&&"stack"===l.type.role){var s=l.props.children&&l.props.children[0];if(!s)return;u=s.props.barWidth,c=l.props.children.length}var f=u||Ig(e,a.length,c);return{x:f*a.length/2+(i-f*((a.length-1)/2))}}}}}}function Fg(e,t,n){var r=n?n.slice(0):j().Children.toArray(e.children),o=e.data?_a(e):void 0,i=e.polar,a=e.startAngle,l=e.endAngle,u=e.categories,c=e.minDomain,s=e.maxDomain,f={horizontal:e.horizontal,polar:i,startAngle:a,endAngle:l,minDomain:c,maxDomain:s,categories:u},d=o?Object.assign(f,{data:o}):f,p=he(r,(function(e){var n=Object.assign({},e.props,d);return $a(e)?e.type&&ue(e.type.getDomain)?e.props&&e.type.getDomain(n,t):Ia(n,t):null}),e);return[0===p.length?0:je(p),0===p.length?1:Se(p)]}function Bg(e,t,n){var r,o=n||j().Children.toArray(e.children),i=Ua(e,t),a=Rg(e,t,o);if(i)r=i;else{var l=Ha(e,t),u=Va(e,t),c=(e.data||e.y)&&_a(e),s=c?Fa(e,t,c):[],f=Fg(e,t,o);r=Ba(l||je([].concat(Cg(s),Cg(f))),u||Se([].concat(Cg(s),Cg(f))))}return za(r,Object.assign({domainPadding:a},e),t)}function Ug(e,t,n){if(e.data)return Yi(e,t);var r=n?n.slice(0):j().Children.toArray(e.children),o=W()(he(r,(function(n){return Zi(Object.assign({},n.props,{horizontal:e.horizontal}),t)}),e));return o.length>1?Gi("linear"):Gi(o[0])}function Wg(e){var t=Cd(e,["groupComponent","containerComponent","labelComponent"]),n=e.events;return Array.isArray(t)&&(n=Array.isArray(e.events)?t.concat.apply(t,Cg(e.events)):t),n||[]}function Vg(e,t,n){var r=e.style,o=e.colorScale,i=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(o=t.props&&t.props.colorScale?t.props.colorScale:o,i=t.props&&t.props.color?t.props.color:i,o||i){var a=Array.isArray(o)?o:sf(o);return i||a[n%a.length]}}function Hg(e,t,n){return J(t,e&&e[n]&&e[n].style?e[n].style:{})}function qg(e,t,n){var r=n.style,o=n.role,i=e.props.style||{};if(Array.isArray(i))return i;var a=e.type&&e.type.role,l="stack"===a?void 0:Vg(n,e,t),u="line"===a?{fill:"none",stroke:l}:{fill:l},c="stack"===o?{}:{width:Ig(n)},s=$()({},i.data,Object.assign({},c,r.data,u)),f=$()({},i.labels,r.labels);return{parent:r.parent,data:s,labels:f}}function $g(e,t){return he(e.slice(0),(function(e){var n=e.props||{};if(!$a(e)||!n.categories)return null;var r=n.categories&&!Array.isArray(n.categories)?n.categories[t]:n.props.categories,o=r&&r.filter((function(e){return"string"==typeof e}));return o?ke(o):[]}))}function Kg(e){return he(e.slice(0),(function(e){var t=e.props||{};return Ea(e)?(e.type&&ue(e.type.getData)?e.type.getData(t):_a(t)).map((function(e){return{x:e.xName,y:e.yName}})):null}),{},{x:[],y:[]},(function(e,t){var n=Array.isArray(t)?t.map((function(e){return e.x})).filter(Boolean):t.x,r=Array.isArray(t)?t.map((function(e){return e.y})).filter(Boolean):t.y;return{x:void 0!==n?e.x.concat(n):e.x,y:void 0!==r?e.y.concat(r):e.y}}))}function Gg(e,t,n){var r=B()(e.categories)?e.categories[t]:e.categories,o=Ah(n,t),i=o?ka(o.props,t):[],a=r||$g(n,t);return W()([].concat(Cg(a),Cg(i)).flat())}function Yg(e,t){var n=t||j().Children.toArray(e.children),r=Gg(e,"x",n),o=Gg(e,"y",n),i=Kg(n);return{x:W()([].concat(Cg(r),Cg(i.x)).flat()),y:W()([].concat(Cg(o),Cg(i.y)).flat())}}function Xg(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,o=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,i=r&&o?{}:n||Yg(e,t),a=r||i.x,l=o||i.y;return{x:a.length>0?a:void 0,y:l.length>0?l:void 0}}function Qg(e){var t=j().useRef();return j().useEffect((function(){t.current=e})),t.current}var Zg=r(7314),Jg=r.n(Zg),eb=r(2516),tb=r.n(eb);function nb(e,t){if(e){if("string"==typeof e)return rb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rb(e,t):void 0}}function rb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ob(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ib(e,t){return ib=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ib(e,t)}function ab(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return lb(e)}function lb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ub(e){return ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ub(e)}var cb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ib(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ub(r);if(o){var n=ub(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ab(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).getScopedEvents=void 0,t.getEventState=void 0,t.baseProps=void 0,t.sharedEventsCache=void 0,t.globalEvents=void 0,t.prevGlobalEventKeys=void 0,t.boundGlobalEvents=void 0,t.getScopedEvents=_d.bind(lb(t)),t.getEventState=Sd.bind(lb(t)),t.state=t.state||{},t.sharedEventsCache={},t.globalEvents={},t.prevGlobalEventKeys=[],t.boundGlobalEvents={},t.baseProps=t.getBaseProps(e),t}return t=a,n=[{key:"shouldComponentUpdate",value:function(e){if(!Nd()(this.props,e)){this.baseProps=this.getBaseProps(e);var t=this.getExternalMutations(e,this.baseProps);this.applyExternalMutations(e,t)}return!0}},{key:"componentDidMount",value:function(){var e=this,t=Object.keys(this.globalEvents);t.forEach((function(t){return e.addGlobalListener(t)})),this.prevGlobalEventKeys=t}},{key:"componentDidUpdate",value:function(){var e=this,t=Object.keys(this.globalEvents);yd()(this.prevGlobalEventKeys,t).forEach((function(t){return e.removeGlobalListener(t)})),yd()(t,this.prevGlobalEventKeys).forEach((function(t){return e.addGlobalListener(t)})),this.prevGlobalEventKeys=t}},{key:"componentWillUnmount",value:function(){var e=this;this.prevGlobalEventKeys.forEach((function(t){return e.removeGlobalListener(t)}))}},{key:"addGlobalListener",value:function(e){var t=this,n=function(n){var r=t.globalEvents[e];return r&&r(Td(n))};this.boundGlobalEvents[e]=n,window.addEventListener(Md(e),n)}},{key:"removeGlobalListener",value:function(e){window.removeEventListener(Md(e),this.boundGlobalEvents[e])}},{key:"getAllEvents",value:function(e){var t,n=Cd(e,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(e.events)?n.concat.apply(n,function(e){if(Array.isArray(e))return rb(e)}(t=e.events)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||nb(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):n:e.events}},{key:"applyExternalMutations",value:function(e,t){if(!L()(t)){var n=e.externalEventMutations.reduce((function(e,t){return ue(t.callback)?e.concat(t.callback):e}),[]),r=n.length?function(){n.forEach((function(e){return e()}))}:void 0;this.setState(t,r)}}},{key:"getExternalMutations",value:function(e,t){return L()(e.externalEventMutations)?void 0:jd(e.externalEventMutations,t,this.state,Object.keys(t))}},{key:"cacheSharedEvents",value:function(e,t,n){this.sharedEventsCache[e]=[t,n]}},{key:"getCachedSharedEvents",value:function(e,t){var n,r,o=(n=this.sharedEventsCache[e]||[],r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||nb(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(i&&Nd()(t,a))return i}},{key:"getBaseProps",value:function(e){var t=e.container,n=j().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(n),o=t?t.props:{};return Object.assign({},r,{parent:o})}},{key:"getBasePropsFromChildren",value:function(e){var t=he(e,(function(e,t){if(e.type&&ue(e.type.getBaseProps)){var n=e.props&&e.type.getBaseProps(e.props);return n?[[t,n]]:null}return null}));return Jg()(t)}},{key:"getNewChildren",value:function(e,t){var n=this,r=e.events,o=e.eventKey,i=function(e,a){return e.reduce((function(e,l,u){if(l.props.children){var c=j().Children.toArray(l.props.children),s=a.slice(u,u+c.length),f=j().cloneElement(l,l.props,i(c,s));return e.concat(f)}if("parent"!==a[u]&&l.type&&ue(l.type.getBaseProps)){var d=l.props.name||a[u],p=Array.isArray(r)&&r.filter((function(e){return"parent"!==e.target&&(Array.isArray(e.childName)?e.childName.indexOf(d)>-1:e.childName===d||"all"===e.childName)})),h=[d,t,p,tb()(n.state[d])],y=n.getCachedSharedEvents(d,h)||{events:p,getEvents:function(e,r){return n.getScopedEvents(e,r,d,t)},getEventState:function(e,t){return n.getEventState(e,t,d)}};return n.cacheSharedEvents(d,y,h),e.concat(j().cloneElement(l,Object.assign({key:"events-".concat(d),sharedEvents:y,eventKey:o,name:d},l.props)))}return e.concat(l)}),[])},a=Object.keys(t),l=j().Children.toArray(e.children);return i(l,a)}},{key:"getContainer",value:function(e,t,n){var r=this,o=this.getNewChildren(e,t),i=Array.isArray(n)?n.filter((function(e){return"parent"===e.target})):[],a=i.length>0?{events:i,getEvents:function(e,n){return r.getScopedEvents(e,n,null,t)},getEventState:this.getEventState}:null,l=e.container||e.groupComponent,u=l.type&&l.type.role,c=l.props||{},s=Od.bind(this),f=a&&s({sharedEvents:a},"parent"),d=$()({},this.getEventState("parent","parent"),c,t.parent,{children:o}),p=$()({},kd(f,"parent",d),c.events);this.globalEvents=Ad(p);var h=Dd(p);return"container"===u?j().cloneElement(l,Object.assign({},d,{events:h})):j().cloneElement(l,h,o)}},{key:"render",value:function(){var e=this.getAllEvents(this.props);return e?this.getContainer(this.props,this.baseProps,e):j().cloneElement(this.props.container,{children:this.props.children})}}],n&&ob(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);function sb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sb(Object(n),!0).forEach((function(t){db(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function db(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}cb.displayName="VictorySharedEvents",cb.role="shared-event-wrapper",cb.contextType=Bp,cb.defaultProps={groupComponent:j().createElement("g",null)};var pb=function(e){var t=e.cx,n=e.cy,r=e.r,o=e.startAngle,i=e.endAngle,a=e.closedPath,l=Math.abs(i-o)/2+o,u=t+r*Math.cos(ne(o)),c=n-r*Math.sin(ne(o)),s=t+r*Math.cos(ne(l)),f=n-r*Math.sin(ne(l)),d=t+r*Math.cos(ne(i)),p=n-r*Math.sin(ne(i)),h=l-o<=180?0:1,y=i-l<=180?0:1,m=a?" M ".concat(t,", ").concat(n," L ").concat(u,", ").concat(c):"M ".concat(u,", ").concat(c),v="A ".concat(r,", ").concat(r,", 0, ").concat(h,", 0, ").concat(s,", ").concat(f),g="A ".concat(r,", ").concat(r,", 0, ").concat(y,", 0, ").concat(d,", ").concat(p),b=a?"Z":"";return"".concat(m," ").concat(v," ").concat(g," ").concat(b)},hb={pathComponent:j().createElement($c,null),role:"presentation",shapeRendering:"auto"},yb=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.desc,e),r=ee(e.id,e),o=te(Object.assign({stroke:"black",fill:"none"},e.style),e),i=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,style:o,tabIndex:i})}(fb(fb({},hb),e));return j().cloneElement(t.pathComponent,fb(fb({},t.events),{},{"aria-label":t.ariaLabel,d:pb(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,className:t.className,role:t.role,shapeRendering:t.shapeRendering,transform:t.transform,clipPath:t.clipPath}))},mb=function(e,t,n){return"x"===n?e*Math.cos(t):-e*Math.sin(t)},vb=function(e){var t=e.dependentAxis?"radial":"angular",n="angular"===t?"radial":"angular";return e.horizontal?n:t},gb=function(e,t){return{tickStyle:te(e.ticks,t),labelStyle:te(e.tickLabels,t),gridStyle:te(e.grid,t)}},bb=function(e){var t=X(e),n=t.left,r=t.right,o=t.top,i=t.bottom,a=e.width,l=e.height;if(void 0===a||void 0===l)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(a-n-r,l-o-i)/2},xb=function(e,t){if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;if("angular"===vb(e))return[ne(e.startAngle),ne(e.endAngle)];var n=bb(e);return[e.innerRadius||0,n]},wb=function(e){var t=Ch(e),n=Yi(e,t),r=Wh(e,t)||n.domain(),o=xb(e,t);return n.range(o),n.domain(r),n},Ob=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.disableInlineStyles)return{};var n=e.style||{},r={height:"auto",width:"100%"};return{parent:$()(r,n.parent,t.parent),axis:$()({},n.axis,t.axis),axisLabel:$()({},n.axisLabel,t.axisLabel),grid:$()({},n.grid,t.grid),ticks:$()({},n.ticks,t.ticks),tickLabels:$()({},n.tickLabels,t.tickLabels)}},_b=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,o=Vh(e,Ch(e));return void 0!==o&&r?re(o):void 0===t?n:t},kb=function(e,t,n,r){var o=t.axisType,i=t.radius,a=t.scale,l=t.style,u=t.stringTicks,c=t.ticks,s=t.tickFormat,f=t.origin,d=s(n,r,c),p=u?u[r]:n,h=gb(l,{tick:p,tickValue:n,index:r,ticks:c,stringTicks:u,radius:i,scale:a,axisType:o,text:d}).tickStyle,y="radial"===o?_b(e):void 0,m=h.padding||h.size||0,v=ne(90-y),g="angular"===o?a(n):ne(-1*y),b="angular"===o?i:a(n);return"angular"===o?{index:r,datum:p,style:h,x1:mb(b,g,"x")+f.x,y1:mb(b,g,"y")+f.y,x2:mb(b+m,g,"x")+f.x,y2:mb(b+m,g,"y")+f.y}:{index:r,datum:p,style:h,x1:b*Math.cos(g)+Math.cos(v)*m+f.x,x2:b*Math.cos(g)-Math.cos(v)*m+f.x,y1:b*Math.sin(g)+Math.sin(v)*m+f.y,y2:b*Math.sin(g)-Math.sin(v)*m+f.y}},Sb=function(e,t,n,r){var o=t.axisType,i=t.radius,a=t.tickFormat,l=t.style,u=t.scale,c=t.ticks,s=t.stringTicks,f=t.origin,d=a(n,r,c),p=s?s[r]:n,h=gb(l,{text:d,tick:p,tickValue:n,index:r,ticks:c,stringTicks:s,radius:i,scale:u,axisType:o}).labelStyle,y=e.tickLabelComponent,m=null!=y&&y.props.labelPlacement?y.props.labelPlacement:e.labelPlacement,v=h.padding||0,g="radial"===o?_b(e):void 0,b="angular"===o?re(u(n)):g+0,x=void 0===h.angle?Qa(Object.assign({},e,{labelPlacement:m}),b):h.angle,w="angular"===o?i+v:u(n);return{index:r,datum:p,style:h,angle:x,textAnchor:h.textAnchor||Ya(Object.assign({},e,{labelPlacement:m}),b),text:d,x:w*Math.cos(ne(b))+f.x,y:-w*Math.sin(ne(b))+f.y}},jb=function(e,t,n,r){var o=t.axisType,i=t.radius,a=t.style,l=t.scale,u=t.stringTicks,c=t.ticks,s=t.tickFormat,f=t.origin,d=s(n,r,c),p=e.startAngle,h=e.endAngle,y=e.innerRadius,m=void 0===y?0:y,v=u?u[r]:n,g=gb(a,{tick:v,tickValue:n,index:r,ticks:c,stringTicks:u,radius:i,scale:l,axisType:o,text:d}).gridStyle,b=l(n);return"angular"===o?{index:r,datum:v,style:g,x1:mb(i,b,"x")+f.x,y1:mb(i,b,"y")+f.y,x2:mb(m,b,"x")+f.x,y2:mb(m,b,"y")+f.y}:{style:g,index:r,datum:v,cx:f.x,cy:f.y,r:l(n),startAngle:p,endAngle:h}},Eb=function(e,t){var n=Hh(e,t),r=function(e){var t=Object.assign({polar:!0},e),n=function(e){var t,n,r=e.theme,o=void 0===r?{}:r,i=e.dependentAxis,a=o.polarAxis&&o.polarAxis.style||o.axis&&o.axis.style,l=i?"dependentAxis":"independentAxis",u=(null==o||null===(t=o[i?"polarDependentAxis":"polarIndependentAxis"])||void 0===t?void 0:t.style)||(null==o||null===(n=o[l])||void 0===n?void 0:n.style);return a&&u?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(e,t){return e[t]=$()({},null==u?void 0:u[t],null==a?void 0:a[t]),e}),{}):u||a}(t),r=Ob(t,n),o=X(t),i=Ch(t),a=vb(t),l=zh(t)?t.tickValues:void 0,u=Wh(t,i),c=xb(t,i),s=wb(t),f=Bh(t,s),d="angular"===a?function(e,t){return Pg()(e,(function(e){return t(e)%(2*Math.PI)}))}(f,s):f;return{axis:i,style:r,padding:o,stringTicks:l,axisType:a,scale:s,ticks:d,tickFormat:Rh(t,s),domain:u,range:c,radius:bb(t),origin:ie(t)}}(n),o=r.style,i=r.scale,a=r.ticks,l=r.domain,u=n.width,c=n.height,s=n.standalone,f=n.theme,d=n.name,p=function(e,t){var n=t.style,r=t.axisType,o=t.radius,i=t.origin,a=e.startAngle,l=e.endAngle,u=e.innerRadius,c=void 0===u?0:u,s="radial"===r?ne(_b(e)):void 0;return"radial"===r?{style:n.axis,x1:mb(c,s,"x")+i.x,x2:mb(o,s,"x")+i.x,y1:mb(c,s,"y")+i.y,y2:mb(o,s,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:o,startAngle:a,endAngle:l}}(n,r),h=function(e,t){var n=t.axisType,r=t.radius,o=t.style,i=t.origin,a=e.axisLabelComponent;if("radial"!==n)return{};var l=null!=a&&a.props.labelPlacement?a.props.labelPlacement:e.labelPlacement,u=o&&o.axisLabel||{},c="radial"===n?_b(e):void 0,s=void 0===u.angle?Qa(Object.assign({},e,{labelPlacement:l}),c):u.angle,f=r+(u.padding||0);return{style:u,angle:s,textAnchor:u.textAnchor||Ya(Object.assign({},e,{labelPlacement:l}),c),verticalAnchor:u.verticalAnchor||Xa(Object.assign({},e,{labelPlacement:l}),c),text:e.label,x:mb(f,ne(c),"x")+i.x,y:mb(f,ne(c),"y")+i.y}}(n,r),y={parent:{style:o.parent,ticks:a,scale:i,width:u,height:c,domain:l,standalone:s,theme:f,name:d}};return a.reduce((function(e,t,o){return e[o]={axis:p,axisLabel:h,ticks:kb(n,r,t,o),tickLabels:Sb(n,r,t,o),grid:jb(n,r,t,o)},e}),y)};function Pb(e){return function(e){if(Array.isArray(e))return Cb(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Cb(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cb(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cb(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mb(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ab(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Db(e,t){return Db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Db(e,t)}function Tb(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Lb(e){return Lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Lb(e)}var Nb={width:450,height:300,padding:50},zb=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Db(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Lb(r);if(o){var n=Lb(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Tb(this,e)});function a(){return Mb(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"renderAxisLine",value:function(e){var t=e.dependentAxis?e.axisComponent:e.circularAxisComponent,n=this.getComponentProps(t,"axis",0);return j().cloneElement(t,n)}},{key:"renderLabel",value:function(e){var t=e.axisLabelComponent,n=e.dependentAxis;if(!e.label||!n)return null;var r=this.getComponentProps(t,"axisLabel",0);return j().cloneElement(t,r)}},{key:"renderAxis",value:function(e){var t=this,n=e.tickComponent,r=e.tickLabelComponent,o=e.name,i=function(e){var t=e.style,n=void 0===t?{}:t,r=e.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!L()(o)},a="radial"==(e.dependentAxis?"radial":"angular")?e.circularGridComponent:e.gridComponent,l=this.dataKeys.map((function(e,r){var a=Object.assign({key:"".concat(o,"-tick-").concat(e)},t.getComponentProps(n,"ticks",r)),l=j().cloneElement(n,a);return i(l.props)?l:void 0})).filter(Boolean),u=this.dataKeys.map((function(e,n){var r=Object.assign({key:"".concat(o,"-grid-").concat(e)},t.getComponentProps(a,"grid",n)),l=j().cloneElement(a,r);return i(l.props)?l:void 0})).filter(Boolean),c=this.dataKeys.map((function(e,n){var i=Object.assign({key:"".concat(o,"-tick-").concat(e)},t.getComponentProps(r,"tickLabels",n));return j().cloneElement(r,i)})),s=[this.renderAxisLine(e),this.renderLabel(e)].concat(Pb(l),Pb(u),Pb(c));return this.renderGroup(e,s)}},{key:"renderGroup",value:function(e,t){var n=e.groupComponent;return j().cloneElement(n,{},t)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=Ib.animationWhitelist,t=Hh(this.props,Nb);if(this.shouldAnimate())return this.animateComponent(t,e);var n=this.renderAxis(t);return t.standalone?this.renderContainer(t.containerComponent,n):n}}])&&Ab(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);zb.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],zb.displayName="VictoryAxis",zb.role="axis",zb.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},zb.defaultProps={axisComponent:j().createElement(ey,null),axisLabelComponent:j().createElement($f,null),circularAxisComponent:j().createElement(yb,null),circularGridComponent:j().createElement(yb,null),containerComponent:j().createElement(_s,null),endAngle:360,gridComponent:j().createElement(ey,null),groupComponent:j().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:sd.grayscale,tickComponent:j().createElement(ey,null),tickLabelComponent:j().createElement($f,null)},zb.getDomain=Wh,zb.getAxis=Ch,zb.getScale=wb,zb.getStyles=function(e){return Ob(e,Nb.style)},zb.getBaseProps=function(e){return Eb(e,Nb)},zb.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var Ib=mh(zb,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Rb={width:450,height:300,padding:50};function Fb(e,t){var n=function(e){var t=e.style&&e.style.parent;return{parent:$()({},t,{height:"100%",width:"100%",userSelect:"none"})}}(e),r=se(e,Rb,"chart"),o=r.horizontal,i=r.polar,a=Yg(r,t),l=Xg(r,t,a),u=Wb(r,t,a),c={x:Ub(Object.assign({},r,{categories:l}),"x",t),y:Ub(Object.assign({},r,{categories:l}),"y",t)},s={x:ae(r,"x"),y:ae(r,"y")},f={x:Qi(r,"x")||Ug(r,"x"),y:Qi(r,"y")||Ug(r,"y")};return{categories:l,domain:c,range:s,horizontal:o,scale:{x:f.x.domain(c.x).range(o?s.y:s.x),y:f.y.domain(c.y).range(o?s.x:s.y)},stringMap:u,style:n,origin:i?ie(r):Th(c),padding:X(r)}}var Bb=function(e,t){var n=j().Children.toArray(e.children);if(0===n.length)n.push(t.independent,t.dependent);else{var r={dependent:Dh(n,"dependent"),independent:Dh(n,"independent")};0===r.dependent.length&&0===r.independent.length&&(n=e.prependDefaultAxes?[t.independent,t.dependent].concat(n):n.concat([t.independent,t.dependent]))}return n},Ub=function(e,t,n){var r=n||j().Children.toArray(e.children),o=Bg(e,t,r),i=Ah(r,t);return i&&i.props&&i.props.invertAxis?o.concat().reverse():o},Wb=function(e,t,n){var r=n.x&&0!==n.x.length?n.x.reduce((function(e,t,n){return e[t]=n+1,e}),{}):null,o=n.y&&0!==n.y.length?n.y.reduce((function(e,t,n){return e[t]=n+1,e}),{}):null;return{x:r,y:o}};function Vb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vb(Object(n),!0).forEach((function(t){qb(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $b={width:450,height:300,padding:50},Kb={backgroundComponent:j().createElement(bg,null),containerComponent:j().createElement(_s,null),defaultAxes:{independent:j().createElement(jy,null),dependent:j().createElement(jy,{dependentAxis:!0})},defaultPolarAxes:{independent:j().createElement(Ib,null),dependent:j().createElement(Ib,{dependentAxis:!0})},groupComponent:j().createElement("g",null),standalone:!0,theme:sd.grayscale},Gb=function(e){var t=j().useMemo((function(){return Hb(Hb({},Kb),e)}),[e]),n=jg(),r=n.getAnimationProps,o=n.setAnimationState,i=(0,n.getProps)(t),a=se(i,$b,"chart"),l=a.desc,u=a.eventKey,c=a.containerComponent,s=a.standalone,f=a.groupComponent,d=a.externalEventMutations,p=a.width,h=a.height,y=a.theme,m=a.polar,v=a.name,g=a.title,b=i.polar?a.defaultPolarAxes:a.defaultAxes,x=j().useMemo((function(){return Bb(a,b)}),[a,b]),w=j().useMemo((function(){return Fb(a,x)}),[a,x]),O=w.domain,_=w.scale,k=w.style,S=w.origin,E=w.horizontal,P=j().useMemo((function(){var e=function(e,t,n){var r=t||Bb(e),o=n||Fb(e,r),i=o.style.parent,a=e.height,l=e.polar,u=e.theme,c=e.width,s=o.origin,f=o.horizontal,d=e.name||"chart";return r.filter(j().isValidElement).map((function(t,n){var r=t.type&&t.type.role,p=Array.isArray(t.props.style)?t.props.style:$()({},t.props.style,{parent:i}),h=function(e,t,n){var r=Mh([e]);return r.length>0?function(e,t,n){var r=n.domain,o=n.scale,i=n.stringMap,a=n.categories;return{stringMap:i,horizontal:n.horizontal,categories:a,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:o}}(r[0],t,n):{categories:n.categories,domain:n.domain,range:n.range,scale:n.scale,stringMap:n.stringMap,horizontal:n.horizontal}}(t,e,o),y=t.props.name||"".concat(d,"-").concat(r,"-").concat(n),m=$()({horizontal:f,height:a,polar:l,theme:u,width:c,style:p,name:y,origin:l?s:void 0,padding:o.padding,key:"".concat(y,"-key-").concat(n),standalone:!1},h);return j().cloneElement(t,m)}))}(i,x,w).map((function(e,t){var n=Object.assign({animate:r(i,e,t)},e.props);return j().cloneElement(e,n)}));if(i.style&&i.style.background){var t=function(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],o=t.range.x[1]-t.range.x[0],i=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],a=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],l=e.polar?t.origin.x:i,u=e.polar?t.origin.y:a,c=e.name||"chart",s={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:l,y:u,key:"".concat(c,"-background"),width:o};return j().cloneElement(n,$()({},n.props,s))}(i,w);e.unshift(t)}return e}),[r,x,i,w]),C=j().useMemo((function(){return s?{desc:l,domain:O,width:p,height:h,horizontal:E,name:v,origin:m?S:void 0,polar:m,theme:y,title:g,scale:_,standalone:s,style:k.parent}:{}}),[l,O,h,E,v,S,m,_,s,k,g,y,p]),M=j().useMemo((function(){if(s){var e=$()({},c.props,C,Jc(t));return j().cloneElement(c,e)}return f}),[f,s,c,C,t]),A=j().useMemo((function(){return Wg(i)}),[i]),D=Qg(t);return j().useEffect((function(){return function(){t.animate&&o(D,t)}}),[o,D,t]),L()(A)?j().cloneElement(M,M.props,P):j().createElement(cb,{container:M,eventKey:u,events:A,externalEventMutations:d},P)},Yb=j().memo(Gb,Nd());Yb.displayName="VictoryChart",Yb.expectedComponents=["groupComponent","containerComponent"];var Xb=["desc","children","tabIndex","className"];var Qb=function(e){var t=e.desc,n=e.children,r=e.tabIndex,o=e.className,i=void 0===o?"VictoryAccessibleGroup":o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,Xb),l=t&&(a["aria-describedby"]||t.split(" ").join("-"));return t?j().createElement("g",{"aria-label":a["aria-label"],"aria-describedby":l,className:i,tabIndex:r},j().createElement("desc",{id:l},t),n):j().createElement("g",{"aria-label":a["aria-label"],"aria-describedby":a["aria-describedby"],className:i,tabIndex:r},n)};function Zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zb(Object(n),!0).forEach((function(t){ex(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ex(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tx=function(e){var t=e.x,n=e.y,r=e.size,o=e.symbol;if(e.getPath)return e.getPath(t,n,r);var i=O;return("function"==typeof i[o]?i[o]:i.circle)(t,n,r)},nx={pathComponent:j().createElement($c,null),role:"presentation",shapeRendering:"auto"},rx=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.desc,e),r=ee(e.id,e),o=ee(e.size,e),i=te(e.style,e),a=ee(e.symbol,e),l=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,desc:n,id:r,size:o,style:i,symbol:a,tabIndex:l})}(Jb(Jb({},nx),e)),n=Jc(t);return j().cloneElement(t.pathComponent,Jb(Jb({},t.events),{},{"aria-label":t.ariaLabel,d:tx(t),style:t.style,desc:t.desc,tabIndex:t.tabIndex,role:t.role,shapeRendering:t.shapeRendering,className:t.className,transform:t.transform,clipPath:t.clipPath},n))},ox=r(4542),ix=r.n(ox),ax=r(3105),lx=r.n(ax),ux=r(9324),cx=r.n(ux);function sx(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return fx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fx(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dx={checkDomainEquality:function(e,t){var n=function(n){var r=e&&e[n],o=t&&t[n];return!r&&!o||!(!r||!o)&&Number(r[0])===Number(o[0])&&Number(r[1])===Number(o[1])};return n("x")&&n("y")},scale:function(e,t,n,r){var o=sx(e,2),i=o[0],a=o[1],l=Math.abs(a-i),u=n.minimumZoom&&n.minimumZoom[r],c=this.getScaleFactor(t);if(u&&l<=u&&c<1)return e;var s=sx(this.getDomain(n)[r],2),f=s[0],d=s[1],p=this.getScalePercent(t,n,r),h=c*i+p*(c*l),y=this.getMinimumDomain(h,n,r),m=sx(this.getScaledDomain(e,c,p),2),v=m[0],g=m[1],b=[v>f&&v<d?v:f,g<d&&g>f?g:d],x=Math.abs(y[1]-y[0])>Math.abs(b[1]-b[0])?y:b;return xe([f,d])?[new Date(x[0]),new Date(x[1])]:x},getScaledDomain:function(e,t,n){var r=sx(e,2),o=r[0],i=r[1],a=Math.abs(i-o),l=a-a*t,u=Number(o)+l*n,c=Number(i)-l*(1-n);return[Math.min(u,c),Math.max(u,c)]},getMinimumDomain:function(e,t,n){var r=t.minimumZoom,o=sx(this.getDomain(t)[n],2),i=o[0],a=o[1],l=Math.abs(i-a)/1e3,u=r&&r[n]||l,c=e-u/2,s=e+u/2;return[c>i&&c<a?c:i,s<a&&s>i?s:Number(i)+u/2]},zoommingOut:function(e){return e.deltaY>0},getScaleFactor:function(e){var t=this.zoommingOut(e)?1:-1,n=Math.min(Math.abs(e.deltaY/300),.5);return Math.abs(1+t*n)},getScalePercent:function(e,t,n){var r=this.getDomain(t),o=sx(r[n],2),i=o[0],a=o[1];return(this.getPosition(e,t,r)[n]-i)/Math.abs(a-i)},getPosition:function(e,t,n){var r=Bm(e),o=r.x,i=r.y,a={x:t.scale.x.domain(n.x),y:t.scale.y.domain(n.y)};return Wm(t,a,o,i)},pan:function(e,t,n){var r,o=sx(e.map((function(e){return Number(e)})),2),i=o[0],a=o[1],l=sx(t.map((function(e){return Number(e)})),2),u=l[0],c=l[1],s=i+n,f=a+n;return r=s>u&&f<c?[s,f]:s<u?[u,u+(a-i)]:f>c?[c-(a-i),c]:e,xe(e)||xe(t)?r.map((function(e){return new Date(e)})):r},getDomainScale:function(e,t,n){var r=sx(Array.isArray(e)?e:e[n],2),o=r[0],i=r[1],a=t[n].range();return Math.abs(a[0]-a[1])/(i-o)},handleAnimation:function(e){var t=e.context.animationTimer,n=e.context.transitionTimer;return n.bypassAnimation(),t.bypassAnimation(),cx()((function(){t.resumeAnimation(),n.resumeAnimation()}),16)},getLastDomain:function(e,t){var n=e.zoomDomain,r=e.cachedZoomDomain,o=e.currentDomain,i=e.domain;return n&&!this.checkDomainEquality(n,r)?$()({},n,i):$()({},o||n||t,i)},getDomain:function(e){var t=e.originalDomain,n=e.domain,r=e.children,o=e.zoomDimension,i=S.Children.toArray(r),a={};return i.length&&(a=o?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},o,Fg(e,o,i)):{x:Fg(e,"x",i),y:Fg(e,"y",i)}),$()({},a,t,n)},onMouseDown:function(e,t){if(e.preventDefault(),t.allowPan){var n=t.parentSVG||Fm(e),r=Bm(e,n),o=r.x,i=r.y;return[{target:"parent",mutation:function(){return{startX:o,startY:i,panning:!0,parentSVG:n,parentControlledProps:["domain"]}}}]}},onMouseUp:function(e,t){if(t.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseLeave:function(e,t){if(t.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseMove:function(e,t,n,r){if(t.panning&&t.allowPan){var o=t.scale,i=t.startX,a=t.startY,l=t.onZoomDomainChange,u=t.zoomDomain,c=t.zoomDimension,s=t.horizontal,f=t.parentSVG||Fm(e),d=Bm(e,f),p=d.x,h=d.y,y=this.getDomain(t),m=this.getLastDomain(t,y),v=s?i-p:h-a,g=(s?h-a:i-p)/this.getDomainScale(m,o,"x"),b=v/this.getDomainScale(m,o,"y"),x={x:"y"===c?y.x:this.pan(m.x,y.x,g),y:"x"===c?y.y:this.pan(m.y,y.y,b)},w=this.handleAnimation(r),O={parentControlledProps:["domain"],startX:p,startY:h,parentSVG:f,currentDomain:x,originalDomain:y,cachedZoomDomain:u,zoomActive:!this.checkDomainEquality(y,m)};return ue(l)&&l(x,$()({},O,t)),[{target:"parent",callback:w,mutation:function(){return O}}]}},onWheel:function(e,t,n,r){if(t.allowZoom){var o=t.onZoomDomainChange,i=t.zoomDimension,a=t.zoomDomain,l=this.getDomain(t),u=this.getLastDomain(t,l),c=u.x,s=u.y,f={x:"y"===i?u.x:this.scale(c,e,t,"x"),y:"x"===i?u.y:this.scale(s,e,t,"y")},d=this.handleAnimation(r),p={currentDomain:f,originalDomain:l,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(e)||t.zoomActive&&!this.checkDomainEquality(l,u)};return ue(o)&&o(f,$()({},p,t)),[{target:"parent",callback:d,mutation:function(){return p}}]}}},px={checkDomainEquality:dx.checkDomainEquality.bind(dx),onMouseDown:dx.onMouseDown.bind(dx),onMouseUp:dx.onMouseUp.bind(dx),onMouseLeave:dx.onMouseLeave.bind(dx),onMouseMove:qm()(dx.onMouseMove.bind(dx),16,{leading:!0,trailing:!1}),onWheel:qm()(dx.onWheel.bind(dx),16,{leading:!0,trailing:!1})};function hx(e){return function(e){if(Array.isArray(e))return yx(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return yx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yx(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mx(Object(n),!0).forEach((function(t){gx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bx={clipContainerComponent:j().createElement($s,null),allowPan:!0,allowZoom:!0,zoomActive:!1},xx=function(e){var t=vx(vx({},bx),e),n=t.children,r=t.currentDomain,o=t.zoomActive,i=t.allowZoom,a=t.downsample,l=t.scale,u=t.clipContainerComponent,c=t.polar,s=t.origin,f=t.horizontal,d=function(e,n){var r=function(t){var n=t.data,r=t.x,o=t.y,i=e.type&&"function"==typeof e.type.getData?e.type.getData:function(){};return!Array.isArray(n)||r||o?i(t):n}(e.props);if(a&&n&&r){var o=!0===a?150:a,i=t.zoomDimension||"x",l=r.findIndex((function(e){return e[i]>=n[i][0]})),u=r.findIndex((function(e){return e[i]>n[i][1]}));return 0!==l&&(l-=1),-1!==u&&(u+=1),ba(r.slice(l,u),o,l)}},p=j().Children.toArray(n).map((function(e){var n,a=e.type&&e.type.role,p=Ea(e),h=$()({},t.originalDomain,t.domain),y=$()({},t.zoomDomain,t.domain),m=$()({},t.cachedZoomDomain,t.domain);n=px.checkDomainEquality(y,m)?i&&!o?e.props.domain:$()({},r,h):y;var v=t.polar?{x:h.x,y:[0,n.y[1]]}:n;v&&t.zoomDimension&&(v=vx(vx({},y),{},gx({},t.zoomDimension,v[t.zoomDimension])));var g=p&&"stack"!==a?{domain:v,data:d(e,v)}:{domain:v},b=j().cloneElement(e,$()(g,e.props));if(Ea(b)){var x=f?l.y.range():l.x.range(),w=f?l.x.range():l.y.range(),O=Math.abs(x[0]-x[1]),_=Math.abs(w[0]-w[1]),k=Math.max.apply(Math,hx(w)),S=j().cloneElement(u,vx({clipWidth:O,clipHeight:_,translateX:Math.min.apply(Math,hx(x)),translateY:Math.min.apply(Math,hx(w)),polar:c,origin:c?s:void 0,radius:c?k:void 0},u.props));return j().cloneElement(b,{groupComponent:S})}return b}));return{props:t,children:p}},wx=function(e){var t=xx(e),n=t.props,r=t.children;return j().createElement(_s,n,r)};function Ox(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}wx.role="container",wx.defaultEvents=function(e){var t=vx(vx({},bx),e),n=function(e,n){return function(r,o,i,a){return n||t.disable?{}:e(r,vx(vx({},t),o),i,a)}};return[{target:"parent",eventHandlers:{onMouseDown:n(px.onMouseDown),onTouchStart:n(px.onMouseDown),onMouseUp:n(px.onMouseUp),onTouchEnd:n(px.onMouseUp),onMouseLeave:n(px.onMouseLeave),onTouchCancel:n(px.onMouseLeave),onMouseMove:n(px.onMouseMove),onTouchMove:n(px.onMouseMove),onWheel:n(px.onWheel,!t.allowZoom)}}]};var kx=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onMouseDown=function(e,n){e.preventDefault();var r=n.activateSelectedData,o=n.allowSelection,i=n.polar,a=n.selectedData;if(!o)return{};var l=t.getDimension(n),u=n.parentSVG||Fm(e),c=Bm(e,u),s=c.x,f=c.y,d={x1:i||"y"!==l?s:Um(n).x[0],y1:i||"x"!==l?f:Um(n).y[0],select:!0,x2:i||"y"!==l?s:Um(n).x[1],y2:i||"x"!==l?f:Um(n).y[1],parentSVG:u};a&&ue(n.onSelectionCleared)&&n.onSelectionCleared($()({},d,n));var p,h=[{target:"parent",mutation:function(){return d}}],y=a&&r?a.map((function(e){return{childName:e.childName,eventKey:e.eventKey,target:"data",mutation:function(){return null}}})):[];return h.concat.apply(h,function(e){if(Array.isArray(e))return Ox(e)}(p=y)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(p)||function(e,t){if(e){if("string"==typeof e)return Ox(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ox(e,t):void 0}}(p)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},this.handleMouseMove=function(e,n){var r=n.allowSelection,o=n.select,i=n.polar,a=t.getDimension(n);if(!r||!o)return null;var l=n.parentSVG||Fm(e),u=Bm(e,l),c=u.x,s=u.y,f=i||"y"!==a?c:Um(n).x[1],d=i||"x"!==a?s:Um(n).y[1];return{target:"parent",mutation:function(){return{x2:f,y2:d,parentSVG:l}}}},this.onMouseMove=qm()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseUp=function(e,n){var r=n.activateSelectedData,o=n.allowSelection,i=n.x2,a=n.y2;if(!o)return null;if(!i||!a)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var l=t.getDatasets(n),u=Vm(n),c=t.filterDatasets(n,l),s={selectedData:c,datasets:l,select:!1,x1:null,x2:null,y1:null,y2:null},f=c&&ue(n.onSelection)?n.onSelection(c,u,$()({},s,n)):{},d=[{target:"parent",mutation:function(){return s}}],p=c&&r?c.map((function(e){return{childName:e.childName,eventKey:e.eventKey,target:"data",mutation:function(){return Object.assign({active:!0},f)}}})):[];return d.concat(p)}}var t,n;return t=e,(n=[{key:"getDimension",value:function(e){var t=e.horizontal,n=e.selectionDimension;return t&&n?"x"===n?"y":"x":n}},{key:"getDatasets",value:function(e){return e.data?[{data:e.data}]:he(j().Children.toArray(e.children),(function(t,n,r){var o,i=e.selectionBlacklist||[];if(!Ea(t)||i.includes(n))return null;if(t.type&&ue(t.type.getData)){var a=(o=r?j().cloneElement(t,r.props):t).props&&o.type.getData(o.props);return a?{childName:n,data:a}:null}var l,u=(l=_a(o.props),Array.isArray(l)&&l.length>0?l:void 0);return u?{childName:n,data:u}:null}),e)}},{key:"filterDatasets",value:function(e,t){var n=this,r=t.reduce((function(t,r){var o=n.getSelectedData(e,r.data);return o?t.concat({childName:r.childName,eventKey:o.eventKey,data:o.data}):t}),[]);return r.length?r:null}},{key:"getSelectedData",value:function(e,t){for(var n,r=e.x1,o=e.y1,i=e.x2,a=e.y2,l=[],u=[],c=0,s=0,f=t.length;s<f;s++){var d=t[s];void 0,(n=Y(e,d)).x>=Math.min(r,i)&&n.x<=Math.max(r,i)&&n.y>=Math.min(o,a)&&n.y<=Math.max(o,a)&&(u[c]=d,l[c]=void 0===d.eventKey?s:d.eventKey,c++)}return c>0?{eventKey:l,data:u}:null}}])&&_x(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Sx=new kx;function jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ex(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jx(Object(n),!0).forEach((function(t){Px(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Px(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cx={activateSelectedData:!0,allowSelection:!0,selectionComponent:j().createElement(zs,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}},Mx=function(e){var t=Ex(Ex({},Cx),e),n=t.x1,r=t.x2,o=t.y1,i=t.y2,a=t.selectionStyle,l=t.selectionComponent,u=t.children,c=t.name,s=Math.abs(r-n)||1,f=Math.abs(i-o)||1,d=Math.min(n,r),p=Math.min(o,i);return{props:t,children:[u,o&&i&&n&&r&&j().cloneElement(l,{key:"".concat(c,"-selection"),x:d,y:p,width:s,height:f,style:a})]}},Ax=function(e){var t=Mx(e),n=t.props,r=t.children;return j().createElement(_s,n,r)};function Dx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dx(Object(n),!0).forEach((function(t){Lx(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ax.role="container",Ax.defaultEvents=function(e){var t=Ex(Ex({},Cx),e),n=function(e,n){return function(r,o,i,a){return n||t.disable?{}:e(r,Ex(Ex({},t),o),i,a)}};return[{target:"parent",eventHandlers:{onMouseDown:n(Sx.onMouseDown),onTouchStart:n(Sx.onMouseDown),onMouseMove:n(Sx.onMouseMove),onTouchMove:n(Sx.onMouseMove),onMouseUp:n(Sx.onMouseUp),onTouchEnd:n(Sx.onMouseUp)}}]};var Nx=function(e){var t=e.orientation||"top";return"left"===t||"right"===t?function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,o=e.width,i=e.height,a=e.center,l="left"===r?1:-1,u=e.x+(e.dx||0),c=e.y+(e.dy||0),s=a.x,f=a.y,d=s-l*(o/2),p=s+l*(o/2),h=f+i/2,y=f-i/2,m=l*(u-d)>0?0:e.pointerLength,v="left"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(v);return"M ".concat(d,", ").concat(f-t/2,"\n L ").concat(m?u:d,", ").concat(m?c:f+t/2,"\n L ").concat(d,", ").concat(f+t/2,"\n L ").concat(d,", ").concat(h-n,"\n A ").concat(g," ").concat(d+l*n,", ").concat(h,"\n L ").concat(p-l*n,", ").concat(h,"\n A ").concat(g," ").concat(p,", ").concat(h-n,"\n L ").concat(p,", ").concat(y+n,"\n A ").concat(g," ").concat(p-l*n,", ").concat(y,"\n L ").concat(d+l*n,", ").concat(y,"\n A ").concat(g," ").concat(d,", ").concat(y+n,"\n z")}(e):function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,o=e.width,i=e.height,a=e.center,l="bottom"===r?1:-1,u=e.x+(e.dx||0),c=e.y+(e.dy||0),s=a.x,f=a.y,d=f+l*(i/2),p=f-l*(i/2),h=s+o/2,y=s-o/2,m=l*(c-d)<0?0:e.pointerLength,v="bottom"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(v);return"M ".concat(s-t/2,", ").concat(d,"\n L ").concat(m?u:s+t/2,", ").concat(m?c:d,"\n L ").concat(s+t/2,", ").concat(d,"\n L ").concat(h-n,", ").concat(d,"\n A ").concat(g," ").concat(h,", ").concat(d-l*n,"\n L ").concat(h,", ").concat(p+l*n,"\n A ").concat(g," ").concat(h-n,", ").concat(p,"\n L ").concat(y+n,", ").concat(p,"\n A ").concat(g," ").concat(y,", ").concat(p+l*n,"\n L ").concat(y,", ").concat(d-l*n,"\n A ").concat(g," ").concat(y+n,", ").concat(d,"\n z")}(e)},zx={pathComponent:j().createElement($c,null),role:"presentation",shapeRendering:"auto"},Ix=function(e){var t=function(e){var t=ee(e.id,e),n=te(e.style,e);return Tx(Tx({},e),{},{id:t,style:n})}(Tx(Tx({},zx),e)),n=Jc(t);Zc(t.height,"Flyout props[height] is undefined"),Zc(t.width,"Flyout props[width] is undefined"),Zc(t.x,"Flyout props[x] is undefined"),Zc(t.y,"Flyout props[y] is undefined");var r={center:t.center||{x:0,y:0},cornerRadius:t.cornerRadius||0,dx:t.dx,dy:t.dy,height:t.height,orientation:t.orientation||"top",pointerLength:t.pointerLength||0,pointerWidth:t.pointerWidth||0,width:t.width,x:t.x,y:t.y};return j().cloneElement(t.pathComponent,Tx(Tx(Tx({},t.events),n),{},{style:t.style,d:Nx(r),className:t.className,shapeRendering:t.shapeRendering,role:t.role,transform:t.transform,clipPath:t.clipPath}))};function Rx(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fx(Object(n),!0).forEach((function(t){Ux(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ux(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wx(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vx(e,t){return Vx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vx(e,t)}function Hx(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qx(e){return qx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qx(e)}var $x={cornerRadius:5,pointerLength:10,pointerWidth:10},Kx=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vx(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=qx(r);if(o){var n=qx(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Hx(this,e)});function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).id=void 0,t.id=void 0===e.id?fs()("tooltip-"):e.id,t}return t=a,n=[{key:"getDefaultOrientation",value:function(e){var t=e.datum,n=e.horizontal;if(!e.polar){var r=n?"right":"top",o=n?"left":"bottom";return t&&t.y<0?o:r}return this.getPolarOrientation(e)}},{key:"getPolarOrientation",value:function(e){var t=Za(e,e.datum),n=e.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(t):"parallel"===n?t<90||t>270?"right":"left":t>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}},{key:"getStyles",value:function(e){var t=e.theme||sd.grayscale,n=t&&t.tooltip&&t.tooltip.style?t.tooltip.style:{},r=Array.isArray(e.style)?e.style.map((function(e){return $()({},e,n)})):$()({},e.style,n),o=t&&t.tooltip&&t.tooltip.flyoutStyle?t.tooltip.flyoutStyle:{},i=e.flyoutStyle?$()({},e.flyoutStyle,o):o,a=Array.isArray(r)?r.map((function(t){return te(t,e)})):te(r,e);return{style:a,flyoutStyle:te(i,Object.assign({},e,{style:a}))}}},{key:"getEvaluatedProps",value:function(e){var t=e.cornerRadius,n=e.centerOffset,r=e.dx,o=e.dy,i=ee(e.active,e),a=ee(e.text,Object.assign({},e,{active:i}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());var l=this.getStyles(Object.assign({},e,{active:i,text:a})),u=l.style,c=l.flyoutStyle,s=ee(e.orientation,Object.assign({},e,{active:i,text:a,style:u,flyoutStyle:c}))||this.getDefaultOrientation(e),f=X({padding:ee(e.flyoutPadding,Object.assign({},e,{active:i,text:a,style:u,flyoutStyle:c,orientation:s}))||this.getLabelPadding(u)}),d=ee(e.pointerWidth,Object.assign({},e,{active:i,text:a,style:u,flyoutStyle:c,orientation:s})),p=ee(e.pointerLength,Object.assign({},e,{active:i,text:a,style:u,flyoutStyle:c,orientation:s})),h=Mf(a,u),y=this.getDimensions(Object.assign({},e,{style:u,flyoutStyle:c,active:i,text:a,orientation:s,flyoutPadding:f,pointerWidth:d,pointerLength:p}),h),m=y.flyoutHeight,v=y.flyoutWidth,g=Object.assign({},e,{active:i,text:a,style:u,flyoutStyle:c,orientation:s,flyoutHeight:m,flyoutWidth:v,flyoutPadding:f,pointerWidth:d,pointerLength:p}),b=B()(n)&&void 0!==(null==n?void 0:n.x)?ee(n.x,g):0,x=B()(n)&&void 0!==(null==n?void 0:n.y)?ee(n.y,g):0;return Bx(Bx({},g),{},{centerOffset:{x:b,y:x},dx:void 0!==r?ee(r,g):0,dy:void 0!==o?ee(o,g):0,cornerRadius:ee(t,g)})}},{key:"getCalculatedValues",value:function(e){var t=e.style,n=e.text,r=e.flyoutStyle,o={height:e.flyoutHeight,width:e.flyoutWidth};return{style:t,flyoutStyle:r,labelSize:Mf(n,t),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(e,o),transform:this.getTransform(e)}}},{key:"getTransform",value:function(e){var t=e.x,n=e.y,r=(e.style||{}).angle||e.angle||this.getDefaultAngle(e);return r?"rotate(".concat(r," ").concat(t," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(e){var t=e.polar,n=e.labelPlacement,r=e.orientation,o=e.datum;if(!t||!n||"vertical"===n)return 0;var i=Za(e,o),a=0;return 0===i||180===i?a="top"===r&&180===i?270:90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(e,t,n){var r=e.x,o=e.y,i=n.width,a=n.height,l=[0,t.width],u=[0,t.height],c=[r-i/2,r+i/2],s=[o-a/2,o+a/2],f=[c[0]<l[0]?l[0]-c[0]:0,c[1]>l[1]?c[1]-l[1]:0],d=[s[0]<u[0]?u[0]-s[0]:0,s[1]>u[1]?s[1]-u[1]:0];return{x:Math.round(r+f[0]-f[1]),y:Math.round(o+d[0]-d[1])}}},{key:"getFlyoutCenter",value:function(e,t){var n=e.x,r=e.y,o=e.dx,i=e.dy,a=e.pointerLength,l=e.orientation,u=e.constrainToVisibleArea,c=e.centerOffset,s=t.height,f=t.width,d="left"===l?-1:1,p="bottom"===l?-1:1,h={x:"left"===l||"right"===l?n+d*(a+f/2+d*o):n+o,y:"top"===l||"bottom"===l?r-p*(a+s/2-p*i):r+i},y=B()(e.center)&&void 0!==e.center.x?e.center.x:h.x,m=B()(e.center)&&void 0!==e.center.y?e.center.y:h.y,v={x:y+c.x,y:m+c.y};return u?this.constrainTooltip(v,e,t):v}},{key:"getLabelPadding",value:function(e){if(!e)return 0;var t,n=Array.isArray(e)?e.map((function(e){return e.padding})):[e.padding];return Math.max.apply(Math,(t=n,function(e){if(Array.isArray(e))return Rx(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return Rx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rx(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([0]))}},{key:"getDimensions",value:function(e,t){var n,r,o,i,a=e.orientation,l=e.pointerLength,u=e.pointerWidth,c=e.flyoutHeight,s=e.flyoutWidth,f=e.flyoutPadding,d=ee(e.cornerRadius,e);return{flyoutHeight:c?ee(c,e):(o=t.height+f.top+f.bottom,i="top"===a||"bottom"===a?2*d:2*d+u,Math.max(i,o)),flyoutWidth:s?ee(s,e):(n=t.width+f.left+f.right,r="left"===a||"right"===a?2*d+l:2*d,Math.max(r,n))}}},{key:"getLabelProps",value:function(e,t){var n=t.flyoutCenter,r=t.style,o=t.labelSize,i=t.dy,a=void 0===i?0:i,l=t.dx,u=void 0===l?0:l,c=e.text,s=e.datum,f=e.activePoints,d=e.labelComponent,p=e.index,h=e.flyoutPadding,y=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return $()({},d.props,{key:"".concat(this.id,"-label-").concat(p),text:c,datum:s,activePoints:f,textAnchor:y,dy:a,dx:u,style:r,x:function(){if(!y||"middle"===y)return n.x;var e="end"===y?-1:1;return n.x-e*(o.width/2)}()+(h.left-h.right)/2,y:n.y+(h.top-h.bottom)/2,verticalAnchor:"middle",angle:r.angle})}},{key:"getPointerOrientation",value:function(e,t,n){var r=t.y+n.height/2,o=t.y-n.height/2,i=t.x-n.width/2,a=t.x+n.width/2,l=[{side:"top",val:o>e.y?o-e.y:-1},{side:"bottom",val:r<e.y?e.y-r:-1},{side:"right",val:a<e.x?e.x-a:-1},{side:"left",val:i>e.x?i-e.x:-1}];return z()(l,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(e,t){var n=t.flyoutDimensions,r=t.flyoutStyle,o=t.flyoutCenter,i=e.x,a=e.y,l=e.dx,u=e.dy,c=e.datum,s=e.activePoints,f=e.index,d=e.pointerLength,p=e.pointerWidth,h=e.cornerRadius,y=e.events,m=e.flyoutComponent,v=ee(e.pointerOrientation,e);return $()({},m.props,{x:i,y:a,dx:l,dy:u,datum:c,activePoints:s,index:f,pointerLength:d,pointerWidth:p,cornerRadius:h,events:y,orientation:v||this.getPointerOrientation({x:i,y:a},o,n),key:"".concat(this.id,"-tooltip-").concat(f),width:n.width,height:n.height,style:r,center:o})}},{key:"renderTooltip",value:function(e){var t=ee(e.active,e),n=e.renderInPortal;if(!t)return n?j().createElement(Js,null):null;var r=this.getEvaluatedProps(e),o=r.flyoutComponent,i=r.labelComponent,a=r.groupComponent,l=this.getCalculatedValues(r),u=[j().cloneElement(o,this.getFlyoutProps(r,l)),j().cloneElement(i,this.getLabelProps(r,l))],c=j().cloneElement(a,{role:"presentation",transform:l.transform},u);return n?j().createElement(Js,null,c):c}},{key:"render",value:function(){var e=se(this.props,$x,"tooltip");return this.renderTooltip(e)}}],n&&Wx(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);Kx.displayName="VictoryTooltip",Kx.role="tooltip",Kx.defaultProps={active:!1,renderInPortal:!0,labelComponent:j().createElement($f,null),flyoutComponent:j().createElement(Ix,null),groupComponent:j().createElement("g",null)},Kx.defaultEvents=function(e){var t=e.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=e.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var Gx=r(5395),Yx=r.n(Gx),Xx=r(5953),Qx=r.n(Xx),Zx=r(6898);function Jx(e){return function(e){if(Array.isArray(e))return ew(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ew(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ew(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ew(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var nw=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.onMouseLeave=function(e,n){var r,o=n.activePoints||[];t.onDeactivated(n,o);var i=o.length?o.map((function(e){return t.getInactiveMutations(n,e)})):[];return(r=t.getParentMutation([])).concat.apply(r,Jx(i))},this.handleMouseMove=function(e,n){var r=n.activePoints||[],o=n.parentSVG||Fm(e),i=Bm(e,o);if(!t.withinBounds(n,i)){var a;t.onDeactivated(n,r);var l=r.length?r.map((function(e){return t.getInactiveMutations(n,e)})):[];return(a=t.getParentMutation([],i,o)).concat.apply(a,Jx(l))}var u=t.getVoronoiPoints(n,i),c=u.points,s=void 0===c?[]:c,f=u.index,d=t.getParentMutation(s,i,o,f);if(r.length&&Nd()(s,r))return d;t.onActivated(n,s),t.onDeactivated(n,r);var p=s.length?s.map((function(e){return t.getActiveMutations(n,e)})):[],h=r.length?r.map((function(e){return t.getInactiveMutations(n,e)})):[];return d.concat.apply(d,Jx(h).concat(Jx(p)))},this.onMouseMove=qm()(this.handleMouseMove,32,{leading:!0,trailing:!1})}var t,n;return t=e,n=[{key:"withinBounds",value:function(e,t){var n=e.width,r=e.height,o=e.polar,i=e.origin,a=e.scale,l=X(e,"voronoiPadding"),u=t.x,c=t.y;if(o){var s=Math.pow(u-i.x,2)+Math.pow(c-i.y,2),f=Math.max.apply(Math,Jx(a.y.range()));return s<Math.pow(f,2)}return u>=l.left&&u<=n-l.right&&c>=l.top&&c<=r-l.bottom}},{key:"getDatasets",value:function(e){var t={x:je(e.domain.x),y:je(e.domain.y)},n=j().Children.toArray(e.children),r=function(n,r,o){var i=o&&o.type&&o.type.continuous,a=o?o.props&&o.props.style:e.style;return n.map((function(n,o){var l=G(n),u=l.x,c=l.y,s=l.y0,f=l.x0,d=(Number(u)+Number(f))/2,p=(Number(c)+Number(s))/2;return Object.assign({_voronoiX:"y"===e.voronoiDimension?t.x:d,_voronoiY:"x"===e.voronoiDimension?t.y:p,eventKey:o,childName:r,continuous:i,style:a},n)}))};if(e.data)return r(e.data);var o=function(e){var t=_a(e);return Array.isArray(t)&&t.length>0?t:void 0};return he(n,(function(t,n){var i=(t.props||{}).name||n,a=e.voronoiBlacklist||[],l=a.filter(Qx()),u=a.filter(Yx()).some((function(e){return e.test(i)}));if(!Ea(t)||l.includes(i)||u)return null;var c=(t.type&&ue(t.type.getData)?t.type.getData:o)(t.props);return c?r(c,i,t):null}),e)}},{key:"findPoints",value:function(e,t){return e.filter((function(e){return t._voronoiX===e._voronoiX&&t._voronoiY===e._voronoiY}))}},{key:"withinRadius",value:function(e,t,n){if(!e)return!1;if(!n)return!0;var r=t.x,o=t.y;return Math.pow(r-e[0],2)+Math.pow(o-e[1],2)<Math.pow(n,2)}},{key:"getVoronoiPoints",value:function(e,t){var n=this.getDatasets(e),r=n.map((function(t){var n=Y(e,t);return[n.x,n.y]})),o=Zx.Z.from(r).find(t.x,t.y);return{points:this.withinRadius(r[o],t,e.radius)?this.findPoints(n,n[o]):[],index:o}}},{key:"getActiveMutations",value:function(e,t){var n=t.childName,r=t.continuous,o=e.activateData,i=e.activateLabels,a=e.labels;if(!o&&!i)return[];var l=o?["data"]:[],u=a&&!i?l:l.concat("labels");return L()(u)?[]:u.map((function(e){var o=!0===r&&"data"===e?"all":t.eventKey;return{childName:n,eventKey:o,target:e,mutation:function(){return{active:!0}}}}))}},{key:"getInactiveMutations",value:function(e,t){var n=t.childName,r=t.continuous,o=e.activateData,i=e.activateLabels,a=e.labels;if(!o&&!i)return[];var l=o?["data"]:[],u=a&&!i?l:l.concat("labels");return L()(u)?[]:u.map((function(e){var o=r&&"data"===e?"all":t.eventKey;return{childName:n,eventKey:o,target:e,mutation:function(){return null}}}))}},{key:"getParentMutation",value:function(e,t,n,r){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:e,mousePosition:t,parentSVG:n,vIndex:r}}}]}},{key:"onActivated",value:function(e,t){ue(e.onActivated)&&e.onActivated(t,e)}},{key:"onDeactivated",value:function(e,t){ue(e.onDeactivated)&&e.onDeactivated(t,e)}}],n&&tw(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),rw=new nw,ow=["childName","eventKey","style","continuous"];function iw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aw(Object(n),!0).forEach((function(t){uw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cw={activateData:!0,activateLabels:!0,labelComponent:j().createElement(Kx,null),voronoiPadding:5},sw=function(e){return H()(e,["_x","_x1","_x0","_y","_y1","_y0"])},fw=function(e){var t,n=lw(lw({},cw),e),r=n.children,o=function(e,t){var r=n.labels,o=n.labelComponent,i=n.theme,a=o.props||{},l=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{},u="flyout"===t?a.flyoutStyle:a.style;return e.reduce((function(e,n,o){var i=$()({},a,{datum:n,active:!0}),c=ue(r)?r(i):void 0,s=void 0!==c?"".concat(c).split("\n"):[],f=n.style&&n.style[t]||{},d=Array.isArray(u)?u[o]:u,p=te($()({},d,f,l[t]),i),h=s.length?s.map((function(){return p})):[p];return e.concat(h)}),[])},i=function(e){var t=n.labels,r=n.scale,i=n.labelComponent,a=n.theme,l=n.width,u=n.height,c=i.props||{},s=e.reduce((function(e,n){var r=$()({},c,{datum:n,active:!0}),o=ue(t)?t(r):null;return null==o?e:e.concat("".concat(o).split("\n"))}),[]),f=e[0],d=f.childName,p=f.eventKey,h=(f.style,f.continuous,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(f,ow)),y=n.name===d?d:"".concat(n.name,"-").concat(d),m=$()({key:"".concat(y,"-").concat(p,"-voronoi-tooltip"),id:"".concat(y,"-").concat(p,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:e,datum:h,scale:r,theme:a},c,{text:s,width:l,height:u,style:o(e,"labels"),flyoutStyle:o(e,"flyout")[0]},function(e){var t=n.voronoiDimension,r=n.horizontal,o=n.mouseFollowTooltips,i=sw(e[0]),a=t&&e.length>1,l=void 0!==i._y1?i._y1:i._y;return{orientation:o?void 0:r?l<0?"left":"right":l<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!o)||void 0}}(e)),v=function(e,t){var r=n.mousePosition,o=n.mouseFollowTooltips,i=function(){var e=n.horizontal,t=n.voronoiDimension;return e&&t?"x"===t?"y":"x":t}(),a=sw(t[0]),l=Y(n,a),u=o?r:void 0;if(!i||t.length<2)return lw(lw({},l),{},{center:$()({},e.center,u)});var c="y"===i?r.x:l.x,s="x"===i?r.y:l.y;return u=o?r:{x:c,y:s},{x:c,y:s,center:$()({},e.center,u)}}(m,e);return $()({},v,m)};return{props:n,children:[].concat((t=j().Children.toArray(r),function(e){if(Array.isArray(e))return iw(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return iw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iw(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[function(){var e=n.labels,t=n.activePoints,r=n.labelComponent;if(!e)return null;if(Array.isArray(t)&&t.length){var o=i(t),a=o.text;return(Array.isArray(a)?a.filter(Boolean).length:a)?j().cloneElement(r,o):null}return null}()])}},dw=function(e){var t=fw(e),n=t.props,r=t.children;return j().createElement(_s,n,r)};function pw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}dw.role="container",dw.defaultEvents=function(e){var t=lw(lw({},cw),e),n=function(e,n){return function(r,o,i,a){return n||t.disable?{}:e(r,lw(lw({},t),o),i,a)}};return[{target:"parent",eventHandlers:{onMouseLeave:n(rw.onMouseLeave),onTouchCancel:n(rw.onMouseLeave),onMouseMove:n(rw.onMouseMove),onTouchMove:n(rw.onMouseMove)}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]};var hw=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handleMouseMove=function(e,n){var r=n.onCursorChange,o=n.domain,i=t.getDimension(n),a=n.parentSVG||Fm(e),l=Bm(e,a),u=Wm(n,n.scale,l.x,l.y);return t.withinBounds(u,{x1:o.x[0],x2:o.x[1],y1:o.y[0],y2:o.y[1]})||(u=null),ue(r)&&(u?r(i?u[i]:u,n):u!==n.cursorValue&&r(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:u,parentSVG:a}}}]},this.onMouseMove=qm()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(e,t){var n=t.onCursorChange;return ue(t.onCursorChange)&&n(null,t),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}var t,n;return t=e,n=[{key:"getDimension",value:function(e){var t=e.horizontal,n=e.cursorDimension;return t&&n?"x"===n?"y":"x":n}},{key:"withinBounds",value:function(e,t){var n=de(t,Number),r=n.x1,o=n.x2,i=n.y1,a=n.y2,l=de(e,Number),u=l.x,c=l.y;return u>=Math.min(r,o)&&u<=Math.max(r,o)&&c>=Math.min(i,a)&&c<=Math.max(i,a)}}],n&&pw(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}(),yw=new hw;function mw(e){return function(e){if(Array.isArray(e))return vw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return vw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vw(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gw(Object(n),!0).forEach((function(t){xw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ww={cursorLabelComponent:j().createElement($f,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:j().createElement(ey,null)},Ow=function(e){var t=bw(bw({},ww),e),n=t.children;return{props:t,children:[].concat(mw(j().Children.toArray(n)),mw(function(){var e,n,r,o,i=t.scale,a=t.cursorLabelComponent,l=t.cursorLabel,u=t.cursorComponent,c=t.width,s=t.height,f=t.name,d=t.horizontal,p=t.theme,h=yw.getDimension(t),y=function(){var e=t.cursorValue,n=t.defaultCursorValue,r=t.domain,o=t.cursorDimension;return e||("number"==typeof n?bw({x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2},o?xw({},o,n):{}):n)}(),m=function(){var e=t.cursorLabelOffset;return"number"==typeof e?{x:e,y:e}:e}();if(!y)return[];var v=[],g=function(){if(void 0===t.padding){var e=Array.isArray(t.children)?t.children.find((function(e){return Ss()(e.props)&&void 0!==e.props.padding})):t.children;return X(null==e?void 0:e.props)}return X(t)}(),b={x:d?null==i||null===(e=i.y)||void 0===e?void 0:e.call(i,y.y):null==i||null===(n=i.x)||void 0===n?void 0:n.call(i,y.x),y:d?null==i||null===(r=i.x)||void 0===r?void 0:r.call(i,y.x):null==i||null===(o=i.y)||void 0===o?void 0:o.call(i,y.y)};if(l){var x=$()({active:!0},a.props,{x:b.x||0+m.x,y:b.y||0+m.y,datum:y,active:!0,key:"".concat(f,"-cursor-label")});if(Q(a)){var w=p&&p.tooltip||{};x=$()({},x,w)}v.push(j().cloneElement(a,$()({},x,{text:ee(l,x)})))}var O=Object.assign({stroke:"black"},u.props.style);return"x"!==h&&void 0!==h||v.push(j().cloneElement(u,{key:"".concat(f,"-x-cursor"),x1:b.x,x2:b.x,y1:g.top,y2:s||0-g.bottom,style:O})),"y"!==h&&void 0!==h||v.push(j().cloneElement(u,{key:"".concat(f,"-y-cursor"),x1:g.left,x2:c||0-g.right,y1:b.y,y2:b.y,style:O})),v}()))}},_w=function(e){var t=Ow(e),n=t.props,r=t.children;return j().createElement(_s,n,r)};function kw(e){return function(e){if(Array.isArray(e))return Cw(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Pw(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sw(Object(n),!0).forEach((function(t){Ew(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ew(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pw(e,t){if(e){if("string"==typeof e)return Cw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cw(e,t):void 0}}function Cw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mw(e){return e?Array.isArray(e)?e:[e]:[]}_w.role="container",_w.defaultEvents=function(e){var t=bw(bw({},ww),e),n=function(e,n){return function(r,o,i,a){return n||t.disable?{}:e(r,bw(bw({},t),o),i,a)}};return[{target:"parent",eventHandlers:{onMouseLeave:n(yw.onMouseLeave),onMouseMove:n(yw.onMouseMove),onTouchMove:n(yw.onMouseMove)}}]};var Aw={zoom:xx,selection:Mx,brush:iv,cursor:Ow,voronoi:fw};function Dw(e,t){return function(n,r){var o=e[n],i=e[r],a=Aw[n],l=Aw[r],u=function(e){var n=a(e),r=n.children,o=n.props,i=l(jw(jw({},o),{},{children:r})),u=i.children,c=i.props;return j().createElement(t,c,u)};return u.displayName="Victory".concat(n).concat(r,"Container"),u.role="container",u.defaultEvents=function(e){return t=[].concat(kw(o.defaultEvents(e)),kw(i.defaultEvents(e))),n=gm()(t,"target"),r=ix()(n).map((function(e){var t,n,r,o=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||Pw(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1],l=a.filter(Boolean);return L()(l)?null:{target:i,eventHandlers:(t=a.map((function(e){return e.eventHandlers})),t.reduce((function(e,t){return lx()(e,(function(e,n){var r=t[n];t[n]=r?function(){var t=Mw(r.apply(void 0,arguments)),n=Mw(e.apply(void 0,arguments));return t.concat(n)}:e})),t})))}})),r.filter(Boolean);var t,n,r},u}}var Tw=Dw({zoom:wx,selection:Ax,brush:av,cursor:_w,voronoi:dw},_s);function Lw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nw(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lw(Object(n),!0).forEach((function(t){zw(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zw(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Iw=function(e,t,n){var r="right"===n||"left"===n;return j().cloneElement(e.lineComponent,Nw(Nw({},e.events),{},{role:e.role,shapeRendering:e.shapeRendering,className:e.className,style:e.style,transform:e.transform,key:"".concat(e.id,"-border-").concat(n),x1:r?t[n]:e.x-e.borderWidth,x2:r?t[n]:e.x+e.borderWidth,y1:r?e.y-e.borderWidth:t[n],y2:r?e.y+e.borderWidth:t[n],"data-type":"border-".concat(n)}))},Rw=function(e,t,n){var r="top"===n||"bottom"===n;return j().cloneElement(e.lineComponent,Nw(Nw({},e.events),{},{role:e.role,shapeRendering:e.shapeRendering,className:e.className,style:e.style,transform:e.transform,key:"".concat(e.id,"-cross-").concat(n),x1:e.x,x2:r?e.x:t[n],y1:e.y,y2:r?t[n]:e.y,"data-type":"cross-".concat(n)}))},Fw={groupComponent:j().createElement("g",null),lineComponent:j().createElement(Yh,null),role:"presentation",shapeRendering:"auto"},Bw=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.id,e),r=te(Object.assign({stroke:"black"},e.style),e),o=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,id:n,style:r,tabIndex:o})}(Nw(Nw({},Fw),e)),n=t.groupComponent,r=Jc(t),o=t.tabIndex,i=t.ariaLabel,a=function(e){var t=e.errorX,n=e.errorY,r={right:{error:t,errorIndex:0},left:{error:t,errorIndex:1},top:{error:n,errorIndex:1},bottom:{error:n,errorIndex:0}};return["right","left","top","bottom"].reduce((function(e,t){var n,o,i;return e[t]=(o=(n=r[t]).error,i=n.errorIndex,o?o[i]:void 0),e}),{})}(t),l=[a.right?Iw(t,a,"right"):null,a.left?Iw(t,a,"left"):null,a.bottom?Iw(t,a,"bottom"):null,a.top?Iw(t,a,"top"):null,a.right?Rw(t,a,"right"):null,a.left?Rw(t,a,"left"):null,a.bottom?Rw(t,a,"bottom"):null,a.top?Rw(t,a,"top"):null].filter(Boolean);return j().cloneElement(n,Nw({tabIndex:o,"aria-label":i},r),l)},Uw=r(156),Ww=r.n(Uw),Vw=function(e,t,n){var r=t[{x:"_errorX",y:"_errorY"}[n]];if(0===r)return!1;var o=e.scale[n];return Array.isArray(r)?[0!==r[0]&&o(r[0]+t["_".concat(n)]),0!==r[1]&&o(t["_".concat(n)]-r[1])]:[o(r+t["_".concat(n)]),o(t["_".concat(n)]-r)]},Hw=function(e){var t=["x","y","errorX","errorY"];return e.data?xa(e.data,e,t):xa(e.errorX||e.errorY?wa(e):[],e,t)},qw=function(e,t){var n=Ha(e,t),r=Va(e,t),o=Hw(e);if(o.length<1)return void 0!==n&&void 0!==r?Ba(n,r):void 0;var i="x"===t?"_errorX":"_errorY",a=function(e){var n="min"===e?1/0:-1/0,r="min"===e?1:0,a="min"===e?-1:1;return o.reduce((function(n,o){var l=Array.isArray(o[i])?o[i][r]:o[i],u=o["_".concat(t)]+a*(l||0);return n<u&&"min"===e||n>u&&"max"===e?n:u}),n)};return Ba(void 0!==n?n:a("min"),void 0!==r?r:a("max"))},$w=function(e,t){return Na(qw)(e,t)};function Kw(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yw(e,t){return Yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Yw(e,t)}function Xw(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Qw(e){return Qw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Qw(e)}var Zw={width:450,height:300,padding:50},Jw=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yw(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Qw(r);if(o){var n=Qw(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Xw(this,e)});function a(){return Kw(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=eO.animationWhitelist,t=eO.role,n=se(this.props,Zw,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&Gw(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);Jw.animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"],Jw.displayName="VictoryErrorBar",Jw.role="errorbar",Jw.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}},Jw.defaultProps={containerComponent:j().createElement(_s,null),data:[{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}],dataComponent:j().createElement(Bw,null),labelComponent:j().createElement($f,null),groupComponent:j().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:sd.grayscale},Jw.getDomain=$w,Jw.getData=Hw,Jw.getBaseProps=function(e){return function(e,t){var n=se(e,t,"errorbar"),r=Object.assign({},n,function(e){var t=Z(e,"errorbar"),n=J(e.style,t)||{},r=Hw(e),o={x:ae(e,"x"),y:ae(e,"y")},i={x:$w(e,"x"),y:$w(e,"y")};return{domain:i,data:r,scale:{x:Yi(e,"x").domain(i.x).range(e.horizontal?o.y:o.x),y:Yi(e,"y").domain(i.y).range(e.horizontal?o.x:o.y)},style:n,origin:e.polar?e.origin||ie(e):void 0}}(n)),o=r.borderWidth,i=r.data,a=r.domain,l=r.events,u=r.groupComponent,c=r.height,s=r.horizontal,f=r.labels,d=r.name,p=r.origin,h=r.padding,y=r.polar,m=r.scale,v=r.sharedEvents,g=r.standalone,b=r.style,x=r.theme,w=r.width,O=r.disableInlineStyles,_={parent:{data:i,domain:a,height:c,horizontal:s,name:d,origin:p,padding:h,polar:y,scale:m,standalone:g,style:b.parent,theme:x,width:w}};return i.reduce((function(e,t,n){var c=le(t.eventKey)?n:t.eventKey,d=Y(Ww()({},r,{scale:m}),t),p=d.x,h=d.y,y=function(e,t){var n=je(t.x),r=Se(t.x),o=je(t.y),i=Se(t.y),a=e._x,l=e._y;return(a<n||a>r||l<o||l>i)&&(a=l=null),Object.assign({},e,{_x:a,_y:l})}(t,a),g=Vw(r,y,"x"),x=Vw(r,y,"y"),w={borderWidth:o,data:i,datum:y,errorX:s?x:g,errorY:s?g:x,groupComponent:u,horizontal:s,index:n,scale:m,style:O?{}:b.data,x:p,y:h,disableInlineStyles:O};e[c]={data:w};var _=Ga(r,t,n);return(null!=_||f&&(l||v))&&(e[c].labels=function(e,t,n){var r=e.x,o=e.y,i=e.index,a=e.scale,l=e.errorY,u=e.errorX,c=e.horizontal,s=e.labelComponent,f=e.theme,d=e.disableInlineStyles,p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",n="y"===t?l:u;return(n&&Array.isArray(n)?n[0]:n)||e[t]},h=n.labels||{},y=h.padding||0,m=c?"start":"middle",v=c?"middle":"end",g={style:h,y:c?o:p("y"),x:c?p("x"):r,dy:c?0:-y,dx:c?y:0,text:t,index:i,scale:a,datum:e.datum,data:e.data,textAnchor:h.textAnchor||m,verticalAnchor:h.verticalAnchor||v,angle:h.angle,horizontal:c,disableInlineStyles:d};if(!Q(s))return g;var b=f&&f.tooltip||{};return $()({},g,K(b,["style"]))}(Object.assign({},r,w),_,b)),e}),_)}(e,Zw)},Jw.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var eO=mh(Jw);function tO(e){return function(e){if(Array.isArray(e))return rO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||nO(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nO(e,t){if(e){if("string"==typeof e)return rO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rO(e,t):void 0}}function rO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function iO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oO(Object(n),!0).forEach((function(t){aO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lO={width:450,height:300,padding:50,offset:0};function uO(e,t){var n="group",r=se(e,lO,n),o=Hg(r.theme,r.style,n),i=r.offset,a=r.colorScale,l=r.color,u=r.polar,c=r.horizontal,s=r.categories||Xg(r,t,null),f=r.datasets||Ng(r,null),d={x:Bg(Object.assign({},r,{categories:s}),"x",t),y:Bg(Object.assign({},r,{categories:s}),"y",t)},p=r.range||{x:ae(r,"x"),y:ae(r,"y")},h={x:Qi(r,"x")||Ug(r,"x"),y:Qi(r,"y")||Ug(r,"y")};return{datasets:f,categories:s,range:p,domain:d,horizontal:c,scale:{x:h.x.domain(d.x).range(r.horizontal?p.y:p.x),y:h.y.domain(d.y).range(r.horizontal?p.x:p.y)},style:o,colorScale:a,color:l,offset:i,origin:u?r.origin:ie(r),padding:X(r)}}function cO(e){var t,n,r=function(e){var t=e.children,n=j().Children.toArray(t).map((function(e){return iO(iO({},e),{},{props:K(e.props,["sharedEvents"])})}));return e.children=n,e}(e),o=(t=j().useState(r),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||nO(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return j().useEffect((function(){Nd()(r,i)||a(r)}),[i,a,r]),j().useMemo((function(){return uO(i,i.children)}),[i])}function sO(e,t){var n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if("group"===n||"stack"===n)return e.theme&&e.theme.group?r||e.theme.group.colorScale:r}function fO(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=e.data||e.y?_a(e):t,o=n||0;return r.map((function(e){var t=e._x instanceof Date?new Date(e._x.getTime()+o):e._x+o;return Object.assign({},e,{_x1:t})}))}function dO(e,t,n){var r=se(e,lO,"stack"),o=t||j().Children.toArray(r.children),i=n||uO(r,o),a=i.datasets,l=r.labelComponent,u=r.polar,c=function(e,t){var n=t.categories,r=t.domain,o=t.range,i=t.scale,a=t.horizontal,l=t.origin,u=t.padding,c=e.width;return{height:e.height,width:c,theme:e.theme,polar:e.polar,origin:l,categories:n,domain:r,range:o,scale:i,horizontal:a,padding:u,standalone:!1}}(r,i),s=r.name||"group";return o.map((function(e,t){var n=e.type&&e.type.role,o=u?function(e,t,n,r){var o=(("stack"===r?t.datasets[0].length:t.datasets.length)-1)/2,i=function(e,t){var n=t.range,r=Math.abs(n.x[1]-n.x[0]),o=Math.max.apply(Math,tO(n.y));return e.offset/(2*Math.PI*o)*r}(e,t);return(n-o)*i}(r,i,t,n):function(e,t,n,r){var o=(("stack"===r?t.datasets[0].length:t.datasets.length)-1)/2,i=function(e,t,n){if(!e.offset)return 0;var r=fe("x",e.horizontal),o=n.domain.x,i=n.range[r];return(Math.max.apply(Math,tO(o))-Math.min.apply(Math,tO(o)))/(Math.max.apply(Math,tO(i))-Math.min.apply(Math,tO(i)))*e.offset}(e,0,t);return(n-o)*i}(r,i,t,n),f="voronoi"===n||"tooltip"===n||"label"===n?e.props.style:qg(e,t,i),d=r.labels?function(e,t,n){if(e.labels)return Math.floor(t.length/2)===n?e.labels:void 0}(r,a,t):e.props.labels,p=e.props.name||"".concat(s,"-").concat(n,"-").concat(t);return j().cloneElement(e,Object.assign({labels:d,style:f,key:"".concat(p,"-key-").concat(t),name:p,data:fO(r,a[t],o),colorScale:sO(r,e),labelComponent:l||e.props.labelComponent,xOffset:o},c))}))}function pO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pO(Object(n),!0).forEach((function(t){yO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mO={width:450,height:300,padding:50,offset:0},vO={containerComponent:j().createElement(_s,null),groupComponent:j().createElement("g",null),samples:50,standalone:!0,theme:sd.grayscale},gO=function(e){var t=null==xO?void 0:xO.role,n=jg(),r=n.getAnimationProps,o=n.setAnimationState,i=n.getProps,a=j().useMemo((function(){return hO(hO({},vO),e)}),[e]),l=i(a),u=se(l,mO,t),c=u.eventKey,s=u.containerComponent,f=u.standalone,d=u.groupComponent,p=u.externalEventMutations,h=u.width,y=u.height,m=u.theme,v=u.polar,g=u.horizontal,b=u.name,x=j().Children.toArray(u.children),w=cO(u),O=w.domain,_=w.scale,k=w.style,S=w.origin,E=j().useMemo((function(){return dO(l,x,w).map((function(e,t){var n=Object.assign({animate:r(l,e,t)},e.props);return j().cloneElement(e,n)}))}),[l,x,w,r]),P=j().useMemo((function(){return f?{domain:O,scale:_,width:h,height:y,standalone:f,theme:m,style:k.parent,horizontal:g,polar:v,origin:S,name:b}:{}}),[f,O,_,h,y,m,k,g,v,S,b]),C=j().useMemo((function(){return Jc(a)}),[a]),M=j().useMemo((function(){if(f){var e=$()({},s.props,P,C);return j().cloneElement(s,e)}return j().cloneElement(d,C)}),[d,f,s,P,C]),A=j().useMemo((function(){return Wg(l)}),[l]),D=Qg(a);return j().useEffect((function(){return function(){a.animate&&o(D,l)}}),[o,D,a,l]),L()(A)?j().cloneElement(M,M.props,E):j().createElement(cb,{container:M,eventKey:c,events:A,externalEventMutations:p},E)},bO={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:dO},xO=Object.assign(j().memo(gO,Nd()),bO);xO.displayName="VictoryGroup";var wO=Array.prototype,OO=wO.slice;function _O(e){return()=>e}function kO(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let o=-1;for(let i of e)null!=(i=t(i,++o,e))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}function SO(e){return e}function jO(e){return Math.ceil(Math.log(function(e,t){let n=0;for(let t of e)null!=t&&(t=+t)>=t&&++n;return n}(e))/Math.LN2)+1}function EO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EO(Object(n),!0).forEach((function(t){CO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MO(e){return function(e){if(Array.isArray(e))return AO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return AO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?AO(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function AO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}wO.map;var DO,TO,LO,NO,zO=(DO=function(e){var t=e.data,n=void 0===t?[]:t,r=e.x,o=e.bins;if(!(n&&n.length||Array.isArray(o)))return[];var i=function(e){var t=e.data,n=e.bins,r=ce(e.x||"x"),o=(null==t?void 0:t.some((function(e){return r(e)instanceof Date})))||!1,i=Array.isArray(n)&&n.some((function(e){return e instanceof Date}));return o||i}({data:n,bins:o,x:r}),a=function(e){var t=e.data,n=e.bins,r=e.dataOrBinsContainsDates,o=ce(e.x||"x"),i=function(){var e=SO,t=kO,n=jO;function r(r){Array.isArray(r)||(r=Array.from(r));var o,i,a,l=r.length,u=new Array(l);for(o=0;o<l;++o)u[o]=e(r[o],o,r);var c=t(u),s=c[0],f=c[1],d=n(u,s,f);if(!Array.isArray(d)){const e=f,n=+d;if(t===kO&&([s,f]=function(e,t,n){let r;for(;;){const o=We(e,t,n);if(o===r||0===o||!isFinite(o))return[e,t];o>0?(e=Math.floor(e/o)*o,t=Math.ceil(t/o)*o):o<0&&(e=Math.ceil(e*o)/o,t=Math.floor(t*o)/o),r=o}}(s,f,n)),(d=Ue(s,f,n))[0]<=s&&(a=We(s,f,n)),d[d.length-1]>=f)if(e>=f&&t===kO){const e=We(s,f,n);isFinite(e)&&(e>0?f=(Math.floor(f/e)+1)*e:e<0&&(f=(Math.ceil(f*-e)+1)/-e))}else d.pop()}for(var p=d.length;d[0]<=s;)d.shift(),--p;for(;d[p-1]>f;)d.pop(),--p;var h,y=new Array(p+1);for(o=0;o<=p;++o)(h=y[o]=[]).x0=o>0?d[o-1]:s,h.x1=o<p?d[o]:f;if(isFinite(a)){if(a>0)for(o=0;o<l;++o)null!=(i=u[o])&&s<=i&&i<=f&&y[Math.min(p,Math.floor((i-s)/a))].push(r[o]);else if(a<0)for(o=0;o<l;++o)if(null!=(i=u[o])&&s<=i&&i<=f){const e=Math.floor((s-i)*a);y[Math.min(p,e+(d[e]<=i))].push(r[o])}}else for(o=0;o<l;++o)null!=(i=u[o])&&s<=i&&i<=f&&y[Qe(d,i,0,p)].push(r[o]);return y}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:_O(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:_O([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?_O(OO.call(e)):_O(e),r):n},r}().value(o),a=(r?Ei():xn()).domain(kO(t,o)).nice();return Array.isArray(n)?(i.domain([n[0],n[n.length-1]]),i.thresholds(n.slice(1,n.length-1)),i):Number.isInteger(n)?(i.domain(a.domain()),i.thresholds(n),i):r?(i.domain(a.domain()),i.thresholds(a.ticks()),i):(i.domain(a.domain()),i)}({data:n,x:r,bins:o,dataOrBinsContainsDates:i});return MO(a(n)).filter((function(e){var t=e.x0,n=e.x1;return t instanceof Date&&n instanceof Date?new Date(t).getTime()!==new Date(n).getTime():t!==n})).map((function(e){var t=i?new Date(e.x0):e.x0||0,n=i?new Date(e.x1):e.x1||0;return{x0:t,x1:n,x:i?new Date((t.getTime()+n.getTime())/2):(t+n)/2,y:e.length,binnedData:MO(e)}}))},NO=!1,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(NO&&Nd()(TO,t))return LO;var r=DO.apply(void 0,t);return NO=!0,LO=r,TO=t,r}),IO=function(e){var t=e.bins,n=e.data,r=e.x,o=(null==n?void 0:n.some((function(e){return!le(e._y)})))?n:zO({data:n,x:r,bins:t});return _a(PO(PO({},e),{},{data:o,x:"x"}))},RO=function(e,t){var n,r=IO(e);if(!r.length)return[0,1];if("x"===t){var o=r[0],i=r[r.length-1];return Wa(PO(PO({},e),{},{data:[{x:o.x0},{x:i.x1}],x:"x"}),"x")}return null!==(n=e.data)&&void 0!==n&&n.length?Wa(PO(PO({},e),{},{data:r}),"y"):[0,1]};function FO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function UO(e,t){return UO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UO(e,t)}function WO(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function VO(e){return VO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},VO(e)}var HO={width:450,height:300,padding:50},qO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&UO(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=VO(r);if(o){var n=VO(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return WO(this,e)});function a(){return FO(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=a.animationWhitelist,t=a.role,n=se(this.props,HO,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&BO(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);qO.animationWhitelist=["data","domain","height","padding","style","width"],qO.displayName="VictoryHistogram",qO.role="histogram",qO.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}}},qO.getFormattedData=zO,qO.defaultProps={containerComponent:j().createElement(_s,null),data:[],dataComponent:j().createElement(Zy,null),groupComponent:j().createElement("g",{role:"presentation"}),labelComponent:j().createElement($f,null),samples:50,sortOrder:"ascending",standalone:!0,theme:sd.grayscale},qO.getDomain=RO,qO.getData=IO,qO.getBaseProps=function(e){return function(e,t){var n=se(e,t,"histogram"),r=Object.assign({},n,function(e){var t=Z(e,"histogram"),n=J(e.style,t),r=e.range||{x:ae(e,"x"),y:ae(e,"y")},o={x:RO(e,"x"),y:RO(e,"y")},i=IO(e);return{style:n,data:i=va(i,o,0),scale:{x:Yi(e,"x").domain(o.x).range(e.horizontal?r.y:r.x),y:Yi(e,"y").domain(o.y).range(e.horizontal?r.x:r.y)},domain:o}}(n)),o=r.binSpacing,i=r.cornerRadius,a=r.data,l=r.domain,u=r.events,c=r.height,s=r.horizontal,f=r.padding,d=r.scale,p=r.sharedEvents,h=r.standalone,y=r.style,m=r.theme,v=r.width,g=r.labels,b=r.name,x=r.getPath,w=r.disableInlineStyles,O={parent:{horizontal:s,domain:l,scale:d,width:v,height:c,data:a,standalone:h,name:b,theme:m,padding:f,style:y.parent}},_=function(e){var t=d.x(e.x0),n=d.x(e.x1);return Math.abs(n-t)};return a.reduce((function(e,t,n){var l=le(t.eventKey)?n:t.eventKey,f=Ey(r,t),h=f.x,m=f.y,b=f.y0,O=f.x0,k=function(e){return o?_(e)-o:_(e)}(t),S={alignment:"middle",barWidth:k,cornerRadius:i,data:a,datum:t,horizontal:s,index:n,scale:d,style:w?{}:y.data,width:v,height:c,x:h,y:m,y0:b,x0:O,getPath:x,disableInlineStyles:w};return e[l]={data:S},(null!=Ga(r,t,n)||g&&(u||p))&&(e[l].labels=Ja(r,n)),e}),O)}(e,HO)},qO.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var $O=mh(qO),KO=r(8825),GO=r.n(KO),YO=r(5367),XO=r.n(YO);function QO(e){return function(e){if(Array.isArray(e))return ZO(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ZO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZO(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ZO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function e_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JO(Object(n),!0).forEach((function(t){t_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function t_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var n_=function(e){var t=e.data,n=e.style;return t.map((function(e,r){return te($()({},e.labels,n.labels),{datum:e,index:r,data:t})}))},r_=function(e){var t=e.orientation,n=e.theme,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.style||{},r={height:"100%",width:"100%"};return{parent:$()(n.parent,t.parent,r),data:$()({},n.data,t.data),labels:$()({},n.labels,t.labels),border:$()({},n.border,t.border),title:$()({},n.title,t.title)}}(e,n&&n.legend&&n.legend.style?n.legend.style:{}),o=function(e){var t=e.colorScale;return"string"==typeof t?sf(t):t||[]}(e),i="horizontal"===t,a=X({padding:e.borderPadding});return Object.assign({},e,{style:r,isHorizontal:i,colorScale:o,borderPadding:a})},o_=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},i_=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},a_=function(e){var t=e.data,n=e.style&&e.style.data||{},r=n_(e);return t.map((function(t,o){var i=t.symbol||{},a=r[o].fontSize,l=i.size||n.size||a/2.5,u=e.symbolSpacer||Math.max(l,a);return e_(e_({},t),{},{size:l,symbolSpacer:u,fontSize:a,textSize:Mf(t.name,r[o]),column:o_(e,o),row:i_(e,o)})}))},l_=function(e,t){var n=e.gutter||{},r="object"==typeof n?(n.left||0)+(n.right||0):n||0,o=gm()(t,"column");return Object.keys(o).reduce((function(e,t,n){var i=o[t].map((function(e){return e.textSize.width+e.size+e.symbolSpacer+r}));return e[n]=Math.max.apply(Math,QO(i)),e}),[])},u_=function(e,t){var n=e.rowGutter||{},r="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,o=gm()(t,"row");return Object.keys(o).reduce((function(e,t,n){var i=o[t].map((function(e){return e.textSize.height+e.symbolSpacer+r}));return e[n]=Math.max.apply(Math,QO(i)),e}),[])},c_=function(e){var t=e.style&&e.style.title||{},n=Mf(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},s_=function(e,t){var n=se(e,t,"legend"),r=Object.assign({},n,r_(n)),o=r.title,i=r.titleOrientation,a=a_(r),l=l_(r,a),u=u_(r,a),c=o?c_(r):{height:0,width:0};return{height:"left"===i||"right"===i?Math.max(XO()(u),c.height):XO()(u)+c.height,width:"left"===i||"right"===i?XO()(l)+c.width:Math.max(XO()(l),c.width)}},f_=function(e,t){var n=se(e,t,"legend"),r=Object.assign({},n,r_(n)),o=r.data,i=r.standalone,a=r.theme,l=r.padding,u=r.style,c=r.colorScale,s=r.gutter,f=r.rowGutter,d=r.borderPadding,p=r.title,h=r.titleOrientation,y=r.name,m=r.x,v=void 0===m?0:m,g=r.y,b=void 0===g?0:g,x=a_(r),w=l_(r,x),O=u_(r,x),_=n_(r),k=p?c_(r):{height:0,width:0},S="left"===h?k.width:0,j="top"===h?k.height:0,E=s&&"object"==typeof s&&s.left||0,P=f&&"object"==typeof f&&f.top||0,C=s_(r,t),M=function(e,t,n){var r=e.x,o=e.y,i=e.borderPadding,a=e.style;return{x:r,y:o,height:(t||0)+i.top+i.bottom,width:(n||0)+i.left+i.right,style:Object.assign({fill:"none"},a.border)}}(r,C.height,C.width),A=function(e,t){var n=e.title,r=e.titleOrientation,o=e.centerTitle,i=e.borderPadding,a=t.height,l=t.width,u=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,o=e.style&&e.style.title||{},i=r.props&&r.props.style||{},a=function(e,t){var n={textAnchor:"right"===e?"end":"start",verticalAnchor:"bottom"===e?"end":"start"};if(t){var r="top"===e||"bottom"===e;return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n}(t,n);return Array.isArray(i)?i.map((function(e){return $()({},e,o,a)})):$()({},i,o,a)}(e),c=Array.isArray(u)?u[0].padding:u.padding,s="top"===r||"bottom"===r,f="right"===r?"right":"left",d={x:o?l/2:i["bottom"===r?"bottom":"top"]+(c||0),y:o?a/2:i[f]+(c||0)},p=function(){return i[r]+(c||0)},h=s?d.x:p(),y=s?p():d.y;return{x:"right"===r?e.x+l-h:e.x+h,y:"bottom"===r?e.y+a-y:e.y+y,style:u,text:n}}(r,M),D={parent:{data:o,standalone:i,theme:a,padding:l,name:y,height:r.height,width:r.width,style:u.parent},all:{border:M,title:A}};return x.reduce((function(e,t,n){var r=c[n%c.length],i=$()({},t.symbol,u.data,{fill:r}),a=le(t.eventKey)?n:t.eventKey,l=function(e,t,n){var r=e.column,o=e.row;return{x:GO()(r).reduce((function(e,t){return e+n[t]}),0),y:GO()(o).reduce((function(e,n){return e+t[n]}),0)}}(t,O,w),s=b+d.top+t.symbolSpacer,f=v+d.left+t.symbolSpacer,p={index:n,data:o,datum:t,symbol:i.type||i.symbol||"circle",size:t.size,style:i,y:s+l.y+j+P,x:f+l.x+S+E},h={datum:t,data:o,text:t.name,style:_[n],y:p.y,x:p.x+t.symbolSpacer+t.size/2};return e[a]={data:p,labels:h},e}),D)};function d_(e){return function(e){if(Array.isArray(e))return p_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m_(e,t){return m_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m_(e,t)}function v_(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g_(e){return g_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g_(e)}var b_={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},x_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m_(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g_(r);if(o){var n=g_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v_(this,e)});function a(){return h_(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"renderChildren",value:function(e){var t=this,n=e.dataComponent,r=e.labelComponent,o=e.title,i=[];if(e.borderComponent){var a=this.getComponentProps(e.borderComponent,"border","all"),l=j().cloneElement(e.borderComponent,a);i.push(l)}if(n){var u=this.dataKeys.map((function(e,r){if("all"!==e){var o=t.getComponentProps(n,"data",r);return j().cloneElement(n,o)}})).filter((function(e){return void 0!==e}));i.push.apply(i,d_(u))}if(o&&e.titleComponent){var c=this.getComponentProps(o,"title","all"),s=j().cloneElement(e.titleComponent,c);i.push(s)}if(r){var f=this.dataKeys.map((function(e,n){if("all"!==e){var o=t.getComponentProps(r,"labels",n);return void 0!==o.text&&null!==o.text?j().cloneElement(r,o):void 0}})).filter((function(e){return void 0!==e}));i.push.apply(i,d_(f))}return i}},{key:"render",value:function(){var e=this.constructor.role,t=se(this.props,b_,e),n=this.renderChildren(t);return t.standalone?this.renderContainer(t.containerComponent,n):j().cloneElement(t.groupComponent,{},n)}}])&&y_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);x_.displayName="VictoryLegend",x_.role="legend",x_.defaultProps={borderComponent:j().createElement(fm,null),data:[{name:"Series 1"},{name:"Series 2"}],containerComponent:j().createElement(_s,null),dataComponent:j().createElement(rx,null),groupComponent:j().createElement("g",null),labelComponent:j().createElement($f,null),standalone:!0,theme:sd.grayscale,titleComponent:j().createElement($f,null)},x_.getBaseProps=function(e){return f_(e,b_)},x_.getDimensions=function(e){return s_(e,b_)},x_.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var w_=mh(x_);function O_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function __(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O_(Object(n),!0).forEach((function(t){k_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S_={pathComponent:j().createElement($c,null),role:"presentation",shapeRendering:"auto"},j_=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.id,e),r=te(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},e.style),e),o=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,id:n,style:r,tabIndex:o})}(__(__({},S_),e)),n=Jc(t),r=t.polar,o=t.origin,i=Uc(t),a=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0,l=i(t.data);return j().cloneElement(t.pathComponent,__(__(__({},t.events),n),{},{"aria-label":t.ariaLabel,d:l,style:t.style,transform:t.transform||a,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex}))};function E_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P_(e,t){return P_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P_(e,t)}function C_(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function M_(e){return M_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M_(e)}var A_={width:450,height:300,padding:50,interpolation:"linear"},D_=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P_(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=M_(r);if(o){var n=M_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return C_(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=a.animationWhitelist,t=a.role,n=se(this.props,A_,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&E_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);D_.animationWhitelist=["data","domain","height","padding","samples","style","width"],D_.displayName="VictoryLine",D_.role="line",D_.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},D_.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(e,t,n){var r=function(e){return(0===t?n[t+1]:n[t-1])[e]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(e){return(0===t?n[t+1]:n[t-1])[e]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(e){return{_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0}}}},D_.continuous=!0,D_.defaultProps={containerComponent:j().createElement(_s,null),dataComponent:j().createElement(j_,null),labelComponent:j().createElement($f,{renderInPortal:!0}),groupComponent:j().createElement($s,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:sd.grayscale},D_.getDomain=Ia,D_.getData=_a,D_.getBaseProps=function(e){return function(e,t){var n=se(e,t,"line"),r=Object.assign({},n,function(e){var t=_a(e);t.length<2&&(t=[]);var n={x:ae(e,"x"),y:ae(e,"y")},r={x:Ia(e,"x"),y:Ia(e,"y")},o={x:Yi(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Yi(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},i=e.polar?e.origin||ie(e):void 0,a=Z(e,"line");return{domain:r,data:t,scale:o,style:J(e.style,a),origin:i}}(n)),o=r.data,i=r.domain,a=r.events,l=r.groupComponent,u=r.height,c=r.horizontal,s=r.interpolation,f=r.origin,d=r.padding,p=r.polar,h=r.scale,y=r.sharedEvents,m=r.standalone,v=r.style,g=r.theme,b=r.width,x=r.labels,w=r.name,O=r.disableInlineStyles,_={parent:{style:v.parent,scale:h,data:o,height:u,width:b,name:w,domain:i,standalone:m,polar:p,origin:f,padding:d,horizontal:c},all:{data:{horizontal:c,polar:p,origin:f,scale:h,data:o,interpolation:s,groupComponent:l,style:O?{}:v.data,theme:g,disableInlineStyles:O}}};return o.reduce((function(e,t,n){return(null!=Ga(r,t,n)||x&&(a||y))&&(e[le(t.eventKey)?n:t.eventKey]={labels:Ja(r,n)}),e}),_)}(e,A_)},D_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var T_=mh(D_,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),L_=function(e,t){var n=t.style,r=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]}(n,t.colors,e);return Object.assign({fill:r},n.data)},N_=function(e,t){return e*function(e){return Math.cos(e-ne(90))}(t)},z_=function(e,t){return e*function(e){return Math.sin(e-ne(90))}(t)},I_=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length},R_=function(e,t){var n=se(e,t,"pie"),r=function(e){var t=e.colorScale,n=Z(e,"pie"),r=J(e.style,n),o=Array.isArray(t)?t:sf(t),i=X(e),a=function(e,t){return"number"==typeof e.radius?e.radius:Math.min(e.width-t.left-t.right,e.height-t.top-t.bottom)/2}(e,i),l=function(e,t){var n=e.width,r=e.height,o=B()(e.origin)?e.origin:{};return{x:void 0!==o.x?o.x:(t.left-t.right+n)/2,y:void 0!==o.y?o.y:(t.top-t.bottom+r)/2}}(e,i),u=_a(e),c=function(e,t){var n=ue(e.padAngle)?0:e.padAngle;return ql().sort(null).startAngle(ne(e.startAngle)).endAngle(ne(e.endAngle)).padAngle(ne(n)).value((function(e){return e._y}))(t)}(e,u);return Object.assign({},e,{style:r,colors:o,padding:i,defaultRadius:a,data:u,slices:c,origin:l})}(n),o=r.slices,i=r.style,a=r.data,l=r.origin,u=r.defaultRadius,c=r.labels,s=r.events,f=r.sharedEvents,d=r.height,p=r.width,h=r.standalone,y=r.name,m=r.innerRadius,v=r.cornerRadius,g=r.padAngle,b=r.disableInlineStyles,x=r.labelIndicator,w=n.radius||u,O={parent:{standalone:h,height:d,width:p,slices:o,name:y,style:i.parent}};return o.reduce((function(e,t,o){var i=$()({},a[o],{startAngle:re(t.startAngle),endAngle:re(t.endAngle),padAngle:re(t.padAngle)}),u=le(i.eventKey)?o:i.eventKey,d={index:o,slice:t,datum:i,data:a,origin:l,innerRadius:m,radius:w,cornerRadius:v,padAngle:g,style:b?{}:L_(o,r),disableInlineStyles:b};e[u]={data:d};var p=function(e,t,n){return null==(r=t.label?t.label:Array.isArray(e.labels)?e.labels[n]:ue(e.labels)?e.labels:t.xName||t._x)||ue(r)?r:"".concat(r);var r}(n,i,o);if(null!=p||c&&(s||f)){var h=ee(p,d);if(e[u].labels=function(e,t,n){var r=t.index,o=t.datum,i=t.data,a=t.slice,l=t.labelComponent,u=t.theme,c=n.style,s=n.defaultRadius,f=n.origin,d=n.width,p=n.height,h=ee(n.labelRadius,Object.assign({text:e},t)),y=ee(n.labelPosition,Object.assign({text:e},t))||"centroid",m=ee(n.labelPlacement,Object.assign({text:e},t))||"vertical",v=Object.assign({padding:0},c.labels),g=function(e,t,n){var r=n&&n.padding||0;return t||e+r}(s,h,te(v,Object.assign({labelRadius:h,text:e},t))),b=function(e){return Wl().outerRadius(e).innerRadius(e)}(g),x=function(e,t,n){var r={startAngle:"startAngle"===n?t.startAngle:t.endAngle,endAngle:"endAngle"===n?t.endAngle:t.startAngle},o=Object.assign({},t,r);return e.centroid(o)}(b,a,y),w=function(e,t,n){var r;return((r=void 0!==t.angle?n.angle:re("centroid"===t?(e.startAngle+e.endAngle)/2:"startAngle"===t?e.startAngle:e.endAngle))<0?360-r:r)%360}(a,y,v),O=function(e,t){return"vertical"===t?0:"parallel"===t?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e}(w,m),_=function(e,t){return"perpendicular"===t?e>90&&e<270?"bottom":"top":"parallel"===t?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left"}(w,m),k=v.textAnchor||function(e){return"top"===e||"bottom"===e?"middle":"right"===e?"start":"end"}(_),S=v.verticalAnchor||function(e){return"left"===e||"right"===e?"middle":"bottom"===e?"start":"end"}(_),j={width:d,height:p,index:r,datum:o,data:i,slice:a,orientation:_,text:e,style:v,x:Math.round(x[0])+f.x,y:Math.round(x[1])+f.y,textAnchor:k,verticalAnchor:S,angle:O,calculatedLabelRadius:g};if(!Q(l))return j;var E=u&&u.tooltip||{};return $()({},j,K(E,["style"]))}(h,Object.assign({},n,d),r),x){var y=e[u].labels;y.calculatedLabelRadius>w&&(e[u].labelIndicators=function(e,t,n){var r=e.innerRadius,o=e.radius,i=e.slice,a=i.startAngle,l=i.endAngle,u=e.labelIndicatorInnerOffset,c=e.labelIndicatorOuterOffset,s=e.index,f=t.height,d=t.width,p=n.calculatedLabelRadius,h=I_([r,o]),y=I_([l,a]),m=d/2,v=f/2,g=h+u,b=p-c,x={x1:m+N_(g,y),y1:v+z_(g,y),x2:m+N_(b,y),y2:v+z_(b,y),index:s};return $()({},x)}(Object.assign({},n,d),r,y))}}return e}),O)};function F_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F_(Object(n),!0).forEach((function(t){U_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W_=function(e){var t=e.slice,n=e.radius,r=e.innerRadius,o=e.cornerRadius;if(ue(e.pathFunction))return e.pathFunction(t);var i=ne(e.padAngle),a=ne(e.sliceStartAngle),l=ne(e.sliceEndAngle);return Wl().cornerRadius(o).outerRadius(n).innerRadius(r||0)($()({startAngle:a,endAngle:l,padAngle:i},t))},V_={pathComponent:j().createElement($c,null),role:"presentation",shapeRendering:"auto"},H_=function(e){var t=function(e){var t=te(e.style,e),n=ee(e.radius,Object.assign({},e,{style:t})),r=ee(e.innerRadius,Object.assign({},e,{style:t,radius:n})),o=ee(e.ariaLabel,e),i=ee(e.id,e),a=ee(e.cornerRadius,e),l=ee(e.padAngle,e),u=ee(e.sliceStartAngle,e),c=ee(e.sliceEndAngle,e),s=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:o,style:t,radius:n,innerRadius:r,id:i,cornerRadius:a,padAngle:l,sliceStartAngle:u,sliceEndAngle:c,tabIndex:s})}(B_(B_({},V_),e)),n=t.origin?"translate(".concat(t.origin.x,", ").concat(t.origin.y,")"):void 0;return j().cloneElement(t.pathComponent,B_(B_({},t.events),{},{"aria-label":t.ariaLabel,d:W_(t),style:t.style,transform:t.transform||n,className:t.className,role:t.role,shapeRendering:t.shapeRendering,clipPath:t.clipPath,tabIndex:t.tabIndex}))};function q_(e){return function(e){if(Array.isArray(e))return $_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return $_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $_(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y_(e,t){return Y_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y_(e,t)}function X_(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q_(e){return Q_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q_(e)}var Z_={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},J_=function(e){return!le(e._x)&&!le(e._y)},ek=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y_(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Q_(r);if(o){var n=Q_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return X_(this,e)});function a(){return K_(this,a),i.apply(this,arguments)}return t=a,n=[{key:"shouldAnimate",value:function(){return Boolean(this.props.animate)}},{key:"renderComponents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:J_,r=e.dataComponent,o=e.labelComponent,i=e.groupComponent,a=e.labelIndicator,l=e.labelPosition;if(!i)throw new Error("VictoryPie expects a groupComponent prop");var u=a&&"centroid"===l,c=[];if(r){var s=this.dataKeys.reduce((function(e,o,i){var a=t.getComponentProps(r,"data",i);return n(a.datum)&&e.push(j().cloneElement(r,a)),e}),[]);c.push.apply(c,q_(s))}if(o){var f=this.dataKeys.map((function(e,n){var r=t.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return j().cloneElement(o,r)})).filter((function(e){return void 0!==e}));c.push.apply(c,q_(f))}if(u&&a){var d=j().createElement(ey,null);"object"==typeof a&&(d=a);var p=this.dataKeys.map((function(e,n){var r=t.getComponentProps(d,"labelIndicators",n);return j().cloneElement(d,r)}));c.push.apply(c,q_(p))}return this.renderContainer(i,c)}},{key:"render",value:function(){var e=tk.animationWhitelist,t=tk.role,n=se(this.props,Z_,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderComponents(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}],n&&G_(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);ek.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],ek.displayName="VictoryPie",ek.role="pie",ek.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(e){return{y_:e._y,label:e.label}}}},ek.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:j().createElement(H_,null),labelComponent:j().createElement($f,null),containerComponent:j().createElement(_s,null),groupComponent:j().createElement("g",null),sortOrder:"ascending",theme:sd.grayscale},ek.getBaseProps=function(e){return R_(e,Z_)},ek.getData=_a,ek.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var tk=mh(ek);function nk(e){return function(e){if(Array.isArray(e))return rk(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return rk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rk(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ok=function(e,t){return t.bubbleProperty?"circle":e.symbol||t.symbol},ik=function(e,t){var n=t.size,r=t.z;return e.size?"function"==typeof e.size?e.size:Math.max(e.size,1):"function"==typeof t.size?n:e[r]?function(e,t){var n,r=t.data,o=t.z,i=t.maxBubbleSize,a=t.minBubbleSize,l=r.map((function(e){return e[o]})),u=Math.min.apply(Math,nk(l)),c=Math.max.apply(Math,nk(l)),s=i||(n=Math.min.apply(Math,nk(Object.values(X(t)))),Math.max(n,5)),f=a||.1*s;if(c===u)return Math.max(f,1);var d=Math.PI*Math.pow(s,2),p=Math.PI*Math.pow(f,2),h=(e[o]-u)/(c-u)*d,y=Math.max(h,p),m=Math.sqrt(y/Math.PI);return Math.max(m,1)}(e,t):Math.max(n||0,1)};function ak(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uk(e,t){return uk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uk(e,t)}function ck(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function sk(e){return sk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sk(e)}var fk={width:450,height:300,padding:50,size:3,symbol:"circle"},dk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uk(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=sk(r);if(o){var n=sk(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return ck(this,e)});function a(){return ak(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=pk.animationWhitelist,t=pk.role,n=se(this.props,fk,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&lk(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);dk.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],dk.displayName="VictoryScatter",dk.role="scatter",dk.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}},dk.defaultProps={containerComponent:j().createElement(_s,null),dataComponent:j().createElement(rx,null),labelComponent:j().createElement($f,null),groupComponent:j().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:sd.grayscale},dk.getDomain=Ia,dk.getData=_a,dk.getBaseProps=function(e){return function(e,t){var n=se(e,t,"scatter"),r=Object.assign({},n,function(e){var t=Z(e,"scatter"),n=J(e.style,t),r={x:ae(e,"x"),y:ae(e,"y")},o={x:Ia(e,"x"),y:Ia(e,"y")},i={x:Yi(e,"x").domain(o.x).range(e.horizontal?r.y:r.x),y:Yi(e,"y").domain(o.y).range(e.horizontal?r.x:r.y)},a=e.polar?e.origin||ie(e):void 0,l=e.bubbleProperty||"z",u=_a(e);return{domain:o,data:u=va(u,o),scale:i,style:n,origin:a,z:l}}(n)),o=r.data,i=r.domain,a=r.events,l=r.height,u=r.origin,c=r.padding,s=r.polar,f=r.scale,d=r.name,p=r.sharedEvents,h=r.standalone,y=r.style,m=r.theme,v=r.width,g=r.labels,b=r.horizontal,x=r.disableInlineStyles,w={parent:{style:y.parent,scale:f,domain:i,data:o,height:l,width:v,standalone:h,theme:m,origin:u,polar:s,padding:c,name:d,horizontal:b}};return o.reduce((function(e,t,n){var i=le(t.eventKey)?n:t.eventKey,l=Y(r,t),c={x:l.x,y:l.y,datum:t,data:o,index:n,scale:f,polar:s,origin:u,horizontal:b,size:ik(t,r),symbol:ok(t,r),style:x?{}:y.data,disableInlineStyles:x};return e[i]={data:c},(null!=Ga(r,t,n)||g&&(a||p))&&(e[i].labels=Ja(r,n)),e}),w)}(e,fk)},dk.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var pk=mh(dk);function hk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yk(Object(n),!0).forEach((function(t){vk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gk={width:450,height:300,padding:50};function bk(e,t){var n=Ng(e,t).map((function(e){return e.filter((function(e){return null!==e._x&&null!==e._y}))})),r=function(e,t){var n=e.fillInMissingData,r=t.reduce((function(e,t){return t.forEach((function(t){e[t._x instanceof Date?t._x.getTime():t._x]=!0})),e}),{}),o=Object.keys(r).map((function(e){return Number(e)})),i=z()(o);return t.map((function(e){var t=0,r=e[0]&&e[0]._x instanceof Date,o=i.map((function(o,i){var a=Number(o),l=e[i-t];if(l){if((r?l._x.getTime():l._x)===a)return l;t++;var u=n?0:null;return{x:a=r?new Date(a):a,y:u,_x:a,_y:u}}var c=n?0:null;return{x:a=r?new Date(a):a,y:c,_x:a,_y:c}}));return o}))}(e,n);return r.map((function(t,n){return function(e,t,n){var r=e.xOffset||0;return t[n].map((function(e){var o=function(e,t,n){if(e.y0)return e.y0;var r=e._y,o=e._group,i=n[0].map((function(e){return e.y0})),a=n.slice(0,t).reduce((function(t,n){return t.concat(n.filter((function(t){return e._x instanceof Date?t._x.getTime()===e._x.getTime():t._x===e._x})).map((function(e){return e._y||0})))}),[]),l=a.length&&a.reduce((function(e,t){return r<0&&t<0||r>=0&&t>=0?Number(t)+e:e}),i[o]||0);return a.some((function(e){return e instanceof Date}))?new Date(l):l}(e,n,t)||0;return Object.assign({},e,{_y0:e._y instanceof Date?o?new Date(o):e._y:o,_y1:null===e._y?null:e._y instanceof Date?new Date(Number(e._y)+Number(o)):e._y+o,_x1:null===e._x?null:e._x instanceof Date?new Date(Number(e._x)+Number(r)):e._x+r})}))}(e,r,n)}))}function xk(e,t){var n=t||j().Children.toArray(e.children),r="stack",o=se(e,gk,r),i=Hg(o.theme,o.style,r),a=o.categories||Xg(o,n),l=o.datasets||bk(o,n),u=n.map((function(e,t){return j().cloneElement(e,{data:l[t]})})),c={x:Bg(Object.assign({},o,{categories:a}),"x",u),y:Bg(Object.assign({},o,{categories:a}),"y",u)},s=o.range||{x:ae(o,"x"),y:ae(o,"y")},f={x:Qi(o,"x")||Ug(o,"x"),y:Qi(o,"y")||Ug(o,"y")},d={x:f.x.domain(c.x).range(o.horizontal?s.y:s.x),y:f.y.domain(c.y).range(o.horizontal?s.x:s.y)},p=o.colorScale,h=o.horizontal;return{datasets:l,categories:a,range:s,domain:c,horizontal:h,scale:d,style:i,colorScale:p,role:r}}function wk(e){var t,n,r=function(e){var t=e.children,n=j().Children.toArray(t).map((function(e){var t=e;return mk(mk({},t),{},{props:K(t.props,["sharedEvents"])})}));return e.children=n,e}(e),o=(t=j().useState(r),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return hk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hk(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return j().useEffect((function(){Nd()(r,i)||a(r)}),[i,a,r]),j().useMemo((function(){return xk(i,i.children)}),[i])}function Ok(e,t){var n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if("group"===n||"stack"===n)return e.theme?r||e.theme.props.colorScale:r}function _k(e,t,n){var r=se(e,gk,"stack"),o=t||j().Children.toArray(r.children),i=n||xk(r,o),a=i.datasets,l=function(e,t){var n=t.categories,r=t.domain,o=t.range,i=t.scale,a=t.horizontal;return{height:e.height,width:e.width,padding:X(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:o,scale:i,horizontal:a}}(r,i),u=r.name||"stack";return o.map((function(e,t){var n=e.type&&e.type.role,o=a[t],c=qg(e,t,i),s=r.labels?function(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}(r,a,t):e.props.labels,f=e.props.name||"".concat(u,"-").concat(n,"-").concat(t);return j().cloneElement(e,Object.assign({key:"".concat(f,"-key-").concat(t),labels:s,name:f,domainPadding:e.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||e.props.labelComponent,style:c,colorScale:Ok(r,e),data:o,polar:r.polar},l))}))}function kk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kk(Object(n),!0).forEach((function(t){jk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ek={width:450,height:300,padding:50},Pk={containerComponent:j().createElement(_s,null),groupComponent:j().createElement("g",null),standalone:!0,theme:sd.grayscale,fillInMissingData:!0},Ck=function(e){var t=Ak.role,n=j().useMemo((function(){return Sk(Sk({},Pk),e)}),[e]),r=jg(),o=r.setAnimationState,i=r.getAnimationProps,a=(0,r.getProps)(n),l=se(a,Ek,t),u=l.eventKey,c=l.containerComponent,s=l.standalone,f=l.groupComponent,d=l.externalEventMutations,p=l.width,h=l.height,y=l.theme,m=l.polar,v=l.horizontal,g=l.name,b=j().Children.toArray(l.children),x=wk(l),w=x.domain,O=x.scale,_=x.style,k=j().useMemo((function(){return _k(a,b,x).map((function(e,t){var n=Object.assign({animate:i(a,e,t)},e.props);return j().cloneElement(e,n)})).reverse()}),[a,b,x,i]),S=j().useMemo((function(){return s?{domain:w,scale:O,width:p,height:h,standalone:s,theme:y,style:_.parent,horizontal:v,polar:m,name:g}:{}}),[s,w,O,p,h,y,_,v,m,g]),E=j().useMemo((function(){return Jc(n)}),[n]),P=j().useMemo((function(){if(s){var e=$()({},c.props,S,E);return j().cloneElement(c,e)}return j().cloneElement(f,E)}),[f,s,c,S,E]),C=j().useMemo((function(){return Wg(a)}),[a]),M=Qg(n);return j().useEffect((function(){return function(){n.animate&&o(M,n)}}),[o,M,n]),L()(C)?j().cloneElement(P,P.props,k):j().createElement(cb,{container:P,eventKey:u,events:C,externalEventMutations:d},k)},Mk={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:_k},Ak=Object.assign(j().memo(Ck,Nd()),Mk);function Dk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dk(Object(n),!0).forEach((function(t){Lk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Lk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Ak.displayName="VictoryStack";var Nk={pathComponent:j().createElement($c,null),circleComponent:j().createElement(As,null),clipPathComponent:j().createElement(js,null),groupComponent:j().createElement("g",null),role:"presentation",shapeRendering:"auto"},zk=function(e){var t=function(e){var t=ee(e.ariaLabel,e),n=ee(e.id,e),r=ee(e.size,e),o=te(e.style,e),i=ee(e.tabIndex,e);return Object.assign({},e,{ariaLabel:t,id:n,size:r,style:o,tabIndex:i})}(Tk(Tk({},Nk),e)),n=t.ariaLabel,r=t.role,o=t.shapeRendering,i=t.className,a=t.events,l=t.transform,u=t.style,c=t.size,s=t.tabIndex,f=function(e){var t,n=e.polygon;return Array.isArray(n)&&n.length?"M ".concat(null===(t=e.polygon)||void 0===t?void 0:t.join("L")," Z"):""}(t),d=Tk({"aria-label":n,className:i,role:r,shapeRendering:o,style:u,tabIndex:s,transform:l},a),p=Jc(t);if(c){var h=j().cloneElement(t.circleComponent,Tk(Tk({},d),{},{key:"".concat(t.id,"-circle-clip"),clipPath:"url(#".concat(t.clipId,")"),cx:t.x,cy:t.y,r:c})),y=j().cloneElement(t.clipPathComponent,{key:"".concat(t.id,"-voronoi-clip"),clipId:t.clipId},j().cloneElement(t.pathComponent,{d:f,className:i}));return j().cloneElement(t.groupComponent,{},[y,h])}return j().cloneElement(t.pathComponent,Tk(Tk(Tk({},d),p),{},{d:f}))};function Ik(e){return function(){return e}}function Rk(e){return e[0]}function Fk(e){return e[1]}function Bk(){this._=null}function Uk(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Wk(e,t){var n=t,r=t.R,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Vk(e,t){var n=t,r=t.L,o=n.U;o?o.L===n?o.L=r:o.R=r:e._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Hk(e){for(;e.L;)e=e.L;return e}Bk.prototype={constructor:Bk,insert:function(e,t){var n,r,o;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Hk(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(o=r.R)&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.R&&(Wk(this,n),n=(e=n).U),n.C=!1,r.C=!0,Vk(this,r)):(o=r.L)&&o.C?(n.C=o.C=!1,r.C=!0,e=r):(e===n.L&&(Vk(this,n),n=(e=n).U),n.C=!1,r.C=!0,Wk(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,o=e.U,i=e.L,a=e.R;if(n=i?a?Hk(a):i:a,o?o.L===e?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=e.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=a,a.U=n):(n.U=o,o=n,e=n.R)):(r=e.C,e=n),e&&(e.U=o),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===o.L){if((t=o.R).C&&(t.C=!1,o.C=!0,Wk(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Vk(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,Wk(this,o),e=this._;break}}else if((t=o.L).C&&(t.C=!1,o.C=!0,Vk(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Wk(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,Vk(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}};const qk=Bk;function $k(e,t,n,r){var o=[null,null],i=mS.push(o)-1;return o.left=e,o.right=t,n&&Gk(o,e,t,n),r&&Gk(o,t,e,r),hS[e.index].halfedges.push(i),hS[t.index].halfedges.push(i),o}function Kk(e,t,n){var r=[t,n];return r.left=e,r}function Gk(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function Yk(e,t,n,r,o){var i,a=e[0],l=e[1],u=a[0],c=a[1],s=0,f=1,d=l[0]-u,p=l[1]-c;if(i=t-u,d||!(i>0)){if(i/=d,d<0){if(i<s)return;i<f&&(f=i)}else if(d>0){if(i>f)return;i>s&&(s=i)}if(i=r-u,d||!(i<0)){if(i/=d,d<0){if(i>f)return;i>s&&(s=i)}else if(d>0){if(i<s)return;i<f&&(f=i)}if(i=n-c,p||!(i>0)){if(i/=p,p<0){if(i<s)return;i<f&&(f=i)}else if(p>0){if(i>f)return;i>s&&(s=i)}if(i=o-c,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>s&&(s=i)}else if(p>0){if(i<s)return;i<f&&(f=i)}return!(s>0||f<1)||(s>0&&(e[0]=[u+s*d,c+s*p]),f<1&&(e[1]=[u+f*d,c+f*p]),!0)}}}}}function Xk(e,t,n,r,o){var i=e[1];if(i)return!0;var a,l,u=e[0],c=e.left,s=e.right,f=c[0],d=c[1],p=s[0],h=s[1],y=(f+p)/2,m=(d+h)/2;if(h===d){if(y<t||y>=r)return;if(f>p){if(u){if(u[1]>=o)return}else u=[y,n];i=[y,o]}else{if(u){if(u[1]<n)return}else u=[y,o];i=[y,n]}}else if(l=m-(a=(f-p)/(h-d))*y,a<-1||a>1)if(f>p){if(u){if(u[1]>=o)return}else u=[(n-l)/a,n];i=[(o-l)/a,o]}else{if(u){if(u[1]<n)return}else u=[(o-l)/a,o];i=[(n-l)/a,n]}else if(d<h){if(u){if(u[0]>=r)return}else u=[t,a*t+l];i=[r,a*r+l]}else{if(u){if(u[0]<t)return}else u=[r,a*r+l];i=[t,a*t+l]}return e[0]=u,e[1]=i,!0}function Qk(e,t){var n=e.site,r=t.left,o=t.right;return n===o&&(o=r,r=n),o?Math.atan2(o[1]-r[1],o[0]-r[0]):(n===r?(r=t[1],o=t[0]):(r=t[0],o=t[1]),Math.atan2(r[0]-o[0],o[1]-r[1]))}function Zk(e,t){return t[+(t.left!==e.site)]}function Jk(e,t){return t[+(t.left===e.site)]}var eS,tS=[];function nS(){Uk(this),this.x=this.y=this.arc=this.site=this.cy=null}function rS(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,o=e.site,i=n.site;if(r!==i){var a=o[0],l=o[1],u=r[0]-a,c=r[1]-l,s=i[0]-a,f=i[1]-l,d=2*(u*f-c*s);if(!(d>=-gS)){var p=u*u+c*c,h=s*s+f*f,y=(f*p-c*h)/d,m=(u*h-s*p)/d,v=tS.pop()||new nS;v.arc=e,v.site=o,v.x=y+a,v.y=(v.cy=m+l)+Math.sqrt(y*y+m*m),e.circle=v;for(var g=null,b=yS._;b;)if(v.y<b.y||v.y===b.y&&v.x<=b.x){if(!b.L){g=b.P;break}b=b.L}else{if(!b.R){g=b;break}b=b.R}yS.insert(g,v),g||(eS=v)}}}}function oS(e){var t=e.circle;t&&(t.P||(eS=t.N),yS.remove(t),tS.push(t),Uk(t),e.circle=null)}var iS=[];function aS(){Uk(this),this.edge=this.site=this.circle=null}function lS(e){var t=iS.pop()||new aS;return t.site=e,t}function uS(e){oS(e),pS.remove(e),iS.push(e),Uk(e)}function cS(e){var t=e.circle,n=t.x,r=t.cy,o=[n,r],i=e.P,a=e.N,l=[e];uS(e);for(var u=i;u.circle&&Math.abs(n-u.circle.x)<vS&&Math.abs(r-u.circle.cy)<vS;)i=u.P,l.unshift(u),uS(u),u=i;l.unshift(u),oS(u);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<vS&&Math.abs(r-c.circle.cy)<vS;)a=c.N,l.push(c),uS(c),c=a;l.push(c),oS(c);var s,f=l.length;for(s=1;s<f;++s)c=l[s],u=l[s-1],Gk(c.edge,u.site,c.site,o);u=l[0],(c=l[f-1]).edge=$k(u.site,c.site,null,o),rS(u),rS(c)}function sS(e){for(var t,n,r,o,i=e[0],a=e[1],l=pS._;l;)if((r=fS(l,a)-i)>vS)l=l.L;else{if(!((o=i-dS(l,a))>vS)){r>-vS?(t=l.P,n=l):o>-vS?(t=l,n=l.N):t=n=l;break}if(!l.R){t=l;break}l=l.R}!function(e){hS[e.index]={site:e,halfedges:[]}}(e);var u=lS(e);if(pS.insert(t,u),t||n){if(t===n)return oS(t),n=lS(t.site),pS.insert(u,n),u.edge=n.edge=$k(t.site,u.site),rS(t),void rS(n);if(n){oS(t),oS(n);var c=t.site,s=c[0],f=c[1],d=e[0]-s,p=e[1]-f,h=n.site,y=h[0]-s,m=h[1]-f,v=2*(d*m-p*y),g=d*d+p*p,b=y*y+m*m,x=[(m*g-p*b)/v+s,(d*b-y*g)/v+f];Gk(n.edge,c,h,x),u.edge=$k(c,e,null,x),n.edge=$k(e,h,null,x),rS(t),rS(n)}else u.edge=$k(t.site,u.site)}}function fS(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var l=(n=a.site)[0],u=n[1],c=u-t;if(!c)return l;var s=l-r,f=1/i-1/c,d=s/c;return f?(-d+Math.sqrt(d*d-2*f*(s*s/(-2*c)-u+c/2+o-i/2)))/f+r:(r+l)/2}function dS(e,t){var n=e.N;if(n)return fS(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var pS,hS,yS,mS,vS=1e-6,gS=1e-12;function bS(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function xS(e,t){return t[1]-e[1]||t[0]-e[0]}function wS(e,t){var n,r,o,i=e.sort(xS).pop();for(mS=[],hS=new Array(e.length),pS=new qk,yS=new qk;;)if(o=eS,i&&(!o||i[1]<o.y||i[1]===o.y&&i[0]<o.x))i[0]===n&&i[1]===r||(sS(i),n=i[0],r=i[1]),i=e.pop();else{if(!o)break;cS(o.arc)}if(function(){for(var e,t,n,r,o=0,i=hS.length;o<i;++o)if((e=hS[o])&&(r=(t=e.halfedges).length)){var a=new Array(r),l=new Array(r);for(n=0;n<r;++n)a[n]=n,l[n]=Qk(e,mS[t[n]]);for(a.sort((function(e,t){return l[t]-l[e]})),n=0;n<r;++n)l[n]=t[a[n]];for(n=0;n<r;++n)t[n]=l[n]}}(),t){var a=+t[0][0],l=+t[0][1],u=+t[1][0],c=+t[1][1];!function(e,t,n,r){for(var o,i=mS.length;i--;)Xk(o=mS[i],e,t,n,r)&&Yk(o,e,t,n,r)&&(Math.abs(o[0][0]-o[1][0])>vS||Math.abs(o[0][1]-o[1][1])>vS)||delete mS[i]}(a,l,u,c),function(e,t,n,r){var o,i,a,l,u,c,s,f,d,p,h,y,m=hS.length,v=!0;for(o=0;o<m;++o)if(i=hS[o]){for(a=i.site,l=(u=i.halfedges).length;l--;)mS[u[l]]||u.splice(l,1);for(l=0,c=u.length;l<c;)h=(p=Jk(i,mS[u[l]]))[0],y=p[1],f=(s=Zk(i,mS[u[++l%c]]))[0],d=s[1],(Math.abs(h-f)>vS||Math.abs(y-d)>vS)&&(u.splice(l,0,mS.push(Kk(a,p,Math.abs(h-e)<vS&&r-y>vS?[e,Math.abs(f-e)<vS?d:r]:Math.abs(y-r)<vS&&n-h>vS?[Math.abs(d-r)<vS?f:n,r]:Math.abs(h-n)<vS&&y-t>vS?[n,Math.abs(f-n)<vS?d:t]:Math.abs(y-t)<vS&&h-e>vS?[Math.abs(d-t)<vS?f:e,t]:null))-1),++c);c&&(v=!1)}if(v){var g,b,x,w=1/0;for(o=0,v=null;o<m;++o)(i=hS[o])&&(x=(g=(a=i.site)[0]-e)*g+(b=a[1]-t)*b)<w&&(w=x,v=i);if(v){var O=[e,t],_=[e,r],k=[n,r],S=[n,t];v.halfedges.push(mS.push(Kk(a=v.site,O,_))-1,mS.push(Kk(a,_,k))-1,mS.push(Kk(a,k,S))-1,mS.push(Kk(a,S,O))-1)}}for(o=0;o<m;++o)(i=hS[o])&&(i.halfedges.length||delete hS[o])}(a,l,u,c)}this.edges=mS,this.cells=hS,pS=yS=mS=hS=null}function OS(e){return function(e){if(Array.isArray(e))return _S(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return _S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_S(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}wS.prototype={constructor:wS,polygons:function(){var e=this.edges;return this.cells.map((function(t){var n=t.halfedges.map((function(n){return Zk(t,e[n])}));return n.data=t.site.data,n}))},triangles:function(){var e=[],t=this.edges;return this.cells.forEach((function(n,r){if(i=(o=n.halfedges).length)for(var o,i,a,l=n.site,u=-1,c=t[o[i-1]],s=c.left===l?c.right:c.left;++u<i;)a=s,s=(c=t[o[u]]).left===l?c.right:c.left,a&&s&&r<a.index&&r<s.index&&bS(l,a,s)<0&&e.push([l.data,a.data,s.data])})),e},links:function(){return this.edges.filter((function(e){return e.right})).map((function(e){return{source:e.left.data,target:e.right.data}}))},find:function(e,t,n){for(var r,o,i=this,a=i._found||0,l=i.cells.length;!(o=i.cells[a]);)if(++a>=l)return null;var u=e-o.site[0],c=t-o.site[1],s=u*u+c*c;do{o=i.cells[r=a],a=null,o.halfedges.forEach((function(n){var r=i.edges[n],l=r.left;if(l!==o.site&&l||(l=r.right)){var u=e-l[0],c=t-l[1],f=u*u+c*c;f<s&&(s=f,a=l.index)}}))}while(null!==a);return i._found=r,null==n||s<=n*n?o.site:null}};var kS=function(e,t,n){var r=[Math.min.apply(Math,OS(t.x)),Math.min.apply(Math,OS(t.y))],o=[Math.max.apply(Math,OS(t.x)),Math.max.apply(Math,OS(t.y))];return function(){var e=Rk,t=Fk,n=null;function r(r){return new wS(r.map((function(n,o){var i=[Math.round(e(n,o,r)/vS)*vS,Math.round(t(n,o,r)/vS)*vS];return i.index=o,i.data=n,i})),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:Ik(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:Ik(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}().x((function(t){return e.polar?function(e){return-1*n.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}(t):function(t){return e.horizontal?n.y(void 0!==t._y1?t._y1:t._y):n.x(void 0!==t._x1?t._x1:t._x)}(t)})).y((function(t){return function(t){return e.horizontal?n.x(void 0!==t._x1?t._x1:t._x):n.y(void 0!==t._y1?t._y1:t._y)}(t)})).extent([r,o])};function SS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ES(e,t){return ES=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ES(e,t)}function PS(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function CS(e){return CS=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CS(e)}var MS={width:450,height:300,padding:50},AS=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ES(e,t)}(a,e);var t,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=CS(r);if(o){var n=CS(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return PS(this,e)});function a(){return SS(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var e=DS.animationWhitelist,t=DS.role,n=se(this.props,MS,t);if(this.shouldAnimate())return this.animateComponent(n,e);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return es(o,n)}}])&&jS(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(j().Component);AS.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],AS.displayName="VictoryVoronoi",AS.role="voronoi",AS.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}},AS.defaultProps={containerComponent:j().createElement(_s,null),dataComponent:j().createElement(zk,null),labelComponent:j().createElement($f,null),groupComponent:j().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:sd.grayscale},AS.getDomain=Ia,AS.getData=_a,AS.getBaseProps=function(e){return function(e,t){var n=se(e,t,"scatter"),r=Object.assign({},n,function(e){var t=e.theme&&e.theme.voronoi&&e.theme.voronoi.style?e.theme.voronoi.style:{},n=J(e.style,t),r={x:ae(e,"x"),y:ae(e,"y")},o={x:Ia(e,"x"),y:Ia(e,"y")},i={x:Yi(e,"x").domain(o.x).range(e.horizontal?r.y:r.x),y:Yi(e,"y").domain(o.y).range(e.horizontal?r.x:r.y)},a=_a(e);return{domain:o,data:a=(a=va(a,o)).filter((function(e){return null!==e._x&&null!==e._y})),scale:i,style:n,polygons:kS(e,r,i).polygons(a),origin:e.polar?e.origin||ie(e):void 0}}(n)),o=r.data,i=r.domain,a=r.events,l=r.height,u=r.origin,c=r.padding,s=r.polar,f=r.polygons,d=r.scale,p=r.sharedEvents,h=r.standalone,y=r.style,m=r.theme,v=r.width,g=r.labels,b=r.name,x={parent:{style:y.parent,scale:d,domain:i,data:o,standalone:h,height:l,width:v,theme:m,origin:u,polar:s,padding:c,name:b}};return o.reduce((function(e,t,n){var i,l=null===(i=f[n])||void 0===i?void 0:i.filter((function(e){return"data"!==e})),c=le(t.eventKey)?n:t.eventKey,s=Y(r,t),h={x:s.x,y:s.y,datum:t,data:o,index:n,scale:d,polygon:l,origin:u,size:r.size,style:y.data};return e[c]={data:h},(null!=Ga(r,t,n)||g&&(a||p))&&(e[c].labels=Ja(r,n)),e}),x)}(e,MS)},AS.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var DS=mh(AS)})(),o})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Victory=e(require("react")):t.Victory=e(t.React)}(self,(t=>(()=>{var e={3644:function(t){t.exports=function(){"use strict";var t=Math.pow(2,-52),e=new Uint32Array(512),n=function(t){var e=t.length>>1;if(e>0&&"number"!=typeof t[0])throw new Error("Expected coords to contain numbers.");this.coords=t;var n=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*n),this._halfedges=new Int32Array(3*n),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()};function r(t,e,n,r){var o=t-n,i=e-r;return o*o+i*i}function o(t,e,n,r,o,i){var a=(r-e)*(o-t),u=(n-t)*(i-e);return Math.abs(a-u)>=33306690738754716e-32*Math.abs(a+u)?a-u:0}function i(t,e,n,r,i,a){return(o(i,a,t,e,n,r)||o(t,e,n,r,i,a)||o(n,r,i,a,t,e))<0}function a(t,e,n,r,o,i){var a=n-t,u=r-e,c=o-t,l=i-e,s=a*a+u*u,f=c*c+l*l,p=.5/(a*l-u*c),h=(l*s-u*f)*p,d=(a*f-c*s)*p;return h*h+d*d}function u(t,e,n,r){if(r-n<=20)for(var o=n+1;o<=r;o++){for(var i=t[o],a=e[i],l=o-1;l>=n&&e[t[l]]>a;)t[l+1]=t[l--];t[l+1]=i}else{var s=n+1,f=r;c(t,n+r>>1,s),e[t[n]]>e[t[r]]&&c(t,n,r),e[t[s]]>e[t[r]]&&c(t,s,r),e[t[n]]>e[t[s]]&&c(t,n,s);for(var p=t[s],h=e[p];;){do{s++}while(e[t[s]]<h);do{f--}while(e[t[f]]>h);if(f<s)break;c(t,s,f)}t[n+1]=t[f],t[f]=p,r-s+1>=f-n?(u(t,e,s,r),u(t,e,n,f-1)):(u(t,e,n,f-1),u(t,e,s,r))}}function c(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function l(t){return t[0]}function s(t){return t[1]}return n.from=function(t,e,r){void 0===e&&(e=l),void 0===r&&(r=s);for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;a++){var u=t[a];i[2*a]=e(u),i[2*a+1]=r(u)}return new n(i)},n.prototype.update=function(){for(var e=this,n=e.coords,o=e._hullPrev,c=e._hullNext,l=e._hullTri,s=e._hullHash,f=n.length>>1,p=1/0,h=1/0,d=-1/0,y=-1/0,v=0;v<f;v++){var m=n[2*v],g=n[2*v+1];m<p&&(p=m),g<h&&(h=g),m>d&&(d=m),g>y&&(y=g),this._ids[v]=v}for(var b,x,O,_=(p+d)/2,w=(h+y)/2,j=1/0,P=0;P<f;P++){var A=r(_,w,n[2*P],n[2*P+1]);A<j&&(b=P,j=A)}var M=n[2*b],E=n[2*b+1];j=1/0;for(var C=0;C<f;C++)if(C!==b){var S=r(M,E,n[2*C],n[2*C+1]);S<j&&S>0&&(x=C,j=S)}for(var k=n[2*x],D=n[2*x+1],T=1/0,R=0;R<f;R++)if(R!==b&&R!==x){var L=a(M,E,k,D,n[2*R],n[2*R+1]);L<T&&(O=R,T=L)}var I=n[2*O],N=n[2*O+1];if(T===1/0){for(var z=0;z<f;z++)this._dists[z]=n[2*z]-n[0]||n[2*z+1]-n[1];u(this._ids,this._dists,0,f-1);for(var B=new Uint32Array(f),W=0,U=0,V=-1/0;U<f;U++){var F=this._ids[U];this._dists[F]>V&&(B[W++]=F,V=this._dists[F])}return this.hull=B.subarray(0,W),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(i(M,E,k,D,I,N)){var H=x,q=k,G=D;x=O,k=I,D=N,O=H,I=q,N=G}var K=function(t,e,n,r,o,i){var a=n-t,u=r-e,c=o-t,l=i-e,s=a*a+u*u,f=c*c+l*l,p=.5/(a*l-u*c);return{x:t+(l*s-u*f)*p,y:e+(a*f-c*s)*p}}(M,E,k,D,I,N);this._cx=K.x,this._cy=K.y;for(var $=0;$<f;$++)this._dists[$]=r(n[2*$],n[2*$+1],K.x,K.y);u(this._ids,this._dists,0,f-1),this._hullStart=b;var Y=3;c[b]=o[O]=x,c[x]=o[b]=O,c[O]=o[x]=b,l[b]=0,l[x]=1,l[O]=2,s.fill(-1),s[this._hashKey(M,E)]=b,s[this._hashKey(k,D)]=x,s[this._hashKey(I,N)]=O,this.trianglesLen=0,this._addTriangle(b,x,O,-1,-1,-1);for(var X=0,Z=void 0,Q=void 0;X<this._ids.length;X++){var J=this._ids[X],tt=n[2*J],et=n[2*J+1];if(!(X>0&&Math.abs(tt-Z)<=t&&Math.abs(et-Q)<=t)&&(Z=tt,Q=et,J!==b&&J!==x&&J!==O)){for(var nt=0,rt=0,ot=this._hashKey(tt,et);rt<this._hashSize&&(-1===(nt=s[(ot+rt)%this._hashSize])||nt===c[nt]);rt++);for(var it=nt=o[nt],at=void 0;at=c[it],!i(tt,et,n[2*it],n[2*it+1],n[2*at],n[2*at+1]);)if((it=at)===nt){it=-1;break}if(-1!==it){var ut=this._addTriangle(it,J,c[it],-1,-1,l[it]);l[J]=this._legalize(ut+2),l[it]=ut,Y++;for(var ct=c[it];at=c[ct],i(tt,et,n[2*ct],n[2*ct+1],n[2*at],n[2*at+1]);)ut=this._addTriangle(ct,J,at,l[J],-1,l[ct]),l[J]=this._legalize(ut+2),c[ct]=ct,Y--,ct=at;if(it===nt)for(;i(tt,et,n[2*(at=o[it])],n[2*at+1],n[2*it],n[2*it+1]);)ut=this._addTriangle(at,J,it,-1,l[it],l[at]),this._legalize(ut+2),l[at]=ut,c[it]=it,Y--,it=at;this._hullStart=o[J]=it,c[it]=o[ct]=J,c[J]=ct,s[this._hashKey(tt,et)]=J,s[this._hashKey(n[2*it],n[2*it+1])]=it}}}this.hull=new Uint32Array(Y);for(var lt=0,st=this._hullStart;lt<Y;lt++)this.hull[lt]=st,st=c[st];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},n.prototype._hashKey=function(t,e){return Math.floor((n=t-this._cx,r=e-this._cy,o=n/(Math.abs(n)+Math.abs(r)),(r>0?3-o:1+o)/4*this._hashSize))%this._hashSize;var n,r,o},n.prototype._legalize=function(t){for(var n=this,r=n._triangles,o=n._halfedges,i=n.coords,a=0,u=0;;){var c=o[t],l=t-t%3;if(u=l+(t+2)%3,-1!==c){var s=c-c%3,f=l+(t+1)%3,p=s+(c+2)%3,h=r[u],d=r[t],y=r[f],v=r[p];if(x=i[2*h],O=i[2*h+1],_=i[2*d],w=i[2*d+1],j=i[2*y],P=i[2*y+1],A=i[2*v],M=i[2*v+1],E=void 0,C=void 0,S=void 0,k=void 0,D=void 0,T=void 0,R=void 0,L=void 0,(E=x-A)*((k=w-M)*(L=(D=j-A)*D+(T=P-M)*T)-(R=(S=_-A)*S+k*k)*T)-(C=O-M)*(S*L-R*D)+(E*E+C*C)*(S*T-k*D)<0){r[t]=v,r[c]=h;var m=o[p];if(-1===m){var g=this._hullStart;do{if(this._hullTri[g]===p){this._hullTri[g]=t;break}g=this._hullPrev[g]}while(g!==this._hullStart)}this._link(t,m),this._link(c,o[u]),this._link(u,p);var b=s+(c+1)%3;a<e.length&&(e[a++]=b)}else{if(0===a)break;t=e[--a]}}else{if(0===a)break;t=e[--a]}}var x,O,_,w,j,P,A,M,E,C,S,k,D,T,R,L;return u},n.prototype._link=function(t,e){this._halfedges[t]=e,-1!==e&&(this._halfedges[e]=t)},n.prototype._addTriangle=function(t,e,n,r,o,i){var a=this.trianglesLen;return this._triangles[a]=t,this._triangles[a+1]=e,this._triangles[a+2]=n,this._link(a,r),this._link(a+1,o),this._link(a+2,i),this.trianglesLen+=3,a},n}()},6898:(t,e,n)=>{"use strict";e.Z=void 0;var r,o=(r=n(3644))&&r.__esModule?r:{default:r};function i(t){return t[0]}function a(t){return t[1]}function u(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}var c=function(){function t(t){var e=new o.default(t);this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=e.coords,this._init(e)}var e=t.prototype;return e._init=function(t){var e=t,n=this.points;if(e.hull&&e.hull.length>2&&function(t){for(var e=t.triangles,n=t.coords,r=0;r<e.length;r+=3){var o=2*e[r],i=2*e[r+1],a=2*e[r+2];if((n[a]-n[o])*(n[i+1]-n[o+1])-(n[i]-n[o])*(n[a+1]-n[o+1])>1e-10)return!1}return!0}(e)){this.collinear=Int32Array.from({length:n.length/2},(function(t,e){return e})).sort((function(t,e){return n[2*t]-n[2*e]||n[2*t+1]-n[2*e+1]}));for(var r=this.collinear[0],i=this.collinear[this.collinear.length-1],a=[n[2*r],n[2*r+1],n[2*i],n[2*i+1]],c=1e-8*Math.sqrt(Math.pow(a[3]-a[1],2)+Math.pow(a[2]-a[0],2)),l=0,s=n.length/2;l<s;++l){var f=u(n[2*l],n[2*l+1],c);n[2*l]=f[0],n[2*l+1]=f[1]}t=new o.default(n)}for(var p=this.halfedges=t.halfedges,h=this.hull=t.hull,d=this.triangles=t.triangles,y=this.inedges.fill(-1),v=this._hullIndex.fill(-1),m=0,g=p.length;m<g;++m){var b=d[m%3==2?m-2:m+1];-1!==p[m]&&-1!==y[b]||(y[b]=m)}for(var x=0,O=h.length;x<O;++x)v[h[x]]=x;h.length<=2&&h.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=h[0],this.triangles[1]=h[1],this.triangles[2]=h[1],y[h[0]]=1,2===h.length&&(y[h[1]]=0))},e.neighbors=function(t){var e=[],n=this.inedges,r=this.hull,o=this._hullIndex,i=this.halfedges,a=this.triangles,u=n[t];if(-1===u)return e;var c=u,l=-1;do{if(l=a[c],e.push(l),a[c=c%3==2?c-2:c+1]!==t)break;if(-1===(c=i[c])){var s=r[(o[t]+1)%r.length];s!==l&&e.push(s);break}}while(c!==u);return e},e.find=function(t,e,n){if(void 0===n&&(n=0),(t=+t)!=t||(e=+e)!=e)return-1;for(var r,o=n;(r=this._step(n,t,e))>=0&&r!==n&&r!==o;)n=r;return r},e._step=function(t,e,n){var r=this.inedges,o=this.points;if(-1===r[t]||!o.length)return(t+1)%(o.length>>1);var i=t,a=Math.pow(e-o[2*t],2)+Math.pow(n-o[2*t+1],2),u=this.neighbors(t),c=Array.isArray(u),l=0;for(u=c?u:u[Symbol.iterator]();;){var s;if(c){if(l>=u.length)break;s=u[l++]}else{if((l=u.next()).done)break;s=l.value}var f=s,p=Math.pow(e-o[2*f],2)+Math.pow(n-o[2*f+1],2);p<a&&(a=p,i=f)}return i},t}();e.Z=c,c.from=function(t,e,n,r){return void 0===e&&(e=i),void 0===n&&(n=a),new c(function(t,e,n,r){for(var o=t.length,i=new Float64Array(2*o),a=0;a<o;++a){var u=t[a];i[2*a]=e.call(r,u,a,t),i[2*a+1]=n.call(r,u,a,t)}return i}(t,e,n,r))}},2516:(t,e)=>{function n(t,e){var n=[],r=[];return null==e&&(e=function(t,e){return n[0]===e?"[Circular ~]":"[Circular ~."+r.slice(0,n.indexOf(e)).join(".")+"]"}),function(o,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?r.splice(a,1/0,o):r.push(o),~n.indexOf(i)&&(i=e.call(this,o,i))}else n.push(i);return null==t?i:t.call(this,o,i)}}(t.exports=function(t,e,r,o){return JSON.stringify(t,n(e,o),r)}).getSerialize=n},1179:t=>{t.exports=function(){}},503:(t,e,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),u=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},3273:(t,e,n)=>{var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:(t,e,n)=>{var r=n(1171),o=n(7838),i=n(4859),a=n(4073),u=n(8541);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,t.exports=c},2596:(t,e,n)=>{var r=n(2373).Symbol;t.exports=r},6082:t=>{t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},6649:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},5510:(t,e,n)=>{var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9955:t=>{t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r<o;)if(n(e,t[r]))return!0;return!1}},8644:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},9559:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},1634:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4132:(t,e,n)=>{var r=n(8347),o=n(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:(t,e,n)=>{var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},4508:t=>{t.exports=function(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];e(r,a,n(a),t)}return r}},8347:(t,e,n)=>{var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},7451:t=>{t.exports=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function");return setTimeout((function(){t.apply(void 0,n)}),e)}},6457:(t,e,n)=>{var r=n(9559),o=n(3608);t.exports=function t(e,n,i,a,u){var c=-1,l=e.length;for(i||(i=o),u||(u=[]);++c<l;){var s=e[c];n>0&&i(s)?n>1?t(s,n-1,i,a,u):r(u,s):a||(u[u.length]=s)}return u}},320:(t,e,n)=>{var r=n(4710)();t.exports=r},2446:(t,e,n)=>{var r=n(320),o=n(7747);t.exports=function(t,e){return t&&r(t,e,o)}},4432:(t,e,n)=>{var r=n(9026),o=n(3110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?t:void 0}},563:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:t=>{t.exports=function(t,e,n){for(var r=n-1,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},7537:(t,e,n)=>{var r=n(563),o=n(3474);t.exports=function(t){return o(t)&&"[object Date]"==r(t)}},9070:(t,e,n)=>{var r=n(7028),o=n(3474);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,u))}},7028:(t,e,n)=>{var r=n(8708),o=n(8705),i=n(2813),a=n(6682),u=n(9667),c=n(163),l=n(4801),s=n(4289),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,v,m){var g=c(t),b=c(e),x=g?p:u(t),O=b?p:u(e),_=(x=x==f?h:x)==h,w=(O=O==f?h:O)==h,j=x==O;if(j&&l(t)){if(!l(e))return!1;g=!0,_=!1}if(j&&!_)return m||(m=new r),g||s(t)?o(t,e,n,y,v,m):i(t,e,x,n,y,v,m);if(!(1&n)){var P=_&&d.call(t,"__wrapped__"),A=w&&d.call(e,"__wrapped__");if(P||A){var M=P?t.value():t,E=A?e.value():e;return m||(m=new r),v(M,E,n,y,m)}}return!!j&&(m||(m=new r),a(t,e,n,y,v,m))}},9548:(t,e,n)=>{var r=n(8708),o=n(9070);t.exports=function(t,e,n,i){var a=n.length,u=a,c=!i;if(null==t)return!u;for(t=Object(t);a--;){var l=n[a];if(c&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++a<u;){var s=(l=n[a])[0],f=t[s],p=l[1];if(c&&l[2]){if(void 0===f&&!(s in t))return!1}else{var h=new r;if(i)var d=i(f,p,s,t,e,h);if(!(void 0===d?o(p,f,3,i,h):d))return!1}}return!0}},2229:(t,e,n)=>{var r=n(563),o=n(3474);t.exports=function(t){return o(t)&&"[object RegExp]"==r(t)}},3472:(t,e,n)=>{var r=n(758),o=n(5223),i=n(5346),a=n(163),u=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):r(t):u(t)}},7190:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},383:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},758:(t,e,n)=>{var r=n(9548),o=n(597),i=n(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:(t,e,n)=>{var r=n(9070),o=n(9201),i=n(5066),a=n(726),u=n(5385),c=n(6878),l=n(3110);t.exports=function(t,e){return a(t)&&u(e)?c(l(t),e):function(n){var a=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},8245:(t,e,n)=>{var r=n(8644),o=n(4432),i=n(3472),a=n(383),u=n(9521),c=n(9110),l=n(9409),s=n(5346),f=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return f(t)?function(e){return o(e,1===t.length?t[0]:t)}:t})):[s];var p=-1;e=r(e,c(i));var h=a(t,(function(t,n,o){return{criteria:r(e,(function(e){return e(t)})),index:++p,value:t}}));return u(h,(function(t,e){return l(t,e,n)}))}},5436:(t,e,n)=>{var r=n(6371),o=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},6371:(t,e,n)=>{var r=n(4432),o=n(6539),i=n(9026);t.exports=function(t,e,n){for(var a=-1,u=e.length,c={};++a<u;){var l=e[a],s=r(t,l);n(s,l)&&o(c,i(l,t),s)}return c}},1600:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:(t,e,n)=>{var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},7805:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,r,o,i){for(var a=-1,u=n(e((r-t)/(o||1)),0),c=Array(u);u--;)c[i?u:++a]=t,t+=o;return c}},6317:(t,e,n)=>{var r=n(5346),o=n(4280),i=n(201);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6539:(t,e,n)=>{var r=n(4132),o=n(9026),i=n(9099),a=n(7709),u=n(3110);t.exports=function(t,e,n,c){if(!a(t))return t;for(var l=-1,s=(e=o(e,t)).length,f=s-1,p=t;null!=p&&++l<s;){var h=u(e[l]),d=n;if("__proto__"===h||"constructor"===h||"prototype"===h)return t;if(l!=f){var y=p[h];void 0===(d=c?c(y,h,p):void 0)&&(d=a(y)?y:i(e[l+1])?[]:{})}r(p,h,d),p=p[h]}return t}},9521:t=>{t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},7556:(t,e,n)=>{var r=n(788);t.exports=function(t,e){for(var n=-1,o=t.length,i=0,a=[];++n<o;){var u=t[n],c=e?e(u):u;if(!n||!r(c,l)){var l=c;a[i++]=0===u?0:u}}return a}},4738:(t,e,n)=>{var r=n(8644);t.exports=function(t,e){return r(e,(function(e){return[e,t[e]]}))}},6316:(t,e,n)=>{var r=n(2596),o=n(8644),i=n(163),a=n(1995),u=r?r.prototype:void 0,c=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},1367:(t,e,n)=>{var r=n(4120),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},9110:t=>{t.exports=function(t){return function(e){return t(e)}}},946:(t,e,n)=>{var r=n(3273),o=n(5510),i=n(9955),a=n(9914),u=n(6602),c=n(6226);t.exports=function(t,e,n){var l=-1,s=o,f=t.length,p=!0,h=[],d=h;if(n)p=!1,s=i;else if(f>=200){var y=e?null:u(t);if(y)return c(y);p=!1,s=a,d=new r}else d=e?[]:h;t:for(;++l<f;){var v=t[l],m=e?e(v):v;if(v=n||0!==v?v:0,p&&m==m){for(var g=d.length;g--;)if(d[g]===m)continue t;e&&d.push(m),h.push(v)}else s(d,m,n)||(d!==h&&d.push(m),h.push(v))}return h}},9914:(t,e,n)=>{var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},674:t=>{t.exports=function(t){return t}},9026:(t,e,n)=>{var r=n(163),o=n(726),i=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},522:(t,e,n)=>{var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=t==t,a=r(t),u=void 0!==e,c=null===e,l=e==e,s=r(e);if(!c&&!s&&!a&&t>e||a&&u&&l&&!c&&!s||o&&u&&l||!n&&l||!i)return 1;if(!o&&!a&&!s&&t<e||s&&n&&i&&!o&&!a||c&&n&&i||!u&&i||!l)return-1}return 0}},9409:(t,e,n)=>{var r=n(522);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,u=i.length,c=n.length;++o<u;){var l=r(i[o],a[o]);if(l)return o>=c?l:l*("desc"==n[o]?-1:1)}return t.index-e.index}},9021:(t,e,n)=>{var r=n(4132),o=n(8347);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var l=e[u],s=i?i(n[l],t[l],l,n,t):void 0;void 0===s&&(s=t[l]),a?o(n,l,s):r(n,l,s)}return n}},5659:(t,e,n)=>{var r=n(6649),o=n(4508),i=n(3472),a=n(163);t.exports=function(t,e){return function(n,u){var c=a(n)?r:o,l=e?e():{};return c(n,t,i(u,2),l)}}},6092:(t,e,n)=>{var r=n(6317),o=n(8286);t.exports=function(t){return r((function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,u&&o(n[0],n[1],u)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var c=n[r];c&&t(e,c,r,a)}return e}))}},4710:t=>{t.exports=function(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),u=a.length;u--;){var c=a[t?u:++o];if(!1===n(i[c],c,i))break}return e}}},2740:(t,e,n)=>{var r=n(1179),o=n(5557),i=n(7356),a=n(9267),u=n(163),c=n(7423);t.exports=function(t){return o((function(e){var n=e.length,o=n,l=r.prototype.thru;for(t&&e.reverse();o--;){var s=e[o];if("function"!=typeof s)throw new TypeError("Expected a function");if(l&&!f&&"wrapper"==a(s))var f=new r([],!0)}for(o=f?o:n;++o<n;){s=e[o];var p=a(s),h="wrapper"==p?i(s):void 0;f=h&&c(h[0])&&424==h[1]&&!h[4].length&&1==h[9]?f[a(h[0])].apply(f,h[3]):1==s.length&&c(s)?f[p]():f.thru(s)}return function(){var t=arguments,r=t[0];if(f&&1==t.length&&u(r))return f.plant(r).value();for(var o=0,i=n?e[o].apply(this,t):r;++o<n;)i=e[o].call(this,i);return i}}))}},2507:(t,e,n)=>{var r=n(7805),o=n(8286),i=n(9139);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?e<n?1:-1:i(a),r(e,n,a,t)}}},6602:t=>{t.exports=function(){}},5976:(t,e,n)=>{var r=n(4738),o=n(9667),i=n(2900),a=n(3757);t.exports=function(t){return function(e){var n=o(e);return"[object Map]"==n?i(e):"[object Set]"==n?a(e):r(e,t(e))}}},5525:(t,e,n)=>{var r=n(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:(t,e,n)=>{var r=n(3273),o=n(1634),i=n(9914);t.exports=function(t,e,n,a,u,c){var l=1&n,s=t.length,f=e.length;if(s!=f&&!(l&&f>s))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++d<s;){var m=t[d],g=e[d];if(a)var b=l?a(g,m,d,e,t,c):a(m,g,d,t,e,c);if(void 0!==b){if(b)continue;y=!1;break}if(v){if(!o(e,(function(t,e){if(!i(v,e)&&(m===t||u(m,t,n,a,c)))return v.push(e)}))){y=!1;break}}else if(m!==g&&!u(m,g,n,a,c)){y=!1;break}}return c.delete(t),c.delete(e),y}},2813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:(t,e,n)=>{var r=n(8143),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var c=1&n,l=r(t),s=l.length;if(s!=r(e).length&&!c)return!1;for(var f=s;f--;){var p=l[f];if(!(c?p in e:o.call(e,p)))return!1}var h=u.get(t),d=u.get(e);if(h&&d)return h==e&&d==t;var y=!0;u.set(t,e),u.set(e,t);for(var v=c;++f<s;){var m=t[p=l[f]],g=e[p];if(i)var b=c?i(g,m,p,e,t,u):i(m,g,p,t,e,u);if(!(void 0===b?m===g||a(m,g,n,i,u):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var x=t.constructor,O=e.constructor;x==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof O&&O instanceof O||(y=!1)}return u.delete(t),u.delete(e),y}},5557:(t,e,n)=>{var r=n(2645),o=n(4280),i=n(201);t.exports=function(t){return i(o(t,void 0,r),t+"")}},2117:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},7271:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},7356:t=>{t.exports=function(){}},9267:t=>{t.exports=function(){return""}},597:(t,e,n)=>{var r=n(5385),o=n(7747);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,a,r(a)]}return e}},3743:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},9817:(t,e,n)=>{var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:(t,e,n)=>{var r=n(9026),o=n(5075),i=n(163),a=n(9099),u=n(8454),c=n(3110);t.exports=function(t,e,n){for(var l=-1,s=(e=r(e,t)).length,f=!1;++l<s;){var p=c(e[l]);if(!(f=null!=t&&n(t,p)))break;t=t[p]}return f||++l!=s?f:!!(s=null==t?0:t.length)&&u(s)&&a(p,s)&&(i(t)||o(t))}},3608:(t,e,n)=>{var r=n(2596),o=n(5075),i=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},9099:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:t=>{t.exports=function(){return!1}},726:(t,e,n)=>{var r=n(163),o=n(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7423:t=>{t.exports=function(){return!1}},5782:t=>{t.exports=function(){return!1}},5385:(t,e,n)=>{var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:t=>{t.exports=function(){this.__data__=[],this.size=0}},7838:(t,e,n)=>{var r=n(3162),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},4859:(t,e,n)=>{var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:(t,e,n)=>{var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:(t,e,n)=>{var r=n(3162);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},2900:t=>{t.exports=function(){return[]}},6878:t=>{t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:t=>{t.exports=function(t){return t}},2348:(t,e,n)=>{t=n.nmd(t);var r=n(2117),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,u=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=u},5125:t=>{t.exports=function(t,e){return function(n){return t(e(n))}}},4280:(t,e,n)=>{var r=n(6082),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,u=o(i.length-e,0),c=Array(u);++a<u;)c[a]=i[e+a];a=-1;for(var l=Array(e+1);++a<e;)l[a]=i[a];return l[e]=n(c),r(t,this,l)}}},2373:(t,e,n)=>{var r=n(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},6226:t=>{t.exports=function(){return[]}},3757:t=>{t.exports=function(){return[]}},201:t=>{t.exports=function(t){return t}},7801:(t,e,n)=>{var r=n(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$1"):n||t)})),e}));t.exports=a},3110:(t,e,n)=>{var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},4120:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},156:(t,e,n)=>{var r=n(4132),o=n(9021),i=n(6092),a=n(981),u=n(5782),c=n(7747),l=Object.prototype.hasOwnProperty,s=i((function(t,e){if(u(e)||a(e))o(e,c(e),t);else for(var n in e)l.call(e,n)&&r(t,n,e[n])}));t.exports=s},5034:(t,e,n)=>{var r=n(7709),o=n(6987),i=n(5812),a=Math.max,u=Math.min;t.exports=function(t,e,n){var c,l,s,f,p,h,d=0,y=!1,v=!1,m=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=c,r=l;return c=l=void 0,d=e,f=t.apply(r,n)}function b(t){return d=t,p=setTimeout(O,e),y?g(t):f}function x(t){var n=t-h;return void 0===h||n>=e||n<0||v&&t-d>=s}function O(){var t=o();if(x(t))return _(t);p=setTimeout(O,function(t){var n=e-(t-h);return v?u(n,s-(t-d)):n}(t))}function _(t){return p=void 0,m&&c?g(t):(c=l=void 0,f)}function w(){var t=o(),n=x(t);if(c=arguments,l=this,h=t,n){if(void 0===p)return b(h);if(v)return clearTimeout(p),p=setTimeout(O,e),g(h)}return void 0===p&&(p=setTimeout(O,e)),f}return e=i(e)||0,r(n)&&(y=!!n.leading,s=(v="maxWait"in n)?a(i(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),w.cancel=function(){void 0!==p&&clearTimeout(p),d=0,c=h=l=p=void 0},w.flush=function(){return void 0===p?f:_(o())},w}},1893:(t,e,n)=>{var r=n(6317),o=n(788),i=n(8286),a=n(8855),u=Object.prototype,c=u.hasOwnProperty,l=r((function(t,e){t=Object(t);var n=-1,r=e.length,l=r>2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(r=1);++n<r;)for(var s=e[n],f=a(s),p=-1,h=f.length;++p<h;){var d=f[p],y=t[d];(void 0===y||o(y,u[d])&&!c.call(t,d))&&(t[d]=s[d])}return t}));t.exports=l},9324:(t,e,n)=>{var r=n(7451),o=n(6317),i=n(5812),a=o((function(t,e,n){return r(t,i(e)||0,n)}));t.exports=a},788:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:(t,e,n)=>{var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9560:(t,e,n)=>{var r=n(2740)();t.exports=r},3105:(t,e,n)=>{var r=n(2446),o=n(674);t.exports=function(t,e){return t&&r(t,o(e))}},7314:t=>{t.exports=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var o=t[e];r[o[0]]=o[1]}return r}},9201:(t,e,n)=>{var r=n(4432);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},9056:(t,e,n)=>{var r=n(8347),o=n(5659),i=Object.prototype.hasOwnProperty,a=o((function(t,e,n){i.call(t,n)?t[n].push(e):r(t,n,[e])}));t.exports=a},5066:(t,e,n)=>{var r=n(6776),o=n(3096);t.exports=function(t,e){return null!=t&&o(t,e,r)}},5346:t=>{t.exports=function(t){return t}},5075:t=>{t.exports=function(){return!1}},163:t=>{var e=Array.isArray;t.exports=e},981:(t,e,n)=>{var r=n(9642),o=n(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:t=>{t.exports=function(){return!1}},4295:(t,e,n)=>{var r=n(7537),o=n(9110),i=n(2348),a=i&&i.isDate,u=a?o(a):r;t.exports=u},4155:(t,e,n)=>{var r=n(7190),o=n(9667),i=n(5075),a=n(163),u=n(981),c=n(4801),l=n(5782),s=n(4289),f=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||s(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(l(t))return!r(t).length;for(var n in t)if(f.call(t,n))return!1;return!0}},8254:(t,e,n)=>{var r=n(9070);t.exports=function(t,e){return r(t,e)}},9642:(t,e,n)=>{var r=n(563),o=n(7709);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3849:(t,e,n)=>{var r=n(563),o=n(9817),i=n(3474),a=Function.prototype,u=Object.prototype,c=a.toString,l=u.hasOwnProperty,s=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==s}},5395:(t,e,n)=>{var r=n(2229),o=n(9110),i=n(2348),a=i&&i.isRegExp,u=a?o(a):r;t.exports=u},1995:t=>{t.exports=function(){return!1}},4289:t=>{t.exports=function(){return!1}},8999:t=>{t.exports=function(t){return void 0===t}},7747:(t,e,n)=>{var r=n(5125)(Object.keys,Object);t.exports=r},8855:t=>{t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:(t,e,n)=>{var r=n(503);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},6051:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},6987:(t,e,n)=>{var r=n(2373);t.exports=function(){return r.Date.now()}},1616:(t,e,n)=>{var r=n(3472),o=n(6051),i=n(4912);t.exports=function(t,e){return i(t,o(r(e)))}},4143:(t,e,n)=>{var r=n(8245),o=n(163);t.exports=function(t,e,n,i){return null==t?[]:(o(e)||(e=null==e?[]:[e]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:(t,e,n)=>{var r=n(5436),o=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},4912:(t,e,n)=>{var r=n(8644),o=n(3472),i=n(6371),a=n(7271);t.exports=function(t,e){if(null==t)return{};var n=r(a(t),(function(t){return[t]}));return e=o(e),i(t,n,(function(t,n){return e(t,n[0])}))}},8532:(t,e,n)=>{var r=n(1600),o=n(3301),i=n(726),a=n(3110);t.exports=function(t){return i(t)?r(a(t)):o(t)}},8825:(t,e,n)=>{var r=n(2507)();t.exports=r},2829:(t,e,n)=>{var r=n(7556);t.exports=function(t){return t&&t.length?r(t):[]}},8163:(t,e,n)=>{var r=n(5034),o=n(7709);t.exports=function(t,e,n){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:i,maxWait:e,trailing:a})}},9139:(t,e,n)=>{var r=n(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:(t,e,n)=>{var r=n(1367),o=n(7709),i=n(1995),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},4542:(t,e,n)=>{var r=n(5976)(n(7747));t.exports=r},7010:(t,e,n)=>{var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},9602:(t,e,n)=>{var r=n(946);t.exports=function(t){return t&&t.length?r(t):[]}},8961:(t,e,n)=>{var r=n(3472),o=n(946);t.exports=function(t,e){return t&&t.length?o(t,r(e,2)):[]}},660:(t,e,n)=>{var r=n(7010),o=0;t.exports=function(t){var e=++o;return r(t)+e}},7491:t=>{var e="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var u,c,l,s;if(Array.isArray(t)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(n&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;for(s=t.entries();!(c=s.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(r&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(s=t.entries();!(c=s.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((u=t.length)!=a.length)return!1;for(c=u;0!=c--;)if(t[c]!==a[c])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((u=(l=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,l[c]))return!1;if(e&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==l[c]&&"__v"!==l[c]&&"__o"!==l[c]||!t.$$typeof)&&!i(t[l[c]],a[l[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},9787:e=>{"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},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=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var o={};return(()=>{"use strict";r.r(o),r.d(o,{Arc:()=>Ob,Area:()=>fs,Axis:()=>x,Background:()=>Pg,Bar:()=>tv,Border:()=>hv,Box:()=>hv,BrushHelpers:()=>tm,Candle:()=>zm,CanvasBar:()=>cg,CanvasCurve:()=>sg,CanvasGroup:()=>lg,CanvasPoint:()=>xg,Circle:()=>rf,ClipPath:()=>Qs,Collection:()=>e,CursorHelpers:()=>TO,Curve:()=>Jw,Data:()=>u,DefaultTransitions:()=>v,Domain:()=>c,ErrorBar:()=>d_,Events:()=>b,Flyout:()=>Ox,Helpers:()=>t,Hooks:()=>j,Immutable:()=>a,LabelHelpers:()=>l,Line:()=>Zd,LineHelpers:()=>f,LineSegment:()=>ny,Log:()=>h,Path:()=>$l,Point:()=>lx,PointPathHelpers:()=>_,Portal:()=>xs,PortalContext:()=>Os,RawZoomHelpers:()=>nO,Rect:()=>lf,Scale:()=>i,Selection:()=>O,SelectionHelpers:()=>bO,Slice:()=>mj,Style:()=>d,TSpan:()=>Rf,Text:()=>Sf,TextSize:()=>y,Timer:()=>Ws,TimerContext:()=>Vs,Transitions:()=>g,UserProps:()=>p,VictoryAccessibleGroup:()=>rx,VictoryAnimation:()=>Mh,VictoryArea:()=>Md,VictoryAxis:()=>Ey,VictoryBar:()=>cv,VictoryBoxPlot:()=>zv,VictoryBrushContainer:()=>pm,VictoryBrushLine:()=>Tm,VictoryCandlestick:()=>ig,VictoryChart:()=>ex,VictoryClipContainer:()=>bf,VictoryContainer:()=>Zs,VictoryCursorContainer:()=>qO,VictoryErrorBar:()=>E_,VictoryGroup:()=>$_,VictoryHistogram:()=>xw,VictoryLabel:()=>gp,VictoryLegend:()=>$w,VictoryLine:()=>aj,VictoryPie:()=>Ej,VictoryPolarAxis:()=>Fb,VictoryPortal:()=>Af,VictoryScatter:()=>Wj,VictorySelectionContainer:()=>SO,VictorySharedEvents:()=>yb,VictoryStack:()=>oP,VictoryTheme:()=>Ip,VictoryTooltip:()=>kx,VictoryTransition:()=>Uh,VictoryVoronoi:()=>iA,VictoryVoronoiContainer:()=>Zx,VictoryZoomContainer:()=>yO,Voronoi:()=>lP,VoronoiHelpers:()=>Bx,Whisker:()=>gv,Wrapper:()=>w,ZoomHelpers:()=>rO,addEvents:()=>bd,brushContainerMixin:()=>fm,combineContainerMixins:()=>o_,createContainer:()=>u_,cursorContainerMixin:()=>HO,getBarPath:()=>$y,getBarPosition:()=>Cy,getBarWidth:()=>Sy,getCornerRadius:()=>ky,getCustomBarPath:()=>Fy,getHorizontalBarPath:()=>Gy,getPolarBarPath:()=>Yy,getStyle:()=>Dy,getVerticalBarPath:()=>qy,getVerticalPolarBarPath:()=>Ky,makeCreateContainerFunction:()=>a_,selectionContainerMixin:()=>CO,useCanvasContext:()=>ug,voronoiContainerMixin:()=>Xx,zoomContainerMixin:()=>dO});var t={};r.r(t),r.d(t,{createAccessor:()=>st,degreesToRadians:()=>rt,evaluateProp:()=>et,evaluateStyle:()=>nt,getCurrentAxis:()=>pt,getDefaultStyles:()=>J,getPadding:()=>Z,getPoint:()=>Y,getPolarOrigin:()=>at,getRadius:()=>it,getRange:()=>ut,getStyles:()=>tt,invert:()=>K,isFunction:()=>lt,isHorizontal:()=>vt,isNil:()=>ct,isTooltip:()=>Q,mapValues:()=>ht,modifyProps:()=>ft,omit:()=>$,radiansToDegrees:()=>ot,range:()=>dt,reduceChildren:()=>yt,scalePoint:()=>X});var e={};r.r(e),r.d(e,{containsDates:()=>Ot,containsNumbers:()=>_t,containsOnlyStrings:()=>wt,containsStrings:()=>xt,difference:()=>jt,getMaxValue:()=>Mt,getMinValue:()=>Et,isArrayOfArrays:()=>Pt,removeUndefined:()=>At});var n={};r.r(n),r.d(n,{scaleBand:()=>Nt,scaleDiverging:()=>Ui,scaleDivergingLog:()=>Vi,scaleDivergingPow:()=>Hi,scaleDivergingSqrt:()=>qi,scaleDivergingSymlog:()=>Fi,scaleIdentity:()=>wn,scaleImplicit:()=>Lt,scaleLinear:()=>_n,scaleLog:()=>Dn,scaleOrdinal:()=>It,scalePoint:()=>Bt,scalePow:()=>Un,scaleQuantile:()=>Jn,scaleQuantize:()=>tr,scaleRadial:()=>qn,scaleSequential:()=>Ti,scaleSequentialLog:()=>Ri,scaleSequentialPow:()=>Ii,scaleSequentialQuantile:()=>zi,scaleSequentialSqrt:()=>Ni,scaleSequentialSymlog:()=>Li,scaleSqrt:()=>Vn,scaleSymlog:()=>In,scaleThreshold:()=>er,scaleTime:()=>Ci,scaleUtc:()=>Si,tickFormat:()=>xn});var i={};r.r(i),r.d(i,{getBaseScale:()=>Zi,getDefaultScale:()=>Qi,getScaleFromName:()=>Xi,getScaleFromProps:()=>Ji,getScaleType:()=>ta,getType:()=>na,validScale:()=>Ki});var a={};r.r(a),r.d(a,{IMMUTABLE_ITERABLE:()=>ra,IMMUTABLE_LIST:()=>ia,IMMUTABLE_MAP:()=>aa,IMMUTABLE_RECORD:()=>oa,isImmutable:()=>la,isIterable:()=>ua,isList:()=>sa,isMap:()=>fa,isRecord:()=>ca,shallowToJS:()=>pa});var u={};r.r(u),r.d(u,{createStringMap:()=>xa,downsample:()=>Oa,formatData:()=>_a,formatDataFromDomain:()=>ba,generateData:()=>wa,getCategories:()=>ja,getData:()=>Pa,getStringsFromAxes:()=>Aa,getStringsFromCategories:()=>Ma,getStringsFromData:()=>Ea,isDataComponent:()=>Ca});var c={};r.r(c),r.d(c,{createDomainFunction:()=>Na,formatDomain:()=>za,getDomain:()=>Ba,getDomainFromCategories:()=>Wa,getDomainFromData:()=>Ua,getDomainFromMinMax:()=>Va,getDomainFromProps:()=>Fa,getDomainWithZero:()=>Ha,getMaxFromProps:()=>qa,getMinFromProps:()=>Ga,getSymmetricDomain:()=>Ka,isDomainComponent:()=>$a});var l={};r.r(l),r.d(l,{getDegrees:()=>tu,getPolarAngle:()=>Ja,getPolarTextAnchor:()=>Za,getPolarVerticalAnchor:()=>Qa,getProps:()=>eu,getText:()=>Xa});var s={};r.r(s),r.d(s,{arc:()=>Hu,area:()=>mu,areaRadial:()=>wu,curveBasis:()=>Nc,curveBasisClosed:()=>Bc,curveBasisOpen:()=>Uc,curveBumpX:()=>Zu,curveBumpY:()=>Qu,curveBundle:()=>Fc,curveCardinal:()=>Gc,curveCardinalClosed:()=>$c,curveCardinalOpen:()=>Xc,curveCatmullRom:()=>Jc,curveCatmullRomClosed:()=>el,curveCatmullRomOpen:()=>rl,curveLinear:()=>hu,curveLinearClosed:()=>il,curveMonotoneX:()=>hl,curveMonotoneY:()=>dl,curveNatural:()=>ml,curveStep:()=>bl,curveStepAfter:()=>Ol,curveStepBefore:()=>xl,line:()=>vu,lineRadial:()=>_u,link:()=>nc,linkHorizontal:()=>rc,linkRadial:()=>ic,linkVertical:()=>oc,pie:()=>Ku,pointRadial:()=>$u,radialArea:()=>wu,radialLine:()=>_u,stack:()=>Al,stackOffsetDiverging:()=>El,stackOffsetExpand:()=>Ml,stackOffsetNone:()=>_l,stackOffsetSilhouette:()=>Cl,stackOffsetWiggle:()=>Sl,stackOrderAppearance:()=>kl,stackOrderAscending:()=>Tl,stackOrderDescending:()=>Ll,stackOrderInsideOut:()=>Il,stackOrderNone:()=>wl,stackOrderReverse:()=>Nl,symbol:()=>Tc,symbolAsterisk:()=>uc,symbolCircle:()=>cc,symbolCross:()=>lc,symbolDiamond:()=>pc,symbolDiamond2:()=>hc,symbolPlus:()=>dc,symbolSquare:()=>yc,symbolSquare2:()=>vc,symbolStar:()=>xc,symbolTriangle:()=>_c,symbolTriangle2:()=>jc,symbolWye:()=>Cc,symbolX:()=>Sc,symbols:()=>kc,symbolsFill:()=>kc,symbolsStroke:()=>Dc});var f={};r.r(f),r.d(f,{getInterpolationFunction:()=>Vl,getLineFunction:()=>Fl});var p={};r.r(p),r.d(p,{assert:()=>ts,getSafeUserProps:()=>es,withSafeUserProps:()=>ns});var h={};r.r(h),r.d(h,{warn:()=>xf});var d={};r.r(d),r.d(d,{getColorScale:()=>If,toTransformString:()=>Lf});var y={};r.r(y),r.d(y,{_approximateTextSizeInternal:()=>ep,approximateTextSize:()=>np,convertLengthToPixels:()=>$f});var v={};r.r(v),r.d(v,{continuousPolarTransitions:()=>zp,continuousTransitions:()=>Np,discreteTransitions:()=>Bp});var m={};r.r(m),r.d(m,{easeBack:()=>mh,easeBackIn:()=>yh,easeBackInOut:()=>mh,easeBackOut:()=>vh,easeBounce:()=>ph,easeBounceIn:()=>fh,easeBounceInOut:()=>hh,easeBounceOut:()=>ph,easeCircle:()=>lh,easeCircleIn:()=>uh,easeCircleInOut:()=>lh,easeCircleOut:()=>ch,easeCubic:()=>$p,easeCubicIn:()=>Gp,easeCubicInOut:()=>$p,easeCubicOut:()=>Kp,easeElastic:()=>xh,easeElasticIn:()=>bh,easeElasticInOut:()=>Oh,easeElasticOut:()=>xh,easeExp:()=>ah,easeExpIn:()=>oh,easeExpInOut:()=>ah,easeExpOut:()=>ih,easeLinear:()=>Vp,easePoly:()=>Zp,easePolyIn:()=>Yp,easePolyInOut:()=>Zp,easePolyOut:()=>Xp,easeQuad:()=>qp,easeQuadIn:()=>Fp,easeQuadInOut:()=>qp,easeQuadOut:()=>Hp,easeSin:()=>nh,easeSinIn:()=>th,easeSinInOut:()=>nh,easeSinOut:()=>eh});var g={};r.r(g),r.d(g,{getInitialTransitionState:()=>Rh,getTransitionPropsFactory:()=>Lh});var b={};r.r(b),r.d(b,{emulateReactEvent:()=>id,getComponentEvents:()=>ed,getEventState:()=>Zh,getEvents:()=>$h,getExternalMutation:()=>td,getExternalMutations:()=>Jh,getExternalMutationsWithChildren:()=>Qh,getGlobalEventNameFromKey:()=>nd,getGlobalEvents:()=>rd,getPartialEvents:()=>Xh,getScopedEvents:()=>Yh,omitGlobalEvents:()=>od});var x={};r.r(x),r.d(x,{findAxisComponents:()=>Dd,getAxis:()=>kd,getAxisComponent:()=>Td,getAxisComponentsWithParent:()=>Rd,getAxisValue:()=>qd,getDomain:()=>Hd,getOrigin:()=>Ld,getOriginSign:()=>Id,getTickFormat:()=>Wd,getTicks:()=>Vd,isVertical:()=>Nd,modifyProps:()=>Gd,stringTicks:()=>zd});var O={};r.r(O),r.d(O,{getBounds:()=>qv,getDataCoordinates:()=>Hv,getDomainCoordinates:()=>Fv,getParentSVG:()=>Uv,getSVGEventCoordinates:()=>Vv});var _={};r.r(_),r.d(_,{circle:()=>fg,cross:()=>mg,diamond:()=>hg,minus:()=>gg,plus:()=>vg,square:()=>pg,star:()=>bg,triangleDown:()=>dg,triangleUp:()=>yg});var w={};r.r(w),r.d(w,{addBinsToParentPropsIfHistogram:()=>Wg,getAllEvents:()=>$g,getCategories:()=>nb,getCategoryAndAxisStringsFromChildren:()=>tb,getChildStyle:()=>Zg,getColor:()=>Yg,getData:()=>Vg,getDataFromChildren:()=>Ug,getDefaultDomainPadding:()=>Hg,getDomain:()=>Gg,getDomainFromChildren:()=>qg,getScale:()=>Kg,getStringsFromCategories:()=>Qg,getStringsFromChildren:()=>eb,getStringsFromData:()=>Jg,getStyle:()=>Xg,getWidth:()=>Fg});var j={};r.r(j),r.d(j,{useAnimationState:()=>Dg,usePreviousProps:()=>rb});var P=r(9787),A=r.n(P),M=r(1616),E=r.n(M),C=r(8999),S=r.n(C),k=r(8254),D=r.n(k),T=r(4155),R=r.n(T),L=r(4143),I=r.n(L),N=r(8532),z=r.n(N),B=r(3849),W=r.n(B),U=r(9602),V=r.n(U),F=r(9082),H=r.n(F),q=r(1893),G=r.n(q);function K(t){return Object.entries(t).reduce((function(t,e){return t[e[1]]=e[0],t}),{})}function $(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function Y(t){var e=function(t){return void 0!==t},n=t._x,r=t._x1,o=t._x0,i=t._voronoiX,a=t._y,u=t._y1,c=t._y0,l=t._voronoiY,s=e(r)?r:n,f=e(u)?u:a,p={x:e(i)?i:s,x0:e(o)?o:n,y:e(l)?l:f,y0:e(c)?c:a};return G()({},p,t)}function X(t,e){var n=t.scale,r=t.polar,o=t.horizontal,i=Y(e),a=t.origin||{x:0,y:0},u=o?n.y(i.y):n.x(i.x),c=o?n.y(i.y0):n.x(i.x0),l=o?n.x(i.x):n.y(i.y),s=o?n.x(i.x0):n.y(i.y0);return{x:r?l*Math.cos(u)+a.x:u,x0:r?s*Math.cos(c)+a.x:c,y:r?-l*Math.sin(u)+a.y:l,y0:r?-s*Math.sin(c)+a.x:s}}function Z(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"padding",n=t[e],r="number"==typeof n?n:0,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function Q(t){return"tooltip"===(t&&t.type&&t.type.role)}function J(t,e){var n=t.theme,r=void 0===n?{}:n,o=t.labelComponent,i=r[e]&&r[e].style||{};if(!Q(o))return i;var a=r.tooltip&&r.tooltip.style||{},u=G()({},a,i.labels);return G()({},{labels:u},i)}function tt(t,e){var n="100%",r="100%";if(!t)return G()({parent:{height:r,width:n}},e);var o=t.data,i=t.labels,a=t.parent,u=e&&e.parent||{},c=e&&e.labels||{},l=e&&e.data||{};return{parent:G()({},a,u,{width:n,height:r}),labels:G()({},i,c),data:G()({},o,l)}}function et(t,e){return lt(t)?t(e):t}function nt(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((function(e){return lt(t[e])}))?Object.keys(t).reduce((function(n,r){return n[r]=et(t[r],e),n}),{}):t}function rt(t){return"number"==typeof t?t*(Math.PI/180):t}function ot(t){return"number"==typeof t?t/(Math.PI/180):t}function it(t){var e=Z(t),n=e.left,r=e.right,o=e.top,i=e.bottom,a=t.width,u=t.height;return Math.min(a-n-r,u-o-i)/2}function at(t){var e=t.width,n=t.height,r=Z(t),o=r.top,i=r.bottom,a=r.left,u=r.right,c=Math.min(e-a-u,n-o-i)/2,l=e/2+a-u,s=n/2+o-i;return{x:l+c>e?c+a-u:l,y:s+c>n?c+o-i:s}}function ut(t,e){return t.range&&t.range[e]?t.range[e]:t.range&&Array.isArray(t.range)?t.range:t.polar?function(t,e){return"x"===e?[rt(t.startAngle||0),rt(t.endAngle||360)]:[t.innerRadius||0,it(t)]}(t,e):function(t,e){var n="x"!==e,r=Z(t);return n?[t.height-r.bottom,r.top]:[r.left,t.width-r.right]}(t,e)}function ct(t){return null==t}function lt(t){return"function"==typeof t}function st(t){return lt(t)?t:null==t?function(t){return t}:z()(t)}function ft(t,e,n){var r=$(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),o=vt(t),i=void 0===o?{}:{horizontal:o};return G()(i,t,r,e)}function pt(t,e){return e?"x"===t?"y":"x":t}function ht(t,e){if(t)return Object.keys(t).reduce((function(n,r){return n[r]=e(t[r]),n}),{})}function dt(t,e,n){var r=e?t:0,o=e||t;o||(o=0);var i=o-r,a=Math.abs(i),u=i/a||1,c=n||1,l=Math.max(Math.ceil(a/c),0);return Array.from(Array(l),(function(t,e){return r+e*u*c}))}function yt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(t,e){return t.concat(e)},i=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],a=function(t,u,c){return t.reduce((function(t,r,l){var s=t,f=r.type&&r.type.role,p=r.props.name||"".concat(f,"-").concat(u[l]);if(r.props&&r.props.children){var h=Object.assign({},r.props,H()(n,i)),d=r.type&&"stack"===r.type.role&&lt(r.type.getChildren)?r.type.getChildren(h):A().Children.toArray(r.props.children).map((function(t){var e=Object.assign({},t.props,H()(h,i));return A().cloneElement(t,e)})),y=d.map((function(t,e){return"".concat(p,"-").concat(e)})),v=a(d,y,r);s=o(s,v)}else{var m=e(r,p,c);m&&(s=o(s,m))}return s}),r)},u=t.filter(P.isValidElement),c=u.map((function(t,e){return e}));return a(u,c)}function vt(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;var e=function(t){return t.reduce((function(t,n){var r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(A().Children.toArray(r.children))}),!1)};return e(A().Children.toArray(t.children))}function mt(t){return function(t){if(Array.isArray(t))return gt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return gt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gt(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function bt(t){return Array.isArray(t)&&t.length>0}function xt(t){return Array.isArray(t)&&t.some((function(t){return"string"==typeof t}))}function Ot(t){return Array.isArray(t)&&t.some((function(t){return t instanceof Date}))}function _t(t){return Array.isArray(t)&&t.some((function(t){return"number"==typeof t}))}function wt(t){return bt(t)&&t.every((function(t){return"string"==typeof t}))}function jt(t,e){return t&&e?t.filter((function(t){return!e.includes(t)})):[]}function Pt(t){return bt(t)&&t.every(Array.isArray)}function At(t){return t.filter((function(t){return void 0!==t}))}function Mt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return Ot(o)?new Date(Math.max.apply(Math,mt(o))):Math.max.apply(Math,mt(o))}function Et(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.concat(n);return Ot(o)?new Date(Math.min.apply(Math,mt(o))):Math.min.apply(Math,mt(o))}function Ct(t,e,n){t=+t,e=+e,n=(o=arguments.length)<2?(e=t,t=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((e-t)/n)),i=new Array(o);++r<o;)i[r]=t+r*n;return i}function St(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function kt(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}class Dt extends Map{constructor(t,e=Rt){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Tt(this,t))}has(t){return super.has(Tt(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function Tt({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function Rt(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Lt=Symbol("implicit");function It(){var t=new Dt,e=[],n=[],r=Lt;function o(o){let i=t.get(o);if(void 0===i){if(r!==Lt)return r;t.set(o,i=e.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Dt;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return It(e,n).unknown(r)},St.apply(o,arguments),o}function Nt(){var t,e,n=It().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,u=!1,c=0,l=0,s=.5;function f(){var n=r().length,f=a<i,p=f?a:i,h=f?i:a;t=(h-p)/Math.max(1,n-c+2*l),u&&(t=Math.floor(t)),p+=(h-p-t*(n-c))*s,e=t*(1-c),u&&(p=Math.round(p),e=Math.round(e));var d=Ct(n).map((function(e){return p+t*e}));return o(f?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([i,a]=t,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(t){return[i,a]=t,i=+i,a=+a,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(c=Math.min(1,l=+t),f()):c},n.paddingInner=function(t){return arguments.length?(c=Math.min(1,t),f()):c},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(s=Math.max(0,Math.min(1,t)),f()):s},n.copy=function(){return Nt(r(),[i,a]).round(u).paddingInner(c).paddingOuter(l).align(s)},St.apply(f(),arguments)}function zt(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return zt(e())},t}function Bt(){return zt(Nt.apply(null,arguments).paddingInner(1))}var Wt=Math.sqrt(50),Ut=Math.sqrt(10),Vt=Math.sqrt(2);function Ft(t,e,n){var r,o,i,a,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(o=t,t=e,e=o),0===(a=Ht(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);for(n*a<t&&++n,r*a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);for(n/a<t&&++n,r/a>e&&--r,i=new Array(o=r-n+1);++u<o;)i[u]=(n+u)/a}return r&&i.reverse(),i}function Ht(t,e,n){var r=(e-t)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=Wt?10:i>=Ut?5:i>=Vt?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=Wt?10:i>=Ut?5:i>=Vt?2:1)}function qt(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=Wt?o*=10:i>=Ut?o*=5:i>=Vt&&(o*=2),e<t?-o:o}function Gt(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kt(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function $t(t){let e,n,r;function o(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<0?o=e+1:i=e}while(o<i)}return o}return 2!==t.length?(e=Gt,n=(e,n)=>Gt(t(e),n),r=(e,n)=>t(e)-n):(e=t===Gt||t===Kt?t:Yt,n=t,r=t),{left:o,center:function(t,e,n=0,i=t.length){const a=o(t,e,n,i-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,o=0,i=t.length){if(o<i){if(0!==e(r,r))return i;do{const e=o+i>>>1;n(t[e],r)<=0?o=e+1:i=e}while(o<i)}return o}}}function Yt(){return 0}function Xt(t){return null===t?NaN:+t}const Zt=$t(Gt),Qt=Zt.right,Jt=(Zt.left,$t(Xt).center,Qt);function te(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ee(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function ne(){}var re=.7,oe=1/re,ie="\\s*([+-]?\\d+)\\s*",ae="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,le=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),se=new RegExp(`^rgb\\(${ue},${ue},${ue}\\)$`),fe=new RegExp(`^rgba\\(${ie},${ie},${ie},${ae}\\)$`),pe=new RegExp(`^rgba\\(${ue},${ue},${ue},${ae}\\)$`),he=new RegExp(`^hsl\\(${ae},${ue},${ue}\\)$`),de=new RegExp(`^hsla\\(${ae},${ue},${ue},${ae}\\)$`),ye={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 ve(){return this.rgb().formatHex()}function me(){return this.rgb().formatRgb()}function ge(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=ce.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?be(e):3===n?new we(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?xe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?xe(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=le.exec(t))?new we(e[1],e[2],e[3],1):(e=se.exec(t))?new we(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=fe.exec(t))?xe(e[1],e[2],e[3],e[4]):(e=pe.exec(t))?xe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=he.exec(t))?Ce(e[1],e[2]/100,e[3]/100,1):(e=de.exec(t))?Ce(e[1],e[2]/100,e[3]/100,e[4]):ye.hasOwnProperty(t)?be(ye[t]):"transparent"===t?new we(NaN,NaN,NaN,0):null}function be(t){return new we(t>>16&255,t>>8&255,255&t,1)}function xe(t,e,n,r){return r<=0&&(t=e=n=NaN),new we(t,e,n,r)}function Oe(t){return t instanceof ne||(t=ge(t)),t?new we((t=t.rgb()).r,t.g,t.b,t.opacity):new we}function _e(t,e,n,r){return 1===arguments.length?Oe(t):new we(t,e,n,null==r?1:r)}function we(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function je(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}`}function Pe(){const t=Ae(this.opacity);return`${1===t?"rgb(":"rgba("}${Me(this.r)}, ${Me(this.g)}, ${Me(this.b)}${1===t?")":`, ${t})`}`}function Ae(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Me(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ee(t){return((t=Me(t))<16?"0":"")+t.toString(16)}function Ce(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ke(t,e,n,r)}function Se(t){if(t instanceof ke)return new ke(t.h,t.s,t.l,t.opacity);if(t instanceof ne||(t=ge(t)),!t)return new ke;if(t instanceof ke)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),i=Math.max(e,n,r),a=NaN,u=i-o,c=(i+o)/2;return u?(a=e===i?(n-r)/u+6*(n<r):n===i?(r-e)/u+2:(e-n)/u+4,u/=c<.5?i+o:2-i-o,a*=60):u=c>0&&c<1?0:a,new ke(a,u,c,t.opacity)}function ke(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function De(t){return(t=(t||0)%360)<0?t+360:t}function Te(t){return Math.max(0,Math.min(1,t||0))}function Re(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Le(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}te(ne,ge,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Se(this).formatHsl()},formatRgb:me,toString:me}),te(we,_e,ee(ne,{brighter(t){return t=null==t?oe:Math.pow(oe,t),new we(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?re:Math.pow(re,t),new we(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new we(Me(this.r),Me(this.g),Me(this.b),Ae(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:je,formatHex:je,formatHex8:function(){return`#${Ee(this.r)}${Ee(this.g)}${Ee(this.b)}${Ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Pe,toString:Pe})),te(ke,(function(t,e,n,r){return 1===arguments.length?Se(t):new ke(t,e,n,null==r?1:r)}),ee(ne,{brighter(t){return t=null==t?oe:Math.pow(oe,t),new ke(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?re:Math.pow(re,t),new ke(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new we(Re(t>=240?t-240:t+120,o,r),Re(t,o,r),Re(t<120?t+240:t-120,o,r),this.opacity)},clamp(){return new ke(De(this.h),Te(this.s),Te(this.l),Ae(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=Ae(this.opacity);return`${1===t?"hsl(":"hsla("}${De(this.h)}, ${100*Te(this.s)}%, ${100*Te(this.l)}%${1===t?")":`, ${t})`}`}}));const Ie=t=>()=>t;function Ne(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Ie(isNaN(t)?e:t)}const ze=function t(e){var n=function(t){return 1==(t=+t)?Ne:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Ie(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=_e(t)).r,(e=_e(e)).r),o=n(t.g,e.g),i=n(t.b,e.b),a=Ne(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=o(e),t.b=i(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Be(t){return function(e){var n,r,o=e.length,i=new Array(o),a=new Array(o),u=new Array(o);for(n=0;n<o;++n)r=_e(e[n]),i[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return i=t(i),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=i(t),r.g=a(t),r.b=u(t),r+""}}}function We(t,e){var n,r=e?e.length:0,o=t?Math.min(r,t.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=$e(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<o;++n)a[n]=i[n](t);return a}}function Ue(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Ve(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Fe(t,e){var n,r={},o={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=$e(t[n],e[n]):o[n]=e[n];return function(t){for(n in r)o[n]=r[n](t);return o}}Be((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],i=t[r+1],a=r>0?t[r-1]:2*o-i,u=r<e-1?t[r+2]:2*i-o;return Le((n-r/e)*e,a,o,i,u)}})),Be((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),o=t[(r+e-1)%e],i=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return Le((n-r/e)*e,o,i,a,u)}}));var He=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,qe=new RegExp(He.source,"g");function Ge(t,e){var n,r,o,i=He.lastIndex=qe.lastIndex=0,a=-1,u=[],c=[];for(t+="",e+="";(n=He.exec(t))&&(r=qe.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Ve(n,r)})),i=qe.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?c[0]?function(t){return function(e){return t(e)+""}}(c[0].x):function(t){return function(){return t}}(e):(e=c.length,function(t){for(var n,r=0;r<e;++r)u[(n=c[r]).i]=n.x(t);return u.join("")})}function Ke(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,o=e.slice();return function(i){for(n=0;n<r;++n)o[n]=t[n]*(1-i)+e[n]*i;return o}}function $e(t,e){var n,r=typeof e;return null==e||"boolean"===r?Ie(e):("number"===r?Ve:"string"===r?(n=ge(e))?(e=n,ze):Ge:e instanceof ge?ze:e instanceof Date?Ue:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Ke:Array.isArray(e)?We:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Fe:Ve)(t,e)}function Ye(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xe(t){return+t}var Ze=[0,1];function Qe(t){return t}function Je(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function tn(t,e,n){var r=t[0],o=t[1],i=e[0],a=e[1];return o<r?(r=Je(o,r),i=n(a,i)):(r=Je(r,o),i=n(i,a)),function(t){return i(r(t))}}function en(t,e,n){var r=Math.min(t.length,e.length)-1,o=new Array(r),i=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)o[a]=Je(t[a],t[a+1]),i[a]=n(e[a],e[a+1]);return function(e){var n=Jt(t,e,1,r)-1;return i[n](o[n](e))}}function nn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function rn(){var t,e,n,r,o,i,a=Ze,u=Ze,c=$e,l=Qe;function s(){var t=Math.min(a.length,u.length);return l!==Qe&&(l=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),r=t>2?en:tn,o=i=null,f}function f(e){return null==e||isNaN(e=+e)?n:(o||(o=r(a.map(t),u,c)))(t(l(e)))}return f.invert=function(n){return l(e((i||(i=r(u,a.map(t),Ve)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Xe),s()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),s()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),c=Ye,s()},f.clamp=function(t){return arguments.length?(l=!!t||Qe,s()):l!==Qe},f.interpolate=function(t){return arguments.length?(c=t,s()):c},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function on(){return rn()(Qe,Qe)}var an,un=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cn(t){if(!(e=un.exec(t)))throw new Error("invalid format: "+t);var e;return new ln({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function ln(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 sn(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function fn(t){return(t=sn(Math.abs(t)))?t[1]:NaN}function pn(t,e){var n=sn(t,e);if(!n)return t+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}cn.prototype=ln.prototype,ln.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};const hn={"%":(t,e)=>(100*t).toFixed(e),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,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>pn(100*t,e),r:pn,s:function(t,e){var n=sn(t,e);if(!n)return t+"";var r=n[0],o=n[1],i=o-(an=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+sn(t,Math.max(0,e+i-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function dn(t){return t}var yn,vn,mn,gn=Array.prototype.map,bn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xn(t,e,n,r){var o,i=qt(t,e,n);switch((r=cn(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(fn(e)/3)))-fn(Math.abs(t)))}(i,a))||(r.precision=o),mn(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,fn(e)-fn(t))+1}(i,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(t){return Math.max(0,-fn(Math.abs(t)))}(i))||(r.precision=o-2*("%"===r.type))}return vn(r)}function On(t){var e=t.domain;return t.ticks=function(t){var n=e();return Ft(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return xn(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o,i=e(),a=0,u=i.length-1,c=i[a],l=i[u],s=10;for(l<c&&(o=c,c=l,l=o,o=a,a=u,u=o);s-- >0;){if((o=Ht(c,l,n))===r)return i[a]=c,i[u]=l,e(i);if(o>0)c=Math.floor(c/o)*o,l=Math.ceil(l/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,l=Math.floor(l*o)/o}r=o}return t},t}function _n(){var t=on();return t.copy=function(){return nn(t,_n())},St.apply(t,arguments),On(t)}function wn(t){var e;function n(t){return null==t||isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Xe),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return wn(t).unknown(e)},t=arguments.length?Array.from(t,Xe):[0,1],On(n)}function jn(t,e){var n,r=0,o=(t=t.slice()).length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function Pn(t){return Math.log(t)}function An(t){return Math.exp(t)}function Mn(t){return-Math.log(-t)}function En(t){return-Math.exp(-t)}function Cn(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Sn(t){return(e,n)=>-t(-e,n)}function kn(t){const e=t(Pn,An),n=e.domain;let r,o,i=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),e=>Math.log(e)/t)}(i),o=function(t){return 10===t?Cn:t===Math.E?Math.exp:e=>Math.pow(t,e)}(i),n()[0]<0?(r=Sn(r),o=Sn(o),t(Mn,En)):t(Pn,An),e}return e.base=function(t){return arguments.length?(i=+t,a()):i},e.domain=function(t){return arguments.length?(n(t),a()):n()},e.ticks=t=>{const e=n();let a=e[0],u=e[e.length-1];const c=u<a;c&&([a,u]=[u,a]);let l,s,f=r(a),p=r(u);const h=null==t?10:+t;let d=[];if(!(i%1)&&p-f<h){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<i;++l)if(s=f<0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;d.push(s)}}else for(;f<=p;++f)for(l=i-1;l>=1;--l)if(s=f>0?l/o(-f):l*o(f),!(s<a)){if(s>u)break;d.push(s)}2*d.length<h&&(d=Ft(a,u,h))}else d=Ft(f,p,Math.min(p-f,h)).map(o);return c?d.reverse():d},e.tickFormat=(t,n)=>{if(null==t&&(t=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=cn(n)).precision||(n.trim=!0),n=vn(n)),t===1/0)return n;const a=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));return e*i<i-.5&&(e*=i),e<=a?n(t):""}},e.nice=()=>n(jn(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))})),e}function Dn(){const t=kn(rn()).domain([1,10]);return t.copy=()=>nn(t,Dn()).base(t.base()),St.apply(t,arguments),t}function Tn(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Rn(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ln(t){var e=1,n=t(Tn(e),Rn(e));return n.constant=function(n){return arguments.length?t(Tn(e=+n),Rn(e)):e},On(n)}function In(){var t=Ln(rn());return t.copy=function(){return nn(t,In()).constant(t.constant())},St.apply(t,arguments)}function Nn(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function zn(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Bn(t){return t<0?-t*t:t*t}function Wn(t){var e=t(Qe,Qe),n=1;function r(){return 1===n?t(Qe,Qe):.5===n?t(zn,Bn):t(Nn(n),Nn(1/n))}return e.exponent=function(t){return arguments.length?(n=+t,r()):n},On(e)}function Un(){var t=Wn(rn());return t.copy=function(){return nn(t,Un()).exponent(t.exponent())},St.apply(t,arguments),t}function Vn(){return Un.apply(null,arguments).exponent(.5)}function Fn(t){return Math.sign(t)*t*t}function Hn(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function qn(){var t,e=on(),n=[0,1],r=!1;function o(n){var o=Hn(e(n));return isNaN(o)?t:r?Math.round(o):o}return o.invert=function(t){return e.invert(Fn(t))},o.domain=function(t){return arguments.length?(e.domain(t),o):e.domain()},o.range=function(t){return arguments.length?(e.range((n=Array.from(t,Xe)).map(Fn)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(e.clamp(t),o):e.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return qn(e.domain(),n).round(r).clamp(e.clamp()).unknown(t)},St.apply(o,arguments),On(o)}function Gn(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function Kn(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let o of t)null!=(o=e(o,++r,t))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function $n(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(t<e?-1:t>e?1:0)}function Yn(t,e,n=0,r=t.length-1,o){for(o=void 0===o?$n:function(t=Gt){if(t===Gt)return $n;if("function"!=typeof t)throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=e-n+1,u=Math.log(i),c=.5*Math.exp(2*u/3),l=.5*Math.sqrt(u*c*(i-c)/i)*(a-i/2<0?-1:1);Yn(t,e,Math.max(n,Math.floor(e-a*c/i+l)),Math.min(r,Math.floor(e+(i-a)*c/i+l)),o)}const i=t[e];let a=n,u=r;for(Xn(t,n,e),o(t[r],i)>0&&Xn(t,n,r);a<u;){for(Xn(t,a,u),++a,--u;o(t[a],i)<0;)++a;for(;o(t[u],i)>0;)--u}0===o(t[n],i)?Xn(t,n,u):(++u,Xn(t,u,r)),u<=e&&(n=u+1),e<=u&&(r=u-1)}return t}function Xn(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function Zn(t,e,n){if(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,n)),r=t.length){if((e=+e)<=0||r<2)return Kn(t);if(e>=1)return Gn(t);var r,o=(r-1)*e,i=Math.floor(o),a=Gn(Yn(t,i).subarray(0,i+1));return a+(Kn(t.subarray(i+1))-a)*(o-i)}}function Qn(t,e,n=Xt){if(r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t);return a+(+n(t[i+1],i+1,t)-a)*(o-i)}}function Jn(){var t,e=[],n=[],r=[];function o(){var t=0,o=Math.max(1,n.length);for(r=new Array(o-1);++t<o;)r[t-1]=Qn(e,t/o);return i}function i(e){return null==e||isNaN(e=+e)?t:n[Jt(r,e)]}return i.invertExtent=function(t){var o=n.indexOf(t);return o<0?[NaN,NaN]:[o>0?r[o-1]:e[0],o<r.length?r[o]:e[e.length-1]]},i.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(Gt),o()},i.range=function(t){return arguments.length?(n=Array.from(t),o()):n.slice()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.quantiles=function(){return r.slice()},i.copy=function(){return Jn().domain(e).range(n).unknown(t)},St.apply(i,arguments)}function tr(){var t,e=0,n=1,r=1,o=[.5],i=[0,1];function a(e){return null!=e&&e<=e?i[Jt(o,e,0,r)]:t}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},a.range=function(t){return arguments.length?(r=(i=Array.from(t)).length-1,u()):i.slice()},a.invertExtent=function(t){var a=i.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,o[0]]:a>=r?[o[r-1],n]:[o[a-1],o[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return tr().domain([e,n]).range(i).unknown(t)},St.apply(On(a),arguments)}function er(){var t,e=[.5],n=[0,1],r=1;function o(o){return null!=o&&o<=o?n[Jt(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Array.from(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return er().domain(e).range(n).unknown(t)},St.apply(o,arguments)}yn=function(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?dn:(e=gn.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var o=t.length,i=[],a=0,u=e[0],c=0;o>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),i.push(t.substring(o-=u,o+u)),!((c+=u+1)>r));)u=e[a=(a+1)%e.length];return i.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",i=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?dn:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(gn.call(t.numerals,String)),c=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",s=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=cn(t)).fill,n=t.align,f=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,m=t.trim,g=t.type;"n"===g?(y=!0,g="g"):hn[g]||(void 0===v&&(v=12),m=!0,g="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?i:/[%p]/.test(g)?c:"",O=hn[g],_=/[defgprs%]/.test(g);function w(t){var o,i,c,p=b,w=x;if("c"===g)w=O(t)+w,t="";else{var j=(t=+t)<0||1/t<0;if(t=isNaN(t)?s:O(Math.abs(t),v),m&&(t=function(t){t:for(var e,n=t.length,r=1,o=-1;r<n;++r)switch(t[r]){case".":o=e=r;break;case"0":0===o&&(o=r),e=r;break;default:if(!+t[r])break t;o>0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t}(t)),j&&0==+t&&"+"!==f&&(j=!1),p=(j?"("===f?f:l:"-"===f||"("===f?"":f)+p,w=("s"===g?bn[8+an/3]:"")+w+(j&&"("===f?")":""),_)for(o=-1,i=t.length;++o<i;)if(48>(c=t.charCodeAt(o))||c>57){w=(46===c?a+t.slice(o+1):t.slice(o))+w,t=t.slice(0,o);break}}y&&!h&&(t=r(t,1/0));var P=p.length+t.length+w.length,A=P<d?new Array(d-P+1).join(e):"";switch(y&&h&&(t=r(A+t,A.length?d-w.length:1/0),A=""),n){case"<":t=p+t+w+A;break;case"=":t=p+A+t+w;break;case"^":t=A.slice(0,P=A.length>>1)+p+t+w+A.slice(P);break;default:t=A+p+t+w}return u(t)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),w.toString=function(){return t+""},w}return{format:f,formatPrefix:function(t,e){var n=f(((t=cn(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(fn(e)/3))),o=Math.pow(10,-r),i=bn[8+r/3];return function(t){return n(o*t)+i}}}}({thousands:",",grouping:[3],currency:["$",""]}),vn=yn.format,mn=yn.formatPrefix;const nr=1e3,rr=6e4,or=36e5,ir=864e5,ar=6048e5,ur=31536e6;var cr=new Date,lr=new Date;function sr(t,e,n,r){function o(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return o.floor=function(e){return t(e=new Date(+e)),e},o.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},o.round=function(t){var e=o(t),n=o.ceil(t);return t-e<n-t?e:n},o.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},o.range=function(n,r,i){var a,u=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return u;do{u.push(a=new Date(+n)),e(n,i),t(n)}while(a<n&&n<r);return u},o.filter=function(n){return sr((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(o.count=function(e,r){return cr.setTime(+e),lr.setTime(+r),t(cr),t(lr),Math.floor(n(cr,lr))},o.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?o.filter(r?function(e){return r(e)%t==0}:function(e){return o.count(0,e)%t==0}):o:null}),o}var fr=sr((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));fr.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?sr((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):fr:null};const pr=fr;fr.range;var hr=sr((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*nr)}),(function(t,e){return(e-t)/nr}),(function(t){return t.getUTCSeconds()}));const dr=hr;hr.range;var yr=sr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nr)}),(function(t,e){t.setTime(+t+e*rr)}),(function(t,e){return(e-t)/rr}),(function(t){return t.getMinutes()}));const vr=yr;yr.range;var mr=sr((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nr-t.getMinutes()*rr)}),(function(t,e){t.setTime(+t+e*or)}),(function(t,e){return(e-t)/or}),(function(t){return t.getHours()}));const gr=mr;mr.range;var br=sr((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rr)/ir),(t=>t.getDate()-1));const xr=br;function Or(t){return sr((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rr)/ar}))}br.range;var _r=Or(0),wr=Or(1),jr=Or(2),Pr=Or(3),Ar=Or(4),Mr=Or(5),Er=Or(6),Cr=(_r.range,wr.range,jr.range,Pr.range,Ar.range,Mr.range,Er.range,sr((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const Sr=Cr;Cr.range;var kr=sr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));kr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sr((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Dr=kr;kr.range;var Tr=sr((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*rr)}),(function(t,e){return(e-t)/rr}),(function(t){return t.getUTCMinutes()}));const Rr=Tr;Tr.range;var Lr=sr((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*or)}),(function(t,e){return(e-t)/or}),(function(t){return t.getUTCHours()}));const Ir=Lr;Lr.range;var Nr=sr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ir}),(function(t){return t.getUTCDate()-1}));const zr=Nr;function Br(t){return sr((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/ar}))}Nr.range;var Wr=Br(0),Ur=Br(1),Vr=Br(2),Fr=Br(3),Hr=Br(4),qr=Br(5),Gr=Br(6),Kr=(Wr.range,Ur.range,Vr.range,Fr.range,Hr.range,qr.range,Gr.range,sr((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const $r=Kr;Kr.range;var Yr=sr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Yr.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sr((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Xr=Yr;function Zr(t,e,n,r,o,i){const a=[[dr,1,nr],[dr,5,5e3],[dr,15,15e3],[dr,30,3e4],[i,1,rr],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,or],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,ir],[r,2,1728e5],[n,1,ar],[e,1,2592e6],[e,3,7776e6],[t,1,ur]];function u(e,n,r){const o=Math.abs(n-e)/r,i=$t((([,,t])=>t)).right(a,o);if(i===a.length)return t.every(qt(e/ur,n/ur,r));if(0===i)return pr.every(Math.max(qt(e,n,r),1));const[u,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return u.every(c)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const o=n&&"function"==typeof n.range?n:u(t,e,n),i=o?o.range(t,+e+1):[];return r?i.reverse():i},u]}Yr.range;const[Qr,Jr]=Zr(Xr,$r,Wr,zr,Ir,Rr),[to,eo]=Zr(Dr,Sr,_r,xr,gr,vr);function no(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ro(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function oo(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var io,ao,uo,co={"-":"",_:" ",0:"0"},lo=/^\s*\d+/,so=/^%/,fo=/[\\^$*+?|[\]().{}]/g;function po(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function ho(t){return t.replace(fo,"\\$&")}function yo(t){return new RegExp("^(?:"+t.map(ho).join("|")+")","i")}function vo(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function mo(t,e,n){var r=lo.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function go(t,e,n){var r=lo.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function bo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function xo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Oo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function _o(t,e,n){var r=lo.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function wo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jo(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Po(t,e,n){var r=lo.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ao(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Mo(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Eo(t,e,n){var r=lo.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Co(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function So(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function ko(t,e,n){var r=lo.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Do(t,e,n){var r=lo.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function To(t,e,n){var r=lo.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ro(t,e,n){var r=so.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Lo(t,e,n){var r=lo.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Io(t,e,n){var r=lo.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function No(t,e){return po(t.getDate(),e,2)}function zo(t,e){return po(t.getHours(),e,2)}function Bo(t,e){return po(t.getHours()%12||12,e,2)}function Wo(t,e){return po(1+xr.count(Dr(t),t),e,3)}function Uo(t,e){return po(t.getMilliseconds(),e,3)}function Vo(t,e){return Uo(t,e)+"000"}function Fo(t,e){return po(t.getMonth()+1,e,2)}function Ho(t,e){return po(t.getMinutes(),e,2)}function qo(t,e){return po(t.getSeconds(),e,2)}function Go(t){var e=t.getDay();return 0===e?7:e}function Ko(t,e){return po(_r.count(Dr(t)-1,t),e,2)}function $o(t){var e=t.getDay();return e>=4||0===e?Ar(t):Ar.ceil(t)}function Yo(t,e){return t=$o(t),po(Ar.count(Dr(t),t)+(4===Dr(t).getDay()),e,2)}function Xo(t){return t.getDay()}function Zo(t,e){return po(wr.count(Dr(t)-1,t),e,2)}function Qo(t,e){return po(t.getFullYear()%100,e,2)}function Jo(t,e){return po((t=$o(t)).getFullYear()%100,e,2)}function ti(t,e){return po(t.getFullYear()%1e4,e,4)}function ei(t,e){var n=t.getDay();return po((t=n>=4||0===n?Ar(t):Ar.ceil(t)).getFullYear()%1e4,e,4)}function ni(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+po(e/60|0,"0",2)+po(e%60,"0",2)}function ri(t,e){return po(t.getUTCDate(),e,2)}function oi(t,e){return po(t.getUTCHours(),e,2)}function ii(t,e){return po(t.getUTCHours()%12||12,e,2)}function ai(t,e){return po(1+zr.count(Xr(t),t),e,3)}function ui(t,e){return po(t.getUTCMilliseconds(),e,3)}function ci(t,e){return ui(t,e)+"000"}function li(t,e){return po(t.getUTCMonth()+1,e,2)}function si(t,e){return po(t.getUTCMinutes(),e,2)}function fi(t,e){return po(t.getUTCSeconds(),e,2)}function pi(t){var e=t.getUTCDay();return 0===e?7:e}function hi(t,e){return po(Wr.count(Xr(t)-1,t),e,2)}function di(t){var e=t.getUTCDay();return e>=4||0===e?Hr(t):Hr.ceil(t)}function yi(t,e){return t=di(t),po(Hr.count(Xr(t),t)+(4===Xr(t).getUTCDay()),e,2)}function vi(t){return t.getUTCDay()}function mi(t,e){return po(Ur.count(Xr(t)-1,t),e,2)}function gi(t,e){return po(t.getUTCFullYear()%100,e,2)}function bi(t,e){return po((t=di(t)).getUTCFullYear()%100,e,2)}function xi(t,e){return po(t.getUTCFullYear()%1e4,e,4)}function Oi(t,e){var n=t.getUTCDay();return po((t=n>=4||0===n?Hr(t):Hr.ceil(t)).getUTCFullYear()%1e4,e,4)}function _i(){return"+0000"}function wi(){return"%"}function ji(t){return+t}function Pi(t){return Math.floor(+t/1e3)}function Ai(t){return new Date(t)}function Mi(t){return t instanceof Date?+t:+new Date(+t)}function Ei(t,e,n,r,o,i,a,u,c,l){var s=on(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function O(t){return(c(t)<t?h:u(t)<t?d:a(t)<t?y:i(t)<t?v:r(t)<t?o(t)<t?m:g:n(t)<t?b:x)(t)}return s.invert=function(t){return new Date(f(t))},s.domain=function(t){return arguments.length?p(Array.from(t,Mi)):p().map(Ai)},s.ticks=function(e){var n=p();return t(n[0],n[n.length-1],null==e?10:e)},s.tickFormat=function(t,e){return null==e?O:l(e)},s.nice=function(t){var n=p();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?p(jn(n,t)):s},s.copy=function(){return nn(s,Ei(t,e,n,r,o,i,a,u,c,l))},s}function Ci(){return St.apply(Ei(to,eo,Dr,Sr,_r,xr,gr,vr,dr,ao).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Si(){return St.apply(Ei(Qr,Jr,Xr,$r,Wr,zr,Ir,Rr,dr,uo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ki(){var t,e,n,r,o,i=0,a=1,u=Qe,c=!1;function l(e){return null==e||isNaN(e=+e)?o:u(0===n?.5:(e=(r(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}function s(t){return function(e){var n,r;return arguments.length?([n,r]=e,u=t(n,r),l):[u(0),u(1)]}}return l.domain=function(o){return arguments.length?([i,a]=o,t=r(i=+i),e=r(a=+a),n=t===e?0:1/(e-t),l):[i,a]},l.clamp=function(t){return arguments.length?(c=!!t,l):c},l.interpolator=function(t){return arguments.length?(u=t,l):u},l.range=s($e),l.rangeRound=s(Ye),l.unknown=function(t){return arguments.length?(o=t,l):o},function(o){return r=o,t=o(i),e=o(a),n=t===e?0:1/(e-t),l}}function Di(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ti(){var t=On(ki()(Qe));return t.copy=function(){return Di(t,Ti())},kt.apply(t,arguments)}function Ri(){var t=kn(ki()).domain([1,10]);return t.copy=function(){return Di(t,Ri()).base(t.base())},kt.apply(t,arguments)}function Li(){var t=Ln(ki());return t.copy=function(){return Di(t,Li()).constant(t.constant())},kt.apply(t,arguments)}function Ii(){var t=Wn(ki());return t.copy=function(){return Di(t,Ii()).exponent(t.exponent())},kt.apply(t,arguments)}function Ni(){return Ii.apply(null,arguments).exponent(.5)}function zi(){var t=[],e=Qe;function n(n){if(null!=n&&!isNaN(n=+n))return e((Jt(t,n,1)-1)/(t.length-1))}return n.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Gt),n},n.interpolator=function(t){return arguments.length?(e=t,n):e},n.range=function(){return t.map(((n,r)=>e(r/(t.length-1))))},n.quantiles=function(e){return Array.from({length:e+1},((n,r)=>Zn(t,r/e)))},n.copy=function(){return zi(e).domain(t)},kt.apply(n,arguments)}function Bi(t,e){void 0===e&&(e=t,t=$e);for(var n=0,r=e.length-1,o=e[0],i=new Array(r<0?0:r);n<r;)i[n]=t(o,o=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return i[e](t-e)}}function Wi(){var t,e,n,r,o,i,a,u=0,c=.5,l=1,s=1,f=Qe,p=!1;function h(t){return isNaN(t=+t)?a:(t=.5+((t=+i(t))-e)*(s*t<s*e?r:o),f(p?Math.max(0,Math.min(1,t)):t))}function d(t){return function(e){var n,r,o;return arguments.length?([n,r,o]=e,f=Bi(t,[n,r,o]),h):[f(0),f(.5),f(1)]}}return h.domain=function(a){return arguments.length?([u,c,l]=a,t=i(u=+u),e=i(c=+c),n=i(l=+l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,h):[u,c,l]},h.clamp=function(t){return arguments.length?(p=!!t,h):p},h.interpolator=function(t){return arguments.length?(f=t,h):f},h.range=d($e),h.rangeRound=d(Ye),h.unknown=function(t){return arguments.length?(a=t,h):a},function(a){return i=a,t=a(u),e=a(c),n=a(l),r=t===e?0:.5/(e-t),o=e===n?0:.5/(n-e),s=e<t?-1:1,h}}function Ui(){var t=On(Wi()(Qe));return t.copy=function(){return Di(t,Ui())},kt.apply(t,arguments)}function Vi(){var t=kn(Wi()).domain([.1,1,10]);return t.copy=function(){return Di(t,Vi()).base(t.base())},kt.apply(t,arguments)}function Fi(){var t=Ln(Wi());return t.copy=function(){return Di(t,Fi()).constant(t.constant())},kt.apply(t,arguments)}function Hi(){var t=Wn(Wi());return t.copy=function(){return Di(t,Hi()).exponent(t.exponent())},kt.apply(t,arguments)}function qi(){return Hi.apply(null,arguments).exponent(.5)}io=function(t){var e=t.dateTime,n=t.date,r=t.time,o=t.periods,i=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,l=yo(o),s=vo(o),f=yo(i),p=vo(i),h=yo(a),d=vo(a),y=yo(u),v=vo(u),m=yo(c),g=vo(c),b={a:function(t){return a[t.getDay()]},A:function(t){return i[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:No,e:No,f:Vo,g:Jo,G:ei,H:zo,I:Bo,j:Wo,L:Uo,m:Fo,M:Ho,p:function(t){return o[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:ji,s:Pi,S:qo,u:Go,U:Ko,V:Yo,w:Xo,W:Zo,x:null,X:null,y:Qo,Y:ti,Z:ni,"%":wi},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return i[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:ri,e:ri,f:ci,g:bi,G:Oi,H:oi,I:ii,j:ai,L:ui,m:li,M:si,p:function(t){return o[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:ji,s:Pi,S:fi,u:pi,U:hi,V:yi,w:vi,W:mi,x:null,X:null,y:gi,Y:xi,Z:_i,"%":wi},O={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return j(t,e,n,r)},d:Mo,e:Mo,f:To,g:wo,G:_o,H:Co,I:Co,j:Eo,L:Do,m:Ao,M:So,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:Po,Q:Lo,s:Io,S:ko,u:go,U:bo,V:xo,w:mo,W:Oo,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:wo,Y:_o,Z:jo,"%":Ro};function _(t,e){return function(n){var r,o,i,a=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(c,u)),null!=(o=co[r=t.charAt(++u)])?r=t.charAt(++u):o="e"===r?" ":"0",(i=e[r])&&(r=i(n,o)),a.push(r),c=u+1);return a.push(t.slice(c,u)),a.join("")}}function w(t,e){return function(n){var r,o,i=oo(1900,void 0,1);if(j(i,t,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(e&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=ro(oo(i.y,0,1))).getUTCDay(),r=o>4||0===o?Ur.ceil(r):Ur(r),r=zr.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=no(oo(i.y,0,1))).getDay(),r=o>4||0===o?wr.ceil(r):wr(r),r=xr.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?ro(oo(i.y,0,1)).getUTCDay():no(oo(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,ro(i)):no(i)}}function j(t,e,n,r){for(var o,i,a=0,u=e.length,c=n.length;a<u;){if(r>=c)return-1;if(37===(o=e.charCodeAt(a++))){if(o=e.charAt(a++),!(i=O[o in co?e.charAt(a++):o])||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),x.x=_(n,x),x.X=_(r,x),x.c=_(e,x),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}}}({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"]}),ao=io.format,io.parse,uo=io.utcFormat,io.utcParse;var Gi=["linear","time","log","sqrt"];function Ki(t){return"function"==typeof t?lt(t.copy)&&lt(t.domain)&&lt(t.range):"string"==typeof t&&Gi.includes(t)}function $i(t,e){return!(!t.scale||(t.scale.x||t.scale.y)&&!t.scale[e])}function Yi(t,e){if(!t.data)return"linear";var n=st(t[e]);return Ot(t.data.map((function(t){var r=W()(n(t))?n(t)[e]:n(t);return void 0!==r?r:t[e]})))?"time":"linear"}function Xi(t){if(Ki(t)){var e="scale".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t));return n[e]()}return _n()}function Zi(t,e){var n=Ji(t,e);return n?"string"==typeof n?Xi(n):n:Xi(function(t,e){var n;if(t.domain&&t.domain[e]?n=t.domain[e]:t.domain&&Array.isArray(t.domain)&&(n=t.domain),n)return Ot(n)?"time":"linear"}(t,e)||Yi(t,e))}function Qi(){return _n()}function Ji(t,e){if($i(t,e)){var n=t.scale[e]||t.scale;return Ki(n)?lt(n)?n:Xi(n):void 0}}function ta(t,e){return function(t,e){if($i(t,e)){var n=t.scale[e]||t.scale;return"string"==typeof n?n:na(n)}}(t,e)||Yi(t,e)}var ea=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function na(t){if("string"==typeof t)return t;var e=ea.filter((function(e){return void 0!==t[e.method]}))[0];return e?e.name:void 0}var ra="@@__IMMUTABLE_ITERABLE__@@",oa="@@__IMMUTABLE_RECORD__@@",ia="@@__IMMUTABLE_LIST__@@",aa="@@__IMMUTABLE_MAP__@@";function ua(t){return!(!t||!t[ra])}function ca(t){return!(!t||!t[oa])}function la(t){return ua(t)||ca(t)}function sa(t){return!(!t||!t[ia])}function fa(t){return!(!t||!t[aa])}function pa(t,e){return ua(t)?t.reduce((function(t,n,r){var o=n;return e&&e[r]&&(o=pa(n)),t[r]=o,t}),sa(t)?[]:{}):t}function ha(t){return function(t){if(Array.isArray(t))return da(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return da(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?da(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function da(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ya(t){return la(t)?pa(t,{errorX:!0,errorY:!0}):t}function va(t){return ua(t)?t.size:t.length}function ma(t,e){var n=(W()(t.domain)?t.domain[e]:t.domain)||Zi(t,e).domain(),r=t.samples||1,o=Math.max.apply(Math,ha(n)),i=Math.min.apply(Math,ha(n)),a=dt(i,o,(o-i)/r);return a[a.length-1]===o?a:a.concat(o)}function ga(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"ascending";if(!e)return t;var r=e;"x"!==e&&"y"!==e||(r="_".concat(e));var o="ascending"===n?"asc":"desc";return I()(t,r,o)}function ba(t,e,n){var r=function(t){return void 0!==t},o=Et(e.x),i=Mt(e.x),a=Et(e.y),u=Mt(e.y),c=function(t){return function(e){return r(e)&&e<t}},l=function(t){return function(e){return r(e)&&e>t}},s=c(o),f=c(a),p=l(i),h=l(u);return t.map((function(t){var e=t._x,o=t._y,i=t._y0,c=t._y1;(s(e)||p(e))&&(e=null);var l=r(i)?i:n,d=r(c)?c:o;return r(d)?(r(l)||!f(d)&&!h(d)||(o=null),(f(l)&&f(d)||h(l)&&h(d))&&(o=i=c=null),f(l)&&!f(d)&&(i=a),h(l)&&!h(d)&&(i=u),Object.assign({},t,E()({_x:e,_y:o,_y0:i,_y1:c},S()))):t}))}function xa(t,e){var n=Aa(t,e),r=Ma(t,e),o=Ea(t,e),i=V()([].concat(ha(n),ha(r),ha(o)));return 0===i.length?null:i.reduce((function(t,e,n){return t[e]=n+1,t}),{})}function Oa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=va(t);if(r>e){var o=Math.pow(2,Math.ceil(Math.log2(r/e)));return t.filter((function(t,e){return(e+n)%o==0}))}return t}function _a(t,e,n){if(!Array.isArray(t)&&!ua(t)||va(t)<1)return[];var r,o=["x","y","y0"],i=(n=Array.isArray(n)?n:o).reduce((function(t,n){var r;return t[n]=st(void 0!==e[r=n]?e[r]:r),t}),{}),a=D()(n,o)&&"_x"===e.x&&"_y"===e.y&&"_y0"===e.y0;!1===a&&(r={x:-1!==n.indexOf("x")?xa(e,"x"):void 0,y:-1!==n.indexOf("y")?xa(e,"y"):void 0,y0:-1!==n.indexOf("y0")?xa(e,"y"):void 0});var u=a?t:t.reduce((function(t,e,o){var a=ya(e),u={x:o,y:a},c=n.reduce((function(t,e){var n=i[e](a),o=void 0!==n?n:u[e];return void 0!==o&&("string"==typeof o&&r[e]?(t["".concat(e,"Name")]=o,t["_".concat(e)]=r[e][o]):t["_".concat(e)]=o),t}),{}),l=Object.assign({},c,a);return R()(l)||t.push(l),t}),[]),c=function(t,e){var n=1/Number.MAX_SAFE_INTEGER,r={x:ta(e,"x"),y:ta(e,"y")};if("log"!==r.x&&"log"!==r.y)return t;var o=function(t,e){return"log"!==r[e]||0!==t["_".concat(e)]};return t.map((function(t){return o(t,"x")&&o(t,"y")&&o(t,"y0")?t:function(t){var e=o(t,"x")?t._x:n,r=o(t,"y")?t._y:n,i=o(t,"y0")?t._y0:n;return Object.assign({},t,{_x:e,_y:r,_y0:i})}(t)}))}(ga(u,e.sortKey,e.sortOrder),e);return function(t,e){var n,r=!!t.eventKey,o=lt(n=t.eventKey)?n:null==n?function(){}:z()(n);return e.map((function(t,e){if(void 0!==t.eventKey)return t;if(r){var n=o(t,e);return void 0!==n?Object.assign({eventKey:n},t):t}return t}))}(e,c)}function wa(t){var e=ma(t,"x"),n=ma(t,"y"),r=e.map((function(t,e){return{x:t,y:n[e]}}));return r}function ja(t,e){return t.categories&&!Array.isArray(t.categories)?t.categories[e]:t.categories}function Pa(t){return t.data?_a(t.data,t):_a(wa(t),t)}function Aa(t,e){var n=t.tickValues,r=t.tickFormat;return(n&&(Array.isArray(n)||n[e])?n[e]||n:r&&Array.isArray(r)?r:[]).filter((function(t){return"string"==typeof t}))}function Ma(t,e){if(!t.categories)return[];var n=ja(t,e),r=n&&n.filter((function(t){return"string"==typeof t}));return r?At(r):[]}function Ea(t,e){if(!Array.isArray(t.data)&&!ua(t.data))return[];var n=st(void 0===t[e]?e:t[e]);return ga(t.data.reduce((function(t,e){return t.push(ya(e)),t}),[]),t.sortKey,t.sortOrder).reduce((function(t,e){var r=ya(e);return t.push(n(r)),t}),[]).filter((function(t){return"string"==typeof t})).reduce((function(t,e){return null!=e&&-1===t.indexOf(e)&&t.push(e),t}),[])}function Ca(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=A().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}var Sa=r(4295),ka=r.n(Sa),Da=r(2829),Ta=r.n(Da);function Ra(t){return function(t){if(Array.isArray(t))return La(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return La(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?La(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function La(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ia(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"min",r=function(t){return"max"===n?Math.max.apply(Math,Ra(t)):Math.min.apply(Math,Ra(t))},o="max"===n?-1/0:1/0,i=!1,a=t.flat().reduce((function(t,n){var o=void 0!==n["_".concat(e,"0")]?n["_".concat(e,"0")]:n["_".concat(e)],a=void 0!==n["_".concat(e,"1")]?n["_".concat(e,"1")]:n["_".concat(e)],u=r([o,a]);return i=i||o instanceof Date||a instanceof Date,r([t,u])}),o);return i?new Date(a):a}function Na(t,e){var n=lt(t)?t:Ua,r=lt(e)?e:za;return function(t,e){var o=Fa(t,e);if(o)return r(o,t,e);var i=ja(t,e),a=i?Wa(t,e,i):n(t,e);return a?r(a,t,e):void 0}}function za(t,e,n){return function(t,e,n){return"log"!==ta(e,n)?t:(o=(r=t)[0]<0||r[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,[0===r[0]?o:r[0],0===r[1]?o:r[1]]);var r,o}(function(t,e,n){if(!e.domainPadding)return t;var r=Ga(e,n),o=qa(e,n),i=function(t,e){var n=function(t){return Array.isArray(t)?{left:t[0],right:t[1]}:{left:t,right:t}};return W()(t.domainPadding)?n(t.domainPadding[e]):n(t.domainPadding)}(e,n);if(!i.left&&!i.right)return t;var a=Et(t),u=Mt(t),c=ut(e,pt(n,e.horizontal)),l=Math.abs(c[0]-c[1]),s=Math.max(l-i.left-i.right,1),f=Math.abs(u.valueOf()-a.valueOf())/s*l,p=f*i.left/l,h=f*i.right/l,d={min:a.valueOf()-p,max:u.valueOf()+h},y=W()(e.singleQuadrantDomainPadding)?e.singleQuadrantDomainPadding[n]:e.singleQuadrantDomainPadding,v=function(t,e){return"min"===e&&a>=0&&t<=0||"max"===e&&u<=0&&t>=0?0:t};if((a>=0&&d.min<=0||u<=0&&d.max>=0)&&!1!==y){var m={left:Math.abs(u-a)*i.left/l,right:Math.abs(u-a)*i.right/l},g={min:v(a.valueOf()-m.left,"min"),max:v(u.valueOf()+m.right,"max")},b={left:Math.abs(g.max-g.min)*i.left/l,right:Math.abs(g.max-g.min)*i.right/l};d={min:v(a.valueOf()-b.left,"min"),max:v(u.valueOf()+b.right,"max")}}var x={min:void 0!==r?r:d.min,max:void 0!==o?o:d.max};return a instanceof Date||u instanceof Date?Va(new Date(x.min),new Date(x.max)):Va(x.min,x.max)}(t,e,n),e,n)}function Ba(t,e){return Na()(t,e)}function Wa(t,e,n){var r=n||ja(t,e),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u;if(r){var l=Ga(t,e),s=qa(t,e),f=xt(r)?Ma(t,e):[],p=0===f.length?null:f.reduce((function(t,e,n){return t[e]=n+1,t}),{}),h=p?r.map((function(t){return p[t]})):r,d=Va(void 0!==l?l:Et(h),void 0!==s?s:Mt(h));return o&&"x"===e&&360===Math.abs(a-c)?Ka(d,h):d}}function Ua(t,e,n){var r=n||Pa(t),o=t.polar,i=t.startAngle,a=void 0===i?0:i,u=t.endAngle,c=void 0===u?360:u,l=Ga(t,e),s=qa(t,e);if(r.length<1)return void 0!==l&&void 0!==s?Va(l,s):void 0;var f=Va(void 0!==l?l:Ia(r,e,"min"),void 0!==s?s:Ia(r,e,"max"));return o&&"x"===e&&360===Math.abs(a-c)?Ka(f,function(t,e){var n="_".concat(e);return t.flat().map((function(t){return t[n]&&void 0!==t[n][1]?t[n][1]:t[n]}))}(r,e)):f}function Va(t,e){var n,r,o,i;return Number(t)===Number(e)?(r=0===(n=e)?2*Math.pow(10,-10):Math.pow(10,-10),o=n instanceof Date?new Date(Number(n)-1):Number(n)-r,i=n instanceof Date?new Date(Number(n)+1):Number(n)+r,0===n?[0,i]:[o,i]):[t,e]}function Fa(t,e){var n=Ga(t,e),r=qa(t,e);return W()(t.domain)&&t.domain[e]?t.domain[e]:Array.isArray(t.domain)?t.domain:void 0!==n&&void 0!==r?Va(n,r):void 0}function Ha(t,e){var n=Fa(t,e);if(n)return n;var r=Pa(t),o=r.reduce((function(t,e){return e._y0<t?e._y0:t}),1/0);return Na((function(){return Ua(t,e,r)}),(function(n){return za(function(n){if("x"===e)return n;var r=o!==1/0?o:0,i=qa(t,e),a=Ga(t,e),u=void 0!==i?i:Mt(n,r);return Va(void 0!==a?a:Et(n,r),u)}(n),t,e)}))(t,e)}function qa(t,e){return W()(t.maxDomain)&&void 0!==t.maxDomain[e]?t.maxDomain[e]:"number"==typeof t.maxDomain||ka()(t.maxDomain)?t.maxDomain:void 0}function Ga(t,e){return W()(t.minDomain)&&void 0!==t.minDomain[e]?t.minDomain[e]:"number"==typeof t.minDomain||ka()(t.minDomain)?t.minDomain:void 0}function Ka(t,e){var n=Ta()(e.sort((function(t,e){return t-e}))),r=n[1]-n[0];return[t[0],t[1]+r]}function $a(t){var e=function(t){return t&&t.type?t.type.role:""},n=e(t);if("portal"===n){var r=A().Children.toArray(t.props.children);n=r.length?e(r[0]):""}return["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"].includes(n)}function Ya(t){var e=t.labelComponent,n=t.labelPlacement,r=t.polar?"perpendicular":"vertical";return n||e.props&&e.props.labelPlacement||r}function Xa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return void 0!==e.label?e.label:Array.isArray(t.labels)?t.labels[n]:t.labels}function Za(t,e){var n=Ya(t);return"perpendicular"===n||"vertical"===n&&(90===e||270===e)?"middle":e<=90||e>270?"start":"end"}function Qa(t,e){var n=Ya(t),r=function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}(e);return"parallel"===n||"left"===r||"right"===r?"middle":"top"===r?"end":"start"}function Ja(t,e){var n=t.labelPlacement,r=t.datum;if(!n||"vertical"===n)return 0;var o=void 0!==e?e%360:tu(t,r),i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}function tu(t,e){var n=Y(e).x;return ot(t.scale.x(n))%360}function eu(t,e){var n=t.scale,r=t.data,o=t.style,i=t.horizontal,a=t.polar,u=t.width,c=t.height,l=t.theme,s=t.labelComponent,f=t.disableInlineStyles,p=r[e],h=tu(t,p),d=a?Za(t,h):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style,r=t.horizontal,o=e._y>=0?1:-1,i=n&&n.labels||{};return e.verticalAnchor||i.verticalAnchor?e.verticalAnchor||i.verticalAnchor:r?o>=0?"start":"end":"middle"}(t,p),y=a?Qa(t,h):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e._y>=0?1:-1,r=t.style&&t.style.labels||{};return e.verticalAnchor||r.verticalAnchor?e.verticalAnchor||r.verticalAnchor:t.horizontal?"middle":n>=0?"end":"start"}(t,p),v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style&&t.style.labels||{};return void 0===e.angle?n.angle:e.angle}(t,p),m=Xa(t,p,e),g=Ya(t),b=function(t,e){var n=t.polar,r=X(t,e),o=r.x,i=r.y;if(!n)return{x:o,y:i};var a=function(t,e){var n=t.style,r=tu(t,e),o=et((n.labels||{}).padding,t)||0,i=rt(r);return{x:o*Math.cos(i),y:-o*Math.sin(i)}}(t,e);return{x:o+a.x,y:i+a.y}}(t,p),x=b.x,O=b.y,_=function(t,e){if(t.polar)return{};var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.horizontal,r=et((t.style.labels||{}).padding,t)||0,o=e._y<0?-1:1;return{x:n?o*r:0,y:n?0:-1*o*r}}(t,e);return{dx:n.x,dy:n.y}}(t,p),w={angle:v,data:r,datum:p,disableInlineStyles:f,horizontal:i,index:e,polar:a,scale:n,labelPlacement:g,text:m,textAnchor:d,verticalAnchor:y,x,y:O,dx:_.dx,dy:_.dy,width:u,height:c,style:o.labels};if(!Q(s))return w;var j=l&&l.tooltip||{};return G()({},w,$(j,["style"]))}const nu=Math.PI,ru=2*nu,ou=1e-6,iu=ru-ou;function au(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function uu(){return new au}au.prototype=uu.prototype={constructor:au,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,e,n,r,o){t=+t,e=+e,n=+n,r=+r,o=+o;var i=this._x1,a=this._y1,u=n-t,c=r-e,l=i-t,s=a-e,f=l*l+s*s;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(f>ou)if(Math.abs(s*u-c*l)>ou&&o){var p=n-i,h=r-a,d=u*u+c*c,y=p*p+h*h,v=Math.sqrt(d),m=Math.sqrt(f),g=o*Math.tan((nu-Math.acos((d+f-y)/(2*v*m)))/2),b=g/m,x=g/v;Math.abs(b-1)>ou&&(this._+="L"+(t+b*l)+","+(e+b*s)),this._+="A"+o+","+o+",0,0,"+ +(s*p>l*h)+","+(this._x1=t+x*u)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,o,i){t=+t,e=+e,i=!!i;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,l=e+u,s=1^i,f=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>ou||Math.abs(this._y1-l)>ou)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%ru+ru),f>iu?this._+="A"+n+","+n+",0,1,"+s+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>ou&&(this._+="A"+n+","+n+",0,"+ +(f>=nu)+","+s+","+(this._x1=t+n*Math.cos(o))+","+(this._y1=e+n*Math.sin(o))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const cu=uu;var lu=Array.prototype.slice;function su(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function fu(t){return function(){return t}}function pu(t){this._context=t}function hu(t){return new pu(t)}function du(t){return t[0]}function yu(t){return t[1]}function vu(t,e){var n=fu(!0),r=null,o=hu,i=null;function a(a){var u,c,l,s=(a=su(a)).length,f=!1;for(null==r&&(i=o(l=cu())),u=0;u<=s;++u)!(u<s&&n(c=a[u],u,a))===f&&((f=!f)?i.lineStart():i.lineEnd()),f&&i.point(+t(c,u,a),+e(c,u,a));if(l)return i=null,l+""||null}return t="function"==typeof t?t:void 0===t?du:fu(t),e="function"==typeof e?e:void 0===e?yu:fu(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:fu(!!t),a):n},a.curve=function(t){return arguments.length?(o=t,null!=r&&(i=o(r)),a):o},a.context=function(t){return arguments.length?(null==t?r=i=null:i=o(r=t),a):r},a}function mu(t,e,n){var r=null,o=fu(!0),i=null,a=hu,u=null;function c(c){var l,s,f,p,h,d=(c=su(c)).length,y=!1,v=new Array(d),m=new Array(d);for(null==i&&(u=a(h=cu())),l=0;l<=d;++l){if(!(l<d&&o(p=c[l],l,c))===y)if(y=!y)s=l,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),f=l-1;f>=s;--f)u.point(v[f],m[f]);u.lineEnd(),u.areaEnd()}y&&(v[l]=+t(p,l,c),m[l]=+e(p,l,c),u.point(r?+r(p,l,c):v[l],n?+n(p,l,c):m[l]))}if(h)return u=null,h+""||null}function l(){return vu().defined(o).curve(a).context(i)}return t="function"==typeof t?t:void 0===t?du:fu(+t),e="function"==typeof e?e:fu(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?yu:fu(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:fu(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:fu(+t),c):n},c.lineX0=c.lineY0=function(){return l().x(t).y(e)},c.lineY1=function(){return l().x(t).y(n)},c.lineX1=function(){return l().x(r).y(e)},c.defined=function(t){return arguments.length?(o="function"==typeof t?t:fu(!!t),c):o},c.curve=function(t){return arguments.length?(a=t,null!=i&&(u=a(i)),c):a},c.context=function(t){return arguments.length?(null==t?i=u=null:u=a(i=t),c):i},c}pu.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var gu=xu(hu);function bu(t){this._curve=t}function xu(t){function e(e){return new bu(t(e))}return e._curve=t,e}function Ou(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(xu(t)):e()._curve},t}function _u(){return Ou(vu().curve(gu))}function wu(){var t=mu().curve(gu),e=t.curve,n=t.lineX0,r=t.lineX1,o=t.lineY0,i=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 Ou(n())},delete t.lineX0,t.lineEndAngle=function(){return Ou(r())},delete t.lineX1,t.lineInnerRadius=function(){return Ou(o())},delete t.lineY0,t.lineOuterRadius=function(){return Ou(i())},delete t.lineY1,t.curve=function(t){return arguments.length?e(xu(t)):e()._curve},t}bu.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};const ju=Math.abs,Pu=Math.atan2,Au=Math.cos,Mu=Math.max,Eu=Math.min,Cu=Math.sin,Su=Math.sqrt,ku=1e-12,Du=Math.PI,Tu=Du/2,Ru=2*Du;function Lu(t){return t>1?0:t<-1?Du:Math.acos(t)}function Iu(t){return t>=1?Tu:t<=-1?-Tu:Math.asin(t)}function Nu(t){return t.innerRadius}function zu(t){return t.outerRadius}function Bu(t){return t.startAngle}function Wu(t){return t.endAngle}function Uu(t){return t&&t.padAngle}function Vu(t,e,n,r,o,i,a,u){var c=n-t,l=r-e,s=a-o,f=u-i,p=f*c-s*l;if(!(p*p<ku))return[t+(p=(s*(e-i)-f*(t-o))/p)*c,e+p*l]}function Fu(t,e,n,r,o,i,a){var u=t-n,c=e-r,l=(a?i:-i)/Su(u*u+c*c),s=l*c,f=-l*u,p=t+s,h=e+f,d=n+s,y=r+f,v=(p+d)/2,m=(h+y)/2,g=d-p,b=y-h,x=g*g+b*b,O=o-i,_=p*y-d*h,w=(b<0?-1:1)*Su(Mu(0,O*O*x-_*_)),j=(_*b-g*w)/x,P=(-_*g-b*w)/x,A=(_*b+g*w)/x,M=(-_*g+b*w)/x,E=j-v,C=P-m,S=A-v,k=M-m;return E*E+C*C>S*S+k*k&&(j=A,P=M),{cx:j,cy:P,x01:-s,y01:-f,x11:j*(o/O-1),y11:P*(o/O-1)}}function Hu(){var t=Nu,e=zu,n=fu(0),r=null,o=Bu,i=Wu,a=Uu,u=null;function c(){var c,l,s=+t.apply(this,arguments),f=+e.apply(this,arguments),p=o.apply(this,arguments)-Tu,h=i.apply(this,arguments)-Tu,d=ju(h-p),y=h>p;if(u||(u=c=cu()),f<s&&(l=f,f=s,s=l),f>ku)if(d>Ru-ku)u.moveTo(f*Au(p),f*Cu(p)),u.arc(0,0,f,p,h,!y),s>ku&&(u.moveTo(s*Au(h),s*Cu(h)),u.arc(0,0,s,h,p,y));else{var v,m,g=p,b=h,x=p,O=h,_=d,w=d,j=a.apply(this,arguments)/2,P=j>ku&&(r?+r.apply(this,arguments):Su(s*s+f*f)),A=Eu(ju(f-s)/2,+n.apply(this,arguments)),M=A,E=A;if(P>ku){var C=Iu(P/s*Cu(j)),S=Iu(P/f*Cu(j));(_-=2*C)>ku?(x+=C*=y?1:-1,O-=C):(_=0,x=O=(p+h)/2),(w-=2*S)>ku?(g+=S*=y?1:-1,b-=S):(w=0,g=b=(p+h)/2)}var k=f*Au(g),D=f*Cu(g),T=s*Au(O),R=s*Cu(O);if(A>ku){var L,I=f*Au(b),N=f*Cu(b),z=s*Au(x),B=s*Cu(x);if(d<Du&&(L=Vu(k,D,z,B,I,N,T,R))){var W=k-L[0],U=D-L[1],V=I-L[0],F=N-L[1],H=1/Cu(Lu((W*V+U*F)/(Su(W*W+U*U)*Su(V*V+F*F)))/2),q=Su(L[0]*L[0]+L[1]*L[1]);M=Eu(A,(s-q)/(H-1)),E=Eu(A,(f-q)/(H+1))}}w>ku?E>ku?(v=Fu(z,B,k,D,f,E,y),m=Fu(I,N,T,R,f,E,y),u.moveTo(v.cx+v.x01,v.cy+v.y01),E<A?u.arc(v.cx,v.cy,E,Pu(v.y01,v.x01),Pu(m.y01,m.x01),!y):(u.arc(v.cx,v.cy,E,Pu(v.y01,v.x01),Pu(v.y11,v.x11),!y),u.arc(0,0,f,Pu(v.cy+v.y11,v.cx+v.x11),Pu(m.cy+m.y11,m.cx+m.x11),!y),u.arc(m.cx,m.cy,E,Pu(m.y11,m.x11),Pu(m.y01,m.x01),!y))):(u.moveTo(k,D),u.arc(0,0,f,g,b,!y)):u.moveTo(k,D),s>ku&&_>ku?M>ku?(v=Fu(T,R,I,N,s,-M,y),m=Fu(k,D,z,B,s,-M,y),u.lineTo(v.cx+v.x01,v.cy+v.y01),M<A?u.arc(v.cx,v.cy,M,Pu(v.y01,v.x01),Pu(m.y01,m.x01),!y):(u.arc(v.cx,v.cy,M,Pu(v.y01,v.x01),Pu(v.y11,v.x11),!y),u.arc(0,0,s,Pu(v.cy+v.y11,v.cx+v.x11),Pu(m.cy+m.y11,m.cx+m.x11),y),u.arc(m.cx,m.cy,M,Pu(m.y11,m.x11),Pu(m.y01,m.x01),!y))):u.arc(0,0,s,O,x,y):u.lineTo(T,R)}else u.moveTo(0,0);if(u.closePath(),c)return u=null,c+""||null}return c.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-Du/2;return[Au(r)*n,Cu(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:fu(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:fu(+t),c):r},c.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:fu(+t),c):o},c.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:fu(+t),c):i},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:fu(+t),c):a},c.context=function(t){return arguments.length?(u=null==t?null:t,c):u},c}function qu(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function Gu(t){return t}function Ku(){var t=Gu,e=qu,n=null,r=fu(0),o=fu(Ru),i=fu(0);function a(a){var u,c,l,s,f,p=(a=su(a)).length,h=0,d=new Array(p),y=new Array(p),v=+r.apply(this,arguments),m=Math.min(Ru,Math.max(-Ru,o.apply(this,arguments)-v)),g=Math.min(Math.abs(m)/p,i.apply(this,arguments)),b=g*(m<0?-1:1);for(u=0;u<p;++u)(f=y[d[u]=u]=+t(a[u],u,a))>0&&(h+=f);for(null!=e?d.sort((function(t,n){return e(y[t],y[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),u=0,l=h?(m-p*b)/h:0;u<p;++u,v=s)c=d[u],s=v+((f=y[c])>0?f*l:0)+b,y[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:s,padAngle:g};return y}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:fu(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:fu(+t),a):r},a.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:fu(+t),a):o},a.padAngle=function(t){return arguments.length?(i="function"==typeof t?t:fu(+t),a):i},a}function $u(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}class Yu{constructor(t,e){this._context=t,this._x=e}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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}class Xu{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,e){if(t=+t,e=+e,0==this._point++)this._x0=t,this._y0=e;else{const n=$u(this._x0,this._y0),r=$u(this._x0,this._y0=(this._y0+e)/2),o=$u(t,this._y0),i=$u(t,e);this._context.moveTo(...n),this._context.bezierCurveTo(...r,...o,...i)}}}function Zu(t){return new Yu(t,!0)}function Qu(t){return new Yu(t,!1)}function Ju(t){return new Xu(t)}function tc(t){return t.source}function ec(t){return t.target}function nc(t){let e=tc,n=ec,r=du,o=yu,i=null,a=null;function u(){let u;const c=lu.call(arguments),l=e.apply(this,c),s=n.apply(this,c);if(null==i&&(a=t(u=cu())),a.lineStart(),c[0]=l,a.point(+r.apply(this,c),+o.apply(this,c)),c[0]=s,a.point(+r.apply(this,c),+o.apply(this,c)),a.lineEnd(),u)return a=null,u+""||null}return u.source=function(t){return arguments.length?(e=t,u):e},u.target=function(t){return arguments.length?(n=t,u):n},u.x=function(t){return arguments.length?(r="function"==typeof t?t:fu(+t),u):r},u.y=function(t){return arguments.length?(o="function"==typeof t?t:fu(+t),u):o},u.context=function(e){return arguments.length?(null==e?i=a=null:a=t(i=e),u):i},u}function rc(){return nc(Zu)}function oc(){return nc(Qu)}function ic(){const t=nc(Ju);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const ac=Su(3),uc={draw(t,e){const n=.59436*Su(e+Eu(e/28,.75)),r=n/2,o=r*ac;t.moveTo(0,n),t.lineTo(0,-n),t.moveTo(-o,-r),t.lineTo(o,r),t.moveTo(-o,r),t.lineTo(o,-r)}},cc={draw(t,e){const n=Su(e/Du);t.moveTo(n,0),t.arc(0,0,n,0,Ru)}},lc={draw(t,e){const n=Su(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},sc=Su(1/3),fc=2*sc,pc={draw(t,e){const n=Su(e/fc),r=n*sc;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},hc={draw(t,e){const n=.62625*Su(e);t.moveTo(0,-n),t.lineTo(n,0),t.lineTo(0,n),t.lineTo(-n,0),t.closePath()}},dc={draw(t,e){const n=.87559*Su(e-Eu(e/7,2));t.moveTo(-n,0),t.lineTo(n,0),t.moveTo(0,n),t.lineTo(0,-n)}},yc={draw(t,e){const n=Su(e),r=-n/2;t.rect(r,r,n,n)}},vc={draw(t,e){const n=.4431*Su(e);t.moveTo(n,n),t.lineTo(n,-n),t.lineTo(-n,-n),t.lineTo(-n,n),t.closePath()}},mc=Cu(Du/10)/Cu(7*Du/10),gc=Cu(Ru/10)*mc,bc=-Au(Ru/10)*mc,xc={draw(t,e){const n=Su(.8908130915292852*e),r=gc*n,o=bc*n;t.moveTo(0,-n),t.lineTo(r,o);for(let e=1;e<5;++e){const i=Ru*e/5,a=Au(i),u=Cu(i);t.lineTo(u*n,-a*n),t.lineTo(a*r-u*o,u*r+a*o)}t.closePath()}},Oc=Su(3),_c={draw(t,e){const n=-Su(e/(3*Oc));t.moveTo(0,2*n),t.lineTo(-Oc*n,-n),t.lineTo(Oc*n,-n),t.closePath()}},wc=Su(3),jc={draw(t,e){const n=.6824*Su(e),r=n/2,o=n*wc/2;t.moveTo(0,-n),t.lineTo(o,r),t.lineTo(-o,r),t.closePath()}},Pc=-.5,Ac=Su(3)/2,Mc=1/Su(12),Ec=3*(Mc/2+1),Cc={draw(t,e){const n=Su(e/Ec),r=n/2,o=n*Mc,i=r,a=n*Mc+n,u=-i,c=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(u,c),t.lineTo(Pc*r-Ac*o,Ac*r+Pc*o),t.lineTo(Pc*i-Ac*a,Ac*i+Pc*a),t.lineTo(Pc*u-Ac*c,Ac*u+Pc*c),t.lineTo(Pc*r+Ac*o,Pc*o-Ac*r),t.lineTo(Pc*i+Ac*a,Pc*a-Ac*i),t.lineTo(Pc*u+Ac*c,Pc*c-Ac*u),t.closePath()}},Sc={draw(t,e){const n=.6189*Su(e-Eu(e/6,1.7));t.moveTo(-n,-n),t.lineTo(n,n),t.moveTo(-n,n),t.lineTo(n,-n)}},kc=[cc,lc,pc,yc,xc,_c,Cc],Dc=[cc,dc,Sc,jc,uc,vc,hc];function Tc(t,e){let n=null;function r(){let r;if(n||(n=r=cu()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return t="function"==typeof t?t:fu(t||cc),e="function"==typeof e?e:fu(void 0===e?64:+e),r.type=function(e){return arguments.length?(t="function"==typeof e?e:fu(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:fu(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function Rc(){}function Lc(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ic(t){this._context=t}function Nc(t){return new Ic(t)}function zc(t){this._context=t}function Bc(t){return new zc(t)}function Wc(t){this._context=t}function Uc(t){return new Wc(t)}function Vc(t,e){this._basis=new Ic(t),this._beta=e}Ic.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:Lc(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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Lc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},zc.prototype={areaStart:Rc,areaEnd:Rc,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Lc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Wc.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Lc(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Vc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,o=t[0],i=e[0],a=t[n]-o,u=e[n]-i,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(o+r*a),this._beta*e[c]+(1-this._beta)*(i+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Fc=function t(e){function n(t){return 1===e?new Ic(t):new Vc(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Hc(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function qc(t,e){this._context=t,this._k=(1-e)/6}qc.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:Hc(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Hc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Gc=function t(e){function n(t){return new qc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Kc(t,e){this._context=t,this._k=(1-e)/6}Kc.prototype={areaStart:Rc,areaEnd:Rc,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Hc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $c=function t(e){function n(t){return new Kc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Yc(t,e){this._context=t,this._k=(1-e)/6}Yc.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Hc(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Xc=function t(e){function n(t){return new Yc(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Zc(t,e,n){var r=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>ku){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>ku){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*l+t._x1*t._l23_2a-e*t._l12_2a)/s,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,o,i,a,t._x2,t._y2)}function Qc(t,e){this._context=t,this._alpha=e}Qc.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Zc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Jc=function t(e){function n(t){return e?new Qc(t,e):new qc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tl(t,e){this._context=t,this._alpha=e}tl.prototype={areaStart:Rc,areaEnd:Rc,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Zc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const el=function t(e){function n(t){return e?new tl(t,e):new Kc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function nl(t,e){this._context=t,this._alpha=e}nl.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:Zc(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const rl=function t(e){function n(t){return e?new nl(t,e):new Yc(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ol(t){this._context=t}function il(t){return new ol(t)}function al(t){return t<0?-1:1}function ul(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),u=(i*o+a*r)/(r+o);return(al(i)+al(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(u))||0}function cl(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ll(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,u=(i-r)/3;t._context.bezierCurveTo(r+u,o+u*e,i-u,a-u*n,i,a)}function sl(t){this._context=t}function fl(t){this._context=new pl(t)}function pl(t){this._context=t}function hl(t){return new sl(t)}function dl(t){return new fl(t)}function yl(t){this._context=t}function vl(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)o[e]=1,i[e]=4,a[e]=4*t[e]+2*t[e+1];for(o[r-1]=2,i[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=o[e]/i[e-1],i[e]-=n,a[e]-=n*a[e-1];for(o[r-1]=a[r-1]/i[r-1],e=r-2;e>=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e<r-1;++e)i[e]=2*t[e+1]-o[e+1];return[o,i]}function ml(t){return new yl(t)}function gl(t,e){this._context=t,this._t=e}function bl(t){return new gl(t,.5)}function xl(t){return new gl(t,0)}function Ol(t){return new gl(t,1)}function _l(t,e){if((o=t.length)>1)for(var n,r,o,i=1,a=t[e[0]],u=a.length;i<o;++i)for(r=a,a=t[e[i]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function wl(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function jl(t,e){return t[e]}function Pl(t){const e=[];return e.key=t,e}function Al(){var t=fu([]),e=wl,n=_l,r=jl;function o(o){var i,a,u=Array.from(t.apply(this,arguments),Pl),c=u.length,l=-1;for(const t of o)for(i=0,++l;i<c;++i)(u[i][l]=[0,+r(t,u[i].key,l,o)]).data=t;for(i=0,a=su(e(u));i<c;++i)u[a[i]].index=i;return n(u,a),u}return o.keys=function(e){return arguments.length?(t="function"==typeof e?e:fu(Array.from(e)),o):t},o.value=function(t){return arguments.length?(r="function"==typeof t?t:fu(+t),o):r},o.order=function(t){return arguments.length?(e=null==t?wl:"function"==typeof t?t:fu(Array.from(t)),o):e},o.offset=function(t){return arguments.length?(n=null==t?_l:t,o):n},o}function Ml(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=t[n][i][1]||0;if(o)for(n=0;n<r;++n)t[n][i][1]/=o}_l(t,e)}}function El(t,e){if((u=t.length)>0)for(var n,r,o,i,a,u,c=0,l=t[e[0]].length;c<l;++c)for(i=a=0,n=0;n<u;++n)(o=(r=t[e[n]][c])[1]-r[0])>0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)}function Cl(t,e){if((n=t.length)>0){for(var n,r=0,o=t[e[0]],i=o.length;r<i;++r){for(var a=0,u=0;a<n;++a)u+=t[a][r][1]||0;o[r][1]+=o[r][0]=-u/2}_l(t,e)}}function Sl(t,e){if((o=t.length)>0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var u=0,c=0,l=0;u<o;++u){for(var s=t[e[u]],f=s[a][1]||0,p=(f-(s[a-1][1]||0))/2,h=0;h<u;++h){var d=t[e[h]];p+=(d[a][1]||0)-(d[a-1][1]||0)}c+=f,l+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=l/c)}n[a-1][1]+=n[a-1][0]=i,_l(t,e)}}function kl(t){var e=t.map(Dl);return wl(t).sort((function(t,n){return e[t]-e[n]}))}function Dl(t){for(var e,n=-1,r=0,o=t.length,i=-1/0;++n<o;)(e=+t[n][1])>i&&(i=e,r=n);return r}function Tl(t){var e=t.map(Rl);return wl(t).sort((function(t,n){return e[t]-e[n]}))}function Rl(t){for(var e,n=0,r=-1,o=t.length;++r<o;)(e=+t[r][1])&&(n+=e);return n}function Ll(t){return Tl(t).reverse()}function Il(t){var e,n,r=t.length,o=t.map(Rl),i=kl(t),a=0,u=0,c=[],l=[];for(e=0;e<r;++e)n=i[e],a<u?(a+=o[n],c.push(n)):(u+=o[n],l.push(n));return l.reverse().concat(c)}function Nl(t){return wl(t).reverse()}ol.prototype={areaStart:Rc,areaEnd:Rc,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},sl.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:ll(this,this._t0,cl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ll(this,cl(this,n=ul(this,t,e)),n);break;default:ll(this,this._t0,n=ul(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(fl.prototype=Object.create(sl.prototype)).point=function(t,e){sl.prototype.point.call(this,e,t)},pl.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,o,i){this._context.bezierCurveTo(e,t,r,n,i,o)}},yl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=vl(t),o=vl(e),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},gl.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var zl=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},Bl=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},Wl=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},Ul=function(t){return"curve".concat(function(t){return t&&t[0].toUpperCase()+t.slice(1)}(t))},Vl=function(t){var e=t.interpolation;if("function"==typeof e)return e;if("string"==typeof e){var n=t.polar,r=t.openCurve,o=(void 0===r?!n:r)?Ul(e):function(t){return"".concat(Ul(t),"Closed")}(e);return s[o]}return hu},Fl=function(t){var e=t.polar,n=t.scale,r=t.horizontal;return e?_u().defined(zl).curve(Vl(t)).angle(function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}(n)).radius(Wl(n)):vu().defined(zl).curve(Vl(t)).x(r?Wl(n):Bl(n)).y(r?Bl(n):Wl(n))},Hl=["desc","id","tabIndex","origin"];function ql(){return ql=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ql.apply(this,arguments)}function Gl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Kl(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $l=(0,P.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Hl)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Gl(Object(n),!0).forEach((function(e){Kl(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("path",ql({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("path",ql({},u,{ref:e}))}));function Yl(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Xl(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xl(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xl(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Zl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Ql(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jl={startsWith:["data-","aria-"],exactMatch:[]};function ts(t,e){if(null==t)throw new Error(e)}var es=function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zl(Object(n),!0).forEach((function(e){Ql(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zl(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t);return Object.fromEntries(Object.entries(e).filter((function(t){return function(t){return!(!function(t){var e=!1;return Jl.startsWith.forEach((function(n){new RegExp("\\b(".concat(n,")(\\w|-)+"),"g").test(t)&&(e=!0)})),e}(t)&&!function(t){return Jl.exactMatch.includes(t)}(t))}(Yl(t,1)[0])})).map((function(e){var n=Yl(e,2);return[n[0],et(n[1],t)]})))},ns=function(t,e){return P.cloneElement(t,es(e))};function rs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function os(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rs(Object(n),!0).forEach((function(e){is(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function is(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var as=function(t){return null!=(void 0!==t._y1?t._y1:t._y)&&null!==t._y0},us=function(t){return function(e){return t.x(void 0!==e._x1?e._x1:e._x)}},cs=function(t){return function(e){return t.y(void 0!==e._y1?e._y1:e._y)}},ls=function(t){return function(e){return t.y(e._y0)}},ss={groupComponent:A().createElement("g",null),pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},fs=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({fill:"black"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(os(os({},ss),t)),n=e.ariaLabel,r=e.role,o=e.shapeRendering,i=e.className,a=e.polar,u=e.origin,c=e.data,l=e.pathComponent,s=e.events,f=e.groupComponent,p=e.clipPath,h=e.id,d=e.style,y=e.desc,v=e.tabIndex,m=es(e),g=a&&u?"translate(".concat(u.x,", ").concat(u.y,")"):void 0,b=e.transform||g,x=d.stroke&&"none"!==d.stroke&&"transparent"!==d.stroke,O=function(t){var e=t.polar,n=t.scale,r=Vl(t);return e?wu().defined(as).curve(r).angle(function(t){return function(e){return-1*t.x(void 0!==e._x1?e._x1:e._x)+Math.PI/2}}(n)).outerRadius(cs(n)).innerRadius(ls(n)):function(t){var e=t.horizontal,n=t.scale,r=Vl(t);return e?mu().defined(as).curve(r).x0(ls(n)).x1(cs(n)).y(us(n)):mu().defined(as).curve(r).x(us(n)).y1(cs(n)).y0(ls(n))}(t)}(e),_=x&&Fl(e),w=d.stroke?"none":d.fill,j=os(os({"aria-label":n,className:i,role:r,shapeRendering:o,transform:b},s),{},{clipPath:p,tabIndex:v}),P=A().cloneElement(l,Object.assign({key:"".concat(h,"-area"),style:Object.assign({},d,{stroke:w}),d:O(c),desc:y,tabIndex:v},j,m)),M=x?A().cloneElement(l,Object.assign({key:"".concat(h,"-area-stroke"),style:Object.assign({},d,{fill:"none"}),d:_(c)},j)):null;return x?A().cloneElement(f,m,[P,M]):P},ps=r(7709),hs=r.n(ps),ds=r(660),ys=r.n(ds);function vs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ms(t,e){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ms(t,e)}function gs(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function bs(t){return bs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bs(t)}var xs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ms(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=bs(r);if(o){var n=bs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return gs(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).map=void 0,e.index=void 0,e.portalRegister=function(){return++e.index},e.portalUpdate=function(t,n){e.map[t]=n,e.forceUpdate()},e.portalDeregister=function(t){delete e.map[t],e.forceUpdate()},e.map={},e.index=1,e}return e=a,(n=[{key:"getChildren",value:function(){var t=this;return Object.keys(this.map).map((function(e){var n=t.map[e];return n?A().cloneElement(n,{key:e}):n}))}},{key:"render",value:function(){return A().createElement("svg",this.props,this.getChildren())}}])&&vs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);xs.displayName="Portal";var Os=A().createContext({});Os.displayName="PortalContext";var _s,ws,js=0,Ps=0,As=0,Ms=0,Es=0,Cs=0,Ss="object"==typeof performance&&performance.now?performance:Date,ks="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ds(){return Es||(ks(Ts),Es=Ss.now()+Cs)}function Ts(){Es=0}function Rs(){this._call=this._time=this._next=null}function Ls(t,e,n){var r=new Rs;return r.restart(t,e,n),r}function Is(){Es=(Ms=Ss.now())+Cs,js=Ps=0;try{!function(){Ds(),++js;for(var t,e=_s;e;)(t=Es-e._time)>=0&&e._call.call(void 0,t),e=e._next;--js}()}finally{js=0,function(){for(var t,e,n=_s,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:_s=e);ws=t,zs(r)}(),Es=0}}function Ns(){var t=Ss.now(),e=t-Ms;e>1e3&&(Cs-=e,Ms=t)}function zs(t){js||(Ps&&(Ps=clearTimeout(Ps)),t-Es>24?(t<1/0&&(Ps=setTimeout(Is,t-Ss.now()-Cs)),As&&(As=clearInterval(As))):(As||(Ms=Ss.now(),As=setInterval(Ns,1e3)),js=1,ks(Is)))}function Bs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}Rs.prototype=Ls.prototype={constructor:Rs,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ds():+n)+(null==e?0:+e),this._next||ws===this||(ws?ws._next=this:_s=this,ws=this),this._call=t,this._time=n,zs()},stop:function(){this._call&&(this._call=null,this._time=1/0,zs())}};var Ws=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){e.subscribers.forEach((function(t){t.callback(Ds()-t.startTime,t.duration)}))},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}var e,n;return e=t,(n=[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=Ls(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(t,e){var n=this.subscribers.push({startTime:Ds(),callback:t,duration:this.shouldAnimate?e:0});return this.activeSubscriptions++,this.start(),n}},{key:"unsubscribe",value:function(t){null!==t&&this.subscribers[t-1]&&(delete this.subscribers[t-1],this.activeSubscriptions--),0===this.activeSubscriptions&&this.stop()}}])&&Bs(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Us=A().createContext({transitionTimer:new Ws,animationTimer:new Ws});Us.displayName="TimerContext";const Vs=Us;function Fs(){return Fs=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Fs.apply(this,arguments)}function Hs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function qs(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Hs(Object(n),!0).forEach((function(e){Gs(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hs(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Gs(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ks(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $s(t,e){return $s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$s(t,e)}function Ys(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Xs(t){return Xs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Xs(t)}var Zs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$s(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Xs(r);if(o){var n=Xs(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ys(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).containerId=void 0,e.portalRef=void 0,e.containerRef=void 0,e.shouldHandleWheel=void 0,e.savePortalRef=function(t){return e.portalRef=t,t},e.portalUpdate=function(t,n){return e.portalRef.portalUpdate(t,n)},e.portalRegister=function(){return e.portalRef.portalRegister()},e.portalDeregister=function(t){return e.portalRef.portalDeregister(t)},e.saveContainerRef=function(t){return lt(e.props.containerRef)&&e.props.containerRef(t),e.containerRef=t,t},e.handleWheel=function(t){return t.preventDefault()},e.containerId=hs()(t)&&void 0!==t.containerId?t.containerId:ys()("victory-container-"),e.shouldHandleWheel=!!(t&&t.events&&t.events.onWheel),e}return e=a,(n=[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(t){return"".concat(this.containerId,"-").concat(t)}},{key:"getChildren",value:function(t){return t.children}},{key:"getOUIAProps",value:function(t){var e=t.ouiaId,n=t.ouiaSafe,r=t.ouiaType;return qs(qs(qs({},e&&{"data-ouia-component-id":e}),r&&{"data-ouia-component-type":r}),void 0!==n&&{"data-ouia-safe":n})}},{key:"renderContainer",value:function(t,e,n){var r=t.title,o=t.desc,i=t.portalComponent,a=t.className,u=t.width,c=t.height,l=t.portalZIndex,s=t.responsive,f=this.getChildren(t),p=s?{width:"100%",height:"100%"}:{width:u,height:c},h=Object.assign({pointerEvents:"none",touchAction:"none",position:"relative"},p),d=Object.assign({zIndex:l,position:"absolute",top:0,left:0},p),y=Object.assign({pointerEvents:"all"},p),v=Object.assign({overflow:"visible"},p),m={width:u,height:c,viewBox:e.viewBox,preserveAspectRatio:e.preserveAspectRatio,style:v};return A().createElement(Os.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},A().createElement("div",Fs({style:G()({},n,h),className:a,ref:this.saveContainerRef},this.getOUIAProps(t)),A().createElement("svg",Fs({},e,{style:y}),r?A().createElement("title",{id:this.getIdForElement("title")},r):null,o?A().createElement("desc",{id:this.getIdForElement("desc")},o):null,f),A().createElement("div",{style:d},A().cloneElement(i,qs(qs({},m),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.responsive,o=t.events,i=t.title,a=t.desc,u=t.tabIndex,c=t.preserveAspectRatio,l=t.role,s=r?this.props.style:$(this.props.style,["height","width"]),f=es(this.props),p=Object.assign(qs({width:e,height:n,tabIndex:u,role:l,"aria-labelledby":[i&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[a&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:r?"0 0 ".concat(e," ").concat(n):void 0,preserveAspectRatio:r?c:void 0},f),o);return this.renderContainer(this.props,p,s)}}])&&Ks(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Zs.displayName="VictoryContainer",Zs.role="container",Zs.defaultProps={className:"VictoryContainer",portalComponent:A().createElement(xs,null),portalZIndex:99,responsive:!0,role:"img"},Zs.contextType=Vs;var Qs=function(t){var e;return A().createElement("defs",null,A().createElement("clipPath",{id:null===(e=t.clipId)||void 0===e?void 0:e.toString()},t.children))},Js=["desc","id","tabIndex","origin"];function tf(){return tf=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},tf.apply(this,arguments)}function ef(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rf=(0,P.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Js)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ef(Object(n),!0).forEach((function(e){nf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("circle",tf({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("circle",tf({},u,{ref:e}))})),of=["desc","id","tabIndex","origin"];function af(){return af=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},af.apply(this,arguments)}function uf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function cf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var lf=(0,P.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,of)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?uf(Object(n),!0).forEach((function(e){cf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):uf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("rect",af({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("rect",af({},u,{ref:e}))}));function sf(t){return function(t){if(Array.isArray(t))return ff(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ff(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ff(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ff(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pf(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hf(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pf(Object(n),!0).forEach((function(e){df(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pf(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function df(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vf(t,e){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},vf(t,e)}function mf(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function gf(t){return gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},gf(t)}var bf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vf(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=gf(r);if(o){var n=gf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return mf(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).clipId=void 0,e.clipId=hs()(t)&&void 0!==t.clipId?t.clipId:ys()("victory-clip-"),e}return e=a,n=[{key:"calculateAttributes",value:function(t){var e=t.polar,n=t.origin,r=t.clipWidth,o=void 0===r?0:r,i=t.clipHeight,a=void 0===i?0:i,u=t.translateX,c=void 0===u?0:u,l=t.translateY,s=void 0===l?0:l,f=Z({padding:t.clipPadding}),p=t.radius||it(t);return{x:(e?n.x:c)-f.left,y:(e?n.y:s)-f.top,width:Math.max((e?p:o)+f.left+f.right,0),height:Math.max((e?p:a)+f.top+f.bottom,0)}}},{key:"renderClippedGroup",value:function(t,e){var n=es(t),r=t.style,o=t.events,i=t.transform,a=t.children,u=t.className,c=t.groupComponent,l=t.tabIndex,s=this.renderClipComponent(t,e),f=Object.assign({className:u,style:r,transform:i,key:"clipped-group-".concat(e),clipPath:"url(#".concat(e,")")},o);return A().cloneElement(c,hf(hf({},f),{},{tabIndex:l},n),[s].concat(sf(A().Children.toArray(a))))}},{key:"renderGroup",value:function(t){var e=t.style,n=t.events,r=t.transform,o=t.children,i=t.className,a=t.groupComponent,u=t.tabIndex;return A().cloneElement(a,Object.assign({className:i,style:e,transform:r,"aria-label":t["aria-label"],tabIndex:u},n),o)}},{key:"renderClipComponent",value:function(t,e){var n,r=t.polar,o=t.origin,i=t.clipWidth,a=void 0===i?0:i,u=t.clipHeight,c=void 0===u?0:u,l=t.translateX,s=void 0===l?0:l,f=t.translateY,p=void 0===f?0:f,h=t.circleComponent,d=t.rectComponent,y=t.clipPathComponent,v=Z({padding:t.clipPadding}),m=v.top,g=v.bottom,b=v.left,x=v.right;if(r){var O=t.radius||it(t),_={r:Math.max(O+b+x,O+m+g,0),cx:o.x-b,cy:o.y-m};n=A().cloneElement(h,_)}else{var w={x:s-b,y:p-m,width:Math.max(a+b+x,0),height:Math.max(c+m+g,0)};n=A().cloneElement(d,w)}return A().cloneElement(y,Object.assign({key:"clip-path-".concat(e)},t,{clipId:e}),n)}},{key:"getClipValue",value:function(t,e){var n={x:t.clipWidth,y:t.clipHeight};if(void 0!==n[e])return n[e];var r=ut(t,e);return r&&Math.abs(r[0]-r[1])||void 0}},{key:"getTranslateValue",value:function(t,e){var n={x:t.translateX,y:t.translateY};if(void 0!==n[e])return n[e];var r=ut(t,e);return r?Math.min.apply(Math,sf(r)):void 0}},{key:"render",value:function(){var t=this.getClipValue(this.props,"y"),e=this.getClipValue(this.props,"x");if(void 0===e||void 0===t)return this.renderGroup(this.props);var n=this.getTranslateValue(this.props,"x"),r=this.getTranslateValue(this.props,"y"),o=G()({},this.props,{clipHeight:t,clipWidth:e,translateX:n,translateY:r});return this.renderClippedGroup(o,this.clipId)}}],n&&yf(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function xf(t){}function Of(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wf(t,e){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wf(t,e)}function jf(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Pf(t){return Pf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pf(t)}bf.displayName="VictoryClipContainer",bf.role="container",bf.defaultProps={circleComponent:A().createElement(rf,null),rectComponent:A().createElement(lf,null),clipPathComponent:A().createElement(Qs,null),groupComponent:A().createElement("g",null)};var Af=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wf(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Pf(r);if(o){var n=Pf(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return jf(this,t)});function a(){var t;Of(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).checkedContext=void 0,t.portalKey=void 0,t.renderInPlace=void 0,t.element=void 0,t}return e=a,(n=[{key:"componentDidMount",value:function(){this.checkedContext||("function"!=typeof this.context.portalUpdate&&(this.renderInPlace=!0),this.checkedContext=!0),this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(t){return this.renderInPlace?t:(this.element=t,null)}},{key:"render",value:function(){var t=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,e=this.props.groupComponent,n=t&&t.props||{},r=n.groupComponent?{groupComponent:e,standalone:!1}:{},o=G()(r,n,$(this.props,["children","groupComponent"])),i=t&&A().cloneElement(t,o);return this.renderPortal(i)}}])&&_f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Af.displayName="VictoryPortal",Af.role="portal",Af.defaultProps={groupComponent:A().createElement("g",null)},Af.contextType=Os;var Mf=["children","desc","id","origin","tabIndex","title"];function Ef(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Cf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Sf=function(t){var e,n=t.children,r=t.desc,o=t.id,i=(t.origin,t.tabIndex),a=t.title,u=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Mf),c=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ef(Object(n),!0).forEach((function(e){Cf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ef(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=et(o,t))||void 0===e?void 0:e.toString(),tabIndex:et(i,t)},u);return A().createElement("text",c,a&&A().createElement("title",null,a),r&&A().createElement("desc",null,r),n)},kf=["desc","id","tabIndex","origin"];function Df(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Tf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Rf=function(t){t.desc;var e,n=t.id,r=t.tabIndex,o=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,kf)),i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Df(Object(n),!0).forEach((function(e){Tf(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Df(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({id:null===(e=et(n,t))||void 0===e?void 0:e.toString(),tabIndex:et(r,t)},o);return A().createElement("tspan",i)},Lf=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce((function(t,e){return[t,Lf(e)].join(" ")}),Lf(t)).trim();if(null==t||"string"==typeof t)return t;var o=[];for(var i in t)if(t.hasOwnProperty(i)){var a=t[i];o.push("".concat(i,"(").concat(a,")"))}return o.join(" ").trim()};function If(t){var e={grayscale:["#cccccc","#969696","#636363","#252525"],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"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return t?e[t]:e.grayscale}var Nf=r(1594),zf=r.n(Nf);function Bf(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||Wf(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wf(t,e){if(t){if("string"==typeof t)return Uf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uf(t,e):void 0}}function Uf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Vf={"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},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}},Ff={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},Hf={em:1,ex:.5},qf={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},Gf=function(t){return Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g)},Kf=function(t,e,n){var r=function(t){return t*Math.PI/180}(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},$f=function(t,e){var n,r=null===(n=t.match(/[a-zA-Z%]+/))||void 0===n?void 0:n[0],o=Number(t.match(/[0-9.,]+/));return r?Ff.hasOwnProperty(r)?o*Ff[r]:Hf.hasOwnProperty(r)?(e?o*e:o*qf.fontSize)*Hf[r]:o:o||0},Yf=function(t,e){var n=Array.isArray(t)?t[e]:t,r=G()({},n,qf);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:$f(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:$f(String(r.fontSize))})},Xf=function(t,e){if(void 0===t||""===t||null===t)return 0;var n,r=Gf(t).map((function(t,n){var r,o,i=t.toString().length,a=Yf(e,n),u=a.fontSize,c=a.letterSpacing,l=(r=a.fontFamily,o=r.split(",").map((function(t){return t.replace(/'|"/g,"")})).find((function(t){return Vf[t]}))||"Helvetica",Vf[o]),s=t.toString().split("").map((function(t){return t.charCodeAt(0)<l.widths.length?l.widths[t.charCodeAt(0)]:l.avg})).reduce((function(t,e){return e+t}),0)*u;return s+c*Math.max(i-1,0)}));return Math.max.apply(Math,function(t){if(Array.isArray(t))return Uf(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||Wf(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},Zf=function(t,e){var n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=function(t,e){return void 0===t||""===t||null===t?0:Gf(t).reduce((function(t,n,r){var o=Yf(e,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0)}(t,e),o=Xf(t,e);return{width:n?Kf(o,r,n):o,height:1.05*(n?Kf(r,o,n):r)}},Qf=zf()((function(){var 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");var e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),Jf=function(t){return t?"".concat(t.angle,":").concat(t.fontFamily,":").concat(t.fontSize,":").concat(t.letterSpacing,":").concat(t.lineHeight):"null"},tp=zf()((function(t,e){var n,r,o=Qf();o.isConnected||(null===(n=(r=Qf.cache).clear)||void 0===n||n.call(r),o=Qf());var i=Gf(t),a=0;for(var u of i.entries()){var c=Bf(u,2),l=c[0],s=c[1],f=document.createElementNS("http://www.w3.org/2000/svg","tspan"),p=Yf(e,l);f.style.fontFamily=p.fontFamily,f.style.fontSize="".concat(p.fontSize,"px"),f.style.lineHeight=p.lineHeight,f.style.fontFamily=p.fontFamily,f.style.letterSpacing=p.letterSpacing,f.textContent=s,f.setAttribute("x","0"),f.setAttribute("y","".concat(a)),o.appendChild(f),a+=p.lineHeight*f.getBoundingClientRect().height}var h=o.getBoundingClientRect().width;return o.innerHTML="",{width:null!=e&&e.angle?Kf(h,a,null==e?void 0:e.angle):h,height:null!=e&&e.angle?Kf(a,h,null==e?void 0:e.angle):a}}),(function(t,e){var n=Array.isArray(t)?t.join():t,r=Array.isArray(e)?e.map(Jf).join():Jf(e);return"".concat(n,"::").concat(r)})),ep={impl:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;return!r||n?Zf(t,e):tp(t,e)}},np=function(t,e){return ep.impl(t,e)};function rp(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function op(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?rp(Object(n),!0).forEach((function(e){ip(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ip(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ap(t){return function(t){if(Array.isArray(t))return up(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return up(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?up(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function up(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var cp={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},lp=function(t,e){return t.datum?X(t,t.datum)[e]:0},sp=function(t){var e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return cp.fontSize;if("string"==typeof e){var n=Number(e.replace("px",""));return isNaN(n)?cp.fontSize:n}return cp.fontSize},fp=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.isArray(t)?t[e]||t[0]:t},pp=function(t){var e=t.backgroundStyle,n=t.backgroundPadding;return Array.isArray(e)&&!R()(e)||Array.isArray(n)&&!R()(n)},hp=function(t,e){var n=t.direction,r=t.textAnchor,o=t.x,i=t.dx;if("rtl"===n)return o-e;switch(r){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},dp=function(t,e){var n=t.verticalAnchor,r=t.y,o=t.originalDy,i=r+(void 0===o?0:o);switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},yp=function(t,e){return pp(t)?function(t,e){var n=t.dy,r=t.dx,o=t.transform,i=t.backgroundStyle,a=t.backgroundPadding,u=t.backgroundComponent,c=t.inline,l=t.y,s=e.map((function(t,o){var i=fp(e,o-1),u=t.textSize,s=t.fontSize*t.lineHeight,f=Math.ceil(s),p=fp(a,o),h=fp(a,o-1),d=c&&r||0,y=o&&!c?i.fontSize*i.lineHeight+h.top+h.bottom:n-.5*s-(t.fontSize-t.capHeight);return{textHeight:f,labelSize:u,heightWithPadding:f+p.top+p.bottom,widthWithPadding:u.width+p.left+p.right+d,y:l,fontSize:t.fontSize,dy:y}}));return s.map((function(e,n){var r=hp(t,e.labelSize.width),f=s.slice(0,n+1).reduce((function(t,e){return t+e.dy}),l),p=fp(a,n),h=e.heightWithPadding,d=c?function(t,e,n){var r=t.textAnchor,o=e.map((function(t){return t.widthWithPadding})),i=-o.reduce((function(t,e){return t+e}),0)/2;switch(r){case"start":return o.reduce((function(t,e,r){return r<n?t+e:t}),0);case"end":return o.reduce((function(t,e,r){return r>n?t-e:t}),0);default:return o.reduce((function(t,e,r){return r===n?t+e/2:t+(r<n?e:0)}),i)}}(t,s,n)+r-p.left:r,y=c?dp(t,h)-p.top:f,v={key:"tspan-background-".concat(n),height:h,style:fp(i,n),width:e.widthWithPadding,transform:o,x:d-p.left,y};return A().cloneElement(u,G()({},u.props,v))}))}(t,e):function(t,e){var n=t.dx,r=void 0===n?0:n,o=t.transform,i=t.backgroundComponent,a=t.backgroundStyle,u=t.inline,c=t.backgroundPadding,l=t.capHeight,s=e.map((function(t){return t.textSize})),f=u?Math.max.apply(Math,ap(s.map((function(t){return t.height})))):s.reduce((function(t,n,r){var o=r?0:l/2;return t+n.height*(e[r].lineHeight-o)}),0),p=u?s.reduce((function(t,e,n){var o=n?r:0;return t+e.width+o}),0):Math.max.apply(Math,ap(s.map((function(t){return t.width})))),h=hp(t,p),d=dp(t,f),y={key:"background",height:f+c.top+c.bottom,style:a,transform:o,width:p+c.left+c.right,x:u?h-c.left:h+r-c.left,y:d};return A().cloneElement(i,G()({},i.props,y))}(t,e)},vp=function(t,e,n){var r=e.inline,o=fp(t,n);return n&&!r?function(t,e,n){var r=fp(t,e),o=fp(t,e-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,u=o.fontSize-o.capHeight,c=r.fontSize-r.capHeight,l=i-o.fontSize/2+r.fontSize/2-i/2+a/2-c/2+u/2;return pp(n)?l+r.backgroundPadding.top+o.backgroundPadding.bottom:l}(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},mp={backgroundComponent:A().createElement(lf,null),groupComponent:A().createElement("g",null),direction:"inherit",textComponent:A().createElement(Sf,null),tspanComponent:A().createElement(Rf,null),capHeight:.71,lineHeight:1},gp=function(t){var e=function(t){var e=function(t,e){if(null!=t){if(Array.isArray(t))return t.map((function(t){return et(t,e)}));var n=et(t,e);if(null!=n)return Array.isArray(n)?n:"".concat(n).split("\n")}}(t.text,t),n=function(t,e){if(e.disableInlineStyles){var n=nt(t,e);return{fontSize:sp(n)}}var r=function(t){var n=nt(t?G()({},t,cp):cp,e);return Object.assign({},n,{fontSize:sp(n)})};return Array.isArray(t)&&!R()(t)?t.map((function(t){return r(t)})):r(t)}(t.style,Object.assign({},t,{text:e})),r=function(t,e){if(t)return Array.isArray(t)&&!R()(t)?t.map((function(t){return nt(t,e)})):nt(t,e)}(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),o=function(t){return t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((function(e){return Z({padding:et(e,t)})})):Z({padding:et(t.backgroundPadding,t)})}(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),i=et(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:i})}(op(op({},mp),t));if(null===e.text||void 0===e.text)return null;var n=function(t){var e=et(t.ariaLabel,t),n=fp(t.style),r=function(t){var e=et(t.lineHeight,t);return Array.isArray(e)&&R()(e)?[1]:e}(t),o=t.direction?et(t.direction,t):"inherit",i=t.textAnchor?et(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?et(t.verticalAnchor,t):n.verticalAnchor||"middle",u=t.dx?et(t.dx,t):0,c=function(t,e,n){var r=t.dy?et(t.dy,t):0,o=t.inline?1:t.text.length,i=et(t.capHeight,t),a=e?et(e,t):"middle",u=ap(Array(o).keys()).map((function(e){return fp(t.style,e).fontSize})),c=ap(Array(o).keys()).map((function(t){return fp(n,t)}));if("start"===a)return r+(i/2+c[0]/2)*u[0];if(t.inline)return"end"===a?r+(i/2-c[0]/2)*u[0]:r+i/2*u[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*c[0])*u[0]:r+(i/2+(.5-o/2)*c[0])*u[0];var l=ap(Array(o).keys()).reduce((function(t,e){return t+(i/2+(.5-o)*c[e])*u[e]/o}),0);return"end"===a?r+l:r+l/2+i/2*c[o-1]*u[o-1]}(t,a,r),l=void 0!==t.x?t.x:lp(t,"x"),s=void 0!==t.y?t.y:lp(t,"y"),f=function(t,e,n){var r=t.polar,o=fp(t.style),i=r?Ja(t):0,a=void 0===o.angle?et(t.angle,t):o.angle,u=void 0===a?i:a,c=t.transform||o.transform,l=c&&et(c,t);return l||u?Lf(l,u&&{rotate:[u,e,n]}):void 0}(t,l,s);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:u,dy:c,originalDy:et(t.dy,t),transform:f,x:l,y:s})}(e),r=n.text,o=n.style,i=n.capHeight,a=n.backgroundPadding,u=n.lineHeight,c=r.map((function(t,e){var n=fp(o,e),r=$f("".concat(i,"em"),n.fontSize),c=fp(u,e);return{style:n,fontSize:n.fontSize||cp.fontSize,capHeight:r,text:t,textSize:np(t,n),lineHeight:c,backgroundPadding:fp(a,e)}})),l=function(t,e){var n=t.ariaLabel,r=t.inline,o=t.className,i=t.title,a=t.events,u=t.direction,c=t.text,l=t.textAnchor,s=t.dx,f=t.dy,p=t.transform,h=t.x,d=t.y,y=t.desc,v=t.id,m=t.tabIndex,g=t.tspanComponent,b=t.textComponent,x=es(t),O=op(op({"aria-label":n,key:"text"},a),{},{direction:u,dx:s,x:h,y:d+f,transform:p,className:o,title:i,desc:et(y,t),tabIndex:et(m,t),id:v},x),_=c.map((function(n,o){var i=e[o].style,a={key:"".concat(v,"-key-").concat(o),x:r?void 0:h,dx:r?s+e[o].backgroundPadding.left:s,dy:vp(e,t,o),textAnchor:i.textAnchor||l,style:i,children:n};return A().cloneElement(g,a)}));return A().cloneElement(b,O,_)}(n,c);if(e.backgroundStyle){var s=[yp(n,c),l],f=A().cloneElement(e.groupComponent,{},s);return e.renderInPortal?A().createElement(Af,null,f):f}return e.renderInPortal?A().createElement(Af,null,l):l};gp.displayName="VictoryLabel",gp.role="label",gp.defaultStyles=cp;var bp=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],xp="#252525",Op="#969696",_p={width:450,height:300,padding:50,colorScale:bp},wp={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:xp,stroke:"transparent"},jp=Object.assign({textAnchor:"middle"},wp),Pp={area:Object.assign({style:{data:{fill:xp},labels:wp}},_p),axis:Object.assign({style:{axis:{fill:"transparent",stroke:xp,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},jp,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:wp}},_p),bar:Object.assign({style:{data:{fill:xp,padding:8,strokeWidth:0},labels:wp}},_p),boxplot:Object.assign({style:{max:{padding:8,stroke:xp,strokeWidth:1},maxLabels:Object.assign({},wp,{padding:3}),median:{padding:8,stroke:xp,strokeWidth:1},medianLabels:Object.assign({},wp,{padding:3}),min:{padding:8,stroke:xp,strokeWidth:1},minLabels:Object.assign({},wp,{padding:3}),q1:{padding:8,fill:Op},q1Labels:Object.assign({},wp,{padding:3}),q3:{padding:8,fill:Op},q3Labels:Object.assign({},wp,{padding:3})},boxWidth:20},_p),candlestick:Object.assign({style:{data:{stroke:xp,strokeWidth:1},labels:Object.assign({},wp,{padding:5})},candleColors:{positive:"#ffffff",negative:xp}},_p),chart:_p,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:xp,strokeWidth:2},labels:wp}},_p),group:Object.assign({colorScale:bp},_p),histogram:Object.assign({style:{data:{fill:Op,stroke:xp,strokeWidth:2},labels:wp}},_p),legend:{colorScale:bp,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:wp,title:Object.assign({},wp,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:xp,strokeWidth:2},labels:wp}},_p),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},wp,{padding:20})},colorScale:bp,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:xp,stroke:"transparent",strokeWidth:0},labels:wp}},_p),stack:Object.assign({colorScale:bp},_p),tooltip:{style:Object.assign({},wp,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:xp,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({},wp,{padding:5,pointerEvents:"none"}),flyout:{stroke:xp,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},_p)},Ap=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],Mp="#ECEFF1",Ep="#90A4AE",Cp="#455A64",Sp="#212121",kp={width:350,height:350,padding:50},Dp={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:Cp,stroke:"transparent",strokeWidth:0},Tp=Object.assign({textAnchor:"middle"},Dp),Rp="round",Lp="round",Ip={grayscale:Pp,material:{area:Object.assign({style:{data:{fill:Sp},labels:Dp}},kp),axis:Object.assign({style:{axis:{fill:"transparent",stroke:Ep,strokeWidth:2,strokeLinecap:Rp,strokeLinejoin:Lp},axisLabel:Object.assign({},Tp,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:Mp,strokeDasharray:"10, 5",strokeLinecap:Rp,strokeLinejoin:Lp,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Ep,strokeWidth:1,strokeLinecap:Rp,strokeLinejoin:Lp},tickLabels:Object.assign({},Dp,{fill:Cp})}},kp),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:Cp,padding:8,strokeWidth:0},labels:Dp}},kp),boxplot:Object.assign({style:{max:{padding:8,stroke:Cp,strokeWidth:1},maxLabels:Object.assign({},Dp,{padding:3}),median:{padding:8,stroke:Cp,strokeWidth:1},medianLabels:Object.assign({},Dp,{padding:3}),min:{padding:8,stroke:Cp,strokeWidth:1},minLabels:Object.assign({},Dp,{padding:3}),q1:{padding:8,fill:Cp},q1Labels:Object.assign({},Dp,{padding:3}),q3:{padding:8,fill:Cp},q3Labels:Object.assign({},Dp,{padding:3})},boxWidth:20},kp),candlestick:Object.assign({style:{data:{stroke:Cp},labels:Object.assign({},Dp,{padding:5})},candleColors:{positive:"#ffffff",negative:Cp}},kp),chart:kp,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:Cp,strokeWidth:2},labels:Dp}},kp),group:Object.assign({colorScale:Ap},kp),histogram:Object.assign({style:{data:{fill:Cp,stroke:Sp,strokeWidth:2},labels:Dp}},kp),legend:{colorScale:Ap,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Dp,title:Object.assign({},Dp,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Cp,strokeWidth:2},labels:Dp}},kp),pie:Object.assign({colorScale:Ap,style:{data:{padding:8,stroke:Mp,strokeWidth:1},labels:Object.assign({},Dp,{padding:20})}},kp),scatter:Object.assign({style:{data:{fill:Cp,opacity:1,stroke:"transparent",strokeWidth:0},labels:Dp}},kp),stack:Object.assign({colorScale:Ap},kp),tooltip:{style:Object.assign({},Dp,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Sp,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({},Dp,{padding:5,pointerEvents:"none"}),flyout:{stroke:Sp,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},kp)}};function Np(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function zp(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}}}function Bp(){return{onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}}}var Wp=r(7491),Up=r.n(Wp);const Vp=t=>+t;function Fp(t){return t*t}function Hp(t){return t*(2-t)}function qp(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function Gp(t){return t*t*t}function Kp(t){return--t*t*t+1}function $p(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Yp=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Xp=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Zp=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Qp=Math.PI,Jp=Qp/2;function th(t){return 1==+t?1:1-Math.cos(t*Jp)}function eh(t){return Math.sin(t*Jp)}function nh(t){return(1-Math.cos(Qp*t))/2}function rh(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function oh(t){return rh(1-+t)}function ih(t){return 1-rh(t)}function ah(t){return((t*=2)<=1?rh(1-t):2-rh(t-1))/2}function uh(t){return 1-Math.sqrt(1-t*t)}function ch(t){return Math.sqrt(1- --t*t)}function lh(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var sh=7.5625;function fh(t){return 1-ph(1-t)}function ph(t){return(t=+t)<.36363636363636365?sh*t*t:t<.7272727272727273?sh*(t-=.5454545454545454)*t+.75:t<.9090909090909091?sh*(t-=.8181818181818182)*t+.9375:sh*(t-=.9545454545454546)*t+.984375}function hh(t){return((t*=2)<=1?1-ph(1-t):ph(t-1)+1)/2}var dh=1.70158,yh=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(dh),vh=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(dh),mh=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(dh),gh=2*Math.PI,bh=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gh);function o(t){return e*rh(- --t)*Math.sin((r-t)/n)}return o.amplitude=function(e){return t(e,n*gh)},o.period=function(n){return t(e,n)},o}(1,.3),xh=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gh);function o(t){return 1-e*rh(t=+t)*Math.sin((t+r)/n)}return o.amplitude=function(e){return t(e,n*gh)},o.period=function(n){return t(e,n)},o}(1,.3),Oh=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=gh);function o(t){return((t=2*t-1)<0?e*rh(-t)*Math.sin((r-t)/n):2-e*rh(t)*Math.sin((r+t)/n))/2}return o.amplitude=function(e){return t(e,n*gh)},o.period=function(n){return t(e,n)},o}(1,.3),_h=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)||W()(t)}return!1},wh=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return function(r){return r<n?t:e}},jh=function(t,e){return function(n){return n>=1?e:function(){var r="function"==typeof t?t.apply(this,arguments):t,o="function"==typeof e?e.apply(this,arguments):e;return $e(r,o)(n)}}},Ph=function(t,e){var n,r=function(t,e){return t!==e&&_h(t)&&_h(e)?"function"==typeof t||"function"==typeof e?jh(t,e):"object"==typeof t&&W()(t)||"object"==typeof e&&W()(e)?Ph(t,e):$e(t,e):wh(t,e)},o=function(t){return Array.isArray(t)?I()(t,"key"):t},i={},a={},u=t,c=e;for(n in null!==u&&"object"==typeof u||(u={}),null!==c&&"object"==typeof c||(c={}),c)n in u?i[n]=r(o(u[n]),o(c[n])):a[n]=c[n];return function(t){for(n in i)a[n]=i[n](t);return a}};function Ah(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Mh=function(t){var e,n,r,o,i=t.duration,a=void 0===i?1e3:i,u=t.easing,c=void 0===u?"quadInOut":u,l=t.delay,s=void 0===l?0:l,f=t.data,p=t.children,h=t.onEnd,d=(r=A().useState({data:Array.isArray(f)?f[0]:f,animationInfo:{progress:0,animating:!1}}),o=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(r,o)||function(t,e){if(t){if("string"==typeof t)return Ah(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ah(t,e):void 0}}(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=d[0],v=d[1],g=A().useContext(Vs).animationTimer,b=A().useRef(Array.isArray(f)?f.slice(1):[]),x=A().useRef(null),O=A().useRef(void 0),_=m[(e=c,n=e.charAt(0).toUpperCase()+e.slice(1),"ease".concat(n))];A().useEffect((function(){return b.current.length&&w(),function(){O.current?g.unsubscribe(O.current):g.stop()}}),[]),A().useEffect((function(){x.current&&y.animationInfo&&y.animationInfo.progress<1?v({data:x.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}):(g.unsubscribe(O.current),b.current=Array.isArray(f)?f:[f],w())}),[f]);var w=function(){if(b.current.length){var t=b.current[0];x.current=function(t,e){return t!==e&&_h(t)&&_h(e)?"function"==typeof t||"function"==typeof e?jh(t,e):W()(t)||W()(e)?Ph(t,e):"string"==typeof t||"string"==typeof e?function(t,e){var n=function(t){return"string"==typeof t?t.replace(/,/g,""):t};return $e(n(t),n(e))}(t,e):$e(t,e):wh(t,e)}(y.data,t),s?setTimeout((function(){O.current=g.subscribe(j,a)}),s):O.current=g.subscribe(j,a)}else h&&h()},j=function(t){if(x.current){var e=a?t/a:1;if(e>=1)return v({data:x.current(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),O.current&&g.unsubscribe(O.current),b.current.shift(),void w();v({data:x.current(_(e)),animationInfo:{progress:e,animating:e<1}})}};return p(y.data,y.animationInfo)},Eh=r(5346),Ch=r.n(Eh);function Sh(t,e){return(t.key||e).toString()}function kh(t){return t.reduce((function(t,e,n){return t[Sh(e,n)]=e,t}),{})}function Dh(t,e){var n=!1,r=Object.keys(t).reduce((function(t,r){return r in e||(n=!0,t[r]=!0),t}),{});return n&&r}function Th(t){return t.type&&t.type.getData?t.type.getData(t.props):t.props&&t.props.data||!1}function Rh(t,e){var n=!1,r=!1,o=function(t,e){return t.map((function(i,a){return i&&i.props&&i.props.children&&e[a]?o(A().Children.toArray(t[a].props.children),A().Children.toArray(e[a].props.children)):function(t,e){if(!e||t.type!==e.type)return{};var o,i,a,u,c=(o=Th(t),i=Th(e),a=o&&kh(o),u=i&&kh(i),{entering:a&&Dh(u,a),exiting:u&&Dh(a,u)}||{}),l=c.entering,s=c.exiting;return n=n||!!s,r=r||!!l,{entering:l||!1,exiting:s||!1}}(i,e[a])}))},i=o(A().Children.toArray(t),A().Children.toArray(e));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:i,nodesShouldEnter:!1}}function Lh(t,e,n){var r=e&&e.nodesWillExit,o=e&&e.nodesWillEnter,i=e&&e.nodesShouldEnter,a=e&&e.nodesShouldLoad,u=e&&e.nodesDoneLoad,c=e&&e.childrenTransitions||[],l={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},s=function(t,e,r){return a?function(t,e,r){var o=Object.assign({},t,{onEnd:function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}});if(o&&o.onLoad&&!o.onLoad.duration)return{animate:t,data:e};var i=t.onLoad&&t.onLoad.after?t.onLoad.after:Ch();return{animate:o,data:e.map((function(t,n){return Object.assign({},t,i(t,n,e))}))}}(r,e):function(t,e,r,o){var i=Object.assign({},t,{onEnd:function(){n({nodesDoneLoad:!0})}});if(i&&i.onLoad&&!i.onLoad.duration)return{animate:i,data:r};var a=i.onLoad&&i.onLoad.before?i.onLoad.before:Ch();return{animate:i,data:r.map((function(t,e){return Object.assign({},t,a(t,e,r))})),clipWidth:0}}(r,0,e)},f=function(t,e,r,o){return function(t,e,r,o,i){var a=t&&t.onExit,u=Object.assign({},t,a),c=r;if(o){t.onEnd=function(){n({nodesWillExit:!1})};var l=t.onExit&&t.onExit.before?t.onExit.before:Ch();c=r.map((function(t,e){var n=(t.key||e).toString();return o[n]?Object.assign({},t,l(t,e,r)):t}))}return{animate:u,data:c}}(o,0,r,t)},p=function(t,e,r,o){return i?function(t,e,r,o){var i=t&&t.onEnter,a=Object.assign({},t,i),u=e;if(r){a.onEnd=function(){n({nodesWillEnter:!1})};var c=a.onEnter&&a.onEnter.after?a.onEnter.after:Ch();u=e.map((function(t,n){var o=Sh(t,n);return r[o]?Object.assign({},t,c(t,n,e)):t}))}return{animate:a,data:u}}(o,r,t):function(t,e,r,o,i){var a=t,u=r;if(o){a=Object.assign({},t,{onEnd:function(){n({nodesShouldEnter:!0})}});var c=t.onEnter&&t.onEnter.before?t.onEnter.before:Ch();u=r.map((function(t,e){var n=(t.key||e).toString();return o[n]?Object.assign({},t,c(t,e,r)):t}))}return{animate:a,data:u}}(o,0,r,t)},h=function(t,e){var n=t.props.animate;if(!t.type)return{};var r=t.props&&t.props.polar&&t.type.defaultPolarTransitions||t.type.defaultTransitions;if(r){var o=n[e]&&n[e].duration;return void 0!==o?o:r[e]&&r[e].duration}return{}};return function(n,a){var d=Th(n)||[],y=G()({},t.animate,n.props.animate),v=n.props.polar&&n.type.defaultPolarTransitions||n.type.defaultTransitions;y.onExit=G()({},y.onExit,v&&v.onExit),y.onEnter=G()({},y.onEnter,v&&v.onEnter),y.onLoad=G()({},y.onLoad,v&&v.onLoad);var m=c[a]||c[0];if(!u){var g={duration:void 0!==l.load?l.load:h(n,"onLoad")};return s(0,d,Object.assign({},y,g))}if(r){var b=m&&m.exiting,x=void 0!==l.exit?l.exit:h(n,"onExit"),O=b?{duration:x}:{delay:x};return f(b,0,d,Object.assign({},y,O))}if(o){var _=m&&m.entering,w=void 0!==l.enter?l.enter:h(n,"onEnter"),j=void 0!==l.move?l.move:n.props.animate&&n.props.animate.duration,P={duration:i&&_?w:j};return p(_,0,d,Object.assign({},y,P))}return!e&&y&&y.onExit?function(t,e){var n=t.onEnter&&t.onEnter.after?t.onEnter.after:Ch();return{data:e.map((function(t,r){return Object.assign({},t,n(t,r,e))}))}}(y,d):{animate:y,data:d}}}function Ih(){return Ih=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Ih.apply(this,arguments)}function Nh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zh(t,e){return zh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zh(t,e)}function Bh(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Wh(t){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wh(t)}var Uh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zh(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Wh(r);if(o){var n=Wh(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Bh(this,t)});function a(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,t,e)).continuous=void 0,n.timer=void 0,n.transitionProps=void 0,n.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var r=n.props.children,o=r.props.polar;return n.continuous=!o&&r.type&&!0===r.type.continuous,n.timer=n.context.transitionTimer,n}return e=a,n=[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(t){var e=this;return Up()(this.props,t)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,t),(function(){return e.timer.resumeAnimation()}))),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(t,e){var n=t.animate;if(!n)return{};if(n.parentState)return{oldProps:n.parentState.nodesWillExit?t:null,nextProps:e};var r=Rh(A().Children.toArray(t.children),A().Children.toArray(e.children)),o=r.nodesWillExit;return{nodesWillExit:o,nodesWillEnter:r.nodesWillEnter,childrenTransitions:r.childrenTransitions,nodesShouldEnter:r.nodesShouldEnter,oldProps:o?t:null,nextProps:e}}},{key:"getDomainFromChildren",value:function(t,e){var n=function(t){return t.reduce((function(t,r){if(r.type&&lt(r.type.getDomain)){var o=r.props&&r.type.getDomain(r.props,e);return o?t.concat(o):t}return r.props&&r.props.children?t.concat(n(A().Children.toArray(r.props.children))):t}),[])},r=A().Children.toArray(t.children)[0],o=r.props||{},i=Array.isArray(o.domain)?o.domain:o.domain&&o.domain[e];if(!o.children&&i)return i;var a=n([r]);return 0===a.length?[0,1]:[Et(a),Mt(a)]}},{key:"pickProps",value:function(){return this.state&&this.state.nodesWillExit&&this.state.oldProps||this.props}},{key:"pickDomainProps",value:function(t){var e,n=null===(e=t.animate)||void 0===e?void 0:e.parentState;return n&&n.nodesWillExit?(this.continuous||n.continuous)&&(n.nextProps||this.state.nextProps)||t:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||t}},{key:"getClipWidth",value:function(t,e){var n=this.transitionProps?this.transitionProps.clipWidth:void 0;return void 0!==n?n:function(){var n=ut(e.props,"x");return n?Math.abs(n[1]-n[0]):t.width}()}},{key:"render",value:function(){var t,e=this,n=this.pickProps(),r=null!==(t=this.props.animate)&&void 0!==t&&t.getTransitions?this.props.animate.getTransitions:Lh(n,this.state,(function(t){return e.setState(t)})),o=A().Children.toArray(n.children)[0],i=r(o);this.transitionProps=i;var a={x:this.getDomainFromChildren(this.pickDomainProps(n),"x"),y:this.getDomainFromChildren(n,"y")},u=this.getClipWidth(n,o),c=G()({domain:a,clipWidth:u},i,o.props),l=(n.animationWhitelist||[]).concat(["clipWidth"]),s=l.length?H()(c,l):c;return A().createElement(Mh,Ih({},c.animate,{data:s}),(function(t){if(o.props.groupComponent){var n=e.continuous?A().cloneElement(o.props.groupComponent,{clipWidth:t.clipWidth||0}):o.props.groupComponent;return A().cloneElement(o,G()({animate:null,animating:!0,groupComponent:n},t,c))}return A().cloneElement(o,G()({animate:null,animating:!0},t,c))}))}}],n&&Nh(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Uh.displayName="VictoryTransition",Uh.contextType=Vs;var Vh=r(4912),Fh=r.n(Vh);function Hh(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qh(t){return function(t){if(Array.isArray(t))return Gh(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Gh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gh(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Kh=/^onGlobal(.*)$/;function $h(t,e,n,r){var o,i=this,a=function(t){var r,o=(r=t.reduce((function(t,n){return void 0!==n.target?(Array.isArray(n.target)?n.target.includes(e):"".concat(n.target)==="".concat(e))?t.concat(n):t:t.concat(n)}),[]),void 0!==n&&"parent"!==e?r.filter((function(t){var e=t.eventKey,r=function(t){return!t||"".concat(t)==="".concat(n)};return Array.isArray(e)?e.some((function(t){return r(t)})):r(e)})):r);return Array.isArray(o)&&o.reduce((function(t,e){return e?Object.assign(t,e.eventHandlers):t}),{})},u=Array.isArray(i.componentEvents)?Array.isArray(t.events)?(o=i.componentEvents).concat.apply(o,qh(t.events)):i.componentEvents:t.events,c=u&&lt(r)?r(a(u),e):void 0;if(!t.sharedEvents)return c;var l=t.sharedEvents.getEvents,s=t.sharedEvents.events&&l(a(t.sharedEvents.events),e);return Object.assign({},s,c)}function Yh(t,e,n,r){var o=this;if(R()(t))return{};var i=r||this.baseProps,a=function(t,e){var n=t.childName,r=t.target,a=t.key,u="props"===e?i:o.state||{},c=null!=n&&u[n]?u[n]:u;return"parent"===a?c.parent:c[a]&&c[a][r]},u=function(t,r){var u="parent"===e?t.childName:t.childName||n,c=t.target||e,l=function(e,n){var r=o.state||{};if(!lt(t.mutation))return r;var u=a({childName:n,key:e,target:c},"props"),l=a({childName:n,key:e,target:c},"state"),s=t.mutation(Object.assign({},u,l),i),f=r[n]||{},p=function(t){return s?function(t){return"parent"===c?Object.assign(t,Hh({},e,Object.assign(t[e]||{},s))):Object.assign(t,Hh({},e,Object.assign(t[e]||{},Hh({},c,s))))}(t):function(t){return t[e]&&t[e][c]&&delete t[e][c],t[e]&&!Object.keys(t[e]).length&&delete t[e],t}(t)};return null!=n?Object.assign(r,Hh({},n,p(f))):p(r)},s=function(e){var n=function(e){return"parent"===c?"parent":"all"===t.eventKey?i[e]?Object.keys(i[e]).filter((function(t){return"parent"!==t})):Object.keys(i).filter((function(t){return"parent"!==t})):void 0===t.eventKey&&"parent"===r?i[e]?Object.keys(i[e]):Object.keys(i):void 0!==t.eventKey?t.eventKey:r}(e);return Array.isArray(n)?n.reduce((function(t,n){return Object.assign(t,l(n,e))}),{}):l(n,e)},f="all"===u?Object.keys(i).filter((function(t){return"parent"!==t})):u;return Array.isArray(f)?f.reduce((function(t,e){return Object.assign(t,s(e))}),{}):s(f)},c=function(e,n,r,i){var a=t[i](e,n,r,o);if(!R()(a)){var c=function(t){var e=function(t){return lt(t.callback)&&t.callback},n=(Array.isArray(t)?t.map((function(t){return e(t)})):[e(t)]).filter((function(t){return!1!==t}));return n.length?function(){return n.forEach((function(t){return t()}))}:void 0}(a);o.setState(function(t,e){return Array.isArray(t)?t.reduce((function(t,n){return Object.assign({},t,u(n,e))}),{}):u(t,e)}(a,r),c)}};return Object.keys(t).reduce((function(t,e){return t[e]=c,t}),{})}function Xh(t,e,n){return t?Object.keys(t).reduce((function(r,o){return r[o]=function(r){return t[o](r,n,e,o)},r}),{}):{}}function Zh(t,e,n){var r=this.state||{};return n?r[n]&&r[n][t]&&r[n][t][e]:"parent"===t?r[t]&&r[t][e]||r[t]:r[t]&&r[t][e]}function Qh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return r.reduce((function(r,o){var i=n[o],a=Jh(t,e[o],n[o],o);return r[o]=a||i,Fh()(r,(function(t){return!R()(t)}))}),{})}function Jh(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,o=Object.keys(e);return o.reduce((function(o,i){var a=n[i]||{},u=e[i]||{};if("parent"===i){var c=td(t,u,a,{eventKey:i,target:"parent"});o[i]=void 0!==c?Object.assign({},a,c):a}else{var l=V()(Object.keys(u).concat(Object.keys(a)));o[i]=l.reduce((function(e,n){var o={eventKey:i,target:n,childName:r},c=td(t,u[n],a[n],o);return e[n]=void 0!==c?Object.assign({},a[n],c):a[n],Fh()(e,(function(t){return!R()(t)}))}),{})}return Fh()(o,(function(t){return!R()(t)}))}),{})}function td(t,e,n,r){var o=function(t,e){return"string"==typeof t[e]?"all"===t[e]||t[e]===r[e]:!!Array.isArray(t[e])&&t[e].map((function(t){return"".concat(t)})).includes(r[e])},i=Array.isArray(t)?t:[t];r.childName&&(i=t.filter((function(t){return o(t,"childName")})));var a=i.filter((function(t){return o(t,"target")}));if(!R()(a)){var u=a.filter((function(t){return o(t,"eventKey")}));if(!R()(u))return u.reduce((function(t,r){var o=(r&&lt(r.mutation)?r.mutation:function(){})(Object.assign({},e,n));return Object.assign({},t,o)}),{})}}function ed(t,e){var n=Array.isArray(e)&&e.reduce((function(e,n){var r=t[n],o=r&&r.type&&r.type.defaultEvents,i=lt(o)?o(r.props):o;return Array.isArray(i)?e.concat.apply(e,qh(i)):e}),[]);return n&&n.length?n:void 0}function nd(t){var e=t.match(Kh);return e&&e[1]&&e[1].toLowerCase()}var rd=function(t){return Fh()(t,(function(t,e){return Kh.test(e)}))},od=function(t){return E()(t,(function(t,e){return Kh.test(e)}))},id=function(t){return Object.assign(t,{nativeEvent:t})};function ad(t){return function(t){if(Array.isArray(t))return ud(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return ud(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ud(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ud(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ld(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sd(t,e,n){return e&&ld(t.prototype,e),n&&ld(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function fd(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pd(t,e)}function pd(t,e){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pd(t,e)}function hd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=vd(t);if(e){var o=vd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dd(this,n)}}function dd(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yd(t)}function yd(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vd(t){return vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},vd(t)}var md=function(t){return!ct(t._x)&&!ct(t._y)},gd=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function bd(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(n){fd(o,n);var r=hd(o);function o(t){var e;return cd(this,o),(e=r.call(this,t)).state={},e.getEventState=Zh.bind(yd(e)),e.getScopedEvents=Yh.bind(yd(e)),e.getEvents=function(t,n,r){return $h.call(yd(e),t,n,r,e.getScopedEvents)},e.externalMutations=e.getExternalMutations(e.props),e.calculatedState=e.getStateChanges(e.props),e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.cacheValues(e.getCalculatedValues(t)),e}return sd(o,[{key:"shouldComponentUpdate",value:function(t){var e=this.getExternalMutations(t),n=this.props.animating||this.props.animate,r=!Up()(e,this.externalMutations);if(n||r)return this.cacheValues(this.getCalculatedValues(t)),this.externalMutations=e,this.applyExternalMutations(t,e),!0;var o=this.getStateChanges(t);return Up()(this.calculatedState,o)?!Up()(this.props,t)&&(this.cacheValues(this.getCalculatedValues(t)),!0):(this.cacheValues(this.getCalculatedValues(t)),!0)}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(t){var e=this,n=this.getStateChanges(t);this.calculatedState=n;var r=Object.keys(this.globalEvents);jt(this.prevGlobalEventKeys,r).forEach((function(t){return e.removeGlobalListener(t)})),jt(r,this.prevGlobalEventKeys).forEach((function(t){return e.addGlobalListener(t)})),this.prevGlobalEventKeys=r}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,n=function(n){var r=e.globalEvents[t];return r&&r(id(n))};this.boundGlobalEvents[t]=n,window.addEventListener(nd(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(nd(t),this.boundGlobalEvents[t])}},{key:"getStateChanges",value:function(t){var n=this;if(!this.hasEvents)return{};var r=function(t,e){var r=G()({},n.getEventState(t,e),n.getSharedEventState(t,e));return R()(r)?void 0:r};return(e.components||gd).map((function(e){if(t.standalone||"parent"!==e.name)return void 0!==e.index?r(e.index,e.name):n.dataKeys.map((function(t){return r(t,e.name)})).filter(Boolean)})).filter(Boolean)}},{key:"applyExternalMutations",value:function(t,e){if(!R()(e)){var n=t.externalEventMutations.reduce((function(t,e){return lt(e.callback)?t.concat(e.callback):t}),[]),r=n.length?function(){n.forEach((function(t){return t()}))}:void 0;this.setState(e,r)}}},{key:"getCalculatedValues",value:function(e){var n=e.sharedEvents,r=ed(e,t.expectedComponents),o=n&&lt(n.getEventState)?n.getEventState:function(){},i=this.getBaseProps(e,o);return{componentEvents:r,getSharedEventState:o,baseProps:i,dataKeys:Object.keys(i).filter((function(t){return"parent"!==t})),hasEvents:e.events||e.sharedEvents||r,events:this.getAllEvents(e)}}},{key:"getExternalMutations",value:function(t){var e=t.sharedEvents,n=t.externalEventMutations;return R()(n)||e?void 0:Jh(n,this.baseProps,this.state)}},{key:"cacheValues",value:function(t){var e=this;Object.keys(t).forEach((function(n){e[n]=t[n]}))}},{key:"getBaseProps",value:function(e,n){var r=(n||this.getSharedEventState.bind(this))("parent","parent"),o=this.getEventState("parent","parent"),i=G()({},o,r),a=i.parentControlledProps,u=a?H()(i,a):{},c=G()({},u,e);return"function"==typeof t.getBaseProps?t.getBaseProps(c):{}}},{key:"getAllEvents",value:function(t){var e;return Array.isArray(this.componentEvents)?Array.isArray(t.events)?(e=this.componentEvents).concat.apply(e,ad(t.events)):this.componentEvents:t.events}},{key:"getComponentProps",value:function(e,n,r){var o=this.props.name||t.role,i=this.dataKeys&&this.dataKeys[r]||r,a="".concat(o,"-").concat(n,"-").concat(i),u=this.baseProps[i]&&this.baseProps[i][n]||this.baseProps[i];if(u||this.hasEvents){var c=e&&"object"==typeof e&&"props"in e?e.props:void 0;if(this.hasEvents){var l=this.getEvents(this.props,n,i),s=G()({index:r,key:a},this.getEventState(i,n),this.getSharedEventState(i,n),c,u,{id:a}),f=G()({},Xh(l,i,s),s.events);return Object.assign({},s,{events:f})}return G()({index:r,key:a},c,u,{id:a})}}},{key:"renderContainer",value:function(t,e){var n=t.type&&"container"===t.type.role?this.getComponentProps(t,"parent","parent"):{};return n.events&&(this.globalEvents=rd(n.events),n.events=od(n.events)),A().cloneElement(t,n,e)}},{key:"animateComponent",value:function(t,e){var n,r="object"==typeof t.animate&&(null===(n=t.animate)||void 0===n?void 0:n.animationWhitelist)||e,o=this.constructor;return A().createElement(Uh,{animate:t.animate,animationWhitelist:r},A().createElement(o,t))}},{key:"renderContinuousData",value:function(t){var e=this,n=t.dataComponent,r=t.labelComponent,o=t.groupComponent,i=this.dataKeys.filter((function(t){return"all"!==t})),a=i.reduce((function(t,n){var o=t,i=e.getComponentProps(r,"labels",n);return i&&void 0!==i.text&&null!==i.text&&(o=o.concat(A().cloneElement(r,i))),o}),[]),u=this.getComponentProps(n,"data","all"),c=[A().cloneElement(n,u)].concat(ad(a));return this.renderContainer(o,c)}},{key:"renderData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:md,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(r,"data",i);return n(a.datum)&&t.push(A().cloneElement(r,a)),t}),[]),u=this.dataKeys.map((function(t,n){var r=e.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return A().cloneElement(o,r)})).filter(Boolean),c=[].concat(ad(a),ad(u));return this.renderContainer(i,c)}}]),o}(t);return n}function xd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Od(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _d(t,e){return _d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_d(t,e)}function wd(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function jd(t){return jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jd(t)}var Pd={width:450,height:300,padding:50,interpolation:"linear"},Ad=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_d(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=jd(r);if(o){var n=jd(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return wd(this,t)});function a(){return xd(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,n=ft(this.props,Pd,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&Od(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Ad.animationWhitelist=["data","domain","height","padding","style","width"],Ad.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(fs,null),groupComponent:A().createElement(bf,null),labelComponent:A().createElement(gp,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},Ad.displayName="VictoryArea",Ad.role="area",Ad.continuous=!0,Ad.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},Ad.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}},Ad.getDomain=Ha,Ad.getData=Pa,Ad.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"area"),r=Object.assign({},n,function(t){var e=t.polar,n=J(t,"area"),r=tt(t.style,n),o={x:ut(t,"x"),y:ut(t,"y")},i={x:Ha(t,"x"),y:Ha(t,"y")},a={x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=e?t.origin||at(t):void 0,c=function(t,e){var n=Pa(t);n.length<2&&(n=[]);var r=function(t){var n="log"===na(e[t])?1/Number.MAX_SAFE_INTEGER:0,r=e[t].domain(),o=Et(r),i=Mt(r),a=n;return o<0&&i<=0?a=i:o>=0&&i>0&&(a=o),Ot(r)?new Date(a):a};return n.map((function(t){var e=void 0!==t._y1?t._y1:t._y,n=void 0!==t._y0?t._y0:r("y"),o=void 0!==t._x1?t._x1:t._x,i=void 0!==t._x0?t._x0:r("x");return Object.assign({},t,{_y0:n,_y1:e,_x0:i,_x1:o})}))}(t,a);return{style:r,data:c,scale:a,domain:i,origin:u}}(n)),o=r.data,i=r.domain,a=r.events,u=r.groupComponent,c=r.height,l=r.horizontal,s=r.interpolation,f=r.origin,p=r.padding,h=r.polar,d=r.scale,y=r.sharedEvents,v=r.standalone,m=r.style,g=r.theme,b=r.width,x=r.labels,O=r.name,_=r.disableInlineStyles,w={parent:{style:m.parent,width:b,height:c,scale:d,data:o,domain:i,standalone:v,theme:g,polar:h,origin:f,padding:p,name:O,horizontal:l},all:{data:{horizontal:l,polar:h,origin:f,scale:d,data:o,interpolation:s,groupComponent:u,style:_?{}:m.data,disableInlineStyles:_}}};return o.reduce((function(t,e,n){return(null!=Xa(r,e,n)||x&&(a||y))&&(t[ct(e.eventKey)?n:e.eventKey]={labels:eu(r,n)}),t}),w)}(t,Pd)},Ad.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var Md=bd(Ad,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]});function Ed(t){return function(t){if(Array.isArray(t))return Cd(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Cd(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Cd(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cd(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Sd(t){return t}function kd(t){return t.dependentAxis?"y":"x"}function Dd(t,e){var n=e||Sd,r=function(t){return t.reduce((function(t,e){return e.type&&"axis"===e.type.role&&n(e)?t.concat(e):e.props&&e.props.children?t.concat(r(A().Children.toArray(e.props.children))):t}),[])};return r(t)}function Td(t,e){return Dd(t,(function(t){return t.type.getAxis(t.props)===e}))[0]}function Rd(t,e){var n=function(t){return t.reduce((function(t,r){return r.type&&"axis"===r.type.role&&function(t){return"dependent"===e?t.props.dependentAxis:!t.props.dependentAxis}(r)||r.props&&r.props.children&&n(A().Children.toArray(r.props.children)).length>0?t.concat(r):t}),[])};return n(t)}function Ld(t){var e=function(t){var e=Math.min.apply(Math,Ed(t)),n=Math.max.apply(Math,Ed(t));return n<0?n:Math.max(0,e)};return{x:Ot(t.x)?new Date(Math.min.apply(Math,Ed(t.x))):e(t.x),y:Ot(t.y)?new Date(Math.min.apply(Math,Ed(t.y))):e(t.y)}}function Id(t,e){return Ot(e)?"positive":t<=0&&Math.max.apply(Math,Ed(e))<=0?"negative":"positive"}function Nd(t){return{top:!1,bottom:!1,left:!0,right:!0}[t.orientation||(t.dependentAxis?"left":"bottom")]}function zd(t){return void 0!==t.tickValues&&xt(t.tickValues)}function Bd(t){var e=t.tickValues,n=t.tickFormat;if(0===(null==e?void 0:e.length))return[];var r=kd(t),o=t.stringMap&&t.stringMap[r],i=e;o&&(i=function(t){var e=kd(t),n=t.stringMap&&t.stringMap[e],r=Array.isArray(t.categories)?t.categories:t.categories&&t.categories[e],o=r&&wt(r)?r.map((function(t){return n[t]})):void 0,i=n&&Object.values(n);return o&&0!==o.length?o:i}(t)),e&&xt(e)&&(i=o?e.map((function(t){return o[t]})):dt(1,e.length+1));var a=i?V()(i):function(){if(n&&Array.isArray(n))return xt(n)?n.map((function(t,e){return e})):n}();return Array.isArray(a)&&a.length?function(e){var n=[],o=t.domain&&t.domain[r]||t.domain;if(e)return e.forEach((function(t,e){Array.isArray(o)?t>=Et(o)&&t<=Mt(o)&&n.push({value:t,index:e}):n.push({value:t,index:e})})),n}(a):void 0}function Wd(t,e){var n=t.tickFormat,r=kd(t),o=t.stringMap&&t.stringMap[r];if(!n){var i=function(t){var e=t.tickValues,n=kd(t),r=t.stringMap&&t.stringMap[n],o=e&&!Ot(e)?function(t){return t}:void 0;if(!r)return zd(t)?function(t,n){return e[n]}:o;var i=r&&K(r),a=I()(Object.values(r),(function(t){return t})).map((function(t){return i[t]})),u=[""].concat(Ed(a),[""]);return function(t){return u[t]}}(t),a=e.tickFormat&&lt(e.tickFormat)?e.tickFormat():function(t){return t};return i||a}if(n&&Array.isArray(n)){var u=Bd(t),c=null==u?void 0:u.map((function(t){return t.index})),l=n.filter((function(t,e){return null==c?void 0:c.includes(e)}));return function(t,e){return l[e]}}return n&&lt(n)?o?function(e,n,r){var i=K(o),a=r.map((function(t){return i[t]}));return t.tickFormat(i[e],n,a)}:n:function(t){return t}}function Ud(t,e){if(!e||!Array.isArray(t)||t.length<=e)return t;var n=Math.floor(t.length/e);return t.filter((function(t,e){return e%n==0}))}function Vd(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.tickCount,o=Bd(t);if(0===(null==o?void 0:o.length))return[""];var i=o?o.map((function(t){return t.value})):void 0;if(i)return Ud(i,r);if(e.ticks&&lt(e.ticks)){var a=r||5,u=e.ticks(a),c=Array.isArray(u)&&u.length?u:e.domain(),l=Ud(c,r);if(n){var s=l.filter((function(t){return 0!==t}));return s.length?s:l}return l}return e.domain()}function Fd(t,e){var n=t.polar,r=t.startAngle,o=void 0===r?0:r,i=t.endAngle,a=void 0===i?360:i,u=Bd(t),c=u&&0!==(null==u?void 0:u.length)?u.map((function(t){return t.value})):void 0;if(Array.isArray(c)){var l=Ga(t,e),s=qa(t,e),f=zd(t),p=c.map((function(t){return Number(t)})),h=f?1:Et(p),d=f?c.length:Mt(p),y=Va(void 0!==l?l:h,void 0!==s?s:d),v=n&&"x"===e&&360===Math.abs(o-a)?Ka(y,p):y;return Nd(t)&&!n&&v.reverse(),v}}function Hd(t,e){var n=kd(t);if(!e||e===n)return Na(Fd)(t,n)}function qd(t,e){if(t.axisValue){var n="x"===e?"y":"x",r=hs()(t.scale)&&lt(t.scale[n])?t.scale[n]:void 0;if(r){var o="x"===e?"y":"x",i=hs()(t.stringMap)&&t.stringMap[o];return r(i&&"string"==typeof t.axisValue?i[t.axisValue]:t.axisValue)}}}function Gd(t,e){if(!hs()(t.theme))return ft(t,e,"axis");var n="axis";if(t.dependentAxis&&t.theme.dependentAxis?n="dependentAxis":!t.dependentAxis&&t.theme.independentAxis&&(n="independentAxis"),"axis"===n)return ft(t,e,"axis");var r=G()({},t.theme[n],t.theme.axis),o=Object.assign({},t.theme,{axis:r});return ft(Object.assign({},t,{theme:o}),e,"axis")}var Kd=["desc","id","tabIndex","origin"];function $d(){return $d=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},$d.apply(this,arguments)}function Yd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xd(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zd=(0,P.forwardRef)((function(t,e){var n,r=t.desc,o=t.id,i=t.tabIndex,a=(t.origin,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Kd)),u=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yd(Object(n),!0).forEach((function(e){Xd(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({vectorEffect:"non-scaling-stroke",id:null===(n=et(o,t))||void 0===n?void 0:n.toString(),tabIndex:et(i,t)},a);return r?A().createElement("line",$d({},u,{ref:e}),A().createElement("desc",null,r)):A().createElement("line",$d({},u,{ref:e}))}));function Qd(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Jd(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Qd(Object(n),!0).forEach((function(e){ty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Qd(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ey={lineComponent:A().createElement(Zd,null),role:"presentation",shapeRendering:"auto"},ny=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({stroke:"black"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(Jd(Jd({},ey),t));return A().cloneElement(e.lineComponent,Jd(Jd({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};function ry(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function oy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iy={top:-1,left:-1,right:1,bottom:1},ay=function(t){return null!=t},uy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style||{},r={height:"100%",width:"100%"};return{parent:G()(n.parent,e.parent,r),axis:G()({},n.axis,e.axis),axisLabel:G()({},n.axisLabel,e.axisLabel),grid:G()({},n.grid,e.grid),ticks:G()({},n.ticks,e.ticks),tickLabels:G()({},n.tickLabels,e.tickLabels)}},cy=function(t,e,n){var r=t.position,o=t.transform;return{x1:o.x,y1:o.y,x2:o.x+r.x2,y2:o.y+r.y2,style:e,datum:n}},ly=function(t,e,n,r,o){var i=t.position,a=t.transform;return{style:e,x:a.x+i.x,y:a.y+i.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:e.angle,text:o,datum:r}},sy=function(t,e,n){var r=t.edge,o=t.transform;return{x1:o.x,y1:o.y,x2:r.x+o.x,y2:r.y+o.y,style:e,datum:n}},fy=function(t,e,n){var r=e||"positive";return n?{positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}}[r][t]:{positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}}[r][t]},py=function(t,e){return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():t===e},hy=function(t,e,n){var r=e.orientation,o=qd(t,e.axis);return{top:{x:0,y:void 0!==o?o:n.y},bottom:{x:0,y:void 0!==o?o:t.height-n.y},left:{x:void 0!==o?o:n.x,y:0},right:{x:void 0!==o?o:t.width-n.x,y:0}}[r]},dy=function(t,e,n){var r=t.tickStyle,o=t.labelStyle,i=r.size||0,a=i+(r.padding||0)+(o.padding||0),u=iy[e];return{x:n?u*a:0,x2:n?u*i:0,y:n?0:u*a,y2:n?0:u*i}},yy=function(t,e,n){return{x:n?e.x:t+e.x,y:n?t+e.y:e.y}},vy=function(t,e){var n=e.orientation,r=e.padding,o=e.isVertical,i=-iy[n];return{x:o?i*(t.width-(r.left+r.right)):0,y:o?0:i*(t.height-(r.top+r.bottom))}},my=function(t,e){var n=t.padding,r=t.orientation,o=t.crossAxis,i="right"===r?n.right:n.left,a="top"===r?n.top:n.bottom;return{x:o?e.x-i:0,y:o?e.y-a:0}},gy=function(t,e){var n;return n=e.domain.x&&e.domain.y?t.horizontal?function(t,e){var n=e.scale,r=e.origin,o=e.orientation,i=e.orientations,a=e.domain,u=e.padding,c=u.top,l=u.bottom,s=u.left,f=u.right,p="bottom"===o||"top"===o?o:i.x,h="left"===o||"right"===o?o:i.y,d={x:"bottom"===p?l:c,y:"left"===h?s:f},y="left"===h?0:t.width,v="bottom"===p?t.height:0,m=py(r.x,a.x[0])||py(r.x,a.x[1])?0:n.x(r.x),g=py(r.y,a.y[0])||py(r.y,a.y[1])?0:n.y(r.y),b=m?Math.abs(v-m):d.x,x=g?Math.abs(y-g):d.y;return{x:ay(t.offsetX)?t.offsetX:x,y:ay(t.offsetY)?t.offsetY:b}}(t,e):function(t,e){var n=e.scale,r=e.origin,o=e.orientation,i=e.orientations,a=e.domain,u=e.padding,c=u.top,l=u.bottom,s=u.left,f=u.right,p="bottom"===o||"top"===o?o:i.x,h="left"===o||"right"===o?o:i.y,d={x:"left"===h?s:f,y:"bottom"===p?l:c},y="left"===h?0:t.width,v="bottom"===p?t.height:0,m=py(r.x,a.x[0])||py(r.x,a.x[1])?0:n.x(r.x),g=py(r.y,a.y[0])||py(r.y,a.y[1])?0:n.y(r.y),b=m?Math.abs(y-m):d.x,x=g?Math.abs(v-g):d.y;return{x:ay(t.offsetX)?t.offsetX:b,y:ay(t.offsetY)?t.offsetY:x}}(t,e):function(t,e){var n,r=e.style,o=e.scale,i=e.orientation,a=e.padding,u=e.axis,c=e.ticks,l=e.stringTicks,s=e.isVertical,f=e.labelPadding,p=t.polar,h=t.horizontal,d={scale:oy({},u,o),polar:p,horizontal:h,ticks:c,stringTicks:l},y="right"===i?a.right:a.left,v="top"===i?a.top:a.bottom,m=null!==t.offsetX&&void 0!==t.offsetX?t.offsetX:y,g=null!==t.offsetY&&void 0!==t.offsetY?t.offsetY:v,b=r.axisLabel.fontSize||14,x=c.map((function(e,n){var o=l?t.tickValues[e-1]:e;return nt(r.ticks,Object.assign({},d,{tick:o,index:n})).size||0})),O=b+2*Math.max.apply(Math,function(t){if(Array.isArray(t))return ry(t)}(n=x)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return ry(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ry(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())+f,_=1.2*b;return{x:null!=m?m:s?O:_,y:null!=g?g:s?_:O}}(t,e),{globalTransform:hy(t,e,n),gridOffset:my(e,n),gridEdge:vy(t,e)}},by=function(t,e){var n=Gd(t,e),r=function(t){var e=function(t){var e=t.theme,n=t.dependentAxis,r=e&&e.axis&&e.axis.style,o=n?"dependentAxis":"independentAxis",i=e&&e[o]&&e[o].style;return r&&i?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=G()({},i[e],r[e]),t}),{}):i||r}(t),n=uy(t,e),r=Z(t),o=function(t,e){var n=e.axisLabel||{};if(void 0!==n.padding&&null!==n.padding)return n.padding;var r=Nd(t),o=n.fontSize||14;return t.label?o*(r?2.3:1.6):0}(t,n),i=zd(t)?t.tickValues:void 0,a=kd(t),u=Hd(t),c=function(t){var e=kd(t),n=function(t,e){var n=t.orientation,r=t.horizontal;return n?{top:"x",bottom:"x",left:"y",right:"y"}[n]:r?"x"===e?"y":"x":e}(t,e),r=Zi(t,e),o=t.domain&&t.domain[e]||Hd(t)||r.domain();return r.range(ut(t,n)),r.domain(o),r}(t),l="x"===a?u:void 0,s="y"===a?u:void 0,f="x"===a?c:void 0,p="y"===a?c:void 0,h=!(!1===t.crossAxis||!0===t.standalone),d=Vd(t,c,h),y=Wd(t,c),v={x:ut(t,"x"),y:ut(t,"y")},m={x:t.domain&&t.domain.x?t.domain.x:l,y:t.domain&&t.domain.y?t.domain.y:s},g={x:t.domain&&t.domain.x?Zi(t,"x").domain(t.domain.x).range(t.horizontal?v.y:v.x):f,y:t.domain&&t.domain.y?Zi(t,"y").domain(t.domain.y).range(t.horizontal?v.x:v.y):p},b=m.x&&m.y?Ld(m):void 0,x=b?{x:Id(b.x,m.x),y:Id(b.y,m.y)}:void 0,O=x?{x:fy("x",x.y,t.horizontal),y:fy("y",x.x,t.horizontal)}:void 0,_=O?t.orientation||O[a]:function(t){if(t.orientation)return t.orientation;var e={dependent:t.horizontal?"bottom":"left",independent:t.horizontal?"left":"bottom"};return t.dependentAxis?e.dependent:e.independent}(t),w=Nd(Object.assign({},t,{orientation:_})),j=function(t,e){var n={top:"end",left:"end",right:"start",bottom:"start"}[t];return{textAnchor:e?n:"middle",verticalAnchor:e?"middle":n}}(_,w);return{anchors:j,axis:a,crossAxis:h,domain:m,isVertical:w,labelPadding:o,orientation:_,orientations:O,origin:b,padding:r,scale:g,stringTicks:i,style:n,tickFormat:y,ticks:d}}(n),o=r.axis,i=r.style,a=r.orientation,u=r.isVertical,c=r.scale,l=r.ticks,s=r.tickFormat,f=r.anchors,p=r.domain,h=r.stringTicks,d="x"===o?"y":"x",y=n.width,v=n.height,m=n.standalone,g=n.theme,b=n.polar,x=n.padding,O=n.horizontal,_=gy(n,r),w=_.globalTransform,j=_.gridOffset,P=_.gridEdge,A={scale:oy({},o,c[o]),polar:b,horizontal:O,ticks:l,stringTicks:h},M=function(t,e,n){var r=e.style,o=e.padding,i=e.isVertical,a=t.width,u=t.height;return{style:r.axis,x1:i?n.x:o.left+n.x,x2:i?n.x:a-o.right+n.x,y1:i?o.top+n.y:n.y,y2:i?u-o.bottom+n.y:n.y}}(n,r,w),E=function(t,e,n){var r=e.style,o=e.orientation,i=e.padding,a=e.labelPadding,u=e.isVertical,c=iy[o],l=i.left+i.right,s=i.top+i.bottom,f=c<0?"end":"start",p=r.axisLabel,h=u?-90:0;return{x:u?n.x+c*a:(t.width-l)/2+i.left+n.x,y:u?(t.height-s)/2+i.top+n.y:c*a+n.y,verticalAnchor:p.verticalAnchor||f,textAnchor:p.textAnchor||"middle",angle:void 0===p.angle?h:p.angle,style:p,text:t.label}}(n,r,w),C={parent:Object.assign({style:i.parent,ticks:l,standalone:m,theme:g,width:y,height:v,padding:x,domain:p},A)},S={dimension:d,range:oy({},d,ut(n,d)),scale:n.scale&&n.scale[d]?oy({},d,n.scale[d]):void 0};return l.reduce((function(t,e,n){var r,p,d,y=h?h[n]:e,v=s(e,n,l),m=function(t,e){return{tickStyle:nt(t.ticks,e),labelStyle:nt(t.tickLabels,e),gridStyle:nt(t.grid,e)}}(i,Object.assign({},A,{tick:y,tickValue:e,index:n,text:v})),g={position:dy(m,a,u),transform:yy(null===(r=c[o])||void 0===r?void 0:r.call(c,e),w,u)},b={edge:P,transform:{x:u?-j.x+w.x:(null===(p=c[o])||void 0===p?void 0:p.call(c,e))+w.x,y:u?(null===(d=c[o])||void 0===d?void 0:d.call(c,e))+w.y:j.y+w.y}};return t[n]={axis:Object.assign({dimension:o},A,M),axisLabel:Object.assign({},A,E),ticks:Object.assign({},A,cy(g,m.tickStyle,e)),tickLabels:Object.assign({},A,ly(g,m.labelStyle,f,e,v)),grid:Object.assign({},A,S,sy(b,m.gridStyle,e))},t}),C)};function xy(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Oy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wy(t,e){return wy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},wy(t,e)}function jy(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Py(t){return Py=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Py(t)}var Ay={width:450,height:300,padding:50},My=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wy(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Py(r);if(o){var n=Py(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return jy(this,t)});function a(){return Oy(this,a),i.apply(this,arguments)}return e=a,n=[{key:"renderLine",value:function(t){var e=t.axisComponent,n=this.getComponentProps(e,"axis",0);return A().cloneElement(e,n)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent;if(!t.label)return null;var n=this.getComponentProps(e,"axisLabel",0);return A().cloneElement(e,n)}},{key:"renderGridAndTicks",value:function(t){var e=this,n=t.tickComponent,r=t.tickLabelComponent,o=t.gridComponent,i=t.name,a=function(t){var e=t.style,n=void 0===e?{}:e,r=t.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!R()(o)};return this.dataKeys.map((function(u,c){var l=e.getComponentProps(n,"ticks",c),s=A().cloneElement(n,l),f=a(s.props)?s:void 0,p=e.getComponentProps(o,"grid",c),h=A().cloneElement(o,p),d=a(h.props)?h:void 0,y=e.getComponentProps(r,"tickLabels",c),v=[d,f,A().cloneElement(r,y)].filter(Boolean);return A().cloneElement(t.groupComponent,{key:"".concat(i,"-tick-group-").concat(u)},v)}))}},{key:"fixLabelOverlap",value:function(t,e){var n=Nd(e),r=n?e.height:e.width,o=function(t){return t.type&&"label"===t.type.role},i=t.map((function(t){return t.props.children})).reduce((function(t,e){return t.concat(e)}),[]).filter(o).map((function(t){return t.props})).reduce((function(t,e){var r=function(t){return"object"==typeof t?Object.assign({},{top:0,right:0,bottom:0,left:0},t):{top:t,right:t,bottom:t,left:t}}(e.style.padding),o=np(e.text,{angle:e.angle,fontSize:e.style.fontSize,letterSpacing:e.style.letterSpacing,fontFamily:e.style.fontFamily});return t+(n?o.height+r.top+r.bottom:o.width+r.right+r.left)}),0),a=Math.floor(r*t.length/i),u=Math.ceil(t.length/a)||1,c=function(t){return t.props.children.filter(o).reduce((function(t,e){return(n?e.props.y:e.props.x)||0}),0)},l=t.sort((function(t,e){return n?c(e)-c(t):c(t)-c(e)}));return l.filter((function(t,e){return e%u==0}))}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Ey.animationWhitelist,e=Gd(this.props,Ay),n=es(this.props);if(this.shouldAnimate())return this.animateComponent(e,t);var r,o=this.renderGridAndTicks(e),i=e.fixLabelOverlap?this.fixLabelOverlap(o,e):o,a=[this.renderLine(e),this.renderLabel(e)].concat(function(t){if(Array.isArray(t))return xy(t)}(r=i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return xy(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xy(t,e):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=A().cloneElement(e.containerComponent,n);return e.standalone?this.renderContainer(u,a):A().cloneElement(e.groupComponent,n,a)}}],n&&_y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);My.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],My.displayName="VictoryAxis",My.role="axis",My.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},My.defaultProps={axisComponent:A().createElement(ny,null),axisLabelComponent:A().createElement(gp,null),tickLabelComponent:A().createElement(gp,null),tickComponent:A().createElement(ny,null),gridComponent:A().createElement(ny,null),standalone:!0,theme:Ip.grayscale,containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",{role:"presentation"}),fixLabelOverlap:!1},My.getDomain=Hd,My.getAxis=kd,My.getStyles=function(t){return uy(t)},My.getBaseProps=function(t){return by(t,Ay)},My.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var Ey=bd(My,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Cy=function(t,e){var n=function(n){var r="log"===na(t.scale[n])?1/Number.MAX_SAFE_INTEGER:0,o=Et(t.domain[n]),i=Mt(t.domain[n]);return o<0&&i<=0?r=i:o>=0&&i>0&&(r=o),e["_".concat(n)]instanceof Date?new Date(r):r},r=void 0!==e._y0?e._y0:n("y"),o=void 0!==e._x0?e._x0:n("x");return X(t,Object.assign({},e,{_y0:r,_x0:o}))},Sy=function(t,e){var n=e.scale,r=e.data,o=e.style;if(t)return et(t,e);if(o.width)return o.width;var i=n.x.range(),a=Math.abs(i[1]-i[0]),u=r.length+2,c=(e.barRatio||.5)*(r.length<2?8:a/u);return Math.max(1,c)},ky=function(t,e){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0};return t?function(t){return W()(t)}(t)?function(t,e){var n={topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},r=function(r,o){ct(t[r])?ct(t[o])||(n[r]=et(t[o],e)):n[r]=et(t[r],e)};return r("topLeft","top"),r("topRight","top"),r("bottomLeft","bottom"),r("bottomRight","bottom"),n}(t,e):(n.topLeft=et(t,e),n.topRight=et(t,e),n):n},Dy=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;if(e.disableInlineStyles)return{};var n=t.fill||"black",r={fill:"black",stroke:n};return nt(Object.assign(r,t),e)},Ty=function(t,e){return{x:t,y:e,distance:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))},add:function(t){return Ty(this.x+t.x,this.y+t.y)},subtract:function(t){return Ty(this.x-t.x,this.y-t.y)},scalarMult:function(t){return Ty(this.x*t,this.y*t)},scalarDivide:function(t){if(0===t)throw new Error("Division by 0 error");return Ty(this.x/t,this.y/t)},equals:function(t){return this.x===t.x&&this.y===t.y}}},Ry=function(t,e){return{center:t,radius:e,hasIntersection:function(t){var e=this.center,n=t.center,r=this.radius,o=t.radius,i=e.distance(n);return!(i>r+o||i<Math.abs(r-o))},equals:function(t){var e=this.center,n=t.center;return this.radius===t.radius&&e.equals(n)},intersection:function(t){var e=this.center,n=t.center,r=this.radius,o=t.radius,i=e.distance(n);if(!this.hasIntersection(t)||this.equals(t))return[];var a=(Math.pow(r,2)-Math.pow(o,2)+Math.pow(i,2))/(2*i),u=Math.sqrt(Math.pow(r,2)-Math.pow(a,2)),c=e.add(n.subtract(e).scalarMult(a).scalarDivide(i)),l=e.x,s=e.y,f=n.x,p=n.y,h=c.x,d=c.y,y=[Ty(h-u*(p-s)/i,d+u*(f-l)/i),Ty(h+u*(p-s)/i,d-u*(f-l)/i)];return y.sort((function(t,e){return t.x-e.x})),y},solveX:function(t){var e=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.y,2));return[this.center.x-e,this.center.x+e]},solveY:function(t){var e=Math.sqrt(Math.pow(this.radius,2)-Math.pow(t-this.center.x,2));return[this.center.y-e,this.center.y+e]}}};function Ly(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Iy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ly(Object(n),!0).forEach((function(e){Ny(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ly(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Ny(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zy(t){return function(t){if(Array.isArray(t))return By(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return By(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?By(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function By(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Wy=function(t,e){var n=t.x,r=t.x0,o=t.y,i=t.y0,a=t.horizontal,u=t.alignment||"middle",c="middle"===u?e/2:e,l=a?-1:1;return a?{x0:r,x1:n,y0:"start"===u?o:o-l*c,y1:"end"===u?o:o+l*c}:{x0:"start"===u?n:n-l*c,x1:"end"===u?n:n+l*c,y0:i,y1:o}},Uy=function(t,e){var n=t.data,r=t.scale,o=void 0===n[e]._x1?"_x":"_x1";return r.x(n[e][o])},Vy=function(t){return-1*t+Math.PI/2},Fy=function(t,e){var n=t.getPath;if("function"==typeof n)return n(Iy(Iy({},t),Wy(t,e)))},Hy=function(t,e,n){var r="".concat(e.topLeft," ").concat(e.topLeft," ").concat(n),o="".concat(e.topRight," ").concat(e.topRight," ").concat(n),i="".concat(e.bottomLeft," ").concat(e.bottomLeft," ").concat(n),a="".concat(e.bottomRight," ").concat(e.bottomRight," ").concat(n),u=["M","A ".concat(i,","),"L","A ".concat(r,","),"L","A ".concat(o,","),"L","A ".concat(a,",")].reduce((function(e,n,r){return"".concat(e).concat(n," ").concat(t[r].x,", ").concat(t[r].y," \n")}),"");return"".concat(u," z")},qy=function(t,e,n){var r=Wy(t,e),o=r.y0>r.y1?1:-1,i=o>0?"0 0 1":"0 0 0",a=function(t,e,n){var r=t.x0,o=t.x1,i=t.y0,a=t.y1,u=function(t){var u="Left"===t,c=u?1:-1,l=u?r:o,s={x:l+c*n["bottom".concat(t)],y:i},f={x:l,y:i-e*n["bottom".concat(t)]},p={x:l,y:a+e*n["top".concat(t)]},h={x:l+c*n["top".concat(t)],y:a};if(1===e?i-n["bottom".concat(t)]<a+n["top".concat(t)]:i+n["bottom".concat(t)]>a-n["top".concat(t)]){var d=Ty(l+c*n["top".concat(t)],a+e*n["top".concat(t)]),y=Ry(d,n["top".concat(t)]),v=Ty(l+c*n["bottom".concat(t)],i-e*n["bottom".concat(t)]),m=Ry(v,n["bottom".concat(t)]),g=y.intersection(m);if(g.length>0){var b=g[u?0:1];f={x:b.x,y:b.y},p={x:b.x,y:b.y}}else if(n["top".concat(t)]>n["bottom".concat(t)]){var x=y.solveX(i)[u?0:1];s={x,y:i},f={x,y:i},p={x,y:i}}else{var O=m.solveX(a)[u?0:1];f={x:O,y:a},p={x:O,y:a},h={x:O,y:a}}}var _=[s,f,p,h];return u?_:_.reverse()};return u("Left").concat(u("Right"))}(r,o,n);return Hy(a,n,i)},Gy=function(t,e,n){var r=Wy(t,e),o=r.x0<r.x1?1:-1,i={topRight:o>0?n.topLeft:n.bottomLeft,bottomRight:o>0?n.topRight:n.bottomRight,bottomLeft:o>0?n.bottomRight:n.topRight,topLeft:o>0?n.bottomLeft:n.topLeft},a=function(t,e,n){var r=t.y0,o=t.y1,i=t.x0<t.x1?t.x0:t.x1,a=t.x0<t.x1?t.x1:t.x0,u=function(t){var u="top"===t,c=u?-1:1,l=u?o:r,s={x:i,y:l-c*n["".concat(t,"Left")]},f={x:i+n["".concat(t,"Left")],y:l},p={x:a-n["".concat(t,"Right")],y:l},h={x:a,y:l-c*n["".concat(t,"Right")]};if(f.x>p.x){var d=Ty(i+n["".concat(t,"Left")],l-c*n["".concat(t,"Left")]),y=Ry(d,n["".concat(t,"Left")]),v=Ty(a-n["".concat(t,"Right")],l-c*n["".concat(t,"Right")]),m=Ry(v,n["".concat(t,"Right")]),g=y.intersection(m);if(g.length>0){var b=g[e>0?1:0];f={x:b.x,y:b.y},p={x:b.x,y:b.y}}else if(n["".concat(t,"Right")]>n["".concat(t,"Left")]){var x=m.solveY(i)[u?0:1];s={x:i,y:x},f={x:i,y:x},p={x:i,y:x}}else{var O=y.solveY(a)[u?0:1];h={x:a,y:O},p={x:a,y:O},f={x:a,y:O}}}return[s,f,p,h]},c=u("top"),l=u("bottom");return[l[1],l[0]].concat(zy(c),[l[3],l[2]])}(r,o,i);return Hy(a,i,"0 0 1")},Ky=function(t,e){var n,r,o=t.datum,i=t.scale,a=t.index,u=t.alignment,c=t.style,l=i.y(o._y0||0),s=i.y(void 0!==o._y1?o._y1:o._y),f=i.x(void 0!==o._x1?o._x1:o._x);if(c.width){var p=function(t,e){var n=t.scale,r=n.y.range(),o=Math.max.apply(Math,zy(r)),i=Math.abs(n.x.range()[1]-n.x.range()[0]);return e/(2*Math.PI*o)*i}(t,c.width),h="middle"===u?p/2:p;n="start"===u?f:f-h,r="end"===u?f:f+h}else n=function(t,e){var n=t.data,r=t.scale,o=t.alignment,i=Uy(t,e),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=0===e?Uy(t,n.length-1)-2*Math.PI:Uy(t,e-1);return 0===e&&a<2*Math.PI?r.x.range()[0]:"start"===o||"end"===o?"start"===o?u:i:(i+u)/2}(t,Number(a)),r=function(t,e){var n=t.data,r=t.scale,o=t.alignment,i=Uy(t,e),a=Math.abs(r.x.range()[1]-r.x.range()[0]),u=r.x.range()[1]===2*Math.PI?Uy(t,0)+2*Math.PI:r.x.range()[1],c=e===n.length-1?Uy(t,0)+2*Math.PI:Uy(t,e+1);return e===n.length-1&&a<2*Math.PI?u:"start"===o||"end"===o?"start"===o?i:c:(i+c)/2}(t,Number(a));var d=function(t){return Hu().innerRadius(l).outerRadius(s).startAngle(Vy(n)).endAngle(Vy(r)).cornerRadius(e[t])()},y=function(t){var e=d("".concat(t,"Right")),n=e.match(/[A-Z]/g)||[],r=e.split(/[A-Z]/).slice(1),o=n.indexOf("L"),i=d("".concat(t,"Left")),a=i.match(/[A-Z]/g)||[],u=i.split(/[A-Z]/).slice(1),c=a.indexOf("L");return{rightMoves:n,rightCoords:r,rightMiddle:o,leftMoves:a,leftCoords:u,leftMiddle:c}},v=function(){var t,o,i=e.topRight,a=e.topLeft,u=s*Math.abs(r-n),c=y("top"),l=c.rightMoves,f=c.rightCoords,p=c.rightMiddle,h=c.leftMoves,d=c.leftCoords,v=c.leftMiddle;if(i===a||u<2*i+2*a)t=i>a?l:h,o=i>a?f:d;else{var m,g=function(t){return t<3},b=a>i&&g(p)?1:2;if(i>a){var x=g(p)?v:v-2;m=g(v)?v-1:x}else{var O=g(v)?1:2;m=g(p)?O:v-2}t=[].concat(zy(l.slice(0,b)),zy(h.slice(m))),o=[].concat(zy(f.slice(0,b)),zy(d.slice(m)))}var _=t.indexOf("L"),w=t.slice(0,_),j=o.slice(0,_);return w.map((function(t,e){return{command:t,coords:j[e].split(",")}}))}(),m=function(){var t,o,i=e.bottomRight,a=e.bottomLeft,u=l*Math.abs(r-n),c=y("bottom"),s=c.rightMoves,f=c.rightCoords,p=c.rightMiddle,h=c.leftMoves,d=c.leftCoords,v=c.leftMiddle;if(i===a||u<2*i+2*a)t=i>a?s:h,o=i>a?f:d;else{var m=function(t,e){return t.length-e<4},g=(i>a?m(s,p):m(h,v))?-1:-3;t=[].concat(zy(h.slice(0,v+2)),zy(s.slice(g))),o=[].concat(zy(d.slice(0,v+2)),zy(f.slice(g)))}var b=t.indexOf("L"),x=t.slice(b,-1),O=o.slice(b,-1);return x.map((function(t,e){return{command:t,coords:O[e].split(",")}}))}(),g=[].concat(zy(v),zy(m)).reduce((function(t,e){return"".concat(t).concat(e.command," ").concat(e.coords.join())}),"");return"".concat(g," z")},$y=function(t,e,n){return t.getPath?Fy(t,e):t.horizontal?Gy(t,e,n):qy(t,e,n)},Yy=function(t,e){return Ky(t,e)};function Xy(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Zy(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Xy(Object(n),!0).forEach((function(e){Qy(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xy(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Qy(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jy={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},tv=(0,P.forwardRef)((function(t,e){var n=function(t){var e=Dy(t.style,t),n=Sy(t.barWidth,Object.assign({},t,{style:e})),r=ky(t.cornerRadius,Object.assign({},t,{style:e,barWidth:n})),o=et(t.ariaLabel,t),i=et(t.desc,t),a=et(t.id,t),u=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:o,style:e,barWidth:n,cornerRadius:r,desc:i,id:a,tabIndex:u})}(Zy(Zy({},Jy),t)),r=n.polar,o=n.origin,i=n.style,a=n.barWidth,u=n.cornerRadius,c=r?Yy(n,u):$y(n,a,u),l=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0;return n.pathComponent?A().cloneElement(n.pathComponent,Zy(Zy({},n.events),{},{"aria-label":n.ariaLabel,style:i,d:c,className:n.className,clipPath:n.clipPath,desc:n.desc,index:n.index,role:n.role,shapeRendering:n.shapeRendering,transform:n.transform||l,tabIndex:n.tabIndex,ref:e})):null}));function ev(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rv(t,e){return rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},rv(t,e)}function ov(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function iv(t){return iv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},iv(t)}var av={width:450,height:300,padding:50},uv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&rv(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=iv(r);if(o){var n=iv(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return ov(this,t)});function a(){return ev(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=cv.animationWhitelist,e=cv.role,n=ft(this.props,av,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&nv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);uv.animationWhitelist=["data","domain","height","padding","style","width"],uv.displayName="VictoryBar",uv.role="bar",uv.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}}},uv.defaultProps={containerComponent:A().createElement(Zs,null),data:[{x:1,y:1},{x:2,y:2},{x:3,y:3},{x:4,y:4}],dataComponent:A().createElement(tv,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(gp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},uv.getDomain=Ha,uv.getData=Pa,uv.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"bar"),r=Object.assign({},n,function(t){var e=t.polar,n=J(t,"bar"),r=t.disableInlineStyles?{}:tt(t.style,n),o=t.range||{x:ut(t,"x"),y:ut(t,"y")},i={x:Ha(t,"x"),y:Ha(t,"y")},a={x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=e?t.origin||at(t):void 0,c=Pa(t);return{style:r,data:c=ba(c,i,0),scale:a,domain:i,origin:u}}(n)),o=r.alignment,i=r.barRatio,a=r.cornerRadius,u=r.data,c=r.disableInlineStyles,l=r.domain,s=r.events,f=r.height,p=r.horizontal,h=r.origin,d=r.padding,y=r.polar,v=r.scale,m=r.sharedEvents,g=r.standalone,b=r.style,x=r.theme,O=r.width,_=r.labels,w=r.name,j=r.barWidth,P=r.getPath,A={parent:{horizontal:p,domain:l,scale:v,width:O,height:f,data:u,standalone:g,name:w,theme:x,polar:y,origin:h,padding:d,style:b.parent}};return u.reduce((function(t,e,n){var l=ct(e.eventKey)?n:e.eventKey,d=Cy(r,e),g=d.x,x=d.y,w=d.y0,A=d.x0,M={alignment:o,barRatio:i,barWidth:j,cornerRadius:a,data:u,datum:e,disableInlineStyles:c,getPath:P,horizontal:p,index:n,polar:y,origin:h,scale:v,style:b.data,width:O,height:f,x:g,y:x,y0:w,x0:A};return t[l]={data:M},(null!=Xa(r,e,n)||_&&(s||m))&&(t[l].labels=eu(r,n)),t}),A)}(t,av)},uv.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var cv=bd(uv);function lv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function sv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?lv(Object(n),!0).forEach((function(e){fv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function fv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pv={rectComponent:A().createElement(lf,null),role:"presentation",shapeRendering:"auto"},hv=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({fill:"none"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(sv(sv({},pv),t));return A().cloneElement(e.rectComponent,sv(sv({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,transform:e.transform,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,width:e.width,height:e.height,clipPath:e.clipPath}))};function dv(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?dv(Object(n),!0).forEach((function(e){vv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dv(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function vv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mv={groupComponent:A().createElement("g",null),lineComponent:A().createElement(Zd,null),role:"presentation",shapeRendering:"auto"},gv=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(t.style,t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(yv(yv({},mv),t)),n=e.ariaLabel,r=e.groupComponent,o=e.lineComponent,i=e.events,a=e.className,u=e.majorWhisker,c=e.minorWhisker,l=e.transform,s=e.clipPath,f=e.role,p=e.shapeRendering,h=e.style,d=e.desc,y=e.tabIndex,v=yv(yv({},i),{},{style:h,desc:d,tabIndex:y,className:a,transform:l,clipPath:s,role:f,shapeRendering:p});return A().cloneElement(r,{},[A().cloneElement(o,Object.assign({key:"major-whisker","aria-label":n},v,u)),A().cloneElement(o,Object.assign({key:"minor-whisker","aria-label":n},v,c))])},bv=r(9056),xv=r.n(bv),Ov=["max","min","median","q1","q3"],_v=function(t){return Number.isNaN(t)?null:t},wv=function(t){var e=t.map((function(t){return t._y})),n={_q1:_v(Zn(e,.25)),_q3:_v(Zn(e,.75)),_min:_v(Kn(e)),_median:_v(Zn(e,.5)),_max:_v(Gn(e))};return Object.assign({},t[0],n,{_y:t[0]._y})},jv=function(t){var e=Ov.concat("x","y"),n=_a(t.data,t,e);return n.length?function(t){var e=function(t){if(t.every((function(t){return Ov.every((function(e){return void 0!==t["_".concat(e)]}))}))){var e=t.map((function(t){return t._x}));if(!V()(e).length===e.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(e)return t;var n=t.every((function(t){return Array.isArray(t._x)})),r=t.every((function(t){return Array.isArray(t._y)})),o="_y";if(n)throw new Error("\n data should not be given as in array for x\n ");if(r)return t.map((function(t){var e=t._y.map((function(e){return Object.assign({},t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t._y=n,t}({},o,e))})),n=I()(e,o);return wv(n)}));var i=xv()(t,"_x");return Object.keys(i).map((function(t){var e=i[t],n=I()(e,o);return wv(n)}))}(n):[]},Pv=function(t,e){var n=Ga(t,e),r=qa(t,e),o=jv(t);return o.length<1?void 0!==n&&void 0!==r?Va(n,r):void 0:"y"===e?function(t,e,n){var r=Ga(e,n),o=qa(e,n);return Va(void 0!==r?r:t.reduce((function(t,e){return t<e._min?t:e._min}),1/0),void 0!==o?o:t.reduce((function(t,e){return t>e._max?t:e._max}),-1/0))}(o,t,e):function(t,e,n){var r=Ga(e,n),o=qa(e,n);return Va(void 0!==r?r:t.reduce((function(t,e){return t<e["_".concat(n)]?t:e["_".concat(n)]}),1/0),void 0!==o?o:t.reduce((function(t,e){return t>e["_".concat(n)]?t:e["_".concat(n)]}),-1/0))}(o,t,e)},Av=function(t,e){return Na(Pv)(t,e)},Mv=function(t,e,n){var r=t["".concat(n,"LabelComponent")]||t.labelComponent,o=e["".concat(n,"Labels")]||e.labels;if(!Q(r))return o;var i=t.theme&&t.theme.tooltip||{};return G()({},i.style,o)},Ev=function(t,e){var n=ft(t,e,"boxplot"),r=Object.assign({},n,function(t){var e=t.theme,n=t.horizontal,r=jv(t),o={x:ut(t,"x"),y:ut(t,"y")},i={x:Av(t,"x"),y:Av(t,"y")},a={x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.disableInlineStyles)return{};var n=t.style||{},r={height:"100%",width:"100%"},o=G()({},n.labels,Mv(t,e)),i=G()({},n.boxes,e.boxes),a=G()({},n.whiskers,e.whiskers);return{boxes:i,labels:o,parent:G()({},n.parent,e.parent,r),max:G()({},n.max,e.max,a),maxLabels:G()({},n.maxLabels,Mv(t,e,"max"),o),median:G()({},n.median,e.median,a),medianLabels:G()({},n.medianLabels,Mv(t,e,"median"),o),min:G()({},n.min,e.min,a),minLabels:G()({},n.minLabels,Mv(t,e,"min"),o),q1:G()({},n.q1,e.q1,i),q1Labels:G()({},n.q1Labels,Mv(t,e,"q1"),o),q3:G()({},n.q3,e.q3,i),q3Labels:G()({},n.q3Labels,Mv(t,e,"q3"),o),whiskers:a}}(t,e&&e.boxplot&&e.boxplot.style?e.boxplot.style:{}),c=t.horizontal?"top":"right";return{data:r,horizontal:n,domain:i,scale:a,style:u,labelOrientation:t.labelOrientation||c,boxWidth:t.boxWidth||1}}(n)),o=r.groupComponent,i=r.width,a=r.height,u=r.padding,c=r.standalone,l=r.theme,s=r.events,f=r.sharedEvents,p=r.scale,h=r.horizontal,d=r.data,y=r.style,v=r.domain,m=r.name,g={parent:{domain:v,scale:p,width:i,height:a,data:d,standalone:c,name:m,theme:l,style:y.parent||{},padding:u,groupComponent:o,horizontal:h}},b=p.y;return d.reduce((function(t,e,n){var o=ct(e.eventKey)?n:e.eventKey;if(function(t,e){var n,r,o=function(t){return void 0!==t},i=t._x,a=t._min,u=t._max,c=Et(e.x),l=Mt(e.x),s=Et(e.y),f=Mt(e.y),p=function(t){return function(e){return o(e)&&e<t}},h=function(t){return function(e){return o(e)&&e>t}},d=p(c),y=p(s),v=h(l),m=h(f);return(d(i)||v(i))&&(r=!0),(y(a)&&y(u)||m(a)&&m(u))&&(n=!0),n||r}(e,v))return t;var i={x:h?p.y(e._y):p.x(e._x),y:h?p.x(e._x):p.y(e._y),min:b(e._min),max:b(e._max),median:b(e._median),q1:b(e._q1),q3:b(e._q3)},a=Object.assign({index:n,datum:e,positions:i},r),u=Ov.reduce((function(t,e){return t[e]=function(t,e){return"median"===e?function(t){var e=t.boxWidth,n=t.horizontal,r=t.style,o=t.datum,i=t.scale,a=t.index,u=t.disableInlineStyles,c=t.positions,l=c.median,s=c.x,f=c.y;return{datum:o,scale:i,index:a,x1:n?l:s-e/2,y1:n?f-e/2:l,x2:n?l:s+e/2,y2:n?f+e/2:l,style:u?{}:r.median,disableInlineStyles:u}}(t):"min"===e||"max"===e?function(t,e){var n=t.horizontal,r=t.style,o=t.boxWidth,i=t.whiskerWidth,a=t.datum,u=t.scale,c=t.index,l=t.disableInlineStyles,s=t.positions,f=s.min,p=s.max,h=s.q1,d=s.q3,y=s.x,v=s.y,m="min"===e?h:d,g="min"===e?f:p,b="number"==typeof i?i:o;return{datum:a,index:c,scale:u,majorWhisker:{x1:n?m:y,y1:n?v:m,x2:n?g:y,y2:n?v:g},minorWhisker:{x1:n?g:y-b/2,y1:n?v-b/2:g,x2:n?g:y+b/2,y2:n?v+b/2:g},style:l?{}:r[e]||r.whisker,disableInlineStyles:l}}(t,e):function(t,e){var n=t.horizontal,r=t.boxWidth,o=t.style,i=t.scale,a=t.datum,u=t.index,c=t.disableInlineStyles,l=t.positions,s=l.median,f=l.q1,p=l.q3,h=l.x,d=l.y;return{datum:a,scale:i,index:u,x:n?"q1"===e?f:s:h-r/2,y:n?d-r/2:"q1"===e?s:p,width:n?"q1"===e?s-f:p-s:r,height:n?r:"q1"===e?f-s:s-p,style:c?{}:o[e]||o.boxes,disableInlineStyles:c}}(t,e)}(a,e),t}),{});return t[o]=u,Ov.forEach((function(e){var n=function(t,e){var n=t.datum,r=t.index,o=t.labels,i=t["".concat(e,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(e);return"".concat(n[a])}return Array.isArray(i)?i[r]:i}(a,e),i=r.labels||r["".concat(e,"Labels")];if(null!=n||i&&(s||f)){var u="".concat(e,"Labels");t[o][u]=function(t,e,n){var r=t.datum,o=t.positions,i=t.index,a=t.boxWidth,u=t.horizontal,c=t.labelOrientation,l=t.style,s=t.theme,f=t.disableInlineStyles,p=function(t,e){return"object"==typeof t&&t[e]||t}(c,n),h=l["".concat(n,"Labels")]||l.labels,d="number"==typeof t.whiskerWidth?t.whiskerWidth:a,y="min"===n||"max"===n?d:a,v=function(t){var e={x:"left"===p?-1:1,y:"top"===p?-1:1};return e[t]*y/2+e[t]*(h.padding||0)},m={text:e,datum:r,index:i,orientation:p,style:f?{}:h,y:u?o.y:o[n],x:u?o[n]:o.x,dy:u?v("y"):0,dx:u?0:v("x"),textAnchor:h.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[p],verticalAnchor:h.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[p],angle:h.angle,horizontal:u,disableInlineStyles:f};if(!Q(t["".concat(n,"LabelComponent")]))return m;var g=s&&s.tooltip||{};return G()({},m,$(g,["style"]))}(Object.assign({},r,a),n,e)}})),t}),g)};function Cv(t){return function(t){if(Array.isArray(t))return Sv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Sv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sv(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function kv(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dv(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Tv(t,e){return Tv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Tv(t,e)}function Rv(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Lv(t){return Lv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Lv(t)}var Iv={width:450,height:300,padding:{top:20,right:20,bottom:20,left:20}},Nv=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tv(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Lv(r);if(o){var n=Lv(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Rv(this,t)});function a(){return kv(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"renderBoxPlot",value:function(t){var e=this,n=["q1","q3","max","min","median"],r=n.map((function(n){return e.dataKeys.reduce((function(r,o,i){var a=t["".concat(n,"Component")],u=e.getComponentProps(a,n,i);return e.shouldRenderDatum(u.datum)&&r.push(A().cloneElement(a,u)),r}),[])})).flat(),o=n.map((function(n){return e.dataKeys.reduce((function(r,o,i){var a="".concat(n,"Labels"),u=t["".concat(n,"LabelComponent")],c=e.getComponentProps(u,a,i);return void 0!==c.text&&null!==c.text&&r.push(A().cloneElement(u,c)),r}),[]).filter(Boolean)})).flat(),i=[].concat(Cv(r),Cv(o));return this.renderContainer(t.groupComponent,i)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"shouldRenderDatum",value:function(t){var e=!ct(t._x),n=!ct(t._y);return!(ct(t._min)||ct(t._max)||ct(t._median)||ct(t._q1)||ct(t._q3))&&(this.props.horizontal?n:e)}},{key:"render",value:function(){var t=zv.animationWhitelist,e=zv.role,n=ft(this.props,Iv,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderBoxPlot(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&Dv(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Nv.animationWhitelist=["data","domain","height","padding","style","width"],Nv.displayName="VictoryBoxPlot",Nv.role="boxplot",Nv.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Nv.defaultProps={containerComponent:A().createElement(Zs,null),data:[{x:1,min:5,q1:7,median:12,q3:18,max:20},{x:2,min:2,q1:5,median:8,q3:12,max:15}],dataComponent:A().createElement(hv,null),groupComponent:A().createElement("g",{role:"presentation"}),maxComponent:A().createElement(gv,null),maxLabelComponent:A().createElement(gp,null),medianComponent:A().createElement(ny,null),medianLabelComponent:A().createElement(gp,null),minComponent:A().createElement(gv,null),minLabelComponent:A().createElement(gp,null),q1Component:A().createElement(hv,null),q1LabelComponent:A().createElement(gp,null),q3Component:A().createElement(hv,null),q3LabelComponent:A().createElement(gp,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},Nv.getDomain=Av,Nv.getData=jv,Nv.getBaseProps=function(t){return Ev(t,Iv)},Nv.expectedComponents=["maxComponent","maxLabelComponent","medianComponent","medianLabelComponent","minComponent","minLabelComponent","q1Component","q1LabelComponent","q3Component","q3LabelComponent","groupComponent","containerComponent"];var zv=bd(Nv,{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 Bv(t,e,n){var r=e.a,o=e.d,i=e.e,a=e.f;return"y"===n?o*t+a:r*t+i}function Wv(t){return!(!t||void 0===t.identifier)}function Uv(t){if(!Wv(t.nativeEvent)){var e=function(t){return"svg"===t.nodeName?t:t.parentNode?e(t.parentNode):t};return e(t.target)}}function Vv(t,e){if(Wv(t.nativeEvent))return{x:t.nativeEvent.locationX,y:t.nativeEvent.locationY};var n=function(t){return t.changedTouches&&t.changedTouches.length>0}(t)?t.changedTouches[0]:t,r=function(t){return t.getScreenCTM().inverse()}(e||Uv(n));return{x:Bv(n.clientX,r,"x"),y:Bv(n.clientY,r,"y")}}function Fv(t,e){var n=t.horizontal,r=t.scale,o=e||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(o.y[0]),r.y(o.y[1])]:[r.x(o.x[0]),r.x(o.x[1])],y:n?[r.x(o.x[0]),r.x(o.x[1])]:[r.y(o.y[0]),r.y(o.y[1])]}}function Hv(t,e,n,r){var o=t.polar,i=t.horizontal;if(!o)return{x:i?e.x.invert(r):e.x.invert(n),y:i?e.y.invert(n):e.y.invert(r)};var a=t.origin||{x:0,y:0},u=n-a.x,c=r-a.y,l=Math.abs(u*Math.sqrt(1+Math.pow(-c/u,2))),s=(-Math.atan2(c,u)+2*Math.PI)%(2*Math.PI);return{x:e.x.invert(s),y:e.y.invert(l)}}function qv(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.scale,a=Hv(t,i,e,r),u=Hv(t,i,n,o),c=function(t,e){return[Et([t,e]),Mt([t,e])]};return{x:c(a.x,u.x),y:c(a.y,u.y)}}var Gv=r(8163),Kv=r.n(Gv);function $v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Yv(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?$v(Object(n),!0).forEach((function(e){Xv(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Xv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Zv(t){return function(t){if(Array.isArray(t))return Qv(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Qv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Qv(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Jv={getDimension:function(t){var e=t.horizontal,n=t.brushDimension;return e&&n?"x"===n?"y":"x":n},withinBounds:function(t,e,n){var r=ht(e,Number),o=r.x1,i=r.x2,a=r.y1,u=r.y2,c=ht(t,Number),l=c.x,s=c.y,f=n?n/2:0;return l+f>=Math.min(o,i)&&l-f<=Math.max(o,i)&&s+f>=Math.min(a,u)&&s-f<=Math.max(a,u)},getDomainBox:function(t,e,n){var r=this.getDimension(t),o=G()({},e,t.domain),i=G()({},n,o),a=Fv(t,o),u=Fv(t,i);return{x1:"y"!==r?Math.min.apply(Math,Zv(u.x)):Math.min.apply(Math,Zv(a.x)),x2:"y"!==r?Math.max.apply(Math,Zv(u.x)):Math.max.apply(Math,Zv(a.x)),y1:"x"!==r?Math.min.apply(Math,Zv(u.y)):Math.min.apply(Math,Zv(a.y)),y2:"x"!==r?Math.max.apply(Math,Zv(u.y)):Math.max.apply(Math,Zv(a.y))}},getHandles:function(t,e){var n=this.getDimension(t),r=e.x1,o=e.x2,i=e.y1,a=e.y2,u=Math.min(r,o),c=Math.max(r,o),l=Math.min(i,a),s=Math.max(i,a),f=t.handleWidth/2;return{left:"y"!==n&&{x1:u-f,x2:u+f,y1:i,y2:a},right:"y"!==n&&{x1:c-f,x2:c+f,y1:i,y2:a},top:"x"!==n&&{x1:r,x2:o,y1:l-f,y2:l+f},bottom:"x"!==n&&{x1:r,x2:o,y1:s-f,y2:s+f}}},getActiveHandles:function(t,e,n){var r=this,o=this.getHandles(e,n),i=["top","bottom","left","right"].reduce((function(e,n){return o[n]&&r.withinBounds(t,o[n])?e.concat(n):e}),[]);return i.length&&i},getResizeMutation:function(t,e){var n=t.x1,r=t.y1,o=t.x2,i=t.y2,a={left:{x1:Math.max(n,o),x2:Math.min(n,o),y1:r,y2:i},right:{x1:Math.min(n,o),x2:Math.max(n,o),y1:r,y2:i},top:{y1:Math.max(r,i),y2:Math.min(r,i),x1:n,x2:o},bottom:{y1:Math.min(r,i),y2:Math.max(r,i),x1:n,x2:o}};return e.reduce((function(t,e){return Object.assign(t,a[e])}),{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(t,e,n){var r=t.domain,o=t.fullDomain,i=t.scale,a=t.horizontal,u=t.allowResize||t.defaultBrushArea?t.defaultBrushArea:"move";if("none"===u)return this.getMinimumDomain();if("disable"===u)return e;if("move"===u){var c=this.getDomainBox(t,o,e),l=t.parentSVG||Uv(n),s=this.panBox(Yv(Yv(Yv({},t),c),{},{brushDomain:e,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),Vv(n,l)),f=t.fullDomainBox||this.getDomainBox(t,o);return qv(Yv(Yv({},this.constrainBox(s,f)),{},{scale:i,horizontal:a}))}return r},getSelectionMutation:function(t,e,n){var r=t.x,o=t.y,i=e.x1,a=e.x2,u=e.y1,c=e.y2;return{x1:"y"!==n?r:i,y1:"x"!==n?o:u,x2:"y"!==n?r:a,y2:"x"!==n?o:c}},panBox:function(t,e){var n=t.domain,r=t.startX,o=t.startY,i=this.getDimension(t),a=G()({},t.brushDomain,n),u=G()({},t.fullDomain,n),c=t.x1?t:this.getDomainBox(t,u,a),l=c.x1,s=c.x2,f=c.y1,p=c.y2,h=e.x,d=e.y,y=r?r-h:0,v=o?o-d:0;return{x1:"y"!==i?Math.min(l,s)-y:Math.min(l,s),x2:"y"!==i?Math.max(l,s)-y:Math.max(l,s),y1:"x"!==i?Math.min(f,p)-v:Math.min(f,p),y2:"x"!==i?Math.max(f,p)-v:Math.max(f,p)}},constrainBox:function(t,e){var n=ht(e,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x1:t.x2>i?i-Math.abs(t.x2-t.x1):Math.max(t.x1,r),y1:t.y2>a?a-Math.abs(t.y2-t.y1):Math.max(t.y1,o),x2:t.x1<r?r+Math.abs(t.x2-t.x1):Math.min(t.x2,i),y2:t.y1<o?o+Math.abs(t.y2-t.y1):Math.min(t.y2,a)}},constrainPoint:function(t,e){var n=ht(e,Number),r=n.x1,o=n.y1,i=n.x2,a=n.y2;return{x:Math.min(Math.max(t.x,r),i),y:Math.min(Math.max(t.y,o),a)}},hasMoved:function(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.mouseMoveThreshold,a=this.getDimension(t),u=Math.abs(e-n)>=i,c=Math.abs(r-o)>=i;switch(a){case"x":return u;case"y":return c;default:return u||c}},onMouseDown:function(t,e){var n=this;t.preventDefault();var r=e.handleWidth,o=e.cachedBrushDomain,i=e.domain,a=e.allowResize,u=e.allowDrag,c=e.allowDraw,l=this.getDimension(e),s=a||e.defaultBrushArea?e.defaultBrushArea:"move";if(!a&&!u)return{};var f=e.fullDomainBox||this.getDomainBox(e,i),p=e.parentSVG||Uv(t),h=Vv(t,p),d=h.x,y=h.y;if(!this.withinBounds({x:d,y},f,r))return{};var v=G()({},e.brushDomain,i),m=Up()(v,o)?e.currentDomain||v||i:v||i,g=this.getDomainBox(e,i,m),b=a&&this.getActiveHandles({x:d,y},e,g);return b?[{target:"parent",mutation:function(){return Yv({isSelecting:!0,domainBox:g,fullDomainBox:f,cachedBrushDomain:v,currentDomain:m,parentSVG:p},n.getResizeMutation(g,b))}}]:this.withinBounds({x:d,y},g)&&!Up()(i,m)?[{target:"parent",mutation:function(){return Yv({isPanning:u,startX:d,startY:y,domainBox:g,fullDomainBox:f,currentDomain:m,cachedBrushDomain:v,parentSVG:p},g)}}]:c?[{target:"parent",mutation:function(){return Yv({isSelecting:a||"move"===s,domainBox:g,fullDomainBox:f,parentSVG:p,cachedBrushDomain:v,cachedCurrentDomain:m,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:d,y},g,l))}}]:{}},onGlobalMouseMove:function(t,e){var n=e.scale,r=e.isPanning,o=e.isSelecting,i=e.fullDomainBox,a=e.onBrushDomainChange,u=e.allowResize,c=e.allowDrag,l=e.horizontal,s=e.mouseMoveThreshold,f=e.parentSVG,p=this.getDimension(e),h=Vv(t,f),d=h.x,y=h.y;if(!u&&!c||s>0&&!this.hasMoved(Yv(Yv({},e),{},{x2:d,y2:y})))return{};if(c&&r){var v=e.startX,m=e.startY,g=this.panBox(e,{x:d,y}),b=this.constrainBox(g,i),x=qv(Yv(Yv({},b),{},{scale:n,horizontal:l})),O=Yv({currentDomain:x,parentSVG:f,startX:g.x2>=i.x2||g.x1<=i.x1?v:d,startY:g.y2>=i.y2||g.y1<=i.y1?m:y},b);return lt(a)&&a(x,G()({},O,e)),[{target:"parent",mutation:function(){return O}}]}if(u&&o){var _=this.constrainPoint({x:"y"!==p?d:e.x2,y:"x"!==p?y:e.y2},i),w=_.x,j=_.y,P=qv({x2:w,y2:j,x1:e.x1,y1:e.y1,scale:n,horizontal:l}),A={x2:w,y2:j,currentDomain:P,parentSVG:f};return lt(a)&&a(P,G()({},A,e)),[{target:"parent",mutation:function(){return A}}]}return{}},onGlobalMouseUp:function(t,e){if(!e.isPanning&&!e.isSelecting)return{};var n=e.x1,r=e.y1,o=e.x2,i=e.y2,a=e.isPanning,u=e.isSelecting,c=e.onBrushDomainChange,l=e.onBrushDomainChangeEnd,s=e.onBrushCleared,f=e.currentDomain,p=e.allowResize,h=e.allowDrag,d=p||e.defaultBrushArea?e.defaultBrushArea:"move",y={isPanning:!1,isSelecting:!1};if(!p&&(void 0===d||"none"===d)||n!==o&&r!==i)(h&&a||p&&u)&&lt(l)&&l(f,G()({},y,e));else{var v=e.cachedCurrentDomain||f,m=this.getDefaultBrushArea(e,v,t);y.currentDomain=m,lt(c)&&c(m,G()({},y,e)),lt(l)&&l(m,G()({},y,e)),lt(s)&&s(m,G()({},y,e))}return[{target:"parent",mutation:function(){return y}}]}},tm=Yv(Yv({},Jv),{},{onMouseDown:Jv.onMouseDown.bind(Jv),onGlobalMouseUp:Jv.onGlobalMouseUp.bind(Jv),onGlobalMouseMove:Kv()(Jv.onGlobalMouseMove.bind(Jv),16,{leading:!0,trailing:!1})});function em(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?em(Object(n),!0).forEach((function(e){rm(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):em(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function om(t){return function(t){if(Array.isArray(t))return im(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return im(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?im(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function im(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function am(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function um(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function cm(t,e){return cm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},cm(t,e)}function lm(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function sm(t){return sm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},sm(t)}function fm(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&cm(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=sm(r);if(o){var n=sm(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return lm(this,t)});function a(){return am(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getSelectBox",value:function(t,e){var n=e.x,r=e.y,o=t.brushStyle,i=t.brushComponent,a=t.name,u=i.props&&i.props.style,c=t.allowDrag||t.allowResize?"move":"auto";return n[0]!==n[1]&&r[0]!==r[1]?A().cloneElement(i,{key:"".concat(a,"-brush"),width:Math.abs(n[1]-n[0])||1,height:Math.abs(r[1]-r[0])||1,x:Math.min(n[0],n[1]),y:Math.min(r[0],r[1]),cursor:c,style:G()({},u,o)}):null}},{key:"getCursorPointers",value:function(t){var e={yProps:"ns-resize",xProps:"ew-resize"};return!t.allowResize&&t.allowDrag?(e.xProps="move",e.yProps="move"):t.allowResize||t.allowDrag||(e.xProps="auto",e.yProps="auto"),e}},{key:"getHandles",value:function(t,e){var n=t.handleWidth,r=t.handleStyle,o=t.handleComponent,i=t.name,a=tm.getDomainBox(t,e),u=a.x1,c=a.x2,l=a.y1,s=a.y2,f=tm.getHandles(t,a),p=f.top,h=f.bottom,d=f.left,y=f.right,v=Math.abs(c-u)||1,m=Math.abs(s-l)||1,g=o.props&&o.props.style||{},b=G()({},g,r),x=this.getCursorPointers(t),O={style:b,width:v,height:n,cursor:x.yProps},_={style:b,width:n,height:m,cursor:x.xProps},w={top:p&&Object.assign({x:p.x1,y:p.y1},O),bottom:h&&Object.assign({x:h.x1,y:h.y1},O),left:d&&Object.assign({y:d.y1,x:d.x1},_),right:y&&Object.assign({y:y.y1,x:y.x1},_)},j=["top","bottom","left","right"].reduce((function(t,e){return w[e]?t.concat(A().cloneElement(o,Object.assign({key:"".concat(i,"-handle-").concat(e)},w[e]))):t}),[]);return j.length?j:null}},{key:"getRect",value:function(t){var e=t.currentDomain,n=t.cachedBrushDomain,r=G()({},t.brushDomain,t.domain),o=Up()(r,n)?G()({},e,r):r,i=Fv(t,o),a=this.getSelectBox(t,i);return a?[a,this.getHandles(t,o)]:[]}},{key:"getChildren",value:function(t){return[].concat(om(A().Children.toArray(t.children)),om(this.getRect(t)))}}],n&&um(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryBrushContainer",e.defaultProps=nm(nm({},Zs.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:A().createElement(lf,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:A().createElement(lf,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:tm.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:tm.onMouseDown(e,n)},onGlobalMouseMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:tm.onGlobalMouseMove(e,n)},onGlobalTouchMove:function(e,n){return t.disable||!n.isPanning&&!n.isSelecting?{}:tm.onGlobalMouseMove(e,n)},onGlobalMouseUp:function(e,n){return t.disable?{}:tm.onGlobalMouseUp(e,n)},onGlobalTouchEnd:function(e,n){return t.disable?{}:tm.onGlobalMouseUp(e,n)},onGlobalTouchCancel:function(e,n){return t.disable?{}:tm.onGlobalMouseUp(e,n)}}}]},e}var pm=fm(Zs);function hm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ym(t,e){return ym=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ym(t,e)}function vm(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function mm(t){return mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mm(t)}function gm(t){return function(t){if(Array.isArray(t))return bm(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return bm(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bm(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bm(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var xm=1/Number.MAX_SAFE_INTEGER,Om=function(t){var e=t.scale,n=void 0===e?{}:e,r=t.dimension,o=void 0===r?"x":r;if(n[o])return n[o];var i=Zi(t,o),a=ut(t,o),u=Fa(t,o)||[0,1];return i.range(a).domain(u),i},_m=function(t){var e=t.horizontal,n=t.dimension,r=void 0===n?"x":n;return e?"x"===r?"y":"x":r},wm=function(t,e){var n=Om(t);return[n(Math.min.apply(Math,gm(e))),n(Math.max.apply(Math,gm(e)))]},jm=function(t,e){var n=Om(t);return[n.invert(Math.min.apply(Math,gm(e))),n.invert(Math.max.apply(Math,gm(e)))]},Pm=function(t){return Om(t).range()},Am=function(t){return Om(t).domain()},Mm=function(t,e){return t>=Et(e)&&t<=Mt(e)},Em=function(t,e){if(t){var n=Et(t),r=Mt(t),o=Et(e),i=Mt(e),a=n<o?o:Number(i)-xm,u=r>i?i:Number(o)+xm;return[Mm(n,e)?n:a,Mm(r,e)?r:u]}return e},Cm=function(t,e,n){var r=t.handleWidth/2,o=_m(t),i=["min","max"].reduce((function(t,i){return t[i]=Mm(e,function(t){var e={min:"x"===o?Math.min.apply(Math,gm(n)):Math.max.apply(Math,gm(n)),max:"x"===o?Math.max.apply(Math,gm(n)):Math.min.apply(Math,gm(n))};return[e[t]-r,e[t]+r]}(i))?i:void 0,t}),{});return i.min&&i.max?"both":i.min||i.max},Sm={stroke:"none",fill:"black",opacity:function(t){return t.active?.2:.1}},km={pointerEvents:"none",stroke:"none",fill:"black",opacity:function(t){return t.active?.4:.3}},Dm={pointerEvents:"none",stroke:"none",fill:"none"},Tm=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ym(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=mm(r);if(o){var n=mm(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return vm(this,t)});function a(){return hm(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getRectDimensions",value:function(t,e,n){var r=t.brushDomain,o=_m(t),i=wm(t,n||Em(r,Am(t))),a="x"===o?{y1:t.y1,y2:t.y2,x1:Math.min.apply(Math,gm(i)),x2:Math.max.apply(Math,gm(i))}:{x1:t.x1,x2:t.x2,y1:Math.min.apply(Math,gm(i)),y2:Math.max.apply(Math,gm(i))},u=a.x1,c=a.x2,l=a.y1,s=a.y2,f="x"===o?0:e/2,p="y"===o?0:e/2,h=Math.min(u,c)-f,d=Math.min(l,s)-p;return{x:h,y:d,width:Math.max(u,c)+f-h,height:Math.max(l,s)+p-d}}},{key:"getHandleDimensions",value:function(t){var e=t.handleWidth,n=t.x1,r=t.x2,o=t.y1,i=t.y2,a=t.brushDomain,u=_m(t),c=t.brushWidth||t.width,l=Em(a,Am(t)),s=wm(t,l),f=Math.min(n,r)-c/2,p=Math.min(o,i)-c/2,h={min:"x"===u?Math.min.apply(Math,gm(s))-e/2:f,max:"x"===u?Math.max.apply(Math,gm(s))-e/2:f},d={min:"y"===u?Math.max.apply(Math,gm(s))-e/2:p,max:"y"===u?Math.min.apply(Math,gm(s))-e/2:p},y="x"===u?e:c,v="x"===u?c:e;return{min:{x:h.min,y:d.min,width:y,height:v},max:{x:h.max,y:d.max,width:y,height:v}}}},{key:"getCursor",value:function(t){var e=t.activeBrushes,n=void 0===e?{}:e,r=_m(t);return n.minHandle||n.maxHandle?"x"===r?"ew-resize":"ns-resize":n.brush?"move":"crosshair"}},{key:"renderHandles",value:function(t){var e=t.handleComponent,n=t.handleStyle,r=t.id,o=t.brushDomain,i=t.datum,a=void 0===i?{}:i,u=t.activeBrushes,c=void 0===u?{}:u;if(!o)return null;var l=this.getHandleDimensions(t),s=Object.assign({},Dm,n),f=Object.assign({handleValue:Et(o)},a),p=Object.assign({handleValue:Mt(o)},a),h=Object.assign({key:"".concat(r,"-min"),style:nt(s,{datum:f,active:c.minHandle})},l.min),d=Object.assign({key:"".concat(r,"-max"),style:nt(s,{datum:p,active:c.maxHandle})},l.max);return[A().cloneElement(e,h),A().cloneElement(e,d)]}},{key:"renderBrush",value:function(t){var e=t.brushComponent,n=t.brushStyle,r=t.activeBrushes,o=void 0===r?{}:r,i=t.datum,a=void 0===i?{}:i;if(!t.brushDomain)return null;var u=t.brushWidth||t.width,c=this.getRectDimensions(t,u),l=nt(Object.assign({},km,n),{datum:a,active:o.brush}),s=Object.assign({style:l},c);return A().cloneElement(e,s)}},{key:"renderBrushArea",value:function(t){var e=t.brushAreaComponent,n=t.brushAreaStyle,r=t.activeBrushes,o=void 0===r?{}:r,i=t.datum,a=void 0===i?{}:i,u=t.brushAreaWidth||t.width,c=this.getCursor(t),l=this.getRectDimensions(t,u,Am(t)),s=nt(Object.assign({cursor:c},Sm,n),{datum:a,active:o.brushArea}),f=Object.assign({style:s},l);return A().cloneElement(e,f)}},{key:"renderLine",value:function(t){var e=H()(t,["x1","x2","y1","y2","datum","scale","active","style"]);return A().cloneElement(t.lineComponent,e)}},{key:"render",value:function(){return A().createElement("g",this.props.events,this.renderLine(this.props),this.renderBrushArea(this.props),this.renderBrush(this.props),this.renderHandles(this.props))}}],n&&dm(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function Rm(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Lm(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Rm(Object(n),!0).forEach((function(e){Im(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Im(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Tm.defaultProps={allowDrag:!0,allowDraw:!0,allowResize:!0,brushAreaComponent:A().createElement(hv,null),brushComponent:A().createElement(hv,null),groupComponent:A().createElement("g",null),handleComponent:A().createElement(hv,null),handleWidth:10,lineComponent:A().createElement(ny,null),width:10},Tm.defaultEvents=function(t){return t.disable?void 0:[{target:t.type,eventHandlers:{onMouseEnter:function(t,e){t.preventDefault();var n=e.allowResize,r=e.brushDomain,o=_m(e),i=e.parentSVG||Uv(t),a=Vv(t,i)[o],u=Am(e),c=Em(r,u),l=wm(e,c),s=n&&Cm(e,a,l),f={brushArea:!e.brushDomain,brush:Mm(a,l)&&!Up()(u,c),minHandle:"min"===s||"both"===s,maxHandle:"min"===s||"both"===s};return[{mutation:function(){return{activeBrushes:f,brushDomain:e.brushDomain,parentSVG:i}}}]},onMouseDown:function(t,e){t.preventDefault();var n=e.allowResize,r=e.allowDrag,o=e.allowDraw,i=e.activeBrushes,a=e.brushDomain,u=_m(e);if(!n&&!r)return[];var c=Am(e),l=Em(a,c),s=e.parentSVG||Uv(t),f=Vv(t,s)[u],p=wm(e,l),h=n&&Cm(e,f,p);return h?[{mutation:function(){return{parentSVG:s,isSelecting:!0,activeHandle:h,brushDomain:l,startPosition:f,activeBrushes:i}}}]:Mm(f,p)&&!Up()(c,l)?[{mutation:function(){return{isPanning:r,startPosition:f,brushDomain:l,activeBrushes:i,parentSVG:s}}}]:o?[{mutation:function(){return{isSelecting:n,brushDomain:null,startPosition:f,activeBrushes:i,parentSVG:s}}}]:[]},onMouseMove:function(t,e){var n=e.isPanning,r=e.isSelecting,o=e.allowResize,i=e.allowDrag,a=e.onBrushDomainChange,u=e.brushDomain,c=_m(e);(n||r)&&(t.preventDefault(),t.stopPropagation());var l=e.parentSVG||Uv(t),s=Vv(t,l)[c],f=Am(e),p=Em(u,f),h=wm(e,p),d=Cm(e,s,h),y={brushArea:!e.brushDomain,brush:Mm(s,h)&&!Up()(f,p),minHandle:"min"===d||"both"===d,maxHandle:"max"===d||"both"===d};if(!e.isPanning&&!e.isSelecting)return[{mutation:function(){return{activeBrushes:y,brushDomain:e.brushDomain,parentSVG:l}}}];if(i&&n){var v=Pm(e),m=function(t,e){var n=t.brushDomain,r=t.startPosition,o=wm(t,n),i=Pm(t),a=Math.abs(o[1]-o[0]),u=Math.min.apply(Math,gm(i)),c=Math.max.apply(Math,gm(i)),l=r?r-e:0,s=Math.min.apply(Math,gm(o))-l,f=Math.max.apply(Math,gm(o))-l;return[s>c-a?c-a:Math.max(s,u),f<u+a?u+a:Math.min(f,c)]}(e,s),g=jm(e,m),b={startPosition:Math.max.apply(Math,gm(m))>=Math.max.apply(Math,gm(v))||Math.min.apply(Math,gm(m))<=Math.min.apply(Math,gm(v))?e.startPosition:s,isPanning:!0,brushDomain:g,activeBrushes:{brush:!0},parentSVG:l};return lt(a)&&a(g,G()({},b,e)),[{mutation:function(){return b}}]}if(o&&r){var x=u||[0,xm],O=wm(e,x),_="min"===e.activeHandle?"max":"min",w=e.activeHandle&&"both"===Cm(e,s,O)?_:e.activeHandle;if(w){var j="x"===c?Math.max.apply(Math,gm(O)):Math.min.apply(Math,gm(O)),P="x"===c?Math.min.apply(Math,gm(O)):Math.max.apply(Math,gm(O));x=jm(e,["max"===w?P:s,"min"===w?j:s])}else x=jm(e,[e.startPosition,s]);var A={brushDomain:x,startPosition:e.startPosition,isSelecting:r,activeHandle:w,parentSVG:l,activeBrushes:{brush:!0,minHandle:"min"===d,maxHandle:"max"===d}};return lt(a)&&a(x,G()({},A,e)),[{mutation:function(){return A}}]}return[]},onMouseUp:function(t,e){var n=e.onBrushDomainChange,r=e.brushDomain,o=e.allowResize,i={isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:r,activeBrushes:e.activeBrushes};return o&&lt(n)&&n(r,G()({},i,e)),[{mutation:function(){return i}}]},onMouseLeave:function(t,e){var n=e.brushDomain;return[{mutation:function(){return{isPanning:!1,isSelecting:!1,activeHandle:null,startPosition:null,brushDomain:n,activeBrushes:{}}}}]}}}]};var Nm={groupComponent:A().createElement("g",null),lineComponent:A().createElement(Zd,null),rectComponent:A().createElement(lf,null),role:"presentation",shapeRendering:"auto"},zm=function(t){var e=function(t){var e=nt(Object.assign({stroke:"black"},t.style),t),n=function(t,e){var n=e.style;return t?lt(t)?et(t,e):t:n.width?n.width:t}(t.candleWidth,Object.assign({},t,{style:e})),r=et(t.ariaLabel,t),o=et(t.desc,t),i=et(t.id,t),a=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:r,style:e,candleWidth:n,desc:o,id:i,tabIndex:a})}(Lm(Lm({},Nm),t)),n=e.ariaLabel,r=e.events,o=e.groupComponent,i=e.clipPath,a=e.rectComponent,u=e.lineComponent,c=e.role,l=e.shapeRendering,s=e.className,f=e.wickStrokeWidth,p=e.transform,h=e.style,d=e.desc,y=e.tabIndex,v=G()({strokeWidth:f},h),m=Lm(Lm({},r),{},{"aria-label":n,role:c,shapeRendering:l,className:s,transform:p,clipPath:i,desc:d,tabIndex:y}),g=Object.assign(function(t,e){var n=t.id,r=t.x,o=t.close,i=t.open,a=t.horizontal,u=t.candleWidth,c=Math.abs(o-i);return{key:"".concat(n,"-candle"),style:$(e,["width"]),x:a?Math.min(i,o):r-u/2,y:a?r-u/2:Math.min(i,o),width:a?c:u,height:a?u:c}}(e,h),m),b=Object.assign(function(t,e){var n=t.horizontal,r=t.high,o=t.open,i=t.close,a=t.x,u=t.id;return{key:"".concat(u,"-highWick"),style:$(e,["width"]),x1:n?r:a,x2:n?Math.max(o,i):a,y1:n?a:r,y2:n?a:Math.min(o,i)}}(e,v),m),x=Object.assign(function(t,e){var n=t.horizontal,r=t.low,o=t.open,i=t.close,a=t.x,u=t.id;return{key:"".concat(u,"-lowWick"),style:$(e,["width"]),x1:n?Math.min(o,i):a,x2:n?r:a,y1:n?a:Math.max(o,i),y2:n?a:r}}(e,v),m);return A().cloneElement(o,{},[A().cloneElement(a,g),A().cloneElement(u,b),A().cloneElement(u,x)])},Bm=["close","open","high","low"],Wm=function(t){return _a(t.data,t,["x","high","low","close","open"])},Um=function(t,e,n){var r="x"===e?"_x":{min:"_low",max:"_high"}[n],o="min"===n?1/0:-1/0;return t.reduce((function(t,e){var o=e[r];return t<o&&"min"===n||t>o&&"max"===n?t:o}),o)},Vm=function(t,e){var n=Ga(t,e),r=qa(t,e),o=Wm(t);return o.length<1?void 0!==n&&void 0!==r?Va(n,r):void 0:Va(void 0!==n?n:Um(o,e,"min"),void 0!==r?r:Um(o,e,"max"))},Fm=function(t,e){return Na(Vm)(t,e)},Hm=function(t,e,n){var r=t["".concat(n,"LabelComponent")],o=e["".concat(n,"Labels")]||e.labels;if(!Q(r))return o;var i=t.theme&&t.theme.tooltip||{};return G()({},i.style,o)},qm=function(t){return"none"===t||"transparent"===t},Gm=function(t,e,n,r){var o=t.x,i=t.high,a=t.low,u=t.open,c=t.close,l=t.index,s=t.scale,f=t.datum,p=t.data,h=t.horizontal,d=t.candleWidth,y=t.labelOrientation,v=t.theme,m=t["".concat(r,"LabelComponent")]||t.labelComponent,g=h?"top":"right",b=m.props&&m.props.orientation||function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"labels";return W()(t)?t[e]:t}(y,r)||g,x={high:i,low:a,open:u,close:c},O=n[r?"".concat(r,"Labels"):"labels"]||n.labels,_=function(t){var e=t.positions,n=t.labelStyle,r=t.x,o=t.horizontal,i=t.computedType,a=t.candleWidth,u=t.orientation;e.labels=(e.open+e.close)/2;var c="left"===u?-1:1,l="top"===u?-1:1;if(o){var s=r,f=e[i],p="top"===u||"bottom"===u?l*(a/2)+l*(n.padding||0):0;return{yValue:s,xValue:f,dx:"top"===u||"bottom"===u?0:c*(n.padding||1),dy:p}}var h=r,d=e[i],y="top"===u||"bottom"===u?l*(n.padding||1):0;return{yValue:d,xValue:h,dx:"top"===u||"bottom"===u?0:c*(a/2)+c*(n.padding||0),dy:y}}({positions:x,labelStyle:O,x:o,horizontal:h,computedType:r||"labels",candleWidth:d,orientation:b}),w={style:O,y:_.yValue,x:_.xValue,dx:_.dx,dy:_.dy,text:e,index:l,scale:s,datum:f,data:p,orientation:b,textAnchor:O.textAnchor||{left:"end",right:"start",top:"middle",bottom:"middle"}[b],verticalAnchor:O.verticalAnchor||{top:"end",bottom:"start",left:"middle",right:"middle"}[b],angle:O.angle,horizontal:h};if(!Q(m))return w;var j=v&&v.tooltip||{};return G()({},w,$(j,["style"]))},Km=function(t,e){var n=ft(t,e,"candlestick"),r=function(t){var e=t.polar,n=J(t,"candlestick"),r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.disableInlineStyles)return{};var r="100%",o="100%";if(!e)return G()({parent:{height:o,width:r}},n);var i=n.parent||{},a=n.labels||{},u=n.data||{},c=G()({},e.labels,a);return{parent:G()({},e.parent,i,{width:r,height:o}),labels:c,data:G()({},e.data,u),openLabels:G()({},e.openLabels,Hm(t,n,"open"),c),closeLabels:G()({},e.closeLabels,Hm(t,n,"close"),c),lowLabels:G()({},e.lowLabels,Hm(t,n,"low"),c),highLabels:G()({},e.highLabels,Hm(t,n,"high"),c)}}(t,t.style,n),o=Wm(t),i={x:ut(t,"x"),y:ut(t,"y")},a={x:Fm(t,"x"),y:Fm(t,"y")},u={x:Zi(t,"x").domain(a.x).range(t.horizontal?i.y:i.x),y:Zi(t,"y").domain(a.y).range(t.horizontal?i.x:i.y)},c=e?t.origin||at(t):void 0,l=t.horizontal?"top":"right";return{domain:a,data:o,scale:u,style:r,origin:c,labelOrientation:t.labelOrientation||l}}(n),o=r.data,i=r.style,a=r.scale,u=r.domain,c=r.origin,l=r.labelOrientation,s=n.groupComponent,f=n.width,p=n.height,h=n.padding,d=n.standalone,y=n.name,v=n.candleWidth,m=n.candleRatio,g=n.theme,b=n.polar,x=n.wickStrokeWidth,O=n.labels,_=n.events,w=n.sharedEvents,j=n.horizontal,P=n.disableInlineStyles,A={parent:{domain:u,scale:a,width:f,height:p,data:o,standalone:d,theme:g,polar:b,origin:c,name:y,style:i.parent,padding:h,horizontal:j}};return o.reduce((function(t,e,r){var p=ct(e.eventKey)?r:e.eventKey,h=a.x(void 0!==e._x1?e._x1:e._x),d=function(t,e){var n=Et(e.x),r=Mt(e.x),o=Et(e.y),i=Mt(e.y),a=t._x,u=t._low,c=t._open,l=t._close,s=t._high;return(a<n||a>r)&&(a=null),u<o&&c<o&&l<o&&s<o&&(u=c=l=s=null),u>i&&c>i&&l>i&&s>i&&(u=c=l=s=null),Object.assign({},t,{_x:a,_low:u,_open:c,_close:l,_high:s})}(e,u),y=d._low,g=d._open,A=d._close,M=d._high,E=a.y(M),C=a.y(A),S=a.y(g),k=a.y(y),D=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(n.disableInlineStyles)return{};var r=t._open>t._close?n.candleColors.negative:n.candleColors.positive,o=e.fill||r,i=e.stroke,a=qm(i)?o:i||"black";return Object.assign({},e,{stroke:a,fill:o})}(d,i.data,n),T={x:h,high:E,low:k,candleWidth:v,candleRatio:m,scale:a,data:o,datum:d,groupComponent:s,index:r,style:D,width:f,polar:b,origin:c,wickStrokeWidth:x,open:S,close:C,horizontal:j,labelOrientation:l,disableInlineStyles:P};T.candleWidth=function(t,e){var n=t.data,r=t.candleWidth,o=t.scale;if(r)return lt(r)?et(r,t):r;var i=o.x.range(),a=Math.abs(i[1]-i[0]),u=n.length+2,c=(t.candleRatio||.5)*(n.length<2?8:a/u);return Math.max(1,c)}(T);var R=G()(Object.assign({},T),n);if(t[p]={data:T},O){var L=Xa(n,d,r);(null!=L||O&&(_||w))&&(t[p].labels=Gm(R,L,i))}return Bm.forEach((function(e){var r=function(t,e){var n=t.datum,r=t.index,o=t.labels,i=t["".concat(e,"Labels")];if(!i&&!o)return null;if(!0===i||!0===o){var a="_".concat(e);return"".concat(n[a])}return Array.isArray(i)?i[r]:i}(R,e),o=n.labels||n["".concat(e,"Labels")];if(null!=r||o&&(_||w)){var a="".concat(e,"Labels");t[p][a]=Gm(R,r,i,e)}})),t}),A)};function $m(t){return function(t){if(Array.isArray(t))return Ym(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ym(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ym(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ym(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Xm(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zm(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Qm(t,e){return Qm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Qm(t,e)}function Jm(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function tg(t){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},tg(t)}var eg={width:450,height:300,padding:50,candleColors:{positive:"#ffffff",negative:"#252525"}},ng=[{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}],rg=function(t){return!ct(t._x)&&!ct(t._y)},og=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Qm(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=tg(r);if(o){var n=tg(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Jm(this,t)});function a(){var t;Xm(this,a);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))).shouldRenderDatum=function(t){return!(ct(t._x)||ct(t._high)||ct(t._low)||ct(t._close)||ct(t._open))},t}return e=a,n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"renderCandleData",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rg,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=["close","open","low","high"];if(!i)throw new Error("VictoryCandlestick expects a groupComponent prop");var u=[];if(r){var c=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(r,"data",i);return n(a.datum)&&t.push(A().cloneElement(r,a)),t}),[]);u.push.apply(u,$m(c))}var l=a.flatMap((function(n){return e.dataKeys.map((function(r,o){var i="".concat(n,"Labels"),a=t["".concat(n,"LabelComponent")],u=e.getComponentProps(a,i,o);if(void 0!==u.text&&null!==u.text)return A().cloneElement(a,u)})).filter((function(t){return void 0!==t}))}));if(u.push.apply(u,$m(l)),o){var s=this.dataKeys.map((function(t,n){var r=e.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return A().cloneElement(o,r)})).filter((function(t){return void 0!==t}));u.push.apply(u,$m(s))}return this.renderContainer(i,u)}},{key:"render",value:function(){var t=ig.animationWhitelist,e=ig.role,n=ft(this.props,eg,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderCandleData(n,this.shouldRenderDatum),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}],n&&Zm(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);og.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],og.displayName="VictoryCandlestick",og.role="candlestick",og.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},og.defaultProps={containerComponent:A().createElement(Zs,null),data:ng,dataComponent:A().createElement(zm,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(gp,null),highLabelComponent:A().createElement(gp,null),lowLabelComponent:A().createElement(gp,null),openLabelComponent:A().createElement(gp,null),closeLabelComponent:A().createElement(gp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},og.getDomain=Fm,og.getData=Wm,og.getBaseProps=function(t){return Km(t,eg)},og.expectedComponents=["openLabelComponent","closeLabelComponent","highLabelComponent","lowLabelComponent","dataComponent","labelComponent","groupComponent","containerComponent"];var ig=bd(og,{components:[{name:"lowLabels"},{name:"highLabels"},{name:"openLabels"},{name:"closeLabels"},{name:"labels"},{name:"data"},{name:"parent",index:"parent"}]}),ag=A().createContext(void 0),ug=function(){var t=A().useContext(ag);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},cg=function(t){var e=ug().canvasRef,n=function(t){var e=Dy(t.style,t),n=Sy(t.barWidth,Object.assign({},t,{style:e})),r=ky(t.cornerRadius,Object.assign({},t,{style:e,barWidth:n}));return Object.assign({},t,{style:e,barWidth:n,cornerRadius:r})}(t),r=n.polar,o=n.style,i=n.barWidth,a=n.cornerRadius,u=n.origin,c=A().useMemo((function(){var t=r?Yy(n,a):$y(n,i,a);return new Path2D(t)}),[r,i,a,n]),l=function(t){var e=A().useRef();return A().useEffect((function(){e.current=t})),e.current}(c),s=A().useCallback((function(t,e){t.fillStyle=o.fill,t.strokeStyle=o.stroke,t.globalAlpha=o.fillOpacity,t.lineWidth=o.strokeWidth,r&&t.translate((null==u?void 0:u.x)||0,(null==u?void 0:u.y)||0),t.fill(e),t.setTransform(1,0,0,1,0,0)}),[o,u,r]),f=A().useCallback((function(t){if(l){t.save();var e=o.strokeWidth||0;t.lineWidth=e+2,t.globalCompositeOperation="destination-out",s(t,l),t.stroke(l),t.restore()}}),[s,l,o]);return A().useEffect((function(){var t,n=null===(t=e.current)||void 0===t?void 0:t.getContext("2d");n&&(f(n),s(n,c))}),[e,s,r,i,a,n,c,f]),null},lg=function(t){var e=A().useRef(null),n=t.children,r=t.width,o=void 0===r?0:r,i=t.height,a=void 0===i?0:i,u=t.clipWidth,c=t.padding,l=A().useCallback((function(t){return t.clearRect(0,0,o,a)}),[o,a]),s=A().useCallback((function(t){var e="number"==typeof c?c:(null==c?void 0:c.right)||0,n="number"==typeof c?c:(null==c?void 0:c.left)||0,r=o-e-n;t.clearRect(o-e,0,u?-1*(r-u):0,a)}),[o,a,c,u]);return A().createElement(ag.Provider,{value:{canvasRef:e,clear:l,clip:s}},A().createElement("foreignObject",{width:o,height:a,x:0,y:0},A().createElement("canvas",{width:o,height:a,ref:e})),n)};lg.role="container";var sg=function(t){var e=ug(),n=e.canvasRef,r=e.clear,o=e.clip,i=t.style,a=t.data,u=i.stroke,c=i.strokeWidth,l=A().useCallback((function(e){var n=Fl(t);e.strokeStyle=u,e.lineWidth=c,n.context(e)(a),e.stroke()}),[a,t,u,c]);return A().useEffect((function(){var t,e=null===(t=n.current)||void 0===t?void 0:t.getContext("2d");e&&(r(e),l(e),o(e))}),[n,l,r,o]),null};function fg(t,e,n){return"M ".concat(t,", ").concat(e,"\n m ").concat(-n,", 0\n a ").concat(n,", ").concat(n," 0 1,0 ").concat(2*n,",0\n a ").concat(n,", ").concat(n," 0 1,0 ").concat(2*-n,",0")}function pg(t,e,n){var r=.87*n,o=t-r,i=e+r,a=t+r-o;return"M ".concat(o,", ").concat(i,"\n h").concat(a,"\n v-").concat(a,"\n h-").concat(a,"\n z")}function hg(t,e,n){var r=.87*n,o=Math.sqrt(r*r*2);return"M ".concat(t,", ").concat(e+o,"\n l ").concat(o,", -").concat(o,"\n l -").concat(o,", -").concat(o,"\n l -").concat(o,", ").concat(o,"\n l ").concat(o,", ").concat(o,"\n z")}function dg(t,e,n){var r=t+n,o=e-n,i=e+n/2*Math.sqrt(3);return"M ".concat(t-n,", ").concat(o,"\n L ").concat(r,", ").concat(o,"\n L ").concat(t,", ").concat(i,"\n z")}function yg(t,e,n){var r=t+n,o=e-n/2*Math.sqrt(3),i=e+n;return"M ".concat(t-n,", ").concat(i,"\n L ").concat(r,", ").concat(i,"\n L ").concat(t,", ").concat(o,"\n z")}function vg(t,e,n){var r=1.1*n,o=r/1.5;return"\n M ".concat(t-o/2,", ").concat(e+r,"\n v-").concat(o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(o,"\n z")}function mg(t,e,n){var r=.8*n,o=r/1.5;return"\n M ".concat(t-o/2,", ").concat(e+r+o,"\n v-").concat(2*o,"\n h-").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v-").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h").concat(o,"\n v").concat(o,"\n h-").concat(o,"\n v").concat(2*o,"\n z")}function gg(t,e,n){var r=1.1*n,o=r-.3*r,i=t-r,a=e+o/2,u=t+r-i;return"M ".concat(i,", ").concat(a,"\n h").concat(u,"\n v-").concat(o,"\n h-").concat(u,"\n z")}function bg(t,e,n){var r=1.35*n,o=Math.PI/5,i=dt(10).map((function(n){var i=n%2==0?r:r/2;return"".concat(i*Math.sin(o*(n+1))+t,",\n ").concat(i*Math.cos(o*(n+1))+e)}));return"M ".concat(i.join("L")," z")}var xg=function(t){var e=ug().canvasRef,n=function(t){var e=et(t.size,t),n=nt(t.style,t),r=et(t.symbol,t);return Object.assign({},t,{size:e,style:n,symbol:r})}(t),r=A().useCallback((function(t){var e=n.style,r=function(t){var e=t.x,n=t.y,r=t.size,o=t.symbol;if(t.getPath)return t.getPath(e,n,r);var i={circle:fg,square:pg,diamond:hg,triangleDown:dg,triangleUp:yg,plus:vg,minus:gg,star:bg,cross:mg};return("function"==typeof i[o]?i[o]:i.circle)(e,n,r)}(n);t.fillStyle=e.fill;var o=new Path2D(r);t.fill(o)}),[n]);return A().useEffect((function(){var t,n=null===(t=e.current)||void 0===t?void 0:t.getContext("2d");n&&r(n)}),[]),null};function Og(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Og(Object(n),!0).forEach((function(e){wg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Og(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function wg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jg={circleComponent:A().createElement(rf,null),rectComponent:A().createElement(lf,null),role:"presentation",shapeRendering:"auto"},Pg=function(t){var e=function(t){var e=et(t.id,t);return Object.assign({},t,{id:e})}(_g(_g({},jg),t));return e.polar?A().cloneElement(e.circleComponent,_g(_g({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,cx:e.x,cy:e.y,r:e.height,className:e.className})):A().cloneElement(e.rectComponent,_g(_g({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,rx:e.rx,ry:e.ry,width:e.width,height:e.height,className:e.className}))};function Ag(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Mg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ag(Object(n),!0).forEach((function(e){Eg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Eg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Sg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sg(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var kg={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},Dg=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:kg,e=A().useState(t),n=Cg(e,2),r=n[0],o=n[1],i=A().useCallback((function(t){o((function(e){return Mg(Mg({},e),t)}))}),[o]),a=A().useCallback((function(t,e,n){if(null==t||!t.animate)return e.props.animate;var o,a=t.animate&&t.animate.getTransitions,u=(o=Pt(o=r&&r.childrenTransitions)?o[n]:o,G()({childrenTransitions:o},r)),c=t.animate&&t.animate.parentState||u;if(!a){var l=Lh(t,u,(function(t){return i(t)}));a=function(t){return l(t,n)}}return G()({getTransitions:a,parentState:c},t.animate,e.props.animate)}),[r,i]),u=A().useCallback((function(t,e){if(null!=t&&t.animate)if(t.animate.parentState){var n=t.animate.parentState.nodesWillExit?t:null,r=G()({oldProps:n,nextProps:e},t.animate.parentState);i(r)}else{var o=A().Children.toArray(t.children),a=A().Children.toArray(e.children),u=function(t){var e=function(t){return t.type&&t.type.continuous};return Array.isArray(t)?t.some(e):e(t)},c=!t.polar&&o.some((function(t){var e;return u(t)||(null==t||null===(e=t.props)||void 0===e?void 0:e.children)&&u(t.props.children)})),l=Rh(o,a),s=l.nodesWillExit,f=l.nodesWillEnter,p=l.childrenTransitions,h=l.nodesShouldEnter;i({nodesWillExit:s,nodesWillEnter:f,nodesShouldEnter:h,childrenTransitions:Pt(p)?p[0]:p,oldProps:s?t:void 0,nextProps:e,continuous:c})}}),[i]),c=A().useCallback((function(t){return r&&r.nodesWillExit&&r.oldProps||t}),[r]);return{state:r,setState:i,getAnimationProps:a,setAnimationState:u,getProps:c}},Tg=r(8961),Rg=r.n(Tg);function Lg(t){return function(t){if(Array.isArray(t))return Ig(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ig(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ig(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ig(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ng(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function zg(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Ng(Object(n),!0).forEach((function(e){Bg(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ng(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Bg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wg(t){var e=t.children,n=t.props,r=t.childComponents,o=t.parentProps,i=e.some((function(t){return t.type&&"histogram"===t.type.role})),a=i&&e.length&&e.every((function(t){return t.type&&"histogram"===t.type.role}));if(!a)return o;var u=n.bins||r[0].props.bins;if(!Array.isArray(u)){var c=e.reduce((function(t,e){var n=st(e.props.x||"x");return t.concat(e.props.data.map((function(t){return{x:n(t)}})))}),[]);u=(0,e[0].type.getFormattedData)({data:c,bins:u}).reduce((function(t,e,n){var r=e.x0,o=e.x1;return 0===n?t.concat([r,o]):t.concat(o)}),[])}return zg(zg({},o),{},{bins:u})}function Ug(t,e){var n={polar:t.polar,startAngle:t.startAngle,endAngle:t.endAngle,categories:t.categories,minDomain:t.minDomain,maxDomain:t.maxDomain},r=0,o=e?e.slice(0):A().Children.toArray(t.children);n=Wg({children:o,props:t,childComponents:e,parentProps:n});var i=o.filter((function(t){return t.type&&"stack"===t.type.role})).length,a=yt(o,(function(t,e,o){var i,a=Object.assign({},t.props,n);return Ca(t)?(i=t.type&&lt(t.type.getData)?(o?A().cloneElement(t,o.props):t).type.getData(a):Pa(a),r+=1,i.map((function(t,e){return Object.assign({_stack:r,_group:e},t)}))):null}),t,[],(function(t,e){return t.concat(Rg()(e,"_group"))})),u=i?"_group":"_stack";return Object.values(xv()(a,u))}function Vg(t,e){return t.data?Pa(t):Ug(t,e||A().Children.toArray(t.children))}function Fg(t,e,n){var r=t.datasets,o=ut(t,t.horizontal?"y":"x"),i=Math.abs(o[1]-o[0]),a=void 0!==n?n:Array.isArray(r[0])&&r[0].length||1,u=(e||r.length)*a;return Math.round(.5*i/u)}function Hg(t,e,n){if(!t.polar&&"x"===e){var r=n.filter((function(t){return t.type&&t.type.role&&"group"===t.type.role}));if(!(r.length<1)){var o=r[0].props,i=o.offset,a=o.children;if(i){var u=Array.isArray(a)&&a[0];if(u){var c=u.props.barWidth,l=u.props.data&&u.props.data.length||1;if(u&&"stack"===u.type.role){var s=u.props.children&&u.props.children[0];if(!s)return;c=s.props.barWidth,l=u.props.children.length}var f=c||Fg(t,a.length,l);return{x:f*a.length/2+(i-f*((a.length-1)/2))}}}}}}function qg(t,e,n){var r=n?n.slice(0):A().Children.toArray(t.children),o=t.data?Pa(t):void 0,i=t.polar,a=t.startAngle,u=t.endAngle,c=t.categories,l=t.minDomain,s=t.maxDomain,f={horizontal:t.horizontal,polar:i,startAngle:a,endAngle:u,minDomain:l,maxDomain:s,categories:c},p=o?Object.assign(f,{data:o}):f,h=yt(r,(function(t){var n=Object.assign({},t.props,p);return $a(t)?t.type&&lt(t.type.getDomain)?t.props&&t.type.getDomain(n,e):Ba(n,e):null}),t);return[0===h.length?0:Et(h),0===h.length?1:Mt(h)]}function Gg(t,e,n){var r,o=n||A().Children.toArray(t.children),i=Fa(t,e),a=Hg(t,e,o);if(i)r=i;else{var u=Ga(t,e),c=qa(t,e),l=(t.data||t.y)&&Pa(t),s=l?Ua(t,e,l):[],f=qg(t,e,o);r=Va(u||Et([].concat(Lg(s),Lg(f))),c||Mt([].concat(Lg(s),Lg(f))))}return za(r,Object.assign({domainPadding:a},t),e)}function Kg(t,e,n){if(t.data)return Zi(t,e);var r=n?n.slice(0):A().Children.toArray(t.children),o=V()(yt(r,(function(n){return ta(Object.assign({},n.props,{horizontal:t.horizontal}),e)}),t));return o.length>1?Xi("linear"):Xi(o[0])}function $g(t){var e=ed(t,["groupComponent","containerComponent","labelComponent"]),n=t.events;return Array.isArray(e)&&(n=Array.isArray(t.events)?e.concat.apply(e,Lg(t.events)):e),n||[]}function Yg(t,e,n){var r=t.style,o=t.colorScale,i=t.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(o=e.props&&e.props.colorScale?e.props.colorScale:o,i=e.props&&e.props.color?e.props.color:i,o||i){var a=Array.isArray(o)?o:If(o);return i||a[n%a.length]}}function Xg(t,e,n){return tt(e,t&&t[n]&&t[n].style?t[n].style:{})}function Zg(t,e,n){var r=n.style,o=n.role,i=t.props.style||{};if(Array.isArray(i))return i;var a=t.type&&t.type.role,u="stack"===a?void 0:Yg(n,t,e),c="line"===a?{fill:"none",stroke:u}:{fill:u},l="stack"===o?{}:{width:Fg(n)},s=G()({},i.data,Object.assign({},l,r.data,c)),f=G()({},i.labels,r.labels);return zg(zg({},i),{},{parent:r.parent,data:s,labels:f})}function Qg(t,e){return yt(t.slice(0),(function(t){var n=t.props||{};if(!$a(t)||!n.categories)return null;var r=n.categories&&!Array.isArray(n.categories)?n.categories[e]:n.props.categories,o=r&&r.filter((function(t){return"string"==typeof t}));return o?At(o):[]}))}function Jg(t){return yt(t.slice(0),(function(t){var e=t.props||{};return Ca(t)?(t.type&&lt(t.type.getData)?t.type.getData(e):Pa(e)).map((function(t){return{x:t.xName,y:t.yName}})):null}),{},{x:[],y:[]},(function(t,e){var n=Array.isArray(e)?e.map((function(t){return t.x})).filter(Boolean):e.x,r=Array.isArray(e)?e.map((function(t){return t.y})).filter(Boolean):e.y;return{x:void 0!==n?t.x.concat(n):t.x,y:void 0!==r?t.y.concat(r):t.y}}))}function tb(t,e,n){var r=W()(t.categories)?t.categories[e]:t.categories,o=Td(n,e),i=o?Aa(o.props,e):[],a=r||Qg(n,e);return V()([].concat(Lg(a),Lg(i)).flat())}function eb(t,e){var n=e||A().Children.toArray(t.children),r=tb(t,"x",n),o=tb(t,"y",n),i=Jg(n);return{x:V()([].concat(Lg(r),Lg(i.x)).flat()),y:V()([].concat(Lg(o),Lg(i.y)).flat())}}function nb(t,e,n){var r=t.categories&&!Array.isArray(t.categories)?t.categories.x:t.categories,o=t.categories&&!Array.isArray(t.categories)?t.categories.y:t.categories,i=r&&o?{}:n||eb(t,e),a=r||i.x,u=o||i.y;return{x:a.length>0?a:void 0,y:u.length>0?u:void 0}}function rb(t){var e=A().useRef();return A().useEffect((function(){e.current=t})),e.current}var ob=r(7314),ib=r.n(ob),ab=r(2516),ub=r.n(ab);function cb(t,e){if(t){if("string"==typeof t)return lb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lb(t,e):void 0}}function lb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function sb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fb(t,e){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fb(t,e)}function pb(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hb(t)}function hb(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function db(t){return db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},db(t)}var yb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fb(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=db(r);if(o){var n=db(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return pb(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).getScopedEvents=void 0,e.getEventState=void 0,e.baseProps=void 0,e.sharedEventsCache=void 0,e.globalEvents=void 0,e.prevGlobalEventKeys=void 0,e.boundGlobalEvents=void 0,e.getScopedEvents=Yh.bind(hb(e)),e.getEventState=Zh.bind(hb(e)),e.state=e.state||{},e.sharedEventsCache={},e.globalEvents={},e.prevGlobalEventKeys=[],e.boundGlobalEvents={},e.baseProps=e.getBaseProps(t),e}return e=a,n=[{key:"shouldComponentUpdate",value:function(t){if(!Up()(this.props,t)){this.baseProps=this.getBaseProps(t);var e=this.getExternalMutations(t,this.baseProps);this.applyExternalMutations(t,e)}return!0}},{key:"componentDidMount",value:function(){var t=this,e=Object.keys(this.globalEvents);e.forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentDidUpdate",value:function(){var t=this,e=Object.keys(this.globalEvents);jt(this.prevGlobalEventKeys,e).forEach((function(e){return t.removeGlobalListener(e)})),jt(e,this.prevGlobalEventKeys).forEach((function(e){return t.addGlobalListener(e)})),this.prevGlobalEventKeys=e}},{key:"componentWillUnmount",value:function(){var t=this;this.prevGlobalEventKeys.forEach((function(e){return t.removeGlobalListener(e)}))}},{key:"addGlobalListener",value:function(t){var e=this,n=function(n){var r=e.globalEvents[t];return r&&r(id(n))};this.boundGlobalEvents[t]=n,window.addEventListener(nd(t),n)}},{key:"removeGlobalListener",value:function(t){window.removeEventListener(nd(t),this.boundGlobalEvents[t])}},{key:"getAllEvents",value:function(t){var e,n=ed(t,["container","groupComponent"]);return Array.isArray(n)?Array.isArray(t.events)?n.concat.apply(n,function(t){if(Array.isArray(t))return lb(t)}(e=t.events)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||cb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):n:t.events}},{key:"applyExternalMutations",value:function(t,e){if(!R()(e)){var n=t.externalEventMutations.reduce((function(t,e){return lt(e.callback)?t.concat(e.callback):t}),[]),r=n.length?function(){n.forEach((function(t){return t()}))}:void 0;this.setState(e,r)}}},{key:"getExternalMutations",value:function(t,e){return R()(t.externalEventMutations)?void 0:Qh(t.externalEventMutations,e,this.state,Object.keys(e))}},{key:"cacheSharedEvents",value:function(t,e,n){this.sharedEventsCache[t]=[e,n]}},{key:"getCachedSharedEvents",value:function(t,e){var n,r,o=(n=this.sharedEventsCache[t]||[],r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||cb(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];if(i&&Up()(e,a))return i}},{key:"getBaseProps",value:function(t){var e=t.container,n=A().Children.toArray(this.props.children),r=this.getBasePropsFromChildren(n),o=e?e.props:{};return Object.assign({},r,{parent:o})}},{key:"getBasePropsFromChildren",value:function(t){var e=yt(t,(function(t,e){if(t.type&&lt(t.type.getBaseProps)){var n=t.props&&t.type.getBaseProps(t.props);return n?[[e,n]]:null}return null}));return ib()(e)}},{key:"getNewChildren",value:function(t,e){var n=this,r=t.events,o=t.eventKey,i=function(t,a){return t.reduce((function(t,u,c){if(u.props.children){var l=A().Children.toArray(u.props.children),s=a.slice(c,c+l.length),f=A().cloneElement(u,u.props,i(l,s));return t.concat(f)}if("parent"!==a[c]&&u.type&&lt(u.type.getBaseProps)){var p=u.props.name||a[c],h=Array.isArray(r)&&r.filter((function(t){return"parent"!==t.target&&(Array.isArray(t.childName)?t.childName.indexOf(p)>-1:t.childName===p||"all"===t.childName)})),d=[p,e,h,ub()(n.state[p])],y=n.getCachedSharedEvents(p,d)||{events:h,getEvents:function(t,r){return n.getScopedEvents(t,r,p,e)},getEventState:function(t,e){return n.getEventState(t,e,p)}};return n.cacheSharedEvents(p,y,d),t.concat(A().cloneElement(u,Object.assign({key:"events-".concat(p),sharedEvents:y,eventKey:o,name:p},u.props)))}return t.concat(u)}),[])},a=Object.keys(e),u=A().Children.toArray(t.children);return i(u,a)}},{key:"getContainer",value:function(t,e,n){var r=this,o=this.getNewChildren(t,e),i=Array.isArray(n)?n.filter((function(t){return"parent"===t.target})):[],a=i.length>0?{events:i,getEvents:function(t,n){return r.getScopedEvents(t,n,null,e)},getEventState:this.getEventState}:null,u=t.container||t.groupComponent,c=u.type&&u.type.role,l=u.props||{},s=$h.bind(this),f=a&&s({sharedEvents:a},"parent"),p=G()({},this.getEventState("parent","parent"),l,e.parent,{children:o}),h=G()({},Xh(f,"parent",p),l.events);this.globalEvents=rd(h);var d=od(h);return"container"===c?A().cloneElement(u,Object.assign({},p,{events:d})):A().cloneElement(u,d,o)}},{key:"render",value:function(){var t=this.getAllEvents(this.props);return t?this.getContainer(this.props,this.baseProps,t):A().cloneElement(this.props.container,{children:this.props.children})}}],n&&sb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);function vb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vb(Object(n),!0).forEach((function(e){gb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}yb.displayName="VictorySharedEvents",yb.role="shared-event-wrapper",yb.contextType=Vs,yb.defaultProps={groupComponent:A().createElement("g",null)};var bb=function(t){var e=t.cx,n=t.cy,r=t.r,o=t.startAngle,i=t.endAngle,a=t.closedPath,u=Math.abs(i-o)/2+o,c=e+r*Math.cos(rt(o)),l=n-r*Math.sin(rt(o)),s=e+r*Math.cos(rt(u)),f=n-r*Math.sin(rt(u)),p=e+r*Math.cos(rt(i)),h=n-r*Math.sin(rt(i)),d=u-o<=180?0:1,y=i-u<=180?0:1,v=a?" M ".concat(e,", ").concat(n," L ").concat(c,", ").concat(l):"M ".concat(c,", ").concat(l),m="A ".concat(r,", ").concat(r,", 0, ").concat(d,", 0, ").concat(s,", ").concat(f),g="A ".concat(r,", ").concat(r,", 0, ").concat(y,", 0, ").concat(p,", ").concat(h),b=a?"Z":"";return"".concat(v," ").concat(m," ").concat(g," ").concat(b)},xb={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},Ob=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=nt(Object.assign({stroke:"black",fill:"none"},t.style),t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,style:o,tabIndex:i})}(mb(mb({},xb),t));return A().cloneElement(e.pathComponent,mb(mb({},e.events),{},{"aria-label":e.ariaLabel,d:bb(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform,clipPath:e.clipPath}))},_b=function(t,e,n){return"x"===n?t*Math.cos(e):-t*Math.sin(e)},wb=function(t){var e=t.dependentAxis?"radial":"angular",n="angular"===e?"radial":"angular";return t.horizontal?n:e},jb=function(t,e){return{tickStyle:nt(t.ticks,e),labelStyle:nt(t.tickLabels,e),gridStyle:nt(t.grid,e)}},Pb=function(t){var e=Z(t),n=e.left,r=e.right,o=e.top,i=e.bottom,a=t.width,u=t.height;if(void 0===a||void 0===u)throw new Error("VictoryPolarAxis: width and height properties are required for standalone axes.");return Math.min(a-n-r,u-o-i)/2},Ab=function(t,e){if(t.range&&t.range[e])return t.range[e];if(t.range&&Array.isArray(t.range))return t.range;if("angular"===wb(t))return[rt(t.startAngle),rt(t.endAngle)];var n=Pb(t);return[t.innerRadius||0,n]},Mb=function(t){var e=kd(t),n=Zi(t,e),r=Hd(t,e)||n.domain(),o=Ab(t,e);return n.range(o),n.domain(r),n},Eb=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.disableInlineStyles)return{};var n=t.style||{},r={height:"auto",width:"100%"};return{parent:G()(r,n.parent,e.parent),axis:G()({},n.axis,e.axis),axisLabel:G()({},n.axisLabel,e.axisLabel),grid:G()({},n.grid,e.grid),ticks:G()({},n.ticks,e.ticks),tickLabels:G()({},n.tickLabels,e.tickLabels)}},Cb=function(t){var e=t.axisAngle,n=t.startAngle,r=t.dependentAxis,o=qd(t,kd(t));return void 0!==o&&r?ot(o):void 0===e?n:e},Sb=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.scale,u=e.style,c=e.stringTicks,l=e.ticks,s=e.tickFormat,f=e.origin,p=s(n,r,l),h=c?c[r]:n,d=jb(u,{tick:h,tickValue:n,index:r,ticks:l,stringTicks:c,radius:i,scale:a,axisType:o,text:p}).tickStyle,y="radial"===o?Cb(t):void 0,v=d.padding||d.size||0,m=rt(90-y),g="angular"===o?a(n):rt(-1*y),b="angular"===o?i:a(n);return"angular"===o?{index:r,datum:h,style:d,x1:_b(b,g,"x")+f.x,y1:_b(b,g,"y")+f.y,x2:_b(b+v,g,"x")+f.x,y2:_b(b+v,g,"y")+f.y}:{index:r,datum:h,style:d,x1:b*Math.cos(g)+Math.cos(m)*v+f.x,x2:b*Math.cos(g)-Math.cos(m)*v+f.x,y1:b*Math.sin(g)+Math.sin(m)*v+f.y,y2:b*Math.sin(g)-Math.sin(m)*v+f.y}},kb=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.tickFormat,u=e.style,c=e.scale,l=e.ticks,s=e.stringTicks,f=e.origin,p=a(n,r,l),h=s?s[r]:n,d=jb(u,{text:p,tick:h,tickValue:n,index:r,ticks:l,stringTicks:s,radius:i,scale:c,axisType:o}).labelStyle,y=t.tickLabelComponent,v=null!=y&&y.props.labelPlacement?y.props.labelPlacement:t.labelPlacement,m=d.padding||0,g="radial"===o?Cb(t):void 0,b="angular"===o?ot(c(n)):g+0,x=void 0===d.angle?Ja(Object.assign({},t,{labelPlacement:v}),b):d.angle,O="angular"===o?i+m:c(n);return{index:r,datum:h,style:d,angle:x,textAnchor:d.textAnchor||Za(Object.assign({},t,{labelPlacement:v}),b),text:p,x:O*Math.cos(rt(b))+f.x,y:-O*Math.sin(rt(b))+f.y}},Db=function(t,e,n,r){var o=e.axisType,i=e.radius,a=e.style,u=e.scale,c=e.stringTicks,l=e.ticks,s=e.tickFormat,f=e.origin,p=s(n,r,l),h=t.startAngle,d=t.endAngle,y=t.innerRadius,v=void 0===y?0:y,m=c?c[r]:n,g=jb(a,{tick:m,tickValue:n,index:r,ticks:l,stringTicks:c,radius:i,scale:u,axisType:o,text:p}).gridStyle,b=u(n);return"angular"===o?{index:r,datum:m,style:g,x1:_b(i,b,"x")+f.x,y1:_b(i,b,"y")+f.y,x2:_b(v,b,"x")+f.x,y2:_b(v,b,"y")+f.y}:{style:g,index:r,datum:m,cx:f.x,cy:f.y,r:u(n),startAngle:h,endAngle:d}},Tb=function(t,e){var n=Gd(t,e),r=function(t){var e=Object.assign({polar:!0},t),n=function(t){var e,n,r=t.theme,o=void 0===r?{}:r,i=t.dependentAxis,a=o.polarAxis&&o.polarAxis.style||o.axis&&o.axis.style,u=i?"dependentAxis":"independentAxis",c=(null==o||null===(e=o[i?"polarDependentAxis":"polarIndependentAxis"])||void 0===e?void 0:e.style)||(null==o||null===(n=o[u])||void 0===n?void 0:n.style);return a&&c?["axis","axisLabel","grid","parent","tickLabels","ticks"].reduce((function(t,e){return t[e]=G()({},null==c?void 0:c[e],null==a?void 0:a[e]),t}),{}):c||a}(e),r=Eb(e,n),o=Z(e),i=kd(e),a=wb(e),u=zd(e)?e.tickValues:void 0,c=Hd(e,i),l=Ab(e,i),s=Mb(e),f=Vd(e,s),p="angular"===a?function(t,e){return Rg()(t,(function(t){return e(t)%(2*Math.PI)}))}(f,s):f;return{axis:i,style:r,padding:o,stringTicks:u,axisType:a,scale:s,ticks:p,tickFormat:Wd(e,s),domain:c,range:l,radius:Pb(e),origin:at(e)}}(n),o=r.style,i=r.scale,a=r.ticks,u=r.domain,c=n.width,l=n.height,s=n.standalone,f=n.theme,p=n.name,h=function(t,e){var n=e.style,r=e.axisType,o=e.radius,i=e.origin,a=t.startAngle,u=t.endAngle,c=t.innerRadius,l=void 0===c?0:c,s="radial"===r?rt(Cb(t)):void 0;return"radial"===r?{style:n.axis,x1:_b(l,s,"x")+i.x,x2:_b(o,s,"x")+i.x,y1:_b(l,s,"y")+i.y,y2:_b(o,s,"y")+i.y}:{style:n.axis,cx:i.x,cy:i.y,r:o,startAngle:a,endAngle:u}}(n,r),d=function(t,e){var n=e.axisType,r=e.radius,o=e.style,i=e.origin,a=t.axisLabelComponent;if("radial"!==n)return{};var u=null!=a&&a.props.labelPlacement?a.props.labelPlacement:t.labelPlacement,c=o&&o.axisLabel||{},l="radial"===n?Cb(t):void 0,s=void 0===c.angle?Ja(Object.assign({},t,{labelPlacement:u}),l):c.angle,f=r+(c.padding||0);return{style:c,angle:s,textAnchor:c.textAnchor||Za(Object.assign({},t,{labelPlacement:u}),l),verticalAnchor:c.verticalAnchor||Qa(Object.assign({},t,{labelPlacement:u}),l),text:t.label,x:_b(f,rt(l),"x")+i.x,y:_b(f,rt(l),"y")+i.y}}(n,r),y={parent:{style:o.parent,ticks:a,scale:i,width:c,height:l,domain:u,standalone:s,theme:f,name:p}};return a.reduce((function(t,e,o){return t[o]={axis:h,axisLabel:d,ticks:Sb(n,r,e,o),tickLabels:kb(n,r,e,o),grid:Db(n,r,e,o)},t}),y)};function Rb(t){return function(t){if(Array.isArray(t))return Lb(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Lb(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lb(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lb(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ib(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function zb(t,e){return zb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zb(t,e)}function Bb(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Wb(t){return Wb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wb(t)}var Ub={width:450,height:300,padding:50},Vb=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zb(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Wb(r);if(o){var n=Wb(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Bb(this,t)});function a(){return Ib(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"renderAxisLine",value:function(t){var e=t.dependentAxis?t.axisComponent:t.circularAxisComponent,n=this.getComponentProps(e,"axis",0);return A().cloneElement(e,n)}},{key:"renderLabel",value:function(t){var e=t.axisLabelComponent,n=t.dependentAxis;if(!t.label||!n)return null;var r=this.getComponentProps(e,"axisLabel",0);return A().cloneElement(e,r)}},{key:"renderAxis",value:function(t){var e=this,n=t.tickComponent,r=t.tickLabelComponent,o=t.name,i=function(t){var e=t.style,n=void 0===e?{}:e,r=t.events,o=void 0===r?{}:r;return"transparent"!==n.stroke&&"none"!==n.stroke&&0!==n.strokeWidth||!R()(o)},a="radial"==(t.dependentAxis?"radial":"angular")?t.circularGridComponent:t.gridComponent,u=this.dataKeys.map((function(t,r){var a=Object.assign({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(n,"ticks",r)),u=A().cloneElement(n,a);return i(u.props)?u:void 0})).filter(Boolean),c=this.dataKeys.map((function(t,n){var r=Object.assign({key:"".concat(o,"-grid-").concat(t)},e.getComponentProps(a,"grid",n)),u=A().cloneElement(a,r);return i(u.props)?u:void 0})).filter(Boolean),l=this.dataKeys.map((function(t,n){var i=Object.assign({key:"".concat(o,"-tick-").concat(t)},e.getComponentProps(r,"tickLabels",n));return A().cloneElement(r,i)})),s=[this.renderAxisLine(t),this.renderLabel(t)].concat(Rb(u),Rb(c),Rb(l));return this.renderGroup(t,s)}},{key:"renderGroup",value:function(t,e){var n=t.groupComponent;return A().cloneElement(n,{},e)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Fb.animationWhitelist,e=Gd(this.props,Ub);if(this.shouldAnimate())return this.animateComponent(e,t);var n=this.renderAxis(e);return e.standalone?this.renderContainer(e.containerComponent,n):n}}])&&Nb(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Vb.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],Vb.displayName="VictoryAxis",Vb.role="axis",Vb.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Vb.defaultProps={axisComponent:A().createElement(ny,null),axisLabelComponent:A().createElement(gp,null),circularAxisComponent:A().createElement(Ob,null),circularGridComponent:A().createElement(Ob,null),containerComponent:A().createElement(Zs,null),endAngle:360,gridComponent:A().createElement(ny,null),groupComponent:A().createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Ip.grayscale,tickComponent:A().createElement(ny,null),tickLabelComponent:A().createElement(gp,null)},Vb.getDomain=Hd,Vb.getAxis=kd,Vb.getScale=Mb,Vb.getStyles=function(t){return Eb(t,Ub.style)},Vb.getBaseProps=function(t){return Tb(t,Ub)},Vb.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];var Fb=bd(Vb,{components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]}),Hb={width:450,height:300,padding:50};function qb(t,e){var n=function(t){var e=t.style&&t.style.parent;return{parent:G()({},e,{height:"100%",width:"100%",userSelect:"none"})}}(t),r=ft(t,Hb,"chart"),o=r.horizontal,i=r.polar,a=eb(r,e),u=nb(r,e,a),c=$b(r,e,a),l={x:Kb(Object.assign({},r,{categories:u}),"x",e),y:Kb(Object.assign({},r,{categories:u}),"y",e)},s={x:ut(r,"x"),y:ut(r,"y")},f={x:Ji(r,"x")||Kg(r,"x"),y:Ji(r,"y")||Kg(r,"y")};return{categories:u,domain:l,range:s,horizontal:o,scale:{x:f.x.domain(l.x).range(o?s.y:s.x),y:f.y.domain(l.y).range(o?s.x:s.y)},stringMap:c,style:n,origin:i?at(r):Ld(l),padding:Z(r)}}var Gb=function(t,e){var n=A().Children.toArray(t.children);if(0===n.length)n.push(e.independent,e.dependent);else{var r={dependent:Rd(n,"dependent"),independent:Rd(n,"independent")};0===r.dependent.length&&0===r.independent.length&&(n=t.prependDefaultAxes?[e.independent,e.dependent].concat(n):n.concat([e.independent,e.dependent]))}return n},Kb=function(t,e,n){var r=n||A().Children.toArray(t.children),o=Gg(t,e,r),i=Td(r,e);return i&&i.props&&i.props.invertAxis?o.concat().reverse():o},$b=function(t,e,n){var r=n.x&&0!==n.x.length?n.x.reduce((function(t,e,n){return t[e]=n+1,t}),{}):null,o=n.y&&0!==n.y.length?n.y.reduce((function(t,e,n){return t[e]=n+1,t}),{}):null;return{x:r,y:o}};function Yb(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xb(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yb(Object(n),!0).forEach((function(e){Zb(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yb(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zb(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qb={width:450,height:300,padding:50},Jb={backgroundComponent:A().createElement(Pg,null),containerComponent:A().createElement(Zs,null),defaultAxes:{independent:A().createElement(Ey,null),dependent:A().createElement(Ey,{dependentAxis:!0})},defaultPolarAxes:{independent:A().createElement(Fb,null),dependent:A().createElement(Fb,{dependentAxis:!0})},groupComponent:A().createElement("g",null),standalone:!0,theme:Ip.grayscale},tx=function(t){var e=A().useMemo((function(){return Xb(Xb({},Jb),t)}),[t]),n=Dg(),r=n.getAnimationProps,o=n.setAnimationState,i=(0,n.getProps)(e),a=ft(i,Qb,"chart"),u=a.desc,c=a.eventKey,l=a.containerComponent,s=a.standalone,f=a.groupComponent,p=a.externalEventMutations,h=a.width,d=a.height,y=a.theme,v=a.polar,m=a.name,g=a.title,b=i.polar?a.defaultPolarAxes:a.defaultAxes,x=A().useMemo((function(){return Gb(a,b)}),[a,b]),O=A().useMemo((function(){return qb(a,x)}),[a,x]),_=O.domain,w=O.scale,j=O.style,P=O.origin,M=O.horizontal,E=A().useMemo((function(){var t=function(t,e,n){var r=e||Gb(t),o=n||qb(t,r),i=o.style.parent,a=t.height,u=t.polar,c=t.theme,l=t.width,s=o.origin,f=o.horizontal,p=t.name||"chart";return r.filter(A().isValidElement).map((function(e,n){var r=e.type&&e.type.role,h=Array.isArray(e.props.style)?e.props.style:G()({},e.props.style,{parent:i}),d=function(t,e,n){var r=Dd([t]);return r.length>0?function(t,e,n){var r=n.domain,o=n.scale,i=n.stringMap,a=n.categories;return{stringMap:i,horizontal:n.horizontal,categories:a,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,domain:r,scale:o}}(r[0],e,n):{categories:n.categories,domain:n.domain,range:n.range,scale:n.scale,stringMap:n.stringMap,horizontal:n.horizontal}}(e,t,o),y=e.props.name||"".concat(p,"-").concat(r,"-").concat(n),v=G()({horizontal:f,height:a,polar:u,theme:c,width:l,style:h,name:y,origin:u?s:void 0,padding:o.padding,key:"".concat(y,"-key-").concat(n),standalone:!1},d);return A().cloneElement(e,v)}))}(i,x,O).map((function(t,e){var n=Object.assign({animate:r(i,t,e)},t.props);return A().cloneElement(t,n)}));if(i.style&&i.style.background){var e=function(t,e){var n=t.backgroundComponent,r=t.polar?e.range.y[1]:e.range.y[0]-e.range.y[1],o=e.range.x[1]-e.range.x[0],i=t.horizontal?e.scale.y.range()[0]:e.scale.x.range()[0],a=t.horizontal?e.scale.x.range()[1]:e.scale.y.range()[1],u=t.polar?e.origin.x:i,c=t.polar?e.origin.y:a,l=t.name||"chart",s={height:r,polar:t.polar,scale:e.scale,style:t.style.background,x:u,y:c,key:"".concat(l,"-background"),width:o};return A().cloneElement(n,G()({},n.props,s))}(i,O);t.unshift(e)}return t}),[r,x,i,O]),C=A().useMemo((function(){return s?{desc:u,domain:_,width:h,height:d,horizontal:M,name:m,origin:v?P:void 0,polar:v,theme:y,title:g,scale:w,standalone:s,style:j.parent}:{}}),[u,_,d,M,m,P,v,w,s,j,g,y,h]),S=A().useMemo((function(){if(s){var t=G()({},l.props,C,es(e));return A().cloneElement(l,t)}return f}),[f,s,l,C,e]),k=A().useMemo((function(){return $g(i)}),[i]),D=rb(e);return A().useEffect((function(){return function(){e.animate&&o(D,e)}}),[o,D,e]),R()(k)?A().cloneElement(S,S.props,E):A().createElement(yb,{container:S,eventKey:c,events:k,externalEventMutations:p},E)},ex=A().memo(tx,Up());ex.displayName="VictoryChart",ex.expectedComponents=["groupComponent","containerComponent"];var nx=["desc","children","tabIndex","className"];var rx=function(t){var e=t.desc,n=t.children,r=t.tabIndex,o=t.className,i=void 0===o?"VictoryAccessibleGroup":o,a=function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,nx),u=e&&(a["aria-describedby"]||e.split(" ").join("-"));return e?A().createElement("g",{"aria-label":a["aria-label"],"aria-describedby":u,className:i,tabIndex:r},A().createElement("desc",{id:u},e),n):A().createElement("g",{"aria-label":a["aria-label"],"aria-describedby":a["aria-describedby"],className:i,tabIndex:r},n)};function ox(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ix(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ox(Object(n),!0).forEach((function(e){ax(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ox(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function ax(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var ux=function(t){var e=t.x,n=t.y,r=t.size,o=t.symbol;if(t.getPath)return t.getPath(e,n,r);var i=_;return("function"==typeof i[o]?i[o]:i.circle)(e,n,r)},cx={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},lx=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.desc,t),r=et(t.id,t),o=et(t.size,t),i=nt(t.style,t),a=et(t.symbol,t),u=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,desc:n,id:r,size:o,style:i,symbol:a,tabIndex:u})}(ix(ix({},cx),t)),n=es(e);return A().cloneElement(e.pathComponent,ix(ix({},e.events),{},{"aria-label":e.ariaLabel,d:ux(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,role:e.role,shapeRendering:e.shapeRendering,className:e.className,transform:e.transform,clipPath:e.clipPath},n))},sx=r(9560),fx=r.n(sx),px=r(3105),hx=r.n(px),dx=r(4542),yx=r.n(dx);function vx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function mx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?vx(Object(n),!0).forEach((function(e){gx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function gx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bx=function(t){var e=t.orientation||"top";return"left"===e||"right"===e?function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,o=t.width,i=t.height,a=t.center,u="left"===r?1:-1,c=t.x+(t.dx||0),l=t.y+(t.dy||0),s=a.x,f=a.y,p=s-u*(o/2),h=s+u*(o/2),d=f+i/2,y=f-i/2,v=u*(c-p)>0?0:t.pointerLength,m="left"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(m);return"M ".concat(p,", ").concat(f-e/2,"\n L ").concat(v?c:p,", ").concat(v?l:f+e/2,"\n L ").concat(p,", ").concat(f+e/2,"\n L ").concat(p,", ").concat(d-n,"\n A ").concat(g," ").concat(p+u*n,", ").concat(d,"\n L ").concat(h-u*n,", ").concat(d,"\n A ").concat(g," ").concat(h,", ").concat(d-n,"\n L ").concat(h,", ").concat(y+n,"\n A ").concat(g," ").concat(h-u*n,", ").concat(y,"\n L ").concat(p+u*n,", ").concat(y,"\n A ").concat(g," ").concat(p,", ").concat(y+n,"\n z")}(t):function(t){var e=t.pointerWidth,n=t.cornerRadius,r=t.orientation,o=t.width,i=t.height,a=t.center,u="bottom"===r?1:-1,c=t.x+(t.dx||0),l=t.y+(t.dy||0),s=a.x,f=a.y,p=f+u*(i/2),h=f-u*(i/2),d=s+o/2,y=s-o/2,v=u*(l-p)<0?0:t.pointerLength,m="bottom"===r?"0 0 0":"0 0 1",g="".concat(n," ").concat(n," ").concat(m);return"M ".concat(s-e/2,", ").concat(p,"\n L ").concat(v?c:s+e/2,", ").concat(v?l:p,"\n L ").concat(s+e/2,", ").concat(p,"\n L ").concat(d-n,", ").concat(p,"\n A ").concat(g," ").concat(d,", ").concat(p-u*n,"\n L ").concat(d,", ").concat(h+u*n,"\n A ").concat(g," ").concat(d-n,", ").concat(h,"\n L ").concat(y+n,", ").concat(h,"\n A ").concat(g," ").concat(y,", ").concat(h+u*n,"\n L ").concat(y,", ").concat(p-u*n,"\n A ").concat(g," ").concat(y+n,", ").concat(p,"\n z")}(t)},xx={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},Ox=function(t){var e=function(t){var e=et(t.id,t),n=nt(t.style,t);return mx(mx({},t),{},{id:e,style:n})}(mx(mx({},xx),t)),n=es(e);ts(e.height,"Flyout props[height] is undefined"),ts(e.width,"Flyout props[width] is undefined"),ts(e.x,"Flyout props[x] is undefined"),ts(e.y,"Flyout props[y] is undefined");var r={center:e.center||{x:0,y:0},cornerRadius:e.cornerRadius||0,dx:e.dx,dy:e.dy,height:e.height,orientation:e.orientation||"top",pointerLength:e.pointerLength||0,pointerWidth:e.pointerWidth||0,width:e.width,x:e.x,y:e.y};return A().cloneElement(e.pathComponent,mx(mx(mx({},e.events),n),{},{style:e.style,d:bx(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))};function _x(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function wx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function jx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?wx(Object(n),!0).forEach((function(e){Px(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):wx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Px(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ax(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mx(t,e){return Mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Mx(t,e)}function Ex(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Cx(t){return Cx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cx(t)}var Sx={cornerRadius:5,pointerLength:10,pointerWidth:10},kx=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Mx(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Cx(r);if(o){var n=Cx(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ex(this,t)});function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,t)).id=void 0,e.id=void 0===t.id?ys()("tooltip-"):t.id,e}return e=a,n=[{key:"getDefaultOrientation",value:function(t){var e=t.datum,n=t.horizontal;if(!t.polar){var r=n?"right":"top",o=n?"left":"bottom";return e&&e.y<0?o:r}return this.getPolarOrientation(t)}},{key:"getPolarOrientation",value:function(t){var e=tu(t,t.datum),n=t.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(e):"parallel"===n?e<90||e>270?"right":"left":e>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}},{key:"getStyles",value:function(t){var e=t.theme||Ip.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((function(t){return G()({},t,n)})):G()({},t.style,n),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},i=t.flyoutStyle?G()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((function(e){return nt(e,t)})):nt(r,t);return{style:a,flyoutStyle:nt(i,Object.assign({},t,{style:a}))}}},{key:"getEvaluatedProps",value:function(t){var e=t.cornerRadius,n=t.centerOffset,r=t.dx,o=t.dy,i=et(t.active,t),a=et(t.text,Object.assign({},t,{active:i}));null==a&&(a=""),"number"==typeof a&&(a=a.toString());var u=this.getStyles(Object.assign({},t,{active:i,text:a})),c=u.style,l=u.flyoutStyle,s=et(t.orientation,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l}))||this.getDefaultOrientation(t),f=Z({padding:et(t.flyoutPadding,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s}))||this.getLabelPadding(c)}),p=et(t.pointerWidth,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),h=et(t.pointerLength,Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s})),d=np(a,c),y=this.getDimensions(Object.assign({},t,{style:c,flyoutStyle:l,active:i,text:a,orientation:s,flyoutPadding:f,pointerWidth:p,pointerLength:h}),d),v=y.flyoutHeight,m=y.flyoutWidth,g=Object.assign({},t,{active:i,text:a,style:c,flyoutStyle:l,orientation:s,flyoutHeight:v,flyoutWidth:m,flyoutPadding:f,pointerWidth:p,pointerLength:h}),b=W()(n)&&void 0!==(null==n?void 0:n.x)?et(n.x,g):0,x=W()(n)&&void 0!==(null==n?void 0:n.y)?et(n.y,g):0;return jx(jx({},g),{},{centerOffset:{x:b,y:x},dx:void 0!==r?et(r,g):0,dy:void 0!==o?et(o,g):0,cornerRadius:et(e,g)})}},{key:"getCalculatedValues",value:function(t){var e=t.style,n=t.text,r=t.flyoutStyle,o={height:t.flyoutHeight,width:t.flyoutWidth};return{style:e,flyoutStyle:r,labelSize:np(n,e),flyoutDimensions:o,flyoutCenter:this.getFlyoutCenter(t,o),transform:this.getTransform(t)}}},{key:"getTransform",value:function(t){var e=t.x,n=t.y,r=(t.style||{}).angle||t.angle||this.getDefaultAngle(t);return r?"rotate(".concat(r," ").concat(e," ").concat(n,")"):void 0}},{key:"getDefaultAngle",value:function(t){var e=t.polar,n=t.labelPlacement,r=t.orientation,o=t.datum;if(!e||!n||"vertical"===n)return 0;var i=tu(t,o),a=0;return 0===i||180===i?a="top"===r&&180===i?270:90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}},{key:"constrainTooltip",value:function(t,e,n){var r=t.x,o=t.y,i=n.width,a=n.height,u=[0,e.width],c=[0,e.height],l=[r-i/2,r+i/2],s=[o-a/2,o+a/2],f=[l[0]<u[0]?u[0]-l[0]:0,l[1]>u[1]?l[1]-u[1]:0],p=[s[0]<c[0]?c[0]-s[0]:0,s[1]>c[1]?s[1]-c[1]:0];return{x:Math.round(r+f[0]-f[1]),y:Math.round(o+p[0]-p[1])}}},{key:"getFlyoutCenter",value:function(t,e){var n=t.x,r=t.y,o=t.dx,i=t.dy,a=t.pointerLength,u=t.orientation,c=t.constrainToVisibleArea,l=t.centerOffset,s=e.height,f=e.width,p="left"===u?-1:1,h="bottom"===u?-1:1,d={x:"left"===u||"right"===u?n+p*(a+f/2+p*o):n+o,y:"top"===u||"bottom"===u?r-h*(a+s/2-h*i):r+i},y=W()(t.center)&&void 0!==t.center.x?t.center.x:d.x,v=W()(t.center)&&void 0!==t.center.y?t.center.y:d.y,m={x:y+l.x,y:v+l.y};return c?this.constrainTooltip(m,t,e):m}},{key:"getLabelPadding",value:function(t){if(!t)return 0;var e,n=Array.isArray(t)?t.map((function(t){return t.padding})):[t.padding];return Math.max.apply(Math,(e=n,function(t){if(Array.isArray(t))return _x(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return _x(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_x(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).concat([0]))}},{key:"getDimensions",value:function(t,e){var n,r,o,i,a=t.orientation,u=t.pointerLength,c=t.pointerWidth,l=t.flyoutHeight,s=t.flyoutWidth,f=t.flyoutPadding,p=et(t.cornerRadius,t);return{flyoutHeight:l?et(l,t):(o=e.height+f.top+f.bottom,i="top"===a||"bottom"===a?2*p:2*p+c,Math.max(i,o)),flyoutWidth:s?et(s,t):(n=e.width+f.left+f.right,r="left"===a||"right"===a?2*p+u:2*p,Math.max(r,n))}}},{key:"getLabelProps",value:function(t,e){var n=e.flyoutCenter,r=e.style,o=e.labelSize,i=e.dy,a=void 0===i?0:i,u=e.dx,c=void 0===u?0:u,l=t.text,s=t.datum,f=t.activePoints,p=t.labelComponent,h=t.index,d=t.flyoutPadding,y=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return G()({},p.props,{key:"".concat(this.id,"-label-").concat(h),text:l,datum:s,activePoints:f,textAnchor:y,dy:a,dx:c,style:r,x:function(){if(!y||"middle"===y)return n.x;var t="end"===y?-1:1;return n.x-t*(o.width/2)}()+(d.left-d.right)/2,y:n.y+(d.top-d.bottom)/2,verticalAnchor:"middle",angle:r.angle})}},{key:"getPointerOrientation",value:function(t,e,n){var r=e.y+n.height/2,o=e.y-n.height/2,i=e.x-n.width/2,a=e.x+n.width/2,u=[{side:"top",val:o>t.y?o-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:i>t.x?i-t.x:-1}];return I()(u,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(t,e){var n=e.flyoutDimensions,r=e.flyoutStyle,o=e.flyoutCenter,i=t.x,a=t.y,u=t.dx,c=t.dy,l=t.datum,s=t.activePoints,f=t.index,p=t.pointerLength,h=t.pointerWidth,d=t.cornerRadius,y=t.events,v=t.flyoutComponent,m=et(t.pointerOrientation,t);return G()({},v.props,{x:i,y:a,dx:u,dy:c,datum:l,activePoints:s,index:f,pointerLength:p,pointerWidth:h,cornerRadius:d,events:y,orientation:m||this.getPointerOrientation({x:i,y:a},o,n),key:"".concat(this.id,"-tooltip-").concat(f),width:n.width,height:n.height,style:r,center:o})}},{key:"renderTooltip",value:function(t){var e=et(t.active,t),n=t.renderInPortal;if(!e)return n?A().createElement(Af,null):null;var r=this.getEvaluatedProps(t),o=r.flyoutComponent,i=r.labelComponent,a=r.groupComponent,u=this.getCalculatedValues(r),c=[A().cloneElement(o,this.getFlyoutProps(r,u)),A().cloneElement(i,this.getLabelProps(r,u))],l=A().cloneElement(a,{role:"presentation",transform:u.transform},c);return n?A().createElement(Af,null,l):l}},{key:"render",value:function(){var t=ft(this.props,Sx,"tooltip");return this.renderTooltip(t)}}],n&&Ax(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);kx.displayName="VictoryTooltip",kx.role="tooltip",kx.defaultProps={active:!1,renderInPortal:!0,labelComponent:A().createElement(gp,null),flyoutComponent:A().createElement(Ox,null),groupComponent:A().createElement("g",null)},kx.defaultEvents=function(t){var e=t.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=t.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return e},onFocus:function(){return e},onTouchStart:function(){return e},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var Dx=r(5395),Tx=r.n(Dx),Rx=r(6898);function Lx(t){return function(t){if(Array.isArray(t))return Ix(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ix(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ix(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ix(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Nx(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var zx=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onMouseLeave=function(t,n){var r,o=n.activePoints||[];e.onDeactivated(n,o);var i=o.length?o.map((function(t){return e.getInactiveMutations(n,t)})):[];return(r=e.getParentMutation([])).concat.apply(r,Lx(i))},this.handleMouseMove=function(t,n){var r=n.activePoints||[],o=n.parentSVG||Uv(t),i=Vv(t,o);if(!e.withinBounds(n,i)){var a;e.onDeactivated(n,r);var u=r.length?r.map((function(t){return e.getInactiveMutations(n,t)})):[];return(a=e.getParentMutation([],i,o)).concat.apply(a,Lx(u))}var c=e.getVoronoiPoints(n,i),l=c.points,s=void 0===l?[]:l,f=c.index,p=e.getParentMutation(s,i,o,f);if(r.length&&Up()(s,r))return p;e.onActivated(n,s),e.onDeactivated(n,r);var h=s.length?s.map((function(t){return e.getActiveMutations(n,t)})):[],d=r.length?r.map((function(t){return e.getInactiveMutations(n,t)})):[];return p.concat.apply(p,Lx(d).concat(Lx(h)))},this.onMouseMove=Kv()(this.handleMouseMove,32,{leading:!0,trailing:!1})}var e,n;return e=t,n=[{key:"withinBounds",value:function(t,e){var n=t.width,r=t.height,o=t.polar,i=t.origin,a=t.scale,u=Z(t,"voronoiPadding"),c=e.x,l=e.y;if(o){var s=Math.pow(c-i.x,2)+Math.pow(l-i.y,2),f=Math.max.apply(Math,Lx(a.y.range()));return s<Math.pow(f,2)}return c>=u.left&&c<=n-u.right&&l>=u.top&&l<=r-u.bottom}},{key:"getDatasets",value:function(t){var e={x:Et(t.domain.x),y:Et(t.domain.y)},n=A().Children.toArray(t.children),r=function(n,r,o){var i=o&&o.type&&o.type.continuous,a=o?o.props&&o.props.style:t.style;return n.map((function(n,o){var u=Y(n),c=u.x,l=u.y,s=u.y0,f=u.x0,p=(Number(c)+Number(f))/2,h=(Number(l)+Number(s))/2;return Object.assign({_voronoiX:"y"===t.voronoiDimension?e.x:p,_voronoiY:"x"===t.voronoiDimension?e.y:h,eventKey:o,childName:r,continuous:i,style:a},n)}))};if(t.data)return r(t.data);var o=function(t){var e=Pa(t);return Array.isArray(e)&&e.length>0?e:void 0};return yt(n,(function(e,n){var i=(e.props||{}).name||n,a=t.voronoiBlacklist||[],u=a.filter((function(t){return!!t&&"string"==typeof t.valueOf()})),c=a.filter(Tx()).some((function(t){return t.test(i)}));if(!Ca(e)||u.includes(i)||c)return null;var l=(e.type&&lt(e.type.getData)?e.type.getData:o)(e.props);return l?r(l,i,e):null}),t)}},{key:"findPoints",value:function(t,e){return t.filter((function(t){return e._voronoiX===t._voronoiX&&e._voronoiY===t._voronoiY}))}},{key:"withinRadius",value:function(t,e,n){if(!t)return!1;if(!n)return!0;var r=e.x,o=e.y;return Math.pow(r-t[0],2)+Math.pow(o-t[1],2)<Math.pow(n,2)}},{key:"getVoronoiPoints",value:function(t,e){var n=this.getDatasets(t),r=n.map((function(e){var n=X(t,e);return[n.x,n.y]})),o=Rx.Z.from(r).find(e.x,e.y);return{points:this.withinRadius(r[o],e,t.radius)?this.findPoints(n,n[o]):[],index:o}}},{key:"getActiveMutations",value:function(t,e){var n=e.childName,r=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var u=o?["data"]:[],c=a&&!i?u:u.concat("labels");return R()(c)?[]:c.map((function(t){var o=!0===r&&"data"===t?"all":e.eventKey;return{childName:n,eventKey:o,target:t,mutation:function(){return{active:!0}}}}))}},{key:"getInactiveMutations",value:function(t,e){var n=e.childName,r=e.continuous,o=t.activateData,i=t.activateLabels,a=t.labels;if(!o&&!i)return[];var u=o?["data"]:[],c=a&&!i?u:u.concat("labels");return R()(c)?[]:c.map((function(t){var o=r&&"data"===t?"all":e.eventKey;return{childName:n,eventKey:o,target:t,mutation:function(){return null}}}))}},{key:"getParentMutation",value:function(t,e,n,r){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:t,mousePosition:e,parentSVG:n,vIndex:r}}}]}},{key:"onActivated",value:function(t,e){lt(t.onActivated)&&t.onActivated(e,t)}},{key:"onDeactivated",value:function(t,e){lt(t.onDeactivated)&&t.onDeactivated(e,t)}}],n&&Nx(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Bx=new zx,Wx=["childName","eventKey","style","continuous"];function Ux(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vx(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fx(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vx(Object(n),!0).forEach((function(e){Hx(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vx(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hx(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qx(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gx(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kx(t,e){return Kx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Kx(t,e)}function $x(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Yx(t){return Yx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Yx(t)}function Xx(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Kx(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Yx(r);if(o){var n=Yx(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return $x(this,t)});function a(){return qx(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getDimension",value:function(t){var e=t.horizontal,n=t.voronoiDimension;return e&&n?"x"===n?"y":"x":n}},{key:"getPoint",value:function(t){return H()(t,["_x","_x1","_x0","_y","_y1","_y0"])}},{key:"getLabelPosition",value:function(t,e,n){var r=t.mousePosition,o=t.mouseFollowTooltips,i=this.getDimension(t),a=X(t,this.getPoint(n[0])),u=o?r:void 0;if(!i||n.length<2)return Fx(Fx({},a),{},{center:G()({},e.center,u)});var c="y"===i?r.x:a.x,l="x"===i?r.y:a.y;return u=o?r:{x:c,y:l},{x:c,y:l,center:G()({},e.center,u)}}},{key:"getStyle",value:function(t,e,n){var r=t.labels,o=t.labelComponent,i=t.theme,a=o.props||{},u=i&&i.voronoi&&i.voronoi.style?i.voronoi.style:{},c="flyout"===n?a.flyoutStyle:a.style;return e.reduce((function(t,e,o){var i=G()({},a,{datum:e,active:!0}),l=lt(r)?r(i):void 0,s=void 0!==l?"".concat(l).split("\n"):[],f=e.style&&e.style[n]||{},p=Array.isArray(c)?c[o]:c,h=nt(G()({},p,f,u[n]),i),d=s.length?s.map((function(){return h})):[h];return t.concat(d)}),[])}},{key:"getDefaultLabelProps",value:function(t,e){var n=t.voronoiDimension,r=t.horizontal,o=t.mouseFollowTooltips,i=this.getPoint(e[0]),a=n&&e.length>1,u=void 0!==i._y1?i._y1:i._y;return{orientation:o?void 0:r?u<0?"left":"right":u<0?"bottom":"top",pointerLength:a?0:void 0,constrainToVisibleArea:!(!a&&!o)||void 0}}},{key:"getLabelProps",value:function(t,e){var n=t.labels,r=t.scale,o=t.labelComponent,i=t.theme,a=t.width,u=t.height,c=o.props||{},l=e.reduce((function(t,e){var r=G()({},c,{datum:e,active:!0}),o=lt(n)?n(r):null;return null==o?t:t.concat("".concat(o).split("\n"))}),[]),s=e[0],f=s.childName,p=s.eventKey,h=(s.style,s.continuous,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(s,Wx)),d=t.name===f?f:"".concat(t.name,"-").concat(f),y=G()({key:"".concat(d,"-").concat(p,"-voronoi-tooltip"),id:"".concat(d,"-").concat(p,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:e,datum:h,scale:r,theme:i},c,{text:l,width:a,height:u,style:this.getStyle(t,e,"labels"),flyoutStyle:this.getStyle(t,e,"flyout")[0]},this.getDefaultLabelProps(t,e)),v=this.getLabelPosition(t,y,e);return G()({},v,y)}},{key:"getTooltip",value:function(t){var e=t.labels,n=t.activePoints,r=t.labelComponent;if(!e)return null;if(Array.isArray(n)&&n.length){var o=this.getLabelProps(t,n),i=o.text;return(Array.isArray(i)?i.filter(Boolean).length:i)?A().cloneElement(r,o):null}return null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return Ux(t)}(e=A().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return Ux(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ux(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getTooltip(t)]);var e}}],n&&Gx(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryVoronoiContainer",e.defaultProps=Fx(Fx({},Zs.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:A().createElement(kx,null),voronoiPadding:5}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:Bx.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:Bx.onMouseLeave(e,n)},onMouseMove:function(e,n){return t.disable?{}:Bx.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:Bx.onMouseMove(e,n)}}},{target:"data",eventHandlers:t.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},e}var Zx=Xx(Zs),Qx=r(9324),Jx=r.n(Qx);function tO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return eO(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eO(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var nO={checkDomainEquality:function(t,e){var n=function(n){var r=t&&t[n],o=e&&e[n];return!r&&!o||!(!r||!o)&&Number(r[0])===Number(o[0])&&Number(r[1])===Number(o[1])};return n("x")&&n("y")},scale:function(t,e,n,r){var o=tO(t,2),i=o[0],a=o[1],u=Math.abs(a-i),c=n.minimumZoom&&n.minimumZoom[r],l=this.getScaleFactor(e);if(c&&u<=c&&l<1)return t;var s=tO(this.getDomain(n)[r],2),f=s[0],p=s[1],h=this.getScalePercent(e,n,r),d=l*i+h*(l*u),y=this.getMinimumDomain(d,n,r),v=tO(this.getScaledDomain(t,l,h),2),m=v[0],g=v[1],b=[m>f&&m<p?m:f,g<p&&g>f?g:p],x=Math.abs(y[1]-y[0])>Math.abs(b[1]-b[0])?y:b;return Ot([f,p])?[new Date(x[0]),new Date(x[1])]:x},getScaledDomain:function(t,e,n){var r=tO(t,2),o=r[0],i=r[1],a=Math.abs(i-o),u=a-a*e,c=Number(o)+u*n,l=Number(i)-u*(1-n);return[Math.min(c,l),Math.max(c,l)]},getMinimumDomain:function(t,e,n){var r=e.minimumZoom,o=tO(this.getDomain(e)[n],2),i=o[0],a=o[1],u=Math.abs(i-a)/1e3,c=r&&r[n]||u,l=t-c/2,s=t+c/2;return[l>i&&l<a?l:i,s<a&&s>i?s:Number(i)+c/2]},zoommingOut:function(t){return t.deltaY>0},getScaleFactor:function(t){var e=this.zoommingOut(t)?1:-1,n=Math.min(Math.abs(t.deltaY/300),.5);return Math.abs(1+e*n)},getScalePercent:function(t,e,n){var r=this.getDomain(e),o=tO(r[n],2),i=o[0],a=o[1];return(this.getPosition(t,e,r)[n]-i)/Math.abs(a-i)},getPosition:function(t,e,n){var r=Vv(t),o=r.x,i=r.y,a={x:e.scale.x.domain(n.x),y:e.scale.y.domain(n.y)};return Hv(e,a,o,i)},pan:function(t,e,n){var r,o=tO(t.map((function(t){return Number(t)})),2),i=o[0],a=o[1],u=tO(e.map((function(t){return Number(t)})),2),c=u[0],l=u[1],s=i+n,f=a+n;return r=s>c&&f<l?[s,f]:s<c?[c,c+(a-i)]:f>l?[l-(a-i),l]:t,Ot(t)||Ot(e)?r.map((function(t){return new Date(t)})):r},getDomainScale:function(t,e,n){var r=tO(Array.isArray(t)?t:t[n],2),o=r[0],i=r[1],a=e[n].range();return Math.abs(a[0]-a[1])/(i-o)},handleAnimation:function(t){var e=t.context.animationTimer,n=t.context.transitionTimer;return n.bypassAnimation(),e.bypassAnimation(),Jx()((function(){e.resumeAnimation(),n.resumeAnimation()}),16)},getLastDomain:function(t,e){var n=t.zoomDomain,r=t.cachedZoomDomain,o=t.currentDomain,i=t.domain;return n&&!this.checkDomainEquality(n,r)?G()({},n,i):G()({},o||n||e,i)},getDomain:function(t){var e=t.originalDomain,n=t.domain,r=t.children,o=t.zoomDimension,i=P.Children.toArray(r),a={};return i.length&&(a=o?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},o,qg(t,o,i)):{x:qg(t,"x",i),y:qg(t,"y",i)}),G()({},a,e,n)},onMouseDown:function(t,e){if(t.preventDefault(),e.allowPan){var n=e.parentSVG||Uv(t),r=Vv(t,n),o=r.x,i=r.y;return[{target:"parent",mutation:function(){return{startX:o,startY:i,panning:!0,parentSVG:n,parentControlledProps:["domain"]}}}]}},onMouseUp:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseLeave:function(t,e){if(e.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseMove:function(t,e,n,r){if(e.panning&&e.allowPan){var o=e.scale,i=e.startX,a=e.startY,u=e.onZoomDomainChange,c=e.zoomDomain,l=e.zoomDimension,s=e.horizontal,f=e.parentSVG||Uv(t),p=Vv(t,f),h=p.x,d=p.y,y=this.getDomain(e),v=this.getLastDomain(e,y),m=s?i-h:d-a,g=(s?d-a:i-h)/this.getDomainScale(v,o,"x"),b=m/this.getDomainScale(v,o,"y"),x={x:"y"===l?y.x:this.pan(v.x,y.x,g),y:"x"===l?y.y:this.pan(v.y,y.y,b)},O=this.handleAnimation(r),_={parentControlledProps:["domain"],startX:h,startY:d,parentSVG:f,currentDomain:x,originalDomain:y,cachedZoomDomain:c,zoomActive:!this.checkDomainEquality(y,v)};return lt(u)&&u(x,G()({},_,e)),[{target:"parent",callback:O,mutation:function(){return _}}]}},onWheel:function(t,e,n,r){if(e.allowZoom){var o=e.onZoomDomainChange,i=e.zoomDimension,a=e.zoomDomain,u=this.getDomain(e),c=this.getLastDomain(e,u),l=c.x,s=c.y,f={x:"y"===i?c.x:this.scale(l,t,e,"x"),y:"x"===i?c.y:this.scale(s,t,e,"y")},p=this.handleAnimation(r),h={currentDomain:f,originalDomain:u,cachedZoomDomain:a,parentControlledProps:["domain"],panning:!1,zoomActive:!this.zoommingOut(t)||e.zoomActive&&!this.checkDomainEquality(u,c)};return lt(o)&&o(f,G()({},h,e)),[{target:"parent",callback:p,mutation:function(){return h}}]}}},rO={checkDomainEquality:nO.checkDomainEquality.bind(nO),onMouseDown:nO.onMouseDown.bind(nO),onMouseUp:nO.onMouseUp.bind(nO),onMouseLeave:nO.onMouseLeave.bind(nO),onMouseMove:Kv()(nO.onMouseMove.bind(nO),16,{leading:!0,trailing:!1}),onWheel:Kv()(nO.onWheel.bind(nO),16,{leading:!0,trailing:!1})};function oO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function iO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?oO(Object(n),!0).forEach((function(e){aO(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function aO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function uO(t){return function(t){if(Array.isArray(t))return cO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return cO(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cO(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function lO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function fO(t,e){return fO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},fO(t,e)}function pO(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function hO(t){return hO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hO(t)}function dO(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fO(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=hO(r);if(o){var n=hO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return pO(this,t)});function a(){return lO(this,a),i.apply(this,arguments)}return e=a,n=[{key:"clipDataComponents",value:function(t,e){var n=e.scale,r=e.clipContainerComponent,o=e.polar,i=e.origin,a=e.horizontal,u=a?n.y.range():n.x.range(),c=a?n.x.range():n.y.range(),l=Math.abs(u[0]-u[1]),s=Math.abs(c[0]-c[1]),f=Math.max.apply(Math,uO(c)),p=A().cloneElement(r,iO({clipWidth:l,clipHeight:s,translateX:Math.min.apply(Math,uO(u)),translateY:Math.min.apply(Math,uO(c)),polar:o,origin:o?i:void 0,radius:o?f:void 0},r.props));return A().Children.toArray(t).map((function(t){return Ca(t)?A().cloneElement(t,{groupComponent:p}):t}))}},{key:"modifyPolarDomain",value:function(t,e){return{x:e.x,y:[0,t.y[1]]}}},{key:"downsampleZoomData",value:function(t,e,n){var r=t.downsample,o=function(t){var n=t.data,r=t.x,o=t.y,i=e.type&&lt(e.type.getData)?e.type.getData:function(){};return!Array.isArray(n)||r||o?i(t):n}(e.props);if(r&&n&&o){var i=!0===r?150:r,a=t.zoomDimension||"x",u=o.findIndex((function(t){return t[a]>=n[a][0]})),c=o.findIndex((function(t){return t[a]>n[a][1]}));return 0!==u&&(u-=1),-1!==c&&(c+=1),Oa(o.slice(u,c),i,u)}}},{key:"modifyChildren",value:function(t){var e=this;return A().Children.toArray(t.children).map((function(n){var r,o=n.type&&n.type.role,i=Ca(n),a=t.currentDomain,u=t.zoomActive,c=t.allowZoom,l=G()({},t.originalDomain,t.domain),s=G()({},t.zoomDomain,t.domain),f=G()({},t.cachedZoomDomain,t.domain);r=rO.checkDomainEquality(s,f)?c&&!u?n.props.domain:G()({},a,l):s;var p=t.polar?e.modifyPolarDomain(r,l):r;p&&t.zoomDimension&&(p=iO(iO({},s),{},aO({},t.zoomDimension,p[t.zoomDimension])));var h=i&&"stack"!==o?{domain:p,data:e.downsampleZoomData(t,n,p)}:{domain:p};return A().cloneElement(n,G()(h,n.props))}))}},{key:"getChildren",value:function(t){var e=this.modifyChildren(t);return this.clipDataComponents(e,t)}}],n&&sO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryZoomContainer",e.defaultProps=iO(iO({},Zs.defaultProps),{},{clipContainerComponent:A().createElement(bf,null),allowPan:!0,allowZoom:!0,zoomActive:!1}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:iO({onMouseDown:function(e,n){return t.disable?{}:rO.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:rO.onMouseDown(e,n)},onMouseUp:function(e,n){return t.disable?{}:rO.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:rO.onMouseUp(e,n)},onMouseLeave:function(e,n){return t.disable?{}:rO.onMouseLeave(e,n)},onTouchCancel:function(e,n){return t.disable?{}:rO.onMouseLeave(e,n)},onMouseMove:function(e,n,r,o){return t.disable?{}:rO.onMouseMove(e,n,r,o)},onTouchMove:function(e,n,r,o){return t.disable?{}:(e.preventDefault(),rO.onMouseMove(e,n,r,o))}},t.disable||!t.allowZoom?{}:{onWheel:rO.onWheel})}]},e}var yO=dO(Zs);function vO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function mO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var gO=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.onMouseDown=function(t,n){t.preventDefault();var r=n.activateSelectedData,o=n.allowSelection,i=n.polar,a=n.selectedData;if(!o)return{};var u=e.getDimension(n),c=n.parentSVG||Uv(t),l=Vv(t,c),s=l.x,f=l.y,p={x1:i||"y"!==u?s:Fv(n).x[0],y1:i||"x"!==u?f:Fv(n).y[0],select:!0,x2:i||"y"!==u?s:Fv(n).x[1],y2:i||"x"!==u?f:Fv(n).y[1],parentSVG:c};a&&lt(n.onSelectionCleared)&&n.onSelectionCleared(G()({},p,n));var h,d=[{target:"parent",mutation:function(){return p}}],y=a&&r?a.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return null}}})):[];return d.concat.apply(d,function(t){if(Array.isArray(t))return vO(t)}(h=y)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(h)||function(t,e){if(t){if("string"==typeof t)return vO(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?vO(t,e):void 0}}(h)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())},this.handleMouseMove=function(t,n){var r=n.allowSelection,o=n.select,i=n.polar,a=e.getDimension(n);if(!r||!o)return null;var u=n.parentSVG||Uv(t),c=Vv(t,u),l=c.x,s=c.y,f=i||"y"!==a?l:Fv(n).x[1],p=i||"x"!==a?s:Fv(n).y[1];return{target:"parent",mutation:function(){return{x2:f,y2:p,parentSVG:u}}}},this.onMouseMove=Kv()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseUp=function(t,n){var r=n.activateSelectedData,o=n.allowSelection,i=n.x2,a=n.y2;if(!o)return null;if(!i||!a)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var u=e.getDatasets(n),c=qv(n),l=e.filterDatasets(n,u),s={selectedData:l,datasets:u,select:!1,x1:null,x2:null,y1:null,y2:null},f=l&&lt(n.onSelection)?n.onSelection(l,c,G()({},s,n)):{},p=[{target:"parent",mutation:function(){return s}}],h=l&&r?l.map((function(t){return{childName:t.childName,eventKey:t.eventKey,target:"data",mutation:function(){return Object.assign({active:!0},f)}}})):[];return p.concat(h)}}var e,n;return e=t,(n=[{key:"getDimension",value:function(t){var e=t.horizontal,n=t.selectionDimension;return e&&n?"x"===n?"y":"x":n}},{key:"getDatasets",value:function(t){return t.data?[{data:t.data}]:yt(A().Children.toArray(t.children),(function(e,n,r){var o,i=t.selectionBlacklist||[];if(!Ca(e)||i.includes(n))return null;if(e.type&&lt(e.type.getData)){var a=(o=r?A().cloneElement(e,r.props):e).props&&o.type.getData(o.props);return a?{childName:n,data:a}:null}var u,c=(u=Pa(o.props),Array.isArray(u)&&u.length>0?u:void 0);return c?{childName:n,data:c}:null}),t)}},{key:"filterDatasets",value:function(t,e){var n=this,r=e.reduce((function(e,r){var o=n.getSelectedData(t,r.data);return o?e.concat({childName:r.childName,eventKey:o.eventKey,data:o.data}):e}),[]);return r.length?r:null}},{key:"getSelectedData",value:function(t,e){for(var n,r=t.x1,o=t.y1,i=t.x2,a=t.y2,u=[],c=[],l=0,s=0,f=e.length;s<f;s++){var p=e[s];void 0,(n=X(t,p)).x>=Math.min(r,i)&&n.x<=Math.max(r,i)&&n.y>=Math.min(o,a)&&n.y<=Math.max(o,a)&&(c[l]=p,u[l]=void 0===p.eventKey?s:p.eventKey,l++)}return l>0?{eventKey:u,data:c}:null}}])&&mO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),bO=new gO;function xO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function OO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xO(Object(n),!0).forEach((function(e){_O(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _O(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function jO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function AO(t,e){return AO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},AO(t,e)}function MO(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function EO(t){return EO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},EO(t)}function CO(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&AO(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=EO(r);if(o){var n=EO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return MO(this,t)});function a(){return jO(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getRect",value:function(t){var e=t.x1,n=t.x2,r=t.y1,o=t.y2,i=t.selectionStyle,a=t.selectionComponent,u=t.name,c=Math.abs(n-e)||1,l=Math.abs(o-r)||1,s=Math.min(e,n),f=Math.min(r,o);return o&&n&&e&&r?A().cloneElement(a,{key:"".concat(u,"-selection"),x:s,y:f,width:c,height:l,style:i}):null}},{key:"getChildren",value:function(t){return[].concat(function(t){if(Array.isArray(t))return wO(t)}(e=A().Children.toArray(t.children))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return wO(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wO(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[this.getRect(t)]);var e}}],n&&PO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictorySelectionContainer",e.defaultProps=OO(OO({},Zs.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:A().createElement(lf,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseDown:function(e,n){return t.disable?{}:bO.onMouseDown(e,n)},onTouchStart:function(e,n){return t.disable?{}:bO.onMouseDown(e,n)},onMouseMove:function(e,n){return t.disable?{}:bO.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:bO.onMouseMove(e,n)},onMouseUp:function(e,n){return t.disable?{}:bO.onMouseUp(e,n)},onTouchEnd:function(e,n){return t.disable?{}:bO.onMouseUp(e,n)}}}]},e}var SO=CO(Zs);function kO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var DO=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.handleMouseMove=function(t,n){var r=n.onCursorChange,o=n.domain,i=e.getDimension(n),a=n.parentSVG||Uv(t),u=Vv(t,a),c=Hv(n,n.scale,u.x,u.y);return e.withinBounds(c,{x1:o.x[0],x2:o.x[1],y1:o.y[0],y2:o.y[1]})||(c=null),lt(r)&&(c?r(i?c[i]:c,n):c!==n.cursorValue&&r(n.defaultCursorValue||null,n)),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:c,parentSVG:a}}}]},this.onMouseMove=Kv()(this.handleMouseMove,16,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(t,e){var n=e.onCursorChange;return lt(e.onCursorChange)&&n(null,e),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}var e,n;return e=t,n=[{key:"getDimension",value:function(t){var e=t.horizontal,n=t.cursorDimension;return e&&n?"x"===n?"y":"x":n}},{key:"withinBounds",value:function(t,e){var n=ht(e,Number),r=n.x1,o=n.x2,i=n.y1,a=n.y2,u=ht(t,Number),c=u.x,l=u.y;return c>=Math.min(r,o)&&c<=Math.max(r,o)&&l>=Math.min(i,a)&&l<=Math.max(i,a)}}],n&&kO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),TO=new DO;function RO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function LO(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?RO(Object(n),!0).forEach((function(e){zO(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):RO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function IO(t){return function(t){if(Array.isArray(t))return NO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return NO(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?NO(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function NO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function zO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function BO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function WO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function UO(t,e){return UO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},UO(t,e)}function VO(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function FO(t){return FO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},FO(t)}function HO(t){var e;return e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&UO(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=FO(r);if(o){var n=FO(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return VO(this,t)});function a(){return BO(this,a),i.apply(this,arguments)}return e=a,n=[{key:"getCursorPosition",value:function(t){var e=t.cursorValue,n=t.defaultCursorValue,r=t.domain,o=t.cursorDimension;return e||("number"==typeof n?zO({x:(r.x[0]+r.x[1])/2,y:(r.y[0]+r.y[1])/2},o,n):n)}},{key:"getCursorLabelOffset",value:function(t){var e=t.cursorLabelOffset;return"number"==typeof e?{x:e,y:e}:e}},{key:"getPadding",value:function(t){if(void 0===t.padding){var e=t.children.find((function(t){return hs()(t.props)&&void 0!==t.props.padding}));return Z(e.props)}return Z(t)}},{key:"getCursorElements",value:function(t){var e=t.scale,n=t.cursorLabelComponent,r=t.cursorLabel,o=t.cursorComponent,i=t.width,a=t.height,u=t.name,c=t.horizontal,l=t.theme,s=TO.getDimension(t),f=this.getCursorPosition(t),p=this.getCursorLabelOffset(t);if(!f)return[];var h=[],d=this.getPadding(t),y={x:c?e.y(f.y):e.x(f.x),y:c?e.x(f.x):e.y(f.y)};if(r){var v=G()({active:!0},n.props,{x:y.x+p.x,y:y.y+p.y,datum:f,active:!0,key:"".concat(u,"-cursor-label")});if(Q(n)){var m=l&&l.tooltip||{};v=G()({},v,m)}h.push(A().cloneElement(n,G()({},v,{text:et(r,v)})))}var g=Object.assign({stroke:"black"},o.props.style);return"x"!==s&&void 0!==s||h.push(A().cloneElement(o,{key:"".concat(u,"-x-cursor"),x1:y.x,x2:y.x,y1:d.top,y2:a-d.bottom,style:g})),"y"!==s&&void 0!==s||h.push(A().cloneElement(o,{key:"".concat(u,"-y-cursor"),x1:d.left,x2:i-d.right,y1:y.y,y2:y.y,style:g})),h}},{key:"getChildren",value:function(t){return[].concat(IO(A().Children.toArray(t.children)),IO(this.getCursorElements(t)))}}],n&&WO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(t),e.displayName="VictoryCursorContainer",e.defaultProps=LO(LO({},Zs.defaultProps),{},{cursorLabelComponent:A().createElement(gp,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:A().createElement(ny,null)}),e.defaultEvents=function(t){return[{target:"parent",eventHandlers:{onMouseLeave:function(e,n){return t.disable?{}:TO.onMouseLeave(e,n)},onTouchCancel:function(){return[]},onMouseMove:function(e,n){return t.disable?{}:TO.onMouseMove(e,n)},onTouchMove:function(e,n){return t.disable?{}:TO.onMouseMove(e,n)}}}]},e}var qO=HO(Zs);function GO(t){return function(t){if(Array.isArray(t))return n_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KO(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function $O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?KO(Object(n),!0).forEach((function(e){YO(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function YO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XO(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ZO(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function QO(t,e){return QO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},QO(t,e)}function JO(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function t_(t){return t_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t_(t)}function e_(t,e){if(t){if("string"==typeof t)return n_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?n_(t,e):void 0}}function n_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function r_(t){return t?Array.isArray(t)?t:[t]:[]}var o_=function(t,e){var n,r=t.map((function(t){return t(e)})),o=r.map((function(t){return new t})),i=fx()(t)(e),a=r.map((function(t){return t.displayName.match(/Victory(.*)Container/)[1]||""})).join("");return n=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&QO(t,e)}(u,t);var e,n,r,i,a=(r=u,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=t_(r);if(i){var n=t_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return JO(this,t)});function u(){return XO(this,u),a.apply(this,arguments)}return e=u,(n=[{key:"getChildren",value:function(t){return o.reduce((function(e,n){return n.getChildren($O($O({},t),{},{children:e}))}),t.children)}}])&&ZO(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),u}(i),n.displayName="Victory".concat(a,"Container"),n.propTypes=r.reduce((function(t,e){return $O($O({},t),e.propTypes)}),{}),n.defaultProps=r.reduce((function(t,e){return $O($O({},t),e.defaultProps)}),{}),n.defaultEvents=function(t){return e=r.reduce((function(e,n){var r=lt(n.defaultEvents)?n.defaultEvents(t):n.defaultEvents;return[].concat(GO(e),GO(r))}),[]),n=xv()(e,"target"),o=yx()(n).map((function(t){var e,n,r,o=(r=2,function(t){if(Array.isArray(t))return t}(n=t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||e_(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1],u=a.filter(Boolean);return R()(u)?null:{target:i,eventHandlers:(e=a.map((function(t){return t.eventHandlers})),e.reduce((function(t,e){return hx()(t,(function(t,n){var r=e[n];e[n]=r?function(){var e=r_(r.apply(void 0,arguments)),n=r_(t.apply(void 0,arguments));return e.concat(n)}:t})),e})))}})),o.filter(Boolean);var e,n,o},n},i_=function(t,e){t&&!e.includes(t)&&'"'.concat(t,'" is not a valid behavior. Choose from [').concat(e.join(", "),"].")},a_=function(t,e){return function(n,r){var o=Object.keys(t);i_(n,o),i_(r,o);var i=t[n],a=t[r]||[];return i?o_([].concat(GO(i),GO(a)),e):e}},u_=a_({zoom:[dO],voronoi:[Xx],selection:[CO],cursor:[HO],brush:[fm]},Zs);function c_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c_(Object(n),!0).forEach((function(e){s_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f_=function(t,e,n){var r="right"===n||"left"===n;return A().cloneElement(t.lineComponent,l_(l_({},t.events),{},{role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:"".concat(t.id,"-border-").concat(n),x1:r?e[n]:t.x-t.borderWidth,x2:r?e[n]:t.x+t.borderWidth,y1:r?t.y-t.borderWidth:e[n],y2:r?t.y+t.borderWidth:e[n],"data-type":"border-".concat(n)}))},p_=function(t,e,n){var r="top"===n||"bottom"===n;return A().cloneElement(t.lineComponent,l_(l_({},t.events),{},{role:t.role,shapeRendering:t.shapeRendering,className:t.className,style:t.style,transform:t.transform,key:"".concat(t.id,"-cross-").concat(n),x1:t.x,x2:r?t.x:e[n],y1:t.y,y2:r?e[n]:t.y,"data-type":"cross-".concat(n)}))},h_={groupComponent:A().createElement("g",null),lineComponent:A().createElement(Zd,null),role:"presentation",shapeRendering:"auto"},d_=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.id,t),r=nt(Object.assign({stroke:"black"},t.style),t),o=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,style:r,tabIndex:o})}(l_(l_({},h_),t)),n=e.groupComponent,r=es(e),o=e.tabIndex,i=e.ariaLabel,a=function(t){var e=t.errorX,n=t.errorY,r={right:{error:e,errorIndex:0},left:{error:e,errorIndex:1},top:{error:n,errorIndex:1},bottom:{error:n,errorIndex:0}};return["right","left","top","bottom"].reduce((function(t,e){var n,o,i;return t[e]=(o=(n=r[e]).error,i=n.errorIndex,o?o[i]:void 0),t}),{})}(e),u=[a.right?f_(e,a,"right"):null,a.left?f_(e,a,"left"):null,a.bottom?f_(e,a,"bottom"):null,a.top?f_(e,a,"top"):null,a.right?p_(e,a,"right"):null,a.left?p_(e,a,"left"):null,a.bottom?p_(e,a,"bottom"):null,a.top?p_(e,a,"top"):null].filter(Boolean);return A().cloneElement(n,l_({tabIndex:o,"aria-label":i},r),u)},y_=r(156),v_=r.n(y_),m_=function(t,e,n){var r=e[{x:"_errorX",y:"_errorY"}[n]];if(0===r)return!1;var o=t.scale[n];return Array.isArray(r)?[0!==r[0]&&o(r[0]+e["_".concat(n)]),0!==r[1]&&o(e["_".concat(n)]-r[1])]:[o(r+e["_".concat(n)]),o(e["_".concat(n)]-r)]},g_=function(t){var e=["x","y","errorX","errorY"];return t.data?_a(t.data,t,e):_a(t.errorX||t.errorY?wa(t):[],t,e)},b_=function(t,e){var n=Ga(t,e),r=qa(t,e),o=g_(t);if(o.length<1)return void 0!==n&&void 0!==r?Va(n,r):void 0;var i="x"===e?"_errorX":"_errorY",a=function(t){var n="min"===t?1/0:-1/0,r="min"===t?1:0,a="min"===t?-1:1;return o.reduce((function(n,o){var u=Array.isArray(o[i])?o[i][r]:o[i],c=o["_".concat(e)]+a*(u||0);return n<c&&"min"===t||n>c&&"max"===t?n:c}),n)};return Va(void 0!==n?n:a("min"),void 0!==r?r:a("max"))},x_=function(t,e){return Na(b_)(t,e)};function O_(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function __(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w_(t,e){return w_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w_(t,e)}function j_(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function P_(t){return P_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P_(t)}var A_={width:450,height:300,padding:50},M_=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w_(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=P_(r);if(o){var n=P_(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return j_(this,t)});function a(){return O_(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=E_.animationWhitelist,e=E_.role,n=ft(this.props,A_,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&__(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);M_.animationWhitelist=["data","domain","height","padding","samples","style","width","errorX","errorY","borderWidth"],M_.displayName="VictoryErrorBar",M_.role="errorbar",M_.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},M_.defaultProps={containerComponent:A().createElement(Zs,null),data:[{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}],dataComponent:A().createElement(d_,null),labelComponent:A().createElement(gp,null),groupComponent:A().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},M_.getDomain=x_,M_.getData=g_,M_.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"errorbar"),r=Object.assign({},n,function(t){var e=J(t,"errorbar"),n=tt(t.style,e)||{},r=g_(t),o={x:ut(t,"x"),y:ut(t,"y")},i={x:x_(t,"x"),y:x_(t,"y")};return{domain:i,data:r,scale:{x:Zi(t,"x").domain(i.x).range(t.horizontal?o.y:o.x),y:Zi(t,"y").domain(i.y).range(t.horizontal?o.x:o.y)},style:n,origin:t.polar?t.origin||at(t):void 0}}(n)),o=r.borderWidth,i=r.data,a=r.domain,u=r.events,c=r.groupComponent,l=r.height,s=r.horizontal,f=r.labels,p=r.name,h=r.origin,d=r.padding,y=r.polar,v=r.scale,m=r.sharedEvents,g=r.standalone,b=r.style,x=r.theme,O=r.width,_=r.disableInlineStyles,w={parent:{data:i,domain:a,height:l,horizontal:s,name:p,origin:h,padding:d,polar:y,scale:v,standalone:g,style:b.parent,theme:x,width:O}};return i.reduce((function(t,e,n){var l=ct(e.eventKey)?n:e.eventKey,p=X(v_()({},r,{scale:v}),e),h=p.x,d=p.y,y=function(t,e){var n=Et(e.x),r=Mt(e.x),o=Et(e.y),i=Mt(e.y),a=t._x,u=t._y;return(a<n||a>r||u<o||u>i)&&(a=u=null),Object.assign({},t,{_x:a,_y:u})}(e,a),g=m_(r,y,"x"),x=m_(r,y,"y"),O={borderWidth:o,data:i,datum:y,errorX:s?x:g,errorY:s?g:x,groupComponent:c,horizontal:s,index:n,scale:v,style:_?{}:b.data,x:h,y:d,disableInlineStyles:_};t[l]={data:O};var w=Xa(r,e,n);return(null!=w||f&&(u||m))&&(t[l].labels=function(t,e,n){var r=t.x,o=t.y,i=t.index,a=t.scale,u=t.errorY,c=t.errorX,l=t.horizontal,s=t.labelComponent,f=t.theme,p=t.disableInlineStyles,h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",n="y"===e?u:c;return(n&&Array.isArray(n)?n[0]:n)||t[e]},d=n.labels||{},y=d.padding||0,v=l?"start":"middle",m=l?"middle":"end",g={style:d,y:l?o:h("y"),x:l?h("x"):r,dy:l?0:-y,dx:l?y:0,text:e,index:i,scale:a,datum:t.datum,data:t.data,textAnchor:d.textAnchor||v,verticalAnchor:d.verticalAnchor||m,angle:d.angle,horizontal:l,disableInlineStyles:p};if(!Q(s))return g;var b=f&&f.tooltip||{};return G()({},g,$(b,["style"]))}(Object.assign({},r,O),w,b)),t}),w)}(t,A_)},M_.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var E_=bd(M_);function C_(t){return function(t){if(Array.isArray(t))return k_(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||S_(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S_(t,e){if(t){if("string"==typeof t)return k_(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k_(t,e):void 0}}function k_(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function D_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function T_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?D_(Object(n),!0).forEach((function(e){R_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function R_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L_={width:450,height:300,padding:50,offset:0};function I_(t,e){var n="group",r=ft(t,L_,n),o=Xg(r.theme,r.style,n),i=r.offset,a=r.colorScale,u=r.color,c=r.polar,l=r.horizontal,s=r.categories||nb(r,e,null),f=r.datasets||Ug(r,null),p={x:Gg(Object.assign({},r,{categories:s}),"x",e),y:Gg(Object.assign({},r,{categories:s}),"y",e)},h=r.range||{x:ut(r,"x"),y:ut(r,"y")},d={x:Ji(r,"x")||Kg(r,"x"),y:Ji(r,"y")||Kg(r,"y")};return{datasets:f,categories:s,range:h,domain:p,horizontal:l,scale:{x:d.x.domain(p.x).range(r.horizontal?h.y:h.x),y:d.y.domain(p.y).range(r.horizontal?h.x:h.y)},style:o,colorScale:a,color:u,offset:i,origin:c?r.origin:at(r),padding:Z(r)}}function N_(t){var e,n,r=function(t){var e=t.children,n=A().Children.toArray(e).map((function(t){return T_(T_({},t),{},{props:$(t.props,["sharedEvents"])})}));return t.children=n,t}(t),o=(e=A().useState(r),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,n)||S_(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return A().useEffect((function(){Up()(r,i)||a(r)}),[i,a,r]),A().useMemo((function(){return I_(i,i.children)}),[i])}function z_(t,e){var n=e.type&&e.type.role,r=e.props.colorScale||t.colorScale;if("group"===n||"stack"===n)return t.theme&&t.theme.group?r||t.theme.group.colorScale:r}function B_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=t.data||t.y?Pa(t):e,o=n||0;return r.map((function(t){var e=t._x instanceof Date?new Date(t._x.getTime()+o):t._x+o;return Object.assign({},t,{_x1:e})}))}function W_(t,e,n){var r=ft(t,L_,"stack"),o=e||A().Children.toArray(r.children),i=n||I_(r,o),a=i.datasets,u=r.labelComponent,c=r.polar,l=function(t,e){var n=e.categories,r=e.domain,o=e.range,i=e.scale,a=e.horizontal,u=e.origin,c=e.padding,l=t.width;return{height:t.height,width:l,theme:t.theme,polar:t.polar,origin:u,categories:n,domain:r,range:o,scale:i,horizontal:a,padding:c,standalone:!1}}(r,i),s=r.name||"group";return o.map((function(t,e){var n=t.type&&t.type.role,o=c?function(t,e,n,r){var o=(("stack"===r?e.datasets[0].length:e.datasets.length)-1)/2,i=function(t,e){var n=e.range,r=Math.abs(n.x[1]-n.x[0]),o=Math.max.apply(Math,C_(n.y));return t.offset/(2*Math.PI*o)*r}(t,e);return(n-o)*i}(r,i,e,n):function(t,e,n,r){var o=(("stack"===r?e.datasets[0].length:e.datasets.length)-1)/2,i=function(t,e,n){if(!t.offset)return 0;var r=pt("x",t.horizontal),o=n.domain.x,i=n.range[r];return(Math.max.apply(Math,C_(o))-Math.min.apply(Math,C_(o)))/(Math.max.apply(Math,C_(i))-Math.min.apply(Math,C_(i)))*t.offset}(t,0,e);return(n-o)*i}(r,i,e,n),f="voronoi"===n||"tooltip"===n||"label"===n?t.props.style:Zg(t,e,i),p=r.labels?function(t,e,n){if(t.labels)return Math.floor(e.length/2)===n?t.labels:void 0}(r,a,e):t.props.labels,h=t.props.name||"".concat(s,"-").concat(n,"-").concat(e);return A().cloneElement(t,Object.assign({labels:p,style:f,key:"".concat(h,"-key-").concat(e),name:h,data:B_(r,a[e],o),colorScale:z_(r,t),labelComponent:u||t.props.labelComponent,xOffset:o},l))}))}function U_(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function V_(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U_(Object(n),!0).forEach((function(e){F_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function F_(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var H_={width:450,height:300,padding:50,offset:0},q_={containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",null),samples:50,standalone:!0,theme:Ip.grayscale},G_=function(t){var e=null==$_?void 0:$_.role,n=Dg(),r=n.getAnimationProps,o=n.setAnimationState,i=n.getProps,a=A().useMemo((function(){return V_(V_({},q_),t)}),[t]),u=i(a),c=ft(u,H_,e),l=c.eventKey,s=c.containerComponent,f=c.standalone,p=c.groupComponent,h=c.externalEventMutations,d=c.width,y=c.height,v=c.theme,m=c.polar,g=c.horizontal,b=c.name,x=A().Children.toArray(c.children),O=N_(c),_=O.domain,w=O.scale,j=O.style,P=O.origin,M=A().useMemo((function(){return W_(u,x,O).map((function(t,e){var n=Object.assign({animate:r(u,t,e)},t.props);return A().cloneElement(t,n)}))}),[u,x,O,r]),E=A().useMemo((function(){return f?{domain:_,scale:w,width:d,height:y,standalone:f,theme:v,style:j.parent,horizontal:g,polar:m,origin:P,name:b}:{}}),[f,_,w,d,y,v,j,g,m,P,b]),C=A().useMemo((function(){return es(a)}),[a]),S=A().useMemo((function(){if(f){var t=G()({},s.props,E,C);return A().cloneElement(s,t)}return A().cloneElement(p,C)}),[p,f,s,E,C]),k=A().useMemo((function(){return $g(u)}),[u]),D=rb(a);return A().useEffect((function(){return function(){a.animate&&o(D,u)}}),[o,D,a,u]),R()(k)?A().cloneElement(S,S.props,M):A().createElement(yb,{container:S,eventKey:l,events:k,externalEventMutations:h},M)},K_={role:"group",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:W_},$_=Object.assign(A().memo(G_,Up()),K_);$_.displayName="VictoryGroup";var Y_=Array.prototype,X_=Y_.slice;function Z_(t){return()=>t}function Q_(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let o=-1;for(let i of t)null!=(i=e(i,++o,t))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}function J_(t){return t}function tw(t){return Math.ceil(Math.log(function(t,e){let n=0;for(let e of t)null!=e&&(e=+e)>=e&&++n;return n}(t))/Math.LN2)+1}function ew(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function nw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ew(Object(n),!0).forEach((function(e){rw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ew(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ow(t){return function(t){if(Array.isArray(t))return iw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return iw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iw(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}Y_.map;var aw,uw,cw,lw,sw=(aw=function(t){var e=t.data,n=void 0===e?[]:e,r=t.x,o=t.bins;if(!(n&&n.length||Array.isArray(o)))return[];var i=function(t){var e=t.data,n=t.bins,r=st(t.x||"x"),o=(null==e?void 0:e.some((function(t){return r(t)instanceof Date})))||!1,i=Array.isArray(n)&&n.some((function(t){return t instanceof Date}));return o||i}({data:n,bins:o,x:r}),a=function(t){var e=t.data,n=t.bins,r=t.dataOrBinsContainsDates,o=st(t.x||"x"),i=function(){var t=J_,e=Q_,n=tw;function r(r){Array.isArray(r)||(r=Array.from(r));var o,i,a,u=r.length,c=new Array(u);for(o=0;o<u;++o)c[o]=t(r[o],o,r);var l=e(c),s=l[0],f=l[1],p=n(c,s,f);if(!Array.isArray(p)){const t=f,n=+p;if(e===Q_&&([s,f]=function(t,e,n){let r;for(;;){const o=Ht(t,e,n);if(o===r||0===o||!isFinite(o))return[t,e];o>0?(t=Math.floor(t/o)*o,e=Math.ceil(e/o)*o):o<0&&(t=Math.ceil(t*o)/o,e=Math.floor(e*o)/o),r=o}}(s,f,n)),(p=Ft(s,f,n))[0]<=s&&(a=Ht(s,f,n)),p[p.length-1]>=f)if(t>=f&&e===Q_){const t=Ht(s,f,n);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else p.pop()}for(var h=p.length;p[0]<=s;)p.shift(),--h;for(;p[h-1]>f;)p.pop(),--h;var d,y=new Array(h+1);for(o=0;o<=h;++o)(d=y[o]=[]).x0=o>0?p[o-1]:s,d.x1=o<h?p[o]:f;if(isFinite(a)){if(a>0)for(o=0;o<u;++o)null!=(i=c[o])&&s<=i&&i<=f&&y[Math.min(h,Math.floor((i-s)/a))].push(r[o]);else if(a<0)for(o=0;o<u;++o)if(null!=(i=c[o])&&s<=i&&i<=f){const t=Math.floor((s-i)*a);y[Math.min(h,t+(p[t]<=i))].push(r[o])}}else for(o=0;o<u;++o)null!=(i=c[o])&&s<=i&&i<=f&&y[Jt(p,i,0,h)].push(r[o]);return y}return r.value=function(e){return arguments.length?(t="function"==typeof e?e:Z_(e),r):t},r.domain=function(t){return arguments.length?(e="function"==typeof t?t:Z_([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Z_(X_.call(t)):Z_(t),r):n},r}().value(o),a=(r?Ci():_n()).domain(Q_(e,o)).nice();return Array.isArray(n)?(i.domain([n[0],n[n.length-1]]),i.thresholds(n.slice(1,n.length-1)),i):Number.isInteger(n)?(i.domain(a.domain()),i.thresholds(n),i):r?(i.domain(a.domain()),i.thresholds(a.ticks()),i):(i.domain(a.domain()),i)}({data:n,x:r,bins:o,dataOrBinsContainsDates:i});return ow(a(n)).filter((function(t){var e=t.x0,n=t.x1;return e instanceof Date&&n instanceof Date?new Date(e).getTime()!==new Date(n).getTime():e!==n})).map((function(t){var e=i?new Date(t.x0):t.x0||0,n=i?new Date(t.x1):t.x1||0;return{x0:e,x1:n,x:i?new Date((e.getTime()+n.getTime())/2):(e+n)/2,y:t.length,binnedData:ow(t)}}))},lw=!1,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(lw&&Up()(uw,e))return cw;var r=aw.apply(void 0,e);return lw=!0,cw=r,uw=e,r}),fw=function(t){var e=t.bins,n=t.data,r=t.x,o=(null==n?void 0:n.some((function(t){return!ct(t._y)})))?n:sw({data:n,x:r,bins:e});return Pa(nw(nw({},t),{},{data:o,x:"x"}))},pw=function(t,e){var n,r=fw(t);if(!r.length)return[0,1];if("x"===e){var o=r[0],i=r[r.length-1];return Ha(nw(nw({},t),{},{data:[{x:o.x0},{x:i.x1}],x:"x"}),"x")}return null!==(n=t.data)&&void 0!==n&&n.length?Ha(nw(nw({},t),{},{data:r}),"y"):[0,1]};function hw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yw(t,e){return yw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},yw(t,e)}function vw(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function mw(t){return mw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mw(t)}var gw={width:450,height:300,padding:50},bw=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&yw(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=mw(r);if(o){var n=mw(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return vw(this,t)});function a(){return hw(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,n=ft(this.props,gw,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&dw(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);bw.animationWhitelist=["data","domain","height","padding","style","width"],bw.displayName="VictoryHistogram",bw.role="histogram",bw.defaultTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(){return{_y:0,yOffset:0}}},onEnter:{duration:500,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}}},bw.getFormattedData=sw,bw.defaultProps={containerComponent:A().createElement(Zs,null),data:[],dataComponent:A().createElement(tv,null),groupComponent:A().createElement("g",{role:"presentation"}),labelComponent:A().createElement(gp,null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},bw.getDomain=pw,bw.getData=fw,bw.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"histogram"),r=Object.assign({},n,function(t){var e=J(t,"histogram"),n=tt(t.style,e),r=t.range||{x:ut(t,"x"),y:ut(t,"y")},o={x:pw(t,"x"),y:pw(t,"y")},i=fw(t);return{style:n,data:i=ba(i,o,0),scale:{x:Zi(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:Zi(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},domain:o}}(n)),o=r.binSpacing,i=r.cornerRadius,a=r.data,u=r.domain,c=r.events,l=r.height,s=r.horizontal,f=r.padding,p=r.scale,h=r.sharedEvents,d=r.standalone,y=r.style,v=r.theme,m=r.width,g=r.labels,b=r.name,x=r.getPath,O=r.disableInlineStyles,_={parent:{horizontal:s,domain:u,scale:p,width:m,height:l,data:a,standalone:d,name:b,theme:v,padding:f,style:y.parent}},w=function(t){var e=p.x(t.x0),n=p.x(t.x1);return Math.abs(n-e)};return a.reduce((function(t,e,n){var u=ct(e.eventKey)?n:e.eventKey,f=Cy(r,e),d=f.x,v=f.y,b=f.y0,_=f.x0,j=function(t){return o?w(t)-o:w(t)}(e),P={alignment:"middle",barWidth:j,cornerRadius:i,data:a,datum:e,horizontal:s,index:n,scale:p,style:O?{}:y.data,width:m,height:l,x:d,y:v,y0:b,x0:_,getPath:x,disableInlineStyles:O};return t[u]={data:P},(null!=Xa(r,e,n)||g&&(c||h))&&(t[u].labels=eu(r,n)),t}),_)}(t,gw)},bw.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var xw=bd(bw),Ow=r(8825),_w=r.n(Ow);function ww(t){return function(t){if(Array.isArray(t))return jw(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return jw(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jw(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jw(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Aw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Pw(Object(n),!0).forEach((function(e){Mw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Pw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Mw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ew=function(t){var e=t.data,n=t.style;return e.map((function(t,r){return nt(G()({},t.labels,n.labels),{datum:t,index:r,data:e})}))},Cw=function(t){var e=t.orientation,n=t.theme,r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.style||{},r={height:"100%",width:"100%"};return{parent:G()(n.parent,e.parent,r),data:G()({},n.data,e.data),labels:G()({},n.labels,e.labels),border:G()({},n.border,e.border),title:G()({},n.title,e.title)}}(t,n&&n.legend&&n.legend.style?n.legend.style:{}),o=function(t){var e=t.colorScale;return"string"==typeof e?If(e):e||[]}(t),i="horizontal"===e,a=Z({padding:t.borderPadding});return Object.assign({},t,{style:r,isHorizontal:i,colorScale:o,borderPadding:a})},Sw=function(t,e){var n=t.itemsPerRow,r=t.isHorizontal;return n?r?e%n:Math.floor(e/n):r?e:0},kw=function(t,e){var n=t.itemsPerRow,r=t.isHorizontal;return n?r?Math.floor(e/n):e%n:r?0:e},Dw=function(t){var e=t.data,n=t.style&&t.style.data||{},r=Ew(t);return e.map((function(e,o){var i=e.symbol||{},a=r[o].fontSize,u=i.size||n.size||a/2.5,c=t.symbolSpacer||Math.max(u,a);return Aw(Aw({},e),{},{size:u,symbolSpacer:c,fontSize:a,textSize:np(e.name,r[o]),column:Sw(t,o),row:kw(t,o)})}))},Tw=function(t,e){var n=t.gutter||{},r="object"==typeof n?(n.left||0)+(n.right||0):n||0,o=xv()(e,"column");return Object.keys(o).reduce((function(t,e,n){var i=o[e].map((function(t){return t.textSize.width+t.size+t.symbolSpacer+r}));return t[n]=Math.max.apply(Math,ww(i)),t}),[])},Rw=function(t,e){var n=t.rowGutter||{},r="object"==typeof n?(n.top||0)+(n.bottom||0):n||0,o=xv()(e,"row");return Object.keys(o).reduce((function(t,e,n){var i=o[e].map((function(t){return t.textSize.height+t.symbolSpacer+r}));return t[n]=Math.max.apply(Math,ww(i)),t}),[])},Lw=function(t){var e=t.style&&t.style.title||{},n=np(t.title,e),r=e.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Iw=function(t,e){var n=ft(t,e,"legend"),r=Object.assign({},n,Cw(n)),o=r.title,i=r.titleOrientation,a=Dw(r),u=Tw(r,a),c=Rw(r,a),l=o?Lw(r):{height:0,width:0};return{height:"left"===i||"right"===i?Math.max(zw(c),l.height):zw(c)+l.height,width:"left"===i||"right"===i?zw(u)+l.width:Math.max(zw(u),l.width)}},Nw=function(t,e){var n=ft(t,e,"legend"),r=Object.assign({},n,Cw(n)),o=r.data,i=r.standalone,a=r.theme,u=r.padding,c=r.style,l=r.colorScale,s=r.gutter,f=r.rowGutter,p=r.borderPadding,h=r.title,d=r.titleOrientation,y=r.name,v=r.x,m=void 0===v?0:v,g=r.y,b=void 0===g?0:g,x=Dw(r),O=Tw(r,x),_=Rw(r,x),w=Ew(r),j=h?Lw(r):{height:0,width:0},P="left"===d?j.width:0,A="top"===d?j.height:0,M=s&&"object"==typeof s&&s.left||0,E=f&&"object"==typeof f&&f.top||0,C=Iw(r,e),S=function(t,e,n){var r=t.x,o=t.y,i=t.borderPadding,a=t.style;return{x:r,y:o,height:(e||0)+i.top+i.bottom,width:(n||0)+i.left+i.right,style:Object.assign({fill:"none"},a.border)}}(r,C.height,C.width),k=function(t,e){var n=t.title,r=t.titleOrientation,o=t.centerTitle,i=t.borderPadding,a=e.height,u=e.width,c=function(t){var e=t.titleOrientation,n=t.centerTitle,r=t.titleComponent,o=t.style&&t.style.title||{},i=r.props&&r.props.style||{},a=function(t,e){var n={textAnchor:"right"===t?"end":"start",verticalAnchor:"bottom"===t?"end":"start"};if(e){var r="top"===t||"bottom"===t;return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n}(e,n);return Array.isArray(i)?i.map((function(t){return G()({},t,o,a)})):G()({},i,o,a)}(t),l=Array.isArray(c)?c[0].padding:c.padding,s="top"===r||"bottom"===r,f="right"===r?"right":"left",p={x:o?u/2:i["bottom"===r?"bottom":"top"]+(l||0),y:o?a/2:i[f]+(l||0)},h=function(){return i[r]+(l||0)},d=s?p.x:h(),y=s?h():p.y;return{x:"right"===r?t.x+u-d:t.x+d,y:"bottom"===r?t.y+a-y:t.y+y,style:c,text:n}}(r,S),D={parent:{data:o,standalone:i,theme:a,padding:u,name:y,height:r.height,width:r.width,style:c.parent},all:{border:S,title:k}};return x.reduce((function(t,e,n){var r=l[n%l.length],i=G()({},e.symbol,c.data,{fill:r}),a=ct(e.eventKey)?n:e.eventKey,u=function(t,e,n){var r=t.column,o=t.row;return{x:_w()(r).reduce((function(t,e){return t+n[e]}),0),y:_w()(o).reduce((function(t,n){return t+e[n]}),0)}}(e,_,O),s=b+p.top+e.symbolSpacer,f=m+p.left+e.symbolSpacer,h={index:n,data:o,datum:e,symbol:i.type||i.symbol||"circle",size:e.size,style:i,y:s+u.y+A+E,x:f+u.x+P+M},d={datum:e,data:o,text:e.name,style:w[n],y:h.y,x:h.x+e.symbolSpacer+e.size/2};return t[a]={data:h,labels:d},t}),D)};function zw(t){if(t&&t.length){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e}return 0}function Bw(t){return function(t){if(Array.isArray(t))return Ww(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ww(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ww(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ww(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Uw(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Fw(t,e){return Fw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Fw(t,e)}function Hw(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function qw(t){return qw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},qw(t)}var Gw={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},Kw=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Fw(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=qw(r);if(o){var n=qw(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Hw(this,t)});function a(){return Uw(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"renderChildren",value:function(t){var e=this,n=t.dataComponent,r=t.labelComponent,o=t.title,i=[];if(t.borderComponent){var a=this.getComponentProps(t.borderComponent,"border","all"),u=A().cloneElement(t.borderComponent,a);i.push(u)}if(n){var c=this.dataKeys.map((function(t,r){if("all"!==t){var o=e.getComponentProps(n,"data",r);return A().cloneElement(n,o)}})).filter((function(t){return void 0!==t}));i.push.apply(i,Bw(c))}if(o&&t.titleComponent){var l=this.getComponentProps(o,"title","all"),s=A().cloneElement(t.titleComponent,l);i.push(s)}if(r){var f=this.dataKeys.map((function(t,n){if("all"!==t){var o=e.getComponentProps(r,"labels",n);return void 0!==o.text&&null!==o.text?A().cloneElement(r,o):void 0}})).filter((function(t){return void 0!==t}));i.push.apply(i,Bw(f))}return i}},{key:"render",value:function(){var t=this.constructor.role,e=ft(this.props,Gw,t),n=this.renderChildren(e);return e.standalone?this.renderContainer(e.containerComponent,n):A().cloneElement(e.groupComponent,{},n)}}])&&Vw(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Kw.displayName="VictoryLegend",Kw.role="legend",Kw.defaultProps={borderComponent:A().createElement(hv,null),data:[{name:"Series 1"},{name:"Series 2"}],containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(lx,null),groupComponent:A().createElement("g",null),labelComponent:A().createElement(gp,null),standalone:!0,theme:Ip.grayscale,titleComponent:A().createElement(gp,null)},Kw.getBaseProps=function(t){return Nw(t,Gw)},Kw.getDimensions=function(t){return Iw(t,Gw)},Kw.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];var $w=bd(Kw);function Yw(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Xw(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Yw(Object(n),!0).forEach((function(e){Zw(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yw(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Zw(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Qw={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},Jw=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.id,t),r=nt(Object.assign({fill:"none",stroke:"black",pointerEvents:"stroke"},t.style),t),o=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,style:r,tabIndex:o})}(Xw(Xw({},Qw),t)),n=es(e),r=e.polar,o=e.origin,i=Fl(e),a=r&&o?"translate(".concat(o.x,", ").concat(o.y,")"):void 0,u=i(e.data);return A().cloneElement(e.pathComponent,Xw(Xw(Xw({},e.events),n),{},{"aria-label":e.ariaLabel,d:u,style:e.style,transform:e.transform||a,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};function tj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ej(t,e){return ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ej(t,e)}function nj(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function rj(t){return rj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},rj(t)}var oj={width:450,height:300,padding:50,interpolation:"linear"},ij=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ej(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=rj(r);if(o){var n=rj(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return nj(this,t)});function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=a.animationWhitelist,e=a.role,n=ft(this.props,oj,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderContinuousData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&tj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);ij.animationWhitelist=["data","domain","height","padding","samples","style","width"],ij.displayName="VictoryLine",ij.role="line",ij.defaultTransitions={onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}},ij.defaultPolarTransitions={onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(t){return{_y:t._y,_y1:t._y1,_y0:t._y0}}},onExit:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(t,e,n){var r=function(t){return(0===e?n[e+1]:n[e-1])[t]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(t){return{_x:t._x,_y:t._y,_y1:t._y1,_y0:t._y0}}}},ij.continuous=!0,ij.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(Jw,null),labelComponent:A().createElement(gp,{renderInPortal:!0}),groupComponent:A().createElement(bf,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},ij.getDomain=Ba,ij.getData=Pa,ij.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"line"),r=Object.assign({},n,function(t){var e=Pa(t);e.length<2&&(e=[]);var n={x:ut(t,"x"),y:ut(t,"y")},r={x:Ba(t,"x"),y:Ba(t,"y")},o={x:Zi(t,"x").domain(r.x).range(t.horizontal?n.y:n.x),y:Zi(t,"y").domain(r.y).range(t.horizontal?n.x:n.y)},i=t.polar?t.origin||at(t):void 0,a=J(t,"line");return{domain:r,data:e,scale:o,style:tt(t.style,a),origin:i}}(n)),o=r.data,i=r.domain,a=r.events,u=r.groupComponent,c=r.height,l=r.horizontal,s=r.interpolation,f=r.origin,p=r.padding,h=r.polar,d=r.scale,y=r.sharedEvents,v=r.standalone,m=r.style,g=r.theme,b=r.width,x=r.labels,O=r.name,_=r.disableInlineStyles,w={parent:{style:m.parent,scale:d,data:o,height:c,width:b,name:O,domain:i,standalone:v,polar:h,origin:f,padding:p,horizontal:l},all:{data:{horizontal:l,polar:h,origin:f,scale:d,data:o,interpolation:s,groupComponent:u,style:_?{}:m.data,theme:g,disableInlineStyles:_}}};return o.reduce((function(t,e,n){return(null!=Xa(r,e,n)||x&&(a||y))&&(t[ct(e.eventKey)?n:e.eventKey]={labels:eu(r,n)}),t}),w)}(t,oj)},ij.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var aj=bd(ij,{components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]}),uj=function(t,e){var n=e.style,r=function(t,e,n){return t&&t.data&&t.data.fill?t.data.fill:e&&e[n%e.length]}(n,e.colors,t);return Object.assign({fill:r},n.data)},cj=function(t,e){return t*function(t){return Math.cos(t-rt(90))}(e)},lj=function(t,e){return t*function(t){return Math.sin(t-rt(90))}(e)},sj=function(t){return t.reduce((function(t,e){return t+e}),0)/t.length},fj=function(t,e){var n=ft(t,e,"pie"),r=function(t){var e=t.colorScale,n=J(t,"pie"),r=tt(t.style,n),o=Array.isArray(e)?e:If(e),i=Z(t),a=function(t,e){return"number"==typeof t.radius?t.radius:Math.min(t.width-e.left-e.right,t.height-e.top-e.bottom)/2}(t,i),u=function(t,e){var n=t.width,r=t.height,o=W()(t.origin)?t.origin:{};return{x:void 0!==o.x?o.x:(e.left-e.right+n)/2,y:void 0!==o.y?o.y:(e.top-e.bottom+r)/2}}(t,i),c=Pa(t),l=function(t,e){var n=lt(t.padAngle)?0:t.padAngle;return Ku().sort(null).startAngle(rt(t.startAngle)).endAngle(rt(t.endAngle)).padAngle(rt(n)).value((function(t){return t._y}))(e)}(t,c);return Object.assign({},t,{style:r,colors:o,padding:i,defaultRadius:a,data:c,slices:l,origin:u})}(n),o=r.slices,i=r.style,a=r.data,u=r.origin,c=r.defaultRadius,l=r.labels,s=r.events,f=r.sharedEvents,p=r.height,h=r.width,d=r.standalone,y=r.name,v=r.innerRadius,m=r.cornerRadius,g=r.padAngle,b=r.disableInlineStyles,x=r.labelIndicator,O=n.radius||c,_={parent:{standalone:d,height:p,width:h,slices:o,name:y,style:i.parent}};return o.reduce((function(t,e,o){var i=G()({},a[o],{startAngle:ot(e.startAngle),endAngle:ot(e.endAngle),padAngle:ot(e.padAngle)}),c=ct(i.eventKey)?o:i.eventKey,p={index:o,slice:e,datum:i,data:a,origin:u,innerRadius:v,radius:O,cornerRadius:m,padAngle:g,style:b?{}:uj(o,r),disableInlineStyles:b};t[c]={data:p};var h=function(t,e,n){return null==(r=e.label?e.label:Array.isArray(t.labels)?t.labels[n]:lt(t.labels)?t.labels:e.xName||e._x)||lt(r)?r:"".concat(r);var r}(n,i,o);if(null!=h||l&&(s||f)){var d=et(h,p);if(t[c].labels=function(t,e,n){var r=e.index,o=e.datum,i=e.data,a=e.slice,u=e.labelComponent,c=e.theme,l=n.style,s=n.defaultRadius,f=n.origin,p=n.width,h=n.height,d=et(n.labelRadius,Object.assign({text:t},e)),y=et(n.labelPosition,Object.assign({text:t},e))||"centroid",v=et(n.labelPlacement,Object.assign({text:t},e))||"vertical",m=Object.assign({padding:0},l.labels),g=function(t,e,n){var r=n&&n.padding||0;return e||t+r}(s,d,nt(m,Object.assign({labelRadius:d,text:t},e))),b=function(t){return Hu().outerRadius(t).innerRadius(t)}(g),x=function(t,e,n){var r={startAngle:"startAngle"===n?e.startAngle:e.endAngle,endAngle:"endAngle"===n?e.endAngle:e.startAngle},o=Object.assign({},e,r);return t.centroid(o)}(b,a,y),O=function(t,e,n){var r;return((r=void 0!==e.angle?n.angle:ot("centroid"===e?(t.startAngle+t.endAngle)/2:"startAngle"===e?t.startAngle:t.endAngle))<0?360-r:r)%360}(a,y,m),_=function(t,e){return"vertical"===e?0:"parallel"===e?t>180&&t<360?t+90:t-90:t>90&&t<270?t-180:t}(O,v),w=function(t,e){return"perpendicular"===e?t>90&&t<270?"bottom":"top":"parallel"===e?t>=0&&t<=180?"right":"left":t<45||t>315?"top":t>=45&&t<135?"right":t>=135&&t<225?"bottom":"left"}(O,v),j=m.textAnchor||function(t){return"top"===t||"bottom"===t?"middle":"right"===t?"start":"end"}(w),P=m.verticalAnchor||function(t){return"left"===t||"right"===t?"middle":"bottom"===t?"start":"end"}(w),A={width:p,height:h,index:r,datum:o,data:i,slice:a,orientation:w,text:t,style:m,x:Math.round(x[0])+f.x,y:Math.round(x[1])+f.y,textAnchor:j,verticalAnchor:P,angle:_,calculatedLabelRadius:g};if(!Q(u))return A;var M=c&&c.tooltip||{};return G()({},A,$(M,["style"]))}(d,Object.assign({},n,p),r),x){var y=t[c].labels;y.calculatedLabelRadius>O&&(t[c].labelIndicators=function(t,e,n){var r=t.innerRadius,o=t.radius,i=t.slice,a=i.startAngle,u=i.endAngle,c=t.labelIndicatorInnerOffset,l=t.labelIndicatorOuterOffset,s=t.index,f=e.height,p=e.width,h=n.calculatedLabelRadius,d=sj([r,o]),y=sj([u,a]),v=p/2,m=f/2,g=d+c,b=h-l,x={x1:v+cj(g,y),y1:m+lj(g,y),x2:v+cj(b,y),y2:m+lj(b,y),index:s};return G()({},x)}(Object.assign({},n,p),r,y))}}return t}),_)};function pj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function hj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pj(Object(n),!0).forEach((function(e){dj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function dj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yj=function(t){var e=t.slice,n=t.radius,r=t.innerRadius,o=t.cornerRadius;if(lt(t.pathFunction))return t.pathFunction(e);var i=rt(t.padAngle),a=rt(t.sliceStartAngle),u=rt(t.sliceEndAngle);return Hu().cornerRadius(o).outerRadius(n).innerRadius(r||0)(G()({startAngle:a,endAngle:u,padAngle:i},e))},vj={pathComponent:A().createElement($l,null),role:"presentation",shapeRendering:"auto"},mj=function(t){var e=function(t){var e=nt(t.style,t),n=et(t.radius,Object.assign({},t,{style:e})),r=et(t.innerRadius,Object.assign({},t,{style:e,radius:n})),o=et(t.ariaLabel,t),i=et(t.id,t),a=et(t.cornerRadius,t),u=et(t.padAngle,t),c=et(t.sliceStartAngle,t),l=et(t.sliceEndAngle,t),s=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:o,style:e,radius:n,innerRadius:r,id:i,cornerRadius:a,padAngle:u,sliceStartAngle:c,sliceEndAngle:l,tabIndex:s})}(hj(hj({},vj),t)),n=e.origin?"translate(".concat(e.origin.x,", ").concat(e.origin.y,")"):void 0;return A().cloneElement(e.pathComponent,hj(hj({},e.events),{},{"aria-label":e.ariaLabel,d:yj(e),style:e.style,transform:e.transform||n,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};function gj(t){return function(t){if(Array.isArray(t))return bj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return bj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bj(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function xj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Oj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _j(t,e){return _j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},_j(t,e)}function wj(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function jj(t){return jj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jj(t)}var Pj={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},Aj=function(t){return!ct(t._x)&&!ct(t._y)},Mj=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_j(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=jj(r);if(o){var n=jj(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return wj(this,t)});function a(){return xj(this,a),i.apply(this,arguments)}return e=a,n=[{key:"shouldAnimate",value:function(){return Boolean(this.props.animate)}},{key:"renderComponents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Aj,r=t.dataComponent,o=t.labelComponent,i=t.groupComponent,a=t.labelIndicator,u=t.labelPosition;if(!i)throw new Error("VictoryPie expects a groupComponent prop");var c=a&&"centroid"===u,l=[];if(r){var s=this.dataKeys.reduce((function(t,o,i){var a=e.getComponentProps(r,"data",i);return n(a.datum)&&t.push(A().cloneElement(r,a)),t}),[]);l.push.apply(l,gj(s))}if(o){var f=this.dataKeys.map((function(t,n){var r=e.getComponentProps(o,"labels",n);if(void 0!==r.text&&null!==r.text)return A().cloneElement(o,r)})).filter((function(t){return void 0!==t}));l.push.apply(l,gj(f))}if(c&&a){var p=A().createElement(ny,null);"object"==typeof a&&(p=a);var h=this.dataKeys.map((function(t,n){var r=e.getComponentProps(p,"labelIndicators",n);return A().cloneElement(p,r)}));l.push.apply(l,gj(h))}return this.renderContainer(i,l)}},{key:"render",value:function(){var t=Ej.animationWhitelist,e=Ej.role,n=ft(this.props,Pj,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderComponents(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}],n&&Oj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Mj.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],Mj.displayName="VictoryPie",Mj.role="pie",Mj.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(t){return{y_:t._y,label:t.label}}}},Mj.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:A().createElement(mj,null),labelComponent:A().createElement(gp,null),containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",null),sortOrder:"ascending",theme:Ip.grayscale},Mj.getBaseProps=function(t){return fj(t,Pj)},Mj.getData=Pa,Mj.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent","labelIndicatorComponent"];var Ej=bd(Mj);function Cj(t){return function(t){if(Array.isArray(t))return Sj(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Sj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sj(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var kj=function(t,e){return e.bubbleProperty?"circle":t.symbol||e.symbol},Dj=function(t,e){var n=e.size,r=e.z;return t.size?"function"==typeof t.size?t.size:Math.max(t.size,1):"function"==typeof e.size?n:t[r]?function(t,e){var n,r=e.data,o=e.z,i=e.maxBubbleSize,a=e.minBubbleSize,u=r.map((function(t){return t[o]})),c=Math.min.apply(Math,Cj(u)),l=Math.max.apply(Math,Cj(u)),s=i||(n=Math.min.apply(Math,Cj(Object.values(Z(e)))),Math.max(n,5)),f=a||.1*s;if(l===c)return Math.max(f,1);var p=Math.PI*Math.pow(s,2),h=Math.PI*Math.pow(f,2),d=(t[o]-c)/(l-c)*p,y=Math.max(d,h),v=Math.sqrt(y/Math.PI);return Math.max(v,1)}(t,e):Math.max(n||0,1)};function Tj(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rj(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lj(t,e){return Lj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Lj(t,e)}function Ij(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function Nj(t){return Nj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Nj(t)}var zj={width:450,height:300,padding:50,size:3,symbol:"circle"},Bj=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lj(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=Nj(r);if(o){var n=Nj(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return Ij(this,t)});function a(){return Tj(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=Wj.animationWhitelist,e=Wj.role,n=ft(this.props,zj,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&Rj(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);Bj.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],Bj.displayName="VictoryScatter",Bj.role="scatter",Bj.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},Bj.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(lx,null),labelComponent:A().createElement(gp,null),groupComponent:A().createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},Bj.getDomain=Ba,Bj.getData=Pa,Bj.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"scatter"),r=Object.assign({},n,function(t){var e=J(t,"scatter"),n=tt(t.style,e),r={x:ut(t,"x"),y:ut(t,"y")},o={x:Ba(t,"x"),y:Ba(t,"y")},i={x:Zi(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:Zi(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},a=t.polar?t.origin||at(t):void 0,u=t.bubbleProperty||"z",c=Pa(t);return{domain:o,data:c=ba(c,o),scale:i,style:n,origin:a,z:u}}(n)),o=r.data,i=r.domain,a=r.events,u=r.height,c=r.origin,l=r.padding,s=r.polar,f=r.scale,p=r.name,h=r.sharedEvents,d=r.standalone,y=r.style,v=r.theme,m=r.width,g=r.labels,b=r.horizontal,x=r.disableInlineStyles,O={parent:{style:y.parent,scale:f,domain:i,data:o,height:u,width:m,standalone:d,theme:v,origin:c,polar:s,padding:l,name:p,horizontal:b}};return o.reduce((function(t,e,n){var i=ct(e.eventKey)?n:e.eventKey,u=X(r,e),l={x:u.x,y:u.y,datum:e,data:o,index:n,scale:f,polar:s,origin:c,horizontal:b,size:Dj(e,r),symbol:kj(e,r),style:x?{}:y.data,disableInlineStyles:x};return t[i]={data:l},(null!=Xa(r,e,n)||g&&(a||h))&&(t[i].labels=eu(r,n)),t}),O)}(t,zj)},Bj.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var Wj=bd(Bj);function Uj(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Vj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Fj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Vj(Object(n),!0).forEach((function(e){Hj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Hj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qj={width:450,height:300,padding:50};function Gj(t,e){var n=Ug(t,e).map((function(t){return t.filter((function(t){return null!==t._x&&null!==t._y}))})),r=function(t,e){var n=t.fillInMissingData,r=e.reduce((function(t,e){return e.forEach((function(e){t[e._x instanceof Date?e._x.getTime():e._x]=!0})),t}),{}),o=Object.keys(r).map((function(t){return Number(t)})),i=I()(o);return e.map((function(t){var e=0,r=t[0]&&t[0]._x instanceof Date,o=i.map((function(o,i){var a=Number(o),u=t[i-e];if(u){if((r?u._x.getTime():u._x)===a)return u;e++;var c=n?0:null;return{x:a=r?new Date(a):a,y:c,_x:a,_y:c}}var l=n?0:null;return{x:a=r?new Date(a):a,y:l,_x:a,_y:l}}));return o}))}(t,n);return r.map((function(e,n){return function(t,e,n){var r=t.xOffset||0;return e[n].map((function(t){var o=function(t,e,n){if(t.y0)return t.y0;var r=t._y,o=t._group,i=n[0].map((function(t){return t.y0})),a=n.slice(0,e).reduce((function(e,n){return e.concat(n.filter((function(e){return t._x instanceof Date?e._x.getTime()===t._x.getTime():e._x===t._x})).map((function(t){return t._y||0})))}),[]),u=a.length&&a.reduce((function(t,e){return r<0&&e<0||r>=0&&e>=0?Number(e)+t:t}),i[o]||0);return a.some((function(t){return t instanceof Date}))?new Date(u):u}(t,n,e)||0;return Object.assign({},t,{_y0:t._y instanceof Date?o?new Date(o):t._y:o,_y1:null===t._y?null:t._y instanceof Date?new Date(Number(t._y)+Number(o)):t._y+o,_x1:null===t._x?null:t._x instanceof Date?new Date(Number(t._x)+Number(r)):t._x+r})}))}(t,r,n)}))}function Kj(t,e){var n=e||A().Children.toArray(t.children),r="stack",o=ft(t,qj,r),i=Xg(o.theme,o.style,r),a=o.categories||nb(o,n),u=o.datasets||Gj(o,n),c=n.map((function(t,e){return A().cloneElement(t,{data:u[e]})})),l={x:Gg(Object.assign({},o,{categories:a}),"x",c),y:Gg(Object.assign({},o,{categories:a}),"y",c)},s=o.range||{x:ut(o,"x"),y:ut(o,"y")},f={x:Ji(o,"x")||Kg(o,"x"),y:Ji(o,"y")||Kg(o,"y")},p={x:f.x.domain(l.x).range(o.horizontal?s.y:s.x),y:f.y.domain(l.y).range(o.horizontal?s.x:s.y)},h=o.colorScale,d=o.horizontal;return{datasets:u,categories:a,range:s,domain:l,horizontal:d,scale:p,style:i,colorScale:h,role:r}}function $j(t){var e,n,r=function(t){var e=t.children,n=A().Children.toArray(e).map((function(t){var e=t;return Fj(Fj({},e),{},{props:$(e.props,["sharedEvents"])})}));return t.children=n,t}(t),o=(e=A().useState(r),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Uj(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uj(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return A().useEffect((function(){Up()(r,i)||a(r)}),[i,a,r]),A().useMemo((function(){return Kj(i,i.children)}),[i])}function Yj(t,e){var n=e.type&&e.type.role,r=e.props.colorScale||t.colorScale;if("group"===n||"stack"===n)return t.theme?r||t.theme.props.colorScale:r}function Xj(t,e,n){var r=ft(t,qj,"stack"),o=e||A().Children.toArray(r.children),i=n||Kj(r,o),a=i.datasets,u=function(t,e){var n=e.categories,r=e.domain,o=e.range,i=e.scale,a=e.horizontal;return{height:t.height,width:t.width,padding:Z(t),standalone:!1,theme:t.theme,categories:n,domain:r,range:o,scale:i,horizontal:a}}(r,i),c=r.name||"stack";return o.map((function(t,e){var n=t.type&&t.type.role,o=a[e],l=Zg(t,e,i),s=r.labels?function(t,e,n){if(t.labels)return e.length===n+1?t.labels:void 0}(r,a,e):t.props.labels,f=t.props.name||"".concat(c,"-").concat(n,"-").concat(e);return A().cloneElement(t,Object.assign({key:"".concat(f,"-key-").concat(e),labels:s,name:f,domainPadding:t.props.domainPadding||r.domainPadding,theme:r.theme,labelComponent:r.labelComponent||t.props.labelComponent,style:l,colorScale:Yj(r,t),data:o,polar:r.polar},u))}))}function Zj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function Qj(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Zj(Object(n),!0).forEach((function(e){Jj(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zj(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Jj(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var tP={width:450,height:300,padding:50},eP={containerComponent:A().createElement(Zs,null),groupComponent:A().createElement("g",null),standalone:!0,theme:Ip.grayscale,fillInMissingData:!0},nP=function(t){var e=oP.role,n=A().useMemo((function(){return Qj(Qj({},eP),t)}),[t]),r=Dg(),o=r.setAnimationState,i=r.getAnimationProps,a=(0,r.getProps)(n),u=ft(a,tP,e),c=u.eventKey,l=u.containerComponent,s=u.standalone,f=u.groupComponent,p=u.externalEventMutations,h=u.width,d=u.height,y=u.theme,v=u.polar,m=u.horizontal,g=u.name,b=A().Children.toArray(u.children),x=$j(u),O=x.domain,_=x.scale,w=x.style,j=A().useMemo((function(){return Xj(a,b,x).map((function(t,e){var n=Object.assign({animate:i(a,t,e)},t.props);return A().cloneElement(t,n)})).reverse()}),[a,b,x,i]),P=A().useMemo((function(){return s?{domain:O,scale:_,width:h,height:d,standalone:s,theme:y,style:w.parent,horizontal:m,polar:v,name:g}:{}}),[s,O,_,h,d,y,w,m,v,g]),M=A().useMemo((function(){return es(n)}),[n]),E=A().useMemo((function(){if(s){var t=G()({},l.props,P,M);return A().cloneElement(l,t)}return A().cloneElement(f,M)}),[f,s,l,P,M]),C=A().useMemo((function(){return $g(a)}),[a]),S=rb(n);return A().useEffect((function(){return function(){n.animate&&o(S,n)}}),[o,S,n]),R()(C)?A().cloneElement(E,E.props,j):A().createElement(yb,{container:E,eventKey:c,events:C,externalEventMutations:p},j)},rP={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:Xj},oP=Object.assign(A().memo(nP,Up()),rP);function iP(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function aP(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?iP(Object(n),!0).forEach((function(e){uP(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function uP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}oP.displayName="VictoryStack";var cP={pathComponent:A().createElement($l,null),circleComponent:A().createElement(rf,null),clipPathComponent:A().createElement(Qs,null),groupComponent:A().createElement("g",null),role:"presentation",shapeRendering:"auto"},lP=function(t){var e=function(t){var e=et(t.ariaLabel,t),n=et(t.id,t),r=et(t.size,t),o=nt(t.style,t),i=et(t.tabIndex,t);return Object.assign({},t,{ariaLabel:e,id:n,size:r,style:o,tabIndex:i})}(aP(aP({},cP),t)),n=e.ariaLabel,r=e.role,o=e.shapeRendering,i=e.className,a=e.events,u=e.transform,c=e.style,l=e.size,s=e.tabIndex,f=function(t){var e,n=t.polygon;return Array.isArray(n)&&n.length?"M ".concat(null===(e=t.polygon)||void 0===e?void 0:e.join("L")," Z"):""}(e),p=aP({"aria-label":n,className:i,role:r,shapeRendering:o,style:c,tabIndex:s,transform:u},a),h=es(e);if(l){var d=A().cloneElement(e.circleComponent,aP(aP({},p),{},{key:"".concat(e.id,"-circle-clip"),clipPath:"url(#".concat(e.clipId,")"),cx:e.x,cy:e.y,r:l})),y=A().cloneElement(e.clipPathComponent,{key:"".concat(e.id,"-voronoi-clip"),clipId:e.clipId},A().cloneElement(e.pathComponent,{d:f,className:i}));return A().cloneElement(e.groupComponent,{},[y,d])}return A().cloneElement(e.pathComponent,aP(aP(aP({},p),h),{},{d:f}))};function sP(t){return function(){return t}}function fP(t){return t[0]}function pP(t){return t[1]}function hP(){this._=null}function dP(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function yP(t,e){var n=e,r=e.R,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function vP(t,e){var n=e,r=e.L,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function mP(t){for(;t.L;)t=t.L;return t}hP.prototype={constructor:hP,insert:function(t,e){var n,r,o;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=mP(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(o=r.R)&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.R&&(yP(this,n),n=(t=n).U),n.C=!1,r.C=!0,vP(this,r)):(o=r.L)&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.L&&(vP(this,n),n=(t=n).U),n.C=!1,r.C=!0,yP(this,r)),n=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 e,n,r,o=t.U,i=t.L,a=t.R;if(n=i?a?mP(a):i:a,o?o.L===t?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=t.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=t.U,t=n.R,o.L=t,n.R=a,a.U=n):(n.U=o,o=n,t=n.R)):(r=t.C,t=n),t&&(t.U=o),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===o.L){if((e=o.R).C&&(e.C=!1,o.C=!0,yP(this,o),e=o.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,vP(this,e),e=o.R),e.C=o.C,o.C=e.R.C=!1,yP(this,o),t=this._;break}}else if((e=o.L).C&&(e.C=!1,o.C=!0,vP(this,o),e=o.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,yP(this,e),e=o.L),e.C=o.C,o.C=e.L.C=!1,vP(this,o),t=this._;break}e.C=!0,t=o,o=o.U}while(!t.C);t&&(t.C=!1)}}};const gP=hP;function bP(t,e,n,r){var o=[null,null],i=FP.push(o)-1;return o.left=t,o.right=e,n&&OP(o,t,e,n),r&&OP(o,e,t,r),UP[t.index].halfedges.push(i),UP[e.index].halfedges.push(i),o}function xP(t,e,n){var r=[e,n];return r.left=t,r}function OP(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function _P(t,e,n,r,o){var i,a=t[0],u=t[1],c=a[0],l=a[1],s=0,f=1,p=u[0]-c,h=u[1]-l;if(i=e-c,p||!(i>0)){if(i/=p,p<0){if(i<s)return;i<f&&(f=i)}else if(p>0){if(i>f)return;i>s&&(s=i)}if(i=r-c,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>s&&(s=i)}else if(p>0){if(i<s)return;i<f&&(f=i)}if(i=n-l,h||!(i>0)){if(i/=h,h<0){if(i<s)return;i<f&&(f=i)}else if(h>0){if(i>f)return;i>s&&(s=i)}if(i=o-l,h||!(i<0)){if(i/=h,h<0){if(i>f)return;i>s&&(s=i)}else if(h>0){if(i<s)return;i<f&&(f=i)}return!(s>0||f<1)||(s>0&&(t[0]=[c+s*p,l+s*h]),f<1&&(t[1]=[c+f*p,l+f*h]),!0)}}}}}function wP(t,e,n,r,o){var i=t[1];if(i)return!0;var a,u,c=t[0],l=t.left,s=t.right,f=l[0],p=l[1],h=s[0],d=s[1],y=(f+h)/2,v=(p+d)/2;if(d===p){if(y<e||y>=r)return;if(f>h){if(c){if(c[1]>=o)return}else c=[y,n];i=[y,o]}else{if(c){if(c[1]<n)return}else c=[y,o];i=[y,n]}}else if(u=v-(a=(f-h)/(d-p))*y,a<-1||a>1)if(f>h){if(c){if(c[1]>=o)return}else c=[(n-u)/a,n];i=[(o-u)/a,o]}else{if(c){if(c[1]<n)return}else c=[(o-u)/a,o];i=[(n-u)/a,n]}else if(p<d){if(c){if(c[0]>=r)return}else c=[e,a*e+u];i=[r,a*r+u]}else{if(c){if(c[0]<e)return}else c=[r,a*r+u];i=[e,a*e+u]}return t[0]=c,t[1]=i,!0}function jP(t,e){var n=t.site,r=e.left,o=e.right;return n===o&&(o=r,r=n),o?Math.atan2(o[1]-r[1],o[0]-r[0]):(n===r?(r=e[1],o=e[0]):(r=e[0],o=e[1]),Math.atan2(r[0]-o[0],o[1]-r[1]))}function PP(t,e){return e[+(e.left!==t.site)]}function AP(t,e){return e[+(e.left===t.site)]}var MP,EP=[];function CP(){dP(this),this.x=this.y=this.arc=this.site=this.cy=null}function SP(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,o=t.site,i=n.site;if(r!==i){var a=o[0],u=o[1],c=r[0]-a,l=r[1]-u,s=i[0]-a,f=i[1]-u,p=2*(c*f-l*s);if(!(p>=-qP)){var h=c*c+l*l,d=s*s+f*f,y=(f*h-l*d)/p,v=(c*d-s*h)/p,m=EP.pop()||new CP;m.arc=t,m.site=o,m.x=y+a,m.y=(m.cy=v+u)+Math.sqrt(y*y+v*v),t.circle=m;for(var g=null,b=VP._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){g=b.P;break}b=b.L}else{if(!b.R){g=b;break}b=b.R}VP.insert(g,m),g||(MP=m)}}}}function kP(t){var e=t.circle;e&&(e.P||(MP=e.N),VP.remove(e),EP.push(e),dP(e),t.circle=null)}var DP=[];function TP(){dP(this),this.edge=this.site=this.circle=null}function RP(t){var e=DP.pop()||new TP;return e.site=t,e}function LP(t){kP(t),WP.remove(t),DP.push(t),dP(t)}function IP(t){var e=t.circle,n=e.x,r=e.cy,o=[n,r],i=t.P,a=t.N,u=[t];LP(t);for(var c=i;c.circle&&Math.abs(n-c.circle.x)<HP&&Math.abs(r-c.circle.cy)<HP;)i=c.P,u.unshift(c),LP(c),c=i;u.unshift(c),kP(c);for(var l=a;l.circle&&Math.abs(n-l.circle.x)<HP&&Math.abs(r-l.circle.cy)<HP;)a=l.N,u.push(l),LP(l),l=a;u.push(l),kP(l);var s,f=u.length;for(s=1;s<f;++s)l=u[s],c=u[s-1],OP(l.edge,c.site,l.site,o);c=u[0],(l=u[f-1]).edge=bP(c.site,l.site,null,o),SP(c),SP(l)}function NP(t){for(var e,n,r,o,i=t[0],a=t[1],u=WP._;u;)if((r=zP(u,a)-i)>HP)u=u.L;else{if(!((o=i-BP(u,a))>HP)){r>-HP?(e=u.P,n=u):o>-HP?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){UP[t.index]={site:t,halfedges:[]}}(t);var c=RP(t);if(WP.insert(e,c),e||n){if(e===n)return kP(e),n=RP(e.site),WP.insert(c,n),c.edge=n.edge=bP(e.site,c.site),SP(e),void SP(n);if(n){kP(e),kP(n);var l=e.site,s=l[0],f=l[1],p=t[0]-s,h=t[1]-f,d=n.site,y=d[0]-s,v=d[1]-f,m=2*(p*v-h*y),g=p*p+h*h,b=y*y+v*v,x=[(v*g-h*b)/m+s,(p*b-y*g)/m+f];OP(n.edge,l,d,x),c.edge=bP(l,t,null,x),n.edge=bP(t,d,null,x),SP(e),SP(n)}else c.edge=bP(e.site,c.site)}}function zP(t,e){var n=t.site,r=n[0],o=n[1],i=o-e;if(!i)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site)[0],c=n[1],l=c-e;if(!l)return u;var s=u-r,f=1/i-1/l,p=s/l;return f?(-p+Math.sqrt(p*p-2*f*(s*s/(-2*l)-c+l/2+o-i/2)))/f+r:(r+u)/2}function BP(t,e){var n=t.N;if(n)return zP(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var WP,UP,VP,FP,HP=1e-6,qP=1e-12;function GP(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function KP(t,e){return e[1]-t[1]||e[0]-t[0]}function $P(t,e){var n,r,o,i=t.sort(KP).pop();for(FP=[],UP=new Array(t.length),WP=new gP,VP=new gP;;)if(o=MP,i&&(!o||i[1]<o.y||i[1]===o.y&&i[0]<o.x))i[0]===n&&i[1]===r||(NP(i),n=i[0],r=i[1]),i=t.pop();else{if(!o)break;IP(o.arc)}if(function(){for(var t,e,n,r,o=0,i=UP.length;o<i;++o)if((t=UP[o])&&(r=(e=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(n=0;n<r;++n)a[n]=n,u[n]=jP(t,FP[e[n]]);for(a.sort((function(t,e){return u[e]-u[t]})),n=0;n<r;++n)u[n]=e[a[n]];for(n=0;n<r;++n)e[n]=u[n]}}(),e){var a=+e[0][0],u=+e[0][1],c=+e[1][0],l=+e[1][1];!function(t,e,n,r){for(var o,i=FP.length;i--;)wP(o=FP[i],t,e,n,r)&&_P(o,t,e,n,r)&&(Math.abs(o[0][0]-o[1][0])>HP||Math.abs(o[0][1]-o[1][1])>HP)||delete FP[i]}(a,u,c,l),function(t,e,n,r){var o,i,a,u,c,l,s,f,p,h,d,y,v=UP.length,m=!0;for(o=0;o<v;++o)if(i=UP[o]){for(a=i.site,u=(c=i.halfedges).length;u--;)FP[c[u]]||c.splice(u,1);for(u=0,l=c.length;u<l;)d=(h=AP(i,FP[c[u]]))[0],y=h[1],f=(s=PP(i,FP[c[++u%l]]))[0],p=s[1],(Math.abs(d-f)>HP||Math.abs(y-p)>HP)&&(c.splice(u,0,FP.push(xP(a,h,Math.abs(d-t)<HP&&r-y>HP?[t,Math.abs(f-t)<HP?p:r]:Math.abs(y-r)<HP&&n-d>HP?[Math.abs(p-r)<HP?f:n,r]:Math.abs(d-n)<HP&&y-e>HP?[n,Math.abs(f-n)<HP?p:e]:Math.abs(y-e)<HP&&d-t>HP?[Math.abs(p-e)<HP?f:t,e]:null))-1),++l);l&&(m=!1)}if(m){var g,b,x,O=1/0;for(o=0,m=null;o<v;++o)(i=UP[o])&&(x=(g=(a=i.site)[0]-t)*g+(b=a[1]-e)*b)<O&&(O=x,m=i);if(m){var _=[t,e],w=[t,r],j=[n,r],P=[n,e];m.halfedges.push(FP.push(xP(a=m.site,_,w))-1,FP.push(xP(a,w,j))-1,FP.push(xP(a,j,P))-1,FP.push(xP(a,P,_))-1)}}for(o=0;o<v;++o)(i=UP[o])&&(i.halfedges.length||delete UP[o])}(a,u,c,l)}this.edges=FP,this.cells=UP,WP=VP=FP=UP=null}function YP(t){return function(t){if(Array.isArray(t))return XP(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return XP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?XP(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function XP(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}$P.prototype={constructor:$P,polygons:function(){var t=this.edges;return this.cells.map((function(e){var n=e.halfedges.map((function(n){return PP(e,t[n])}));return n.data=e.site.data,n}))},triangles:function(){var t=[],e=this.edges;return this.cells.forEach((function(n,r){if(i=(o=n.halfedges).length)for(var o,i,a,u=n.site,c=-1,l=e[o[i-1]],s=l.left===u?l.right:l.left;++c<i;)a=s,s=(l=e[o[c]]).left===u?l.right:l.left,a&&s&&r<a.index&&r<s.index&&GP(u,a,s)<0&&t.push([u.data,a.data,s.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,e,n){for(var r,o,i=this,a=i._found||0,u=i.cells.length;!(o=i.cells[a]);)if(++a>=u)return null;var c=t-o.site[0],l=e-o.site[1],s=c*c+l*l;do{o=i.cells[r=a],a=null,o.halfedges.forEach((function(n){var r=i.edges[n],u=r.left;if(u!==o.site&&u||(u=r.right)){var c=t-u[0],l=e-u[1],f=c*c+l*l;f<s&&(s=f,a=u.index)}}))}while(null!==a);return i._found=r,null==n||s<=n*n?o.site:null}};var ZP=function(t,e,n){var r=[Math.min.apply(Math,YP(e.x)),Math.min.apply(Math,YP(e.y))],o=[Math.max.apply(Math,YP(e.x)),Math.max.apply(Math,YP(e.y))];return function(){var t=fP,e=pP,n=null;function r(r){return new $P(r.map((function(n,o){var i=[Math.round(t(n,o,r)/HP)*HP,Math.round(e(n,o,r)/HP)*HP];return i.index=o,i.data=n,i})),n)}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(e){return arguments.length?(t="function"==typeof e?e:sP(+e),r):t},r.y=function(t){return arguments.length?(e="function"==typeof t?t:sP(+t),r):e},r.extent=function(t){return arguments.length?(n=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(t){return arguments.length?(n=null==t?null:[[0,0],[+t[0],+t[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r}().x((function(e){return t.polar?function(t){return-1*n.x(void 0!==t._x1?t._x1:t._x)+Math.PI/2}(e):function(e){return t.horizontal?n.y(void 0!==e._y1?e._y1:e._y):n.x(void 0!==e._x1?e._x1:e._x)}(e)})).y((function(e){return function(e){return t.horizontal?n.x(void 0!==e._x1?e._x1:e._x):n.y(void 0!==e._y1?e._y1:e._y)}(e)})).extent([r,o])};function QP(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JP(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function tA(t,e){return tA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},tA(t,e)}function eA(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function nA(t){return nA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},nA(t)}var rA={width:450,height:300,padding:50},oA=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tA(t,e)}(a,t);var e,n,r,o,i=(r=a,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=nA(r);if(o){var n=nA(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return eA(this,t)});function a(){return QP(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var t=iA.animationWhitelist,e=iA.role,n=ft(this.props,rA,e);if(this.shouldAnimate())return this.animateComponent(n,t);var r=this.renderData(n),o=n.standalone?this.renderContainer(n.containerComponent,r):r;return ns(o,n)}}])&&JP(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(A().Component);oA.animationWhitelist=["data","domain","height","padding","samples","size","style","width"],oA.displayName="VictoryVoronoi",oA.role="voronoi",oA.defaultTransitions={onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(t){return t}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(t){return t}}},oA.defaultProps={containerComponent:A().createElement(Zs,null),dataComponent:A().createElement(lP,null),labelComponent:A().createElement(gp,null),groupComponent:A().createElement("g",{role:"presentation"}),samples:50,sortOrder:"ascending",standalone:!0,theme:Ip.grayscale},oA.getDomain=Ba,oA.getData=Pa,oA.getBaseProps=function(t){return function(t,e){var n=ft(t,e,"scatter"),r=Object.assign({},n,function(t){var e=t.theme&&t.theme.voronoi&&t.theme.voronoi.style?t.theme.voronoi.style:{},n=tt(t.style,e),r={x:ut(t,"x"),y:ut(t,"y")},o={x:Ba(t,"x"),y:Ba(t,"y")},i={x:Zi(t,"x").domain(o.x).range(t.horizontal?r.y:r.x),y:Zi(t,"y").domain(o.y).range(t.horizontal?r.x:r.y)},a=Pa(t);return{domain:o,data:a=(a=ba(a,o)).filter((function(t){return null!==t._x&&null!==t._y})),scale:i,style:n,polygons:ZP(t,r,i).polygons(a),origin:t.polar?t.origin||at(t):void 0}}(n)),o=r.data,i=r.domain,a=r.events,u=r.height,c=r.origin,l=r.padding,s=r.polar,f=r.polygons,p=r.scale,h=r.sharedEvents,d=r.standalone,y=r.style,v=r.theme,m=r.width,g=r.labels,b=r.name,x={parent:{style:y.parent,scale:p,domain:i,data:o,standalone:d,height:u,width:m,theme:v,origin:c,polar:s,padding:l,name:b}};return o.reduce((function(t,e,n){var i,u=null===(i=f[n])||void 0===i?void 0:i.filter((function(t){return"data"!==t})),l=ct(e.eventKey)?n:e.eventKey,s=X(r,e),d={x:s.x,y:s.y,datum:e,data:o,index:n,scale:p,polygon:u,origin:c,size:r.size,style:y.data};return t[l]={data:d},(null!=Xa(r,e,n)||g&&(a||h))&&(t[l].labels=eu(r,n)),t}),x)}(t,rA)},oA.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var iA=bd(oA)})(),o})()));
3
2
  //# sourceMappingURL=victory.min.js.map