impaktapps-design 0.2.993-graph.2 → 0.2.993-testTimer.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,8 +1,8 @@
1
- (function(Re,q){typeof exports=="object"&&typeof module!="undefined"?q(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],q):(Re=typeof globalThis!="undefined"?globalThis:Re||self,q(Re.MyLib={},Re.React,Re.ReactDOM))})(this,function(Re,q,cb){"use strict";function fb(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function hb(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Z=fb(q),G=hb(q),Po=fb(cb),pO=hb(cb),Il=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function gO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function tt(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Eo={exports:{}},mO="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",yO=mO,vO=yO;function db(){}function pb(){}pb.resetWarningCache=db;var bO=function(){function e(r,i,o,a,s,u){if(u!==vO){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:pb,resetWarningCache:db};return n.PropTypes=n,n};Eo.exports=bO();var B=Eo.exports,Ao={exports:{}};/*!
1
+ (function(Re,H){typeof exports=="object"&&typeof module!="undefined"?H(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],H):(Re=typeof globalThis!="undefined"?globalThis:Re||self,H(Re.MyLib={},Re.React,Re.ReactDOM))})(this,function(Re,H,lb){"use strict";function cb(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}function fb(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Q=cb(H),K=fb(H),Po=cb(lb),hO=fb(lb),Ll=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function dO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function et(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var Eo={exports:{}},pO="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gO=pO,mO=gO;function hb(){}function db(){}db.resetWarningCache=hb;var yO=function(){function e(r,i,o,a,s,u){if(u!==mO){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:db,resetWarningCache:hb};return n.PropTypes=n,n};Eo.exports=yO();var F=Eo.exports,Ao={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(!!o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var u in o)t.call(o,u)&&o[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ao);var Ge=Ao.exports,xO=["top","left","transform","className","children","innerRef"];function Xd(){return Xd=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},Xd.apply(this,arguments)}function wO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function je(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.transform,a=e.className,s=e.children,u=e.innerRef,l=wO(e,xO);return Z.default.createElement("g",Xd({ref:u,className:Ge("visx-group",a),transform:o||"translate("+i+", "+n+")"},l),s)}je.propTypes={top:B.number,left:B.number,transform:B.string,className:B.string,children:B.node,innerRef:B.oneOfType([B.string,B.func,B.object])};var _O=Object.freeze(Object.defineProperty({__proto__:null,Group:je},Symbol.toStringTag,{value:"Module"})),Kd=Math.PI,Qd=2*Kd,$i=1e-6,$O=Qd-$i;function Zd(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Si(){return new Zd}Zd.prototype=Si.prototype={constructor:Zd,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>$i)if(!(Math.abs(c*s-u*l)>$i)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-o,d=r-a,p=s*s+u*u,m=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),v=i*Math.tan((Kd-Math.acos((p+f-m)/(2*g*y)))/2),x=v/y,b=v/g;Math.abs(x-1)>$i&&(this._+="L"+(e+x*l)+","+(t+x*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>$i||Math.abs(this._y1-l)>$i)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Qd+Qd),f>$O?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>$i&&(this._+="A"+n+","+n+",0,"+ +(f>=Kd)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},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._}};function ye(e){return function(){return e}}var gb=Math.abs,gt=Math.atan2,Mi=Math.cos,SO=Math.max,Jd=Math.min,jn=Math.sin,No=Math.sqrt,mt=1e-12,Wr=Math.PI,zl=Wr/2,Hr=2*Wr;function MO(e){return e>1?0:e<-1?Wr:Math.acos(e)}function mb(e){return e>=1?zl:e<=-1?-zl:Math.asin(e)}function TO(e){return e.innerRadius}function kO(e){return e.outerRadius}function OO(e){return e.startAngle}function CO(e){return e.endAngle}function PO(e){return e&&e.padAngle}function EO(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,h=f*u-c*l;if(!(h*h<mt))return h=(c*(t-o)-f*(e-i))/h,[e+h*u,t+h*l]}function Fl(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/No(s*s+u*u),c=l*u,f=-l*s,h=e+c,d=t+f,p=n+c,m=r+f,g=(h+p)/2,y=(d+m)/2,v=p-h,x=m-d,b=v*v+x*x,_=i-o,w=h*m-p*d,$=(x<0?-1:1)*No(SO(0,_*_*b-w*w)),M=(w*x-v*$)/b,k=(-w*v-x*$)/b,S=(w*x+v*$)/b,T=(-w*v+x*$)/b,A=M-g,P=k-y,O=S-g,E=T-y;return A*A+P*P>O*O+E*E&&(M=S,k=T),{cx:M,cy:k,x01:-c,y01:-f,x11:M*(i/_-1),y11:k*(i/_-1)}}function yb(){var e=TO,t=kO,n=ye(0),r=null,i=OO,o=CO,a=PO,s=null;function u(){var l,c,f=+e.apply(this,arguments),h=+t.apply(this,arguments),d=i.apply(this,arguments)-zl,p=o.apply(this,arguments)-zl,m=gb(p-d),g=p>d;if(s||(s=l=Si()),h<f&&(c=h,h=f,f=c),!(h>mt))s.moveTo(0,0);else if(m>Hr-mt)s.moveTo(h*Mi(d),h*jn(d)),s.arc(0,0,h,d,p,!g),f>mt&&(s.moveTo(f*Mi(p),f*jn(p)),s.arc(0,0,f,p,d,g));else{var y=d,v=p,x=d,b=p,_=m,w=m,$=a.apply(this,arguments)/2,M=$>mt&&(r?+r.apply(this,arguments):No(f*f+h*h)),k=Jd(gb(h-f)/2,+n.apply(this,arguments)),S=k,T=k,A,P;if(M>mt){var O=mb(M/f*jn($)),E=mb(M/h*jn($));(_-=O*2)>mt?(O*=g?1:-1,x+=O,b-=O):(_=0,x=b=(d+p)/2),(w-=E*2)>mt?(E*=g?1:-1,y+=E,v-=E):(w=0,y=v=(d+p)/2)}var C=h*Mi(y),R=h*jn(y),D=f*Mi(b),L=f*jn(b);if(k>mt){var F=h*Mi(v),W=h*jn(v),U=f*Mi(x),te=f*jn(x),Q;if(m<Wr&&(Q=EO(C,R,U,te,F,W,D,L))){var J=C-Q[0],ue=R-Q[1],re=F-Q[0],oe=W-Q[1],I=1/jn(MO((J*re+ue*oe)/(No(J*J+ue*ue)*No(re*re+oe*oe)))/2),V=No(Q[0]*Q[0]+Q[1]*Q[1]);S=Jd(k,(f-V)/(I-1)),T=Jd(k,(h-V)/(I+1))}}w>mt?T>mt?(A=Fl(U,te,C,R,h,T,g),P=Fl(F,W,D,L,h,T,g),s.moveTo(A.cx+A.x01,A.cy+A.y01),T<k?s.arc(A.cx,A.cy,T,gt(A.y01,A.x01),gt(P.y01,P.x01),!g):(s.arc(A.cx,A.cy,T,gt(A.y01,A.x01),gt(A.y11,A.x11),!g),s.arc(0,0,h,gt(A.cy+A.y11,A.cx+A.x11),gt(P.cy+P.y11,P.cx+P.x11),!g),s.arc(P.cx,P.cy,T,gt(P.y11,P.x11),gt(P.y01,P.x01),!g))):(s.moveTo(C,R),s.arc(0,0,h,y,v,!g)):s.moveTo(C,R),!(f>mt)||!(_>mt)?s.lineTo(D,L):S>mt?(A=Fl(D,L,F,W,f,-S,g),P=Fl(C,R,U,te,f,-S,g),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<k?s.arc(A.cx,A.cy,S,gt(A.y01,A.x01),gt(P.y01,P.x01),!g):(s.arc(A.cx,A.cy,S,gt(A.y01,A.x01),gt(A.y11,A.x11),!g),s.arc(0,0,f,gt(A.cy+A.y11,A.cx+A.x11),gt(P.cy+P.y11,P.cx+P.x11),g),s.arc(P.cx,P.cy,S,gt(P.y11,P.x11),gt(P.y01,P.x01),!g))):s.arc(0,0,f,b,x,g)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Wr/2;return[Mi(c)*l,jn(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ye(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ye(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ye(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ye(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ye(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ye(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ye(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}function vb(e){this._context=e}vb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Bl(e){return new vb(e)}function e0(e){return e[0]}function t0(e){return e[1]}function n0(){var e=e0,t=t0,n=ye(!0),r=null,i=Bl,o=null;function a(s){var u,l=s.length,c,f=!1,h;for(r==null&&(o=i(h=Si())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(c,u,s),+t(c,u,s));if(h)return o=null,h+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:ye(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:ye(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:ye(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function bb(){var e=e0,t=null,n=ye(0),r=t0,i=ye(!0),o=null,a=Bl,s=null;function u(c){var f,h,d,p=c.length,m,g=!1,y,v=new Array(p),x=new Array(p);for(o==null&&(s=a(y=Si())),f=0;f<=p;++f){if(!(f<p&&i(m=c[f],f,c))===g)if(g=!g)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=f-1;d>=h;--d)s.point(v[d],x[d]);s.lineEnd(),s.areaEnd()}g&&(v[f]=+e(m,f,c),x[f]=+n(m,f,c),s.point(t?+t(m,f,c):v[f],r?+r(m,f,c):x[f]))}if(y)return s=null,y+""||null}function l(){return n0().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),t=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),u):e},u.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:ye(+c),u):t},u.y=function(c){return arguments.length?(n=typeof c=="function"?c:ye(+c),r=null,u):n},u.y0=function(c){return arguments.length?(n=typeof c=="function"?c:ye(+c),u):n},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ye(+c),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ye(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function AO(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function NO(e){return e}function xb(){var e=NO,t=AO,n=null,r=ye(0),i=ye(Hr),o=ye(0);function a(s){var u,l=s.length,c,f,h=0,d=new Array(l),p=new Array(l),m=+r.apply(this,arguments),g=Math.min(Hr,Math.max(-Hr,i.apply(this,arguments)-m)),y,v=Math.min(Math.abs(g)/l,o.apply(this,arguments)),x=v*(g<0?-1:1),b;for(u=0;u<l;++u)(b=p[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(_,w){return t(p[_],p[w])}):n!=null&&d.sort(function(_,w){return n(s[_],s[w])}),u=0,f=h?(g-l*x)/h:0;u<l;++u,m=y)c=d[u],b=p[c],y=m+(b>0?b*f:0)+x,p[c]={data:s[c],index:u,value:b,startAngle:m,endAngle:y,padAngle:v};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:ye(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ye(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ye(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ye(+s),a):o},a}var wb=r0(Bl);function _b(e){this._curve=e}_b.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))}};function r0(e){function t(n){return new _b(e(n))}return t._curve=e,t}function is(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(r0(n)):t()._curve},e}function $b(){return is(n0().curve(wb))}function Sb(){var e=bb().curve(wb),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=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 is(n())},delete e.lineX0,e.lineEndAngle=function(){return is(r())},delete e.lineX1,e.lineInnerRadius=function(){return is(i())},delete e.lineY0,e.lineOuterRadius=function(){return is(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(r0(a)):t()._curve},e}function os(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var i0=Array.prototype.slice;function RO(e){return e.source}function LO(e){return e.target}function o0(e){var t=RO,n=LO,r=e0,i=t0,o=null;function a(){var s,u=i0.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=Si()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),s)return o=null,s+""||null}return a.source=function(s){return arguments.length?(t=s,a):t},a.target=function(s){return arguments.length?(n=s,a):n},a.x=function(s){return arguments.length?(r=typeof s=="function"?s:ye(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:ye(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function DO(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function IO(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function zO(e,t,n,r,i){var o=os(t,n),a=os(t,n=(n+i)/2),s=os(r,n),u=os(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function FO(){return o0(DO)}function BO(){return o0(IO)}function jO(){var e=o0(zO);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var a0={draw:function(e,t){var n=Math.sqrt(t/Wr);e.moveTo(n,0),e.arc(0,0,n,0,Hr)}},Mb={draw:function(e,t){var n=Math.sqrt(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()}},Tb=Math.sqrt(1/3),WO=Tb*2,kb={draw:function(e,t){var n=Math.sqrt(t/WO),r=n*Tb;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},HO=.8908130915292852,Ob=Math.sin(Wr/10)/Math.sin(7*Wr/10),qO=Math.sin(Hr/10)*Ob,UO=-Math.cos(Hr/10)*Ob,Cb={draw:function(e,t){var n=Math.sqrt(t*HO),r=qO*n,i=UO*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=Hr*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Pb={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},s0=Math.sqrt(3),Eb={draw:function(e,t){var n=-Math.sqrt(t/(s0*3));e.moveTo(0,n*2),e.lineTo(-s0*n,-n),e.lineTo(s0*n,-n),e.closePath()}},hn=-.5,dn=Math.sqrt(3)/2,u0=1/Math.sqrt(12),VO=(u0/2+1)*3,Ab={draw:function(e,t){var n=Math.sqrt(t/VO),r=n/2,i=n*u0,o=r,a=n*u0+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(hn*r-dn*i,dn*r+hn*i),e.lineTo(hn*o-dn*a,dn*o+hn*a),e.lineTo(hn*s-dn*u,dn*s+hn*u),e.lineTo(hn*r+dn*i,hn*i-dn*r),e.lineTo(hn*o+dn*a,hn*a-dn*o),e.lineTo(hn*s+dn*u,hn*u-dn*s),e.closePath()}},YO=[a0,Mb,kb,Pb,Cb,Eb,Ab];function GO(){var e=ye(a0),t=ye(64),n=null;function r(){var i;if(n||(n=i=Si()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:ye(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:ye(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function qr(){}function jl(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 Wl(e){this._context=e}Wl.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:jl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:jl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XO(e){return new Wl(e)}function Nb(e){this._context=e}Nb.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:jl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function KO(e){return new Nb(e)}function Rb(e){this._context=e}Rb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var 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:jl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function QO(e){return new Rb(e)}function Lb(e,t){this._basis=new Wl(e),this._beta=t}Lb.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=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ZO=function e(t){function n(r){return t===1?new Wl(r):new Lb(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Hl(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 l0(e,t){this._context=e,this._k=(1-t)/6}l0.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:Hl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Hl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var JO=function e(t){function n(r){return new l0(r,t)}return n.tension=function(r){return e(+r)},n}(0);function c0(e,t){this._context=e,this._k=(1-t)/6}c0.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Hl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eC=function e(t){function n(r){return new c0(r,t)}return n.tension=function(r){return e(+r)},n}(0);function f0(e,t){this._context=e,this._k=(1-t)/6}f0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:Hl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var tC=function e(t){function n(r){return new f0(r,t)}return n.tension=function(r){return e(+r)},n}(0);function h0(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>mt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>mt){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Db(e,t){this._context=e,this._alpha=t}Db.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var 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:h0(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var nC=function e(t){function n(r){return t?new Db(r,t):new l0(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Ib(e,t){this._context=e,this._alpha=t}Ib.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:h0(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var rC=function e(t){function n(r){return t?new Ib(r,t):new c0(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zb(e,t){this._context=e,this._alpha=t}zb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:h0(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var iC=function e(t){function n(r){return t?new zb(r,t):new f0(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Fb(e){this._context=e}Fb.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function oC(e){return new Fb(e)}function Bb(e){return e<0?-1:1}function jb(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Bb(o)+Bb(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Wb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function d0(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function ql(e){this._context=e}ql.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:d0(this,this._t0,Wb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,d0(this,Wb(this,n=jb(this,e,t)),n);break;default:d0(this,this._t0,n=jb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Hb(e){this._context=new qb(e)}(Hb.prototype=Object.create(ql.prototype)).point=function(e,t){ql.prototype.point.call(this,t,e)};function qb(e){this._context=e}qb.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,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function aC(e){return new ql(e)}function sC(e){return new Hb(e)}function Ub(e){this._context=e}Ub.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]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Vb(e),i=Vb(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Vb(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function uC(e){return new Ub(e)}function Ul(e,t){this._context=e,this._t=t}Ul.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function lC(e){return new Ul(e,.5)}function cC(e){return new Ul(e,0)}function fC(e){return new Ul(e,1)}function Ti(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ki(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function hC(e,t){return e[t]}function p0(){var e=ye([]),t=ki,n=Ti,r=hC;function i(o){var a=e.apply(this,arguments),s,u=o.length,l=a.length,c=new Array(l),f;for(s=0;s<l;++s){for(var h=a[s],d=c[s]=new Array(u),p=0,m;p<u;++p)d[p]=m=[0,+r(o[p],h,p,o)],m.data=o[p];d.key=h}for(s=0,f=t(c);s<l;++s)c[f[s]].index=s;return n(c,f),c}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ye(i0.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:ye(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?ki:typeof o=="function"?o:ye(i0.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?Ti:o,i):n},i}function Yb(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Ti(e,t)}}function Gb(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Xb(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ti(e,t)}}function Kb(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],f=c[r][1]||0,h=c[r-1][1]||0,d=(f-h)/2,p=0;p<s;++p){var m=e[t[p]],g=m[r][1]||0,y=m[r-1][1]||0;d+=g-y}u+=f,l+=d*f}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,Ti(e,t)}}function Qb(e){var t=e.map(dC);return ki(e).sort(function(n,r){return t[n]-t[r]})}function dC(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function g0(e){var t=e.map(Zb);return ki(e).sort(function(n,r){return t[n]-t[r]})}function Zb(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function Jb(e){return g0(e).reverse()}function ex(e){var t=e.length,n,r,i=e.map(Zb),o=Qb(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function tx(e){return ki(e).reverse()}var pC=Object.freeze(Object.defineProperty({__proto__:null,arc:yb,area:bb,line:n0,pie:xb,areaRadial:Sb,radialArea:Sb,lineRadial:$b,radialLine:$b,pointRadial:os,linkHorizontal:FO,linkVertical:BO,linkRadial:jO,symbol:GO,symbols:YO,symbolCircle:a0,symbolCross:Mb,symbolDiamond:kb,symbolSquare:Pb,symbolStar:Cb,symbolTriangle:Eb,symbolWye:Ab,curveBasisClosed:KO,curveBasisOpen:QO,curveBasis:XO,curveBundle:ZO,curveCardinalClosed:eC,curveCardinalOpen:tC,curveCardinal:JO,curveCatmullRomClosed:rC,curveCatmullRomOpen:iC,curveCatmullRom:nC,curveLinearClosed:oC,curveLinear:Bl,curveMonotoneX:aC,curveMonotoneY:sC,curveNatural:uC,curveStep:lC,curveStepAfter:fC,curveStepBefore:cC,stack:p0,stackOffsetExpand:Yb,stackOffsetDiverging:Gb,stackOffsetNone:Ti,stackOffsetSilhouette:Xb,stackOffsetWiggle:Kb,stackOrderAppearance:Qb,stackOrderAscending:g0,stackOrderDescending:Jb,stackOrderInsideOut:ex,stackOrderNone:ki,stackOrderReverse:tx},Symbol.toStringTag,{value:"Module"}));function pn(e,t){e(t)}var nx={ascending:g0,descending:Jb,insideout:ex,none:ki,reverse:tx};function rx(e){return e&&nx[e]||nx.none}var ix={expand:Yb,diverging:Gb,none:Ti,silhouette:Xb,wiggle:Kb};function ox(e){return e&&ix[e]||ix.none}function gC(e){var t=e===void 0?{}:e,n=t.innerRadius,r=t.outerRadius,i=t.cornerRadius,o=t.startAngle,a=t.endAngle,s=t.padAngle,u=t.padRadius,l=yb();return n!=null&&pn(l.innerRadius,n),r!=null&&pn(l.outerRadius,r),i!=null&&pn(l.cornerRadius,i),o!=null&&pn(l.startAngle,o),a!=null&&pn(l.endAngle,a),s!=null&&pn(l.padAngle,s),u!=null&&pn(l.padRadius,u),l}function mC(e){var t=e===void 0?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,a=t.sort,s=t.sortValues,u=xb();return(a===null||a!=null)&&u.sort(a),(s===null||s!=null)&&u.sortValues(s),o!=null&&u.value(o),i!=null&&pn(u.padAngle,i),n!=null&&pn(u.startAngle,n),r!=null&&pn(u.endAngle,r),u}var yC=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function m0(){return m0=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},m0.apply(this,arguments)}function vC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ax(e){var t=e.className,n=e.top,r=e.left,i=e.data,o=i===void 0?[]:i,a=e.centroid,s=e.innerRadius,u=s===void 0?0:s,l=e.outerRadius,c=e.cornerRadius,f=e.startAngle,h=e.endAngle,d=e.padAngle,p=e.padRadius,m=e.pieSort,g=e.pieSortValues,y=e.pieValue,v=e.children,x=e.fill,b=x===void 0?"":x,_=vC(e,yC),w=gC({innerRadius:u,outerRadius:l,cornerRadius:c,padRadius:p}),$=mC({startAngle:f,endAngle:h,padAngle:d,value:y,sort:m,sortValues:g}),M=$(o);return v?Z.default.createElement(Z.default.Fragment,null,v({arcs:M,path:w,pie:$})):Z.default.createElement(je,{className:"visx-pie-arcs-group",top:n,left:r},M.map(function(k,S){return Z.default.createElement("g",{key:"pie-arc-"+S},Z.default.createElement("path",m0({className:Ge("visx-pie-arc",t),d:w(k)||"",fill:b==null||typeof b=="string"?b:b(k)},_)),a==null?void 0:a(w.centroid(k),k))}))}var bC=["from","to","fill","className","innerRef"];function y0(){return y0=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},y0.apply(this,arguments)}function xC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function sx(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,i=r===void 0?{x:1,y:1}:r,o=e.fill,a=o===void 0?"transparent":o,s=e.className,u=e.innerRef,l=xC(e,bC),c=n.x===i.x||n.y===i.y;return Z.default.createElement("line",y0({ref:u,className:Ge("visx-line",s),x1:n.x,y1:n.y,x2:i.x,y2:i.y,fill:a,shapeRendering:c?"crispEdges":"auto"},l))}var wC=["className","innerRef"];function v0(){return v0=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},v0.apply(this,arguments)}function _C(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Vl(e){var t=e.className,n=e.innerRef,r=_C(e,wC);return Z.default.createElement("rect",v0({ref:n,className:Ge("visx-bar",t)},r))}function Yl(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var $C=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function b0(){return b0=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},b0.apply(this,arguments)}function SC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function MC(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.x0,a=e.x0Scale,s=e.x1Scale,u=e.yScale,l=e.color,c=e.keys,f=e.height,h=e.children,d=SC(e,$C),p=Yl(s),m=t.map(function(g,y){return{index:y,x0:a(o(g)),bars:c.map(function(v,x){var b=g[v];return{index:x,key:v,value:b,width:p,x:s(v)||0,y:u(b)||0,color:l(v,x),height:f-(u(b)||0)}})}});return h?Z.default.createElement(Z.default.Fragment,null,h(m)):Z.default.createElement(je,{className:Ge("visx-bar-group",n),top:r,left:i},m.map(function(g){return Z.default.createElement(je,{key:"bar-group-"+g.index+"-"+g.x0,left:g.x0},g.bars.map(function(y){return Z.default.createElement(Vl,b0({key:"bar-group-bar-"+g.index+"-"+y.index+"-"+y.value+"-"+y.key,x:y.x,y:y.y,width:y.width,height:y.height,fill:y.color},d))}))}))}var TC=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function x0(){return x0=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},x0.apply(this,arguments)}function kC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function OC(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.x,a=o===void 0?function(){return 0}:o,s=e.y0,u=e.y0Scale,l=e.y1Scale,c=e.xScale,f=e.color,h=e.keys;e.width;var d=e.children,p=kC(e,TC),m=Yl(l),g=t.map(function(y,v){return{index:v,y0:u(s(y))||0,bars:h.map(function(x,b){var _=y[x];return{index:b,key:x,value:_,height:m,x:a(_)||0,y:l(x)||0,color:f(x,b),width:c(_)||0}})}});return d?Z.default.createElement(Z.default.Fragment,null,d(g)):Z.default.createElement(je,{className:Ge("visx-bar-group-horizontal",n),top:r,left:i},g.map(function(y){return Z.default.createElement(je,{key:"bar-group-"+y.index+"-"+y.y0,top:y.y0},y.bars.map(function(v){return Z.default.createElement(Vl,x0({key:"bar-group-bar-"+y.index+"-"+v.index+"-"+v.value+"-"+v.key,x:v.x,y:v.y,width:v.width,height:v.height,fill:v.color},p))}))}))}function ux(e){return e==null?void 0:e[0]}function lx(e){return e==null?void 0:e[1]}var CC=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function w0(){return w0=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},w0.apply(this,arguments)}function PC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function EC(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.x,a=e.y0,s=a===void 0?ux:a,u=e.y1,l=u===void 0?lx:u,c=e.xScale,f=e.yScale,h=e.color,d=e.keys,p=e.value,m=e.order,g=e.offset,y=e.children,v=PC(e,CC),x=p0();d&&x.keys(d),p&&pn(x.value,p),m&&x.order(rx(m)),g&&x.offset(ox(g));var b=x(t),_=Yl(c),w=b.map(function($,M){var k=$.key;return{index:M,key:k,bars:$.map(function(S,T){var A=(f(s(S))||0)-(f(l(S))||0),P=f(l(S)),O="bandwidth"in c?c(o(S.data)):Math.max((c(o(S.data))||0)-_/2);return{bar:S,key:k,index:T,height:A,width:_,x:O||0,y:P||0,color:h($.key,T)}})}});return y?Z.default.createElement(Z.default.Fragment,null,y(w)):Z.default.createElement(je,{className:Ge("visx-bar-stack",n),top:r,left:i},w.map(function($){return $.bars.map(function(M){return Z.default.createElement(Vl,w0({key:"bar-stack-"+$.index+"-"+M.index,x:M.x,y:M.y,height:M.height,width:M.width,fill:M.color},v))})}))}var AC=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function _0(){return _0=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},_0.apply(this,arguments)}function NC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function RC(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.y,a=e.x0,s=a===void 0?ux:a,u=e.x1,l=u===void 0?lx:u,c=e.xScale,f=e.yScale,h=e.color,d=e.keys,p=e.value,m=e.order,g=e.offset,y=e.children,v=NC(e,AC),x=p0();d&&x.keys(d),p&&pn(x.value,p),m&&x.order(rx(m)),g&&x.offset(ox(g));var b=x(t),_=Yl(f),w=b.map(function($,M){var k=$.key;return{index:M,key:k,bars:$.map(function(S,T){var A=(c(l(S))||0)-(c(s(S))||0),P=c(s(S)),O="bandwidth"in f?f(o(S.data)):Math.max((f(o(S.data))||0)-A/2);return{bar:S,key:k,index:T,height:_,width:A,x:P||0,y:O||0,color:h($.key,T)}})}});return y?Z.default.createElement(Z.default.Fragment,null,y(w)):Z.default.createElement(je,{className:Ge("visx-bar-stack-horizontal",n),top:r,left:i},w.map(function($){return $.bars.map(function(M){return Z.default.createElement(Vl,_0({key:"bar-stack-"+$.index+"-"+M.index,x:M.x,y:M.y,height:M.height,width:M.width,fill:M.color},v))})}))}var Gl={exports:{}},Xl={};/**
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var o=arguments[i];if(!!o){var a=typeof o;if(a==="string"||a==="number")r.push(o);else if(Array.isArray(o)){if(o.length){var s=n.apply(null,o);s&&r.push(s)}}else if(a==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){r.push(o.toString());continue}for(var u in o)t.call(o,u)&&o[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ao);var Ye=Ao.exports,vO=["top","left","transform","className","children","innerRef"];function Xd(){return Xd=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},Xd.apply(this,arguments)}function bO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function je(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.transform,a=e.className,s=e.children,u=e.innerRef,l=bO(e,vO);return Q.default.createElement("g",Xd({ref:u,className:Ye("visx-group",a),transform:o||"translate("+i+", "+n+")"},l),s)}je.propTypes={top:F.number,left:F.number,transform:F.string,className:F.string,children:F.node,innerRef:F.oneOfType([F.string,F.func,F.object])};var xO=Object.freeze(Object.defineProperty({__proto__:null,Group:je},Symbol.toStringTag,{value:"Module"})),Kd=Math.PI,Zd=2*Kd,$i=1e-6,wO=Zd-$i;function Qd(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Si(){return new Qd}Qd.prototype=Si.prototype={constructor:Qd,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>$i)if(!(Math.abs(c*s-u*l)>$i)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-o,d=r-a,p=s*s+u*u,m=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),v=i*Math.tan((Kd-Math.acos((p+f-m)/(2*g*y)))/2),x=v/y,b=v/g;Math.abs(x-1)>$i&&(this._+="L"+(e+x*l)+","+(t+x*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>$i||Math.abs(this._y1-l)>$i)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Zd+Zd),f>wO?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>$i&&(this._+="A"+n+","+n+",0,"+ +(f>=Kd)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},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._}};function ye(e){return function(){return e}}var pb=Math.abs,gt=Math.atan2,Mi=Math.cos,_O=Math.max,Jd=Math.min,jn=Math.sin,No=Math.sqrt,mt=1e-12,Wr=Math.PI,Il=Wr/2,Hr=2*Wr;function $O(e){return e>1?0:e<-1?Wr:Math.acos(e)}function gb(e){return e>=1?Il:e<=-1?-Il:Math.asin(e)}function SO(e){return e.innerRadius}function MO(e){return e.outerRadius}function TO(e){return e.startAngle}function kO(e){return e.endAngle}function OO(e){return e&&e.padAngle}function CO(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,h=f*u-c*l;if(!(h*h<mt))return h=(c*(t-o)-f*(e-i))/h,[e+h*u,t+h*l]}function zl(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/No(s*s+u*u),c=l*u,f=-l*s,h=e+c,d=t+f,p=n+c,m=r+f,g=(h+p)/2,y=(d+m)/2,v=p-h,x=m-d,b=v*v+x*x,_=i-o,w=h*m-p*d,$=(x<0?-1:1)*No(_O(0,_*_*b-w*w)),T=(w*x-v*$)/b,k=(-w*v-x*$)/b,S=(w*x+v*$)/b,M=(-w*v+x*$)/b,A=T-g,E=k-y,O=S-g,P=M-y;return A*A+E*E>O*O+P*P&&(T=S,k=M),{cx:T,cy:k,x01:-c,y01:-f,x11:T*(i/_-1),y11:k*(i/_-1)}}function mb(){var e=SO,t=MO,n=ye(0),r=null,i=TO,o=kO,a=OO,s=null;function u(){var l,c,f=+e.apply(this,arguments),h=+t.apply(this,arguments),d=i.apply(this,arguments)-Il,p=o.apply(this,arguments)-Il,m=pb(p-d),g=p>d;if(s||(s=l=Si()),h<f&&(c=h,h=f,f=c),!(h>mt))s.moveTo(0,0);else if(m>Hr-mt)s.moveTo(h*Mi(d),h*jn(d)),s.arc(0,0,h,d,p,!g),f>mt&&(s.moveTo(f*Mi(p),f*jn(p)),s.arc(0,0,f,p,d,g));else{var y=d,v=p,x=d,b=p,_=m,w=m,$=a.apply(this,arguments)/2,T=$>mt&&(r?+r.apply(this,arguments):No(f*f+h*h)),k=Jd(pb(h-f)/2,+n.apply(this,arguments)),S=k,M=k,A,E;if(T>mt){var O=gb(T/f*jn($)),P=gb(T/h*jn($));(_-=O*2)>mt?(O*=g?1:-1,x+=O,b-=O):(_=0,x=b=(d+p)/2),(w-=P*2)>mt?(P*=g?1:-1,y+=P,v-=P):(w=0,y=v=(d+p)/2)}var C=h*Mi(y),N=h*jn(y),D=f*Mi(b),I=f*jn(b);if(k>mt){var B=h*Mi(v),U=h*jn(v),Y=f*Mi(x),J=f*jn(x),q;if(m<Wr&&(q=CO(C,N,Y,J,B,U,D,I))){var j=C-q[0],V=N-q[1],G=B-q[0],ne=U-q[1],L=1/jn($O((j*G+V*ne)/(No(j*j+V*V)*No(G*G+ne*ne)))/2),W=No(q[0]*q[0]+q[1]*q[1]);S=Jd(k,(f-W)/(L-1)),M=Jd(k,(h-W)/(L+1))}}w>mt?M>mt?(A=zl(Y,J,C,N,h,M,g),E=zl(B,U,D,I,h,M,g),s.moveTo(A.cx+A.x01,A.cy+A.y01),M<k?s.arc(A.cx,A.cy,M,gt(A.y01,A.x01),gt(E.y01,E.x01),!g):(s.arc(A.cx,A.cy,M,gt(A.y01,A.x01),gt(A.y11,A.x11),!g),s.arc(0,0,h,gt(A.cy+A.y11,A.cx+A.x11),gt(E.cy+E.y11,E.cx+E.x11),!g),s.arc(E.cx,E.cy,M,gt(E.y11,E.x11),gt(E.y01,E.x01),!g))):(s.moveTo(C,N),s.arc(0,0,h,y,v,!g)):s.moveTo(C,N),!(f>mt)||!(_>mt)?s.lineTo(D,I):S>mt?(A=zl(D,I,B,U,f,-S,g),E=zl(C,N,Y,J,f,-S,g),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<k?s.arc(A.cx,A.cy,S,gt(A.y01,A.x01),gt(E.y01,E.x01),!g):(s.arc(A.cx,A.cy,S,gt(A.y01,A.x01),gt(A.y11,A.x11),!g),s.arc(0,0,f,gt(A.cy+A.y11,A.cx+A.x11),gt(E.cy+E.y11,E.cx+E.x11),g),s.arc(E.cx,E.cy,S,gt(E.y11,E.x11),gt(E.y01,E.x01),!g))):s.arc(0,0,f,b,x,g)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Wr/2;return[Mi(c)*l,jn(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ye(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ye(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ye(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ye(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ye(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ye(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ye(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}function yb(e){this._context=e}yb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Fl(e){return new yb(e)}function e0(e){return e[0]}function t0(e){return e[1]}function n0(){var e=e0,t=t0,n=ye(!0),r=null,i=Fl,o=null;function a(s){var u,l=s.length,c,f=!1,h;for(r==null&&(o=i(h=Si())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(c,u,s),+t(c,u,s));if(h)return o=null,h+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:ye(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:ye(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:ye(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function vb(){var e=e0,t=null,n=ye(0),r=t0,i=ye(!0),o=null,a=Fl,s=null;function u(c){var f,h,d,p=c.length,m,g=!1,y,v=new Array(p),x=new Array(p);for(o==null&&(s=a(y=Si())),f=0;f<=p;++f){if(!(f<p&&i(m=c[f],f,c))===g)if(g=!g)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=f-1;d>=h;--d)s.point(v[d],x[d]);s.lineEnd(),s.areaEnd()}g&&(v[f]=+e(m,f,c),x[f]=+n(m,f,c),s.point(t?+t(m,f,c):v[f],r?+r(m,f,c):x[f]))}if(y)return s=null,y+""||null}function l(){return n0().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),t=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ye(+c),u):e},u.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:ye(+c),u):t},u.y=function(c){return arguments.length?(n=typeof c=="function"?c:ye(+c),r=null,u):n},u.y0=function(c){return arguments.length?(n=typeof c=="function"?c:ye(+c),u):n},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ye(+c),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ye(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function PO(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function EO(e){return e}function bb(){var e=EO,t=PO,n=null,r=ye(0),i=ye(Hr),o=ye(0);function a(s){var u,l=s.length,c,f,h=0,d=new Array(l),p=new Array(l),m=+r.apply(this,arguments),g=Math.min(Hr,Math.max(-Hr,i.apply(this,arguments)-m)),y,v=Math.min(Math.abs(g)/l,o.apply(this,arguments)),x=v*(g<0?-1:1),b;for(u=0;u<l;++u)(b=p[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(_,w){return t(p[_],p[w])}):n!=null&&d.sort(function(_,w){return n(s[_],s[w])}),u=0,f=h?(g-l*x)/h:0;u<l;++u,m=y)c=d[u],b=p[c],y=m+(b>0?b*f:0)+x,p[c]={data:s[c],index:u,value:b,startAngle:m,endAngle:y,padAngle:v};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:ye(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ye(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ye(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ye(+s),a):o},a}var xb=r0(Fl);function wb(e){this._curve=e}wb.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))}};function r0(e){function t(n){return new wb(e(n))}return t._curve=e,t}function rs(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(r0(n)):t()._curve},e}function _b(){return rs(n0().curve(xb))}function $b(){var e=vb().curve(xb),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=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 rs(n())},delete e.lineX0,e.lineEndAngle=function(){return rs(r())},delete e.lineX1,e.lineInnerRadius=function(){return rs(i())},delete e.lineY0,e.lineOuterRadius=function(){return rs(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(r0(a)):t()._curve},e}function is(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var i0=Array.prototype.slice;function AO(e){return e.source}function NO(e){return e.target}function o0(e){var t=AO,n=NO,r=e0,i=t0,o=null;function a(){var s,u=i0.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=Si()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),s)return o=null,s+""||null}return a.source=function(s){return arguments.length?(t=s,a):t},a.target=function(s){return arguments.length?(n=s,a):n},a.x=function(s){return arguments.length?(r=typeof s=="function"?s:ye(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:ye(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function RO(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function DO(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function LO(e,t,n,r,i){var o=is(t,n),a=is(t,n=(n+i)/2),s=is(r,n),u=is(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function IO(){return o0(RO)}function zO(){return o0(DO)}function FO(){var e=o0(LO);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var a0={draw:function(e,t){var n=Math.sqrt(t/Wr);e.moveTo(n,0),e.arc(0,0,n,0,Hr)}},Sb={draw:function(e,t){var n=Math.sqrt(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()}},Mb=Math.sqrt(1/3),BO=Mb*2,Tb={draw:function(e,t){var n=Math.sqrt(t/BO),r=n*Mb;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},jO=.8908130915292852,kb=Math.sin(Wr/10)/Math.sin(7*Wr/10),WO=Math.sin(Hr/10)*kb,HO=-Math.cos(Hr/10)*kb,Ob={draw:function(e,t){var n=Math.sqrt(t*jO),r=WO*n,i=HO*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=Hr*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},Cb={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},s0=Math.sqrt(3),Pb={draw:function(e,t){var n=-Math.sqrt(t/(s0*3));e.moveTo(0,n*2),e.lineTo(-s0*n,-n),e.lineTo(s0*n,-n),e.closePath()}},hn=-.5,dn=Math.sqrt(3)/2,u0=1/Math.sqrt(12),qO=(u0/2+1)*3,Eb={draw:function(e,t){var n=Math.sqrt(t/qO),r=n/2,i=n*u0,o=r,a=n*u0+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(hn*r-dn*i,dn*r+hn*i),e.lineTo(hn*o-dn*a,dn*o+hn*a),e.lineTo(hn*s-dn*u,dn*s+hn*u),e.lineTo(hn*r+dn*i,hn*i-dn*r),e.lineTo(hn*o+dn*a,hn*a-dn*o),e.lineTo(hn*s+dn*u,hn*u-dn*s),e.closePath()}},UO=[a0,Sb,Tb,Cb,Ob,Pb,Eb];function VO(){var e=ye(a0),t=ye(64),n=null;function r(){var i;if(n||(n=i=Si()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:ye(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:ye(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function qr(){}function Bl(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 jl(e){this._context=e}jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Bl(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Bl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function YO(e){return new jl(e)}function Ab(e){this._context=e}Ab.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Bl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function GO(e){return new Ab(e)}function Nb(e){this._context=e}Nb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var 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:Bl(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function XO(e){return new Nb(e)}function Rb(e,t){this._basis=new jl(e),this._beta=t}Rb.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=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var KO=function e(t){function n(r){return t===1?new jl(r):new Rb(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Wl(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 l0(e,t){this._context=e,this._k=(1-t)/6}l0.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:Wl(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Wl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ZO=function e(t){function n(r){return new l0(r,t)}return n.tension=function(r){return e(+r)},n}(0);function c0(e,t){this._context=e,this._k=(1-t)/6}c0.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Wl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var QO=function e(t){function n(r){return new c0(r,t)}return n.tension=function(r){return e(+r)},n}(0);function f0(e,t){this._context=e,this._k=(1-t)/6}f0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:Wl(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var JO=function e(t){function n(r){return new f0(r,t)}return n.tension=function(r){return e(+r)},n}(0);function h0(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>mt){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>mt){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function Db(e,t){this._context=e,this._alpha=t}Db.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var 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:h0(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var eC=function e(t){function n(r){return t?new Db(r,t):new l0(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Lb(e,t){this._context=e,this._alpha=t}Lb.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:h0(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var tC=function e(t){function n(r){return t?new Lb(r,t):new c0(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Ib(e,t){this._context=e,this._alpha=t}Ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:h0(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var nC=function e(t){function n(r){return t?new Ib(r,t):new f0(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function zb(e){this._context=e}zb.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function rC(e){return new zb(e)}function Fb(e){return e<0?-1:1}function Bb(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Fb(o)+Fb(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function jb(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function d0(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Hl(e){this._context=e}Hl.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:d0(this,this._t0,jb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,d0(this,jb(this,n=Bb(this,e,t)),n);break;default:d0(this,this._t0,n=Bb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Wb(e){this._context=new Hb(e)}(Wb.prototype=Object.create(Hl.prototype)).point=function(e,t){Hl.prototype.point.call(this,t,e)};function Hb(e){this._context=e}Hb.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,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function iC(e){return new Hl(e)}function oC(e){return new Wb(e)}function qb(e){this._context=e}qb.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]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Ub(e),i=Ub(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Ub(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function aC(e){return new qb(e)}function ql(e,t){this._context=e,this._t=t}ql.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function sC(e){return new ql(e,.5)}function uC(e){return new ql(e,0)}function lC(e){return new ql(e,1)}function Ti(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ki(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function cC(e,t){return e[t]}function p0(){var e=ye([]),t=ki,n=Ti,r=cC;function i(o){var a=e.apply(this,arguments),s,u=o.length,l=a.length,c=new Array(l),f;for(s=0;s<l;++s){for(var h=a[s],d=c[s]=new Array(u),p=0,m;p<u;++p)d[p]=m=[0,+r(o[p],h,p,o)],m.data=o[p];d.key=h}for(s=0,f=t(c);s<l;++s)c[f[s]].index=s;return n(c,f),c}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ye(i0.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:ye(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?ki:typeof o=="function"?o:ye(i0.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?Ti:o,i):n},i}function Vb(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Ti(e,t)}}function Yb(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Gb(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ti(e,t)}}function Xb(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],f=c[r][1]||0,h=c[r-1][1]||0,d=(f-h)/2,p=0;p<s;++p){var m=e[t[p]],g=m[r][1]||0,y=m[r-1][1]||0;d+=g-y}u+=f,l+=d*f}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,Ti(e,t)}}function Kb(e){var t=e.map(fC);return ki(e).sort(function(n,r){return t[n]-t[r]})}function fC(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function g0(e){var t=e.map(Zb);return ki(e).sort(function(n,r){return t[n]-t[r]})}function Zb(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function Qb(e){return g0(e).reverse()}function Jb(e){var t=e.length,n,r,i=e.map(Zb),o=Kb(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function ex(e){return ki(e).reverse()}var hC=Object.freeze(Object.defineProperty({__proto__:null,arc:mb,area:vb,line:n0,pie:bb,areaRadial:$b,radialArea:$b,lineRadial:_b,radialLine:_b,pointRadial:is,linkHorizontal:IO,linkVertical:zO,linkRadial:FO,symbol:VO,symbols:UO,symbolCircle:a0,symbolCross:Sb,symbolDiamond:Tb,symbolSquare:Cb,symbolStar:Ob,symbolTriangle:Pb,symbolWye:Eb,curveBasisClosed:GO,curveBasisOpen:XO,curveBasis:YO,curveBundle:KO,curveCardinalClosed:QO,curveCardinalOpen:JO,curveCardinal:ZO,curveCatmullRomClosed:tC,curveCatmullRomOpen:nC,curveCatmullRom:eC,curveLinearClosed:rC,curveLinear:Fl,curveMonotoneX:iC,curveMonotoneY:oC,curveNatural:aC,curveStep:sC,curveStepAfter:lC,curveStepBefore:uC,stack:p0,stackOffsetExpand:Vb,stackOffsetDiverging:Yb,stackOffsetNone:Ti,stackOffsetSilhouette:Gb,stackOffsetWiggle:Xb,stackOrderAppearance:Kb,stackOrderAscending:g0,stackOrderDescending:Qb,stackOrderInsideOut:Jb,stackOrderNone:ki,stackOrderReverse:ex},Symbol.toStringTag,{value:"Module"}));function pn(e,t){e(t)}var tx={ascending:g0,descending:Qb,insideout:Jb,none:ki,reverse:ex};function nx(e){return e&&tx[e]||tx.none}var rx={expand:Vb,diverging:Yb,none:Ti,silhouette:Gb,wiggle:Xb};function ix(e){return e&&rx[e]||rx.none}function dC(e){var t=e===void 0?{}:e,n=t.innerRadius,r=t.outerRadius,i=t.cornerRadius,o=t.startAngle,a=t.endAngle,s=t.padAngle,u=t.padRadius,l=mb();return n!=null&&pn(l.innerRadius,n),r!=null&&pn(l.outerRadius,r),i!=null&&pn(l.cornerRadius,i),o!=null&&pn(l.startAngle,o),a!=null&&pn(l.endAngle,a),s!=null&&pn(l.padAngle,s),u!=null&&pn(l.padRadius,u),l}function pC(e){var t=e===void 0?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,a=t.sort,s=t.sortValues,u=bb();return(a===null||a!=null)&&u.sort(a),(s===null||s!=null)&&u.sortValues(s),o!=null&&u.value(o),i!=null&&pn(u.padAngle,i),n!=null&&pn(u.startAngle,n),r!=null&&pn(u.endAngle,r),u}var gC=["className","top","left","data","centroid","innerRadius","outerRadius","cornerRadius","startAngle","endAngle","padAngle","padRadius","pieSort","pieSortValues","pieValue","children","fill"];function m0(){return m0=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},m0.apply(this,arguments)}function mC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ox(e){var t=e.className,n=e.top,r=e.left,i=e.data,o=i===void 0?[]:i,a=e.centroid,s=e.innerRadius,u=s===void 0?0:s,l=e.outerRadius,c=e.cornerRadius,f=e.startAngle,h=e.endAngle,d=e.padAngle,p=e.padRadius,m=e.pieSort,g=e.pieSortValues,y=e.pieValue,v=e.children,x=e.fill,b=x===void 0?"":x,_=mC(e,gC),w=dC({innerRadius:u,outerRadius:l,cornerRadius:c,padRadius:p}),$=pC({startAngle:f,endAngle:h,padAngle:d,value:y,sort:m,sortValues:g}),T=$(o);return v?Q.default.createElement(Q.default.Fragment,null,v({arcs:T,path:w,pie:$})):Q.default.createElement(je,{className:"visx-pie-arcs-group",top:n,left:r},T.map(function(k,S){return Q.default.createElement("g",{key:"pie-arc-"+S},Q.default.createElement("path",m0({className:Ye("visx-pie-arc",t),d:w(k)||"",fill:b==null||typeof b=="string"?b:b(k)},_)),a==null?void 0:a(w.centroid(k),k))}))}var yC=["from","to","fill","className","innerRef"];function y0(){return y0=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},y0.apply(this,arguments)}function vC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ax(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,i=r===void 0?{x:1,y:1}:r,o=e.fill,a=o===void 0?"transparent":o,s=e.className,u=e.innerRef,l=vC(e,yC),c=n.x===i.x||n.y===i.y;return Q.default.createElement("line",y0({ref:u,className:Ye("visx-line",s),x1:n.x,y1:n.y,x2:i.x,y2:i.y,fill:a,shapeRendering:c?"crispEdges":"auto"},l))}var bC=["className","innerRef"];function v0(){return v0=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},v0.apply(this,arguments)}function xC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ul(e){var t=e.className,n=e.innerRef,r=xC(e,bC);return Q.default.createElement("rect",v0({ref:n,className:Ye("visx-bar",t)},r))}function Vl(e){if("bandwidth"in e)return e.bandwidth();var t=e.range(),n=e.domain();return Math.abs(t[t.length-1]-t[0])/n.length}var wC=["data","className","top","left","x0","x0Scale","x1Scale","yScale","color","keys","height","children"];function b0(){return b0=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},b0.apply(this,arguments)}function _C(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $C(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.x0,a=e.x0Scale,s=e.x1Scale,u=e.yScale,l=e.color,c=e.keys,f=e.height,h=e.children,d=_C(e,wC),p=Vl(s),m=t.map(function(g,y){return{index:y,x0:a(o(g)),bars:c.map(function(v,x){var b=g[v];return{index:x,key:v,value:b,width:p,x:s(v)||0,y:u(b)||0,color:l(v,x),height:f-(u(b)||0)}})}});return h?Q.default.createElement(Q.default.Fragment,null,h(m)):Q.default.createElement(je,{className:Ye("visx-bar-group",n),top:r,left:i},m.map(function(g){return Q.default.createElement(je,{key:"bar-group-"+g.index+"-"+g.x0,left:g.x0},g.bars.map(function(y){return Q.default.createElement(Ul,b0({key:"bar-group-bar-"+g.index+"-"+y.index+"-"+y.value+"-"+y.key,x:y.x,y:y.y,width:y.width,height:y.height,fill:y.color},d))}))}))}var SC=["data","className","top","left","x","y0","y0Scale","y1Scale","xScale","color","keys","width","children"];function x0(){return x0=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},x0.apply(this,arguments)}function MC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function TC(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.x,a=o===void 0?function(){return 0}:o,s=e.y0,u=e.y0Scale,l=e.y1Scale,c=e.xScale,f=e.color,h=e.keys;e.width;var d=e.children,p=MC(e,SC),m=Vl(l),g=t.map(function(y,v){return{index:v,y0:u(s(y))||0,bars:h.map(function(x,b){var _=y[x];return{index:b,key:x,value:_,height:m,x:a(_)||0,y:l(x)||0,color:f(x,b),width:c(_)||0}})}});return d?Q.default.createElement(Q.default.Fragment,null,d(g)):Q.default.createElement(je,{className:Ye("visx-bar-group-horizontal",n),top:r,left:i},g.map(function(y){return Q.default.createElement(je,{key:"bar-group-"+y.index+"-"+y.y0,top:y.y0},y.bars.map(function(v){return Q.default.createElement(Ul,x0({key:"bar-group-bar-"+y.index+"-"+v.index+"-"+v.value+"-"+v.key,x:v.x,y:v.y,width:v.width,height:v.height,fill:v.color},p))}))}))}function sx(e){return e==null?void 0:e[0]}function ux(e){return e==null?void 0:e[1]}var kC=["data","className","top","left","x","y0","y1","xScale","yScale","color","keys","value","order","offset","children"];function w0(){return w0=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},w0.apply(this,arguments)}function OC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function CC(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.x,a=e.y0,s=a===void 0?sx:a,u=e.y1,l=u===void 0?ux:u,c=e.xScale,f=e.yScale,h=e.color,d=e.keys,p=e.value,m=e.order,g=e.offset,y=e.children,v=OC(e,kC),x=p0();d&&x.keys(d),p&&pn(x.value,p),m&&x.order(nx(m)),g&&x.offset(ix(g));var b=x(t),_=Vl(c),w=b.map(function($,T){var k=$.key;return{index:T,key:k,bars:$.map(function(S,M){var A=(f(s(S))||0)-(f(l(S))||0),E=f(l(S)),O="bandwidth"in c?c(o(S.data)):Math.max((c(o(S.data))||0)-_/2);return{bar:S,key:k,index:M,height:A,width:_,x:O||0,y:E||0,color:h($.key,M)}})}});return y?Q.default.createElement(Q.default.Fragment,null,y(w)):Q.default.createElement(je,{className:Ye("visx-bar-stack",n),top:r,left:i},w.map(function($){return $.bars.map(function(T){return Q.default.createElement(Ul,w0({key:"bar-stack-"+$.index+"-"+T.index,x:T.x,y:T.y,height:T.height,width:T.width,fill:T.color},v))})}))}var PC=["data","className","top","left","y","x0","x1","xScale","yScale","color","keys","value","order","offset","children"];function _0(){return _0=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},_0.apply(this,arguments)}function EC(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function AC(e){var t=e.data,n=e.className,r=e.top,i=e.left,o=e.y,a=e.x0,s=a===void 0?sx:a,u=e.x1,l=u===void 0?ux:u,c=e.xScale,f=e.yScale,h=e.color,d=e.keys,p=e.value,m=e.order,g=e.offset,y=e.children,v=EC(e,PC),x=p0();d&&x.keys(d),p&&pn(x.value,p),m&&x.order(nx(m)),g&&x.offset(ix(g));var b=x(t),_=Vl(f),w=b.map(function($,T){var k=$.key;return{index:T,key:k,bars:$.map(function(S,M){var A=(c(l(S))||0)-(c(s(S))||0),E=c(s(S)),O="bandwidth"in f?f(o(S.data)):Math.max((f(o(S.data))||0)-A/2);return{bar:S,key:k,index:M,height:_,width:A,x:E||0,y:O||0,color:h($.key,M)}})}});return y?Q.default.createElement(Q.default.Fragment,null,y(w)):Q.default.createElement(je,{className:Ye("visx-bar-stack-horizontal",n),top:r,left:i},w.map(function($){return $.bars.map(function(T){return Q.default.createElement(Ul,_0({key:"bar-stack-"+$.index+"-"+T.index,x:T.x,y:T.y,height:T.height,width:T.width,fill:T.color},v))})}))}var Yl={exports:{}},Gl={};/**
6
6
  * @license React
7
7
  * react-jsx-runtime.production.min.js
8
8
  *
@@ -10,20 +10,20 @@
10
10
  *
11
11
  * This source code is licensed under the MIT license found in the
12
12
  * LICENSE file in the root directory of this source tree.
13
- */var LC=Z.default,DC=Symbol.for("react.element"),IC=Symbol.for("react.fragment"),zC=Object.prototype.hasOwnProperty,FC=LC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,BC={key:!0,ref:!0,__self:!0,__source:!0};function cx(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)zC.call(t,r)&&!BC.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:DC,type:e,key:o,ref:a,props:i,_owner:FC.current}}Xl.Fragment=IC,Xl.jsx=cx,Xl.jsxs=cx,Gl.exports=Xl;const z=Gl.exports.jsx,ae=Gl.exports.jsxs,Jt=Gl.exports.Fragment;function Ur(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jC(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Kl(e){let t,n,r;e.length!==2?(t=Ur,n=(s,u)=>Ur(e(s),u),r=(s,u)=>e(s)-u):(t=e===Ur||e===jC?e:WC,n=e,r=e);function i(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;n(s[f],u)<0?l=f+1:c=f}while(l<c)}return l}function o(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;n(s[f],u)<=0?l=f+1:c=f}while(l<c)}return l}function a(s,u,l=0,c=s.length){const f=i(s,u,l,c-1);return f>l&&r(s[f-1],u)>-r(s[f],u)?f-1:f}return{left:i,center:a,right:o}}function WC(){return 0}function fx(e){return e===null?NaN:+e}function*HC(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const hx=Kl(Ur),qC=hx.right,UC=hx.left;Kl(fx).center;var as=qC;function dx(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class px extends Map{constructor(t,n=GC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(gx(this,t))}has(t){return super.has(gx(this,t))}set(t,n){return super.set(VC(this,t),n)}delete(t){return super.delete(YC(this,t))}}function gx({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function VC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function YC({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function GC(e){return e!==null&&typeof e=="object"?e.valueOf():e}function XC(e=Ur){if(e===Ur)return mx;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function mx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var $0=Math.sqrt(50),S0=Math.sqrt(10),M0=Math.sqrt(2);function T0(e,t,n){var r,i=-1,o,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),(s=yx(e,t,n))===0||!isFinite(s))return[];if(s>0){let u=Math.round(e/s),l=Math.round(t/s);for(u*s<e&&++u,l*s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)*s}else{s=-s;let u=Math.round(e*s),l=Math.round(t*s);for(u/s<e&&++u,l/s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)/s}return r&&a.reverse(),a}function yx(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=$0?10:o>=S0?5:o>=M0?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=$0?10:o>=S0?5:o>=M0?2:1)}function k0(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=$0?i*=10:o>=S0?i*=5:o>=M0&&(i*=2),t<e?-i:i}function vx(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function bx(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function xx(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?mx:XC(i);r>n;){if(r-n>600){const u=r-n+1,l=t-n+1,c=Math.log(u),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),d=Math.max(n,Math.floor(t-l*f/u+h)),p=Math.min(r,Math.floor(t+(u-l)*f/u+h));xx(e,t,d,p,i)}const o=e[t];let a=n,s=r;for(ss(e,n,t),i(e[r],o)>0&&ss(e,n,r);a<s;){for(ss(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?ss(e,n,s):(++s,ss(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function ss(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function KC(e,t,n){if(e=Float64Array.from(HC(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return bx(e);if(t>=1)return vx(e);var r,i=(r-1)*t,o=Math.floor(i),a=vx(xx(e,o).subarray(0,o+1)),s=bx(e.subarray(o+1));return a+(s-a)*(i-o)}}function QC(e,t,n=fx){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function wx(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function gn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const O0=Symbol("implicit");function Ql(){var e=new px,t=[],n=[],r=O0;function i(o){let a=e.get(o);if(a===void 0){if(r!==O0)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new px;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Ql(t,n).unknown(r)},gn.apply(i,arguments),i}function Zl(){var e=Ql().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var h=t().length,d=i<r,p=d?i:r,m=d?r:i;o=(m-p)/Math.max(1,h-u+l*2),s&&(o=Math.floor(o)),p+=(m-p-o*(h-u))*c,a=o*(1-u),s&&(p=Math.round(p),a=Math.round(a));var g=wx(h).map(function(y){return p+o*y});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,l=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return Zl(t(),[r,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},gn.apply(f(),arguments)}function _x(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _x(t())},e}function $x(){return _x(Zl.apply(null,arguments).paddingInner(1))}function Ro(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function us(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vr(){}var Oi=.7,Lo=1/Oi,Do="\\s*([+-]?\\d+)\\s*",ls="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ZC=/^#([0-9a-f]{3,8})$/,JC=new RegExp(`^rgb\\(${Do},${Do},${Do}\\)$`),e7=new RegExp(`^rgb\\(${Wn},${Wn},${Wn}\\)$`),t7=new RegExp(`^rgba\\(${Do},${Do},${Do},${ls}\\)$`),n7=new RegExp(`^rgba\\(${Wn},${Wn},${Wn},${ls}\\)$`),r7=new RegExp(`^hsl\\(${ls},${Wn},${Wn}\\)$`),i7=new RegExp(`^hsla\\(${ls},${Wn},${Wn},${ls}\\)$`),Sx={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};Ro(Vr,cs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Mx,formatHex:Mx,formatHex8:o7,formatHsl:a7,formatRgb:Tx,toString:Tx});function Mx(){return this.rgb().formatHex()}function o7(){return this.rgb().formatHex8()}function a7(){return Ex(this).formatHsl()}function Tx(){return this.rgb().formatRgb()}function cs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ZC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?kx(t):n===3?new nt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Jl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Jl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=JC.exec(e))?new nt(t[1],t[2],t[3],1):(t=e7.exec(e))?new nt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=t7.exec(e))?Jl(t[1],t[2],t[3],t[4]):(t=n7.exec(e))?Jl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=r7.exec(e))?Px(t[1],t[2]/100,t[3]/100,1):(t=i7.exec(e))?Px(t[1],t[2]/100,t[3]/100,t[4]):Sx.hasOwnProperty(e)?kx(Sx[e]):e==="transparent"?new nt(NaN,NaN,NaN,0):null}function kx(e){return new nt(e>>16&255,e>>8&255,e&255,1)}function Jl(e,t,n,r){return r<=0&&(e=t=n=NaN),new nt(e,t,n,r)}function C0(e){return e instanceof Vr||(e=cs(e)),e?(e=e.rgb(),new nt(e.r,e.g,e.b,e.opacity)):new nt}function ec(e,t,n,r){return arguments.length===1?C0(e):new nt(e,t,n,r==null?1:r)}function nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ro(nt,ec,us(Vr,{brighter(e){return e=e==null?Lo:Math.pow(Lo,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Oi:Math.pow(Oi,e),new nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nt(Ci(this.r),Ci(this.g),Ci(this.b),tc(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:Ox,formatHex:Ox,formatHex8:s7,formatRgb:Cx,toString:Cx}));function Ox(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}`}function s7(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}${Pi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cx(){const e=tc(this.opacity);return`${e===1?"rgb(":"rgba("}${Ci(this.r)}, ${Ci(this.g)}, ${Ci(this.b)}${e===1?")":`, ${e})`}`}function tc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ci(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pi(e){return e=Ci(e),(e<16?"0":"")+e.toString(16)}function Px(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cn(e,t,n,r)}function Ex(e){if(e instanceof Cn)return new Cn(e.h,e.s,e.l,e.opacity);if(e instanceof Vr||(e=cs(e)),!e)return new Cn;if(e instanceof Cn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Cn(a,s,u,e.opacity)}function P0(e,t,n,r){return arguments.length===1?Ex(e):new Cn(e,t,n,r==null?1:r)}function Cn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ro(Cn,P0,us(Vr,{brighter(e){return e=e==null?Lo:Math.pow(Lo,e),new Cn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Oi:Math.pow(Oi,e),new Cn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new nt(E0(e>=240?e-240:e+120,i,r),E0(e,i,r),E0(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Cn(Ax(this.h),nc(this.s),nc(this.l),tc(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=tc(this.opacity);return`${e===1?"hsl(":"hsla("}${Ax(this.h)}, ${nc(this.s)*100}%, ${nc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ax(e){return e=(e||0)%360,e<0?e+360:e}function nc(e){return Math.max(0,Math.min(1,e||0))}function E0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Nx=Math.PI/180,Rx=180/Math.PI,rc=18,Lx=.96422,Dx=1,Ix=.82521,zx=4/29,Io=6/29,Fx=3*Io*Io,u7=Io*Io*Io;function Bx(e){if(e instanceof Hn)return new Hn(e.l,e.a,e.b,e.opacity);if(e instanceof wr)return jx(e);e instanceof nt||(e=C0(e));var t=D0(e.r),n=D0(e.g),r=D0(e.b),i=N0((.2225045*t+.7168786*n+.0606169*r)/Dx),o,a;return t===n&&n===r?o=a=i:(o=N0((.4360747*t+.3850649*n+.1430804*r)/Lx),a=N0((.0139322*t+.0971045*n+.7141733*r)/Ix)),new Hn(116*i-16,500*(o-i),200*(i-a),e.opacity)}function A0(e,t,n,r){return arguments.length===1?Bx(e):new Hn(e,t,n,r==null?1:r)}function Hn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Ro(Hn,A0,us(Vr,{brighter(e){return new Hn(this.l+rc*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Hn(this.l-rc*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Lx*R0(t),e=Dx*R0(e),n=Ix*R0(n),new nt(L0(3.1338561*t-1.6168667*e-.4906146*n),L0(-.9787684*t+1.9161415*e+.033454*n),L0(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function N0(e){return e>u7?Math.pow(e,1/3):e/Fx+zx}function R0(e){return e>Io?e*e*e:Fx*(e-zx)}function L0(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function D0(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function l7(e){if(e instanceof wr)return new wr(e.h,e.c,e.l,e.opacity);if(e instanceof Hn||(e=Bx(e)),e.a===0&&e.b===0)return new wr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Rx;return new wr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function I0(e,t,n,r){return arguments.length===1?l7(e):new wr(e,t,n,r==null?1:r)}function wr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function jx(e){if(isNaN(e.h))return new Hn(e.l,0,0,e.opacity);var t=e.h*Nx;return new Hn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ro(wr,I0,us(Vr,{brighter(e){return new wr(this.h,this.c,this.l+rc*(e==null?1:e),this.opacity)},darker(e){return new wr(this.h,this.c,this.l-rc*(e==null?1:e),this.opacity)},rgb(){return jx(this).rgb()}}));var Wx=-.14861,z0=1.78277,F0=-.29227,ic=-.90649,fs=1.97294,Hx=fs*ic,qx=fs*z0,Ux=z0*F0-ic*Wx;function c7(e){if(e instanceof Ei)return new Ei(e.h,e.s,e.l,e.opacity);e instanceof nt||(e=C0(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Ux*r+Hx*t-qx*n)/(Ux+Hx-qx),o=r-i,a=(fs*(n-i)-F0*o)/ic,s=Math.sqrt(a*a+o*o)/(fs*i*(1-i)),u=s?Math.atan2(a,o)*Rx-120:NaN;return new Ei(u<0?u+360:u,s,i,e.opacity)}function B0(e,t,n,r){return arguments.length===1?c7(e):new Ei(e,t,n,r==null?1:r)}function Ei(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ro(Ei,B0,us(Vr,{brighter(e){return e=e==null?Lo:Math.pow(Lo,e),new Ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Oi:Math.pow(Oi,e),new Ei(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Nx,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new nt(255*(t+n*(Wx*r+z0*i)),255*(t+n*(F0*r+ic*i)),255*(t+n*(fs*r)),this.opacity)}}));function Vx(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Yx(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),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Vx((n-r/t)*t,a,i,o,s)}}function Gx(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Vx((n-r/t)*t,i,o,a,s)}}var oc=e=>()=>e;function Xx(e,t){return function(n){return e+n*t}}function f7(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)}}function ac(e,t){var n=t-e;return n?Xx(e,n>180||n<-180?n-360*Math.round(n/360):n):oc(isNaN(e)?t:e)}function h7(e){return(e=+e)==1?rt:function(t,n){return n-t?f7(t,n,e):oc(isNaN(t)?n:t)}}function rt(e,t){var n=t-e;return n?Xx(e,n):oc(isNaN(e)?t:e)}var sc=function e(t){var n=h7(t);function r(i,o){var a=n((i=ec(i)).r,(o=ec(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=rt(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function Kx(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=ec(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=o(u),s+""}}}var d7=Kx(Yx),p7=Kx(Gx);function j0(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Qx(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function g7(e,t){return(Qx(t)?j0:Zx)(e,t)}function Zx(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Ai(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Jx(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function e2(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ai(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var W0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,H0=new RegExp(W0.source,"g");function m7(e){return function(){return e}}function y7(e){return function(t){return e(t)+""}}function t2(e,t){var n=W0.lastIndex=H0.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=W0.exec(e))&&(i=H0.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Pn(r,i)})),n=H0.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?y7(u[0].x):m7(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function Ai(e,t){var n=typeof t,r;return t==null||n==="boolean"?oc(t):(n==="number"?Pn:n==="string"?(r=cs(t))?(t=r,sc):t2:t instanceof cs?sc:t instanceof Date?Jx:Qx(t)?j0:Array.isArray(t)?Zx:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?e2:Pn)(e,t)}function v7(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function b7(e,t){var n=ac(+e,+t);return function(r){var i=n(r);return i-360*Math.floor(i/360)}}function hs(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var n2=180/Math.PI,q0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function r2(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*n2,skewX:Math.atan(u)*n2,scaleX:a,scaleY:s}}var uc;function x7(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?q0:r2(t.a,t.b,t.c,t.d,t.e,t.f)}function w7(e){return e==null||(uc||(uc=document.createElementNS("http://www.w3.org/2000/svg","g")),uc.setAttribute("transform",e),!(e=uc.transform.baseVal.consolidate()))?q0:(e=e.matrix,r2(e.a,e.b,e.c,e.d,e.e,e.f))}function i2(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:Pn(l,f)},{i:m-2,x:Pn(c,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function a(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Pn(l,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Pn(l,c)}):c&&f.push(i(f)+"skewX("+c+r)}function u(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:Pn(l,f)},{i:m-2,x:Pn(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,f,h),a(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(d){for(var p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var _7=i2(x7,"px, ","px)","deg)"),$7=i2(w7,", ",")",")"),S7=1e-12;function o2(e){return((e=Math.exp(e))+1/e)/2}function M7(e){return((e=Math.exp(e))-1/e)/2}function T7(e){return((e=Math.exp(2*e))-1)/(e+1)}var k7=function e(t,n,r){function i(o,a){var s=o[0],u=o[1],l=o[2],c=a[0],f=a[1],h=a[2],d=c-s,p=f-u,m=d*d+p*p,g,y;if(m<S7)y=Math.log(h/l)/t,g=function($){return[s+$*d,u+$*p,l*Math.exp(t*$*y)]};else{var v=Math.sqrt(m),x=(h*h-l*l+r*m)/(2*l*n*v),b=(h*h-l*l-r*m)/(2*h*n*v),_=Math.log(Math.sqrt(x*x+1)-x),w=Math.log(Math.sqrt(b*b+1)-b);y=(w-_)/t,g=function($){var M=$*y,k=o2(_),S=l/(n*v)*(k*T7(t*M+_)-M7(_));return[s+S*d,u+S*p,l*k/o2(t*M+_)]}}return g.duration=y*1e3*t/Math.SQRT2,g}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,u=s*s;return e(a,s,u)},i}(Math.SQRT2,2,4);function a2(e){return function(t,n){var r=e((t=P0(t)).h,(n=P0(n)).h),i=rt(t.s,n.s),o=rt(t.l,n.l),a=rt(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var s2=a2(ac),u2=a2(rt);function l2(e,t){var n=rt((e=A0(e)).l,(t=A0(t)).l),r=rt(e.a,t.a),i=rt(e.b,t.b),o=rt(e.opacity,t.opacity);return function(a){return e.l=n(a),e.a=r(a),e.b=i(a),e.opacity=o(a),e+""}}function c2(e){return function(t,n){var r=e((t=I0(t)).h,(n=I0(n)).h),i=rt(t.c,n.c),o=rt(t.l,n.l),a=rt(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var f2=c2(ac),h2=c2(rt);function d2(e){return function t(n){n=+n;function r(i,o){var a=e((i=B0(i)).h,(o=B0(o)).h),s=rt(i.s,o.s),u=rt(i.l,o.l),l=rt(i.opacity,o.opacity);return function(c){return i.h=a(c),i.s=s(c),i.l=u(Math.pow(c,n)),i.opacity=l(c),i+""}}return r.gamma=t,r}(1)}var p2=d2(ac),g2=d2(rt);function m2(e,t){t===void 0&&(t=e,e=Ai);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function O7(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function C7(e){return function(){return e}}function lc(e){return+e}var y2=[0,1];function Tt(e){return e}function U0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:C7(isNaN(t)?NaN:.5)}function P7(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function E7(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=U0(i,r),o=n(a,o)):(r=U0(r,i),o=n(o,a)),function(s){return o(r(s))}}function A7(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=U0(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var u=as(e,s,1,r)-1;return o[u](i[u](s))}}function ds(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function cc(){var e=y2,t=y2,n=Ai,r,i,o,a=Tt,s,u,l;function c(){var h=Math.min(e.length,t.length);return a!==Tt&&(a=P7(e[0],e[h-1])),s=h>2?A7:E7,u=l=null,f}function f(h){return h==null||isNaN(h=+h)?o:(u||(u=s(e.map(r),t,n)))(r(a(h)))}return f.invert=function(h){return a(i((l||(l=s(t,e.map(r),Pn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,lc),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=hs,c()},f.clamp=function(h){return arguments.length?(a=h?!0:Tt,c()):a!==Tt},f.interpolate=function(h){return arguments.length?(n=h,c()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,c()}}function V0(){return cc()(Tt,Tt)}function N7(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fc(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 zo(e){return e=fc(Math.abs(e)),e?e[1]:NaN}function R7(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function L7(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var D7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ps(e){if(!(t=D7.exec(e)))throw new Error("invalid format: "+e);var t;return new Y0({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]})}ps.prototype=Y0.prototype;function Y0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Y0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function I7(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var v2;function z7(e,t){var n=fc(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(v2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+fc(e,Math.max(0,t+o-1))[0]}function b2(e,t){var n=fc(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var x2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:N7,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)=>b2(e*100,t),r:b2,s:z7,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function w2(e){return e}var _2=Array.prototype.map,$2=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function F7(e){var t=e.grouping===void 0||e.thousands===void 0?w2:R7(_2.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?w2:L7(_2.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=ps(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,g=f.zero,y=f.width,v=f.comma,x=f.precision,b=f.trim,_=f.type;_==="n"?(v=!0,_="g"):x2[_]||(x===void 0&&(x=12),b=!0,_="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=m==="$"?r:/[%p]/.test(_)?a:"",M=x2[_],k=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function S(T){var A=w,P=$,O,E,C;if(_==="c")P=M(T)+P,T="";else{T=+T;var R=T<0||1/T<0;if(T=isNaN(T)?u:M(Math.abs(T),x),b&&(T=I7(T)),R&&+T==0&&p!=="+"&&(R=!1),A=(R?p==="("?p:s:p==="-"||p==="("?"":p)+A,P=(_==="s"?$2[8+v2/3]:"")+P+(R&&p==="("?")":""),k){for(O=-1,E=T.length;++O<E;)if(C=T.charCodeAt(O),48>C||C>57){P=(C===46?i+T.slice(O+1):T.slice(O))+P,T=T.slice(0,O);break}}}v&&!g&&(T=t(T,1/0));var D=A.length+T.length+P.length,L=D<y?new Array(y-D+1).join(h):"";switch(v&&g&&(T=t(L+T,L.length?y-P.length:1/0),L=""),d){case"<":T=A+T+P+L;break;case"=":T=A+L+T+P;break;case"^":T=L.slice(0,D=L.length>>1)+A+T+P+L.slice(D);break;default:T=L+A+T+P;break}return o(T)}return S.toString=function(){return f+""},S}function c(f,h){var d=l((f=ps(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(zo(h)/3)))*3,m=Math.pow(10,-p),g=$2[8+p/3];return function(y){return d(m*y)+g}}return{format:l,formatPrefix:c}}var hc,G0,S2;B7({thousands:",",grouping:[3],currency:["$",""]});function B7(e){return hc=F7(e),G0=hc.format,S2=hc.formatPrefix,hc}function j7(e){return Math.max(0,-zo(Math.abs(e)))}function W7(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zo(t)/3)))*3-zo(Math.abs(e)))}function H7(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zo(t)-zo(e))+1}function M2(e,t,n,r){var i=k0(e,t,n),o;switch(r=ps(r==null?",f":r),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=W7(i,a))&&(r.precision=o),S2(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=H7(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=j7(i))&&(r.precision=o-(r.type==="%")*2);break}}return G0(r)}function Yr(e){var t=e.domain;return e.ticks=function(n){var r=t();return T0(r[0],r[r.length-1],n==null?10:n)},e.tickFormat=function(n,r){var i=t();return M2(i[0],i[i.length-1],n==null?10:n,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],u,l,c=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);c-- >0;){if(l=yx(a,s,n),l===u)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function X0(){var e=V0();return e.copy=function(){return ds(e,X0())},gn.apply(e,arguments),Yr(e)}function T2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,lc),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return T2(e).unknown(t)},e=arguments.length?Array.from(e,lc):[0,1],Yr(n)}function k2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function O2(e){return Math.log(e)}function C2(e){return Math.exp(e)}function q7(e){return-Math.log(-e)}function U7(e){return-Math.exp(-e)}function V7(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Y7(e){return e===10?V7:e===Math.E?Math.exp:t=>Math.pow(e,t)}function G7(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function P2(e){return(t,n)=>-e(-t,n)}function K0(e){const t=e(O2,C2),n=t.domain;let r=10,i,o;function a(){return i=G7(r),o=Y7(r),n()[0]<0?(i=P2(i),o=P2(o),e(q7,U7)):e(O2,C2),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const u=n();let l=u[0],c=u[u.length-1];const f=c<l;f&&([l,c]=[c,l]);let h=i(l),d=i(c),p,m;const g=s==null?10:+s;let y=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(p=1;p<r;++p)if(m=h<0?p/o(-h):p*o(h),!(m<l)){if(m>c)break;y.push(m)}}else for(;h<=d;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/o(-h):p*o(h),!(m<l)){if(m>c)break;y.push(m)}y.length*2<g&&(y=T0(l,c,g))}else y=T0(h,d,Math.min(d-h,g)).map(o);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=ps(u)).precision==null&&(u.trim=!0),u=G0(u)),s===1/0)return u;const l=Math.max(1,r*s/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=l?u(c):""}},t.nice=()=>n(k2(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Q0(){const e=K0(cc()).domain([1,10]);return e.copy=()=>ds(e,Q0()).base(e.base()),gn.apply(e,arguments),e}function E2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function A2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Z0(e){var t=1,n=e(E2(t),A2(t));return n.constant=function(r){return arguments.length?e(E2(t=+r),A2(t)):t},Yr(n)}function J0(){var e=Z0(cc());return e.copy=function(){return ds(e,J0()).constant(e.constant())},gn.apply(e,arguments)}function N2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function X7(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function K7(e){return e<0?-e*e:e*e}function ep(e){var t=e(Tt,Tt),n=1;function r(){return n===1?e(Tt,Tt):n===.5?e(X7,K7):e(N2(n),N2(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Yr(t)}function dc(){var e=ep(cc());return e.copy=function(){return ds(e,dc()).exponent(e.exponent())},gn.apply(e,arguments),e}function R2(){return dc.apply(null,arguments).exponent(.5)}function L2(e){return Math.sign(e)*e*e}function Q7(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function tp(){var e=V0(),t=[0,1],n=!1,r;function i(o){var a=Q7(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(L2(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,lc)).map(L2)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return tp(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},gn.apply(i,arguments),Yr(i)}function np(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=QC(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[as(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ur),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return np().domain(e).range(t).unknown(r)},gn.apply(o,arguments)}function rp(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(u){return u!=null&&u<=u?i[as(r,u,0,n)]:o}function s(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return a}return a.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},a.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,s()):i.slice()},a.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,r[0]]:l>=n?[r[n-1],t]:[r[l-1],r[l]]},a.unknown=function(u){return arguments.length&&(o=u),a},a.thresholds=function(){return r.slice()},a.copy=function(){return rp().domain([e,t]).range(i).unknown(o)},gn.apply(Yr(a),arguments)}function ip(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[as(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return ip().domain(e).range(t).unknown(n)},gn.apply(i,arguments)}const op=new Date,ap=new Date;function Ue(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const u=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return u;let l;do u.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return u},i.filter=o=>Ue(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(op.setTime(+o),ap.setTime(+a),e(op),e(ap),Math.floor(n(op,ap))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Fo=Ue(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fo.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ue(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fo);const D2=Fo.range,_r=1e3,mn=_r*60,$r=mn*60,Sr=$r*24,sp=Sr*7,I2=Sr*30,up=Sr*365,En=Ue(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCSeconds()),z2=En.range,gs=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r)},(e,t)=>{e.setTime(+e+t*mn)},(e,t)=>(t-e)/mn,e=>e.getMinutes()),Z7=gs.range,ms=Ue(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mn)},(e,t)=>(t-e)/mn,e=>e.getUTCMinutes()),J7=ms.range,ys=Ue(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r-e.getMinutes()*mn)},(e,t)=>{e.setTime(+e+t*$r)},(e,t)=>(t-e)/$r,e=>e.getHours()),e9=ys.range,vs=Ue(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$r)},(e,t)=>(t-e)/$r,e=>e.getUTCHours()),t9=vs.range,Ni=Ue(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mn)/Sr,e=>e.getDate()-1),n9=Ni.range,Bo=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>e.getUTCDate()-1),r9=Bo.range,lp=Ue(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>Math.floor(e/Sr)),i9=lp.range;function Ri(e){return Ue(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*mn)/sp)}const Li=Ri(0),bs=Ri(1),F2=Ri(2),B2=Ri(3),Di=Ri(4),j2=Ri(5),W2=Ri(6),H2=Li.range,o9=bs.range,a9=F2.range,s9=B2.range,u9=Di.range,l9=j2.range,c9=W2.range;function Ii(e){return Ue(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/sp)}const zi=Ii(0),xs=Ii(1),q2=Ii(2),U2=Ii(3),Fi=Ii(4),V2=Ii(5),Y2=Ii(6),G2=zi.range,f9=xs.range,h9=q2.range,d9=U2.range,p9=Fi.range,g9=V2.range,m9=Y2.range,ws=Ue(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),y9=ws.range,_s=Ue(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),v9=_s.range,An=Ue(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());An.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const b9=An.range,Nn=Ue(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Nn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ue(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const x9=Nn.range;function X2(e,t,n,r,i,o){const a=[[En,1,_r],[En,5,5*_r],[En,15,15*_r],[En,30,30*_r],[o,1,mn],[o,5,5*mn],[o,15,15*mn],[o,30,30*mn],[i,1,$r],[i,3,3*$r],[i,6,6*$r],[i,12,12*$r],[r,1,Sr],[r,2,2*Sr],[n,1,sp],[t,1,I2],[t,3,3*I2],[e,1,up]];function s(l,c,f){const h=c<l;h&&([l,c]=[c,l]);const d=f&&typeof f.range=="function"?f:u(l,c,f),p=d?d.range(l,+c+1):[];return h?p.reverse():p}function u(l,c,f){const h=Math.abs(c-l)/f,d=Kl(([,,g])=>g).right(a,h);if(d===a.length)return e.every(k0(l/up,c/up,f));if(d===0)return Fo.every(Math.max(k0(l,c,f),1));const[p,m]=a[h/a[d-1][2]<a[d][2]/h?d-1:d];return p.every(m)}return[s,u]}const[K2,Q2]=X2(Nn,_s,zi,lp,vs,ms),[Z2,J2]=X2(An,ws,Li,Ni,ys,gs);function cp(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 fp(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 $s(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function w9(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=Ss(i),c=Ms(i),f=Ss(o),h=Ms(o),d=Ss(a),p=Ms(a),m=Ss(s),g=Ms(s),y=Ss(u),v=Ms(u),x={a:R,A:D,b:L,B:F,c:null,d:ow,e:ow,f:q9,g:eP,G:nP,H:j9,I:W9,j:H9,L:aw,m:U9,M:V9,p:W,q:U,Q:hw,s:dw,S:Y9,u:G9,U:X9,V:K9,w:Q9,W:Z9,x:null,X:null,y:J9,Y:tP,Z:rP,"%":fw},b={a:te,A:Q,b:J,B:ue,c:null,d:uw,e:uw,f:sP,g:yP,G:bP,H:iP,I:oP,j:aP,L:lw,m:uP,M:lP,p:re,q:oe,Q:hw,s:dw,S:cP,u:fP,U:hP,V:dP,w:pP,W:gP,x:null,X:null,y:mP,Y:vP,Z:xP,"%":fw},_={a:S,A:T,b:A,B:P,c:O,d:rw,e:rw,f:I9,g:nw,G:tw,H:iw,I:iw,j:N9,L:D9,m:A9,M:R9,p:k,q:E9,Q:F9,s:B9,S:L9,u:T9,U:k9,V:O9,w:M9,W:C9,x:E,X:C,y:nw,Y:tw,Z:P9,"%":z9};x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),b.x=w(n,b),b.X=w(r,b),b.c=w(t,b);function w(I,V){return function(ee){var N=[],Y=-1,j=0,H=I.length,X,ne,fe;for(ee instanceof Date||(ee=new Date(+ee));++Y<H;)I.charCodeAt(Y)===37&&(N.push(I.slice(j,Y)),(ne=ew[X=I.charAt(++Y)])!=null?X=I.charAt(++Y):ne=X==="e"?" ":"0",(fe=V[X])&&(X=fe(ee,ne)),N.push(X),j=Y+1);return N.push(I.slice(j,Y)),N.join("")}}function $(I,V){return function(ee){var N=$s(1900,void 0,1),Y=M(N,I,ee+="",0),j,H;if(Y!=ee.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(V&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(j=fp($s(N.y,0,1)),H=j.getUTCDay(),j=H>4||H===0?xs.ceil(j):xs(j),j=Bo.offset(j,(N.V-1)*7),N.y=j.getUTCFullYear(),N.m=j.getUTCMonth(),N.d=j.getUTCDate()+(N.w+6)%7):(j=cp($s(N.y,0,1)),H=j.getDay(),j=H>4||H===0?bs.ceil(j):bs(j),j=Ni.offset(j,(N.V-1)*7),N.y=j.getFullYear(),N.m=j.getMonth(),N.d=j.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),H="Z"in N?fp($s(N.y,0,1)).getUTCDay():cp($s(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(H+5)%7:N.w+N.U*7-(H+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,fp(N)):cp(N)}}function M(I,V,ee,N){for(var Y=0,j=V.length,H=ee.length,X,ne;Y<j;){if(N>=H)return-1;if(X=V.charCodeAt(Y++),X===37){if(X=V.charAt(Y++),ne=_[X in ew?V.charAt(Y++):X],!ne||(N=ne(I,ee,N))<0)return-1}else if(X!=ee.charCodeAt(N++))return-1}return N}function k(I,V,ee){var N=l.exec(V.slice(ee));return N?(I.p=c.get(N[0].toLowerCase()),ee+N[0].length):-1}function S(I,V,ee){var N=d.exec(V.slice(ee));return N?(I.w=p.get(N[0].toLowerCase()),ee+N[0].length):-1}function T(I,V,ee){var N=f.exec(V.slice(ee));return N?(I.w=h.get(N[0].toLowerCase()),ee+N[0].length):-1}function A(I,V,ee){var N=y.exec(V.slice(ee));return N?(I.m=v.get(N[0].toLowerCase()),ee+N[0].length):-1}function P(I,V,ee){var N=m.exec(V.slice(ee));return N?(I.m=g.get(N[0].toLowerCase()),ee+N[0].length):-1}function O(I,V,ee){return M(I,t,V,ee)}function E(I,V,ee){return M(I,n,V,ee)}function C(I,V,ee){return M(I,r,V,ee)}function R(I){return a[I.getDay()]}function D(I){return o[I.getDay()]}function L(I){return u[I.getMonth()]}function F(I){return s[I.getMonth()]}function W(I){return i[+(I.getHours()>=12)]}function U(I){return 1+~~(I.getMonth()/3)}function te(I){return a[I.getUTCDay()]}function Q(I){return o[I.getUTCDay()]}function J(I){return u[I.getUTCMonth()]}function ue(I){return s[I.getUTCMonth()]}function re(I){return i[+(I.getUTCHours()>=12)]}function oe(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var V=w(I+="",x);return V.toString=function(){return I},V},parse:function(I){var V=$(I+="",!1);return V.toString=function(){return I},V},utcFormat:function(I){var V=w(I+="",b);return V.toString=function(){return I},V},utcParse:function(I){var V=$(I+="",!0);return V.toString=function(){return I},V}}}var ew={"-":"",_:" ",0:"0"},it=/^\s*\d+/,_9=/^%/,$9=/[\\^$*+?|[\]().{}]/g;function we(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function S9(e){return e.replace($9,"\\$&")}function Ss(e){return new RegExp("^(?:"+e.map(S9).join("|")+")","i")}function Ms(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function M9(e,t,n){var r=it.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function T9(e,t,n){var r=it.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function k9(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function O9(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function C9(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function tw(e,t,n){var r=it.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function nw(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function P9(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 E9(e,t,n){var r=it.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function A9(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function rw(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function N9(e,t,n){var r=it.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function iw(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function R9(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function L9(e,t,n){var r=it.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function D9(e,t,n){var r=it.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function I9(e,t,n){var r=it.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function z9(e,t,n){var r=_9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function F9(e,t,n){var r=it.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function B9(e,t,n){var r=it.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function ow(e,t){return we(e.getDate(),t,2)}function j9(e,t){return we(e.getHours(),t,2)}function W9(e,t){return we(e.getHours()%12||12,t,2)}function H9(e,t){return we(1+Ni.count(An(e),e),t,3)}function aw(e,t){return we(e.getMilliseconds(),t,3)}function q9(e,t){return aw(e,t)+"000"}function U9(e,t){return we(e.getMonth()+1,t,2)}function V9(e,t){return we(e.getMinutes(),t,2)}function Y9(e,t){return we(e.getSeconds(),t,2)}function G9(e){var t=e.getDay();return t===0?7:t}function X9(e,t){return we(Li.count(An(e)-1,e),t,2)}function sw(e){var t=e.getDay();return t>=4||t===0?Di(e):Di.ceil(e)}function K9(e,t){return e=sw(e),we(Di.count(An(e),e)+(An(e).getDay()===4),t,2)}function Q9(e){return e.getDay()}function Z9(e,t){return we(bs.count(An(e)-1,e),t,2)}function J9(e,t){return we(e.getFullYear()%100,t,2)}function eP(e,t){return e=sw(e),we(e.getFullYear()%100,t,2)}function tP(e,t){return we(e.getFullYear()%1e4,t,4)}function nP(e,t){var n=e.getDay();return e=n>=4||n===0?Di(e):Di.ceil(e),we(e.getFullYear()%1e4,t,4)}function rP(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function uw(e,t){return we(e.getUTCDate(),t,2)}function iP(e,t){return we(e.getUTCHours(),t,2)}function oP(e,t){return we(e.getUTCHours()%12||12,t,2)}function aP(e,t){return we(1+Bo.count(Nn(e),e),t,3)}function lw(e,t){return we(e.getUTCMilliseconds(),t,3)}function sP(e,t){return lw(e,t)+"000"}function uP(e,t){return we(e.getUTCMonth()+1,t,2)}function lP(e,t){return we(e.getUTCMinutes(),t,2)}function cP(e,t){return we(e.getUTCSeconds(),t,2)}function fP(e){var t=e.getUTCDay();return t===0?7:t}function hP(e,t){return we(zi.count(Nn(e)-1,e),t,2)}function cw(e){var t=e.getUTCDay();return t>=4||t===0?Fi(e):Fi.ceil(e)}function dP(e,t){return e=cw(e),we(Fi.count(Nn(e),e)+(Nn(e).getUTCDay()===4),t,2)}function pP(e){return e.getUTCDay()}function gP(e,t){return we(xs.count(Nn(e)-1,e),t,2)}function mP(e,t){return we(e.getUTCFullYear()%100,t,2)}function yP(e,t){return e=cw(e),we(e.getUTCFullYear()%100,t,2)}function vP(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function bP(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fi(e):Fi.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function xP(){return"+0000"}function fw(){return"%"}function hw(e){return+e}function dw(e){return Math.floor(+e/1e3)}var jo,pw,gw;wP({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function wP(e){return jo=w9(e),pw=jo.format,jo.parse,gw=jo.utcFormat,jo.utcParse,jo}function _P(e){return new Date(e)}function $P(e){return e instanceof Date?+e:+new Date(+e)}function hp(e,t,n,r,i,o,a,s,u,l){var c=V0(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),v=l("%b %d"),x=l("%B"),b=l("%Y");function _(w){return(u(w)<w?d:s(w)<w?p:a(w)<w?m:o(w)<w?g:r(w)<w?i(w)<w?y:v:n(w)<w?x:b)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,$P)):h().map(_P)},c.ticks=function(w){var $=h();return e($[0],$[$.length-1],w==null?10:w)},c.tickFormat=function(w,$){return $==null?_:l($)},c.nice=function(w){var $=h();return(!w||typeof w.range!="function")&&(w=t($[0],$[$.length-1],w==null?10:w)),w?h(k2($,w)):c},c.copy=function(){return ds(c,hp(e,t,n,r,i,o,a,s,u,l))},c}function mw(){return gn.apply(hp(Z2,J2,An,ws,Li,Ni,ys,gs,En,pw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function yw(){return gn.apply(hp(K2,Q2,Nn,_s,zi,Bo,vs,ms,En,gw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pc(){var e=0,t=1,n,r,i,o,a=Tt,s=!1,u;function l(f){return f==null||isNaN(f=+f)?u:a(i===0?.5:(f=(o(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(a=f,l):a};function c(f){return function(h){var d,p;return arguments.length?([d,p]=h,a=f(d,p),l):[a(0),a(1)]}}return l.range=c(Ai),l.rangeRound=c(hs),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),l}}function Gr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function vw(){var e=Yr(pc()(Tt));return e.copy=function(){return Gr(e,vw())},xr.apply(e,arguments)}function bw(){var e=K0(pc()).domain([1,10]);return e.copy=function(){return Gr(e,bw()).base(e.base())},xr.apply(e,arguments)}function xw(){var e=Z0(pc());return e.copy=function(){return Gr(e,xw()).constant(e.constant())},xr.apply(e,arguments)}function dp(){var e=ep(pc());return e.copy=function(){return Gr(e,dp()).exponent(e.exponent())},xr.apply(e,arguments)}function SP(){return dp.apply(null,arguments).exponent(.5)}function ww(){var e=[],t=Tt;function n(r){if(r!=null&&!isNaN(r=+r))return t((as(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ur),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>KC(e,o/r))},n.copy=function(){return ww(t).domain(e)},xr.apply(n,arguments)}function gc(){var e=0,t=.5,n=1,r=1,i,o,a,s,u,l=Tt,c,f=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-o)*(r*m<r*o?s:u),l(f?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),o=c(t=+t),a=c(n=+n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d):[e,t,n]},d.clamp=function(m){return arguments.length?(f=!!m,d):f},d.interpolator=function(m){return arguments.length?(l=m,d):l};function p(m){return function(g){var y,v,x;return arguments.length?([y,v,x]=g,l=m2(m,[y,v,x]),d):[l(0),l(.5),l(1)]}}return d.range=p(Ai),d.rangeRound=p(hs),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return c=m,i=m(e),o=m(t),a=m(n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d}}function _w(){var e=Yr(gc()(Tt));return e.copy=function(){return Gr(e,_w())},xr.apply(e,arguments)}function $w(){var e=K0(gc()).domain([.1,1,10]);return e.copy=function(){return Gr(e,$w()).base(e.base())},xr.apply(e,arguments)}function Sw(){var e=Z0(gc());return e.copy=function(){return Gr(e,Sw()).constant(e.constant())},xr.apply(e,arguments)}function pp(){var e=ep(gc());return e.copy=function(){return Gr(e,pp()).exponent(e.exponent())},xr.apply(e,arguments)}function MP(){return pp.apply(null,arguments).exponent(.5)}var TP=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zl,scalePoint:$x,scaleIdentity:T2,scaleLinear:X0,scaleLog:Q0,scaleSymlog:J0,scaleOrdinal:Ql,scaleImplicit:O0,scalePow:dc,scaleSqrt:R2,scaleRadial:tp,scaleQuantile:np,scaleQuantize:rp,scaleThreshold:ip,scaleTime:mw,scaleUtc:yw,scaleSequential:vw,scaleSequentialLog:bw,scaleSequentialPow:dp,scaleSequentialSqrt:SP,scaleSequentialSymlog:xw,scaleSequentialQuantile:ww,scaleDiverging:_w,scaleDivergingLog:$w,scaleDivergingPow:pp,scaleDivergingSqrt:MP,scaleDivergingSymlog:Sw,tickFormat:M2},Symbol.toStringTag,{value:"Module"}));function kP(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function OP(e,t){t.range&&("padding"in e,e.range(t.range))}function CP(e,t){"align"in e&&"align"in t&&typeof t.align!="undefined"&&e.align(t.align)}function PP(e,t){"base"in e&&"base"in t&&typeof t.base!="undefined"&&e.base(t.base)}function EP(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp!="undefined"&&e.clamp(t.clamp)}function AP(e,t){"constant"in e&&"constant"in t&&typeof t.constant!="undefined"&&e.constant(t.constant)}function NP(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent!="undefined"&&e.exponent(t.exponent)}var RP=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Ai,interpolateArray:g7,interpolateBasis:Yx,interpolateBasisClosed:Gx,interpolateDate:Jx,interpolateDiscrete:v7,interpolateHue:b7,interpolateNumber:Pn,interpolateNumberArray:j0,interpolateObject:e2,interpolateRound:hs,interpolateString:t2,interpolateTransformCss:_7,interpolateTransformSvg:$7,interpolateZoom:k7,interpolateRgb:sc,interpolateRgbBasis:d7,interpolateRgbBasisClosed:p7,interpolateHsl:s2,interpolateHslLong:u2,interpolateLab:l2,interpolateHcl:f2,interpolateHclLong:h2,interpolateCubehelix:p2,interpolateCubehelixLong:g2,piecewise:m2,quantize:O7},Symbol.toStringTag,{value:"Module"})),Mw={lab:l2,hcl:f2,"hcl-long":h2,hsl:s2,"hsl-long":u2,cubehelix:p2,"cubehelix-long":g2,rgb:sc};function LP(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Mw[e]}var t=e.type,n=e.gamma,r=Mw[t];return typeof n=="undefined"?r:r.gamma(n)}function DP(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate!="undefined"){var n=LP(t.interpolate);e.interpolate(n)}}var IP=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:Ue,utcMillisecond:Fo,utcMilliseconds:D2,timeMillisecond:Fo,timeMilliseconds:D2,utcSecond:En,utcSeconds:z2,timeSecond:En,timeSeconds:z2,timeMinute:gs,timeMinutes:Z7,utcMinute:ms,utcMinutes:J7,timeHour:ys,timeHours:e9,utcHour:vs,utcHours:t9,timeDay:Ni,timeDays:n9,utcDay:Bo,utcDays:r9,unixDay:lp,unixDays:i9,timeWeek:Li,timeWeeks:H2,timeSunday:Li,timeSundays:H2,timeMonday:bs,timeMondays:o9,timeTuesday:F2,timeTuesdays:a9,timeWednesday:B2,timeWednesdays:s9,timeThursday:Di,timeThursdays:u9,timeFriday:j2,timeFridays:l9,timeSaturday:W2,timeSaturdays:c9,utcWeek:zi,utcWeeks:G2,utcSunday:zi,utcSundays:G2,utcMonday:xs,utcMondays:f9,utcTuesday:q2,utcTuesdays:h9,utcWednesday:U2,utcWednesdays:d9,utcThursday:Fi,utcThursdays:p9,utcFriday:V2,utcFridays:g9,utcSaturday:Y2,utcSaturdays:m9,timeMonth:ws,timeMonths:y9,utcMonth:_s,utcMonths:v9,timeYear:An,timeYears:b9,utcYear:Nn,utcYears:x9,utcTicks:K2,utcTickInterval:Q2,timeTicks:Z2,timeTickInterval:J2},Symbol.toStringTag,{value:"Module"})),zP=new Date(Date.UTC(2020,1,2,3,4,5)),FP="%Y-%m-%d %H:%M";function Tw(e){var t=e.tickFormat(1,FP)(zP);return t==="2020-02-02 03:04"}var kw={day:Ni,hour:ys,minute:gs,month:ws,second:En,week:Li,year:An},Ow={day:Bo,hour:vs,minute:ms,month:_s,second:En,week:zi,year:Nn};function BP(e,t){if("nice"in t&&typeof t.nice!="undefined"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,i=Tw(r);if(typeof n=="string")r.nice(i?Ow[n]:kw[n]);else{var o=n.interval,a=n.step,s=(i?Ow[o]:kw[o]).every(a);s!=null&&r.nice(s)}}}}function jP(e,t){"padding"in e&&"padding"in t&&typeof t.padding!="undefined"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner!="undefined"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter!="undefined"&&e.paddingOuter(t.paddingOuter)}function WP(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}function HP(e,t){"round"in t&&typeof t.round!="undefined"&&(t.round&&"interpolate"in t&&typeof t.interpolate!="undefined"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(hs))}function qP(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown!="undefined"&&e.unknown(t.unknown)}function UP(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],i=n[1],o=i<r,a=o?[i,r]:[r,i],s=a[0],u=a[1],l=[Math.min(0,s),Math.max(0,u)];e.domain(o?l.reverse():l)}}var Cw=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],VP={domain:kP,nice:BP,zero:UP,interpolate:DP,round:HP,align:CP,base:PP,clamp:EP,constant:AP,exponent:NP,padding:jP,range:OP,reverse:WP,unknown:qP};function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),i=Cw.filter(function(o){return r.has(o)});return function(a,s){return typeof s!="undefined"&&i.forEach(function(u){VP[u](a,s)}),a}}var YP=kt("domain","range","reverse","align","padding","round");function Bi(e){return YP(Zl(),e)}var GP=kt("domain","range","reverse","align","padding","round");function Pw(e){return GP($x(),e)}var XP=kt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Wo(e){return XP(X0(),e)}var KP=kt("domain","range","clamp","nice","round","unknown");function QP(e){return KP(tp(),e)}var ZP=kt("domain","range","reverse","clamp","interpolate","nice","round");function Ew(e){return ZP(mw(),e)}var JP=kt("domain","range","reverse","clamp","interpolate","nice","round");function Aw(e){return JP(yw(),e)}var eE=kt("domain","range","reverse","base","clamp","interpolate","nice","round");function Nw(e){return eE(Q0(),e)}var tE=kt("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function Rw(e){return tE(dc(),e)}var nE=kt("domain","range","reverse","unknown");function Ho(e){return nE(Ql(),e)}var rE=kt("domain","range","reverse","nice","zero");function Lw(e){return rE(rp(),e)}var iE=kt("domain","range","reverse");function Dw(e){return iE(np(),e)}var oE=kt("domain","range","reverse","clamp","constant","nice","zero","round");function Iw(e){return oE(J0(),e)}var aE=kt("domain","range","reverse");function zw(e){return aE(ip(),e)}var sE=kt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Fw(e){return sE(R2(),e)}function Ts(e){if(typeof e!="undefined"&&"type"in e)switch(e.type){case"linear":return Wo(e);case"log":return Nw(e);case"pow":return Rw(e);case"sqrt":return Fw(e);case"symlog":return Iw(e);case"time":return Ew(e);case"utc":return Aw(e);case"quantile":return Dw(e);case"quantize":return Lw(e);case"threshold":return zw(e);case"ordinal":return Ho(e);case"point":return Pw(e);case"band":return Bi(e)}return Wo(e)}var uE=kt.apply(void 0,Cw);function lE(e,t){return uE(e.copy(),t)}function cE(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?e.exponent()===.5?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?Tw(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}function mc(e){if((typeof e=="function"||typeof e=="object"&&!!e)&&"valueOf"in e){var t=e.valueOf();if(typeof t=="number")return t}return e}function yc(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter(function(r,i,o){return t==null||o.length<=t||i%Math.round((o.length-1)/t)===0})}function Bw(e){return e==null?void 0:e.toString()}var fE=new Set(["linear","pow","quantize","sqrt","symlog"]);function gp(e){return fE.has(e.type)}var hE=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Bi,scalePoint:Pw,scaleLinear:Wo,scaleRadial:QP,scaleTime:Ew,scaleUtc:Aw,scaleLog:Nw,scalePower:Rw,scaleOrdinal:Ho,scaleQuantize:Lw,scaleQuantile:Dw,scaleSymlog:Iw,scaleThreshold:zw,scaleSqrt:Fw,createScale:Ts,updateScale:lE,inferScaleType:cE,coerceNumber:mc,getTicks:yc,toString:Bw,scaleCanBeZeroed:gp},Symbol.toStringTag,{value:"Module"})),dE=jw;function jw(e,t,n){e instanceof RegExp&&(e=Ww(e,n)),t instanceof RegExp&&(t=Ww(t,n));var r=Hw(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Ww(e,t){var n=t.match(e);return n?n[0]:null}jw.range=Hw;function Hw(e,t,n){var r,i,o,a,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<o&&(o=i,a=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[o,a])}return s}var pE=qw;function qw(e,t,n){e instanceof RegExp&&(e=Uw(e,n)),t instanceof RegExp&&(t=Uw(t,n));var r=Vw(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function Uw(e,t){var n=t.match(e);return n?n[0]:null}qw.range=Vw;function Vw(e,t,n){var r,i,o,a,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){if(e===t)return[u,l];for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<o&&(o=i,a=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[o,a])}return s}var gE=pE,mE=Yw;function Yw(e,t,n){var r=e;return yE(e,t).reduce(function(i,o){return i.replace(o.functionIdentifier+"("+o.matches.body+")",vE(o.matches.body,o.functionIdentifier,n,r,t))},e)}function yE(e,t){var n=[],r=typeof t=="string"?new RegExp("\\b("+t+")\\("):t;do{var i=r.exec(e);if(!i)return n;if(i[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=i[1],a=i.index,s=gE("(",")",e.substring(a));if(!s||s.start!==i[0].length-1)throw new SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:o}),e=s.post}while(r.test(e));return n}function vE(e,t,n,r,i){return n(Yw(e,i,n),t,r)}var Ot=function(e){this.value=e};Ot.math={isDegree:!0,acos:function(e){return Ot.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return Ot.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return Ot.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,r=e-t,i=t;i<r&&(i=r,r=t);for(var o=i+1;o<=e;o++)n*=o;return n/Ot.math.fact(r)},changeSign:function(e){return-e},cos:function(e){return Ot.math.isDegree&&(e=Ot.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,i=e;i<=t;i++)r*=Number(n.postfixEval({n:i}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,i=e;i<=t;i++)r+=Number(n.postfixEval({n:i}));return r},sin:function(e){return Ot.math.isDegree&&(e=Ot.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return Ot.math.isDegree&&(e=Ot.math.toRadian(e)),Math.tan(e)},tanh:function(e){return Ot.sinha(e)/Ot.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},Ot.Exception=function(e){this.message=e};var bE=Ot,de=bE;function Ct(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var Xr=[{token:"sin",show:"sin",type:0,value:de.math.sin},{token:"cos",show:"cos",type:0,value:de.math.cos},{token:"tan",show:"tan",type:0,value:de.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:de.math.P},{token:"C",show:"C",type:10,value:de.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:de.math.asin},{token:"acos",show:"acos",type:0,value:de.math.acos},{token:"atan",show:"atan",type:0,value:de.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:de.math.cosh},{token:"acosh",show:"acosh",type:0,value:de.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:de.math.div},{token:"!",show:"!",type:7,value:de.math.fact},{token:"tanh",show:"tanh",type:0,value:de.math.tanh},{token:"atanh",show:"atanh",type:0,value:de.math.atanh},{token:"Mod",show:" Mod ",type:2,value:de.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:de.math.mul},{token:"sinh",show:"sinh",type:0,value:de.math.sinh},{token:"asinh",show:"asinh",type:0,value:de.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:de.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:de.math.add},{token:"-",show:"-",type:9,value:de.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:de.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:de.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:de.math.and}],mp={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},vc=0;vc<Xr.length;vc++)Xr[vc].precedence=mp[Xr[vc].type];var qn={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},qo={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},xE={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},Rn={},ks={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},wE={1:!0},Pt=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function _E(e,t,n,r){for(var i=0;i<r;i++)if(e[n+i]!==t[i])return!1;return!0}de.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},de.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;e[t].type===de.tokenTypes.FUNCTION_WITH_N_ARGS&&e[t].numberOfArguments===void 0&&(e[t].numberOfArguments=2),Pt[n]=Pt[n]||[];for(var i=0;i<Pt[n].length;i++)if(e[t].token===Pt[n][i]){r=Gw(Pt[n][i],Xr);break}r===-1?(Xr.push(e[t]),e[t].precedence=mp[e[t].type],Pt.length<=e[t].token.length&&(Pt[e[t].token.length]=[]),Pt[e[t].token.length].push(e[t].token)):(Xr[r]=e[t],e[t].precedence=mp[e[t].type])}};function Gw(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function $E(e){for(var t=[],n=e.length,r,i,o,a=0;a<n;a++)if(!(a<n-1&&e[a]===" "&&e[a+1]===" ")){for(r="",i=e.length-a>Pt.length-2?Pt.length-1:e.length-a;i>0;i--)if(Pt[i]!==void 0)for(o=0;o<Pt[i].length;o++)_E(e,Pt[i][o],a,i)&&(r=Pt[i][o],o=Pt[i].length,i=0);if(a+=r.length-1,r==="")throw new de.Exception("Can't understand after "+e.slice(a));t.push(Xr[Gw(r,Xr)])}return t}var SE={value:de.math.changeSign,type:0,pre:21,show:"-"},bc={value:")",show:")",type:5,pre:0},Os={value:"(",type:4,pre:0,show:"("};de.lex=function(e,t){var n=[Os],r=[],i=e,o=qn,a=0,s=Rn,u="",l;typeof t!="undefined"&&de.addToken(t);var c={},f=$E(i);for(l=0;l<f.length;l++){var h=f[l];if(h.type===14){if(l>0&&l<f.length-1&&f[l+1].type===1&&(f[l-1].type===1||f[l-1].type===6))throw new de.Exception("Unexpected Space");continue}var d=h.token,p=h.type,m=h.value,g=h.precedence,y=h.show,v=n[n.length-1],x;for(x=r.length;x--&&r[x]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(p)!==-1){if(o[p]!==!0)throw new de.Exception(d+" is not allowed after "+u);n.push(bc),o=qo,s=ks,r.pop()}if(o[p]!==!0)throw new de.Exception(d+" is not allowed after "+u);if(s[p]===!0&&(p=2,m=de.math.mul,y="&times;",g=3,l=l-1),c={value:m,type:p,pre:g,show:y,numberOfArguments:h.numberOfArguments},p===0)o=qn,s=Rn,Ct(r,2),n.push(c),f[l+1].type!==4&&(n.push(Os),r.push(2));else if(p===1)v.type===1?(v.value+=m,Ct(r,1)):n.push(c),o=qo,s=xE;else if(p===2)o=qn,s=Rn,Ct(r,2),n.push(c);else if(p===3)n.push(c),o=qo,s=ks;else if(p===4)Ct(r,1),a++,o=qn,s=Rn,n.push(c);else if(p===5){if(!a)throw new de.Exception("Closing parenthesis are more than opening one, wait What!!!");a--,o=qo,s=ks,n.push(c),Ct(r,1)}else if(p===6){if(v.hasDec)throw new de.Exception("Two decimals are not allowed in one number");v.type!==1&&(v={value:0,type:1,pre:0},n.push(v)),o=wE,Ct(r,1),s=Rn,v.value+=m,v.hasDec=!0}else p===7&&(o=qo,s=ks,Ct(r,1),n.push(c));p===8?(o=qn,s=Rn,Ct(r,h.numberOfArguments+2),n.push(c),f[l+1].type!==4&&(n.push(Os),r.push(h.numberOfArguments+2))):p===9?(v.type===9?v.value===de.math.add?(v.value=m,v.show=y,Ct(r,1)):v.value===de.math.sub&&y==="-"&&(v.value=de.math.add,v.show="+",Ct(r,1)):v.type!==5&&v.type!==7&&v.type!==1&&v.type!==3&&v.type!==13?d==="-"&&(o=qn,s=Rn,Ct(r,2).push(2),n.push(SE),n.push(Os)):(n.push(c),Ct(r,2)),o=qn,s=Rn):p===10?(o=qn,s=Rn,Ct(r,2),n.push(c)):p===11?(o=qn,s=Rn,n.push(c)):p===12?(o=qn,s=Rn,Ct(r,6),n.push(c),f[l+1].type!==4&&(n.push(Os),r.push(6))):p===13&&(o=qo,s=ks,n.push(c)),Ct(r,-1),u=d}for(x=r.length;x--;)n.push(bc);if(o[5]!==!0)throw new de.Exception("complete the expression");for(;a--;)n.push(bc);return n.push(bc),new de(n)};var ME=de,yp=ME;yp.prototype.toPostfix=function(){for(var e=[],t,n,r,i,o,a=[{value:"(",type:4,pre:0}],s=this.value,u=1;u<s.length;u++)if(s[u].type===1||s[u].type===3||s[u].type===13)s[u].type===1&&(s[u].value=Number(s[u].value)),e.push(s[u]);else if(s[u].type===4)a.push(s[u]);else if(s[u].type===5)for(;(n=a.pop()).type!==4;)e.push(n);else if(s[u].type===11){for(;(n=a.pop()).type!==4;)e.push(n);a.push(n)}else{t=s[u],i=t.pre,o=a[a.length-1],r=o.pre;var l=o.value=="Math.pow"&&t.value=="Math.pow";if(i>r)a.push(t);else{for(;r>=i&&!l||l&&i<r;)n=a.pop(),o=a[a.length-1],e.push(n),r=o.pre,l=t.value=="Math.pow"&&o.value=="Math.pow";a.push(t)}}return new yp(e)};var TE=yp,Cs=TE;Cs.prototype.postfixEval=function(e){e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t=[],n,r,i,o=this.value,a=typeof e.n!="undefined",s=0;s<o.length;s++)if(o[s].type===1)t.push({value:o[s].value,type:1});else if(o[s].type===3)t.push({value:e[o[s].value],type:1});else if(o[s].type===0)typeof t[t.length-1].type=="undefined"?t[t.length-1].value.push(o[s]):t[t.length-1].value=o[s].value(t[t.length-1].value);else if(o[s].type===7)typeof t[t.length-1].type=="undefined"?t[t.length-1].value.push(o[s]):t[t.length-1].value=o[s].value(t[t.length-1].value);else if(o[s].type===8){for(var u=[],l=0;l<o[s].numberOfArguments;l++)u.push(t.pop().value);t.push({type:1,value:o[s].value.apply(o[s],u.reverse())})}else o[s].type===10?(n=t.pop(),r=t.pop(),typeof r.type=="undefined"?(r.value=r.concat(n),r.value.push(o[s]),t.push(r)):typeof n.type=="undefined"?(n.unshift(r),n.push(o[s]),t.push(n)):t.push({type:1,value:o[s].value(r.value,n.value)})):o[s].type===2||o[s].type===9?(n=t.pop(),r=t.pop(),typeof r.type=="undefined"?(r=r.concat(n),r.push(o[s]),t.push(r)):typeof n.type=="undefined"?(n.unshift(r),n.push(o[s]),t.push(n)):t.push({type:1,value:o[s].value(r.value,n.value)})):o[s].type===12?(n=t.pop(),typeof n.type!="undefined"&&(n=[n]),r=t.pop(),i=t.pop(),t.push({type:1,value:o[s].value(i.value,r.value,new Cs(n))})):o[s].type===13&&(a?t.push({value:e[o[s].value],type:3}):t.push([o[s]]));if(t.length>1)throw new Cs.Exception("Uncaught Syntax error");return t[0].value>1e15?"Infinity":parseFloat(t[0].value.toFixed(15))},Cs.eval=function(e,t,n){return typeof t=="undefined"?this.lex(e).toPostfix().postfixEval():typeof n=="undefined"?typeof t.length!="undefined"?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)};var kE=Cs,Xw=kE;Xw.prototype.formulaEval=function(){for(var e,t,n,r=[],i=this.value,o=0;o<i.length;o++)i[o].type===1||i[o].type===3?r.push({value:i[o].type===3?i[o].show:i[o].value,type:1}):i[o].type===13?r.push({value:i[o].show,type:1}):i[o].type===0?r[r.length-1]={value:i[o].show+(i[o].show!="-"?"(":"")+r[r.length-1].value+(i[o].show!="-"?")":""),type:0}:i[o].type===7?r[r.length-1]={value:(r[r.length-1].type!=1?"(":"")+r[r.length-1].value+(r[r.length-1].type!=1?")":"")+i[o].show,type:7}:i[o].type===10?(e=r.pop(),t=r.pop(),i[o].show==="P"||i[o].show==="C"?r.push({value:"<sup>"+t.value+"</sup>"+i[o].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+"<sup>"+e.value+"</sup>",type:1})):i[o].type===2||i[o].type===9?(e=r.pop(),t=r.pop(),r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+i[o].show+(e.type!=1?"(":"")+e.value+(e.type!=1?")":""),type:i[o].type})):i[o].type===12&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value};var OE=Xw,CE=dE,PE=mE,EE=OE,AE=100,NE=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,vp,RE=LE;function LE(e,t){vp=0,t=Math.pow(10,t===void 0?5:t),e=e.replace(/\n+/g," ");function n(i,o,a){if(vp++>AE)throw vp=0,new Error("Call stack overflow for "+a);if(i==="")throw new Error(o+"(): '"+a+"' must contain a non-whitespace string");i=r(i,a);var s=DE(i);if(s.length>1||i.indexOf("var(")>-1)return o+"("+i+")";var u=s[0]||"";u==="%"&&(i=i.replace(/\b[0-9\.]+%/g,function(f){return parseFloat(f.slice(0,-1))*.01}));var l=i.replace(new RegExp(u,"gi"),""),c;try{c=EE.eval(l)}catch{return o+"("+i+")"}return u==="%"&&(c*=100),(o.length||u==="%")&&(c=Math.round(c*t)/t),c+=u,c}function r(i,o){i=i.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var a="",s=i,u;u=NE.exec(s);){u[0].index>0&&(a+=s.substring(0,u[0].index));var l=CE("(",")",s.substring([0].index));if(l.body==="")throw new Error("'"+i+"' must contain a non-whitespace string");var c=n(l.body,"",o);a+=l.pre+c,s=l.post}return a+s}return PE(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function DE(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)!i||!i[1]||(n.indexOf(i[1].toLowerCase())===-1&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}var bp=RE,IE=typeof Il=="object"&&Il&&Il.Object===Object&&Il,zE=IE,FE=zE,BE=typeof self=="object"&&self&&self.Object===Object&&self,jE=FE||BE||Function("return this")(),xc=jE,WE=xc,HE=WE.Symbol,Kw=HE,Qw=Kw,Zw=Object.prototype,qE=Zw.hasOwnProperty,UE=Zw.toString,Ps=Qw?Qw.toStringTag:void 0;function VE(e){var t=qE.call(e,Ps),n=e[Ps];try{e[Ps]=void 0;var r=!0}catch{}var i=UE.call(e);return r&&(t?e[Ps]=n:delete e[Ps]),i}var YE=VE,GE=Object.prototype,XE=GE.toString;function KE(e){return XE.call(e)}var QE=KE,Jw=Kw,ZE=YE,JE=QE,eA="[object Null]",tA="[object Undefined]",e_=Jw?Jw.toStringTag:void 0;function nA(e){return e==null?e===void 0?tA:eA:e_&&e_ in Object(e)?ZE(e):JE(e)}var t_=nA;function rA(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var wc=rA,iA=t_,oA=wc,aA="[object AsyncFunction]",sA="[object Function]",uA="[object GeneratorFunction]",lA="[object Proxy]";function cA(e){if(!oA(e))return!1;var t=iA(e);return t==sA||t==uA||t==aA||t==lA}var fA=cA,hA=xc,dA=hA["__core-js_shared__"],pA=dA,xp=pA,n_=function(){var e=/[^.]+$/.exec(xp&&xp.keys&&xp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gA(e){return!!n_&&n_ in e}var mA=gA,yA=Function.prototype,vA=yA.toString;function bA(e){if(e!=null){try{return vA.call(e)}catch{}try{return e+""}catch{}}return""}var xA=bA,wA=fA,_A=mA,$A=wc,SA=xA,MA=/[\\^$.*+?()[\]{}|]/g,TA=/^\[object .+?Constructor\]$/,kA=Function.prototype,OA=Object.prototype,CA=kA.toString,PA=OA.hasOwnProperty,EA=RegExp("^"+CA.call(PA).replace(MA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function AA(e){if(!$A(e)||_A(e))return!1;var t=wA(e)?EA:TA;return t.test(SA(e))}var NA=AA;function RA(e,t){return e==null?void 0:e[t]}var LA=RA,DA=NA,IA=LA;function zA(e,t){var n=IA(e,t);return DA(n)?n:void 0}var r_=zA,FA=r_,BA=FA(Object,"create"),_c=BA,i_=_c;function jA(){this.__data__=i_?i_(null):{},this.size=0}var WA=jA;function HA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var qA=HA,UA=_c,VA="__lodash_hash_undefined__",YA=Object.prototype,GA=YA.hasOwnProperty;function XA(e){var t=this.__data__;if(UA){var n=t[e];return n===VA?void 0:n}return GA.call(t,e)?t[e]:void 0}var KA=XA,QA=_c,ZA=Object.prototype,JA=ZA.hasOwnProperty;function eN(e){var t=this.__data__;return QA?t[e]!==void 0:JA.call(t,e)}var tN=eN,nN=_c,rN="__lodash_hash_undefined__";function iN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nN&&t===void 0?rN:t,this}var oN=iN,aN=WA,sN=qA,uN=KA,lN=tN,cN=oN;function Uo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Uo.prototype.clear=aN,Uo.prototype.delete=sN,Uo.prototype.get=uN,Uo.prototype.has=lN,Uo.prototype.set=cN;var fN=Uo;function hN(){this.__data__=[],this.size=0}var dN=hN;function pN(e,t){return e===t||e!==e&&t!==t}var gN=pN,mN=gN;function yN(e,t){for(var n=e.length;n--;)if(mN(e[n][0],t))return n;return-1}var $c=yN,vN=$c,bN=Array.prototype,xN=bN.splice;function wN(e){var t=this.__data__,n=vN(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():xN.call(t,n,1),--this.size,!0}var _N=wN,$N=$c;function SN(e){var t=this.__data__,n=$N(t,e);return n<0?void 0:t[n][1]}var MN=SN,TN=$c;function kN(e){return TN(this.__data__,e)>-1}var ON=kN,CN=$c;function PN(e,t){var n=this.__data__,r=CN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var EN=PN,AN=dN,NN=_N,RN=MN,LN=ON,DN=EN;function Vo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vo.prototype.clear=AN,Vo.prototype.delete=NN,Vo.prototype.get=RN,Vo.prototype.has=LN,Vo.prototype.set=DN;var IN=Vo,zN=r_,FN=xc,BN=zN(FN,"Map"),jN=BN,o_=fN,WN=IN,HN=jN;function qN(){this.size=0,this.__data__={hash:new o_,map:new(HN||WN),string:new o_}}var UN=qN;function VN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var YN=VN,GN=YN;function XN(e,t){var n=e.__data__;return GN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Sc=XN,KN=Sc;function QN(e){var t=KN(this,e).delete(e);return this.size-=t?1:0,t}var ZN=QN,JN=Sc;function eR(e){return JN(this,e).get(e)}var tR=eR,nR=Sc;function rR(e){return nR(this,e).has(e)}var iR=rR,oR=Sc;function aR(e,t){var n=oR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var sR=aR,uR=UN,lR=ZN,cR=tR,fR=iR,hR=sR;function Yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yo.prototype.clear=uR,Yo.prototype.delete=lR,Yo.prototype.get=cR,Yo.prototype.has=fR,Yo.prototype.set=hR;var dR=Yo,a_=dR,pR="Expected a function";function wp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(pR);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(wp.Cache||a_),n}wp.Cache=a_;var gR=wp,mR=gR,s_="__react_svg_text_measurement_id";function yR(e,t){try{var n=document.getElementById(s_);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",s_),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}var u_=mR(yR,function(e,t){return e+"_"+JSON.stringify(t)}),vR=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function bR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _p(e){return typeof e=="number"}function l_(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function xR(e){var t=e.verticalAnchor,n=t===void 0?"end":t,r=e.scaleToFit,i=r===void 0?!1:r,o=e.angle,a=e.width,s=e.lineHeight,u=s===void 0?"1em":s,l=e.capHeight,c=l===void 0?"0.71em":l,f=e.children,h=e.style,d=bR(e,vR),p=d.x,m=p===void 0?0:p,g=d.y,y=g===void 0?0:g,v=!l_(m)||!l_(y),x=q.useMemo(function(){var k=f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/);return{wordsWithWidth:k.map(function(S){return{word:S,wordWidth:u_(S,h)||0}}),spaceWidth:u_("\xA0",h)||0}},[f,h]),b=x.wordsWithWidth,_=x.spaceWidth,w=q.useMemo(function(){return v?[]:a||i?b.reduce(function(k,S){var T=S.word,A=S.wordWidth,P=k[k.length-1];if(P&&(a==null||i||(P.width||0)+A+_<a))P.words.push(T),P.width=P.width||0,P.width+=A+_;else{var O={words:[T],width:A};k.push(O)}return k},[]):[{words:f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[v,a,i,f,b,_]),$=q.useMemo(function(){var k=v?"":bp(n==="start"?"calc("+c+")":n==="middle"?"calc("+(w.length-1)/2+" * -"+u+" + ("+c+" / 2))":"calc("+(w.length-1)+" * -"+u+")");return k},[v,n,c,w.length,u]),M=q.useMemo(function(){var k=[];if(v)return"";if(_p(m)&&_p(y)&&_p(a)&&i&&w.length>0){var S=w[0].width||1,T=i==="shrink-only"?Math.min(a/S,1):a/S,A=T,P=m-T*m,O=y-A*y;k.push("matrix("+T+", 0, 0, "+A+", "+P+", "+O+")")}return o&&k.push("rotate("+o+", "+m+", "+y+")"),k.length>0?k.join(" "):""},[v,m,y,a,i,w,o]);return{wordsByLines:w,startDy:$,transform:M}}var wR=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function $p(){return $p=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},$p.apply(this,arguments)}function _R(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $R={overflow:"visible"};function c_(e){var t=e.dx,n=t===void 0?0:t,r=e.dy,i=r===void 0?0:r,o=e.textAnchor,a=o===void 0?"start":o,s=e.innerRef,u=e.innerTextRef;e.verticalAnchor,e.angle;var l=e.lineHeight,c=l===void 0?"1em":l;e.scaleToFit,e.capHeight,e.width;var f=_R(e,wR),h=f.x,d=h===void 0?0:h,p=f.fontSize,m=xR(e),g=m.wordsByLines,y=m.startDy,v=m.transform;return Z.default.createElement("svg",{ref:s,x:n,y:i,fontSize:p,style:$R},g.length>0?Z.default.createElement("text",$p({ref:u,transform:v},f,{textAnchor:a}),g.map(function(x,b){return Z.default.createElement("tspan",{key:b,x:d,dy:b===0?y:c},x.words.join(" "))})):null)}var SR={top:"top",left:"left",right:"right",bottom:"bottom"},en=SR;function MR(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,i=e.range,o=e.tickLabelFontSize,a=e.tickLength,s=r===en.left||r===en.top?-1:1,u,l,c;if(r===en.top||r===en.bottom){var f=r===en.bottom&&typeof n.fontSize=="number"?n.fontSize:0;u=(Number(i[0])+Number(i[i.length-1]))/2,l=s*(a+t+o+f)}else u=s*((Number(i[0])+Number(i[i.length-1]))/2),l=-(a+t),c="rotate("+s*90+")";return{x:u,y:l,transform:c}}function Es(){return Es=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},Es.apply(this,arguments)}function TR(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,o=e.tickComponent,a=e.tickLabelProps,s=e.tickStroke,u=s===void 0?"#222":s,l=e.tickTransform,c=e.ticks,f=e.strokeWidth,h=e.tickLineProps;return c.map(function(d){var p,m=d.value,g=d.index,y=d.from,v=d.to,x=d.formattedValue,b=(p=a[g])!=null?p:{},_=Math.max(10,typeof b.fontSize=="number"&&b.fontSize||0),w=v.y+(n&&r!==en.top?_:0);return Z.default.createElement(je,{key:"visx-tick-"+m+"-"+g,className:Ge("visx-axis-tick",i),transform:l},!t&&Z.default.createElement(sx,Es({from:y,to:v,stroke:u,strokeWidth:f,strokeLinecap:"square"},h)),o?o(Es({},b,{x:v.x,y:w,formattedValue:x})):Z.default.createElement(c_,Es({x:v.x,y:w},b),x))})}function Mc(){return Mc=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},Mc.apply(this,arguments)}var f_={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function kR(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,o=e.hideTicks,a=e.horizontal,s=e.label,u=s===void 0?"":s,l=e.labelClassName,c=e.labelOffset,f=c===void 0?14:c,h=e.labelProps,d=h===void 0?f_:h,p=e.orientation,m=p===void 0?en.bottom:p,g=e.scale,y=e.stroke,v=y===void 0?"#222":y,x=e.strokeDasharray,b=e.strokeWidth,_=b===void 0?1:b,w=e.tickClassName,$=e.tickComponent,M=e.tickLineProps,k=e.tickLabelProps,S=e.tickLength,T=S===void 0?8:S,A=e.tickStroke,P=A===void 0?"#222":A,O=e.tickTransform,E=e.ticks,C=e.ticksComponent,R=C===void 0?TR:C,D=Mc({},f_,typeof k=="object"?k:null),L=E.map(function(W){var U=W.value,te=W.index;return typeof k=="function"?k(U,te,E):D}),F=Math.max.apply(Math,[10].concat(L.map(function(W){return typeof W.fontSize=="number"?W.fontSize:0})));return Z.default.createElement(Z.default.Fragment,null,R({hideTicks:o,horizontal:a,orientation:m,scale:g,tickClassName:w,tickComponent:$,tickLabelProps:L,tickStroke:P,tickTransform:O,ticks:E,strokeWidth:_,tickLineProps:M}),!i&&Z.default.createElement(sx,{className:Ge("visx-axis-line",n),from:t,to:r,stroke:v,strokeWidth:_,strokeDasharray:x}),u&&Z.default.createElement(c_,Mc({className:Ge("visx-axis-label",l)},MR({labelOffset:f,labelProps:d,orientation:m,range:g.range(),tickLabelFontSize:F,tickLength:T}),d),u))}function OR(e,t){t===void 0&&(t="center");var n=e;if(t!=="start"&&"bandwidth"in n){var r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),function(i){var o=n(i);return typeof o=="number"?o+r:o}}return e}function CR(e){var t=e;return"tickFormat"in t?t.tickFormat():Bw}var Un=function(){function e(n){var r=n.x,i=r===void 0?0:r,o=n.y,a=o===void 0?0:o;this.x=0,this.y=0,this.x=i,this.y=a}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}();function PR(e,t){return new Un({x:e.x+t.x,y:e.y+t.y})}function ER(e,t){return new Un({x:e.x-t.x,y:e.y-t.y})}var AR=Object.freeze(Object.defineProperty({__proto__:null,Point:Un,sumPoints:PR,subtractPoints:ER},Symbol.toStringTag,{value:"Module"}));function Tc(e,t){var n=e.x,r=e.y;return new Un(t?{x:n,y:r}:{x:r,y:n})}function Sp(){return Sp=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},Sp.apply(this,arguments)}var Mp=0;function NR(e){return e===void 0&&(e=Mp),typeof e=="number"?{start:e,end:e}:Sp({start:Mp,end:Mp},e)}var RR=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function Tp(){return Tp=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},Tp.apply(this,arguments)}function LR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function kp(e){var t=e.children,n=t===void 0?kR:t,r=e.axisClassName,i=e.hideAxisLine,o=i===void 0?!1:i,a=e.hideTicks,s=a===void 0?!1:a,u=e.hideZero,l=u===void 0?!1:u,c=e.left,f=c===void 0?0:c,h=e.numTicks,d=h===void 0?10:h,p=e.orientation,m=p===void 0?en.bottom:p,g=e.rangePadding,y=g===void 0?0:g,v=e.scale,x=e.tickFormat,b=e.tickLength,_=b===void 0?8:b,w=e.tickValues,$=e.top,M=$===void 0?0:$,k=LR(e,RR),S=x!=null?x:CR(v),T=m===en.left,A=m===en.top,P=A||m===en.bottom,O=OR(v),E=T||A?-1:1,C=v.range(),R=NR(y),D=Tc({x:Number(C[0])+.5-R.start,y:0},P),L=Tc({x:Number(C[C.length-1])+.5+R.end,y:0},P),F=(w!=null?w:yc(v,d)).filter(function(U){return!l||U!==0&&U!=="0"}).map(function(U,te){return{value:U,index:te}}),W=F.map(function(U){var te=U.value,Q=U.index,J=mc(O(te));return{value:te,index:Q,from:Tc({x:J,y:0},P),to:Tc({x:J,y:_*E},P),formattedValue:S(te,Q,F)}});return Z.default.createElement(je,{className:Ge("visx-axis",r),top:M,left:f},n(Tp({},k,{axisFromPoint:D,axisToPoint:L,hideAxisLine:o,hideTicks:s,hideZero:l,horizontal:P,numTicks:d,orientation:m,rangePadding:y,scale:v,tickFormat:S,tickLength:_,tickPosition:O,tickSign:E,ticks:W})))}var DR=["axisClassName","labelOffset","tickLength","tickLabelProps"];function kc(){return kc=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},kc.apply(this,arguments)}function IR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var zR={dx:"-0.25em",dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"end"};function FR(e){var t=e.axisClassName,n=e.labelOffset,r=n===void 0?36:n,i=e.tickLength,o=i===void 0?8:i,a=e.tickLabelProps,s=IR(e,DR),u=typeof a=="function"?a:kc({},zR,a);return Z.default.createElement(kp,kc({axisClassName:Ge("visx-axis-left",t),labelOffset:r,orientation:en.left,tickLabelProps:u,tickLength:o},s))}var BR=["axisClassName","labelOffset","tickLength","tickLabelProps"];function Oc(){return Oc=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},Oc.apply(this,arguments)}function jR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var WR={dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"middle"};function HR(e){var t=e.axisClassName,n=e.labelOffset,r=n===void 0?8:n,i=e.tickLength,o=i===void 0?8:i,a=e.tickLabelProps,s=jR(e,BR),u=typeof a=="function"?a:Oc({},WR,a);return Z.default.createElement(kp,Oc({axisClassName:Ge("visx-axis-bottom",t),labelOffset:r,orientation:en.bottom,tickLabelProps:u,tickLength:o},s))}const h_=({value:e,yScale:t,parentWidth:n})=>{var u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$,M,k,S,T;const i=typeof t.bandwidth=="function";let o=[];i?o=t.domain():o=t.ticks();const s=Math.max(...o.map(A=>String(A||"").length))*7+10;return z(FR,{numTicks:i?t.domain().length:(u=e.main)==null?void 0:u.numTicks,scale:t,top:0,label:(l=e.main)==null?void 0:l.leftLabel,tickStroke:((f=(c=e.style)==null?void 0:c.labelStyle)==null?void 0:f.tickColor)!==void 0?(d=(h=e.style)==null?void 0:h.labelStyle)==null?void 0:d.tickColor:"none",strokeWidth:(m=(p=e.style)==null?void 0:p.labelStyle)==null?void 0:m.rightAxisWidth,hideTicks:(g=e.main)==null?void 0:g.hideLeftTicks,labelOffset:s||((v=(y=e.style)==null?void 0:y.labelStyle)==null?void 0:v.leftLabelOffset),labelProps:{fill:(b=(x=e.style)==null?void 0:x.labelStyle)==null?void 0:b.labelColor,fontSize:(w=(_=e.style)==null?void 0:_.labelStyle)==null?void 0:w.fontSize,fontWeight:(M=($=e.style)==null?void 0:$.labelStyle)==null?void 0:M.fontWeight,fontFamily:(S=(k=e.style)==null?void 0:k.labelStyle)==null?void 0:S.fontWeight},hideAxisLine:(T=e.main)==null?void 0:T.hideLeftAxisLine,tickLabelProps:A=>{var P,O;return{fill:(O=(P=e.style)==null?void 0:P.labelStyle)==null?void 0:O.tickLabelColor,fontSize:14,textAnchor:"end",dy:"0.33em"}}})},d_=({data:e,yMax:t,value:n,xScale:r,parentWidth:i,left:o})=>{var f,h,d,p,m,g,y,v,x,b,_,w,$;const s=typeof r.bandwidth=="function";let u=[];s?u=r.domain():u=r.ticks();const c=Math.max(...u.map(M=>String(M||"").length))*5+10;return z(HR,{numTicks:s?r.domain().length:(f=n.main)==null?void 0:f.numTicks,top:t,left:o,hideTicks:(h=n.main)==null?void 0:h.hideTicks,hideAxisLine:((d=n.main)==null?void 0:d.hideBottomAxisLine)!==void 0?(p=n.main)==null?void 0:p.hideBottomAxisLine:!0,strokeWidth:(g=(m=n.style)==null?void 0:m.labelStyle)==null?void 0:g.bottomAxisWidth,scale:r,stroke:(v=(y=n.style)==null?void 0:y.labelStyle)==null?void 0:v.tickColor,labelOffset:c||((b=(x=n.style)==null?void 0:x.labelStyle)==null?void 0:b.bottomLabelOffset),label:(_=n.main)==null?void 0:_.bottomLabel,tickStroke:($=(w=n.style)==null?void 0:w.labelStyle)==null?void 0:$.tickColor,tickLabelProps:()=>{var M,k,S,T,A,P;return{fill:(k=(M=n.style)==null?void 0:M.labelStyle)==null?void 0:k.tickLabelColor,fontSize:((T=(S=n.style)==null?void 0:S.labelStyle)==null?void 0:T.tickFontSize)||18,textAnchor:(A=n.main)!=null&&A.bottomAxisAngle?"start":"middle",angle:(P=n.main)!=null&&P.bottomAxisAngle?45:0}}})};var qR=["tooltipOpen"];function UR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Cc(){return Cc=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},Cc.apply(this,arguments)}function As(e){var t=q.useState(Cc({tooltipOpen:!1},e)),n=t[0],r=t[1],i=q.useCallback(function(a){return r(typeof a=="function"?function(s){s.tooltipOpen;var u=UR(s,qR);return Cc({},a(u),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:a.tooltipLeft,tooltipTop:a.tooltipTop,tooltipData:a.tooltipData})},[r]),o=q.useCallback(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}}function Op(e,t,n){var r,i,o,a,s;t==null&&(t=100);function u(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(o,i),o=i=null))}var l=function(){o=this,i=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return l.clear=function(){r&&(clearTimeout(r),r=null)},l.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},l}Op.debounce=Op;var p_=Op;function VR(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=r||(typeof window=="undefined"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,s]=q.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=q.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),l=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,f=q.useRef(!1);q.useEffect(()=>(f.current=!0,()=>void(f.current=!1)));const[h,d,p]=q.useMemo(()=>{const v=()=>{if(!u.current.element)return;const{left:x,top:b,width:_,height:w,bottom:$,right:M,x:k,y:S}=u.current.element.getBoundingClientRect(),T={left:x,top:b,width:_,height:w,bottom:$,right:M,x:k,y:S};u.current.element instanceof HTMLElement&&i&&(T.height=u.current.element.offsetHeight,T.width=u.current.element.offsetWidth),Object.freeze(T),f.current&&!KR(u.current.lastBounds,T)&&s(u.current.lastBounds=T)};return[v,c?p_(v,c):v,l?p_(v,l):v]},[s,i,l,c]);function m(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(v=>v.removeEventListener("scroll",p,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){!u.current.element||(u.current.resizeObserver=new o(p),u.current.resizeObserver.observe(u.current.element),n&&u.current.scrollContainers&&u.current.scrollContainers.forEach(v=>v.addEventListener("scroll",p,{capture:!0,passive:!0})))}const y=v=>{!v||v===u.current.element||(m(),u.current.element=v,u.current.scrollContainers=g_(v),g())};return GR(p,Boolean(n)),YR(d),q.useEffect(()=>{m(),g()},[n,p,d]),q.useEffect(()=>m,[]),[y,a,h]}function YR(e){q.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function GR(e,t){q.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function g_(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...g_(e.parentElement)]}const XR=["x","y","top","bottom","left","right","width","height"],KR=(e,t)=>XR.every(n=>e[n]===t[n]);function QR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cp(e,t)}var m_=function(e){QR(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return!this.node&&typeof document!="undefined"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?Po.default.createPortal(this.props.children,this.node):null},t}(Z.default.PureComponent);m_.propTypes={zIndex:B.oneOfType([B.number,B.string])};var ZR=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Pc(){return Pc=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},Pc.apply(this,arguments)}function JR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Go={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},Ec=Z.default.forwardRef(function(e,t){var n=e.className,r=e.top,i=e.left,o=e.offsetLeft,a=o===void 0?10:o,s=e.offsetTop,u=s===void 0?10:s,l=e.style,c=l===void 0?Go:l,f=e.children,h=e.unstyled,d=h===void 0?!1:h,p=e.applyPositionStyle,m=p===void 0?!1:p,g=JR(e,ZR);return Z.default.createElement("div",Pc({ref:t,className:Ge("visx-tooltip",n),style:Pc({top:r==null||u==null?r:r+u,left:i==null||a==null?i:i+a},m&&{position:"absolute"},!d&&c)},g),f)});Ec.propTypes={children:B.node,className:B.string,left:B.number,offsetLeft:B.number,offsetTop:B.number,top:B.number,applyPositionStyle:B.bool,unstyled:B.bool},Ec.displayName="Tooltip";function Pp(){return Pp=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},Pp.apply(this,arguments)}function eL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tL(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ep(e,t)}function Ep(e,t){return Ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ep(e,t)}var y_={top:0,right:0,bottom:0,left:0,width:0,height:0};function nL(e){var t;return t=function(n){tL(r,n);function r(o){var a;return a=n.call(this,o)||this,a.state={rect:void 0,parentRect:void 0},a.nodeRef=Z.default.createRef(),a.getRects=a.getRects.bind(eL(a)),a}var i=r.prototype;return i.componentDidMount=function(){var a,s=this;this.node=(a=this.nodeRef)!=null&&a.current?this.nodeRef.current:Po.default.findDOMNode(this),this.setState(function(){return s.getRects()})},i.getRects=function(){if(!this.node)return this.state;var a=this.node,s=a.parentNode,u=a.getBoundingClientRect?a.getBoundingClientRect():y_,l=s!=null&&s.getBoundingClientRect?s.getBoundingClientRect():y_;return{rect:u,parentRect:l}},i.render=function(){return Z.default.createElement(e,Pp({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(Z.default.PureComponent),t.displayName="withBoundingRects("+(e.displayName||"")+")",t}var v_=q.createContext({isFlippedVertically:!1,isFlippedHorizontally:!1}),rL=v_.Provider;v_.Consumer;var iL=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function Ac(){return Ac=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},Ac.apply(this,arguments)}function oL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function b_(e){var t=e.children;e.getRects;var n=e.left,r=n===void 0?0:n,i=e.offsetLeft,o=i===void 0?10:i,a=e.offsetTop,s=a===void 0?10:a,u=e.parentRect,l=e.rect,c=e.style,f=c===void 0?Go:c,h=e.top,d=h===void 0?0:h,p=e.unstyled,m=p===void 0?!1:p,g=e.nodeRef,y=oL(e,iL),v,x=!1,b=!1;if(l&&u){var _=r,w=d;if(u.width){var $=_+o+l.width-u.width,M=l.width-_-o;x=$>0&&$>M}else{var k=_+o+l.width-window.innerWidth,S=l.width-_-o;x=k>0&&k>S}if(u.height){var T=w+s+l.height-u.height,A=l.height-w-s;b=T>0&&T>A}else b=w+s+l.height>window.innerHeight;_=x?_-l.width-o:_+o,w=b?w-l.height-s:w+s,_=Math.round(_),w=Math.round(w),v="translate("+_+"px, "+w+"px)"}return Z.default.createElement(Ec,Ac({ref:g,style:Ac({left:0,top:0,transform:v},!m&&f)},y),Z.default.createElement(rL,{value:{isFlippedVertically:!b,isFlippedHorizontally:!x}},t))}b_.propTypes={nodeRef:B.oneOfType([B.string,B.func,B.object])};var aL=nL(b_),sL=["detectBounds","zIndex"],uL=["left","top","detectBounds","zIndex"];function x_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ap(e){var t=e===void 0?{}:e,n=t.detectBounds,r=n===void 0?!0:n,i=t.zIndex,o=x_(t,sL),a=VR(o),s=a[0],u=a[1],l=a[2],c=q.useState(!1),f=c[0],h=c[1];q.useEffect(function(){h(!1)},[]);var d=q.useMemo(function(){return function(p){var m=p.left,g=m===void 0?0:m,y=p.top,v=y===void 0?0:y,x=p.detectBounds,b=p.zIndex,_=x_(p,uL),w=x==null?r:x,$=b==null?i:b,M=w?aL:Ec,k=f?0:window.scrollX,S=f?0:window.scrollY,T=g+(u.left||0)+k,A=v+(u.top||0)+S;return z(m_,{zIndex:$,children:z(M,{left:T,top:A,..._})})}},[r,i,u.left,u.top,f]);return{containerRef:s,containerBounds:u,forceRefreshBounds:l,TooltipInPortal:d}}const w_=({value:e,theme:t,top:n,left:r,tooltipData:i,colorScale:o})=>{const a=i==null?void 0:i.groupData,s=i==null?void 0:i.highlightedBar,{TooltipInPortal:u}=Ap({detectBounds:!0,scroll:!0});return z(u,{style:{...Go,backgroundColor:t.myTheme.palette.secondary.main},top:n,left:r,children:Object.keys(a).map(l=>l===e.main.xAxisValue?null:ae("div",{style:{display:"flex",marginBottom:"2.5px",marginTop:"2.5px"},children:[z("span",{style:{backgroundColor:o(l),width:"15px",height:"15px",marginRight:"5px",border:(s==null?void 0:s.key)===l?"1px solid black":"1px solid transparent"}}),z("span",{style:{marginRight:"5px"},children:ae("span",{style:{fontWeight:(s==null?void 0:s.key)===l?"bold":"normal",color:"black"},children:[l,": "]})}),z("span",{style:{fontWeight:(s==null?void 0:s.key)===l?"bold":"normal",color:"black"},children:a[l]})]}))},Math.random())};var lL=["flexDirection","alignItems","margin","display","children"];function Np(){return Np=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},Np.apply(this,arguments)}function cL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Rp(e){var t=e.flexDirection,n=t===void 0?"row":t,r=e.alignItems,i=r===void 0?"center":r,o=e.margin,a=o===void 0?"0":o,s=e.display,u=s===void 0?"flex":s,l=e.children,c=cL(e,lL);return Z.default.createElement("div",Np({className:"visx-legend-item",style:{display:u,alignItems:i,flexDirection:n,margin:a}},c),l)}Rp.propTypes={alignItems:B.string,margin:B.oneOfType([B.string,B.number]),children:B.node,display:B.string};var fL=["flex","label","margin","align","children"];function Lp(){return Lp=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},Lp.apply(this,arguments)}function hL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Dp(e){var t=e.flex,n=t===void 0?"1":t,r=e.label,i=e.margin,o=i===void 0?"5px 0":i,a=e.align,s=a===void 0?"left":a,u=e.children,l=hL(e,fL);return Z.default.createElement("div",Lp({className:"visx-legend-label",style:{justifyContent:s,display:"flex",flex:n,margin:o}},l),u||r)}Dp.propTypes={align:B.string,label:B.node,flex:B.oneOfType([B.string,B.number]),margin:B.oneOfType([B.string,B.number]),children:B.node};function Ip(){return Ip=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},Ip.apply(this,arguments)}function zp(e){var t=e.fill,n=e.width,r=e.height,i=e.style;return Z.default.createElement("div",{style:Ip({width:n,height:r,background:t},i)})}zp.propTypes={fill:B.string,width:B.oneOfType([B.string,B.number]),height:B.oneOfType([B.string,B.number])};function __(e){var t=e.fill,n=e.width,r=e.height,i=e.style,o=typeof n=="string"||typeof n=="undefined"?0:n,a=typeof r=="string"||typeof r=="undefined"?0:r,s=Math.max(o,a),u=s/2;return Z.default.createElement("svg",{width:s,height:s},Z.default.createElement(je,{top:u,left:u},Z.default.createElement("circle",{r:u,fill:t,style:i})))}__.propTypes={fill:B.string,width:B.oneOfType([B.string,B.number]),height:B.oneOfType([B.string,B.number])};function $_(e){var t=e.fill,n=e.width,r=e.height,i=e.style,o=typeof r=="string"||typeof r=="undefined"?0:r,a=typeof(i==null?void 0:i.strokeWidth)=="number"?i==null?void 0:i.strokeWidth:2;return Z.default.createElement("svg",{width:n,height:r},Z.default.createElement(je,{top:o/2-a/2},Z.default.createElement("line",{x1:0,x2:n,y1:0,y2:0,stroke:t,strokeWidth:a,style:i})))}$_.propTypes={fill:B.string,width:B.oneOfType([B.string,B.number]),height:B.oneOfType([B.string,B.number])};function Ns(){return Ns=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},Ns.apply(this,arguments)}var Fp=function(){};function dL(e){var t=e.shape,n=t===void 0?"rect":t,r=e.fill,i=r===void 0?Fp:r,o=e.size,a=o===void 0?Fp:o,s=e.width,u=e.height,l=e.label,c=e.item,f=e.itemIndex,h=e.shapeStyle,d=h===void 0?Fp:h,p={width:s,height:u,item:c,itemIndex:f,label:l,fill:i(Ns({},l)),size:a(Ns({},l)),style:d(Ns({},l))};return typeof n=="string"?n==="circle"?Z.default.createElement(__,p):n==="line"?Z.default.createElement($_,p):Z.default.createElement(zp,p):Z.default.isValidElement(n)?Z.default.cloneElement(n,p):n?Z.default.createElement(n,p):null}function Nc(){return Nc=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},Nc.apply(this,arguments)}function S_(e){var t=e.shape,n=t===void 0?zp:t,r=e.width,i=e.height,o=e.margin,a=e.label,s=e.item,u=e.itemIndex,l=e.fill,c=e.size,f=e.shapeStyle;return Z.default.createElement("div",{className:"visx-legend-shape",style:{display:"flex",width:c?c(Nc({},a)):r,height:c?c(Nc({},a)):i,margin:o}},dL({shape:n,item:s,itemIndex:u,label:a,width:r,height:i,fill:l,shapeStyle:f}))}S_.propTypes={itemIndex:B.number.isRequired,margin:B.oneOfType([B.string,B.number]),width:B.oneOfType([B.string,B.number]),height:B.oneOfType([B.string,B.number])};function M_(e){return e&&typeof e=="object"&&"value"in e&&typeof e.value!="undefined"?e.value:e}function T_(e){return String(M_(e))}function pL(e){var t=e.scale,n=e.labelFormat;return function(r,i){return{datum:r,index:i,text:""+n(r,i),value:t(r)}}}var gL=["className","style","scale","shape","domain","fill","size","labelFormat","labelTransform","shapeWidth","shapeHeight","shapeMargin","shapeStyle","labelAlign","labelFlex","labelMargin","itemMargin","direction","itemDirection","legendLabelProps","children"];function Rs(){return Rs=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},Rs.apply(this,arguments)}function mL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yL={display:"flex"};function k_(e){var t=e.className,n=e.style,r=n===void 0?yL:n,i=e.scale,o=e.shape,a=e.domain,s=e.fill,u=s===void 0?T_:s,l=e.size,c=l===void 0?T_:l,f=e.labelFormat,h=f===void 0?M_:f,d=e.labelTransform,p=d===void 0?pL:d,m=e.shapeWidth,g=m===void 0?15:m,y=e.shapeHeight,v=y===void 0?15:y,x=e.shapeMargin,b=x===void 0?"2px 4px 2px 0":x,_=e.shapeStyle,w=e.labelAlign,$=w===void 0?"left":w,M=e.labelFlex,k=M===void 0?"1":M,S=e.labelMargin,T=S===void 0?"0 4px":S,A=e.itemMargin,P=A===void 0?"0":A,O=e.direction,E=O===void 0?"column":O,C=e.itemDirection,R=C===void 0?"row":C,D=e.legendLabelProps,L=e.children,F=mL(e,gL),W=a||("domain"in i?i.domain():[]),U=p({scale:i,labelFormat:h}),te=W.map(U);return L?Z.default.createElement(Z.default.Fragment,null,L(te)):Z.default.createElement("div",{className:Ge("visx-legend",t),style:Rs({},r,{flexDirection:E})},te.map(function(Q,J){return Z.default.createElement(Rp,Rs({key:"legend-"+Q.text+"-"+J,margin:P,flexDirection:R},F),Z.default.createElement(S_,{shape:o,height:v,width:g,margin:b,item:W[J],itemIndex:J,label:Q,fill:u,size:c,shapeStyle:_}),Z.default.createElement(Dp,Rs({label:Q.text,flex:k,margin:T,align:$},D)))}))}k_.propTypes={children:B.func,className:B.string,domain:B.array,shapeWidth:B.oneOfType([B.string,B.number]),shapeHeight:B.oneOfType([B.string,B.number]),shapeMargin:B.oneOfType([B.string,B.number]),labelAlign:B.string,labelFlex:B.oneOfType([B.string,B.number]),labelMargin:B.oneOfType([B.string,B.number]),itemMargin:B.oneOfType([B.string,B.number]),fill:B.func,size:B.func,shapeStyle:B.func};function vL(e){return Z.default.createElement(k_,e)}function Ls({value:e,colorRange:t,dataKeyArray:n}){var o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$;const r=((a=(o=e==null?void 0:e.main)==null?void 0:o.legend)==null?void 0:a.colorRectWidth)||15,i=Ho({domain:n||((s=e==null?void 0:e.main)==null?void 0:s.tooltipDataKey),range:t||((l=(u=e==null?void 0:e.style)==null?void 0:u.barStyle)==null?void 0:l.colorRange)||((f=(c=e==null?void 0:e.style)==null?void 0:c.pieStyle)==null?void 0:f.colorRange)||((d=(h=e==null?void 0:e.style)==null?void 0:h.lineStyle)==null?void 0:d.colorRange)});return ae("div",{className:"legend",style:{position:((m=(p=e==null?void 0:e.main)==null?void 0:p.legend)==null?void 0:m.direction)!=="column"?"absolute":void 0,top:20,width:((y=(g=e==null?void 0:e.main)==null?void 0:g.legend)==null?void 0:y.direction)!=="column"?"90%":void 0,justifyContent:"end",display:"flex",...(x=(v=e==null?void 0:e.style)==null?void 0:v.legendStyle)==null?void 0:x.legend},children:[z("div",{className:"title",style:(_=(b=e==null?void 0:e.style)==null?void 0:b.legendStyle)==null?void 0:_.legendTitle,children:($=(w=e==null?void 0:e.main)==null?void 0:w.legend)==null?void 0:$.legendTitle}),z(vL,{scale:i,labelFormat:M=>`${M}`,children:M=>{var k,S;return z("div",{style:{display:"flex",flexDirection:((S=(k=e==null?void 0:e.main)==null?void 0:k.legend)==null?void 0:S.direction)||"row",flexWrap:"wrap"},children:M.map((T,A)=>{var P,O,E,C,R,D;return ae(Rp,{margin:"0 5px",onClick:L=>{L&&alert(`clicked: ${JSON.stringify(T)}`)},...((O=(P=e==null?void 0:e.main)==null?void 0:P.legend)==null?void 0:O.direction)==="column"?{style:{...(C=(E=e==null?void 0:e.style)==null?void 0:E.legendStyle)==null?void 0:C.legendVertical}}:{},children:[z("svg",{width:r,height:r,children:z("rect",{fill:T.value,width:r,height:r})}),z(Dp,{align:`${((D=(R=e==null?void 0:e.main)==null?void 0:R.legend)==null?void 0:D.align)||"left"}`,margin:"0 0 0 4px",children:T.text})]},`legend-quantile-${A}`)})})}})]})}var Rc={};Rc.__esModule=!0;var O_=Rc.default=$L,bL=C_(Z.default),xL=C_(Ao.exports),wL=["from","to","fill","className","innerRef"];function C_(e){return e&&e.__esModule?e:{default:e}}function Bp(){return Bp=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},Bp.apply(this,arguments)}function _L(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function $L(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,i=r===void 0?{x:1,y:1}:r,o=e.fill,a=o===void 0?"transparent":o,s=e.className,u=e.innerRef,l=_L(e,wL),c=n.x===i.x||n.y===i.y;return bL.default.createElement("line",Bp({ref:u,className:(0,xL.default)("visx-line",s),x1:n.x,y1:n.y,x2:i.x,y2:i.y,fill:a,shapeRendering:c?"crispEdges":"auto"},l))}function P_(e){return"bandwidth"in e?e.bandwidth():0}var SL=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function jp(){return jp=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},jp.apply(this,arguments)}function ML(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function E_(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.width,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.children,p=e.numTicks,m=p===void 0?10:p,g=e.lineStyle,y=e.offset,v=e.tickValues,x=ML(e,SL),b=v!=null?v:yc(o,m),_=(y!=null?y:0)+P_(o)/2,w=b.map(function($,M){var k,S=((k=mc(o($)))!=null?k:0)+_;return{index:M,from:new Un({x:0,y:S}),to:new Un({x:a,y:S})}});return Z.default.createElement(je,{className:Ge("visx-rows",h),top:n,left:i},d?d({lines:w}):w.map(function($){var M=$.from,k=$.to,S=$.index;return Z.default.createElement(O_,jp({key:"row-line-"+S,from:M,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:g},x))}))}E_.propTypes={tickValues:B.array,width:B.number.isRequired};var TL=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function Wp(){return Wp=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},Wp.apply(this,arguments)}function kL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function A_(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.height,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.numTicks,p=d===void 0?10:d,m=e.lineStyle,g=e.offset,y=e.tickValues,v=e.children,x=kL(e,TL),b=y!=null?y:yc(o,p),_=(g!=null?g:0)+P_(o)/2,w=b.map(function($,M){var k,S=((k=mc(o($)))!=null?k:0)+_;return{index:M,from:new Un({x:S,y:0}),to:new Un({x:S,y:a})}});return Z.default.createElement(je,{className:Ge("visx-columns",h),top:n,left:i},v?v({lines:w}):w.map(function($){var M=$.from,k=$.to,S=$.index;return Z.default.createElement(O_,Wp({key:"column-line-"+S,from:M,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:m},x))}))}A_.propTypes={tickValues:B.array,height:B.number.isRequired};var OL=["top","left","xScale","yScale","width","height","className","stroke","strokeWidth","strokeDasharray","numTicksRows","numTicksColumns","rowLineStyle","columnLineStyle","xOffset","yOffset","rowTickValues","columnTickValues"];function Lc(){return Lc=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},Lc.apply(this,arguments)}function CL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Hp(e){var t=e.top,n=e.left,r=e.xScale,i=e.yScale,o=e.width,a=e.height,s=e.className,u=e.stroke,l=e.strokeWidth,c=e.strokeDasharray,f=e.numTicksRows,h=e.numTicksColumns,d=e.rowLineStyle,p=e.columnLineStyle,m=e.xOffset,g=e.yOffset,y=e.rowTickValues,v=e.columnTickValues,x=CL(e,OL);return Z.default.createElement(je,{className:Ge("visx-grid",s),top:t,left:n},Z.default.createElement(E_,Lc({className:s,scale:i,width:o,stroke:u,strokeWidth:l,strokeDasharray:c,numTicks:f,lineStyle:d,offset:g,tickValues:y},x)),Z.default.createElement(A_,Lc({className:s,scale:r,height:a,stroke:u,strokeWidth:l,strokeDasharray:c,numTicks:h,lineStyle:p,offset:m,tickValues:v},x)))}Hp.propTypes={rowTickValues:B.array,columnTickValues:B.array};var Kr={},qp=tt(pC),Up={};Up.__esModule=!0,Up.default=PL;function PL(e,t){e(t)}var ji={};ji.__esModule=!0,ji.STACK_ORDER_NAMES=ji.STACK_ORDERS=void 0,ji.default=AL;var Ds=qp,Dc={ascending:Ds.stackOrderAscending,descending:Ds.stackOrderDescending,insideout:Ds.stackOrderInsideOut,none:Ds.stackOrderNone,reverse:Ds.stackOrderReverse};ji.STACK_ORDERS=Dc;var EL=Object.keys(Dc);ji.STACK_ORDER_NAMES=EL;function AL(e){return e&&Dc[e]||Dc.none}var Wi={};Wi.__esModule=!0,Wi.STACK_OFFSET_NAMES=Wi.STACK_OFFSETS=void 0,Wi.default=RL;var Is=qp,Ic={expand:Is.stackOffsetExpand,diverging:Is.stackOffsetDiverging,none:Is.stackOffsetNone,silhouette:Is.stackOffsetSilhouette,wiggle:Is.stackOffsetWiggle};Wi.STACK_OFFSETS=Ic;var NL=Object.keys(Ic);Wi.STACK_OFFSET_NAMES=NL;function RL(e){return e&&Ic[e]||Ic.none}Kr.__esModule=!0,Kr.arc=IL,Kr.area=zL,Kr.line=FL,Kr.pie=BL,Kr.radialLine=jL,Kr.stack=WL;var Xo=qp,We=Vp(Up),LL=Vp(ji),DL=Vp(Wi);function Vp(e){return e&&e.__esModule?e:{default:e}}function IL(e){var t=e===void 0?{}:e,n=t.innerRadius,r=t.outerRadius,i=t.cornerRadius,o=t.startAngle,a=t.endAngle,s=t.padAngle,u=t.padRadius,l=(0,Xo.arc)();return n!=null&&(0,We.default)(l.innerRadius,n),r!=null&&(0,We.default)(l.outerRadius,r),i!=null&&(0,We.default)(l.cornerRadius,i),o!=null&&(0,We.default)(l.startAngle,o),a!=null&&(0,We.default)(l.endAngle,a),s!=null&&(0,We.default)(l.padAngle,s),u!=null&&(0,We.default)(l.padRadius,u),l}function zL(e){var t=e===void 0?{}:e,n=t.x,r=t.x0,i=t.x1,o=t.y,a=t.y0,s=t.y1,u=t.defined,l=t.curve,c=(0,Xo.area)();return n&&(0,We.default)(c.x,n),r&&(0,We.default)(c.x0,r),i&&(0,We.default)(c.x1,i),o&&(0,We.default)(c.y,o),a&&(0,We.default)(c.y0,a),s&&(0,We.default)(c.y1,s),u&&c.defined(u),l&&c.curve(l),c}function FL(e){var t=e===void 0?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,a=(0,Xo.line)();return n&&(0,We.default)(a.x,n),r&&(0,We.default)(a.y,r),i&&a.defined(i),o&&a.curve(o),a}function BL(e){var t=e===void 0?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,a=t.sort,s=t.sortValues,u=(0,Xo.pie)();return(a===null||a!=null)&&u.sort(a),(s===null||s!=null)&&u.sortValues(s),o!=null&&u.value(o),i!=null&&(0,We.default)(u.padAngle,i),n!=null&&(0,We.default)(u.startAngle,n),r!=null&&(0,We.default)(u.endAngle,r),u}function jL(e){var t=e===void 0?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,Xo.radialLine)();return n&&(0,We.default)(a.angle,n),r&&(0,We.default)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function WL(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,Xo.stack)();return t&&o.keys(t),n&&(0,We.default)(o.value,n),r&&o.order((0,LL.default)(r)),i&&o.offset((0,DL.default)(i)),o}const HL={top:40,right:0,bottom:0,left:0};function qL({theme:e,width:t,height:n,events:r=!1,margin:i=HL,value:o}){var F,W,U,te,Q,J,ue,re,oe,I,V,ee,N,Y;const a=(F=o.main)==null?void 0:F.data,s=Object.keys(a[0]).filter(j=>j!==o.main.xAxisValue),[u,l]=q.useState({date:null,city:null}),c=j=>j[o.main.xAxisValue],f=a.reduce((j,H)=>{const X=s.reduce((ne,fe)=>(ne+=Number(H[fe]),ne),0);return j.push(X),j},[]),h=Bi({domain:a.map(c),padding:.4}),d=Bi({domain:s}),p=Wo({domain:((W=o==null?void 0:o.main)==null?void 0:W.type)==="StackBarGraph"?[0,Math.max(...f)]:[0,Math.max(...a.map(j=>Math.max(...s.map(H=>Number(j[H])))))],nice:!0}),m=Ho({domain:s,range:o.style.barStyle.colorRange}),g=7;let y=[];y=p.ticks();const x=Math.max(...y.map(j=>String(j||"").length))*g+10,b=5;let _=[];_=h.domain();const $=Math.max(..._.map(j=>String(j||"").length))*b+10;i.left=x+20,i.bottom=(U=o.main)!=null&&U.bottomAxisAngle?$+40:i.bottom;const M=t-i.left-i.right,k=n-i.top-i.bottom;h.rangeRound([0,M]),d.rangeRound([0,h.bandwidth()]),p.range([k,0]);const{tooltipData:S,tooltipLeft:T,tooltipTop:A,tooltipOpen:P,showTooltip:O,hideTooltip:E}=As(),C=(j,H,X)=>{l({date:X,city:H.index}),O({tooltipLeft:j.clientX,tooltipTop:j.clientY,tooltipData:{groupData:a[X.index],highlightedBar:H}})},R=j=>{l({date:null,city:null}),E()},D=(j,H,X)=>{l({date:X,city:H.index}),O({tooltipLeft:j.clientX,tooltipTop:j.clientY,tooltipData:{groupData:a[H.index],highlightedBar:H}})};function L(j){return j==null?void 0:j.bars.reduce((H,X)=>H+Math.min(X.width,15),0)}return t<10?null:ae("div",{children:[((te=o==null?void 0:o.main)==null?void 0:te.legendAvailable)&&s.length>1&&z(Ls,{dataKeyArray:s,colorRange:o.style.barStyle.colorRange,value:o,theme:e.myTheme}),ae("svg",{width:t,height:n,children:[z("rect",{x:0,y:0,width:t,height:n,fill:o.style.containerStyle.background||"#612efb"}),z(Hp,{top:i.top,left:i.left,xScale:h,yScale:p,width:t-i.left-i.right,height:k,stroke:"black",xOffset:h.bandwidth()/50,strokeDasharray:"8 3",strokeOpacity:.2,strokeWidth:.3}),ae(je,{top:i.top,left:i.left,children:[u&&z("rect",{style:{display:u.date?"block":"none"},x:o.main.type==="StackBarGraph"?((Q=u==null?void 0:u.date)==null?void 0:Q.bars[u.city].x)-(Math.min((J=u==null?void 0:u.date)==null?void 0:J.bars[0].width,15)-((ue=u==null?void 0:u.date)==null?void 0:ue.bars[0].width))/2:((re=u.date)==null?void 0:re.x0)-(Math.min((oe=u==null?void 0:u.date)==null?void 0:oe.bars[0].width,15)-((I=u==null?void 0:u.date)==null?void 0:I.bars[0].width))||0,width:o.main.type!=="StackBarGraph"?L(u==null?void 0:u.date):Math.min((V=u==null?void 0:u.date)==null?void 0:V.bars[0].width,15),height:k,fill:(N=(ee=o.style)==null?void 0:ee.barStyle)==null?void 0:N.hoverBackgroundColor,opacity:1}),z(h_,{value:o,yScale:p,parentWidth:t}),((Y=o==null?void 0:o.main)==null?void 0:Y.type)==="StackBarGraph"?z(EC,{data:a,keys:s,x:c,xScale:h,yScale:p,color:m,children:j=>j.map(H=>H.bars.map(X=>z("rect",{x:X.x-(Math.min(X.width,15)-X.width)/2,y:X.y,height:X.height,width:Math.min(X.width,15),fill:X.color,onMouseOver:ne=>D(ne,X,H),onMouseOut:ne=>R(),stroke:u.city===X.index?"black":"transparent"},`bar-stack-${H.index}-${X.index}`)))}):z(MC,{data:a,keys:s,height:k,x0:c,x0Scale:h,x1Scale:d,yScale:p,color:(j,H)=>{const X=m(j),ne=`${m(j)}50`;return(u==null?void 0:u.city)!==null?H===(u==null?void 0:u.city)?X:ne:X},children:j=>j.map(H=>z(je,{left:H.x0,children:H.bars.map(X=>{const ne=Math.min(X.width,15),fe=X.index===0?X.x-(ne-X.width):X.x;return z("rect",{x:fe,y:X.y,width:ne,height:X.height,fill:X.color,onMouseOver:He=>C(He,X,H),onMouseOut:He=>R(),stroke:u.city===X.index?"black":"transparent"},`bar-group-bar-${H.index}-${X.index}-${X.value}-${X.key}`)})},`bar-group-${H.index}-${H.x0}`))})]}),z(d_,{yMax:k+i.top,value:o,left:i.left,xScale:h,parentWidth:t})]}),P&&z(w_,{value:o,theme:e,top:A,left:T,tooltipData:S,colorScale:m})]})}var UL=xc,VL=function(){return UL.Date.now()},YL=VL,GL=/\s/;function XL(e){for(var t=e.length;t--&&GL.test(e.charAt(t)););return t}var KL=XL,QL=KL,ZL=/^\s+/;function JL(e){return e&&e.slice(0,QL(e)+1).replace(ZL,"")}var eD=JL;function tD(e){return e!=null&&typeof e=="object"}var nD=tD,rD=t_,iD=nD,oD="[object Symbol]";function aD(e){return typeof e=="symbol"||iD(e)&&rD(e)==oD}var sD=aD,uD=eD,N_=wc,lD=sD,R_=0/0,cD=/^[-+]0x[0-9a-f]+$/i,fD=/^0b[01]+$/i,hD=/^0o[0-7]+$/i,dD=parseInt;function pD(e){if(typeof e=="number")return e;if(lD(e))return R_;if(N_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=N_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=uD(e);var n=fD.test(e);return n||hD.test(e)?dD(e.slice(2),n?2:8):cD.test(e)?R_:+e}var gD=pD,mD=wc,Yp=YL,L_=gD,yD="Expected a function",vD=Math.max,bD=Math.min;function xD(e,t,n){var r,i,o,a,s,u,l=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(yD);t=L_(t)||0,mD(n)&&(c=!!n.leading,f="maxWait"in n,o=f?vD(L_(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function d(w){var $=r,M=i;return r=i=void 0,l=w,a=e.apply(M,$),a}function p(w){return l=w,s=setTimeout(y,t),c?d(w):a}function m(w){var $=w-u,M=w-l,k=t-$;return f?bD(k,o-M):k}function g(w){var $=w-u,M=w-l;return u===void 0||$>=t||$<0||f&&M>=o}function y(){var w=Yp();if(g(w))return v(w);s=setTimeout(y,m(w))}function v(w){return s=void 0,h&&r?d(w):(r=i=void 0,a)}function x(){s!==void 0&&clearTimeout(s),l=0,r=u=i=s=void 0}function b(){return s===void 0?a:v(Yp())}function _(){var w=Yp(),$=g(w);if(r=arguments,i=this,u=w,$){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),d(u)}return s===void 0&&(s=setTimeout(y,t)),a}return _.cancel=x,_.flush=b,_}var D_=xD,I_=D_,wD=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Gp(){return Gp=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},Gp.apply(this,arguments)}function _D(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $D=[],SD={width:"100%",height:"100%"};function zs(e){var t=e.className,n=e.children,r=e.debounceTime,i=r===void 0?300:r,o=e.ignoreDimensions,a=o===void 0?$D:o,s=e.parentSizeStyles,u=s===void 0?SD:s,l=e.enableDebounceLeadingCall,c=l===void 0?!0:l,f=e.resizeObserverPolyfill,h=_D(e,wD),d=q.useRef(null),p=q.useRef(0),m=q.useState({width:0,height:0,top:0,left:0}),g=m[0],y=m[1],v=q.useMemo(function(){var x=Array.isArray(a)?a:[a];return I_(function(b){y(function(_){var w=Object.keys(_),$=w.filter(function(k){return _[k]!==b[k]}),M=$.every(function(k){return x.includes(k)});return M?_:b})},i,{leading:c})},[i,c,a]);return q.useEffect(function(){var x=f||window.ResizeObserver,b=new x(function(_){_.forEach(function(w){var $,M=($=w==null?void 0:w.contentRect)!=null?$:{},k=M.left,S=M.top,T=M.width,A=M.height;p.current=window.requestAnimationFrame(function(){v({width:T,height:A,top:S,left:k})})})});return d.current&&b.observe(d.current),function(){window.cancelAnimationFrame(p.current),b.disconnect(),v.cancel()}},[v,f]),z("div",{style:u,ref:d,className:t,...h,children:n(Gp({},g,{ref:d.current,resize:v}))})}zs.propTypes={className:B.string,debounceTime:B.number,enableDebounceLeadingCall:B.bool,ignoreDimensions:B.oneOfType([B.any,B.arrayOf(B.any)]),children:B.func.isRequired};const z_=[{label:"B1",Budget:5,Payout:1},{label:"B2",Budget:5,Payout:2},{label:"B3",Budget:8,Payout:3},{label:"B4",Budget:6,Payout:4},{label:"B5",Budget:7,Payout:2},{label:"B6",Budget:10,Payout:5}],zc=(e,t,n)=>{var r,i,o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$,M,k,S,T,A,P,O,E,C;switch(e){case"BarGraph":case"StackBarGraph":case"HorizontalBarGraph":case"HorizontalStackBarGraph":return{main:{data:((r=t==null?void 0:t.main)==null?void 0:r.data)||z_,header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,legendAvailable:!0,leftLabel:"Value",axisLeft:!0,axisBottom:!0,hideTicks:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",xAxisValue:"label",...t.main,legend:{legendTitle:"",direction:"row",align:"left",...(i=t==null?void 0:t.main)==null?void 0:i.legend}},style:{containerStyle:{background:n.myTheme.palette.background.default,width:"90%",height:"450",borderRadius:"20px",padding:"10px 0 2px 0",...(o=t==null?void 0:t.style)==null?void 0:o.containerStyle},headerStyle:{fontWeight:500,textAlign:"left",fontFamily:"inherit",marginBottom:"20px",padding:"15px 0 1px 20px",width:"100%",fontSize:"18px",color:n.myTheme.palette.text.primary,...(a=t==null?void 0:t.style)==null?void 0:a.headerStyle},tooltipStyle:{padding:"6px",borderRadius:"2px",...(s=t==null?void 0:t.style)==null?void 0:s.tooltipStyle},labelStyle:{leftLabelMargin:"100",topLabelMargin:"-6",labelColor:n.myTheme.palette.text.primary,leftLabelOffset:25,bottomLabelOffset:5,tickLabelColor:n.myTheme.palette.text.primary,tickFontSize:"14px",rightAxisWidth:"0.3px",fontSize:"12px",...(u=t==null?void 0:t.style)==null?void 0:u.labelStyle},barStyle:{colorRange:((l=n==null?void 0:n.chartColours)==null?void 0:l.barChartColours)||["#3f51b5","rgba(200,0,31,0.9)","rgba(25,200,205,0.6)"],mediumValueColor:"rgba(63, 81, 181, 0.85)",highValueColor:"rgba(63, 81, 181, 0.85)",lowValueColor:"rgba(63, 81, 181, 0.85)",hoverBackgroundColor:`${n.myTheme.palette.secondary.main}`,...(c=t==null?void 0:t.style)==null?void 0:c.barStyle}}};case"PieGraph":return{main:{data:((f=t==null?void 0:t.main)==null?void 0:f.data)&&t.main.data.length>0?(h=t==null?void 0:t.main)==null?void 0:h.data:[{label:"Kotak",value:500},{label:"SBI",value:700},{label:"HDFC",value:900}],header:"Pie Graph",bottomLabel:"Name of Employe",leftLabel:"Value",tooltipDataKey:["First","Second","Third"],axisLeft:!0,axisBottom:!0,legendAvailable:!0,xAxisValue:"label",...t==null?void 0:t.main,legend:{labelColor:n.myTheme.palette.text.primary,direction:"column",align:"left",...(d=t==null?void 0:t.main)==null?void 0:d.legend}},style:{containerStyle:{background:n.myTheme.palette.background.default,width:"100%",height:"310",borderRadius:"20px",padding:"10px 0 2px 0",...(p=t==null?void 0:t.style)==null?void 0:p.containerStyle},headerStyle:{fontWeight:500,textAlign:"left",fontFamily:"inherit",marginBottom:"20px",padding:"15px 0 1px 20px",width:"100%",fontSize:"18px",color:n.myTheme.palette.text.primary,...(m=t==null?void 0:t.style)==null?void 0:m.headerStyle},tooltipStyle:{width:"100%",minWidth:80,height:20,backgroundColor:"lightgrey",color:"black",...(g=t==null?void 0:t.style)==null?void 0:g.tooltipStyle},labelStyle:{labelColor:n.myTheme.palette.text.primary,labelOffset:45,leftLabelMargin:"70",topLabelMargin:"-40",...(y=t==null?void 0:t.style)==null?void 0:y.labelStyle},legendStyle:{legend:{lineHeight:"0.9em",color:n.myTheme.palette.text.primary,fontSize:"10px",fontFamily:"arial",padding:"10px 10px",float:"left",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",margin:"5px 5px",...(x=(v=t==null?void 0:t.style)==null?void 0:v.legendStyle)==null?void 0:x.legend},legendVertical:{paddingBottom:"8px",flexDirection:"row",display:"flex",alignItems:"center"},legendTitle:{fontWeight:500,marginBottom:"5px",fontFamily:"roboto",fontSize:"10px",...(_=(b=t==null?void 0:t.style)==null?void 0:b.legendStyle)==null?void 0:_.legendTitle}},pieStyle:{colorRange:((w=n==null?void 0:n.chartColours)==null?void 0:w.pieChartColours)||["#3f51b5","rgba(200,0,31,0.9)","rgba(25,200,205,0.6)"],outerRadius:120,innerRadius:63,cornerRadius:2,padAngle:.006,...($=t==null?void 0:t.style)==null?void 0:$.pieStyle}}};case"LineGraph":return{main:{data:((k=(M=t==null?void 0:t.main)==null?void 0:M.data)==null?void 0:k.length)>0?(S=t==null?void 0:t.main)==null?void 0:S.data:z_,header:"Line Graph Dynamic",bottomLabel:"Name of Employe",leftLabel:"Value",legendAvailable:!0,gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,xAxisValue:"label",...t==null?void 0:t.main,legend:{labelColor:n.myTheme.palette.text.primary,direction:"row",align:"right",colorRectWidth:20,...(T=t==null?void 0:t.main)==null?void 0:T.legend}},style:{containerStyle:{background:n.myTheme.palette.background.default,width:"100%",height:"300",borderRadius:"20px",padding:"10px 0 2px 0",...(A=t==null?void 0:t.style)==null?void 0:A.containerStyle},headerStyle:{fontWeight:500,textAlign:"left",fontFamily:"inherit",marginBottom:"20px",padding:"15px 0 1px 20px",width:"100%",fontSize:"18px",color:n.myTheme.palette.text.primary,...(P=t==null?void 0:t.style)==null?void 0:P.headerStyle},labelStyle:{labelColor:n.myTheme.palette.text.primary,fontSize:"12px",bottomLabelOffset:25,leftLabelOffset:25,...(O=t==null?void 0:t.style)==null?void 0:O.labelStyle},lineStyle:{colorRange:((E=n==null?void 0:n.chartColours)==null?void 0:E.lineChartColours)||["#3f51b5","rgba(200,0,31,0.9)","rgba(25,200,205,0.6)"],lineAreaColor:"none",lineAreaOpacity:.2,...(C=t==null?void 0:t.style)==null?void 0:C.lineStyle}}}}},MD=({value:e,theme:t})=>{var i,o,a,s,u;const n=zc((i=e==null?void 0:e.main)==null?void 0:i.type,e,t);let r=z(zs,{children:l=>{var c,f,h,d,p,m,g,y,v,x,b,_,w,$;return z(qL,{theme:t,width:l.width||800,height:((f=(c=n==null?void 0:n.style)==null?void 0:c.containerStyle)==null?void 0:f.height)||"450",margin:{top:((p=(d=(h=n==null?void 0:n.style)==null?void 0:h.labelStyle)==null?void 0:d.margin)==null?void 0:p.top)||10,right:((y=(g=(m=n==null?void 0:n.style)==null?void 0:m.labelStyle)==null?void 0:g.margin)==null?void 0:y.right)||10,bottom:((b=(x=(v=n==null?void 0:n.style)==null?void 0:v.labelStyle)==null?void 0:x.margin)==null?void 0:b.bottom)||40,left:(($=(w=(_=n==null?void 0:n.style)==null?void 0:_.labelStyle)==null?void 0:w.margin)==null?void 0:$.left)||60},value:n})}});return ae("div",{style:(o=n==null?void 0:n.style)==null?void 0:o.containerStyle,children:[((a=n==null?void 0:n.main)==null?void 0:a.header)&&z("div",{style:{fontWeight:500,...(s=n==null?void 0:n.style)==null?void 0:s.headerStyle},children:(u=n==null?void 0:n.main)==null?void 0:u.header}),r]})};var Fs={black:"#000",white:"#fff"},Ko={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Zo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Jo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ea={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Bs={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},TD={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function K(){return K=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},K.apply(this,arguments)}function Hi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function F_(e){if(!Hi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=F_(e[n])}),t}function Mr(e,t,n={clone:!0}){const r=n.clone?K({},e):e;return Hi(e)&&Hi(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Hi(t[i])&&i in e&&Hi(e[i])?r[i]=Mr(e[i],t[i],n):n.clone?r[i]=Hi(t[i])?F_(t[i]):t[i]:r[i]=t[i])}),r}function ta(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Tr(e){if(typeof e!="string")throw new Error(ta(7));return e.charAt(0).toUpperCase()+e.slice(1)}function B_(e){return e&&e.ownerDocument||document}function Xp(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var na=typeof window!="undefined"?G.useLayoutEffect:G.useEffect;let j_=0;function kD(e){const[t,n]=G.useState(e),r=e||t;return G.useEffect(()=>{t==null&&(j_+=1,n(`mui-${j_}`))},[t]),r}const W_=G["useId".toString()];function OD(e){if(W_!==void 0){const t=W_();return e!=null?e:t}return kD(e)}function CD({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=G.useRef(e!==void 0),[o,a]=G.useState(t),s=i?e:o,u=G.useCallback(l=>{i||a(l)},[]);return[s,u]}function js(e){const t=G.useRef(e);return na(()=>{t.current=e}),G.useCallback((...n)=>(0,t.current)(...n),[])}function Qr(...e){return G.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Xp(n,t)})},e)}let Fc=!0,Kp=!1,H_;const PD={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ED(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&PD[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function AD(e){e.metaKey||e.altKey||e.ctrlKey||(Fc=!0)}function Qp(){Fc=!1}function ND(){this.visibilityState==="hidden"&&Kp&&(Fc=!0)}function RD(e){e.addEventListener("keydown",AD,!0),e.addEventListener("mousedown",Qp,!0),e.addEventListener("pointerdown",Qp,!0),e.addEventListener("touchstart",Qp,!0),e.addEventListener("visibilitychange",ND,!0)}function LD(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Fc||ED(t)}function q_(){const e=G.useCallback(i=>{i!=null&&RD(i.ownerDocument)},[]),t=G.useRef(!1);function n(){return t.current?(Kp=!0,window.clearTimeout(H_),H_=window.setTimeout(()=>{Kp=!1},100),t.current=!1,!0):!1}function r(i){return LD(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function U_(e,t){const n=K({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=K({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=K({},o),Object.keys(i).forEach(a=>{n[r][a]=U_(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kr(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const V_=e=>e;var Y_=(()=>{let e=V_;return{configure(t){e=t},generate(t){return e(t)},reset(){e=V_}}})();const DD={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Vn(e,t,n="Mui"){const r=DD[t];return r?`${n}-${r}`:`${Y_.generate(e)}-${t}`}function Yn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Vn(e,i,n)}),r}var Bc="$$material";function Ce(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function G_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ID=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zD=G_(function(e){return ID.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),FD=!1;function BD(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function jD(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var WD=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!FD:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(jD(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=BD(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),yt="-ms-",jc="-moz-",$e="-webkit-",X_="comm",Zp="rule",Jp="decl",HD="@import",K_="@keyframes",qD="@layer",UD=Math.abs,Wc=String.fromCharCode,VD=Object.assign;function YD(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function Q_(e){return e.trim()}function GD(e,t){return(e=t.exec(e))?e[0]:e}function Se(e,t,n){return e.replace(t,n)}function eg(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function Ws(e,t,n){return e.slice(t,n)}function Gn(e){return e.length}function tg(e){return e.length}function Hc(e,t){return t.push(e),e}function XD(e,t){return e.map(t).join("")}var qc=1,ra=1,Z_=0,Ut=0,Ve=0,ia="";function Uc(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:qc,column:ra,length:a,return:""}}function Hs(e,t){return VD(Uc("",null,null,"",null,null,0),e,{length:-e.length},t)}function KD(){return Ve}function QD(){return Ve=Ut>0?ft(ia,--Ut):0,ra--,Ve===10&&(ra=1,qc--),Ve}function tn(){return Ve=Ut<Z_?ft(ia,Ut++):0,ra++,Ve===10&&(ra=1,qc++),Ve}function Xn(){return ft(ia,Ut)}function Vc(){return Ut}function qs(e,t){return Ws(ia,e,t)}function Us(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function J_(e){return qc=ra=1,Z_=Gn(ia=e),Ut=0,[]}function e$(e){return ia="",e}function Yc(e){return Q_(qs(Ut-1,ng(e===91?e+2:e===40?e+1:e)))}function ZD(e){for(;(Ve=Xn())&&Ve<33;)tn();return Us(e)>2||Us(Ve)>3?"":" "}function JD(e,t){for(;--t&&tn()&&!(Ve<48||Ve>102||Ve>57&&Ve<65||Ve>70&&Ve<97););return qs(e,Vc()+(t<6&&Xn()==32&&tn()==32))}function ng(e){for(;tn();)switch(Ve){case e:return Ut;case 34:case 39:e!==34&&e!==39&&ng(Ve);break;case 40:e===41&&ng(e);break;case 92:tn();break}return Ut}function eI(e,t){for(;tn()&&e+Ve!==47+10;)if(e+Ve===42+42&&Xn()===47)break;return"/*"+qs(t,Ut-1)+"*"+Wc(e===47?e:tn())}function tI(e){for(;!Us(Xn());)tn();return qs(e,Ut)}function nI(e){return e$(Gc("",null,null,null,[""],e=J_(e),0,[0],e))}function Gc(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,f=a,h=0,d=0,p=0,m=1,g=1,y=1,v=0,x="",b=i,_=o,w=r,$=x;g;)switch(p=v,v=tn()){case 40:if(p!=108&&ft($,f-1)==58){eg($+=Se(Yc(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:$+=Yc(v);break;case 9:case 10:case 13:case 32:$+=ZD(p);break;case 92:$+=JD(Vc()-1,7);continue;case 47:switch(Xn()){case 42:case 47:Hc(rI(eI(tn(),Vc()),t,n),u);break;default:$+="/"}break;case 123*m:s[l++]=Gn($)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:y==-1&&($=Se($,/\f/g,"")),d>0&&Gn($)-f&&Hc(d>32?n$($+";",r,n,f-1):n$(Se($," ","")+";",r,n,f-2),u);break;case 59:$+=";";default:if(Hc(w=t$($,t,n,l,c,i,s,x,b=[],_=[],f),o),v===123)if(c===0)Gc($,t,w,w,b,o,f,s,_);else switch(h===99&&ft($,3)===110?100:h){case 100:case 108:case 109:case 115:Gc(e,w,w,r&&Hc(t$(e,w,w,0,0,i,s,x,i,b=[],f),_),i,_,f,s,r?b:_);break;default:Gc($,w,w,w,[""],_,0,s,_)}}l=c=d=0,m=y=1,x=$="",f=a;break;case 58:f=1+Gn($),d=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&QD()==125)continue}switch($+=Wc(v),v*m){case 38:y=c>0?1:($+="\f",-1);break;case 44:s[l++]=(Gn($)-1)*y,y=1;break;case 64:Xn()===45&&($+=Yc(tn())),h=Xn(),c=f=Gn(x=$+=tI(Vc())),v++;break;case 45:p===45&&Gn($)==2&&(m=0)}}return o}function t$(e,t,n,r,i,o,a,s,u,l,c){for(var f=i-1,h=i===0?o:[""],d=tg(h),p=0,m=0,g=0;p<r;++p)for(var y=0,v=Ws(e,f+1,f=UD(m=a[p])),x=e;y<d;++y)(x=Q_(m>0?h[y]+" "+v:Se(v,/&\f/g,h[y])))&&(u[g++]=x);return Uc(e,t,n,i===0?Zp:s,u,l,c)}function rI(e,t,n){return Uc(e,t,n,X_,Wc(KD()),Ws(e,2,-2),0)}function n$(e,t,n,r){return Uc(e,t,n,Jp,Ws(e,0,r),Ws(e,r+1,-1),r)}function oa(e,t){for(var n="",r=tg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function iI(e,t,n,r){switch(e.type){case qD:if(e.children.length)break;case HD:case Jp:return e.return=e.return||e.value;case X_:return"";case K_:return e.return=e.value+"{"+oa(e.children,r)+"}";case Zp:e.value=e.props.join(",")}return Gn(n=oa(e.children,r))?e.return=e.value+"{"+n+"}":""}function oI(e){var t=tg(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function aI(e){return function(t){t.root||(t=t.return)&&e(t)}}var sI=function(t,n,r){for(var i=0,o=0;i=o,o=Xn(),i===38&&o===12&&(n[r]=1),!Us(o);)tn();return qs(t,Ut)},uI=function(t,n){var r=-1,i=44;do switch(Us(i)){case 0:i===38&&Xn()===12&&(n[r]=1),t[r]+=sI(Ut-1,n,r);break;case 2:t[r]+=Yc(i);break;case 4:if(i===44){t[++r]=Xn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Wc(i)}while(i=tn());return t},lI=function(t,n){return e$(uI(J_(t),n))},r$=new WeakMap,cI=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!r$.get(r))&&!i){r$.set(t,!0);for(var o=[],a=lI(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},fI=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function i$(e,t){switch(YD(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+jc+e+yt+e+e;case 6828:case 4268:return $e+e+yt+e+e;case 6165:return $e+e+yt+"flex-"+e+e;case 5187:return $e+e+Se(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+yt+"flex-$1$2")+e;case 5443:return $e+e+yt+"flex-item-"+Se(e,/flex-|-self/,"")+e;case 4675:return $e+e+yt+"flex-line-pack"+Se(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+yt+Se(e,"shrink","negative")+e;case 5292:return $e+e+yt+Se(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Se(e,"-grow","")+$e+e+yt+Se(e,"grow","positive")+e;case 4554:return $e+Se(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Se(Se(Se(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Se(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Se(Se(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return Se(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gn(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return Se(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+jc+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~eg(e,"stretch")?i$(Se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,Gn(e)-3-(~eg(e,"!important")&&10))){case 107:return Se(e,":",":"+$e)+e;case 101:return Se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(ft(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+yt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return $e+e+yt+Se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+yt+Se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+yt+Se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+yt+e+e}return e}var hI=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Jp:t.return=i$(t.value,t.length);break;case K_:return oa([Hs(t,{value:Se(t.value,"@","@"+$e)})],i);case Zp:if(t.length)return XD(t.props,function(o){switch(GD(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return oa([Hs(t,{props:[Se(o,/:(read-\w+)/,":"+jc+"$1")]})],i);case"::placeholder":return oa([Hs(t,{props:[Se(o,/:(plac\w+)/,":"+$e+"input-$1")]}),Hs(t,{props:[Se(o,/:(plac\w+)/,":"+jc+"$1")]}),Hs(t,{props:[Se(o,/:(plac\w+)/,yt+"input-$1")]})],i)}return""})}},dI=[hI],pI=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||dI,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)o[g[y]]=!0;s.push(m)});var u,l=[cI,fI];{var c,f=[iI,aI(function(m){c.insert(m)})],h=oI(l.concat(i,f)),d=function(g){return oa(nI(g),h)};u=function(g,y,v,x){c=v,d(g?g+"{"+y.styles+"}":y.styles),x&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new WD({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return p.sheet.hydrate(s),p},o$={exports:{}},Te={};/** @license React v16.13.1
13
+ */var NC=Q.default,RC=Symbol.for("react.element"),DC=Symbol.for("react.fragment"),LC=Object.prototype.hasOwnProperty,IC=NC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,zC={key:!0,ref:!0,__self:!0,__source:!0};function lx(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)LC.call(t,r)&&!zC.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:RC,type:e,key:o,ref:a,props:i,_owner:IC.current}}Gl.Fragment=DC,Gl.jsx=lx,Gl.jsxs=lx,Yl.exports=Gl;const z=Yl.exports.jsx,oe=Yl.exports.jsxs,Jt=Yl.exports.Fragment;function Ur(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function FC(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Xl(e){let t,n,r;e.length!==2?(t=Ur,n=(s,u)=>Ur(e(s),u),r=(s,u)=>e(s)-u):(t=e===Ur||e===FC?e:BC,n=e,r=e);function i(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;n(s[f],u)<0?l=f+1:c=f}while(l<c)}return l}function o(s,u,l=0,c=s.length){if(l<c){if(t(u,u)!==0)return c;do{const f=l+c>>>1;n(s[f],u)<=0?l=f+1:c=f}while(l<c)}return l}function a(s,u,l=0,c=s.length){const f=i(s,u,l,c-1);return f>l&&r(s[f-1],u)>-r(s[f],u)?f-1:f}return{left:i,center:a,right:o}}function BC(){return 0}function cx(e){return e===null?NaN:+e}function*jC(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const fx=Xl(Ur),WC=fx.right,HC=fx.left;Xl(cx).center;var os=WC;function hx(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class dx extends Map{constructor(t,n=VC){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(px(this,t))}has(t){return super.has(px(this,t))}set(t,n){return super.set(qC(this,t),n)}delete(t){return super.delete(UC(this,t))}}function px({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function qC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function UC({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function VC(e){return e!==null&&typeof e=="object"?e.valueOf():e}function YC(e=Ur){if(e===Ur)return gx;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function gx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var $0=Math.sqrt(50),S0=Math.sqrt(10),M0=Math.sqrt(2);function T0(e,t,n){var r,i=-1,o,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),(s=mx(e,t,n))===0||!isFinite(s))return[];if(s>0){let u=Math.round(e/s),l=Math.round(t/s);for(u*s<e&&++u,l*s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)*s}else{s=-s;let u=Math.round(e*s),l=Math.round(t*s);for(u/s<e&&++u,l/s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)/s}return r&&a.reverse(),a}function mx(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=$0?10:o>=S0?5:o>=M0?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=$0?10:o>=S0?5:o>=M0?2:1)}function k0(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=$0?i*=10:o>=S0?i*=5:o>=M0&&(i*=2),t<e?-i:i}function yx(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function vx(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bx(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?gx:YC(i);r>n;){if(r-n>600){const u=r-n+1,l=t-n+1,c=Math.log(u),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),d=Math.max(n,Math.floor(t-l*f/u+h)),p=Math.min(r,Math.floor(t+(u-l)*f/u+h));bx(e,t,d,p,i)}const o=e[t];let a=n,s=r;for(as(e,n,t),i(e[r],o)>0&&as(e,n,r);a<s;){for(as(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?as(e,n,s):(++s,as(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function as(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function GC(e,t,n){if(e=Float64Array.from(jC(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return vx(e);if(t>=1)return yx(e);var r,i=(r-1)*t,o=Math.floor(i),a=yx(bx(e,o).subarray(0,o+1)),s=vx(e.subarray(o+1));return a+(s-a)*(i-o)}}function XC(e,t,n=cx){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function xx(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function gn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const O0=Symbol("implicit");function Kl(){var e=new dx,t=[],n=[],r=O0;function i(o){let a=e.get(o);if(a===void 0){if(r!==O0)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new dx;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Kl(t,n).unknown(r)},gn.apply(i,arguments),i}function Zl(){var e=Kl().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var h=t().length,d=i<r,p=d?i:r,m=d?r:i;o=(m-p)/Math.max(1,h-u+l*2),s&&(o=Math.floor(o)),p+=(m-p-o*(h-u))*c,a=o*(1-u),s&&(p=Math.round(p),a=Math.round(a));var g=xx(h).map(function(y){return p+o*y});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,l=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return Zl(t(),[r,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},gn.apply(f(),arguments)}function wx(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return wx(t())},e}function _x(){return wx(Zl.apply(null,arguments).paddingInner(1))}function Ro(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ss(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Vr(){}var Oi=.7,Do=1/Oi,Lo="\\s*([+-]?\\d+)\\s*",us="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",KC=/^#([0-9a-f]{3,8})$/,ZC=new RegExp(`^rgb\\(${Lo},${Lo},${Lo}\\)$`),QC=new RegExp(`^rgb\\(${Wn},${Wn},${Wn}\\)$`),JC=new RegExp(`^rgba\\(${Lo},${Lo},${Lo},${us}\\)$`),e7=new RegExp(`^rgba\\(${Wn},${Wn},${Wn},${us}\\)$`),t7=new RegExp(`^hsl\\(${us},${Wn},${Wn}\\)$`),n7=new RegExp(`^hsla\\(${us},${Wn},${Wn},${us}\\)$`),$x={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};Ro(Vr,ls,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Sx,formatHex:Sx,formatHex8:r7,formatHsl:i7,formatRgb:Mx,toString:Mx});function Sx(){return this.rgb().formatHex()}function r7(){return this.rgb().formatHex8()}function i7(){return Px(this).formatHsl()}function Mx(){return this.rgb().formatRgb()}function ls(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=KC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Tx(t):n===3?new tt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ql(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ql(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZC.exec(e))?new tt(t[1],t[2],t[3],1):(t=QC.exec(e))?new tt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=JC.exec(e))?Ql(t[1],t[2],t[3],t[4]):(t=e7.exec(e))?Ql(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=t7.exec(e))?Cx(t[1],t[2]/100,t[3]/100,1):(t=n7.exec(e))?Cx(t[1],t[2]/100,t[3]/100,t[4]):$x.hasOwnProperty(e)?Tx($x[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function Tx(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function Ql(e,t,n,r){return r<=0&&(e=t=n=NaN),new tt(e,t,n,r)}function C0(e){return e instanceof Vr||(e=ls(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function Jl(e,t,n,r){return arguments.length===1?C0(e):new tt(e,t,n,r==null?1:r)}function tt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ro(tt,Jl,ss(Vr,{brighter(e){return e=e==null?Do:Math.pow(Do,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Oi:Math.pow(Oi,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new tt(Ci(this.r),Ci(this.g),Ci(this.b),ec(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:kx,formatHex:kx,formatHex8:o7,formatRgb:Ox,toString:Ox}));function kx(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}`}function o7(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}${Pi((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ox(){const e=ec(this.opacity);return`${e===1?"rgb(":"rgba("}${Ci(this.r)}, ${Ci(this.g)}, ${Ci(this.b)}${e===1?")":`, ${e})`}`}function ec(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ci(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pi(e){return e=Ci(e),(e<16?"0":"")+e.toString(16)}function Cx(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cn(e,t,n,r)}function Px(e){if(e instanceof Cn)return new Cn(e.h,e.s,e.l,e.opacity);if(e instanceof Vr||(e=ls(e)),!e)return new Cn;if(e instanceof Cn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Cn(a,s,u,e.opacity)}function P0(e,t,n,r){return arguments.length===1?Px(e):new Cn(e,t,n,r==null?1:r)}function Cn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ro(Cn,P0,ss(Vr,{brighter(e){return e=e==null?Do:Math.pow(Do,e),new Cn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Oi:Math.pow(Oi,e),new Cn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new tt(E0(e>=240?e-240:e+120,i,r),E0(e,i,r),E0(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Cn(Ex(this.h),tc(this.s),tc(this.l),ec(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=ec(this.opacity);return`${e===1?"hsl(":"hsla("}${Ex(this.h)}, ${tc(this.s)*100}%, ${tc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Ex(e){return e=(e||0)%360,e<0?e+360:e}function tc(e){return Math.max(0,Math.min(1,e||0))}function E0(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Ax=Math.PI/180,Nx=180/Math.PI,nc=18,Rx=.96422,Dx=1,Lx=.82521,Ix=4/29,Io=6/29,zx=3*Io*Io,a7=Io*Io*Io;function Fx(e){if(e instanceof Hn)return new Hn(e.l,e.a,e.b,e.opacity);if(e instanceof wr)return Bx(e);e instanceof tt||(e=C0(e));var t=L0(e.r),n=L0(e.g),r=L0(e.b),i=N0((.2225045*t+.7168786*n+.0606169*r)/Dx),o,a;return t===n&&n===r?o=a=i:(o=N0((.4360747*t+.3850649*n+.1430804*r)/Rx),a=N0((.0139322*t+.0971045*n+.7141733*r)/Lx)),new Hn(116*i-16,500*(o-i),200*(i-a),e.opacity)}function A0(e,t,n,r){return arguments.length===1?Fx(e):new Hn(e,t,n,r==null?1:r)}function Hn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Ro(Hn,A0,ss(Vr,{brighter(e){return new Hn(this.l+nc*(e==null?1:e),this.a,this.b,this.opacity)},darker(e){return new Hn(this.l-nc*(e==null?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Rx*R0(t),e=Dx*R0(e),n=Lx*R0(n),new tt(D0(3.1338561*t-1.6168667*e-.4906146*n),D0(-.9787684*t+1.9161415*e+.033454*n),D0(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function N0(e){return e>a7?Math.pow(e,1/3):e/zx+Ix}function R0(e){return e>Io?e*e*e:zx*(e-Ix)}function D0(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function L0(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function s7(e){if(e instanceof wr)return new wr(e.h,e.c,e.l,e.opacity);if(e instanceof Hn||(e=Fx(e)),e.a===0&&e.b===0)return new wr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Nx;return new wr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function I0(e,t,n,r){return arguments.length===1?s7(e):new wr(e,t,n,r==null?1:r)}function wr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Bx(e){if(isNaN(e.h))return new Hn(e.l,0,0,e.opacity);var t=e.h*Ax;return new Hn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ro(wr,I0,ss(Vr,{brighter(e){return new wr(this.h,this.c,this.l+nc*(e==null?1:e),this.opacity)},darker(e){return new wr(this.h,this.c,this.l-nc*(e==null?1:e),this.opacity)},rgb(){return Bx(this).rgb()}}));var jx=-.14861,z0=1.78277,F0=-.29227,rc=-.90649,cs=1.97294,Wx=cs*rc,Hx=cs*z0,qx=z0*F0-rc*jx;function u7(e){if(e instanceof Ei)return new Ei(e.h,e.s,e.l,e.opacity);e instanceof tt||(e=C0(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(qx*r+Wx*t-Hx*n)/(qx+Wx-Hx),o=r-i,a=(cs*(n-i)-F0*o)/rc,s=Math.sqrt(a*a+o*o)/(cs*i*(1-i)),u=s?Math.atan2(a,o)*Nx-120:NaN;return new Ei(u<0?u+360:u,s,i,e.opacity)}function B0(e,t,n,r){return arguments.length===1?u7(e):new Ei(e,t,n,r==null?1:r)}function Ei(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ro(Ei,B0,ss(Vr,{brighter(e){return e=e==null?Do:Math.pow(Do,e),new Ei(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Oi:Math.pow(Oi,e),new Ei(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*Ax,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new tt(255*(t+n*(jx*r+z0*i)),255*(t+n*(F0*r+rc*i)),255*(t+n*(cs*r)),this.opacity)}}));function Ux(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Vx(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),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Ux((n-r/t)*t,a,i,o,s)}}function Yx(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Ux((n-r/t)*t,i,o,a,s)}}var ic=e=>()=>e;function Gx(e,t){return function(n){return e+n*t}}function l7(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)}}function oc(e,t){var n=t-e;return n?Gx(e,n>180||n<-180?n-360*Math.round(n/360):n):ic(isNaN(e)?t:e)}function c7(e){return(e=+e)==1?nt:function(t,n){return n-t?l7(t,n,e):ic(isNaN(t)?n:t)}}function nt(e,t){var n=t-e;return n?Gx(e,n):ic(isNaN(e)?t:e)}var ac=function e(t){var n=c7(t);function r(i,o){var a=n((i=Jl(i)).r,(o=Jl(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=nt(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function Xx(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=Jl(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=o(u),s+""}}}var f7=Xx(Vx),h7=Xx(Yx);function j0(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Kx(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function d7(e,t){return(Kx(t)?j0:Zx)(e,t)}function Zx(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Ai(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function Qx(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Pn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Jx(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ai(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var W0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,H0=new RegExp(W0.source,"g");function p7(e){return function(){return e}}function g7(e){return function(t){return e(t)+""}}function e2(e,t){var n=W0.lastIndex=H0.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=W0.exec(e))&&(i=H0.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Pn(r,i)})),n=H0.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?g7(u[0].x):p7(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function Ai(e,t){var n=typeof t,r;return t==null||n==="boolean"?ic(t):(n==="number"?Pn:n==="string"?(r=ls(t))?(t=r,ac):e2:t instanceof ls?ac:t instanceof Date?Qx:Kx(t)?j0:Array.isArray(t)?Zx:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Jx:Pn)(e,t)}function m7(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function y7(e,t){var n=oc(+e,+t);return function(r){var i=n(r);return i-360*Math.floor(i/360)}}function fs(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var t2=180/Math.PI,q0={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function n2(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*t2,skewX:Math.atan(u)*t2,scaleX:a,scaleY:s}}var sc;function v7(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?q0:n2(t.a,t.b,t.c,t.d,t.e,t.f)}function b7(e){return e==null||(sc||(sc=document.createElementNS("http://www.w3.org/2000/svg","g")),sc.setAttribute("transform",e),!(e=sc.transform.baseVal.consolidate()))?q0:(e=e.matrix,n2(e.a,e.b,e.c,e.d,e.e,e.f))}function r2(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:Pn(l,f)},{i:m-2,x:Pn(c,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function a(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Pn(l,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Pn(l,c)}):c&&f.push(i(f)+"skewX("+c+r)}function u(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:Pn(l,f)},{i:m-2,x:Pn(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,f,h),a(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(d){for(var p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var x7=r2(v7,"px, ","px)","deg)"),w7=r2(b7,", ",")",")"),_7=1e-12;function i2(e){return((e=Math.exp(e))+1/e)/2}function $7(e){return((e=Math.exp(e))-1/e)/2}function S7(e){return((e=Math.exp(2*e))-1)/(e+1)}var M7=function e(t,n,r){function i(o,a){var s=o[0],u=o[1],l=o[2],c=a[0],f=a[1],h=a[2],d=c-s,p=f-u,m=d*d+p*p,g,y;if(m<_7)y=Math.log(h/l)/t,g=function($){return[s+$*d,u+$*p,l*Math.exp(t*$*y)]};else{var v=Math.sqrt(m),x=(h*h-l*l+r*m)/(2*l*n*v),b=(h*h-l*l-r*m)/(2*h*n*v),_=Math.log(Math.sqrt(x*x+1)-x),w=Math.log(Math.sqrt(b*b+1)-b);y=(w-_)/t,g=function($){var T=$*y,k=i2(_),S=l/(n*v)*(k*S7(t*T+_)-$7(_));return[s+S*d,u+S*p,l*k/i2(t*T+_)]}}return g.duration=y*1e3*t/Math.SQRT2,g}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,u=s*s;return e(a,s,u)},i}(Math.SQRT2,2,4);function o2(e){return function(t,n){var r=e((t=P0(t)).h,(n=P0(n)).h),i=nt(t.s,n.s),o=nt(t.l,n.l),a=nt(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var a2=o2(oc),s2=o2(nt);function u2(e,t){var n=nt((e=A0(e)).l,(t=A0(t)).l),r=nt(e.a,t.a),i=nt(e.b,t.b),o=nt(e.opacity,t.opacity);return function(a){return e.l=n(a),e.a=r(a),e.b=i(a),e.opacity=o(a),e+""}}function l2(e){return function(t,n){var r=e((t=I0(t)).h,(n=I0(n)).h),i=nt(t.c,n.c),o=nt(t.l,n.l),a=nt(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var c2=l2(oc),f2=l2(nt);function h2(e){return function t(n){n=+n;function r(i,o){var a=e((i=B0(i)).h,(o=B0(o)).h),s=nt(i.s,o.s),u=nt(i.l,o.l),l=nt(i.opacity,o.opacity);return function(c){return i.h=a(c),i.s=s(c),i.l=u(Math.pow(c,n)),i.opacity=l(c),i+""}}return r.gamma=t,r}(1)}var d2=h2(oc),p2=h2(nt);function g2(e,t){t===void 0&&(t=e,e=Ai);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function T7(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}function k7(e){return function(){return e}}function uc(e){return+e}var m2=[0,1];function Tt(e){return e}function U0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:k7(isNaN(t)?NaN:.5)}function O7(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function C7(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=U0(i,r),o=n(a,o)):(r=U0(r,i),o=n(o,a)),function(s){return o(r(s))}}function P7(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=U0(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var u=os(e,s,1,r)-1;return o[u](i[u](s))}}function hs(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lc(){var e=m2,t=m2,n=Ai,r,i,o,a=Tt,s,u,l;function c(){var h=Math.min(e.length,t.length);return a!==Tt&&(a=O7(e[0],e[h-1])),s=h>2?P7:C7,u=l=null,f}function f(h){return h==null||isNaN(h=+h)?o:(u||(u=s(e.map(r),t,n)))(r(a(h)))}return f.invert=function(h){return a(i((l||(l=s(t,e.map(r),Pn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,uc),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=fs,c()},f.clamp=function(h){return arguments.length?(a=h?!0:Tt,c()):a!==Tt},f.interpolate=function(h){return arguments.length?(n=h,c()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,c()}}function V0(){return lc()(Tt,Tt)}function E7(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function cc(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 zo(e){return e=cc(Math.abs(e)),e?e[1]:NaN}function A7(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function N7(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var R7=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ds(e){if(!(t=R7.exec(e)))throw new Error("invalid format: "+e);var t;return new Y0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ds.prototype=Y0.prototype;function Y0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Y0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function D7(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var y2;function L7(e,t){var n=cc(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(y2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+cc(e,Math.max(0,t+o-1))[0]}function v2(e,t){var n=cc(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var b2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:E7,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)=>v2(e*100,t),r:v2,s:L7,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function x2(e){return e}var w2=Array.prototype.map,_2=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function I7(e){var t=e.grouping===void 0||e.thousands===void 0?x2:A7(w2.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?x2:N7(w2.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=ds(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,g=f.zero,y=f.width,v=f.comma,x=f.precision,b=f.trim,_=f.type;_==="n"?(v=!0,_="g"):b2[_]||(x===void 0&&(x=12),b=!0,_="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=m==="$"?r:/[%p]/.test(_)?a:"",T=b2[_],k=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function S(M){var A=w,E=$,O,P,C;if(_==="c")E=T(M)+E,M="";else{M=+M;var N=M<0||1/M<0;if(M=isNaN(M)?u:T(Math.abs(M),x),b&&(M=D7(M)),N&&+M==0&&p!=="+"&&(N=!1),A=(N?p==="("?p:s:p==="-"||p==="("?"":p)+A,E=(_==="s"?_2[8+y2/3]:"")+E+(N&&p==="("?")":""),k){for(O=-1,P=M.length;++O<P;)if(C=M.charCodeAt(O),48>C||C>57){E=(C===46?i+M.slice(O+1):M.slice(O))+E,M=M.slice(0,O);break}}}v&&!g&&(M=t(M,1/0));var D=A.length+M.length+E.length,I=D<y?new Array(y-D+1).join(h):"";switch(v&&g&&(M=t(I+M,I.length?y-E.length:1/0),I=""),d){case"<":M=A+M+E+I;break;case"=":M=A+I+M+E;break;case"^":M=I.slice(0,D=I.length>>1)+A+M+E+I.slice(D);break;default:M=I+A+M+E;break}return o(M)}return S.toString=function(){return f+""},S}function c(f,h){var d=l((f=ds(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(zo(h)/3)))*3,m=Math.pow(10,-p),g=_2[8+p/3];return function(y){return d(m*y)+g}}return{format:l,formatPrefix:c}}var fc,G0,$2;z7({thousands:",",grouping:[3],currency:["$",""]});function z7(e){return fc=I7(e),G0=fc.format,$2=fc.formatPrefix,fc}function F7(e){return Math.max(0,-zo(Math.abs(e)))}function B7(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zo(t)/3)))*3-zo(Math.abs(e)))}function j7(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,zo(t)-zo(e))+1}function S2(e,t,n,r){var i=k0(e,t,n),o;switch(r=ds(r==null?",f":r),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=B7(i,a))&&(r.precision=o),$2(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=j7(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=F7(i))&&(r.precision=o-(r.type==="%")*2);break}}return G0(r)}function Yr(e){var t=e.domain;return e.ticks=function(n){var r=t();return T0(r[0],r[r.length-1],n==null?10:n)},e.tickFormat=function(n,r){var i=t();return S2(i[0],i[i.length-1],n==null?10:n,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],u,l,c=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);c-- >0;){if(l=mx(a,s,n),l===u)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function X0(){var e=V0();return e.copy=function(){return hs(e,X0())},gn.apply(e,arguments),Yr(e)}function M2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,uc),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return M2(e).unknown(t)},e=arguments.length?Array.from(e,uc):[0,1],Yr(n)}function T2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function k2(e){return Math.log(e)}function O2(e){return Math.exp(e)}function W7(e){return-Math.log(-e)}function H7(e){return-Math.exp(-e)}function q7(e){return isFinite(e)?+("1e"+e):e<0?0:e}function U7(e){return e===10?q7:e===Math.E?Math.exp:t=>Math.pow(e,t)}function V7(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function C2(e){return(t,n)=>-e(-t,n)}function K0(e){const t=e(k2,O2),n=t.domain;let r=10,i,o;function a(){return i=V7(r),o=U7(r),n()[0]<0?(i=C2(i),o=C2(o),e(W7,H7)):e(k2,O2),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const u=n();let l=u[0],c=u[u.length-1];const f=c<l;f&&([l,c]=[c,l]);let h=i(l),d=i(c),p,m;const g=s==null?10:+s;let y=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(p=1;p<r;++p)if(m=h<0?p/o(-h):p*o(h),!(m<l)){if(m>c)break;y.push(m)}}else for(;h<=d;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/o(-h):p*o(h),!(m<l)){if(m>c)break;y.push(m)}y.length*2<g&&(y=T0(l,c,g))}else y=T0(h,d,Math.min(d-h,g)).map(o);return f?y.reverse():y},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=ds(u)).precision==null&&(u.trim=!0),u=G0(u)),s===1/0)return u;const l=Math.max(1,r*s/t.ticks().length);return c=>{let f=c/o(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=l?u(c):""}},t.nice=()=>n(T2(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Z0(){const e=K0(lc()).domain([1,10]);return e.copy=()=>hs(e,Z0()).base(e.base()),gn.apply(e,arguments),e}function P2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function E2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Q0(e){var t=1,n=e(P2(t),E2(t));return n.constant=function(r){return arguments.length?e(P2(t=+r),E2(t)):t},Yr(n)}function J0(){var e=Q0(lc());return e.copy=function(){return hs(e,J0()).constant(e.constant())},gn.apply(e,arguments)}function A2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Y7(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function G7(e){return e<0?-e*e:e*e}function ep(e){var t=e(Tt,Tt),n=1;function r(){return n===1?e(Tt,Tt):n===.5?e(Y7,G7):e(A2(n),A2(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Yr(t)}function hc(){var e=ep(lc());return e.copy=function(){return hs(e,hc()).exponent(e.exponent())},gn.apply(e,arguments),e}function N2(){return hc.apply(null,arguments).exponent(.5)}function R2(e){return Math.sign(e)*e*e}function X7(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function tp(){var e=V0(),t=[0,1],n=!1,r;function i(o){var a=X7(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(R2(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,uc)).map(R2)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return tp(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},gn.apply(i,arguments),Yr(i)}function np(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=XC(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[os(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ur),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return np().domain(e).range(t).unknown(r)},gn.apply(o,arguments)}function rp(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(u){return u!=null&&u<=u?i[os(r,u,0,n)]:o}function s(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return a}return a.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},a.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,s()):i.slice()},a.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,r[0]]:l>=n?[r[n-1],t]:[r[l-1],r[l]]},a.unknown=function(u){return arguments.length&&(o=u),a},a.thresholds=function(){return r.slice()},a.copy=function(){return rp().domain([e,t]).range(i).unknown(o)},gn.apply(Yr(a),arguments)}function ip(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[os(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return ip().domain(e).range(t).unknown(n)},gn.apply(i,arguments)}const op=new Date,ap=new Date;function qe(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const u=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return u;let l;do u.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return u},i.filter=o=>qe(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(op.setTime(+o),ap.setTime(+a),e(op),e(ap),Math.floor(n(op,ap))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Fo=qe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Fo.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qe(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Fo);const D2=Fo.range,_r=1e3,mn=_r*60,$r=mn*60,Sr=$r*24,sp=Sr*7,L2=Sr*30,up=Sr*365,En=qe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*_r)},(e,t)=>(t-e)/_r,e=>e.getUTCSeconds()),I2=En.range,ps=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r)},(e,t)=>{e.setTime(+e+t*mn)},(e,t)=>(t-e)/mn,e=>e.getMinutes()),K7=ps.range,gs=qe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*mn)},(e,t)=>(t-e)/mn,e=>e.getUTCMinutes()),Z7=gs.range,ms=qe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*_r-e.getMinutes()*mn)},(e,t)=>{e.setTime(+e+t*$r)},(e,t)=>(t-e)/$r,e=>e.getHours()),Q7=ms.range,ys=qe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$r)},(e,t)=>(t-e)/$r,e=>e.getUTCHours()),J7=ys.range,Ni=qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*mn)/Sr,e=>e.getDate()-1),e9=Ni.range,Bo=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>e.getUTCDate()-1),t9=Bo.range,lp=qe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Sr,e=>Math.floor(e/Sr)),n9=lp.range;function Ri(e){return qe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*mn)/sp)}const Di=Ri(0),vs=Ri(1),z2=Ri(2),F2=Ri(3),Li=Ri(4),B2=Ri(5),j2=Ri(6),W2=Di.range,r9=vs.range,i9=z2.range,o9=F2.range,a9=Li.range,s9=B2.range,u9=j2.range;function Ii(e){return qe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/sp)}const zi=Ii(0),bs=Ii(1),H2=Ii(2),q2=Ii(3),Fi=Ii(4),U2=Ii(5),V2=Ii(6),Y2=zi.range,l9=bs.range,c9=H2.range,f9=q2.range,h9=Fi.range,d9=U2.range,p9=V2.range,xs=qe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),g9=xs.range,ws=qe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),m9=ws.range,An=qe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());An.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});const y9=An.range,Nn=qe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Nn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});const v9=Nn.range;function G2(e,t,n,r,i,o){const a=[[En,1,_r],[En,5,5*_r],[En,15,15*_r],[En,30,30*_r],[o,1,mn],[o,5,5*mn],[o,15,15*mn],[o,30,30*mn],[i,1,$r],[i,3,3*$r],[i,6,6*$r],[i,12,12*$r],[r,1,Sr],[r,2,2*Sr],[n,1,sp],[t,1,L2],[t,3,3*L2],[e,1,up]];function s(l,c,f){const h=c<l;h&&([l,c]=[c,l]);const d=f&&typeof f.range=="function"?f:u(l,c,f),p=d?d.range(l,+c+1):[];return h?p.reverse():p}function u(l,c,f){const h=Math.abs(c-l)/f,d=Xl(([,,g])=>g).right(a,h);if(d===a.length)return e.every(k0(l/up,c/up,f));if(d===0)return Fo.every(Math.max(k0(l,c,f),1));const[p,m]=a[h/a[d-1][2]<a[d][2]/h?d-1:d];return p.every(m)}return[s,u]}const[X2,K2]=G2(Nn,ws,zi,lp,ys,gs),[Z2,Q2]=G2(An,xs,Di,Ni,ms,ps);function cp(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 fp(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 _s(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function b9(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=$s(i),c=Ss(i),f=$s(o),h=Ss(o),d=$s(a),p=Ss(a),m=$s(s),g=Ss(s),y=$s(u),v=Ss(u),x={a:N,A:D,b:I,B,c:null,d:iw,e:iw,f:W9,g:Q9,G:eP,H:F9,I:B9,j:j9,L:ow,m:H9,M:q9,p:U,q:Y,Q:fw,s:hw,S:U9,u:V9,U:Y9,V:G9,w:X9,W:K9,x:null,X:null,y:Z9,Y:J9,Z:tP,"%":cw},b={a:J,A:q,b:j,B:V,c:null,d:sw,e:sw,f:oP,g:gP,G:yP,H:nP,I:rP,j:iP,L:uw,m:aP,M:sP,p:G,q:ne,Q:fw,s:hw,S:uP,u:lP,U:cP,V:fP,w:hP,W:dP,x:null,X:null,y:pP,Y:mP,Z:vP,"%":cw},_={a:S,A:M,b:A,B:E,c:O,d:nw,e:nw,f:D9,g:tw,G:ew,H:rw,I:rw,j:E9,L:R9,m:P9,M:A9,p:k,q:C9,Q:I9,s:z9,S:N9,u:S9,U:M9,V:T9,w:$9,W:k9,x:P,X:C,y:tw,Y:ew,Z:O9,"%":L9};x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),b.x=w(n,b),b.X=w(r,b),b.c=w(t,b);function w(L,W){return function(X){var R=[],te=-1,ee=0,se=L.length,ce,ie,ge;for(X instanceof Date||(X=new Date(+X));++te<se;)L.charCodeAt(te)===37&&(R.push(L.slice(ee,te)),(ie=J2[ce=L.charAt(++te)])!=null?ce=L.charAt(++te):ie=ce==="e"?" ":"0",(ge=W[ce])&&(ce=ge(X,ie)),R.push(ce),ee=te+1);return R.push(L.slice(ee,te)),R.join("")}}function $(L,W){return function(X){var R=_s(1900,void 0,1),te=T(R,L,X+="",0),ee,se;if(te!=X.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(W&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(ee=fp(_s(R.y,0,1)),se=ee.getUTCDay(),ee=se>4||se===0?bs.ceil(ee):bs(ee),ee=Bo.offset(ee,(R.V-1)*7),R.y=ee.getUTCFullYear(),R.m=ee.getUTCMonth(),R.d=ee.getUTCDate()+(R.w+6)%7):(ee=cp(_s(R.y,0,1)),se=ee.getDay(),ee=se>4||se===0?vs.ceil(ee):vs(ee),ee=Ni.offset(ee,(R.V-1)*7),R.y=ee.getFullYear(),R.m=ee.getMonth(),R.d=ee.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),se="Z"in R?fp(_s(R.y,0,1)).getUTCDay():cp(_s(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(se+5)%7:R.w+R.U*7-(se+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,fp(R)):cp(R)}}function T(L,W,X,R){for(var te=0,ee=W.length,se=X.length,ce,ie;te<ee;){if(R>=se)return-1;if(ce=W.charCodeAt(te++),ce===37){if(ce=W.charAt(te++),ie=_[ce in J2?W.charAt(te++):ce],!ie||(R=ie(L,X,R))<0)return-1}else if(ce!=X.charCodeAt(R++))return-1}return R}function k(L,W,X){var R=l.exec(W.slice(X));return R?(L.p=c.get(R[0].toLowerCase()),X+R[0].length):-1}function S(L,W,X){var R=d.exec(W.slice(X));return R?(L.w=p.get(R[0].toLowerCase()),X+R[0].length):-1}function M(L,W,X){var R=f.exec(W.slice(X));return R?(L.w=h.get(R[0].toLowerCase()),X+R[0].length):-1}function A(L,W,X){var R=y.exec(W.slice(X));return R?(L.m=v.get(R[0].toLowerCase()),X+R[0].length):-1}function E(L,W,X){var R=m.exec(W.slice(X));return R?(L.m=g.get(R[0].toLowerCase()),X+R[0].length):-1}function O(L,W,X){return T(L,t,W,X)}function P(L,W,X){return T(L,n,W,X)}function C(L,W,X){return T(L,r,W,X)}function N(L){return a[L.getDay()]}function D(L){return o[L.getDay()]}function I(L){return u[L.getMonth()]}function B(L){return s[L.getMonth()]}function U(L){return i[+(L.getHours()>=12)]}function Y(L){return 1+~~(L.getMonth()/3)}function J(L){return a[L.getUTCDay()]}function q(L){return o[L.getUTCDay()]}function j(L){return u[L.getUTCMonth()]}function V(L){return s[L.getUTCMonth()]}function G(L){return i[+(L.getUTCHours()>=12)]}function ne(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var W=w(L+="",x);return W.toString=function(){return L},W},parse:function(L){var W=$(L+="",!1);return W.toString=function(){return L},W},utcFormat:function(L){var W=w(L+="",b);return W.toString=function(){return L},W},utcParse:function(L){var W=$(L+="",!0);return W.toString=function(){return L},W}}}var J2={"-":"",_:" ",0:"0"},rt=/^\s*\d+/,x9=/^%/,w9=/[\\^$*+?|[\]().{}]/g;function we(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function _9(e){return e.replace(w9,"\\$&")}function $s(e){return new RegExp("^(?:"+e.map(_9).join("|")+")","i")}function Ss(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function $9(e,t,n){var r=rt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function S9(e,t,n){var r=rt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function M9(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function T9(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function k9(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function ew(e,t,n){var r=rt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tw(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function O9(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 C9(e,t,n){var r=rt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function P9(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nw(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function E9(e,t,n){var r=rt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function rw(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function A9(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function N9(e,t,n){var r=rt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function R9(e,t,n){var r=rt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function D9(e,t,n){var r=rt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function L9(e,t,n){var r=x9.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function I9(e,t,n){var r=rt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function z9(e,t,n){var r=rt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function iw(e,t){return we(e.getDate(),t,2)}function F9(e,t){return we(e.getHours(),t,2)}function B9(e,t){return we(e.getHours()%12||12,t,2)}function j9(e,t){return we(1+Ni.count(An(e),e),t,3)}function ow(e,t){return we(e.getMilliseconds(),t,3)}function W9(e,t){return ow(e,t)+"000"}function H9(e,t){return we(e.getMonth()+1,t,2)}function q9(e,t){return we(e.getMinutes(),t,2)}function U9(e,t){return we(e.getSeconds(),t,2)}function V9(e){var t=e.getDay();return t===0?7:t}function Y9(e,t){return we(Di.count(An(e)-1,e),t,2)}function aw(e){var t=e.getDay();return t>=4||t===0?Li(e):Li.ceil(e)}function G9(e,t){return e=aw(e),we(Li.count(An(e),e)+(An(e).getDay()===4),t,2)}function X9(e){return e.getDay()}function K9(e,t){return we(vs.count(An(e)-1,e),t,2)}function Z9(e,t){return we(e.getFullYear()%100,t,2)}function Q9(e,t){return e=aw(e),we(e.getFullYear()%100,t,2)}function J9(e,t){return we(e.getFullYear()%1e4,t,4)}function eP(e,t){var n=e.getDay();return e=n>=4||n===0?Li(e):Li.ceil(e),we(e.getFullYear()%1e4,t,4)}function tP(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function sw(e,t){return we(e.getUTCDate(),t,2)}function nP(e,t){return we(e.getUTCHours(),t,2)}function rP(e,t){return we(e.getUTCHours()%12||12,t,2)}function iP(e,t){return we(1+Bo.count(Nn(e),e),t,3)}function uw(e,t){return we(e.getUTCMilliseconds(),t,3)}function oP(e,t){return uw(e,t)+"000"}function aP(e,t){return we(e.getUTCMonth()+1,t,2)}function sP(e,t){return we(e.getUTCMinutes(),t,2)}function uP(e,t){return we(e.getUTCSeconds(),t,2)}function lP(e){var t=e.getUTCDay();return t===0?7:t}function cP(e,t){return we(zi.count(Nn(e)-1,e),t,2)}function lw(e){var t=e.getUTCDay();return t>=4||t===0?Fi(e):Fi.ceil(e)}function fP(e,t){return e=lw(e),we(Fi.count(Nn(e),e)+(Nn(e).getUTCDay()===4),t,2)}function hP(e){return e.getUTCDay()}function dP(e,t){return we(bs.count(Nn(e)-1,e),t,2)}function pP(e,t){return we(e.getUTCFullYear()%100,t,2)}function gP(e,t){return e=lw(e),we(e.getUTCFullYear()%100,t,2)}function mP(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function yP(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fi(e):Fi.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function vP(){return"+0000"}function cw(){return"%"}function fw(e){return+e}function hw(e){return Math.floor(+e/1e3)}var jo,dw,pw;bP({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function bP(e){return jo=b9(e),dw=jo.format,jo.parse,pw=jo.utcFormat,jo.utcParse,jo}function xP(e){return new Date(e)}function wP(e){return e instanceof Date?+e:+new Date(+e)}function hp(e,t,n,r,i,o,a,s,u,l){var c=V0(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),v=l("%b %d"),x=l("%B"),b=l("%Y");function _(w){return(u(w)<w?d:s(w)<w?p:a(w)<w?m:o(w)<w?g:r(w)<w?i(w)<w?y:v:n(w)<w?x:b)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,wP)):h().map(xP)},c.ticks=function(w){var $=h();return e($[0],$[$.length-1],w==null?10:w)},c.tickFormat=function(w,$){return $==null?_:l($)},c.nice=function(w){var $=h();return(!w||typeof w.range!="function")&&(w=t($[0],$[$.length-1],w==null?10:w)),w?h(T2($,w)):c},c.copy=function(){return hs(c,hp(e,t,n,r,i,o,a,s,u,l))},c}function gw(){return gn.apply(hp(Z2,Q2,An,xs,Di,Ni,ms,ps,En,dw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function mw(){return gn.apply(hp(X2,K2,Nn,ws,zi,Bo,ys,gs,En,pw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function dc(){var e=0,t=1,n,r,i,o,a=Tt,s=!1,u;function l(f){return f==null||isNaN(f=+f)?u:a(i===0?.5:(f=(o(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(a=f,l):a};function c(f){return function(h){var d,p;return arguments.length?([d,p]=h,a=f(d,p),l):[a(0),a(1)]}}return l.range=c(Ai),l.rangeRound=c(fs),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),l}}function Gr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function yw(){var e=Yr(dc()(Tt));return e.copy=function(){return Gr(e,yw())},xr.apply(e,arguments)}function vw(){var e=K0(dc()).domain([1,10]);return e.copy=function(){return Gr(e,vw()).base(e.base())},xr.apply(e,arguments)}function bw(){var e=Q0(dc());return e.copy=function(){return Gr(e,bw()).constant(e.constant())},xr.apply(e,arguments)}function dp(){var e=ep(dc());return e.copy=function(){return Gr(e,dp()).exponent(e.exponent())},xr.apply(e,arguments)}function _P(){return dp.apply(null,arguments).exponent(.5)}function xw(){var e=[],t=Tt;function n(r){if(r!=null&&!isNaN(r=+r))return t((os(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ur),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>GC(e,o/r))},n.copy=function(){return xw(t).domain(e)},xr.apply(n,arguments)}function pc(){var e=0,t=.5,n=1,r=1,i,o,a,s,u,l=Tt,c,f=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-o)*(r*m<r*o?s:u),l(f?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),o=c(t=+t),a=c(n=+n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d):[e,t,n]},d.clamp=function(m){return arguments.length?(f=!!m,d):f},d.interpolator=function(m){return arguments.length?(l=m,d):l};function p(m){return function(g){var y,v,x;return arguments.length?([y,v,x]=g,l=g2(m,[y,v,x]),d):[l(0),l(.5),l(1)]}}return d.range=p(Ai),d.rangeRound=p(fs),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return c=m,i=m(e),o=m(t),a=m(n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d}}function ww(){var e=Yr(pc()(Tt));return e.copy=function(){return Gr(e,ww())},xr.apply(e,arguments)}function _w(){var e=K0(pc()).domain([.1,1,10]);return e.copy=function(){return Gr(e,_w()).base(e.base())},xr.apply(e,arguments)}function $w(){var e=Q0(pc());return e.copy=function(){return Gr(e,$w()).constant(e.constant())},xr.apply(e,arguments)}function pp(){var e=ep(pc());return e.copy=function(){return Gr(e,pp()).exponent(e.exponent())},xr.apply(e,arguments)}function $P(){return pp.apply(null,arguments).exponent(.5)}var SP=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zl,scalePoint:_x,scaleIdentity:M2,scaleLinear:X0,scaleLog:Z0,scaleSymlog:J0,scaleOrdinal:Kl,scaleImplicit:O0,scalePow:hc,scaleSqrt:N2,scaleRadial:tp,scaleQuantile:np,scaleQuantize:rp,scaleThreshold:ip,scaleTime:gw,scaleUtc:mw,scaleSequential:yw,scaleSequentialLog:vw,scaleSequentialPow:dp,scaleSequentialSqrt:_P,scaleSequentialSymlog:bw,scaleSequentialQuantile:xw,scaleDiverging:ww,scaleDivergingLog:_w,scaleDivergingPow:pp,scaleDivergingSqrt:$P,scaleDivergingSymlog:$w,tickFormat:S2},Symbol.toStringTag,{value:"Module"}));function MP(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function TP(e,t){t.range&&("padding"in e,e.range(t.range))}function kP(e,t){"align"in e&&"align"in t&&typeof t.align!="undefined"&&e.align(t.align)}function OP(e,t){"base"in e&&"base"in t&&typeof t.base!="undefined"&&e.base(t.base)}function CP(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp!="undefined"&&e.clamp(t.clamp)}function PP(e,t){"constant"in e&&"constant"in t&&typeof t.constant!="undefined"&&e.constant(t.constant)}function EP(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent!="undefined"&&e.exponent(t.exponent)}var AP=Object.freeze(Object.defineProperty({__proto__:null,interpolate:Ai,interpolateArray:d7,interpolateBasis:Vx,interpolateBasisClosed:Yx,interpolateDate:Qx,interpolateDiscrete:m7,interpolateHue:y7,interpolateNumber:Pn,interpolateNumberArray:j0,interpolateObject:Jx,interpolateRound:fs,interpolateString:e2,interpolateTransformCss:x7,interpolateTransformSvg:w7,interpolateZoom:M7,interpolateRgb:ac,interpolateRgbBasis:f7,interpolateRgbBasisClosed:h7,interpolateHsl:a2,interpolateHslLong:s2,interpolateLab:u2,interpolateHcl:c2,interpolateHclLong:f2,interpolateCubehelix:d2,interpolateCubehelixLong:p2,piecewise:g2,quantize:T7},Symbol.toStringTag,{value:"Module"})),Sw={lab:u2,hcl:c2,"hcl-long":f2,hsl:a2,"hsl-long":s2,cubehelix:d2,"cubehelix-long":p2,rgb:ac};function NP(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Sw[e]}var t=e.type,n=e.gamma,r=Sw[t];return typeof n=="undefined"?r:r.gamma(n)}function RP(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate!="undefined"){var n=NP(t.interpolate);e.interpolate(n)}}var DP=Object.freeze(Object.defineProperty({__proto__:null,timeInterval:qe,utcMillisecond:Fo,utcMilliseconds:D2,timeMillisecond:Fo,timeMilliseconds:D2,utcSecond:En,utcSeconds:I2,timeSecond:En,timeSeconds:I2,timeMinute:ps,timeMinutes:K7,utcMinute:gs,utcMinutes:Z7,timeHour:ms,timeHours:Q7,utcHour:ys,utcHours:J7,timeDay:Ni,timeDays:e9,utcDay:Bo,utcDays:t9,unixDay:lp,unixDays:n9,timeWeek:Di,timeWeeks:W2,timeSunday:Di,timeSundays:W2,timeMonday:vs,timeMondays:r9,timeTuesday:z2,timeTuesdays:i9,timeWednesday:F2,timeWednesdays:o9,timeThursday:Li,timeThursdays:a9,timeFriday:B2,timeFridays:s9,timeSaturday:j2,timeSaturdays:u9,utcWeek:zi,utcWeeks:Y2,utcSunday:zi,utcSundays:Y2,utcMonday:bs,utcMondays:l9,utcTuesday:H2,utcTuesdays:c9,utcWednesday:q2,utcWednesdays:f9,utcThursday:Fi,utcThursdays:h9,utcFriday:U2,utcFridays:d9,utcSaturday:V2,utcSaturdays:p9,timeMonth:xs,timeMonths:g9,utcMonth:ws,utcMonths:m9,timeYear:An,timeYears:y9,utcYear:Nn,utcYears:v9,utcTicks:X2,utcTickInterval:K2,timeTicks:Z2,timeTickInterval:Q2},Symbol.toStringTag,{value:"Module"})),LP=new Date(Date.UTC(2020,1,2,3,4,5)),IP="%Y-%m-%d %H:%M";function Mw(e){var t=e.tickFormat(1,IP)(LP);return t==="2020-02-02 03:04"}var Tw={day:Ni,hour:ms,minute:ps,month:xs,second:En,week:Di,year:An},kw={day:Bo,hour:ys,minute:gs,month:ws,second:En,week:zi,year:Nn};function zP(e,t){if("nice"in t&&typeof t.nice!="undefined"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,i=Mw(r);if(typeof n=="string")r.nice(i?kw[n]:Tw[n]);else{var o=n.interval,a=n.step,s=(i?kw[o]:Tw[o]).every(a);s!=null&&r.nice(s)}}}}function FP(e,t){"padding"in e&&"padding"in t&&typeof t.padding!="undefined"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner!="undefined"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter!="undefined"&&e.paddingOuter(t.paddingOuter)}function BP(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}function jP(e,t){"round"in t&&typeof t.round!="undefined"&&(t.round&&"interpolate"in t&&typeof t.interpolate!="undefined"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(fs))}function WP(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown!="undefined"&&e.unknown(t.unknown)}function HP(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],i=n[1],o=i<r,a=o?[i,r]:[r,i],s=a[0],u=a[1],l=[Math.min(0,s),Math.max(0,u)];e.domain(o?l.reverse():l)}}var Ow=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],qP={domain:MP,nice:zP,zero:HP,interpolate:RP,round:jP,align:kP,base:OP,clamp:CP,constant:PP,exponent:EP,padding:FP,range:TP,reverse:BP,unknown:WP};function kt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),i=Ow.filter(function(o){return r.has(o)});return function(a,s){return typeof s!="undefined"&&i.forEach(function(u){qP[u](a,s)}),a}}var UP=kt("domain","range","reverse","align","padding","round");function Bi(e){return UP(Zl(),e)}var VP=kt("domain","range","reverse","align","padding","round");function Cw(e){return VP(_x(),e)}var YP=kt("domain","range","reverse","clamp","interpolate","nice","round","zero");function Wo(e){return YP(X0(),e)}var GP=kt("domain","range","clamp","nice","round","unknown");function XP(e){return GP(tp(),e)}var KP=kt("domain","range","reverse","clamp","interpolate","nice","round");function Pw(e){return KP(gw(),e)}var ZP=kt("domain","range","reverse","clamp","interpolate","nice","round");function Ew(e){return ZP(mw(),e)}var QP=kt("domain","range","reverse","base","clamp","interpolate","nice","round");function Aw(e){return QP(Z0(),e)}var JP=kt("domain","range","reverse","clamp","exponent","interpolate","nice","round","zero");function Nw(e){return JP(hc(),e)}var eE=kt("domain","range","reverse","unknown");function Ho(e){return eE(Kl(),e)}var tE=kt("domain","range","reverse","nice","zero");function Rw(e){return tE(rp(),e)}var nE=kt("domain","range","reverse");function Dw(e){return nE(np(),e)}var rE=kt("domain","range","reverse","clamp","constant","nice","zero","round");function Lw(e){return rE(J0(),e)}var iE=kt("domain","range","reverse");function Iw(e){return iE(ip(),e)}var oE=kt("domain","range","reverse","clamp","interpolate","nice","round","zero");function zw(e){return oE(N2(),e)}function Ms(e){if(typeof e!="undefined"&&"type"in e)switch(e.type){case"linear":return Wo(e);case"log":return Aw(e);case"pow":return Nw(e);case"sqrt":return zw(e);case"symlog":return Lw(e);case"time":return Pw(e);case"utc":return Ew(e);case"quantile":return Dw(e);case"quantize":return Rw(e);case"threshold":return Iw(e);case"ordinal":return Ho(e);case"point":return Cw(e);case"band":return Bi(e)}return Wo(e)}var aE=kt.apply(void 0,Ow);function sE(e,t){return aE(e.copy(),t)}function uE(e){return"paddingInner"in e?"band":"padding"in e?"point":"quantiles"in e?"quantile":"base"in e?"log":"exponent"in e?e.exponent()===.5?"sqrt":"pow":"constant"in e?"symlog":"clamp"in e?e.ticks()[0]instanceof Date?Mw(e)?"utc":"time":"linear":"nice"in e?"quantize":"invertExtent"in e?"threshold":"ordinal"}function gc(e){if((typeof e=="function"||typeof e=="object"&&!!e)&&"valueOf"in e){var t=e.valueOf();if(typeof t=="number")return t}return e}function mc(e,t){var n=e;return"ticks"in n?n.ticks(t):n.domain().filter(function(r,i,o){return t==null||o.length<=t||i%Math.round((o.length-1)/t)===0})}function Fw(e){return e==null?void 0:e.toString()}var lE=new Set(["linear","pow","quantize","sqrt","symlog"]);function gp(e){return lE.has(e.type)}var cE=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Bi,scalePoint:Cw,scaleLinear:Wo,scaleRadial:XP,scaleTime:Pw,scaleUtc:Ew,scaleLog:Aw,scalePower:Nw,scaleOrdinal:Ho,scaleQuantize:Rw,scaleQuantile:Dw,scaleSymlog:Lw,scaleThreshold:Iw,scaleSqrt:zw,createScale:Ms,updateScale:sE,inferScaleType:uE,coerceNumber:gc,getTicks:mc,toString:Fw,scaleCanBeZeroed:gp},Symbol.toStringTag,{value:"Module"})),fE=Bw;function Bw(e,t,n){e instanceof RegExp&&(e=jw(e,n)),t instanceof RegExp&&(t=jw(t,n));var r=Ww(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function jw(e,t){var n=t.match(e);return n?n[0]:null}Bw.range=Ww;function Ww(e,t,n){var r,i,o,a,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<o&&(o=i,a=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[o,a])}return s}var hE=Hw;function Hw(e,t,n){e instanceof RegExp&&(e=qw(e,n)),t instanceof RegExp&&(t=qw(t,n));var r=Uw(e,t,n);return r&&{start:r[0],end:r[1],pre:n.slice(0,r[0]),body:n.slice(r[0]+e.length,r[1]),post:n.slice(r[1]+t.length)}}function qw(e,t){var n=t.match(e);return n?n[0]:null}Hw.range=Uw;function Uw(e,t,n){var r,i,o,a,s,u=n.indexOf(e),l=n.indexOf(t,u+1),c=u;if(u>=0&&l>0){if(e===t)return[u,l];for(r=[],o=n.length;c>=0&&!s;)c==u?(r.push(c),u=n.indexOf(e,c+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i<o&&(o=i,a=l),l=n.indexOf(t,c+1)),c=u<l&&u>=0?u:l;r.length&&(s=[o,a])}return s}var dE=hE,pE=Vw;function Vw(e,t,n){var r=e;return gE(e,t).reduce(function(i,o){return i.replace(o.functionIdentifier+"("+o.matches.body+")",mE(o.matches.body,o.functionIdentifier,n,r,t))},e)}function gE(e,t){var n=[],r=typeof t=="string"?new RegExp("\\b("+t+")\\("):t;do{var i=r.exec(e);if(!i)return n;if(i[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+t);var o=i[1],a=i.index,s=dE("(",")",e.substring(a));if(!s||s.start!==i[0].length-1)throw new SyntaxError(o+"(): missing closing ')' in the value '"+e+"'");n.push({matches:s,functionIdentifier:o}),e=s.post}while(r.test(e));return n}function mE(e,t,n,r,i){return n(Vw(e,i,n),t,r)}var Ot=function(e){this.value=e};Ot.math={isDegree:!0,acos:function(e){return Ot.math.isDegree?180/Math.PI*Math.acos(e):Math.acos(e)},add:function(e,t){return e+t},asin:function(e){return Ot.math.isDegree?180/Math.PI*Math.asin(e):Math.asin(e)},atan:function(e){return Ot.math.isDegree?180/Math.PI*Math.atan(e):Math.atan(e)},acosh:function(e){return Math.log(e+Math.sqrt(e*e-1))},asinh:function(e){return Math.log(e+Math.sqrt(e*e+1))},atanh:function(e){return Math.log((1+e)/(1-e))},C:function(e,t){var n=1,r=e-t,i=t;i<r&&(i=r,r=t);for(var o=i+1;o<=e;o++)n*=o;return n/Ot.math.fact(r)},changeSign:function(e){return-e},cos:function(e){return Ot.math.isDegree&&(e=Ot.math.toRadian(e)),Math.cos(e)},cosh:function(e){return(Math.pow(Math.E,e)+Math.pow(Math.E,-1*e))/2},div:function(e,t){return e/t},fact:function(e){if(e%1!==0)return"NaN";for(var t=1,n=2;n<=e;n++)t*=n;return t},inverse:function(e){return 1/e},log:function(e){return Math.log(e)/Math.log(10)},mod:function(e,t){return e%t},mul:function(e,t){return e*t},P:function(e,t){for(var n=1,r=Math.floor(e)-Math.floor(t)+1;r<=Math.floor(e);r++)n*=r;return n},Pi:function(e,t,n){for(var r=1,i=e;i<=t;i++)r*=Number(n.postfixEval({n:i}));return r},pow10x:function(e){for(var t=1;e--;)t*=10;return t},sigma:function(e,t,n){for(var r=0,i=e;i<=t;i++)r+=Number(n.postfixEval({n:i}));return r},sin:function(e){return Ot.math.isDegree&&(e=Ot.math.toRadian(e)),Math.sin(e)},sinh:function(e){return(Math.pow(Math.E,e)-Math.pow(Math.E,-1*e))/2},sub:function(e,t){return e-t},tan:function(e){return Ot.math.isDegree&&(e=Ot.math.toRadian(e)),Math.tan(e)},tanh:function(e){return Ot.sinha(e)/Ot.cosha(e)},toRadian:function(e){return e*Math.PI/180},and:function(e,t){return e&t}},Ot.Exception=function(e){this.message=e};var yE=Ot,he=yE;function Ct(e,t){for(var n=0;n<e.length;n++)e[n]+=t;return e}for(var Xr=[{token:"sin",show:"sin",type:0,value:he.math.sin},{token:"cos",show:"cos",type:0,value:he.math.cos},{token:"tan",show:"tan",type:0,value:he.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:he.math.P},{token:"C",show:"C",type:10,value:he.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:he.math.asin},{token:"acos",show:"acos",type:0,value:he.math.acos},{token:"atan",show:"atan",type:0,value:he.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:he.math.cosh},{token:"acosh",show:"acosh",type:0,value:he.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:he.math.div},{token:"!",show:"!",type:7,value:he.math.fact},{token:"tanh",show:"tanh",type:0,value:he.math.tanh},{token:"atanh",show:"atanh",type:0,value:he.math.atanh},{token:"Mod",show:" Mod ",type:2,value:he.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:he.math.mul},{token:"sinh",show:"sinh",type:0,value:he.math.sinh},{token:"asinh",show:"asinh",type:0,value:he.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:he.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:he.math.add},{token:"-",show:"-",type:9,value:he.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:he.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:he.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:he.math.and}],mp={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},yc=0;yc<Xr.length;yc++)Xr[yc].precedence=mp[Xr[yc].type];var qn={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},qo={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},vE={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},Rn={},Ts={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},bE={1:!0},Pt=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function xE(e,t,n,r){for(var i=0;i<r;i++)if(e[n+i]!==t[i])return!1;return!0}he.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},he.addToken=function(e){for(var t=0;t<e.length;t++){var n=e[t].token.length,r=-1;e[t].type===he.tokenTypes.FUNCTION_WITH_N_ARGS&&e[t].numberOfArguments===void 0&&(e[t].numberOfArguments=2),Pt[n]=Pt[n]||[];for(var i=0;i<Pt[n].length;i++)if(e[t].token===Pt[n][i]){r=Yw(Pt[n][i],Xr);break}r===-1?(Xr.push(e[t]),e[t].precedence=mp[e[t].type],Pt.length<=e[t].token.length&&(Pt[e[t].token.length]=[]),Pt[e[t].token.length].push(e[t].token)):(Xr[r]=e[t],e[t].precedence=mp[e[t].type])}};function Yw(e,t){for(var n=0;n<t.length;n++)if(t[n].token===e)return n;return-1}function wE(e){for(var t=[],n=e.length,r,i,o,a=0;a<n;a++)if(!(a<n-1&&e[a]===" "&&e[a+1]===" ")){for(r="",i=e.length-a>Pt.length-2?Pt.length-1:e.length-a;i>0;i--)if(Pt[i]!==void 0)for(o=0;o<Pt[i].length;o++)xE(e,Pt[i][o],a,i)&&(r=Pt[i][o],o=Pt[i].length,i=0);if(a+=r.length-1,r==="")throw new he.Exception("Can't understand after "+e.slice(a));t.push(Xr[Yw(r,Xr)])}return t}var _E={value:he.math.changeSign,type:0,pre:21,show:"-"},vc={value:")",show:")",type:5,pre:0},ks={value:"(",type:4,pre:0,show:"("};he.lex=function(e,t){var n=[ks],r=[],i=e,o=qn,a=0,s=Rn,u="",l;typeof t!="undefined"&&he.addToken(t);var c={},f=wE(i);for(l=0;l<f.length;l++){var h=f[l];if(h.type===14){if(l>0&&l<f.length-1&&f[l+1].type===1&&(f[l-1].type===1||f[l-1].type===6))throw new he.Exception("Unexpected Space");continue}var d=h.token,p=h.type,m=h.value,g=h.precedence,y=h.show,v=n[n.length-1],x;for(x=r.length;x--&&r[x]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(p)!==-1){if(o[p]!==!0)throw new he.Exception(d+" is not allowed after "+u);n.push(vc),o=qo,s=Ts,r.pop()}if(o[p]!==!0)throw new he.Exception(d+" is not allowed after "+u);if(s[p]===!0&&(p=2,m=he.math.mul,y="&times;",g=3,l=l-1),c={value:m,type:p,pre:g,show:y,numberOfArguments:h.numberOfArguments},p===0)o=qn,s=Rn,Ct(r,2),n.push(c),f[l+1].type!==4&&(n.push(ks),r.push(2));else if(p===1)v.type===1?(v.value+=m,Ct(r,1)):n.push(c),o=qo,s=vE;else if(p===2)o=qn,s=Rn,Ct(r,2),n.push(c);else if(p===3)n.push(c),o=qo,s=Ts;else if(p===4)Ct(r,1),a++,o=qn,s=Rn,n.push(c);else if(p===5){if(!a)throw new he.Exception("Closing parenthesis are more than opening one, wait What!!!");a--,o=qo,s=Ts,n.push(c),Ct(r,1)}else if(p===6){if(v.hasDec)throw new he.Exception("Two decimals are not allowed in one number");v.type!==1&&(v={value:0,type:1,pre:0},n.push(v)),o=bE,Ct(r,1),s=Rn,v.value+=m,v.hasDec=!0}else p===7&&(o=qo,s=Ts,Ct(r,1),n.push(c));p===8?(o=qn,s=Rn,Ct(r,h.numberOfArguments+2),n.push(c),f[l+1].type!==4&&(n.push(ks),r.push(h.numberOfArguments+2))):p===9?(v.type===9?v.value===he.math.add?(v.value=m,v.show=y,Ct(r,1)):v.value===he.math.sub&&y==="-"&&(v.value=he.math.add,v.show="+",Ct(r,1)):v.type!==5&&v.type!==7&&v.type!==1&&v.type!==3&&v.type!==13?d==="-"&&(o=qn,s=Rn,Ct(r,2).push(2),n.push(_E),n.push(ks)):(n.push(c),Ct(r,2)),o=qn,s=Rn):p===10?(o=qn,s=Rn,Ct(r,2),n.push(c)):p===11?(o=qn,s=Rn,n.push(c)):p===12?(o=qn,s=Rn,Ct(r,6),n.push(c),f[l+1].type!==4&&(n.push(ks),r.push(6))):p===13&&(o=qo,s=Ts,n.push(c)),Ct(r,-1),u=d}for(x=r.length;x--;)n.push(vc);if(o[5]!==!0)throw new he.Exception("complete the expression");for(;a--;)n.push(vc);return n.push(vc),new he(n)};var $E=he,yp=$E;yp.prototype.toPostfix=function(){for(var e=[],t,n,r,i,o,a=[{value:"(",type:4,pre:0}],s=this.value,u=1;u<s.length;u++)if(s[u].type===1||s[u].type===3||s[u].type===13)s[u].type===1&&(s[u].value=Number(s[u].value)),e.push(s[u]);else if(s[u].type===4)a.push(s[u]);else if(s[u].type===5)for(;(n=a.pop()).type!==4;)e.push(n);else if(s[u].type===11){for(;(n=a.pop()).type!==4;)e.push(n);a.push(n)}else{t=s[u],i=t.pre,o=a[a.length-1],r=o.pre;var l=o.value=="Math.pow"&&t.value=="Math.pow";if(i>r)a.push(t);else{for(;r>=i&&!l||l&&i<r;)n=a.pop(),o=a[a.length-1],e.push(n),r=o.pre,l=t.value=="Math.pow"&&o.value=="Math.pow";a.push(t)}}return new yp(e)};var SE=yp,Os=SE;Os.prototype.postfixEval=function(e){e=e||{},e.PI=Math.PI,e.E=Math.E;for(var t=[],n,r,i,o=this.value,a=typeof e.n!="undefined",s=0;s<o.length;s++)if(o[s].type===1)t.push({value:o[s].value,type:1});else if(o[s].type===3)t.push({value:e[o[s].value],type:1});else if(o[s].type===0)typeof t[t.length-1].type=="undefined"?t[t.length-1].value.push(o[s]):t[t.length-1].value=o[s].value(t[t.length-1].value);else if(o[s].type===7)typeof t[t.length-1].type=="undefined"?t[t.length-1].value.push(o[s]):t[t.length-1].value=o[s].value(t[t.length-1].value);else if(o[s].type===8){for(var u=[],l=0;l<o[s].numberOfArguments;l++)u.push(t.pop().value);t.push({type:1,value:o[s].value.apply(o[s],u.reverse())})}else o[s].type===10?(n=t.pop(),r=t.pop(),typeof r.type=="undefined"?(r.value=r.concat(n),r.value.push(o[s]),t.push(r)):typeof n.type=="undefined"?(n.unshift(r),n.push(o[s]),t.push(n)):t.push({type:1,value:o[s].value(r.value,n.value)})):o[s].type===2||o[s].type===9?(n=t.pop(),r=t.pop(),typeof r.type=="undefined"?(r=r.concat(n),r.push(o[s]),t.push(r)):typeof n.type=="undefined"?(n.unshift(r),n.push(o[s]),t.push(n)):t.push({type:1,value:o[s].value(r.value,n.value)})):o[s].type===12?(n=t.pop(),typeof n.type!="undefined"&&(n=[n]),r=t.pop(),i=t.pop(),t.push({type:1,value:o[s].value(i.value,r.value,new Os(n))})):o[s].type===13&&(a?t.push({value:e[o[s].value],type:3}):t.push([o[s]]));if(t.length>1)throw new Os.Exception("Uncaught Syntax error");return t[0].value>1e15?"Infinity":parseFloat(t[0].value.toFixed(15))},Os.eval=function(e,t,n){return typeof t=="undefined"?this.lex(e).toPostfix().postfixEval():typeof n=="undefined"?typeof t.length!="undefined"?this.lex(e,t).toPostfix().postfixEval():this.lex(e).toPostfix().postfixEval(t):this.lex(e,t).toPostfix().postfixEval(n)};var ME=Os,Gw=ME;Gw.prototype.formulaEval=function(){for(var e,t,n,r=[],i=this.value,o=0;o<i.length;o++)i[o].type===1||i[o].type===3?r.push({value:i[o].type===3?i[o].show:i[o].value,type:1}):i[o].type===13?r.push({value:i[o].show,type:1}):i[o].type===0?r[r.length-1]={value:i[o].show+(i[o].show!="-"?"(":"")+r[r.length-1].value+(i[o].show!="-"?")":""),type:0}:i[o].type===7?r[r.length-1]={value:(r[r.length-1].type!=1?"(":"")+r[r.length-1].value+(r[r.length-1].type!=1?")":"")+i[o].show,type:7}:i[o].type===10?(e=r.pop(),t=r.pop(),i[o].show==="P"||i[o].show==="C"?r.push({value:"<sup>"+t.value+"</sup>"+i[o].show+"<sub>"+e.value+"</sub>",type:10}):r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+"<sup>"+e.value+"</sup>",type:1})):i[o].type===2||i[o].type===9?(e=r.pop(),t=r.pop(),r.push({value:(t.type!=1?"(":"")+t.value+(t.type!=1?")":"")+i[o].show+(e.type!=1?"(":"")+e.value+(e.type!=1?")":""),type:i[o].type})):i[o].type===12&&(e=r.pop(),t=r.pop(),n=r.pop(),r.push({value:i[o].show+"("+n.value+","+t.value+","+e.value+")",type:12}));return r[0].value};var TE=Gw,kE=fE,OE=pE,CE=TE,PE=100,EE=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,vp,AE=NE;function NE(e,t){vp=0,t=Math.pow(10,t===void 0?5:t),e=e.replace(/\n+/g," ");function n(i,o,a){if(vp++>PE)throw vp=0,new Error("Call stack overflow for "+a);if(i==="")throw new Error(o+"(): '"+a+"' must contain a non-whitespace string");i=r(i,a);var s=RE(i);if(s.length>1||i.indexOf("var(")>-1)return o+"("+i+")";var u=s[0]||"";u==="%"&&(i=i.replace(/\b[0-9\.]+%/g,function(f){return parseFloat(f.slice(0,-1))*.01}));var l=i.replace(new RegExp(u,"gi"),""),c;try{c=CE.eval(l)}catch{return o+"("+i+")"}return u==="%"&&(c*=100),(o.length||u==="%")&&(c=Math.round(c*t)/t),c+=u,c}function r(i,o){i=i.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var a="",s=i,u;u=EE.exec(s);){u[0].index>0&&(a+=s.substring(0,u[0].index));var l=kE("(",")",s.substring([0].index));if(l.body==="")throw new Error("'"+i+"' must contain a non-whitespace string");var c=n(l.body,"",o);a+=l.pre+c,s=l.post}return a+s}return OE(e,/((?:\-[a-z]+\-)?calc)\(/,n)}function RE(e){for(var t=[],n=[],r=/[\.0-9]([%a-z]+)/gi,i=r.exec(e);i;)!i||!i[1]||(n.indexOf(i[1].toLowerCase())===-1&&(t.push(i[1]),n.push(i[1].toLowerCase())),i=r.exec(e));return t}var bp=AE,DE=typeof Ll=="object"&&Ll&&Ll.Object===Object&&Ll,LE=DE,IE=LE,zE=typeof self=="object"&&self&&self.Object===Object&&self,FE=IE||zE||Function("return this")(),bc=FE,BE=bc,jE=BE.Symbol,Xw=jE,Kw=Xw,Zw=Object.prototype,WE=Zw.hasOwnProperty,HE=Zw.toString,Cs=Kw?Kw.toStringTag:void 0;function qE(e){var t=WE.call(e,Cs),n=e[Cs];try{e[Cs]=void 0;var r=!0}catch{}var i=HE.call(e);return r&&(t?e[Cs]=n:delete e[Cs]),i}var UE=qE,VE=Object.prototype,YE=VE.toString;function GE(e){return YE.call(e)}var XE=GE,Qw=Xw,KE=UE,ZE=XE,QE="[object Null]",JE="[object Undefined]",Jw=Qw?Qw.toStringTag:void 0;function eA(e){return e==null?e===void 0?JE:QE:Jw&&Jw in Object(e)?KE(e):ZE(e)}var e_=eA;function tA(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xc=tA,nA=e_,rA=xc,iA="[object AsyncFunction]",oA="[object Function]",aA="[object GeneratorFunction]",sA="[object Proxy]";function uA(e){if(!rA(e))return!1;var t=nA(e);return t==oA||t==aA||t==iA||t==sA}var lA=uA,cA=bc,fA=cA["__core-js_shared__"],hA=fA,xp=hA,t_=function(){var e=/[^.]+$/.exec(xp&&xp.keys&&xp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function dA(e){return!!t_&&t_ in e}var pA=dA,gA=Function.prototype,mA=gA.toString;function yA(e){if(e!=null){try{return mA.call(e)}catch{}try{return e+""}catch{}}return""}var vA=yA,bA=lA,xA=pA,wA=xc,_A=vA,$A=/[\\^$.*+?()[\]{}|]/g,SA=/^\[object .+?Constructor\]$/,MA=Function.prototype,TA=Object.prototype,kA=MA.toString,OA=TA.hasOwnProperty,CA=RegExp("^"+kA.call(OA).replace($A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PA(e){if(!wA(e)||xA(e))return!1;var t=bA(e)?CA:SA;return t.test(_A(e))}var EA=PA;function AA(e,t){return e==null?void 0:e[t]}var NA=AA,RA=EA,DA=NA;function LA(e,t){var n=DA(e,t);return RA(n)?n:void 0}var n_=LA,IA=n_,zA=IA(Object,"create"),wc=zA,r_=wc;function FA(){this.__data__=r_?r_(null):{},this.size=0}var BA=FA;function jA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var WA=jA,HA=wc,qA="__lodash_hash_undefined__",UA=Object.prototype,VA=UA.hasOwnProperty;function YA(e){var t=this.__data__;if(HA){var n=t[e];return n===qA?void 0:n}return VA.call(t,e)?t[e]:void 0}var GA=YA,XA=wc,KA=Object.prototype,ZA=KA.hasOwnProperty;function QA(e){var t=this.__data__;return XA?t[e]!==void 0:ZA.call(t,e)}var JA=QA,eN=wc,tN="__lodash_hash_undefined__";function nN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=eN&&t===void 0?tN:t,this}var rN=nN,iN=BA,oN=WA,aN=GA,sN=JA,uN=rN;function Uo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Uo.prototype.clear=iN,Uo.prototype.delete=oN,Uo.prototype.get=aN,Uo.prototype.has=sN,Uo.prototype.set=uN;var lN=Uo;function cN(){this.__data__=[],this.size=0}var fN=cN;function hN(e,t){return e===t||e!==e&&t!==t}var dN=hN,pN=dN;function gN(e,t){for(var n=e.length;n--;)if(pN(e[n][0],t))return n;return-1}var _c=gN,mN=_c,yN=Array.prototype,vN=yN.splice;function bN(e){var t=this.__data__,n=mN(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vN.call(t,n,1),--this.size,!0}var xN=bN,wN=_c;function _N(e){var t=this.__data__,n=wN(t,e);return n<0?void 0:t[n][1]}var $N=_N,SN=_c;function MN(e){return SN(this.__data__,e)>-1}var TN=MN,kN=_c;function ON(e,t){var n=this.__data__,r=kN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var CN=ON,PN=fN,EN=xN,AN=$N,NN=TN,RN=CN;function Vo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Vo.prototype.clear=PN,Vo.prototype.delete=EN,Vo.prototype.get=AN,Vo.prototype.has=NN,Vo.prototype.set=RN;var DN=Vo,LN=n_,IN=bc,zN=LN(IN,"Map"),FN=zN,i_=lN,BN=DN,jN=FN;function WN(){this.size=0,this.__data__={hash:new i_,map:new(jN||BN),string:new i_}}var HN=WN;function qN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var UN=qN,VN=UN;function YN(e,t){var n=e.__data__;return VN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var $c=YN,GN=$c;function XN(e){var t=GN(this,e).delete(e);return this.size-=t?1:0,t}var KN=XN,ZN=$c;function QN(e){return ZN(this,e).get(e)}var JN=QN,eR=$c;function tR(e){return eR(this,e).has(e)}var nR=tR,rR=$c;function iR(e,t){var n=rR(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var oR=iR,aR=HN,sR=KN,uR=JN,lR=nR,cR=oR;function Yo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yo.prototype.clear=aR,Yo.prototype.delete=sR,Yo.prototype.get=uR,Yo.prototype.has=lR,Yo.prototype.set=cR;var fR=Yo,o_=fR,hR="Expected a function";function wp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hR);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(wp.Cache||o_),n}wp.Cache=o_;var dR=wp,pR=dR,a_="__react_svg_text_measurement_id";function gR(e,t){try{var n=document.getElementById(a_);if(!n){var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",a_),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}var s_=pR(gR,function(e,t){return e+"_"+JSON.stringify(t)}),mR=["verticalAnchor","scaleToFit","angle","width","lineHeight","capHeight","children","style"];function yR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _p(e){return typeof e=="number"}function u_(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function vR(e){var t=e.verticalAnchor,n=t===void 0?"end":t,r=e.scaleToFit,i=r===void 0?!1:r,o=e.angle,a=e.width,s=e.lineHeight,u=s===void 0?"1em":s,l=e.capHeight,c=l===void 0?"0.71em":l,f=e.children,h=e.style,d=yR(e,mR),p=d.x,m=p===void 0?0:p,g=d.y,y=g===void 0?0:g,v=!u_(m)||!u_(y),x=H.useMemo(function(){var k=f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/);return{wordsWithWidth:k.map(function(S){return{word:S,wordWidth:s_(S,h)||0}}),spaceWidth:s_("\xA0",h)||0}},[f,h]),b=x.wordsWithWidth,_=x.spaceWidth,w=H.useMemo(function(){return v?[]:a||i?b.reduce(function(k,S){var M=S.word,A=S.wordWidth,E=k[k.length-1];if(E&&(a==null||i||(E.width||0)+A+_<a))E.words.push(M),E.width=E.width||0,E.width+=A+_;else{var O={words:[M],width:A};k.push(O)}return k},[]):[{words:f==null?[]:f.toString().split(/(?:(?!\u00A0+)\s+)/)}]},[v,a,i,f,b,_]),$=H.useMemo(function(){var k=v?"":bp(n==="start"?"calc("+c+")":n==="middle"?"calc("+(w.length-1)/2+" * -"+u+" + ("+c+" / 2))":"calc("+(w.length-1)+" * -"+u+")");return k},[v,n,c,w.length,u]),T=H.useMemo(function(){var k=[];if(v)return"";if(_p(m)&&_p(y)&&_p(a)&&i&&w.length>0){var S=w[0].width||1,M=i==="shrink-only"?Math.min(a/S,1):a/S,A=M,E=m-M*m,O=y-A*y;k.push("matrix("+M+", 0, 0, "+A+", "+E+", "+O+")")}return o&&k.push("rotate("+o+", "+m+", "+y+")"),k.length>0?k.join(" "):""},[v,m,y,a,i,w,o]);return{wordsByLines:w,startDy:$,transform:T}}var bR=["dx","dy","textAnchor","innerRef","innerTextRef","verticalAnchor","angle","lineHeight","scaleToFit","capHeight","width"];function $p(){return $p=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},$p.apply(this,arguments)}function xR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wR={overflow:"visible"};function l_(e){var t=e.dx,n=t===void 0?0:t,r=e.dy,i=r===void 0?0:r,o=e.textAnchor,a=o===void 0?"start":o,s=e.innerRef,u=e.innerTextRef;e.verticalAnchor,e.angle;var l=e.lineHeight,c=l===void 0?"1em":l;e.scaleToFit,e.capHeight,e.width;var f=xR(e,bR),h=f.x,d=h===void 0?0:h,p=f.fontSize,m=vR(e),g=m.wordsByLines,y=m.startDy,v=m.transform;return Q.default.createElement("svg",{ref:s,x:n,y:i,fontSize:p,style:wR},g.length>0?Q.default.createElement("text",$p({ref:u,transform:v},f,{textAnchor:a}),g.map(function(x,b){return Q.default.createElement("tspan",{key:b,x:d,dy:b===0?y:c},x.words.join(" "))})):null)}var _R={top:"top",left:"left",right:"right",bottom:"bottom"},en=_R;function $R(e){var t=e.labelOffset,n=e.labelProps,r=e.orientation,i=e.range,o=e.tickLabelFontSize,a=e.tickLength,s=r===en.left||r===en.top?-1:1,u,l,c;if(r===en.top||r===en.bottom){var f=r===en.bottom&&typeof n.fontSize=="number"?n.fontSize:0;u=(Number(i[0])+Number(i[i.length-1]))/2,l=s*(a+t+o+f)}else u=s*((Number(i[0])+Number(i[i.length-1]))/2),l=-(a+t),c="rotate("+s*90+")";return{x:u,y:l,transform:c}}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 SR(e){var t=e.hideTicks,n=e.horizontal,r=e.orientation,i=e.tickClassName,o=e.tickComponent,a=e.tickLabelProps,s=e.tickStroke,u=s===void 0?"#222":s,l=e.tickTransform,c=e.ticks,f=e.strokeWidth,h=e.tickLineProps;return c.map(function(d){var p,m=d.value,g=d.index,y=d.from,v=d.to,x=d.formattedValue,b=(p=a[g])!=null?p:{},_=Math.max(10,typeof b.fontSize=="number"&&b.fontSize||0),w=v.y+(n&&r!==en.top?_:0);return Q.default.createElement(je,{key:"visx-tick-"+m+"-"+g,className:Ye("visx-axis-tick",i),transform:l},!t&&Q.default.createElement(ax,Ps({from:y,to:v,stroke:u,strokeWidth:f,strokeLinecap:"square"},h)),o?o(Ps({},b,{x:v.x,y:w,formattedValue:x})):Q.default.createElement(l_,Ps({x:v.x,y:w},b),x))})}function Sc(){return Sc=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},Sc.apply(this,arguments)}var c_={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function MR(e){var t=e.axisFromPoint,n=e.axisLineClassName,r=e.axisToPoint,i=e.hideAxisLine,o=e.hideTicks,a=e.horizontal,s=e.label,u=s===void 0?"":s,l=e.labelClassName,c=e.labelOffset,f=c===void 0?14:c,h=e.labelProps,d=h===void 0?c_:h,p=e.orientation,m=p===void 0?en.bottom:p,g=e.scale,y=e.stroke,v=y===void 0?"#222":y,x=e.strokeDasharray,b=e.strokeWidth,_=b===void 0?1:b,w=e.tickClassName,$=e.tickComponent,T=e.tickLineProps,k=e.tickLabelProps,S=e.tickLength,M=S===void 0?8:S,A=e.tickStroke,E=A===void 0?"#222":A,O=e.tickTransform,P=e.ticks,C=e.ticksComponent,N=C===void 0?SR:C,D=Sc({},c_,typeof k=="object"?k:null),I=P.map(function(U){var Y=U.value,J=U.index;return typeof k=="function"?k(Y,J,P):D}),B=Math.max.apply(Math,[10].concat(I.map(function(U){return typeof U.fontSize=="number"?U.fontSize:0})));return Q.default.createElement(Q.default.Fragment,null,N({hideTicks:o,horizontal:a,orientation:m,scale:g,tickClassName:w,tickComponent:$,tickLabelProps:I,tickStroke:E,tickTransform:O,ticks:P,strokeWidth:_,tickLineProps:T}),!i&&Q.default.createElement(ax,{className:Ye("visx-axis-line",n),from:t,to:r,stroke:v,strokeWidth:_,strokeDasharray:x}),u&&Q.default.createElement(l_,Sc({className:Ye("visx-axis-label",l)},$R({labelOffset:f,labelProps:d,orientation:m,range:g.range(),tickLabelFontSize:B,tickLength:M}),d),u))}function TR(e,t){t===void 0&&(t="center");var n=e;if(t!=="start"&&"bandwidth"in n){var r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),function(i){var o=n(i);return typeof o=="number"?o+r:o}}return e}function kR(e){var t=e;return"tickFormat"in t?t.tickFormat():Fw}var Un=function(){function e(n){var r=n.x,i=r===void 0?0:r,o=n.y,a=o===void 0?0:o;this.x=0,this.y=0,this.x=i,this.y=a}var t=e.prototype;return t.value=function(){return{x:this.x,y:this.y}},t.toArray=function(){return[this.x,this.y]},e}();function OR(e,t){return new Un({x:e.x+t.x,y:e.y+t.y})}function CR(e,t){return new Un({x:e.x-t.x,y:e.y-t.y})}var PR=Object.freeze(Object.defineProperty({__proto__:null,Point:Un,sumPoints:OR,subtractPoints:CR},Symbol.toStringTag,{value:"Module"}));function Mc(e,t){var n=e.x,r=e.y;return new Un(t?{x:n,y:r}:{x:r,y:n})}function Sp(){return Sp=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},Sp.apply(this,arguments)}var Mp=0;function ER(e){return e===void 0&&(e=Mp),typeof e=="number"?{start:e,end:e}:Sp({start:Mp,end:Mp},e)}var AR=["children","axisClassName","hideAxisLine","hideTicks","hideZero","left","numTicks","orientation","rangePadding","scale","tickFormat","tickLength","tickValues","top"];function Tp(){return Tp=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},Tp.apply(this,arguments)}function NR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function kp(e){var t=e.children,n=t===void 0?MR:t,r=e.axisClassName,i=e.hideAxisLine,o=i===void 0?!1:i,a=e.hideTicks,s=a===void 0?!1:a,u=e.hideZero,l=u===void 0?!1:u,c=e.left,f=c===void 0?0:c,h=e.numTicks,d=h===void 0?10:h,p=e.orientation,m=p===void 0?en.bottom:p,g=e.rangePadding,y=g===void 0?0:g,v=e.scale,x=e.tickFormat,b=e.tickLength,_=b===void 0?8:b,w=e.tickValues,$=e.top,T=$===void 0?0:$,k=NR(e,AR),S=x!=null?x:kR(v),M=m===en.left,A=m===en.top,E=A||m===en.bottom,O=TR(v),P=M||A?-1:1,C=v.range(),N=ER(y),D=Mc({x:Number(C[0])+.5-N.start,y:0},E),I=Mc({x:Number(C[C.length-1])+.5+N.end,y:0},E),B=(w!=null?w:mc(v,d)).filter(function(Y){return!l||Y!==0&&Y!=="0"}).map(function(Y,J){return{value:Y,index:J}}),U=B.map(function(Y){var J=Y.value,q=Y.index,j=gc(O(J));return{value:J,index:q,from:Mc({x:j,y:0},E),to:Mc({x:j,y:_*P},E),formattedValue:S(J,q,B)}});return Q.default.createElement(je,{className:Ye("visx-axis",r),top:T,left:f},n(Tp({},k,{axisFromPoint:D,axisToPoint:I,hideAxisLine:o,hideTicks:s,hideZero:l,horizontal:E,numTicks:d,orientation:m,rangePadding:y,scale:v,tickFormat:S,tickLength:_,tickPosition:O,tickSign:P,ticks:U})))}var RR=["axisClassName","labelOffset","tickLength","tickLabelProps"];function Tc(){return Tc=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},Tc.apply(this,arguments)}function DR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var LR={dx:"-0.25em",dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"end"};function IR(e){var t=e.axisClassName,n=e.labelOffset,r=n===void 0?36:n,i=e.tickLength,o=i===void 0?8:i,a=e.tickLabelProps,s=DR(e,RR),u=typeof a=="function"?a:Tc({},LR,a);return Q.default.createElement(kp,Tc({axisClassName:Ye("visx-axis-left",t),labelOffset:r,orientation:en.left,tickLabelProps:u,tickLength:o},s))}var zR=["axisClassName","labelOffset","tickLength","tickLabelProps"];function kc(){return kc=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},kc.apply(this,arguments)}function FR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var BR={dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"middle"};function jR(e){var t=e.axisClassName,n=e.labelOffset,r=n===void 0?8:n,i=e.tickLength,o=i===void 0?8:i,a=e.tickLabelProps,s=FR(e,zR),u=typeof a=="function"?a:kc({},BR,a);return Q.default.createElement(kp,kc({axisClassName:Ye("visx-axis-bottom",t),labelOffset:r,orientation:en.bottom,tickLabelProps:u,tickLength:o},s))}const f_=({value:e,yScale:t,parentWidth:n})=>{var r,i,o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w;return z(IR,{numTicks:(r=e.main)==null?void 0:r.numTicks,scale:t,top:0,label:(i=e.main)==null?void 0:i.leftLabel,tickStroke:((a=(o=e.style)==null?void 0:o.labelStyle)==null?void 0:a.tickColor)!==void 0?(u=(s=e.style)==null?void 0:s.labelStyle)==null?void 0:u.tickColor:"none",strokeWidth:(c=(l=e.style)==null?void 0:l.labelStyle)==null?void 0:c.rightAxisWidth,hideTicks:(f=e.main)==null?void 0:f.hideLeftTicks,labelOffset:(d=(h=e.style)==null?void 0:h.labelStyle)==null?void 0:d.leftLabelOffset,labelProps:{fill:(m=(p=e.style)==null?void 0:p.labelStyle)==null?void 0:m.labelColor,fontSize:(y=(g=e.style)==null?void 0:g.labelStyle)==null?void 0:y.fontSize,fontWeight:(x=(v=e.style)==null?void 0:v.labelStyle)==null?void 0:x.fontWeight,fontFamily:(_=(b=e.style)==null?void 0:b.labelStyle)==null?void 0:_.fontWeight},hideAxisLine:(w=e.main)==null?void 0:w.hideLeftAxisLine,tickLabelProps:$=>{var T,k;return{fill:(k=(T=e.style)==null?void 0:T.labelStyle)==null?void 0:k.tickLabelColor,fontSize:14,textAnchor:"end",dy:"0.33em"}}})},h_=({data:e,yMax:t,value:n,xScale:r,parentWidth:i,left:o})=>{var a,s,u,l,c,f,h,d,p,m,g,y;return z(jR,{numTicks:e==null?void 0:e.length,top:t,left:o,hideTicks:(a=n.main)==null?void 0:a.hideTicks,hideAxisLine:((s=n.main)==null?void 0:s.hideBottomAxisLine)!==void 0?(u=n.main)==null?void 0:u.hideBottomAxisLine:!0,strokeWidth:(c=(l=n.style)==null?void 0:l.labelStyle)==null?void 0:c.bottomAxisWidth,scale:r,stroke:(h=(f=n.style)==null?void 0:f.labelStyle)==null?void 0:h.tickColor,labelOffset:(p=(d=n.style)==null?void 0:d.labelStyle)==null?void 0:p.bottomLabelOffset,label:(m=n.main)==null?void 0:m.bottomLabel,tickStroke:(y=(g=n.style)==null?void 0:g.labelStyle)==null?void 0:y.tickColor,tickLabelProps:()=>{var v,x,b,_;return{fill:(x=(v=n.style)==null?void 0:v.labelStyle)==null?void 0:x.tickLabelColor,fontSize:((_=(b=n.style)==null?void 0:b.labelStyle)==null?void 0:_.tickFontSize)||18,textAnchor:"middle"}}})};var WR=["tooltipOpen"];function HR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Oc(){return Oc=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},Oc.apply(this,arguments)}function Es(e){var t=H.useState(Oc({tooltipOpen:!1},e)),n=t[0],r=t[1],i=H.useCallback(function(a){return r(typeof a=="function"?function(s){s.tooltipOpen;var u=HR(s,WR);return Oc({},a(u),{tooltipOpen:!0})}:{tooltipOpen:!0,tooltipLeft:a.tooltipLeft,tooltipTop:a.tooltipTop,tooltipData:a.tooltipData})},[r]),o=H.useCallback(function(){return r({tooltipOpen:!1,tooltipLeft:void 0,tooltipTop:void 0,tooltipData:void 0})},[r]);return{tooltipOpen:n.tooltipOpen,tooltipLeft:n.tooltipLeft,tooltipTop:n.tooltipTop,tooltipData:n.tooltipData,updateTooltip:r,showTooltip:i,hideTooltip:o}}function Op(e,t,n){var r,i,o,a,s;t==null&&(t=100);function u(){var c=Date.now()-a;c<t&&c>=0?r=setTimeout(u,t-c):(r=null,n||(s=e.apply(o,i),o=i=null))}var l=function(){o=this,i=arguments,a=Date.now();var c=n&&!r;return r||(r=setTimeout(u,t)),c&&(s=e.apply(o,i),o=i=null),s};return l.clear=function(){r&&(clearTimeout(r),r=null)},l.flush=function(){r&&(s=e.apply(o,i),o=i=null,clearTimeout(r),r=null)},l}Op.debounce=Op;var d_=Op;function qR(e){let{debounce:t,scroll:n,polyfill:r,offsetSize:i}=e===void 0?{debounce:0,scroll:!1,offsetSize:!1}:e;const o=r||(typeof window=="undefined"?class{}:window.ResizeObserver);if(!o)throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");const[a,s]=H.useState({left:0,top:0,width:0,height:0,bottom:0,right:0,x:0,y:0}),u=H.useRef({element:null,scrollContainers:null,resizeObserver:null,lastBounds:a}),l=t?typeof t=="number"?t:t.scroll:null,c=t?typeof t=="number"?t:t.resize:null,f=H.useRef(!1);H.useEffect(()=>(f.current=!0,()=>void(f.current=!1)));const[h,d,p]=H.useMemo(()=>{const v=()=>{if(!u.current.element)return;const{left:x,top:b,width:_,height:w,bottom:$,right:T,x:k,y:S}=u.current.element.getBoundingClientRect(),M={left:x,top:b,width:_,height:w,bottom:$,right:T,x:k,y:S};u.current.element instanceof HTMLElement&&i&&(M.height=u.current.element.offsetHeight,M.width=u.current.element.offsetWidth),Object.freeze(M),f.current&&!GR(u.current.lastBounds,M)&&s(u.current.lastBounds=M)};return[v,c?d_(v,c):v,l?d_(v,l):v]},[s,i,l,c]);function m(){u.current.scrollContainers&&(u.current.scrollContainers.forEach(v=>v.removeEventListener("scroll",p,!0)),u.current.scrollContainers=null),u.current.resizeObserver&&(u.current.resizeObserver.disconnect(),u.current.resizeObserver=null)}function g(){!u.current.element||(u.current.resizeObserver=new o(p),u.current.resizeObserver.observe(u.current.element),n&&u.current.scrollContainers&&u.current.scrollContainers.forEach(v=>v.addEventListener("scroll",p,{capture:!0,passive:!0})))}const y=v=>{!v||v===u.current.element||(m(),u.current.element=v,u.current.scrollContainers=p_(v),g())};return VR(p,Boolean(n)),UR(d),H.useEffect(()=>{m(),g()},[n,p,d]),H.useEffect(()=>m,[]),[y,a,h]}function UR(e){H.useEffect(()=>{const t=e;return window.addEventListener("resize",t),()=>void window.removeEventListener("resize",t)},[e])}function VR(e,t){H.useEffect(()=>{if(t){const n=e;return window.addEventListener("scroll",n,{capture:!0,passive:!0}),()=>void window.removeEventListener("scroll",n,!0)}},[e,t])}function p_(e){const t=[];if(!e||e===document.body)return t;const{overflow:n,overflowX:r,overflowY:i}=window.getComputedStyle(e);return[n,r,i].some(o=>o==="auto"||o==="scroll")&&t.push(e),[...t,...p_(e.parentElement)]}const YR=["x","y","top","bottom","left","right","width","height"],GR=(e,t)=>YR.every(n=>e[n]===t[n]);function XR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cp(e,t)}var g_=function(e){XR(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.componentWillUnmount=function(){this.node&&document.body&&(document.body.removeChild(this.node),delete this.node)},n.render=function(){return!this.node&&typeof document!="undefined"&&(this.node=document.createElement("div"),this.props.zIndex!=null&&(this.node.style.zIndex=""+this.props.zIndex),document.body.append(this.node)),this.node?Po.default.createPortal(this.props.children,this.node):null},t}(Q.default.PureComponent);g_.propTypes={zIndex:F.oneOfType([F.number,F.string])};var KR=["className","top","left","offsetLeft","offsetTop","style","children","unstyled","applyPositionStyle"];function Cc(){return Cc=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},Cc.apply(this,arguments)}function ZR(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Go={position:"absolute",backgroundColor:"white",color:"#666666",padding:".3rem .5rem",borderRadius:"3px",fontSize:"14px",boxShadow:"0 1px 2px rgba(33,33,33,0.2)",lineHeight:"1em",pointerEvents:"none"},Pc=Q.default.forwardRef(function(e,t){var n=e.className,r=e.top,i=e.left,o=e.offsetLeft,a=o===void 0?10:o,s=e.offsetTop,u=s===void 0?10:s,l=e.style,c=l===void 0?Go:l,f=e.children,h=e.unstyled,d=h===void 0?!1:h,p=e.applyPositionStyle,m=p===void 0?!1:p,g=ZR(e,KR);return Q.default.createElement("div",Cc({ref:t,className:Ye("visx-tooltip",n),style:Cc({top:r==null||u==null?r:r+u,left:i==null||a==null?i:i+a},m&&{position:"absolute"},!d&&c)},g),f)});Pc.propTypes={children:F.node,className:F.string,left:F.number,offsetLeft:F.number,offsetTop:F.number,top:F.number,applyPositionStyle:F.bool,unstyled:F.bool},Pc.displayName="Tooltip";function Pp(){return Pp=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},Pp.apply(this,arguments)}function QR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ep(e,t)}function Ep(e,t){return Ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ep(e,t)}var m_={top:0,right:0,bottom:0,left:0,width:0,height:0};function eD(e){var t;return t=function(n){JR(r,n);function r(o){var a;return a=n.call(this,o)||this,a.state={rect:void 0,parentRect:void 0},a.nodeRef=Q.default.createRef(),a.getRects=a.getRects.bind(QR(a)),a}var i=r.prototype;return i.componentDidMount=function(){var a,s=this;this.node=(a=this.nodeRef)!=null&&a.current?this.nodeRef.current:Po.default.findDOMNode(this),this.setState(function(){return s.getRects()})},i.getRects=function(){if(!this.node)return this.state;var a=this.node,s=a.parentNode,u=a.getBoundingClientRect?a.getBoundingClientRect():m_,l=s!=null&&s.getBoundingClientRect?s.getBoundingClientRect():m_;return{rect:u,parentRect:l}},i.render=function(){return Q.default.createElement(e,Pp({nodeRef:this.nodeRef,getRects:this.getRects},this.state,this.props))},r}(Q.default.PureComponent),t.displayName="withBoundingRects("+(e.displayName||"")+")",t}var y_=H.createContext({isFlippedVertically:!1,isFlippedHorizontally:!1}),tD=y_.Provider;y_.Consumer;var nD=["children","getRects","left","offsetLeft","offsetTop","parentRect","rect","style","top","unstyled","nodeRef"];function Ec(){return Ec=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},Ec.apply(this,arguments)}function rD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function v_(e){var t=e.children;e.getRects;var n=e.left,r=n===void 0?0:n,i=e.offsetLeft,o=i===void 0?10:i,a=e.offsetTop,s=a===void 0?10:a,u=e.parentRect,l=e.rect,c=e.style,f=c===void 0?Go:c,h=e.top,d=h===void 0?0:h,p=e.unstyled,m=p===void 0?!1:p,g=e.nodeRef,y=rD(e,nD),v,x=!1,b=!1;if(l&&u){var _=r,w=d;if(u.width){var $=_+o+l.width-u.width,T=l.width-_-o;x=$>0&&$>T}else{var k=_+o+l.width-window.innerWidth,S=l.width-_-o;x=k>0&&k>S}if(u.height){var M=w+s+l.height-u.height,A=l.height-w-s;b=M>0&&M>A}else b=w+s+l.height>window.innerHeight;_=x?_-l.width-o:_+o,w=b?w-l.height-s:w+s,_=Math.round(_),w=Math.round(w),v="translate("+_+"px, "+w+"px)"}return Q.default.createElement(Pc,Ec({ref:g,style:Ec({left:0,top:0,transform:v},!m&&f)},y),Q.default.createElement(tD,{value:{isFlippedVertically:!b,isFlippedHorizontally:!x}},t))}v_.propTypes={nodeRef:F.oneOfType([F.string,F.func,F.object])};var iD=eD(v_),oD=["detectBounds","zIndex"],aD=["left","top","detectBounds","zIndex"];function b_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ap(e){var t=e===void 0?{}:e,n=t.detectBounds,r=n===void 0?!0:n,i=t.zIndex,o=b_(t,oD),a=qR(o),s=a[0],u=a[1],l=a[2],c=H.useState(!1),f=c[0],h=c[1];H.useEffect(function(){h(!1)},[]);var d=H.useMemo(function(){return function(p){var m=p.left,g=m===void 0?0:m,y=p.top,v=y===void 0?0:y,x=p.detectBounds,b=p.zIndex,_=b_(p,aD),w=x==null?r:x,$=b==null?i:b,T=w?iD:Pc,k=f?0:window.scrollX,S=f?0:window.scrollY,M=g+(u.left||0)+k,A=v+(u.top||0)+S;return z(g_,{zIndex:$,children:z(T,{left:M,top:A,..._})})}},[r,i,u.left,u.top,f]);return{containerRef:s,containerBounds:u,forceRefreshBounds:l,TooltipInPortal:d}}const x_=({value:e,theme:t,top:n,left:r,tooltipData:i,colorScale:o})=>{const a=i==null?void 0:i.groupData,s=i==null?void 0:i.highlightedBar,{TooltipInPortal:u}=Ap({detectBounds:!0,scroll:!0});return z(u,{style:{...Go,backgroundColor:t.myTheme.palette.secondary.main},top:n,left:r,children:Object.keys(a).map(l=>l===e.main.xAxisValue?null:oe("div",{style:{display:"flex",marginBottom:"2.5px",marginTop:"2.5px"},children:[z("span",{style:{backgroundColor:o(l),width:"15px",height:"15px",marginRight:"5px",border:(s==null?void 0:s.key)===l?"1px solid black":"1px solid transparent"}}),z("span",{style:{marginRight:"5px"},children:oe("span",{style:{fontWeight:(s==null?void 0:s.key)===l?"bold":"normal",color:"black"},children:[l,": "]})}),z("span",{style:{fontWeight:(s==null?void 0:s.key)===l?"bold":"normal",color:"black"},children:a[l]})]}))},Math.random())};var sD=["flexDirection","alignItems","margin","display","children"];function Np(){return Np=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},Np.apply(this,arguments)}function uD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Rp(e){var t=e.flexDirection,n=t===void 0?"row":t,r=e.alignItems,i=r===void 0?"center":r,o=e.margin,a=o===void 0?"0":o,s=e.display,u=s===void 0?"flex":s,l=e.children,c=uD(e,sD);return Q.default.createElement("div",Np({className:"visx-legend-item",style:{display:u,alignItems:i,flexDirection:n,margin:a}},c),l)}Rp.propTypes={alignItems:F.string,margin:F.oneOfType([F.string,F.number]),children:F.node,display:F.string};var lD=["flex","label","margin","align","children"];function Dp(){return Dp=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},Dp.apply(this,arguments)}function cD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Lp(e){var t=e.flex,n=t===void 0?"1":t,r=e.label,i=e.margin,o=i===void 0?"5px 0":i,a=e.align,s=a===void 0?"left":a,u=e.children,l=cD(e,lD);return Q.default.createElement("div",Dp({className:"visx-legend-label",style:{justifyContent:s,display:"flex",flex:n,margin:o}},l),u||r)}Lp.propTypes={align:F.string,label:F.node,flex:F.oneOfType([F.string,F.number]),margin:F.oneOfType([F.string,F.number]),children:F.node};function Ip(){return Ip=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},Ip.apply(this,arguments)}function zp(e){var t=e.fill,n=e.width,r=e.height,i=e.style;return Q.default.createElement("div",{style:Ip({width:n,height:r,background:t},i)})}zp.propTypes={fill:F.string,width:F.oneOfType([F.string,F.number]),height:F.oneOfType([F.string,F.number])};function w_(e){var t=e.fill,n=e.width,r=e.height,i=e.style,o=typeof n=="string"||typeof n=="undefined"?0:n,a=typeof r=="string"||typeof r=="undefined"?0:r,s=Math.max(o,a),u=s/2;return Q.default.createElement("svg",{width:s,height:s},Q.default.createElement(je,{top:u,left:u},Q.default.createElement("circle",{r:u,fill:t,style:i})))}w_.propTypes={fill:F.string,width:F.oneOfType([F.string,F.number]),height:F.oneOfType([F.string,F.number])};function __(e){var t=e.fill,n=e.width,r=e.height,i=e.style,o=typeof r=="string"||typeof r=="undefined"?0:r,a=typeof(i==null?void 0:i.strokeWidth)=="number"?i==null?void 0:i.strokeWidth:2;return Q.default.createElement("svg",{width:n,height:r},Q.default.createElement(je,{top:o/2-a/2},Q.default.createElement("line",{x1:0,x2:n,y1:0,y2:0,stroke:t,strokeWidth:a,style:i})))}__.propTypes={fill:F.string,width:F.oneOfType([F.string,F.number]),height:F.oneOfType([F.string,F.number])};function As(){return As=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},As.apply(this,arguments)}var Fp=function(){};function fD(e){var t=e.shape,n=t===void 0?"rect":t,r=e.fill,i=r===void 0?Fp:r,o=e.size,a=o===void 0?Fp:o,s=e.width,u=e.height,l=e.label,c=e.item,f=e.itemIndex,h=e.shapeStyle,d=h===void 0?Fp:h,p={width:s,height:u,item:c,itemIndex:f,label:l,fill:i(As({},l)),size:a(As({},l)),style:d(As({},l))};return typeof n=="string"?n==="circle"?Q.default.createElement(w_,p):n==="line"?Q.default.createElement(__,p):Q.default.createElement(zp,p):Q.default.isValidElement(n)?Q.default.cloneElement(n,p):n?Q.default.createElement(n,p):null}function Ac(){return Ac=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},Ac.apply(this,arguments)}function $_(e){var t=e.shape,n=t===void 0?zp:t,r=e.width,i=e.height,o=e.margin,a=e.label,s=e.item,u=e.itemIndex,l=e.fill,c=e.size,f=e.shapeStyle;return Q.default.createElement("div",{className:"visx-legend-shape",style:{display:"flex",width:c?c(Ac({},a)):r,height:c?c(Ac({},a)):i,margin:o}},fD({shape:n,item:s,itemIndex:u,label:a,width:r,height:i,fill:l,shapeStyle:f}))}$_.propTypes={itemIndex:F.number.isRequired,margin:F.oneOfType([F.string,F.number]),width:F.oneOfType([F.string,F.number]),height:F.oneOfType([F.string,F.number])};function S_(e){return e&&typeof e=="object"&&"value"in e&&typeof e.value!="undefined"?e.value:e}function M_(e){return String(S_(e))}function hD(e){var t=e.scale,n=e.labelFormat;return function(r,i){return{datum:r,index:i,text:""+n(r,i),value:t(r)}}}var dD=["className","style","scale","shape","domain","fill","size","labelFormat","labelTransform","shapeWidth","shapeHeight","shapeMargin","shapeStyle","labelAlign","labelFlex","labelMargin","itemMargin","direction","itemDirection","legendLabelProps","children"];function Ns(){return Ns=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},Ns.apply(this,arguments)}function pD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gD={display:"flex"};function T_(e){var t=e.className,n=e.style,r=n===void 0?gD:n,i=e.scale,o=e.shape,a=e.domain,s=e.fill,u=s===void 0?M_:s,l=e.size,c=l===void 0?M_:l,f=e.labelFormat,h=f===void 0?S_:f,d=e.labelTransform,p=d===void 0?hD:d,m=e.shapeWidth,g=m===void 0?15:m,y=e.shapeHeight,v=y===void 0?15:y,x=e.shapeMargin,b=x===void 0?"2px 4px 2px 0":x,_=e.shapeStyle,w=e.labelAlign,$=w===void 0?"left":w,T=e.labelFlex,k=T===void 0?"1":T,S=e.labelMargin,M=S===void 0?"0 4px":S,A=e.itemMargin,E=A===void 0?"0":A,O=e.direction,P=O===void 0?"column":O,C=e.itemDirection,N=C===void 0?"row":C,D=e.legendLabelProps,I=e.children,B=pD(e,dD),U=a||("domain"in i?i.domain():[]),Y=p({scale:i,labelFormat:h}),J=U.map(Y);return I?Q.default.createElement(Q.default.Fragment,null,I(J)):Q.default.createElement("div",{className:Ye("visx-legend",t),style:Ns({},r,{flexDirection:P})},J.map(function(q,j){return Q.default.createElement(Rp,Ns({key:"legend-"+q.text+"-"+j,margin:E,flexDirection:N},B),Q.default.createElement($_,{shape:o,height:v,width:g,margin:b,item:U[j],itemIndex:j,label:q,fill:u,size:c,shapeStyle:_}),Q.default.createElement(Lp,Ns({label:q.text,flex:k,margin:M,align:$},D)))}))}T_.propTypes={children:F.func,className:F.string,domain:F.array,shapeWidth:F.oneOfType([F.string,F.number]),shapeHeight:F.oneOfType([F.string,F.number]),shapeMargin:F.oneOfType([F.string,F.number]),labelAlign:F.string,labelFlex:F.oneOfType([F.string,F.number]),labelMargin:F.oneOfType([F.string,F.number]),itemMargin:F.oneOfType([F.string,F.number]),fill:F.func,size:F.func,shapeStyle:F.func};function mD(e){return Q.default.createElement(T_,e)}function Nc({value:e,colorRange:t,dataKeyArray:n}){var o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$;const r=((a=(o=e==null?void 0:e.main)==null?void 0:o.legend)==null?void 0:a.colorRectWidth)||15,i=Ho({domain:n||((s=e==null?void 0:e.main)==null?void 0:s.tooltipDataKey),range:t||((l=(u=e==null?void 0:e.style)==null?void 0:u.barStyle)==null?void 0:l.colorRange)||((f=(c=e==null?void 0:e.style)==null?void 0:c.pieStyle)==null?void 0:f.colorRange)||((d=(h=e==null?void 0:e.style)==null?void 0:h.lineStyle)==null?void 0:d.colorRange)});return oe("div",{className:"legend",style:{position:((m=(p=e==null?void 0:e.main)==null?void 0:p.legend)==null?void 0:m.direction)!=="column"?"absolute":void 0,top:20,width:((y=(g=e==null?void 0:e.main)==null?void 0:g.legend)==null?void 0:y.direction)!=="column"?"90%":void 0,justifyContent:"end",display:"flex",...(x=(v=e==null?void 0:e.style)==null?void 0:v.legendStyle)==null?void 0:x.legend},children:[z("div",{className:"title",style:(_=(b=e==null?void 0:e.style)==null?void 0:b.legendStyle)==null?void 0:_.legendTitle,children:($=(w=e==null?void 0:e.main)==null?void 0:w.legend)==null?void 0:$.legendTitle}),z(mD,{scale:i,labelFormat:T=>`${T}`,children:T=>{var k,S;return z("div",{style:{display:"flex",flexDirection:((S=(k=e==null?void 0:e.main)==null?void 0:k.legend)==null?void 0:S.direction)||"row",flexWrap:"wrap"},children:T.map((M,A)=>{var E,O,P,C,N,D;return oe(Rp,{margin:"0 5px",onClick:I=>{I&&alert(`clicked: ${JSON.stringify(M)}`)},...((O=(E=e==null?void 0:e.main)==null?void 0:E.legend)==null?void 0:O.direction)==="column"?{style:{...(C=(P=e==null?void 0:e.style)==null?void 0:P.legendStyle)==null?void 0:C.legendVertical}}:{},children:[z("svg",{width:r,height:r,children:z("rect",{fill:M.value,width:r,height:r})}),z(Lp,{align:`${((D=(N=e==null?void 0:e.main)==null?void 0:N.legend)==null?void 0:D.align)||"left"}`,margin:"0 0 0 4px",children:M.text})]},`legend-quantile-${A}`)})})}})]})}var Rc={};Rc.__esModule=!0;var k_=Rc.default=wD,yD=O_(Q.default),vD=O_(Ao.exports),bD=["from","to","fill","className","innerRef"];function O_(e){return e&&e.__esModule?e:{default:e}}function Bp(){return Bp=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},Bp.apply(this,arguments)}function xD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function wD(e){var t=e.from,n=t===void 0?{x:0,y:0}:t,r=e.to,i=r===void 0?{x:1,y:1}:r,o=e.fill,a=o===void 0?"transparent":o,s=e.className,u=e.innerRef,l=xD(e,bD),c=n.x===i.x||n.y===i.y;return yD.default.createElement("line",Bp({ref:u,className:(0,vD.default)("visx-line",s),x1:n.x,y1:n.y,x2:i.x,y2:i.y,fill:a,shapeRendering:c?"crispEdges":"auto"},l))}function C_(e){return"bandwidth"in e?e.bandwidth():0}var _D=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function jp(){return jp=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},jp.apply(this,arguments)}function $D(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function P_(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.width,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.children,p=e.numTicks,m=p===void 0?10:p,g=e.lineStyle,y=e.offset,v=e.tickValues,x=$D(e,_D),b=v!=null?v:mc(o,m),_=(y!=null?y:0)+C_(o)/2,w=b.map(function($,T){var k,S=((k=gc(o($)))!=null?k:0)+_;return{index:T,from:new Un({x:0,y:S}),to:new Un({x:a,y:S})}});return Q.default.createElement(je,{className:Ye("visx-rows",h),top:n,left:i},d?d({lines:w}):w.map(function($){var T=$.from,k=$.to,S=$.index;return Q.default.createElement(k_,jp({key:"row-line-"+S,from:T,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:g},x))}))}P_.propTypes={tickValues:F.array,width:F.number.isRequired};var SD=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function Wp(){return Wp=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},Wp.apply(this,arguments)}function MD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function E_(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.height,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.numTicks,p=d===void 0?10:d,m=e.lineStyle,g=e.offset,y=e.tickValues,v=e.children,x=MD(e,SD),b=y!=null?y:mc(o,p),_=(g!=null?g:0)+C_(o)/2,w=b.map(function($,T){var k,S=((k=gc(o($)))!=null?k:0)+_;return{index:T,from:new Un({x:S,y:0}),to:new Un({x:S,y:a})}});return Q.default.createElement(je,{className:Ye("visx-columns",h),top:n,left:i},v?v({lines:w}):w.map(function($){var T=$.from,k=$.to,S=$.index;return Q.default.createElement(k_,Wp({key:"column-line-"+S,from:T,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:m},x))}))}E_.propTypes={tickValues:F.array,height:F.number.isRequired};var TD=["top","left","xScale","yScale","width","height","className","stroke","strokeWidth","strokeDasharray","numTicksRows","numTicksColumns","rowLineStyle","columnLineStyle","xOffset","yOffset","rowTickValues","columnTickValues"];function Dc(){return Dc=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},Dc.apply(this,arguments)}function kD(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Hp(e){var t=e.top,n=e.left,r=e.xScale,i=e.yScale,o=e.width,a=e.height,s=e.className,u=e.stroke,l=e.strokeWidth,c=e.strokeDasharray,f=e.numTicksRows,h=e.numTicksColumns,d=e.rowLineStyle,p=e.columnLineStyle,m=e.xOffset,g=e.yOffset,y=e.rowTickValues,v=e.columnTickValues,x=kD(e,TD);return Q.default.createElement(je,{className:Ye("visx-grid",s),top:t,left:n},Q.default.createElement(P_,Dc({className:s,scale:i,width:o,stroke:u,strokeWidth:l,strokeDasharray:c,numTicks:f,lineStyle:d,offset:g,tickValues:y},x)),Q.default.createElement(E_,Dc({className:s,scale:r,height:a,stroke:u,strokeWidth:l,strokeDasharray:c,numTicks:h,lineStyle:p,offset:m,tickValues:v},x)))}Hp.propTypes={rowTickValues:F.array,columnTickValues:F.array};var Kr={},qp=et(hC),Up={};Up.__esModule=!0,Up.default=OD;function OD(e,t){e(t)}var ji={};ji.__esModule=!0,ji.STACK_ORDER_NAMES=ji.STACK_ORDERS=void 0,ji.default=PD;var Rs=qp,Lc={ascending:Rs.stackOrderAscending,descending:Rs.stackOrderDescending,insideout:Rs.stackOrderInsideOut,none:Rs.stackOrderNone,reverse:Rs.stackOrderReverse};ji.STACK_ORDERS=Lc;var CD=Object.keys(Lc);ji.STACK_ORDER_NAMES=CD;function PD(e){return e&&Lc[e]||Lc.none}var Wi={};Wi.__esModule=!0,Wi.STACK_OFFSET_NAMES=Wi.STACK_OFFSETS=void 0,Wi.default=AD;var Ds=qp,Ic={expand:Ds.stackOffsetExpand,diverging:Ds.stackOffsetDiverging,none:Ds.stackOffsetNone,silhouette:Ds.stackOffsetSilhouette,wiggle:Ds.stackOffsetWiggle};Wi.STACK_OFFSETS=Ic;var ED=Object.keys(Ic);Wi.STACK_OFFSET_NAMES=ED;function AD(e){return e&&Ic[e]||Ic.none}Kr.__esModule=!0,Kr.arc=DD,Kr.area=LD,Kr.line=ID,Kr.pie=zD,Kr.radialLine=FD,Kr.stack=BD;var Xo=qp,We=Vp(Up),ND=Vp(ji),RD=Vp(Wi);function Vp(e){return e&&e.__esModule?e:{default:e}}function DD(e){var t=e===void 0?{}:e,n=t.innerRadius,r=t.outerRadius,i=t.cornerRadius,o=t.startAngle,a=t.endAngle,s=t.padAngle,u=t.padRadius,l=(0,Xo.arc)();return n!=null&&(0,We.default)(l.innerRadius,n),r!=null&&(0,We.default)(l.outerRadius,r),i!=null&&(0,We.default)(l.cornerRadius,i),o!=null&&(0,We.default)(l.startAngle,o),a!=null&&(0,We.default)(l.endAngle,a),s!=null&&(0,We.default)(l.padAngle,s),u!=null&&(0,We.default)(l.padRadius,u),l}function LD(e){var t=e===void 0?{}:e,n=t.x,r=t.x0,i=t.x1,o=t.y,a=t.y0,s=t.y1,u=t.defined,l=t.curve,c=(0,Xo.area)();return n&&(0,We.default)(c.x,n),r&&(0,We.default)(c.x0,r),i&&(0,We.default)(c.x1,i),o&&(0,We.default)(c.y,o),a&&(0,We.default)(c.y0,a),s&&(0,We.default)(c.y1,s),u&&c.defined(u),l&&c.curve(l),c}function ID(e){var t=e===void 0?{}:e,n=t.x,r=t.y,i=t.defined,o=t.curve,a=(0,Xo.line)();return n&&(0,We.default)(a.x,n),r&&(0,We.default)(a.y,r),i&&a.defined(i),o&&a.curve(o),a}function zD(e){var t=e===void 0?{}:e,n=t.startAngle,r=t.endAngle,i=t.padAngle,o=t.value,a=t.sort,s=t.sortValues,u=(0,Xo.pie)();return(a===null||a!=null)&&u.sort(a),(s===null||s!=null)&&u.sortValues(s),o!=null&&u.value(o),i!=null&&(0,We.default)(u.padAngle,i),n!=null&&(0,We.default)(u.startAngle,n),r!=null&&(0,We.default)(u.endAngle,r),u}function FD(e){var t=e===void 0?{}:e,n=t.angle,r=t.radius,i=t.defined,o=t.curve,a=(0,Xo.radialLine)();return n&&(0,We.default)(a.angle,n),r&&(0,We.default)(a.radius,r),i&&a.defined(i),o&&a.curve(o),a}function BD(e){var t=e.keys,n=e.value,r=e.order,i=e.offset,o=(0,Xo.stack)();return t&&o.keys(t),n&&(0,We.default)(o.value,n),r&&o.order((0,ND.default)(r)),i&&o.offset((0,RD.default)(i)),o}const jD={top:40,right:0,bottom:0,left:0};function WD({theme:e,width:t,height:n,events:r=!1,margin:i=jD,value:o}){var A,E,O,P,C,N,D,I,B,U,Y,J,q;const a=(A=o.main)==null?void 0:A.data,s=Object.keys(a[0]).filter(j=>j!==o.main.xAxisValue),[u,l]=H.useState({date:null,city:null}),c=j=>j[o.main.xAxisValue],f=a.reduce((j,V)=>{const G=s.reduce((ne,L)=>(ne+=Number(V[L]),ne),0);return j.push(G),j},[]),h=Bi({domain:a.map(c),padding:.4}),d=Bi({domain:s}),p=Wo({domain:((E=o==null?void 0:o.main)==null?void 0:E.type)==="StackBarGraph"?[0,Math.max(...f)]:[0,Math.max(...a.map(j=>Math.max(...s.map(V=>Number(j[V])))))],nice:!0}),m=Ho({domain:s,range:o.style.barStyle.colorRange}),g=t-i.left-i.right,y=n-i.top-i.bottom;h.rangeRound([0,g]),d.rangeRound([0,h.bandwidth()]),p.range([y,0]);const{tooltipData:v,tooltipLeft:x,tooltipTop:b,tooltipOpen:_,showTooltip:w,hideTooltip:$}=Es(),T=(j,V,G)=>{l({date:G,city:V.index}),w({tooltipLeft:j.clientX,tooltipTop:j.clientY,tooltipData:{groupData:a[G.index],highlightedBar:V}})},k=j=>{l({date:null,city:null}),$()},S=(j,V,G)=>{l({date:G,city:V.index}),w({tooltipLeft:j.clientX,tooltipTop:j.clientY,tooltipData:{groupData:a[V.index],highlightedBar:V}})};function M(j){return j==null?void 0:j.bars.reduce((V,G)=>V+Math.min(G.width,15),0)}return t<10?null:oe("div",{children:[oe("svg",{width:t,height:n,children:[z("rect",{x:0,y:0,width:t,height:n,fill:o.style.containerStyle.background||"#612efb"}),z(Hp,{top:i.top,left:i.left,xScale:h,yScale:p,width:t-i.left-i.right,height:y,stroke:"black",xOffset:h.bandwidth()/50,strokeDasharray:"8 3",strokeOpacity:.2,strokeWidth:.3}),oe(je,{top:i.top,left:i.left,children:[u&&z("rect",{style:{display:u.date?"block":"none"},x:o.main.type==="StackBarGraph"?((O=u==null?void 0:u.date)==null?void 0:O.bars[u.city].x)-(Math.min((P=u==null?void 0:u.date)==null?void 0:P.bars[0].width,15)-((C=u==null?void 0:u.date)==null?void 0:C.bars[0].width))/2:((N=u.date)==null?void 0:N.x0)-(Math.min((D=u==null?void 0:u.date)==null?void 0:D.bars[0].width,15)-((I=u==null?void 0:u.date)==null?void 0:I.bars[0].width))||0,width:o.main.type!=="StackBarGraph"?M(u==null?void 0:u.date):Math.min((B=u==null?void 0:u.date)==null?void 0:B.bars[0].width,15),height:y,fill:(Y=(U=o.style)==null?void 0:U.barStyle)==null?void 0:Y.hoverBackgroundColor,opacity:1}),z(f_,{value:o,yScale:p,parentWidth:t}),((J=o==null?void 0:o.main)==null?void 0:J.type)==="StackBarGraph"?z(CC,{data:a,keys:s,x:c,xScale:h,yScale:p,color:m,children:j=>j.map(V=>V.bars.map(G=>z("rect",{x:G.x-(Math.min(G.width,15)-G.width)/2,y:G.y,height:G.height,width:Math.min(G.width,15),fill:G.color,onMouseOver:ne=>S(ne,G,V),onMouseOut:ne=>k(),stroke:u.city===G.index?"black":"transparent"},`bar-stack-${V.index}-${G.index}`)))}):z($C,{data:a,keys:s,height:y,x0:c,x0Scale:h,x1Scale:d,yScale:p,color:(j,V)=>{const G=m(j),ne=`${m(j)}50`;return(u==null?void 0:u.city)!==null?V===(u==null?void 0:u.city)?G:ne:G},children:j=>j.map(V=>z(je,{left:V.x0,children:V.bars.map(G=>{const ne=Math.min(G.width,15),L=G.index===0?G.x-(ne-G.width):G.x;return z("rect",{x:L,y:G.y,width:ne,height:G.height,fill:G.color,onMouseOver:W=>T(W,G,V),onMouseOut:W=>k(),stroke:u.city===G.index?"black":"transparent"},`bar-group-bar-${V.index}-${G.index}-${G.value}-${G.key}`)})},`bar-group-${V.index}-${V.x0}`))})]}),z(h_,{yMax:y+i.top,value:o,left:i.left,xScale:h,parentWidth:t})]}),((q=o==null?void 0:o.main)==null?void 0:q.legendAvailable)&&s.length>1&&z(Nc,{dataKeyArray:s,colorRange:o.style.barStyle.colorRange,value:o}),_&&z(x_,{value:o,theme:e,top:b,left:x,tooltipData:v,colorScale:m})]})}var HD=bc,qD=function(){return HD.Date.now()},UD=qD,VD=/\s/;function YD(e){for(var t=e.length;t--&&VD.test(e.charAt(t)););return t}var GD=YD,XD=GD,KD=/^\s+/;function ZD(e){return e&&e.slice(0,XD(e)+1).replace(KD,"")}var QD=ZD;function JD(e){return e!=null&&typeof e=="object"}var eL=JD,tL=e_,nL=eL,rL="[object Symbol]";function iL(e){return typeof e=="symbol"||nL(e)&&tL(e)==rL}var oL=iL,aL=QD,A_=xc,sL=oL,N_=0/0,uL=/^[-+]0x[0-9a-f]+$/i,lL=/^0b[01]+$/i,cL=/^0o[0-7]+$/i,fL=parseInt;function hL(e){if(typeof e=="number")return e;if(sL(e))return N_;if(A_(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=A_(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=aL(e);var n=lL.test(e);return n||cL.test(e)?fL(e.slice(2),n?2:8):uL.test(e)?N_:+e}var dL=hL,pL=xc,Yp=UD,R_=dL,gL="Expected a function",mL=Math.max,yL=Math.min;function vL(e,t,n){var r,i,o,a,s,u,l=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(gL);t=R_(t)||0,pL(n)&&(c=!!n.leading,f="maxWait"in n,o=f?mL(R_(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function d(w){var $=r,T=i;return r=i=void 0,l=w,a=e.apply(T,$),a}function p(w){return l=w,s=setTimeout(y,t),c?d(w):a}function m(w){var $=w-u,T=w-l,k=t-$;return f?yL(k,o-T):k}function g(w){var $=w-u,T=w-l;return u===void 0||$>=t||$<0||f&&T>=o}function y(){var w=Yp();if(g(w))return v(w);s=setTimeout(y,m(w))}function v(w){return s=void 0,h&&r?d(w):(r=i=void 0,a)}function x(){s!==void 0&&clearTimeout(s),l=0,r=u=i=s=void 0}function b(){return s===void 0?a:v(Yp())}function _(){var w=Yp(),$=g(w);if(r=arguments,i=this,u=w,$){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),d(u)}return s===void 0&&(s=setTimeout(y,t)),a}return _.cancel=x,_.flush=b,_}var D_=vL,L_=D_,bL=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function Gp(){return Gp=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},Gp.apply(this,arguments)}function xL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wL=[],_L={width:"100%",height:"100%"};function Ls(e){var t=e.className,n=e.children,r=e.debounceTime,i=r===void 0?300:r,o=e.ignoreDimensions,a=o===void 0?wL:o,s=e.parentSizeStyles,u=s===void 0?_L:s,l=e.enableDebounceLeadingCall,c=l===void 0?!0:l,f=e.resizeObserverPolyfill,h=xL(e,bL),d=H.useRef(null),p=H.useRef(0),m=H.useState({width:0,height:0,top:0,left:0}),g=m[0],y=m[1],v=H.useMemo(function(){var x=Array.isArray(a)?a:[a];return L_(function(b){y(function(_){var w=Object.keys(_),$=w.filter(function(k){return _[k]!==b[k]}),T=$.every(function(k){return x.includes(k)});return T?_:b})},i,{leading:c})},[i,c,a]);return H.useEffect(function(){var x=f||window.ResizeObserver,b=new x(function(_){_.forEach(function(w){var $,T=($=w==null?void 0:w.contentRect)!=null?$:{},k=T.left,S=T.top,M=T.width,A=T.height;p.current=window.requestAnimationFrame(function(){v({width:M,height:A,top:S,left:k})})})});return d.current&&b.observe(d.current),function(){window.cancelAnimationFrame(p.current),b.disconnect(),v.cancel()}},[v,f]),z("div",{style:u,ref:d,className:t,...h,children:n(Gp({},g,{ref:d.current,resize:v}))})}Ls.propTypes={className:F.string,debounceTime:F.number,enableDebounceLeadingCall:F.bool,ignoreDimensions:F.oneOfType([F.any,F.arrayOf(F.any)]),children:F.func.isRequired};const I_=[{label:"B1",Budget:5,Payout:1},{label:"B2",Budget:5,Payout:2},{label:"B3",Budget:8,Payout:3},{label:"B4",Budget:6,Payout:4},{label:"B5",Budget:7,Payout:2},{label:"B6",Budget:10,Payout:5}],zc=(e,t,n)=>{var r,i,o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$,T,k,S,M,A,E,O,P,C;switch(e){case"BarGraph":case"StackBarGraph":case"HorizontalBarGraph":case"HorizontalStackBarGraph":return{main:{data:((r=t==null?void 0:t.main)==null?void 0:r.data)||I_,header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,legendAvailable:!0,leftLabel:"Value",axisLeft:!0,axisBottom:!0,hideTicks:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",xAxisValue:"label",...t.main,legend:{legendTitle:"",direction:"row",align:"left",...(i=t==null?void 0:t.main)==null?void 0:i.legend}},style:{containerStyle:{background:n.myTheme.palette.background.default,width:"90%",height:"450",borderRadius:"20px",padding:"10px 0 2px 0",...(o=t==null?void 0:t.style)==null?void 0:o.containerStyle},headerStyle:{fontWeight:500,textAlign:"left",fontFamily:"inherit",marginBottom:"20px",padding:"15px 0 1px 20px",width:"100%",fontSize:"18px",color:n.myTheme.palette.text.primary,...(a=t==null?void 0:t.style)==null?void 0:a.headerStyle},tooltipStyle:{padding:"6px",borderRadius:"2px",...(s=t==null?void 0:t.style)==null?void 0:s.tooltipStyle},labelStyle:{leftLabelMargin:"100",topLabelMargin:"-6",labelColor:n.myTheme.palette.text.primary,leftLabelOffset:25,bottomLabelOffset:5,tickLabelColor:n.myTheme.palette.text.primary,tickFontSize:"14px",rightAxisWidth:"0.3px",fontSize:"12px",...(u=t==null?void 0:t.style)==null?void 0:u.labelStyle},barStyle:{colorRange:((l=n==null?void 0:n.chartColours)==null?void 0:l.barChartColours)||["#3f51b5","rgba(200,0,31,0.9)","rgba(25,200,205,0.6)"],mediumValueColor:"rgba(63, 81, 181, 0.85)",highValueColor:"rgba(63, 81, 181, 0.85)",lowValueColor:"rgba(63, 81, 181, 0.85)",hoverBackgroundColor:`${n.myTheme.palette.secondary.main}`,...(c=t==null?void 0:t.style)==null?void 0:c.barStyle}}};case"PieGraph":return{main:{data:((f=t==null?void 0:t.main)==null?void 0:f.data)&&t.main.data.length>0?(h=t==null?void 0:t.main)==null?void 0:h.data:[{label:"Kotak",value:500},{label:"SBI",value:700},{label:"HDFC",value:900}],header:"Pie Graph",bottomLabel:"Name of Employe",leftLabel:"Value",tooltipDataKey:["First","Second","Third"],axisLeft:!0,axisBottom:!0,legendAvailable:!0,xAxisValue:"label",...t==null?void 0:t.main,legend:{labelColor:n.myTheme.palette.text.primary,direction:"column",align:"left",...(d=t==null?void 0:t.main)==null?void 0:d.legend}},style:{containerStyle:{background:n.myTheme.palette.background.default,width:"100%",height:"310",borderRadius:"20px",padding:"10px 0 2px 0",...(p=t==null?void 0:t.style)==null?void 0:p.containerStyle},headerStyle:{fontWeight:500,textAlign:"left",fontFamily:"inherit",marginBottom:"20px",padding:"15px 0 1px 20px",width:"100%",fontSize:"18px",color:n.myTheme.palette.text.primary,...(m=t==null?void 0:t.style)==null?void 0:m.headerStyle},tooltipStyle:{width:"100%",minWidth:80,height:20,backgroundColor:"lightgrey",color:"black",...(g=t==null?void 0:t.style)==null?void 0:g.tooltipStyle},labelStyle:{labelColor:n.myTheme.palette.text.primary,labelOffset:45,leftLabelMargin:"70",topLabelMargin:"-40",...(y=t==null?void 0:t.style)==null?void 0:y.labelStyle},legendStyle:{legend:{lineHeight:"0.9em",color:n.myTheme.palette.text.primary,fontSize:"10px",fontFamily:"arial",padding:"10px 10px",float:"left",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",margin:"5px 5px",...(x=(v=t==null?void 0:t.style)==null?void 0:v.legendStyle)==null?void 0:x.legend},legendVertical:{paddingBottom:"8px",flexDirection:"row",display:"flex",alignItems:"center"},legendTitle:{fontWeight:500,marginBottom:"5px",fontFamily:"roboto",fontSize:"10px",...(_=(b=t==null?void 0:t.style)==null?void 0:b.legendStyle)==null?void 0:_.legendTitle}},pieStyle:{colorRange:((w=n==null?void 0:n.chartColours)==null?void 0:w.pieChartColours)||["#3f51b5","rgba(200,0,31,0.9)","rgba(25,200,205,0.6)"],outerRadius:120,innerRadius:63,cornerRadius:2,padAngle:.006,...($=t==null?void 0:t.style)==null?void 0:$.pieStyle}}};case"LineGraph":return{main:{data:((k=(T=t==null?void 0:t.main)==null?void 0:T.data)==null?void 0:k.length)>0?(S=t==null?void 0:t.main)==null?void 0:S.data:I_,header:"Line Graph Dynamic",bottomLabel:"Name of Employe",leftLabel:"Value",legendAvailable:!0,gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,xAxisValue:"label",...t==null?void 0:t.main,legend:{labelColor:n.myTheme.palette.text.primary,direction:"row",align:"right",colorRectWidth:20,...(M=t==null?void 0:t.main)==null?void 0:M.legend}},style:{containerStyle:{background:n.myTheme.palette.background.default,width:"100%",height:"300",borderRadius:"20px",padding:"10px 0 2px 0",...(A=t==null?void 0:t.style)==null?void 0:A.containerStyle},headerStyle:{fontWeight:500,textAlign:"left",fontFamily:"inherit",marginBottom:"20px",padding:"15px 0 1px 20px",width:"100%",fontSize:"18px",color:n.myTheme.palette.text.primary,...(E=t==null?void 0:t.style)==null?void 0:E.headerStyle},labelStyle:{labelColor:n.myTheme.palette.text.primary,fontSize:"12px",bottomLabelOffset:25,leftLabelOffset:25,...(O=t==null?void 0:t.style)==null?void 0:O.labelStyle},lineStyle:{colorRange:((P=n==null?void 0:n.chartColours)==null?void 0:P.lineChartColours)||["#3f51b5","rgba(200,0,31,0.9)","rgba(25,200,205,0.6)"],lineAreaColor:"none",lineAreaOpacity:.2,...(C=t==null?void 0:t.style)==null?void 0:C.lineStyle}}}}},$L=({value:e,theme:t})=>{var i,o,a,s,u;const n=zc((i=e==null?void 0:e.main)==null?void 0:i.type,e,t);let r=z(Ls,{children:l=>{var c,f,h,d,p,m,g,y,v,x,b,_,w,$;return z(WD,{theme:t,width:l.width||800,height:((f=(c=n==null?void 0:n.style)==null?void 0:c.containerStyle)==null?void 0:f.height)||"450",margin:{top:((p=(d=(h=n==null?void 0:n.style)==null?void 0:h.labelStyle)==null?void 0:d.margin)==null?void 0:p.top)||10,right:((y=(g=(m=n==null?void 0:n.style)==null?void 0:m.labelStyle)==null?void 0:g.margin)==null?void 0:y.right)||10,bottom:((b=(x=(v=n==null?void 0:n.style)==null?void 0:v.labelStyle)==null?void 0:x.margin)==null?void 0:b.bottom)||40,left:(($=(w=(_=n==null?void 0:n.style)==null?void 0:_.labelStyle)==null?void 0:w.margin)==null?void 0:$.left)||60},value:n})}});return oe("div",{style:(o=n==null?void 0:n.style)==null?void 0:o.containerStyle,children:[((a=n==null?void 0:n.main)==null?void 0:a.header)&&z("div",{style:{fontWeight:500,...(s=n==null?void 0:n.style)==null?void 0:s.headerStyle},children:(u=n==null?void 0:n.main)==null?void 0:u.header}),r]})},SL=({theme:e,value:t,parentWidth:n,parentHeight:r})=>{var O,P,C,N,D,I,B,U,Y,J,q,j,V,G,ne,L;const{TooltipInPortal:i}=Ap({detectBounds:!0,scroll:!0}),[o,a]=H.useState(null),s=(O=t==null?void 0:t.main)==null?void 0:O.data,u=Object.keys(s[0]),l=((P=t==null?void 0:t.main)==null?void 0:P.xAxisValue)&&((C=t==null?void 0:t.main)==null?void 0:C.yAxisValue)?[(N=t==null?void 0:t.main)==null?void 0:N.xAxisValue,(D=t==null?void 0:t.main)==null?void 0:D.yAxisValue]:u,c=u.indexOf(t.main.xAxisValue),f=c===0?1:0,h=W=>W[l[f]],d=Ho({domain:s.map(W=>W[l[c]]),range:(B=(I=t==null?void 0:t.style)==null?void 0:I.pieStyle)==null?void 0:B.colorRange}),p=W=>d(W),m=s.map(W=>W[t.main.xAxisValue]),{tooltipData:g,tooltipLeft:y,tooltipTop:v,tooltipOpen:x,showTooltip:b,hideTooltip:_}=Es(),w=(W,X,R)=>{a(R);const te=R[l[c]]+"",ee=R[l[f]]+"";b({tooltipLeft:W.clientX,tooltipTop:W.clientY,tooltipData:{[te]:ee}})},$=n-40,T=r-40,k=$/2,S=T/2,M=k+20,A=S+20,E=(W,X)=>W-X;return z(Jt,{children:oe("div",{style:{display:"flex",justifyContent:"space-between"},children:[z("svg",{width:n,height:r,className:"pieGraphContainer",children:oe(je,{top:A,left:M,children:[z(ox,{data:s,pieValue:h,outerRadius:((Y=(U=t==null?void 0:t.style)==null?void 0:U.pieStyle)==null?void 0:Y.innerRadius)-5,innerRadius:((q=(J=t==null?void 0:t.style)==null?void 0:J.pieStyle)==null?void 0:q.innerRadius)-10,padAngle:.05,children:W=>W.arcs.map((X,R)=>{const te=X.data[l[c]];W.path.centroid(X);const ee=W.path(X),se=d(te);return z("g",{children:z("path",{d:ee,fill:se})},`arc-${te}-${R}`)})}),z(ox,{data:s,pieSortValues:E,pieValue:h,outerRadius:({data:W})=>{var R,te,ee,se;return o&&o[t.main.xAxisValue]==W[t.main.xAxisValue]?(te=(R=t==null?void 0:t.style)==null?void 0:R.pieStyle)==null?void 0:te.outerRadius:((se=(ee=t==null?void 0:t.style)==null?void 0:ee.pieStyle)==null?void 0:se.outerRadius)-3},innerRadius:(V=(j=t==null?void 0:t.style)==null?void 0:j.pieStyle)==null?void 0:V.innerRadius,cornerRadius:(ne=(G=t==null?void 0:t.style)==null?void 0:G.pieStyle)==null?void 0:ne.cornerRadius,children:W=>W.arcs.map((X,R)=>{const te=X.data[l[c]];W.path.centroid(X);const ee=W.path(X),se=d(te);return z("g",{onMouseOut:_,onMouseLeave:()=>a(null),onMouseOver:ce=>w(ce,X,X.data),className:"pieTooltipHolder",children:z("path",{d:ee,fill:se})},`arc-${te}-${R}`)})})]})}),x&&z(i,{style:{...Go,backgroundColor:e.myTheme.palette.secondary.main},top:v,left:y,children:Object.keys(g).map(W=>oe("div",{style:{display:"flex",marginBottom:"2.5px",marginTop:"2.5px"},children:[z("span",{style:{backgroundColor:p(W),width:"15px",height:"15px",marginRight:"5px"}}),z("span",{style:{marginRight:"5px"},children:oe("strong",{style:{color:"black"},children:[W,": "]})}),z("span",{style:{color:"black"},children:g[W]})]}))},Math.random()),z("div",{style:{width:"100px",display:"flex",marginTop:"20px",marginRight:"130px"},children:((L=t==null?void 0:t.main)==null?void 0:L.legendAvailable)&&z(Nc,{value:t,dataKeyArray:m})})]})})},ML=({value:e,theme:t})=>{var i,o;const n=zc("PieGraph",e,t);let r=z(Ls,{children:a=>z(SL,{theme:t,parentWidth:a.width,parentHeight:parseInt(n.style.containerStyle.height),parentRef:a.ref,resizeParent:a.resize,value:n})});return oe("div",{style:n.style.containerStyle,children:[((i=n==null?void 0:n.main)==null?void 0:i.header)&&z("div",{style:n.style.headerStyle,children:(o=n==null?void 0:n.main)==null?void 0:o.header}),r]})};var z_=et(PR);function TL(e){return!!e&&e instanceof Element}function kL(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function OL(e){return!!e&&"createSVGPoint"in e}function CL(e){return!!e&&"getScreenCTM"in e}function PL(e){return!!e&&"changedTouches"in e}function EL(e){return!!e&&"clientX"in e}function AL(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}function Is(){return Is=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},Is.apply(this,arguments)}var Xp={x:0,y:0};function NL(e){if(!e)return Is({},Xp);if(PL(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:Is({},Xp);if(EL(e))return{x:e.clientX,y:e.clientY};var t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:Is({},Xp)}function F_(e,t){if(!e||!t)return null;var n=NL(t),r=kL(e)?e.ownerSVGElement:e,i=CL(r)?r.getScreenCTM():null;if(OL(r)&&i){var o=r.createSVGPoint();return o.x=n.x,o.y=n.y,o=o.matrixTransform(i.inverse()),new Un({x:o.x,y:o.y})}var a=e.getBoundingClientRect();return new Un({x:n.x-a.left-e.clientLeft,y:n.y-a.top-e.clientTop})}function RL(e,t){if(TL(e)&&t)return F_(e,t);if(AL(e)){var n=e,r=n.target;if(r)return F_(r,n)}return null}var DL=Q.default.createContext({}),Vn=DL;function Kp(e){var t,n=e;return n&&"bandwidth"in n&&(t=n==null?void 0:n.bandwidth())!=null?t:0}function Ut(e){return e!=null&&typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}var B_=et(xO),j_=et(cE),LL=["AxisComponent"];function Zp(){return Zp=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},Zp.apply(this,arguments)}function IL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zL(e){var t,n,r,i,o,a,s,u=e.AxisComponent,l=IL(e,LL),c=H.useContext(Vn),f=c.theme,h=c.xScale,d=c.yScale,p=c.margin,m=c.width,g=c.height,y=l.orientation,v=H.useMemo(function(){var T,k,S,M;return y==="left"||y==="right"?f==null||(T=f.axisStyles)==null||(k=T.y)==null?void 0:k[y]:f==null||(S=f.axisStyles)==null||(M=S.x)==null?void 0:M[y]},[f,y]),x=l.tickLabelProps,b=H.useMemo(function(){return x||v?function(T,k,S){return Zp({},v==null?void 0:v.tickLabel,{width:y==="left"||y==="right"?p==null?void 0:p[y]:void 0},typeof x=="function"?x(T,k,S):x)}:void 0},[x,v,y,p]),_=y==="bottom"?(g!=null?g:0)-((t=p==null?void 0:p.bottom)!=null?t:0):y==="top"&&(n=p==null?void 0:p.top)!=null?n:0,w=y==="left"?(r=p==null?void 0:p.left)!=null?r:0:y==="right"?(m!=null?m:0)-((i=p==null?void 0:p.right)!=null?i:0):0,$=y==="left"||y==="right"?d:h;return $?z(u,{top:_,left:w,labelProps:v==null?void 0:v.axisLabel,stroke:v==null||(o=v.axisLine)==null?void 0:o.stroke,strokeWidth:v==null||(a=v.axisLine)==null?void 0:a.strokeWidth,tickLength:v==null?void 0:v.tickLength,tickStroke:v==null||(s=v.tickLine)==null?void 0:s.stroke,...l,tickLabelProps:b,scale:$}):null}var Fc={};Fc.__esModule=!0,Fc.default=FL;function FL(e){return"bandwidth"in e?e.bandwidth():0}var BL=V_,W_=zs(Eo.exports),H_=zs(Q.default),jL=zs(Ao.exports),WL=zs(Rc),HL=B_,q_=z_,U_=j_,qL=zs(Fc),UL=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function zs(e){return e&&e.__esModule?e:{default:e}}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 VL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function V_(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.width,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.children,p=e.numTicks,m=p===void 0?10:p,g=e.lineStyle,y=e.offset,v=e.tickValues,x=VL(e,UL),b=v!=null?v:(0,U_.getTicks)(o,m),_=(y!=null?y:0)+(0,qL.default)(o)/2,w=b.map(function($,T){var k,S=((k=(0,U_.coerceNumber)(o($)))!=null?k:0)+_;return{index:T,from:new q_.Point({x:0,y:S}),to:new q_.Point({x:a,y:S})}});return H_.default.createElement(HL.Group,{className:(0,jL.default)("visx-rows",h),top:n,left:i},d?d({lines:w}):w.map(function($){var T=$.from,k=$.to,S=$.index;return H_.default.createElement(WL.default,Qp({key:"row-line-"+S,from:T,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:g},x))}))}V_.propTypes={tickValues:W_.default.array,width:W_.default.number.isRequired};var YL=Z_,Y_=Fs(Eo.exports),G_=Fs(Q.default),GL=Fs(Ao.exports),XL=Fs(Rc),KL=B_,X_=z_,K_=j_,ZL=Fs(Fc),QL=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function Fs(e){return e&&e.__esModule?e:{default:e}}function Jp(){return Jp=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},Jp.apply(this,arguments)}function JL(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Z_(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.height,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.numTicks,p=d===void 0?10:d,m=e.lineStyle,g=e.offset,y=e.tickValues,v=e.children,x=JL(e,QL),b=y!=null?y:(0,K_.getTicks)(o,p),_=(g!=null?g:0)+(0,ZL.default)(o)/2,w=b.map(function($,T){var k,S=((k=(0,K_.coerceNumber)(o($)))!=null?k:0)+_;return{index:T,from:new X_.Point({x:S,y:0}),to:new X_.Point({x:S,y:a})}});return G_.default.createElement(KL.Group,{className:(0,GL.default)("visx-columns",h),top:n,left:i},v?v({lines:w}):w.map(function($){var T=$.from,k=$.to,S=$.index;return G_.default.createElement(XL.default,Jp({key:"column-line-"+S,from:T,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:m},x))}))}Z_.propTypes={tickValues:Y_.default.array,height:Y_.default.number.isRequired};var eI=["rows","columns","GridRowsComponent","GridColumnsComponent"];function tI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Q_(e){var t=e.rows,n=t===void 0?!0:t,r=e.columns,i=r===void 0?!0:r,o=e.GridRowsComponent,a=e.GridColumnsComponent,s=tI(e,eI),u=H.useContext(Vn),l=u.theme,c=u.xScale,f=u.yScale,h=u.margin,d=u.innerWidth,p=u.innerHeight,m=l==null?void 0:l.gridStyles;return oe(Jt,{children:[n&&f&&d!=null&&z(o,{left:h==null?void 0:h.left,lineStyle:m,width:d,scale:f,...s}),i&&c&&p!=null&&z(a,{top:h==null?void 0:h.top,lineStyle:m,height:p,scale:c,...s})]})}Q_.propTypes={rows:F.bool,columns:F.bool};function eg(){return eg=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},eg.apply(this,arguments)}function J_(e){return Q.default.createElement(zL,eg({AxisComponent:kp},e))}function tg(){return tg=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},tg.apply(this,arguments)}function nI(e){return Q.default.createElement(Q_,tg({GridRowsComponent:BL,GridColumnsComponent:YL},e))}var rI=H.createContext(null),Bs=rI,iI=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],oI=["x","y"];function e$(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function js(){return js=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},js.apply(this,arguments)}var ng={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},aI={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function t$(e){var t=H.useContext(Vn)||{},n=t.theme;return z("circle",{cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:n==null?void 0:n.backgroundColor,strokeWidth:1.5,paintOrder:"fill",...e.glyphStyle})}t$.propTypes={isNearestDatum:F.bool.isRequired};function sI(e){return z(t$,{...e})}function n$(e){var t,n,r,i,o,a,s,u,l,c,f,h,d,p=e.debounce,m=e.detectBounds,g=e.horizontalCrosshairStyle,y=e.glyphStyle,v=e.renderTooltip,x=e.renderGlyph,b=x===void 0?sI:x,_=e.resizeObserverPolyfill,w=e.scroll,$=w===void 0?!0:w,T=e.showDatumGlyph,k=T===void 0?!1:T,S=e.showHorizontalCrosshair,M=S===void 0?!1:S,A=e.showSeriesGlyphs,E=A===void 0?!1:A,O=e.showVerticalCrosshair,P=O===void 0?!1:O,C=e.snapTooltipToDatumX,N=C===void 0?!1:C,D=e.snapTooltipToDatumY,I=D===void 0?!1:D,B=e.verticalCrosshairStyle,U=e.zIndex,Y=e$(e,iI),J=H.useContext(Vn)||{},q=J.colorScale,j=J.theme,V=J.innerHeight,G=J.innerWidth,ne=J.margin,L=J.xScale,W=J.yScale,X=J.dataRegistry,R=J.resizeObserverPolyfill,te=H.useContext(Bs),ee=Ap({debounce:p,detectBounds:m,polyfill:R||_,scroll:$,zIndex:U}),se=ee.containerRef,ce=ee.TooltipInPortal,ie=ee.forceRefreshBounds,ge=H.useCallback(function(Ht){var On;se((On=Ht==null?void 0:Ht.parentElement)!=null?On:null)},[se]),lt=te!=null&&te.tooltipOpen?v(js({},te,{colorScale:q})):null,xe=(te==null?void 0:te.tooltipOpen)&&lt!=null,St=H.useRef(!1);H.useEffect(function(){xe&&!St.current&&ie(),St.current=xe},[xe,ie]);var pt=te==null?void 0:te.tooltipLeft,ct=te==null?void 0:te.tooltipTop,He=L?Kp(L):0,Ze=W?Kp(W):0,Qe=H.useCallback(function(Ht,On){var Br,jr,qt=X==null?void 0:X.get(Ht),Oo=qt==null?void 0:qt.xAccessor,br=qt==null?void 0:qt.yAccessor,Co=L&&Oo?(Br=Number(L(Oo(On)))+He/2)!=null?Br:0:void 0,Mt=W&&br?(jr=Number(W(br(On)))+Ze/2)!=null?jr:0:void 0;return{left:Co,top:Mt}},[X,He,Ze,L,W]),Je=te==null||(t=te.tooltipData)==null?void 0:t.nearestDatum,Tn=(n=Je==null?void 0:Je.key)!=null?n:"";if(xe&&Je&&(N||I)){var fe=Qe(Tn,Je.datum),Wt=fe.left,xi=fe.top;pt=N&&Ut(Wt)?Wt:pt,ct=I&&Ut(xi)?xi:ct}var kn=[];if(xe&&(k||E)){var wi,Ol=Number((wi=y==null?void 0:y.radius)!=null?wi:4);if(E){var ko,ns;Object.values((ko=te==null||(ns=te.tooltipData)==null?void 0:ns.datumByKey)!=null?ko:{}).forEach(function(Ht){var On,Br,jr,qt=Ht.key,Oo=Ht.datum,br=Ht.index,Co=(On=(Br=q==null?void 0:q(qt))!=null?Br:j==null||(jr=j.htmlLabel)==null?void 0:jr.color)!=null?On:"#222",Mt=Qe(qt,Oo),_i=Mt.left,Gd=Mt.top;!Ut(_i)||!Ut(Gd)||kn.push({key:qt,color:Co,datum:Oo,index:br,size:Ol,x:_i,y:Gd,glyphStyle:y,isNearestDatum:Je?Je.key===qt:!1})})}else if(Je){var Cl=Qe(Tn,Je.datum),Pl=Cl.left,qd=Cl.top;if(Ut(Pl)&&Ut(qd)){var Ud,Vd,El,Al,Nl,Rl,Yd=(Ud=(Vd=(El=(Al=Tn&&(q==null?void 0:q(Tn)))!=null?Al:null)!=null?El:j==null||(Nl=j.gridStyles)==null?void 0:Nl.stroke)!=null?Vd:j==null||(Rl=j.htmlLabel)==null?void 0:Rl.color)!=null?Ud:"#222";kn.push({key:Tn,color:Yd,datum:Je.datum,index:Je.index,size:Ol,x:Pl,y:qd,glyphStyle:y,isNearestDatum:!0})}}}return oe(Jt,{children:[z("svg",{ref:ge,style:aI}),xe&&oe(Jt,{children:[P&&z(ce,{className:"visx-crosshair visx-crosshair-vertical",left:pt,top:ne==null?void 0:ne.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:ng,children:z("svg",{width:"1",height:V,overflow:"visible",children:z("line",{x1:0,x2:0,y1:0,y2:V,strokeWidth:1.5,stroke:(r=(i=j==null||(o=j.gridStyles)==null?void 0:o.stroke)!=null?i:j==null||(a=j.htmlLabel)==null?void 0:a.color)!=null?r:"#222",...B})})}),M&&z(ce,{className:"visx-crosshair visx-crosshair-horizontal",left:ne==null?void 0:ne.left,top:ct,offsetLeft:0,offsetTop:0,detectBounds:!1,style:ng,children:z("svg",{width:G,height:"1",overflow:"visible",children:z("line",{x1:0,x2:G,y1:0,y2:0,strokeWidth:1.5,stroke:(s=(u=j==null||(l=j.gridStyles)==null?void 0:l.stroke)!=null?u:j==null||(c=j.htmlLabel)==null?void 0:c.color)!=null?s:"#222",...g})})}),kn.map(function(Ht,On){var Br=Ht.x,jr=Ht.y,qt=e$(Ht,oI);return z(ce,{className:"visx-tooltip-glyph",left:Br,top:jr,offsetLeft:0,offsetTop:0,detectBounds:!1,style:ng,children:z("svg",{overflow:"visible",children:b(js({x:0,y:0},qt))})},On)}),z(ce,{left:pt,top:ct,style:js({},Go,{background:(f=j==null?void 0:j.backgroundColor)!=null?f:"white",boxShadow:"0 1px 2px "+(j!=null&&(h=j.htmlLabel)!=null&&h.color?(j==null||(d=j.htmlLabel)==null?void 0:d.color)+"55":"#22222255")},j==null?void 0:j.htmlLabel),...Y,children:lt})]})]})}n$.propTypes={renderTooltip:F.func.isRequired,renderGlyph:F.func,snapTooltipToDatumX:F.bool,snapTooltipToDatumY:F.bool,showVerticalCrosshair:F.bool,showHorizontalCrosshair:F.bool,showDatumGlyph:F.bool,showSeriesGlyphs:F.bool};function r$(e){var t=H.useContext(Bs);return t!=null&&t.tooltipOpen?z(n$,{...e}):null}r$.propTypes={renderTooltip:F.func.isRequired,renderGlyph:F.func,snapTooltipToDatumX:F.bool,snapTooltipToDatumY:F.bool,showVerticalCrosshair:F.bool,showHorizontalCrosshair:F.bool,showDatumGlyph:F.bool,showSeriesGlyphs:F.bool};var uI=a$,Zr=o$(Eo.exports),lI=o$(D_),Ko=fI(Q.default),cI=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function i$(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(i$=function(i){return i?n:t})(e)}function fI(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=i$(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function o$(e){return e&&e.__esModule?e:{default:e}}function Bc(){return Bc=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},Bc.apply(this,arguments)}function hI(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dI=[],pI={width:"100%",height:"100%"};function a$(e){var t=e.className,n=e.children,r=e.debounceTime,i=r===void 0?300:r,o=e.ignoreDimensions,a=o===void 0?dI:o,s=e.parentSizeStyles,u=s===void 0?pI:s,l=e.enableDebounceLeadingCall,c=l===void 0?!0:l,f=e.resizeObserverPolyfill,h=hI(e,cI),d=(0,Ko.useRef)(null),p=(0,Ko.useRef)(0),m=(0,Ko.useState)({width:0,height:0,top:0,left:0}),g=m[0],y=m[1],v=(0,Ko.useMemo)(function(){var x=Array.isArray(a)?a:[a];return(0,lI.default)(function(b){y(function(_){var w=Object.keys(_),$=w.filter(function(k){return _[k]!==b[k]}),T=$.every(function(k){return x.includes(k)});return T?_:b})},i,{leading:c})},[i,c,a]);return(0,Ko.useEffect)(function(){var x=f||window.ResizeObserver,b=new x(function(_){_.forEach(function(w){var $,T=($=w==null?void 0:w.contentRect)!=null?$:{},k=T.left,S=T.top,M=T.width,A=T.height;p.current=window.requestAnimationFrame(function(){v({width:M,height:A,top:S,left:k})})})});return d.current&&b.observe(d.current),function(){window.cancelAnimationFrame(p.current),b.disconnect(),v.cancel()}},[v,f]),Ko.default.createElement("div",Bc({style:u,ref:d,className:t},h),n(Bc({},g,{ref:d.current,resize:v})))}a$.propTypes={className:Zr.default.string,debounceTime:Zr.default.number,enableDebounceLeadingCall:Zr.default.bool,ignoreDimensions:Zr.default.oneOfType([Zr.default.any,Zr.default.arrayOf(Zr.default.any)]),children:Zr.default.func.isRequired};var gI=H.createContext(null),s$=gI;function Qr(e,t,n){var r=H.useContext(s$),i=H.useRef();i.current=n;var o=H.useCallback(function(a,s,u){r&&r.emit(a,{event:s,svgPoint:RL(s),source:u})},[r]);return H.useEffect(function(){if(r&&e&&t){var a=function(u){var l;(!i.current||u!=null&&u.source&&(l=i.current)!=null&&l.includes(u.source))&&t(u)};return r.on(e,a),function(){return r==null?void 0:r.off(e,a)}}},[r,e,t]),r?o:null}function mI(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}function yI(e){var t=e.children,n=H.useMemo(function(){return mI()},[]);return z(s$.Provider,{value:n,children:t})}function rg(){return rg=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},rg.apply(this,arguments)}function u$(e){var t=e.hideTooltipDebounceMs,n=t===void 0?400:t,r=e.children,i=Es(void 0),o=i.tooltipOpen,a=i.tooltipLeft,s=i.tooltipTop,u=i.tooltipData,l=i.updateTooltip,c=i.hideTooltip,f=H.useRef(null);function h(){f.current&&(f.current.cancel(),f.current=null)}H.useEffect(function(){return h},[]);var d=H.useRef(function(g){var y=g.svgPoint,v=g.index,x=g.key,b=g.datum,_=g.distanceX,w=g.distanceY;h();var $=Ut(_)?_:1/0,T=Ut(w)?w:1/0,k=Math.sqrt(Math.pow($,2)+Math.pow(T,2));l(function(S){var M,A,E,O=S.tooltipData,P=O!=null&&O.nearestDatum&&Ut(O.nearestDatum.distance)?O.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:y==null?void 0:y.x,tooltipTop:y==null?void 0:y.y,tooltipData:{nearestDatum:((M=O==null||(A=O.nearestDatum)==null?void 0:A.key)!=null?M:"")!==x&&P<k?O==null?void 0:O.nearestDatum:{key:x,index:v,datum:b,distance:k},datumByKey:rg({},O==null?void 0:O.datumByKey,(E={},E[x]={datum:b,index:v,key:x},E))}}})}),p=H.useCallback(function(){f.current=L_(c,n),f.current()},[c,n]),m=H.useMemo(function(){return{tooltipOpen:o,tooltipLeft:a,tooltipTop:s,tooltipData:u,updateTooltip:l,showTooltip:d.current,hideTooltip:p}},[p,u,a,o,s,l]);return z(Bs.Provider,{value:m,children:r})}u$.propTypes={hideTooltipDebounceMs:F.number,children:F.node.isRequired};var vI=et(SP),Ws={},ig={};ig.__esModule=!0,ig.default=bI;function bI(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}var og={};og.__esModule=!0,og.default=xI;function xI(e,t){t.range&&("padding"in e,e.range(t.range))}var ag={};ag.__esModule=!0,ag.default=wI;function wI(e,t){"align"in e&&"align"in t&&typeof t.align!="undefined"&&e.align(t.align)}var sg={};sg.__esModule=!0,sg.default=_I;function _I(e,t){"base"in e&&"base"in t&&typeof t.base!="undefined"&&e.base(t.base)}var ug={};ug.__esModule=!0,ug.default=$I;function $I(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp!="undefined"&&e.clamp(t.clamp)}var lg={};lg.__esModule=!0,lg.default=SI;function SI(e,t){"constant"in e&&"constant"in t&&typeof t.constant!="undefined"&&e.constant(t.constant)}var cg={};cg.__esModule=!0,cg.default=MI;function MI(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent!="undefined"&&e.exponent(t.exponent)}var fg={},hg={},l$=et(AP);hg.__esModule=!0,hg.default=TI;var Jr=l$,c$={lab:Jr.interpolateLab,hcl:Jr.interpolateHcl,"hcl-long":Jr.interpolateHclLong,hsl:Jr.interpolateHsl,"hsl-long":Jr.interpolateHslLong,cubehelix:Jr.interpolateCubehelix,"cubehelix-long":Jr.interpolateCubehelixLong,rgb:Jr.interpolateRgb};function TI(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return c$[e]}var t=e.type,n=e.gamma,r=c$[t];return typeof n=="undefined"?r:r.gamma(n)}fg.__esModule=!0,fg.default=CI;var kI=OI(hg);function OI(e){return e&&e.__esModule?e:{default:e}}function CI(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate!="undefined"){var n=(0,kI.default)(t.interpolate);e.interpolate(n)}}var dg={},PI=et(DP),pg={};pg.__esModule=!0,pg.default=NI;var EI=new Date(Date.UTC(2020,1,2,3,4,5)),AI="%Y-%m-%d %H:%M";function NI(e){var t=e.tickFormat(1,AI)(EI);return t==="2020-02-02 03:04"}dg.__esModule=!0,dg.default=LI;var Vt=PI,RI=DI(pg);function DI(e){return e&&e.__esModule?e:{default:e}}var f$={day:Vt.timeDay,hour:Vt.timeHour,minute:Vt.timeMinute,month:Vt.timeMonth,second:Vt.timeSecond,week:Vt.timeWeek,year:Vt.timeYear},h$={day:Vt.utcDay,hour:Vt.utcHour,minute:Vt.utcMinute,month:Vt.utcMonth,second:Vt.utcSecond,week:Vt.utcWeek,year:Vt.utcYear};function LI(e,t){if("nice"in t&&typeof t.nice!="undefined"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,i=(0,RI.default)(r);if(typeof n=="string")r.nice(i?h$[n]:f$[n]);else{var o=n.interval,a=n.step,s=(i?h$[o]:f$[o]).every(a);s!=null&&r.nice(s)}}}}var gg={};gg.__esModule=!0,gg.default=II;function II(e,t){"padding"in e&&"padding"in t&&typeof t.padding!="undefined"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner!="undefined"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter!="undefined"&&e.paddingOuter(t.paddingOuter)}var mg={};mg.__esModule=!0,mg.default=zI;function zI(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}var yg={};yg.__esModule=!0,yg.default=BI;var FI=l$;function BI(e,t){"round"in t&&typeof t.round!="undefined"&&(t.round&&"interpolate"in t&&typeof t.interpolate!="undefined"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(FI.interpolateRound))}var vg={};vg.__esModule=!0,vg.default=jI;function jI(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown!="undefined"&&e.unknown(t.unknown)}var bg={};bg.__esModule=!0,bg.default=WI;function WI(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],i=n[1],o=i<r,a=o?[i,r]:[r,i],s=a[0],u=a[1],l=[Math.min(0,s),Math.max(0,u)];e.domain(o?l.reverse():l)}}Ws.__esModule=!0,Ws.ALL_OPERATORS=void 0,Ws.default=iz;var HI=Yt(ig),qI=Yt(og),UI=Yt(ag),VI=Yt(sg),YI=Yt(ug),GI=Yt(lg),XI=Yt(cg),KI=Yt(fg),ZI=Yt(dg),QI=Yt(gg),JI=Yt(mg),ez=Yt(yg),tz=Yt(vg),nz=Yt(bg);function Yt(e){return e&&e.__esModule?e:{default:e}}var d$=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];Ws.ALL_OPERATORS=d$;var rz={domain:HI.default,nice:ZI.default,zero:nz.default,interpolate:KI.default,round:ez.default,align:UI.default,base:VI.default,clamp:YI.default,constant:GI.default,exponent:XI.default,padding:QI.default,range:qI.default,reverse:JI.default,unknown:tz.default};function iz(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),i=d$.filter(function(o){return r.has(o)});return function(a,s){return typeof s!="undefined"&&i.forEach(function(u){rz[u](a,s)}),a}}var oz=cz,az=vI,sz=uz(Ws);function uz(e){return e&&e.__esModule?e:{default:e}}var lz=(0,sz.default)("domain","range","reverse","unknown");function cz(e){return lz((0,az.scaleOrdinal)(),e)}var ei={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},Hs=ei.gray,xg=Hs[7],fz=[ei.cyan[9],ei.cyan[3],ei.yellow[5],ei.red[4],ei.grape[8],ei.grape[5],ei.pink[9]];function Pe(){return Pe=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},Pe.apply(this,arguments)}var wg={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function hz(e){var t,n,r,i,o,a,s=Pe({},wg,{fill:xg,stroke:"none"},e.svgLabelBig),u=Pe({},wg,{fontWeight:200,fontSize:11,fill:xg,stroke:"none"},e.svgLabelSmall),l=Pe({color:(t=(n=(r=(i=e.htmlLabel)==null?void 0:i.color)!=null?r:(o=e.svgLabelBig)==null?void 0:o.fill)!=null?n:(a=e.svgLabelSmall)==null?void 0:a.fill)!=null?t:xg},wg,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:Pe({},l),svgLabelSmall:Pe({},u),svgLabelBig:Pe({},s),gridStyles:Pe({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:Pe({},s,{dy:"-0.25em"}),axisLine:Pe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Pe({},u,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:Pe({},s,{dy:"-0.25em"}),axisLine:Pe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Pe({},u,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:Pe({},s,{dx:"-1.25em"}),axisLine:Pe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Pe({},u,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:Pe({},s,{dx:"1.25em"}),axisLine:Pe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Pe({},u,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}var dz=hz({backgroundColor:"#fff",colors:fz,tickLength:4,svgLabelSmall:{fill:Hs[7]},svgLabelBig:{fill:Hs[9]},gridColor:Hs[5],gridColorDark:Hs[9]}),pz=Q.default.createContext(dz),gz=pz,mz=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(r){var i=this,o=Array.isArray(r)?r:[r];o.forEach(function(a){a.key in i.registry&&i.registry[a.key]!=null&&console.debug("Overriding data registry key",a.key),i.registry[a.key]=a,i.registryKeys=Object.keys(i.registry)})},t.unregisterData=function(r){var i=this,o=Array.isArray(r)?r:[r];o.forEach(function(a){delete i.registry[a],i.registryKeys=Object.keys(i.registry)})},t.entries=function(){return Object.values(this.registry)},t.get=function(r){return this.registry[r]},t.keys=function(){return this.registryKeys},e}();function yz(){var e=H.useState(Math.random()),t=e[1],n=H.useMemo(function(){return new mz},[]);return H.useMemo(function(){return{registerData:function(){n.registerData.apply(n,arguments),t(Math.random())},unregisterData:function(){n.unregisterData.apply(n,arguments),t(Math.random())},entries:function(){return n.entries()},get:function(i){return n.get(i)},keys:function(){return n.keys()}}},[n])}var _g={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};function vz(e){var t=H.useState({width:(e==null?void 0:e.width)==null?_g.width:e.width,height:(e==null?void 0:e.height)==null?_g.height:e.height,margin:(e==null?void 0:e.margin)==null?_g.margin:e.margin}),n=t[0],r=t[1],i=H.useCallback(function(o){(o.width!==n.width||o.height!==n.height||o.margin.left!==n.margin.left||o.margin.right!==n.margin.right||o.margin.top!==n.margin.top||o.margin.bottom!==n.margin.bottom)&&r(o)},[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,i]}function $g(e){return(e==null?void 0:e.type)==="band"||(e==null?void 0:e.type)==="ordinal"||(e==null?void 0:e.type)==="point"}function Zo(){return Zo=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},Zo.apply(this,arguments)}function bz(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,i=e.yRange,o=e.yScaleConfig,a=t.keys(),s=n[0],u=n[1],l=i[0],c=i[1],f=H.useMemo(function(){var d=a.map(function(y){return t.get(y)}),p=d.reduce(function(y,v){return v?y.concat(v.data.map(function(x){return v.xAccessor(x)})):y},[]);if(p.length!==0){var m=$g(r)?p:hx(p),g=gp(r)?Ms(Zo({range:[s,u],domain:m,zero:!0},r)):Ms(Zo({range:[s,u],domain:m},r));return d.forEach(function(y){y!=null&&y.xScale&&(g=y.xScale(g))}),g}},[t,r,a,s,u]),h=H.useMemo(function(){var d=a.map(function(y){return t.get(y)}),p=d.reduce(function(y,v){return v?y.concat(v.data.map(function(x){return v.yAccessor(x)})):y},[]);if(p.length!==0){var m=$g(o)?p:hx(p),g=gp(o)?Ms(Zo({range:[l,c],domain:m,zero:!0},o)):Ms(Zo({range:[l,c],domain:m},o));return d.forEach(function(y){y!=null&&y.yScale&&(g=y.yScale(g))}),g}},[t,o,a,l,c]);return{xScale:f,yScale:h}}function p$(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,i=e.yScale,o=e.children,a=e.horizontal,s=a===void 0?"auto":a,u=e.resizeObserverPolyfill,l=H.useContext(gz),c=n||l,f=vz(t),h=f[0],d=h.width,p=h.height,m=h.margin,g=f[1],y=Math.max(0,d-m.left-m.right),v=Math.max(0,p-m.top-m.bottom),x=yz(),b=bz({dataRegistry:x,xScaleConfig:r,yScaleConfig:i,xRange:[m.left,Math.max(0,d-m.right)],yRange:[Math.max(0,p-m.bottom),m.top]}),_=b.xScale,w=b.yScale,$=x.keys(),T=H.useMemo(function(){return oz({domain:$,range:c.colors})},[$,c.colors]),k=s==="auto"?$g(i)||i.type==="time"||i.type==="utc":s,S=H.useMemo(function(){return{dataRegistry:x,registerData:x.registerData,unregisterData:x.unregisterData,xScale:_,yScale:w,colorScale:T,theme:c,width:d,height:p,margin:m,innerWidth:y,innerHeight:v,setDimensions:g,horizontal:k,resizeObserverPolyfill:u}},[T,x,p,k,v,y,m,g,c,d,_,w,u]);return z(Vn.Provider,{value:S,children:o})}p$.propTypes={children:F.node.isRequired,horizontal:F.oneOfType([F.bool,F.oneOf(["auto"])])};function g$(e){var t=e.source,n=e.onPointerOut,r=n===void 0?!0:n,i=e.onPointerMove,o=i===void 0?!0:i,a=e.onPointerUp,s=a===void 0?!0:a,u=e.onPointerDown,l=u===void 0?!0:u,c=e.onFocus,f=c===void 0?!1:c,h=e.onBlur,d=h===void 0?!1:h,p=Qr(),m=H.useCallback(function(_){return p==null?void 0:p("pointermove",_,t)},[p,t]),g=H.useCallback(function(_){return p==null?void 0:p("pointerout",_,t)},[p,t]),y=H.useCallback(function(_){return p==null?void 0:p("pointerup",_,t)},[p,t]),v=H.useCallback(function(_){return p==null?void 0:p("pointerdown",_,t)},[p,t]),x=H.useCallback(function(_){return p==null?void 0:p("focus",_,t)},[p,t]),b=H.useCallback(function(_){return p==null?void 0:p("blur",_,t)},[p,t]);return{onPointerMove:o?m:void 0,onFocus:f?x:void 0,onBlur:d?b:void 0,onPointerOut:r?g:void 0,onPointerUp:s?y:void 0,onPointerDown:l?v:void 0}}var xz="GLYPHSERIES_EVENT_SOURCE",wz="LINESERIES_EVENT_SOURCE",jc="XYCHART_EVENT_SOURCE";function m$(e){return!!e&&("clientX"in e||"changedTouches"in e)}function _z(e){return!!e&&!m$(e)}function y$(e){var t=e.scale,n=e.accessor,r=e.scaledValue,i=e.data,o=t,a,s;if("invert"in o&&typeof o.invert=="function"){var u=Xl(n).left,l=Number(o.invert(r)),c=u(i,l),f=i[c-1],h=i[c];a=!f||Math.abs(l-n(f))>Math.abs(l-n(h))?h:f,s=a===f?c-1:c}else if("step"in o&&typeof o.step!="undefined"){var d=t.domain(),p=t.range().map(Number),m=[].concat(p).sort(function(w,$){return w-$}),g=xx(m[0],m[1],o.step()),y=HC(g,r),v=p[0]<p[1]?d:d.reverse(),x=v[y-1],b=i.findIndex(function(w){return String(n(w))===String(x)});a=i[b],s=b}else return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;if(a==null||s==null)return null;var _=Math.abs(Number(o(n(a)))-r);return{datum:a,index:s,distance:_}}function $z(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,i=e.yAccessor,o=e.point,a=e.data;if(!o)return null;var s=y$({scale:t,accessor:n,scaledValue:o.x,data:a});return s?{datum:s.datum,index:s.index,distanceX:s.distance,distanceY:Math.abs(Number(r(i(s.datum)))-o.y)}:null}function Sz(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,i=e.xAccessor,o=e.point,a=e.data;if(!o)return null;var s=y$({scale:t,accessor:n,scaledValue:o.y,data:a});return s?{datum:s.datum,index:s.index,distanceY:s.distance,distanceX:Math.abs(Number(r(i(s.datum)))-o.x)}:null}function Sg(){return Sg=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},Sg.apply(this,arguments)}var Mg="__POINTER_EVENTS_ALL",Wc="__POINTER_EVENTS_NEAREST";function v$(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,i=e.onFocus,o=e.onPointerMove,a=e.onPointerOut,s=e.onPointerUp,u=e.onPointerDown,l=e.allowedSources,c=H.useContext(Vn),f=c.width,h=c.height,d=c.horizontal,p=c.dataRegistry,m=c.xScale,g=c.yScale,y=n||(d?Sz:$z),v=H.useCallback(function(k){var S=k||{},M=S.svgPoint,A=S.event,E={},O=null,P=1/0;if(k&&A&&M&&f&&h&&m&&g){var C,N=t===Wc||t===Mg,D=N?(C=p==null?void 0:p.keys())!=null?C:[]:Array.isArray(t)?t:[t];D.forEach(function(B){var U=p==null?void 0:p.get(B);if(U){var Y=y({dataKey:B,data:U.data,height:h,point:M,width:f,xAccessor:U.xAccessor,xScale:m,yAccessor:U.yAccessor,yScale:g});if(Y&&(E[B]=Sg({key:B,svgPoint:M,event:A},Y),t===Wc)){var J,q,j=Math.sqrt(((J=Y.distanceX)!=null?J:Math.pow(1/0,2))+((q=Y.distanceY)!=null?q:Math.pow(1/0,2)));O=j<P?E[B]:O,P=Math.min(P,j)}}});var I=t===Wc?[O]:t===Mg||Array.isArray(t)?Object.values(E):[E[t]];return I.filter(function(B){return B})}return[]},[t,p,m,g,f,h,y]),x=H.useCallback(function(k){o&&v(k).forEach(function(S){return o(S)})},[v,o]),b=H.useCallback(function(k){s&&v(k).forEach(function(S){return s(S)})},[v,s]),_=H.useCallback(function(k){u&&v(k).forEach(function(S){return u(S)})},[v,u]),w=H.useCallback(function(k){i&&v(k).forEach(function(S){return i(S)})},[v,i]),$=H.useCallback(function(k){var S=k==null?void 0:k.event;S&&m$(S)&&a&&a(S)},[a]),T=H.useCallback(function(k){var S=k==null?void 0:k.event;S&&_z(S)&&r&&r(S)},[r]);Qr("pointermove",o?x:void 0,l),Qr("pointerout",a?$:void 0,l),Qr("pointerup",s?b:void 0,l),Qr("pointerdown",u?_:void 0,l),Qr("focus",i?w:void 0,l),Qr("blur",r?T:void 0,l)}var Mz={top:50,right:50,bottom:50,left:50},Tz=[jc];function Qo(e){var t=e.accessibilityLabel,n=t===void 0?"XYChart":t,r=e.captureEvents,i=r===void 0?!0:r,o=e.children,a=e.height,s=e.horizontal,u=e.margin,l=u===void 0?Mz:u,c=e.onPointerMove,f=e.onPointerOut,h=e.onPointerUp,d=e.onPointerDown,p=e.pointerEventsDataKey,m=p===void 0?"nearest":p,g=e.theme,y=e.width,v=e.xScale,x=e.yScale,b=e.resizeObserverPolyfill,_=H.useContext(Vn),w=_.setDimensions,$=_.resizeObserverPolyfill,T=H.useContext(Bs),k=Qr();H.useEffect(function(){w&&y!=null&&a!=null&&y>0&&a>0&&w({width:y,height:a,margin:l})},[w,y,a,l]);var S=g$({source:jc});return v$({dataKey:m==="nearest"?Wc:Mg,onPointerMove:c,onPointerOut:f,onPointerUp:h,onPointerDown:d,allowedSources:Tz}),w?y==null||a==null?z(uI,{resizeObserverPolyfill:$,children:function(M){return z(Qo,{...e,width:e.width==null?M.width:e.width,height:e.height==null?M.height:e.height})}}):T==null?z(u$,{children:z(Qo,{...e})}):k==null?z(yI,{children:z(Qo,{...e})}):y<=0||a<=0?(console.info("XYChart has a zero width or height, bailing",{width:y,height:a}),null):oe("svg",{width:y,height:a,"aria-label":n,children:[o,i&&z("rect",{x:l.left,y:l.top,width:y-l.left-l.right,height:a-l.top-l.bottom,fill:"transparent",...S})]}):!v||!x?(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null):z(p$,{xScale:v,yScale:x,theme:g,initialDimensions:{width:y,height:a,margin:l},horizontal:s,resizeObserverPolyfill:b,children:z(Qo,{...e})})}Qo.propTypes={accessibilityLabel:F.string,captureEvents:F.bool,width:F.number,height:F.number,children:F.node.isRequired,horizontal:F.oneOfType([F.bool,F.oneOf(["auto"])]),onPointerMove:F.func,onPointerOut:F.func,onPointerUp:F.func,onPointerDown:F.func,pointerEventsDataKey:F.oneOf(["all","nearest"])};var kz=Az,Tg=b$(Q.default),Oz=b$(Ao.exports),Cz=Kr,Pz=["children","data","x","y","fill","className","curve","innerRef","defined"];function b$(e){return e&&e.__esModule?e:{default:e}}function kg(){return kg=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},kg.apply(this,arguments)}function Ez(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Az(e){var t=e.children,n=e.data,r=n===void 0?[]:n,i=e.x,o=e.y,a=e.fill,s=a===void 0?"transparent":a,u=e.className,l=e.curve,c=e.innerRef,f=e.defined,h=f===void 0?function(){return!0}:f,d=Ez(e,Pz),p=(0,Cz.line)({x:i,y:o,defined:h,curve:l});return t?Tg.default.createElement(Tg.default.Fragment,null,t({path:p})):Tg.default.createElement("path",kg({ref:c,className:(0,Oz.default)("visx-linepath",u),d:p(r)||"",fill:s,strokeLinecap:"round"},d))}function Nz(e){function t(n){var r=n.dataKey,i=n.data,o=n.xAccessor,a=n.yAccessor,s=H.useContext(Vn),u=s.xScale,l=s.yScale,c=s.dataRegistry;H.useEffect(function(){return c&&c.registerData({key:r,data:i,xAccessor:o,yAccessor:a}),function(){return c==null?void 0:c.unregisterData(r)}},[c,r,i,o,a]);var f=c==null?void 0:c.get(r);if(!u||!l||!f)return null;var h=e;return z(h,{...n,xScale:u,yScale:l,data:f.data,xAccessor:f.xAccessor,yAccessor:f.yAccessor})}return t}function Hc(e,t,n){return n===void 0&&(n="center"),function(r){var i=e(t(r));if(Ut(i)){var o=(n==="start"?0:Kp(e))/(n==="center"?2:1);return i+o}return NaN}}function x$(e){var t,n=e.dataKey,r=e.enableEvents,i=e.findNearestDatum,o=e.onBlur,a=e.onFocus,s=e.onPointerMove,u=e.onPointerOut,l=e.onPointerUp,c=e.onPointerDown,f=e.source,h=e.allowedSources,d=(t=H.useContext(Bs))!=null?t:{},p=d.showTooltip,m=d.hideTooltip,g=H.useCallback(function(_){p(_),s&&s(_)},[p,s]),y=H.useCallback(function(_){p(_),a&&a(_)},[p,a]),v=H.useCallback(function(_){m(),_&&u&&u(_)},[m,u]),x=H.useCallback(function(_){m(),_&&o&&o(_)},[m,o]),b=H.useCallback(function(_){p(_),c&&c(_)},[p,c]);return v$({dataKey:n,findNearestDatum:i,onBlur:r?x:void 0,onFocus:r?y:void 0,onPointerMove:r?g:void 0,onPointerOut:r?v:void 0,onPointerUp:r?l:void 0,onPointerDown:r?b:void 0,allowedSources:h}),g$({source:f,onBlur:!!o&&r,onFocus:!!a&&r,onPointerMove:!!s&&r,onPointerOut:!!u&&r,onPointerUp:!!l&&r,onPointerDown:!!c&&r})}function Og(){return Og=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},Og.apply(this,arguments)}function w$(e){var t,n,r,i=e.colorAccessor,o=e.data,a=e.dataKey,s=e.onBlur,u=e.onFocus,l=e.onPointerMove,c=e.onPointerOut,f=e.onPointerUp,h=e.onPointerDown,d=e.enableEvents,p=d===void 0?!0:d,m=e.renderGlyphs,g=e.size,y=g===void 0?8:g,v=e.xAccessor,x=e.xScale,b=e.yAccessor,_=e.yScale,w=H.useContext(Vn),$=w.colorScale,T=w.theme,k=w.horizontal,S=H.useMemo(function(){return Hc(x,v)},[x,v]),M=H.useMemo(function(){return Hc(_,b)},[_,b]),A=(t=(n=$==null?void 0:$(a))!=null?n:T==null||(r=T.colors)==null?void 0:r[0])!=null?t:"#222",E=xz+"-"+a,O=x$({dataKey:a,enableEvents:p,onBlur:s,onFocus:u,onPointerMove:l,onPointerOut:c,onPointerUp:f,onPointerDown:h,source:E,allowedSources:[jc,E]}),P=H.useMemo(function(){return o.map(function(C,N){var D,I=S(C);if(!Ut(I))return null;var B=M(C);return Ut(B)?{key:""+N,x:I,y:B,color:(D=i==null?void 0:i(C,N))!=null?D:A,size:typeof y=="function"?y(C):y,datum:C}:null}).filter(function(C){return C})},[A,i,o,S,M,y]);return z(Jt,{children:m(Og({glyphs:P,xScale:x,yScale:_,horizontal:k},O))})}w$.propTypes={colorAccessor:F.func,size:F.oneOfType([F.number,F.func]),renderGlyphs:F.func.isRequired};function Rz(e){var t=e.key,n=e.color,r=e.x,i=e.y,o=e.size,a=e.onBlur,s=e.onFocus,u=e.onPointerMove,l=e.onPointerOut,c=e.onPointerUp;return Q.default.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:a||s?0:void 0,fill:n,r:o/2,cx:r,cy:i,onBlur:a,onFocus:s,onPointerMove:u,onPointerOut:l,onPointerUp:c})}var Dz=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function Cg(){return Cg=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},Cg.apply(this,arguments)}function Lz(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _$(e){var t,n,r,i=e.colorAccessor,o=e.curve,a=e.data,s=e.dataKey,u=e.onBlur,l=e.onFocus,c=e.onPointerMove,f=e.onPointerOut,h=e.onPointerUp,d=e.onPointerDown,p=e.enableEvents,m=p===void 0?!0:p,g=e.xAccessor,y=e.xScale,v=e.yAccessor,x=e.yScale,b=e.PathComponent,_=b===void 0?"path":b,w=Lz(e,Dz),$=H.useContext(Vn),T=$.colorScale,k=$.theme,S=H.useMemo(function(){return Hc(y,g)},[y,g]),M=H.useMemo(function(){return Hc(x,v)},[x,v]),A=H.useCallback(function(D){return Ut(y(g(D)))&&Ut(x(v(D)))},[y,g,x,v]),E=(t=(n=T==null?void 0:T(s))!=null?n:k==null||(r=k.colors)==null?void 0:r[0])!=null?t:"#222",O=wz+"-"+s,P=x$({dataKey:s,enableEvents:m,onBlur:u,onFocus:l,onPointerMove:c,onPointerOut:f,onPointerUp:h,onPointerDown:d,source:O,allowedSources:[jc,O]}),C=Boolean(l||u),N=H.useCallback(function(D){var I=D.glyphs;return C?I.map(function(B){return z(Jt,{children:Rz(Cg({},B,{color:"transparent",onFocus:P.onFocus,onBlur:P.onBlur}))})}):null},[C,P.onFocus,P.onBlur]);return oe(Jt,{children:[z(kz,{x:S,y:M,defined:A,curve:o,...w,children:function(D){var I,B=D.path;return z(_,{stroke:(I=i==null?void 0:i(s))!=null?I:E,strokeWidth:2,fill:"transparent",strokeLinecap:"round",...w,d:B(a)||"",...P})}}),C&&z(w$,{dataKey:s,data:a,xAccessor:g,yAccessor:v,xScale:y,yScale:x,renderGlyphs:N})]})}_$.propTypes={colorAccessor:F.func};var Iz=Nz(_$);function zz(e){return Q.default.createElement(Iz,e)}const Fz={top:40,right:0,bottom:0,left:0},Bz=({theme:e,width:t,height:n,events:r=!1,value:i})=>{var d,p,m,g,y,v,x,b,_,w,$,T,k;const o=Fz;Es();const a=(d=i==null?void 0:i.main)==null?void 0:d.data,s=Object.keys(a[0]).filter(S=>S!==i.main.xAxisValue),u=a.map(S=>S[i.main.xAxisValue]),l=Bi({domain:u}),c=Wo({domain:[0,Math.max(...a.flatMap(S=>s.map(M=>S[M])))]}),f=t-o.left-o.right,h=n-o.top-o.bottom;return l.rangeRound([50,f-50]),c.range([h-10,50]),oe(Jt,{children:[i.main.legendAvailable&&z(Nc,{value:i,dataKeyArray:s}),oe(Qo,{width:t,height:n,xScale:{type:"band",scale:l},yScale:{type:"linear",scale:c},children:[z(J_,{orientation:"left",hideAxisLine:i.main.hideLeftAxisLine,label:i.main.leftLabel,labelOffset:((m=(p=i.style)==null?void 0:p.labelStyle)==null?void 0:m.leftLabelOffset)||25,labelProps:{fill:((y=(g=i.style)==null?void 0:g.labelStyle)==null?void 0:y.labelColor)||"black",fontSize:((x=(v=i.style)==null?void 0:v.labelStyle)==null?void 0:x.fontSize)||"12px",fontWeight:"normal"},tickLabelProps:S=>{var M,A;return{fill:((A=(M=i.style)==null?void 0:M.labelStyle)==null?void 0:A.labelColor)||"black",fontSize:10,textAnchor:"end",dy:"0.33em"}}}),z(J_,{orientation:"bottom",hideAxisLine:i.main.hideBottomAxisLine,label:i.main.bottomLabel,labelProps:{fill:((_=(b=i.style)==null?void 0:b.labelStyle)==null?void 0:_.labelColor)||"black",fontSize:(($=(w=i.style)==null?void 0:w.labelStyle)==null?void 0:$.fontSize)||"12px",fontWeight:"normal"},tickLabelProps:S=>{var M,A;return{fill:((A=(M=i.style)==null?void 0:M.labelStyle)==null?void 0:A.labelColor)||"black",fontSize:10,textAnchor:"middle"}},tickStroke:"black",labelOffset:((k=(T=i.style)==null?void 0:T.labelStyle)==null?void 0:k.bottomLabelOffset)||25}),z(nI,{stroke:"black",lineStyle:{opacity:.2},strokeDasharray:"8 3",strokeWidth:.3}),s==null?void 0:s.map((S,M)=>{var A,E,O,P,C,N;return oe(Jt,{children:[z(zz,{dataKey:S,data:a,fill:(E=(A=i.style)==null?void 0:A.lineStyle)==null?void 0:E.lineAreaColor,fillOpacity:(P=(O=i.style)==null?void 0:O.lineStyle)==null?void 0:P.lineAreaOpacity,floodColor:"green",floodOpacity:1,stroke:(N=(C=i.style)==null?void 0:C.lineStyle)==null?void 0:N.colorRange[M],xAccessor:D=>D[i.main.xAxisValue],yAccessor:D=>D[S]}),a.map((D,I)=>z("circle",{cx:l(D[i.main.xAxisValue])+l.bandwidth()/2,cy:c(D[S]),r:3,fill:"white",stroke:"black",strokeWidth:1},I))]})}),z(r$,{style:{...Go,backgroundColor:e.myTheme.palette.secondary.main},snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,showVerticalCrosshair:!0,showSeriesGlyphs:!0,renderTooltip:({tooltipData:S})=>Object.keys(S.datumByKey).map((M,A)=>{var E,O;return oe("div",{style:{display:"flex",marginBottom:"2.5px",marginTop:"2.5px"},children:[z("span",{style:{backgroundColor:(O=(E=i.style)==null?void 0:E.lineStyle)==null?void 0:O.colorRange[A],width:"15px",height:"15px",marginRight:"5px"}}),z("span",{style:{marginRight:"5px"},children:oe("span",{style:{fontWeight:"normal",color:"black"},children:[M,": "]})}),z("span",{style:{fontWeight:"normal",color:"black"},children:S.datumByKey[M].datum[M]})]})})})]})]})},jz=({value:e,theme:t})=>{var r,i,o,a;const n=zc("LineGraph",e,t);return oe("div",{style:(r=n==null?void 0:n.style)==null?void 0:r.containerStyle,children:[((i=n==null?void 0:n.main)==null?void 0:i.header)&&z("div",{style:(o=n==null?void 0:n.style)==null?void 0:o.headerStyle,children:(a=n==null?void 0:n.main)==null?void 0:a.header}),z(Ls,{children:s=>{var u,l;return z(Bz,{theme:t,width:s.width||800,height:((l=(u=n==null?void 0:n.style)==null?void 0:u.containerStyle)==null?void 0:l.height)||"450",value:n})}})]})};var Wz=({theme:e,width:t=600,height:n=400,events:r=!1,margin:i,barValue:o})=>{var A,E,O,P,C,N,D,I,B,U,Y,J;const[a,s]=H.useState({date:null,city:null}),u=t-i.left-i.right,l=n-i.top-i.bottom,c=(A=o==null?void 0:o.main)==null?void 0:A.data,f=Object.keys(c[0]).filter(q=>q!==o.main.xAxisValue),h=c.reduce((q,j)=>{const V=f.reduce((G,ne)=>(G+=Number(j[ne]),G),0);return q.push(V),q},[]),d=q=>q[o.main.xAxisValue],p=Wo({domain:((E=o==null?void 0:o.main)==null?void 0:E.type)==="HorizontalStackBarGraph"?[0,Math.max(...h)]:[0,Math.max(...c.map(q=>Math.max(...f.map(j=>Number(q[j])))))],nice:!0}),m=Bi({domain:c.map(d),padding:.4}),g=Bi({domain:f}),y=Ho({domain:f,range:o.style.barStyle.colorRange});p.rangeRound([0,u]),m.rangeRound([l,0]),g.rangeRound([0,m.bandwidth()]);const{tooltipData:v,tooltipLeft:x,tooltipTop:b,tooltipOpen:_,showTooltip:w,hideTooltip:$}=Es(),T=(q,j,V)=>{s({date:V,city:j.index}),w({tooltipLeft:q.clientX,tooltipTop:q.clientY,tooltipData:{groupData:c[V.index],highlightedBar:j}})},k=q=>{s({date:null,city:null}),$()},S=(q,j,V)=>{s({date:V,city:j.index}),w({tooltipLeft:q.clientX,tooltipTop:q.clientY,tooltipData:{groupData:c[j.index],highlightedBar:j}})};function M(q){return q==null?void 0:q.bars.reduce((j,V)=>j+Math.min(V.height,15),0)}return t<10?null:oe("div",{children:[oe("svg",{width:t,height:n,children:[z("rect",{x:0,y:0,width:t,height:n,fill:o.style.containerStyle.background||"#612efb"}),z(Hp,{top:i.top,left:i.left,xScale:p,yScale:m,width:u,height:l,stroke:"black",xOffset:m.bandwidth()/50,strokeDasharray:"8 3",strokeOpacity:.2,strokeWidth:.3}),oe(je,{top:i.top,left:i.left,children:[a&&z("rect",{style:{display:a.date?"block":"none"},y:o.main.type==="HorizontalStackBarGraph"?((O=a==null?void 0:a.date)==null?void 0:O.bars[a.city].y)-(Math.min((P=a==null?void 0:a.date)==null?void 0:P.bars[0].height,15)-((C=a==null?void 0:a.date)==null?void 0:C.bars[0].height))/2:((N=a.date)==null?void 0:N.y0)-(Math.min((D=a==null?void 0:a.date)==null?void 0:D.bars[0].height,15)-((I=a==null?void 0:a.date)==null?void 0:I.bars[0].height))||0,width:u,height:o.main.type!=="HorizontalStackBarGraph"?M(a==null?void 0:a.date):Math.min((B=a==null?void 0:a.date)==null?void 0:B.bars[0].height,15),fill:(Y=(U=o.style)==null?void 0:U.barStyle)==null?void 0:Y.hoverBackgroundColor,opacity:1}),o.main.type==="HorizontalStackBarGraph"?z(AC,{data:c,keys:f,height:l,y:d,xScale:p,yScale:m,color:y,children:q=>q.map(j=>j.bars.map(V=>z("rect",{x:V.x,y:V.y-(Math.min(V.height,15)-V.height)/2,width:V.width,height:Math.min(V.height,15),fill:V.color,onMouseOver:G=>S(G,V,j),onMouseOut:G=>k(),stroke:a.city===V.index?"black":"transparent"},`barstack-horizontal-${j.index}-${V.index}`)))}):z(TC,{data:c,keys:f,width:u,height:l,y0:d,y0Scale:m,y1Scale:g,xScale:p,color:(q,j)=>{const V=y(q),G=`${y(q)}50`;return(a==null?void 0:a.city)!==null?j===(a==null?void 0:a.city)?V:G:V},children:q=>q.map(j=>z(je,{top:j.y0,children:j.bars.map(V=>{const G=Math.min(V.height,15),ne=V.index===0?V.y-(G-V.height):V.y;return z("rect",{y:ne,x:V.x,width:V.width,height:G,fill:V.color,onMouseOver:L=>T(L,V,j),onMouseOut:L=>k(),stroke:a.city===V.index?"black":"transparent"},`bar-group-bar-${j.index}-${V.index}-${V.value}-${V.key}`)})},`bar-group-${j.index}-${j.y0}`))}),z(f_,{value:o,yScale:m,parentWidth:t}),z(h_,{value:o,yMax:l,xScale:p,parentWidth:t})]})]}),((J=o==null?void 0:o.main)==null?void 0:J.legendAvailable)&&f.length>1&&z(Nc,{dataKeyArray:f,colorRange:o.style.barStyle.colorRange,value:o}),_&&v&&z(x_,{value:o,theme:e,top:b,left:x,tooltipData:v,colorScale:y})]})};const Hz=({value:e,theme:t})=>{var i,o;const n=zc("HorizontalBarGraph",e,t);let r=z(Ls,{children:a=>{var s,u,l,c,f,h,d,p,m,g,y,v,x,b;return z(Wz,{theme:t,width:a.width,height:parseInt(((u=(s=n==null?void 0:n.style)==null?void 0:s.containerStyle)==null?void 0:u.height)||400),margin:{top:((f=(c=(l=n==null?void 0:n.style)==null?void 0:l.labelStyle)==null?void 0:c.margin)==null?void 0:f.top)||10,right:((p=(d=(h=n==null?void 0:n.style)==null?void 0:h.labelStyle)==null?void 0:d.margin)==null?void 0:p.right)||10,bottom:((y=(g=(m=n==null?void 0:n.style)==null?void 0:m.labelStyle)==null?void 0:g.margin)==null?void 0:y.bottom)||40,left:((b=(x=(v=n==null?void 0:n.style)==null?void 0:v.labelStyle)==null?void 0:x.margin)==null?void 0:b.left)||60},barValue:n})}});return oe("div",{style:n.style.containerStyle,children:[((i=n.main)==null?void 0:i.header)&&z("div",{style:n.style.headerStyle,children:(o=n==null?void 0:n.main)==null?void 0:o.header}),r]})};var Que="",qs={black:"#000",white:"#fff"},Jo={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ea={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ta={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},na={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ra={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Us={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},qz={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Z(){return Z=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},Z.apply(this,arguments)}function Hi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function $$(e){if(!Hi(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=$$(e[n])}),t}function Mr(e,t,n={clone:!0}){const r=n.clone?Z({},e):e;return Hi(e)&&Hi(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Hi(t[i])&&i in e&&Hi(e[i])?r[i]=Mr(e[i],t[i],n):n.clone?r[i]=Hi(t[i])?$$(t[i]):t[i]:r[i]=t[i])}),r}function ia(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function Tr(e){if(typeof e!="string")throw new Error(ia(7));return e.charAt(0).toUpperCase()+e.slice(1)}function S$(e){return e&&e.ownerDocument||document}function Pg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var Vs=typeof window!="undefined"?K.useLayoutEffect:K.useEffect;let M$=0;function Uz(e){const[t,n]=K.useState(e),r=e||t;return K.useEffect(()=>{t==null&&(M$+=1,n(`mui-${M$}`))},[t]),r}const T$=K["useId".toString()];function Vz(e){if(T$!==void 0){const t=T$();return e!=null?e:t}return Uz(e)}function Yz({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=K.useRef(e!==void 0),[o,a]=K.useState(t),s=i?e:o,u=K.useCallback(l=>{i||a(l)},[]);return[s,u]}function Ys(e){const t=K.useRef(e);return Vs(()=>{t.current=e}),K.useCallback((...n)=>(0,t.current)(...n),[])}function ti(...e){return K.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Pg(n,t)})},e)}let qc=!0,Eg=!1,k$;const Gz={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Xz(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Gz[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Kz(e){e.metaKey||e.altKey||e.ctrlKey||(qc=!0)}function Ag(){qc=!1}function Zz(){this.visibilityState==="hidden"&&Eg&&(qc=!0)}function Qz(e){e.addEventListener("keydown",Kz,!0),e.addEventListener("mousedown",Ag,!0),e.addEventListener("pointerdown",Ag,!0),e.addEventListener("touchstart",Ag,!0),e.addEventListener("visibilitychange",Zz,!0)}function Jz(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return qc||Xz(t)}function O$(){const e=K.useCallback(i=>{i!=null&&Qz(i.ownerDocument)},[]),t=K.useRef(!1);function n(){return t.current?(Eg=!0,window.clearTimeout(k$),k$=window.setTimeout(()=>{Eg=!1},100),t.current=!1,!0):!1}function r(i){return Jz(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function C$(e,t){const n=Z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Z({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=Z({},o),Object.keys(i).forEach(a=>{n[r][a]=C$(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function kr(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const P$=e=>e;var E$=(()=>{let e=P$;return{configure(t){e=t},generate(t){return e(t)},reset(){e=P$}}})();const eF={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Yn(e,t,n="Mui"){const r=eF[t];return r?`${n}-${r}`:`${E$.generate(e)}-${t}`}function Gn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Yn(e,i,n)}),r}var Uc="$$material";function Ce(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function A$(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tF=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nF=A$(function(e){return tF.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),rF=!1;function iF(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function oF(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var aF=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!rF:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(oF(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=iF(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),yt="-ms-",Vc="-moz-",$e="-webkit-",N$="comm",Ng="rule",Rg="decl",sF="@import",R$="@keyframes",uF="@layer",lF=Math.abs,Yc=String.fromCharCode,cF=Object.assign;function fF(e,t){return ft(e,0)^45?(((t<<2^ft(e,0))<<2^ft(e,1))<<2^ft(e,2))<<2^ft(e,3):0}function D$(e){return e.trim()}function hF(e,t){return(e=t.exec(e))?e[0]:e}function Se(e,t,n){return e.replace(t,n)}function Dg(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function Gs(e,t,n){return e.slice(t,n)}function Xn(e){return e.length}function Lg(e){return e.length}function Gc(e,t){return t.push(e),e}function dF(e,t){return e.map(t).join("")}var Xc=1,oa=1,L$=0,Gt=0,Ue=0,aa="";function Kc(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Xc,column:oa,length:a,return:""}}function Xs(e,t){return cF(Kc("",null,null,"",null,null,0),e,{length:-e.length},t)}function pF(){return Ue}function gF(){return Ue=Gt>0?ft(aa,--Gt):0,oa--,Ue===10&&(oa=1,Xc--),Ue}function tn(){return Ue=Gt<L$?ft(aa,Gt++):0,oa++,Ue===10&&(oa=1,Xc++),Ue}function Kn(){return ft(aa,Gt)}function Zc(){return Gt}function Ks(e,t){return Gs(aa,e,t)}function Zs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function I$(e){return Xc=oa=1,L$=Xn(aa=e),Gt=0,[]}function z$(e){return aa="",e}function Qc(e){return D$(Ks(Gt-1,Ig(e===91?e+2:e===40?e+1:e)))}function mF(e){for(;(Ue=Kn())&&Ue<33;)tn();return Zs(e)>2||Zs(Ue)>3?"":" "}function yF(e,t){for(;--t&&tn()&&!(Ue<48||Ue>102||Ue>57&&Ue<65||Ue>70&&Ue<97););return Ks(e,Zc()+(t<6&&Kn()==32&&tn()==32))}function Ig(e){for(;tn();)switch(Ue){case e:return Gt;case 34:case 39:e!==34&&e!==39&&Ig(Ue);break;case 40:e===41&&Ig(e);break;case 92:tn();break}return Gt}function vF(e,t){for(;tn()&&e+Ue!==47+10;)if(e+Ue===42+42&&Kn()===47)break;return"/*"+Ks(t,Gt-1)+"*"+Yc(e===47?e:tn())}function bF(e){for(;!Zs(Kn());)tn();return Ks(e,Gt)}function xF(e){return z$(Jc("",null,null,null,[""],e=I$(e),0,[0],e))}function Jc(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,f=a,h=0,d=0,p=0,m=1,g=1,y=1,v=0,x="",b=i,_=o,w=r,$=x;g;)switch(p=v,v=tn()){case 40:if(p!=108&&ft($,f-1)==58){Dg($+=Se(Qc(v),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:$+=Qc(v);break;case 9:case 10:case 13:case 32:$+=mF(p);break;case 92:$+=yF(Zc()-1,7);continue;case 47:switch(Kn()){case 42:case 47:Gc(wF(vF(tn(),Zc()),t,n),u);break;default:$+="/"}break;case 123*m:s[l++]=Xn($)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:y==-1&&($=Se($,/\f/g,"")),d>0&&Xn($)-f&&Gc(d>32?B$($+";",r,n,f-1):B$(Se($," ","")+";",r,n,f-2),u);break;case 59:$+=";";default:if(Gc(w=F$($,t,n,l,c,i,s,x,b=[],_=[],f),o),v===123)if(c===0)Jc($,t,w,w,b,o,f,s,_);else switch(h===99&&ft($,3)===110?100:h){case 100:case 108:case 109:case 115:Jc(e,w,w,r&&Gc(F$(e,w,w,0,0,i,s,x,i,b=[],f),_),i,_,f,s,r?b:_);break;default:Jc($,w,w,w,[""],_,0,s,_)}}l=c=d=0,m=y=1,x=$="",f=a;break;case 58:f=1+Xn($),d=p;default:if(m<1){if(v==123)--m;else if(v==125&&m++==0&&gF()==125)continue}switch($+=Yc(v),v*m){case 38:y=c>0?1:($+="\f",-1);break;case 44:s[l++]=(Xn($)-1)*y,y=1;break;case 64:Kn()===45&&($+=Qc(tn())),h=Kn(),c=f=Xn(x=$+=bF(Zc())),v++;break;case 45:p===45&&Xn($)==2&&(m=0)}}return o}function F$(e,t,n,r,i,o,a,s,u,l,c){for(var f=i-1,h=i===0?o:[""],d=Lg(h),p=0,m=0,g=0;p<r;++p)for(var y=0,v=Gs(e,f+1,f=lF(m=a[p])),x=e;y<d;++y)(x=D$(m>0?h[y]+" "+v:Se(v,/&\f/g,h[y])))&&(u[g++]=x);return Kc(e,t,n,i===0?Ng:s,u,l,c)}function wF(e,t,n){return Kc(e,t,n,N$,Yc(pF()),Gs(e,2,-2),0)}function B$(e,t,n,r){return Kc(e,t,n,Rg,Gs(e,0,r),Gs(e,r+1,-1),r)}function sa(e,t){for(var n="",r=Lg(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function _F(e,t,n,r){switch(e.type){case uF:if(e.children.length)break;case sF:case Rg:return e.return=e.return||e.value;case N$:return"";case R$:return e.return=e.value+"{"+sa(e.children,r)+"}";case Ng:e.value=e.props.join(",")}return Xn(n=sa(e.children,r))?e.return=e.value+"{"+n+"}":""}function $F(e){var t=Lg(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function SF(e){return function(t){t.root||(t=t.return)&&e(t)}}var MF=function(t,n,r){for(var i=0,o=0;i=o,o=Kn(),i===38&&o===12&&(n[r]=1),!Zs(o);)tn();return Ks(t,Gt)},TF=function(t,n){var r=-1,i=44;do switch(Zs(i)){case 0:i===38&&Kn()===12&&(n[r]=1),t[r]+=MF(Gt-1,n,r);break;case 2:t[r]+=Qc(i);break;case 4:if(i===44){t[++r]=Kn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Yc(i)}while(i=tn());return t},kF=function(t,n){return z$(TF(I$(t),n))},j$=new WeakMap,OF=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!j$.get(r))&&!i){j$.set(t,!0);for(var o=[],a=kF(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},CF=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function W$(e,t){switch(fF(e,t)){case 5103:return $e+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return $e+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $e+e+Vc+e+yt+e+e;case 6828:case 4268:return $e+e+yt+e+e;case 6165:return $e+e+yt+"flex-"+e+e;case 5187:return $e+e+Se(e,/(\w+).+(:[^]+)/,$e+"box-$1$2"+yt+"flex-$1$2")+e;case 5443:return $e+e+yt+"flex-item-"+Se(e,/flex-|-self/,"")+e;case 4675:return $e+e+yt+"flex-line-pack"+Se(e,/align-content|flex-|-self/,"")+e;case 5548:return $e+e+yt+Se(e,"shrink","negative")+e;case 5292:return $e+e+yt+Se(e,"basis","preferred-size")+e;case 6060:return $e+"box-"+Se(e,"-grow","")+$e+e+yt+Se(e,"grow","positive")+e;case 4554:return $e+Se(e,/([^-])(transform)/g,"$1"+$e+"$2")+e;case 6187:return Se(Se(Se(e,/(zoom-|grab)/,$e+"$1"),/(image-set)/,$e+"$1"),e,"")+e;case 5495:case 3959:return Se(e,/(image-set\([^]*)/,$e+"$1$`$1");case 4968:return Se(Se(e,/(.+:)(flex-)?(.*)/,$e+"box-pack:$3"+yt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$e+e+e;case 4095:case 3583:case 4068:case 2532:return Se(e,/(.+)-inline(.+)/,$e+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Xn(e)-1-t>6)switch(ft(e,t+1)){case 109:if(ft(e,t+4)!==45)break;case 102:return Se(e,/(.+:)(.+)-([^]+)/,"$1"+$e+"$2-$3$1"+Vc+(ft(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dg(e,"stretch")?W$(Se(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ft(e,t+1)!==115)break;case 6444:switch(ft(e,Xn(e)-3-(~Dg(e,"!important")&&10))){case 107:return Se(e,":",":"+$e)+e;case 101:return Se(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$e+(ft(e,14)===45?"inline-":"")+"box$3$1"+$e+"$2$3$1"+yt+"$2box$3")+e}break;case 5936:switch(ft(e,t+11)){case 114:return $e+e+yt+Se(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $e+e+yt+Se(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $e+e+yt+Se(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $e+e+yt+e+e}return e}var PF=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Rg:t.return=W$(t.value,t.length);break;case R$:return sa([Xs(t,{value:Se(t.value,"@","@"+$e)})],i);case Ng:if(t.length)return dF(t.props,function(o){switch(hF(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sa([Xs(t,{props:[Se(o,/:(read-\w+)/,":"+Vc+"$1")]})],i);case"::placeholder":return sa([Xs(t,{props:[Se(o,/:(plac\w+)/,":"+$e+"input-$1")]}),Xs(t,{props:[Se(o,/:(plac\w+)/,":"+Vc+"$1")]}),Xs(t,{props:[Se(o,/:(plac\w+)/,yt+"input-$1")]})],i)}return""})}},EF=[PF],AF=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||EF,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)o[g[y]]=!0;s.push(m)});var u,l=[OF,CF];{var c,f=[_F,SF(function(m){c.insert(m)})],h=$F(l.concat(i,f)),d=function(g){return sa(xF(g),h)};u=function(g,y,v,x){c=v,d(g?g+"{"+y.styles+"}":y.styles),x&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new aF({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return p.sheet.hydrate(s),p},H$={exports:{}},Te={};/** @license React v16.13.1
14
14
  * react-is.production.min.js
15
15
  *
16
16
  * Copyright (c) Facebook, Inc. and its affiliates.
17
17
  *
18
18
  * This source code is licensed under the MIT license found in the
19
19
  * LICENSE file in the root directory of this source tree.
20
- */var ot=typeof Symbol=="function"&&Symbol.for,rg=ot?Symbol.for("react.element"):60103,ig=ot?Symbol.for("react.portal"):60106,Xc=ot?Symbol.for("react.fragment"):60107,Kc=ot?Symbol.for("react.strict_mode"):60108,Qc=ot?Symbol.for("react.profiler"):60114,Zc=ot?Symbol.for("react.provider"):60109,Jc=ot?Symbol.for("react.context"):60110,og=ot?Symbol.for("react.async_mode"):60111,ef=ot?Symbol.for("react.concurrent_mode"):60111,tf=ot?Symbol.for("react.forward_ref"):60112,nf=ot?Symbol.for("react.suspense"):60113,gI=ot?Symbol.for("react.suspense_list"):60120,rf=ot?Symbol.for("react.memo"):60115,of=ot?Symbol.for("react.lazy"):60116,mI=ot?Symbol.for("react.block"):60121,yI=ot?Symbol.for("react.fundamental"):60117,vI=ot?Symbol.for("react.responder"):60118,bI=ot?Symbol.for("react.scope"):60119;function nn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case rg:switch(e=e.type,e){case og:case ef:case Xc:case Qc:case Kc:case nf:return e;default:switch(e=e&&e.$$typeof,e){case Jc:case tf:case of:case rf:case Zc:return e;default:return t}}case ig:return t}}}function a$(e){return nn(e)===ef}Te.AsyncMode=og,Te.ConcurrentMode=ef,Te.ContextConsumer=Jc,Te.ContextProvider=Zc,Te.Element=rg,Te.ForwardRef=tf,Te.Fragment=Xc,Te.Lazy=of,Te.Memo=rf,Te.Portal=ig,Te.Profiler=Qc,Te.StrictMode=Kc,Te.Suspense=nf,Te.isAsyncMode=function(e){return a$(e)||nn(e)===og},Te.isConcurrentMode=a$,Te.isContextConsumer=function(e){return nn(e)===Jc},Te.isContextProvider=function(e){return nn(e)===Zc},Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===rg},Te.isForwardRef=function(e){return nn(e)===tf},Te.isFragment=function(e){return nn(e)===Xc},Te.isLazy=function(e){return nn(e)===of},Te.isMemo=function(e){return nn(e)===rf},Te.isPortal=function(e){return nn(e)===ig},Te.isProfiler=function(e){return nn(e)===Qc},Te.isStrictMode=function(e){return nn(e)===Kc},Te.isSuspense=function(e){return nn(e)===nf},Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xc||e===ef||e===Qc||e===Kc||e===nf||e===gI||typeof e=="object"&&e!==null&&(e.$$typeof===of||e.$$typeof===rf||e.$$typeof===Zc||e.$$typeof===Jc||e.$$typeof===tf||e.$$typeof===yI||e.$$typeof===vI||e.$$typeof===bI||e.$$typeof===mI)},Te.typeOf=nn,o$.exports=Te;var s$=o$.exports,xI={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},wI={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u$={};u$[s$.ForwardRef]=xI,u$[s$.Memo]=wI;var _I=!0;function $I(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var l$=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||_I===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},SI=function(t,n,r){l$(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function MI(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var TI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},kI=!1,OI=/[A-Z]|^ms/g,CI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c$=function(t){return t.charCodeAt(1)===45},f$=function(t){return t!=null&&typeof t!="boolean"},ag=G_(function(e){return c$(e)?e:e.replace(OI,"-$&").toLowerCase()}),h$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(CI,function(r,i,o){return Kn={name:i,styles:o,next:Kn},i})}return TI[t]!==1&&!c$(t)&&typeof n=="number"&&n!==0?n+"px":n},PI="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Kn={name:i.name,styles:i.styles,next:Kn},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Kn={name:a.name,styles:a.styles,next:Kn},a=a.next;var s=o.styles+";";return s}return EI(e,t,n)}case"function":{if(e!==void 0){var u=Kn,l=n(e);return Kn=u,Vs(e,t,l)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function EI(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Vs(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":f$(s)&&(r+=ag(o)+":"+h$(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&kI)throw new Error(PI);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)f$(a[u])&&(r+=ag(o)+":"+h$(o,a[u])+";");else{var l=Vs(e,t,a);switch(o){case"animation":case"animationName":{r+=ag(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}}return r}var d$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Kn;function p$(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Kn=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Vs(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Vs(n,t,e[s]),r){var u=o;i+=u[s]}d$.lastIndex=0;for(var l="",c;(c=d$.exec(i))!==null;)l+="-"+c[1];var f=MI(i)+l;return{name:f,styles:i,next:Kn}}var AI=function(t){return t()},NI=G["useInsertionEffect"]?G["useInsertionEffect"]:!1,RI=NI||AI,g$=G.createContext(typeof HTMLElement!="undefined"?pI({key:"css"}):null);g$.Provider;var LI=function(t){return q.forwardRef(function(n,r){var i=q.useContext(g$);return t(n,i,r)})},m$=G.createContext({});function DI(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return p$(t)}var sg=function(){var t=DI.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},II=zD,zI=function(t){return t!=="theme"},y$=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?II:zI},v$=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},FI=!1,BI=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return l$(n,r,i),RI(function(){return SI(n,r,i)}),null},jI=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=v$(t,n,r),u=s||y$(i),l=!u("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var h=c.length,d=1;d<h;d++)f.push(c[d],c[0][d])}var p=LI(function(m,g,y){var v=l&&m.as||i,x="",b=[],_=m;if(m.theme==null){_={};for(var w in m)_[w]=m[w];_.theme=G.useContext(m$)}typeof m.className=="string"?x=$I(g.registered,b,m.className):m.className!=null&&(x=m.className+" ");var $=p$(f.concat(b),g.registered,_);x+=g.key+"-"+$.name,a!==void 0&&(x+=" "+a);var M=l&&s===void 0?y$(v):u,k={};for(var S in m)l&&S==="as"||M(S)&&(k[S]=m[S]);return k.className=x,y&&(k.ref=y),G.createElement(G.Fragment,null,G.createElement(BI,{cache:g,serialized:$,isStringTag:typeof v=="string"}),G.createElement(v,k))});return p.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=i,p.__emotion_styles=f,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return a===void 0&&FI?"NO_COMPONENT_SELECTOR":"."+a}}),p.withComponent=function(m,g){return e(m,K({},n,g,{shouldForwardProp:v$(p,g,!0)})).apply(void 0,f)},p}},WI=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ug=jI.bind();WI.forEach(function(e){ug[e]=ug(e)});/**
20
+ */var it=typeof Symbol=="function"&&Symbol.for,zg=it?Symbol.for("react.element"):60103,Fg=it?Symbol.for("react.portal"):60106,ef=it?Symbol.for("react.fragment"):60107,tf=it?Symbol.for("react.strict_mode"):60108,nf=it?Symbol.for("react.profiler"):60114,rf=it?Symbol.for("react.provider"):60109,of=it?Symbol.for("react.context"):60110,Bg=it?Symbol.for("react.async_mode"):60111,af=it?Symbol.for("react.concurrent_mode"):60111,sf=it?Symbol.for("react.forward_ref"):60112,uf=it?Symbol.for("react.suspense"):60113,NF=it?Symbol.for("react.suspense_list"):60120,lf=it?Symbol.for("react.memo"):60115,cf=it?Symbol.for("react.lazy"):60116,RF=it?Symbol.for("react.block"):60121,DF=it?Symbol.for("react.fundamental"):60117,LF=it?Symbol.for("react.responder"):60118,IF=it?Symbol.for("react.scope"):60119;function nn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case zg:switch(e=e.type,e){case Bg:case af:case ef:case nf:case tf:case uf:return e;default:switch(e=e&&e.$$typeof,e){case of:case sf:case cf:case lf:case rf:return e;default:return t}}case Fg:return t}}}function q$(e){return nn(e)===af}Te.AsyncMode=Bg,Te.ConcurrentMode=af,Te.ContextConsumer=of,Te.ContextProvider=rf,Te.Element=zg,Te.ForwardRef=sf,Te.Fragment=ef,Te.Lazy=cf,Te.Memo=lf,Te.Portal=Fg,Te.Profiler=nf,Te.StrictMode=tf,Te.Suspense=uf,Te.isAsyncMode=function(e){return q$(e)||nn(e)===Bg},Te.isConcurrentMode=q$,Te.isContextConsumer=function(e){return nn(e)===of},Te.isContextProvider=function(e){return nn(e)===rf},Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===zg},Te.isForwardRef=function(e){return nn(e)===sf},Te.isFragment=function(e){return nn(e)===ef},Te.isLazy=function(e){return nn(e)===cf},Te.isMemo=function(e){return nn(e)===lf},Te.isPortal=function(e){return nn(e)===Fg},Te.isProfiler=function(e){return nn(e)===nf},Te.isStrictMode=function(e){return nn(e)===tf},Te.isSuspense=function(e){return nn(e)===uf},Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ef||e===af||e===nf||e===tf||e===uf||e===NF||typeof e=="object"&&e!==null&&(e.$$typeof===cf||e.$$typeof===lf||e.$$typeof===rf||e.$$typeof===of||e.$$typeof===sf||e.$$typeof===DF||e.$$typeof===LF||e.$$typeof===IF||e.$$typeof===RF)},Te.typeOf=nn,H$.exports=Te;var U$=H$.exports,zF={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},FF={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},V$={};V$[U$.ForwardRef]=zF,V$[U$.Memo]=FF;var BF=!0;function jF(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Y$=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||BF===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},WF=function(t,n,r){Y$(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function HF(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qF={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},UF=!1,VF=/[A-Z]|^ms/g,YF=/_EMO_([^_]+?)_([^]*?)_EMO_/g,G$=function(t){return t.charCodeAt(1)===45},X$=function(t){return t!=null&&typeof t!="boolean"},jg=A$(function(e){return G$(e)?e:e.replace(VF,"-$&").toLowerCase()}),K$=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(YF,function(r,i,o){return Zn={name:i,styles:o,next:Zn},i})}return qF[t]!==1&&!G$(t)&&typeof n=="number"&&n!==0?n+"px":n},GF="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Qs(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Zn={name:i.name,styles:i.styles,next:Zn},i.name;var o=n;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Zn={name:a.name,styles:a.styles,next:Zn},a=a.next;var s=o.styles+";";return s}return XF(e,t,n)}case"function":{if(e!==void 0){var u=Zn,l=n(e);return Zn=u,Qs(e,t,l)}break}}var c=n;if(t==null)return c;var f=t[c];return f!==void 0?f:c}function XF(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Qs(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?r+=o+"{"+t[s]+"}":X$(s)&&(r+=jg(o)+":"+K$(o,s)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&UF)throw new Error(GF);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)X$(a[u])&&(r+=jg(o)+":"+K$(o,a[u])+";");else{var l=Qs(e,t,a);switch(o){case"animation":case"animationName":{r+=jg(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}}return r}var Z$=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Zn;function Q$(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Zn=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=Qs(n,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qs(n,t,e[s]),r){var u=o;i+=u[s]}Z$.lastIndex=0;for(var l="",c;(c=Z$.exec(i))!==null;)l+="-"+c[1];var f=HF(i)+l;return{name:f,styles:i,next:Zn}}var KF=function(t){return t()},ZF=K["useInsertionEffect"]?K["useInsertionEffect"]:!1,QF=ZF||KF,J$=K.createContext(typeof HTMLElement!="undefined"?AF({key:"css"}):null);J$.Provider;var JF=function(t){return H.forwardRef(function(n,r){var i=H.useContext(J$);return t(n,i,r)})},e5=K.createContext({});function eB(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Q$(t)}var Wg=function(){var t=eB.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},tB=nF,nB=function(t){return t!=="theme"},t5=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?tB:nB},n5=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},rB=!1,iB=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Y$(n,r,i),QF(function(){return WF(n,r,i)}),null},oB=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=n5(t,n,r),u=s||t5(i),l=!u("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&f.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var h=c.length,d=1;d<h;d++)f.push(c[d],c[0][d])}var p=JF(function(m,g,y){var v=l&&m.as||i,x="",b=[],_=m;if(m.theme==null){_={};for(var w in m)_[w]=m[w];_.theme=K.useContext(e5)}typeof m.className=="string"?x=jF(g.registered,b,m.className):m.className!=null&&(x=m.className+" ");var $=Q$(f.concat(b),g.registered,_);x+=g.key+"-"+$.name,a!==void 0&&(x+=" "+a);var T=l&&s===void 0?t5(v):u,k={};for(var S in m)l&&S==="as"||T(S)&&(k[S]=m[S]);return k.className=x,y&&(k.ref=y),K.createElement(K.Fragment,null,K.createElement(iB,{cache:g,serialized:$,isStringTag:typeof v=="string"}),K.createElement(v,k))});return p.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=i,p.__emotion_styles=f,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return a===void 0&&rB?"NO_COMPONENT_SELECTOR":"."+a}}),p.withComponent=function(m,g){return e(m,Z({},n,g,{shouldForwardProp:n5(p,g,!0)})).apply(void 0,f)},p}},aB=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Hg=oB.bind();aB.forEach(function(e){Hg[e]=Hg(e)});/**
21
21
  * @mui/styled-engine v5.13.2
22
22
  *
23
23
  * @license MIT
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */function b$(e,t){return ug(e,t)}const HI=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},qI=["values","unit","step"],UI=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>K({},n,{[r.key]:r.val}),{})};function VI(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ce(e,qI),o=UI(t),a=Object.keys(o);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function u(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function l(h,d){const p=a.indexOf(d);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:d)-r/100}${n})`}function c(h){return a.indexOf(h)+1<a.length?l(h,a[a.indexOf(h)+1]):s(h)}function f(h){const d=a.indexOf(h);return d===0?s(a[1]):d===a.length-1?u(a[d]):l(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return K({keys:a,values:o,up:s,down:u,between:l,only:c,not:f,unit:n},i)}var YI={borderRadius:4};function Ys(e,t){return t?Mr(e,t,{clone:!1}):e}const lg={xs:0,sm:600,md:900,lg:1200,xl:1536},x$={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${lg[e]}px)`};function Or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||x$;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||x$;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||lg).indexOf(s)!==-1){const u=o.up(s);a[u]=n(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return n(t)}function GI(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function XI(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function af(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function sf(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=af(e,n)||r,t&&(i=t(i,r,e)),i}function Me(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,l=af(u,r)||{};return Or(a,s,f=>{let h=sf(l,i,f);return f===h&&typeof f=="string"&&(h=sf(l,i,`${t}${f==="default"?"":Tr(f)}`,f)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function KI(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const QI={m:"margin",p:"padding"},ZI={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w$={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},JI=KI(e=>{if(e.length>2)if(w$[e])e=w$[e];else return[e];const[t,n]=e.split(""),r=QI[t],i=ZI[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),cg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...cg,...fg];function Gs(e,t,n,r){var i;const o=(i=af(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function _$(e){return Gs(e,"spacing",8)}function Xs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function ez(e,t){return n=>e.reduce((r,i)=>(r[i]=Xs(t,n),r),{})}function tz(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=JI(n),o=ez(i,r),a=e[n];return Or(e,a,o)}function $$(e,t){const n=_$(e.theme);return Object.keys(e).map(r=>tz(e,t,r,n)).reduce(Ys,{})}function Ie(e){return $$(e,cg)}Ie.propTypes={},Ie.filterProps=cg;function ze(e){return $$(e,fg)}ze.propTypes={},ze.filterProps=fg;function nz(e=8){if(e.mui)return e;const t=_$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function uf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Ys(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}const rz=Me({prop:"border",themeKey:"borders",transform:Qn}),iz=Me({prop:"borderTop",themeKey:"borders",transform:Qn}),oz=Me({prop:"borderRight",themeKey:"borders",transform:Qn}),az=Me({prop:"borderBottom",themeKey:"borders",transform:Qn}),sz=Me({prop:"borderLeft",themeKey:"borders",transform:Qn}),uz=Me({prop:"borderColor",themeKey:"palette"}),lz=Me({prop:"borderTopColor",themeKey:"palette"}),cz=Me({prop:"borderRightColor",themeKey:"palette"}),fz=Me({prop:"borderBottomColor",themeKey:"palette"}),hz=Me({prop:"borderLeftColor",themeKey:"palette"}),lf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Gs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Xs(t,r)});return Or(e,e.borderRadius,n)}return null};lf.propTypes={},lf.filterProps=["borderRadius"],uf(rz,iz,oz,az,sz,uz,lz,cz,fz,hz,lf);const cf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({gap:Xs(t,r)});return Or(e,e.gap,n)}return null};cf.propTypes={},cf.filterProps=["gap"];const ff=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({columnGap:Xs(t,r)});return Or(e,e.columnGap,n)}return null};ff.propTypes={},ff.filterProps=["columnGap"];const hf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Gs(e.theme,"spacing",8),n=r=>({rowGap:Xs(t,r)});return Or(e,e.rowGap,n)}return null};hf.propTypes={},hf.filterProps=["rowGap"];const dz=Me({prop:"gridColumn"}),pz=Me({prop:"gridRow"}),gz=Me({prop:"gridAutoFlow"}),mz=Me({prop:"gridAutoColumns"}),yz=Me({prop:"gridAutoRows"}),vz=Me({prop:"gridTemplateColumns"}),bz=Me({prop:"gridTemplateRows"}),xz=Me({prop:"gridTemplateAreas"}),wz=Me({prop:"gridArea"});uf(cf,ff,hf,dz,pz,gz,mz,yz,vz,bz,xz,wz);function aa(e,t){return t==="grey"?t:e}const _z=Me({prop:"color",themeKey:"palette",transform:aa}),$z=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:aa}),Sz=Me({prop:"backgroundColor",themeKey:"palette",transform:aa});uf(_z,$z,Sz);function rn(e){return e<=1&&e!==0?`${e*100}%`:e}const Mz=Me({prop:"width",transform:rn}),hg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r;return{maxWidth:((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||lg[n]||rn(n)}};return Or(e,e.maxWidth,t)}return null};hg.filterProps=["maxWidth"];const Tz=Me({prop:"minWidth",transform:rn}),kz=Me({prop:"height",transform:rn}),Oz=Me({prop:"maxHeight",transform:rn}),Cz=Me({prop:"minHeight",transform:rn});Me({prop:"size",cssProperty:"width",transform:rn}),Me({prop:"size",cssProperty:"height",transform:rn});const Pz=Me({prop:"boxSizing"});uf(Mz,hg,Tz,kz,Oz,Cz,Pz);var df={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lf},color:{themeKey:"palette",transform:aa},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:aa},backgroundColor:{themeKey:"palette",transform:aa},p:{style:ze},pt:{style:ze},pr:{style:ze},pb:{style:ze},pl:{style:ze},px:{style:ze},py:{style:ze},padding:{style:ze},paddingTop:{style:ze},paddingRight:{style:ze},paddingBottom:{style:ze},paddingLeft:{style:ze},paddingX:{style:ze},paddingY:{style:ze},paddingInline:{style:ze},paddingInlineStart:{style:ze},paddingInlineEnd:{style:ze},paddingBlock:{style:ze},paddingBlockStart:{style:ze},paddingBlockEnd:{style:ze},m:{style:Ie},mt:{style:Ie},mr:{style:Ie},mb:{style:Ie},ml:{style:Ie},mx:{style:Ie},my:{style:Ie},margin:{style:Ie},marginTop:{style:Ie},marginRight:{style:Ie},marginBottom:{style:Ie},marginLeft:{style:Ie},marginX:{style:Ie},marginY:{style:Ie},marginInline:{style:Ie},marginInlineStart:{style:Ie},marginInlineEnd:{style:Ie},marginBlock:{style:Ie},marginBlockStart:{style:Ie},marginBlockEnd:{style:Ie},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:cf},rowGap:{style:hf},columnGap:{style:ff},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rn},maxWidth:{style:hg},minWidth:{transform:rn},height:{transform:rn},maxHeight:{transform:rn},minHeight:{transform:rn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ez(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Az(e,t){return typeof e=="function"?e(t):e}function Nz(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:u=n,themeKey:l,transform:c,style:f}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const h=af(i,l)||{};return f?f(a):Or(a,r,p=>{let m=sf(h,c,p);return p===m&&typeof p=="string"&&(m=sf(h,c,`${n}${p==="default"?"":Tr(p)}`,p)),u===!1?m:{[u]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:df;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=GI(o.breakpoints),f=Object.keys(c);let h=c;return Object.keys(l).forEach(d=>{const p=Az(l[d],o);if(p!=null)if(typeof p=="object")if(a[d])h=Ys(h,e(d,p,o,a));else{const m=Or({theme:o},p,g=>({[d]:g}));Ez(m,p)?h[d]=t({sx:p,theme:o}):h=Ys(h,m)}else h=Ys(h,e(d,p,o,a))}),XI(f,h)}return Array.isArray(i)?i.map(s):s(i)}return t}const S$=Nz();S$.filterProps=["sx"];var pf=S$;const Rz=["breakpoints","palette","spacing","shape"];function dg(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ce(e,Rz),s=VI(n),u=nz(i);let l=Mr({breakpoints:s,direction:"ltr",components:{},palette:K({mode:"light"},r),spacing:u,shape:K({},YI,o)},a);return l=t.reduce((c,f)=>Mr(c,f),l),l.unstable_sxConfig=K({},df,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return pf({sx:f,theme:this})},l}function Lz(e){return Object.keys(e).length===0}function pg(e=null){const t=G.useContext(m$);return!t||Lz(t)?e:t}const Dz=dg();function gg(e=Dz){return pg(e)}const Iz=["sx"],zz=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:df;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function M$(e){const{sx:t}=e,n=Ce(e,Iz),{systemProps:r,otherProps:i}=zz(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Hi(s)?K({},r,s):r}:o=K({},r,t),K({},i,{sx:o})}function T$(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=T$(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ae(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=T$(e))&&(r&&(r+=" "),r+=t);return r}const Fz=["className","component"];function Bz(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=b$("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(pf);return G.forwardRef(function(u,l){const c=gg(n),f=M$(u),{className:h,component:d="div"}=f,p=Ce(f,Fz);return z(o,K({as:d,ref:l,className:Ae(h,i?i(r):r),theme:t&&c[t]||c},p))})}const jz=["variant"];function k$(e){return e.length===0}function O$(e){const{variant:t}=e,n=Ce(e,jz);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=k$(r)?e[i]:Tr(e[i]):r+=`${k$(r)?i:Tr(i)}${Tr(e[i].toString())}`}),r}const Wz=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Hz(e){return Object.keys(e).length===0}function qz(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Uz=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Vz=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=O$(i.props);r[o]=i.style}),r},Yz=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,a=[],s=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return s&&s.forEach(u=>{let l=!0;Object.keys(u.props).forEach(c=>{o[c]!==u.props[c]&&e[c]!==u.props[c]&&(l=!1)}),l&&a.push(t[O$(u.props)])}),a};function gf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Gz=dg();function Ks({defaultTheme:e,theme:t,themeId:n}){return Hz(t)?e:t[n]||t}function Xz(e={}){const{themeId:t,defaultTheme:n=Gz,rootShouldForwardProp:r=gf,slotShouldForwardProp:i=gf}=e,o=a=>pf(K({},a,{theme:Ks(K({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{HI(a,b=>b.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:h}=s,d=Ce(s,Wz),p=c!==void 0?c:l&&l!=="Root"||!1,m=f||!1;let g,y=gf;l==="Root"?y=r:l?y=i:qz(a)&&(y=void 0);const v=b$(a,K({shouldForwardProp:y,label:g},d)),x=(b,..._)=>{const w=_?_.map(S=>typeof S=="function"&&S.__emotion_real!==S?T=>S(K({},T,{theme:Ks(K({},T,{defaultTheme:n,themeId:t}))})):S):[];let $=b;u&&h&&w.push(S=>{const T=Ks(K({},S,{defaultTheme:n,themeId:t})),A=Uz(u,T);if(A){const P={};return Object.entries(A).forEach(([O,E])=>{P[O]=typeof E=="function"?E(K({},S,{theme:T})):E}),h(S,P)}return null}),u&&!p&&w.push(S=>{const T=Ks(K({},S,{defaultTheme:n,themeId:t}));return Yz(S,Vz(u,T),T,u)}),m||w.push(o);const M=w.length-_.length;if(Array.isArray(b)&&M>0){const S=new Array(M).fill("");$=[...b,...S],$.raw=[...b.raw,...S]}else typeof b=="function"&&b.__emotion_real!==b&&($=S=>b(K({},S,{theme:Ks(K({},S,{defaultTheme:n,themeId:t}))})));const k=v($,...w);return a.muiName&&(k.muiName=a.muiName),k};return v.withConfig&&(x.withConfig=v.withConfig),x}}function C$(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:U_(t.components[n].defaultProps,r)}function Kz({props:e,name:t,defaultTheme:n,themeId:r}){let i=gg(n);return r&&(i=i[r]||i),C$({theme:i,name:t,props:e})}function mg(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Qz(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qi(e){if(e.type)return e;if(e.charAt(0)==="#")return qi(Qz(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ta(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(ta(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function mf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Zz(e){e=qi(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(l,c=(l+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),mf({type:s,values:u})}function P$(e){e=qi(e);let t=e.type==="hsl"||e.type==="hsla"?qi(Zz(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Jz(e,t){const n=P$(e),r=P$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yf(e,t){return e=qi(e),t=mg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,mf(e)}function eF(e,t){if(e=qi(e),t=mg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mf(e)}function tF(e,t){if(e=qi(e),t=mg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mf(e)}function nF(e,t){return K({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const rF=["mode","contrastThreshold","tonalOffset"],E$={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Fs.white,default:Fs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},yg={text:{primary:Fs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Fs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A$(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=tF(e.main,i):t==="dark"&&(e.dark=eF(e.main,o)))}function iF(e="light"){return e==="dark"?{main:Zo[200],light:Zo[50],dark:Zo[400]}:{main:Zo[700],light:Zo[400],dark:Zo[800]}}function oF(e="light"){return e==="dark"?{main:Qo[200],light:Qo[50],dark:Qo[400]}:{main:Qo[500],light:Qo[300],dark:Qo[700]}}function aF(e="light"){return e==="dark"?{main:Ko[500],light:Ko[300],dark:Ko[700]}:{main:Ko[700],light:Ko[400],dark:Ko[800]}}function sF(e="light"){return e==="dark"?{main:Jo[400],light:Jo[300],dark:Jo[700]}:{main:Jo[700],light:Jo[500],dark:Jo[900]}}function uF(e="light"){return e==="dark"?{main:ea[400],light:ea[300],dark:ea[700]}:{main:ea[800],light:ea[500],dark:ea[900]}}function lF(e="light"){return e==="dark"?{main:Bs[400],light:Bs[300],dark:Bs[700]}:{main:"#ed6c02",light:Bs[500],dark:Bs[900]}}function cF(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ce(e,rF),o=e.primary||iF(t),a=e.secondary||oF(t),s=e.error||aF(t),u=e.info||sF(t),l=e.success||uF(t),c=e.warning||lF(t);function f(m){return Jz(m,yg.text.primary)>=n?yg.text.primary:E$.text.primary}const h=({color:m,name:g,mainShade:y=500,lightShade:v=300,darkShade:x=700})=>{if(m=K({},m),!m.main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(ta(11,g?` (${g})`:"",y));if(typeof m.main!="string")throw new Error(ta(12,g?` (${g})`:"",JSON.stringify(m.main)));return A$(m,"light",v,r),A$(m,"dark",x,r),m.contrastText||(m.contrastText=f(m.main)),m},d={dark:yg,light:E$};return Mr(K({common:K({},Fs),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:l,name:"success"}),grey:TD,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},d[t]),i)}const fF=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function hF(e){return Math.round(e*1e5)/1e5}const N$={textTransform:"uppercase"},R$='"Roboto", "Helvetica", "Arial", sans-serif';function dF(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=R$,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=n,h=Ce(n,fF),d=i/14,p=f||(y=>`${y/l*d}rem`),m=(y,v,x,b,_)=>K({fontFamily:r,fontWeight:y,fontSize:p(v),lineHeight:x},r===R$?{letterSpacing:`${hF(b/v)}em`}:{},_,c),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,N$),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,N$),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mr(K({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},g),h,{clone:!1})}const pF=.2,gF=.14,mF=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${pF})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gF})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mF})`].join(",")}var yF=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)];const vF=["duration","easing","delay"],bF={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function L$(e){return`${Math.round(e)}ms`}function wF(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function _F(e){const t=K({},bF,e.easing),n=K({},xF,e.duration);return K({getAutoHeightDuration:wF,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=o;return Ce(o,vF),(Array.isArray(i)?i:[i]).map(l=>`${l} ${typeof a=="string"?a:L$(a)} ${s} ${typeof u=="string"?u:L$(u)}`).join(",")}},e,{easing:t,duration:n})}var $F={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const SF=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function D$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ce(e,SF);if(e.vars)throw new Error(ta(18));const s=cF(r),u=dg(e);let l=Mr(u,{mixins:nF(u.breakpoints,n),palette:s,shadows:yF.slice(),typography:dF(s,o),transitions:_F(i),zIndex:K({},$F)});return l=Mr(l,a),l=t.reduce((c,f)=>Mr(c,f),l),l.unstable_sxConfig=K({},df,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return pf({sx:f,theme:this})},l}var vg=D$();function I$(){const e=gg(vg);return e[Bc]||e}function Zn({props:e,name:t}){return Kz({props:e,name:t,defaultTheme:vg,themeId:Bc})}var Et=Xz({themeId:Bc,defaultTheme:vg,rootShouldForwardProp:e=>gf(e)&&e!=="classes"}),z$=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function MF(e){return typeof e=="string"}function Qs(e,t,n){return e===void 0||MF(e)?t:K({},t,{ownerState:K({},t.ownerState,n)})}const TF={disableDefaultClasses:!1},kF=G.createContext(TF);function OF(e){const{disableDefaultClasses:t}=G.useContext(kF);return n=>t?"":e(n)}function CF(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function PF(e,t,n){return typeof e=="function"?e(t,n):e}function F$(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function EF(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const d=Ae(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),p=K({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=K({},n,i,r);return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const a=CF(K({},i,r)),s=F$(r),u=F$(i),l=t(a),c=Ae(l==null?void 0:l.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=K({},l==null?void 0:l.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=K({},l,n,u,s);return c.length>0&&(h.className=c),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:l.ref}}const AF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function NF(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ce(e,AF),s=o?{}:PF(r,i),{props:u,internalRef:l}=EF(K({},a,{externalSlotProps:s})),c=Qr(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Qs(n,K({},u,{ref:c}),i)}var Vt="top",yn="bottom",vn="right",Yt="left",bg="auto",Zs=[Vt,yn,vn,Yt],sa="start",Js="end",RF="clippingParents",B$="viewport",eu="popper",LF="reference",j$=Zs.reduce(function(e,t){return e.concat([t+"-"+sa,t+"-"+Js])},[]),W$=[].concat(Zs,[bg]).reduce(function(e,t){return e.concat([t,t+"-"+sa,t+"-"+Js])},[]),DF="beforeRead",IF="read",zF="afterRead",FF="beforeMain",BF="main",jF="afterMain",WF="beforeWrite",HF="write",qF="afterWrite",UF=[DF,IF,zF,FF,BF,jF,WF,HF,qF];function Jn(e){return e?(e.nodeName||"").toLowerCase():null}function on(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ui(e){var t=on(e).Element;return e instanceof t||e instanceof Element}function bn(e){var t=on(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function xg(e){if(typeof ShadowRoot=="undefined")return!1;var t=on(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function VF(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!bn(o)||!Jn(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function YF(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(u,l){return u[l]="",u},{});!bn(i)||!Jn(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}var GF={name:"applyStyles",enabled:!0,phase:"write",fn:VF,effect:YF,requires:["computeStyles"]};function er(e){return e.split("-")[0]}var Vi=Math.max,vf=Math.min,ua=Math.round;function wg(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function H$(){return!/^((?!chrome|android).)*safari/i.test(wg())}function la(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&bn(e)&&(i=e.offsetWidth>0&&ua(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ua(r.height)/e.offsetHeight||1);var a=Ui(e)?on(e):window,s=a.visualViewport,u=!H$()&&n,l=(r.left+(u&&s?s.offsetLeft:0))/i,c=(r.top+(u&&s?s.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:c,right:l+f,bottom:c+h,left:l,x:l,y:c}}function _g(e){var t=la(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function q$(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&xg(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cr(e){return on(e).getComputedStyle(e)}function XF(e){return["table","td","th"].indexOf(Jn(e))>=0}function Zr(e){return((Ui(e)?e.ownerDocument:e.document)||window.document).documentElement}function bf(e){return Jn(e)==="html"?e:e.assignedSlot||e.parentNode||(xg(e)?e.host:null)||Zr(e)}function U$(e){return!bn(e)||Cr(e).position==="fixed"?null:e.offsetParent}function KF(e){var t=/firefox/i.test(wg()),n=/Trident/i.test(wg());if(n&&bn(e)){var r=Cr(e);if(r.position==="fixed")return null}var i=bf(e);for(xg(i)&&(i=i.host);bn(i)&&["html","body"].indexOf(Jn(i))<0;){var o=Cr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function tu(e){for(var t=on(e),n=U$(e);n&&XF(n)&&Cr(n).position==="static";)n=U$(n);return n&&(Jn(n)==="html"||Jn(n)==="body"&&Cr(n).position==="static")?t:n||KF(e)||t}function $g(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nu(e,t,n){return Vi(e,vf(t,n))}function QF(e,t,n){var r=nu(e,t,n);return r>n?n:r}function V$(){return{top:0,right:0,bottom:0,left:0}}function Y$(e){return Object.assign({},V$(),e)}function G$(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ZF=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Y$(typeof t!="number"?t:G$(t,Zs))};function JF(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=er(n.placement),u=$g(s),l=[Yt,vn].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!a)){var f=ZF(i.padding,n),h=_g(o),d=u==="y"?Vt:Yt,p=u==="y"?yn:vn,m=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],y=tu(o),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,x=m/2-g/2,b=f[d],_=v-h[c]-f[p],w=v/2-h[c]/2+x,$=nu(b,w,_),M=u;n.modifiersData[r]=(t={},t[M]=$,t.centerOffset=$-w,t)}}function eB(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!q$(t.elements.popper,i)||(t.elements.arrow=i))}var tB={name:"arrow",enabled:!0,phase:"main",fn:JF,effect:eB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ca(e){return e.split("-")[1]}var nB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rB(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ua(n*i)/i||0,y:ua(r*i)/i||0}}function X$(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=a.x,d=h===void 0?0:h,p=a.y,m=p===void 0?0:p,g=typeof c=="function"?c({x:d,y:m}):{x:d,y:m};d=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),x=Yt,b=Vt,_=window;if(l){var w=tu(n),$="clientHeight",M="clientWidth";if(w===on(n)&&(w=Zr(n),Cr(w).position!=="static"&&s==="absolute"&&($="scrollHeight",M="scrollWidth")),w=w,i===Vt||(i===Yt||i===vn)&&o===Js){b=yn;var k=f&&w===_&&_.visualViewport?_.visualViewport.height:w[$];m-=k-r.height,m*=u?1:-1}if(i===Yt||(i===Vt||i===yn)&&o===Js){x=vn;var S=f&&w===_&&_.visualViewport?_.visualViewport.width:w[M];d-=S-r.width,d*=u?1:-1}}var T=Object.assign({position:s},l&&nB),A=c===!0?rB({x:d,y:m},on(n)):{x:d,y:m};if(d=A.x,m=A.y,u){var P;return Object.assign({},T,(P={},P[b]=v?"0":"",P[x]=y?"0":"",P.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",P))}return Object.assign({},T,(t={},t[b]=v?m+"px":"",t[x]=y?d+"px":"",t.transform="",t))}function iB(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,u=s===void 0?!0:s,l={placement:er(t.placement),variation:ca(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,X$(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,X$(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var oB={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:iB,data:{}},xf={passive:!0};function aB(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,u=on(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",n.update,xf)}),s&&u.addEventListener("resize",n.update,xf),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",n.update,xf)}),s&&u.removeEventListener("resize",n.update,xf)}}var sB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:aB,data:{}},uB={left:"right",right:"left",bottom:"top",top:"bottom"};function wf(e){return e.replace(/left|right|bottom|top/g,function(t){return uB[t]})}var lB={start:"end",end:"start"};function K$(e){return e.replace(/start|end/g,function(t){return lB[t]})}function Sg(e){var t=on(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mg(e){return la(Zr(e)).left+Sg(e).scrollLeft}function cB(e,t){var n=on(e),r=Zr(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=H$();(l||!l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+Mg(e),y:u}}function fB(e){var t,n=Zr(e),r=Sg(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Vi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Vi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Mg(e),u=-r.scrollTop;return Cr(i||n).direction==="rtl"&&(s+=Vi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function Tg(e){var t=Cr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Q$(e){return["html","body","#document"].indexOf(Jn(e))>=0?e.ownerDocument.body:bn(e)&&Tg(e)?e:Q$(bf(e))}function ru(e,t){var n;t===void 0&&(t=[]);var r=Q$(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=on(r),a=i?[o].concat(o.visualViewport||[],Tg(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(ru(bf(a)))}function kg(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function hB(e,t){var n=la(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Z$(e,t,n){return t===B$?kg(cB(e,n)):Ui(t)?hB(t,n):kg(fB(Zr(e)))}function dB(e){var t=ru(bf(e)),n=["absolute","fixed"].indexOf(Cr(e).position)>=0,r=n&&bn(e)?tu(e):e;return Ui(r)?t.filter(function(i){return Ui(i)&&q$(i,r)&&Jn(i)!=="body"}):[]}function pB(e,t,n,r){var i=t==="clippingParents"?dB(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(u,l){var c=Z$(e,l,r);return u.top=Vi(c.top,u.top),u.right=vf(c.right,u.right),u.bottom=vf(c.bottom,u.bottom),u.left=Vi(c.left,u.left),u},Z$(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function J$(e){var t=e.reference,n=e.element,r=e.placement,i=r?er(r):null,o=r?ca(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(i){case Vt:u={x:a,y:t.y-n.height};break;case yn:u={x:a,y:t.y+t.height};break;case vn:u={x:t.x+t.width,y:s};break;case Yt:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?$g(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case sa:u[l]=u[l]-(t[c]/2-n[c]/2);break;case Js:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function iu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,u=s===void 0?RF:s,l=n.rootBoundary,c=l===void 0?B$:l,f=n.elementContext,h=f===void 0?eu:f,d=n.altBoundary,p=d===void 0?!1:d,m=n.padding,g=m===void 0?0:m,y=Y$(typeof g!="number"?g:G$(g,Zs)),v=h===eu?LF:eu,x=e.rects.popper,b=e.elements[p?v:h],_=pB(Ui(b)?b:b.contextElement||Zr(e.elements.popper),u,c,a),w=la(e.elements.reference),$=J$({reference:w,element:x,strategy:"absolute",placement:i}),M=kg(Object.assign({},x,$)),k=h===eu?M:w,S={top:_.top-k.top+y.top,bottom:k.bottom-_.bottom+y.bottom,left:_.left-k.left+y.left,right:k.right-_.right+y.right},T=e.modifiersData.offset;if(h===eu&&T){var A=T[i];Object.keys(S).forEach(function(P){var O=[vn,yn].indexOf(P)>=0?1:-1,E=[Vt,yn].indexOf(P)>=0?"y":"x";S[P]+=A[E]*O})}return S}function gB(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?W$:u,c=ca(r),f=c?s?j$:j$.filter(function(p){return ca(p)===c}):Zs,h=f.filter(function(p){return l.indexOf(p)>=0});h.length===0&&(h=f);var d=h.reduce(function(p,m){return p[m]=iu(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[er(m)],p},{});return Object.keys(d).sort(function(p,m){return d[p]-d[m]})}function mB(e){if(er(e)===bg)return[];var t=wf(e);return[K$(e),t,K$(t)]}function yB(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=d===void 0?!0:d,m=n.allowedAutoPlacements,g=t.options.placement,y=er(g),v=y===g,x=u||(v||!p?[wf(g)]:mB(g)),b=[g].concat(x).reduce(function(Q,J){return Q.concat(er(J)===bg?gB(t,{placement:J,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):J)},[]),_=t.rects.reference,w=t.rects.popper,$=new Map,M=!0,k=b[0],S=0;S<b.length;S++){var T=b[S],A=er(T),P=ca(T)===sa,O=[Vt,yn].indexOf(A)>=0,E=O?"width":"height",C=iu(t,{placement:T,boundary:c,rootBoundary:f,altBoundary:h,padding:l}),R=O?P?vn:Yt:P?yn:Vt;_[E]>w[E]&&(R=wf(R));var D=wf(R),L=[];if(o&&L.push(C[A]<=0),s&&L.push(C[R]<=0,C[D]<=0),L.every(function(Q){return Q})){k=T,M=!1;break}$.set(T,L)}if(M)for(var F=p?3:1,W=function(J){var ue=b.find(function(re){var oe=$.get(re);if(oe)return oe.slice(0,J).every(function(I){return I})});if(ue)return k=ue,"break"},U=F;U>0;U--){var te=W(U);if(te==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var vB={name:"flip",enabled:!0,phase:"main",fn:yB,requiresIfExists:["offset"],data:{_skip:!1}};function e5(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function t5(e){return[Vt,vn,yn,Yt].some(function(t){return e[t]>=0})}function bB(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=iu(t,{elementContext:"reference"}),s=iu(t,{altBoundary:!0}),u=e5(a,r),l=e5(s,i,o),c=t5(u),f=t5(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var xB={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:bB};function wB(e,t,n){var r=er(e),i=[Yt,Vt].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Yt,vn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function _B(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=W$.reduce(function(c,f){return c[f]=wB(f,t.rects,o),c},{}),s=a[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}var $B={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:_B};function SB(e){var t=e.state,n=e.name;t.modifiersData[n]=J$({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var MB={name:"popperOffsets",enabled:!0,phase:"read",fn:SB,data:{}};function TB(e){return e==="x"?"y":"x"}function kB(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=h===void 0?!0:h,p=n.tetherOffset,m=p===void 0?0:p,g=iu(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),y=er(t.placement),v=ca(t.placement),x=!v,b=$g(y),_=TB(b),w=t.modifiersData.popperOffsets,$=t.rects.reference,M=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,S=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(!!w){if(o){var P,O=b==="y"?Vt:Yt,E=b==="y"?yn:vn,C=b==="y"?"height":"width",R=w[b],D=R+g[O],L=R-g[E],F=d?-M[C]/2:0,W=v===sa?$[C]:M[C],U=v===sa?-M[C]:-$[C],te=t.elements.arrow,Q=d&&te?_g(te):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:V$(),ue=J[O],re=J[E],oe=nu(0,$[C],Q[C]),I=x?$[C]/2-F-oe-ue-S.mainAxis:W-oe-ue-S.mainAxis,V=x?-$[C]/2+F+oe+re+S.mainAxis:U+oe+re+S.mainAxis,ee=t.elements.arrow&&tu(t.elements.arrow),N=ee?b==="y"?ee.clientTop||0:ee.clientLeft||0:0,Y=(P=T==null?void 0:T[b])!=null?P:0,j=R+I-Y-N,H=R+V-Y,X=nu(d?vf(D,j):D,R,d?Vi(L,H):L);w[b]=X,A[b]=X-R}if(s){var ne,fe=b==="x"?Vt:Yt,He=b==="x"?yn:vn,xe=w[_],St=_==="y"?"height":"width",pt=xe+g[fe],ct=xe-g[He],qe=[Vt,Yt].indexOf(y)!==-1,Ze=(ne=T==null?void 0:T[_])!=null?ne:0,Je=qe?pt:xe-$[St]-M[St]-Ze+S.altAxis,et=qe?xe+$[St]+M[St]-Ze-S.altAxis:ct,Tn=d&&qe?QF(Je,xe,et):nu(d?Je:pt,xe,d?et:ct);w[_]=Tn,A[_]=Tn-xe}t.modifiersData[r]=A}}var OB={name:"preventOverflow",enabled:!0,phase:"main",fn:kB,requiresIfExists:["offset"]};function CB(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function PB(e){return e===on(e)||!bn(e)?Sg(e):CB(e)}function EB(e){var t=e.getBoundingClientRect(),n=ua(t.width)/e.offsetWidth||1,r=ua(t.height)/e.offsetHeight||1;return n!==1||r!==1}function AB(e,t,n){n===void 0&&(n=!1);var r=bn(t),i=bn(t)&&EB(t),o=Zr(t),a=la(e,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((Jn(t)!=="body"||Tg(o))&&(s=PB(t)),bn(t)?(u=la(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Mg(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function NB(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function RB(e){var t=NB(e);return UF.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function LB(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function DB(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var n5={placement:"bottom",modifiers:[],strategy:"absolute"};function r5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function IB(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?n5:i;return function(s,u,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},n5,o),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},f=[],h=!1,d={state:c,setOptions:function(y){var v=typeof y=="function"?y(c.options):y;m(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:Ui(s)?ru(s):s.contextElement?ru(s.contextElement):[],popper:ru(u)};var x=RB(DB([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(b){return b.enabled}),p(),d.update()},forceUpdate:function(){if(!h){var y=c.elements,v=y.reference,x=y.popper;if(!!r5(v,x)){c.rects={reference:AB(v,tu(x),c.options.strategy==="fixed"),popper:_g(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(S){return c.modifiersData[S.name]=Object.assign({},S.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var _=c.orderedModifiers[b],w=_.fn,$=_.options,M=$===void 0?{}:$,k=_.name;typeof w=="function"&&(c=w({state:c,options:M,name:k,instance:d})||c)}}}},update:LB(function(){return new Promise(function(g){d.forceUpdate(),g(c)})}),destroy:function(){m(),h=!0}};if(!r5(s,u))return d;d.setOptions(l).then(function(g){!h&&l.onFirstUpdate&&l.onFirstUpdate(g)});function p(){c.orderedModifiers.forEach(function(g){var y=g.name,v=g.options,x=v===void 0?{}:v,b=g.effect;if(typeof b=="function"){var _=b({state:c,name:y,instance:d,options:x}),w=function(){};f.push(_||w)}})}function m(){f.forEach(function(g){return g()}),f=[]}return d}}var zB=[sB,MB,oB,GF,$B,vB,OB,tB,xB],FB=IB({defaultModifiers:zB});function BB(e){return typeof e=="function"?e():e}var jB=G.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=G.useState(null),u=Qr(G.isValidElement(r)?r.ref:null,n);if(na(()=>{o||s(BB(i)||document.body)},[i,o]),na(()=>{if(a&&!o)return Xp(n,a),()=>{Xp(n,null)}},[n,a,o]),o){if(G.isValidElement(r)){const l={ref:u};return G.cloneElement(r,l)}return z(G.Fragment,{children:r})}return z(G.Fragment,{children:a&&pO.createPortal(r,a)})});function WB(e){return Vn("MuiPopper",e)}Yn("MuiPopper",["root"]);const HB=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],qB=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function UB(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function Og(e){return typeof e=="function"?e():e}function VB(e){return e.nodeType!==void 0}const YB=()=>kr({root:["root"]},OF(WB)),GB={},XB=G.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:h,slotProps:d={},slots:p={},TransitionProps:m}=t,g=Ce(t,HB),y=G.useRef(null),v=Qr(y,n),x=G.useRef(null),b=Qr(x,h),_=G.useRef(b);na(()=>{_.current=b},[b]),G.useImperativeHandle(h,()=>x.current,[]);const w=UB(c,a),[$,M]=G.useState(w),[k,S]=G.useState(Og(i));G.useEffect(()=>{x.current&&x.current.forceUpdate()}),G.useEffect(()=>{i&&S(Og(i))},[i]),na(()=>{if(!k||!l)return;const E=D=>{M(D.placement)};let C=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{E(D)}}];u!=null&&(C=C.concat(u)),f&&f.modifiers!=null&&(C=C.concat(f.modifiers));const R=FB(k,y.current,K({placement:w},f,{modifiers:C}));return _.current(R),()=>{R.destroy(),_.current(null)}},[k,s,u,l,f,w]);const T={placement:$};m!==null&&(T.TransitionProps=m);const A=YB(),P=(r=p.root)!=null?r:"div",O=NF({elementType:P,externalSlotProps:d.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:A.root});return z(P,K({},O,{children:typeof o=="function"?o(T):o}))});var KB=G.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:h=GB,popperRef:d,style:p,transition:m=!1,slotProps:g={},slots:y={}}=t,v=Ce(t,qB),[x,b]=G.useState(!0),_=()=>{b(!1)},w=()=>{b(!0)};if(!u&&!c&&(!m||x))return null;let $;if(o)$=o;else if(r){const S=Og(r);$=S&&VB(S)?B_(S).body:B_(null).body}const M=!c&&u&&(!m||x)?"none":void 0,k=m?{in:c,onEnter:_,onExited:w}:void 0;return z(jB,{disablePortal:s,container:$,children:z(XB,K({anchorEl:r,direction:a,disablePortal:s,modifiers:l,ref:n,open:m?!x:c,placement:f,popperOptions:h,popperRef:d,slotProps:g,slots:y},v,{style:K({position:"fixed",top:0,left:0,display:M},p),TransitionProps:k,children:i}))})});function Cg(e,t){return Cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cg(e,t)}function i5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Cg(e,t)}var o5={disabled:!1},_f=Z.default.createContext(null),QB=function(t){return t.scrollTop},ou="unmounted",Yi="exited",Gi="entering",fa="entered",Pg="exiting",Pr=function(e){i5(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,u;return o.appearStatus=null,r.in?s?(u=Yi,o.appearStatus=Gi):u=fa:r.unmountOnExit||r.mountOnEnter?u=ou:u=Yi,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===ou?{status:Yi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Gi&&a!==fa&&(o=Gi):(a===Gi||a===fa)&&(o=Pg)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Gi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Po.default.findDOMNode(this);a&&QB(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yi&&this.setState({status:ou})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,u=this.props.nodeRef?[s]:[Po.default.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!a||o5.disabled){this.safeSetState({status:fa},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Gi},function(){o.props.onEntering(l,c),o.onTransitionEnd(h,function(){o.safeSetState({status:fa},function(){o.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Po.default.findDOMNode(this);if(!o||o5.disabled){this.safeSetState({status:Yi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Pg},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Yi},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Po.default.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ou)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ce(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Z.default.createElement(_f.Provider,{value:null},typeof a=="function"?a(i,s):Z.default.cloneElement(Z.default.Children.only(a),s))},t}(Z.default.Component);Pr.contextType=_f,Pr.propTypes={};function ha(){}Pr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ha,onEntering:ha,onEntered:ha,onExit:ha,onExiting:ha,onExited:ha},Pr.UNMOUNTED=ou,Pr.EXITED=Yi,Pr.ENTERING=Gi,Pr.ENTERED=fa,Pr.EXITING=Pg;var ZB=Pr;function JB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Eg(e,t){var n=function(o){return t&&q.isValidElement(o)?t(o):o},r=Object.create(null);return e&&q.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function ej(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function Xi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function tj(e,t){return Eg(e.children,function(n){return q.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Xi(n,"appear",e),enter:Xi(n,"enter",e),exit:Xi(n,"exit",e)})})}function nj(e,t,n){var r=Eg(e.children),i=ej(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(!!q.isValidElement(a)){var s=o in t,u=o in r,l=t[o],c=q.isValidElement(l)&&!l.props.in;u&&(!s||c)?i[o]=q.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Xi(a,"exit",e),enter:Xi(a,"enter",e)}):!u&&s&&!c?i[o]=q.cloneElement(a,{in:!1}):u&&s&&q.isValidElement(l)&&(i[o]=q.cloneElement(a,{onExited:n.bind(null,a),in:l.props.in,exit:Xi(a,"exit",e),enter:Xi(a,"enter",e)}))}}),i}var rj=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ij={component:"div",childFactory:function(t){return t}},Ag=function(e){i5(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(JB(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,u=o.firstRender;return{children:u?tj(i,s):nj(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=Eg(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var u=K({},s.children);return delete u[i.key],{children:u}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=Ce(i,["component","childFactory"]),u=this.state.contextValue,l=rj(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?Z.default.createElement(_f.Provider,{value:u},l):Z.default.createElement(_f.Provider,{value:u},Z.default.createElement(o,s,l))},t}(Z.default.Component);Ag.propTypes={},Ag.defaultProps=ij;var oj=Ag;const aj=e=>e.scrollTop;function a5(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function sj(e){return Vn("MuiPaper",e)}Yn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const uj=["className","component","elevation","square","variant"],lj=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return kr(o,sj,i)},cj=Et("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return K({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&K({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yf("#fff",z$(t.elevation))}, ${yf("#fff",z$(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))});var fj=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:u="elevation"}=r,l=Ce(r,uj),c=K({},r,{component:o,elevation:a,square:s,variant:u}),f=lj(c);return z(cj,K({as:o,ownerState:c,className:Ae(f.root,i),ref:n},l))});function hj(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:u,timeout:l}=e,[c,f]=G.useState(!1),h=Ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),d={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},p=Ae(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),G.useEffect(()=>{if(!s&&u!=null){const m=setTimeout(u,l);return()=>{clearTimeout(m)}}},[u,s,l]),z("span",{className:h,style:d,children:z("span",{className:p})})}var xn=Yn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const dj=["center","classes","className"];let $f=e=>e,s5,u5,l5,c5;const Ng=550,pj=80,gj=sg(s5||(s5=$f`
26
+ */function r5(e,t){return Hg(e,t)}const sB=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},uB=["values","unit","step"],lB=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Z({},n,{[r.key]:r.val}),{})};function cB(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ce(e,uB),o=lB(t),a=Object.keys(o);function s(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function u(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function l(h,d){const p=a.indexOf(d);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(p!==-1&&typeof t[a[p]]=="number"?t[a[p]]:d)-r/100}${n})`}function c(h){return a.indexOf(h)+1<a.length?l(h,a[a.indexOf(h)+1]):s(h)}function f(h){const d=a.indexOf(h);return d===0?s(a[1]):d===a.length-1?u(a[d]):l(h,a[a.indexOf(h)+1]).replace("@media","@media not all and")}return Z({keys:a,values:o,up:s,down:u,between:l,only:c,not:f,unit:n},i)}var fB={borderRadius:4};function Js(e,t){return t?Mr(e,t,{clone:!1}):e}const qg={xs:0,sm:600,md:900,lg:1200,xl:1536},i5={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${qg[e]}px)`};function Or(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||i5;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||i5;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||qg).indexOf(s)!==-1){const u=o.up(s);a[u]=n(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return n(t)}function hB(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function dB(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ff(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function hf(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ff(e,n)||r,t&&(i=t(i,r,e)),i}function Me(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],u=a.theme,l=ff(u,r)||{};return Or(a,s,f=>{let h=hf(l,i,f);return f===h&&typeof f=="string"&&(h=hf(l,i,`${t}${f==="default"?"":Tr(f)}`,f)),n===!1?h:{[n]:h}})};return o.propTypes={},o.filterProps=[t],o}function pB(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gB={m:"margin",p:"padding"},mB={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},o5={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yB=pB(e=>{if(e.length>2)if(o5[e])e=o5[e];else return[e];const[t,n]=e.split(""),r=gB[t],i=mB[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Ug=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ug,...Vg];function eu(e,t,n,r){var i;const o=(i=ff(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function a5(e){return eu(e,"spacing",8)}function tu(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vB(e,t){return n=>e.reduce((r,i)=>(r[i]=tu(t,n),r),{})}function bB(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=yB(n),o=vB(i,r),a=e[n];return Or(e,a,o)}function s5(e,t){const n=a5(e.theme);return Object.keys(e).map(r=>bB(e,t,r,n)).reduce(Js,{})}function Ie(e){return s5(e,Ug)}Ie.propTypes={},Ie.filterProps=Ug;function ze(e){return s5(e,Vg)}ze.propTypes={},ze.filterProps=Vg;function xB(e=8){if(e.mui)return e;const t=a5({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function df(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Js(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}const wB=Me({prop:"border",themeKey:"borders",transform:Qn}),_B=Me({prop:"borderTop",themeKey:"borders",transform:Qn}),$B=Me({prop:"borderRight",themeKey:"borders",transform:Qn}),SB=Me({prop:"borderBottom",themeKey:"borders",transform:Qn}),MB=Me({prop:"borderLeft",themeKey:"borders",transform:Qn}),TB=Me({prop:"borderColor",themeKey:"palette"}),kB=Me({prop:"borderTopColor",themeKey:"palette"}),OB=Me({prop:"borderRightColor",themeKey:"palette"}),CB=Me({prop:"borderBottomColor",themeKey:"palette"}),PB=Me({prop:"borderLeftColor",themeKey:"palette"}),pf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=eu(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tu(t,r)});return Or(e,e.borderRadius,n)}return null};pf.propTypes={},pf.filterProps=["borderRadius"],df(wB,_B,$B,SB,MB,TB,kB,OB,CB,PB,pf);const gf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=eu(e.theme,"spacing",8),n=r=>({gap:tu(t,r)});return Or(e,e.gap,n)}return null};gf.propTypes={},gf.filterProps=["gap"];const mf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=eu(e.theme,"spacing",8),n=r=>({columnGap:tu(t,r)});return Or(e,e.columnGap,n)}return null};mf.propTypes={},mf.filterProps=["columnGap"];const yf=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=eu(e.theme,"spacing",8),n=r=>({rowGap:tu(t,r)});return Or(e,e.rowGap,n)}return null};yf.propTypes={},yf.filterProps=["rowGap"];const EB=Me({prop:"gridColumn"}),AB=Me({prop:"gridRow"}),NB=Me({prop:"gridAutoFlow"}),RB=Me({prop:"gridAutoColumns"}),DB=Me({prop:"gridAutoRows"}),LB=Me({prop:"gridTemplateColumns"}),IB=Me({prop:"gridTemplateRows"}),zB=Me({prop:"gridTemplateAreas"}),FB=Me({prop:"gridArea"});df(gf,mf,yf,EB,AB,NB,RB,DB,LB,IB,zB,FB);function ua(e,t){return t==="grey"?t:e}const BB=Me({prop:"color",themeKey:"palette",transform:ua}),jB=Me({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ua}),WB=Me({prop:"backgroundColor",themeKey:"palette",transform:ua});df(BB,jB,WB);function rn(e){return e<=1&&e!==0?`${e*100}%`:e}const HB=Me({prop:"width",transform:rn}),Yg=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r;return{maxWidth:((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||qg[n]||rn(n)}};return Or(e,e.maxWidth,t)}return null};Yg.filterProps=["maxWidth"];const qB=Me({prop:"minWidth",transform:rn}),UB=Me({prop:"height",transform:rn}),VB=Me({prop:"maxHeight",transform:rn}),YB=Me({prop:"minHeight",transform:rn});Me({prop:"size",cssProperty:"width",transform:rn}),Me({prop:"size",cssProperty:"height",transform:rn});const GB=Me({prop:"boxSizing"});df(HB,Yg,qB,UB,VB,YB,GB);var vf={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:pf},color:{themeKey:"palette",transform:ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ua},backgroundColor:{themeKey:"palette",transform:ua},p:{style:ze},pt:{style:ze},pr:{style:ze},pb:{style:ze},pl:{style:ze},px:{style:ze},py:{style:ze},padding:{style:ze},paddingTop:{style:ze},paddingRight:{style:ze},paddingBottom:{style:ze},paddingLeft:{style:ze},paddingX:{style:ze},paddingY:{style:ze},paddingInline:{style:ze},paddingInlineStart:{style:ze},paddingInlineEnd:{style:ze},paddingBlock:{style:ze},paddingBlockStart:{style:ze},paddingBlockEnd:{style:ze},m:{style:Ie},mt:{style:Ie},mr:{style:Ie},mb:{style:Ie},ml:{style:Ie},mx:{style:Ie},my:{style:Ie},margin:{style:Ie},marginTop:{style:Ie},marginRight:{style:Ie},marginBottom:{style:Ie},marginLeft:{style:Ie},marginX:{style:Ie},marginY:{style:Ie},marginInline:{style:Ie},marginInlineStart:{style:Ie},marginInlineEnd:{style:Ie},marginBlock:{style:Ie},marginBlockStart:{style:Ie},marginBlockEnd:{style:Ie},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gf},rowGap:{style:yf},columnGap:{style:mf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:rn},maxWidth:{style:Yg},minWidth:{transform:rn},height:{transform:rn},maxHeight:{transform:rn},minHeight:{transform:rn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function XB(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function KB(e,t){return typeof e=="function"?e(t):e}function ZB(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:u=n,themeKey:l,transform:c,style:f}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const h=ff(i,l)||{};return f?f(a):Or(a,r,p=>{let m=hf(h,c,p);return p===m&&typeof p=="string"&&(m=hf(h,c,`${n}${p==="default"?"":Tr(p)}`,p)),u===!1?m:{[u]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:vf;function s(u){let l=u;if(typeof u=="function")l=u(o);else if(typeof u!="object")return u;if(!l)return null;const c=hB(o.breakpoints),f=Object.keys(c);let h=c;return Object.keys(l).forEach(d=>{const p=KB(l[d],o);if(p!=null)if(typeof p=="object")if(a[d])h=Js(h,e(d,p,o,a));else{const m=Or({theme:o},p,g=>({[d]:g}));XB(m,p)?h[d]=t({sx:p,theme:o}):h=Js(h,m)}else h=Js(h,e(d,p,o,a))}),dB(f,h)}return Array.isArray(i)?i.map(s):s(i)}return t}const u5=ZB();u5.filterProps=["sx"];var bf=u5;const QB=["breakpoints","palette","spacing","shape"];function Gg(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Ce(e,QB),s=cB(n),u=xB(i);let l=Mr({breakpoints:s,direction:"ltr",components:{},palette:Z({mode:"light"},r),spacing:u,shape:Z({},fB,o)},a);return l=t.reduce((c,f)=>Mr(c,f),l),l.unstable_sxConfig=Z({},vf,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return bf({sx:f,theme:this})},l}function JB(e){return Object.keys(e).length===0}function l5(e=null){const t=K.useContext(e5);return!t||JB(t)?e:t}const ej=Gg();function Xg(e=ej){return l5(e)}const tj=["sx"],nj=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:vf;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function c5(e){const{sx:t}=e,n=Ce(e,tj),{systemProps:r,otherProps:i}=nj(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Hi(s)?Z({},r,s):r}:o=Z({},r,t),Z({},i,{sx:o})}function f5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=f5(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ae(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=f5(e))&&(r&&(r+=" "),r+=t);return r}const rj=["className","component"];function ij(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=r5("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(bf);return K.forwardRef(function(u,l){const c=Xg(n),f=c5(u),{className:h,component:d="div"}=f,p=Ce(f,rj);return z(o,Z({as:d,ref:l,className:Ae(h,i?i(r):r),theme:t&&c[t]||c},p))})}const oj=["variant"];function h5(e){return e.length===0}function d5(e){const{variant:t}=e,n=Ce(e,oj);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=h5(r)?e[i]:Tr(e[i]):r+=`${h5(r)?i:Tr(i)}${Tr(e[i].toString())}`}),r}const aj=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function sj(e){return Object.keys(e).length===0}function uj(e){return typeof e=="string"&&e.charCodeAt(0)>96}const lj=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,cj=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=d5(i.props);r[o]=i.style}),r},fj=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,a=[],s=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return s&&s.forEach(u=>{let l=!0;Object.keys(u.props).forEach(c=>{o[c]!==u.props[c]&&e[c]!==u.props[c]&&(l=!1)}),l&&a.push(t[d5(u.props)])}),a};function xf(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hj=Gg();function nu({defaultTheme:e,theme:t,themeId:n}){return sj(t)?e:t[n]||t}function dj(e={}){const{themeId:t,defaultTheme:n=hj,rootShouldForwardProp:r=xf,slotShouldForwardProp:i=xf}=e,o=a=>bf(Z({},a,{theme:nu(Z({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{sB(a,b=>b.filter(_=>!(_!=null&&_.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:f,overridesResolver:h}=s,d=Ce(s,aj),p=c!==void 0?c:l&&l!=="Root"||!1,m=f||!1;let g,y=xf;l==="Root"?y=r:l?y=i:uj(a)&&(y=void 0);const v=r5(a,Z({shouldForwardProp:y,label:g},d)),x=(b,..._)=>{const w=_?_.map(S=>typeof S=="function"&&S.__emotion_real!==S?M=>S(Z({},M,{theme:nu(Z({},M,{defaultTheme:n,themeId:t}))})):S):[];let $=b;u&&h&&w.push(S=>{const M=nu(Z({},S,{defaultTheme:n,themeId:t})),A=lj(u,M);if(A){const E={};return Object.entries(A).forEach(([O,P])=>{E[O]=typeof P=="function"?P(Z({},S,{theme:M})):P}),h(S,E)}return null}),u&&!p&&w.push(S=>{const M=nu(Z({},S,{defaultTheme:n,themeId:t}));return fj(S,cj(u,M),M,u)}),m||w.push(o);const T=w.length-_.length;if(Array.isArray(b)&&T>0){const S=new Array(T).fill("");$=[...b,...S],$.raw=[...b.raw,...S]}else typeof b=="function"&&b.__emotion_real!==b&&($=S=>b(Z({},S,{theme:nu(Z({},S,{defaultTheme:n,themeId:t}))})));const k=v($,...w);return a.muiName&&(k.muiName=a.muiName),k};return v.withConfig&&(x.withConfig=v.withConfig),x}}function pj(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:C$(t.components[n].defaultProps,r)}function gj({props:e,name:t,defaultTheme:n,themeId:r}){let i=Xg(n);return r&&(i=i[r]||i),pj({theme:i,name:t,props:e})}function Kg(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function mj(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qi(e){if(e.type)return e;if(e.charAt(0)==="#")return qi(mj(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ia(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(ia(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function wf(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function yj(e){e=qi(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(l,c=(l+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),wf({type:s,values:u})}function p5(e){e=qi(e);let t=e.type==="hsl"||e.type==="hsla"?qi(yj(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vj(e,t){const n=p5(e),r=p5(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _f(e,t){return e=qi(e),t=Kg(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,wf(e)}function bj(e,t){if(e=qi(e),t=Kg(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return wf(e)}function xj(e,t){if(e=qi(e),t=Kg(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return wf(e)}function wj(e,t){return Z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const _j=["mode","contrastThreshold","tonalOffset"],g5={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:qs.white,default:qs.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Zg={text:{primary:qs.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:qs.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m5(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=xj(e.main,i):t==="dark"&&(e.dark=bj(e.main,o)))}function $j(e="light"){return e==="dark"?{main:ta[200],light:ta[50],dark:ta[400]}:{main:ta[700],light:ta[400],dark:ta[800]}}function Sj(e="light"){return e==="dark"?{main:ea[200],light:ea[50],dark:ea[400]}:{main:ea[500],light:ea[300],dark:ea[700]}}function Mj(e="light"){return e==="dark"?{main:Jo[500],light:Jo[300],dark:Jo[700]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function Tj(e="light"){return e==="dark"?{main:na[400],light:na[300],dark:na[700]}:{main:na[700],light:na[500],dark:na[900]}}function kj(e="light"){return e==="dark"?{main:ra[400],light:ra[300],dark:ra[700]}:{main:ra[800],light:ra[500],dark:ra[900]}}function Oj(e="light"){return e==="dark"?{main:Us[400],light:Us[300],dark:Us[700]}:{main:"#ed6c02",light:Us[500],dark:Us[900]}}function Cj(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ce(e,_j),o=e.primary||$j(t),a=e.secondary||Sj(t),s=e.error||Mj(t),u=e.info||Tj(t),l=e.success||kj(t),c=e.warning||Oj(t);function f(m){return vj(m,Zg.text.primary)>=n?Zg.text.primary:g5.text.primary}const h=({color:m,name:g,mainShade:y=500,lightShade:v=300,darkShade:x=700})=>{if(m=Z({},m),!m.main&&m[y]&&(m.main=m[y]),!m.hasOwnProperty("main"))throw new Error(ia(11,g?` (${g})`:"",y));if(typeof m.main!="string")throw new Error(ia(12,g?` (${g})`:"",JSON.stringify(m.main)));return m5(m,"light",v,r),m5(m,"dark",x,r),m.contrastText||(m.contrastText=f(m.main)),m},d={dark:Zg,light:g5};return Mr(Z({common:Z({},qs),mode:t,primary:h({color:o,name:"primary"}),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:s,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:u,name:"info"}),success:h({color:l,name:"success"}),grey:qz,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},d[t]),i)}const Pj=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ej(e){return Math.round(e*1e5)/1e5}const y5={textTransform:"uppercase"},v5='"Roboto", "Helvetica", "Arial", sans-serif';function Aj(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=v5,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:f}=n,h=Ce(n,Pj),d=i/14,p=f||(y=>`${y/l*d}rem`),m=(y,v,x,b,_)=>Z({fontFamily:r,fontWeight:y,fontSize:p(v),lineHeight:x},r===v5?{letterSpacing:`${Ej(b/v)}em`}:{},_,c),g={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,y5),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,y5),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Mr(Z({htmlFontSize:l,pxToRem:p,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},g),h,{clone:!1})}const Nj=.2,Rj=.14,Dj=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Nj})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Rj})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Dj})`].join(",")}var Lj=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)];const Ij=["duration","easing","delay"],zj={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Fj={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function b5(e){return`${Math.round(e)}ms`}function Bj(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function jj(e){const t=Z({},zj,e.easing),n=Z({},Fj,e.duration);return Z({getAutoHeightDuration:Bj,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=o;return Ce(o,Ij),(Array.isArray(i)?i:[i]).map(l=>`${l} ${typeof a=="string"?a:b5(a)} ${s} ${typeof u=="string"?u:b5(u)}`).join(",")}},e,{easing:t,duration:n})}var Wj={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Hj=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function x5(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Ce(e,Hj);if(e.vars)throw new Error(ia(18));const s=Cj(r),u=Gg(e);let l=Mr(u,{mixins:wj(u.breakpoints,n),palette:s,shadows:Lj.slice(),typography:Aj(s,o),transitions:jj(i),zIndex:Z({},Wj)});return l=Mr(l,a),l=t.reduce((c,f)=>Mr(c,f),l),l.unstable_sxConfig=Z({},vf,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(f){return bf({sx:f,theme:this})},l}var Qg=x5();function w5(){const e=Xg(Qg);return e[Uc]||e}function Jn({props:e,name:t}){return gj({props:e,name:t,defaultTheme:Qg,themeId:Uc})}var Et=dj({themeId:Uc,defaultTheme:Qg,rootShouldForwardProp:e=>xf(e)&&e!=="classes"}),_5=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qj(e){return typeof e=="string"}function ru(e,t,n){return e===void 0||qj(e)?t:Z({},t,{ownerState:Z({},t.ownerState,n)})}const Uj={disableDefaultClasses:!1},Vj=K.createContext(Uj);function Yj(e){const{disableDefaultClasses:t}=K.useContext(Vj);return n=>t?"":e(n)}function Gj(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Xj(e,t,n){return typeof e=="function"?e(t,n):e}function $5(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Kj(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const d=Ae(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),p=Z({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),m=Z({},n,i,r);return d.length>0&&(m.className=d),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const a=Gj(Z({},i,r)),s=$5(r),u=$5(i),l=t(a),c=Ae(l==null?void 0:l.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),f=Z({},l==null?void 0:l.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=Z({},l,n,u,s);return c.length>0&&(h.className=c),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:l.ref}}const Zj=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Qj(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Ce(e,Zj),s=o?{}:Xj(r,i),{props:u,internalRef:l}=Kj(Z({},a,{externalSlotProps:s})),c=ti(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ru(n,Z({},u,{ref:c}),i)}var Xt="top",yn="bottom",vn="right",Kt="left",Jg="auto",iu=[Xt,yn,vn,Kt],la="start",ou="end",Jj="clippingParents",S5="viewport",au="popper",eW="reference",M5=iu.reduce(function(e,t){return e.concat([t+"-"+la,t+"-"+ou])},[]),T5=[].concat(iu,[Jg]).reduce(function(e,t){return e.concat([t,t+"-"+la,t+"-"+ou])},[]),tW="beforeRead",nW="read",rW="afterRead",iW="beforeMain",oW="main",aW="afterMain",sW="beforeWrite",uW="write",lW="afterWrite",cW=[tW,nW,rW,iW,oW,aW,sW,uW,lW];function er(e){return e?(e.nodeName||"").toLowerCase():null}function on(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ui(e){var t=on(e).Element;return e instanceof t||e instanceof Element}function bn(e){var t=on(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function em(e){if(typeof ShadowRoot=="undefined")return!1;var t=on(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fW(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!bn(o)||!er(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function hW(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(u,l){return u[l]="",u},{});!bn(i)||!er(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(u){i.removeAttribute(u)}))})}}var dW={name:"applyStyles",enabled:!0,phase:"write",fn:fW,effect:hW,requires:["computeStyles"]};function tr(e){return e.split("-")[0]}var Vi=Math.max,$f=Math.min,ca=Math.round;function tm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function k5(){return!/^((?!chrome|android).)*safari/i.test(tm())}function fa(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&bn(e)&&(i=e.offsetWidth>0&&ca(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ca(r.height)/e.offsetHeight||1);var a=Ui(e)?on(e):window,s=a.visualViewport,u=!k5()&&n,l=(r.left+(u&&s?s.offsetLeft:0))/i,c=(r.top+(u&&s?s.offsetTop:0))/o,f=r.width/i,h=r.height/o;return{width:f,height:h,top:c,right:l+f,bottom:c+h,left:l,x:l,y:c}}function nm(e){var t=fa(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function O5(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&em(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Cr(e){return on(e).getComputedStyle(e)}function pW(e){return["table","td","th"].indexOf(er(e))>=0}function ni(e){return((Ui(e)?e.ownerDocument:e.document)||window.document).documentElement}function Sf(e){return er(e)==="html"?e:e.assignedSlot||e.parentNode||(em(e)?e.host:null)||ni(e)}function C5(e){return!bn(e)||Cr(e).position==="fixed"?null:e.offsetParent}function gW(e){var t=/firefox/i.test(tm()),n=/Trident/i.test(tm());if(n&&bn(e)){var r=Cr(e);if(r.position==="fixed")return null}var i=Sf(e);for(em(i)&&(i=i.host);bn(i)&&["html","body"].indexOf(er(i))<0;){var o=Cr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function su(e){for(var t=on(e),n=C5(e);n&&pW(n)&&Cr(n).position==="static";)n=C5(n);return n&&(er(n)==="html"||er(n)==="body"&&Cr(n).position==="static")?t:n||gW(e)||t}function rm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function uu(e,t,n){return Vi(e,$f(t,n))}function mW(e,t,n){var r=uu(e,t,n);return r>n?n:r}function P5(){return{top:0,right:0,bottom:0,left:0}}function E5(e){return Object.assign({},P5(),e)}function A5(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var yW=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,E5(typeof t!="number"?t:A5(t,iu))};function vW(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=tr(n.placement),u=rm(s),l=[Kt,vn].indexOf(s)>=0,c=l?"height":"width";if(!(!o||!a)){var f=yW(i.padding,n),h=nm(o),d=u==="y"?Xt:Kt,p=u==="y"?yn:vn,m=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],g=a[u]-n.rects.reference[u],y=su(o),v=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,x=m/2-g/2,b=f[d],_=v-h[c]-f[p],w=v/2-h[c]/2+x,$=uu(b,w,_),T=u;n.modifiersData[r]=(t={},t[T]=$,t.centerOffset=$-w,t)}}function bW(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||!O5(t.elements.popper,i)||(t.elements.arrow=i))}var xW={name:"arrow",enabled:!0,phase:"main",fn:vW,effect:bW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ha(e){return e.split("-")[1]}var wW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _W(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ca(n*i)/i||0,y:ca(r*i)/i||0}}function N5(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,l=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=a.x,d=h===void 0?0:h,p=a.y,m=p===void 0?0:p,g=typeof c=="function"?c({x:d,y:m}):{x:d,y:m};d=g.x,m=g.y;var y=a.hasOwnProperty("x"),v=a.hasOwnProperty("y"),x=Kt,b=Xt,_=window;if(l){var w=su(n),$="clientHeight",T="clientWidth";if(w===on(n)&&(w=ni(n),Cr(w).position!=="static"&&s==="absolute"&&($="scrollHeight",T="scrollWidth")),w=w,i===Xt||(i===Kt||i===vn)&&o===ou){b=yn;var k=f&&w===_&&_.visualViewport?_.visualViewport.height:w[$];m-=k-r.height,m*=u?1:-1}if(i===Kt||(i===Xt||i===yn)&&o===ou){x=vn;var S=f&&w===_&&_.visualViewport?_.visualViewport.width:w[T];d-=S-r.width,d*=u?1:-1}}var M=Object.assign({position:s},l&&wW),A=c===!0?_W({x:d,y:m},on(n)):{x:d,y:m};if(d=A.x,m=A.y,u){var E;return Object.assign({},M,(E={},E[b]=v?"0":"",E[x]=y?"0":"",E.transform=(_.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",E))}return Object.assign({},M,(t={},t[b]=v?m+"px":"",t[x]=y?d+"px":"",t.transform="",t))}function $W(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,u=s===void 0?!0:s,l={placement:tr(t.placement),variation:ha(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,N5(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,N5(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var SW={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$W,data:{}},Mf={passive:!0};function MW(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,u=on(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&l.forEach(function(c){c.addEventListener("scroll",n.update,Mf)}),s&&u.addEventListener("resize",n.update,Mf),function(){o&&l.forEach(function(c){c.removeEventListener("scroll",n.update,Mf)}),s&&u.removeEventListener("resize",n.update,Mf)}}var TW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MW,data:{}},kW={left:"right",right:"left",bottom:"top",top:"bottom"};function Tf(e){return e.replace(/left|right|bottom|top/g,function(t){return kW[t]})}var OW={start:"end",end:"start"};function R5(e){return e.replace(/start|end/g,function(t){return OW[t]})}function im(e){var t=on(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function om(e){return fa(ni(e)).left+im(e).scrollLeft}function CW(e,t){var n=on(e),r=ni(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var l=k5();(l||!l&&t==="fixed")&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+om(e),y:u}}function PW(e){var t,n=ni(e),r=im(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Vi(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Vi(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+om(e),u=-r.scrollTop;return Cr(i||n).direction==="rtl"&&(s+=Vi(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}function am(e){var t=Cr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function D5(e){return["html","body","#document"].indexOf(er(e))>=0?e.ownerDocument.body:bn(e)&&am(e)?e:D5(Sf(e))}function lu(e,t){var n;t===void 0&&(t=[]);var r=D5(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=on(r),a=i?[o].concat(o.visualViewport||[],am(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(lu(Sf(a)))}function sm(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function EW(e,t){var n=fa(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function L5(e,t,n){return t===S5?sm(CW(e,n)):Ui(t)?EW(t,n):sm(PW(ni(e)))}function AW(e){var t=lu(Sf(e)),n=["absolute","fixed"].indexOf(Cr(e).position)>=0,r=n&&bn(e)?su(e):e;return Ui(r)?t.filter(function(i){return Ui(i)&&O5(i,r)&&er(i)!=="body"}):[]}function NW(e,t,n,r){var i=t==="clippingParents"?AW(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(u,l){var c=L5(e,l,r);return u.top=Vi(c.top,u.top),u.right=$f(c.right,u.right),u.bottom=$f(c.bottom,u.bottom),u.left=Vi(c.left,u.left),u},L5(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function I5(e){var t=e.reference,n=e.element,r=e.placement,i=r?tr(r):null,o=r?ha(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(i){case Xt:u={x:a,y:t.y-n.height};break;case yn:u={x:a,y:t.y+t.height};break;case vn:u={x:t.x+t.width,y:s};break;case Kt:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var l=i?rm(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(o){case la:u[l]=u[l]-(t[c]/2-n[c]/2);break;case ou:u[l]=u[l]+(t[c]/2-n[c]/2);break}}return u}function cu(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,u=s===void 0?Jj:s,l=n.rootBoundary,c=l===void 0?S5:l,f=n.elementContext,h=f===void 0?au:f,d=n.altBoundary,p=d===void 0?!1:d,m=n.padding,g=m===void 0?0:m,y=E5(typeof g!="number"?g:A5(g,iu)),v=h===au?eW:au,x=e.rects.popper,b=e.elements[p?v:h],_=NW(Ui(b)?b:b.contextElement||ni(e.elements.popper),u,c,a),w=fa(e.elements.reference),$=I5({reference:w,element:x,strategy:"absolute",placement:i}),T=sm(Object.assign({},x,$)),k=h===au?T:w,S={top:_.top-k.top+y.top,bottom:k.bottom-_.bottom+y.bottom,left:_.left-k.left+y.left,right:k.right-_.right+y.right},M=e.modifiersData.offset;if(h===au&&M){var A=M[i];Object.keys(S).forEach(function(E){var O=[vn,yn].indexOf(E)>=0?1:-1,P=[Xt,yn].indexOf(E)>=0?"y":"x";S[E]+=A[P]*O})}return S}function RW(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=u===void 0?T5:u,c=ha(r),f=c?s?M5:M5.filter(function(p){return ha(p)===c}):iu,h=f.filter(function(p){return l.indexOf(p)>=0});h.length===0&&(h=f);var d=h.reduce(function(p,m){return p[m]=cu(e,{placement:m,boundary:i,rootBoundary:o,padding:a})[tr(m)],p},{});return Object.keys(d).sort(function(p,m){return d[p]-d[m]})}function DW(e){if(tr(e)===Jg)return[];var t=Tf(e);return[R5(e),t,R5(t)]}function LW(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,p=d===void 0?!0:d,m=n.allowedAutoPlacements,g=t.options.placement,y=tr(g),v=y===g,x=u||(v||!p?[Tf(g)]:DW(g)),b=[g].concat(x).reduce(function(q,j){return q.concat(tr(j)===Jg?RW(t,{placement:j,boundary:c,rootBoundary:f,padding:l,flipVariations:p,allowedAutoPlacements:m}):j)},[]),_=t.rects.reference,w=t.rects.popper,$=new Map,T=!0,k=b[0],S=0;S<b.length;S++){var M=b[S],A=tr(M),E=ha(M)===la,O=[Xt,yn].indexOf(A)>=0,P=O?"width":"height",C=cu(t,{placement:M,boundary:c,rootBoundary:f,altBoundary:h,padding:l}),N=O?E?vn:Kt:E?yn:Xt;_[P]>w[P]&&(N=Tf(N));var D=Tf(N),I=[];if(o&&I.push(C[A]<=0),s&&I.push(C[N]<=0,C[D]<=0),I.every(function(q){return q})){k=M,T=!1;break}$.set(M,I)}if(T)for(var B=p?3:1,U=function(j){var V=b.find(function(G){var ne=$.get(G);if(ne)return ne.slice(0,j).every(function(L){return L})});if(V)return k=V,"break"},Y=B;Y>0;Y--){var J=U(Y);if(J==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var IW={name:"flip",enabled:!0,phase:"main",fn:LW,requiresIfExists:["offset"],data:{_skip:!1}};function z5(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function F5(e){return[Xt,vn,yn,Kt].some(function(t){return e[t]>=0})}function zW(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=cu(t,{elementContext:"reference"}),s=cu(t,{altBoundary:!0}),u=z5(a,r),l=z5(s,i,o),c=F5(u),f=F5(l);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var FW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:zW};function BW(e,t,n){var r=tr(e),i=[Kt,Xt].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Kt,vn].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function jW(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=T5.reduce(function(c,f){return c[f]=BW(f,t.rects,o),c},{}),s=a[t.placement],u=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}var WW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:jW};function HW(e){var t=e.state,n=e.name;t.modifiersData[n]=I5({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var qW={name:"popperOffsets",enabled:!0,phase:"read",fn:HW,data:{}};function UW(e){return e==="x"?"y":"x"}function VW(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=h===void 0?!0:h,p=n.tetherOffset,m=p===void 0?0:p,g=cu(t,{boundary:u,rootBoundary:l,padding:f,altBoundary:c}),y=tr(t.placement),v=ha(t.placement),x=!v,b=rm(y),_=UW(b),w=t.modifiersData.popperOffsets,$=t.rects.reference,T=t.rects.popper,k=typeof m=="function"?m(Object.assign({},t.rects,{placement:t.placement})):m,S=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(!!w){if(o){var E,O=b==="y"?Xt:Kt,P=b==="y"?yn:vn,C=b==="y"?"height":"width",N=w[b],D=N+g[O],I=N-g[P],B=d?-T[C]/2:0,U=v===la?$[C]:T[C],Y=v===la?-T[C]:-$[C],J=t.elements.arrow,q=d&&J?nm(J):{width:0,height:0},j=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:P5(),V=j[O],G=j[P],ne=uu(0,$[C],q[C]),L=x?$[C]/2-B-ne-V-S.mainAxis:U-ne-V-S.mainAxis,W=x?-$[C]/2+B+ne+G+S.mainAxis:Y+ne+G+S.mainAxis,X=t.elements.arrow&&su(t.elements.arrow),R=X?b==="y"?X.clientTop||0:X.clientLeft||0:0,te=(E=M==null?void 0:M[b])!=null?E:0,ee=N+L-te-R,se=N+W-te,ce=uu(d?$f(D,ee):D,N,d?Vi(I,se):I);w[b]=ce,A[b]=ce-N}if(s){var ie,ge=b==="x"?Xt:Kt,lt=b==="x"?yn:vn,xe=w[_],St=_==="y"?"height":"width",pt=xe+g[ge],ct=xe-g[lt],He=[Xt,Kt].indexOf(y)!==-1,Ze=(ie=M==null?void 0:M[_])!=null?ie:0,Qe=He?pt:xe-$[St]-T[St]-Ze+S.altAxis,Je=He?xe+$[St]+T[St]-Ze-S.altAxis:ct,Tn=d&&He?mW(Qe,xe,Je):uu(d?Qe:pt,xe,d?Je:ct);w[_]=Tn,A[_]=Tn-xe}t.modifiersData[r]=A}}var YW={name:"preventOverflow",enabled:!0,phase:"main",fn:VW,requiresIfExists:["offset"]};function GW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XW(e){return e===on(e)||!bn(e)?im(e):GW(e)}function KW(e){var t=e.getBoundingClientRect(),n=ca(t.width)/e.offsetWidth||1,r=ca(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ZW(e,t,n){n===void 0&&(n=!1);var r=bn(t),i=bn(t)&&KW(t),o=ni(t),a=fa(e,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((er(t)!=="body"||am(o))&&(s=XW(t)),bn(t)?(u=fa(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=om(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function QW(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&i(u)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function JW(e){var t=QW(e);return cW.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function eH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function tH(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var B5={placement:"bottom",modifiers:[],strategy:"absolute"};function j5(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function nH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?B5:i;return function(s,u,l){l===void 0&&(l=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},B5,o),modifiersData:{},elements:{reference:s,popper:u},attributes:{},styles:{}},f=[],h=!1,d={state:c,setOptions:function(y){var v=typeof y=="function"?y(c.options):y;m(),c.options=Object.assign({},o,c.options,v),c.scrollParents={reference:Ui(s)?lu(s):s.contextElement?lu(s.contextElement):[],popper:lu(u)};var x=JW(tH([].concat(r,c.options.modifiers)));return c.orderedModifiers=x.filter(function(b){return b.enabled}),p(),d.update()},forceUpdate:function(){if(!h){var y=c.elements,v=y.reference,x=y.popper;if(!!j5(v,x)){c.rects={reference:ZW(v,su(x),c.options.strategy==="fixed"),popper:nm(x)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(S){return c.modifiersData[S.name]=Object.assign({},S.data)});for(var b=0;b<c.orderedModifiers.length;b++){if(c.reset===!0){c.reset=!1,b=-1;continue}var _=c.orderedModifiers[b],w=_.fn,$=_.options,T=$===void 0?{}:$,k=_.name;typeof w=="function"&&(c=w({state:c,options:T,name:k,instance:d})||c)}}}},update:eH(function(){return new Promise(function(g){d.forceUpdate(),g(c)})}),destroy:function(){m(),h=!0}};if(!j5(s,u))return d;d.setOptions(l).then(function(g){!h&&l.onFirstUpdate&&l.onFirstUpdate(g)});function p(){c.orderedModifiers.forEach(function(g){var y=g.name,v=g.options,x=v===void 0?{}:v,b=g.effect;if(typeof b=="function"){var _=b({state:c,name:y,instance:d,options:x}),w=function(){};f.push(_||w)}})}function m(){f.forEach(function(g){return g()}),f=[]}return d}}var rH=[TW,qW,SW,dW,WW,IW,YW,xW,FW],iH=nH({defaultModifiers:rH});function oH(e){return typeof e=="function"?e():e}var aH=K.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=K.useState(null),u=ti(K.isValidElement(r)?r.ref:null,n);if(Vs(()=>{o||s(oH(i)||document.body)},[i,o]),Vs(()=>{if(a&&!o)return Pg(n,a),()=>{Pg(n,null)}},[n,a,o]),o){if(K.isValidElement(r)){const l={ref:u};return K.cloneElement(r,l)}return z(K.Fragment,{children:r})}return z(K.Fragment,{children:a&&hO.createPortal(r,a)})});function sH(e){return Yn("MuiPopper",e)}Gn("MuiPopper",["root"]);const uH=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],lH=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function cH(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function um(e){return typeof e=="function"?e():e}function fH(e){return e.nodeType!==void 0}const hH=()=>kr({root:["root"]},Yj(sH)),dH={},pH=K.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:u,open:l,placement:c,popperOptions:f,popperRef:h,slotProps:d={},slots:p={},TransitionProps:m}=t,g=Ce(t,uH),y=K.useRef(null),v=ti(y,n),x=K.useRef(null),b=ti(x,h),_=K.useRef(b);Vs(()=>{_.current=b},[b]),K.useImperativeHandle(h,()=>x.current,[]);const w=cH(c,a),[$,T]=K.useState(w),[k,S]=K.useState(um(i));K.useEffect(()=>{x.current&&x.current.forceUpdate()}),K.useEffect(()=>{i&&S(um(i))},[i]),Vs(()=>{if(!k||!l)return;const P=D=>{T(D.placement)};let C=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:D})=>{P(D)}}];u!=null&&(C=C.concat(u)),f&&f.modifiers!=null&&(C=C.concat(f.modifiers));const N=iH(k,y.current,Z({placement:w},f,{modifiers:C}));return _.current(N),()=>{N.destroy(),_.current(null)}},[k,s,u,l,f,w]);const M={placement:$};m!==null&&(M.TransitionProps=m);const A=hH(),E=(r=p.root)!=null?r:"div",O=Qj({elementType:E,externalSlotProps:d.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:v},ownerState:t,className:A.root});return z(E,Z({},O,{children:typeof o=="function"?o(M):o}))});var gH=K.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:u=!1,modifiers:l,open:c,placement:f="bottom",popperOptions:h=dH,popperRef:d,style:p,transition:m=!1,slotProps:g={},slots:y={}}=t,v=Ce(t,lH),[x,b]=K.useState(!0),_=()=>{b(!1)},w=()=>{b(!0)};if(!u&&!c&&(!m||x))return null;let $;if(o)$=o;else if(r){const S=um(r);$=S&&fH(S)?S$(S).body:S$(null).body}const T=!c&&u&&(!m||x)?"none":void 0,k=m?{in:c,onEnter:_,onExited:w}:void 0;return z(aH,{disablePortal:s,container:$,children:z(pH,Z({anchorEl:r,direction:a,disablePortal:s,modifiers:l,ref:n,open:m?!x:c,placement:f,popperOptions:h,popperRef:d,slotProps:g,slots:y},v,{style:Z({position:"fixed",top:0,left:0,display:T},p),TransitionProps:k,children:i}))})});function lm(e,t){return lm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lm(e,t)}function W5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lm(e,t)}var H5={disabled:!1},kf=Q.default.createContext(null),mH=function(t){return t.scrollTop},fu="unmounted",Yi="exited",Gi="entering",da="entered",cm="exiting",Pr=function(e){W5(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,u;return o.appearStatus=null,r.in?s?(u=Yi,o.appearStatus=Gi):u=da:r.unmountOnExit||r.mountOnEnter?u=fu:u=Yi,o.state={status:u},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===fu?{status:Yi}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Gi&&a!==da&&(o=Gi):(a===Gi||a===da)&&(o=cm)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Gi){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Po.default.findDOMNode(this);a&&mH(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yi&&this.setState({status:fu})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,u=this.props.nodeRef?[s]:[Po.default.findDOMNode(this),s],l=u[0],c=u[1],f=this.getTimeouts(),h=s?f.appear:f.enter;if(!i&&!a||H5.disabled){this.safeSetState({status:da},function(){o.props.onEntered(l)});return}this.props.onEnter(l,c),this.safeSetState({status:Gi},function(){o.props.onEntering(l,c),o.onTransitionEnd(h,function(){o.safeSetState({status:da},function(){o.props.onEntered(l,c)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Po.default.findDOMNode(this);if(!o||H5.disabled){this.safeSetState({status:Yi},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cm},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Yi},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Po.default.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],l=u[0],c=u[1];this.props.addEndListener(l,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===fu)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Ce(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Q.default.createElement(kf.Provider,{value:null},typeof a=="function"?a(i,s):Q.default.cloneElement(Q.default.Children.only(a),s))},t}(Q.default.Component);Pr.contextType=kf,Pr.propTypes={};function pa(){}Pr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:pa,onEntering:pa,onEntered:pa,onExit:pa,onExiting:pa,onExited:pa},Pr.UNMOUNTED=fu,Pr.EXITED=Yi,Pr.ENTERING=Gi,Pr.ENTERED=da,Pr.EXITING=cm;var yH=Pr;function vH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fm(e,t){var n=function(o){return t&&H.isValidElement(o)?t(o):o},r=Object.create(null);return e&&H.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function bH(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function Xi(e,t,n){return n[t]!=null?n[t]:e.props[t]}function xH(e,t){return fm(e.children,function(n){return H.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Xi(n,"appear",e),enter:Xi(n,"enter",e),exit:Xi(n,"exit",e)})})}function wH(e,t,n){var r=fm(e.children),i=bH(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(!!H.isValidElement(a)){var s=o in t,u=o in r,l=t[o],c=H.isValidElement(l)&&!l.props.in;u&&(!s||c)?i[o]=H.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Xi(a,"exit",e),enter:Xi(a,"enter",e)}):!u&&s&&!c?i[o]=H.cloneElement(a,{in:!1}):u&&s&&H.isValidElement(l)&&(i[o]=H.cloneElement(a,{onExited:n.bind(null,a),in:l.props.in,exit:Xi(a,"exit",e),enter:Xi(a,"enter",e)}))}}),i}var _H=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},$H={component:"div",childFactory:function(t){return t}},hm=function(e){W5(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(vH(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,u=o.firstRender;return{children:u?xH(i,s):wH(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=fm(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var u=Z({},s.children);return delete u[i.key],{children:u}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=Ce(i,["component","childFactory"]),u=this.state.contextValue,l=_H(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?Q.default.createElement(kf.Provider,{value:u},l):Q.default.createElement(kf.Provider,{value:u},Q.default.createElement(o,s,l))},t}(Q.default.Component);hm.propTypes={},hm.defaultProps=$H;var SH=hm;const MH=e=>e.scrollTop;function q5(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function TH(e){return Yn("MuiPaper",e)}Gn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const kH=["className","component","elevation","square","variant"],OH=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return kr(o,TH,i)},CH=Et("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${_f("#fff",_5(t.elevation))}, ${_f("#fff",_5(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))});var PH=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:u="elevation"}=r,l=Ce(r,kH),c=Z({},r,{component:o,elevation:a,square:s,variant:u}),f=OH(c);return z(CH,Z({as:o,ownerState:c,className:Ae(f.root,i),ref:n},l))});function EH(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:u,timeout:l}=e,[c,f]=K.useState(!1),h=Ae(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),d={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},p=Ae(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),K.useEffect(()=>{if(!s&&u!=null){const m=setTimeout(u,l);return()=>{clearTimeout(m)}}},[u,s,l]),z("span",{className:h,style:d,children:z("span",{className:p})})}var xn=Gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const AH=["center","classes","className"];let Of=e=>e,U5,V5,Y5,G5;const dm=550,NH=80,RH=Wg(U5||(U5=Of`
27
27
  0% {
28
28
  transform: scale(0);
29
29
  opacity: 0.1;
@@ -33,7 +33,7 @@
33
33
  transform: scale(1);
34
34
  opacity: 0.3;
35
35
  }
36
- `)),mj=sg(u5||(u5=$f`
36
+ `)),DH=Wg(V5||(V5=Of`
37
37
  0% {
38
38
  opacity: 1;
39
39
  }
@@ -41,7 +41,7 @@
41
41
  100% {
42
42
  opacity: 0;
43
43
  }
44
- `)),yj=sg(l5||(l5=$f`
44
+ `)),LH=Wg(Y5||(Y5=Of`
45
45
  0% {
46
46
  transform: scale(1);
47
47
  }
@@ -53,7 +53,7 @@
53
53
  100% {
54
54
  transform: scale(1);
55
55
  }
56
- `)),vj=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),bj=Et(hj,{name:"MuiTouchRipple",slot:"Ripple"})(c5||(c5=$f`
56
+ `)),IH=Et("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),zH=Et(EH,{name:"MuiTouchRipple",slot:"Ripple"})(G5||(G5=Of`
57
57
  opacity: 0;
58
58
  position: absolute;
59
59
 
@@ -96,9 +96,9 @@
96
96
  animation-iteration-count: infinite;
97
97
  animation-delay: 200ms;
98
98
  }
99
- `),xn.rippleVisible,gj,Ng,({theme:e})=>e.transitions.easing.easeInOut,xn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xn.child,xn.childLeaving,mj,Ng,({theme:e})=>e.transitions.easing.easeInOut,xn.childPulsate,yj,({theme:e})=>e.transitions.easing.easeInOut);var xj=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ce(r,dj),[u,l]=G.useState([]),c=G.useRef(0),f=G.useRef(null);G.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const h=G.useRef(!1),d=G.useRef(0),p=G.useRef(null),m=G.useRef(null);G.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const g=G.useCallback(b=>{const{pulsate:_,rippleX:w,rippleY:$,rippleSize:M,cb:k}=b;l(S=>[...S,z(bj,{classes:{ripple:Ae(o.ripple,xn.ripple),rippleVisible:Ae(o.rippleVisible,xn.rippleVisible),ripplePulsate:Ae(o.ripplePulsate,xn.ripplePulsate),child:Ae(o.child,xn.child),childLeaving:Ae(o.childLeaving,xn.childLeaving),childPulsate:Ae(o.childPulsate,xn.childPulsate)},timeout:Ng,pulsate:_,rippleX:w,rippleY:$,rippleSize:M},c.current)]),c.current+=1,f.current=k},[o]),y=G.useCallback((b={},_={},w=()=>{})=>{const{pulsate:$=!1,center:M=i||_.pulsate,fakeElement:k=!1}=_;if((b==null?void 0:b.type)==="mousedown"&&h.current){h.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(h.current=!0);const S=k?null:m.current,T=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,P,O;if(M||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)A=Math.round(T.width/2),P=Math.round(T.height/2);else{const{clientX:E,clientY:C}=b.touches&&b.touches.length>0?b.touches[0]:b;A=Math.round(E-T.left),P=Math.round(C-T.top)}if(M)O=Math.sqrt((2*T.width**2+T.height**2)/3),O%2===0&&(O+=1);else{const E=Math.max(Math.abs((S?S.clientWidth:0)-A),A)*2+2,C=Math.max(Math.abs((S?S.clientHeight:0)-P),P)*2+2;O=Math.sqrt(E**2+C**2)}b!=null&&b.touches?p.current===null&&(p.current=()=>{g({pulsate:$,rippleX:A,rippleY:P,rippleSize:O,cb:w})},d.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},pj)):g({pulsate:$,rippleX:A,rippleY:P,rippleSize:O,cb:w})},[i,g]),v=G.useCallback(()=>{y({},{pulsate:!0})},[y]),x=G.useCallback((b,_)=>{if(clearTimeout(d.current),(b==null?void 0:b.type)==="touchend"&&p.current){p.current(),p.current=null,d.current=setTimeout(()=>{x(b,_)});return}p.current=null,l(w=>w.length>0?w.slice(1):w),f.current=_},[]);return G.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:x}),[v,y,x]),z(vj,K({className:Ae(xn.root,o.root,a),ref:m},s,{children:z(oj,{component:null,exit:!0,children:u})}))});function wj(e){return Vn("MuiButtonBase",e)}var _j=Yn("MuiButtonBase",["root","disabled","focusVisible"]);const $j=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Sj=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=kr({root:["root",t&&"disabled",n&&"focusVisible"]},wj,i);return n&&r&&(a.root+=` ${r}`),a},Mj=Et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${_j.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var Tj=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:d="a",onBlur:p,onClick:m,onContextMenu:g,onDragLeave:y,onFocus:v,onFocusVisible:x,onKeyDown:b,onKeyUp:_,onMouseDown:w,onMouseLeave:$,onMouseUp:M,onTouchEnd:k,onTouchMove:S,onTouchStart:T,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:O,type:E}=r,C=Ce(r,$j),R=G.useRef(null),D=G.useRef(null),L=Qr(D,O),{isFocusVisibleRef:F,onFocus:W,onBlur:U,ref:te}=q_(),[Q,J]=G.useState(!1);l&&Q&&J(!1),G.useImperativeHandle(i,()=>({focusVisible:()=>{J(!0),R.current.focus()}}),[]);const[ue,re]=G.useState(!1);G.useEffect(()=>{re(!0)},[]);const oe=ue&&!c&&!l;G.useEffect(()=>{Q&&h&&!c&&ue&&D.current.pulsate()},[c,h,Q,ue]);function I(he,Wt,xi=f){return js(kn=>(Wt&&Wt(kn),!xi&&D.current&&D.current[he](kn),!0))}const V=I("start",w),ee=I("stop",g),N=I("stop",y),Y=I("stop",M),j=I("stop",he=>{Q&&he.preventDefault(),$&&$(he)}),H=I("start",T),X=I("stop",k),ne=I("stop",S),fe=I("stop",he=>{U(he),F.current===!1&&J(!1),p&&p(he)},!1),He=js(he=>{R.current||(R.current=he.currentTarget),W(he),F.current===!0&&(J(!0),x&&x(he)),v&&v(he)}),xe=()=>{const he=R.current;return u&&u!=="button"&&!(he.tagName==="A"&&he.href)},St=G.useRef(!1),pt=js(he=>{h&&!St.current&&Q&&D.current&&he.key===" "&&(St.current=!0,D.current.stop(he,()=>{D.current.start(he)})),he.target===he.currentTarget&&xe()&&he.key===" "&&he.preventDefault(),b&&b(he),he.target===he.currentTarget&&xe()&&he.key==="Enter"&&!l&&(he.preventDefault(),m&&m(he))}),ct=js(he=>{h&&he.key===" "&&D.current&&Q&&!he.defaultPrevented&&(St.current=!1,D.current.stop(he,()=>{D.current.pulsate(he)})),_&&_(he),m&&he.target===he.currentTarget&&xe()&&he.key===" "&&!he.defaultPrevented&&m(he)});let qe=u;qe==="button"&&(C.href||C.to)&&(qe=d);const Ze={};qe==="button"?(Ze.type=E===void 0?"button":E,Ze.disabled=l):(!C.href&&!C.to&&(Ze.role="button"),l&&(Ze["aria-disabled"]=l));const Je=Qr(n,te,R),et=K({},r,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:h,tabIndex:A,focusVisible:Q}),Tn=Sj(et);return ae(Mj,K({as:qe,className:Ae(Tn.root,s),ownerState:et,onBlur:fe,onClick:m,onContextMenu:ee,onFocus:He,onKeyDown:pt,onKeyUp:ct,onMouseDown:V,onMouseLeave:j,onMouseUp:Y,onDragLeave:N,onTouchEnd:X,onTouchMove:ne,onTouchStart:H,ref:Je,tabIndex:l?-1:A,type:E},Ze,C,{children:[a,oe?z(xj,K({ref:L,center:o},P)):null]}))});function kj(e){return Vn("MuiTypography",e)}Yn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Oj=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Cj=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${Tr(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return kr(s,kj,a)},Pj=Et("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Tr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>K({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),f5={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ej={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Aj=e=>Ej[e]||e;var Rg=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiTypography"}),i=Aj(r.color),o=M$(K({},r,{color:i})),{align:a="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:h="body1",variantMapping:d=f5}=o,p=Ce(o,Oj),m=K({},o,{align:a,color:i,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:h,variantMapping:d}),g=u||(f?"p":d[h]||f5[h])||"span",y=Cj(m);return z(Pj,K({as:g,ref:n,ownerState:m,className:Ae(y.root,s)},p))});const Nj=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Rj=Et(KB,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({});var h5=G.forwardRef(function(t,n){var r;const i=pg(),o=Zn({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:h,modifiers:d,open:p,placement:m,popperOptions:g,popperRef:y,transition:v,slots:x,slotProps:b}=o,_=Ce(o,Nj),w=(r=x==null?void 0:x.root)!=null?r:u==null?void 0:u.Root,$=K({anchorEl:a,container:c,disablePortal:f,keepMounted:h,modifiers:d,open:p,placement:m,popperOptions:g,popperRef:y,transition:v},_);return z(Rj,K({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:b!=null?b:l},$,{ref:n}))});const Lj=D$();var at=Bz({themeId:Bc,defaultTheme:Lj,defaultClassName:"MuiBox-root",generateClassName:Y_.generate});function Dj(e){return Vn("MuiCard",e)}Yn("MuiCard",["root"]);const Ij=["className","raised"],zj=e=>{const{classes:t}=e;return kr({root:["root"]},Dj,t)},Fj=Et(fj,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"}));var Bj=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ce(r,Ij),s=K({},r,{raised:o}),u=zj(s);return z(Fj,K({className:Ae(u.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))});function jj(e){return Vn("MuiCardActionArea",e)}var Lg=Yn("MuiCardActionArea",["root","focusVisible","focusHighlight"]);const Wj=["children","className","focusVisibleClassName"],Hj=e=>{const{classes:t}=e;return kr({root:["root"],focusHighlight:["focusHighlight"]},jj,t)},qj=Et(Tj,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${Lg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${Lg.focusVisible} .${Lg.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),Uj=Et("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}));var Vj=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ce(r,Wj),u=r,l=Hj(u);return ae(qj,K({className:Ae(l.root,o),focusVisibleClassName:Ae(a,l.focusVisible),ref:n,ownerState:u},s,{children:[i,z(Uj,{className:l.focusHighlight,ownerState:u})]}))});function Yj(e){return Vn("MuiCardContent",e)}Yn("MuiCardContent",["root"]);const Gj=["className","component"],Xj=e=>{const{classes:t}=e;return kr({root:["root"]},Yj,t)},Kj=Et("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}}));var Qj=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ce(r,Gj),s=K({},r,{component:o}),u=Xj(s);return z(Kj,K({as:o,className:Ae(u.root,i),ownerState:s,ref:n},a))});function Zj(e){return Vn("MuiCardMedia",e)}Yn("MuiCardMedia",["root","media","img"]);const Jj=["children","className","component","image","src","style"],eW=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return kr({root:["root",n&&"media",r&&"img"]},Zj,t)},tW=Et("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})(({ownerState:e})=>K({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),nW=["video","audio","picture","iframe","img"],rW=["picture","img"];var iW=G.forwardRef(function(t,n){const r=Zn({props:t,name:"MuiCardMedia"}),{children:i,className:o,component:a="div",image:s,src:u,style:l}=r,c=Ce(r,Jj),f=nW.indexOf(a)!==-1,h=!f&&s?K({backgroundImage:`url("${s}")`},l):l,d=K({},r,{component:a,isMediaComponent:f,isImageComponent:rW.indexOf(a)!==-1}),p=eW(d);return z(tW,K({className:Ae(p.root,o),as:a,role:!f&&s?"img":void 0,ref:n,style:h,ownerState:d,src:f?s||u:void 0},c,{children:i}))});const oW=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Dg(e){return`scale(${e}, ${e**2})`}const aW={entering:{opacity:1,transform:Dg(1)},entered:{opacity:1,transform:"none"}},Ig=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),d5=G.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:h,onExiting:d,style:p,timeout:m="auto",TransitionComponent:g=ZB}=t,y=Ce(t,oW),v=G.useRef(),x=G.useRef(),b=I$(),_=G.useRef(null),w=Qr(_,o.ref,n),$=E=>C=>{if(E){const R=_.current;C===void 0?E(R):E(R,C)}},M=$(c),k=$((E,C)=>{aj(E);const{duration:R,delay:D,easing:L}=a5({style:p,timeout:m,easing:a},{mode:"enter"});let F;m==="auto"?(F=b.transitions.getAutoHeightDuration(E.clientHeight),x.current=F):F=R,E.style.transition=[b.transitions.create("opacity",{duration:F,delay:D}),b.transitions.create("transform",{duration:Ig?F:F*.666,delay:D,easing:L})].join(","),u&&u(E,C)}),S=$(l),T=$(d),A=$(E=>{const{duration:C,delay:R,easing:D}=a5({style:p,timeout:m,easing:a},{mode:"exit"});let L;m==="auto"?(L=b.transitions.getAutoHeightDuration(E.clientHeight),x.current=L):L=C,E.style.transition=[b.transitions.create("opacity",{duration:L,delay:R}),b.transitions.create("transform",{duration:Ig?L:L*.666,delay:Ig?R:R||L*.333,easing:D})].join(","),E.style.opacity=0,E.style.transform=Dg(.75),f&&f(E)}),P=$(h),O=E=>{m==="auto"&&(v.current=setTimeout(E,x.current||0)),r&&r(_.current,E)};return G.useEffect(()=>()=>{clearTimeout(v.current)},[]),z(g,K({appear:i,in:s,nodeRef:_,onEnter:k,onEntered:S,onEntering:M,onExit:A,onExited:P,onExiting:T,addEndListener:O,timeout:m==="auto"?null:m},y,{children:(E,C)=>G.cloneElement(o,K({style:K({opacity:0,transform:Dg(.75),visibility:E==="exited"&&!s?"hidden":void 0},aW[E],p,o.props.style),ref:w},C))}))});d5.muiSupportAuto=!0;var p5=d5;function sW(e,t,n,r,i){const[o,a]=G.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return na(()=>{let s=!0;if(!n)return;const u=n(e),l=()=>{s&&a(u.matches)};return l(),u.addListener(l),()=>{s=!1,u.removeListener(l)}},[e,n]),o}const g5=G["useSyncExternalStore"];function uW(e,t,n,r,i){const o=G.useCallback(()=>t,[t]),a=G.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,i,n]),[s,u]=G.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[o,n,e]);return g5(u,s,a)}function lW(e,t={}){const n=pg(),r=typeof window!="undefined"&&typeof window.matchMedia!="undefined",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=C$({name:"MuiUseMediaQuery",props:t,theme:n});let u=typeof e=="function"?e(n):e;return u=u.replace(/^@media( ?)/m,""),(g5!==void 0?uW:sW)(u,i,o,a,s)}function cW(e){return Vn("MuiTooltip",e)}var Er=Yn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const fW=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function hW(e){return Math.round(e*1e5)/1e5}const dW=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Tr(o.split("-")[0])}`],arrow:["arrow"]};return kr(a,cW,t)},pW=Et(h5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>K({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Er.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Er.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Er.arrow}`]:K({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Er.arrow}`]:K({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),gW=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Tr(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>K({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:yf(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${hW(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Er.popper}[data-popper-placement*="left"] &`]:K({transformOrigin:"right center"},t.isRtl?K({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):K({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Er.popper}[data-popper-placement*="right"] &`]:K({transformOrigin:"left center"},t.isRtl?K({marginRight:"14px"},t.touch&&{marginRight:"24px"}):K({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Er.popper}[data-popper-placement*="top"] &`]:K({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Er.popper}[data-popper-placement*="bottom"] &`]:K({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),mW=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:yf(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Sf=!1,zg=null,au={x:0,y:0};function Mf(e,t){return n=>{t&&t(n),e(n)}}var yW=G.forwardRef(function(t,n){var r,i,o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_;const w=Zn({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:M,components:k={},componentsProps:S={},describeChild:T=!1,disableFocusListener:A=!1,disableHoverListener:P=!1,disableInteractive:O=!1,disableTouchListener:E=!1,enterDelay:C=100,enterNextDelay:R=0,enterTouchDelay:D=700,followCursor:L=!1,id:F,leaveDelay:W=0,leaveTouchDelay:U=1500,onClose:te,onOpen:Q,open:J,placement:ue="bottom",PopperComponent:re,PopperProps:oe={},slotProps:I={},slots:V={},title:ee,TransitionComponent:N=p5,TransitionProps:Y}=w,j=Ce(w,fW),H=G.isValidElement(M)?M:z("span",{children:M}),X=I$(),ne=X.direction==="rtl",[fe,He]=G.useState(),[xe,St]=G.useState(null),pt=G.useRef(!1),ct=O||L,qe=G.useRef(),Ze=G.useRef(),Je=G.useRef(),et=G.useRef(),[Tn,he]=CD({controlled:J,default:!1,name:"Tooltip",state:"open"});let Wt=Tn;const xi=OD(F),kn=G.useRef(),wi=G.useCallback(()=>{kn.current!==void 0&&(document.body.style.WebkitUserSelect=kn.current,kn.current=void 0),clearTimeout(et.current)},[]);G.useEffect(()=>()=>{clearTimeout(qe.current),clearTimeout(Ze.current),clearTimeout(Je.current),wi()},[wi]);const Cl=ve=>{clearTimeout(zg),Sf=!0,he(!0),Q&&!Wt&&Q(ve)},ko=js(ve=>{clearTimeout(zg),zg=setTimeout(()=>{Sf=!1},800+W),he(!1),te&&Wt&&te(ve),clearTimeout(qe.current),qe.current=setTimeout(()=>{pt.current=!1},X.transitions.duration.shortest)}),rs=ve=>{pt.current&&ve.type!=="touchstart"||(fe&&fe.removeAttribute("title"),clearTimeout(Ze.current),clearTimeout(Je.current),C||Sf&&R?Ze.current=setTimeout(()=>{Cl(ve)},Sf?R:C):Cl(ve))},Pl=ve=>{clearTimeout(Ze.current),clearTimeout(Je.current),Je.current=setTimeout(()=>{ko(ve)},W)},{isFocusVisibleRef:El,onBlur:qd,onFocus:Ud,ref:Vd}=q_(),[,Al]=G.useState(!1),Nl=ve=>{qd(ve),El.current===!1&&(Al(!1),Pl(ve))},Rl=ve=>{fe||He(ve.currentTarget),Ud(ve),El.current===!0&&(Al(!0),rs(ve))},Ll=ve=>{pt.current=!0;const fn=H.props;fn.onTouchStart&&fn.onTouchStart(ve)},Yd=rs,Ht=Pl,On=ve=>{Ll(ve),clearTimeout(Je.current),clearTimeout(qe.current),wi(),kn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",et.current=setTimeout(()=>{document.body.style.WebkitUserSelect=kn.current,rs(ve)},D)},Br=ve=>{H.props.onTouchEnd&&H.props.onTouchEnd(ve),wi(),clearTimeout(Je.current),Je.current=setTimeout(()=>{ko(ve)},U)};G.useEffect(()=>{if(!Wt)return;function ve(fn){(fn.key==="Escape"||fn.key==="Esc")&&ko(fn)}return document.addEventListener("keydown",ve),()=>{document.removeEventListener("keydown",ve)}},[ko,Wt]);const jr=Qr(H.ref,Vd,He,n);!ee&&ee!==0&&(Wt=!1);const qt=G.useRef(),Oo=ve=>{const fn=H.props;fn.onMouseMove&&fn.onMouseMove(ve),au={x:ve.clientX,y:ve.clientY},qt.current&&qt.current.update()},br={},Co=typeof ee=="string";T?(br.title=!Wt&&Co&&!P?ee:null,br["aria-describedby"]=Wt?xi:null):(br["aria-label"]=Co?ee:null,br["aria-labelledby"]=Wt&&!Co?xi:null);const Mt=K({},br,j,H.props,{className:Ae(j.className,H.props.className),onTouchStart:Ll,ref:jr},L?{onMouseMove:Oo}:{}),_i={};E||(Mt.onTouchStart=On,Mt.onTouchEnd=Br),P||(Mt.onMouseOver=Mf(Yd,Mt.onMouseOver),Mt.onMouseLeave=Mf(Ht,Mt.onMouseLeave),ct||(_i.onMouseOver=Yd,_i.onMouseLeave=Ht)),A||(Mt.onFocus=Mf(Rl,Mt.onFocus),Mt.onBlur=Mf(Nl,Mt.onBlur),ct||(_i.onFocus=Rl,_i.onBlur=Nl));const Gd=G.useMemo(()=>{var ve;let fn=[{name:"arrow",enabled:Boolean(xe),options:{element:xe,padding:4}}];return(ve=oe.popperOptions)!=null&&ve.modifiers&&(fn=fn.concat(oe.popperOptions.modifiers)),K({},oe.popperOptions,{modifiers:fn})},[xe,oe]),Dl=K({},w,{isRtl:ne,arrow:$,disableInteractive:ct,placement:ue,PopperComponentProp:re,touch:pt.current}),lb=dW(Dl),cO=(r=(i=V.popper)!=null?i:k.Popper)!=null?r:pW,fO=(o=(a=(s=V.transition)!=null?s:k.Transition)!=null?a:N)!=null?o:p5,hO=(u=(l=V.tooltip)!=null?l:k.Tooltip)!=null?u:gW,dO=(c=(f=V.arrow)!=null?f:k.Arrow)!=null?c:mW,Zue=Qs(cO,K({},oe,(h=I.popper)!=null?h:S.popper,{className:Ae(lb.popper,oe==null?void 0:oe.className,(d=(p=I.popper)!=null?p:S.popper)==null?void 0:d.className)}),Dl),Jue=Qs(fO,K({},Y,(m=I.transition)!=null?m:S.transition),Dl),ele=Qs(hO,K({},(g=I.tooltip)!=null?g:S.tooltip,{className:Ae(lb.tooltip,(y=(v=I.tooltip)!=null?v:S.tooltip)==null?void 0:y.className)}),Dl),tle=Qs(dO,K({},(x=I.arrow)!=null?x:S.arrow,{className:Ae(lb.arrow,(b=(_=I.arrow)!=null?_:S.arrow)==null?void 0:b.className)}),Dl);return ae(G.Fragment,{children:[G.cloneElement(H,Mt),z(cO,K({as:re!=null?re:h5,placement:ue,anchorEl:L?{getBoundingClientRect:()=>({top:au.y,left:au.x,right:au.x,bottom:au.y,width:0,height:0})}:fe,popperRef:qt,open:fe?Wt:!1,id:xi,transition:!0},_i,Zue,{popperOptions:Gd,children:({TransitionProps:ve})=>z(fO,K({timeout:X.transitions.duration.shorter},ve,Jue,{children:ae(hO,K({},ele,{children:[ee,$?z(dO,K({},tle,{ref:St})):null]}))}))}))]})});const vW=({theme:e,value:t,parentWidth:n,parentHeight:r})=>{var E,C,R,D,L,F,W,U,te,Q,J,ue,re,oe,I,V,ee;const{TooltipInPortal:i}=Ap({detectBounds:!0,scroll:!0}),o=lW(e.myTheme.breakpoints.down("md")),[a,s]=q.useState(null),u=(E=t==null?void 0:t.main)==null?void 0:E.data,l=Object.keys(u[0]),c=((C=t==null?void 0:t.main)==null?void 0:C.xAxisValue)&&((R=t==null?void 0:t.main)==null?void 0:R.yAxisValue)?[(D=t==null?void 0:t.main)==null?void 0:D.xAxisValue,(L=t==null?void 0:t.main)==null?void 0:L.yAxisValue]:l,f=l.indexOf(t.main.xAxisValue),h=f===0?1:0,d=N=>N[c[h]],p=Ho({domain:u.map(N=>N[c[f]]),range:(W=(F=t==null?void 0:t.style)==null?void 0:F.pieStyle)==null?void 0:W.colorRange}),m=N=>p(N),g=u.map(N=>N[t.main.xAxisValue]),{tooltipData:y,tooltipLeft:v,tooltipTop:x,tooltipOpen:b,showTooltip:_,hideTooltip:w}=As(),$=(N,Y,j)=>{s(j);const H=j[c[f]]+"",X=j[c[h]]+"";_({tooltipLeft:N.clientX,tooltipTop:N.clientY,tooltipData:{[H]:X}})},M=o?n:.7*n,k=r,S=M/2,T=k/2,A=S,P=T,O=(N,Y)=>N-Y;return z(Jt,{children:ae("div",{style:{display:"flex",justifyContent:"space-evenly",flexDirection:o?"column":"row"},children:[((U=t==null?void 0:t.main)==null?void 0:U.legendAvailable)&&o&&z(Ls,{value:t,dataKeyArray:g,theme:e.myTheme}),z("svg",{width:o?n:.7*n,height:r,className:"pieGraphContainer",children:ae(je,{top:P+5,left:A,children:[z(ax,{data:u,pieValue:d,outerRadius:((Q=(te=t==null?void 0:t.style)==null?void 0:te.pieStyle)==null?void 0:Q.innerRadius)-5,innerRadius:((ue=(J=t==null?void 0:t.style)==null?void 0:J.pieStyle)==null?void 0:ue.innerRadius)-10,padAngle:.05,children:N=>N.arcs.map((Y,j)=>{const H=Y.data[c[f]];N.path.centroid(Y);const X=N.path(Y),ne=p(H);return z("g",{children:z("path",{d:X,fill:ne})},`arc-${H}-${j}`)})}),z(ax,{data:u,pieSortValues:O,pieValue:d,outerRadius:({data:N})=>{var j,H,X,ne;return a&&a[t.main.xAxisValue]==N[t.main.xAxisValue]?(H=(j=t==null?void 0:t.style)==null?void 0:j.pieStyle)==null?void 0:H.outerRadius:((ne=(X=t==null?void 0:t.style)==null?void 0:X.pieStyle)==null?void 0:ne.outerRadius)-3},innerRadius:(oe=(re=t==null?void 0:t.style)==null?void 0:re.pieStyle)==null?void 0:oe.innerRadius,cornerRadius:(V=(I=t==null?void 0:t.style)==null?void 0:I.pieStyle)==null?void 0:V.cornerRadius,children:N=>N.arcs.map((Y,j)=>{const H=Y.data[c[f]];N.path.centroid(Y);const X=N.path(Y),ne=p(H);return z("g",{onMouseOut:w,onMouseLeave:()=>s(null),onMouseOver:fe=>$(fe,Y,Y.data),className:"pieTooltipHolder",children:z("path",{d:X,fill:ne})},`arc-${H}-${j}`)})})]})}),b&&z(i,{style:{...Go,backgroundColor:e.myTheme.palette.secondary.main},top:x,left:v,children:Object.keys(y).map(N=>ae("div",{style:{display:"flex",marginBottom:"2.5px",marginTop:"2.5px"},children:[z("span",{style:{backgroundColor:m(N),width:"15px",height:"15px",marginRight:"5px"}}),z("span",{style:{marginRight:"5px"},children:ae("strong",{style:{color:"black"},children:[N,": "]})}),z("span",{style:{color:"black"},children:y[N]})]}))},Math.random()),z("div",{style:{display:o?"none":"flex"},children:((ee=t==null?void 0:t.main)==null?void 0:ee.legendAvailable)&&z(Ls,{value:t,dataKeyArray:g,theme:e.myTheme})})]})})},bW=({value:e,theme:t})=>{var i,o;const n=zc("PieGraph",e,t);let r=z(zs,{children:a=>z(vW,{theme:t,parentWidth:a.width,parentHeight:parseInt(n.style.containerStyle.height),parentRef:a.ref,resizeParent:a.resize,value:n})});return ae("div",{style:n.style.containerStyle,children:[((i=n==null?void 0:n.main)==null?void 0:i.header)&&z("div",{style:n.style.headerStyle,children:(o=n==null?void 0:n.main)==null?void 0:o.header}),r]})};var m5=tt(AR);function xW(e){return!!e&&e instanceof Element}function wW(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function _W(e){return!!e&&"createSVGPoint"in e}function $W(e){return!!e&&"getScreenCTM"in e}function SW(e){return!!e&&"changedTouches"in e}function MW(e){return!!e&&"clientX"in e}function TW(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}function su(){return su=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},su.apply(this,arguments)}var Fg={x:0,y:0};function kW(e){if(!e)return su({},Fg);if(SW(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:su({},Fg);if(MW(e))return{x:e.clientX,y:e.clientY};var t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:su({},Fg)}function y5(e,t){if(!e||!t)return null;var n=kW(t),r=wW(e)?e.ownerSVGElement:e,i=$W(r)?r.getScreenCTM():null;if(_W(r)&&i){var o=r.createSVGPoint();return o.x=n.x,o.y=n.y,o=o.matrixTransform(i.inverse()),new Un({x:o.x,y:o.y})}var a=e.getBoundingClientRect();return new Un({x:n.x-a.left-e.clientLeft,y:n.y-a.top-e.clientTop})}function OW(e,t){if(xW(e)&&t)return y5(e,t);if(TW(e)){var n=e,r=n.target;if(r)return y5(r,n)}return null}var CW=Z.default.createContext({}),tr=CW;function Bg(e){var t,n=e;return n&&"bandwidth"in n&&(t=n==null?void 0:n.bandwidth())!=null?t:0}function Gt(e){return e!=null&&typeof e=="number"&&!Number.isNaN(e)&&Number.isFinite(e)}var v5=tt(_O),b5=tt(hE),PW=["AxisComponent"];function jg(){return jg=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},jg.apply(this,arguments)}function EW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function AW(e){var t,n,r,i,o,a,s,u=e.AxisComponent,l=EW(e,PW),c=q.useContext(tr),f=c.theme,h=c.xScale,d=c.yScale,p=c.margin,m=c.width,g=c.height,y=l.orientation,v=q.useMemo(function(){var M,k,S,T;return y==="left"||y==="right"?f==null||(M=f.axisStyles)==null||(k=M.y)==null?void 0:k[y]:f==null||(S=f.axisStyles)==null||(T=S.x)==null?void 0:T[y]},[f,y]),x=l.tickLabelProps,b=q.useMemo(function(){return x||v?function(M,k,S){return jg({},v==null?void 0:v.tickLabel,{width:y==="left"||y==="right"?p==null?void 0:p[y]:void 0},typeof x=="function"?x(M,k,S):x)}:void 0},[x,v,y,p]),_=y==="bottom"?(g!=null?g:0)-((t=p==null?void 0:p.bottom)!=null?t:0):y==="top"&&(n=p==null?void 0:p.top)!=null?n:0,w=y==="left"?(r=p==null?void 0:p.left)!=null?r:0:y==="right"?(m!=null?m:0)-((i=p==null?void 0:p.right)!=null?i:0):0,$=y==="left"||y==="right"?d:h;return $?z(u,{top:_,left:w,labelProps:v==null?void 0:v.axisLabel,stroke:v==null||(o=v.axisLine)==null?void 0:o.stroke,strokeWidth:v==null||(a=v.axisLine)==null?void 0:a.strokeWidth,tickLength:v==null?void 0:v.tickLength,tickStroke:v==null||(s=v.tickLine)==null?void 0:s.stroke,...l,tickLabelProps:b,scale:$}):null}var Tf={};Tf.__esModule=!0,Tf.default=NW;function NW(e){return"bandwidth"in e?e.bandwidth():0}var RW=S5,x5=uu(Eo.exports),w5=uu(Z.default),LW=uu(Ao.exports),DW=uu(Rc),IW=v5,_5=m5,$5=b5,zW=uu(Tf),FW=["top","left","scale","width","stroke","strokeWidth","strokeDasharray","className","children","numTicks","lineStyle","offset","tickValues"];function uu(e){return e&&e.__esModule?e:{default:e}}function Wg(){return Wg=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},Wg.apply(this,arguments)}function BW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function S5(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.width,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.children,p=e.numTicks,m=p===void 0?10:p,g=e.lineStyle,y=e.offset,v=e.tickValues,x=BW(e,FW),b=v!=null?v:(0,$5.getTicks)(o,m),_=(y!=null?y:0)+(0,zW.default)(o)/2,w=b.map(function($,M){var k,S=((k=(0,$5.coerceNumber)(o($)))!=null?k:0)+_;return{index:M,from:new _5.Point({x:0,y:S}),to:new _5.Point({x:a,y:S})}});return w5.default.createElement(IW.Group,{className:(0,LW.default)("visx-rows",h),top:n,left:i},d?d({lines:w}):w.map(function($){var M=$.from,k=$.to,S=$.index;return w5.default.createElement(DW.default,Wg({key:"row-line-"+S,from:M,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:g},x))}))}S5.propTypes={tickValues:x5.default.array,width:x5.default.number.isRequired};var jW=C5,M5=lu(Eo.exports),T5=lu(Z.default),WW=lu(Ao.exports),HW=lu(Rc),qW=v5,k5=m5,O5=b5,UW=lu(Tf),VW=["top","left","scale","height","stroke","strokeWidth","strokeDasharray","className","numTicks","lineStyle","offset","tickValues","children"];function lu(e){return e&&e.__esModule?e:{default:e}}function Hg(){return Hg=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},Hg.apply(this,arguments)}function YW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function C5(e){var t=e.top,n=t===void 0?0:t,r=e.left,i=r===void 0?0:r,o=e.scale,a=e.height,s=e.stroke,u=s===void 0?"#eaf0f6":s,l=e.strokeWidth,c=l===void 0?1:l,f=e.strokeDasharray,h=e.className,d=e.numTicks,p=d===void 0?10:d,m=e.lineStyle,g=e.offset,y=e.tickValues,v=e.children,x=YW(e,VW),b=y!=null?y:(0,O5.getTicks)(o,p),_=(g!=null?g:0)+(0,UW.default)(o)/2,w=b.map(function($,M){var k,S=((k=(0,O5.coerceNumber)(o($)))!=null?k:0)+_;return{index:M,from:new k5.Point({x:S,y:0}),to:new k5.Point({x:S,y:a})}});return T5.default.createElement(qW.Group,{className:(0,WW.default)("visx-columns",h),top:n,left:i},v?v({lines:w}):w.map(function($){var M=$.from,k=$.to,S=$.index;return T5.default.createElement(HW.default,Hg({key:"column-line-"+S,from:M,to:k,stroke:u,strokeWidth:c,strokeDasharray:f,style:m},x))}))}C5.propTypes={tickValues:M5.default.array,height:M5.default.number.isRequired};var GW=["rows","columns","GridRowsComponent","GridColumnsComponent"];function XW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function P5(e){var t=e.rows,n=t===void 0?!0:t,r=e.columns,i=r===void 0?!0:r,o=e.GridRowsComponent,a=e.GridColumnsComponent,s=XW(e,GW),u=q.useContext(tr),l=u.theme,c=u.xScale,f=u.yScale,h=u.margin,d=u.innerWidth,p=u.innerHeight,m=l==null?void 0:l.gridStyles;return ae(Jt,{children:[n&&f&&d!=null&&z(o,{left:h==null?void 0:h.left,lineStyle:m,width:d,scale:f,...s}),i&&c&&p!=null&&z(a,{top:h==null?void 0:h.top,lineStyle:m,height:p,scale:c,...s})]})}P5.propTypes={rows:B.bool,columns:B.bool};function qg(){return qg=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},qg.apply(this,arguments)}function E5(e){return Z.default.createElement(AW,qg({AxisComponent:kp},e))}function Ug(){return Ug=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},Ug.apply(this,arguments)}function KW(e){return Z.default.createElement(P5,Ug({GridRowsComponent:RW,GridColumnsComponent:jW},e))}var QW=q.createContext(null),cu=QW,ZW=["debounce","detectBounds","horizontalCrosshairStyle","glyphStyle","renderTooltip","renderGlyph","resizeObserverPolyfill","scroll","showDatumGlyph","showHorizontalCrosshair","showSeriesGlyphs","showVerticalCrosshair","snapTooltipToDatumX","snapTooltipToDatumY","verticalCrosshairStyle","zIndex"],JW=["x","y"];function A5(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function fu(){return fu=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},fu.apply(this,arguments)}var Vg={position:"absolute",pointerEvents:"none",fontSize:0,lineHeight:0},eH={position:"absolute",left:0,top:0,opacity:0,width:0,height:0,pointerEvents:"none"};function N5(e){var t=q.useContext(tr)||{},n=t.theme;return z("circle",{cx:e.x,cy:e.y,r:e.size,fill:e.color,stroke:n==null?void 0:n.backgroundColor,strokeWidth:1.5,paintOrder:"fill",...e.glyphStyle})}N5.propTypes={isNearestDatum:B.bool.isRequired};function tH(e){return z(N5,{...e})}function R5(e){var t,n,r,i,o,a,s,u,l,c,f,h,d,p=e.debounce,m=e.detectBounds,g=e.horizontalCrosshairStyle,y=e.glyphStyle,v=e.renderTooltip,x=e.renderGlyph,b=x===void 0?tH:x,_=e.resizeObserverPolyfill,w=e.scroll,$=w===void 0?!0:w,M=e.showDatumGlyph,k=M===void 0?!1:M,S=e.showHorizontalCrosshair,T=S===void 0?!1:S,A=e.showSeriesGlyphs,P=A===void 0?!1:A,O=e.showVerticalCrosshair,E=O===void 0?!1:O,C=e.snapTooltipToDatumX,R=C===void 0?!1:C,D=e.snapTooltipToDatumY,L=D===void 0?!1:D,F=e.verticalCrosshairStyle,W=e.zIndex,U=A5(e,ZW),te=q.useContext(tr)||{},Q=te.colorScale,J=te.theme,ue=te.innerHeight,re=te.innerWidth,oe=te.margin,I=te.xScale,V=te.yScale,ee=te.dataRegistry,N=te.resizeObserverPolyfill,Y=q.useContext(cu),j=Ap({debounce:p,detectBounds:m,polyfill:N||_,scroll:$,zIndex:W}),H=j.containerRef,X=j.TooltipInPortal,ne=j.forceRefreshBounds,fe=q.useCallback(function(Ht){var On;H((On=Ht==null?void 0:Ht.parentElement)!=null?On:null)},[H]),He=Y!=null&&Y.tooltipOpen?v(fu({},Y,{colorScale:Q})):null,xe=(Y==null?void 0:Y.tooltipOpen)&&He!=null,St=q.useRef(!1);q.useEffect(function(){xe&&!St.current&&ne(),St.current=xe},[xe,ne]);var pt=Y==null?void 0:Y.tooltipLeft,ct=Y==null?void 0:Y.tooltipTop,qe=I?Bg(I):0,Ze=V?Bg(V):0,Je=q.useCallback(function(Ht,On){var Br,jr,qt=ee==null?void 0:ee.get(Ht),Oo=qt==null?void 0:qt.xAccessor,br=qt==null?void 0:qt.yAccessor,Co=I&&Oo?(Br=Number(I(Oo(On)))+qe/2)!=null?Br:0:void 0,Mt=V&&br?(jr=Number(V(br(On)))+Ze/2)!=null?jr:0:void 0;return{left:Co,top:Mt}},[ee,qe,Ze,I,V]),et=Y==null||(t=Y.tooltipData)==null?void 0:t.nearestDatum,Tn=(n=et==null?void 0:et.key)!=null?n:"";if(xe&&et&&(R||L)){var he=Je(Tn,et.datum),Wt=he.left,xi=he.top;pt=R&&Gt(Wt)?Wt:pt,ct=L&&Gt(xi)?xi:ct}var kn=[];if(xe&&(k||P)){var wi,Cl=Number((wi=y==null?void 0:y.radius)!=null?wi:4);if(P){var ko,rs;Object.values((ko=Y==null||(rs=Y.tooltipData)==null?void 0:rs.datumByKey)!=null?ko:{}).forEach(function(Ht){var On,Br,jr,qt=Ht.key,Oo=Ht.datum,br=Ht.index,Co=(On=(Br=Q==null?void 0:Q(qt))!=null?Br:J==null||(jr=J.htmlLabel)==null?void 0:jr.color)!=null?On:"#222",Mt=Je(qt,Oo),_i=Mt.left,Gd=Mt.top;!Gt(_i)||!Gt(Gd)||kn.push({key:qt,color:Co,datum:Oo,index:br,size:Cl,x:_i,y:Gd,glyphStyle:y,isNearestDatum:et?et.key===qt:!1})})}else if(et){var Pl=Je(Tn,et.datum),El=Pl.left,qd=Pl.top;if(Gt(El)&&Gt(qd)){var Ud,Vd,Al,Nl,Rl,Ll,Yd=(Ud=(Vd=(Al=(Nl=Tn&&(Q==null?void 0:Q(Tn)))!=null?Nl:null)!=null?Al:J==null||(Rl=J.gridStyles)==null?void 0:Rl.stroke)!=null?Vd:J==null||(Ll=J.htmlLabel)==null?void 0:Ll.color)!=null?Ud:"#222";kn.push({key:Tn,color:Yd,datum:et.datum,index:et.index,size:Cl,x:El,y:qd,glyphStyle:y,isNearestDatum:!0})}}}return ae(Jt,{children:[z("svg",{ref:fe,style:eH}),xe&&ae(Jt,{children:[E&&z(X,{className:"visx-crosshair visx-crosshair-vertical",left:pt,top:oe==null?void 0:oe.top,offsetLeft:0,offsetTop:0,detectBounds:!1,style:Vg,children:z("svg",{width:"1",height:ue,overflow:"visible",children:z("line",{x1:0,x2:0,y1:0,y2:ue,strokeWidth:1.5,stroke:(r=(i=J==null||(o=J.gridStyles)==null?void 0:o.stroke)!=null?i:J==null||(a=J.htmlLabel)==null?void 0:a.color)!=null?r:"#222",...F})})}),T&&z(X,{className:"visx-crosshair visx-crosshair-horizontal",left:oe==null?void 0:oe.left,top:ct,offsetLeft:0,offsetTop:0,detectBounds:!1,style:Vg,children:z("svg",{width:re,height:"1",overflow:"visible",children:z("line",{x1:0,x2:re,y1:0,y2:0,strokeWidth:1.5,stroke:(s=(u=J==null||(l=J.gridStyles)==null?void 0:l.stroke)!=null?u:J==null||(c=J.htmlLabel)==null?void 0:c.color)!=null?s:"#222",...g})})}),kn.map(function(Ht,On){var Br=Ht.x,jr=Ht.y,qt=A5(Ht,JW);return z(X,{className:"visx-tooltip-glyph",left:Br,top:jr,offsetLeft:0,offsetTop:0,detectBounds:!1,style:Vg,children:z("svg",{overflow:"visible",children:b(fu({x:0,y:0},qt))})},On)}),z(X,{left:pt,top:ct,style:fu({},Go,{background:(f=J==null?void 0:J.backgroundColor)!=null?f:"white",boxShadow:"0 1px 2px "+(J!=null&&(h=J.htmlLabel)!=null&&h.color?(J==null||(d=J.htmlLabel)==null?void 0:d.color)+"55":"#22222255")},J==null?void 0:J.htmlLabel),...U,children:He})]})]})}R5.propTypes={renderTooltip:B.func.isRequired,renderGlyph:B.func,snapTooltipToDatumX:B.bool,snapTooltipToDatumY:B.bool,showVerticalCrosshair:B.bool,showHorizontalCrosshair:B.bool,showDatumGlyph:B.bool,showSeriesGlyphs:B.bool};function L5(e){var t=q.useContext(cu);return t!=null&&t.tooltipOpen?z(R5,{...e}):null}L5.propTypes={renderTooltip:B.func.isRequired,renderGlyph:B.func,snapTooltipToDatumX:B.bool,snapTooltipToDatumY:B.bool,showVerticalCrosshair:B.bool,showHorizontalCrosshair:B.bool,showDatumGlyph:B.bool,showSeriesGlyphs:B.bool};var nH=z5,Jr=I5(Eo.exports),rH=I5(D_),da=oH(Z.default),iH=["className","children","debounceTime","ignoreDimensions","parentSizeStyles","enableDebounceLeadingCall","resizeObserverPolyfill"];function D5(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(D5=function(i){return i?n:t})(e)}function oH(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=D5(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function I5(e){return e&&e.__esModule?e:{default:e}}function kf(){return kf=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},kf.apply(this,arguments)}function aH(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var sH=[],uH={width:"100%",height:"100%"};function z5(e){var t=e.className,n=e.children,r=e.debounceTime,i=r===void 0?300:r,o=e.ignoreDimensions,a=o===void 0?sH:o,s=e.parentSizeStyles,u=s===void 0?uH:s,l=e.enableDebounceLeadingCall,c=l===void 0?!0:l,f=e.resizeObserverPolyfill,h=aH(e,iH),d=(0,da.useRef)(null),p=(0,da.useRef)(0),m=(0,da.useState)({width:0,height:0,top:0,left:0}),g=m[0],y=m[1],v=(0,da.useMemo)(function(){var x=Array.isArray(a)?a:[a];return(0,rH.default)(function(b){y(function(_){var w=Object.keys(_),$=w.filter(function(k){return _[k]!==b[k]}),M=$.every(function(k){return x.includes(k)});return M?_:b})},i,{leading:c})},[i,c,a]);return(0,da.useEffect)(function(){var x=f||window.ResizeObserver,b=new x(function(_){_.forEach(function(w){var $,M=($=w==null?void 0:w.contentRect)!=null?$:{},k=M.left,S=M.top,T=M.width,A=M.height;p.current=window.requestAnimationFrame(function(){v({width:T,height:A,top:S,left:k})})})});return d.current&&b.observe(d.current),function(){window.cancelAnimationFrame(p.current),b.disconnect(),v.cancel()}},[v,f]),da.default.createElement("div",kf({style:u,ref:d,className:t},h),n(kf({},g,{ref:d.current,resize:v})))}z5.propTypes={className:Jr.default.string,debounceTime:Jr.default.number,enableDebounceLeadingCall:Jr.default.bool,ignoreDimensions:Jr.default.oneOfType([Jr.default.any,Jr.default.arrayOf(Jr.default.any)]),children:Jr.default.func.isRequired};var lH=q.createContext(null),F5=lH;function ei(e,t,n){var r=q.useContext(F5),i=q.useRef();i.current=n;var o=q.useCallback(function(a,s,u){r&&r.emit(a,{event:s,svgPoint:OW(s),source:u})},[r]);return q.useEffect(function(){if(r&&e&&t){var a=function(u){var l;(!i.current||u!=null&&u.source&&(l=i.current)!=null&&l.includes(u.source))&&t(u)};return r.on(e,a),function(){return r==null?void 0:r.off(e,a)}}},[r,e,t]),r?o:null}function cH(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(r){r(n)}),(e.get("*")||[]).slice().map(function(r){r(t,n)})}}}function fH(e){var t=e.children,n=q.useMemo(function(){return cH()},[]);return z(F5.Provider,{value:n,children:t})}function Yg(){return Yg=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},Yg.apply(this,arguments)}function B5(e){var t=e.hideTooltipDebounceMs,n=t===void 0?400:t,r=e.children,i=As(void 0),o=i.tooltipOpen,a=i.tooltipLeft,s=i.tooltipTop,u=i.tooltipData,l=i.updateTooltip,c=i.hideTooltip,f=q.useRef(null);function h(){f.current&&(f.current.cancel(),f.current=null)}q.useEffect(function(){return h},[]);var d=q.useRef(function(g){var y=g.svgPoint,v=g.index,x=g.key,b=g.datum,_=g.distanceX,w=g.distanceY;h();var $=Gt(_)?_:1/0,M=Gt(w)?w:1/0,k=Math.sqrt(Math.pow($,2)+Math.pow(M,2));l(function(S){var T,A,P,O=S.tooltipData,E=O!=null&&O.nearestDatum&&Gt(O.nearestDatum.distance)?O.nearestDatum.distance:1/0;return{tooltipOpen:!0,tooltipLeft:y==null?void 0:y.x,tooltipTop:y==null?void 0:y.y,tooltipData:{nearestDatum:((T=O==null||(A=O.nearestDatum)==null?void 0:A.key)!=null?T:"")!==x&&E<k?O==null?void 0:O.nearestDatum:{key:x,index:v,datum:b,distance:k},datumByKey:Yg({},O==null?void 0:O.datumByKey,(P={},P[x]={datum:b,index:v,key:x},P))}}})}),p=q.useCallback(function(){f.current=I_(c,n),f.current()},[c,n]),m=q.useMemo(function(){return{tooltipOpen:o,tooltipLeft:a,tooltipTop:s,tooltipData:u,updateTooltip:l,showTooltip:d.current,hideTooltip:p}},[p,u,a,o,s,l]);return z(cu.Provider,{value:m,children:r})}B5.propTypes={hideTooltipDebounceMs:B.number,children:B.node.isRequired};var hH=tt(TP),hu={},Gg={};Gg.__esModule=!0,Gg.default=dH;function dH(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}var Xg={};Xg.__esModule=!0,Xg.default=pH;function pH(e,t){t.range&&("padding"in e,e.range(t.range))}var Kg={};Kg.__esModule=!0,Kg.default=gH;function gH(e,t){"align"in e&&"align"in t&&typeof t.align!="undefined"&&e.align(t.align)}var Qg={};Qg.__esModule=!0,Qg.default=mH;function mH(e,t){"base"in e&&"base"in t&&typeof t.base!="undefined"&&e.base(t.base)}var Zg={};Zg.__esModule=!0,Zg.default=yH;function yH(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp!="undefined"&&e.clamp(t.clamp)}var Jg={};Jg.__esModule=!0,Jg.default=vH;function vH(e,t){"constant"in e&&"constant"in t&&typeof t.constant!="undefined"&&e.constant(t.constant)}var em={};em.__esModule=!0,em.default=bH;function bH(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent!="undefined"&&e.exponent(t.exponent)}var tm={},nm={},j5=tt(RP);nm.__esModule=!0,nm.default=xH;var ti=j5,W5={lab:ti.interpolateLab,hcl:ti.interpolateHcl,"hcl-long":ti.interpolateHclLong,hsl:ti.interpolateHsl,"hsl-long":ti.interpolateHslLong,cubehelix:ti.interpolateCubehelix,"cubehelix-long":ti.interpolateCubehelixLong,rgb:ti.interpolateRgb};function xH(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return W5[e]}var t=e.type,n=e.gamma,r=W5[t];return typeof n=="undefined"?r:r.gamma(n)}tm.__esModule=!0,tm.default=$H;var wH=_H(nm);function _H(e){return e&&e.__esModule?e:{default:e}}function $H(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate!="undefined"){var n=(0,wH.default)(t.interpolate);e.interpolate(n)}}var rm={},SH=tt(IP),im={};im.__esModule=!0,im.default=kH;var MH=new Date(Date.UTC(2020,1,2,3,4,5)),TH="%Y-%m-%d %H:%M";function kH(e){var t=e.tickFormat(1,TH)(MH);return t==="2020-02-02 03:04"}rm.__esModule=!0,rm.default=PH;var Xt=SH,OH=CH(im);function CH(e){return e&&e.__esModule?e:{default:e}}var H5={day:Xt.timeDay,hour:Xt.timeHour,minute:Xt.timeMinute,month:Xt.timeMonth,second:Xt.timeSecond,week:Xt.timeWeek,year:Xt.timeYear},q5={day:Xt.utcDay,hour:Xt.utcHour,minute:Xt.utcMinute,month:Xt.utcMonth,second:Xt.utcSecond,week:Xt.utcWeek,year:Xt.utcYear};function PH(e,t){if("nice"in t&&typeof t.nice!="undefined"&&"nice"in e){var n=t.nice;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{var r=e,i=(0,OH.default)(r);if(typeof n=="string")r.nice(i?q5[n]:H5[n]);else{var o=n.interval,a=n.step,s=(i?q5[o]:H5[o]).every(a);s!=null&&r.nice(s)}}}}var om={};om.__esModule=!0,om.default=EH;function EH(e,t){"padding"in e&&"padding"in t&&typeof t.padding!="undefined"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner!="undefined"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter!="undefined"&&e.paddingOuter(t.paddingOuter)}var am={};am.__esModule=!0,am.default=AH;function AH(e,t){if(t.reverse){var n=e.range().slice().reverse();"padding"in e,e.range(n)}}var sm={};sm.__esModule=!0,sm.default=RH;var NH=j5;function RH(e,t){"round"in t&&typeof t.round!="undefined"&&(t.round&&"interpolate"in t&&typeof t.interpolate!="undefined"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(NH.interpolateRound))}var um={};um.__esModule=!0,um.default=LH;function LH(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown!="undefined"&&e.unknown(t.unknown)}var lm={};lm.__esModule=!0,lm.default=DH;function DH(e,t){if("zero"in t&&t.zero===!0){var n=e.domain(),r=n[0],i=n[1],o=i<r,a=o?[i,r]:[r,i],s=a[0],u=a[1],l=[Math.min(0,s),Math.max(0,u)];e.domain(o?l.reverse():l)}}hu.__esModule=!0,hu.ALL_OPERATORS=void 0,hu.default=ZH;var IH=Kt(Gg),zH=Kt(Xg),FH=Kt(Kg),BH=Kt(Qg),jH=Kt(Zg),WH=Kt(Jg),HH=Kt(em),qH=Kt(tm),UH=Kt(rm),VH=Kt(om),YH=Kt(am),GH=Kt(sm),XH=Kt(um),KH=Kt(lm);function Kt(e){return e&&e.__esModule?e:{default:e}}var U5=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"];hu.ALL_OPERATORS=U5;var QH={domain:IH.default,nice:UH.default,zero:KH.default,interpolate:qH.default,round:GH.default,align:FH.default,base:BH.default,clamp:jH.default,constant:WH.default,exponent:HH.default,padding:VH.default,range:zH.default,reverse:YH.default,unknown:XH.default};function ZH(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=new Set(t),i=U5.filter(function(o){return r.has(o)});return function(a,s){return typeof s!="undefined"&&i.forEach(function(u){QH[u](a,s)}),a}}var JH=iq,eq=hH,tq=nq(hu);function nq(e){return e&&e.__esModule?e:{default:e}}var rq=(0,tq.default)("domain","range","reverse","unknown");function iq(e){return rq((0,eq.scaleOrdinal)(),e)}var ni={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]},du=ni.gray,cm=du[7],oq=[ni.cyan[9],ni.cyan[3],ni.yellow[5],ni.red[4],ni.grape[8],ni.grape[5],ni.pink[9]];function Pe(){return Pe=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},Pe.apply(this,arguments)}var fm={fontFamily:"-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",fontWeight:700,fontSize:12,textAnchor:"middle",pointerEvents:"none",letterSpacing:.4};function aq(e){var t,n,r,i,o,a,s=Pe({},fm,{fill:cm,stroke:"none"},e.svgLabelBig),u=Pe({},fm,{fontWeight:200,fontSize:11,fill:cm,stroke:"none"},e.svgLabelSmall),l=Pe({color:(t=(n=(r=(i=e.htmlLabel)==null?void 0:i.color)!=null?r:(o=e.svgLabelBig)==null?void 0:o.fill)!=null?n:(a=e.svgLabelSmall)==null?void 0:a.fill)!=null?t:cm},fm,e.htmlLabel);return{backgroundColor:e.backgroundColor,colors:[].concat(e.colors),htmlLabel:Pe({},l),svgLabelSmall:Pe({},u),svgLabelBig:Pe({},s),gridStyles:Pe({stroke:e.gridColor,strokeWidth:1},e.gridStyles),axisStyles:{x:{top:{axisLabel:Pe({},s,{dy:"-0.25em"}),axisLine:Pe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Pe({},u,{dy:"-0.25em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)},bottom:{axisLabel:Pe({},s,{dy:"-0.25em"}),axisLine:Pe({stroke:e.gridColorDark,strokeWidth:2},e.xAxisLineStyles),tickLabel:Pe({},u,{dy:"0.125em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.xTickLineStyles)}},y:{left:{axisLabel:Pe({},s,{dx:"-1.25em"}),axisLine:Pe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Pe({},u,{textAnchor:"end",dx:"-0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)},right:{axisLabel:Pe({},s,{dx:"1.25em"}),axisLine:Pe({stroke:e.gridColor,strokeWidth:1},e.yAxisLineStyles),tickLabel:Pe({},u,{textAnchor:"start",dx:"0.25em",dy:"0.25em"}),tickLength:e.tickLength,tickLine:Pe({strokeWidth:1,stroke:e.gridColor},e.yTickLineStyles)}}}}}var sq=aq({backgroundColor:"#fff",colors:oq,tickLength:4,svgLabelSmall:{fill:du[7]},svgLabelBig:{fill:du[9]},gridColor:du[5],gridColorDark:du[9]}),uq=Z.default.createContext(sq),lq=uq,cq=function(){function e(){this.registry={},this.registryKeys=[]}var t=e.prototype;return t.registerData=function(r){var i=this,o=Array.isArray(r)?r:[r];o.forEach(function(a){a.key in i.registry&&i.registry[a.key]!=null&&console.debug("Overriding data registry key",a.key),i.registry[a.key]=a,i.registryKeys=Object.keys(i.registry)})},t.unregisterData=function(r){var i=this,o=Array.isArray(r)?r:[r];o.forEach(function(a){delete i.registry[a],i.registryKeys=Object.keys(i.registry)})},t.entries=function(){return Object.values(this.registry)},t.get=function(r){return this.registry[r]},t.keys=function(){return this.registryKeys},e}();function fq(){var e=q.useState(Math.random()),t=e[1],n=q.useMemo(function(){return new cq},[]);return q.useMemo(function(){return{registerData:function(){n.registerData.apply(n,arguments),t(Math.random())},unregisterData:function(){n.unregisterData.apply(n,arguments),t(Math.random())},entries:function(){return n.entries()},get:function(i){return n.get(i)},keys:function(){return n.keys()}}},[n])}var hm={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}};function hq(e){var t=q.useState({width:(e==null?void 0:e.width)==null?hm.width:e.width,height:(e==null?void 0:e.height)==null?hm.height:e.height,margin:(e==null?void 0:e.margin)==null?hm.margin:e.margin}),n=t[0],r=t[1],i=q.useCallback(function(o){(o.width!==n.width||o.height!==n.height||o.margin.left!==n.margin.left||o.margin.right!==n.margin.right||o.margin.top!==n.margin.top||o.margin.bottom!==n.margin.bottom)&&r(o)},[n.width,n.height,n.margin.left,n.margin.right,n.margin.bottom,n.margin.top]);return[n,i]}function dm(e){return(e==null?void 0:e.type)==="band"||(e==null?void 0:e.type)==="ordinal"||(e==null?void 0:e.type)==="point"}function pa(){return pa=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},pa.apply(this,arguments)}function dq(e){var t=e.dataRegistry,n=e.xRange,r=e.xScaleConfig,i=e.yRange,o=e.yScaleConfig,a=t.keys(),s=n[0],u=n[1],l=i[0],c=i[1],f=q.useMemo(function(){var d=a.map(function(y){return t.get(y)}),p=d.reduce(function(y,v){return v?y.concat(v.data.map(function(x){return v.xAccessor(x)})):y},[]);if(p.length!==0){var m=dm(r)?p:dx(p),g=gp(r)?Ts(pa({range:[s,u],domain:m,zero:!0},r)):Ts(pa({range:[s,u],domain:m},r));return d.forEach(function(y){y!=null&&y.xScale&&(g=y.xScale(g))}),g}},[t,r,a,s,u]),h=q.useMemo(function(){var d=a.map(function(y){return t.get(y)}),p=d.reduce(function(y,v){return v?y.concat(v.data.map(function(x){return v.yAccessor(x)})):y},[]);if(p.length!==0){var m=dm(o)?p:dx(p),g=gp(o)?Ts(pa({range:[l,c],domain:m,zero:!0},o)):Ts(pa({range:[l,c],domain:m},o));return d.forEach(function(y){y!=null&&y.yScale&&(g=y.yScale(g))}),g}},[t,o,a,l,c]);return{xScale:f,yScale:h}}function V5(e){var t=e.initialDimensions,n=e.theme,r=e.xScale,i=e.yScale,o=e.children,a=e.horizontal,s=a===void 0?"auto":a,u=e.resizeObserverPolyfill,l=q.useContext(lq),c=n||l,f=hq(t),h=f[0],d=h.width,p=h.height,m=h.margin,g=f[1],y=Math.max(0,d-m.left-m.right),v=Math.max(0,p-m.top-m.bottom),x=fq(),b=dq({dataRegistry:x,xScaleConfig:r,yScaleConfig:i,xRange:[m.left,Math.max(0,d-m.right)],yRange:[Math.max(0,p-m.bottom),m.top]}),_=b.xScale,w=b.yScale,$=x.keys(),M=q.useMemo(function(){return JH({domain:$,range:c.colors})},[$,c.colors]),k=s==="auto"?dm(i)||i.type==="time"||i.type==="utc":s,S=q.useMemo(function(){return{dataRegistry:x,registerData:x.registerData,unregisterData:x.unregisterData,xScale:_,yScale:w,colorScale:M,theme:c,width:d,height:p,margin:m,innerWidth:y,innerHeight:v,setDimensions:g,horizontal:k,resizeObserverPolyfill:u}},[M,x,p,k,v,y,m,g,c,d,_,w,u]);return z(tr.Provider,{value:S,children:o})}V5.propTypes={children:B.node.isRequired,horizontal:B.oneOfType([B.bool,B.oneOf(["auto"])])};function Y5(e){var t=e.source,n=e.onPointerOut,r=n===void 0?!0:n,i=e.onPointerMove,o=i===void 0?!0:i,a=e.onPointerUp,s=a===void 0?!0:a,u=e.onPointerDown,l=u===void 0?!0:u,c=e.onFocus,f=c===void 0?!1:c,h=e.onBlur,d=h===void 0?!1:h,p=ei(),m=q.useCallback(function(_){return p==null?void 0:p("pointermove",_,t)},[p,t]),g=q.useCallback(function(_){return p==null?void 0:p("pointerout",_,t)},[p,t]),y=q.useCallback(function(_){return p==null?void 0:p("pointerup",_,t)},[p,t]),v=q.useCallback(function(_){return p==null?void 0:p("pointerdown",_,t)},[p,t]),x=q.useCallback(function(_){return p==null?void 0:p("focus",_,t)},[p,t]),b=q.useCallback(function(_){return p==null?void 0:p("blur",_,t)},[p,t]);return{onPointerMove:o?m:void 0,onFocus:f?x:void 0,onBlur:d?b:void 0,onPointerOut:r?g:void 0,onPointerUp:s?y:void 0,onPointerDown:l?v:void 0}}var pq="GLYPHSERIES_EVENT_SOURCE",gq="LINESERIES_EVENT_SOURCE",Of="XYCHART_EVENT_SOURCE";function G5(e){return!!e&&("clientX"in e||"changedTouches"in e)}function mq(e){return!!e&&!G5(e)}function X5(e){var t=e.scale,n=e.accessor,r=e.scaledValue,i=e.data,o=t,a,s;if("invert"in o&&typeof o.invert=="function"){var u=Kl(n).left,l=Number(o.invert(r)),c=u(i,l),f=i[c-1],h=i[c];a=!f||Math.abs(l-n(f))>Math.abs(l-n(h))?h:f,s=a===f?c-1:c}else if("step"in o&&typeof o.step!="undefined"){var d=t.domain(),p=t.range().map(Number),m=[].concat(p).sort(function(w,$){return w-$}),g=wx(m[0],m[1],o.step()),y=UC(g,r),v=p[0]<p[1]?d:d.reverse(),x=v[y-1],b=i.findIndex(function(w){return String(n(w))===String(x)});a=i[b],s=b}else return console.warn("[visx/xychart/findNearestDatum] encountered incompatible scale type, bailing"),null;if(a==null||s==null)return null;var _=Math.abs(Number(o(n(a)))-r);return{datum:a,index:s,distance:_}}function yq(e){var t=e.xScale,n=e.xAccessor,r=e.yScale,i=e.yAccessor,o=e.point,a=e.data;if(!o)return null;var s=X5({scale:t,accessor:n,scaledValue:o.x,data:a});return s?{datum:s.datum,index:s.index,distanceX:s.distance,distanceY:Math.abs(Number(r(i(s.datum)))-o.y)}:null}function vq(e){var t=e.yScale,n=e.yAccessor,r=e.xScale,i=e.xAccessor,o=e.point,a=e.data;if(!o)return null;var s=X5({scale:t,accessor:n,scaledValue:o.y,data:a});return s?{datum:s.datum,index:s.index,distanceY:s.distance,distanceX:Math.abs(Number(r(i(s.datum)))-o.x)}:null}function pm(){return pm=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},pm.apply(this,arguments)}var gm="__POINTER_EVENTS_ALL",Cf="__POINTER_EVENTS_NEAREST";function K5(e){var t=e.dataKey,n=e.findNearestDatum,r=e.onBlur,i=e.onFocus,o=e.onPointerMove,a=e.onPointerOut,s=e.onPointerUp,u=e.onPointerDown,l=e.allowedSources,c=q.useContext(tr),f=c.width,h=c.height,d=c.horizontal,p=c.dataRegistry,m=c.xScale,g=c.yScale,y=n||(d?vq:yq),v=q.useCallback(function(k){var S=k||{},T=S.svgPoint,A=S.event,P={},O=null,E=1/0;if(k&&A&&T&&f&&h&&m&&g){var C,R=t===Cf||t===gm,D=R?(C=p==null?void 0:p.keys())!=null?C:[]:Array.isArray(t)?t:[t];D.forEach(function(F){var W=p==null?void 0:p.get(F);if(W){var U=y({dataKey:F,data:W.data,height:h,point:T,width:f,xAccessor:W.xAccessor,xScale:m,yAccessor:W.yAccessor,yScale:g});if(U&&(P[F]=pm({key:F,svgPoint:T,event:A},U),t===Cf)){var te,Q,J=Math.sqrt(((te=U.distanceX)!=null?te:Math.pow(1/0,2))+((Q=U.distanceY)!=null?Q:Math.pow(1/0,2)));O=J<E?P[F]:O,E=Math.min(E,J)}}});var L=t===Cf?[O]:t===gm||Array.isArray(t)?Object.values(P):[P[t]];return L.filter(function(F){return F})}return[]},[t,p,m,g,f,h,y]),x=q.useCallback(function(k){o&&v(k).forEach(function(S){return o(S)})},[v,o]),b=q.useCallback(function(k){s&&v(k).forEach(function(S){return s(S)})},[v,s]),_=q.useCallback(function(k){u&&v(k).forEach(function(S){return u(S)})},[v,u]),w=q.useCallback(function(k){i&&v(k).forEach(function(S){return i(S)})},[v,i]),$=q.useCallback(function(k){var S=k==null?void 0:k.event;S&&G5(S)&&a&&a(S)},[a]),M=q.useCallback(function(k){var S=k==null?void 0:k.event;S&&mq(S)&&r&&r(S)},[r]);ei("pointermove",o?x:void 0,l),ei("pointerout",a?$:void 0,l),ei("pointerup",s?b:void 0,l),ei("pointerdown",u?_:void 0,l),ei("focus",i?w:void 0,l),ei("blur",r?M:void 0,l)}var bq={top:50,right:50,bottom:50,left:50},xq=[Of];function ga(e){var t=e.accessibilityLabel,n=t===void 0?"XYChart":t,r=e.captureEvents,i=r===void 0?!0:r,o=e.children,a=e.height,s=e.horizontal,u=e.margin,l=u===void 0?bq:u,c=e.onPointerMove,f=e.onPointerOut,h=e.onPointerUp,d=e.onPointerDown,p=e.pointerEventsDataKey,m=p===void 0?"nearest":p,g=e.theme,y=e.width,v=e.xScale,x=e.yScale,b=e.resizeObserverPolyfill,_=q.useContext(tr),w=_.setDimensions,$=_.resizeObserverPolyfill,M=q.useContext(cu),k=ei();q.useEffect(function(){w&&y!=null&&a!=null&&y>0&&a>0&&w({width:y,height:a,margin:l})},[w,y,a,l]);var S=Y5({source:Of});return K5({dataKey:m==="nearest"?Cf:gm,onPointerMove:c,onPointerOut:f,onPointerUp:h,onPointerDown:d,allowedSources:xq}),w?y==null||a==null?z(nH,{resizeObserverPolyfill:$,children:function(T){return z(ga,{...e,width:e.width==null?T.width:e.width,height:e.height==null?T.height:e.height})}}):M==null?z(B5,{children:z(ga,{...e})}):k==null?z(fH,{children:z(ga,{...e})}):y<=0||a<=0?(console.info("XYChart has a zero width or height, bailing",{width:y,height:a}),null):ae("svg",{width:y,height:a,"aria-label":n,children:[o,i&&z("rect",{x:l.left,y:l.top,width:y-l.left-l.right,height:a-l.top-l.bottom,fill:"transparent",...S})]}):!v||!x?(console.warn("[@visx/xychart] XYChart: When no DataProvider is available in context, you must pass xScale & yScale config to XYChart."),null):z(V5,{xScale:v,yScale:x,theme:g,initialDimensions:{width:y,height:a,margin:l},horizontal:s,resizeObserverPolyfill:b,children:z(ga,{...e})})}ga.propTypes={accessibilityLabel:B.string,captureEvents:B.bool,width:B.number,height:B.number,children:B.node.isRequired,horizontal:B.oneOfType([B.bool,B.oneOf(["auto"])]),onPointerMove:B.func,onPointerOut:B.func,onPointerUp:B.func,onPointerDown:B.func,pointerEventsDataKey:B.oneOf(["all","nearest"])};var wq=Tq,mm=Q5(Z.default),_q=Q5(Ao.exports),$q=Kr,Sq=["children","data","x","y","fill","className","curve","innerRef","defined"];function Q5(e){return e&&e.__esModule?e:{default:e}}function ym(){return ym=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},ym.apply(this,arguments)}function Mq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Tq(e){var t=e.children,n=e.data,r=n===void 0?[]:n,i=e.x,o=e.y,a=e.fill,s=a===void 0?"transparent":a,u=e.className,l=e.curve,c=e.innerRef,f=e.defined,h=f===void 0?function(){return!0}:f,d=Mq(e,Sq),p=(0,$q.line)({x:i,y:o,defined:h,curve:l});return t?mm.default.createElement(mm.default.Fragment,null,t({path:p})):mm.default.createElement("path",ym({ref:c,className:(0,_q.default)("visx-linepath",u),d:p(r)||"",fill:s,strokeLinecap:"round"},d))}function kq(e){function t(n){var r=n.dataKey,i=n.data,o=n.xAccessor,a=n.yAccessor,s=q.useContext(tr),u=s.xScale,l=s.yScale,c=s.dataRegistry;q.useEffect(function(){return c&&c.registerData({key:r,data:i,xAccessor:o,yAccessor:a}),function(){return c==null?void 0:c.unregisterData(r)}},[c,r,i,o,a]);var f=c==null?void 0:c.get(r);if(!u||!l||!f)return null;var h=e;return z(h,{...n,xScale:u,yScale:l,data:f.data,xAccessor:f.xAccessor,yAccessor:f.yAccessor})}return t}function Pf(e,t,n){return n===void 0&&(n="center"),function(r){var i=e(t(r));if(Gt(i)){var o=(n==="start"?0:Bg(e))/(n==="center"?2:1);return i+o}return NaN}}function Z5(e){var t,n=e.dataKey,r=e.enableEvents,i=e.findNearestDatum,o=e.onBlur,a=e.onFocus,s=e.onPointerMove,u=e.onPointerOut,l=e.onPointerUp,c=e.onPointerDown,f=e.source,h=e.allowedSources,d=(t=q.useContext(cu))!=null?t:{},p=d.showTooltip,m=d.hideTooltip,g=q.useCallback(function(_){p(_),s&&s(_)},[p,s]),y=q.useCallback(function(_){p(_),a&&a(_)},[p,a]),v=q.useCallback(function(_){m(),_&&u&&u(_)},[m,u]),x=q.useCallback(function(_){m(),_&&o&&o(_)},[m,o]),b=q.useCallback(function(_){p(_),c&&c(_)},[p,c]);return K5({dataKey:n,findNearestDatum:i,onBlur:r?x:void 0,onFocus:r?y:void 0,onPointerMove:r?g:void 0,onPointerOut:r?v:void 0,onPointerUp:r?l:void 0,onPointerDown:r?b:void 0,allowedSources:h}),Y5({source:f,onBlur:!!o&&r,onFocus:!!a&&r,onPointerMove:!!s&&r,onPointerOut:!!u&&r,onPointerUp:!!l&&r,onPointerDown:!!c&&r})}function vm(){return vm=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},vm.apply(this,arguments)}function J5(e){var t,n,r,i=e.colorAccessor,o=e.data,a=e.dataKey,s=e.onBlur,u=e.onFocus,l=e.onPointerMove,c=e.onPointerOut,f=e.onPointerUp,h=e.onPointerDown,d=e.enableEvents,p=d===void 0?!0:d,m=e.renderGlyphs,g=e.size,y=g===void 0?8:g,v=e.xAccessor,x=e.xScale,b=e.yAccessor,_=e.yScale,w=q.useContext(tr),$=w.colorScale,M=w.theme,k=w.horizontal,S=q.useMemo(function(){return Pf(x,v)},[x,v]),T=q.useMemo(function(){return Pf(_,b)},[_,b]),A=(t=(n=$==null?void 0:$(a))!=null?n:M==null||(r=M.colors)==null?void 0:r[0])!=null?t:"#222",P=pq+"-"+a,O=Z5({dataKey:a,enableEvents:p,onBlur:s,onFocus:u,onPointerMove:l,onPointerOut:c,onPointerUp:f,onPointerDown:h,source:P,allowedSources:[Of,P]}),E=q.useMemo(function(){return o.map(function(C,R){var D,L=S(C);if(!Gt(L))return null;var F=T(C);return Gt(F)?{key:""+R,x:L,y:F,color:(D=i==null?void 0:i(C,R))!=null?D:A,size:typeof y=="function"?y(C):y,datum:C}:null}).filter(function(C){return C})},[A,i,o,S,T,y]);return z(Jt,{children:m(vm({glyphs:E,xScale:x,yScale:_,horizontal:k},O))})}J5.propTypes={colorAccessor:B.func,size:B.oneOfType([B.number,B.func]),renderGlyphs:B.func.isRequired};function Oq(e){var t=e.key,n=e.color,r=e.x,i=e.y,o=e.size,a=e.onBlur,s=e.onFocus,u=e.onPointerMove,l=e.onPointerOut,c=e.onPointerUp;return Z.default.createElement("circle",{className:"visx-circle-glyph",key:t,tabIndex:a||s?0:void 0,fill:n,r:o/2,cx:r,cy:i,onBlur:a,onFocus:s,onPointerMove:u,onPointerOut:l,onPointerUp:c})}var Cq=["colorAccessor","curve","data","dataKey","onBlur","onFocus","onPointerMove","onPointerOut","onPointerUp","onPointerDown","enableEvents","xAccessor","xScale","yAccessor","yScale","PathComponent"];function bm(){return bm=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},bm.apply(this,arguments)}function Pq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function e3(e){var t,n,r,i=e.colorAccessor,o=e.curve,a=e.data,s=e.dataKey,u=e.onBlur,l=e.onFocus,c=e.onPointerMove,f=e.onPointerOut,h=e.onPointerUp,d=e.onPointerDown,p=e.enableEvents,m=p===void 0?!0:p,g=e.xAccessor,y=e.xScale,v=e.yAccessor,x=e.yScale,b=e.PathComponent,_=b===void 0?"path":b,w=Pq(e,Cq),$=q.useContext(tr),M=$.colorScale,k=$.theme,S=q.useMemo(function(){return Pf(y,g)},[y,g]),T=q.useMemo(function(){return Pf(x,v)},[x,v]),A=q.useCallback(function(D){return Gt(y(g(D)))&&Gt(x(v(D)))},[y,g,x,v]),P=(t=(n=M==null?void 0:M(s))!=null?n:k==null||(r=k.colors)==null?void 0:r[0])!=null?t:"#222",O=gq+"-"+s,E=Z5({dataKey:s,enableEvents:m,onBlur:u,onFocus:l,onPointerMove:c,onPointerOut:f,onPointerUp:h,onPointerDown:d,source:O,allowedSources:[Of,O]}),C=Boolean(l||u),R=q.useCallback(function(D){var L=D.glyphs;return C?L.map(function(F){return z(Jt,{children:Oq(bm({},F,{color:"transparent",onFocus:E.onFocus,onBlur:E.onBlur}))})}):null},[C,E.onFocus,E.onBlur]);return ae(Jt,{children:[z(wq,{x:S,y:T,defined:A,curve:o,...w,children:function(D){var L,F=D.path;return z(_,{stroke:(L=i==null?void 0:i(s))!=null?L:P,strokeWidth:2,fill:"transparent",strokeLinecap:"round",...w,d:F(a)||"",...E})}}),C&&z(J5,{dataKey:s,data:a,xAccessor:g,yAccessor:v,xScale:y,yScale:x,renderGlyphs:R})]})}e3.propTypes={colorAccessor:B.func};var Eq=kq(e3);function Aq(e){return Z.default.createElement(Eq,e)}var zle="";const Nq={top:40,right:0,bottom:35,left:20},Rq=({theme:e,width:t,height:n,events:r=!1,value:i})=>{var _,w,$,M,k,S,T,A,P,O,E,C,R,D;const o=Nq;As();const a=(_=i==null?void 0:i.main)==null?void 0:_.data,s=Object.keys(a[0]).filter(L=>L!==i.main.xAxisValue),u=a.map(L=>L[i.main.xAxisValue]),l=Bi({domain:u}),c=Wo({domain:[0,Math.max(...a.flatMap(L=>s.map(F=>L[F])))]}),f=c.ticks(),h=7,p=Math.max(...f.map(L=>String(L||"").length))*h+10,m=l.domain(),g=4,v=Math.max(...m.map(L=>String(L||"").length))*g+10;o.left=p+20,o.bottom=(w=i.main)!=null&&w.bottomAxisAngle?v+35:o.bottom;const x=t-o.left-o.right,b=n-o.top-o.bottom;return c.range([b+40,40]),l.rangeRound([o.left,x+o.left]),ae(Jt,{children:[i.main.legendAvailable&&z(Ls,{value:i,dataKeyArray:s,theme:e.myTheme}),ae(ga,{margin:o,width:t,height:n,xScale:{type:"band",scale:l},yScale:{type:"linear",scale:c},children:[z(E5,{orientation:"left",hideAxisLine:i.main.hideLeftAxisLine,label:i.main.leftLabel,labelOffset:p||((M=($=i.style)==null?void 0:$.labelStyle)==null?void 0:M.leftLabelOffset)||20,labelProps:{fill:((S=(k=i.style)==null?void 0:k.labelStyle)==null?void 0:S.labelColor)||"black",fontSize:((A=(T=i.style)==null?void 0:T.labelStyle)==null?void 0:A.fontSize)||"12px",fontWeight:"normal"},tickLabelProps:L=>{var F,W;return{fill:((W=(F=i.style)==null?void 0:F.labelStyle)==null?void 0:W.labelColor)||"black",fontSize:10,textAnchor:"end",dy:"0.33em"}}}),z(E5,{orientation:"bottom",hideAxisLine:i.main.hideBottomAxisLine,label:i.main.bottomLabel,labelProps:{fill:((O=(P=i.style)==null?void 0:P.labelStyle)==null?void 0:O.labelColor)||"black",fontSize:((C=(E=i.style)==null?void 0:E.labelStyle)==null?void 0:C.fontSize)||"12px",fontWeight:"normal"},tickLabelProps:L=>{var F,W,U,te;return{fill:((W=(F=i.style)==null?void 0:F.labelStyle)==null?void 0:W.labelColor)||"black",fontSize:10,textAnchor:(U=i.main)!=null&&U.bottomAxisAngle?"start":"middle",angle:(te=i.main)!=null&&te.bottomAxisAngle?45:0}},tickStroke:"black",labelOffset:v||((D=(R=i.style)==null?void 0:R.labelStyle)==null?void 0:D.bottomLabelOffset)||20}),z(KW,{stroke:"black",lineStyle:{opacity:.2},strokeDasharray:"8 3",strokeWidth:.3}),s==null?void 0:s.map((L,F)=>{var W,U,te,Q,J,ue;return ae(Jt,{children:[z(Aq,{dataKey:L,data:a,fill:(U=(W=i.style)==null?void 0:W.lineStyle)==null?void 0:U.lineAreaColor,fillOpacity:(Q=(te=i.style)==null?void 0:te.lineStyle)==null?void 0:Q.lineAreaOpacity,floodColor:"green",floodOpacity:1,stroke:(ue=(J=i.style)==null?void 0:J.lineStyle)==null?void 0:ue.colorRange[F],xAccessor:re=>re[i.main.xAxisValue],yAccessor:re=>re[L]}),a.map((re,oe)=>z("circle",{cx:l(re[i.main.xAxisValue])+l.bandwidth()/2,cy:c(re[L]),r:3,fill:"white",stroke:"black",strokeWidth:1},oe))]})}),z(L5,{style:{...Go,backgroundColor:e.myTheme.palette.secondary.main},snapTooltipToDatumX:!0,snapTooltipToDatumY:!0,showVerticalCrosshair:!0,showSeriesGlyphs:!0,renderTooltip:({tooltipData:L})=>Object.keys(L.datumByKey).map((F,W)=>{var U,te;return ae("div",{style:{display:"flex",marginBottom:"2.5px",marginTop:"2.5px"},children:[z("span",{style:{backgroundColor:(te=(U=i.style)==null?void 0:U.lineStyle)==null?void 0:te.colorRange[W],width:"15px",height:"15px",marginRight:"5px"}}),z("span",{style:{marginRight:"5px"},children:ae("span",{style:{fontWeight:"normal",color:"black"},children:[F,": "]})}),z("span",{style:{fontWeight:"normal",color:"black"},children:L.datumByKey[F].datum[F]})]})})})]})]})},Lq=({value:e,theme:t})=>{var r,i,o,a;const n=zc("LineGraph",e,t);return ae("div",{style:(r=n==null?void 0:n.style)==null?void 0:r.containerStyle,children:[((i=n==null?void 0:n.main)==null?void 0:i.header)&&z("div",{style:(o=n==null?void 0:n.style)==null?void 0:o.headerStyle,children:(a=n==null?void 0:n.main)==null?void 0:a.header}),z(zs,{children:s=>{var u,l;return z(Rq,{theme:t,width:s.width||800,height:parseInt(((l=(u=n==null?void 0:n.style)==null?void 0:u.containerStyle)==null?void 0:l.height)||400),value:n})}})]})};var Dq=({theme:e,width:t=600,height:n=400,events:r=!1,margin:i,barValue:o})=>{var F,W,U,te,Q,J,ue,re,oe,I,V,ee,N;const[a,s]=q.useState({date:null,city:null}),u=(F=o==null?void 0:o.main)==null?void 0:F.data,l=Object.keys(u[0]).filter(Y=>Y!==o.main.xAxisValue),c=u.reduce((Y,j)=>{const H=l.reduce((X,ne)=>(X+=Number(j[ne]),X),0);return Y.push(H),Y},[]),f=Y=>Y[o.main.xAxisValue],h=Wo({domain:((W=o==null?void 0:o.main)==null?void 0:W.type)==="HorizontalStackBarGraph"?[0,Math.max(...c)]:[0,Math.max(...u.map(Y=>Math.max(...l.map(j=>Number(Y[j])))))],nice:!0}),d=Bi({domain:u.map(f),padding:.4}),p=Bi({domain:l}),m=Ho({domain:l,range:o.style.barStyle.colorRange}),g=7;let y=[];y=d.domain();const x=Math.max(...y.map(Y=>String(Y||"").length))*g+10,b=5;let _=[];_=h.ticks();const $=Math.max(..._.map(Y=>String(Y||"").length))*b+10;i.left=x+20,i.bottom=(U=o.main)!=null&&U.bottomAxisAngle?$+40:i.bottom;const M=t-i.left-i.right,k=n-i.top-i.bottom;h.rangeRound([0,M]),d.rangeRound([k,0]),p.rangeRound([0,d.bandwidth()]);const{tooltipData:S,tooltipLeft:T,tooltipTop:A,tooltipOpen:P,showTooltip:O,hideTooltip:E}=As(),C=(Y,j,H)=>{s({date:H,city:j.index}),O({tooltipLeft:Y.clientX,tooltipTop:Y.clientY,tooltipData:{groupData:u[H.index],highlightedBar:j}})},R=Y=>{s({date:null,city:null}),E()},D=(Y,j,H)=>{s({date:H,city:j.index}),O({tooltipLeft:Y.clientX,tooltipTop:Y.clientY,tooltipData:{groupData:u[j.index],highlightedBar:j}})};function L(Y){return Y==null?void 0:Y.bars.reduce((j,H)=>j+Math.min(H.height,15),0)}return t<10?null:ae("div",{children:[((te=o==null?void 0:o.main)==null?void 0:te.legendAvailable)&&l.length>1&&z(Ls,{dataKeyArray:l,colorRange:o.style.barStyle.colorRange,value:o,theme:e.myTheme}),ae("svg",{width:t,height:n,children:[z("rect",{x:0,y:0,width:t,height:n,fill:o.style.containerStyle.background||"#612efb"}),z(Hp,{top:i.top,left:i.left,xScale:h,yScale:d,width:M,height:k,stroke:"black",xOffset:d.bandwidth()/50,strokeDasharray:"8 3",strokeOpacity:.2,strokeWidth:.3}),ae(je,{top:i.top,left:i.left,children:[a&&z("rect",{style:{display:a.date?"block":"none"},y:o.main.type==="HorizontalStackBarGraph"?((Q=a==null?void 0:a.date)==null?void 0:Q.bars[a.city].y)-(Math.min((J=a==null?void 0:a.date)==null?void 0:J.bars[0].height,15)-((ue=a==null?void 0:a.date)==null?void 0:ue.bars[0].height))/2:((re=a.date)==null?void 0:re.y0)-(Math.min((oe=a==null?void 0:a.date)==null?void 0:oe.bars[0].height,15)-((I=a==null?void 0:a.date)==null?void 0:I.bars[0].height))||0,width:M,height:o.main.type!=="HorizontalStackBarGraph"?L(a==null?void 0:a.date):Math.min((V=a==null?void 0:a.date)==null?void 0:V.bars[0].height,15),fill:(N=(ee=o.style)==null?void 0:ee.barStyle)==null?void 0:N.hoverBackgroundColor,opacity:1}),o.main.type==="HorizontalStackBarGraph"?z(RC,{data:u,keys:l,height:k,y:f,xScale:h,yScale:d,color:m,children:Y=>Y.map(j=>j.bars.map(H=>z("rect",{x:H.x,y:H.y-(Math.min(H.height,15)-H.height)/2,width:H.width,height:Math.min(H.height,15),fill:H.color,onMouseOver:X=>D(X,H,j),onMouseOut:X=>R(),stroke:a.city===H.index?"black":"transparent"},`barstack-horizontal-${j.index}-${H.index}`)))}):z(OC,{data:u,keys:l,width:M,height:k,y0:f,y0Scale:d,y1Scale:p,xScale:h,color:(Y,j)=>{const H=m(Y),X=`${m(Y)}50`;return(a==null?void 0:a.city)!==null?j===(a==null?void 0:a.city)?H:X:H},children:Y=>Y.map(j=>z(je,{top:j.y0,children:j.bars.map(H=>{const X=Math.min(H.height,15),ne=H.index===0?H.y-(X-H.height):H.y;return z("rect",{y:ne,x:H.x,width:H.width,height:X,fill:H.color,onMouseOver:fe=>C(fe,H,j),onMouseOut:fe=>R(),stroke:a.city===H.index?"black":"transparent"},`bar-group-bar-${j.index}-${H.index}-${H.value}-${H.key}`)})},`bar-group-${j.index}-${j.y0}`))}),z(h_,{value:o,yScale:d,parentWidth:t}),z(d_,{value:o,yMax:k,xScale:h,parentWidth:t})]})]}),P&&S&&z(w_,{value:o,theme:e,top:A,left:T,tooltipData:S,colorScale:m})]})};const Iq=({value:e,theme:t})=>{var i,o;const n=zc("HorizontalBarGraph",e,t);let r=z(zs,{children:a=>{var s,u,l,c,f,h,d,p,m,g,y,v,x,b;return z(Dq,{theme:t,width:a.width,height:parseInt(((u=(s=n==null?void 0:n.style)==null?void 0:s.containerStyle)==null?void 0:u.height)||400),margin:{top:((f=(c=(l=n==null?void 0:n.style)==null?void 0:l.labelStyle)==null?void 0:c.margin)==null?void 0:f.top)||10,right:((p=(d=(h=n==null?void 0:n.style)==null?void 0:h.labelStyle)==null?void 0:d.margin)==null?void 0:p.right)||40,bottom:((y=(g=(m=n==null?void 0:n.style)==null?void 0:m.labelStyle)==null?void 0:g.margin)==null?void 0:y.bottom)||40,left:((b=(x=(v=n==null?void 0:n.style)==null?void 0:v.labelStyle)==null?void 0:x.margin)==null?void 0:b.left)||60},barValue:n})}});return ae("div",{style:n.style.containerStyle,children:[((i=n.main)==null?void 0:i.header)&&z("div",{style:n.style.headerStyle,children:(o=n==null?void 0:n.main)==null?void 0:o.header}),r]})};var Fle="";const zq=({value:e,theme:t})=>{var a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$,M,k,S,T,A,P,O,E,C,R,D,L,F,W,U,te,Q,J,ue,re,oe,I,V,ee,N,Y,j,H,X,ne,fe,He,xe,St,pt;const[n,r]=q.useState(((s=(a=e==null?void 0:e.main)==null?void 0:a.data)==null?void 0:s.achieved)/((l=(u=e==null?void 0:e.main)==null?void 0:u.data)==null?void 0:l.total)*100);q.useEffect(()=>{var ct,qe,Ze,Je;r(((qe=(ct=e==null?void 0:e.main)==null?void 0:ct.data)==null?void 0:qe.achieved)/((Je=(Ze=e==null?void 0:e.main)==null?void 0:Ze.data)==null?void 0:Je.total)*100)},[e.main.data]);const i=()=>[`${t.myTheme.palette.grey[300]}`,`${t.myTheme.palette.primary.dark}`],o=Et(({className:ct,...qe})=>z(yW,{...qe,classes:{popper:ct}}))(({})=>({[`& .${Er.tooltip}`]:{"& .MuiTooltip-arrow":{color:t.myTheme.palette.secondary.main},backgroundColor:t.myTheme.palette.secondary.main,color:t.myTheme.palette.text.primary,fontSize:11,boxShadow:`1px 2px ${t.myTheme.palette.secondary.dark}`}}));return(c=e==null?void 0:e.main)!=null&&c.developOnlyProgresBar?z(o,{arrow:!0,title:ae(Jt,{children:[ae("div",{style:{fontWeight:"normal",textAlign:"center"},children:[" ","Target Achieved"," "]}),ae("div",{style:{fontWeight:"bold",textAlign:"center"},children:[" ",(h=(f=e==null?void 0:e.main)==null?void 0:f.data)==null?void 0:h.achieved]})]}),placement:"top-end",theme:t,children:z(at,{className:"progress-bar-fill",sx:{width:n>100?"100%":`${n}%`,backgroundColor:i()[1],height:"100%",borderRadius:"10px",marginBottom:"0px",transition:"width 0.5 ease-out",position:"relative",border:"1px solid transparent","&:hover":{border:"1px solid black"}},children:z("div",{style:{borderRadius:"50%",width:"7px",height:"7px",backgroundColor:`${t.myTheme.palette.common.white}`,position:"absolute",top:"2px",right:"2px"}})})}):ae("div",{className:"container",style:{backgroundColor:(p=(d=t.myTheme)==null?void 0:d.palette)==null?void 0:p.background.main,color:(y=(g=(m=t.myTheme)==null?void 0:m.palette)==null?void 0:g.text)==null?void 0:y.primary,width:"auto",height:"auto",margin:"auto"},children:[ae("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row",width:"99%"},children:[z("div",{style:{padding:"23px 0px 0px 35px",marginBottom:"-13px",textAlign:"left",fontFamily:"inherit",fontSize:"16px",color:((b=(x=(v=t.myTheme)==null?void 0:v.palette)==null?void 0:x.text)==null?void 0:b.secondary)||"#121926"},children:(_=e==null?void 0:e.main)==null?void 0:_.heading}),ae("div",{style:{padding:"25px 0px 0px 55px",marginBottom:"-13px",textAlign:"left",fontFamily:"inherit",fontSize:"16px",color:((M=($=(w=t.myTheme)==null?void 0:w.palette)==null?void 0:$.text)==null?void 0:M.primary)||"black"},children:[n.toFixed(2),"%"]})]}),ae("div",{style:{padding:"0px",height:"auto"},children:[ae("div",{style:{width:"100%",height:"6px",margin:"auto",borderRadius:"10px",marginBottom:"15px",position:"relative"},children:[z("div",{style:{width:"-webkit-fill-available",height:"12px",margin:"auto",borderRadius:"10px",backgroundColor:i()[0],marginBottom:"0px",position:"absolute",top:"10px",left:"12.5px"},children:z(o,{arrow:!0,title:ae(Jt,{children:[ae("div",{style:{fontWeight:"normal",textAlign:"center"},children:[" ","Target Achieved"," "]}),ae("div",{style:{fontWeight:"bold",textAlign:"center"},children:[" ",(S=(k=e==null?void 0:e.main)==null?void 0:k.data)==null?void 0:S.achieved]})]}),placement:"top-end",theme:t,children:z(at,{className:"progress-bar-fill",sx:{width:n>100?"100%":`${n}%`,backgroundColor:i()[1],height:"100%",borderRadius:"10px",marginBottom:"0px",transition:"width 0.5 ease-out",position:"relative",border:"1px solid transparent","&:hover":{border:"1px solid black"}},children:z("div",{style:{borderRadius:"50%",width:"7px",height:"7px",backgroundColor:`${t.myTheme.palette.common.white}`,position:"absolute",top:"2px",right:"2px"}})})})}),z("div",{style:{borderRadius:"50%",width:"30px",height:"30px",backgroundColor:`${t.myTheme.palette.grey[300]}`,position:"absolute",top:"0px"}})]}),ae("div",{style:{display:"flex",color:(P=(A=(T=t.myTheme)==null?void 0:T.palette)==null?void 0:A.text)==null?void 0:P.primary,paddingLeft:"25px",width:"98%",margin:"auto"},children:[ae("div",{style:{width:"33.33%"},children:[z("div",{style:{textAlign:"left",fontSize:"14px",color:(E=(O=t.myTheme)==null?void 0:O.palette)==null?void 0:E.grey[600]},children:((C=e==null?void 0:e.main)==null?void 0:C.bottomLabel_1)||"Target"}),z("div",{style:{color:(D=(R=t.myTheme)==null?void 0:R.palette)==null?void 0:D.grey[600],textAlign:"left"},children:((F=(L=e==null?void 0:e.main)==null?void 0:L.data)==null?void 0:F.total)||((U=(W=e==null?void 0:e.main)==null?void 0:W.data)==null?void 0:U.bottomLabel_1_value)})]}),ae("div",{style:{width:"33.33%"},children:[z("div",{style:{textAlign:"center",fontSize:"14px",color:(Q=(te=t.myTheme)==null?void 0:te.palette)==null?void 0:Q.grey[600]},children:((J=e==null?void 0:e.main)==null?void 0:J.bottomLabel_2)||"Achieved"}),z("div",{style:{textAlign:"center",color:(re=(ue=t.myTheme)==null?void 0:ue.palette)==null?void 0:re.grey[600]},children:((I=(oe=e==null?void 0:e.main)==null?void 0:oe.data)==null?void 0:I.achieved)||((ee=(V=e==null?void 0:e.main)==null?void 0:V.data)==null?void 0:ee.bottomLabel_2_value)})]}),ae("div",{style:{width:"33.33%"},children:[z("div",{style:{textAlign:"right",fontSize:"14px",color:(Y=(N=t.myTheme)==null?void 0:N.palette)==null?void 0:Y.grey[600]},children:((j=e==null?void 0:e.main)==null?void 0:j.bottomLabel_3)||"Remaining"}),z("div",{style:{textAlign:"right",color:(X=(H=t.myTheme)==null?void 0:H.palette)==null?void 0:X.grey[600]},children:Math.max(0,((fe=(ne=e==null?void 0:e.main)==null?void 0:ne.data)==null?void 0:fe.remaining)||((xe=(He=e==null?void 0:e.main)==null?void 0:He.data)==null?void 0:xe.total)-((pt=(St=e==null?void 0:e.main)==null?void 0:St.data)==null?void 0:pt.achieved))})]})]})]})]})};var t3={},n3={exports:{}},pu={exports:{}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(pu),function(e){var t=pu.exports.default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(n=function(u){return u?a:o})(i)}function r(i,o){if(!o&&i&&i.__esModule)return i;if(i===null||t(i)!=="object"&&typeof i!="function")return{default:i};var a=n(o);if(a&&a.has(i))return a.get(i);var s={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in i)if(l!=="default"&&Object.prototype.hasOwnProperty.call(i,l)){var c=u?Object.getOwnPropertyDescriptor(i,l):null;c&&(c.get||c.set)?Object.defineProperty(s,l,c):s[l]=i[l]}return s.default=i,a&&a.set(i,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(n3);var ma={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ma);var r3={exports:{}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(r3);var i3={exports:{}},xm={exports:{}},o3={exports:{}};(function(e){var t=pu.exports.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(o3),function(e){var t=pu.exports.default,n=o3.exports;function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(xm),function(e){var t=xm.exports;function n(i,o){for(var a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,a){return o&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(i3);var wm={exports:{}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wm);var a3={exports:{}},s3={exports:{}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(s3),function(e){var t=s3.exports;function n(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(a3);var u3={exports:{}};(function(e){var t=pu.exports.default,n=wm.exports;function r(i,o){if(o&&(t(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(u3);var l3={exports:{}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(l3);var _m={exports:{}};(function(e){var t=xm.exports;function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(_m);var Fq="6.7.0";function Ye(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ef(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=Bq(e));function r(a,s,u,l){for(u==null&&(u=0),l==null&&(l=a.length);u<l;){const c=u+l>>>1;n(a[c],s)<0?u=c+1:l=c}return u}function i(a,s,u,l){for(u==null&&(u=0),l==null&&(l=a.length);u<l;){const c=u+l>>>1;n(a[c],s)>0?l=c:u=c+1}return u}function o(a,s,u,l){u==null&&(u=0),l==null&&(l=a.length);const c=r(a,s,u,l-1);return c>u&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:o,right:i}}function Bq(e){return(t,n)=>Ye(e(t),n)}function c3(e){return e===null?NaN:+e}function*jq(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const f3=Ef(Ye),h3=f3.right,Wq=f3.left,Hq=Ef(c3).center;var Ki=h3;function Af(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function qq(e){return e.length|0}function Uq(e){return!(e>0)}function Vq(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function Yq(e){return t=>e(...t)}function Gq(...e){const t=typeof e[e.length-1]=="function"&&Yq(e.pop());e=e.map(Vq);const n=e.map(qq),r=e.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(Uq))return o;for(;;){o.push(i.map((s,u)=>e[u][s]));let a=r;for(;++i[a]===n[a];){if(a===0)return t?o.map(t):o;i[a--]=0}}}function Xq(e,t){var n=0,r=0;return Float64Array.from(e,t===void 0?i=>n+=+i||0:i=>n+=+t(i,r++,e)||0)}function Kq(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function d3(e,t){let n=0,r,i=0,o=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(r=a-i,i+=r/++n,o+=r*(a-i));else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,o+=r*(s-i))}if(n>1)return o/(n-1)}function p3(e,t){const n=d3(e,t);return n&&Math.sqrt(n)}function Nf(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class Xe{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const o=n[i],a=t+o,s=Math.abs(t)<Math.abs(o)?t-(a-o):o-(a-t);s&&(n[r++]=s),t=a}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,o,a=0;if(n>0){for(a=t[--n];n>0&&(r=a,i=t[--n],a=r+i,o=i-(a-r),!o););n>0&&(o<0&&t[n-1]<0||o>0&&t[n-1]>0)&&(i=o*2,r=a+i,i==r-a&&(a=r))}return a}}function Qq(e,t){const n=new Xe;if(t===void 0)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function Zq(e,t){const n=new Xe;let r=-1;return Float64Array.from(e,t===void 0?i=>n.add(+i||0):i=>n.add(+t(i,++r,e)||0))}class g3 extends Map{constructor(t,n=v3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get($m(this,t))}has(t){return super.has($m(this,t))}set(t,n){return super.set(m3(this,t),n)}delete(t){return super.delete(y3(this,t))}}class Jq extends Set{constructor(t,n=v3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has($m(this,t))}add(t){return super.add(m3(this,t))}delete(t){return super.delete(y3(this,t))}}function $m({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function m3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function y3({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function v3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ya(e){return e}function b3(e,...t){return va(e,ya,ya,t)}function eU(e,...t){return va(e,Array.from,ya,t)}function x3(e,t,...n){return va(e,ya,t,n)}function tU(e,t,...n){return va(e,Array.from,t,n)}function nU(e,...t){return va(e,ya,w3,t)}function rU(e,...t){return va(e,Array.from,w3,t)}function w3(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function va(e,t,n,r){return function i(o,a){if(a>=r.length)return n(o);const s=new g3,u=r[a++];let l=-1;for(const c of o){const f=u(c,++l,o),h=s.get(f);h?h.push(c):s.set(f,[c])}for(const[c,f]of s)s.set(c,i(f,a));return t(s)}(e,0)}function _3(e,t){return Array.from(t,n=>e[n])}function Sm(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n=Ye]=t;if(n.length===1||t.length>1){const r=Uint32Array.from(e,(i,o)=>o);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,o)=>{for(const a of t){const s=Ye(a[i],a[o]);if(s)return s}})):(n=e.map(n),r.sort((i,o)=>Ye(n[i],n[o]))),_3(e,r)}return e.sort(n)}function iU(e,t,n){return(t.length===1?Sm(x3(e,t,n),([r,i],[o,a])=>Ye(i,a)||Ye(r,o)):Sm(b3(e,n),([r,i],[o,a])=>t(i,a)||Ye(r,o))).map(([r])=>r)}var oU=Array.prototype,aU=oU.slice;function Rf(e){return function(){return e}}var Mm=Math.sqrt(50),Tm=Math.sqrt(10),km=Math.sqrt(2);function gu(e,t,n){var r,i=-1,o,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),(s=mu(e,t,n))===0||!isFinite(s))return[];if(s>0){let u=Math.round(e/s),l=Math.round(t/s);for(u*s<e&&++u,l*s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)*s}else{s=-s;let u=Math.round(e*s),l=Math.round(t*s);for(u/s<e&&++u,l/s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)/s}return r&&a.reverse(),a}function mu(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Mm?10:o>=Tm?5:o>=km?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Mm?10:o>=Tm?5:o>=km?2:1)}function Lf(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Mm?i*=10:o>=Tm?i*=5:o>=km&&(i*=2),t<e?-i:i}function $3(e,t,n){let r;for(;;){const i=mu(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function S3(e){return Math.ceil(Math.log(Af(e))/Math.LN2)+1}function M3(){var e=ya,t=Nf,n=S3;function r(i){Array.isArray(i)||(i=Array.from(i));var o,a=i.length,s,u=new Array(a);for(o=0;o<a;++o)u[o]=e(i[o],o,i);var l=t(u),c=l[0],f=l[1],h=n(u,c,f);if(!Array.isArray(h)){const g=f,y=+h;if(t===Nf&&([c,f]=$3(c,f,y)),h=gu(c,f,y),h[h.length-1]>=f)if(g>=f&&t===Nf){const v=mu(c,f,y);isFinite(v)&&(v>0?f=(Math.floor(f/v)+1)*v:v<0&&(f=(Math.ceil(f*-v)+1)/-v))}else h.pop()}for(var d=h.length;h[0]<=c;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p=new Array(d+1),m;for(o=0;o<=d;++o)m=p[o]=[],m.x0=o>0?h[o-1]:c,m.x1=o<d?h[o]:f;for(o=0;o<a;++o)s=u[o],c<=s&&s<=f&&p[Ki(h,s,0,d)].push(i[o]);return p}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:Rf(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:Rf([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:Array.isArray(i)?Rf(aU.call(i)):Rf(i),r):n},r}function Om(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Df(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Cm(e,t,n=0,r=e.length-1,i=Ye){for(;r>n;){if(r-n>600){const u=r-n+1,l=t-n+1,c=Math.log(u),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),d=Math.max(n,Math.floor(t-l*f/u+h)),p=Math.min(r,Math.floor(t+(u-l)*f/u+h));Cm(e,t,d,p,i)}const o=e[t];let a=n,s=r;for(yu(e,n,t),i(e[r],o)>0&&yu(e,n,r);a<s;){for(yu(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?yu(e,n,s):(++s,yu(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function yu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function vu(e,t,n){if(e=Float64Array.from(jq(e,n)),!!(r=e.length)){if((t=+t)<=0||r<2)return Df(e);if(t>=1)return Om(e);var r,i=(r-1)*t,o=Math.floor(i),a=Om(Cm(e,o).subarray(0,o+1)),s=Df(e.subarray(o+1));return a+(s-a)*(i-o)}}function T3(e,t,n=c3){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,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function sU(e,t,n){return Math.ceil((n-t)/(2*(vu(e,.75)-vu(e,.25))*Math.pow(Af(e),-1/3)))}function uU(e,t,n){return Math.ceil((n-t)/(3.5*p3(e)*Math.pow(Af(e),-1/3)))}function k3(e,t){let n,r=-1,i=-1;if(t===void 0)for(const o of e)++i,o!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=i);else for(let o of e)(o=t(o,++i,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=i);return r}function lU(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function cU(e,t){return vu(e,.5,t)}function*fU(e){for(const t of e)yield*t}function Pm(e){return Array.from(fU(e))}function O3(e,t){let n,r=-1,i=-1;if(t===void 0)for(const o of e)++i,o!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=i);else for(let o of e)(o=t(o,++i,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=i);return r}function hU(e,t=dU){const n=[];let r,i=!1;for(const o of e)i&&n.push(t(r,o)),r=o,i=!0;return n}function dU(e,t){return[e,t]}function ri(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function pU(e,t=Ye){let n,r=!1;if(t.length===1){let i;for(const o of e){const a=t(o);(r?Ye(a,i)<0:Ye(a,a)===0)&&(n=o,i=a,r=!0)}}else for(const i of e)(r?t(i,n)<0:t(i,i)===0)&&(n=i,r=!0);return n}function C3(e,t=Ye){if(t.length===1)return O3(e,t);let n,r=-1,i=-1;for(const o of e)++i,(r<0?t(o,o)===0:t(o,n)<0)&&(n=o,r=i);return r}function gU(e,t=Ye){let n,r=!1;if(t.length===1){let i;for(const o of e){const a=t(o);(r?Ye(a,i)>0:Ye(a,a)===0)&&(n=o,i=a,r=!0)}}else for(const i of e)(r?t(i,n)>0:t(i,i)===0)&&(n=i,r=!0);return n}function mU(e,t=Ye){if(t.length===1)return k3(e,t);let n,r=-1,i=-1;for(const o of e)++i,(r<0?t(o,o)===0:t(o,n)>0)&&(n=o,r=i);return r}function yU(e,t){const n=C3(e,t);return n<0?void 0:n}var vU=P3(Math.random);function P3(e){return function(n,r=0,i=n.length){let o=i-(r=+r);for(;o;){const a=e()*o--|0,s=n[o+r];n[o+r]=n[a+r],n[a+r]=s}return n}}function bU(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function E3(e){if(!(o=e.length))return[];for(var t=-1,n=Df(e,xU),r=new Array(n);++t<n;)for(var i=-1,o,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r}function xU(e){return e.length}function wU(){return E3(arguments)}function _U(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function $U(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function SU(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n}function MU(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))}function TU(e,t,n){if(typeof t!="function")throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if({done:i,value:n}=r.next(),i)return;++a}for(;{done:i,value:o}=r.next(),!i;)n=t(n,o,++a,e);return n}function kU(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function OU(e,...t){e=new Set(e);for(const n of t)for(const r of n)e.delete(r);return e}function CU(e,t){const n=t[Symbol.iterator](),r=new Set;for(const i of e){if(r.has(i))return!1;let o,a;for(;({value:o,done:a}=n.next())&&!a;){if(Object.is(i,o))return!1;r.add(o)}}return!0}function PU(e){return e instanceof Set?e:new Set(e)}function EU(e,...t){e=new Set(e),t=t.map(PU);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function A3(e,t){const n=e[Symbol.iterator](),r=new Set;for(const i of t){if(r.has(i))continue;let o,a;for(;{value:o,done:a}=n.next();){if(a)return!1;if(r.add(o),Object.is(i,o))break}}return!0}function AU(e,t){return A3(t,e)}function NU(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var Em=Array.prototype.slice;function RU(e){return e}var If=1,zf=2,Am=3,bu=4,N3=1e-6;function LU(e){return"translate("+e+",0)"}function DU(e){return"translate(0,"+e+")"}function IU(e){return t=>+e(t)}function zU(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function FU(){return!this.__axis}function Ff(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,u=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,l=e===If||e===bu?-1:1,c=e===bu||e===zf?"x":"y",f=e===If||e===Am?LU:DU;function h(d){var p=r==null?t.ticks?t.ticks.apply(t,n):t.domain():r,m=i==null?t.tickFormat?t.tickFormat.apply(t,n):RU:i,g=Math.max(o,0)+s,y=t.range(),v=+y[0]+u,x=+y[y.length-1]+u,b=(t.bandwidth?zU:IU)(t.copy(),u),_=d.selection?d.selection():d,w=_.selectAll(".domain").data([null]),$=_.selectAll(".tick").data(p,t).order(),M=$.exit(),k=$.enter().append("g").attr("class","tick"),S=$.select("line"),T=$.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),$=$.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),T=T.merge(k.append("text").attr("fill","currentColor").attr(c,l*g).attr("dy",e===If?"0em":e===Am?"0.71em":"0.32em")),d!==_&&(w=w.transition(d),$=$.transition(d),S=S.transition(d),T=T.transition(d),M=M.transition(d).attr("opacity",N3).attr("transform",function(A){return isFinite(A=b(A))?f(A+u):this.getAttribute("transform")}),k.attr("opacity",N3).attr("transform",function(A){var P=this.parentNode.__axis;return f((P&&isFinite(P=P(A))?P:b(A))+u)})),M.remove(),w.attr("d",e===bu||e===zf?a?"M"+l*a+","+v+"H"+u+"V"+x+"H"+l*a:"M"+u+","+v+"V"+x:a?"M"+v+","+l*a+"V"+u+"H"+x+"V"+l*a:"M"+v+","+u+"H"+x),$.attr("opacity",1).attr("transform",function(A){return f(b(A)+u)}),S.attr(c+"2",l*o),T.attr(c,l*g).text(m),_.filter(FU).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===zf?"start":e===bu?"end":"middle"),_.each(function(){this.__axis=b})}return h.scale=function(d){return arguments.length?(t=d,h):t},h.ticks=function(){return n=Em.call(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Em.call(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Em.call(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(o=a=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(a=+d,h):a},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(u=+d,h):u},h}function BU(e){return Ff(If,e)}function jU(e){return Ff(zf,e)}function WU(e){return Ff(Am,e)}function HU(e){return Ff(bu,e)}var qU={value:function(){}};function ba(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Bf(n)}function Bf(e){this._=e}function UU(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Bf.prototype=ba.prototype={constructor:Bf,on:function(e,t){var n=this._,r=UU(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=VU(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=R3(n[i],e.name,t);else if(t==null)for(i in n)n[i]=R3(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Bf(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function VU(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function R3(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=qU,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Nm="http://www.w3.org/1999/xhtml",Rm={svg:"http://www.w3.org/2000/svg",xhtml:Nm,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function xu(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Rm.hasOwnProperty(t)?{space:Rm[t],local:e}:e}function YU(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Nm&&t.documentElement.namespaceURI===Nm?t.createElement(e):t.createElementNS(n,e)}}function GU(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function jf(e){var t=xu(e);return(t.local?GU:YU)(t)}function XU(){}function Wf(e){return e==null?XU:function(){return this.querySelector(e)}}function KU(e){typeof e!="function"&&(e=Wf(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=new Array(a),u,l,c=0;c<a;++c)(u=o[c])&&(l=e.call(u,u.__data__,c,o))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new vt(r,this._parents)}function Lm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function QU(){return[]}function Dm(e){return e==null?QU:function(){return this.querySelectorAll(e)}}function ZU(e){return function(){var t=e.apply(this,arguments);return t==null?[]:Lm(t)}}function JU(e){typeof e=="function"?e=ZU(e):e=Dm(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&(r.push(e.call(u,u.__data__,l,a)),i.push(u));return new vt(r,i)}function Im(e){return function(){return this.matches(e)}}function L3(e){return function(t){return t.matches(e)}}var eV=Array.prototype.find;function tV(e){return function(){return eV.call(this.children,e)}}function nV(){return this.firstElementChild}function rV(e){return this.select(e==null?nV:tV(typeof e=="function"?e:L3(e)))}var iV=Array.prototype.filter;function oV(){return this.children}function aV(e){return function(){return iV.call(this.children,e)}}function sV(e){return this.selectAll(e==null?oV:aV(typeof e=="function"?e:L3(e)))}function uV(e){typeof e!="function"&&(e=Im(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new vt(r,this._parents)}function D3(e){return new Array(e.length)}function lV(){return new vt(this._enter||this._groups.map(D3),this._parents)}function Hf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Hf.prototype={constructor:Hf,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function cV(e){return function(){return e}}function fV(e,t,n,r,i,o){for(var a=0,s,u=t.length,l=o.length;a<l;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Hf(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function hV(e,t,n,r,i,o,a){var s,u,l=new Map,c=t.length,f=o.length,h=new Array(c),d;for(s=0;s<c;++s)(u=t[s])&&(h[s]=d=a.call(u,u.__data__,s,t)+"",l.has(d)?i[s]=u:l.set(d,u));for(s=0;s<f;++s)d=a.call(e,o[s],s,o)+"",(u=l.get(d))?(r[s]=u,u.__data__=o[s],l.delete(d)):n[s]=new Hf(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function dV(e){return e.__data__}function pV(e,t){if(!arguments.length)return Array.from(this,dV);var n=t?hV:fV,r=this._parents,i=this._groups;typeof e!="function"&&(e=cV(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],h=f.length,d=Lm(e.call(c,c&&c.__data__,l,r)),p=d.length,m=s[l]=new Array(p),g=a[l]=new Array(p),y=u[l]=new Array(h);n(c,f,m,g,y,d,t);for(var v=0,x=0,b,_;v<p;++v)if(b=m[v]){for(v>=x&&(x=v+1);!(_=g[x])&&++x<p;);b._next=_||null}}return a=new vt(a,r),a._enter=s,a._exit=u,a}function gV(){return new vt(this._exit||this._groups.map(D3),this._parents)}function mV(e,t,n){var r=this.enter(),i=this,o=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function yV(e){if(!(e instanceof vt))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,f=a[s]=new Array(c),h,d=0;d<c;++d)(h=u[d]||l[d])&&(f[d]=h);for(;s<r;++s)a[s]=t[s];return new vt(a,this._parents)}function vV(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function bV(e){e||(e=xV);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,u=i[o]=new Array(s),l,c=0;c<s;++c)(l=a[c])&&(u[c]=l);u.sort(t)}return new vt(i,this._parents).order()}function xV(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function wV(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _V(){return Array.from(this)}function $V(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function SV(){let e=0;for(const t of this)++e;return e}function MV(){return!this.node()}function TV(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&e.call(s,s.__data__,o,i);return this}function kV(e){return function(){this.removeAttribute(e)}}function OV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function CV(e,t){return function(){this.setAttribute(e,t)}}function PV(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function EV(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function AV(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function NV(e,t){var n=xu(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?OV:kV:typeof t=="function"?n.local?AV:EV:n.local?PV:CV)(n,t))}function zm(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function RV(e){return function(){this.style.removeProperty(e)}}function LV(e,t,n){return function(){this.style.setProperty(e,t,n)}}function DV(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function IV(e,t,n){return arguments.length>1?this.each((t==null?RV:typeof t=="function"?DV:LV)(e,t,n==null?"":n)):Qi(this.node(),e)}function Qi(e,t){return e.style.getPropertyValue(t)||zm(e).getComputedStyle(e,null).getPropertyValue(t)}function zV(e){return function(){delete this[e]}}function FV(e,t){return function(){this[e]=t}}function BV(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function jV(e,t){return arguments.length>1?this.each((t==null?zV:typeof t=="function"?BV:FV)(e,t)):this.node()[e]}function I3(e){return e.trim().split(/^|\s+/)}function Fm(e){return e.classList||new z3(e)}function z3(e){this._node=e,this._names=I3(e.getAttribute("class")||"")}z3.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function F3(e,t){for(var n=Fm(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function B3(e,t){for(var n=Fm(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function WV(e){return function(){F3(this,e)}}function HV(e){return function(){B3(this,e)}}function qV(e,t){return function(){(t.apply(this,arguments)?F3:B3)(this,e)}}function UV(e,t){var n=I3(e+"");if(arguments.length<2){for(var r=Fm(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?qV:t?WV:HV)(n,t))}function VV(){this.textContent=""}function YV(e){return function(){this.textContent=e}}function GV(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function XV(e){return arguments.length?this.each(e==null?VV:(typeof e=="function"?GV:YV)(e)):this.node().textContent}function KV(){this.innerHTML=""}function QV(e){return function(){this.innerHTML=e}}function ZV(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function JV(e){return arguments.length?this.each(e==null?KV:(typeof e=="function"?ZV:QV)(e)):this.node().innerHTML}function eY(){this.nextSibling&&this.parentNode.appendChild(this)}function tY(){return this.each(eY)}function nY(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function rY(){return this.each(nY)}function iY(e){var t=typeof e=="function"?e:jf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function oY(){return null}function aY(e,t){var n=typeof e=="function"?e:jf(e),r=t==null?oY:typeof t=="function"?t:Wf(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function sY(){var e=this.parentNode;e&&e.removeChild(this)}function uY(){return this.each(sY)}function lY(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function cY(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function fY(e){return this.select(e?cY:lY)}function hY(e){return arguments.length?this.property("__data__",e):this.node().__data__}function dY(e){return function(t){e.call(this,t,this.__data__)}}function pY(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function gY(e){return function(){var t=this.__on;if(!!t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function mY(e,t,n){return function(){var r=this.__on,i,o=dY(t);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function yY(e,t,n){var r=pY(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?mY:gY,i=0;i<o;++i)this.each(s(r[i],t,n));return this}function j3(e,t,n){var r=zm(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function vY(e,t){return function(){return j3(this,e,t)}}function bY(e,t){return function(){return j3(this,e,t.apply(this,arguments))}}function xY(e,t){return this.each((typeof t=="function"?bY:vY)(e,t))}function*wY(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var Bm=[null];function vt(e,t){this._groups=e,this._parents=t}function Zi(){return new vt([[document.documentElement]],Bm)}function _Y(){return this}vt.prototype=Zi.prototype={constructor:vt,select:KU,selectAll:JU,selectChild:rV,selectChildren:sV,filter:uV,data:pV,enter:lV,exit:gV,join:mV,merge:yV,selection:_Y,order:vV,sort:bV,call:wV,nodes:_V,node:$V,size:SV,empty:MV,each:TV,attr:NV,style:IV,property:jV,classed:UV,text:XV,html:JV,raise:tY,lower:rY,append:iY,insert:aY,remove:uY,clone:fY,datum:hY,on:yY,dispatch:xY,[Symbol.iterator]:wY};function bt(e){return typeof e=="string"?new vt([[document.querySelector(e)]],[document.documentElement]):new vt([[e]],Bm)}function $Y(e){return bt(jf(e).call(document.documentElement))}var SY=0;function W3(){return new jm}function jm(){this._="@"+(++SY).toString(36)}jm.prototype=W3.prototype={constructor:jm,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function H3(e){let t;for(;t=e.sourceEvent;)e=t;return e}function an(e,t){if(e=H3(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function MY(e,t){return e.target&&(e=H3(e),t===void 0&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,n=>an(n,t))}function TY(e){return typeof e=="string"?new vt([document.querySelectorAll(e)],[document.documentElement]):new vt([e==null?[]:Lm(e)],Bm)}function Wm(e){e.stopImmediatePropagation()}function xa(e){e.preventDefault(),e.stopImmediatePropagation()}function qf(e){var t=e.document.documentElement,n=bt(e).on("dragstart.drag",xa,!0);"onselectstart"in t?n.on("selectstart.drag",xa,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Uf(e,t){var n=e.document.documentElement,r=bt(e).on("dragstart.drag",null);t&&(r.on("click.drag",xa,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Vf=e=>()=>e;function Hm(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:u,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}Hm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function kY(e){return!e.ctrlKey&&!e.button}function OY(){return this.parentNode}function CY(e,t){return t==null?{x:e.x,y:e.y}:t}function PY(){return navigator.maxTouchPoints||"ontouchstart"in this}function EY(){var e=kY,t=OY,n=CY,r=PY,i={},o=ba("start","drag","end"),a=0,s,u,l,c,f=0;function h(b){b.on("mousedown.drag",d).filter(r).on("touchstart.drag",g).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(b,_){if(!(c||!e.call(this,b,_))){var w=x(this,t.call(this,b,_),b,_,"mouse");!w||(bt(b.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),qf(b.view),Wm(b),l=!1,s=b.clientX,u=b.clientY,w("start",b))}}function p(b){if(xa(b),!l){var _=b.clientX-s,w=b.clientY-u;l=_*_+w*w>f}i.mouse("drag",b)}function m(b){bt(b.view).on("mousemove.drag mouseup.drag",null),Uf(b.view,l),xa(b),i.mouse("end",b)}function g(b,_){if(!!e.call(this,b,_)){var w=b.changedTouches,$=t.call(this,b,_),M=w.length,k,S;for(k=0;k<M;++k)(S=x(this,$,b,_,w[k].identifier,w[k]))&&(Wm(b),S("start",b,w[k]))}}function y(b){var _=b.changedTouches,w=_.length,$,M;for($=0;$<w;++$)(M=i[_[$].identifier])&&(xa(b),M("drag",b,_[$]))}function v(b){var _=b.changedTouches,w=_.length,$,M;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),$=0;$<w;++$)(M=i[_[$].identifier])&&(Wm(b),M("end",b,_[$]))}function x(b,_,w,$,M,k){var S=o.copy(),T=an(k||w,_),A,P,O;if((O=n.call(b,new Hm("beforestart",{sourceEvent:w,target:h,identifier:M,active:a,x:T[0],y:T[1],dx:0,dy:0,dispatch:S}),$))!=null)return A=O.x-T[0]||0,P=O.y-T[1]||0,function E(C,R,D){var L=T,F;switch(C){case"start":i[M]=E,F=a++;break;case"end":delete i[M],--a;case"drag":T=an(D||R,_),F=a;break}S.call(C,b,new Hm(C,{sourceEvent:R,subject:O,target:h,identifier:M,active:F,x:T[0]+A,y:T[1]+P,dx:T[0]-L[0],dy:T[1]-L[1],dispatch:S}),$)}}return h.filter=function(b){return arguments.length?(e=typeof b=="function"?b:Vf(!!b),h):e},h.container=function(b){return arguments.length?(t=typeof b=="function"?b:Vf(b),h):t},h.subject=function(b){return arguments.length?(n=typeof b=="function"?b:Vf(b),h):n},h.touchable=function(b){return arguments.length?(r=typeof b=="function"?b:Vf(!!b),h):r},h.on=function(){var b=o.on.apply(o,arguments);return b===o?h:b},h.clickDistance=function(b){return arguments.length?(f=(b=+b)*b,h):Math.sqrt(f)},h}function qm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function wu(){}var _u=.7,Yf=1/_u,wa="\\s*([+-]?\\d+)\\s*",$u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",nr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",AY=/^#([0-9a-f]{3,8})$/,NY=new RegExp("^rgb\\("+[wa,wa,wa]+"\\)$"),RY=new RegExp("^rgb\\("+[nr,nr,nr]+"\\)$"),LY=new RegExp("^rgba\\("+[wa,wa,wa,$u]+"\\)$"),DY=new RegExp("^rgba\\("+[nr,nr,nr,$u]+"\\)$"),IY=new RegExp("^hsl\\("+[$u,nr,nr]+"\\)$"),zY=new RegExp("^hsla\\("+[$u,nr,nr,$u]+"\\)$"),U3={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};qm(wu,Su,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:V3,formatHex:V3,formatHsl:FY,formatRgb:Y3,toString:Y3});function V3(){return this.rgb().formatHex()}function FY(){return Z3(this).formatHsl()}function Y3(){return this.rgb().formatRgb()}function Su(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=AY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?G3(t):n===3?new sn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=NY.exec(e))?new sn(t[1],t[2],t[3],1):(t=RY.exec(e))?new sn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LY.exec(e))?Gf(t[1],t[2],t[3],t[4]):(t=DY.exec(e))?Gf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=IY.exec(e))?Q3(t[1],t[2]/100,t[3]/100,1):(t=zY.exec(e))?Q3(t[1],t[2]/100,t[3]/100,t[4]):U3.hasOwnProperty(e)?G3(U3[e]):e==="transparent"?new sn(NaN,NaN,NaN,0):null}function G3(e){return new sn(e>>16&255,e>>8&255,e&255,1)}function Gf(e,t,n,r){return r<=0&&(e=t=n=NaN),new sn(e,t,n,r)}function BY(e){return e instanceof wu||(e=Su(e)),e?(e=e.rgb(),new sn(e.r,e.g,e.b,e.opacity)):new sn}function Um(e,t,n,r){return arguments.length===1?BY(e):new sn(e,t,n,r==null?1:r)}function sn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}qm(sn,Um,q3(wu,{brighter:function(e){return e=e==null?Yf:Math.pow(Yf,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?_u:Math.pow(_u,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:X3,formatHex:X3,formatRgb:K3,toString:K3}));function X3(){return"#"+Vm(this.r)+Vm(this.g)+Vm(this.b)}function K3(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Vm(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Q3(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rr(e,t,n,r)}function Z3(e){if(e instanceof rr)return new rr(e.h,e.s,e.l,e.opacity);if(e instanceof wu||(e=Su(e)),!e)return new rr;if(e instanceof rr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new rr(a,s,u,e.opacity)}function jY(e,t,n,r){return arguments.length===1?Z3(e):new rr(e,t,n,r==null?1:r)}function rr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qm(rr,jY,q3(wu,{brighter:function(e){return e=e==null?Yf:Math.pow(Yf,e),new rr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?_u:Math.pow(_u,e),new rr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new sn(Ym(e>=240?e-240:e+120,i,r),Ym(e,i,r),Ym(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Ym(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Gm=e=>()=>e;function WY(e,t){return function(n){return e+n*t}}function HY(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)}}function qY(e){return(e=+e)==1?J3:function(t,n){return n-t?HY(t,n,e):Gm(isNaN(t)?n:t)}}function J3(e,t){var n=t-e;return n?WY(e,n):Gm(isNaN(e)?t:e)}var eS=function e(t){var n=qY(t);function r(i,o){var a=n((i=Um(i)).r,(o=Um(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=J3(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function UY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function VY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function YY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Zm(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function GY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Xm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function XY(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Zm(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Km=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qm=new RegExp(Km.source,"g");function KY(e){return function(){return e}}function QY(e){return function(t){return e(t)+""}}function ZY(e,t){var n=Km.lastIndex=Qm.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=Km.exec(e))&&(i=Qm.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Xm(r,i)})),n=Qm.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?QY(u[0].x):KY(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function Zm(e,t){var n=typeof t,r;return t==null||n==="boolean"?Gm(t):(n==="number"?Xm:n==="string"?(r=Su(t))?(t=r,eS):ZY:t instanceof Su?eS:t instanceof Date?GY:VY(t)?UY:Array.isArray(t)?YY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?XY:Xm)(e,t)}var _a=0,Mu=0,Tu=0,tS=1e3,Xf,ku,Kf=0,Ji=0,Qf=0,Ou=typeof performance=="object"&&performance.now?performance:Date,nS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Cu(){return Ji||(nS(JY),Ji=Ou.now()+Qf)}function JY(){Ji=0}function Pu(){this._call=this._time=this._next=null}Pu.prototype=Zf.prototype={constructor:Pu,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Cu():+n)+(t==null?0:+t),!this._next&&ku!==this&&(ku?ku._next=this:Xf=this,ku=this),this._call=e,this._time=n,Jm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jm())}};function Zf(e,t,n){var r=new Pu;return r.restart(e,t,n),r}function rS(){Cu(),++_a;for(var e=Xf,t;e;)(t=Ji-e._time)>=0&&e._call.call(null,t),e=e._next;--_a}function iS(){Ji=(Kf=Ou.now())+Qf,_a=Mu=0;try{rS()}finally{_a=0,tG(),Ji=0}}function eG(){var e=Ou.now(),t=e-Kf;t>tS&&(Qf-=t,Kf=e)}function tG(){for(var e,t=Xf,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Xf=n);ku=e,Jm(r)}function Jm(e){if(!_a){Mu&&(Mu=clearTimeout(Mu));var t=e-Ji;t>24?(e<1/0&&(Mu=setTimeout(iS,e-Ou.now()-Qf)),Tu&&(Tu=clearInterval(Tu))):(Tu||(Kf=Ou.now(),Tu=setInterval(eG,tS)),_a=1,nS(iS))}}function e1(e,t,n){var r=new Pu;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}function nG(e,t,n){var r=new Pu,i=t;return t==null?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(o,a,s){a=+a,s=s==null?Cu():+s,r._restart(function u(l){l+=i,r._restart(u,i+=a,s),o(l)},a,s)},r.restart(e,t,n),r)}var rG=ba("start","end","cancel","interrupt"),iG=[],oS=0,t1=1,n1=2,Jf=3,aS=4,r1=5,eh=6;function th(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;oG(e,n,{name:t,index:r,group:i,on:rG,tween:iG,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:oS})}function i1(e,t){var n=Ln(e,t);if(n.state>oS)throw new Error("too late; already scheduled");return n}function ir(e,t){var n=Ln(e,t);if(n.state>Jf)throw new Error("too late; already running");return n}function Ln(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function oG(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Zf(o,0,n.time);function o(l){n.state=t1,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var c,f,h,d;if(n.state!==t1)return u();for(c in r)if(d=r[c],d.name===n.name){if(d.state===Jf)return e1(a);d.state===aS?(d.state=eh,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[c]):+c<t&&(d.state=eh,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[c])}if(e1(function(){n.state===Jf&&(n.state=aS,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=n1,n.on.call("start",e,e.__data__,n.index,n.group),n.state===n1){for(n.state=Jf,i=new Array(h=n.tween.length),c=0,f=-1;c<h;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(l){for(var c=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=r1,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);n.state===r1&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=eh,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function eo(e,t){var n=e.__transition,r,i,o=!0,a;if(!!n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>n1&&r.state<r1,r.state=eh,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function aG(e){return this.each(function(){eo(this,e)})}function o1(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Eu(){}var Au=.7,nh=1/Au,$a="\\s*([+-]?\\d+)\\s*",Nu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",or="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sG=/^#([0-9a-f]{3,8})$/,uG=new RegExp("^rgb\\("+[$a,$a,$a]+"\\)$"),lG=new RegExp("^rgb\\("+[or,or,or]+"\\)$"),cG=new RegExp("^rgba\\("+[$a,$a,$a,Nu]+"\\)$"),fG=new RegExp("^rgba\\("+[or,or,or,Nu]+"\\)$"),hG=new RegExp("^hsl\\("+[Nu,or,or]+"\\)$"),dG=new RegExp("^hsla\\("+[Nu,or,or,Nu]+"\\)$"),uS={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};o1(Eu,Ru,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:lS,formatHex:lS,formatHsl:pG,formatRgb:cS,toString:cS});function lS(){return this.rgb().formatHex()}function pG(){return gS(this).formatHsl()}function cS(){return this.rgb().formatRgb()}function Ru(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sG.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?fS(t):n===3?new un(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=uG.exec(e))?new un(t[1],t[2],t[3],1):(t=lG.exec(e))?new un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=cG.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=fG.exec(e))?rh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hG.exec(e))?pS(t[1],t[2]/100,t[3]/100,1):(t=dG.exec(e))?pS(t[1],t[2]/100,t[3]/100,t[4]):uS.hasOwnProperty(e)?fS(uS[e]):e==="transparent"?new un(NaN,NaN,NaN,0):null}function fS(e){return new un(e>>16&255,e>>8&255,e&255,1)}function rh(e,t,n,r){return r<=0&&(e=t=n=NaN),new un(e,t,n,r)}function gG(e){return e instanceof Eu||(e=Ru(e)),e?(e=e.rgb(),new un(e.r,e.g,e.b,e.opacity)):new un}function a1(e,t,n,r){return arguments.length===1?gG(e):new un(e,t,n,r==null?1:r)}function un(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}o1(un,a1,sS(Eu,{brighter:function(e){return e=e==null?nh:Math.pow(nh,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Au:Math.pow(Au,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:hS,formatHex:hS,formatRgb:dS,toString:dS}));function hS(){return"#"+s1(this.r)+s1(this.g)+s1(this.b)}function dS(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function s1(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function pS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ar(e,t,n,r)}function gS(e){if(e instanceof ar)return new ar(e.h,e.s,e.l,e.opacity);if(e instanceof Eu||(e=Ru(e)),!e)return new ar;if(e instanceof ar)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new ar(a,s,u,e.opacity)}function mG(e,t,n,r){return arguments.length===1?gS(e):new ar(e,t,n,r==null?1:r)}function ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}o1(ar,mG,sS(Eu,{brighter:function(e){return e=e==null?nh:Math.pow(nh,e),new ar(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Au:Math.pow(Au,e),new ar(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new un(u1(e>=240?e-240:e+120,i,r),u1(e,i,r),u1(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function u1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var mS=e=>()=>e;function yG(e,t){return function(n){return e+n*t}}function vG(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)}}function bG(e){return(e=+e)==1?yS:function(t,n){return n-t?vG(t,n,e):mS(isNaN(t)?n:t)}}function yS(e,t){var n=t-e;return n?yG(e,n):mS(isNaN(e)?t:e)}var vS=function e(t){var n=bG(t);function r(i,o){var a=n((i=a1(i)).r,(o=a1(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=yS(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function ii(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var l1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,c1=new RegExp(l1.source,"g");function xG(e){return function(){return e}}function wG(e){return function(t){return e(t)+""}}function _G(e,t){var n=l1.lastIndex=c1.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=l1.exec(e))&&(i=c1.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:ii(r,i)})),n=c1.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?wG(u[0].x):xG(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}var bS=180/Math.PI,f1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function xS(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*bS,skewX:Math.atan(u)*bS,scaleX:a,scaleY:s}}var ih;function $G(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?f1:xS(t.a,t.b,t.c,t.d,t.e,t.f)}function SG(e){return e==null||(ih||(ih=document.createElementNS("http://www.w3.org/2000/svg","g")),ih.setAttribute("transform",e),!(e=ih.transform.baseVal.consolidate()))?f1:(e=e.matrix,xS(e.a,e.b,e.c,e.d,e.e,e.f))}function wS(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:ii(l,f)},{i:m-2,x:ii(c,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function a(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:ii(l,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:ii(l,c)}):c&&f.push(i(f)+"skewX("+c+r)}function u(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:ii(l,f)},{i:m-2,x:ii(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,f,h),a(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(d){for(var p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var MG=wS($G,"px, ","px)","deg)"),TG=wS(SG,", ",")",")");function kG(e,t){var n,r;return function(){var i=ir(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function OG(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=ir(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function CG(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Ln(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?kG:OG)(n,e,t))}function h1(e,t,n){var r=e._id;return e.each(function(){var i=ir(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ln(i,r).value[t]}}function _S(e,t){var n;return(typeof t=="number"?ii:t instanceof Ru?vS:(n=Ru(t))?(t=n,vS):_G)(e,t)}function PG(e){return function(){this.removeAttribute(e)}}function EG(e){return function(){this.removeAttributeNS(e.space,e.local)}}function AG(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function NG(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function RG(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function LG(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function DG(e,t){var n=xu(e),r=n==="transform"?TG:_S;return this.attrTween(e,typeof t=="function"?(n.local?LG:RG)(n,r,h1(this,"attr."+e,t)):t==null?(n.local?EG:PG)(n):(n.local?NG:AG)(n,r,t))}function IG(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function zG(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function FG(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&zG(e,o)),n}return i._value=t,i}function BG(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&IG(e,o)),n}return i._value=t,i}function jG(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=xu(e);return this.tween(n,(r.local?FG:BG)(r,t))}function WG(e,t){return function(){i1(this,e).delay=+t.apply(this,arguments)}}function HG(e,t){return t=+t,function(){i1(this,e).delay=t}}function qG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?WG:HG)(t,e)):Ln(this.node(),t).delay}function UG(e,t){return function(){ir(this,e).duration=+t.apply(this,arguments)}}function VG(e,t){return t=+t,function(){ir(this,e).duration=t}}function YG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?UG:VG)(t,e)):Ln(this.node(),t).duration}function GG(e,t){if(typeof t!="function")throw new Error;return function(){ir(this,e).ease=t}}function XG(e){var t=this._id;return arguments.length?this.each(GG(t,e)):Ln(this.node(),t).ease}function KG(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;ir(this,e).ease=n}}function QG(e){if(typeof e!="function")throw new Error;return this.each(KG(this._id,e))}function ZG(e){typeof e!="function"&&(e=Im(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new sr(r,this._parents,this._name,this._id)}function JG(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,f=a[s]=new Array(c),h,d=0;d<c;++d)(h=u[d]||l[d])&&(f[d]=h);for(;s<r;++s)a[s]=t[s];return new sr(a,this._parents,this._name,this._id)}function eX(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function tX(e,t,n){var r,i,o=eX(t)?i1:ir;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function nX(e,t){var n=this._id;return arguments.length<2?Ln(this.node(),n).on.on(e):this.each(tX(n,e,t))}function rX(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function iX(){return this.on("end.remove",rX(this._id))}function oX(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Wf(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],u=s.length,l=o[a]=new Array(u),c,f,h=0;h<u;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),l[h]=f,th(l[h],t,n,h,l,Ln(c,n)));return new sr(o,this._parents,t,n)}function aX(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Dm(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u=r[s],l=u.length,c,f=0;f<l;++f)if(c=u[f]){for(var h=e.call(c,c.__data__,f,u),d,p=Ln(c,n),m=0,g=h.length;m<g;++m)(d=h[m])&&th(d,t,n,m,h,p);o.push(h),a.push(c)}return new sr(o,a,t,n)}var sX=Zi.prototype.constructor;function uX(){return new sX(this._groups,this._parents)}function lX(e,t){var n,r,i;return function(){var o=Qi(this,e),a=(this.style.removeProperty(e),Qi(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function $S(e){return function(){this.style.removeProperty(e)}}function cX(e,t,n){var r,i=n+"",o;return function(){var a=Qi(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function fX(e,t,n){var r,i,o;return function(){var a=Qi(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Qi(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function hX(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=ir(this,e),l=u.on,c=u.value[o]==null?s||(s=$S(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function dX(e,t,n){var r=(e+="")=="transform"?MG:_S;return t==null?this.styleTween(e,lX(e,r)).on("end.style."+e,$S(e)):typeof t=="function"?this.styleTween(e,fX(e,r,h1(this,"style."+e,t))).each(hX(this._id,e)):this.styleTween(e,cX(e,r,t),n).on("end.style."+e,null)}function pX(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function gX(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&pX(e,a,n)),r}return o._value=t,o}function mX(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,gX(e,t,n==null?"":n))}function yX(e){return function(){this.textContent=e}}function vX(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function bX(e){return this.tween("text",typeof e=="function"?vX(h1(this,"text",e)):yX(e==null?"":e+""))}function xX(e){return function(t){this.textContent=e.call(this,t)}}function wX(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&xX(i)),t}return r._value=e,r}function _X(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,wX(e))}function $X(){for(var e=this._name,t=this._id,n=MS(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)if(u=a[l]){var c=Ln(u,t);th(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new sr(r,this._parents,e,n)}function SX(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},u={value:function(){--i===0&&o()}};n.each(function(){var l=ir(this,r),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t}),i===0&&o()})}var MX=0;function sr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function SS(e){return Zi().transition(e)}function MS(){return++MX}var to=Zi.prototype;sr.prototype=SS.prototype={constructor:sr,select:oX,selectAll:aX,filter:ZG,merge:JG,selection:uX,transition:$X,call:to.call,nodes:to.nodes,node:to.node,size:to.size,empty:to.empty,each:to.each,on:nX,attr:DG,attrTween:jG,style:dX,styleTween:mX,text:bX,textTween:_X,remove:iX,tween:CG,delay:qG,duration:YG,ease:XG,easeVarying:QG,end:SX,[Symbol.iterator]:to[Symbol.iterator]};const TX=e=>+e;function kX(e){return e*e}function OX(e){return e*(2-e)}function TS(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function CX(e){return e*e*e}function PX(e){return--e*e*e+1}function d1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var p1=3,EX=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(p1),AX=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(p1),kS=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(p1),OS=Math.PI,CS=OS/2;function NX(e){return+e==1?1:1-Math.cos(e*CS)}function RX(e){return Math.sin(e*CS)}function PS(e){return(1-Math.cos(OS*e))/2}function oi(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function LX(e){return oi(1-+e)}function DX(e){return 1-oi(e)}function ES(e){return((e*=2)<=1?oi(1-e):2-oi(e-1))/2}function IX(e){return 1-Math.sqrt(1-e*e)}function zX(e){return Math.sqrt(1- --e*e)}function AS(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var g1=4/11,FX=6/11,BX=8/11,jX=3/4,WX=9/11,HX=10/11,qX=15/16,UX=21/22,VX=63/64,oh=1/g1/g1;function YX(e){return 1-Lu(1-e)}function Lu(e){return(e=+e)<g1?oh*e*e:e<BX?oh*(e-=FX)*e+jX:e<HX?oh*(e-=WX)*e+qX:oh*(e-=UX)*e+VX}function GX(e){return((e*=2)<=1?1-Lu(1-e):Lu(e-1)+1)/2}var m1=1.70158,XX=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(m1),KX=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(m1),NS=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(m1),Sa=2*Math.PI,y1=1,v1=.3,QX=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Sa);function i(o){return t*oi(- --o)*Math.sin((r-o)/n)}return i.amplitude=function(o){return e(o,n*Sa)},i.period=function(o){return e(t,o)},i}(y1,v1),RS=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Sa);function i(o){return 1-t*oi(o=+o)*Math.sin((o+r)/n)}return i.amplitude=function(o){return e(o,n*Sa)},i.period=function(o){return e(t,o)},i}(y1,v1),ZX=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Sa);function i(o){return((o=o*2-1)<0?t*oi(-o)*Math.sin((r-o)/n):2-t*oi(o)*Math.sin((r+o)/n))/2}return i.amplitude=function(o){return e(o,n*Sa)},i.period=function(o){return e(t,o)},i}(y1,v1),JX={time:null,delay:0,duration:250,ease:d1};function eK(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function tK(e){var t,n;e instanceof sr?(t=e._id,e=e._name):(t=MS(),(n=JX).time=Cu(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&th(u,e,t,l,a,n||eK(u,t));return new sr(r,this._parents,e,t)}Zi.prototype.interrupt=aG,Zi.prototype.transition=tK;var nK=[null];function rK(e,t){var n=e.__transition,r,i;if(n){t=t==null?null:t+"";for(i in n)if((r=n[i]).state>t1&&r.name===t)return new sr([[e]],nK,t,+i)}return null}var b1=e=>()=>e;function iK(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function oK(e){e.stopImmediatePropagation()}function x1(e){e.preventDefault(),e.stopImmediatePropagation()}var LS={name:"drag"},w1={name:"space"},Ma={name:"handle"},Ta={name:"center"};const{abs:DS,max:xt,min:wt}=Math;function IS(e){return[+e[0],+e[1]]}function _1(e){return[IS(e[0]),IS(e[1])]}var ah={name:"x",handles:["w","e"].map(Du),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},sh={name:"y",handles:["n","s"].map(Du),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},aK={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Du),input:function(e){return e==null?null:_1(e)},output:function(e){return e}},Ar={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},zS={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},FS={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},sK={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},uK={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Du(e){return{type:e}}function lK(e){return!e.ctrlKey&&!e.button}function cK(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function fK(){return navigator.maxTouchPoints||"ontouchstart"in this}function $1(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function hK(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function dK(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function pK(){return S1(ah)}function gK(){return S1(sh)}function mK(){return S1(aK)}function S1(e){var t=cK,n=lK,r=fK,i=!0,o=ba("start","brush","end"),a=6,s;function u(g){var y=g.property("__brush",m).selectAll(".overlay").data([Du("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ar.overlay).merge(y).each(function(){var x=$1(this).extent;bt(this).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1])}),g.selectAll(".selection").data([Du("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ar.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=g.selectAll(".handle").data(e.handles,function(x){return x.type});v.exit().remove(),v.enter().append("rect").attr("class",function(x){return"handle handle--"+x.type}).attr("cursor",function(x){return Ar[x.type]}),g.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,y){g.tween?g.on("start.brush",function(v){c(this,arguments).beforestart().start(v)}).on("interrupt.brush end.brush",function(v){c(this,arguments).end(v)}).tween("brush",function(){var v=this,x=v.__brush,b=c(v,arguments),_=x.selection,w=e.input(typeof y=="function"?y.apply(this,arguments):y,x.extent),$=Zm(_,w);function M(k){x.selection=k===1&&w===null?null:$(k),l.call(v),b.brush()}return _!==null&&w!==null?M:M(1)}):g.each(function(){var v=this,x=arguments,b=v.__brush,_=e.input(typeof y=="function"?y.apply(v,x):y,b.extent),w=c(v,x).beforestart();eo(v),b.selection=_===null?null:_,l.call(v),w.start().brush().end()})},u.clear=function(g){u.move(g,null)};function l(){var g=bt(this),y=$1(this).selection;y?(g.selectAll(".selection").style("display",null).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1]),g.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?y[1][0]-a/2:y[0][0]-a/2}).attr("y",function(v){return v.type[0]==="s"?y[1][1]-a/2:y[0][1]-a/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?y[1][0]-y[0][0]+a:a}).attr("height",function(v){return v.type==="e"||v.type==="w"?y[1][1]-y[0][1]+a:a})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(g,y,v){var x=g.__brush.emitter;return x&&(!v||!x.clean)?x:new f(g,y,v)}function f(g,y,v){this.that=g,this.args=y,this.state=g.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,y){return this.starting?(this.starting=!1,this.emit("start",g,y)):this.emit("brush",g),this},brush:function(g,y){return this.emit("brush",g,y),this},end:function(g,y){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,y)),this},emit:function(g,y,v){var x=bt(this.that).datum();o.call(g,this.that,new iK(g,{sourceEvent:y,target:u,selection:e.output(this.state.selection),mode:v,dispatch:o}),x)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var y=this,v=g.target.__data__.type,x=(i&&g.metaKey?v="overlay":v)==="selection"?LS:i&&g.altKey?Ta:Ma,b=e===sh?null:sK[v],_=e===ah?null:uK[v],w=$1(y),$=w.extent,M=w.selection,k=$[0][0],S,T,A=$[0][1],P,O,E=$[1][0],C,R,D=$[1][1],L,F,W=0,U=0,te,Q=b&&_&&i&&g.shiftKey,J,ue,re=Array.from(g.touches||[g],ne=>{const fe=ne.identifier;return ne=an(ne,y),ne.point0=ne.slice(),ne.identifier=fe,ne});if(v==="overlay"){M&&(te=!0);const ne=[re[0],re[1]||re[0]];w.selection=M=[[S=e===sh?k:wt(ne[0][0],ne[1][0]),P=e===ah?A:wt(ne[0][1],ne[1][1])],[C=e===sh?E:xt(ne[0][0],ne[1][0]),L=e===ah?D:xt(ne[0][1],ne[1][1])]],re.length>1&&Y()}else S=M[0][0],P=M[0][1],C=M[1][0],L=M[1][1];T=S,O=P,R=C,F=L;var oe=bt(y).attr("pointer-events","none"),I=oe.selectAll(".overlay").attr("cursor",Ar[v]);eo(y);var V=c(y,arguments,!0).beforestart();if(g.touches)V.moved=N,V.ended=j;else{var ee=bt(g.view).on("mousemove.brush",N,!0).on("mouseup.brush",j,!0);i&&ee.on("keydown.brush",H,!0).on("keyup.brush",X,!0),qf(g.view)}l.call(y),V.start(g,x.name);function N(ne){for(const fe of ne.changedTouches||[ne])for(const He of re)He.identifier===fe.identifier&&(He.cur=an(fe,y));if(Q&&!J&&!ue&&re.length===1){const fe=re[0];DS(fe.cur[0]-fe[0])>DS(fe.cur[1]-fe[1])?ue=!0:J=!0}for(const fe of re)fe.cur&&(fe[0]=fe.cur[0],fe[1]=fe.cur[1]);te=!0,x1(ne),Y(ne)}function Y(ne){const fe=re[0],He=fe.point0;var xe;switch(W=fe[0]-He[0],U=fe[1]-He[1],x){case w1:case LS:{b&&(W=xt(k-S,wt(E-C,W)),T=S+W,R=C+W),_&&(U=xt(A-P,wt(D-L,U)),O=P+U,F=L+U);break}case Ma:{re[1]?(b&&(T=xt(k,wt(E,re[0][0])),R=xt(k,wt(E,re[1][0])),b=1),_&&(O=xt(A,wt(D,re[0][1])),F=xt(A,wt(D,re[1][1])),_=1)):(b<0?(W=xt(k-S,wt(E-S,W)),T=S+W,R=C):b>0&&(W=xt(k-C,wt(E-C,W)),T=S,R=C+W),_<0?(U=xt(A-P,wt(D-P,U)),O=P+U,F=L):_>0&&(U=xt(A-L,wt(D-L,U)),O=P,F=L+U));break}case Ta:{b&&(T=xt(k,wt(E,S-W*b)),R=xt(k,wt(E,C+W*b))),_&&(O=xt(A,wt(D,P-U*_)),F=xt(A,wt(D,L+U*_)));break}}R<T&&(b*=-1,xe=S,S=C,C=xe,xe=T,T=R,R=xe,v in zS&&I.attr("cursor",Ar[v=zS[v]])),F<O&&(_*=-1,xe=P,P=L,L=xe,xe=O,O=F,F=xe,v in FS&&I.attr("cursor",Ar[v=FS[v]])),w.selection&&(M=w.selection),J&&(T=M[0][0],R=M[1][0]),ue&&(O=M[0][1],F=M[1][1]),(M[0][0]!==T||M[0][1]!==O||M[1][0]!==R||M[1][1]!==F)&&(w.selection=[[T,O],[R,F]],l.call(y),V.brush(ne,x.name))}function j(ne){if(oK(ne),ne.touches){if(ne.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else Uf(ne.view,te),ee.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);oe.attr("pointer-events","all"),I.attr("cursor",Ar.overlay),w.selection&&(M=w.selection),hK(M)&&(w.selection=null,l.call(y)),V.end(ne,x.name)}function H(ne){switch(ne.keyCode){case 16:{Q=b&&_;break}case 18:{x===Ma&&(b&&(C=R-W*b,S=T+W*b),_&&(L=F-U*_,P=O+U*_),x=Ta,Y());break}case 32:{(x===Ma||x===Ta)&&(b<0?C=R-W:b>0&&(S=T-W),_<0?L=F-U:_>0&&(P=O-U),x=w1,I.attr("cursor",Ar.selection),Y());break}default:return}x1(ne)}function X(ne){switch(ne.keyCode){case 16:{Q&&(J=ue=Q=!1,Y());break}case 18:{x===Ta&&(b<0?C=R:b>0&&(S=T),_<0?L=F:_>0&&(P=O),x=Ma,Y());break}case 32:{x===w1&&(ne.altKey?(b&&(C=R-W*b,S=T+W*b),_&&(L=F-U*_,P=O+U*_),x=Ta):(b<0?C=R:b>0&&(S=T),_<0?L=F:_>0&&(P=O),x=Ma),I.attr("cursor",Ar[v]),Y());break}default:return}x1(ne)}}function d(g){c(this,arguments).moved(g)}function p(g){c(this,arguments).ended(g)}function m(){var g=this.__brush||{selection:null};return g.extent=_1(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:b1(_1(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:b1(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:b1(!!g),u):r},u.handleSize=function(g){return arguments.length?(a=+g,u):a},u.keyModifiers=function(g){return arguments.length?(i=!!g,u):i},u.on=function(){var g=o.on.apply(o,arguments);return g===o?u:g},u}var BS=Math.abs,ka=Math.cos,Oa=Math.sin,jS=Math.PI,uh=jS/2,WS=jS*2,HS=Math.max,M1=1e-12;function T1(e,t){return Array.from({length:t-e},(n,r)=>e+r)}function yK(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function vK(){return k1(!1,!1)}function bK(){return k1(!1,!0)}function xK(){return k1(!0,!1)}function k1(e,t){var n=0,r=null,i=null,o=null;function a(s){var u=s.length,l=new Array(u),c=T1(0,u),f=new Array(u*u),h=new Array(u),d=0,p;s=Float64Array.from({length:u*u},t?(m,g)=>s[g%u][g/u|0]:(m,g)=>s[g/u|0][g%u]);for(let m=0;m<u;++m){let g=0;for(let y=0;y<u;++y)g+=s[m*u+y]+e*s[y*u+m];d+=l[m]=g}d=HS(0,WS-n*u)/d,p=d?n:WS/u;{let m=0;r&&c.sort((g,y)=>r(l[g],l[y]));for(const g of c){const y=m;if(e){const v=T1(~u+1,u).filter(x=>x<0?s[~x*u+g]:s[g*u+x]);i&&v.sort((x,b)=>i(x<0?-s[~x*u+g]:s[g*u+x],b<0?-s[~b*u+g]:s[g*u+b]));for(const x of v)if(x<0){const b=f[~x*u+g]||(f[~x*u+g]={source:null,target:null});b.target={index:g,startAngle:m,endAngle:m+=s[~x*u+g]*d,value:s[~x*u+g]}}else{const b=f[g*u+x]||(f[g*u+x]={source:null,target:null});b.source={index:g,startAngle:m,endAngle:m+=s[g*u+x]*d,value:s[g*u+x]}}h[g]={index:g,startAngle:y,endAngle:m,value:l[g]}}else{const v=T1(0,u).filter(x=>s[g*u+x]||s[x*u+g]);i&&v.sort((x,b)=>i(s[g*u+x],s[g*u+b]));for(const x of v){let b;if(g<x?(b=f[g*u+x]||(f[g*u+x]={source:null,target:null}),b.source={index:g,startAngle:m,endAngle:m+=s[g*u+x]*d,value:s[g*u+x]}):(b=f[x*u+g]||(f[x*u+g]={source:null,target:null}),b.target={index:g,startAngle:m,endAngle:m+=s[g*u+x]*d,value:s[g*u+x]},g===x&&(b.source=b.target)),b.source&&b.target&&b.source.value<b.target.value){const _=b.source;b.source=b.target,b.target=_}}h[g]={index:g,startAngle:y,endAngle:m,value:l[g]}}m+=p}}return f=Object.values(f),f.groups=h,o?f.sort(o):f}return a.padAngle=function(s){return arguments.length?(n=HS(0,s),a):n},a.sortGroups=function(s){return arguments.length?(r=s,a):r},a.sortSubgroups=function(s){return arguments.length?(i=s,a):i},a.sortChords=function(s){return arguments.length?(s==null?o=null:(o=yK(s))._=s,a):o&&o._},a}var wK=Array.prototype.slice;function no(e){return function(){return e}}function _K(e){return e.source}function $K(e){return e.target}function qS(e){return e.radius}function SK(e){return e.startAngle}function MK(e){return e.endAngle}function TK(){return 0}function kK(){return 10}function US(e){var t=_K,n=$K,r=qS,i=qS,o=SK,a=MK,s=TK,u=null;function l(){var c,f=t.apply(this,arguments),h=n.apply(this,arguments),d=s.apply(this,arguments)/2,p=wK.call(arguments),m=+r.apply(this,(p[0]=f,p)),g=o.apply(this,p)-uh,y=a.apply(this,p)-uh,v=+i.apply(this,(p[0]=h,p)),x=o.apply(this,p)-uh,b=a.apply(this,p)-uh;if(u||(u=c=Si()),d>M1&&(BS(y-g)>d*2+M1?y>g?(g+=d,y-=d):(g-=d,y+=d):g=y=(g+y)/2,BS(b-x)>d*2+M1?b>x?(x+=d,b-=d):(x-=d,b+=d):x=b=(x+b)/2),u.moveTo(m*ka(g),m*Oa(g)),u.arc(0,0,m,g,y),g!==x||y!==b)if(e){var _=+e.apply(this,arguments),w=v-_,$=(x+b)/2;u.quadraticCurveTo(0,0,w*ka(x),w*Oa(x)),u.lineTo(v*ka($),v*Oa($)),u.lineTo(w*ka(b),w*Oa(b))}else u.quadraticCurveTo(0,0,v*ka(x),v*Oa(x)),u.arc(0,0,v,x,b);if(u.quadraticCurveTo(0,0,m*ka(g),m*Oa(g)),u.closePath(),c)return u=null,c+""||null}return e&&(l.headRadius=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),l):e}),l.radius=function(c){return arguments.length?(r=i=typeof c=="function"?c:no(+c),l):r},l.sourceRadius=function(c){return arguments.length?(r=typeof c=="function"?c:no(+c),l):r},l.targetRadius=function(c){return arguments.length?(i=typeof c=="function"?c:no(+c),l):i},l.startAngle=function(c){return arguments.length?(o=typeof c=="function"?c:no(+c),l):o},l.endAngle=function(c){return arguments.length?(a=typeof c=="function"?c:no(+c),l):a},l.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:no(+c),l):s},l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.context=function(c){return arguments.length?(u=c==null?null:c,l):u},l}function OK(){return US()}function CK(){return US(kK)}function Ca(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Iu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ai(){}var ro=.7,Pa=1/ro,Ea="\\s*([+-]?\\d+)\\s*",zu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",PK=/^#([0-9a-f]{3,8})$/,EK=new RegExp("^rgb\\("+[Ea,Ea,Ea]+"\\)$"),AK=new RegExp("^rgb\\("+[ur,ur,ur]+"\\)$"),NK=new RegExp("^rgba\\("+[Ea,Ea,Ea,zu]+"\\)$"),RK=new RegExp("^rgba\\("+[ur,ur,ur,zu]+"\\)$"),LK=new RegExp("^hsl\\("+[zu,ur,ur]+"\\)$"),DK=new RegExp("^hsla\\("+[zu,ur,ur,zu]+"\\)$"),VS={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};Ca(ai,Aa,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:YS,formatHex:YS,formatHsl:IK,formatRgb:GS,toString:GS});function YS(){return this.rgb().formatHex()}function IK(){return JS(this).formatHsl()}function GS(){return this.rgb().formatRgb()}function Aa(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=PK.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?XS(t):n===3?new ht(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?lh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?lh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=EK.exec(e))?new ht(t[1],t[2],t[3],1):(t=AK.exec(e))?new ht(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=NK.exec(e))?lh(t[1],t[2],t[3],t[4]):(t=RK.exec(e))?lh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=LK.exec(e))?ZS(t[1],t[2]/100,t[3]/100,1):(t=DK.exec(e))?ZS(t[1],t[2]/100,t[3]/100,t[4]):VS.hasOwnProperty(e)?XS(VS[e]):e==="transparent"?new ht(NaN,NaN,NaN,0):null}function XS(e){return new ht(e>>16&255,e>>8&255,e&255,1)}function lh(e,t,n,r){return r<=0&&(e=t=n=NaN),new ht(e,t,n,r)}function O1(e){return e instanceof ai||(e=Aa(e)),e?(e=e.rgb(),new ht(e.r,e.g,e.b,e.opacity)):new ht}function Fu(e,t,n,r){return arguments.length===1?O1(e):new ht(e,t,n,r==null?1:r)}function ht(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ca(ht,Fu,Iu(ai,{brighter:function(e){return e=e==null?Pa:Math.pow(Pa,e),new ht(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?ro:Math.pow(ro,e),new ht(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:KS,formatHex:KS,formatRgb:QS,toString:QS}));function KS(){return"#"+C1(this.r)+C1(this.g)+C1(this.b)}function QS(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function C1(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function ZS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lr(e,t,n,r)}function JS(e){if(e instanceof lr)return new lr(e.h,e.s,e.l,e.opacity);if(e instanceof ai||(e=Aa(e)),!e)return new lr;if(e instanceof lr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new lr(a,s,u,e.opacity)}function ch(e,t,n,r){return arguments.length===1?JS(e):new lr(e,t,n,r==null?1:r)}function lr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ca(lr,ch,Iu(ai,{brighter:function(e){return e=e==null?Pa:Math.pow(Pa,e),new lr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ro:Math.pow(ro,e),new lr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ht(P1(e>=240?e-240:e+120,i,r),P1(e,i,r),P1(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function P1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const eM=Math.PI/180,tM=180/Math.PI,fh=18,nM=.96422,rM=1,iM=.82521,oM=4/29,Na=6/29,aM=3*Na*Na,zK=Na*Na*Na;function sM(e){if(e instanceof Dn)return new Dn(e.l,e.a,e.b,e.opacity);if(e instanceof cr)return lM(e);e instanceof ht||(e=O1(e));var t=R1(e.r),n=R1(e.g),r=R1(e.b),i=E1((.2225045*t+.7168786*n+.0606169*r)/rM),o,a;return t===n&&n===r?o=a=i:(o=E1((.4360747*t+.3850649*n+.1430804*r)/nM),a=E1((.0139322*t+.0971045*n+.7141733*r)/iM)),new Dn(116*i-16,500*(o-i),200*(i-a),e.opacity)}function FK(e,t){return new Dn(e,0,0,t==null?1:t)}function hh(e,t,n,r){return arguments.length===1?sM(e):new Dn(e,t,n,r==null?1:r)}function Dn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Ca(Dn,hh,Iu(ai,{brighter:function(e){return new Dn(this.l+fh*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Dn(this.l-fh*(e==null?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=nM*A1(t),e=rM*A1(e),n=iM*A1(n),new ht(N1(3.1338561*t-1.6168667*e-.4906146*n),N1(-.9787684*t+1.9161415*e+.033454*n),N1(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function E1(e){return e>zK?Math.pow(e,1/3):e/aM+oM}function A1(e){return e>Na?e*e*e:aM*(e-oM)}function N1(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function R1(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function uM(e){if(e instanceof cr)return new cr(e.h,e.c,e.l,e.opacity);if(e instanceof Dn||(e=sM(e)),e.a===0&&e.b===0)return new cr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*tM;return new cr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function BK(e,t,n,r){return arguments.length===1?uM(e):new cr(n,t,e,r==null?1:r)}function dh(e,t,n,r){return arguments.length===1?uM(e):new cr(e,t,n,r==null?1:r)}function cr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function lM(e){if(isNaN(e.h))return new Dn(e.l,0,0,e.opacity);var t=e.h*eM;return new Dn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ca(cr,dh,Iu(ai,{brighter:function(e){return new cr(this.h,this.c,this.l+fh*(e==null?1:e),this.opacity)},darker:function(e){return new cr(this.h,this.c,this.l-fh*(e==null?1:e),this.opacity)},rgb:function(){return lM(this).rgb()}}));var cM=-.14861,L1=1.78277,D1=-.29227,ph=-.90649,Bu=1.97294,fM=Bu*ph,hM=Bu*L1,dM=L1*D1-ph*cM;function jK(e){if(e instanceof io)return new io(e.h,e.s,e.l,e.opacity);e instanceof ht||(e=O1(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(dM*r+fM*t-hM*n)/(dM+fM-hM),o=r-i,a=(Bu*(n-i)-D1*o)/ph,s=Math.sqrt(a*a+o*o)/(Bu*i*(1-i)),u=s?Math.atan2(a,o)*tM-120:NaN;return new io(u<0?u+360:u,s,i,e.opacity)}function gh(e,t,n,r){return arguments.length===1?jK(e):new io(e,t,n,r==null?1:r)}function io(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Ca(io,gh,Iu(ai,{brighter:function(e){return e=e==null?Pa:Math.pow(Pa,e),new io(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ro:Math.pow(ro,e),new io(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*eM,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new ht(255*(t+n*(cM*r+L1*i)),255*(t+n*(D1*r+ph*i)),255*(t+n*(Bu*r)),this.opacity)}}));function WK(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function HK(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}var qK=Math.sqrt(50),UK=Math.sqrt(10),VK=Math.sqrt(2);function pM(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=qK?i*=10:o>=UK?i*=5:o>=VK&&(i*=2),t<e?-i:i}function YK(e){return Math.ceil(Math.log(WK(e))/Math.LN2)+1}function GK(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function gM(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}var XK=Array.prototype,mM=XK.slice;function KK(e,t){return e-t}function QK(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}var si=e=>()=>e;function ZK(e,t){for(var n=-1,r=t.length,i;++n<r;)if(i=JK(e,t[n]))return i;return 0}function JK(e,t){for(var n=t[0],r=t[1],i=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var u=e[o],l=u[0],c=u[1],f=e[s],h=f[0],d=f[1];if(eQ(u,f,t))return 0;c>r!=d>r&&n<(h-l)*(r-c)/(d-c)+l&&(i=-i)}return i}function eQ(e,t,n){var r;return tQ(e,t,n)&&nQ(e[r=+(e[0]===t[0])],n[r],t[r])}function tQ(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}function nQ(e,t,n){return e<=t&&t<=n||n<=t&&t<=e}function rQ(){}var Nr=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function yM(){var e=1,t=1,n=YK,r=u;function i(l){var c=n(l);if(Array.isArray(c))c=c.slice().sort(KK);else{var f=HK(l),h=f[0],d=f[1];c=pM(h,d,c),c=gM(Math.floor(h/c)*c,Math.floor(d/c)*c,c)}return c.map(function(p){return o(l,p)})}function o(l,c){var f=[],h=[];return a(l,c,function(d){r(d,l,c),QK(d)>0?f.push([d]):h.push(d)}),h.forEach(function(d){for(var p=0,m=f.length,g;p<m;++p)if(ZK((g=f[p])[0],d)!==-1){g.push(d);return}}),{type:"MultiPolygon",value:c,coordinates:f}}function a(l,c,f){var h=new Array,d=new Array,p,m,g,y,v,x;for(p=m=-1,y=l[0]>=c,Nr[y<<1].forEach(b);++p<e-1;)g=y,y=l[p+1]>=c,Nr[g|y<<1].forEach(b);for(Nr[y<<0].forEach(b);++m<t-1;){for(p=-1,y=l[m*e+e]>=c,v=l[m*e]>=c,Nr[y<<1|v<<2].forEach(b);++p<e-1;)g=y,y=l[m*e+e+p+1]>=c,x=v,v=l[m*e+p+1]>=c,Nr[g|y<<1|v<<2|x<<3].forEach(b);Nr[y|v<<3].forEach(b)}for(p=-1,v=l[m*e]>=c,Nr[v<<2].forEach(b);++p<e-1;)x=v,v=l[m*e+p+1]>=c,Nr[v<<2|x<<3].forEach(b);Nr[v<<3].forEach(b);function b(_){var w=[_[0][0]+p,_[0][1]+m],$=[_[1][0]+p,_[1][1]+m],M=s(w),k=s($),S,T;(S=d[M])?(T=h[k])?(delete d[S.end],delete h[T.start],S===T?(S.ring.push($),f(S.ring)):h[S.start]=d[T.end]={start:S.start,end:T.end,ring:S.ring.concat(T.ring)}):(delete d[S.end],S.ring.push($),d[S.end=k]=S):(S=h[k])?(T=d[M])?(delete h[S.start],delete d[T.end],S===T?(S.ring.push($),f(S.ring)):h[T.start]=d[S.end]={start:T.start,end:S.end,ring:T.ring.concat(S.ring)}):(delete h[S.start],S.ring.unshift(w),h[S.start=M]=S):h[M]=d[k]={start:M,end:k,ring:[w,$]}}}function s(l){return l[0]*2+l[1]*(e+1)*4}function u(l,c,f){l.forEach(function(h){var d=h[0],p=h[1],m=d|0,g=p|0,y,v=c[g*e+m];d>0&&d<e&&m===d&&(y=c[g*e+m-1],h[0]=d+(f-y)/(v-y)-.5),p>0&&p<t&&g===p&&(y=c[(g-1)*e+m],h[1]=p+(f-y)/(v-y)-.5)})}return i.contour=o,i.size=function(l){if(!arguments.length)return[e,t];var c=Math.floor(l[0]),f=Math.floor(l[1]);if(!(c>=0&&f>=0))throw new Error("invalid size");return e=c,t=f,i},i.thresholds=function(l){return arguments.length?(n=typeof l=="function"?l:Array.isArray(l)?si(mM.call(l)):si(l),i):n},i.smooth=function(l){return arguments.length?(r=l?u:rQ,i):r===u},i}function I1(e,t,n){for(var r=e.width,i=e.height,o=(n<<1)+1,a=0;a<i;++a)for(var s=0,u=0;s<r+n;++s)s<r&&(u+=e.data[s+a*r]),s>=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function z1(e,t,n){for(var r=e.width,i=e.height,o=(n<<1)+1,a=0;a<r;++a)for(var s=0,u=0;s<i+n;++s)s<i&&(u+=e.data[a+s*r]),s>=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function iQ(e){return e[0]}function oQ(e){return e[1]}function aQ(){return 1}function sQ(){var e=iQ,t=oQ,n=aQ,r=960,i=500,o=20,a=2,s=o*3,u=r+s*2>>a,l=i+s*2>>a,c=si(20);function f(y){var v=new Float32Array(u*l),x=new Float32Array(u*l);y.forEach(function(w,$,M){var k=+e(w,$,M)+s>>a,S=+t(w,$,M)+s>>a,T=+n(w,$,M);k>=0&&k<u&&S>=0&&S<l&&(v[k+S*u]+=T)}),I1({width:u,height:l,data:v},{width:u,height:l,data:x},o>>a),z1({width:u,height:l,data:x},{width:u,height:l,data:v},o>>a),I1({width:u,height:l,data:v},{width:u,height:l,data:x},o>>a),z1({width:u,height:l,data:x},{width:u,height:l,data:v},o>>a),I1({width:u,height:l,data:v},{width:u,height:l,data:x},o>>a),z1({width:u,height:l,data:x},{width:u,height:l,data:v},o>>a);var b=c(v);if(!Array.isArray(b)){var _=GK(v);b=pM(0,_,b),b=gM(0,Math.floor(_/b)*b,b),b.shift()}return yM().thresholds(b).size([u,l])(v).map(h)}function h(y){return y.value*=Math.pow(2,-2*a),y.coordinates.forEach(d),y}function d(y){y.forEach(p)}function p(y){y.forEach(m)}function m(y){y[0]=y[0]*Math.pow(2,a)-s,y[1]=y[1]*Math.pow(2,a)-s}function g(){return s=o*3,u=r+s*2>>a,l=i+s*2>>a,f}return f.x=function(y){return arguments.length?(e=typeof y=="function"?y:si(+y),f):e},f.y=function(y){return arguments.length?(t=typeof y=="function"?y:si(+y),f):t},f.weight=function(y){return arguments.length?(n=typeof y=="function"?y:si(+y),f):n},f.size=function(y){if(!arguments.length)return[r,i];var v=+y[0],x=+y[1];if(!(v>=0&&x>=0))throw new Error("invalid size");return r=v,i=x,g()},f.cellSize=function(y){if(!arguments.length)return 1<<a;if(!((y=+y)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(y)/Math.LN2),g()},f.thresholds=function(y){return arguments.length?(c=typeof y=="function"?y:Array.isArray(y)?si(mM.call(y)):si(y),f):c},f.bandwidth=function(y){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((y=+y)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*y*y+1)-1)/2),g()},f}const vM=Math.pow(2,-52),mh=new Uint32Array(512);class yh{static from(t,n=hQ,r=dQ){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new yh(o)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:o}=this,a=t.length>>1;let s=1/0,u=1/0,l=-1/0,c=-1/0;for(let S=0;S<a;S++){const T=t[2*S],A=t[2*S+1];T<s&&(s=T),A<u&&(u=A),T>l&&(l=T),A>c&&(c=A),this._ids[S]=S}const f=(s+l)/2,h=(u+c)/2;let d=1/0,p,m,g;for(let S=0;S<a;S++){const T=F1(f,h,t[2*S],t[2*S+1]);T<d&&(p=S,d=T)}const y=t[2*p],v=t[2*p+1];d=1/0;for(let S=0;S<a;S++){if(S===p)continue;const T=F1(y,v,t[2*S],t[2*S+1]);T<d&&T>0&&(m=S,d=T)}let x=t[2*m],b=t[2*m+1],_=1/0;for(let S=0;S<a;S++){if(S===p||S===m)continue;const T=cQ(y,v,x,b,t[2*S],t[2*S+1]);T<_&&(g=S,_=T)}let w=t[2*g],$=t[2*g+1];if(_===1/0){for(let A=0;A<a;A++)this._dists[A]=t[2*A]-t[0]||t[2*A+1]-t[1];Ra(this._ids,this._dists,0,a-1);const S=new Uint32Array(a);let T=0;for(let A=0,P=-1/0;A<a;A++){const O=this._ids[A];this._dists[O]>P&&(S[T++]=O,P=this._dists[O])}this.hull=S.subarray(0,T),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(vh(y,v,x,b,w,$)){const S=m,T=x,A=b;m=g,x=w,b=$,g=S,w=T,$=A}const M=fQ(y,v,x,b,w,$);this._cx=M.x,this._cy=M.y;for(let S=0;S<a;S++)this._dists[S]=F1(t[2*S],t[2*S+1],M.x,M.y);Ra(this._ids,this._dists,0,a-1),this._hullStart=p;let k=3;r[p]=n[g]=m,r[m]=n[p]=g,r[g]=n[m]=p,i[p]=0,i[m]=1,i[g]=2,o.fill(-1),o[this._hashKey(y,v)]=p,o[this._hashKey(x,b)]=m,o[this._hashKey(w,$)]=g,this.trianglesLen=0,this._addTriangle(p,m,g,-1,-1,-1);for(let S=0,T,A;S<this._ids.length;S++){const P=this._ids[S],O=t[2*P],E=t[2*P+1];if(S>0&&Math.abs(O-T)<=vM&&Math.abs(E-A)<=vM||(T=O,A=E,P===p||P===m||P===g))continue;let C=0;for(let W=0,U=this._hashKey(O,E);W<this._hashSize&&(C=o[(U+W)%this._hashSize],!(C!==-1&&C!==r[C]));W++);C=n[C];let R=C,D;for(;D=r[R],!vh(O,E,t[2*R],t[2*R+1],t[2*D],t[2*D+1]);)if(R=D,R===C){R=-1;break}if(R===-1)continue;let L=this._addTriangle(R,P,r[R],-1,-1,i[R]);i[P]=this._legalize(L+2),i[R]=L,k++;let F=r[R];for(;D=r[F],vh(O,E,t[2*F],t[2*F+1],t[2*D],t[2*D+1]);)L=this._addTriangle(F,P,D,i[P],-1,i[F]),i[P]=this._legalize(L+2),r[F]=F,k--,F=D;if(R===C)for(;D=n[R],vh(O,E,t[2*D],t[2*D+1],t[2*R],t[2*R+1]);)L=this._addTriangle(D,P,R,-1,i[R],i[D]),this._legalize(L+2),i[D]=L,r[R]=R,k--,R=D;this._hullStart=n[P]=R,r[R]=n[F]=P,r[P]=F,o[this._hashKey(O,E)]=P,o[this._hashKey(t[2*R],t[2*R+1])]=R}this.hull=new Uint32Array(k);for(let S=0,T=this._hullStart;S<k;S++)this.hull[S]=T,T=r[T];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(uQ(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],u=t-t%3;if(a=u+(t+2)%3,s===-1){if(o===0)break;t=mh[--o];continue}const l=s-s%3,c=u+(t+1)%3,f=l+(s+2)%3,h=n[a],d=n[t],p=n[c],m=n[f];if(lQ(i[2*h],i[2*h+1],i[2*d],i[2*d+1],i[2*p],i[2*p+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=h;const y=r[f];if(y===-1){let x=this._hullStart;do{if(this._hullTri[x]===f){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,y),this._link(s,r[a]),this._link(a,f);const v=l+(s+1)%3;o<mh.length&&(mh[o++]=v)}else{if(o===0)break;t=mh[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,o),this._link(s+2,a),this.trianglesLen+=3,s}}function uQ(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function F1(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function B1(e,t,n,r,i,o){const a=(r-t)*(i-e),s=(n-e)*(o-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function vh(e,t,n,r,i,o){return(B1(i,o,e,t,n,r)||B1(e,t,n,r,i,o)||B1(n,r,i,o,e,t))<0}function lQ(e,t,n,r,i,o,a,s){const u=e-a,l=t-s,c=n-a,f=r-s,h=i-a,d=o-s,p=u*u+l*l,m=c*c+f*f,g=h*h+d*d;return u*(f*g-m*d)-l*(c*g-m*h)+p*(c*d-f*h)<0}function cQ(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,h=.5/(a*l-s*u),d=(l*c-s*f)*h,p=(a*f-u*c)*h;return d*d+p*p}function fQ(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,h=.5/(a*l-s*u),d=e+(l*c-s*f)*h,p=t+(a*f-u*c)*h;return{x:d,y:p}}function Ra(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;ju(e,i,o),t[e[n]]>t[e[r]]&&ju(e,n,r),t[e[o]]>t[e[r]]&&ju(e,o,r),t[e[n]]>t[e[o]]&&ju(e,n,o);const s=e[o],u=t[s];for(;;){do o++;while(t[e[o]]<u);do a--;while(t[e[a]]>u);if(a<o)break;ju(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(Ra(e,t,o,r),Ra(e,t,n,a-1)):(Ra(e,t,n,a-1),Ra(e,t,o,r))}}function ju(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function hQ(e){return e[0]}function dQ(e){return e[1]}const bM=1e-6;class oo{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>bM||Math.abs(this._y1-o)>bM)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class j1{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class xM{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=o,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this,o=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let d=0,p=0,m=r.length,g,y;d<m;d+=3,p+=2){const v=r[d]*2,x=r[d+1]*2,b=r[d+2]*2,_=t[v],w=t[v+1],$=t[x],M=t[x+1],k=t[b],S=t[b+1],T=$-_,A=M-w,P=k-_,O=S-w,E=T*T+A*A,C=P*P+O*O,R=(T*O-A*P)*2;if(!R)g=(_+k)/2-1e8*O,y=(w+S)/2+1e8*P;else if(Math.abs(R)<1e-8)g=(_+k)/2,y=(w+S)/2;else{const D=1/R;g=_+(O*E-A*C)*D,y=w+(T*C-P*E)*D}o[p]=g,o[p+1]=y}let a=n[n.length-1],s,u=a*4,l,c=t[2*a],f,h=t[2*a+1];i.fill(0);for(let d=0;d<n.length;++d)a=n[d],s=u,l=c,f=h,u=a*4,c=t[2*a],h=t[2*a+1],i[s+2]=i[u]=f-h,i[s+3]=i[u+1]=c-l}render(t){const n=t==null?t=new oo:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let c=0,f=r.length;c<f;++c){const h=r[c];if(h<c)continue;const d=Math.floor(c/3)*2,p=Math.floor(h/3)*2,m=a[d],g=a[d+1],y=a[p],v=a[p+1];this._renderSegment(m,g,y,v,t)}let u,l=o[o.length-1];for(let c=0;c<o.length;++c){u=l,l=o[c];const f=Math.floor(i[l]/3)*2,h=a[f],d=a[f+1],p=u*4,m=this._project(h,d,s[p+2],s[p+3]);m&&this._renderSegment(h,d,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new oo:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new oo:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new j1;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),u=this._regioncode(r,i);s===0&&u===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,u))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let o=0,a=n.length;o<a;o+=2)for(let s=0,u=i.length;s<u;s+=2)if(n[o]==i[s]&&n[o+1]==i[s+1]&&n[(o+2)%a]==i[(s+u-2)%u]&&n[(o+3)%a]==i[(s+u-1)%u]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let u=a;do{const l=Math.floor(u/3);if(s.push(n[l*2],n[l*2+1]),u=u%3===2?u-2:u+1,o[u]!==t)break;u=i[u]}while(u!==a&&u!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n)}_clipFinite(t,n){const r=n.length;let i=null,o,a,s=n[r-2],u=n[r-1],l,c=this._regioncode(s,u),f,h;for(let d=0;d<r;d+=2)if(o=s,a=u,s=n[d],u=n[d+1],l=c,c=this._regioncode(s,u),l===0&&c===0)f=h,h=0,i?i.push(s,u):i=[s,u];else{let p,m,g,y,v;if(l===0){if((p=this._clipSegment(o,a,s,u,l,c))===null)continue;[m,g,y,v]=p}else{if((p=this._clipSegment(s,u,o,a,c,l))===null)continue;[y,v,m,g]=p,f=h,h=this._edgecode(m,g),f&&h&&this._edge(t,f,h,i,i.length),i?i.push(m,g):i=[m,g]}f=h,h=this._edgecode(y,v),f&&h&&this._edge(t,f,h,i,i.length),i?i.push(y,v):i=[y,v]}if(i)f=h,h=this._edgecode(i[0],i[1]),f&&h&&this._edge(t,f,h,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,o,a){for(;;){if(o===0&&a===0)return[t,n,r,i];if(o&a)return null;let s,u,l=o||a;l&8?(s=t+(r-t)*(this.ymax-n)/(i-n),u=this.ymax):l&4?(s=t+(r-t)*(this.ymin-n)/(i-n),u=this.ymin):l&2?(u=n+(i-n)*(this.xmax-t)/(r-t),s=this.xmax):(u=n+(i-n)*(this.xmin-t)/(r-t),s=this.xmin),o?(t=s,n=u,o=this._regioncode(t,n)):(r=s,i=u,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),u;if((u=this._project(s[0],s[1],r,i))&&s.unshift(u[0],u[1]),(u=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(u[0],u[1]),s=this._clipFinite(t,s))for(let l=0,c=s.length,f,h=this._edgecode(s[c-2],s[c-1]);l<c;l+=2)f=h,h=this._edgecode(s[l],s[l+1]),f&&h&&(l=this._edge(t,f,h,s,l),c=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}if(i.length>4)for(let a=0;a<i.length;a+=2){const s=(a+2)%i.length,u=(a+4)%i.length;(i[a]===i[s]&&i[s]===i[u]||i[a+1]===i[s+1]&&i[s+1]===i[u+1])&&(i.splice(s,2),a-=2)}return o}_project(t,n,r,i){let o=1/0,a,s,u;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(u=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(u=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,u=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,u=n+(o=a)*i)}return[s,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}const pQ=2*Math.PI,La=Math.pow;function gQ(e){return e[0]}function mQ(e){return e[1]}function yQ(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function vQ(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class W1{static from(t,n=gQ,r=mQ,i){return new W1("length"in t?bQ(t,n,r,i):Float64Array.from(xQ(t,n,r,i)))}constructor(t){this._delaunator=new yh(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&yQ(t)){this.collinear=Int32Array.from({length:n.length/2},(h,d)=>d).sort((h,d)=>n[2*h]-n[2*d]||n[2*h+1]-n[2*d+1]);const u=this.collinear[0],l=this.collinear[this.collinear.length-1],c=[n[2*u],n[2*u+1],n[2*l],n[2*l+1]],f=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let h=0,d=n.length/2;h<d;++h){const p=vQ(n[2*h],n[2*h+1],f);n[2*h]=p[0],n[2*h+1]=p[1]}this._delaunator=new yh(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let u=0,l=r.length;u<l;++u){const c=o[u%3===2?u-2:u+1];(r[u]===-1||a[c]===-1)&&(a[c]=u)}for(let u=0,l=i.length;u<l;++u)s[i[u]]=u;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],this.triangles[1]=i[1],this.triangles[2]=i[1],a[i[0]]=1,i.length===2&&(a[i[1]]=0))}voronoi(t){return new xM(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,collinear:s}=this;if(s){const f=s.indexOf(t);f>0&&(yield s[f-1]),f<s.length-1&&(yield s[f+1]);return}const u=n[t];if(u===-1)return;let l=u,c=-1;do{if(yield c=a[l],l=l%3===2?l-2:l+1,a[l]!==t)return;if(l=o[l],l===-1){const f=r[(i[t]+1)%r.length];f!==c&&(yield f);return}}while(l!==u)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:u,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let c=t,f=La(n-l[t*2],2)+La(r-l[t*2+1],2);const h=i[t];let d=h;do{let p=u[d];const m=La(n-l[p*2],2)+La(r-l[p*2+1],2);if(m<f&&(f=m,c=p),d=d%3===2?d-2:d+1,u[d]!==t)break;if(d=s[d],d===-1){if(d=o[(a[t]+1)%o.length],d!==p&&La(n-l[d*2],2)+La(r-l[d*2+1],2)<f)return d;break}}while(d!==h);return c}render(t){const n=t==null?t=new oo:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const u=i[a];if(u<a)continue;const l=o[a]*2,c=o[u]*2;t.moveTo(r[l],r[l+1]),t.lineTo(r[c],r[c+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n=2){const r=t==null?t=new oo:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],u=i[o+1];t.moveTo(s+n,u),t.arc(s,u,n,0,pQ)}return r&&r.value()}renderHull(t){const n=t==null?t=new oo:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const u=2*r[s];t.lineTo(i[u],i[u+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new j1;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new oo:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,u=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[u],i[u+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new j1;return this.renderTriangle(t,n),n.value()}}function bQ(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*xQ(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}var wQ={value:()=>{}};function wM(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new bh(n)}function bh(e){this._=e}function _Q(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}bh.prototype=wM.prototype={constructor:bh,on:function(e,t){var n=this._,r=_Q(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=$Q(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=_M(n[i],e.name,t);else if(t==null)for(i in n)n[i]=_M(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new bh(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function $Q(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function _M(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=wQ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var $M={},H1={},q1=34,Wu=10,U1=13;function SM(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function SQ(e,t){var n=SM(e);return function(r,i){return t(n(r),i,e)}}function MM(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var i in r)i in t||n.push(t[i]=i)}),n}function Qt(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function MQ(e){return e<0?"-"+Qt(-e,6):e>9999?"+"+Qt(e,6):Qt(e,4)}function TQ(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":MQ(e.getUTCFullYear())+"-"+Qt(e.getUTCMonth()+1,2)+"-"+Qt(e.getUTCDate(),2)+(i?"T"+Qt(t,2)+":"+Qt(n,2)+":"+Qt(r,2)+"."+Qt(i,3)+"Z":r?"T"+Qt(t,2)+":"+Qt(n,2)+":"+Qt(r,2)+"Z":n||t?"T"+Qt(t,2)+":"+Qt(n,2)+"Z":"")}function xh(e){var t=new RegExp('["'+e+`
100
- \r]`),n=e.charCodeAt(0);function r(f,h){var d,p,m=i(f,function(g,y){if(d)return d(g,y-1);p=g,d=h?SQ(g,h):SM(g)});return m.columns=p||[],m}function i(f,h){var d=[],p=f.length,m=0,g=0,y,v=p<=0,x=!1;f.charCodeAt(p-1)===Wu&&--p,f.charCodeAt(p-1)===U1&&--p;function b(){if(v)return H1;if(x)return x=!1,$M;var w,$=m,M;if(f.charCodeAt($)===q1){for(;m++<p&&f.charCodeAt(m)!==q1||f.charCodeAt(++m)===q1;);return(w=m)>=p?v=!0:(M=f.charCodeAt(m++))===Wu?x=!0:M===U1&&(x=!0,f.charCodeAt(m)===Wu&&++m),f.slice($+1,w-1).replace(/""/g,'"')}for(;m<p;){if((M=f.charCodeAt(w=m++))===Wu)x=!0;else if(M===U1)x=!0,f.charCodeAt(m)===Wu&&++m;else if(M!==n)continue;return f.slice($,w)}return v=!0,f.slice($,p)}for(;(y=b())!==H1;){for(var _=[];y!==$M&&y!==H1;)_.push(y),y=b();h&&(_=h(_,g++))==null||d.push(_)}return d}function o(f,h){return f.map(function(d){return h.map(function(p){return c(d[p])}).join(e)})}function a(f,h){return h==null&&(h=MM(f)),[h.map(c).join(e)].concat(o(f,h)).join(`
101
- `)}function s(f,h){return h==null&&(h=MM(f)),o(f,h).join(`
99
+ `),xn.rippleVisible,RH,dm,({theme:e})=>e.transitions.easing.easeInOut,xn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,xn.child,xn.childLeaving,DH,dm,({theme:e})=>e.transitions.easing.easeInOut,xn.childPulsate,LH,({theme:e})=>e.transitions.easing.easeInOut);var FH=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Ce(r,AH),[u,l]=K.useState([]),c=K.useRef(0),f=K.useRef(null);K.useEffect(()=>{f.current&&(f.current(),f.current=null)},[u]);const h=K.useRef(!1),d=K.useRef(0),p=K.useRef(null),m=K.useRef(null);K.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const g=K.useCallback(b=>{const{pulsate:_,rippleX:w,rippleY:$,rippleSize:T,cb:k}=b;l(S=>[...S,z(zH,{classes:{ripple:Ae(o.ripple,xn.ripple),rippleVisible:Ae(o.rippleVisible,xn.rippleVisible),ripplePulsate:Ae(o.ripplePulsate,xn.ripplePulsate),child:Ae(o.child,xn.child),childLeaving:Ae(o.childLeaving,xn.childLeaving),childPulsate:Ae(o.childPulsate,xn.childPulsate)},timeout:dm,pulsate:_,rippleX:w,rippleY:$,rippleSize:T},c.current)]),c.current+=1,f.current=k},[o]),y=K.useCallback((b={},_={},w=()=>{})=>{const{pulsate:$=!1,center:T=i||_.pulsate,fakeElement:k=!1}=_;if((b==null?void 0:b.type)==="mousedown"&&h.current){h.current=!1;return}(b==null?void 0:b.type)==="touchstart"&&(h.current=!0);const S=k?null:m.current,M=S?S.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,E,O;if(T||b===void 0||b.clientX===0&&b.clientY===0||!b.clientX&&!b.touches)A=Math.round(M.width/2),E=Math.round(M.height/2);else{const{clientX:P,clientY:C}=b.touches&&b.touches.length>0?b.touches[0]:b;A=Math.round(P-M.left),E=Math.round(C-M.top)}if(T)O=Math.sqrt((2*M.width**2+M.height**2)/3),O%2===0&&(O+=1);else{const P=Math.max(Math.abs((S?S.clientWidth:0)-A),A)*2+2,C=Math.max(Math.abs((S?S.clientHeight:0)-E),E)*2+2;O=Math.sqrt(P**2+C**2)}b!=null&&b.touches?p.current===null&&(p.current=()=>{g({pulsate:$,rippleX:A,rippleY:E,rippleSize:O,cb:w})},d.current=setTimeout(()=>{p.current&&(p.current(),p.current=null)},NH)):g({pulsate:$,rippleX:A,rippleY:E,rippleSize:O,cb:w})},[i,g]),v=K.useCallback(()=>{y({},{pulsate:!0})},[y]),x=K.useCallback((b,_)=>{if(clearTimeout(d.current),(b==null?void 0:b.type)==="touchend"&&p.current){p.current(),p.current=null,d.current=setTimeout(()=>{x(b,_)});return}p.current=null,l(w=>w.length>0?w.slice(1):w),f.current=_},[]);return K.useImperativeHandle(n,()=>({pulsate:v,start:y,stop:x}),[v,y,x]),z(IH,Z({className:Ae(xn.root,o.root,a),ref:m},s,{children:z(SH,{component:null,exit:!0,children:u})}))});function BH(e){return Yn("MuiButtonBase",e)}var jH=Gn("MuiButtonBase",["root","disabled","focusVisible"]);const WH=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],HH=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=kr({root:["root",t&&"disabled",n&&"focusVisible"]},BH,i);return n&&r&&(a.root+=` ${r}`),a},qH=Et("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${jH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var UH=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:u="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:d="a",onBlur:p,onClick:m,onContextMenu:g,onDragLeave:y,onFocus:v,onFocusVisible:x,onKeyDown:b,onKeyUp:_,onMouseDown:w,onMouseLeave:$,onMouseUp:T,onTouchEnd:k,onTouchMove:S,onTouchStart:M,tabIndex:A=0,TouchRippleProps:E,touchRippleRef:O,type:P}=r,C=Ce(r,WH),N=K.useRef(null),D=K.useRef(null),I=ti(D,O),{isFocusVisibleRef:B,onFocus:U,onBlur:Y,ref:J}=O$(),[q,j]=K.useState(!1);l&&q&&j(!1),K.useImperativeHandle(i,()=>({focusVisible:()=>{j(!0),N.current.focus()}}),[]);const[V,G]=K.useState(!1);K.useEffect(()=>{G(!0)},[]);const ne=V&&!c&&!l;K.useEffect(()=>{q&&h&&!c&&V&&D.current.pulsate()},[c,h,q,V]);function L(fe,Wt,xi=f){return Ys(kn=>(Wt&&Wt(kn),!xi&&D.current&&D.current[fe](kn),!0))}const W=L("start",w),X=L("stop",g),R=L("stop",y),te=L("stop",T),ee=L("stop",fe=>{q&&fe.preventDefault(),$&&$(fe)}),se=L("start",M),ce=L("stop",k),ie=L("stop",S),ge=L("stop",fe=>{Y(fe),B.current===!1&&j(!1),p&&p(fe)},!1),lt=Ys(fe=>{N.current||(N.current=fe.currentTarget),U(fe),B.current===!0&&(j(!0),x&&x(fe)),v&&v(fe)}),xe=()=>{const fe=N.current;return u&&u!=="button"&&!(fe.tagName==="A"&&fe.href)},St=K.useRef(!1),pt=Ys(fe=>{h&&!St.current&&q&&D.current&&fe.key===" "&&(St.current=!0,D.current.stop(fe,()=>{D.current.start(fe)})),fe.target===fe.currentTarget&&xe()&&fe.key===" "&&fe.preventDefault(),b&&b(fe),fe.target===fe.currentTarget&&xe()&&fe.key==="Enter"&&!l&&(fe.preventDefault(),m&&m(fe))}),ct=Ys(fe=>{h&&fe.key===" "&&D.current&&q&&!fe.defaultPrevented&&(St.current=!1,D.current.stop(fe,()=>{D.current.pulsate(fe)})),_&&_(fe),m&&fe.target===fe.currentTarget&&xe()&&fe.key===" "&&!fe.defaultPrevented&&m(fe)});let He=u;He==="button"&&(C.href||C.to)&&(He=d);const Ze={};He==="button"?(Ze.type=P===void 0?"button":P,Ze.disabled=l):(!C.href&&!C.to&&(Ze.role="button"),l&&(Ze["aria-disabled"]=l));const Qe=ti(n,J,N),Je=Z({},r,{centerRipple:o,component:u,disabled:l,disableRipple:c,disableTouchRipple:f,focusRipple:h,tabIndex:A,focusVisible:q}),Tn=HH(Je);return oe(qH,Z({as:He,className:Ae(Tn.root,s),ownerState:Je,onBlur:ge,onClick:m,onContextMenu:X,onFocus:lt,onKeyDown:pt,onKeyUp:ct,onMouseDown:W,onMouseLeave:ee,onMouseUp:te,onDragLeave:R,onTouchEnd:ce,onTouchMove:ie,onTouchStart:se,ref:Qe,tabIndex:l?-1:A,type:P},Ze,C,{children:[a,ne?z(FH,Z({ref:I,center:o},E)):null]}))});function VH(e){return Yn("MuiTypography",e)}Gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const YH=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],GH=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${Tr(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return kr(s,VH,a)},XH=Et("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Tr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Z({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),X5={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},KH={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZH=e=>KH[e]||e;var pm=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiTypography"}),i=ZH(r.color),o=c5(Z({},r,{color:i})),{align:a="inherit",className:s,component:u,gutterBottom:l=!1,noWrap:c=!1,paragraph:f=!1,variant:h="body1",variantMapping:d=X5}=o,p=Ce(o,YH),m=Z({},o,{align:a,color:i,className:s,component:u,gutterBottom:l,noWrap:c,paragraph:f,variant:h,variantMapping:d}),g=u||(f?"p":d[h]||X5[h])||"span",y=GH(m);return z(XH,Z({as:g,ref:n,ownerState:m,className:Ae(y.root,s)},p))});const QH=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],JH=Et(gH,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({});var K5=K.forwardRef(function(t,n){var r;const i=l5(),o=Jn({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:u,componentsProps:l,container:c,disablePortal:f,keepMounted:h,modifiers:d,open:p,placement:m,popperOptions:g,popperRef:y,transition:v,slots:x,slotProps:b}=o,_=Ce(o,QH),w=(r=x==null?void 0:x.root)!=null?r:u==null?void 0:u.Root,$=Z({anchorEl:a,container:c,disablePortal:f,keepMounted:h,modifiers:d,open:p,placement:m,popperOptions:g,popperRef:y,transition:v},_);return z(JH,Z({as:s,direction:i==null?void 0:i.direction,slots:{root:w},slotProps:b!=null?b:l},$,{ref:n}))});const eq=x5();var ot=ij({themeId:Uc,defaultTheme:eq,defaultClassName:"MuiBox-root",generateClassName:E$.generate});function tq(e){return Yn("MuiCard",e)}Gn("MuiCard",["root"]);const nq=["className","raised"],rq=e=>{const{classes:t}=e;return kr({root:["root"]},tq,t)},iq=Et(PH,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"}));var oq=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,a=Ce(r,nq),s=Z({},r,{raised:o}),u=rq(s);return z(iq,Z({className:Ae(u.root,i),elevation:o?8:void 0,ref:n,ownerState:s},a))});function aq(e){return Yn("MuiCardActionArea",e)}var gm=Gn("MuiCardActionArea",["root","focusVisible","focusHighlight"]);const sq=["children","className","focusVisibleClassName"],uq=e=>{const{classes:t}=e;return kr({root:["root"],focusHighlight:["focusHighlight"]},aq,t)},lq=Et(UH,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${gm.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${gm.focusVisible} .${gm.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),cq=Et("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})(({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}));var fq=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:a}=r,s=Ce(r,sq),u=r,l=uq(u);return oe(lq,Z({className:Ae(l.root,o),focusVisibleClassName:Ae(a,l.focusVisible),ref:n,ownerState:u},s,{children:[i,z(cq,{className:l.focusHighlight,ownerState:u})]}))});function hq(e){return Yn("MuiCardContent",e)}Gn("MuiCardContent",["root"]);const dq=["className","component"],pq=e=>{const{classes:t}=e;return kr({root:["root"]},hq,t)},gq=Et("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}}));var mq=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=r,a=Ce(r,dq),s=Z({},r,{component:o}),u=pq(s);return z(gq,Z({as:o,className:Ae(u.root,i),ownerState:s,ref:n},a))});function yq(e){return Yn("MuiCardMedia",e)}Gn("MuiCardMedia",["root","media","img"]);const vq=["children","className","component","image","src","style"],bq=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return kr({root:["root",n&&"media",r&&"img"]},yq,t)},xq=Et("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:i}=n;return[t.root,r&&t.media,i&&t.img]}})(({ownerState:e})=>Z({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"})),wq=["video","audio","picture","iframe","img"],_q=["picture","img"];var $q=K.forwardRef(function(t,n){const r=Jn({props:t,name:"MuiCardMedia"}),{children:i,className:o,component:a="div",image:s,src:u,style:l}=r,c=Ce(r,vq),f=wq.indexOf(a)!==-1,h=!f&&s?Z({backgroundImage:`url("${s}")`},l):l,d=Z({},r,{component:a,isMediaComponent:f,isImageComponent:_q.indexOf(a)!==-1}),p=bq(d);return z(xq,Z({className:Ae(p.root,o),as:a,role:!f&&s?"img":void 0,ref:n,style:h,ownerState:d,src:f?s||u:void 0},c,{children:i}))});const Sq=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function mm(e){return`scale(${e}, ${e**2})`}const Mq={entering:{opacity:1,transform:mm(1)},entered:{opacity:1,transform:"none"}},ym=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Z5=K.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:u,onEntered:l,onEntering:c,onExit:f,onExited:h,onExiting:d,style:p,timeout:m="auto",TransitionComponent:g=yH}=t,y=Ce(t,Sq),v=K.useRef(),x=K.useRef(),b=w5(),_=K.useRef(null),w=ti(_,o.ref,n),$=P=>C=>{if(P){const N=_.current;C===void 0?P(N):P(N,C)}},T=$(c),k=$((P,C)=>{MH(P);const{duration:N,delay:D,easing:I}=q5({style:p,timeout:m,easing:a},{mode:"enter"});let B;m==="auto"?(B=b.transitions.getAutoHeightDuration(P.clientHeight),x.current=B):B=N,P.style.transition=[b.transitions.create("opacity",{duration:B,delay:D}),b.transitions.create("transform",{duration:ym?B:B*.666,delay:D,easing:I})].join(","),u&&u(P,C)}),S=$(l),M=$(d),A=$(P=>{const{duration:C,delay:N,easing:D}=q5({style:p,timeout:m,easing:a},{mode:"exit"});let I;m==="auto"?(I=b.transitions.getAutoHeightDuration(P.clientHeight),x.current=I):I=C,P.style.transition=[b.transitions.create("opacity",{duration:I,delay:N}),b.transitions.create("transform",{duration:ym?I:I*.666,delay:ym?N:N||I*.333,easing:D})].join(","),P.style.opacity=0,P.style.transform=mm(.75),f&&f(P)}),E=$(h),O=P=>{m==="auto"&&(v.current=setTimeout(P,x.current||0)),r&&r(_.current,P)};return K.useEffect(()=>()=>{clearTimeout(v.current)},[]),z(g,Z({appear:i,in:s,nodeRef:_,onEnter:k,onEntered:S,onEntering:T,onExit:A,onExited:E,onExiting:M,addEndListener:O,timeout:m==="auto"?null:m},y,{children:(P,C)=>K.cloneElement(o,Z({style:Z({opacity:0,transform:mm(.75),visibility:P==="exited"&&!s?"hidden":void 0},Mq[P],p,o.props.style),ref:w},C))}))});Z5.muiSupportAuto=!0;var Q5=Z5;function Tq(e){return Yn("MuiTooltip",e)}var Er=Gn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const kq=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function Oq(e){return Math.round(e*1e5)/1e5}const Cq=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Tr(o.split("-")[0])}`],arrow:["arrow"]};return kr(a,Tq,t)},Pq=Et(K5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Er.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Er.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Er.arrow}`]:Z({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Er.arrow}`]:Z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Eq=Et("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Tr(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:_f(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Oq(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Er.popper}[data-popper-placement*="left"] &`]:Z({transformOrigin:"right center"},t.isRtl?Z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Er.popper}[data-popper-placement*="right"] &`]:Z({transformOrigin:"left center"},t.isRtl?Z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Er.popper}[data-popper-placement*="top"] &`]:Z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Er.popper}[data-popper-placement*="bottom"] &`]:Z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Aq=Et("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:_f(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Cf=!1,vm=null,hu={x:0,y:0};function Pf(e,t){return n=>{t&&t(n),e(n)}}var Nq=K.forwardRef(function(t,n){var r,i,o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_;const w=Jn({props:t,name:"MuiTooltip"}),{arrow:$=!1,children:T,components:k={},componentsProps:S={},describeChild:M=!1,disableFocusListener:A=!1,disableHoverListener:E=!1,disableInteractive:O=!1,disableTouchListener:P=!1,enterDelay:C=100,enterNextDelay:N=0,enterTouchDelay:D=700,followCursor:I=!1,id:B,leaveDelay:U=0,leaveTouchDelay:Y=1500,onClose:J,onOpen:q,open:j,placement:V="bottom",PopperComponent:G,PopperProps:ne={},slotProps:L={},slots:W={},title:X,TransitionComponent:R=Q5,TransitionProps:te}=w,ee=Ce(w,kq),se=K.isValidElement(T)?T:z("span",{children:T}),ce=w5(),ie=ce.direction==="rtl",[ge,lt]=K.useState(),[xe,St]=K.useState(null),pt=K.useRef(!1),ct=O||I,He=K.useRef(),Ze=K.useRef(),Qe=K.useRef(),Je=K.useRef(),[Tn,fe]=Yz({controlled:j,default:!1,name:"Tooltip",state:"open"});let Wt=Tn;const xi=Vz(B),kn=K.useRef(),wi=K.useCallback(()=>{kn.current!==void 0&&(document.body.style.WebkitUserSelect=kn.current,kn.current=void 0),clearTimeout(Je.current)},[]);K.useEffect(()=>()=>{clearTimeout(He.current),clearTimeout(Ze.current),clearTimeout(Qe.current),wi()},[wi]);const Ol=ve=>{clearTimeout(vm),Cf=!0,fe(!0),q&&!Wt&&q(ve)},ko=Ys(ve=>{clearTimeout(vm),vm=setTimeout(()=>{Cf=!1},800+U),fe(!1),J&&Wt&&J(ve),clearTimeout(He.current),He.current=setTimeout(()=>{pt.current=!1},ce.transitions.duration.shortest)}),ns=ve=>{pt.current&&ve.type!=="touchstart"||(ge&&ge.removeAttribute("title"),clearTimeout(Ze.current),clearTimeout(Qe.current),C||Cf&&N?Ze.current=setTimeout(()=>{Ol(ve)},Cf?N:C):Ol(ve))},Cl=ve=>{clearTimeout(Ze.current),clearTimeout(Qe.current),Qe.current=setTimeout(()=>{ko(ve)},U)},{isFocusVisibleRef:Pl,onBlur:qd,onFocus:Ud,ref:Vd}=O$(),[,El]=K.useState(!1),Al=ve=>{qd(ve),Pl.current===!1&&(El(!1),Cl(ve))},Nl=ve=>{ge||lt(ve.currentTarget),Ud(ve),Pl.current===!0&&(El(!0),ns(ve))},Rl=ve=>{pt.current=!0;const fn=se.props;fn.onTouchStart&&fn.onTouchStart(ve)},Yd=ns,Ht=Cl,On=ve=>{Rl(ve),clearTimeout(Qe.current),clearTimeout(He.current),wi(),kn.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Je.current=setTimeout(()=>{document.body.style.WebkitUserSelect=kn.current,ns(ve)},D)},Br=ve=>{se.props.onTouchEnd&&se.props.onTouchEnd(ve),wi(),clearTimeout(Qe.current),Qe.current=setTimeout(()=>{ko(ve)},Y)};K.useEffect(()=>{if(!Wt)return;function ve(fn){(fn.key==="Escape"||fn.key==="Esc")&&ko(fn)}return document.addEventListener("keydown",ve),()=>{document.removeEventListener("keydown",ve)}},[ko,Wt]);const jr=ti(se.ref,Vd,lt,n);!X&&X!==0&&(Wt=!1);const qt=K.useRef(),Oo=ve=>{const fn=se.props;fn.onMouseMove&&fn.onMouseMove(ve),hu={x:ve.clientX,y:ve.clientY},qt.current&&qt.current.update()},br={},Co=typeof X=="string";M?(br.title=!Wt&&Co&&!E?X:null,br["aria-describedby"]=Wt?xi:null):(br["aria-label"]=Co?X:null,br["aria-labelledby"]=Wt&&!Co?xi:null);const Mt=Z({},br,ee,se.props,{className:Ae(ee.className,se.props.className),onTouchStart:Rl,ref:jr},I?{onMouseMove:Oo}:{}),_i={};P||(Mt.onTouchStart=On,Mt.onTouchEnd=Br),E||(Mt.onMouseOver=Pf(Yd,Mt.onMouseOver),Mt.onMouseLeave=Pf(Ht,Mt.onMouseLeave),ct||(_i.onMouseOver=Yd,_i.onMouseLeave=Ht)),A||(Mt.onFocus=Pf(Nl,Mt.onFocus),Mt.onBlur=Pf(Al,Mt.onBlur),ct||(_i.onFocus=Nl,_i.onBlur=Al));const Gd=K.useMemo(()=>{var ve;let fn=[{name:"arrow",enabled:Boolean(xe),options:{element:xe,padding:4}}];return(ve=ne.popperOptions)!=null&&ve.modifiers&&(fn=fn.concat(ne.popperOptions.modifiers)),Z({},ne.popperOptions,{modifiers:fn})},[xe,ne]),Dl=Z({},w,{isRtl:ie,arrow:$,disableInteractive:ct,placement:V,PopperComponentProp:G,touch:pt.current}),ub=Cq(Dl),uO=(r=(i=W.popper)!=null?i:k.Popper)!=null?r:Pq,lO=(o=(a=(s=W.transition)!=null?s:k.Transition)!=null?a:R)!=null?o:Q5,cO=(u=(l=W.tooltip)!=null?l:k.Tooltip)!=null?u:Eq,fO=(c=(f=W.arrow)!=null?f:k.Arrow)!=null?c:Aq,Gue=ru(uO,Z({},ne,(h=L.popper)!=null?h:S.popper,{className:Ae(ub.popper,ne==null?void 0:ne.className,(d=(p=L.popper)!=null?p:S.popper)==null?void 0:d.className)}),Dl),Xue=ru(lO,Z({},te,(m=L.transition)!=null?m:S.transition),Dl),Kue=ru(cO,Z({},(g=L.tooltip)!=null?g:S.tooltip,{className:Ae(ub.tooltip,(y=(v=L.tooltip)!=null?v:S.tooltip)==null?void 0:y.className)}),Dl),Zue=ru(fO,Z({},(x=L.arrow)!=null?x:S.arrow,{className:Ae(ub.arrow,(b=(_=L.arrow)!=null?_:S.arrow)==null?void 0:b.className)}),Dl);return oe(K.Fragment,{children:[K.cloneElement(se,Mt),z(uO,Z({as:G!=null?G:K5,placement:V,anchorEl:I?{getBoundingClientRect:()=>({top:hu.y,left:hu.x,right:hu.x,bottom:hu.y,width:0,height:0})}:ge,popperRef:qt,open:ge?Wt:!1,id:xi,transition:!0},_i,Gue,{popperOptions:Gd,children:({TransitionProps:ve})=>z(lO,Z({timeout:ce.transitions.duration.shorter},ve,Xue,{children:oe(cO,Z({},Kue,{children:[X,$?z(fO,Z({},Zue,{ref:St})):null]}))}))}))]})});const Rq=({value:e,theme:t})=>{var a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$,T,k,S,M,A,E,O,P,C,N,D,I,B,U,Y,J,q,j,V,G,ne,L,W,X,R,te,ee,se,ce,ie,ge,lt,xe,St,pt;const[n,r]=H.useState(((s=(a=e==null?void 0:e.main)==null?void 0:a.data)==null?void 0:s.achieved)/((l=(u=e==null?void 0:e.main)==null?void 0:u.data)==null?void 0:l.total)*100);H.useEffect(()=>{var ct,He,Ze,Qe;r(((He=(ct=e==null?void 0:e.main)==null?void 0:ct.data)==null?void 0:He.achieved)/((Qe=(Ze=e==null?void 0:e.main)==null?void 0:Ze.data)==null?void 0:Qe.total)*100)},[e.main.data]);const i=()=>[`${t.myTheme.palette.grey[300]}`,`${t.myTheme.palette.primary.dark}`],o=Et(({className:ct,...He})=>z(Nq,{...He,classes:{popper:ct}}))(({})=>({[`& .${Er.tooltip}`]:{"& .MuiTooltip-arrow":{color:t.myTheme.palette.secondary.main},backgroundColor:t.myTheme.palette.secondary.main,color:t.myTheme.palette.text.primary,fontSize:11,boxShadow:`1px 2px ${t.myTheme.palette.secondary.dark}`}}));return(c=e==null?void 0:e.main)!=null&&c.developOnlyProgresBar?z(o,{arrow:!0,title:oe(Jt,{children:[oe("div",{style:{fontWeight:"normal",textAlign:"center"},children:[" ","Target Achieved"," "]}),oe("div",{style:{fontWeight:"bold",textAlign:"center"},children:[" ",(h=(f=e==null?void 0:e.main)==null?void 0:f.data)==null?void 0:h.achieved]})]}),placement:"top-end",theme:t,children:z(ot,{className:"progress-bar-fill",sx:{width:n>100?"100%":`${n}%`,backgroundColor:i()[1],height:"100%",borderRadius:"10px",marginBottom:"0px",transition:"width 0.5 ease-out",position:"relative",border:"1px solid transparent","&:hover":{border:"1px solid black"}},children:z("div",{style:{borderRadius:"50%",width:"7px",height:"7px",backgroundColor:`${t.myTheme.palette.common.white}`,position:"absolute",top:"2px",right:"2px"}})})}):oe("div",{className:"container",style:{backgroundColor:(p=(d=t.myTheme)==null?void 0:d.palette)==null?void 0:p.background.main,color:(y=(g=(m=t.myTheme)==null?void 0:m.palette)==null?void 0:g.text)==null?void 0:y.primary,width:"auto",height:"auto",margin:"auto"},children:[oe("div",{style:{display:"flex",justifyContent:"space-between",flexDirection:"row",width:"99%"},children:[z("div",{style:{padding:"23px 0px 0px 60px",marginBottom:"-13px",textAlign:"left",fontFamily:"inherit",fontSize:"16px",color:((b=(x=(v=t.myTheme)==null?void 0:v.palette)==null?void 0:x.text)==null?void 0:b.secondary)||"#121926"},children:(_=e==null?void 0:e.main)==null?void 0:_.heading}),oe("div",{style:{padding:"25px 0px 0px 55px",marginBottom:"-13px",textAlign:"left",fontFamily:"inherit",fontSize:"16px",color:((T=($=(w=t.myTheme)==null?void 0:w.palette)==null?void 0:$.text)==null?void 0:T.primary)||"black"},children:[n.toFixed(2),"%"]})]}),oe("div",{style:{padding:"0px 0px 0px 25px",height:"auto"},children:[oe("div",{style:{width:"100%",height:"6px",margin:"auto",borderRadius:"10px",marginBottom:"15px",position:"relative"},children:[z("div",{style:{width:"-webkit-fill-available",height:"12px",margin:"auto",borderRadius:"10px",backgroundColor:i()[0],marginBottom:"0px",position:"absolute",top:"10px",left:"12.5px"},children:z(o,{arrow:!0,title:oe(Jt,{children:[oe("div",{style:{fontWeight:"normal",textAlign:"center"},children:[" ","Target Achieved"," "]}),oe("div",{style:{fontWeight:"bold",textAlign:"center"},children:[" ",(S=(k=e==null?void 0:e.main)==null?void 0:k.data)==null?void 0:S.achieved]})]}),placement:"top-end",theme:t,children:z(ot,{className:"progress-bar-fill",sx:{width:n>100?"100%":`${n}%`,backgroundColor:i()[1],height:"100%",borderRadius:"10px",marginBottom:"0px",transition:"width 0.5 ease-out",position:"relative",border:"1px solid transparent","&:hover":{border:"1px solid black"}},children:z("div",{style:{borderRadius:"50%",width:"7px",height:"7px",backgroundColor:`${t.myTheme.palette.common.white}`,position:"absolute",top:"2px",right:"2px"}})})})}),z("div",{style:{borderRadius:"50%",width:"30px",height:"30px",backgroundColor:`${t.myTheme.palette.grey[300]}`,position:"absolute",top:"0px"}})]}),oe("div",{style:{display:"flex",color:(E=(A=(M=t.myTheme)==null?void 0:M.palette)==null?void 0:A.text)==null?void 0:E.primary,paddingLeft:"25px",width:"98%",margin:"auto"},children:[oe("div",{style:{width:"33.33%"},children:[z("div",{style:{textAlign:"left",fontSize:"14px",color:(P=(O=t.myTheme)==null?void 0:O.palette)==null?void 0:P.grey[600]},children:((C=e==null?void 0:e.main)==null?void 0:C.bottomLabel_1)||"Target"}),z("div",{style:{color:(D=(N=t.myTheme)==null?void 0:N.palette)==null?void 0:D.grey[600],textAlign:"left"},children:((B=(I=e==null?void 0:e.main)==null?void 0:I.data)==null?void 0:B.total)||((Y=(U=e==null?void 0:e.main)==null?void 0:U.data)==null?void 0:Y.bottomLabel_1_value)})]}),oe("div",{style:{width:"33.33%"},children:[z("div",{style:{textAlign:"center",fontSize:"14px",color:(q=(J=t.myTheme)==null?void 0:J.palette)==null?void 0:q.grey[600]},children:((j=e==null?void 0:e.main)==null?void 0:j.bottomLabel_2)||"Achieved"}),z("div",{style:{textAlign:"center",color:(G=(V=t.myTheme)==null?void 0:V.palette)==null?void 0:G.grey[600]},children:((L=(ne=e==null?void 0:e.main)==null?void 0:ne.data)==null?void 0:L.achieved)||((X=(W=e==null?void 0:e.main)==null?void 0:W.data)==null?void 0:X.bottomLabel_2_value)})]}),oe("div",{style:{width:"33.33%"},children:[z("div",{style:{textAlign:"right",fontSize:"14px",color:(te=(R=t.myTheme)==null?void 0:R.palette)==null?void 0:te.grey[600]},children:((ee=e==null?void 0:e.main)==null?void 0:ee.bottomLabel_3)||"Remaining"}),z("div",{style:{textAlign:"right",color:(ce=(se=t.myTheme)==null?void 0:se.palette)==null?void 0:ce.grey[600]},children:Math.max(0,((ge=(ie=e==null?void 0:e.main)==null?void 0:ie.data)==null?void 0:ge.remaining)||((xe=(lt=e==null?void 0:e.main)==null?void 0:lt.data)==null?void 0:xe.total)-((pt=(St=e==null?void 0:e.main)==null?void 0:St.data)==null?void 0:pt.achieved))})]})]})]})]})};var J5={},e3={exports:{}},du={exports:{}};(function(e){function t(n){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(du),function(e){var t=du.exports.default;function n(i){if(typeof WeakMap!="function")return null;var o=new WeakMap,a=new WeakMap;return(n=function(u){return u?a:o})(i)}function r(i,o){if(!o&&i&&i.__esModule)return i;if(i===null||t(i)!=="object"&&typeof i!="function")return{default:i};var a=n(o);if(a&&a.has(i))return a.get(i);var s={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in i)if(l!=="default"&&Object.prototype.hasOwnProperty.call(i,l)){var c=u?Object.getOwnPropertyDescriptor(i,l):null;c&&(c.get||c.set)?Object.defineProperty(s,l,c):s[l]=i[l]}return s.default=i,a&&a.set(i,s),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(e3);var ga={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ga);var t3={exports:{}};(function(e){function t(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(t3);var n3={exports:{}},bm={exports:{}},r3={exports:{}};(function(e){var t=du.exports.default;function n(r,i){if(t(r)!=="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,i||"default");if(t(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(r3),function(e){var t=du.exports.default,n=r3.exports;function r(i){var o=n(i,"string");return t(o)==="symbol"?o:String(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(bm),function(e){var t=bm.exports;function n(i,o){for(var a=0;a<o.length;a++){var s=o[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(i,t(s.key),s)}}function r(i,o,a){return o&&n(i.prototype,o),a&&n(i,a),Object.defineProperty(i,"prototype",{writable:!1}),i}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(n3);var xm={exports:{}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(xm);var i3={exports:{}},o3={exports:{}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,a){return o.__proto__=a,o},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(o3),function(e){var t=o3.exports;function n(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),i&&t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(i3);var a3={exports:{}};(function(e){var t=du.exports.default,n=xm.exports;function r(i,o){if(o&&(t(o)==="object"||typeof o=="function"))return o;if(o!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return n(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(a3);var s3={exports:{}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(i){return i.__proto__||Object.getPrototypeOf(i)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(s3);var wm={exports:{}};(function(e){var t=bm.exports;function n(r,i,o){return i=t(i),i in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(wm);var Dq="6.7.0";function Ve(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ef(e){let t=e,n=e;e.length===1&&(t=(a,s)=>e(a)-s,n=Lq(e));function r(a,s,u,l){for(u==null&&(u=0),l==null&&(l=a.length);u<l;){const c=u+l>>>1;n(a[c],s)<0?u=c+1:l=c}return u}function i(a,s,u,l){for(u==null&&(u=0),l==null&&(l=a.length);u<l;){const c=u+l>>>1;n(a[c],s)>0?l=c:u=c+1}return u}function o(a,s,u,l){u==null&&(u=0),l==null&&(l=a.length);const c=r(a,s,u,l-1);return c>u&&t(a[c-1],s)>-t(a[c],s)?c-1:c}return{left:r,center:o,right:i}}function Lq(e){return(t,n)=>Ve(e(t),n)}function u3(e){return e===null?NaN:+e}function*Iq(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const l3=Ef(Ve),c3=l3.right,zq=l3.left,Fq=Ef(u3).center;var Ki=c3;function Af(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function Bq(e){return e.length|0}function jq(e){return!(e>0)}function Wq(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function Hq(e){return t=>e(...t)}function qq(...e){const t=typeof e[e.length-1]=="function"&&Hq(e.pop());e=e.map(Wq);const n=e.map(Bq),r=e.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||n.some(jq))return o;for(;;){o.push(i.map((s,u)=>e[u][s]));let a=r;for(;++i[a]===n[a];){if(a===0)return t?o.map(t):o;i[a--]=0}}}function Uq(e,t){var n=0,r=0;return Float64Array.from(e,t===void 0?i=>n+=+i||0:i=>n+=+t(i,r++,e)||0)}function Vq(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function f3(e,t){let n=0,r,i=0,o=0;if(t===void 0)for(let a of e)a!=null&&(a=+a)>=a&&(r=a-i,i+=r/++n,o+=r*(a-i));else{let a=-1;for(let s of e)(s=t(s,++a,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,o+=r*(s-i))}if(n>1)return o/(n-1)}function h3(e,t){const n=f3(e,t);return n&&Math.sqrt(n)}function Nf(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}class Ge{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const o=n[i],a=t+o,s=Math.abs(t)<Math.abs(o)?t-(a-o):o-(a-t);s&&(n[r++]=s),t=a}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,o,a=0;if(n>0){for(a=t[--n];n>0&&(r=a,i=t[--n],a=r+i,o=i-(a-r),!o););n>0&&(o<0&&t[n-1]<0||o>0&&t[n-1]>0)&&(i=o*2,r=a+i,i==r-a&&(a=r))}return a}}function Yq(e,t){const n=new Ge;if(t===void 0)for(let r of e)(r=+r)&&n.add(r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&n.add(i)}return+n}function Gq(e,t){const n=new Ge;let r=-1;return Float64Array.from(e,t===void 0?i=>n.add(+i||0):i=>n.add(+t(i,++r,e)||0))}class d3 extends Map{constructor(t,n=m3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(_m(this,t))}has(t){return super.has(_m(this,t))}set(t,n){return super.set(p3(this,t),n)}delete(t){return super.delete(g3(this,t))}}class Xq extends Set{constructor(t,n=m3){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(_m(this,t))}add(t){return super.add(p3(this,t))}delete(t){return super.delete(g3(this,t))}}function _m({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function p3({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function g3({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function m3(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ma(e){return e}function y3(e,...t){return ya(e,ma,ma,t)}function Kq(e,...t){return ya(e,Array.from,ma,t)}function v3(e,t,...n){return ya(e,ma,t,n)}function Zq(e,t,...n){return ya(e,Array.from,t,n)}function Qq(e,...t){return ya(e,ma,b3,t)}function Jq(e,...t){return ya(e,Array.from,b3,t)}function b3(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function ya(e,t,n,r){return function i(o,a){if(a>=r.length)return n(o);const s=new d3,u=r[a++];let l=-1;for(const c of o){const f=u(c,++l,o),h=s.get(f);h?h.push(c):s.set(f,[c])}for(const[c,f]of s)s.set(c,i(f,a));return t(s)}(e,0)}function x3(e,t){return Array.from(t,n=>e[n])}function $m(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n=Ve]=t;if(n.length===1||t.length>1){const r=Uint32Array.from(e,(i,o)=>o);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,o)=>{for(const a of t){const s=Ve(a[i],a[o]);if(s)return s}})):(n=e.map(n),r.sort((i,o)=>Ve(n[i],n[o]))),x3(e,r)}return e.sort(n)}function eU(e,t,n){return(t.length===1?$m(v3(e,t,n),([r,i],[o,a])=>Ve(i,a)||Ve(r,o)):$m(y3(e,n),([r,i],[o,a])=>t(i,a)||Ve(r,o))).map(([r])=>r)}var tU=Array.prototype,nU=tU.slice;function Rf(e){return function(){return e}}var Sm=Math.sqrt(50),Mm=Math.sqrt(10),Tm=Math.sqrt(2);function pu(e,t,n){var r,i=-1,o,a,s;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),(s=gu(e,t,n))===0||!isFinite(s))return[];if(s>0){let u=Math.round(e/s),l=Math.round(t/s);for(u*s<e&&++u,l*s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)*s}else{s=-s;let u=Math.round(e*s),l=Math.round(t*s);for(u/s<e&&++u,l/s>t&&--l,a=new Array(o=l-u+1);++i<o;)a[i]=(u+i)/s}return r&&a.reverse(),a}function gu(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Sm?10:o>=Mm?5:o>=Tm?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Sm?10:o>=Mm?5:o>=Tm?2:1)}function Df(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Sm?i*=10:o>=Mm?i*=5:o>=Tm&&(i*=2),t<e?-i:i}function w3(e,t,n){let r;for(;;){const i=gu(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function _3(e){return Math.ceil(Math.log(Af(e))/Math.LN2)+1}function $3(){var e=ma,t=Nf,n=_3;function r(i){Array.isArray(i)||(i=Array.from(i));var o,a=i.length,s,u=new Array(a);for(o=0;o<a;++o)u[o]=e(i[o],o,i);var l=t(u),c=l[0],f=l[1],h=n(u,c,f);if(!Array.isArray(h)){const g=f,y=+h;if(t===Nf&&([c,f]=w3(c,f,y)),h=pu(c,f,y),h[h.length-1]>=f)if(g>=f&&t===Nf){const v=gu(c,f,y);isFinite(v)&&(v>0?f=(Math.floor(f/v)+1)*v:v<0&&(f=(Math.ceil(f*-v)+1)/-v))}else h.pop()}for(var d=h.length;h[0]<=c;)h.shift(),--d;for(;h[d-1]>f;)h.pop(),--d;var p=new Array(d+1),m;for(o=0;o<=d;++o)m=p[o]=[],m.x0=o>0?h[o-1]:c,m.x1=o<d?h[o]:f;for(o=0;o<a;++o)s=u[o],c<=s&&s<=f&&p[Ki(h,s,0,d)].push(i[o]);return p}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:Rf(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:Rf([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:Array.isArray(i)?Rf(nU.call(i)):Rf(i),r):n},r}function km(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Lf(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Om(e,t,n=0,r=e.length-1,i=Ve){for(;r>n;){if(r-n>600){const u=r-n+1,l=t-n+1,c=Math.log(u),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(u-f)/u)*(l-u/2<0?-1:1),d=Math.max(n,Math.floor(t-l*f/u+h)),p=Math.min(r,Math.floor(t+(u-l)*f/u+h));Om(e,t,d,p,i)}const o=e[t];let a=n,s=r;for(mu(e,n,t),i(e[r],o)>0&&mu(e,n,r);a<s;){for(mu(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?mu(e,n,s):(++s,mu(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function mu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function yu(e,t,n){if(e=Float64Array.from(Iq(e,n)),!!(r=e.length)){if((t=+t)<=0||r<2)return Lf(e);if(t>=1)return km(e);var r,i=(r-1)*t,o=Math.floor(i),a=km(Om(e,o).subarray(0,o+1)),s=Lf(e.subarray(o+1));return a+(s-a)*(i-o)}}function S3(e,t,n=u3){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,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function rU(e,t,n){return Math.ceil((n-t)/(2*(yu(e,.75)-yu(e,.25))*Math.pow(Af(e),-1/3)))}function iU(e,t,n){return Math.ceil((n-t)/(3.5*h3(e)*Math.pow(Af(e),-1/3)))}function M3(e,t){let n,r=-1,i=-1;if(t===void 0)for(const o of e)++i,o!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=i);else for(let o of e)(o=t(o,++i,e))!=null&&(n<o||n===void 0&&o>=o)&&(n=o,r=i);return r}function oU(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(o=+o)>=o&&(++n,r+=o)}if(n)return r/n}function aU(e,t){return yu(e,.5,t)}function*sU(e){for(const t of e)yield*t}function Cm(e){return Array.from(sU(e))}function T3(e,t){let n,r=-1,i=-1;if(t===void 0)for(const o of e)++i,o!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=i);else for(let o of e)(o=t(o,++i,e))!=null&&(n>o||n===void 0&&o>=o)&&(n=o,r=i);return r}function uU(e,t=lU){const n=[];let r,i=!1;for(const o of e)i&&n.push(t(r,o)),r=o,i=!0;return n}function lU(e,t){return[e,t]}function ri(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function cU(e,t=Ve){let n,r=!1;if(t.length===1){let i;for(const o of e){const a=t(o);(r?Ve(a,i)<0:Ve(a,a)===0)&&(n=o,i=a,r=!0)}}else for(const i of e)(r?t(i,n)<0:t(i,i)===0)&&(n=i,r=!0);return n}function k3(e,t=Ve){if(t.length===1)return T3(e,t);let n,r=-1,i=-1;for(const o of e)++i,(r<0?t(o,o)===0:t(o,n)<0)&&(n=o,r=i);return r}function fU(e,t=Ve){let n,r=!1;if(t.length===1){let i;for(const o of e){const a=t(o);(r?Ve(a,i)>0:Ve(a,a)===0)&&(n=o,i=a,r=!0)}}else for(const i of e)(r?t(i,n)>0:t(i,i)===0)&&(n=i,r=!0);return n}function hU(e,t=Ve){if(t.length===1)return M3(e,t);let n,r=-1,i=-1;for(const o of e)++i,(r<0?t(o,o)===0:t(o,n)>0)&&(n=o,r=i);return r}function dU(e,t){const n=k3(e,t);return n<0?void 0:n}var pU=O3(Math.random);function O3(e){return function(n,r=0,i=n.length){let o=i-(r=+r);for(;o;){const a=e()*o--|0,s=n[o+r];n[o+r]=n[a+r],n[a+r]=s}return n}}function gU(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function C3(e){if(!(o=e.length))return[];for(var t=-1,n=Lf(e,mU),r=new Array(n);++t<n;)for(var i=-1,o,a=r[t]=new Array(o);++i<o;)a[i]=e[i][t];return r}function mU(e){return e.length}function yU(){return C3(arguments)}function vU(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(!t(r,++n,e))return!1;return!0}function bU(e,t){if(typeof t!="function")throw new TypeError("test is not a function");let n=-1;for(const r of e)if(t(r,++n,e))return!0;return!1}function xU(e,t){if(typeof t!="function")throw new TypeError("test is not a function");const n=[];let r=-1;for(const i of e)t(i,++r,e)&&n.push(i);return n}function wU(e,t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");if(typeof t!="function")throw new TypeError("mapper is not a function");return Array.from(e,(n,r)=>t(n,r,e))}function _U(e,t,n){if(typeof t!="function")throw new TypeError("reducer is not a function");const r=e[Symbol.iterator]();let i,o,a=-1;if(arguments.length<3){if({done:i,value:n}=r.next(),i)return;++a}for(;{done:i,value:o}=r.next(),!i;)n=t(n,o,++a,e);return n}function $U(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function SU(e,...t){e=new Set(e);for(const n of t)for(const r of n)e.delete(r);return e}function MU(e,t){const n=t[Symbol.iterator](),r=new Set;for(const i of e){if(r.has(i))return!1;let o,a;for(;({value:o,done:a}=n.next())&&!a;){if(Object.is(i,o))return!1;r.add(o)}}return!0}function TU(e){return e instanceof Set?e:new Set(e)}function kU(e,...t){e=new Set(e),t=t.map(TU);e:for(const n of e)for(const r of t)if(!r.has(n)){e.delete(n);continue e}return e}function P3(e,t){const n=e[Symbol.iterator](),r=new Set;for(const i of t){if(r.has(i))continue;let o,a;for(;{value:o,done:a}=n.next();){if(a)return!1;if(r.add(o),Object.is(i,o))break}}return!0}function OU(e,t){return P3(t,e)}function CU(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var Pm=Array.prototype.slice;function PU(e){return e}var If=1,zf=2,Em=3,vu=4,E3=1e-6;function EU(e){return"translate("+e+",0)"}function AU(e){return"translate(0,"+e+")"}function NU(e){return t=>+e(t)}function RU(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function DU(){return!this.__axis}function Ff(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,u=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,l=e===If||e===vu?-1:1,c=e===vu||e===zf?"x":"y",f=e===If||e===Em?EU:AU;function h(d){var p=r==null?t.ticks?t.ticks.apply(t,n):t.domain():r,m=i==null?t.tickFormat?t.tickFormat.apply(t,n):PU:i,g=Math.max(o,0)+s,y=t.range(),v=+y[0]+u,x=+y[y.length-1]+u,b=(t.bandwidth?RU:NU)(t.copy(),u),_=d.selection?d.selection():d,w=_.selectAll(".domain").data([null]),$=_.selectAll(".tick").data(p,t).order(),T=$.exit(),k=$.enter().append("g").attr("class","tick"),S=$.select("line"),M=$.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),$=$.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),M=M.merge(k.append("text").attr("fill","currentColor").attr(c,l*g).attr("dy",e===If?"0em":e===Em?"0.71em":"0.32em")),d!==_&&(w=w.transition(d),$=$.transition(d),S=S.transition(d),M=M.transition(d),T=T.transition(d).attr("opacity",E3).attr("transform",function(A){return isFinite(A=b(A))?f(A+u):this.getAttribute("transform")}),k.attr("opacity",E3).attr("transform",function(A){var E=this.parentNode.__axis;return f((E&&isFinite(E=E(A))?E:b(A))+u)})),T.remove(),w.attr("d",e===vu||e===zf?a?"M"+l*a+","+v+"H"+u+"V"+x+"H"+l*a:"M"+u+","+v+"V"+x:a?"M"+v+","+l*a+"V"+u+"H"+x+"V"+l*a:"M"+v+","+u+"H"+x),$.attr("opacity",1).attr("transform",function(A){return f(b(A)+u)}),S.attr(c+"2",l*o),M.attr(c,l*g).text(m),_.filter(DU).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===zf?"start":e===vu?"end":"middle"),_.each(function(){this.__axis=b})}return h.scale=function(d){return arguments.length?(t=d,h):t},h.ticks=function(){return n=Pm.call(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Pm.call(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Pm.call(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(o=a=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(a=+d,h):a},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(u=+d,h):u},h}function LU(e){return Ff(If,e)}function IU(e){return Ff(zf,e)}function zU(e){return Ff(Em,e)}function FU(e){return Ff(vu,e)}var BU={value:function(){}};function va(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Bf(n)}function Bf(e){this._=e}function jU(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Bf.prototype=va.prototype={constructor:Bf,on:function(e,t){var n=this._,r=jU(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=WU(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=A3(n[i],e.name,t);else if(t==null)for(i in n)n[i]=A3(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Bf(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function WU(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function A3(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=BU,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Am="http://www.w3.org/1999/xhtml",Nm={svg:"http://www.w3.org/2000/svg",xhtml:Am,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function bu(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Nm.hasOwnProperty(t)?{space:Nm[t],local:e}:e}function HU(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Am&&t.documentElement.namespaceURI===Am?t.createElement(e):t.createElementNS(n,e)}}function qU(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function jf(e){var t=bu(e);return(t.local?qU:HU)(t)}function UU(){}function Wf(e){return e==null?UU:function(){return this.querySelector(e)}}function VU(e){typeof e!="function"&&(e=Wf(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=new Array(a),u,l,c=0;c<a;++c)(u=o[c])&&(l=e.call(u,u.__data__,c,o))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new vt(r,this._parents)}function Rm(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function YU(){return[]}function Dm(e){return e==null?YU:function(){return this.querySelectorAll(e)}}function GU(e){return function(){var t=e.apply(this,arguments);return t==null?[]:Rm(t)}}function XU(e){typeof e=="function"?e=GU(e):e=Dm(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&(r.push(e.call(u,u.__data__,l,a)),i.push(u));return new vt(r,i)}function Lm(e){return function(){return this.matches(e)}}function N3(e){return function(t){return t.matches(e)}}var KU=Array.prototype.find;function ZU(e){return function(){return KU.call(this.children,e)}}function QU(){return this.firstElementChild}function JU(e){return this.select(e==null?QU:ZU(typeof e=="function"?e:N3(e)))}var eV=Array.prototype.filter;function tV(){return this.children}function nV(e){return function(){return eV.call(this.children,e)}}function rV(e){return this.selectAll(e==null?tV:nV(typeof e=="function"?e:N3(e)))}function iV(e){typeof e!="function"&&(e=Lm(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new vt(r,this._parents)}function R3(e){return new Array(e.length)}function oV(){return new vt(this._enter||this._groups.map(R3),this._parents)}function Hf(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Hf.prototype={constructor:Hf,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function aV(e){return function(){return e}}function sV(e,t,n,r,i,o){for(var a=0,s,u=t.length,l=o.length;a<l;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Hf(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function uV(e,t,n,r,i,o,a){var s,u,l=new Map,c=t.length,f=o.length,h=new Array(c),d;for(s=0;s<c;++s)(u=t[s])&&(h[s]=d=a.call(u,u.__data__,s,t)+"",l.has(d)?i[s]=u:l.set(d,u));for(s=0;s<f;++s)d=a.call(e,o[s],s,o)+"",(u=l.get(d))?(r[s]=u,u.__data__=o[s],l.delete(d)):n[s]=new Hf(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l.get(h[s])===u&&(i[s]=u)}function lV(e){return e.__data__}function cV(e,t){if(!arguments.length)return Array.from(this,lV);var n=t?uV:sV,r=this._parents,i=this._groups;typeof e!="function"&&(e=aV(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],h=f.length,d=Rm(e.call(c,c&&c.__data__,l,r)),p=d.length,m=s[l]=new Array(p),g=a[l]=new Array(p),y=u[l]=new Array(h);n(c,f,m,g,y,d,t);for(var v=0,x=0,b,_;v<p;++v)if(b=m[v]){for(v>=x&&(x=v+1);!(_=g[x])&&++x<p;);b._next=_||null}}return a=new vt(a,r),a._enter=s,a._exit=u,a}function fV(){return new vt(this._exit||this._groups.map(R3),this._parents)}function hV(e,t,n){var r=this.enter(),i=this,o=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function dV(e){if(!(e instanceof vt))throw new Error("invalid merge");for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,f=a[s]=new Array(c),h,d=0;d<c;++d)(h=u[d]||l[d])&&(f[d]=h);for(;s<r;++s)a[s]=t[s];return new vt(a,this._parents)}function pV(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function gV(e){e||(e=mV);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,u=i[o]=new Array(s),l,c=0;c<s;++c)(l=a[c])&&(u[c]=l);u.sort(t)}return new vt(i,this._parents).order()}function mV(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function yV(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function vV(){return Array.from(this)}function bV(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function xV(){let e=0;for(const t of this)++e;return e}function wV(){return!this.node()}function _V(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&e.call(s,s.__data__,o,i);return this}function $V(e){return function(){this.removeAttribute(e)}}function SV(e){return function(){this.removeAttributeNS(e.space,e.local)}}function MV(e,t){return function(){this.setAttribute(e,t)}}function TV(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kV(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function OV(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function CV(e,t){var n=bu(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?SV:$V:typeof t=="function"?n.local?OV:kV:n.local?TV:MV)(n,t))}function Im(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function PV(e){return function(){this.style.removeProperty(e)}}function EV(e,t,n){return function(){this.style.setProperty(e,t,n)}}function AV(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function NV(e,t,n){return arguments.length>1?this.each((t==null?PV:typeof t=="function"?AV:EV)(e,t,n==null?"":n)):Zi(this.node(),e)}function Zi(e,t){return e.style.getPropertyValue(t)||Im(e).getComputedStyle(e,null).getPropertyValue(t)}function RV(e){return function(){delete this[e]}}function DV(e,t){return function(){this[e]=t}}function LV(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function IV(e,t){return arguments.length>1?this.each((t==null?RV:typeof t=="function"?LV:DV)(e,t)):this.node()[e]}function D3(e){return e.trim().split(/^|\s+/)}function zm(e){return e.classList||new L3(e)}function L3(e){this._node=e,this._names=D3(e.getAttribute("class")||"")}L3.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function I3(e,t){for(var n=zm(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function z3(e,t){for(var n=zm(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function zV(e){return function(){I3(this,e)}}function FV(e){return function(){z3(this,e)}}function BV(e,t){return function(){(t.apply(this,arguments)?I3:z3)(this,e)}}function jV(e,t){var n=D3(e+"");if(arguments.length<2){for(var r=zm(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?BV:t?zV:FV)(n,t))}function WV(){this.textContent=""}function HV(e){return function(){this.textContent=e}}function qV(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function UV(e){return arguments.length?this.each(e==null?WV:(typeof e=="function"?qV:HV)(e)):this.node().textContent}function VV(){this.innerHTML=""}function YV(e){return function(){this.innerHTML=e}}function GV(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function XV(e){return arguments.length?this.each(e==null?VV:(typeof e=="function"?GV:YV)(e)):this.node().innerHTML}function KV(){this.nextSibling&&this.parentNode.appendChild(this)}function ZV(){return this.each(KV)}function QV(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function JV(){return this.each(QV)}function eY(e){var t=typeof e=="function"?e:jf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function tY(){return null}function nY(e,t){var n=typeof e=="function"?e:jf(e),r=t==null?tY:typeof t=="function"?t:Wf(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function rY(){var e=this.parentNode;e&&e.removeChild(this)}function iY(){return this.each(rY)}function oY(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function aY(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function sY(e){return this.select(e?aY:oY)}function uY(e){return arguments.length?this.property("__data__",e):this.node().__data__}function lY(e){return function(t){e.call(this,t,this.__data__)}}function cY(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function fY(e){return function(){var t=this.__on;if(!!t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function hY(e,t,n){return function(){var r=this.__on,i,o=lY(t);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function dY(e,t,n){var r=cY(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?hY:fY,i=0;i<o;++i)this.each(s(r[i],t,n));return this}function F3(e,t,n){var r=Im(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function pY(e,t){return function(){return F3(this,e,t)}}function gY(e,t){return function(){return F3(this,e,t.apply(this,arguments))}}function mY(e,t){return this.each((typeof t=="function"?gY:pY)(e,t))}function*yY(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var Fm=[null];function vt(e,t){this._groups=e,this._parents=t}function Qi(){return new vt([[document.documentElement]],Fm)}function vY(){return this}vt.prototype=Qi.prototype={constructor:vt,select:VU,selectAll:XU,selectChild:JU,selectChildren:rV,filter:iV,data:cV,enter:oV,exit:fV,join:hV,merge:dV,selection:vY,order:pV,sort:gV,call:yV,nodes:vV,node:bV,size:xV,empty:wV,each:_V,attr:CV,style:NV,property:IV,classed:jV,text:UV,html:XV,raise:ZV,lower:JV,append:eY,insert:nY,remove:iY,clone:sY,datum:uY,on:dY,dispatch:mY,[Symbol.iterator]:yY};function bt(e){return typeof e=="string"?new vt([[document.querySelector(e)]],[document.documentElement]):new vt([[e]],Fm)}function bY(e){return bt(jf(e).call(document.documentElement))}var xY=0;function B3(){return new Bm}function Bm(){this._="@"+(++xY).toString(36)}Bm.prototype=B3.prototype={constructor:Bm,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function j3(e){let t;for(;t=e.sourceEvent;)e=t;return e}function an(e,t){if(e=j3(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}function wY(e,t){return e.target&&(e=j3(e),t===void 0&&(t=e.currentTarget),e=e.touches||[e]),Array.from(e,n=>an(n,t))}function _Y(e){return typeof e=="string"?new vt([document.querySelectorAll(e)],[document.documentElement]):new vt([e==null?[]:Rm(e)],Fm)}function jm(e){e.stopImmediatePropagation()}function ba(e){e.preventDefault(),e.stopImmediatePropagation()}function qf(e){var t=e.document.documentElement,n=bt(e).on("dragstart.drag",ba,!0);"onselectstart"in t?n.on("selectstart.drag",ba,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Uf(e,t){var n=e.document.documentElement,r=bt(e).on("dragstart.drag",null);t&&(r.on("click.drag",ba,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var Vf=e=>()=>e;function Wm(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:o,x:a,y:s,dx:u,dy:l,dispatch:c}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:a,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:c}})}Wm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function $Y(e){return!e.ctrlKey&&!e.button}function SY(){return this.parentNode}function MY(e,t){return t==null?{x:e.x,y:e.y}:t}function TY(){return navigator.maxTouchPoints||"ontouchstart"in this}function kY(){var e=$Y,t=SY,n=MY,r=TY,i={},o=va("start","drag","end"),a=0,s,u,l,c,f=0;function h(b){b.on("mousedown.drag",d).filter(r).on("touchstart.drag",g).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",v).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(b,_){if(!(c||!e.call(this,b,_))){var w=x(this,t.call(this,b,_),b,_,"mouse");!w||(bt(b.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),qf(b.view),jm(b),l=!1,s=b.clientX,u=b.clientY,w("start",b))}}function p(b){if(ba(b),!l){var _=b.clientX-s,w=b.clientY-u;l=_*_+w*w>f}i.mouse("drag",b)}function m(b){bt(b.view).on("mousemove.drag mouseup.drag",null),Uf(b.view,l),ba(b),i.mouse("end",b)}function g(b,_){if(!!e.call(this,b,_)){var w=b.changedTouches,$=t.call(this,b,_),T=w.length,k,S;for(k=0;k<T;++k)(S=x(this,$,b,_,w[k].identifier,w[k]))&&(jm(b),S("start",b,w[k]))}}function y(b){var _=b.changedTouches,w=_.length,$,T;for($=0;$<w;++$)(T=i[_[$].identifier])&&(ba(b),T("drag",b,_[$]))}function v(b){var _=b.changedTouches,w=_.length,$,T;for(c&&clearTimeout(c),c=setTimeout(function(){c=null},500),$=0;$<w;++$)(T=i[_[$].identifier])&&(jm(b),T("end",b,_[$]))}function x(b,_,w,$,T,k){var S=o.copy(),M=an(k||w,_),A,E,O;if((O=n.call(b,new Wm("beforestart",{sourceEvent:w,target:h,identifier:T,active:a,x:M[0],y:M[1],dx:0,dy:0,dispatch:S}),$))!=null)return A=O.x-M[0]||0,E=O.y-M[1]||0,function P(C,N,D){var I=M,B;switch(C){case"start":i[T]=P,B=a++;break;case"end":delete i[T],--a;case"drag":M=an(D||N,_),B=a;break}S.call(C,b,new Wm(C,{sourceEvent:N,subject:O,target:h,identifier:T,active:B,x:M[0]+A,y:M[1]+E,dx:M[0]-I[0],dy:M[1]-I[1],dispatch:S}),$)}}return h.filter=function(b){return arguments.length?(e=typeof b=="function"?b:Vf(!!b),h):e},h.container=function(b){return arguments.length?(t=typeof b=="function"?b:Vf(b),h):t},h.subject=function(b){return arguments.length?(n=typeof b=="function"?b:Vf(b),h):n},h.touchable=function(b){return arguments.length?(r=typeof b=="function"?b:Vf(!!b),h):r},h.on=function(){var b=o.on.apply(o,arguments);return b===o?h:b},h.clickDistance=function(b){return arguments.length?(f=(b=+b)*b,h):Math.sqrt(f)},h}function Hm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function W3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function xu(){}var wu=.7,Yf=1/wu,xa="\\s*([+-]?\\d+)\\s*",_u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",nr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",OY=/^#([0-9a-f]{3,8})$/,CY=new RegExp("^rgb\\("+[xa,xa,xa]+"\\)$"),PY=new RegExp("^rgb\\("+[nr,nr,nr]+"\\)$"),EY=new RegExp("^rgba\\("+[xa,xa,xa,_u]+"\\)$"),AY=new RegExp("^rgba\\("+[nr,nr,nr,_u]+"\\)$"),NY=new RegExp("^hsl\\("+[_u,nr,nr]+"\\)$"),RY=new RegExp("^hsla\\("+[_u,nr,nr,_u]+"\\)$"),H3={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};Hm(xu,$u,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:q3,formatHex:q3,formatHsl:DY,formatRgb:U3,toString:U3});function q3(){return this.rgb().formatHex()}function DY(){return K3(this).formatHsl()}function U3(){return this.rgb().formatRgb()}function $u(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=OY.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?V3(t):n===3?new sn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Gf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Gf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=CY.exec(e))?new sn(t[1],t[2],t[3],1):(t=PY.exec(e))?new sn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=EY.exec(e))?Gf(t[1],t[2],t[3],t[4]):(t=AY.exec(e))?Gf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=NY.exec(e))?X3(t[1],t[2]/100,t[3]/100,1):(t=RY.exec(e))?X3(t[1],t[2]/100,t[3]/100,t[4]):H3.hasOwnProperty(e)?V3(H3[e]):e==="transparent"?new sn(NaN,NaN,NaN,0):null}function V3(e){return new sn(e>>16&255,e>>8&255,e&255,1)}function Gf(e,t,n,r){return r<=0&&(e=t=n=NaN),new sn(e,t,n,r)}function LY(e){return e instanceof xu||(e=$u(e)),e?(e=e.rgb(),new sn(e.r,e.g,e.b,e.opacity)):new sn}function qm(e,t,n,r){return arguments.length===1?LY(e):new sn(e,t,n,r==null?1:r)}function sn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Hm(sn,qm,W3(xu,{brighter:function(e){return e=e==null?Yf:Math.pow(Yf,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?wu:Math.pow(wu,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Y3,formatHex:Y3,formatRgb:G3,toString:G3}));function Y3(){return"#"+Um(this.r)+Um(this.g)+Um(this.b)}function G3(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Um(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function X3(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rr(e,t,n,r)}function K3(e){if(e instanceof rr)return new rr(e.h,e.s,e.l,e.opacity);if(e instanceof xu||(e=$u(e)),!e)return new rr;if(e instanceof rr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new rr(a,s,u,e.opacity)}function IY(e,t,n,r){return arguments.length===1?K3(e):new rr(e,t,n,r==null?1:r)}function rr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Hm(rr,IY,W3(xu,{brighter:function(e){return e=e==null?Yf:Math.pow(Yf,e),new rr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?wu:Math.pow(wu,e),new rr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new sn(Vm(e>=240?e-240:e+120,i,r),Vm(e,i,r),Vm(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Vm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Ym=e=>()=>e;function zY(e,t){return function(n){return e+n*t}}function FY(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)}}function BY(e){return(e=+e)==1?Z3:function(t,n){return n-t?FY(t,n,e):Ym(isNaN(t)?n:t)}}function Z3(e,t){var n=t-e;return n?zY(e,n):Ym(isNaN(e)?t:e)}var Q3=function e(t){var n=BY(t);function r(i,o){var a=n((i=qm(i)).r,(o=qm(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=Z3(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function jY(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function WY(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function HY(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=Zm(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function qY(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function UY(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Zm(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Xm=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Km=new RegExp(Xm.source,"g");function VY(e){return function(){return e}}function YY(e){return function(t){return e(t)+""}}function GY(e,t){var n=Xm.lastIndex=Km.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=Xm.exec(e))&&(i=Km.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Gm(r,i)})),n=Km.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?YY(u[0].x):VY(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function Zm(e,t){var n=typeof t,r;return t==null||n==="boolean"?Ym(t):(n==="number"?Gm:n==="string"?(r=$u(t))?(t=r,Q3):GY:t instanceof $u?Q3:t instanceof Date?qY:WY(t)?jY:Array.isArray(t)?HY:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?UY:Gm)(e,t)}var wa=0,Su=0,Mu=0,J3=1e3,Xf,Tu,Kf=0,Ji=0,Zf=0,ku=typeof performance=="object"&&performance.now?performance:Date,eS=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ou(){return Ji||(eS(XY),Ji=ku.now()+Zf)}function XY(){Ji=0}function Cu(){this._call=this._time=this._next=null}Cu.prototype=Qf.prototype={constructor:Cu,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Ou():+n)+(t==null?0:+t),!this._next&&Tu!==this&&(Tu?Tu._next=this:Xf=this,Tu=this),this._call=e,this._time=n,Qm()},stop:function(){this._call&&(this._call=null,this._time=1/0,Qm())}};function Qf(e,t,n){var r=new Cu;return r.restart(e,t,n),r}function tS(){Ou(),++wa;for(var e=Xf,t;e;)(t=Ji-e._time)>=0&&e._call.call(null,t),e=e._next;--wa}function nS(){Ji=(Kf=ku.now())+Zf,wa=Su=0;try{tS()}finally{wa=0,ZY(),Ji=0}}function KY(){var e=ku.now(),t=e-Kf;t>J3&&(Zf-=t,Kf=e)}function ZY(){for(var e,t=Xf,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Xf=n);Tu=e,Qm(r)}function Qm(e){if(!wa){Su&&(Su=clearTimeout(Su));var t=e-Ji;t>24?(e<1/0&&(Su=setTimeout(nS,e-ku.now()-Zf)),Mu&&(Mu=clearInterval(Mu))):(Mu||(Kf=ku.now(),Mu=setInterval(KY,J3)),wa=1,eS(nS))}}function Jm(e,t,n){var r=new Cu;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}function QY(e,t,n){var r=new Cu,i=t;return t==null?(r.restart(e,t,n),r):(r._restart=r.restart,r.restart=function(o,a,s){a=+a,s=s==null?Ou():+s,r._restart(function u(l){l+=i,r._restart(u,i+=a,s),o(l)},a,s)},r.restart(e,t,n),r)}var JY=va("start","end","cancel","interrupt"),eG=[],rS=0,e1=1,t1=2,Jf=3,iS=4,n1=5,eh=6;function th(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;tG(e,n,{name:t,index:r,group:i,on:JY,tween:eG,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:rS})}function r1(e,t){var n=Dn(e,t);if(n.state>rS)throw new Error("too late; already scheduled");return n}function ir(e,t){var n=Dn(e,t);if(n.state>Jf)throw new Error("too late; already running");return n}function Dn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function tG(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Qf(o,0,n.time);function o(l){n.state=e1,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var c,f,h,d;if(n.state!==e1)return u();for(c in r)if(d=r[c],d.name===n.name){if(d.state===Jf)return Jm(a);d.state===iS?(d.state=eh,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[c]):+c<t&&(d.state=eh,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[c])}if(Jm(function(){n.state===Jf&&(n.state=iS,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=t1,n.on.call("start",e,e.__data__,n.index,n.group),n.state===t1){for(n.state=Jf,i=new Array(h=n.tween.length),c=0,f=-1;c<h;++c)(d=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(l){for(var c=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=n1,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);n.state===n1&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=eh,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function eo(e,t){var n=e.__transition,r,i,o=!0,a;if(!!n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>t1&&r.state<n1,r.state=eh,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function nG(e){return this.each(function(){eo(this,e)})}function i1(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oS(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Pu(){}var Eu=.7,nh=1/Eu,_a="\\s*([+-]?\\d+)\\s*",Au="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",or="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",rG=/^#([0-9a-f]{3,8})$/,iG=new RegExp("^rgb\\("+[_a,_a,_a]+"\\)$"),oG=new RegExp("^rgb\\("+[or,or,or]+"\\)$"),aG=new RegExp("^rgba\\("+[_a,_a,_a,Au]+"\\)$"),sG=new RegExp("^rgba\\("+[or,or,or,Au]+"\\)$"),uG=new RegExp("^hsl\\("+[Au,or,or]+"\\)$"),lG=new RegExp("^hsla\\("+[Au,or,or,Au]+"\\)$"),aS={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};i1(Pu,Nu,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:sS,formatHex:sS,formatHsl:cG,formatRgb:uS,toString:uS});function sS(){return this.rgb().formatHex()}function cG(){return dS(this).formatHsl()}function uS(){return this.rgb().formatRgb()}function Nu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=rG.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lS(t):n===3?new un(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=iG.exec(e))?new un(t[1],t[2],t[3],1):(t=oG.exec(e))?new un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=aG.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=sG.exec(e))?rh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=uG.exec(e))?hS(t[1],t[2]/100,t[3]/100,1):(t=lG.exec(e))?hS(t[1],t[2]/100,t[3]/100,t[4]):aS.hasOwnProperty(e)?lS(aS[e]):e==="transparent"?new un(NaN,NaN,NaN,0):null}function lS(e){return new un(e>>16&255,e>>8&255,e&255,1)}function rh(e,t,n,r){return r<=0&&(e=t=n=NaN),new un(e,t,n,r)}function fG(e){return e instanceof Pu||(e=Nu(e)),e?(e=e.rgb(),new un(e.r,e.g,e.b,e.opacity)):new un}function o1(e,t,n,r){return arguments.length===1?fG(e):new un(e,t,n,r==null?1:r)}function un(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}i1(un,o1,oS(Pu,{brighter:function(e){return e=e==null?nh:Math.pow(nh,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Eu:Math.pow(Eu,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:cS,formatHex:cS,formatRgb:fS,toString:fS}));function cS(){return"#"+a1(this.r)+a1(this.g)+a1(this.b)}function fS(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function a1(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function hS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ar(e,t,n,r)}function dS(e){if(e instanceof ar)return new ar(e.h,e.s,e.l,e.opacity);if(e instanceof Pu||(e=Nu(e)),!e)return new ar;if(e instanceof ar)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new ar(a,s,u,e.opacity)}function hG(e,t,n,r){return arguments.length===1?dS(e):new ar(e,t,n,r==null?1:r)}function ar(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}i1(ar,hG,oS(Pu,{brighter:function(e){return e=e==null?nh:Math.pow(nh,e),new ar(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Eu:Math.pow(Eu,e),new ar(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new un(s1(e>=240?e-240:e+120,i,r),s1(e,i,r),s1(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function s1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var pS=e=>()=>e;function dG(e,t){return function(n){return e+n*t}}function pG(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)}}function gG(e){return(e=+e)==1?gS:function(t,n){return n-t?pG(t,n,e):pS(isNaN(t)?n:t)}}function gS(e,t){var n=t-e;return n?dG(e,n):pS(isNaN(e)?t:e)}var mS=function e(t){var n=gG(t);function r(i,o){var a=n((i=o1(i)).r,(o=o1(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=gS(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function ii(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var u1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,l1=new RegExp(u1.source,"g");function mG(e){return function(){return e}}function yG(e){return function(t){return e(t)+""}}function vG(e,t){var n=u1.lastIndex=l1.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=u1.exec(e))&&(i=l1.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:ii(r,i)})),n=l1.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?yG(u[0].x):mG(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}var yS=180/Math.PI,c1={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function vS(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*yS,skewX:Math.atan(u)*yS,scaleX:a,scaleY:s}}var ih;function bG(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?c1:vS(t.a,t.b,t.c,t.d,t.e,t.f)}function xG(e){return e==null||(ih||(ih=document.createElementNS("http://www.w3.org/2000/svg","g")),ih.setAttribute("transform",e),!(e=ih.transform.baseVal.consolidate()))?c1:(e=e.matrix,vS(e.a,e.b,e.c,e.d,e.e,e.f))}function bS(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:ii(l,f)},{i:m-2,x:ii(c,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function a(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:ii(l,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:ii(l,c)}):c&&f.push(i(f)+"skewX("+c+r)}function u(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:ii(l,f)},{i:m-2,x:ii(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,f,h),a(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(d){for(var p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var wG=bS(bG,"px, ","px)","deg)"),_G=bS(xG,", ",")",")");function $G(e,t){var n,r;return function(){var i=ir(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function SG(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=ir(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function MG(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Dn(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?$G:SG)(n,e,t))}function f1(e,t,n){var r=e._id;return e.each(function(){var i=ir(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Dn(i,r).value[t]}}function xS(e,t){var n;return(typeof t=="number"?ii:t instanceof Nu?mS:(n=Nu(t))?(t=n,mS):vG)(e,t)}function TG(e){return function(){this.removeAttribute(e)}}function kG(e){return function(){this.removeAttributeNS(e.space,e.local)}}function OG(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function CG(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function PG(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function EG(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function AG(e,t){var n=bu(e),r=n==="transform"?_G:xS;return this.attrTween(e,typeof t=="function"?(n.local?EG:PG)(n,r,f1(this,"attr."+e,t)):t==null?(n.local?kG:TG)(n):(n.local?CG:OG)(n,r,t))}function NG(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function RG(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function DG(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&RG(e,o)),n}return i._value=t,i}function LG(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&NG(e,o)),n}return i._value=t,i}function IG(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=bu(e);return this.tween(n,(r.local?DG:LG)(r,t))}function zG(e,t){return function(){r1(this,e).delay=+t.apply(this,arguments)}}function FG(e,t){return t=+t,function(){r1(this,e).delay=t}}function BG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?zG:FG)(t,e)):Dn(this.node(),t).delay}function jG(e,t){return function(){ir(this,e).duration=+t.apply(this,arguments)}}function WG(e,t){return t=+t,function(){ir(this,e).duration=t}}function HG(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?jG:WG)(t,e)):Dn(this.node(),t).duration}function qG(e,t){if(typeof t!="function")throw new Error;return function(){ir(this,e).ease=t}}function UG(e){var t=this._id;return arguments.length?this.each(qG(t,e)):Dn(this.node(),t).ease}function VG(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;ir(this,e).ease=n}}function YG(e){if(typeof e!="function")throw new Error;return this.each(VG(this._id,e))}function GG(e){typeof e!="function"&&(e=Lm(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new sr(r,this._parents,this._name,this._id)}function XG(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u=t[s],l=n[s],c=u.length,f=a[s]=new Array(c),h,d=0;d<c;++d)(h=u[d]||l[d])&&(f[d]=h);for(;s<r;++s)a[s]=t[s];return new sr(a,this._parents,this._name,this._id)}function KG(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function ZG(e,t,n){var r,i,o=KG(t)?r1:ir;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function QG(e,t){var n=this._id;return arguments.length<2?Dn(this.node(),n).on.on(e):this.each(ZG(n,e,t))}function JG(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function eX(){return this.on("end.remove",JG(this._id))}function tX(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Wf(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],u=s.length,l=o[a]=new Array(u),c,f,h=0;h<u;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),l[h]=f,th(l[h],t,n,h,l,Dn(c,n)));return new sr(o,this._parents,t,n)}function nX(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Dm(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u=r[s],l=u.length,c,f=0;f<l;++f)if(c=u[f]){for(var h=e.call(c,c.__data__,f,u),d,p=Dn(c,n),m=0,g=h.length;m<g;++m)(d=h[m])&&th(d,t,n,m,h,p);o.push(h),a.push(c)}return new sr(o,a,t,n)}var rX=Qi.prototype.constructor;function iX(){return new rX(this._groups,this._parents)}function oX(e,t){var n,r,i;return function(){var o=Zi(this,e),a=(this.style.removeProperty(e),Zi(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function wS(e){return function(){this.style.removeProperty(e)}}function aX(e,t,n){var r,i=n+"",o;return function(){var a=Zi(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function sX(e,t,n){var r,i,o;return function(){var a=Zi(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Zi(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function uX(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=ir(this,e),l=u.on,c=u.value[o]==null?s||(s=wS(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function lX(e,t,n){var r=(e+="")=="transform"?wG:xS;return t==null?this.styleTween(e,oX(e,r)).on("end.style."+e,wS(e)):typeof t=="function"?this.styleTween(e,sX(e,r,f1(this,"style."+e,t))).each(uX(this._id,e)):this.styleTween(e,aX(e,r,t),n).on("end.style."+e,null)}function cX(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function fX(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&cX(e,a,n)),r}return o._value=t,o}function hX(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,fX(e,t,n==null?"":n))}function dX(e){return function(){this.textContent=e}}function pX(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function gX(e){return this.tween("text",typeof e=="function"?pX(f1(this,"text",e)):dX(e==null?"":e+""))}function mX(e){return function(t){this.textContent=e.call(this,t)}}function yX(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&mX(i)),t}return r._value=e,r}function vX(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,yX(e))}function bX(){for(var e=this._name,t=this._id,n=$S(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)if(u=a[l]){var c=Dn(u,t);th(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new sr(r,this._parents,e,n)}function xX(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},u={value:function(){--i===0&&o()}};n.each(function(){var l=ir(this,r),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t}),i===0&&o()})}var wX=0;function sr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function _S(e){return Qi().transition(e)}function $S(){return++wX}var to=Qi.prototype;sr.prototype=_S.prototype={constructor:sr,select:tX,selectAll:nX,filter:GG,merge:XG,selection:iX,transition:bX,call:to.call,nodes:to.nodes,node:to.node,size:to.size,empty:to.empty,each:to.each,on:QG,attr:AG,attrTween:IG,style:lX,styleTween:hX,text:gX,textTween:vX,remove:eX,tween:MG,delay:BG,duration:HG,ease:UG,easeVarying:YG,end:xX,[Symbol.iterator]:to[Symbol.iterator]};const _X=e=>+e;function $X(e){return e*e}function SX(e){return e*(2-e)}function SS(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function MX(e){return e*e*e}function TX(e){return--e*e*e+1}function h1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var d1=3,kX=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(d1),OX=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(d1),MS=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(d1),TS=Math.PI,kS=TS/2;function CX(e){return+e==1?1:1-Math.cos(e*kS)}function PX(e){return Math.sin(e*kS)}function OS(e){return(1-Math.cos(TS*e))/2}function oi(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function EX(e){return oi(1-+e)}function AX(e){return 1-oi(e)}function CS(e){return((e*=2)<=1?oi(1-e):2-oi(e-1))/2}function NX(e){return 1-Math.sqrt(1-e*e)}function RX(e){return Math.sqrt(1- --e*e)}function PS(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var p1=4/11,DX=6/11,LX=8/11,IX=3/4,zX=9/11,FX=10/11,BX=15/16,jX=21/22,WX=63/64,oh=1/p1/p1;function HX(e){return 1-Ru(1-e)}function Ru(e){return(e=+e)<p1?oh*e*e:e<LX?oh*(e-=DX)*e+IX:e<FX?oh*(e-=zX)*e+BX:oh*(e-=jX)*e+WX}function qX(e){return((e*=2)<=1?1-Ru(1-e):Ru(e-1)+1)/2}var g1=1.70158,UX=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(g1),VX=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(g1),ES=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(g1),$a=2*Math.PI,m1=1,y1=.3,YX=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=$a);function i(o){return t*oi(- --o)*Math.sin((r-o)/n)}return i.amplitude=function(o){return e(o,n*$a)},i.period=function(o){return e(t,o)},i}(m1,y1),AS=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=$a);function i(o){return 1-t*oi(o=+o)*Math.sin((o+r)/n)}return i.amplitude=function(o){return e(o,n*$a)},i.period=function(o){return e(t,o)},i}(m1,y1),GX=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=$a);function i(o){return((o=o*2-1)<0?t*oi(-o)*Math.sin((r-o)/n):2-t*oi(o)*Math.sin((r+o)/n))/2}return i.amplitude=function(o){return e(o,n*$a)},i.period=function(o){return e(t,o)},i}(m1,y1),XX={time:null,delay:0,duration:250,ease:h1};function KX(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function ZX(e){var t,n;e instanceof sr?(t=e._id,e=e._name):(t=$S(),(n=XX).time=Ou(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&th(u,e,t,l,a,n||KX(u,t));return new sr(r,this._parents,e,t)}Qi.prototype.interrupt=nG,Qi.prototype.transition=ZX;var QX=[null];function JX(e,t){var n=e.__transition,r,i;if(n){t=t==null?null:t+"";for(i in n)if((r=n[i]).state>e1&&r.name===t)return new sr([[e]],QX,t,+i)}return null}var v1=e=>()=>e;function eK(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function tK(e){e.stopImmediatePropagation()}function b1(e){e.preventDefault(),e.stopImmediatePropagation()}var NS={name:"drag"},x1={name:"space"},Sa={name:"handle"},Ma={name:"center"};const{abs:RS,max:xt,min:wt}=Math;function DS(e){return[+e[0],+e[1]]}function w1(e){return[DS(e[0]),DS(e[1])]}var ah={name:"x",handles:["w","e"].map(Du),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},sh={name:"y",handles:["n","s"].map(Du),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},nK={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Du),input:function(e){return e==null?null:w1(e)},output:function(e){return e}},Ar={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},LS={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},IS={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},rK={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},iK={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Du(e){return{type:e}}function oK(e){return!e.ctrlKey&&!e.button}function aK(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function sK(){return navigator.maxTouchPoints||"ontouchstart"in this}function _1(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function uK(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function lK(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function cK(){return $1(ah)}function fK(){return $1(sh)}function hK(){return $1(nK)}function $1(e){var t=aK,n=oK,r=sK,i=!0,o=va("start","brush","end"),a=6,s;function u(g){var y=g.property("__brush",m).selectAll(".overlay").data([Du("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ar.overlay).merge(y).each(function(){var x=_1(this).extent;bt(this).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1])}),g.selectAll(".selection").data([Du("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ar.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=g.selectAll(".handle").data(e.handles,function(x){return x.type});v.exit().remove(),v.enter().append("rect").attr("class",function(x){return"handle handle--"+x.type}).attr("cursor",function(x){return Ar[x.type]}),g.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,y){g.tween?g.on("start.brush",function(v){c(this,arguments).beforestart().start(v)}).on("interrupt.brush end.brush",function(v){c(this,arguments).end(v)}).tween("brush",function(){var v=this,x=v.__brush,b=c(v,arguments),_=x.selection,w=e.input(typeof y=="function"?y.apply(this,arguments):y,x.extent),$=Zm(_,w);function T(k){x.selection=k===1&&w===null?null:$(k),l.call(v),b.brush()}return _!==null&&w!==null?T:T(1)}):g.each(function(){var v=this,x=arguments,b=v.__brush,_=e.input(typeof y=="function"?y.apply(v,x):y,b.extent),w=c(v,x).beforestart();eo(v),b.selection=_===null?null:_,l.call(v),w.start().brush().end()})},u.clear=function(g){u.move(g,null)};function l(){var g=bt(this),y=_1(this).selection;y?(g.selectAll(".selection").style("display",null).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1]),g.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?y[1][0]-a/2:y[0][0]-a/2}).attr("y",function(v){return v.type[0]==="s"?y[1][1]-a/2:y[0][1]-a/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?y[1][0]-y[0][0]+a:a}).attr("height",function(v){return v.type==="e"||v.type==="w"?y[1][1]-y[0][1]+a:a})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(g,y,v){var x=g.__brush.emitter;return x&&(!v||!x.clean)?x:new f(g,y,v)}function f(g,y,v){this.that=g,this.args=y,this.state=g.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,y){return this.starting?(this.starting=!1,this.emit("start",g,y)):this.emit("brush",g),this},brush:function(g,y){return this.emit("brush",g,y),this},end:function(g,y){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,y)),this},emit:function(g,y,v){var x=bt(this.that).datum();o.call(g,this.that,new eK(g,{sourceEvent:y,target:u,selection:e.output(this.state.selection),mode:v,dispatch:o}),x)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var y=this,v=g.target.__data__.type,x=(i&&g.metaKey?v="overlay":v)==="selection"?NS:i&&g.altKey?Ma:Sa,b=e===sh?null:rK[v],_=e===ah?null:iK[v],w=_1(y),$=w.extent,T=w.selection,k=$[0][0],S,M,A=$[0][1],E,O,P=$[1][0],C,N,D=$[1][1],I,B,U=0,Y=0,J,q=b&&_&&i&&g.shiftKey,j,V,G=Array.from(g.touches||[g],ie=>{const ge=ie.identifier;return ie=an(ie,y),ie.point0=ie.slice(),ie.identifier=ge,ie});if(v==="overlay"){T&&(J=!0);const ie=[G[0],G[1]||G[0]];w.selection=T=[[S=e===sh?k:wt(ie[0][0],ie[1][0]),E=e===ah?A:wt(ie[0][1],ie[1][1])],[C=e===sh?P:xt(ie[0][0],ie[1][0]),I=e===ah?D:xt(ie[0][1],ie[1][1])]],G.length>1&&te()}else S=T[0][0],E=T[0][1],C=T[1][0],I=T[1][1];M=S,O=E,N=C,B=I;var ne=bt(y).attr("pointer-events","none"),L=ne.selectAll(".overlay").attr("cursor",Ar[v]);eo(y);var W=c(y,arguments,!0).beforestart();if(g.touches)W.moved=R,W.ended=ee;else{var X=bt(g.view).on("mousemove.brush",R,!0).on("mouseup.brush",ee,!0);i&&X.on("keydown.brush",se,!0).on("keyup.brush",ce,!0),qf(g.view)}l.call(y),W.start(g,x.name);function R(ie){for(const ge of ie.changedTouches||[ie])for(const lt of G)lt.identifier===ge.identifier&&(lt.cur=an(ge,y));if(q&&!j&&!V&&G.length===1){const ge=G[0];RS(ge.cur[0]-ge[0])>RS(ge.cur[1]-ge[1])?V=!0:j=!0}for(const ge of G)ge.cur&&(ge[0]=ge.cur[0],ge[1]=ge.cur[1]);J=!0,b1(ie),te(ie)}function te(ie){const ge=G[0],lt=ge.point0;var xe;switch(U=ge[0]-lt[0],Y=ge[1]-lt[1],x){case x1:case NS:{b&&(U=xt(k-S,wt(P-C,U)),M=S+U,N=C+U),_&&(Y=xt(A-E,wt(D-I,Y)),O=E+Y,B=I+Y);break}case Sa:{G[1]?(b&&(M=xt(k,wt(P,G[0][0])),N=xt(k,wt(P,G[1][0])),b=1),_&&(O=xt(A,wt(D,G[0][1])),B=xt(A,wt(D,G[1][1])),_=1)):(b<0?(U=xt(k-S,wt(P-S,U)),M=S+U,N=C):b>0&&(U=xt(k-C,wt(P-C,U)),M=S,N=C+U),_<0?(Y=xt(A-E,wt(D-E,Y)),O=E+Y,B=I):_>0&&(Y=xt(A-I,wt(D-I,Y)),O=E,B=I+Y));break}case Ma:{b&&(M=xt(k,wt(P,S-U*b)),N=xt(k,wt(P,C+U*b))),_&&(O=xt(A,wt(D,E-Y*_)),B=xt(A,wt(D,I+Y*_)));break}}N<M&&(b*=-1,xe=S,S=C,C=xe,xe=M,M=N,N=xe,v in LS&&L.attr("cursor",Ar[v=LS[v]])),B<O&&(_*=-1,xe=E,E=I,I=xe,xe=O,O=B,B=xe,v in IS&&L.attr("cursor",Ar[v=IS[v]])),w.selection&&(T=w.selection),j&&(M=T[0][0],N=T[1][0]),V&&(O=T[0][1],B=T[1][1]),(T[0][0]!==M||T[0][1]!==O||T[1][0]!==N||T[1][1]!==B)&&(w.selection=[[M,O],[N,B]],l.call(y),W.brush(ie,x.name))}function ee(ie){if(tK(ie),ie.touches){if(ie.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else Uf(ie.view,J),X.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ne.attr("pointer-events","all"),L.attr("cursor",Ar.overlay),w.selection&&(T=w.selection),uK(T)&&(w.selection=null,l.call(y)),W.end(ie,x.name)}function se(ie){switch(ie.keyCode){case 16:{q=b&&_;break}case 18:{x===Sa&&(b&&(C=N-U*b,S=M+U*b),_&&(I=B-Y*_,E=O+Y*_),x=Ma,te());break}case 32:{(x===Sa||x===Ma)&&(b<0?C=N-U:b>0&&(S=M-U),_<0?I=B-Y:_>0&&(E=O-Y),x=x1,L.attr("cursor",Ar.selection),te());break}default:return}b1(ie)}function ce(ie){switch(ie.keyCode){case 16:{q&&(j=V=q=!1,te());break}case 18:{x===Ma&&(b<0?C=N:b>0&&(S=M),_<0?I=B:_>0&&(E=O),x=Sa,te());break}case 32:{x===x1&&(ie.altKey?(b&&(C=N-U*b,S=M+U*b),_&&(I=B-Y*_,E=O+Y*_),x=Ma):(b<0?C=N:b>0&&(S=M),_<0?I=B:_>0&&(E=O),x=Sa),L.attr("cursor",Ar[v]),te());break}default:return}b1(ie)}}function d(g){c(this,arguments).moved(g)}function p(g){c(this,arguments).ended(g)}function m(){var g=this.__brush||{selection:null};return g.extent=w1(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:v1(w1(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:v1(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:v1(!!g),u):r},u.handleSize=function(g){return arguments.length?(a=+g,u):a},u.keyModifiers=function(g){return arguments.length?(i=!!g,u):i},u.on=function(){var g=o.on.apply(o,arguments);return g===o?u:g},u}var zS=Math.abs,Ta=Math.cos,ka=Math.sin,FS=Math.PI,uh=FS/2,BS=FS*2,jS=Math.max,S1=1e-12;function M1(e,t){return Array.from({length:t-e},(n,r)=>e+r)}function dK(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function pK(){return T1(!1,!1)}function gK(){return T1(!1,!0)}function mK(){return T1(!0,!1)}function T1(e,t){var n=0,r=null,i=null,o=null;function a(s){var u=s.length,l=new Array(u),c=M1(0,u),f=new Array(u*u),h=new Array(u),d=0,p;s=Float64Array.from({length:u*u},t?(m,g)=>s[g%u][g/u|0]:(m,g)=>s[g/u|0][g%u]);for(let m=0;m<u;++m){let g=0;for(let y=0;y<u;++y)g+=s[m*u+y]+e*s[y*u+m];d+=l[m]=g}d=jS(0,BS-n*u)/d,p=d?n:BS/u;{let m=0;r&&c.sort((g,y)=>r(l[g],l[y]));for(const g of c){const y=m;if(e){const v=M1(~u+1,u).filter(x=>x<0?s[~x*u+g]:s[g*u+x]);i&&v.sort((x,b)=>i(x<0?-s[~x*u+g]:s[g*u+x],b<0?-s[~b*u+g]:s[g*u+b]));for(const x of v)if(x<0){const b=f[~x*u+g]||(f[~x*u+g]={source:null,target:null});b.target={index:g,startAngle:m,endAngle:m+=s[~x*u+g]*d,value:s[~x*u+g]}}else{const b=f[g*u+x]||(f[g*u+x]={source:null,target:null});b.source={index:g,startAngle:m,endAngle:m+=s[g*u+x]*d,value:s[g*u+x]}}h[g]={index:g,startAngle:y,endAngle:m,value:l[g]}}else{const v=M1(0,u).filter(x=>s[g*u+x]||s[x*u+g]);i&&v.sort((x,b)=>i(s[g*u+x],s[g*u+b]));for(const x of v){let b;if(g<x?(b=f[g*u+x]||(f[g*u+x]={source:null,target:null}),b.source={index:g,startAngle:m,endAngle:m+=s[g*u+x]*d,value:s[g*u+x]}):(b=f[x*u+g]||(f[x*u+g]={source:null,target:null}),b.target={index:g,startAngle:m,endAngle:m+=s[g*u+x]*d,value:s[g*u+x]},g===x&&(b.source=b.target)),b.source&&b.target&&b.source.value<b.target.value){const _=b.source;b.source=b.target,b.target=_}}h[g]={index:g,startAngle:y,endAngle:m,value:l[g]}}m+=p}}return f=Object.values(f),f.groups=h,o?f.sort(o):f}return a.padAngle=function(s){return arguments.length?(n=jS(0,s),a):n},a.sortGroups=function(s){return arguments.length?(r=s,a):r},a.sortSubgroups=function(s){return arguments.length?(i=s,a):i},a.sortChords=function(s){return arguments.length?(s==null?o=null:(o=dK(s))._=s,a):o&&o._},a}var yK=Array.prototype.slice;function no(e){return function(){return e}}function vK(e){return e.source}function bK(e){return e.target}function WS(e){return e.radius}function xK(e){return e.startAngle}function wK(e){return e.endAngle}function _K(){return 0}function $K(){return 10}function HS(e){var t=vK,n=bK,r=WS,i=WS,o=xK,a=wK,s=_K,u=null;function l(){var c,f=t.apply(this,arguments),h=n.apply(this,arguments),d=s.apply(this,arguments)/2,p=yK.call(arguments),m=+r.apply(this,(p[0]=f,p)),g=o.apply(this,p)-uh,y=a.apply(this,p)-uh,v=+i.apply(this,(p[0]=h,p)),x=o.apply(this,p)-uh,b=a.apply(this,p)-uh;if(u||(u=c=Si()),d>S1&&(zS(y-g)>d*2+S1?y>g?(g+=d,y-=d):(g-=d,y+=d):g=y=(g+y)/2,zS(b-x)>d*2+S1?b>x?(x+=d,b-=d):(x-=d,b+=d):x=b=(x+b)/2),u.moveTo(m*Ta(g),m*ka(g)),u.arc(0,0,m,g,y),g!==x||y!==b)if(e){var _=+e.apply(this,arguments),w=v-_,$=(x+b)/2;u.quadraticCurveTo(0,0,w*Ta(x),w*ka(x)),u.lineTo(v*Ta($),v*ka($)),u.lineTo(w*Ta(b),w*ka(b))}else u.quadraticCurveTo(0,0,v*Ta(x),v*ka(x)),u.arc(0,0,v,x,b);if(u.quadraticCurveTo(0,0,m*Ta(g),m*ka(g)),u.closePath(),c)return u=null,c+""||null}return e&&(l.headRadius=function(c){return arguments.length?(e=typeof c=="function"?c:no(+c),l):e}),l.radius=function(c){return arguments.length?(r=i=typeof c=="function"?c:no(+c),l):r},l.sourceRadius=function(c){return arguments.length?(r=typeof c=="function"?c:no(+c),l):r},l.targetRadius=function(c){return arguments.length?(i=typeof c=="function"?c:no(+c),l):i},l.startAngle=function(c){return arguments.length?(o=typeof c=="function"?c:no(+c),l):o},l.endAngle=function(c){return arguments.length?(a=typeof c=="function"?c:no(+c),l):a},l.padAngle=function(c){return arguments.length?(s=typeof c=="function"?c:no(+c),l):s},l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.context=function(c){return arguments.length?(u=c==null?null:c,l):u},l}function SK(){return HS()}function MK(){return HS($K)}function Oa(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Lu(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ai(){}var ro=.7,Ca=1/ro,Pa="\\s*([+-]?\\d+)\\s*",Iu="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ur="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",TK=/^#([0-9a-f]{3,8})$/,kK=new RegExp("^rgb\\("+[Pa,Pa,Pa]+"\\)$"),OK=new RegExp("^rgb\\("+[ur,ur,ur]+"\\)$"),CK=new RegExp("^rgba\\("+[Pa,Pa,Pa,Iu]+"\\)$"),PK=new RegExp("^rgba\\("+[ur,ur,ur,Iu]+"\\)$"),EK=new RegExp("^hsl\\("+[Iu,ur,ur]+"\\)$"),AK=new RegExp("^hsla\\("+[Iu,ur,ur,Iu]+"\\)$"),qS={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};Oa(ai,Ea,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:US,formatHex:US,formatHsl:NK,formatRgb:VS,toString:VS});function US(){return this.rgb().formatHex()}function NK(){return ZS(this).formatHsl()}function VS(){return this.rgb().formatRgb()}function Ea(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=TK.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?YS(t):n===3?new ht(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?lh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?lh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=kK.exec(e))?new ht(t[1],t[2],t[3],1):(t=OK.exec(e))?new ht(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=CK.exec(e))?lh(t[1],t[2],t[3],t[4]):(t=PK.exec(e))?lh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=EK.exec(e))?KS(t[1],t[2]/100,t[3]/100,1):(t=AK.exec(e))?KS(t[1],t[2]/100,t[3]/100,t[4]):qS.hasOwnProperty(e)?YS(qS[e]):e==="transparent"?new ht(NaN,NaN,NaN,0):null}function YS(e){return new ht(e>>16&255,e>>8&255,e&255,1)}function lh(e,t,n,r){return r<=0&&(e=t=n=NaN),new ht(e,t,n,r)}function k1(e){return e instanceof ai||(e=Ea(e)),e?(e=e.rgb(),new ht(e.r,e.g,e.b,e.opacity)):new ht}function zu(e,t,n,r){return arguments.length===1?k1(e):new ht(e,t,n,r==null?1:r)}function ht(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Oa(ht,zu,Lu(ai,{brighter:function(e){return e=e==null?Ca:Math.pow(Ca,e),new ht(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?ro:Math.pow(ro,e),new ht(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:GS,formatHex:GS,formatRgb:XS,toString:XS}));function GS(){return"#"+O1(this.r)+O1(this.g)+O1(this.b)}function XS(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function O1(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function KS(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new lr(e,t,n,r)}function ZS(e){if(e instanceof lr)return new lr(e.h,e.s,e.l,e.opacity);if(e instanceof ai||(e=Ea(e)),!e)return new lr;if(e instanceof lr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new lr(a,s,u,e.opacity)}function ch(e,t,n,r){return arguments.length===1?ZS(e):new lr(e,t,n,r==null?1:r)}function lr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Oa(lr,ch,Lu(ai,{brighter:function(e){return e=e==null?Ca:Math.pow(Ca,e),new lr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ro:Math.pow(ro,e),new lr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ht(C1(e>=240?e-240:e+120,i,r),C1(e,i,r),C1(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function C1(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const QS=Math.PI/180,JS=180/Math.PI,fh=18,eM=.96422,tM=1,nM=.82521,rM=4/29,Aa=6/29,iM=3*Aa*Aa,RK=Aa*Aa*Aa;function oM(e){if(e instanceof Ln)return new Ln(e.l,e.a,e.b,e.opacity);if(e instanceof cr)return sM(e);e instanceof ht||(e=k1(e));var t=N1(e.r),n=N1(e.g),r=N1(e.b),i=P1((.2225045*t+.7168786*n+.0606169*r)/tM),o,a;return t===n&&n===r?o=a=i:(o=P1((.4360747*t+.3850649*n+.1430804*r)/eM),a=P1((.0139322*t+.0971045*n+.7141733*r)/nM)),new Ln(116*i-16,500*(o-i),200*(i-a),e.opacity)}function DK(e,t){return new Ln(e,0,0,t==null?1:t)}function hh(e,t,n,r){return arguments.length===1?oM(e):new Ln(e,t,n,r==null?1:r)}function Ln(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Oa(Ln,hh,Lu(ai,{brighter:function(e){return new Ln(this.l+fh*(e==null?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Ln(this.l-fh*(e==null?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=eM*E1(t),e=tM*E1(e),n=nM*E1(n),new ht(A1(3.1338561*t-1.6168667*e-.4906146*n),A1(-.9787684*t+1.9161415*e+.033454*n),A1(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function P1(e){return e>RK?Math.pow(e,1/3):e/iM+rM}function E1(e){return e>Aa?e*e*e:iM*(e-rM)}function A1(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function N1(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function aM(e){if(e instanceof cr)return new cr(e.h,e.c,e.l,e.opacity);if(e instanceof Ln||(e=oM(e)),e.a===0&&e.b===0)return new cr(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*JS;return new cr(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function LK(e,t,n,r){return arguments.length===1?aM(e):new cr(n,t,e,r==null?1:r)}function dh(e,t,n,r){return arguments.length===1?aM(e):new cr(e,t,n,r==null?1:r)}function cr(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function sM(e){if(isNaN(e.h))return new Ln(e.l,0,0,e.opacity);var t=e.h*QS;return new Ln(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Oa(cr,dh,Lu(ai,{brighter:function(e){return new cr(this.h,this.c,this.l+fh*(e==null?1:e),this.opacity)},darker:function(e){return new cr(this.h,this.c,this.l-fh*(e==null?1:e),this.opacity)},rgb:function(){return sM(this).rgb()}}));var uM=-.14861,R1=1.78277,D1=-.29227,ph=-.90649,Fu=1.97294,lM=Fu*ph,cM=Fu*R1,fM=R1*D1-ph*uM;function IK(e){if(e instanceof io)return new io(e.h,e.s,e.l,e.opacity);e instanceof ht||(e=k1(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(fM*r+lM*t-cM*n)/(fM+lM-cM),o=r-i,a=(Fu*(n-i)-D1*o)/ph,s=Math.sqrt(a*a+o*o)/(Fu*i*(1-i)),u=s?Math.atan2(a,o)*JS-120:NaN;return new io(u<0?u+360:u,s,i,e.opacity)}function gh(e,t,n,r){return arguments.length===1?IK(e):new io(e,t,n,r==null?1:r)}function io(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Oa(io,gh,Lu(ai,{brighter:function(e){return e=e==null?Ca:Math.pow(Ca,e),new io(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?ro:Math.pow(ro,e),new io(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*QS,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new ht(255*(t+n*(uM*r+R1*i)),255*(t+n*(D1*r+ph*i)),255*(t+n*(Fu*r)),this.opacity)}}));function zK(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function FK(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of e)(o=t(o,++i,e))!=null&&(n===void 0?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}var BK=Math.sqrt(50),jK=Math.sqrt(10),WK=Math.sqrt(2);function hM(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=BK?i*=10:o>=jK?i*=5:o>=WK&&(i*=2),t<e?-i:i}function HK(e){return Math.ceil(Math.log(zK(e))/Math.LN2)+1}function qK(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function dM(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}var UK=Array.prototype,pM=UK.slice;function VK(e,t){return e-t}function YK(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r}var si=e=>()=>e;function GK(e,t){for(var n=-1,r=t.length,i;++n<r;)if(i=XK(e,t[n]))return i;return 0}function XK(e,t){for(var n=t[0],r=t[1],i=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var u=e[o],l=u[0],c=u[1],f=e[s],h=f[0],d=f[1];if(KK(u,f,t))return 0;c>r!=d>r&&n<(h-l)*(r-c)/(d-c)+l&&(i=-i)}return i}function KK(e,t,n){var r;return ZK(e,t,n)&&QK(e[r=+(e[0]===t[0])],n[r],t[r])}function ZK(e,t,n){return(t[0]-e[0])*(n[1]-e[1])===(n[0]-e[0])*(t[1]-e[1])}function QK(e,t,n){return e<=t&&t<=n||n<=t&&t<=e}function JK(){}var Nr=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function gM(){var e=1,t=1,n=HK,r=u;function i(l){var c=n(l);if(Array.isArray(c))c=c.slice().sort(VK);else{var f=FK(l),h=f[0],d=f[1];c=hM(h,d,c),c=dM(Math.floor(h/c)*c,Math.floor(d/c)*c,c)}return c.map(function(p){return o(l,p)})}function o(l,c){var f=[],h=[];return a(l,c,function(d){r(d,l,c),YK(d)>0?f.push([d]):h.push(d)}),h.forEach(function(d){for(var p=0,m=f.length,g;p<m;++p)if(GK((g=f[p])[0],d)!==-1){g.push(d);return}}),{type:"MultiPolygon",value:c,coordinates:f}}function a(l,c,f){var h=new Array,d=new Array,p,m,g,y,v,x;for(p=m=-1,y=l[0]>=c,Nr[y<<1].forEach(b);++p<e-1;)g=y,y=l[p+1]>=c,Nr[g|y<<1].forEach(b);for(Nr[y<<0].forEach(b);++m<t-1;){for(p=-1,y=l[m*e+e]>=c,v=l[m*e]>=c,Nr[y<<1|v<<2].forEach(b);++p<e-1;)g=y,y=l[m*e+e+p+1]>=c,x=v,v=l[m*e+p+1]>=c,Nr[g|y<<1|v<<2|x<<3].forEach(b);Nr[y|v<<3].forEach(b)}for(p=-1,v=l[m*e]>=c,Nr[v<<2].forEach(b);++p<e-1;)x=v,v=l[m*e+p+1]>=c,Nr[v<<2|x<<3].forEach(b);Nr[v<<3].forEach(b);function b(_){var w=[_[0][0]+p,_[0][1]+m],$=[_[1][0]+p,_[1][1]+m],T=s(w),k=s($),S,M;(S=d[T])?(M=h[k])?(delete d[S.end],delete h[M.start],S===M?(S.ring.push($),f(S.ring)):h[S.start]=d[M.end]={start:S.start,end:M.end,ring:S.ring.concat(M.ring)}):(delete d[S.end],S.ring.push($),d[S.end=k]=S):(S=h[k])?(M=d[T])?(delete h[S.start],delete d[M.end],S===M?(S.ring.push($),f(S.ring)):h[M.start]=d[S.end]={start:M.start,end:S.end,ring:M.ring.concat(S.ring)}):(delete h[S.start],S.ring.unshift(w),h[S.start=T]=S):h[T]=d[k]={start:T,end:k,ring:[w,$]}}}function s(l){return l[0]*2+l[1]*(e+1)*4}function u(l,c,f){l.forEach(function(h){var d=h[0],p=h[1],m=d|0,g=p|0,y,v=c[g*e+m];d>0&&d<e&&m===d&&(y=c[g*e+m-1],h[0]=d+(f-y)/(v-y)-.5),p>0&&p<t&&g===p&&(y=c[(g-1)*e+m],h[1]=p+(f-y)/(v-y)-.5)})}return i.contour=o,i.size=function(l){if(!arguments.length)return[e,t];var c=Math.floor(l[0]),f=Math.floor(l[1]);if(!(c>=0&&f>=0))throw new Error("invalid size");return e=c,t=f,i},i.thresholds=function(l){return arguments.length?(n=typeof l=="function"?l:Array.isArray(l)?si(pM.call(l)):si(l),i):n},i.smooth=function(l){return arguments.length?(r=l?u:JK,i):r===u},i}function L1(e,t,n){for(var r=e.width,i=e.height,o=(n<<1)+1,a=0;a<i;++a)for(var s=0,u=0;s<r+n;++s)s<r&&(u+=e.data[s+a*r]),s>=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function I1(e,t,n){for(var r=e.width,i=e.height,o=(n<<1)+1,a=0;a<r;++a)for(var s=0,u=0;s<i+n;++s)s<i&&(u+=e.data[a+s*r]),s>=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function eZ(e){return e[0]}function tZ(e){return e[1]}function nZ(){return 1}function rZ(){var e=eZ,t=tZ,n=nZ,r=960,i=500,o=20,a=2,s=o*3,u=r+s*2>>a,l=i+s*2>>a,c=si(20);function f(y){var v=new Float32Array(u*l),x=new Float32Array(u*l);y.forEach(function(w,$,T){var k=+e(w,$,T)+s>>a,S=+t(w,$,T)+s>>a,M=+n(w,$,T);k>=0&&k<u&&S>=0&&S<l&&(v[k+S*u]+=M)}),L1({width:u,height:l,data:v},{width:u,height:l,data:x},o>>a),I1({width:u,height:l,data:x},{width:u,height:l,data:v},o>>a),L1({width:u,height:l,data:v},{width:u,height:l,data:x},o>>a),I1({width:u,height:l,data:x},{width:u,height:l,data:v},o>>a),L1({width:u,height:l,data:v},{width:u,height:l,data:x},o>>a),I1({width:u,height:l,data:x},{width:u,height:l,data:v},o>>a);var b=c(v);if(!Array.isArray(b)){var _=qK(v);b=hM(0,_,b),b=dM(0,Math.floor(_/b)*b,b),b.shift()}return gM().thresholds(b).size([u,l])(v).map(h)}function h(y){return y.value*=Math.pow(2,-2*a),y.coordinates.forEach(d),y}function d(y){y.forEach(p)}function p(y){y.forEach(m)}function m(y){y[0]=y[0]*Math.pow(2,a)-s,y[1]=y[1]*Math.pow(2,a)-s}function g(){return s=o*3,u=r+s*2>>a,l=i+s*2>>a,f}return f.x=function(y){return arguments.length?(e=typeof y=="function"?y:si(+y),f):e},f.y=function(y){return arguments.length?(t=typeof y=="function"?y:si(+y),f):t},f.weight=function(y){return arguments.length?(n=typeof y=="function"?y:si(+y),f):n},f.size=function(y){if(!arguments.length)return[r,i];var v=+y[0],x=+y[1];if(!(v>=0&&x>=0))throw new Error("invalid size");return r=v,i=x,g()},f.cellSize=function(y){if(!arguments.length)return 1<<a;if(!((y=+y)>=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(y)/Math.LN2),g()},f.thresholds=function(y){return arguments.length?(c=typeof y=="function"?y:Array.isArray(y)?si(pM.call(y)):si(y),f):c},f.bandwidth=function(y){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((y=+y)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*y*y+1)-1)/2),g()},f}const mM=Math.pow(2,-52),mh=new Uint32Array(512);class yh{static from(t,n=uZ,r=lZ){const i=t.length,o=new Float64Array(i*2);for(let a=0;a<i;a++){const s=t[a];o[2*a]=n(s),o[2*a+1]=r(s)}return new yh(o)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:i,_hullHash:o}=this,a=t.length>>1;let s=1/0,u=1/0,l=-1/0,c=-1/0;for(let S=0;S<a;S++){const M=t[2*S],A=t[2*S+1];M<s&&(s=M),A<u&&(u=A),M>l&&(l=M),A>c&&(c=A),this._ids[S]=S}const f=(s+l)/2,h=(u+c)/2;let d=1/0,p,m,g;for(let S=0;S<a;S++){const M=z1(f,h,t[2*S],t[2*S+1]);M<d&&(p=S,d=M)}const y=t[2*p],v=t[2*p+1];d=1/0;for(let S=0;S<a;S++){if(S===p)continue;const M=z1(y,v,t[2*S],t[2*S+1]);M<d&&M>0&&(m=S,d=M)}let x=t[2*m],b=t[2*m+1],_=1/0;for(let S=0;S<a;S++){if(S===p||S===m)continue;const M=aZ(y,v,x,b,t[2*S],t[2*S+1]);M<_&&(g=S,_=M)}let w=t[2*g],$=t[2*g+1];if(_===1/0){for(let A=0;A<a;A++)this._dists[A]=t[2*A]-t[0]||t[2*A+1]-t[1];Na(this._ids,this._dists,0,a-1);const S=new Uint32Array(a);let M=0;for(let A=0,E=-1/0;A<a;A++){const O=this._ids[A];this._dists[O]>E&&(S[M++]=O,E=this._dists[O])}this.hull=S.subarray(0,M),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(vh(y,v,x,b,w,$)){const S=m,M=x,A=b;m=g,x=w,b=$,g=S,w=M,$=A}const T=sZ(y,v,x,b,w,$);this._cx=T.x,this._cy=T.y;for(let S=0;S<a;S++)this._dists[S]=z1(t[2*S],t[2*S+1],T.x,T.y);Na(this._ids,this._dists,0,a-1),this._hullStart=p;let k=3;r[p]=n[g]=m,r[m]=n[p]=g,r[g]=n[m]=p,i[p]=0,i[m]=1,i[g]=2,o.fill(-1),o[this._hashKey(y,v)]=p,o[this._hashKey(x,b)]=m,o[this._hashKey(w,$)]=g,this.trianglesLen=0,this._addTriangle(p,m,g,-1,-1,-1);for(let S=0,M,A;S<this._ids.length;S++){const E=this._ids[S],O=t[2*E],P=t[2*E+1];if(S>0&&Math.abs(O-M)<=mM&&Math.abs(P-A)<=mM||(M=O,A=P,E===p||E===m||E===g))continue;let C=0;for(let U=0,Y=this._hashKey(O,P);U<this._hashSize&&(C=o[(Y+U)%this._hashSize],!(C!==-1&&C!==r[C]));U++);C=n[C];let N=C,D;for(;D=r[N],!vh(O,P,t[2*N],t[2*N+1],t[2*D],t[2*D+1]);)if(N=D,N===C){N=-1;break}if(N===-1)continue;let I=this._addTriangle(N,E,r[N],-1,-1,i[N]);i[E]=this._legalize(I+2),i[N]=I,k++;let B=r[N];for(;D=r[B],vh(O,P,t[2*B],t[2*B+1],t[2*D],t[2*D+1]);)I=this._addTriangle(B,E,D,i[E],-1,i[B]),i[E]=this._legalize(I+2),r[B]=B,k--,B=D;if(N===C)for(;D=n[N],vh(O,P,t[2*D],t[2*D+1],t[2*N],t[2*N+1]);)I=this._addTriangle(D,E,N,-1,i[N],i[D]),this._legalize(I+2),i[D]=I,r[N]=N,k--,N=D;this._hullStart=n[E]=N,r[N]=n[B]=E,r[E]=B,o[this._hashKey(O,P)]=E,o[this._hashKey(t[2*N],t[2*N+1])]=N}this.hull=new Uint32Array(k);for(let S=0,M=this._hullStart;S<k;S++)this.hull[S]=M,M=r[M];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(iZ(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:i}=this;let o=0,a=0;for(;;){const s=r[t],u=t-t%3;if(a=u+(t+2)%3,s===-1){if(o===0)break;t=mh[--o];continue}const l=s-s%3,c=u+(t+1)%3,f=l+(s+2)%3,h=n[a],d=n[t],p=n[c],m=n[f];if(oZ(i[2*h],i[2*h+1],i[2*d],i[2*d+1],i[2*p],i[2*p+1],i[2*m],i[2*m+1])){n[t]=m,n[s]=h;const y=r[f];if(y===-1){let x=this._hullStart;do{if(this._hullTri[x]===f){this._hullTri[x]=t;break}x=this._hullPrev[x]}while(x!==this._hullStart)}this._link(t,y),this._link(s,r[a]),this._link(a,f);const v=l+(s+1)%3;o<mh.length&&(mh[o++]=v)}else{if(o===0)break;t=mh[--o]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,i,o,a){const s=this.trianglesLen;return this._triangles[s]=t,this._triangles[s+1]=n,this._triangles[s+2]=r,this._link(s,i),this._link(s+1,o),this._link(s+2,a),this.trianglesLen+=3,s}}function iZ(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function z1(e,t,n,r){const i=e-n,o=t-r;return i*i+o*o}function F1(e,t,n,r,i,o){const a=(r-t)*(i-e),s=(n-e)*(o-t);return Math.abs(a-s)>=33306690738754716e-32*Math.abs(a+s)?a-s:0}function vh(e,t,n,r,i,o){return(F1(i,o,e,t,n,r)||F1(e,t,n,r,i,o)||F1(n,r,i,o,e,t))<0}function oZ(e,t,n,r,i,o,a,s){const u=e-a,l=t-s,c=n-a,f=r-s,h=i-a,d=o-s,p=u*u+l*l,m=c*c+f*f,g=h*h+d*d;return u*(f*g-m*d)-l*(c*g-m*h)+p*(c*d-f*h)<0}function aZ(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,h=.5/(a*l-s*u),d=(l*c-s*f)*h,p=(a*f-u*c)*h;return d*d+p*p}function sZ(e,t,n,r,i,o){const a=n-e,s=r-t,u=i-e,l=o-t,c=a*a+s*s,f=u*u+l*l,h=.5/(a*l-s*u),d=e+(l*c-s*f)*h,p=t+(a*f-u*c)*h;return{x:d,y:p}}function Na(e,t,n,r){if(r-n<=20)for(let i=n+1;i<=r;i++){const o=e[i],a=t[o];let s=i-1;for(;s>=n&&t[e[s]]>a;)e[s+1]=e[s--];e[s+1]=o}else{const i=n+r>>1;let o=n+1,a=r;Bu(e,i,o),t[e[n]]>t[e[r]]&&Bu(e,n,r),t[e[o]]>t[e[r]]&&Bu(e,o,r),t[e[n]]>t[e[o]]&&Bu(e,n,o);const s=e[o],u=t[s];for(;;){do o++;while(t[e[o]]<u);do a--;while(t[e[a]]>u);if(a<o)break;Bu(e,o,a)}e[n+1]=e[a],e[a]=s,r-o+1>=a-n?(Na(e,t,o,r),Na(e,t,n,a-1)):(Na(e,t,n,a-1),Na(e,t,o,r))}}function Bu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function uZ(e){return e[0]}function lZ(e){return e[1]}const yM=1e-6;class oo{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const i=t+r,o=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>yM||Math.abs(this._y1-o)>yM)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}rect(t,n,r,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class B1{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class vM{constructor(t,[n,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(n=+n))||!((o=+o)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=i,this.xmin=n,this.ymax=o,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:i}=this,o=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let d=0,p=0,m=r.length,g,y;d<m;d+=3,p+=2){const v=r[d]*2,x=r[d+1]*2,b=r[d+2]*2,_=t[v],w=t[v+1],$=t[x],T=t[x+1],k=t[b],S=t[b+1],M=$-_,A=T-w,E=k-_,O=S-w,P=M*M+A*A,C=E*E+O*O,N=(M*O-A*E)*2;if(!N)g=(_+k)/2-1e8*O,y=(w+S)/2+1e8*E;else if(Math.abs(N)<1e-8)g=(_+k)/2,y=(w+S)/2;else{const D=1/N;g=_+(O*P-A*C)*D,y=w+(M*C-E*P)*D}o[p]=g,o[p+1]=y}let a=n[n.length-1],s,u=a*4,l,c=t[2*a],f,h=t[2*a+1];i.fill(0);for(let d=0;d<n.length;++d)a=n[d],s=u,l=c,f=h,u=a*4,c=t[2*a],h=t[2*a+1],i[s+2]=i[u]=f-h,i[s+3]=i[u+1]=c-l}render(t){const n=t==null?t=new oo:void 0,{delaunay:{halfedges:r,inedges:i,hull:o},circumcenters:a,vectors:s}=this;if(o.length<=1)return null;for(let c=0,f=r.length;c<f;++c){const h=r[c];if(h<c)continue;const d=Math.floor(c/3)*2,p=Math.floor(h/3)*2,m=a[d],g=a[d+1],y=a[p],v=a[p+1];this._renderSegment(m,g,y,v,t)}let u,l=o[o.length-1];for(let c=0;c<o.length;++c){u=l,l=o[c];const f=Math.floor(i[l]/3)*2,h=a[f],d=a[f+1],p=u*4,m=this._project(h,d,s[p+2],s[p+3]);m&&this._renderSegment(h,d,m[0],m[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new oo:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new oo:void 0,i=this._clip(t);if(i===null||!i.length)return;n.moveTo(i[0],i[1]);let o=i.length;for(;i[0]===i[o-2]&&i[1]===i[o-1]&&o>1;)o-=2;for(let a=2;a<o;a+=2)(i[a]!==i[a-2]||i[a+1]!==i[a-1])&&n.lineTo(i[a],i[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const i=this.cellPolygon(n);i&&(i.index=n,yield i)}}cellPolygon(t){const n=new B1;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,i,o){let a;const s=this._regioncode(t,n),u=this._regioncode(r,i);s===0&&u===0?(o.moveTo(t,n),o.lineTo(r,i)):(a=this._clipSegment(t,n,r,i,s,u))&&(o.moveTo(a[0],a[1]),o.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const i=this._clip(r);if(i){e:for(let o=0,a=n.length;o<a;o+=2)for(let s=0,u=i.length;s<u;s+=2)if(n[o]==i[s]&&n[o+1]==i[s+1]&&n[(o+2)%a]==i[(s+u-2)%u]&&n[(o+3)%a]==i[(s+u-1)%u]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:i,triangles:o}}=this,a=r[t];if(a===-1)return null;const s=[];let u=a;do{const l=Math.floor(u/3);if(s.push(n[l*2],n[l*2+1]),u=u%3===2?u-2:u+1,o[u]!==t)break;u=i[u]}while(u!==a&&u!==-1);return s}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,i=t*4;return r[i]||r[i+1]?this._clipInfinite(t,n,r[i],r[i+1],r[i+2],r[i+3]):this._clipFinite(t,n)}_clipFinite(t,n){const r=n.length;let i=null,o,a,s=n[r-2],u=n[r-1],l,c=this._regioncode(s,u),f,h;for(let d=0;d<r;d+=2)if(o=s,a=u,s=n[d],u=n[d+1],l=c,c=this._regioncode(s,u),l===0&&c===0)f=h,h=0,i?i.push(s,u):i=[s,u];else{let p,m,g,y,v;if(l===0){if((p=this._clipSegment(o,a,s,u,l,c))===null)continue;[m,g,y,v]=p}else{if((p=this._clipSegment(s,u,o,a,c,l))===null)continue;[y,v,m,g]=p,f=h,h=this._edgecode(m,g),f&&h&&this._edge(t,f,h,i,i.length),i?i.push(m,g):i=[m,g]}f=h,h=this._edgecode(y,v),f&&h&&this._edge(t,f,h,i,i.length),i?i.push(y,v):i=[y,v]}if(i)f=h,h=this._edgecode(i[0],i[1]),f&&h&&this._edge(t,f,h,i,i.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return i}_clipSegment(t,n,r,i,o,a){for(;;){if(o===0&&a===0)return[t,n,r,i];if(o&a)return null;let s,u,l=o||a;l&8?(s=t+(r-t)*(this.ymax-n)/(i-n),u=this.ymax):l&4?(s=t+(r-t)*(this.ymin-n)/(i-n),u=this.ymin):l&2?(u=n+(i-n)*(this.xmax-t)/(r-t),s=this.xmax):(u=n+(i-n)*(this.xmin-t)/(r-t),s=this.xmin),o?(t=s,n=u,o=this._regioncode(t,n)):(r=s,i=u,a=this._regioncode(r,i))}}_clipInfinite(t,n,r,i,o,a){let s=Array.from(n),u;if((u=this._project(s[0],s[1],r,i))&&s.unshift(u[0],u[1]),(u=this._project(s[s.length-2],s[s.length-1],o,a))&&s.push(u[0],u[1]),s=this._clipFinite(t,s))for(let l=0,c=s.length,f,h=this._edgecode(s[c-2],s[c-1]);l<c;l+=2)f=h,h=this._edgecode(s[l],s[l+1]),f&&h&&(l=this._edge(t,f,h,s,l),c=s.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(s=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return s}_edge(t,n,r,i,o){for(;n!==r;){let a,s;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,s=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,s=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,s=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,s=this.ymin;break}(i[o]!==a||i[o+1]!==s)&&this.contains(t,a,s)&&(i.splice(o,0,a,s),o+=2)}if(i.length>4)for(let a=0;a<i.length;a+=2){const s=(a+2)%i.length,u=(a+4)%i.length;(i[a]===i[s]&&i[s]===i[u]||i[a+1]===i[s+1]&&i[s+1]===i[u+1])&&(i.splice(s,2),a-=2)}return o}_project(t,n,r,i){let o=1/0,a,s,u;if(i<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/i)<o&&(u=this.ymin,s=t+(o=a)*r)}else if(i>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/i)<o&&(u=this.ymax,s=t+(o=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<o&&(s=this.xmax,u=n+(o=a)*i)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<o&&(s=this.xmin,u=n+(o=a)*i)}return[s,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}}const cZ=2*Math.PI,Ra=Math.pow;function fZ(e){return e[0]}function hZ(e){return e[1]}function dZ(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const i=2*t[r],o=2*t[r+1],a=2*t[r+2];if((n[a]-n[i])*(n[o+1]-n[i+1])-(n[o]-n[i])*(n[a+1]-n[i+1])>1e-10)return!1}return!0}function pZ(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class j1{static from(t,n=fZ,r=hZ,i){return new j1("length"in t?gZ(t,n,r,i):Float64Array.from(mZ(t,n,r,i)))}constructor(t){this._delaunator=new yh(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&dZ(t)){this.collinear=Int32Array.from({length:n.length/2},(h,d)=>d).sort((h,d)=>n[2*h]-n[2*d]||n[2*h+1]-n[2*d+1]);const u=this.collinear[0],l=this.collinear[this.collinear.length-1],c=[n[2*u],n[2*u+1],n[2*l],n[2*l+1]],f=1e-8*Math.hypot(c[3]-c[1],c[2]-c[0]);for(let h=0,d=n.length/2;h<d;++h){const p=pZ(n[2*h],n[2*h+1],f);n[2*h]=p[0],n[2*h+1]=p[1]}this._delaunator=new yh(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,i=this.hull=this._delaunator.hull,o=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),s=this._hullIndex.fill(-1);for(let u=0,l=r.length;u<l;++u){const c=o[u%3===2?u-2:u+1];(r[u]===-1||a[c]===-1)&&(a[c]=u)}for(let u=0,l=i.length;u<l;++u)s[i[u]]=u;i.length<=2&&i.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],this.triangles[1]=i[1],this.triangles[2]=i[1],a[i[0]]=1,i.length===2&&(a[i[1]]=0))}voronoi(t){return new vM(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:i,halfedges:o,triangles:a,collinear:s}=this;if(s){const f=s.indexOf(t);f>0&&(yield s[f-1]),f<s.length-1&&(yield s[f+1]);return}const u=n[t];if(u===-1)return;let l=u,c=-1;do{if(yield c=a[l],l=l%3===2?l-2:l+1,a[l]!==t)return;if(l=o[l],l===-1){const f=r[(i[t]+1)%r.length];f!==c&&(yield f);return}}while(l!==u)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const i=r;let o;for(;(o=this._step(r,t,n))>=0&&o!==r&&o!==i;)r=o;return o}_step(t,n,r){const{inedges:i,hull:o,_hullIndex:a,halfedges:s,triangles:u,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let c=t,f=Ra(n-l[t*2],2)+Ra(r-l[t*2+1],2);const h=i[t];let d=h;do{let p=u[d];const m=Ra(n-l[p*2],2)+Ra(r-l[p*2+1],2);if(m<f&&(f=m,c=p),d=d%3===2?d-2:d+1,u[d]!==t)break;if(d=s[d],d===-1){if(d=o[(a[t]+1)%o.length],d!==p&&Ra(n-l[d*2],2)+Ra(r-l[d*2+1],2)<f)return d;break}}while(d!==h);return c}render(t){const n=t==null?t=new oo:void 0,{points:r,halfedges:i,triangles:o}=this;for(let a=0,s=i.length;a<s;++a){const u=i[a];if(u<a)continue;const l=o[a]*2,c=o[u]*2;t.moveTo(r[l],r[l+1]),t.lineTo(r[c],r[c+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n=2){const r=t==null?t=new oo:void 0,{points:i}=this;for(let o=0,a=i.length;o<a;o+=2){const s=i[o],u=i[o+1];t.moveTo(s+n,u),t.arc(s,u,n,0,cZ)}return r&&r.value()}renderHull(t){const n=t==null?t=new oo:void 0,{hull:r,points:i}=this,o=r[0]*2,a=r.length;t.moveTo(i[o],i[o+1]);for(let s=1;s<a;++s){const u=2*r[s];t.lineTo(i[u],i[u+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new B1;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new oo:void 0,{points:i,triangles:o}=this,a=o[t*=3]*2,s=o[t+1]*2,u=o[t+2]*2;return n.moveTo(i[a],i[a+1]),n.lineTo(i[s],i[s+1]),n.lineTo(i[u],i[u+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new B1;return this.renderTriangle(t,n),n.value()}}function gZ(e,t,n,r){const i=e.length,o=new Float64Array(i*2);for(let a=0;a<i;++a){const s=e[a];o[a*2]=t.call(r,s,a,e),o[a*2+1]=n.call(r,s,a,e)}return o}function*mZ(e,t,n,r){let i=0;for(const o of e)yield t.call(r,o,i,e),yield n.call(r,o,i,e),++i}var yZ={value:()=>{}};function bM(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new bh(n)}function bh(e){this._=e}function vZ(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}bh.prototype=bM.prototype={constructor:bh,on:function(e,t){var n=this._,r=vZ(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=bZ(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=xM(n[i],e.name,t);else if(t==null)for(i in n)n[i]=xM(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new bh(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function bZ(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function xM(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=yZ,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var wM={},W1={},H1=34,ju=10,q1=13;function _M(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function xZ(e,t){var n=_M(e);return function(r,i){return t(n(r),i,e)}}function $M(e){var t=Object.create(null),n=[];return e.forEach(function(r){for(var i in r)i in t||n.push(t[i]=i)}),n}function Zt(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function wZ(e){return e<0?"-"+Zt(-e,6):e>9999?"+"+Zt(e,6):Zt(e,4)}function _Z(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":wZ(e.getUTCFullYear())+"-"+Zt(e.getUTCMonth()+1,2)+"-"+Zt(e.getUTCDate(),2)+(i?"T"+Zt(t,2)+":"+Zt(n,2)+":"+Zt(r,2)+"."+Zt(i,3)+"Z":r?"T"+Zt(t,2)+":"+Zt(n,2)+":"+Zt(r,2)+"Z":n||t?"T"+Zt(t,2)+":"+Zt(n,2)+"Z":"")}function xh(e){var t=new RegExp('["'+e+`
100
+ \r]`),n=e.charCodeAt(0);function r(f,h){var d,p,m=i(f,function(g,y){if(d)return d(g,y-1);p=g,d=h?xZ(g,h):_M(g)});return m.columns=p||[],m}function i(f,h){var d=[],p=f.length,m=0,g=0,y,v=p<=0,x=!1;f.charCodeAt(p-1)===ju&&--p,f.charCodeAt(p-1)===q1&&--p;function b(){if(v)return W1;if(x)return x=!1,wM;var w,$=m,T;if(f.charCodeAt($)===H1){for(;m++<p&&f.charCodeAt(m)!==H1||f.charCodeAt(++m)===H1;);return(w=m)>=p?v=!0:(T=f.charCodeAt(m++))===ju?x=!0:T===q1&&(x=!0,f.charCodeAt(m)===ju&&++m),f.slice($+1,w-1).replace(/""/g,'"')}for(;m<p;){if((T=f.charCodeAt(w=m++))===ju)x=!0;else if(T===q1)x=!0,f.charCodeAt(m)===ju&&++m;else if(T!==n)continue;return f.slice($,w)}return v=!0,f.slice($,p)}for(;(y=b())!==W1;){for(var _=[];y!==wM&&y!==W1;)_.push(y),y=b();h&&(_=h(_,g++))==null||d.push(_)}return d}function o(f,h){return f.map(function(d){return h.map(function(p){return c(d[p])}).join(e)})}function a(f,h){return h==null&&(h=$M(f)),[h.map(c).join(e)].concat(o(f,h)).join(`
101
+ `)}function s(f,h){return h==null&&(h=$M(f)),o(f,h).join(`
102
102
  `)}function u(f){return f.map(l).join(`
103
- `)}function l(f){return f.map(c).join(e)}function c(f){return f==null?"":f instanceof Date?TQ(f):t.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:a,formatBody:s,formatRows:u,formatRow:l,formatValue:c}}var ao=xh(","),TM=ao.parse,kQ=ao.parseRows,OQ=ao.format,CQ=ao.formatBody,PQ=ao.formatRows,EQ=ao.formatRow,AQ=ao.formatValue,so=xh(" "),kM=so.parse,NQ=so.parseRows,RQ=so.format,LQ=so.formatBody,DQ=so.formatRows,IQ=so.formatRow,zQ=so.formatValue;function FQ(e){for(var t in e){var n=e[t].trim(),r,i;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(i=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))BQ&&!!i[4]&&!i[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;e[t]=n}return e}const BQ=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function jQ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function WQ(e,t){return fetch(e,t).then(jQ)}function HQ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function qQ(e,t){return fetch(e,t).then(HQ)}function UQ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function wh(e,t){return fetch(e,t).then(UQ)}function OM(e){return function(t,n,r){return arguments.length===2&&typeof n=="function"&&(r=n,n=void 0),wh(t,n).then(function(i){return e(i,r)})}}function VQ(e,t,n,r){arguments.length===3&&typeof n=="function"&&(r=n,n=void 0);var i=xh(e);return wh(t,n).then(function(o){return i.parse(o,r)})}var YQ=OM(TM),GQ=OM(kM);function XQ(e,t){return new Promise(function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e})}function KQ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(!(e.status===204||e.status===205))return e.json()}function QQ(e,t){return fetch(e,t).then(KQ)}function V1(e){return(t,n)=>wh(t,n).then(r=>new DOMParser().parseFromString(r,e))}var ZQ=V1("application/xml"),JQ=V1("text/html"),eZ=V1("image/svg+xml");function tZ(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var o,a=n.length,s,u=0,l=0;for(o=0;o<a;++o)s=n[o],u+=s.x,l+=s.y;for(u=(u/a-e)*r,l=(l/a-t)*r,o=0;o<a;++o)s=n[o],s.x-=u,s.y-=l}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(e=+o,i):e},i.y=function(o){return arguments.length?(t=+o,i):t},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function nZ(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return CM(this.cover(t,n),t,n,e)}function CM(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o=e._root,a={data:r},s=e._x0,u=e._y0,l=e._x1,c=e._y1,f,h,d,p,m,g,y,v;if(!o)return e._root=a,e;for(;o.length;)if((m=t>=(f=(s+l)/2))?s=f:l=f,(g=n>=(h=(u+c)/2))?u=h:c=h,i=o,!(o=o[y=g<<1|m]))return i[y]=a,e;if(d=+e._x.call(null,o.data),p=+e._y.call(null,o.data),t===d&&n===p)return a.next=o,i?i[y]=a:e._root=a,e;do i=i?i[y]=new Array(4):e._root=new Array(4),(m=t>=(f=(s+l)/2))?s=f:l=f,(g=n>=(h=(u+c)/2))?u=h:c=h;while((y=g<<1|m)===(v=(p>=h)<<1|d>=f));return i[v]=o,i[y]=a,e}function rZ(e){var t,n,r=e.length,i,o,a=new Array(r),s=new Array(r),u=1/0,l=1/0,c=-1/0,f=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(a[n]=i,s[n]=o,i<u&&(u=i),i>c&&(c=i),o<l&&(l=o),o>f&&(f=o));if(u>c||l>f)return this;for(this.cover(u,l).cover(c,f),n=0;n<r;++n)CM(this,a[n],s[n],e[n]);return this}function iZ(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a=i-n||1,s=this._root,u,l;n>e||e>=i||r>t||t>=o;)switch(l=(t<r)<<1|e<n,u=new Array(4),u[l]=s,s=u,a*=2,l){case 0:i=n+a,o=r+a;break;case 1:n=i-a,o=r+a;break;case 2:i=n+a,r=o-a;break;case 3:n=i-a,r=o-a;break}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function oZ(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function aZ(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function At(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function sZ(e,t,n){var r,i=this._x0,o=this._y0,a,s,u,l,c=this._x1,f=this._y1,h=[],d=this._root,p,m;for(d&&h.push(new At(d,i,o,c,f)),n==null?n=1/0:(i=e-n,o=t-n,c=e+n,f=t+n,n*=n);p=h.pop();)if(!(!(d=p.node)||(a=p.x0)>c||(s=p.y0)>f||(u=p.x1)<i||(l=p.y1)<o))if(d.length){var g=(a+u)/2,y=(s+l)/2;h.push(new At(d[3],g,y,u,l),new At(d[2],a,y,g,l),new At(d[1],g,s,u,y),new At(d[0],a,s,g,y)),(m=(t>=y)<<1|e>=g)&&(p=h[h.length-1],h[h.length-1]=h[h.length-1-m],h[h.length-1-m]=p)}else{var v=e-+this._x.call(null,d.data),x=t-+this._y.call(null,d.data),b=v*v+x*x;if(b<n){var _=Math.sqrt(n=b);i=e-_,o=t-_,c=e+_,f=t+_,r=d.data}}return r}function uZ(e){if(isNaN(c=+this._x.call(null,e))||isNaN(f=+this._y.call(null,e)))return this;var t,n=this._root,r,i,o,a=this._x0,s=this._y0,u=this._x1,l=this._y1,c,f,h,d,p,m,g,y;if(!n)return this;if(n.length)for(;;){if((p=c>=(h=(a+u)/2))?a=h:u=h,(m=f>=(d=(s+l)/2))?s=d:l=d,t=n,!(n=n[g=m<<1|p]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,y=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[g]=o:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=o,this)}function lZ(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function cZ(){return this._root}function fZ(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function hZ(e){var t=[],n,r=this._root,i,o,a,s,u;for(r&&t.push(new At(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,o=n.x0,a=n.y0,s=n.x1,u=n.y1)&&r.length){var l=(o+s)/2,c=(a+u)/2;(i=r[3])&&t.push(new At(i,l,c,s,u)),(i=r[2])&&t.push(new At(i,o,c,l,u)),(i=r[1])&&t.push(new At(i,l,a,s,c)),(i=r[0])&&t.push(new At(i,o,a,l,c))}return this}function dZ(e){var t=[],n=[],r;for(this._root&&t.push(new At(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var o,a=r.x0,s=r.y0,u=r.x1,l=r.y1,c=(a+u)/2,f=(s+l)/2;(o=i[0])&&t.push(new At(o,a,s,c,f)),(o=i[1])&&t.push(new At(o,c,s,u,f)),(o=i[2])&&t.push(new At(o,a,f,c,l)),(o=i[3])&&t.push(new At(o,c,f,u,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function pZ(e){return e[0]}function gZ(e){return arguments.length?(this._x=e,this):this._x}function mZ(e){return e[1]}function yZ(e){return arguments.length?(this._y=e,this):this._y}function _h(e,t,n){var r=new Y1(t==null?pZ:t,n==null?mZ:n,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function Y1(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function PM(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Nt=_h.prototype=Y1.prototype;Nt.copy=function(){var e=new Y1(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=PM(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=PM(r));return e},Nt.add=nZ,Nt.addAll=rZ,Nt.cover=iZ,Nt.data=oZ,Nt.extent=aZ,Nt.find=sZ,Nt.remove=uZ,Nt.removeAll=lZ,Nt.root=cZ,Nt.size=fZ,Nt.visit=hZ,Nt.visitAfter=dZ,Nt.x=gZ,Nt.y=yZ;function Ke(e){return function(){return e}}function ui(e){return(e()-.5)*1e-6}function vZ(e){return e.x+e.vx}function bZ(e){return e.y+e.vy}function xZ(e){var t,n,r,i=1,o=1;typeof e!="function"&&(e=Ke(e==null?1:+e));function a(){for(var l,c=t.length,f,h,d,p,m,g,y=0;y<o;++y)for(f=_h(t,vZ,bZ).visitAfter(s),l=0;l<c;++l)h=t[l],m=n[h.index],g=m*m,d=h.x+h.vx,p=h.y+h.vy,f.visit(v);function v(x,b,_,w,$){var M=x.data,k=x.r,S=m+k;if(M){if(M.index>h.index){var T=d-M.x-M.vx,A=p-M.y-M.vy,P=T*T+A*A;P<S*S&&(T===0&&(T=ui(r),P+=T*T),A===0&&(A=ui(r),P+=A*A),P=(S-(P=Math.sqrt(P)))/P*i,h.vx+=(T*=P)*(S=(k*=k)/(g+k)),h.vy+=(A*=P)*S,M.vx-=T*(S=1-S),M.vy-=A*S)}return}return b>d+S||w<d-S||_>p+S||$<p-S}}function s(l){if(l.data)return l.r=n[l.data.index];for(var c=l.r=0;c<4;++c)l[c]&&l[c].r>l.r&&(l.r=l[c].r)}function u(){if(!!t){var l,c=t.length,f;for(n=new Array(c),l=0;l<c;++l)f=t[l],n[f.index]=+e(f,l,t)}}return a.initialize=function(l,c){t=l,r=c,u()},a.iterations=function(l){return arguments.length?(o=+l,a):o},a.strength=function(l){return arguments.length?(i=+l,a):i},a.radius=function(l){return arguments.length?(e=typeof l=="function"?l:Ke(+l),u(),a):e},a}function wZ(e){return e.index}function EM(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function _Z(e){var t=wZ,n=f,r,i=Ke(30),o,a,s,u,l,c=1;e==null&&(e=[]);function f(g){return 1/Math.min(s[g.source.index],s[g.target.index])}function h(g){for(var y=0,v=e.length;y<c;++y)for(var x=0,b,_,w,$,M,k,S;x<v;++x)b=e[x],_=b.source,w=b.target,$=w.x+w.vx-_.x-_.vx||ui(l),M=w.y+w.vy-_.y-_.vy||ui(l),k=Math.sqrt($*$+M*M),k=(k-o[x])/k*g*r[x],$*=k,M*=k,w.vx-=$*(S=u[x]),w.vy-=M*S,_.vx+=$*(S=1-S),_.vy+=M*S}function d(){if(!!a){var g,y=a.length,v=e.length,x=new Map(a.map((_,w)=>[t(_,w,a),_])),b;for(g=0,s=new Array(y);g<v;++g)b=e[g],b.index=g,typeof b.source!="object"&&(b.source=EM(x,b.source)),typeof b.target!="object"&&(b.target=EM(x,b.target)),s[b.source.index]=(s[b.source.index]||0)+1,s[b.target.index]=(s[b.target.index]||0)+1;for(g=0,u=new Array(v);g<v;++g)b=e[g],u[g]=s[b.source.index]/(s[b.source.index]+s[b.target.index]);r=new Array(v),p(),o=new Array(v),m()}}function p(){if(!!a)for(var g=0,y=e.length;g<y;++g)r[g]=+n(e[g],g,e)}function m(){if(!!a)for(var g=0,y=e.length;g<y;++g)o[g]=+i(e[g],g,e)}return h.initialize=function(g,y){a=g,l=y,d()},h.links=function(g){return arguments.length?(e=g,d(),h):e},h.id=function(g){return arguments.length?(t=g,h):t},h.iterations=function(g){return arguments.length?(c=+g,h):c},h.strength=function(g){return arguments.length?(n=typeof g=="function"?g:Ke(+g),p(),h):n},h.distance=function(g){return arguments.length?(i=typeof g=="function"?g:Ke(+g),m(),h):i},h}const $Z=1664525,SZ=1013904223,AM=4294967296;function MZ(){let e=1;return()=>(e=($Z*e+SZ)%AM)/AM}function TZ(e){return e.x}function kZ(e){return e.y}var OZ=10,CZ=Math.PI*(3-Math.sqrt(5));function PZ(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,u=Zf(f),l=ba("tick","end"),c=MZ();e==null&&(e=[]);function f(){h(),l.call("tick",t),n<r&&(u.stop(),l.call("end",t))}function h(m){var g,y=e.length,v;m===void 0&&(m=1);for(var x=0;x<m;++x)for(n+=(o-n)*i,s.forEach(function(b){b(n)}),g=0;g<y;++g)v=e[g],v.fx==null?v.x+=v.vx*=a:(v.x=v.fx,v.vx=0),v.fy==null?v.y+=v.vy*=a:(v.y=v.fy,v.vy=0);return t}function d(){for(var m=0,g=e.length,y;m<g;++m){if(y=e[m],y.index=m,y.fx!=null&&(y.x=y.fx),y.fy!=null&&(y.y=y.fy),isNaN(y.x)||isNaN(y.y)){var v=OZ*Math.sqrt(.5+m),x=m*CZ;y.x=v*Math.cos(x),y.y=v*Math.sin(x)}(isNaN(y.vx)||isNaN(y.vy))&&(y.vx=y.vy=0)}}function p(m){return m.initialize&&m.initialize(e,c),m}return d(),t={tick:h,restart:function(){return u.restart(f),t},stop:function(){return u.stop(),t},nodes:function(m){return arguments.length?(e=m,d(),s.forEach(p),t):e},alpha:function(m){return arguments.length?(n=+m,t):n},alphaMin:function(m){return arguments.length?(r=+m,t):r},alphaDecay:function(m){return arguments.length?(i=+m,t):+i},alphaTarget:function(m){return arguments.length?(o=+m,t):o},velocityDecay:function(m){return arguments.length?(a=1-m,t):1-a},randomSource:function(m){return arguments.length?(c=m,s.forEach(p),t):c},force:function(m,g){return arguments.length>1?(g==null?s.delete(m):s.set(m,p(g)),t):s.get(m)},find:function(m,g,y){var v=0,x=e.length,b,_,w,$,M;for(y==null?y=1/0:y*=y,v=0;v<x;++v)$=e[v],b=m-$.x,_=g-$.y,w=b*b+_*_,w<y&&(M=$,y=w);return M},on:function(m,g){return arguments.length>1?(l.on(m,g),t):l.on(m)}}}function EZ(){var e,t,n,r,i=Ke(-30),o,a=1,s=1/0,u=.81;function l(d){var p,m=e.length,g=_h(e,TZ,kZ).visitAfter(f);for(r=d,p=0;p<m;++p)t=e[p],g.visit(h)}function c(){if(!!e){var d,p=e.length,m;for(o=new Array(p),d=0;d<p;++d)m=e[d],o[m.index]=+i(m,d,e)}}function f(d){var p=0,m,g,y=0,v,x,b;if(d.length){for(v=x=b=0;b<4;++b)(m=d[b])&&(g=Math.abs(m.value))&&(p+=m.value,y+=g,v+=g*m.x,x+=g*m.y);d.x=v/y,d.y=x/y}else{m=d,m.x=m.data.x,m.y=m.data.y;do p+=o[m.data.index];while(m=m.next)}d.value=p}function h(d,p,m,g){if(!d.value)return!0;var y=d.x-t.x,v=d.y-t.y,x=g-p,b=y*y+v*v;if(x*x/u<b)return b<s&&(y===0&&(y=ui(n),b+=y*y),v===0&&(v=ui(n),b+=v*v),b<a&&(b=Math.sqrt(a*b)),t.vx+=y*d.value*r/b,t.vy+=v*d.value*r/b),!0;if(d.length||b>=s)return;(d.data!==t||d.next)&&(y===0&&(y=ui(n),b+=y*y),v===0&&(v=ui(n),b+=v*v),b<a&&(b=Math.sqrt(a*b)));do d.data!==t&&(x=o[d.data.index]*r/b,t.vx+=y*x,t.vy+=v*x);while(d=d.next)}return l.initialize=function(d,p){e=d,n=p,c()},l.strength=function(d){return arguments.length?(i=typeof d=="function"?d:Ke(+d),c(),l):i},l.distanceMin=function(d){return arguments.length?(a=d*d,l):Math.sqrt(a)},l.distanceMax=function(d){return arguments.length?(s=d*d,l):Math.sqrt(s)},l.theta=function(d){return arguments.length?(u=d*d,l):Math.sqrt(u)},l}function AZ(e,t,n){var r,i=Ke(.1),o,a;typeof e!="function"&&(e=Ke(+e)),t==null&&(t=0),n==null&&(n=0);function s(l){for(var c=0,f=r.length;c<f;++c){var h=r[c],d=h.x-t||1e-6,p=h.y-n||1e-6,m=Math.sqrt(d*d+p*p),g=(a[c]-m)*o[c]*l/m;h.vx+=d*g,h.vy+=p*g}}function u(){if(!!r){var l,c=r.length;for(o=new Array(c),a=new Array(c),l=0;l<c;++l)a[l]=+e(r[l],l,r),o[l]=isNaN(a[l])?0:+i(r[l],l,r)}}return s.initialize=function(l){r=l,u()},s.strength=function(l){return arguments.length?(i=typeof l=="function"?l:Ke(+l),u(),s):i},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:Ke(+l),u(),s):e},s.x=function(l){return arguments.length?(t=+l,s):t},s.y=function(l){return arguments.length?(n=+l,s):n},s}function NZ(e){var t=Ke(.1),n,r,i;typeof e!="function"&&(e=Ke(e==null?0:+e));function o(s){for(var u=0,l=n.length,c;u<l;++u)c=n[u],c.vx+=(i[u]-c.x)*r[u]*s}function a(){if(!!n){var s,u=n.length;for(r=new Array(u),i=new Array(u),s=0;s<u;++s)r[s]=isNaN(i[s]=+e(n[s],s,n))?0:+t(n[s],s,n)}}return o.initialize=function(s){n=s,a()},o.strength=function(s){return arguments.length?(t=typeof s=="function"?s:Ke(+s),a(),o):t},o.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ke(+s),a(),o):e},o}function RZ(e){var t=Ke(.1),n,r,i;typeof e!="function"&&(e=Ke(e==null?0:+e));function o(s){for(var u=0,l=n.length,c;u<l;++u)c=n[u],c.vy+=(i[u]-c.y)*r[u]*s}function a(){if(!!n){var s,u=n.length;for(r=new Array(u),i=new Array(u),s=0;s<u;++s)r[s]=isNaN(i[s]=+e(n[s],s,n))?0:+t(n[s],s,n)}}return o.initialize=function(s){n=s,a()},o.strength=function(s){return arguments.length?(t=typeof s=="function"?s:Ke(+s),a(),o):t},o.y=function(s){return arguments.length?(e=typeof s=="function"?s:Ke(+s),a(),o):e},o}function LZ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $h(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 Da(e){return e=$h(Math.abs(e)),e?e[1]:NaN}function DZ(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function IZ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var zZ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Hu(e){if(!(t=zZ.exec(e)))throw new Error("invalid format: "+e);var t;return new Sh({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]})}Hu.prototype=Sh.prototype;function Sh(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Sh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function FZ(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var NM;function BZ(e,t){var n=$h(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(NM=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+$h(e,Math.max(0,t+o-1))[0]}function RM(e,t){var n=$h(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var LM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:LZ,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)=>RM(e*100,t),r:RM,s:BZ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function DM(e){return e}var IM=Array.prototype.map,zM=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function FM(e){var t=e.grouping===void 0||e.thousands===void 0?DM:DZ(IM.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?DM:IZ(IM.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=Hu(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,g=f.zero,y=f.width,v=f.comma,x=f.precision,b=f.trim,_=f.type;_==="n"?(v=!0,_="g"):LM[_]||(x===void 0&&(x=12),b=!0,_="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=m==="$"?r:/[%p]/.test(_)?a:"",M=LM[_],k=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function S(T){var A=w,P=$,O,E,C;if(_==="c")P=M(T)+P,T="";else{T=+T;var R=T<0||1/T<0;if(T=isNaN(T)?u:M(Math.abs(T),x),b&&(T=FZ(T)),R&&+T==0&&p!=="+"&&(R=!1),A=(R?p==="("?p:s:p==="-"||p==="("?"":p)+A,P=(_==="s"?zM[8+NM/3]:"")+P+(R&&p==="("?")":""),k){for(O=-1,E=T.length;++O<E;)if(C=T.charCodeAt(O),48>C||C>57){P=(C===46?i+T.slice(O+1):T.slice(O))+P,T=T.slice(0,O);break}}}v&&!g&&(T=t(T,1/0));var D=A.length+T.length+P.length,L=D<y?new Array(y-D+1).join(h):"";switch(v&&g&&(T=t(L+T,L.length?y-P.length:1/0),L=""),d){case"<":T=A+T+P+L;break;case"=":T=A+L+T+P;break;case"^":T=L.slice(0,D=L.length>>1)+A+T+P+L.slice(D);break;default:T=L+A+T+P;break}return o(T)}return S.toString=function(){return f+""},S}function c(f,h){var d=l((f=Hu(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Da(h)/3)))*3,m=Math.pow(10,-p),g=zM[8+p/3];return function(y){return d(m*y)+g}}return{format:l,formatPrefix:c}}var Mh,Th,G1;BM({thousands:",",grouping:[3],currency:["$",""]});function BM(e){return Mh=FM(e),Th=Mh.format,G1=Mh.formatPrefix,Mh}function jM(e){return Math.max(0,-Da(Math.abs(e)))}function WM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Da(t)/3)))*3-Da(Math.abs(e)))}function HM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Da(t)-Da(e))+1}var le=1e-6,qu=1e-12,me=Math.PI,Fe=me/2,kh=me/4,Rt=me*2,ke=180/me,ce=me/180,be=Math.abs,Ia=Math.atan,Lt=Math.atan2,se=Math.cos,Oh=Math.ceil,qM=Math.exp,X1=Math.hypot,Ch=Math.log,K1=Math.pow,ie=Math.sin,wn=Math.sign||function(e){return e>0?1:e<0?-1:0},st=Math.sqrt,Q1=Math.tan;function UM(e){return e>1?0:e<-1?me:Math.acos(e)}function Dt(e){return e>1?Fe:e<-1?-Fe:Math.asin(e)}function VM(e){return(e=ie(e/2))*e}function Le(){}function Ph(e,t){e&&GM.hasOwnProperty(e.type)&&GM[e.type](e,t)}var YM={Feature:function(e,t){Ph(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Ph(n[r].geometry,t)}},GM={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Z1(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Z1(n[r],t,0)},Polygon:function(e,t){XM(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)XM(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Ph(n[r],t)}};function Z1(e,t,n){var r=-1,i=e.length-n,o;for(t.lineStart();++r<i;)o=e[r],t.point(o[0],o[1],o[2]);t.lineEnd()}function XM(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Z1(e[n],t,1);t.polygonEnd()}function In(e,t){e&&YM.hasOwnProperty(e.type)?YM[e.type](e,t):Ph(e,t)}var Eh=new Xe,Ah=new Xe,KM,QM,J1,ey,ty,fr={point:Le,lineStart:Le,lineEnd:Le,polygonStart:function(){Eh=new Xe,fr.lineStart=jZ,fr.lineEnd=WZ},polygonEnd:function(){var e=+Eh;Ah.add(e<0?Rt+e:e),this.lineStart=this.lineEnd=this.point=Le},sphere:function(){Ah.add(Rt)}};function jZ(){fr.point=HZ}function WZ(){ZM(KM,QM)}function HZ(e,t){fr.point=ZM,KM=e,QM=t,e*=ce,t*=ce,J1=e,ey=se(t=t/2+kh),ty=ie(t)}function ZM(e,t){e*=ce,t*=ce,t=t/2+kh;var n=e-J1,r=n>=0?1:-1,i=r*n,o=se(t),a=ie(t),s=ty*a,u=ey*o+s*se(i),l=s*r*ie(i);Eh.add(Lt(l,u)),J1=e,ey=o,ty=a}function qZ(e){return Ah=new Xe,In(e,fr),Ah*2}function Nh(e){return[Lt(e[1],e[0]),Dt(e[2])]}function uo(e){var t=e[0],n=e[1],r=se(n);return[r*se(t),r*ie(t),ie(n)]}function Rh(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function za(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ny(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Lh(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Dh(e){var t=st(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var De,Zt,Be,ln,lo,JM,eT,Fa,Uu,li,Rr,Lr={point:ry,lineStart:nT,lineEnd:rT,polygonStart:function(){Lr.point=iT,Lr.lineStart=UZ,Lr.lineEnd=VZ,Uu=new Xe,fr.polygonStart()},polygonEnd:function(){fr.polygonEnd(),Lr.point=ry,Lr.lineStart=nT,Lr.lineEnd=rT,Eh<0?(De=-(Be=180),Zt=-(ln=90)):Uu>le?ln=90:Uu<-le&&(Zt=-90),Rr[0]=De,Rr[1]=Be},sphere:function(){De=-(Be=180),Zt=-(ln=90)}};function ry(e,t){li.push(Rr=[De=e,Be=e]),t<Zt&&(Zt=t),t>ln&&(ln=t)}function tT(e,t){var n=uo([e*ce,t*ce]);if(Fa){var r=za(Fa,n),i=[r[1],-r[0],0],o=za(i,r);Dh(o),o=Nh(o);var a=e-lo,s=a>0?1:-1,u=o[0]*ke*s,l,c=be(a)>180;c^(s*lo<u&&u<s*e)?(l=o[1]*ke,l>ln&&(ln=l)):(u=(u+360)%360-180,c^(s*lo<u&&u<s*e)?(l=-o[1]*ke,l<Zt&&(Zt=l)):(t<Zt&&(Zt=t),t>ln&&(ln=t))),c?e<lo?cn(De,e)>cn(De,Be)&&(Be=e):cn(e,Be)>cn(De,Be)&&(De=e):Be>=De?(e<De&&(De=e),e>Be&&(Be=e)):e>lo?cn(De,e)>cn(De,Be)&&(Be=e):cn(e,Be)>cn(De,Be)&&(De=e)}else li.push(Rr=[De=e,Be=e]);t<Zt&&(Zt=t),t>ln&&(ln=t),Fa=n,lo=e}function nT(){Lr.point=tT}function rT(){Rr[0]=De,Rr[1]=Be,Lr.point=ry,Fa=null}function iT(e,t){if(Fa){var n=e-lo;Uu.add(be(n)>180?n+(n>0?360:-360):n)}else JM=e,eT=t;fr.point(e,t),tT(e,t)}function UZ(){fr.lineStart()}function VZ(){iT(JM,eT),fr.lineEnd(),be(Uu)>le&&(De=-(Be=180)),Rr[0]=De,Rr[1]=Be,Fa=null}function cn(e,t){return(t-=e)<0?t+360:t}function YZ(e,t){return e[0]-t[0]}function oT(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function GZ(e){var t,n,r,i,o,a,s;if(ln=Be=-(De=Zt=1/0),li=[],In(e,Lr),n=li.length){for(li.sort(YZ),t=1,r=li[0],o=[r];t<n;++t)i=li[t],oT(r,i[0])||oT(r,i[1])?(cn(r[0],i[1])>cn(r[0],r[1])&&(r[1]=i[1]),cn(i[0],r[1])>cn(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=o.length-1,t=0,r=o[n];t<=n;r=i,++t)i=o[t],(s=cn(r[1],i[0]))>a&&(a=s,De=i[0],Be=r[1])}return li=Rr=null,De===1/0||Zt===1/0?[[NaN,NaN],[NaN,NaN]]:[[De,Zt],[Be,ln]]}var Vu,Ih,zh,Fh,Bh,jh,Wh,Hh,iy,oy,ay,aT,sT,It,zt,Ft,zn={sphere:Le,point:sy,lineStart:uT,lineEnd:lT,polygonStart:function(){zn.lineStart=QZ,zn.lineEnd=ZZ},polygonEnd:function(){zn.lineStart=uT,zn.lineEnd=lT}};function sy(e,t){e*=ce,t*=ce;var n=se(t);Yu(n*se(e),n*ie(e),ie(t))}function Yu(e,t,n){++Vu,zh+=(e-zh)/Vu,Fh+=(t-Fh)/Vu,Bh+=(n-Bh)/Vu}function uT(){zn.point=XZ}function XZ(e,t){e*=ce,t*=ce;var n=se(t);It=n*se(e),zt=n*ie(e),Ft=ie(t),zn.point=KZ,Yu(It,zt,Ft)}function KZ(e,t){e*=ce,t*=ce;var n=se(t),r=n*se(e),i=n*ie(e),o=ie(t),a=Lt(st((a=zt*o-Ft*i)*a+(a=Ft*r-It*o)*a+(a=It*i-zt*r)*a),It*r+zt*i+Ft*o);Ih+=a,jh+=a*(It+(It=r)),Wh+=a*(zt+(zt=i)),Hh+=a*(Ft+(Ft=o)),Yu(It,zt,Ft)}function lT(){zn.point=sy}function QZ(){zn.point=JZ}function ZZ(){cT(aT,sT),zn.point=sy}function JZ(e,t){aT=e,sT=t,e*=ce,t*=ce,zn.point=cT;var n=se(t);It=n*se(e),zt=n*ie(e),Ft=ie(t),Yu(It,zt,Ft)}function cT(e,t){e*=ce,t*=ce;var n=se(t),r=n*se(e),i=n*ie(e),o=ie(t),a=zt*o-Ft*i,s=Ft*r-It*o,u=It*i-zt*r,l=X1(a,s,u),c=Dt(l),f=l&&-c/l;iy.add(f*a),oy.add(f*s),ay.add(f*u),Ih+=c,jh+=c*(It+(It=r)),Wh+=c*(zt+(zt=i)),Hh+=c*(Ft+(Ft=o)),Yu(It,zt,Ft)}function eJ(e){Vu=Ih=zh=Fh=Bh=jh=Wh=Hh=0,iy=new Xe,oy=new Xe,ay=new Xe,In(e,zn);var t=+iy,n=+oy,r=+ay,i=X1(t,n,r);return i<qu&&(t=jh,n=Wh,r=Hh,Ih<le&&(t=zh,n=Fh,r=Bh),i=X1(t,n,r),i<qu)?[NaN,NaN]:[Lt(n,t)*ke,Dt(r/i)*ke]}function Ba(e){return function(){return e}}function uy(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function ly(e,t){return[be(e)>me?e+Math.round(-e/Rt)*Rt:e,t]}ly.invert=ly;function cy(e,t,n){return(e%=Rt)?t||n?uy(hT(e),dT(t,n)):hT(e):t||n?dT(t,n):ly}function fT(e){return function(t,n){return t+=e,[t>me?t-Rt:t<-me?t+Rt:t,n]}}function hT(e){var t=fT(e);return t.invert=fT(-e),t}function dT(e,t){var n=se(e),r=ie(e),i=se(t),o=ie(t);function a(s,u){var l=se(u),c=se(s)*l,f=ie(s)*l,h=ie(u),d=h*n+c*r;return[Lt(f*i-d*o,c*n-h*r),Dt(d*i+f*o)]}return a.invert=function(s,u){var l=se(u),c=se(s)*l,f=ie(s)*l,h=ie(u),d=h*i-f*o;return[Lt(f*i+h*o,c*n+d*r),Dt(d*n-c*r)]},a}function pT(e){e=cy(e[0]*ce,e[1]*ce,e.length>2?e[2]*ce:0);function t(n){return n=e(n[0]*ce,n[1]*ce),n[0]*=ke,n[1]*=ke,n}return t.invert=function(n){return n=e.invert(n[0]*ce,n[1]*ce),n[0]*=ke,n[1]*=ke,n},t}function gT(e,t,n,r,i,o){if(!!n){var a=se(t),s=ie(t),u=r*n;i==null?(i=t+r*Rt,o=t-u/2):(i=mT(a,i),o=mT(a,o),(r>0?i<o:i>o)&&(i+=r*Rt));for(var l,c=i;r>0?c>o:c<o;c-=u)l=Nh([a,-s*se(c),-s*ie(c)]),e.point(l[0],l[1])}}function mT(e,t){t=uo(t),t[0]-=e,Dh(t);var n=UM(-t[1]);return((-t[2]<0?-n:n)+Rt-le)%Rt}function tJ(){var e=Ba([0,0]),t=Ba(90),n=Ba(6),r,i,o={point:a};function a(u,l){r.push(u=i(u,l)),u[0]*=ke,u[1]*=ke}function s(){var u=e.apply(this,arguments),l=t.apply(this,arguments)*ce,c=n.apply(this,arguments)*ce;return r=[],i=cy(-u[0]*ce,-u[1]*ce,0).invert,gT(o,l,c,1),u={type:"Polygon",coordinates:[r]},r=i=null,u}return s.center=function(u){return arguments.length?(e=typeof u=="function"?u:Ba([+u[0],+u[1]]),s):e},s.radius=function(u){return arguments.length?(t=typeof u=="function"?u:Ba(+u),s):t},s.precision=function(u){return arguments.length?(n=typeof u=="function"?u:Ba(+u),s):n},s}function yT(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Le,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function qh(e,t){return be(e[0]-t[0])<le&&be(e[1]-t[1])<le}function Uh(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function vT(e,t,n,r,i){var o=[],a=[],s,u;if(e.forEach(function(p){if(!((m=p.length-1)<=0)){var m,g=p[0],y=p[m],v;if(qh(g,y)){if(!g[2]&&!y[2]){for(i.lineStart(),s=0;s<m;++s)i.point((g=p[s])[0],g[1]);i.lineEnd();return}y[0]+=2*le}o.push(v=new Uh(g,p,null,!0)),a.push(v.o=new Uh(g,null,v,!1)),o.push(v=new Uh(y,p,null,!1)),a.push(v.o=new Uh(y,null,v,!0))}}),!!o.length){for(a.sort(t),bT(o),bT(a),s=0,u=a.length;s<u;++s)a[s].e=n=!n;for(var l=o[0],c,f;;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(s=0,u=c.length;s<u;++s)i.point((f=c[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(c=h.p.z,s=c.length-1;s>=0;--s)i.point((f=c[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);i.lineEnd()}}}function bT(e){if(!!(t=e.length)){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function fy(e){return be(e[0])<=me?e[0]:wn(e[0])*((be(e[0])+me)%Rt-me)}function xT(e,t){var n=fy(t),r=t[1],i=ie(r),o=[ie(n),-se(n),0],a=0,s=0,u=new Xe;i===1?r=Fe+le:i===-1&&(r=-Fe-le);for(var l=0,c=e.length;l<c;++l)if(!!(h=(f=e[l]).length))for(var f,h,d=f[h-1],p=fy(d),m=d[1]/2+kh,g=ie(m),y=se(m),v=0;v<h;++v,p=b,g=w,y=$,d=x){var x=f[v],b=fy(x),_=x[1]/2+kh,w=ie(_),$=se(_),M=b-p,k=M>=0?1:-1,S=k*M,T=S>me,A=g*w;if(u.add(Lt(A*k*ie(S),y*$+A*se(S))),a+=T?M+k*Rt:M,T^p>=n^b>=n){var P=za(uo(d),uo(x));Dh(P);var O=za(o,P);Dh(O);var E=(T^M>=0?-1:1)*Dt(O[2]);(r>E||r===E&&(P[0]||P[1]))&&(s+=T^M>=0?1:-1)}}return(a<-le||a<le&&u<-qu)^s&1}function wT(e,t,n,r){return function(i){var o=t(i),a=yT(),s=t(a),u=!1,l,c,f,h={point:d,lineStart:m,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=x,c=[],l=[]},polygonEnd:function(){h.point=d,h.lineStart=m,h.lineEnd=g,c=Pm(c);var b=xT(l,r);c.length?(u||(i.polygonStart(),u=!0),vT(c,rJ,b,n,i)):b&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),c=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(b,_){e(b,_)&&i.point(b,_)}function p(b,_){o.point(b,_)}function m(){h.point=p,o.lineStart()}function g(){h.point=d,o.lineEnd()}function y(b,_){f.push([b,_]),s.point(b,_)}function v(){s.lineStart(),f=[]}function x(){y(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),_=a.result(),w,$=_.length,M,k,S;if(f.pop(),l.push(f),f=null,!!$){if(b&1){if(k=_[0],(M=k.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),w=0;w<M;++w)i.point((S=k[w])[0],S[1]);i.lineEnd()}return}$>1&&b&2&&_.push(_.pop().concat(_.shift())),c.push(_.filter(nJ))}}return h}}function nJ(e){return e.length>1}function rJ(e,t){return((e=e.x)[0]<0?e[1]-Fe-le:Fe-e[1])-((t=t.x)[0]<0?t[1]-Fe-le:Fe-t[1])}var hy=wT(function(){return!0},iJ,aJ,[-me,-Fe]);function iJ(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(o,a){var s=o>0?me:-me,u=be(o-t);be(u-me)<le?(e.point(t,n=(n+a)/2>0?Fe:-Fe),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(o,n),i=0):r!==s&&u>=me&&(be(t-r)<le&&(t-=r*le),be(o-s)<le&&(o-=s*le),n=oJ(t,n,o,a),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=o,n=a),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function oJ(e,t,n,r){var i,o,a=ie(e-n);return be(a)>le?Ia((ie(t)*(o=se(r))*ie(n)-ie(r)*(i=se(t))*ie(e))/(i*o*a)):(t+r)/2}function aJ(e,t,n,r){var i;if(e==null)i=n*Fe,r.point(-me,i),r.point(0,i),r.point(me,i),r.point(me,0),r.point(me,-i),r.point(0,-i),r.point(-me,-i),r.point(-me,0),r.point(-me,i);else if(be(e[0]-t[0])>le){var o=e[0]<t[0]?me:-me;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}function _T(e){var t=se(e),n=6*ce,r=t>0,i=be(t)>le;function o(c,f,h,d){gT(d,e,n,h,c,f)}function a(c,f){return se(c)*se(f)>t}function s(c){var f,h,d,p,m;return{lineStart:function(){p=d=!1,m=1},point:function(g,y){var v=[g,y],x,b=a(g,y),_=r?b?0:l(g,y):b?l(g+(g<0?me:-me),y):0;if(!f&&(p=d=b)&&c.lineStart(),b!==d&&(x=u(f,v),(!x||qh(f,x)||qh(v,x))&&(v[2]=1)),b!==d)m=0,b?(c.lineStart(),x=u(v,f),c.point(x[0],x[1])):(x=u(f,v),c.point(x[0],x[1],2),c.lineEnd()),f=x;else if(i&&f&&r^b){var w;!(_&h)&&(w=u(v,f,!0))&&(m=0,r?(c.lineStart(),c.point(w[0][0],w[0][1]),c.point(w[1][0],w[1][1]),c.lineEnd()):(c.point(w[1][0],w[1][1]),c.lineEnd(),c.lineStart(),c.point(w[0][0],w[0][1],3)))}b&&(!f||!qh(f,v))&&c.point(v[0],v[1]),f=v,d=b,h=_},lineEnd:function(){d&&c.lineEnd(),f=null},clean:function(){return m|(p&&d)<<1}}}function u(c,f,h){var d=uo(c),p=uo(f),m=[1,0,0],g=za(d,p),y=Rh(g,g),v=g[0],x=y-v*v;if(!x)return!h&&c;var b=t*y/x,_=-t*v/x,w=za(m,g),$=Lh(m,b),M=Lh(g,_);ny($,M);var k=w,S=Rh($,k),T=Rh(k,k),A=S*S-T*(Rh($,$)-1);if(!(A<0)){var P=st(A),O=Lh(k,(-S-P)/T);if(ny(O,$),O=Nh(O),!h)return O;var E=c[0],C=f[0],R=c[1],D=f[1],L;C<E&&(L=E,E=C,C=L);var F=C-E,W=be(F-me)<le,U=W||F<le;if(!W&&D<R&&(L=R,R=D,D=L),U?W?R+D>0^O[1]<(be(O[0]-E)<le?R:D):R<=O[1]&&O[1]<=D:F>me^(E<=O[0]&&O[0]<=C)){var te=Lh(k,(-S+P)/T);return ny(te,$),[O,Nh(te)]}}}function l(c,f){var h=r?e:me-e,d=0;return c<-h?d|=1:c>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return wT(a,s,o,r?[0,-e]:[-me,e-me])}function sJ(e,t,n,r,i,o){var a=e[0],s=e[1],u=t[0],l=t[1],c=0,f=1,h=u-a,d=l-s,p;if(p=n-a,!(!h&&p>0)){if(p/=h,h<0){if(p<c)return;p<f&&(f=p)}else if(h>0){if(p>f)return;p>c&&(c=p)}if(p=i-a,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>c&&(c=p)}else if(h>0){if(p<c)return;p<f&&(f=p)}if(p=r-s,!(!d&&p>0)){if(p/=d,d<0){if(p<c)return;p<f&&(f=p)}else if(d>0){if(p>f)return;p>c&&(c=p)}if(p=o-s,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>c&&(c=p)}else if(d>0){if(p<c)return;p<f&&(f=p)}return c>0&&(e[0]=a+c*h,e[1]=s+c*d),f<1&&(t[0]=a+f*h,t[1]=s+f*d),!0}}}}}var Gu=1e9,Vh=-Gu;function Yh(e,t,n,r){function i(l,c){return e<=l&&l<=n&&t<=c&&c<=r}function o(l,c,f,h){var d=0,p=0;if(l==null||(d=a(l,f))!==(p=a(c,f))||u(l,c)<0^f>0)do h.point(d===0||d===3?e:n,d>1?r:t);while((d=(d+f+4)%4)!==p);else h.point(c[0],c[1])}function a(l,c){return be(l[0]-e)<le?c>0?0:3:be(l[0]-n)<le?c>0?2:1:be(l[1]-t)<le?c>0?1:0:c>0?3:2}function s(l,c){return u(l.x,c.x)}function u(l,c){var f=a(l,1),h=a(c,1);return f!==h?f-h:f===0?c[1]-l[1]:f===1?l[0]-c[0]:f===2?l[1]-c[1]:c[0]-l[0]}return function(l){var c=l,f=yT(),h,d,p,m,g,y,v,x,b,_,w,$={point:M,lineStart:A,lineEnd:P,polygonStart:S,polygonEnd:T};function M(E,C){i(E,C)&&c.point(E,C)}function k(){for(var E=0,C=0,R=d.length;C<R;++C)for(var D=d[C],L=1,F=D.length,W=D[0],U,te,Q=W[0],J=W[1];L<F;++L)U=Q,te=J,W=D[L],Q=W[0],J=W[1],te<=r?J>r&&(Q-U)*(r-te)>(J-te)*(e-U)&&++E:J<=r&&(Q-U)*(r-te)<(J-te)*(e-U)&&--E;return E}function S(){c=f,h=[],d=[],w=!0}function T(){var E=k(),C=w&&E,R=(h=Pm(h)).length;(C||R)&&(l.polygonStart(),C&&(l.lineStart(),o(null,null,1,l),l.lineEnd()),R&&vT(h,s,E,o,l),l.polygonEnd()),c=l,h=d=p=null}function A(){$.point=O,d&&d.push(p=[]),_=!0,b=!1,v=x=NaN}function P(){h&&(O(m,g),y&&b&&f.rejoin(),h.push(f.result())),$.point=M,b&&c.lineEnd()}function O(E,C){var R=i(E,C);if(d&&p.push([E,C]),_)m=E,g=C,y=R,_=!1,R&&(c.lineStart(),c.point(E,C));else if(R&&b)c.point(E,C);else{var D=[v=Math.max(Vh,Math.min(Gu,v)),x=Math.max(Vh,Math.min(Gu,x))],L=[E=Math.max(Vh,Math.min(Gu,E)),C=Math.max(Vh,Math.min(Gu,C))];sJ(D,L,e,t,n,r)?(b||(c.lineStart(),c.point(D[0],D[1])),c.point(L[0],L[1]),R||c.lineEnd(),w=!1):R&&(c.lineStart(),c.point(E,C),w=!1)}v=E,x=C,b=R}return $}}function uJ(){var e=0,t=0,n=960,r=500,i,o,a;return a={stream:function(s){return i&&o===s?i:i=Yh(e,t,n,r)(o=s)},extent:function(s){return arguments.length?(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1],i=o=null,a):[[e,t],[n,r]]}}}var dy,py,Gh,Xh,ja={sphere:Le,point:Le,lineStart:lJ,lineEnd:Le,polygonStart:Le,polygonEnd:Le};function lJ(){ja.point=fJ,ja.lineEnd=cJ}function cJ(){ja.point=ja.lineEnd=Le}function fJ(e,t){e*=ce,t*=ce,py=e,Gh=ie(t),Xh=se(t),ja.point=hJ}function hJ(e,t){e*=ce,t*=ce;var n=ie(t),r=se(t),i=be(e-py),o=se(i),a=ie(i),s=r*a,u=Xh*n-Gh*r*o,l=Gh*n+Xh*r*o;dy.add(Lt(st(s*s+u*u),l)),py=e,Gh=n,Xh=r}function $T(e){return dy=new Xe,In(e,ja),+dy}var gy=[null,null],dJ={type:"LineString",coordinates:gy};function Kh(e,t){return gy[0]=e,gy[1]=t,$T(dJ)}var ST={Feature:function(e,t){return Qh(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Qh(n[r].geometry,t))return!0;return!1}},MT={Sphere:function(){return!0},Point:function(e,t){return TT(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(TT(n[r],t))return!0;return!1},LineString:function(e,t){return kT(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(kT(n[r],t))return!0;return!1},Polygon:function(e,t){return OT(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(OT(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Qh(n[r],t))return!0;return!1}};function Qh(e,t){return e&&MT.hasOwnProperty(e.type)?MT[e.type](e,t):!1}function TT(e,t){return Kh(e,t)===0}function kT(e,t){for(var n,r,i,o=0,a=e.length;o<a;o++){if(r=Kh(e[o],t),r===0||o>0&&(i=Kh(e[o],e[o-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<qu*i))return!0;n=r}return!1}function OT(e,t){return!!xT(e.map(pJ),CT(t))}function pJ(e){return e=e.map(CT),e.pop(),e}function CT(e){return[e[0]*ce,e[1]*ce]}function gJ(e,t){return(e&&ST.hasOwnProperty(e.type)?ST[e.type]:Qh)(e,t)}function PT(e,t,n){var r=ri(e,t-le,n).concat(t);return function(i){return r.map(function(o){return[i,o]})}}function ET(e,t,n){var r=ri(e,t-le,n).concat(t);return function(i){return r.map(function(o){return[o,i]})}}function AT(){var e,t,n,r,i,o,a,s,u=10,l=u,c=90,f=360,h,d,p,m,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return ri(Oh(r/c)*c,n,c).map(p).concat(ri(Oh(s/f)*f,a,f).map(m)).concat(ri(Oh(t/u)*u,e,u).filter(function(x){return be(x%c)>le}).map(h)).concat(ri(Oh(o/l)*l,i,l).filter(function(x){return be(x%f)>le}).map(d))}return y.lines=function(){return v().map(function(x){return{type:"LineString",coordinates:x}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(m(a).slice(1),p(n).reverse().slice(1),m(s).reverse().slice(1))]}},y.extent=function(x){return arguments.length?y.extentMajor(x).extentMinor(x):y.extentMinor()},y.extentMajor=function(x){return arguments.length?(r=+x[0][0],n=+x[1][0],s=+x[0][1],a=+x[1][1],r>n&&(x=r,r=n,n=x),s>a&&(x=s,s=a,a=x),y.precision(g)):[[r,s],[n,a]]},y.extentMinor=function(x){return arguments.length?(t=+x[0][0],e=+x[1][0],o=+x[0][1],i=+x[1][1],t>e&&(x=t,t=e,e=x),o>i&&(x=o,o=i,i=x),y.precision(g)):[[t,o],[e,i]]},y.step=function(x){return arguments.length?y.stepMajor(x).stepMinor(x):y.stepMinor()},y.stepMajor=function(x){return arguments.length?(c=+x[0],f=+x[1],y):[c,f]},y.stepMinor=function(x){return arguments.length?(u=+x[0],l=+x[1],y):[u,l]},y.precision=function(x){return arguments.length?(g=+x,h=PT(o,i,90),d=ET(t,e,g),p=PT(s,a,90),m=ET(r,n,g),y):g},y.extentMajor([[-180,-90+le],[180,90-le]]).extentMinor([[-180,-80-le],[180,80+le]])}function mJ(){return AT()()}function yJ(e,t){var n=e[0]*ce,r=e[1]*ce,i=t[0]*ce,o=t[1]*ce,a=se(r),s=ie(r),u=se(o),l=ie(o),c=a*se(n),f=a*ie(n),h=u*se(i),d=u*ie(i),p=2*Dt(st(VM(o-r)+a*u*VM(i-n))),m=ie(p),g=p?function(y){var v=ie(y*=p)/m,x=ie(p-y)/m,b=x*c+v*h,_=x*f+v*d,w=x*s+v*l;return[Lt(_,b)*ke,Lt(w,st(b*b+_*_))*ke]}:function(){return[n*ke,r*ke]};return g.distance=p,g}var Xu=e=>e,my=new Xe,yy=new Xe,NT,RT,vy,by,ci={point:Le,lineStart:Le,lineEnd:Le,polygonStart:function(){ci.lineStart=vJ,ci.lineEnd=xJ},polygonEnd:function(){ci.lineStart=ci.lineEnd=ci.point=Le,my.add(be(yy)),yy=new Xe},result:function(){var e=my/2;return my=new Xe,e}};function vJ(){ci.point=bJ}function bJ(e,t){ci.point=LT,NT=vy=e,RT=by=t}function LT(e,t){yy.add(by*e-vy*t),vy=e,by=t}function xJ(){LT(NT,RT)}var DT=ci,Wa=1/0,Zh=Wa,Ku=-Wa,Jh=Ku,wJ={point:_J,lineStart:Le,lineEnd:Le,polygonStart:Le,polygonEnd:Le,result:function(){var e=[[Wa,Zh],[Ku,Jh]];return Ku=Jh=-(Zh=Wa=1/0),e}};function _J(e,t){e<Wa&&(Wa=e),e>Ku&&(Ku=e),t<Zh&&(Zh=t),t>Jh&&(Jh=t)}var ed=wJ,xy=0,wy=0,Qu=0,td=0,nd=0,Ha=0,_y=0,$y=0,Zu=0,IT,zT,hr,dr,Fn={point:co,lineStart:FT,lineEnd:BT,polygonStart:function(){Fn.lineStart=MJ,Fn.lineEnd=TJ},polygonEnd:function(){Fn.point=co,Fn.lineStart=FT,Fn.lineEnd=BT},result:function(){var e=Zu?[_y/Zu,$y/Zu]:Ha?[td/Ha,nd/Ha]:Qu?[xy/Qu,wy/Qu]:[NaN,NaN];return xy=wy=Qu=td=nd=Ha=_y=$y=Zu=0,e}};function co(e,t){xy+=e,wy+=t,++Qu}function FT(){Fn.point=$J}function $J(e,t){Fn.point=SJ,co(hr=e,dr=t)}function SJ(e,t){var n=e-hr,r=t-dr,i=st(n*n+r*r);td+=i*(hr+e)/2,nd+=i*(dr+t)/2,Ha+=i,co(hr=e,dr=t)}function BT(){Fn.point=co}function MJ(){Fn.point=kJ}function TJ(){jT(IT,zT)}function kJ(e,t){Fn.point=jT,co(IT=hr=e,zT=dr=t)}function jT(e,t){var n=e-hr,r=t-dr,i=st(n*n+r*r);td+=i*(hr+e)/2,nd+=i*(dr+t)/2,Ha+=i,i=dr*e-hr*t,_y+=i*(hr+e),$y+=i*(dr+t),Zu+=i*3,co(hr=e,dr=t)}var WT=Fn;function HT(e){this._context=e}HT.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Rt);break}}},result:Le};var Sy=new Xe,My,qT,UT,Ju,el,rd={point:Le,lineStart:function(){rd.point=OJ},lineEnd:function(){My&&VT(qT,UT),rd.point=Le},polygonStart:function(){My=!0},polygonEnd:function(){My=null},result:function(){var e=+Sy;return Sy=new Xe,e}};function OJ(e,t){rd.point=VT,qT=Ju=e,UT=el=t}function VT(e,t){Ju-=e,el-=t,Sy.add(st(Ju*Ju+el*el)),Ju=e,el=t}var YT=rd;function GT(){this._string=[]}GT.prototype={_radius:4.5,_circle:XT(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._string.push("M",e,",",t),this._point=1;break}case 1:{this._string.push("L",e,",",t);break}default:{this._circle==null&&(this._circle=XT(this._radius)),this._string.push("M",e,",",t,this._circle);break}}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}else return null}};function XT(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function CJ(e,t){var n=4.5,r,i;function o(a){return a&&(typeof n=="function"&&i.pointRadius(+n.apply(this,arguments)),In(a,r(i))),i.result()}return o.area=function(a){return In(a,r(DT)),DT.result()},o.measure=function(a){return In(a,r(YT)),YT.result()},o.bounds=function(a){return In(a,r(ed)),ed.result()},o.centroid=function(a){return In(a,r(WT)),WT.result()},o.projection=function(a){return arguments.length?(r=a==null?(e=null,Xu):(e=a).stream,o):e},o.context=function(a){return arguments.length?(i=a==null?(t=null,new GT):new HT(t=a),typeof n!="function"&&i.pointRadius(n),o):t},o.pointRadius=function(a){return arguments.length?(n=typeof a=="function"?a:(i.pointRadius(+a),+a),o):n},o.projection(e).context(t)}function PJ(e){return{stream:tl(e)}}function tl(e){return function(t){var n=new Ty;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Ty(){}Ty.prototype={constructor:Ty,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function ky(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),In(n,e.stream(ed)),t(ed.result()),r!=null&&e.clipExtent(r),e}function id(e,t,n){return ky(e,function(r){var i=t[1][0]-t[0][0],o=t[1][1]-t[0][1],a=Math.min(i/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),s=+t[0][0]+(i-a*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(o-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([s,u])},n)}function Oy(e,t,n){return id(e,[[0,0],t],n)}function Cy(e,t,n){return ky(e,function(r){var i=+t,o=i/(r[1][0]-r[0][0]),a=(i-o*(r[1][0]+r[0][0]))/2,s=-o*r[0][1];e.scale(150*o).translate([a,s])},n)}function Py(e,t,n){return ky(e,function(r){var i=+t,o=i/(r[1][1]-r[0][1]),a=-o*r[0][0],s=(i-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([a,s])},n)}var KT=16,EJ=se(30*ce);function QT(e,t){return+t?NJ(e,t):AJ(e)}function AJ(e){return tl({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function NJ(e,t){function n(r,i,o,a,s,u,l,c,f,h,d,p,m,g){var y=l-r,v=c-i,x=y*y+v*v;if(x>4*t&&m--){var b=a+h,_=s+d,w=u+p,$=st(b*b+_*_+w*w),M=Dt(w/=$),k=be(be(w)-1)<le||be(o-f)<le?(o+f)/2:Lt(_,b),S=e(k,M),T=S[0],A=S[1],P=T-r,O=A-i,E=v*P-y*O;(E*E/x>t||be((y*P+v*O)/x-.5)>.3||a*h+s*d+u*p<EJ)&&(n(r,i,o,a,s,u,T,A,k,b/=$,_/=$,w,m,g),g.point(T,A),n(T,A,k,b,_,w,l,c,f,h,d,p,m,g))}}return function(r){var i,o,a,s,u,l,c,f,h,d,p,m,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=_},polygonEnd:function(){r.polygonEnd(),g.lineStart=v}};function y(M,k){M=e(M,k),r.point(M[0],M[1])}function v(){f=NaN,g.point=x,r.lineStart()}function x(M,k){var S=uo([M,k]),T=e(M,k);n(f,h,c,d,p,m,f=T[0],h=T[1],c=M,d=S[0],p=S[1],m=S[2],KT,r),r.point(f,h)}function b(){g.point=y,r.lineEnd()}function _(){v(),g.point=w,g.lineEnd=$}function w(M,k){x(i=M,k),o=f,a=h,s=d,u=p,l=m,g.point=x}function $(){n(f,h,c,d,p,m,o,a,i,s,u,l,KT,r),g.lineEnd=b,b()}return g}}var RJ=tl({point:function(e,t){this.stream.point(e*ce,t*ce)}});function LJ(e){return tl({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function DJ(e,t,n,r,i){function o(a,s){return a*=r,s*=i,[t+e*a,n-e*s]}return o.invert=function(a,s){return[(a-t)/e*r,(n-s)/e*i]},o}function ZT(e,t,n,r,i,o){if(!o)return DJ(e,t,n,r,i);var a=se(o),s=ie(o),u=a*e,l=s*e,c=a/e,f=s/e,h=(s*n-a*t)/e,d=(s*t+a*n)/e;function p(m,g){return m*=r,g*=i,[u*m-l*g+t,n-l*m-u*g]}return p.invert=function(m,g){return[r*(c*m-f*g+h),i*(d-f*m-c*g)]},p}function pr(e){return Ey(function(){return e})()}function Ey(e){var t,n=150,r=480,i=250,o=0,a=0,s=0,u=0,l=0,c,f=0,h=1,d=1,p=null,m=hy,g=null,y,v,x,b=Xu,_=.5,w,$,M,k,S;function T(E){return M(E[0]*ce,E[1]*ce)}function A(E){return E=M.invert(E[0],E[1]),E&&[E[0]*ke,E[1]*ke]}T.stream=function(E){return k&&S===E?k:k=RJ(LJ(c)(m(w(b(S=E)))))},T.preclip=function(E){return arguments.length?(m=E,p=void 0,O()):m},T.postclip=function(E){return arguments.length?(b=E,g=y=v=x=null,O()):b},T.clipAngle=function(E){return arguments.length?(m=+E?_T(p=E*ce):(p=null,hy),O()):p*ke},T.clipExtent=function(E){return arguments.length?(b=E==null?(g=y=v=x=null,Xu):Yh(g=+E[0][0],y=+E[0][1],v=+E[1][0],x=+E[1][1]),O()):g==null?null:[[g,y],[v,x]]},T.scale=function(E){return arguments.length?(n=+E,P()):n},T.translate=function(E){return arguments.length?(r=+E[0],i=+E[1],P()):[r,i]},T.center=function(E){return arguments.length?(o=E[0]%360*ce,a=E[1]%360*ce,P()):[o*ke,a*ke]},T.rotate=function(E){return arguments.length?(s=E[0]%360*ce,u=E[1]%360*ce,l=E.length>2?E[2]%360*ce:0,P()):[s*ke,u*ke,l*ke]},T.angle=function(E){return arguments.length?(f=E%360*ce,P()):f*ke},T.reflectX=function(E){return arguments.length?(h=E?-1:1,P()):h<0},T.reflectY=function(E){return arguments.length?(d=E?-1:1,P()):d<0},T.precision=function(E){return arguments.length?(w=QT($,_=E*E),O()):st(_)},T.fitExtent=function(E,C){return id(T,E,C)},T.fitSize=function(E,C){return Oy(T,E,C)},T.fitWidth=function(E,C){return Cy(T,E,C)},T.fitHeight=function(E,C){return Py(T,E,C)};function P(){var E=ZT(n,0,0,h,d,f).apply(null,t(o,a)),C=ZT(n,r-E[0],i-E[1],h,d,f);return c=cy(s,u,l),$=uy(t,C),M=uy(c,$),w=QT($,_),O()}function O(){return k=S=null,T}return function(){return t=e.apply(this,arguments),T.invert=t.invert&&A,P()}}function Ay(e){var t=0,n=me/3,r=Ey(e),i=r(t,n);return i.parallels=function(o){return arguments.length?r(t=o[0]*ce,n=o[1]*ce):[t*ke,n*ke]},i}function IJ(e){var t=se(e);function n(r,i){return[r*t,ie(i)/t]}return n.invert=function(r,i){return[r/t,Dt(i*t)]},n}function JT(e,t){var n=ie(e),r=(n+ie(t))/2;if(be(r)<le)return IJ(e);var i=1+n*(2*r-n),o=st(i)/r;function a(s,u){var l=st(i-2*r*ie(u))/r;return[l*ie(s*=r),o-l*se(s)]}return a.invert=function(s,u){var l=o-u,c=Lt(s,be(l))*wn(l);return l*r<0&&(c-=me*wn(s)*wn(l)),[c/r,Dt((i-(s*s+l*l)*r*r)/(2*r))]},a}function od(){return Ay(JT).scale(155.424).center([0,33.6442])}function e4(){return od().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function zJ(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function FJ(){var e,t,n=e4(),r,i=od().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,a=od().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,u,l={point:function(h,d){u=[h,d]}};function c(h){var d=h[0],p=h[1];return u=null,r.point(d,p),u||(o.point(d,p),u)||(s.point(d,p),u)}c.invert=function(h){var d=n.scale(),p=n.translate(),m=(h[0]-p[0])/d,g=(h[1]-p[1])/d;return(g>=.12&&g<.234&&m>=-.425&&m<-.214?i:g>=.166&&g<.234&&m>=-.214&&m<-.115?a:n).invert(h)},c.stream=function(h){return e&&t===h?e:e=zJ([n.stream(t=h),i.stream(h),a.stream(h)])},c.precision=function(h){return arguments.length?(n.precision(h),i.precision(h),a.precision(h),f()):n.precision()},c.scale=function(h){return arguments.length?(n.scale(h),i.scale(h*.35),a.scale(h),c.translate(n.translate())):n.scale()},c.translate=function(h){if(!arguments.length)return n.translate();var d=n.scale(),p=+h[0],m=+h[1];return r=n.translate(h).clipExtent([[p-.455*d,m-.238*d],[p+.455*d,m+.238*d]]).stream(l),o=i.translate([p-.307*d,m+.201*d]).clipExtent([[p-.425*d+le,m+.12*d+le],[p-.214*d-le,m+.234*d-le]]).stream(l),s=a.translate([p-.205*d,m+.212*d]).clipExtent([[p-.214*d+le,m+.166*d+le],[p-.115*d-le,m+.234*d-le]]).stream(l),f()},c.fitExtent=function(h,d){return id(c,h,d)},c.fitSize=function(h,d){return Oy(c,h,d)},c.fitWidth=function(h,d){return Cy(c,h,d)},c.fitHeight=function(h,d){return Py(c,h,d)};function f(){return e=t=null,c}return c.scale(1070)}function t4(e){return function(t,n){var r=se(t),i=se(n),o=e(r*i);return o===1/0?[2,0]:[o*i*ie(t),o*ie(n)]}}function nl(e){return function(t,n){var r=st(t*t+n*n),i=e(r),o=ie(i),a=se(i);return[Lt(t*o,r*a),Dt(r&&n*o/r)]}}var Ny=t4(function(e){return st(2/(1+e))});Ny.invert=nl(function(e){return 2*Dt(e/2)});function BJ(){return pr(Ny).scale(124.75).clipAngle(180-.001)}var Ry=t4(function(e){return(e=UM(e))&&e/ie(e)});Ry.invert=nl(function(e){return e});function jJ(){return pr(Ry).scale(79.4188).clipAngle(180-.001)}function rl(e,t){return[e,Ch(Q1((Fe+t)/2))]}rl.invert=function(e,t){return[e,2*Ia(qM(t))-Fe]};function WJ(){return n4(rl).scale(961/Rt)}function n4(e){var t=pr(e),n=t.center,r=t.scale,i=t.translate,o=t.clipExtent,a=null,s,u,l;t.scale=function(f){return arguments.length?(r(f),c()):r()},t.translate=function(f){return arguments.length?(i(f),c()):i()},t.center=function(f){return arguments.length?(n(f),c()):n()},t.clipExtent=function(f){return arguments.length?(f==null?a=s=u=l=null:(a=+f[0][0],s=+f[0][1],u=+f[1][0],l=+f[1][1]),c()):a==null?null:[[a,s],[u,l]]};function c(){var f=me*r(),h=t(pT(t.rotate()).invert([0,0]));return o(a==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===rl?[[Math.max(h[0]-f,a),s],[Math.min(h[0]+f,u),l]]:[[a,Math.max(h[1]-f,s)],[u,Math.min(h[1]+f,l)]])}return c()}function ad(e){return Q1((Fe+e)/2)}function r4(e,t){var n=se(e),r=e===t?ie(e):Ch(n/se(t))/Ch(ad(t)/ad(e)),i=n*K1(ad(e),r)/r;if(!r)return rl;function o(a,s){i>0?s<-Fe+le&&(s=-Fe+le):s>Fe-le&&(s=Fe-le);var u=i/K1(ad(s),r);return[u*ie(r*a),i-u*se(r*a)]}return o.invert=function(a,s){var u=i-s,l=wn(r)*st(a*a+u*u),c=Lt(a,be(u))*wn(u);return u*r<0&&(c-=me*wn(a)*wn(u)),[c/r,2*Ia(K1(i/l,1/r))-Fe]},o}function HJ(){return Ay(r4).scale(109.5).parallels([30,30])}function il(e,t){return[e,t]}il.invert=il;function qJ(){return pr(il).scale(152.63)}function i4(e,t){var n=se(e),r=e===t?ie(e):(n-se(t))/(t-e),i=n/r+e;if(be(r)<le)return il;function o(a,s){var u=i-s,l=r*a;return[u*ie(l),i-u*se(l)]}return o.invert=function(a,s){var u=i-s,l=Lt(a,be(u))*wn(u);return u*r<0&&(l-=me*wn(a)*wn(u)),[l/r,i-wn(r)*st(a*a+u*u)]},o}function UJ(){return Ay(i4).scale(131.154).center([0,13.9389])}var ol=1.340264,al=-.081106,sl=893e-6,ul=.003796,sd=st(3)/2,VJ=12;function Ly(e,t){var n=Dt(sd*ie(t)),r=n*n,i=r*r*r;return[e*se(n)/(sd*(ol+3*al*r+i*(7*sl+9*ul*r))),n*(ol+al*r+i*(sl+ul*r))]}Ly.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,o=0,a,s,u;o<VJ&&(s=n*(ol+al*r+i*(sl+ul*r))-t,u=ol+3*al*r+i*(7*sl+9*ul*r),n-=a=s/u,r=n*n,i=r*r*r,!(be(a)<qu));++o);return[sd*e*(ol+3*al*r+i*(7*sl+9*ul*r))/se(n),Dt(ie(n)/sd)]};function YJ(){return pr(Ly).scale(177.158)}function Dy(e,t){var n=se(t),r=se(e)*n;return[n*ie(e)/r,ie(t)/r]}Dy.invert=nl(Ia);function GJ(){return pr(Dy).scale(144.049).clipAngle(60)}function XJ(){var e=1,t=0,n=0,r=1,i=1,o=0,a,s,u=null,l,c,f,h=1,d=1,p=tl({point:function(b,_){var w=x([b,_]);this.stream.point(w[0],w[1])}}),m=Xu,g,y;function v(){return h=e*r,d=e*i,g=y=null,x}function x(b){var _=b[0]*h,w=b[1]*d;if(o){var $=w*a-_*s;_=_*a+w*s,w=$}return[_+t,w+n]}return x.invert=function(b){var _=b[0]-t,w=b[1]-n;if(o){var $=w*a+_*s;_=_*a-w*s,w=$}return[_/h,w/d]},x.stream=function(b){return g&&y===b?g:g=p(m(y=b))},x.postclip=function(b){return arguments.length?(m=b,u=l=c=f=null,v()):m},x.clipExtent=function(b){return arguments.length?(m=b==null?(u=l=c=f=null,Xu):Yh(u=+b[0][0],l=+b[0][1],c=+b[1][0],f=+b[1][1]),v()):u==null?null:[[u,l],[c,f]]},x.scale=function(b){return arguments.length?(e=+b,v()):e},x.translate=function(b){return arguments.length?(t=+b[0],n=+b[1],v()):[t,n]},x.angle=function(b){return arguments.length?(o=b%360*ce,s=ie(o),a=se(o),v()):o*ke},x.reflectX=function(b){return arguments.length?(r=b?-1:1,v()):r<0},x.reflectY=function(b){return arguments.length?(i=b?-1:1,v()):i<0},x.fitExtent=function(b,_){return id(x,b,_)},x.fitSize=function(b,_){return Oy(x,b,_)},x.fitWidth=function(b,_){return Cy(x,b,_)},x.fitHeight=function(b,_){return Py(x,b,_)},x}function Iy(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}Iy.invert=function(e,t){var n=t,r=25,i;do{var o=n*n,a=o*o;n-=i=(n*(1.007226+o*(.015085+a*(-.044475+.028874*o-.005916*a)))-t)/(1.007226+o*(.015085*3+a*(-.044475*7+.028874*9*o-.005916*11*a)))}while(be(i)>le&&--r>0);return[e/(.8707+(o=n*n)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),n]};function KJ(){return pr(Iy).scale(175.295)}function zy(e,t){return[se(t)*ie(e),ie(t)]}zy.invert=nl(Dt);function QJ(){return pr(zy).scale(249.5).clipAngle(90+le)}function Fy(e,t){var n=se(t),r=1+se(e)*n;return[n*ie(e)/r,ie(t)/r]}Fy.invert=nl(function(e){return 2*Ia(e)});function ZJ(){return pr(Fy).scale(250).clipAngle(142)}function By(e,t){return[Ch(Q1((Fe+t)/2)),-e]}By.invert=function(e,t){return[-t,2*Ia(qM(e))-Fe]};function JJ(){var e=n4(By),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function eee(e,t){return e.parent===t.parent?1:2}function tee(e){return e.reduce(nee,0)/e.length}function nee(e,t){return e+t.x}function ree(e){return 1+e.reduce(iee,0)}function iee(e,t){return Math.max(e,t.y)}function oee(e){for(var t;t=e.children;)e=t[0];return e}function aee(e){for(var t;t=e.children;)e=t[t.length-1];return e}function see(){var e=eee,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(h){var d=h.children;d?(h.x=tee(d),h.y=ree(d)):(h.x=a?s+=e(h,a):0,h.y=0,a=h)});var u=oee(o),l=aee(o),c=u.x-e(u,l)/2,f=l.x+e(l,u)/2;return o.eachAfter(r?function(h){h.x=(h.x-o.x)*t,h.y=(o.y-h.y)*n}:function(h){h.x=(h.x-c)/(f-c)*t,h.y=(1-(o.y?h.y/o.y:1))*n})}return i.separation=function(o){return arguments.length?(e=o,i):e},i.size=function(o){return arguments.length?(r=!1,t=+o[0],n=+o[1],i):r?null:[t,n]},i.nodeSize=function(o){return arguments.length?(r=!0,t=+o[0],n=+o[1],i):r?[t,n]:null},i}function uee(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function lee(){return this.eachAfter(uee)}function cee(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function fee(e,t){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function hee(e,t){for(var n=this,r=[n],i=[],o,a,s,u=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a<s;++a)r.push(o[a]);for(;n=i.pop();)e.call(t,n,++u,this);return this}function dee(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function pee(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function gee(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function mee(e){for(var t=this,n=yee(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function yee(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function vee(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function bee(){return Array.from(this)}function xee(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function wee(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*_ee(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function jy(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Mee)):t===void 0&&(t=See);for(var n=new qa(e),r,i=[n],o,a,s,u;r=i.pop();)if((a=t(r.data))&&(u=(a=Array.from(a)).length))for(r.children=a,s=u-1;s>=0;--s)i.push(o=a[s]=new qa(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(o4)}function $ee(){return jy(this).eachBefore(Tee)}function See(e){return e.children}function Mee(e){return Array.isArray(e)?e[1]:null}function Tee(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function o4(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function qa(e){this.data=e,this.depth=this.height=0,this.parent=null}qa.prototype=jy.prototype={constructor:qa,count:lee,each:cee,eachAfter:hee,eachBefore:fee,find:dee,sum:pee,sort:gee,path:mee,ancestors:vee,descendants:bee,leaves:xee,links:wee,copy:$ee,[Symbol.iterator]:_ee};function kee(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Oee(e){for(var t=e.length,n,r;t;)r=Math.random()*t--|0,n=e[t],e[t]=e[r],e[r]=n;return e}function a4(e){for(var t=0,n=(e=Oee(Array.from(e))).length,r=[],i,o;t<n;)i=e[t],o&&s4(o,i)?++t:(o=Pee(r=Cee(r,i)),t=0);return o}function Cee(e,t){var n,r;if(Wy(t,e))return[t];for(n=0;n<e.length;++n)if(ud(t,e[n])&&Wy(ll(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(ud(ll(e[n],e[r]),t)&&ud(ll(e[n],t),e[r])&&ud(ll(e[r],t),e[n])&&Wy(u4(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function ud(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function s4(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Wy(e,t){for(var n=0;n<t.length;++n)if(!s4(e,t[n]))return!1;return!0}function Pee(e){switch(e.length){case 1:return Eee(e[0]);case 2:return ll(e[0],e[1]);case 3:return u4(e[0],e[1],e[2])}}function Eee(e){return{x:e.x,y:e.y,r:e.r}}function ll(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+o+u/f*c)/2,y:(r+a+l/f*c)/2,r:(f+i+s)/2}}function u4(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,f=n.r,h=r-a,d=r-l,p=i-s,m=i-c,g=u-o,y=f-o,v=r*r+i*i-o*o,x=v-a*a-s*s+u*u,b=v-l*l-c*c+f*f,_=d*p-h*m,w=(p*b-m*x)/(_*2)-r,$=(m*g-p*y)/_,M=(d*x-h*b)/(_*2)-i,k=(h*y-d*g)/_,S=$*$+k*k-1,T=2*(o+w*$+M*k),A=w*w+M*M-o*o,P=-(S?(T+Math.sqrt(T*T-4*S*A))/(2*S):A/T);return{x:r+w+$*P,y:i+M+k*P,r:P}}function l4(e,t,n){var r=e.x-t.x,i,o,a=e.y-t.y,s,u,l=r*r+a*a;l?(o=t.r+n.r,o*=o,u=e.r+n.r,u*=u,o>u?(i=(l+u-o)/(2*l),s=Math.sqrt(Math.max(0,u/l-i*i)),n.x=e.x-i*r-s*a,n.y=e.y-i*a+s*r):(i=(l+o-u)/(2*l),s=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x+i*r-s*a,n.y=t.y+i*a+s*r)):(n.x=t.x+n.r,n.y=t.y)}function c4(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function f4(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function ld(e){this._=e,this.next=null,this.previous=null}function h4(e){if(!(i=(e=kee(e)).length))return 0;var t,n,r,i,o,a,s,u,l,c,f;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;l4(n,t,r=e[2]),t=new ld(t),n=new ld(n),r=new ld(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){l4(t._,n._,r=e[s]),r=new ld(r),u=n.next,l=t.previous,c=n._.r,f=t._.r;do if(c<=f){if(c4(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(c4(l._,r._)){t=l,t.next=n,n.previous=t,--s;continue e}f+=l._.r,l=l.previous}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=f4(t);(r=r.next)!==n;)(a=f4(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=a4(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Aee(e){return h4(e),e}function Nee(e){return e==null?null:cd(e)}function cd(e){if(typeof e!="function")throw new Error;return e}function fo(){return 0}function Ua(e){return function(){return e}}function Ree(e){return Math.sqrt(e.value)}function Lee(){var e=null,t=1,n=1,r=fo;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(d4(e)).eachAfter(Hy(r,.5)).eachBefore(p4(1)):o.eachBefore(d4(Ree)).eachAfter(Hy(fo,1)).eachAfter(Hy(r,o.r/Math.min(t,n))).eachBefore(p4(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Nee(o),i):e},i.size=function(o){return arguments.length?(t=+o[0],n=+o[1],i):[t,n]},i.padding=function(o){return arguments.length?(r=typeof o=="function"?o:Ua(+o),i):r},i}function d4(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Hy(e,t){return function(n){if(r=n.children){var r,i,o=r.length,a=e(n)*t||0,s;if(a)for(i=0;i<o;++i)r[i].r+=a;if(s=h4(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function p4(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function g4(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function cl(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(r-t)/e.value;++s<u;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*l}function Dee(){var e=1,t=1,n=0,r=!1;function i(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/s,a.eachBefore(o(t,s)),r&&a.eachBefore(g4),a}function o(a,s){return function(u){u.children&&cl(u,u.x0,a*(u.depth+1)/s,u.x1,a*(u.depth+2)/s);var l=u.x0,c=u.y0,f=u.x1-n,h=u.y1-n;f<l&&(l=f=(l+f)/2),h<c&&(c=h=(c+h)/2),u.x0=l,u.y0=c,u.x1=f,u.y1=h}}return i.round=function(a){return arguments.length?(r=!!a,i):r},i.size=function(a){return arguments.length?(e=+a[0],t=+a[1],i):[e,t]},i.padding=function(a){return arguments.length?(n=+a,i):n},i}var Iee={depth:-1},m4={};function zee(e){return e.id}function Fee(e){return e.parentId}function Bee(){var e=zee,t=Fee;function n(r){var i=Array.from(r),o=i.length,a,s,u,l,c,f,h,d=new Map;for(s=0;s<o;++s)a=i[s],c=i[s]=new qa(a),(f=e(a,s,r))!=null&&(f+="")&&(h=c.id=f,d.set(h,d.has(h)?m4:c)),(f=t(a,s,r))!=null&&(f+="")&&(c.parent=f);for(s=0;s<o;++s)if(c=i[s],f=c.parent){if(l=d.get(f),!l)throw new Error("missing: "+f);if(l===m4)throw new Error("ambiguous: "+f);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(u)throw new Error("multiple roots");u=c}if(!u)throw new Error("no root");if(u.parent=Iee,u.eachBefore(function(p){p.depth=p.parent.depth+1,--o}).eachBefore(o4),u.parent=null,o>0)throw new Error("cycle");return u}return n.id=function(r){return arguments.length?(e=cd(r),n):e},n.parentId=function(r){return arguments.length?(t=cd(r),n):t},n}function jee(e,t){return e.parent===t.parent?1:2}function qy(e){var t=e.children;return t?t[0]:e.t}function Uy(e){var t=e.children;return t?t[t.length-1]:e.t}function Wee(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Hee(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function qee(e,t,n){return e.a.parent===t.parent?e.a:n}function fd(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}fd.prototype=Object.create(qa.prototype);function Uee(e){for(var t=new fd(e,0),n,r=[t],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new fd(o[a],a)),i.parent=n;return(t.parent=new fd(null,0)).children=[t],t}function Vee(){var e=jee,t=1,n=1,r=null;function i(l){var c=Uee(l);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)l.eachBefore(u);else{var f=l,h=l,d=l;l.eachBefore(function(v){v.x<f.x&&(f=v),v.x>h.x&&(h=v),v.depth>d.depth&&(d=v)});var p=f===h?1:e(f,h)/2,m=p-f.x,g=t/(h.x+p+m),y=n/(d.depth||1);l.eachBefore(function(v){v.x=(v.x+m)*g,v.y=v.depth*y})}return l}function o(l){var c=l.children,f=l.parent.children,h=l.i?f[l.i-1]:null;if(c){Hee(l);var d=(c[0].z+c[c.length-1].z)/2;h?(l.z=h.z+e(l._,h._),l.m=l.z-d):l.z=d}else h&&(l.z=h.z+e(l._,h._));l.parent.A=s(l,h,l.parent.A||f[0])}function a(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,c,f){if(c){for(var h=l,d=l,p=c,m=h.parent.children[0],g=h.m,y=d.m,v=p.m,x=m.m,b;p=Uy(p),h=qy(h),p&&h;)m=qy(m),d=Uy(d),d.a=l,b=p.z+v-h.z-g+e(p._,h._),b>0&&(Wee(qee(p,l,f),l,b),g+=b,y+=b),v+=p.m,g+=h.m,x+=m.m,y+=d.m;p&&!Uy(d)&&(d.t=p,d.m+=v-y),h&&!qy(m)&&(m.t=h,m.m+=g-x,f=l)}return f}function u(l){l.x*=t,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(e=l,i):e},i.size=function(l){return arguments.length?(r=!1,t=+l[0],n=+l[1],i):r?null:[t,n]},i.nodeSize=function(l){return arguments.length?(r=!0,t=+l[0],n=+l[1],i):r?[t,n]:null},i}function hd(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(i-n)/e.value;++s<u;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*l}var y4=(1+Math.sqrt(5))/2;function v4(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,f=0,h=s.length,d,p,m=t.value,g,y,v,x,b,_,w;c<h;){d=i-n,p=o-r;do g=s[f++].value;while(!g&&f<h);for(y=v=g,_=Math.max(p/d,d/p)/(m*e),w=g*g*_,b=Math.max(v/w,w/y);f<h;++f){if(g+=l=s[f].value,l<y&&(y=l),l>v&&(v=l),w=g*g*_,x=Math.max(v/w,w/y),x>b){g-=l;break}b=x}a.push(u={value:g,dice:d<p,children:s.slice(c,f)}),u.dice?cl(u,n,r,i,m?r+=p*g/m:o):hd(u,n,r,m?n+=d*g/m:i,o),m-=g,c=f}return a}var b4=function e(t){function n(r,i,o,a,s){v4(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(y4);function Yee(){var e=b4,t=!1,n=1,r=1,i=[0],o=fo,a=fo,s=fo,u=fo,l=fo;function c(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(f),i=[0],t&&h.eachBefore(g4),h}function f(h){var d=i[h.depth],p=h.x0+d,m=h.y0+d,g=h.x1-d,y=h.y1-d;g<p&&(p=g=(p+g)/2),y<m&&(m=y=(m+y)/2),h.x0=p,h.y0=m,h.x1=g,h.y1=y,h.children&&(d=i[h.depth+1]=o(h)/2,p+=l(h)-d,m+=a(h)-d,g-=s(h)-d,y-=u(h)-d,g<p&&(p=g=(p+g)/2),y<m&&(m=y=(m+y)/2),e(h,p,m,g,y))}return c.round=function(h){return arguments.length?(t=!!h,c):t},c.size=function(h){return arguments.length?(n=+h[0],r=+h[1],c):[n,r]},c.tile=function(h){return arguments.length?(e=cd(h),c):e},c.padding=function(h){return arguments.length?c.paddingInner(h).paddingOuter(h):c.paddingInner()},c.paddingInner=function(h){return arguments.length?(o=typeof h=="function"?h:Ua(+h),c):o},c.paddingOuter=function(h){return arguments.length?c.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):c.paddingTop()},c.paddingTop=function(h){return arguments.length?(a=typeof h=="function"?h:Ua(+h),c):a},c.paddingRight=function(h){return arguments.length?(s=typeof h=="function"?h:Ua(+h),c):s},c.paddingBottom=function(h){return arguments.length?(u=typeof h=="function"?h:Ua(+h),c):u},c.paddingLeft=function(h){return arguments.length?(l=typeof h=="function"?h:Ua(+h),c):l},c}function Gee(e,t,n,r,i){var o=e.children,a,s=o.length,u,l=new Array(s+1);for(l[0]=u=a=0;a<s;++a)l[a+1]=u+=o[a].value;c(0,s,e.value,t,n,r,i);function c(f,h,d,p,m,g,y){if(f>=h-1){var v=o[f];v.x0=p,v.y0=m,v.x1=g,v.y1=y;return}for(var x=l[f],b=d/2+x,_=f+1,w=h-1;_<w;){var $=_+w>>>1;l[$]<b?_=$+1:w=$}b-l[_-1]<l[_]-b&&f+1<_&&--_;var M=l[_]-x,k=d-M;if(g-p>y-m){var S=d?(p*k+g*M)/d:g;c(f,_,M,p,m,S,y),c(_,h,k,S,m,g,y)}else{var T=d?(m*k+y*M)/d:y;c(f,_,M,p,m,g,T),c(_,h,k,p,T,g,y)}}}function Xee(e,t,n,r,i){(e.depth&1?hd:cl)(e,t,n,r,i)}var Kee=function e(t){function n(r,i,o,a,s){if((u=r._squarify)&&u.ratio===t)for(var u,l,c,f,h=-1,d,p=u.length,m=r.value;++h<p;){for(l=u[h],c=l.children,f=l.value=0,d=c.length;f<d;++f)l.value+=c[f].value;l.dice?cl(l,i,o,a,m?o+=(s-o)*l.value/m:s):hd(l,i,o,m?i+=(a-i)*l.value/m:a,s),m-=l.value}else r._squarify=u=v4(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(y4);function x4(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function w4(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),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return x4((n-r/t)*t,a,i,o,s)}}function _4(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return x4((n-r/t)*t,i,o,a,s)}}var dd=e=>()=>e;function $4(e,t){return function(n){return e+n*t}}function Qee(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)}}function pd(e,t){var n=t-e;return n?$4(e,n>180||n<-180?n-360*Math.round(n/360):n):dd(isNaN(e)?t:e)}function Zee(e){return(e=+e)==1?ut:function(t,n){return n-t?Qee(t,n,e):dd(isNaN(t)?n:t)}}function ut(e,t){var n=t-e;return n?$4(e,n):dd(isNaN(e)?t:e)}var Vy=function e(t){var n=Zee(t);function r(i,o){var a=n((i=Fu(i)).r,(o=Fu(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=ut(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function S4(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=Fu(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=o(u),s+""}}}var Jee=S4(w4),ete=S4(_4);function Yy(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function M4(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function tte(e,t){return(M4(t)?Yy:T4)(e,t)}function T4(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=ho(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function k4(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function O4(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=ho(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Gy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xy=new RegExp(Gy.source,"g");function nte(e){return function(){return e}}function rte(e){return function(t){return e(t)+""}}function C4(e,t){var n=Gy.lastIndex=Xy.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=Gy.exec(e))&&(i=Xy.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Bn(r,i)})),n=Xy.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?rte(u[0].x):nte(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function ho(e,t){var n=typeof t,r;return t==null||n==="boolean"?dd(t):(n==="number"?Bn:n==="string"?(r=Aa(t))?(t=r,Vy):C4:t instanceof Aa?Vy:t instanceof Date?k4:M4(t)?Yy:Array.isArray(t)?T4:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?O4:Bn)(e,t)}function ite(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function ote(e,t){var n=pd(+e,+t);return function(r){var i=n(r);return i-360*Math.floor(i/360)}}function gd(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var P4=180/Math.PI,Ky={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function E4(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*P4,skewX:Math.atan(u)*P4,scaleX:a,scaleY:s}}var md;function ate(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Ky:E4(t.a,t.b,t.c,t.d,t.e,t.f)}function ste(e){return e==null||(md||(md=document.createElementNS("http://www.w3.org/2000/svg","g")),md.setAttribute("transform",e),!(e=md.transform.baseVal.consolidate()))?Ky:(e=e.matrix,E4(e.a,e.b,e.c,e.d,e.e,e.f))}function A4(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:Bn(l,f)},{i:m-2,x:Bn(c,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function a(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Bn(l,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Bn(l,c)}):c&&f.push(i(f)+"skewX("+c+r)}function u(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:Bn(l,f)},{i:m-2,x:Bn(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,f,h),a(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(d){for(var p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var ute=A4(ate,"px, ","px)","deg)"),lte=A4(ste,", ",")",")"),cte=1e-12;function N4(e){return((e=Math.exp(e))+1/e)/2}function fte(e){return((e=Math.exp(e))-1/e)/2}function hte(e){return((e=Math.exp(2*e))-1)/(e+1)}var dte=function e(t,n,r){function i(o,a){var s=o[0],u=o[1],l=o[2],c=a[0],f=a[1],h=a[2],d=c-s,p=f-u,m=d*d+p*p,g,y;if(m<cte)y=Math.log(h/l)/t,g=function($){return[s+$*d,u+$*p,l*Math.exp(t*$*y)]};else{var v=Math.sqrt(m),x=(h*h-l*l+r*m)/(2*l*n*v),b=(h*h-l*l-r*m)/(2*h*n*v),_=Math.log(Math.sqrt(x*x+1)-x),w=Math.log(Math.sqrt(b*b+1)-b);y=(w-_)/t,g=function($){var M=$*y,k=N4(_),S=l/(n*v)*(k*hte(t*M+_)-fte(_));return[s+S*d,u+S*p,l*k/N4(t*M+_)]}}return g.duration=y*1e3*t/Math.SQRT2,g}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,u=s*s;return e(a,s,u)},i}(Math.SQRT2,2,4);function R4(e){return function(t,n){var r=e((t=ch(t)).h,(n=ch(n)).h),i=ut(t.s,n.s),o=ut(t.l,n.l),a=ut(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var pte=R4(pd),gte=R4(ut);function mte(e,t){var n=ut((e=hh(e)).l,(t=hh(t)).l),r=ut(e.a,t.a),i=ut(e.b,t.b),o=ut(e.opacity,t.opacity);return function(a){return e.l=n(a),e.a=r(a),e.b=i(a),e.opacity=o(a),e+""}}function L4(e){return function(t,n){var r=e((t=dh(t)).h,(n=dh(n)).h),i=ut(t.c,n.c),o=ut(t.l,n.l),a=ut(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var yte=L4(pd),vte=L4(ut);function D4(e){return function t(n){n=+n;function r(i,o){var a=e((i=gh(i)).h,(o=gh(o)).h),s=ut(i.s,o.s),u=ut(i.l,o.l),l=ut(i.opacity,o.opacity);return function(c){return i.h=a(c),i.s=s(c),i.l=u(Math.pow(c,n)),i.opacity=l(c),i+""}}return r.gamma=t,r}(1)}var bte=D4(pd),xte=D4(ut);function I4(e,t){t===void 0&&(t=e,e=ho);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function wte(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}const Qy=Math.PI,Zy=2*Qy,po=1e-6,_te=Zy-po;function Jy(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function go(){return new Jy}Jy.prototype=go.prototype={constructor:Jy,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>po)if(!(Math.abs(c*s-u*l)>po)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-o,d=r-a,p=s*s+u*u,m=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),v=i*Math.tan((Qy-Math.acos((p+f-m)/(2*g*y)))/2),x=v/y,b=v/g;Math.abs(x-1)>po&&(this._+="L"+(e+x*l)+","+(t+x*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>po||Math.abs(this._y1-l)>po)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Zy+Zy),f>_te?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>po&&(this._+="A"+n+","+n+",0,"+ +(f>=Qy)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},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._}};function $te(e){for(var t=-1,n=e.length,r,i=e[n-1],o=0;++t<n;)r=i,i=e[t],o+=r[1]*i[0]-r[0]*i[1];return o/2}function Ste(e){for(var t=-1,n=e.length,r=0,i=0,o,a=e[n-1],s,u=0;++t<n;)o=a,a=e[t],u+=s=o[0]*a[1]-a[0]*o[1],r+=(o[0]+a[0])*s,i+=(o[1]+a[1])*s;return u*=3,[r/u,i/u]}function Mte(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Tte(e,t){return e[0]-t[0]||e[1]-t[1]}function z4(e){const t=e.length,n=[0,1];let r=2,i;for(i=2;i<t;++i){for(;r>1&&Mte(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function kte(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(Tte),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=z4(r),a=z4(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],l=[];for(t=o.length-1;t>=0;--t)l.push(e[r[o[t]][2]]);for(t=+s;t<a.length-u;++t)l.push(e[r[a[t]][2]]);return l}function Ote(e,t){for(var n=e.length,r=e[n-1],i=t[0],o=t[1],a=r[0],s=r[1],u,l,c=!1,f=0;f<n;++f)r=e[f],u=r[0],l=r[1],l>o!=s>o&&i<(a-u)*(o-l)/(s-l)+u&&(c=!c),a=u,s=l;return c}function Cte(e){for(var t=-1,n=e.length,r=e[n-1],i,o,a=r[0],s=r[1],u=0;++t<n;)i=a,o=s,r=e[t],a=r[0],s=r[1],i-=a,o-=s,u+=Math.hypot(i,o);return u}var dt=Math.random,Pte=function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,arguments.length===1?(i=r,r=0):i-=r,function(){return t()*i+r}}return n.source=e,n}(dt),Ete=function e(t){function n(r,i){return arguments.length<2&&(i=r,r=0),r=Math.floor(r),i=Math.floor(i)-r,function(){return Math.floor(t()*i+r)}}return n.source=e,n}(dt),ev=function e(t){function n(r,i){var o,a;return r=r==null?0:+r,i=i==null?1:+i,function(){var s;if(o!=null)s=o,o=null;else do o=t()*2-1,s=t()*2-1,a=o*o+s*s;while(!a||a>1);return r+i*s*Math.sqrt(-2*Math.log(a)/a)}}return n.source=e,n}(dt),Ate=function e(t){var n=ev.source(t);function r(){var i=n.apply(this,arguments);return function(){return Math.exp(i())}}return r.source=e,r}(dt),F4=function e(t){function n(r){return(r=+r)<=0?()=>0:function(){for(var i=0,o=r;o>1;--o)i+=t();return i+o*t()}}return n.source=e,n}(dt),Nte=function e(t){var n=F4.source(t);function r(i){if((i=+i)==0)return t;var o=n(i);return function(){return o()/i}}return r.source=e,r}(dt),Rte=function e(t){function n(r){return function(){return-Math.log1p(-t())/r}}return n.source=e,n}(dt),Lte=function e(t){function n(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-t(),r)}}return n.source=e,n}(dt),Dte=function e(t){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+r)}}return n.source=e,n}(dt),B4=function e(t){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return r===0?()=>1/0:r===1?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-t())/r)})}return n.source=e,n}(dt),tv=function e(t){var n=ev.source(t)();function r(i,o){if((i=+i)<0)throw new RangeError("invalid k");if(i===0)return()=>0;if(o=o==null?1:+o,i===1)return()=>-Math.log1p(-t())*o;var a=(i<1?i+1:i)-1/3,s=1/(3*Math.sqrt(a)),u=i<1?()=>Math.pow(t(),1/i):()=>1;return function(){do{do var l=n(),c=1+s*l;while(c<=0);c*=c*c;var f=1-t()}while(f>=1-.0331*l*l*l*l&&Math.log(f)>=.5*l*l+a*(1-c+Math.log(c)));return a*c*u()*o}}return r.source=e,r}(dt),j4=function e(t){var n=tv.source(t);function r(i,o){var a=n(i),s=n(o);return function(){var u=a();return u===0?0:u/(u+s())}}return r.source=e,r}(dt),W4=function e(t){var n=B4.source(t),r=j4.source(t);function i(o,a){return o=+o,(a=+a)>=1?()=>o:a<=0?()=>0:function(){for(var s=0,u=o,l=a;u*l>16&&u*(1-l)>16;){var c=Math.floor((u+1)*l),f=r(c,u-c+1)();f<=l?(s+=c,u-=c,l=(l-f)/(1-f)):(u=c-1,l/=f)}for(var h=l<.5,d=h?l:1-l,p=n(d),m=p(),g=0;m<=u;++g)m+=p();return s+(h?g:u-g)}}return i.source=e,i}(dt),Ite=function e(t){function n(r,i,o){var a;return(r=+r)==0?a=s=>-Math.log(s):(r=1/r,a=s=>Math.pow(s,r)),i=i==null?0:+i,o=o==null?1:+o,function(){return i+o*a(-Math.log1p(-t()))}}return n.source=e,n}(dt),zte=function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){return r+i*Math.tan(Math.PI*t())}}return n.source=e,n}(dt),Fte=function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){var o=t();return r+i*Math.log(o/(1-o))}}return n.source=e,n}(dt),Bte=function e(t){var n=tv.source(t),r=W4.source(t);function i(o){return function(){for(var a=0,s=o;s>16;){var u=Math.floor(.875*s),l=n(u)();if(l>s)return a+r(u-1,s/l)();a+=u,s-=l}for(var c=-Math.log1p(-t()),f=0;c<=s;++f)c-=Math.log1p(-t());return a+f}}return i.source=e,i}(dt);const jte=1664525,Wte=1013904223,H4=1/4294967296;function Hte(e=Math.random()){let t=(0<=e&&e<1?e/H4:Math.abs(e))|0;return()=>(t=jte*t+Wte|0,H4*(t>>>0))}function _n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Dr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const nv=Symbol("implicit");function rv(){var e=new Map,t=[],n=[],r=nv;function i(o){var a=o+"",s=e.get(a);if(!s){if(r!==nv)return r;e.set(a,s=t.push(o))}return n[(s-1)%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Map;for(const a of o){const s=a+"";e.has(s)||e.set(s,t.push(a))}return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return rv(t,n).unknown(r)},_n.apply(i,arguments),i}function iv(){var e=rv().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var h=t().length,d=i<r,p=d?i:r,m=d?r:i;o=(m-p)/Math.max(1,h-u+l*2),s&&(o=Math.floor(o)),p+=(m-p-o*(h-u))*c,a=o*(1-u),s&&(p=Math.round(p),a=Math.round(a));var g=ri(h).map(function(y){return p+o*y});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,l=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return iv(t(),[r,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},_n.apply(f(),arguments)}function q4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return q4(t())},e}function qte(){return q4(iv.apply(null,arguments).paddingInner(1))}function Ute(e){return function(){return e}}function yd(e){return+e}var U4=[0,1];function Bt(e){return e}function ov(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ute(isNaN(t)?NaN:.5)}function Vte(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Yte(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=ov(i,r),o=n(a,o)):(r=ov(r,i),o=n(o,a)),function(s){return o(r(s))}}function Gte(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=ov(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var u=Ki(e,s,1,r)-1;return o[u](i[u](s))}}function fl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vd(){var e=U4,t=U4,n=ho,r,i,o,a=Bt,s,u,l;function c(){var h=Math.min(e.length,t.length);return a!==Bt&&(a=Vte(e[0],e[h-1])),s=h>2?Gte:Yte,u=l=null,f}function f(h){return h==null||isNaN(h=+h)?o:(u||(u=s(e.map(r),t,n)))(r(a(h)))}return f.invert=function(h){return a(i((l||(l=s(t,e.map(r),Bn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,yd),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=gd,c()},f.clamp=function(h){return arguments.length?(a=h?!0:Bt,c()):a!==Bt},f.interpolate=function(h){return arguments.length?(n=h,c()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,c()}}function av(){return vd()(Bt,Bt)}function V4(e,t,n,r){var i=Lf(e,t,n),o;switch(r=Hu(r==null?",f":r),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=WM(i,a))&&(r.precision=o),G1(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=HM(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=jM(i))&&(r.precision=o-(r.type==="%")*2);break}}return Th(r)}function fi(e){var t=e.domain;return e.ticks=function(n){var r=t();return gu(r[0],r[r.length-1],n==null?10:n)},e.tickFormat=function(n,r){var i=t();return V4(i[0],i[i.length-1],n==null?10:n,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],u,l,c=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);c-- >0;){if(l=mu(a,s,n),l===u)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function Y4(){var e=av();return e.copy=function(){return fl(e,Y4())},_n.apply(e,arguments),fi(e)}function G4(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,yd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return G4(e).unknown(t)},e=arguments.length?Array.from(e,yd):[0,1],fi(n)}function X4(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function K4(e){return Math.log(e)}function Q4(e){return Math.exp(e)}function Xte(e){return-Math.log(-e)}function Kte(e){return-Math.exp(-e)}function Qte(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Zte(e){return e===10?Qte:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function Jte(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function Z4(e){return function(t){return-e(-t)}}function sv(e){var t=e(K4,Q4),n=t.domain,r=10,i,o;function a(){return i=Jte(r),o=Zte(r),n()[0]<0?(i=Z4(i),o=Z4(o),e(Xte,Kte)):e(K4,Q4),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=function(s){var u=n(),l=u[0],c=u[u.length-1],f;(f=c<l)&&(h=l,l=c,c=h);var h=i(l),d=i(c),p,m,g,y=s==null?10:+s,v=[];if(!(r%1)&&d-h<y){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(m=1,p=o(h);m<r;++m)if(g=p*m,!(g<l)){if(g>c)break;v.push(g)}}else for(;h<=d;++h)for(m=r-1,p=o(h);m>=1;--m)if(g=p*m,!(g<l)){if(g>c)break;v.push(g)}v.length*2<y&&(v=gu(l,c,y))}else v=gu(h,d,Math.min(d-h,y)).map(o);return f?v.reverse():v},t.tickFormat=function(s,u){if(u==null&&(u=r===10?".0e":","),typeof u!="function"&&(u=Th(u)),s===1/0)return u;s==null&&(s=10);var l=Math.max(1,r*s/t.ticks().length);return function(c){var f=c/o(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=l?u(c):""}},t.nice=function(){return n(X4(n(),{floor:function(s){return o(Math.floor(i(s)))},ceil:function(s){return o(Math.ceil(i(s)))}}))},t}function J4(){var e=sv(vd()).domain([1,10]);return e.copy=function(){return fl(e,J4()).base(e.base())},_n.apply(e,arguments),e}function e6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function t6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function uv(e){var t=1,n=e(e6(t),t6(t));return n.constant=function(r){return arguments.length?e(e6(t=+r),t6(t)):t},fi(n)}function n6(){var e=uv(vd());return e.copy=function(){return fl(e,n6()).constant(e.constant())},_n.apply(e,arguments)}function r6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ene(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function tne(e){return e<0?-e*e:e*e}function lv(e){var t=e(Bt,Bt),n=1;function r(){return n===1?e(Bt,Bt):n===.5?e(ene,tne):e(r6(n),r6(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},fi(t)}function cv(){var e=lv(vd());return e.copy=function(){return fl(e,cv()).exponent(e.exponent())},_n.apply(e,arguments),e}function nne(){return cv.apply(null,arguments).exponent(.5)}function i6(e){return Math.sign(e)*e*e}function rne(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function o6(){var e=av(),t=[0,1],n=!1,r;function i(o){var a=rne(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(i6(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,yd)).map(i6)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return o6(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_n.apply(i,arguments),fi(i)}function a6(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=T3(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Ki(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ye),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return a6().domain(e).range(t).unknown(r)},_n.apply(o,arguments)}function s6(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(u){return u!=null&&u<=u?i[Ki(r,u,0,n)]:o}function s(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return a}return a.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},a.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,s()):i.slice()},a.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,r[0]]:l>=n?[r[n-1],t]:[r[l-1],r[l]]},a.unknown=function(u){return arguments.length&&(o=u),a},a.thresholds=function(){return r.slice()},a.copy=function(){return s6().domain([e,t]).range(i).unknown(o)},_n.apply(fi(a),arguments)}function u6(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Ki(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return u6().domain(e).range(t).unknown(n)},_n.apply(i,arguments)}var fv=new Date,hv=new Date;function Qe(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var u=[],l;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return u;do u.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return u},i.filter=function(o){return Qe(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return fv.setTime(+o),hv.setTime(+a),e(fv),e(hv),Math.floor(n(fv,hv))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var bd=Qe(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});bd.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Qe(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):bd};var dv=bd,l6=bd.range;const Ir=1e3,$n=Ir*60,zr=$n*60,mo=zr*24,pv=mo*7,c6=mo*30,gv=mo*365;var f6=Qe(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ir)},function(e,t){return(t-e)/Ir},function(e){return e.getUTCSeconds()}),hi=f6,h6=f6.range,d6=Qe(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ir)},function(e,t){e.setTime(+e+t*$n)},function(e,t){return(t-e)/$n},function(e){return e.getMinutes()}),mv=d6,ine=d6.range,p6=Qe(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ir-e.getMinutes()*$n)},function(e,t){e.setTime(+e+t*zr)},function(e,t){return(t-e)/zr},function(e){return e.getHours()}),yv=p6,one=p6.range,g6=Qe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$n)/mo,e=>e.getDate()-1),hl=g6,ane=g6.range;function yo(e){return Qe(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*$n)/pv})}var Va=yo(0),dl=yo(1),m6=yo(2),y6=yo(3),vo=yo(4),v6=yo(5),b6=yo(6),x6=Va.range,sne=dl.range,une=m6.range,lne=y6.range,cne=vo.range,fne=v6.range,hne=b6.range,w6=Qe(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()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),vv=w6,dne=w6.range,bv=Qe(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()});bv.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(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)})};var di=bv,pne=bv.range,_6=Qe(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*$n)},function(e,t){return(t-e)/$n},function(e){return e.getUTCMinutes()}),xv=_6,gne=_6.range,$6=Qe(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*zr)},function(e,t){return(t-e)/zr},function(e){return e.getUTCHours()}),wv=$6,mne=$6.range,S6=Qe(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/mo},function(e){return e.getUTCDate()-1}),pl=S6,yne=S6.range;function bo(e){return Qe(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/pv})}var Ya=bo(0),gl=bo(1),M6=bo(2),T6=bo(3),xo=bo(4),k6=bo(5),O6=bo(6),C6=Ya.range,vne=gl.range,bne=M6.range,xne=T6.range,wne=xo.range,_ne=k6.range,$ne=O6.range,P6=Qe(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()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()}),_v=P6,Sne=P6.range,$v=Qe(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()});$v.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Qe(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)})};var pi=$v,Mne=$v.range;function E6(e,t,n,r,i,o){const a=[[hi,1,Ir],[hi,5,5*Ir],[hi,15,15*Ir],[hi,30,30*Ir],[o,1,$n],[o,5,5*$n],[o,15,15*$n],[o,30,30*$n],[i,1,zr],[i,3,3*zr],[i,6,6*zr],[i,12,12*zr],[r,1,mo],[r,2,2*mo],[n,1,pv],[t,1,c6],[t,3,3*c6],[e,1,gv]];function s(l,c,f){const h=c<l;h&&([l,c]=[c,l]);const d=f&&typeof f.range=="function"?f:u(l,c,f),p=d?d.range(l,+c+1):[];return h?p.reverse():p}function u(l,c,f){const h=Math.abs(c-l)/f,d=Ef(([,,g])=>g).right(a,h);if(d===a.length)return e.every(Lf(l/gv,c/gv,f));if(d===0)return dv.every(Math.max(Lf(l,c,f),1));const[p,m]=a[h/a[d-1][2]<a[d][2]/h?d-1:d];return p.every(m)}return[s,u]}const[A6,N6]=E6(pi,_v,Ya,pl,wv,xv),[R6,L6]=E6(di,vv,Va,hl,yv,mv);function Sv(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 Mv(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 ml(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function D6(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=yl(i),c=vl(i),f=yl(o),h=vl(o),d=yl(a),p=vl(a),m=yl(s),g=vl(s),y=yl(u),v=vl(u),x={a:R,A:D,b:L,B:F,c:null,d:W6,e:W6,f:Gne,g:ire,G:are,H:Une,I:Vne,j:Yne,L:H6,m:Xne,M:Kne,p:W,q:U,Q:X6,s:K6,S:Qne,u:Zne,U:Jne,V:ere,w:tre,W:nre,x:null,X:null,y:rre,Y:ore,Z:sre,"%":G6},b={a:te,A:Q,b:J,B:ue,c:null,d:U6,e:U6,f:fre,g:wre,G:$re,H:ure,I:lre,j:cre,L:V6,m:hre,M:dre,p:re,q:oe,Q:X6,s:K6,S:pre,u:gre,U:mre,V:yre,w:vre,W:bre,x:null,X:null,y:xre,Y:_re,Z:Sre,"%":G6},_={a:S,A:T,b:A,B:P,c:O,d:B6,e:B6,f:jne,g:F6,G:z6,H:j6,I:j6,j:Ine,L:Bne,m:Dne,M:zne,p:k,q:Lne,Q:Hne,s:qne,S:Fne,u:Pne,U:Ene,V:Ane,w:Cne,W:Nne,x:E,X:C,y:F6,Y:z6,Z:Rne,"%":Wne};x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),b.x=w(n,b),b.X=w(r,b),b.c=w(t,b);function w(I,V){return function(ee){var N=[],Y=-1,j=0,H=I.length,X,ne,fe;for(ee instanceof Date||(ee=new Date(+ee));++Y<H;)I.charCodeAt(Y)===37&&(N.push(I.slice(j,Y)),(ne=I6[X=I.charAt(++Y)])!=null?X=I.charAt(++Y):ne=X==="e"?" ":"0",(fe=V[X])&&(X=fe(ee,ne)),N.push(X),j=Y+1);return N.push(I.slice(j,Y)),N.join("")}}function $(I,V){return function(ee){var N=ml(1900,void 0,1),Y=M(N,I,ee+="",0),j,H;if(Y!=ee.length)return null;if("Q"in N)return new Date(N.Q);if("s"in N)return new Date(N.s*1e3+("L"in N?N.L:0));if(V&&!("Z"in N)&&(N.Z=0),"p"in N&&(N.H=N.H%12+N.p*12),N.m===void 0&&(N.m="q"in N?N.q:0),"V"in N){if(N.V<1||N.V>53)return null;"w"in N||(N.w=1),"Z"in N?(j=Mv(ml(N.y,0,1)),H=j.getUTCDay(),j=H>4||H===0?gl.ceil(j):gl(j),j=pl.offset(j,(N.V-1)*7),N.y=j.getUTCFullYear(),N.m=j.getUTCMonth(),N.d=j.getUTCDate()+(N.w+6)%7):(j=Sv(ml(N.y,0,1)),H=j.getDay(),j=H>4||H===0?dl.ceil(j):dl(j),j=hl.offset(j,(N.V-1)*7),N.y=j.getFullYear(),N.m=j.getMonth(),N.d=j.getDate()+(N.w+6)%7)}else("W"in N||"U"in N)&&("w"in N||(N.w="u"in N?N.u%7:"W"in N?1:0),H="Z"in N?Mv(ml(N.y,0,1)).getUTCDay():Sv(ml(N.y,0,1)).getDay(),N.m=0,N.d="W"in N?(N.w+6)%7+N.W*7-(H+5)%7:N.w+N.U*7-(H+6)%7);return"Z"in N?(N.H+=N.Z/100|0,N.M+=N.Z%100,Mv(N)):Sv(N)}}function M(I,V,ee,N){for(var Y=0,j=V.length,H=ee.length,X,ne;Y<j;){if(N>=H)return-1;if(X=V.charCodeAt(Y++),X===37){if(X=V.charAt(Y++),ne=_[X in I6?V.charAt(Y++):X],!ne||(N=ne(I,ee,N))<0)return-1}else if(X!=ee.charCodeAt(N++))return-1}return N}function k(I,V,ee){var N=l.exec(V.slice(ee));return N?(I.p=c.get(N[0].toLowerCase()),ee+N[0].length):-1}function S(I,V,ee){var N=d.exec(V.slice(ee));return N?(I.w=p.get(N[0].toLowerCase()),ee+N[0].length):-1}function T(I,V,ee){var N=f.exec(V.slice(ee));return N?(I.w=h.get(N[0].toLowerCase()),ee+N[0].length):-1}function A(I,V,ee){var N=y.exec(V.slice(ee));return N?(I.m=v.get(N[0].toLowerCase()),ee+N[0].length):-1}function P(I,V,ee){var N=m.exec(V.slice(ee));return N?(I.m=g.get(N[0].toLowerCase()),ee+N[0].length):-1}function O(I,V,ee){return M(I,t,V,ee)}function E(I,V,ee){return M(I,n,V,ee)}function C(I,V,ee){return M(I,r,V,ee)}function R(I){return a[I.getDay()]}function D(I){return o[I.getDay()]}function L(I){return u[I.getMonth()]}function F(I){return s[I.getMonth()]}function W(I){return i[+(I.getHours()>=12)]}function U(I){return 1+~~(I.getMonth()/3)}function te(I){return a[I.getUTCDay()]}function Q(I){return o[I.getUTCDay()]}function J(I){return u[I.getUTCMonth()]}function ue(I){return s[I.getUTCMonth()]}function re(I){return i[+(I.getUTCHours()>=12)]}function oe(I){return 1+~~(I.getUTCMonth()/3)}return{format:function(I){var V=w(I+="",x);return V.toString=function(){return I},V},parse:function(I){var V=$(I+="",!1);return V.toString=function(){return I},V},utcFormat:function(I){var V=w(I+="",b);return V.toString=function(){return I},V},utcParse:function(I){var V=$(I+="",!0);return V.toString=function(){return I},V}}}var I6={"-":"",_:" ",0:"0"},lt=/^\s*\d+/,Tne=/^%/,kne=/[\\^$*+?|[\]().{}]/g;function _e(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function One(e){return e.replace(kne,"\\$&")}function yl(e){return new RegExp("^(?:"+e.map(One).join("|")+")","i")}function vl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Cne(e,t,n){var r=lt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Pne(e,t,n){var r=lt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ene(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ane(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Nne(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function z6(e,t,n){var r=lt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function F6(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Rne(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 Lne(e,t,n){var r=lt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Dne(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function B6(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ine(e,t,n){var r=lt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function j6(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zne(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Fne(e,t,n){var r=lt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Bne(e,t,n){var r=lt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function jne(e,t,n){var r=lt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wne(e,t,n){var r=Tne.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Hne(e,t,n){var r=lt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function qne(e,t,n){var r=lt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function W6(e,t){return _e(e.getDate(),t,2)}function Une(e,t){return _e(e.getHours(),t,2)}function Vne(e,t){return _e(e.getHours()%12||12,t,2)}function Yne(e,t){return _e(1+hl.count(di(e),e),t,3)}function H6(e,t){return _e(e.getMilliseconds(),t,3)}function Gne(e,t){return H6(e,t)+"000"}function Xne(e,t){return _e(e.getMonth()+1,t,2)}function Kne(e,t){return _e(e.getMinutes(),t,2)}function Qne(e,t){return _e(e.getSeconds(),t,2)}function Zne(e){var t=e.getDay();return t===0?7:t}function Jne(e,t){return _e(Va.count(di(e)-1,e),t,2)}function q6(e){var t=e.getDay();return t>=4||t===0?vo(e):vo.ceil(e)}function ere(e,t){return e=q6(e),_e(vo.count(di(e),e)+(di(e).getDay()===4),t,2)}function tre(e){return e.getDay()}function nre(e,t){return _e(dl.count(di(e)-1,e),t,2)}function rre(e,t){return _e(e.getFullYear()%100,t,2)}function ire(e,t){return e=q6(e),_e(e.getFullYear()%100,t,2)}function ore(e,t){return _e(e.getFullYear()%1e4,t,4)}function are(e,t){var n=e.getDay();return e=n>=4||n===0?vo(e):vo.ceil(e),_e(e.getFullYear()%1e4,t,4)}function sre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_e(t/60|0,"0",2)+_e(t%60,"0",2)}function U6(e,t){return _e(e.getUTCDate(),t,2)}function ure(e,t){return _e(e.getUTCHours(),t,2)}function lre(e,t){return _e(e.getUTCHours()%12||12,t,2)}function cre(e,t){return _e(1+pl.count(pi(e),e),t,3)}function V6(e,t){return _e(e.getUTCMilliseconds(),t,3)}function fre(e,t){return V6(e,t)+"000"}function hre(e,t){return _e(e.getUTCMonth()+1,t,2)}function dre(e,t){return _e(e.getUTCMinutes(),t,2)}function pre(e,t){return _e(e.getUTCSeconds(),t,2)}function gre(e){var t=e.getUTCDay();return t===0?7:t}function mre(e,t){return _e(Ya.count(pi(e)-1,e),t,2)}function Y6(e){var t=e.getUTCDay();return t>=4||t===0?xo(e):xo.ceil(e)}function yre(e,t){return e=Y6(e),_e(xo.count(pi(e),e)+(pi(e).getUTCDay()===4),t,2)}function vre(e){return e.getUTCDay()}function bre(e,t){return _e(gl.count(pi(e)-1,e),t,2)}function xre(e,t){return _e(e.getUTCFullYear()%100,t,2)}function wre(e,t){return e=Y6(e),_e(e.getUTCFullYear()%100,t,2)}function _re(e,t){return _e(e.getUTCFullYear()%1e4,t,4)}function $re(e,t){var n=e.getUTCDay();return e=n>=4||n===0?xo(e):xo.ceil(e),_e(e.getUTCFullYear()%1e4,t,4)}function Sre(){return"+0000"}function G6(){return"%"}function X6(e){return+e}function K6(e){return Math.floor(+e/1e3)}var Ga,Tv,Q6,xd,kv;Z6({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Z6(e){return Ga=D6(e),Tv=Ga.format,Q6=Ga.parse,xd=Ga.utcFormat,kv=Ga.utcParse,Ga}var J6="%Y-%m-%dT%H:%M:%S.%LZ";function Mre(e){return e.toISOString()}var Tre=Date.prototype.toISOString?Mre:xd(J6),kre=Tre;function Ore(e){var t=new Date(e);return isNaN(t)?null:t}var Cre=+new Date("2000-01-01T00:00:00.000Z")?Ore:kv(J6),Pre=Cre;function Ere(e){return new Date(e)}function Are(e){return e instanceof Date?+e:+new Date(+e)}function Ov(e,t,n,r,i,o,a,s,u,l){var c=av(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),v=l("%b %d"),x=l("%B"),b=l("%Y");function _(w){return(u(w)<w?d:s(w)<w?p:a(w)<w?m:o(w)<w?g:r(w)<w?i(w)<w?y:v:n(w)<w?x:b)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,Are)):h().map(Ere)},c.ticks=function(w){var $=h();return e($[0],$[$.length-1],w==null?10:w)},c.tickFormat=function(w,$){return $==null?_:l($)},c.nice=function(w){var $=h();return(!w||typeof w.range!="function")&&(w=t($[0],$[$.length-1],w==null?10:w)),w?h(X4($,w)):c},c.copy=function(){return fl(c,Ov(e,t,n,r,i,o,a,s,u,l))},c}function Nre(){return _n.apply(Ov(R6,L6,di,vv,Va,hl,yv,mv,hi,Tv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Rre(){return _n.apply(Ov(A6,N6,pi,_v,Ya,pl,wv,xv,hi,xd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function wd(){var e=0,t=1,n,r,i,o,a=Bt,s=!1,u;function l(f){return f==null||isNaN(f=+f)?u:a(i===0?.5:(f=(o(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(a=f,l):a};function c(f){return function(h){var d,p;return arguments.length?([d,p]=h,a=f(d,p),l):[a(0),a(1)]}}return l.range=c(ho),l.rangeRound=c(gd),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),l}}function gi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function e8(){var e=fi(wd()(Bt));return e.copy=function(){return gi(e,e8())},Dr.apply(e,arguments)}function t8(){var e=sv(wd()).domain([1,10]);return e.copy=function(){return gi(e,t8()).base(e.base())},Dr.apply(e,arguments)}function n8(){var e=uv(wd());return e.copy=function(){return gi(e,n8()).constant(e.constant())},Dr.apply(e,arguments)}function Cv(){var e=lv(wd());return e.copy=function(){return gi(e,Cv()).exponent(e.exponent())},Dr.apply(e,arguments)}function Lre(){return Cv.apply(null,arguments).exponent(.5)}function r8(){var e=[],t=Bt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ki(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ye),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>vu(e,o/r))},n.copy=function(){return r8(t).domain(e)},Dr.apply(n,arguments)}function _d(){var e=0,t=.5,n=1,r=1,i,o,a,s,u,l=Bt,c,f=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-o)*(r*m<r*o?s:u),l(f?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),o=c(t=+t),a=c(n=+n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d):[e,t,n]},d.clamp=function(m){return arguments.length?(f=!!m,d):f},d.interpolator=function(m){return arguments.length?(l=m,d):l};function p(m){return function(g){var y,v,x;return arguments.length?([y,v,x]=g,l=I4(m,[y,v,x]),d):[l(0),l(.5),l(1)]}}return d.range=p(ho),d.rangeRound=p(gd),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return c=m,i=m(e),o=m(t),a=m(n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d}}function i8(){var e=fi(_d()(Bt));return e.copy=function(){return gi(e,i8())},Dr.apply(e,arguments)}function o8(){var e=sv(_d()).domain([.1,1,10]);return e.copy=function(){return gi(e,o8()).base(e.base())},Dr.apply(e,arguments)}function a8(){var e=uv(_d());return e.copy=function(){return gi(e,a8()).constant(e.constant())},Dr.apply(e,arguments)}function Pv(){var e=lv(_d());return e.copy=function(){return gi(e,Pv()).exponent(e.exponent())},Dr.apply(e,arguments)}function Dre(){return Pv.apply(null,arguments).exponent(.5)}function ge(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}var Ire=ge("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),zre=ge("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Fre=ge("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Bre=ge("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),jre=ge("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Wre=ge("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Hre=ge("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),qre=ge("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Ure=ge("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Vre=ge("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function $d(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Ev(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Xa(){}var wo=.7,Ka=1/wo,Qa="\\s*([+-]?\\d+)\\s*",bl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Yre=/^#([0-9a-f]{3,8})$/,Gre=new RegExp("^rgb\\("+[Qa,Qa,Qa]+"\\)$"),Xre=new RegExp("^rgb\\("+[gr,gr,gr]+"\\)$"),Kre=new RegExp("^rgba\\("+[Qa,Qa,Qa,bl]+"\\)$"),Qre=new RegExp("^rgba\\("+[gr,gr,gr,bl]+"\\)$"),Zre=new RegExp("^hsl\\("+[bl,gr,gr]+"\\)$"),Jre=new RegExp("^hsla\\("+[bl,gr,gr,bl]+"\\)$"),s8={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};$d(Xa,Av,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:u8,formatHex:u8,formatHsl:eie,formatRgb:l8,toString:l8});function u8(){return this.rgb().formatHex()}function eie(){return g8(this).formatHsl()}function l8(){return this.rgb().formatRgb()}function Av(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Yre.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?c8(t):n===3?new jt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Gre.exec(e))?new jt(t[1],t[2],t[3],1):(t=Xre.exec(e))?new jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Kre.exec(e))?Sd(t[1],t[2],t[3],t[4]):(t=Qre.exec(e))?Sd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zre.exec(e))?p8(t[1],t[2]/100,t[3]/100,1):(t=Jre.exec(e))?p8(t[1],t[2]/100,t[3]/100,t[4]):s8.hasOwnProperty(e)?c8(s8[e]):e==="transparent"?new jt(NaN,NaN,NaN,0):null}function c8(e){return new jt(e>>16&255,e>>8&255,e&255,1)}function Sd(e,t,n,r){return r<=0&&(e=t=n=NaN),new jt(e,t,n,r)}function f8(e){return e instanceof Xa||(e=Av(e)),e?(e=e.rgb(),new jt(e.r,e.g,e.b,e.opacity)):new jt}function xl(e,t,n,r){return arguments.length===1?f8(e):new jt(e,t,n,r==null?1:r)}function jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$d(jt,xl,Ev(Xa,{brighter:function(e){return e=e==null?Ka:Math.pow(Ka,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?wo:Math.pow(wo,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:h8,formatHex:h8,formatRgb:d8,toString:d8}));function h8(){return"#"+Nv(this.r)+Nv(this.g)+Nv(this.b)}function d8(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Nv(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function p8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mr(e,t,n,r)}function g8(e){if(e instanceof mr)return new mr(e.h,e.s,e.l,e.opacity);if(e instanceof Xa||(e=Av(e)),!e)return new mr;if(e instanceof mr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new mr(a,s,u,e.opacity)}function tie(e,t,n,r){return arguments.length===1?g8(e):new mr(e,t,n,r==null?1:r)}function mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$d(mr,tie,Ev(Xa,{brighter:function(e){return e=e==null?Ka:Math.pow(Ka,e),new mr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?wo:Math.pow(wo,e),new mr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jt(Rv(e>=240?e-240:e+120,i,r),Rv(e,i,r),Rv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Rv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const nie=Math.PI/180,rie=180/Math.PI;var m8=-.14861,Lv=1.78277,Dv=-.29227,Md=-.90649,wl=1.97294,y8=wl*Md,v8=wl*Lv,b8=Lv*Dv-Md*m8;function iie(e){if(e instanceof _o)return new _o(e.h,e.s,e.l,e.opacity);e instanceof jt||(e=f8(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(b8*r+y8*t-v8*n)/(b8+y8-v8),o=r-i,a=(wl*(n-i)-Dv*o)/Md,s=Math.sqrt(a*a+o*o)/(wl*i*(1-i)),u=s?Math.atan2(a,o)*rie-120:NaN;return new _o(u<0?u+360:u,s,i,e.opacity)}function yr(e,t,n,r){return arguments.length===1?iie(e):new _o(e,t,n,r==null?1:r)}function _o(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$d(_o,yr,Ev(Xa,{brighter:function(e){return e=e==null?Ka:Math.pow(Ka,e),new _o(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?wo:Math.pow(wo,e),new _o(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*nie,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jt(255*(t+n*(m8*r+Lv*i)),255*(t+n*(Dv*r+Md*i)),255*(t+n*(wl*r)),this.opacity)}}));function oie(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function aie(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),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return oie((n-r/t)*t,a,i,o,s)}}var Iv=e=>()=>e;function x8(e,t){return function(n){return e+n*t}}function sie(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)}}function uie(e,t){var n=t-e;return n?x8(e,n>180||n<-180?n-360*Math.round(n/360):n):Iv(isNaN(e)?t:e)}function lie(e){return(e=+e)==1?Za:function(t,n){return n-t?sie(t,n,e):Iv(isNaN(t)?n:t)}}function Za(e,t){var n=t-e;return n?x8(e,n):Iv(isNaN(e)?t:e)}(function e(t){var n=lie(t);function r(i,o){var a=n((i=xl(i)).r,(o=xl(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=Za(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r})(1);function cie(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=xl(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=o(u),s+""}}}var fie=cie(aie);function w8(e){return function t(n){n=+n;function r(i,o){var a=e((i=yr(i)).h,(o=yr(o)).h),s=Za(i.s,o.s),u=Za(i.l,o.l),l=Za(i.opacity,o.opacity);return function(c){return i.h=a(c),i.s=s(c),i.l=u(Math.pow(c,n)),i.opacity=l(c),i+""}}return r.gamma=t,r}(1)}w8(uie);var zv=w8(Za),Oe=e=>fie(e[e.length-1]),_8=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(ge),hie=Oe(_8),$8=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(ge),die=Oe($8),S8=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(ge),pie=Oe(S8),M8=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(ge),gie=Oe(M8),T8=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(ge),mie=Oe(T8),k8=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(ge),yie=Oe(k8),O8=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(ge),vie=Oe(O8),C8=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(ge),bie=Oe(C8),P8=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(ge),xie=Oe(P8),E8=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(ge),wie=Oe(E8),A8=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(ge),_ie=Oe(A8),N8=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(ge),$ie=Oe(N8),R8=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(ge),Sie=Oe(R8),L8=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(ge),Mie=Oe(L8),D8=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(ge),Tie=Oe(D8),I8=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(ge),kie=Oe(I8),z8=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(ge),Oie=Oe(z8),F8=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(ge),Cie=Oe(F8),B8=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(ge),Pie=Oe(B8),j8=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(ge),Eie=Oe(j8),W8=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(ge),Aie=Oe(W8),H8=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(ge),Nie=Oe(H8),q8=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(ge),Rie=Oe(q8),U8=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(ge),Lie=Oe(U8),V8=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(ge),Die=Oe(V8),Y8=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(ge),Iie=Oe(Y8),G8=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(ge),zie=Oe(G8);function Fie(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}var Bie=zv(yr(300,.5,0),yr(-240,.5,1)),jie=zv(yr(-100,.75,.35),yr(80,1.5,.8)),Wie=zv(yr(260,.75,.35),yr(80,1.5,.8)),Td=yr();function Hie(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Td.h=360*e-100,Td.s=1.5-1.5*t,Td.l=.8-.9*t,Td+""}var kd=xl(),qie=Math.PI/3,Uie=Math.PI*2/3;function Vie(e){var t;return e=(.5-e)*Math.PI,kd.r=255*(t=Math.sin(e))*t,kd.g=255*(t=Math.sin(e+qie))*t,kd.b=255*(t=Math.sin(e+Uie))*t,kd+""}function Yie(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Od(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var Gie=Od(ge("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Xie=Od(ge("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Kie=Od(ge("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Qie=Od(ge("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function pe(e){return function(){return e}}var X8=Math.abs,_t=Math.atan2,$o=Math.cos,Zie=Math.max,Fv=Math.min,vr=Math.sin,Ja=Math.sqrt,$t=1e-12,mi=Math.PI,Cd=mi/2,yi=2*mi;function Jie(e){return e>1?0:e<-1?mi:Math.acos(e)}function K8(e){return e>=1?Cd:e<=-1?-Cd:Math.asin(e)}function eoe(e){return e.innerRadius}function toe(e){return e.outerRadius}function noe(e){return e.startAngle}function roe(e){return e.endAngle}function ioe(e){return e&&e.padAngle}function ooe(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,h=f*u-c*l;if(!(h*h<$t))return h=(c*(t-o)-f*(e-i))/h,[e+h*u,t+h*l]}function Pd(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/Ja(s*s+u*u),c=l*u,f=-l*s,h=e+c,d=t+f,p=n+c,m=r+f,g=(h+p)/2,y=(d+m)/2,v=p-h,x=m-d,b=v*v+x*x,_=i-o,w=h*m-p*d,$=(x<0?-1:1)*Ja(Zie(0,_*_*b-w*w)),M=(w*x-v*$)/b,k=(-w*v-x*$)/b,S=(w*x+v*$)/b,T=(-w*v+x*$)/b,A=M-g,P=k-y,O=S-g,E=T-y;return A*A+P*P>O*O+E*E&&(M=S,k=T),{cx:M,cy:k,x01:-c,y01:-f,x11:M*(i/_-1),y11:k*(i/_-1)}}function aoe(){var e=eoe,t=toe,n=pe(0),r=null,i=noe,o=roe,a=ioe,s=null;function u(){var l,c,f=+e.apply(this,arguments),h=+t.apply(this,arguments),d=i.apply(this,arguments)-Cd,p=o.apply(this,arguments)-Cd,m=X8(p-d),g=p>d;if(s||(s=l=go()),h<f&&(c=h,h=f,f=c),!(h>$t))s.moveTo(0,0);else if(m>yi-$t)s.moveTo(h*$o(d),h*vr(d)),s.arc(0,0,h,d,p,!g),f>$t&&(s.moveTo(f*$o(p),f*vr(p)),s.arc(0,0,f,p,d,g));else{var y=d,v=p,x=d,b=p,_=m,w=m,$=a.apply(this,arguments)/2,M=$>$t&&(r?+r.apply(this,arguments):Ja(f*f+h*h)),k=Fv(X8(h-f)/2,+n.apply(this,arguments)),S=k,T=k,A,P;if(M>$t){var O=K8(M/f*vr($)),E=K8(M/h*vr($));(_-=O*2)>$t?(O*=g?1:-1,x+=O,b-=O):(_=0,x=b=(d+p)/2),(w-=E*2)>$t?(E*=g?1:-1,y+=E,v-=E):(w=0,y=v=(d+p)/2)}var C=h*$o(y),R=h*vr(y),D=f*$o(b),L=f*vr(b);if(k>$t){var F=h*$o(v),W=h*vr(v),U=f*$o(x),te=f*vr(x),Q;if(m<mi&&(Q=ooe(C,R,U,te,F,W,D,L))){var J=C-Q[0],ue=R-Q[1],re=F-Q[0],oe=W-Q[1],I=1/vr(Jie((J*re+ue*oe)/(Ja(J*J+ue*ue)*Ja(re*re+oe*oe)))/2),V=Ja(Q[0]*Q[0]+Q[1]*Q[1]);S=Fv(k,(f-V)/(I-1)),T=Fv(k,(h-V)/(I+1))}}w>$t?T>$t?(A=Pd(U,te,C,R,h,T,g),P=Pd(F,W,D,L,h,T,g),s.moveTo(A.cx+A.x01,A.cy+A.y01),T<k?s.arc(A.cx,A.cy,T,_t(A.y01,A.x01),_t(P.y01,P.x01),!g):(s.arc(A.cx,A.cy,T,_t(A.y01,A.x01),_t(A.y11,A.x11),!g),s.arc(0,0,h,_t(A.cy+A.y11,A.cx+A.x11),_t(P.cy+P.y11,P.cx+P.x11),!g),s.arc(P.cx,P.cy,T,_t(P.y11,P.x11),_t(P.y01,P.x01),!g))):(s.moveTo(C,R),s.arc(0,0,h,y,v,!g)):s.moveTo(C,R),!(f>$t)||!(_>$t)?s.lineTo(D,L):S>$t?(A=Pd(D,L,F,W,f,-S,g),P=Pd(C,R,U,te,f,-S,g),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<k?s.arc(A.cx,A.cy,S,_t(A.y01,A.x01),_t(P.y01,P.x01),!g):(s.arc(A.cx,A.cy,S,_t(A.y01,A.x01),_t(A.y11,A.x11),!g),s.arc(0,0,f,_t(A.cy+A.y11,A.cx+A.x11),_t(P.cy+P.y11,P.cx+P.x11),g),s.arc(P.cx,P.cy,S,_t(P.y11,P.x11),_t(P.y01,P.x01),!g))):s.arc(0,0,f,b,x,g)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-mi/2;return[$o(c)*l,vr(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:pe(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:pe(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:pe(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:pe(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:pe(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:pe(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:pe(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}var soe=Array.prototype.slice;function Ed(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Q8(e){this._context=e}Q8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ad(e){return new Q8(e)}function Bv(e){return e[0]}function jv(e){return e[1]}function Wv(e,t){var n=pe(!0),r=null,i=Ad,o=null;e=typeof e=="function"?e:e===void 0?Bv:pe(e),t=typeof t=="function"?t:t===void 0?jv:pe(t);function a(s){var u,l=(s=Ed(s)).length,c,f=!1,h;for(r==null&&(o=i(h=go())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(c,u,s),+t(c,u,s));if(h)return o=null,h+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:pe(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:pe(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:pe(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function Z8(e,t,n){var r=null,i=pe(!0),o=null,a=Ad,s=null;e=typeof e=="function"?e:e===void 0?Bv:pe(+e),t=typeof t=="function"?t:pe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?jv:pe(+n);function u(c){var f,h,d,p=(c=Ed(c)).length,m,g=!1,y,v=new Array(p),x=new Array(p);for(o==null&&(s=a(y=go())),f=0;f<=p;++f){if(!(f<p&&i(m=c[f],f,c))===g)if(g=!g)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=f-1;d>=h;--d)s.point(v[d],x[d]);s.lineEnd(),s.areaEnd()}g&&(v[f]=+e(m,f,c),x[f]=+t(m,f,c),s.point(r?+r(m,f,c):v[f],n?+n(m,f,c):x[f]))}if(y)return s=null,y+""||null}function l(){return Wv().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:pe(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:pe(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:pe(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:pe(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:pe(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:pe(+c),u):n},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(n)},u.lineX1=function(){return l().x(r).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:pe(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function uoe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function loe(e){return e}function coe(){var e=loe,t=uoe,n=null,r=pe(0),i=pe(yi),o=pe(0);function a(s){var u,l=(s=Ed(s)).length,c,f,h=0,d=new Array(l),p=new Array(l),m=+r.apply(this,arguments),g=Math.min(yi,Math.max(-yi,i.apply(this,arguments)-m)),y,v=Math.min(Math.abs(g)/l,o.apply(this,arguments)),x=v*(g<0?-1:1),b;for(u=0;u<l;++u)(b=p[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(_,w){return t(p[_],p[w])}):n!=null&&d.sort(function(_,w){return n(s[_],s[w])}),u=0,f=h?(g-l*x)/h:0;u<l;++u,m=y)c=d[u],b=p[c],y=m+(b>0?b*f:0)+x,p[c]={data:s[c],index:u,value:b,startAngle:m,endAngle:y,padAngle:v};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:pe(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:pe(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:pe(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:pe(+s),a):o},a}var J8=Hv(Ad);function ek(e){this._curve=e}ek.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))}};function Hv(e){function t(n){return new ek(e(n))}return t._curve=e,t}function _l(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Hv(n)):t()._curve},e}function tk(){return _l(Wv().curve(J8))}function nk(){var e=Z8().curve(J8),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=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 _l(n())},delete e.lineX0,e.lineEndAngle=function(){return _l(r())},delete e.lineX1,e.lineInnerRadius=function(){return _l(i())},delete e.lineY0,e.lineOuterRadius=function(){return _l(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Hv(a)):t()._curve},e}function $l(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}function foe(e){return e.source}function hoe(e){return e.target}function qv(e){var t=foe,n=hoe,r=Bv,i=jv,o=null;function a(){var s,u=soe.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=go()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),s)return o=null,s+""||null}return a.source=function(s){return arguments.length?(t=s,a):t},a.target=function(s){return arguments.length?(n=s,a):n},a.x=function(s){return arguments.length?(r=typeof s=="function"?s:pe(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:pe(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function doe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function poe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function goe(e,t,n,r,i){var o=$l(t,n),a=$l(t,n=(n+i)/2),s=$l(r,n),u=$l(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function moe(){return qv(doe)}function yoe(){return qv(poe)}function voe(){var e=qv(goe);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var Uv={draw:function(e,t){var n=Math.sqrt(t/mi);e.moveTo(n,0),e.arc(0,0,n,0,yi)}},rk={draw:function(e,t){var n=Math.sqrt(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()}},ik=Math.sqrt(1/3),boe=ik*2,ok={draw:function(e,t){var n=Math.sqrt(t/boe),r=n*ik;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},xoe=.8908130915292852,ak=Math.sin(mi/10)/Math.sin(7*mi/10),woe=Math.sin(yi/10)*ak,_oe=-Math.cos(yi/10)*ak,sk={draw:function(e,t){var n=Math.sqrt(t*xoe),r=woe*n,i=_oe*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=yi*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},uk={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Vv=Math.sqrt(3),lk={draw:function(e,t){var n=-Math.sqrt(t/(Vv*3));e.moveTo(0,n*2),e.lineTo(-Vv*n,-n),e.lineTo(Vv*n,-n),e.closePath()}},Sn=-.5,Mn=Math.sqrt(3)/2,Yv=1/Math.sqrt(12),$oe=(Yv/2+1)*3,ck={draw:function(e,t){var n=Math.sqrt(t/$oe),r=n/2,i=n*Yv,o=r,a=n*Yv+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(Sn*r-Mn*i,Mn*r+Sn*i),e.lineTo(Sn*o-Mn*a,Mn*o+Sn*a),e.lineTo(Sn*s-Mn*u,Mn*s+Sn*u),e.lineTo(Sn*r+Mn*i,Sn*i-Mn*r),e.lineTo(Sn*o+Mn*a,Sn*a-Mn*o),e.lineTo(Sn*s+Mn*u,Sn*u-Mn*s),e.closePath()}},Soe=[Uv,rk,ok,uk,sk,lk,ck];function Moe(e,t){var n=null;e=typeof e=="function"?e:pe(e||Uv),t=typeof t=="function"?t:pe(t===void 0?64:+t);function r(){var i;if(n||(n=i=go()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:pe(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:pe(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function vi(){}function Nd(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 Rd(e){this._context=e}Rd.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:Nd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Toe(e){return new Rd(e)}function fk(e){this._context=e}fk.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function koe(e){return new fk(e)}function hk(e){this._context=e}hk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var 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:Nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ooe(e){return new hk(e)}class dk{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Coe(e){return new dk(e,!0)}function Poe(e){return new dk(e,!1)}function pk(e,t){this._basis=new Rd(e),this._beta=t}pk.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=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Eoe=function e(t){function n(r){return t===1?new Rd(r):new pk(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ld(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 Gv(e,t){this._context=e,this._k=(1-t)/6}Gv.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:Ld(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ld(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Aoe=function e(t){function n(r){return new Gv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Xv(e,t){this._context=e,this._k=(1-t)/6}Xv.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Ld(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Noe=function e(t){function n(r){return new Xv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Kv(e,t){this._context=e,this._k=(1-t)/6}Kv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:Ld(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Roe=function e(t){function n(r){return new Kv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Qv(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>$t){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>$t){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function gk(e,t){this._context=e,this._alpha=t}gk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var 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:Qv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Loe=function e(t){function n(r){return t?new gk(r,t):new Gv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function mk(e,t){this._context=e,this._alpha=t}mk.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Qv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Doe=function e(t){function n(r){return t?new mk(r,t):new Xv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function yk(e,t){this._context=e,this._alpha=t}yk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:Qv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ioe=function e(t){function n(r){return t?new yk(r,t):new Kv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function vk(e){this._context=e}vk.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function zoe(e){return new vk(e)}function bk(e){return e<0?-1:1}function xk(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(bk(o)+bk(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function wk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Zv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Dd(e){this._context=e}Dd.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:Zv(this,this._t0,wk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zv(this,wk(this,n=xk(this,e,t)),n);break;default:Zv(this,this._t0,n=xk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function _k(e){this._context=new $k(e)}(_k.prototype=Object.create(Dd.prototype)).point=function(e,t){Dd.prototype.point.call(this,t,e)};function $k(e){this._context=e}$k.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,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Foe(e){return new Dd(e)}function Boe(e){return new _k(e)}function Sk(e){this._context=e}Sk.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]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Mk(e),i=Mk(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Mk(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function joe(e){return new Sk(e)}function Id(e,t){this._context=e,this._t=t}Id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Woe(e){return new Id(e,.5)}function Hoe(e){return new Id(e,0)}function qoe(e){return new Id(e,1)}function es(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function ts(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Uoe(e,t){return e[t]}function Voe(e){const t=[];return t.key=e,t}function Yoe(){var e=pe([]),t=ts,n=es,r=Uoe;function i(o){var a=Array.from(e.apply(this,arguments),Voe),s,u=a.length,l=-1,c;for(const f of o)for(s=0,++l;s<u;++s)(a[s][l]=[0,+r(f,a[s].key,l,o)]).data=f;for(s=0,c=Ed(t(a));s<u;++s)a[c[s]].index=s;return n(a,c),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:pe(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:pe(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?ts:typeof o=="function"?o:pe(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?es:o,i):n},i}function Goe(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}es(e,t)}}function Xoe(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Koe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}es(e,t)}}function Qoe(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],f=c[r][1]||0,h=c[r-1][1]||0,d=(f-h)/2,p=0;p<s;++p){var m=e[t[p]],g=m[r][1]||0,y=m[r-1][1]||0;d+=g-y}u+=f,l+=d*f}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,es(e,t)}}function Tk(e){var t=e.map(Zoe);return ts(e).sort(function(n,r){return t[n]-t[r]})}function Zoe(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function kk(e){var t=e.map(Ok);return ts(e).sort(function(n,r){return t[n]-t[r]})}function Ok(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function Joe(e){return kk(e).reverse()}function eae(e){var t=e.length,n,r,i=e.map(Ok),o=Tk(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function tae(e){return ts(e).reverse()}var nae=1e-12;function Ck(e){return((e=Math.exp(e))+1/e)/2}function rae(e){return((e=Math.exp(e))-1/e)/2}function iae(e){return((e=Math.exp(2*e))-1)/(e+1)}var oae=function e(t,n,r){function i(o,a){var s=o[0],u=o[1],l=o[2],c=a[0],f=a[1],h=a[2],d=c-s,p=f-u,m=d*d+p*p,g,y;if(m<nae)y=Math.log(h/l)/t,g=function($){return[s+$*d,u+$*p,l*Math.exp(t*$*y)]};else{var v=Math.sqrt(m),x=(h*h-l*l+r*m)/(2*l*n*v),b=(h*h-l*l-r*m)/(2*h*n*v),_=Math.log(Math.sqrt(x*x+1)-x),w=Math.log(Math.sqrt(b*b+1)-b);y=(w-_)/t,g=function($){var M=$*y,k=Ck(_),S=l/(n*v)*(k*iae(t*M+_)-rae(_));return[s+S*d,u+S*p,l*k/Ck(t*M+_)]}}return g.duration=y*1e3*t/Math.SQRT2,g}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,u=s*s;return e(a,s,u)},i}(Math.SQRT2,2,4),zd=e=>()=>e;function aae(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Fr(e,t,n){this.k=e,this.x=t,this.y=n}Fr.prototype={constructor:Fr,scale:function(e){return e===1?this:new Fr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Fr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Fd=new Fr(1,0,0);Pk.prototype=Fr.prototype;function Pk(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Fd;return e.__zoom}function Jv(e){e.stopImmediatePropagation()}function Sl(e){e.preventDefault(),e.stopImmediatePropagation()}function sae(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function uae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ek(){return this.__zoom||Fd}function lae(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function cae(){return navigator.maxTouchPoints||"ontouchstart"in this}function fae(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function hae(){var e=sae,t=uae,n=fae,r=lae,i=cae,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=oae,l=ba("start","zoom","end"),c,f,h,d=500,p=150,m=0,g=10;function y(O){O.property("__zoom",Ek).on("wheel.zoom",M).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(i).on("touchstart.zoom",T).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",P).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(O,E,C,R){var D=O.selection?O.selection():O;D.property("__zoom",Ek),O!==D?_(O,E,C,R):D.interrupt().each(function(){w(this,arguments).event(R).start().zoom(null,typeof E=="function"?E.apply(this,arguments):E).end()})},y.scaleBy=function(O,E,C,R){y.scaleTo(O,function(){var D=this.__zoom.k,L=typeof E=="function"?E.apply(this,arguments):E;return D*L},C,R)},y.scaleTo=function(O,E,C,R){y.transform(O,function(){var D=t.apply(this,arguments),L=this.__zoom,F=C==null?b(D):typeof C=="function"?C.apply(this,arguments):C,W=L.invert(F),U=typeof E=="function"?E.apply(this,arguments):E;return n(x(v(L,U),F,W),D,a)},C,R)},y.translateBy=function(O,E,C,R){y.transform(O,function(){return n(this.__zoom.translate(typeof E=="function"?E.apply(this,arguments):E,typeof C=="function"?C.apply(this,arguments):C),t.apply(this,arguments),a)},null,R)},y.translateTo=function(O,E,C,R,D){y.transform(O,function(){var L=t.apply(this,arguments),F=this.__zoom,W=R==null?b(L):typeof R=="function"?R.apply(this,arguments):R;return n(Fd.translate(W[0],W[1]).scale(F.k).translate(typeof E=="function"?-E.apply(this,arguments):-E,typeof C=="function"?-C.apply(this,arguments):-C),L,a)},R,D)};function v(O,E){return E=Math.max(o[0],Math.min(o[1],E)),E===O.k?O:new Fr(E,O.x,O.y)}function x(O,E,C){var R=E[0]-C[0]*O.k,D=E[1]-C[1]*O.k;return R===O.x&&D===O.y?O:new Fr(O.k,R,D)}function b(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function _(O,E,C,R){O.on("start.zoom",function(){w(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(R).end()}).tween("zoom",function(){var D=this,L=arguments,F=w(D,L).event(R),W=t.apply(D,L),U=C==null?b(W):typeof C=="function"?C.apply(D,L):C,te=Math.max(W[1][0]-W[0][0],W[1][1]-W[0][1]),Q=D.__zoom,J=typeof E=="function"?E.apply(D,L):E,ue=u(Q.invert(U).concat(te/Q.k),J.invert(U).concat(te/J.k));return function(re){if(re===1)re=J;else{var oe=ue(re),I=te/oe[2];re=new Fr(I,U[0]-oe[0]*I,U[1]-oe[1]*I)}F.zoom(null,re)}})}function w(O,E,C){return!C&&O.__zooming||new $(O,E)}function $(O,E){this.that=O,this.args=E,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,E),this.taps=0}$.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,E){return this.mouse&&O!=="mouse"&&(this.mouse[1]=E.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=E.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=E.invert(this.touch1[0])),this.that.__zoom=E,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var E=bt(this.that).datum();l.call(O,this.that,new aae(O,{sourceEvent:this.sourceEvent,target:y,type:O,transform:this.that.__zoom,dispatch:l}),E)}};function M(O,...E){if(!e.apply(this,arguments))return;var C=w(this,E).event(O),R=this.__zoom,D=Math.max(o[0],Math.min(o[1],R.k*Math.pow(2,r.apply(this,arguments)))),L=an(O);if(C.wheel)(C.mouse[0][0]!==L[0]||C.mouse[0][1]!==L[1])&&(C.mouse[1]=R.invert(C.mouse[0]=L)),clearTimeout(C.wheel);else{if(R.k===D)return;C.mouse=[L,R.invert(L)],eo(this),C.start()}Sl(O),C.wheel=setTimeout(F,p),C.zoom("mouse",n(x(v(R,D),C.mouse[0],C.mouse[1]),C.extent,a));function F(){C.wheel=null,C.end()}}function k(O,...E){if(h||!e.apply(this,arguments))return;var C=w(this,E,!0).event(O),R=bt(O.view).on("mousemove.zoom",U,!0).on("mouseup.zoom",te,!0),D=an(O,L),L=O.currentTarget,F=O.clientX,W=O.clientY;qf(O.view),Jv(O),C.mouse=[D,this.__zoom.invert(D)],eo(this),C.start();function U(Q){if(Sl(Q),!C.moved){var J=Q.clientX-F,ue=Q.clientY-W;C.moved=J*J+ue*ue>m}C.event(Q).zoom("mouse",n(x(C.that.__zoom,C.mouse[0]=an(Q,L),C.mouse[1]),C.extent,a))}function te(Q){R.on("mousemove.zoom mouseup.zoom",null),Uf(Q.view,C.moved),Sl(Q),C.event(Q).end()}}function S(O,...E){if(!!e.apply(this,arguments)){var C=this.__zoom,R=an(O.changedTouches?O.changedTouches[0]:O,this),D=C.invert(R),L=C.k*(O.shiftKey?.5:2),F=n(x(v(C,L),R,D),t.apply(this,E),a);Sl(O),s>0?bt(this).transition().duration(s).call(_,F,R,O):bt(this).call(y.transform,F,R,O)}}function T(O,...E){if(!!e.apply(this,arguments)){var C=O.touches,R=C.length,D=w(this,E,O.changedTouches.length===R).event(O),L,F,W,U;for(Jv(O),F=0;F<R;++F)W=C[F],U=an(W,this),U=[U,this.__zoom.invert(U),W.identifier],D.touch0?!D.touch1&&D.touch0[2]!==U[2]&&(D.touch1=U,D.taps=0):(D.touch0=U,L=!0,D.taps=1+!!c);c&&(c=clearTimeout(c)),L&&(D.taps<2&&(f=U[0],c=setTimeout(function(){c=null},d)),eo(this),D.start())}}function A(O,...E){if(!!this.__zooming){var C=w(this,E).event(O),R=O.changedTouches,D=R.length,L,F,W,U;for(Sl(O),L=0;L<D;++L)F=R[L],W=an(F,this),C.touch0&&C.touch0[2]===F.identifier?C.touch0[0]=W:C.touch1&&C.touch1[2]===F.identifier&&(C.touch1[0]=W);if(F=C.that.__zoom,C.touch1){var te=C.touch0[0],Q=C.touch0[1],J=C.touch1[0],ue=C.touch1[1],re=(re=J[0]-te[0])*re+(re=J[1]-te[1])*re,oe=(oe=ue[0]-Q[0])*oe+(oe=ue[1]-Q[1])*oe;F=v(F,Math.sqrt(re/oe)),W=[(te[0]+J[0])/2,(te[1]+J[1])/2],U=[(Q[0]+ue[0])/2,(Q[1]+ue[1])/2]}else if(C.touch0)W=C.touch0[0],U=C.touch0[1];else return;C.zoom("touch",n(x(F,W,U),C.extent,a))}}function P(O,...E){if(!!this.__zooming){var C=w(this,E).event(O),R=O.changedTouches,D=R.length,L,F;for(Jv(O),h&&clearTimeout(h),h=setTimeout(function(){h=null},d),L=0;L<D;++L)F=R[L],C.touch0&&C.touch0[2]===F.identifier?delete C.touch0:C.touch1&&C.touch1[2]===F.identifier&&delete C.touch1;if(C.touch1&&!C.touch0&&(C.touch0=C.touch1,delete C.touch1),C.touch0)C.touch0[1]=this.__zoom.invert(C.touch0[0]);else if(C.end(),C.taps===2&&(F=an(F,this),Math.hypot(f[0]-F[0],f[1]-F[1])<g)){var W=bt(this).on("dblclick.zoom");W&&W.apply(this,arguments)}}}return y.wheelDelta=function(O){return arguments.length?(r=typeof O=="function"?O:zd(+O),y):r},y.filter=function(O){return arguments.length?(e=typeof O=="function"?O:zd(!!O),y):e},y.touchable=function(O){return arguments.length?(i=typeof O=="function"?O:zd(!!O),y):i},y.extent=function(O){return arguments.length?(t=typeof O=="function"?O:zd([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),y):t},y.scaleExtent=function(O){return arguments.length?(o[0]=+O[0],o[1]=+O[1],y):[o[0],o[1]]},y.translateExtent=function(O){return arguments.length?(a[0][0]=+O[0][0],a[1][0]=+O[1][0],a[0][1]=+O[0][1],a[1][1]=+O[1][1],y):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},y.constrain=function(O){return arguments.length?(n=O,y):n},y.duration=function(O){return arguments.length?(s=+O,y):s},y.interpolate=function(O){return arguments.length?(u=O,y):u},y.on=function(){var O=l.on.apply(l,arguments);return O===l?y:O},y.clickDistance=function(O){return arguments.length?(m=(O=+O)*O,y):Math.sqrt(m)},y.tapDistance=function(O){return arguments.length?(g=+O,y):g},y}var dae=Object.freeze(Object.defineProperty({__proto__:null,version:Fq,bisect:Ki,bisectRight:h3,bisectLeft:Wq,bisectCenter:Hq,ascending:Ye,bisector:Ef,count:Af,cross:Gq,cumsum:Xq,descending:Kq,deviation:p3,extent:Nf,Adder:Xe,fsum:Qq,fcumsum:Zq,group:b3,groups:eU,index:nU,indexes:rU,rollup:x3,rollups:tU,groupSort:iU,bin:M3,histogram:M3,thresholdFreedmanDiaconis:sU,thresholdScott:uU,thresholdSturges:S3,max:Om,maxIndex:k3,mean:lU,median:cU,merge:Pm,min:Df,minIndex:O3,nice:$3,pairs:hU,permute:_3,quantile:vu,quantileSorted:T3,quickselect:Cm,range:ri,least:pU,leastIndex:C3,greatest:gU,greatestIndex:mU,scan:yU,shuffle:vU,shuffler:P3,sum:bU,ticks:gu,tickIncrement:mu,tickStep:Lf,transpose:E3,variance:d3,zip:wU,every:_U,some:$U,filter:SU,map:MU,reduce:TU,reverse:kU,sort:Sm,difference:OU,disjoint:CU,intersection:EU,subset:AU,superset:A3,union:NU,InternMap:g3,InternSet:Jq,axisTop:BU,axisRight:jU,axisBottom:WU,axisLeft:HU,brush:mK,brushX:pK,brushY:gK,brushSelection:dK,chord:vK,chordTranspose:bK,chordDirected:xK,ribbon:OK,ribbonArrow:CK,color:Aa,rgb:Fu,hsl:ch,lab:hh,hcl:dh,lch:BK,gray:FK,cubehelix:gh,contours:yM,contourDensity:sQ,Delaunay:W1,Voronoi:xM,dispatch:wM,drag:EY,dragDisable:qf,dragEnable:Uf,dsvFormat:xh,csvParse:TM,csvParseRows:kQ,csvFormat:OQ,csvFormatBody:CQ,csvFormatRows:PQ,csvFormatRow:EQ,csvFormatValue:AQ,tsvParse:kM,tsvParseRows:NQ,tsvFormat:RQ,tsvFormatBody:LQ,tsvFormatRows:DQ,tsvFormatRow:IQ,tsvFormatValue:zQ,autoType:FQ,easeLinear:TX,easeQuad:TS,easeQuadIn:kX,easeQuadOut:OX,easeQuadInOut:TS,easeCubic:d1,easeCubicIn:CX,easeCubicOut:PX,easeCubicInOut:d1,easePoly:kS,easePolyIn:EX,easePolyOut:AX,easePolyInOut:kS,easeSin:PS,easeSinIn:NX,easeSinOut:RX,easeSinInOut:PS,easeExp:ES,easeExpIn:LX,easeExpOut:DX,easeExpInOut:ES,easeCircle:AS,easeCircleIn:IX,easeCircleOut:zX,easeCircleInOut:AS,easeBounce:Lu,easeBounceIn:YX,easeBounceOut:Lu,easeBounceInOut:GX,easeBack:NS,easeBackIn:XX,easeBackOut:KX,easeBackInOut:NS,easeElastic:RS,easeElasticIn:QX,easeElasticOut:RS,easeElasticInOut:ZX,blob:WQ,buffer:qQ,dsv:VQ,csv:YQ,tsv:GQ,image:XQ,json:QQ,text:wh,xml:ZQ,html:JQ,svg:eZ,forceCenter:tZ,forceCollide:xZ,forceLink:_Z,forceManyBody:EZ,forceRadial:AZ,forceSimulation:PZ,forceX:NZ,forceY:RZ,formatDefaultLocale:BM,get format(){return Th},get formatPrefix(){return G1},formatLocale:FM,formatSpecifier:Hu,FormatSpecifier:Sh,precisionFixed:jM,precisionPrefix:WM,precisionRound:HM,geoArea:qZ,geoBounds:GZ,geoCentroid:eJ,geoCircle:tJ,geoClipAntimeridian:hy,geoClipCircle:_T,geoClipExtent:uJ,geoClipRectangle:Yh,geoContains:gJ,geoDistance:Kh,geoGraticule:AT,geoGraticule10:mJ,geoInterpolate:yJ,geoLength:$T,geoPath:CJ,geoAlbers:e4,geoAlbersUsa:FJ,geoAzimuthalEqualArea:BJ,geoAzimuthalEqualAreaRaw:Ny,geoAzimuthalEquidistant:jJ,geoAzimuthalEquidistantRaw:Ry,geoConicConformal:HJ,geoConicConformalRaw:r4,geoConicEqualArea:od,geoConicEqualAreaRaw:JT,geoConicEquidistant:UJ,geoConicEquidistantRaw:i4,geoEqualEarth:YJ,geoEqualEarthRaw:Ly,geoEquirectangular:qJ,geoEquirectangularRaw:il,geoGnomonic:GJ,geoGnomonicRaw:Dy,geoIdentity:XJ,geoProjection:pr,geoProjectionMutator:Ey,geoMercator:WJ,geoMercatorRaw:rl,geoNaturalEarth1:KJ,geoNaturalEarth1Raw:Iy,geoOrthographic:QJ,geoOrthographicRaw:zy,geoStereographic:ZJ,geoStereographicRaw:Fy,geoTransverseMercator:JJ,geoTransverseMercatorRaw:By,geoRotation:pT,geoStream:In,geoTransform:PJ,cluster:see,hierarchy:jy,pack:Lee,packSiblings:Aee,packEnclose:a4,partition:Dee,stratify:Bee,tree:Vee,treemap:Yee,treemapBinary:Gee,treemapDice:cl,treemapSlice:hd,treemapSliceDice:Xee,treemapSquarify:b4,treemapResquarify:Kee,interpolate:ho,interpolateArray:tte,interpolateBasis:w4,interpolateBasisClosed:_4,interpolateDate:k4,interpolateDiscrete:ite,interpolateHue:ote,interpolateNumber:Bn,interpolateNumberArray:Yy,interpolateObject:O4,interpolateRound:gd,interpolateString:C4,interpolateTransformCss:ute,interpolateTransformSvg:lte,interpolateZoom:dte,interpolateRgb:Vy,interpolateRgbBasis:Jee,interpolateRgbBasisClosed:ete,interpolateHsl:pte,interpolateHslLong:gte,interpolateLab:mte,interpolateHcl:yte,interpolateHclLong:vte,interpolateCubehelix:bte,interpolateCubehelixLong:xte,piecewise:I4,quantize:wte,path:go,polygonArea:$te,polygonCentroid:Ste,polygonHull:kte,polygonContains:Ote,polygonLength:Cte,quadtree:_h,randomUniform:Pte,randomInt:Ete,randomNormal:ev,randomLogNormal:Ate,randomBates:Nte,randomIrwinHall:F4,randomExponential:Rte,randomPareto:Lte,randomBernoulli:Dte,randomGeometric:B4,randomBinomial:W4,randomGamma:tv,randomBeta:j4,randomWeibull:Ite,randomCauchy:zte,randomLogistic:Fte,randomPoisson:Bte,randomLcg:Hte,scaleBand:iv,scalePoint:qte,scaleIdentity:G4,scaleLinear:Y4,scaleLog:J4,scaleSymlog:n6,scaleOrdinal:rv,scaleImplicit:nv,scalePow:cv,scaleSqrt:nne,scaleRadial:o6,scaleQuantile:a6,scaleQuantize:s6,scaleThreshold:u6,scaleTime:Nre,scaleUtc:Rre,scaleSequential:e8,scaleSequentialLog:t8,scaleSequentialPow:Cv,scaleSequentialSqrt:Lre,scaleSequentialSymlog:n8,scaleSequentialQuantile:r8,scaleDiverging:i8,scaleDivergingLog:o8,scaleDivergingPow:Pv,scaleDivergingSqrt:Dre,scaleDivergingSymlog:a8,tickFormat:V4,schemeCategory10:Ire,schemeAccent:zre,schemeDark2:Fre,schemePaired:Bre,schemePastel1:jre,schemePastel2:Wre,schemeSet1:Hre,schemeSet2:qre,schemeSet3:Ure,schemeTableau10:Vre,interpolateBrBG:hie,schemeBrBG:_8,interpolatePRGn:die,schemePRGn:$8,interpolatePiYG:pie,schemePiYG:S8,interpolatePuOr:gie,schemePuOr:M8,interpolateRdBu:mie,schemeRdBu:T8,interpolateRdGy:yie,schemeRdGy:k8,interpolateRdYlBu:vie,schemeRdYlBu:O8,interpolateRdYlGn:bie,schemeRdYlGn:C8,interpolateSpectral:xie,schemeSpectral:P8,interpolateBuGn:wie,schemeBuGn:E8,interpolateBuPu:_ie,schemeBuPu:A8,interpolateGnBu:$ie,schemeGnBu:N8,interpolateOrRd:Sie,schemeOrRd:R8,interpolatePuBuGn:Mie,schemePuBuGn:L8,interpolatePuBu:Tie,schemePuBu:D8,interpolatePuRd:kie,schemePuRd:I8,interpolateRdPu:Oie,schemeRdPu:z8,interpolateYlGnBu:Cie,schemeYlGnBu:F8,interpolateYlGn:Pie,schemeYlGn:B8,interpolateYlOrBr:Eie,schemeYlOrBr:j8,interpolateYlOrRd:Aie,schemeYlOrRd:W8,interpolateBlues:Nie,schemeBlues:H8,interpolateGreens:Rie,schemeGreens:q8,interpolateGreys:Lie,schemeGreys:U8,interpolatePurples:Die,schemePurples:V8,interpolateReds:Iie,schemeReds:Y8,interpolateOranges:zie,schemeOranges:G8,interpolateCividis:Fie,interpolateCubehelixDefault:Bie,interpolateRainbow:Hie,interpolateWarm:jie,interpolateCool:Wie,interpolateSinebow:Vie,interpolateTurbo:Yie,interpolateViridis:Gie,interpolateMagma:Xie,interpolateInferno:Kie,interpolatePlasma:Qie,create:$Y,creator:jf,local:W3,matcher:Im,namespace:xu,namespaces:Rm,pointer:an,pointers:MY,select:bt,selectAll:TY,selection:Zi,selector:Wf,selectorAll:Dm,style:Qi,window:zm,arc:aoe,area:Z8,line:Wv,pie:coe,areaRadial:nk,radialArea:nk,lineRadial:tk,radialLine:tk,pointRadial:$l,linkHorizontal:moe,linkVertical:yoe,linkRadial:voe,symbol:Moe,symbols:Soe,symbolCircle:Uv,symbolCross:rk,symbolDiamond:ok,symbolSquare:uk,symbolStar:sk,symbolTriangle:lk,symbolWye:ck,curveBasisClosed:koe,curveBasisOpen:Ooe,curveBasis:Toe,curveBumpX:Coe,curveBumpY:Poe,curveBundle:Eoe,curveCardinalClosed:Noe,curveCardinalOpen:Roe,curveCardinal:Aoe,curveCatmullRomClosed:Doe,curveCatmullRomOpen:Ioe,curveCatmullRom:Loe,curveLinearClosed:zoe,curveLinear:Ad,curveMonotoneX:Foe,curveMonotoneY:Boe,curveNatural:joe,curveStep:Woe,curveStepAfter:qoe,curveStepBefore:Hoe,stack:Yoe,stackOffsetExpand:Goe,stackOffsetDiverging:Xoe,stackOffsetNone:es,stackOffsetSilhouette:Koe,stackOffsetWiggle:Qoe,stackOrderAppearance:Tk,stackOrderAscending:kk,stackOrderDescending:Joe,stackOrderInsideOut:eae,stackOrderNone:ts,stackOrderReverse:tae,timeInterval:Qe,timeMillisecond:dv,timeMilliseconds:l6,utcMillisecond:dv,utcMilliseconds:l6,timeSecond:hi,timeSeconds:h6,utcSecond:hi,utcSeconds:h6,timeMinute:mv,timeMinutes:ine,timeHour:yv,timeHours:one,timeDay:hl,timeDays:ane,timeWeek:Va,timeWeeks:x6,timeSunday:Va,timeSundays:x6,timeMonday:dl,timeMondays:sne,timeTuesday:m6,timeTuesdays:une,timeWednesday:y6,timeWednesdays:lne,timeThursday:vo,timeThursdays:cne,timeFriday:v6,timeFridays:fne,timeSaturday:b6,timeSaturdays:hne,timeMonth:vv,timeMonths:dne,timeYear:di,timeYears:pne,utcMinute:xv,utcMinutes:gne,utcHour:wv,utcHours:mne,utcDay:pl,utcDays:yne,utcWeek:Ya,utcWeeks:C6,utcSunday:Ya,utcSundays:C6,utcMonday:gl,utcMondays:vne,utcTuesday:M6,utcTuesdays:bne,utcWednesday:T6,utcWednesdays:xne,utcThursday:xo,utcThursdays:wne,utcFriday:k6,utcFridays:_ne,utcSaturday:O6,utcSaturdays:$ne,utcMonth:_v,utcMonths:Sne,utcYear:pi,utcYears:Mne,utcTicks:A6,utcTickInterval:N6,timeTicks:R6,timeTickInterval:L6,timeFormatDefaultLocale:Z6,get timeFormat(){return Tv},get timeParse(){return Q6},get utcFormat(){return xd},get utcParse(){return kv},timeFormatLocale:D6,isoFormat:kre,isoParse:Pre,now:Cu,timer:Zf,timerFlush:rS,timeout:e1,interval:nG,transition:SS,active:rK,interrupt:eo,zoom:hae,zoomTransform:Pk,zoomIdentity:Fd},Symbol.toStringTag,{value:"Module"})),ns=tt(dae),Ak={},Bd={},pae=typeof global=="object"&&global&&global.Object===Object&&global,Nk=pae,gae=typeof self=="object"&&self&&self.Object===Object&&self,mae=Nk||gae||Function("return this")(),bi=mae,yae=bi.Symbol,jd=yae,Rk=Object.prototype,vae=Rk.hasOwnProperty,bae=Rk.toString,Ml=jd?jd.toStringTag:void 0;function xae(e){var t=vae.call(e,Ml),n=e[Ml];try{e[Ml]=void 0;var r=!0}catch{}var i=bae.call(e);return r&&(t?e[Ml]=n:delete e[Ml]),i}var wae=Object.prototype,_ae=wae.toString;function $ae(e){return _ae.call(e)}var Sae="[object Null]",Mae="[object Undefined]",Lk=jd?jd.toStringTag:void 0;function So(e){return e==null?e===void 0?Mae:Sae:Lk&&Lk in Object(e)?xae(e):$ae(e)}function Tl(e){return e!=null&&typeof e=="object"}var Tae="[object Number]";function kae(e){return typeof e=="number"||Tl(e)&&So(e)==Tae}var Oae=Object.freeze(Object.defineProperty({__proto__:null,default:kae},Symbol.toStringTag,{value:"Module"})),Cae=tt(Oae);function Pae(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==void 0&&(n=n===void 0?o:n+o)}return n}function Dk(e){return e}function Eae(e){return e&&e.length?Pae(e,Dk):0}var Aae=Object.freeze(Object.defineProperty({__proto__:null,default:Eae},Symbol.toStringTag,{value:"Module"})),Nae=tt(Aae),Rae=Object.prototype;function Ik(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Rae;return e===n}function Lae(e,t){return function(n){return e(t(n))}}var Dae=Lae(Object.keys,Object),Iae=Dae,zae=Object.prototype,Fae=zae.hasOwnProperty;function Bae(e){if(!Ik(e))return Iae(e);var t=[];for(var n in Object(e))Fae.call(e,n)&&n!="constructor"&&t.push(n);return t}function Wd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var jae="[object AsyncFunction]",Wae="[object Function]",Hae="[object GeneratorFunction]",qae="[object Proxy]";function zk(e){if(!Wd(e))return!1;var t=So(e);return t==Wae||t==Hae||t==jae||t==qae}var Uae=bi["__core-js_shared__"],eb=Uae,Fk=function(){var e=/[^.]+$/.exec(eb&&eb.keys&&eb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Vae(e){return!!Fk&&Fk in e}var Yae=Function.prototype,Gae=Yae.toString;function Mo(e){if(e!=null){try{return Gae.call(e)}catch{}try{return e+""}catch{}}return""}var Xae=/[\\^$.*+?()[\]{}|]/g,Kae=/^\[object .+?Constructor\]$/,Qae=Function.prototype,Zae=Object.prototype,Jae=Qae.toString,ese=Zae.hasOwnProperty,tse=RegExp("^"+Jae.call(ese).replace(Xae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nse(e){if(!Wd(e)||Vae(e))return!1;var t=zk(e)?tse:Kae;return t.test(Mo(e))}function rse(e,t){return e==null?void 0:e[t]}function kl(e,t){var n=rse(e,t);return nse(n)?n:void 0}var ise=kl(bi,"DataView"),tb=ise,ose=kl(bi,"Map"),nb=ose,ase=kl(bi,"Promise"),rb=ase,sse=kl(bi,"Set"),ib=sse,use=kl(bi,"WeakMap"),ob=use,Bk="[object Map]",lse="[object Object]",jk="[object Promise]",Wk="[object Set]",Hk="[object WeakMap]",qk="[object DataView]",cse=Mo(tb),fse=Mo(nb),hse=Mo(rb),dse=Mo(ib),pse=Mo(ob),To=So;(tb&&To(new tb(new ArrayBuffer(1)))!=qk||nb&&To(new nb)!=Bk||rb&&To(rb.resolve())!=jk||ib&&To(new ib)!=Wk||ob&&To(new ob)!=Hk)&&(To=function(e){var t=So(e),n=t==lse?e.constructor:void 0,r=n?Mo(n):"";if(r)switch(r){case cse:return qk;case fse:return Bk;case hse:return jk;case dse:return Wk;case pse:return Hk}return t});var gse=To,mse="[object Arguments]";function Uk(e){return Tl(e)&&So(e)==mse}var Vk=Object.prototype,yse=Vk.hasOwnProperty,vse=Vk.propertyIsEnumerable,bse=Uk(function(){return arguments}())?Uk:function(e){return Tl(e)&&yse.call(e,"callee")&&!vse.call(e,"callee")},xse=bse,Yk=Array.isArray,wse=Object.freeze(Object.defineProperty({__proto__:null,default:Yk},Symbol.toStringTag,{value:"Module"})),_se=9007199254740991;function Gk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=_se}function $se(e){return e!=null&&Gk(e.length)&&!zk(e)}function Sse(){return!1}var Xk=typeof Re=="object"&&Re&&!Re.nodeType&&Re,Kk=Xk&&typeof module=="object"&&module&&!module.nodeType&&module,Mse=Kk&&Kk.exports===Xk,Qk=Mse?bi.Buffer:void 0,Tse=Qk?Qk.isBuffer:void 0,kse=Tse||Sse,Ose=kse,Cse="[object Arguments]",Pse="[object Array]",Ese="[object Boolean]",Ase="[object Date]",Nse="[object Error]",Rse="[object Function]",Lse="[object Map]",Dse="[object Number]",Ise="[object Object]",zse="[object RegExp]",Fse="[object Set]",Bse="[object String]",jse="[object WeakMap]",Wse="[object ArrayBuffer]",Hse="[object DataView]",qse="[object Float32Array]",Use="[object Float64Array]",Vse="[object Int8Array]",Yse="[object Int16Array]",Gse="[object Int32Array]",Xse="[object Uint8Array]",Kse="[object Uint8ClampedArray]",Qse="[object Uint16Array]",Zse="[object Uint32Array]",Ee={};Ee[qse]=Ee[Use]=Ee[Vse]=Ee[Yse]=Ee[Gse]=Ee[Xse]=Ee[Kse]=Ee[Qse]=Ee[Zse]=!0,Ee[Cse]=Ee[Pse]=Ee[Wse]=Ee[Ese]=Ee[Hse]=Ee[Ase]=Ee[Nse]=Ee[Rse]=Ee[Lse]=Ee[Dse]=Ee[Ise]=Ee[zse]=Ee[Fse]=Ee[Bse]=Ee[jse]=!1;function Jse(e){return Tl(e)&&Gk(e.length)&&!!Ee[So(e)]}function eue(e){return function(t){return e(t)}}var Zk=typeof Re=="object"&&Re&&!Re.nodeType&&Re,Ol=Zk&&typeof module=="object"&&module&&!module.nodeType&&module,tue=Ol&&Ol.exports===Zk,ab=tue&&Nk.process,nue=function(){try{var e=Ol&&Ol.require&&Ol.require("util").types;return e||ab&&ab.binding&&ab.binding("util")}catch{}}(),Jk=nue,eO=Jk&&Jk.isTypedArray,rue=eO?eue(eO):Jse,iue=rue,oue="[object Map]",aue="[object Set]",sue=Object.prototype,uue=sue.hasOwnProperty;function lue(e){if(e==null)return!0;if($se(e)&&(Yk(e)||typeof e=="string"||typeof e.splice=="function"||Ose(e)||iue(e)||xse(e)))return!e.length;var t=gse(e);if(t==oue||t==aue)return!e.size;if(Ik(e))return!Bae(e).length;for(var n in e)if(uue.call(e,n))return!1;return!0}var cue=Object.freeze(Object.defineProperty({__proto__:null,default:lue},Symbol.toStringTag,{value:"Module"})),tO=tt(cue),nO=tt(wse);function fue(e){return e&&e.length?e[0]:void 0}var hue=Object.freeze(Object.defineProperty({__proto__:null,default:fue},Symbol.toStringTag,{value:"Module"})),due=tt(hue);function pue(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var gue=Object.freeze(Object.defineProperty({__proto__:null,default:pue},Symbol.toStringTag,{value:"Module"})),mue=tt(gue);function rO(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var yue=/\s/;function vue(e){for(var t=e.length;t--&&yue.test(e.charAt(t)););return t}var bue=/^\s+/;function xue(e){return e&&e.slice(0,vue(e)+1).replace(bue,"")}var wue="[object Symbol]";function _ue(e){return typeof e=="symbol"||Tl(e)&&So(e)==wue}var iO=0/0,$ue=/^[-+]0x[0-9a-f]+$/i,Sue=/^0b[01]+$/i,Mue=/^0o[0-7]+$/i,Tue=parseInt;function kue(e){if(typeof e=="number")return e;if(_ue(e))return iO;if(Wd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=xue(e);var n=Sue.test(e);return n||Mue.test(e)?Tue(e.slice(2),n?2:8):$ue.test(e)?iO:+e}var oO=1/0,Oue=17976931348623157e292;function Cue(e){if(!e)return e===0?e:0;if(e=kue(e),e===oO||e===-oO){var t=e<0?-1:1;return t*Oue}return e===e?e:0}function sb(e){var t=Cue(e),n=t%1;return t===t?n?t-n:t:0}function Pue(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:sb(t),rO(e,t<0?0:t,r)):[]}var Eue=Object.freeze(Object.defineProperty({__proto__:null,default:Pue},Symbol.toStringTag,{value:"Module"})),Aue=tt(Eue);function Nue(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Rue(e){return typeof e=="function"?e:Dk}var Lue=9007199254740991,ub=4294967295,Due=Math.min;function Iue(e,t){if(e=sb(e),e<1||e>Lue)return[];var n=ub,r=Due(e,ub);t=Rue(t),e-=ub;for(var i=Nue(r,t);++n<e;)t(n);return i}var zue=Object.freeze(Object.defineProperty({__proto__:null,default:Iue},Symbol.toStringTag,{value:"Module"})),Fue=tt(zue);function Bue(e,t,n){return e&&e.length?(t=n||t===void 0?1:sb(t),rO(e,0,t<0?0:t)):[]}var jue=Object.freeze(Object.defineProperty({__proto__:null,default:Bue},Symbol.toStringTag,{value:"Module"})),Wue=tt(jue);(function(e){var t=ma.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.sumArrayTill=h,e.calculateSegmentStops=d,e.calculateNeedleHeight=p,e.calculateSegmentLabelCount=m,e.calculateScale=g,e.calculateTicks=y,e.formatCurrentValueText=v,e.deg2rad=x,e.centerTranslation=b,e.getRadius=_;var n=t(Cae),r=t(Nae),i=t(tO),o=t(nO),a=t(due),s=t(mue),u=t(Aue),l=t(Fue),c=t(Wue),f=ns;function h(w,$){return(0,r.default)((0,c.default)(w,$))}function d(w){var $=w.tickData,M=w.customSegmentStops,k=w.min,S=w.max;if(!(0,o.default)(M)||(0,i.default)(M))return $;if((0,a.default)(M)!==k)throw new Error("First value should be equivalent to min value given. Current min value - ".concat(k));if((0,s.default)(M)!==S)throw new Error("Last value should be equivalent to max value given. Current min value - ".concat(S));var T=M.map(function(A,P){return P===0?void 0:(A-M[P-1])/(S-k)});return(0,u.default)(T)}function p(w){var $=w.heightRatio,M=w.radius;if(0>$||1<$)throw new Error("Invalid needleHeightRatio given - ".concat($));return Math.round(M*$)}function m(w){var $=w.maxSegmentLabelCount,M=w.segmentCount,k=parseInt($,10),S=parseInt(M,10);return(0,n.default)(k)&&0<=k&&k<=S?k:S}function g(w){var $=w.min,M=w.max;return w.segments,(0,f.scaleLinear)().range([0,1]).domain([$,M])}function y(w,$){var M=$.min,k=$.max,S=$.segments,T=[];T=w.ticks(S);var A=((0,s.default)(T)!==k||S<T.length)&&1<T.length;return A&&(T=[M],(0,l.default)(S,function(P){T.push(M+(P+1)*((k-M)/S))})),T.length===1&&(T=[M,k]),T}function v(w,$){var M=$.labelFormat(w),k=$.currentValuePlaceholderStyle;return $.currentValueText.replace(k,M)}function x(w){return w*Math.PI/180}function b(w,$,M){return"translate(".concat(w+$,", ").concat(w+M,")")}function _(w){return w.width/2}})(Bd);var Hd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=e.CustomSegmentLabelPosition=void 0;var t={Inside:"INSIDE",Outside:"OUTSIDE"};e.CustomSegmentLabelPosition=t;var n={easeLinear:"easeLinear",easeQuadIn:"easeQuadIn",easeQuadOut:"easeQuadOut",easeQuadInOut:"easeQuadInOut",easeCubicIn:"easeCubicIn",easeCubicOut:"easeCubicOut",easeCubicInOut:"easeCubicInOut",easePolyIn:"easePolyIn",easePolyOut:"easePolyOut",easePolyInOut:"easePolyInOut",easeSinIn:"easeSinIn",easeSinOut:"easeSinOut",easeSinInOut:"easeSinInOut",easeExpIn:"easeExpIn",easeExpOut:"easeExpOut",easeExpInOut:"easeExpInOut",easeCircleIn:"easeCircleIn",easeCircleOut:"easeCircleOut",easeCircleInOut:"easeCircleInOut",easeBounceIn:"easeBounceIn",easeBounceOut:"easeBounceOut",easeBounceInOut:"easeBounceInOut",easeBackIn:"easeBackIn",easeBackOut:"easeBackOut",easeBackInOut:"easeBackInOut",easeElasticIn:"easeElasticIn",easeElasticOut:"easeElasticOut",easeElasticInOut:"easeElasticInOut",easeElastic:"easeElastic"};e.Transition=n})(Hd),function(e){var t=ma.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.updateConfig=e.getConfig=e.DEFAULT_PROPS=e.defaultSegmentValueFormatter=void 0;var n=t(_m.exports),r=ns,i=Bd,o=Hd;function a(d,p){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);p&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),m.push.apply(m,g)}return m}function s(d){for(var p,m=1;m<arguments.length;m++)p=arguments[m]==null?{}:arguments[m],m%2?a(Object(p),!0).forEach(function(g){(0,n.default)(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):a(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))});return d}var u=function(d){return d};e.defaultSegmentValueFormatter=u;var l={value:0,minValue:0,maxValue:1e3,forceRender:!1,width:300,height:300,paddingHorizontal:0,paddingVertical:0,fluidWidth:!1,dimensionUnit:"px",segments:5,maxSegmentLabels:-1,customSegmentStops:[],customSegmentLabels:[],needleColor:"steelblue",startColor:"#FF471A",endColor:"#33CC33",segmentColors:[],needleTransition:o.Transition.easeQuadInOut,needleTransitionDuration:500,needleHeightRatio:.9,ringWidth:60,textColor:"#666",valueFormat:"",segmentValueFormatter:u,currentValueText:"${value}",currentValuePlaceholderStyle:"${value}",labelFontSize:"14px",valueTextFontSize:"16px",valueTextFontWeight:"bold",svgAriaLabel:"React d3 speedometer"};e.DEFAULT_PROPS=l;var c={ringInset:20,pointerWidth:10,pointerTailLength:5,minAngle:-90,maxAngle:90,labelInset:10},f=function(d){var p=d.PROPS,m=d.parentWidth,g=d.parentHeight,y={width:p.fluidWidth?m:p.width,height:p.fluidWidth?g:p.height,paddingHorizontal:p.paddingHorizontal,paddingVertical:p.paddingVertical,dimensionUnit:p.dimensionUnit,ringWidth:p.ringWidth,minValue:p.minValue,maxValue:p.maxValue,needleColor:p.needleColor,majorTicks:p.segments,customSegmentStops:p.customSegmentStops,customSegmentLabels:p.customSegmentLabels,maxSegmentLabels:(0,i.calculateSegmentLabelCount)({maxSegmentLabelCount:p.maxSegmentLabels,segmentCount:p.segments}),segmentColors:p.segmentColors,arcColorFn:0<p.segmentColors.length?(0,r.scaleQuantize)(p.segmentColors):(0,r.interpolateHsl)((0,r.rgb)(p.startColor),(0,r.rgb)(p.endColor)),needleTransition:p.needleTransition,needleTransitionDuration:p.needleTransitionDuration,needleHeightRatio:p.needleHeightRatio,textColor:p.textColor,labelFormat:(0,r.format)(p.valueFormat),segmentValueFormatter:p.segmentValueFormatter,currentValueText:p.currentValueText,currentValuePlaceholderStyle:p.currentValuePlaceholderStyle,labelFontSize:p.labelFontSize,valueTextFontSize:p.valueTextFontSize,valueTextFontWeight:p.valueTextFontWeight,svgAriaLabel:p.svgAriaLabel};return Object.assign({},c,y)};e.getConfig=f;var h=function(d,p){return s(s({},d),p)};e.updateConfig=h}(Ak);var aO={},sO={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNeedleTransition=r;var t=ns,n=Hd;function r(i){return i===n.Transition.easeLinear?t.easeLinear:i===n.Transition.easeQuadIn?t.easeQuadIn:i===n.Transition.easeQuadOut?t.easeQuadOut:i===n.Transition.easeQuadInOut?t.easeQuadInOut:i===n.Transition.easeCubicIn?t.easeCubicIn:i===n.Transition.easeCubicOut?t.easeCubicOut:i===n.Transition.easeCubicInOut?t.easeCubicInOut:i===n.Transition.easePolyIn?t.easePolyIn:i===n.Transition.easePolyOut?t.easePolyOut:i===n.Transition.easePolyInOut?t.easePolyInOut:i===n.Transition.easeSinIn?t.easeSinIn:i===n.Transition.easeSinOut?t.easeSinOut:i===n.Transition.easeSinInOut?t.easeSinInOut:i===n.Transition.easeExpIn?t.easeExpIn:i===n.Transition.easeExpOut?t.easeExpOut:i===n.Transition.easeExpInOut?t.easeExpInOut:i===n.Transition.easeCircleIn?t.easeCircleIn:i===n.Transition.easeCircleOut?t.easeCircleOut:i===n.Transition.easeCircleInOut?t.easeCircleInOut:i===n.Transition.easeBounceIn?t.easeBounceIn:i===n.Transition.easeBounceOut?t.easeBounceOut:i===n.Transition.easeBounceInOut?t.easeBounceInOut:i===n.Transition.easeBackIn?t.easeBackIn:i===n.Transition.easeBackOut?t.easeBackOut:i===n.Transition.easeBackInOut?t.easeBackInOut:i===n.Transition.easeElasticIn?t.easeElasticIn:i===n.Transition.easeElasticOut?t.easeElasticOut:i===n.Transition.easeElasticInOut?t.easeElasticInOut:i===n.Transition.easeElastic?t.easeElastic:t.easeQuadInOut}})(sO);var uO={},lO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Hue(e,t){return!!(e===t||lO(e)&&lO(t))}function que(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Hue(e[n],t[n]))return!1;return!0}function Uue(e,t){t===void 0&&(t=que);var n,r=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}return a}var Vue=Object.freeze(Object.defineProperty({__proto__:null,default:Uue},Symbol.toStringTag,{value:"Module"})),Yue=tt(Vue);(function(e){var t=ma.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.configureArc=e.configureTickData=e.configureTicks=e.configureScale=void 0;var n=t(Yue),r=ns,i=Bd,o=(0,n.default)(l);e.configureScale=o;var a=(0,n.default)(c);e.configureTicks=a;var s=(0,n.default)(f);e.configureTickData=s;var u=(0,n.default)(h);e.configureArc=u;function l(d){return(0,i.calculateScale)({min:d.minValue,max:d.maxValue,segments:d.maxSegmentLabels})}function c(d){var p=o(d),m=(0,i.calculateTicks)(p,{min:d.minValue,max:d.maxValue,segments:d.maxSegmentLabels});return 0<d.customSegmentStops.length&&d.maxSegmentLabels!==0&&(m=d.customSegmentStops),m}function f(d){var p=(0,r.range)(d.majorTicks).map(function(){return 1/d.majorTicks}),m=(0,i.calculateSegmentStops)({tickData:p,customSegmentStops:d.customSegmentStops,min:d.minValue,max:d.maxValue});return m}function h(d){var p=s(d),m=d.maxAngle-d.minAngle,g=d.width/2,y=(0,r.arc)().innerRadius(g-d.ringWidth-d.ringInset).outerRadius(g-d.ringInset).startAngle(function(v,x){var b=(0,i.sumArrayTill)(p,x);return(0,i.deg2rad)(d.minAngle+b*m)}).endAngle(function(v,x){var b=(0,i.sumArrayTill)(p,x+1);return(0,i.deg2rad)(d.minAngle+b*m)});return y}})(uO),function(e){var t=ma.exports;Object.defineProperty(e,"__esModule",{value:!0}),e._renderLabels=h,e.render=e.update=void 0;var n=ns,r=t(tO),i=t(nO),o=Bd,a=sO,s=uO,u=function(g){var y=g.d3_refs,v=g.newValue,x=g.config,b=(0,s.configureScale)(x),_=b(v),w=x.maxAngle-x.minAngle,$=x.minAngle+_*w;y.pointer.transition().duration(x.needleTransitionDuration).ease((0,a.getNeedleTransition)(x.needleTransition)).attr("transform","rotate(".concat($,")")),y.current_value_text.text((0,o.formatCurrentValueText)(v,x))};e.update=u;var l=function(g){var y=g.container,v=g.config,x=(0,o.getRadius)(v),b=(0,o.centerTranslation)(x,v.paddingHorizontal,v.paddingVertical),_=c({container:y,config:v});return f({config:v,svg:_,centerTx:b}),h({config:v,svg:_,centerTx:b,r:x}),{current_value_text:p({config:v,svg:_}),pointer:m({config:v,svg:_,r:x,centerTx:b})}};e.render=l;function c(g){var y=g.container,v=g.config,x=v.width+2*v.paddingHorizontal,b=v.height+2*v.paddingVertical;return(0,n.select)(y).append("svg:svg").attr("class","speedometer").attr("width","".concat(x).concat(v.dimensionUnit)).attr("height","".concat(b).concat(v.dimensionUnit)).attr("role","img").attr("focusable","false").attr("aria-label",v.svgAriaLabel).style("width","".concat(x).concat(v.dimensionUnit)).style("height","".concat(b).concat(v.dimensionUnit))}function f(g){var y=g.config,v=g.svg,x=g.centerTx,b=(0,s.configureTickData)(y),_=(0,s.configureArc)(y),w=v.append("g").attr("class","arc").attr("transform",x);w.selectAll("path").data(b).enter().append("path").attr("class","speedo-segment").attr("fill",function($,M){return!(0,r.default)(y.segmentColors)&&y.segmentColors[M]?y.segmentColors[M]:y.arcColorFn($*M)}).attr("d",_)}function h(g){var y=g.config,v=g.svg,x=g.centerTx,b=g.r,_=(0,s.configureTicks)(y),w=(0,s.configureTickData)(y),$=(0,s.configureScale)(y),M=y.maxAngle-y.minAngle,k=y.customSegmentLabels,S=(0,i.default)(k)&&!(0,r.default)(k),T=S&&k.length===w.length;if(S&&!T)throw new Error("Custom Segment Labels should be an array with length of ".concat(w.length));if(S&&T)return void d({config:y,svg:v,centerTx:x,r:b,ticks:_,tickData:w,scale:$,range:M});var A=v.append("g").attr("class","label").attr("transform",x);A.selectAll("text").data(_).enter().append("text").attr("transform",function(P,O){var E=y.customSegmentStops.length===0?$(P):(0,o.sumArrayTill)(w,O),C=y.minAngle+E*M;return"rotate(".concat(C,") translate(0, ").concat(y.labelInset-b,")")}).text(function(P){return y.segmentValueFormatter(y.labelFormat(P))}).attr("class","segment-value").style("text-anchor","middle").style("font-size",y.labelFontSize).style("font-weight","bold").style("fill",y.textColor)}function d(g){function y(C,R){var D=S.length===0?M(C):(0,o.sumArrayTill)($,R),L=v.minAngle+D*k;return L}var v=g.config,x=g.svg,b=g.centerTx,_=g.r,w=g.ticks,$=g.tickData,M=g.scale,k=g.range,S=v.customSegmentStops,T=v.customSegmentLabels,A=T.map(function(C,R){var D=R,L=R+1,F=w[D],W=y(F,D),U=w[L],te=y(U,L);return(te+W)/2}),P=_-v.ringWidth-v.ringInset,O=_-v.ringInset,E=x.append("g").attr("class","label").attr("transform",b);E.selectAll("text").data(T).enter().append("text").attr("transform",function(C,R){var D=A[R],L="rotate(".concat(D,") translate(0, ").concat(v.labelInset-_,")"),F="rotate(".concat(D,") translate(0, ").concat(v.labelInset/2-(O-(O-P)/2),")");return C.position==="OUTSIDE"?L:F}).text(function(C){return C.text||""}).attr("class","segment-value").style("text-anchor","middle").style("font-size",function(C){return C.fontSize||v.labelFontSize}).style("font-weight","bold").style("fill",function(C){return C.color||v.textColor})}function p(g){var y=g.config,v=g.svg,x=(y.width+2*y.paddingHorizontal)/2,b=(y.width+4*y.paddingVertical)/2;return v.append("g").attr("transform","translate(".concat(x,", ").concat(b,")")).append("text").attr("class","current-value").attr("text-anchor","middle").attr("y",23).text(y.currentValue).style("font-size",y.valueTextFontSize).style("font-weight",y.valueTextFontWeight).style("fill",y.textColor)}function m(g){var y=g.config,v=g.svg,x=g.r,b=g.centerTx,_=(0,o.calculateNeedleHeight)({heightRatio:y.needleHeightRatio,radius:x}),w=[[y.pointerWidth/2,0],[0,-_],[-(y.pointerWidth/2),0],[0,y.pointerTailLength],[y.pointerWidth/2,0]],$=(0,n.line)().curve(n.curveMonotoneX),M=v.append("g").data([w]).attr("class","pointer").attr("transform",b).style("fill",y.needleColor);return M.append("path").attr("d",$).attr("transform","rotate(".concat(y.minAngle,")"))}}(aO),function(e){var t=n3.exports,n=ma.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CustomSegmentLabelPosition",{enumerable:!0,get:function(){return m.CustomSegmentLabelPosition}}),Object.defineProperty(e,"Transition",{enumerable:!0,get:function(){return m.Transition}}),e.default=void 0;var r=n(r3.exports),i=n(i3.exports),o=n(wm.exports),a=n(a3.exports),s=n(u3.exports),u=n(l3.exports),l=n(_m.exports),c=t(Z.default),f=n(Eo.exports),h=ns,d=Ak,p=aO,m=Hd;function g(b){var _=y();return function(){var w,$=(0,u.default)(b);if(_){var M=(0,u.default)(this).constructor;w=Reflect.construct($,arguments,M)}else w=$.apply(this,arguments);return(0,s.default)(this,w)}}function y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var v=function(b){function _($){var M;return(0,r.default)(this,_),M=w.call(this,$),(0,l.default)((0,o.default)(M),"render",function(){return c.default.createElement("div",{ref:function(S){return M.gaugeDiv=S}})}),M.d3_refs={pointer:!1,current_value_text:!1},M}(0,a.default)(_,b);var w=g(_);return(0,i.default)(_,[{key:"componentDidMount",value:function(){this.renderGauge()}},{key:"componentDidUpdate",value:function(){this.props.forceRender?this.renderGauge():this.updateReadings()}},{key:"renderGauge",value:function(){this.config=(0,d.getConfig)({PROPS:this.props,parentWidth:this.gaugeDiv.parentNode.clientWidth,parentHeight:this.gaugeDiv.parentNode.clientHeight}),(0,h.select)(this.gaugeDiv).select("svg").remove(),this.d3_refs=(0,p.render)({container:this.gaugeDiv,config:this.config}),(0,p.update)({d3_refs:this.d3_refs,newValue:this.props.value,config:this.config})}},{key:"updateReadings",value:function(){this.config=(0,d.updateConfig)(this.config,{labelFormat:(0,h.format)(this.props.valueFormat||""),segmentValueFormatter:this.props.segmentValueFormatter||d.defaultSegmentValueFormatter,currentValueText:this.props.currentValueText||"${value}"}),(0,p.update)({d3_refs:this.d3_refs,newValue:this.props.value||0,config:this.config})}}]),_}(c.PureComponent);(0,l.default)(v,"displayName","ReactSpeedometer"),v.propTypes={value:f.default.number.isRequired,minValue:f.default.number.isRequired,maxValue:f.default.number.isRequired,forceRender:f.default.bool.isRequired,width:f.default.number.isRequired,height:f.default.number.isRequired,paddingHorizontal:f.default.number.isRequired,paddingVertical:f.default.number.isRequired,dimensionUnit:f.default.string.isRequired,fluidWidth:f.default.bool.isRequired,segments:f.default.number.isRequired,maxSegmentLabels:f.default.number,customSegmentStops:f.default.array,customSegmentLabels:f.default.arrayOf(f.default.shape({text:f.default.string,position:f.default.oneOf(["OUTSIDE","INSIDE"]),fontSize:f.default.string,color:f.default.string})),needleColor:f.default.string.isRequired,startColor:f.default.string.isRequired,endColor:f.default.string.isRequired,segmentColors:f.default.array.isRequired,needleTransition:f.default.string.isRequired,needleTransitionDuration:f.default.number.isRequired,needleHeightRatio:f.default.number.isRequired,ringWidth:f.default.number.isRequired,textColor:f.default.string.isRequired,valueFormat:f.default.string.isRequired,segmentValueFormatter:f.default.func,currentValueText:f.default.string.isRequired,currentValuePlaceholderStyle:f.default.string.isRequired,labelFontSize:f.default.string.isRequired,valueTextFontSize:f.default.string.isRequired,valueTextFontWeight:f.default.string.isRequired,svgAriaLabel:f.default.string},v.defaultProps=d.DEFAULT_PROPS;var x=v;e.default=x}(t3);var Gue=gO(t3);const Xue=({value:e,theme:t})=>{var n,r,i,o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$,M;return ae("div",{style:{...(n=e==null?void 0:e.style)==null?void 0:n.containerStyle,background:t.palette.secondary.main},children:[((r=e==null?void 0:e.main)==null?void 0:r.header)&&z("div",{style:{fontWeight:700,textAlign:"left",fontFamily:"inherit",fontSize:"18px",color:t.palette.text.primary||"#121926",...(i=e==null?void 0:e.style)==null?void 0:i.headerStyle},children:e.main.header}),z("div",{style:{width:"100%",minWidth:500,display:"flex",justifyContent:"center",overflow:"auto"},children:z(Gue,{forceRender:!0,segmentColors:(o=e==null?void 0:e.style)==null?void 0:o.segmentColors,maxValue:((s=(a=e==null?void 0:e.main)==null?void 0:a.data)==null?void 0:s.maxValue)||500,width:((u=e==null?void 0:e.style)==null?void 0:u.width)||450,needleHeightRatio:((l=e==null?void 0:e.style)==null?void 0:l.needleHeightRatio)||.7,currentValueText:(c=e==null?void 0:e.main)==null?void 0:c.currentValueText,customSegmentLabels:(f=e==null?void 0:e.main)==null?void 0:f.customSegmentLabel,ringWidth:((h=e==null?void 0:e.style)==null?void 0:h.ringWidth)||37,needleTransitionDuration:((d=e==null?void 0:e.style)==null?void 0:d.needleTransitionDuration)||5333,height:(p=e==null?void 0:e.style)==null?void 0:p.height,needleTransition:((m=e==null?void 0:e.style)==null?void 0:m.needleTransition)||"easeElastic",value:((y=(g=e==null?void 0:e.main)==null?void 0:g.data)==null?void 0:y.value)||473,needleColor:((v=e==null?void 0:e.style)==null?void 0:v.needleColor)||"red",minValue:((b=(x=e==null?void 0:e.main)==null?void 0:x.data)==null?void 0:b.minValue)||0,startColor:((_=e==null?void 0:e.style)==null?void 0:_.startColor)||"red",segments:((w=e==null?void 0:e.main)==null?void 0:w.segments)||5,endColor:(($=e==null?void 0:e.style)==null?void 0:$.endColor)||"green",textColor:((M=e==null?void 0:e.style)==null?void 0:M.textColor)||"black"})})]})};function Kue({value:e}){var l,c;const{uischema:t}=e,n=(l=t==null?void 0:t.config)==null?void 0:l.main,r=(c=t==null?void 0:t.config)==null?void 0:c.style,i={position:"absolute",top:"0px",right:"0px",color:"#0DF3C2",backgroundColor:"#333333",padding:"4px 8px",borderRadius:"3px 12px 4px 14px",fontWeight:"bold",...r==null?void 0:r.rank},o={paddingBottom:"10px",textAlign:"center",maxHeight:100,fontSize:"15px",fontWeight:"400",color:"gray",overflow:"auto",wordWrap:"break-word","&::-webkit-scrollbar":{display:"none"},...r==null?void 0:r.description},a={color:"#3747A6",backgroundColor:"#eae9e9",marginTop:"8px",padding:"0px 12px",textAlign:"center",borderRadius:"8px",fontWeight:"700",...r==null?void 0:r.name},s={boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",minWidth:280,maxWidth:280,minHeight:290,maxHeight:290,position:"relative",borderRadius:"12px",...r==null?void 0:r.card};return z(Jt,{children:z(at,{sx:{backgroundColor:"#ebebff",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",padding:"5px"},children:z(Bj,{sx:s,children:ae(Vj,{children:[z(iW,{component:"img",height:"140",image:"https://cdn.onlinewebfonts.com/svg/img_296570.png",style:{objectFit:"contain",paddingTop:"15px"},alt:"green iguana"}),ae(Qj,{children:[z(Rg,{sx:i,children:"# "+(n==null?void 0:n.rank)||"#"}),z(Rg,{gutterBottom:!0,variant:"h6",component:"div",sx:a,children:n==null?void 0:n.name}),z(Rg,{variant:"body2",color:"text.secondary",sx:o,children:n==null?void 0:n.description})]})]})})})})}const Que=({value:e})=>{var x;let{uischema:t,data:n}=e;const r=(x=t==null?void 0:t.config)==null?void 0:x.style,[i,o]=q.useState(0),[a,s]=q.useState(0),[u,l]=q.useState(0),[c,f]=q.useState(0),[h,d]=q.useState();q.useEffect(()=>{if(new Date(n.startDate).getTime()<new Date().getTime()&&new Date(n.startDate).getTime()<new Date(n.endDate).getTime()){let b=new Date;const w=(new Date(n.endDate).getTime()-b.getTime())/(1e3*3600*24);return o(Math.floor(w)),d(setInterval(()=>{const $=new Date;f($.getHours()),s($.getMinutes()),l($.getSeconds())},1e3)),()=>{clearInterval(h)}}else o(0),f(0),s(0),l(0)},[n]);const p={display:"flex",flexDirection:"column",backgroundColor:"rgb(15,15,15)",justifyContent:"center",alignItems:"center",height:"40vh",gap:"10px",...r==null?void 0:r.container},m={backgroundColor:"rgb(51,51,51)",width:"22%",minWidth:"40px",height:"100px",padding:"10px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...r==null?void 0:r.digitContainer},g={color:"rgb(0,253,199)",fontSize:"19px",fontWeight:"700",padding:"6px",...r==null?void 0:r.digit},y={color:"white",fontSize:"19px",fontWeight:"700",...r==null?void 0:r.digitLabel},v={color:"white",...r.containerLabelColor};return z(Jt,{children:ae(at,{component:"div",sx:p,children:[z(at,{component:"h1",style:v,children:new Date().getTime()>=new Date(n==null?void 0:n.startDate).getTime()&&new Date().getTime()<=new Date(n.endDate).getTime()?"Contest ends in...":new Date().getTime()<new Date(n.startDate).getTime()?"Program Not Started Yet":"Program Over"}),ae(at,{style:{display:"flex",gap:"15px",width:"80%",maxWidth:"650px",marginLeft:"auto",marginRight:"auto"},children:[ae(at,{style:m,children:[ae(at,{style:g,children:[i===0||i<10?0:Math.floor(i/10),i===0?0:i%10]}),z(at,{style:y,children:"Days"})]}),ae(at,{style:m,children:[ae(at,{style:g,children:[c===0||24-c<10?0:Math.floor((24-c)/10),c===0?0:(24-c)%10]}),z(at,{style:y,children:"Hours"})]}),ae(at,{style:m,children:[ae(at,{style:g,children:[a===0||60-a<10?0:Math.floor((60-a)/10),a===0?0:(60-a)%10]}),z(at,{style:y,children:"Mins"})]}),ae(at,{style:m,children:[ae(at,{style:g,children:[u===0||60-u<10?0:Math.floor((60-u)/10),u===0?0:(60-u)%10]}),z(at,{style:y,children:"Secs"})]})]})]})})};Re.BarGraph=MD,Re.Card=Kue,Re.HorizontalBarGraph=Iq,Re.LineGraph=Lq,Re.PieGraph=bW,Re.ProgressBar=zq,Re.SpeedoMeter=Xue,Re.Timer=Que,Object.defineProperties(Re,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
103
+ `)}function l(f){return f.map(c).join(e)}function c(f){return f==null?"":f instanceof Date?_Z(f):t.test(f+="")?'"'+f.replace(/"/g,'""')+'"':f}return{parse:r,parseRows:i,format:a,formatBody:s,formatRows:u,formatRow:l,formatValue:c}}var ao=xh(","),SM=ao.parse,$Z=ao.parseRows,SZ=ao.format,MZ=ao.formatBody,TZ=ao.formatRows,kZ=ao.formatRow,OZ=ao.formatValue,so=xh(" "),MM=so.parse,CZ=so.parseRows,PZ=so.format,EZ=so.formatBody,AZ=so.formatRows,NZ=so.formatRow,RZ=so.formatValue;function DZ(e){for(var t in e){var n=e[t].trim(),r,i;if(!n)n=null;else if(n==="true")n=!0;else if(n==="false")n=!1;else if(n==="NaN")n=NaN;else if(!isNaN(r=+n))n=r;else if(i=n.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/))LZ&&!!i[4]&&!i[7]&&(n=n.replace(/-/g,"/").replace(/T/," ")),n=new Date(n);else continue;e[t]=n}return e}const LZ=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();function IZ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function zZ(e,t){return fetch(e,t).then(IZ)}function FZ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function BZ(e,t){return fetch(e,t).then(FZ)}function jZ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function wh(e,t){return fetch(e,t).then(jZ)}function TM(e){return function(t,n,r){return arguments.length===2&&typeof n=="function"&&(r=n,n=void 0),wh(t,n).then(function(i){return e(i,r)})}}function WZ(e,t,n,r){arguments.length===3&&typeof n=="function"&&(r=n,n=void 0);var i=xh(e);return wh(t,n).then(function(o){return i.parse(o,r)})}var HZ=TM(SM),qZ=TM(MM);function UZ(e,t){return new Promise(function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e})}function VZ(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(!(e.status===204||e.status===205))return e.json()}function YZ(e,t){return fetch(e,t).then(VZ)}function U1(e){return(t,n)=>wh(t,n).then(r=>new DOMParser().parseFromString(r,e))}var GZ=U1("application/xml"),XZ=U1("text/html"),KZ=U1("image/svg+xml");function ZZ(e,t){var n,r=1;e==null&&(e=0),t==null&&(t=0);function i(){var o,a=n.length,s,u=0,l=0;for(o=0;o<a;++o)s=n[o],u+=s.x,l+=s.y;for(u=(u/a-e)*r,l=(l/a-t)*r,o=0;o<a;++o)s=n[o],s.x-=u,s.y-=l}return i.initialize=function(o){n=o},i.x=function(o){return arguments.length?(e=+o,i):e},i.y=function(o){return arguments.length?(t=+o,i):t},i.strength=function(o){return arguments.length?(r=+o,i):r},i}function QZ(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return kM(this.cover(t,n),t,n,e)}function kM(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o=e._root,a={data:r},s=e._x0,u=e._y0,l=e._x1,c=e._y1,f,h,d,p,m,g,y,v;if(!o)return e._root=a,e;for(;o.length;)if((m=t>=(f=(s+l)/2))?s=f:l=f,(g=n>=(h=(u+c)/2))?u=h:c=h,i=o,!(o=o[y=g<<1|m]))return i[y]=a,e;if(d=+e._x.call(null,o.data),p=+e._y.call(null,o.data),t===d&&n===p)return a.next=o,i?i[y]=a:e._root=a,e;do i=i?i[y]=new Array(4):e._root=new Array(4),(m=t>=(f=(s+l)/2))?s=f:l=f,(g=n>=(h=(u+c)/2))?u=h:c=h;while((y=g<<1|m)===(v=(p>=h)<<1|d>=f));return i[v]=o,i[y]=a,e}function JZ(e){var t,n,r=e.length,i,o,a=new Array(r),s=new Array(r),u=1/0,l=1/0,c=-1/0,f=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(a[n]=i,s[n]=o,i<u&&(u=i),i>c&&(c=i),o<l&&(l=o),o>f&&(f=o));if(u>c||l>f)return this;for(this.cover(u,l).cover(c,f),n=0;n<r;++n)kM(this,a[n],s[n],e[n]);return this}function eQ(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{for(var a=i-n||1,s=this._root,u,l;n>e||e>=i||r>t||t>=o;)switch(l=(t<r)<<1|e<n,u=new Array(4),u[l]=s,s=u,a*=2,l){case 0:i=n+a,o=r+a;break;case 1:n=i-a,o=r+a;break;case 2:i=n+a,r=o-a;break;case 3:n=i-a,r=o-a;break}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this}function tQ(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function nQ(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function At(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function rQ(e,t,n){var r,i=this._x0,o=this._y0,a,s,u,l,c=this._x1,f=this._y1,h=[],d=this._root,p,m;for(d&&h.push(new At(d,i,o,c,f)),n==null?n=1/0:(i=e-n,o=t-n,c=e+n,f=t+n,n*=n);p=h.pop();)if(!(!(d=p.node)||(a=p.x0)>c||(s=p.y0)>f||(u=p.x1)<i||(l=p.y1)<o))if(d.length){var g=(a+u)/2,y=(s+l)/2;h.push(new At(d[3],g,y,u,l),new At(d[2],a,y,g,l),new At(d[1],g,s,u,y),new At(d[0],a,s,g,y)),(m=(t>=y)<<1|e>=g)&&(p=h[h.length-1],h[h.length-1]=h[h.length-1-m],h[h.length-1-m]=p)}else{var v=e-+this._x.call(null,d.data),x=t-+this._y.call(null,d.data),b=v*v+x*x;if(b<n){var _=Math.sqrt(n=b);i=e-_,o=t-_,c=e+_,f=t+_,r=d.data}}return r}function iQ(e){if(isNaN(c=+this._x.call(null,e))||isNaN(f=+this._y.call(null,e)))return this;var t,n=this._root,r,i,o,a=this._x0,s=this._y0,u=this._x1,l=this._y1,c,f,h,d,p,m,g,y;if(!n)return this;if(n.length)for(;;){if((p=c>=(h=(a+u)/2))?a=h:u=h,(m=f>=(d=(s+l)/2))?s=d:l=d,t=n,!(n=n[g=m<<1|p]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,y=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,i?(o?i.next=o:delete i.next,this):t?(o?t[g]=o:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[y]=n:this._root=n),this):(this._root=o,this)}function oQ(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function aQ(){return this._root}function sQ(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function uQ(e){var t=[],n,r=this._root,i,o,a,s,u;for(r&&t.push(new At(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,o=n.x0,a=n.y0,s=n.x1,u=n.y1)&&r.length){var l=(o+s)/2,c=(a+u)/2;(i=r[3])&&t.push(new At(i,l,c,s,u)),(i=r[2])&&t.push(new At(i,o,c,l,u)),(i=r[1])&&t.push(new At(i,l,a,s,c)),(i=r[0])&&t.push(new At(i,o,a,l,c))}return this}function lQ(e){var t=[],n=[],r;for(this._root&&t.push(new At(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var o,a=r.x0,s=r.y0,u=r.x1,l=r.y1,c=(a+u)/2,f=(s+l)/2;(o=i[0])&&t.push(new At(o,a,s,c,f)),(o=i[1])&&t.push(new At(o,c,s,u,f)),(o=i[2])&&t.push(new At(o,a,f,c,l)),(o=i[3])&&t.push(new At(o,c,f,u,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function cQ(e){return e[0]}function fQ(e){return arguments.length?(this._x=e,this):this._x}function hQ(e){return e[1]}function dQ(e){return arguments.length?(this._y=e,this):this._y}function _h(e,t,n){var r=new V1(t==null?cQ:t,n==null?hQ:n,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function V1(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function OM(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Nt=_h.prototype=V1.prototype;Nt.copy=function(){var e=new V1(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=OM(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=new Array(4)}):t.target[i]=OM(r));return e},Nt.add=QZ,Nt.addAll=JZ,Nt.cover=eQ,Nt.data=tQ,Nt.extent=nQ,Nt.find=rQ,Nt.remove=iQ,Nt.removeAll=oQ,Nt.root=aQ,Nt.size=sQ,Nt.visit=uQ,Nt.visitAfter=lQ,Nt.x=fQ,Nt.y=dQ;function Xe(e){return function(){return e}}function ui(e){return(e()-.5)*1e-6}function pQ(e){return e.x+e.vx}function gQ(e){return e.y+e.vy}function mQ(e){var t,n,r,i=1,o=1;typeof e!="function"&&(e=Xe(e==null?1:+e));function a(){for(var l,c=t.length,f,h,d,p,m,g,y=0;y<o;++y)for(f=_h(t,pQ,gQ).visitAfter(s),l=0;l<c;++l)h=t[l],m=n[h.index],g=m*m,d=h.x+h.vx,p=h.y+h.vy,f.visit(v);function v(x,b,_,w,$){var T=x.data,k=x.r,S=m+k;if(T){if(T.index>h.index){var M=d-T.x-T.vx,A=p-T.y-T.vy,E=M*M+A*A;E<S*S&&(M===0&&(M=ui(r),E+=M*M),A===0&&(A=ui(r),E+=A*A),E=(S-(E=Math.sqrt(E)))/E*i,h.vx+=(M*=E)*(S=(k*=k)/(g+k)),h.vy+=(A*=E)*S,T.vx-=M*(S=1-S),T.vy-=A*S)}return}return b>d+S||w<d-S||_>p+S||$<p-S}}function s(l){if(l.data)return l.r=n[l.data.index];for(var c=l.r=0;c<4;++c)l[c]&&l[c].r>l.r&&(l.r=l[c].r)}function u(){if(!!t){var l,c=t.length,f;for(n=new Array(c),l=0;l<c;++l)f=t[l],n[f.index]=+e(f,l,t)}}return a.initialize=function(l,c){t=l,r=c,u()},a.iterations=function(l){return arguments.length?(o=+l,a):o},a.strength=function(l){return arguments.length?(i=+l,a):i},a.radius=function(l){return arguments.length?(e=typeof l=="function"?l:Xe(+l),u(),a):e},a}function yQ(e){return e.index}function CM(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function vQ(e){var t=yQ,n=f,r,i=Xe(30),o,a,s,u,l,c=1;e==null&&(e=[]);function f(g){return 1/Math.min(s[g.source.index],s[g.target.index])}function h(g){for(var y=0,v=e.length;y<c;++y)for(var x=0,b,_,w,$,T,k,S;x<v;++x)b=e[x],_=b.source,w=b.target,$=w.x+w.vx-_.x-_.vx||ui(l),T=w.y+w.vy-_.y-_.vy||ui(l),k=Math.sqrt($*$+T*T),k=(k-o[x])/k*g*r[x],$*=k,T*=k,w.vx-=$*(S=u[x]),w.vy-=T*S,_.vx+=$*(S=1-S),_.vy+=T*S}function d(){if(!!a){var g,y=a.length,v=e.length,x=new Map(a.map((_,w)=>[t(_,w,a),_])),b;for(g=0,s=new Array(y);g<v;++g)b=e[g],b.index=g,typeof b.source!="object"&&(b.source=CM(x,b.source)),typeof b.target!="object"&&(b.target=CM(x,b.target)),s[b.source.index]=(s[b.source.index]||0)+1,s[b.target.index]=(s[b.target.index]||0)+1;for(g=0,u=new Array(v);g<v;++g)b=e[g],u[g]=s[b.source.index]/(s[b.source.index]+s[b.target.index]);r=new Array(v),p(),o=new Array(v),m()}}function p(){if(!!a)for(var g=0,y=e.length;g<y;++g)r[g]=+n(e[g],g,e)}function m(){if(!!a)for(var g=0,y=e.length;g<y;++g)o[g]=+i(e[g],g,e)}return h.initialize=function(g,y){a=g,l=y,d()},h.links=function(g){return arguments.length?(e=g,d(),h):e},h.id=function(g){return arguments.length?(t=g,h):t},h.iterations=function(g){return arguments.length?(c=+g,h):c},h.strength=function(g){return arguments.length?(n=typeof g=="function"?g:Xe(+g),p(),h):n},h.distance=function(g){return arguments.length?(i=typeof g=="function"?g:Xe(+g),m(),h):i},h}const bQ=1664525,xQ=1013904223,PM=4294967296;function wQ(){let e=1;return()=>(e=(bQ*e+xQ)%PM)/PM}function _Q(e){return e.x}function $Q(e){return e.y}var SQ=10,MQ=Math.PI*(3-Math.sqrt(5));function TQ(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=new Map,u=Qf(f),l=va("tick","end"),c=wQ();e==null&&(e=[]);function f(){h(),l.call("tick",t),n<r&&(u.stop(),l.call("end",t))}function h(m){var g,y=e.length,v;m===void 0&&(m=1);for(var x=0;x<m;++x)for(n+=(o-n)*i,s.forEach(function(b){b(n)}),g=0;g<y;++g)v=e[g],v.fx==null?v.x+=v.vx*=a:(v.x=v.fx,v.vx=0),v.fy==null?v.y+=v.vy*=a:(v.y=v.fy,v.vy=0);return t}function d(){for(var m=0,g=e.length,y;m<g;++m){if(y=e[m],y.index=m,y.fx!=null&&(y.x=y.fx),y.fy!=null&&(y.y=y.fy),isNaN(y.x)||isNaN(y.y)){var v=SQ*Math.sqrt(.5+m),x=m*MQ;y.x=v*Math.cos(x),y.y=v*Math.sin(x)}(isNaN(y.vx)||isNaN(y.vy))&&(y.vx=y.vy=0)}}function p(m){return m.initialize&&m.initialize(e,c),m}return d(),t={tick:h,restart:function(){return u.restart(f),t},stop:function(){return u.stop(),t},nodes:function(m){return arguments.length?(e=m,d(),s.forEach(p),t):e},alpha:function(m){return arguments.length?(n=+m,t):n},alphaMin:function(m){return arguments.length?(r=+m,t):r},alphaDecay:function(m){return arguments.length?(i=+m,t):+i},alphaTarget:function(m){return arguments.length?(o=+m,t):o},velocityDecay:function(m){return arguments.length?(a=1-m,t):1-a},randomSource:function(m){return arguments.length?(c=m,s.forEach(p),t):c},force:function(m,g){return arguments.length>1?(g==null?s.delete(m):s.set(m,p(g)),t):s.get(m)},find:function(m,g,y){var v=0,x=e.length,b,_,w,$,T;for(y==null?y=1/0:y*=y,v=0;v<x;++v)$=e[v],b=m-$.x,_=g-$.y,w=b*b+_*_,w<y&&(T=$,y=w);return T},on:function(m,g){return arguments.length>1?(l.on(m,g),t):l.on(m)}}}function kQ(){var e,t,n,r,i=Xe(-30),o,a=1,s=1/0,u=.81;function l(d){var p,m=e.length,g=_h(e,_Q,$Q).visitAfter(f);for(r=d,p=0;p<m;++p)t=e[p],g.visit(h)}function c(){if(!!e){var d,p=e.length,m;for(o=new Array(p),d=0;d<p;++d)m=e[d],o[m.index]=+i(m,d,e)}}function f(d){var p=0,m,g,y=0,v,x,b;if(d.length){for(v=x=b=0;b<4;++b)(m=d[b])&&(g=Math.abs(m.value))&&(p+=m.value,y+=g,v+=g*m.x,x+=g*m.y);d.x=v/y,d.y=x/y}else{m=d,m.x=m.data.x,m.y=m.data.y;do p+=o[m.data.index];while(m=m.next)}d.value=p}function h(d,p,m,g){if(!d.value)return!0;var y=d.x-t.x,v=d.y-t.y,x=g-p,b=y*y+v*v;if(x*x/u<b)return b<s&&(y===0&&(y=ui(n),b+=y*y),v===0&&(v=ui(n),b+=v*v),b<a&&(b=Math.sqrt(a*b)),t.vx+=y*d.value*r/b,t.vy+=v*d.value*r/b),!0;if(d.length||b>=s)return;(d.data!==t||d.next)&&(y===0&&(y=ui(n),b+=y*y),v===0&&(v=ui(n),b+=v*v),b<a&&(b=Math.sqrt(a*b)));do d.data!==t&&(x=o[d.data.index]*r/b,t.vx+=y*x,t.vy+=v*x);while(d=d.next)}return l.initialize=function(d,p){e=d,n=p,c()},l.strength=function(d){return arguments.length?(i=typeof d=="function"?d:Xe(+d),c(),l):i},l.distanceMin=function(d){return arguments.length?(a=d*d,l):Math.sqrt(a)},l.distanceMax=function(d){return arguments.length?(s=d*d,l):Math.sqrt(s)},l.theta=function(d){return arguments.length?(u=d*d,l):Math.sqrt(u)},l}function OQ(e,t,n){var r,i=Xe(.1),o,a;typeof e!="function"&&(e=Xe(+e)),t==null&&(t=0),n==null&&(n=0);function s(l){for(var c=0,f=r.length;c<f;++c){var h=r[c],d=h.x-t||1e-6,p=h.y-n||1e-6,m=Math.sqrt(d*d+p*p),g=(a[c]-m)*o[c]*l/m;h.vx+=d*g,h.vy+=p*g}}function u(){if(!!r){var l,c=r.length;for(o=new Array(c),a=new Array(c),l=0;l<c;++l)a[l]=+e(r[l],l,r),o[l]=isNaN(a[l])?0:+i(r[l],l,r)}}return s.initialize=function(l){r=l,u()},s.strength=function(l){return arguments.length?(i=typeof l=="function"?l:Xe(+l),u(),s):i},s.radius=function(l){return arguments.length?(e=typeof l=="function"?l:Xe(+l),u(),s):e},s.x=function(l){return arguments.length?(t=+l,s):t},s.y=function(l){return arguments.length?(n=+l,s):n},s}function CQ(e){var t=Xe(.1),n,r,i;typeof e!="function"&&(e=Xe(e==null?0:+e));function o(s){for(var u=0,l=n.length,c;u<l;++u)c=n[u],c.vx+=(i[u]-c.x)*r[u]*s}function a(){if(!!n){var s,u=n.length;for(r=new Array(u),i=new Array(u),s=0;s<u;++s)r[s]=isNaN(i[s]=+e(n[s],s,n))?0:+t(n[s],s,n)}}return o.initialize=function(s){n=s,a()},o.strength=function(s){return arguments.length?(t=typeof s=="function"?s:Xe(+s),a(),o):t},o.x=function(s){return arguments.length?(e=typeof s=="function"?s:Xe(+s),a(),o):e},o}function PQ(e){var t=Xe(.1),n,r,i;typeof e!="function"&&(e=Xe(e==null?0:+e));function o(s){for(var u=0,l=n.length,c;u<l;++u)c=n[u],c.vy+=(i[u]-c.y)*r[u]*s}function a(){if(!!n){var s,u=n.length;for(r=new Array(u),i=new Array(u),s=0;s<u;++s)r[s]=isNaN(i[s]=+e(n[s],s,n))?0:+t(n[s],s,n)}}return o.initialize=function(s){n=s,a()},o.strength=function(s){return arguments.length?(t=typeof s=="function"?s:Xe(+s),a(),o):t},o.y=function(s){return arguments.length?(e=typeof s=="function"?s:Xe(+s),a(),o):e},o}function EQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function $h(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 Da(e){return e=$h(Math.abs(e)),e?e[1]:NaN}function AQ(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function NQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var RQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Wu(e){if(!(t=RQ.exec(e)))throw new Error("invalid format: "+e);var t;return new Sh({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]})}Wu.prototype=Sh.prototype;function Sh(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Sh.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function DQ(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var EM;function LQ(e,t){var n=$h(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(EM=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+$h(e,Math.max(0,t+o-1))[0]}function AM(e,t){var n=$h(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var NM={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:EQ,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)=>AM(e*100,t),r:AM,s:LQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function RM(e){return e}var DM=Array.prototype.map,LM=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function IM(e){var t=e.grouping===void 0||e.thousands===void 0?RM:AQ(DM.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?RM:NQ(DM.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"\u2212":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function l(f){f=Wu(f);var h=f.fill,d=f.align,p=f.sign,m=f.symbol,g=f.zero,y=f.width,v=f.comma,x=f.precision,b=f.trim,_=f.type;_==="n"?(v=!0,_="g"):NM[_]||(x===void 0&&(x=12),b=!0,_="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",$=m==="$"?r:/[%p]/.test(_)?a:"",T=NM[_],k=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function S(M){var A=w,E=$,O,P,C;if(_==="c")E=T(M)+E,M="";else{M=+M;var N=M<0||1/M<0;if(M=isNaN(M)?u:T(Math.abs(M),x),b&&(M=DQ(M)),N&&+M==0&&p!=="+"&&(N=!1),A=(N?p==="("?p:s:p==="-"||p==="("?"":p)+A,E=(_==="s"?LM[8+EM/3]:"")+E+(N&&p==="("?")":""),k){for(O=-1,P=M.length;++O<P;)if(C=M.charCodeAt(O),48>C||C>57){E=(C===46?i+M.slice(O+1):M.slice(O))+E,M=M.slice(0,O);break}}}v&&!g&&(M=t(M,1/0));var D=A.length+M.length+E.length,I=D<y?new Array(y-D+1).join(h):"";switch(v&&g&&(M=t(I+M,I.length?y-E.length:1/0),I=""),d){case"<":M=A+M+E+I;break;case"=":M=A+I+M+E;break;case"^":M=I.slice(0,D=I.length>>1)+A+M+E+I.slice(D);break;default:M=I+A+M+E;break}return o(M)}return S.toString=function(){return f+""},S}function c(f,h){var d=l((f=Wu(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Da(h)/3)))*3,m=Math.pow(10,-p),g=LM[8+p/3];return function(y){return d(m*y)+g}}return{format:l,formatPrefix:c}}var Mh,Th,Y1;zM({thousands:",",grouping:[3],currency:["$",""]});function zM(e){return Mh=IM(e),Th=Mh.format,Y1=Mh.formatPrefix,Mh}function FM(e){return Math.max(0,-Da(Math.abs(e)))}function BM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Da(t)/3)))*3-Da(Math.abs(e)))}function jM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Da(t)-Da(e))+1}var ue=1e-6,Hu=1e-12,me=Math.PI,Fe=me/2,kh=me/4,Rt=me*2,ke=180/me,le=me/180,be=Math.abs,La=Math.atan,Dt=Math.atan2,ae=Math.cos,Oh=Math.ceil,WM=Math.exp,G1=Math.hypot,Ch=Math.log,X1=Math.pow,re=Math.sin,wn=Math.sign||function(e){return e>0?1:e<0?-1:0},at=Math.sqrt,K1=Math.tan;function HM(e){return e>1?0:e<-1?me:Math.acos(e)}function Lt(e){return e>1?Fe:e<-1?-Fe:Math.asin(e)}function qM(e){return(e=re(e/2))*e}function De(){}function Ph(e,t){e&&VM.hasOwnProperty(e.type)&&VM[e.type](e,t)}var UM={Feature:function(e,t){Ph(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Ph(n[r].geometry,t)}},VM={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Z1(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Z1(n[r],t,0)},Polygon:function(e,t){YM(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)YM(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Ph(n[r],t)}};function Z1(e,t,n){var r=-1,i=e.length-n,o;for(t.lineStart();++r<i;)o=e[r],t.point(o[0],o[1],o[2]);t.lineEnd()}function YM(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Z1(e[n],t,1);t.polygonEnd()}function In(e,t){e&&UM.hasOwnProperty(e.type)?UM[e.type](e,t):Ph(e,t)}var Eh=new Ge,Ah=new Ge,GM,XM,Q1,J1,ey,fr={point:De,lineStart:De,lineEnd:De,polygonStart:function(){Eh=new Ge,fr.lineStart=IQ,fr.lineEnd=zQ},polygonEnd:function(){var e=+Eh;Ah.add(e<0?Rt+e:e),this.lineStart=this.lineEnd=this.point=De},sphere:function(){Ah.add(Rt)}};function IQ(){fr.point=FQ}function zQ(){KM(GM,XM)}function FQ(e,t){fr.point=KM,GM=e,XM=t,e*=le,t*=le,Q1=e,J1=ae(t=t/2+kh),ey=re(t)}function KM(e,t){e*=le,t*=le,t=t/2+kh;var n=e-Q1,r=n>=0?1:-1,i=r*n,o=ae(t),a=re(t),s=ey*a,u=J1*o+s*ae(i),l=s*r*re(i);Eh.add(Dt(l,u)),Q1=e,J1=o,ey=a}function BQ(e){return Ah=new Ge,In(e,fr),Ah*2}function Nh(e){return[Dt(e[1],e[0]),Lt(e[2])]}function uo(e){var t=e[0],n=e[1],r=ae(n);return[r*ae(t),r*re(t),re(n)]}function Rh(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ia(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function ty(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Dh(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Lh(e){var t=at(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Le,Qt,Be,ln,lo,ZM,QM,za,qu,li,Rr,Dr={point:ny,lineStart:eT,lineEnd:tT,polygonStart:function(){Dr.point=nT,Dr.lineStart=jQ,Dr.lineEnd=WQ,qu=new Ge,fr.polygonStart()},polygonEnd:function(){fr.polygonEnd(),Dr.point=ny,Dr.lineStart=eT,Dr.lineEnd=tT,Eh<0?(Le=-(Be=180),Qt=-(ln=90)):qu>ue?ln=90:qu<-ue&&(Qt=-90),Rr[0]=Le,Rr[1]=Be},sphere:function(){Le=-(Be=180),Qt=-(ln=90)}};function ny(e,t){li.push(Rr=[Le=e,Be=e]),t<Qt&&(Qt=t),t>ln&&(ln=t)}function JM(e,t){var n=uo([e*le,t*le]);if(za){var r=Ia(za,n),i=[r[1],-r[0],0],o=Ia(i,r);Lh(o),o=Nh(o);var a=e-lo,s=a>0?1:-1,u=o[0]*ke*s,l,c=be(a)>180;c^(s*lo<u&&u<s*e)?(l=o[1]*ke,l>ln&&(ln=l)):(u=(u+360)%360-180,c^(s*lo<u&&u<s*e)?(l=-o[1]*ke,l<Qt&&(Qt=l)):(t<Qt&&(Qt=t),t>ln&&(ln=t))),c?e<lo?cn(Le,e)>cn(Le,Be)&&(Be=e):cn(e,Be)>cn(Le,Be)&&(Le=e):Be>=Le?(e<Le&&(Le=e),e>Be&&(Be=e)):e>lo?cn(Le,e)>cn(Le,Be)&&(Be=e):cn(e,Be)>cn(Le,Be)&&(Le=e)}else li.push(Rr=[Le=e,Be=e]);t<Qt&&(Qt=t),t>ln&&(ln=t),za=n,lo=e}function eT(){Dr.point=JM}function tT(){Rr[0]=Le,Rr[1]=Be,Dr.point=ny,za=null}function nT(e,t){if(za){var n=e-lo;qu.add(be(n)>180?n+(n>0?360:-360):n)}else ZM=e,QM=t;fr.point(e,t),JM(e,t)}function jQ(){fr.lineStart()}function WQ(){nT(ZM,QM),fr.lineEnd(),be(qu)>ue&&(Le=-(Be=180)),Rr[0]=Le,Rr[1]=Be,za=null}function cn(e,t){return(t-=e)<0?t+360:t}function HQ(e,t){return e[0]-t[0]}function rT(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function qQ(e){var t,n,r,i,o,a,s;if(ln=Be=-(Le=Qt=1/0),li=[],In(e,Dr),n=li.length){for(li.sort(HQ),t=1,r=li[0],o=[r];t<n;++t)i=li[t],rT(r,i[0])||rT(r,i[1])?(cn(r[0],i[1])>cn(r[0],r[1])&&(r[1]=i[1]),cn(i[0],r[1])>cn(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=o.length-1,t=0,r=o[n];t<=n;r=i,++t)i=o[t],(s=cn(r[1],i[0]))>a&&(a=s,Le=i[0],Be=r[1])}return li=Rr=null,Le===1/0||Qt===1/0?[[NaN,NaN],[NaN,NaN]]:[[Le,Qt],[Be,ln]]}var Uu,Ih,zh,Fh,Bh,jh,Wh,Hh,ry,iy,oy,iT,oT,It,zt,Ft,zn={sphere:De,point:ay,lineStart:aT,lineEnd:sT,polygonStart:function(){zn.lineStart=YQ,zn.lineEnd=GQ},polygonEnd:function(){zn.lineStart=aT,zn.lineEnd=sT}};function ay(e,t){e*=le,t*=le;var n=ae(t);Vu(n*ae(e),n*re(e),re(t))}function Vu(e,t,n){++Uu,zh+=(e-zh)/Uu,Fh+=(t-Fh)/Uu,Bh+=(n-Bh)/Uu}function aT(){zn.point=UQ}function UQ(e,t){e*=le,t*=le;var n=ae(t);It=n*ae(e),zt=n*re(e),Ft=re(t),zn.point=VQ,Vu(It,zt,Ft)}function VQ(e,t){e*=le,t*=le;var n=ae(t),r=n*ae(e),i=n*re(e),o=re(t),a=Dt(at((a=zt*o-Ft*i)*a+(a=Ft*r-It*o)*a+(a=It*i-zt*r)*a),It*r+zt*i+Ft*o);Ih+=a,jh+=a*(It+(It=r)),Wh+=a*(zt+(zt=i)),Hh+=a*(Ft+(Ft=o)),Vu(It,zt,Ft)}function sT(){zn.point=ay}function YQ(){zn.point=XQ}function GQ(){uT(iT,oT),zn.point=ay}function XQ(e,t){iT=e,oT=t,e*=le,t*=le,zn.point=uT;var n=ae(t);It=n*ae(e),zt=n*re(e),Ft=re(t),Vu(It,zt,Ft)}function uT(e,t){e*=le,t*=le;var n=ae(t),r=n*ae(e),i=n*re(e),o=re(t),a=zt*o-Ft*i,s=Ft*r-It*o,u=It*i-zt*r,l=G1(a,s,u),c=Lt(l),f=l&&-c/l;ry.add(f*a),iy.add(f*s),oy.add(f*u),Ih+=c,jh+=c*(It+(It=r)),Wh+=c*(zt+(zt=i)),Hh+=c*(Ft+(Ft=o)),Vu(It,zt,Ft)}function KQ(e){Uu=Ih=zh=Fh=Bh=jh=Wh=Hh=0,ry=new Ge,iy=new Ge,oy=new Ge,In(e,zn);var t=+ry,n=+iy,r=+oy,i=G1(t,n,r);return i<Hu&&(t=jh,n=Wh,r=Hh,Ih<ue&&(t=zh,n=Fh,r=Bh),i=G1(t,n,r),i<Hu)?[NaN,NaN]:[Dt(n,t)*ke,Lt(r/i)*ke]}function Fa(e){return function(){return e}}function sy(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function uy(e,t){return[be(e)>me?e+Math.round(-e/Rt)*Rt:e,t]}uy.invert=uy;function ly(e,t,n){return(e%=Rt)?t||n?sy(cT(e),fT(t,n)):cT(e):t||n?fT(t,n):uy}function lT(e){return function(t,n){return t+=e,[t>me?t-Rt:t<-me?t+Rt:t,n]}}function cT(e){var t=lT(e);return t.invert=lT(-e),t}function fT(e,t){var n=ae(e),r=re(e),i=ae(t),o=re(t);function a(s,u){var l=ae(u),c=ae(s)*l,f=re(s)*l,h=re(u),d=h*n+c*r;return[Dt(f*i-d*o,c*n-h*r),Lt(d*i+f*o)]}return a.invert=function(s,u){var l=ae(u),c=ae(s)*l,f=re(s)*l,h=re(u),d=h*i-f*o;return[Dt(f*i+h*o,c*n+d*r),Lt(d*n-c*r)]},a}function hT(e){e=ly(e[0]*le,e[1]*le,e.length>2?e[2]*le:0);function t(n){return n=e(n[0]*le,n[1]*le),n[0]*=ke,n[1]*=ke,n}return t.invert=function(n){return n=e.invert(n[0]*le,n[1]*le),n[0]*=ke,n[1]*=ke,n},t}function dT(e,t,n,r,i,o){if(!!n){var a=ae(t),s=re(t),u=r*n;i==null?(i=t+r*Rt,o=t-u/2):(i=pT(a,i),o=pT(a,o),(r>0?i<o:i>o)&&(i+=r*Rt));for(var l,c=i;r>0?c>o:c<o;c-=u)l=Nh([a,-s*ae(c),-s*re(c)]),e.point(l[0],l[1])}}function pT(e,t){t=uo(t),t[0]-=e,Lh(t);var n=HM(-t[1]);return((-t[2]<0?-n:n)+Rt-ue)%Rt}function ZQ(){var e=Fa([0,0]),t=Fa(90),n=Fa(6),r,i,o={point:a};function a(u,l){r.push(u=i(u,l)),u[0]*=ke,u[1]*=ke}function s(){var u=e.apply(this,arguments),l=t.apply(this,arguments)*le,c=n.apply(this,arguments)*le;return r=[],i=ly(-u[0]*le,-u[1]*le,0).invert,dT(o,l,c,1),u={type:"Polygon",coordinates:[r]},r=i=null,u}return s.center=function(u){return arguments.length?(e=typeof u=="function"?u:Fa([+u[0],+u[1]]),s):e},s.radius=function(u){return arguments.length?(t=typeof u=="function"?u:Fa(+u),s):t},s.precision=function(u){return arguments.length?(n=typeof u=="function"?u:Fa(+u),s):n},s}function gT(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:De,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function qh(e,t){return be(e[0]-t[0])<ue&&be(e[1]-t[1])<ue}function Uh(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function mT(e,t,n,r,i){var o=[],a=[],s,u;if(e.forEach(function(p){if(!((m=p.length-1)<=0)){var m,g=p[0],y=p[m],v;if(qh(g,y)){if(!g[2]&&!y[2]){for(i.lineStart(),s=0;s<m;++s)i.point((g=p[s])[0],g[1]);i.lineEnd();return}y[0]+=2*ue}o.push(v=new Uh(g,p,null,!0)),a.push(v.o=new Uh(g,null,v,!1)),o.push(v=new Uh(y,p,null,!1)),a.push(v.o=new Uh(y,null,v,!0))}}),!!o.length){for(a.sort(t),yT(o),yT(a),s=0,u=a.length;s<u;++s)a[s].e=n=!n;for(var l=o[0],c,f;;){for(var h=l,d=!0;h.v;)if((h=h.n)===l)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(s=0,u=c.length;s<u;++s)i.point((f=c[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(c=h.p.z,s=c.length-1;s>=0;--s)i.point((f=c[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);i.lineEnd()}}}function yT(e){if(!!(t=e.length)){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function cy(e){return be(e[0])<=me?e[0]:wn(e[0])*((be(e[0])+me)%Rt-me)}function vT(e,t){var n=cy(t),r=t[1],i=re(r),o=[re(n),-ae(n),0],a=0,s=0,u=new Ge;i===1?r=Fe+ue:i===-1&&(r=-Fe-ue);for(var l=0,c=e.length;l<c;++l)if(!!(h=(f=e[l]).length))for(var f,h,d=f[h-1],p=cy(d),m=d[1]/2+kh,g=re(m),y=ae(m),v=0;v<h;++v,p=b,g=w,y=$,d=x){var x=f[v],b=cy(x),_=x[1]/2+kh,w=re(_),$=ae(_),T=b-p,k=T>=0?1:-1,S=k*T,M=S>me,A=g*w;if(u.add(Dt(A*k*re(S),y*$+A*ae(S))),a+=M?T+k*Rt:T,M^p>=n^b>=n){var E=Ia(uo(d),uo(x));Lh(E);var O=Ia(o,E);Lh(O);var P=(M^T>=0?-1:1)*Lt(O[2]);(r>P||r===P&&(E[0]||E[1]))&&(s+=M^T>=0?1:-1)}}return(a<-ue||a<ue&&u<-Hu)^s&1}function bT(e,t,n,r){return function(i){var o=t(i),a=gT(),s=t(a),u=!1,l,c,f,h={point:d,lineStart:m,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=x,c=[],l=[]},polygonEnd:function(){h.point=d,h.lineStart=m,h.lineEnd=g,c=Cm(c);var b=vT(l,r);c.length?(u||(i.polygonStart(),u=!0),mT(c,JQ,b,n,i)):b&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),c=l=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(b,_){e(b,_)&&i.point(b,_)}function p(b,_){o.point(b,_)}function m(){h.point=p,o.lineStart()}function g(){h.point=d,o.lineEnd()}function y(b,_){f.push([b,_]),s.point(b,_)}function v(){s.lineStart(),f=[]}function x(){y(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),_=a.result(),w,$=_.length,T,k,S;if(f.pop(),l.push(f),f=null,!!$){if(b&1){if(k=_[0],(T=k.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),w=0;w<T;++w)i.point((S=k[w])[0],S[1]);i.lineEnd()}return}$>1&&b&2&&_.push(_.pop().concat(_.shift())),c.push(_.filter(QQ))}}return h}}function QQ(e){return e.length>1}function JQ(e,t){return((e=e.x)[0]<0?e[1]-Fe-ue:Fe-e[1])-((t=t.x)[0]<0?t[1]-Fe-ue:Fe-t[1])}var fy=bT(function(){return!0},eJ,nJ,[-me,-Fe]);function eJ(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(o,a){var s=o>0?me:-me,u=be(o-t);be(u-me)<ue?(e.point(t,n=(n+a)/2>0?Fe:-Fe),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(o,n),i=0):r!==s&&u>=me&&(be(t-r)<ue&&(t-=r*ue),be(o-s)<ue&&(o-=s*ue),n=tJ(t,n,o,a),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=o,n=a),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function tJ(e,t,n,r){var i,o,a=re(e-n);return be(a)>ue?La((re(t)*(o=ae(r))*re(n)-re(r)*(i=ae(t))*re(e))/(i*o*a)):(t+r)/2}function nJ(e,t,n,r){var i;if(e==null)i=n*Fe,r.point(-me,i),r.point(0,i),r.point(me,i),r.point(me,0),r.point(me,-i),r.point(0,-i),r.point(-me,-i),r.point(-me,0),r.point(-me,i);else if(be(e[0]-t[0])>ue){var o=e[0]<t[0]?me:-me;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}function xT(e){var t=ae(e),n=6*le,r=t>0,i=be(t)>ue;function o(c,f,h,d){dT(d,e,n,h,c,f)}function a(c,f){return ae(c)*ae(f)>t}function s(c){var f,h,d,p,m;return{lineStart:function(){p=d=!1,m=1},point:function(g,y){var v=[g,y],x,b=a(g,y),_=r?b?0:l(g,y):b?l(g+(g<0?me:-me),y):0;if(!f&&(p=d=b)&&c.lineStart(),b!==d&&(x=u(f,v),(!x||qh(f,x)||qh(v,x))&&(v[2]=1)),b!==d)m=0,b?(c.lineStart(),x=u(v,f),c.point(x[0],x[1])):(x=u(f,v),c.point(x[0],x[1],2),c.lineEnd()),f=x;else if(i&&f&&r^b){var w;!(_&h)&&(w=u(v,f,!0))&&(m=0,r?(c.lineStart(),c.point(w[0][0],w[0][1]),c.point(w[1][0],w[1][1]),c.lineEnd()):(c.point(w[1][0],w[1][1]),c.lineEnd(),c.lineStart(),c.point(w[0][0],w[0][1],3)))}b&&(!f||!qh(f,v))&&c.point(v[0],v[1]),f=v,d=b,h=_},lineEnd:function(){d&&c.lineEnd(),f=null},clean:function(){return m|(p&&d)<<1}}}function u(c,f,h){var d=uo(c),p=uo(f),m=[1,0,0],g=Ia(d,p),y=Rh(g,g),v=g[0],x=y-v*v;if(!x)return!h&&c;var b=t*y/x,_=-t*v/x,w=Ia(m,g),$=Dh(m,b),T=Dh(g,_);ty($,T);var k=w,S=Rh($,k),M=Rh(k,k),A=S*S-M*(Rh($,$)-1);if(!(A<0)){var E=at(A),O=Dh(k,(-S-E)/M);if(ty(O,$),O=Nh(O),!h)return O;var P=c[0],C=f[0],N=c[1],D=f[1],I;C<P&&(I=P,P=C,C=I);var B=C-P,U=be(B-me)<ue,Y=U||B<ue;if(!U&&D<N&&(I=N,N=D,D=I),Y?U?N+D>0^O[1]<(be(O[0]-P)<ue?N:D):N<=O[1]&&O[1]<=D:B>me^(P<=O[0]&&O[0]<=C)){var J=Dh(k,(-S+E)/M);return ty(J,$),[O,Nh(J)]}}}function l(c,f){var h=r?e:me-e,d=0;return c<-h?d|=1:c>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return bT(a,s,o,r?[0,-e]:[-me,e-me])}function rJ(e,t,n,r,i,o){var a=e[0],s=e[1],u=t[0],l=t[1],c=0,f=1,h=u-a,d=l-s,p;if(p=n-a,!(!h&&p>0)){if(p/=h,h<0){if(p<c)return;p<f&&(f=p)}else if(h>0){if(p>f)return;p>c&&(c=p)}if(p=i-a,!(!h&&p<0)){if(p/=h,h<0){if(p>f)return;p>c&&(c=p)}else if(h>0){if(p<c)return;p<f&&(f=p)}if(p=r-s,!(!d&&p>0)){if(p/=d,d<0){if(p<c)return;p<f&&(f=p)}else if(d>0){if(p>f)return;p>c&&(c=p)}if(p=o-s,!(!d&&p<0)){if(p/=d,d<0){if(p>f)return;p>c&&(c=p)}else if(d>0){if(p<c)return;p<f&&(f=p)}return c>0&&(e[0]=a+c*h,e[1]=s+c*d),f<1&&(t[0]=a+f*h,t[1]=s+f*d),!0}}}}}var Yu=1e9,Vh=-Yu;function Yh(e,t,n,r){function i(l,c){return e<=l&&l<=n&&t<=c&&c<=r}function o(l,c,f,h){var d=0,p=0;if(l==null||(d=a(l,f))!==(p=a(c,f))||u(l,c)<0^f>0)do h.point(d===0||d===3?e:n,d>1?r:t);while((d=(d+f+4)%4)!==p);else h.point(c[0],c[1])}function a(l,c){return be(l[0]-e)<ue?c>0?0:3:be(l[0]-n)<ue?c>0?2:1:be(l[1]-t)<ue?c>0?1:0:c>0?3:2}function s(l,c){return u(l.x,c.x)}function u(l,c){var f=a(l,1),h=a(c,1);return f!==h?f-h:f===0?c[1]-l[1]:f===1?l[0]-c[0]:f===2?l[1]-c[1]:c[0]-l[0]}return function(l){var c=l,f=gT(),h,d,p,m,g,y,v,x,b,_,w,$={point:T,lineStart:A,lineEnd:E,polygonStart:S,polygonEnd:M};function T(P,C){i(P,C)&&c.point(P,C)}function k(){for(var P=0,C=0,N=d.length;C<N;++C)for(var D=d[C],I=1,B=D.length,U=D[0],Y,J,q=U[0],j=U[1];I<B;++I)Y=q,J=j,U=D[I],q=U[0],j=U[1],J<=r?j>r&&(q-Y)*(r-J)>(j-J)*(e-Y)&&++P:j<=r&&(q-Y)*(r-J)<(j-J)*(e-Y)&&--P;return P}function S(){c=f,h=[],d=[],w=!0}function M(){var P=k(),C=w&&P,N=(h=Cm(h)).length;(C||N)&&(l.polygonStart(),C&&(l.lineStart(),o(null,null,1,l),l.lineEnd()),N&&mT(h,s,P,o,l),l.polygonEnd()),c=l,h=d=p=null}function A(){$.point=O,d&&d.push(p=[]),_=!0,b=!1,v=x=NaN}function E(){h&&(O(m,g),y&&b&&f.rejoin(),h.push(f.result())),$.point=T,b&&c.lineEnd()}function O(P,C){var N=i(P,C);if(d&&p.push([P,C]),_)m=P,g=C,y=N,_=!1,N&&(c.lineStart(),c.point(P,C));else if(N&&b)c.point(P,C);else{var D=[v=Math.max(Vh,Math.min(Yu,v)),x=Math.max(Vh,Math.min(Yu,x))],I=[P=Math.max(Vh,Math.min(Yu,P)),C=Math.max(Vh,Math.min(Yu,C))];rJ(D,I,e,t,n,r)?(b||(c.lineStart(),c.point(D[0],D[1])),c.point(I[0],I[1]),N||c.lineEnd(),w=!1):N&&(c.lineStart(),c.point(P,C),w=!1)}v=P,x=C,b=N}return $}}function iJ(){var e=0,t=0,n=960,r=500,i,o,a;return a={stream:function(s){return i&&o===s?i:i=Yh(e,t,n,r)(o=s)},extent:function(s){return arguments.length?(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1],i=o=null,a):[[e,t],[n,r]]}}}var hy,dy,Gh,Xh,Ba={sphere:De,point:De,lineStart:oJ,lineEnd:De,polygonStart:De,polygonEnd:De};function oJ(){Ba.point=sJ,Ba.lineEnd=aJ}function aJ(){Ba.point=Ba.lineEnd=De}function sJ(e,t){e*=le,t*=le,dy=e,Gh=re(t),Xh=ae(t),Ba.point=uJ}function uJ(e,t){e*=le,t*=le;var n=re(t),r=ae(t),i=be(e-dy),o=ae(i),a=re(i),s=r*a,u=Xh*n-Gh*r*o,l=Gh*n+Xh*r*o;hy.add(Dt(at(s*s+u*u),l)),dy=e,Gh=n,Xh=r}function wT(e){return hy=new Ge,In(e,Ba),+hy}var py=[null,null],lJ={type:"LineString",coordinates:py};function Kh(e,t){return py[0]=e,py[1]=t,wT(lJ)}var _T={Feature:function(e,t){return Zh(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Zh(n[r].geometry,t))return!0;return!1}},$T={Sphere:function(){return!0},Point:function(e,t){return ST(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(ST(n[r],t))return!0;return!1},LineString:function(e,t){return MT(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(MT(n[r],t))return!0;return!1},Polygon:function(e,t){return TT(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(TT(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Zh(n[r],t))return!0;return!1}};function Zh(e,t){return e&&$T.hasOwnProperty(e.type)?$T[e.type](e,t):!1}function ST(e,t){return Kh(e,t)===0}function MT(e,t){for(var n,r,i,o=0,a=e.length;o<a;o++){if(r=Kh(e[o],t),r===0||o>0&&(i=Kh(e[o],e[o-1]),i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<Hu*i))return!0;n=r}return!1}function TT(e,t){return!!vT(e.map(cJ),kT(t))}function cJ(e){return e=e.map(kT),e.pop(),e}function kT(e){return[e[0]*le,e[1]*le]}function fJ(e,t){return(e&&_T.hasOwnProperty(e.type)?_T[e.type]:Zh)(e,t)}function OT(e,t,n){var r=ri(e,t-ue,n).concat(t);return function(i){return r.map(function(o){return[i,o]})}}function CT(e,t,n){var r=ri(e,t-ue,n).concat(t);return function(i){return r.map(function(o){return[o,i]})}}function PT(){var e,t,n,r,i,o,a,s,u=10,l=u,c=90,f=360,h,d,p,m,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return ri(Oh(r/c)*c,n,c).map(p).concat(ri(Oh(s/f)*f,a,f).map(m)).concat(ri(Oh(t/u)*u,e,u).filter(function(x){return be(x%c)>ue}).map(h)).concat(ri(Oh(o/l)*l,i,l).filter(function(x){return be(x%f)>ue}).map(d))}return y.lines=function(){return v().map(function(x){return{type:"LineString",coordinates:x}})},y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(m(a).slice(1),p(n).reverse().slice(1),m(s).reverse().slice(1))]}},y.extent=function(x){return arguments.length?y.extentMajor(x).extentMinor(x):y.extentMinor()},y.extentMajor=function(x){return arguments.length?(r=+x[0][0],n=+x[1][0],s=+x[0][1],a=+x[1][1],r>n&&(x=r,r=n,n=x),s>a&&(x=s,s=a,a=x),y.precision(g)):[[r,s],[n,a]]},y.extentMinor=function(x){return arguments.length?(t=+x[0][0],e=+x[1][0],o=+x[0][1],i=+x[1][1],t>e&&(x=t,t=e,e=x),o>i&&(x=o,o=i,i=x),y.precision(g)):[[t,o],[e,i]]},y.step=function(x){return arguments.length?y.stepMajor(x).stepMinor(x):y.stepMinor()},y.stepMajor=function(x){return arguments.length?(c=+x[0],f=+x[1],y):[c,f]},y.stepMinor=function(x){return arguments.length?(u=+x[0],l=+x[1],y):[u,l]},y.precision=function(x){return arguments.length?(g=+x,h=OT(o,i,90),d=CT(t,e,g),p=OT(s,a,90),m=CT(r,n,g),y):g},y.extentMajor([[-180,-90+ue],[180,90-ue]]).extentMinor([[-180,-80-ue],[180,80+ue]])}function hJ(){return PT()()}function dJ(e,t){var n=e[0]*le,r=e[1]*le,i=t[0]*le,o=t[1]*le,a=ae(r),s=re(r),u=ae(o),l=re(o),c=a*ae(n),f=a*re(n),h=u*ae(i),d=u*re(i),p=2*Lt(at(qM(o-r)+a*u*qM(i-n))),m=re(p),g=p?function(y){var v=re(y*=p)/m,x=re(p-y)/m,b=x*c+v*h,_=x*f+v*d,w=x*s+v*l;return[Dt(_,b)*ke,Dt(w,at(b*b+_*_))*ke]}:function(){return[n*ke,r*ke]};return g.distance=p,g}var Gu=e=>e,gy=new Ge,my=new Ge,ET,AT,yy,vy,ci={point:De,lineStart:De,lineEnd:De,polygonStart:function(){ci.lineStart=pJ,ci.lineEnd=mJ},polygonEnd:function(){ci.lineStart=ci.lineEnd=ci.point=De,gy.add(be(my)),my=new Ge},result:function(){var e=gy/2;return gy=new Ge,e}};function pJ(){ci.point=gJ}function gJ(e,t){ci.point=NT,ET=yy=e,AT=vy=t}function NT(e,t){my.add(vy*e-yy*t),yy=e,vy=t}function mJ(){NT(ET,AT)}var RT=ci,ja=1/0,Qh=ja,Xu=-ja,Jh=Xu,yJ={point:vJ,lineStart:De,lineEnd:De,polygonStart:De,polygonEnd:De,result:function(){var e=[[ja,Qh],[Xu,Jh]];return Xu=Jh=-(Qh=ja=1/0),e}};function vJ(e,t){e<ja&&(ja=e),e>Xu&&(Xu=e),t<Qh&&(Qh=t),t>Jh&&(Jh=t)}var ed=yJ,by=0,xy=0,Ku=0,td=0,nd=0,Wa=0,wy=0,_y=0,Zu=0,DT,LT,hr,dr,Fn={point:co,lineStart:IT,lineEnd:zT,polygonStart:function(){Fn.lineStart=wJ,Fn.lineEnd=_J},polygonEnd:function(){Fn.point=co,Fn.lineStart=IT,Fn.lineEnd=zT},result:function(){var e=Zu?[wy/Zu,_y/Zu]:Wa?[td/Wa,nd/Wa]:Ku?[by/Ku,xy/Ku]:[NaN,NaN];return by=xy=Ku=td=nd=Wa=wy=_y=Zu=0,e}};function co(e,t){by+=e,xy+=t,++Ku}function IT(){Fn.point=bJ}function bJ(e,t){Fn.point=xJ,co(hr=e,dr=t)}function xJ(e,t){var n=e-hr,r=t-dr,i=at(n*n+r*r);td+=i*(hr+e)/2,nd+=i*(dr+t)/2,Wa+=i,co(hr=e,dr=t)}function zT(){Fn.point=co}function wJ(){Fn.point=$J}function _J(){FT(DT,LT)}function $J(e,t){Fn.point=FT,co(DT=hr=e,LT=dr=t)}function FT(e,t){var n=e-hr,r=t-dr,i=at(n*n+r*r);td+=i*(hr+e)/2,nd+=i*(dr+t)/2,Wa+=i,i=dr*e-hr*t,wy+=i*(hr+e),_y+=i*(dr+t),Zu+=i*3,co(hr=e,dr=t)}var BT=Fn;function jT(e){this._context=e}jT.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Rt);break}}},result:De};var $y=new Ge,Sy,WT,HT,Qu,Ju,rd={point:De,lineStart:function(){rd.point=SJ},lineEnd:function(){Sy&&qT(WT,HT),rd.point=De},polygonStart:function(){Sy=!0},polygonEnd:function(){Sy=null},result:function(){var e=+$y;return $y=new Ge,e}};function SJ(e,t){rd.point=qT,WT=Qu=e,HT=Ju=t}function qT(e,t){Qu-=e,Ju-=t,$y.add(at(Qu*Qu+Ju*Ju)),Qu=e,Ju=t}var UT=rd;function VT(){this._string=[]}VT.prototype={_radius:4.5,_circle:YT(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._string.push("M",e,",",t),this._point=1;break}case 1:{this._string.push("L",e,",",t);break}default:{this._circle==null&&(this._circle=YT(this._radius)),this._string.push("M",e,",",t,this._circle);break}}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}else return null}};function YT(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function MJ(e,t){var n=4.5,r,i;function o(a){return a&&(typeof n=="function"&&i.pointRadius(+n.apply(this,arguments)),In(a,r(i))),i.result()}return o.area=function(a){return In(a,r(RT)),RT.result()},o.measure=function(a){return In(a,r(UT)),UT.result()},o.bounds=function(a){return In(a,r(ed)),ed.result()},o.centroid=function(a){return In(a,r(BT)),BT.result()},o.projection=function(a){return arguments.length?(r=a==null?(e=null,Gu):(e=a).stream,o):e},o.context=function(a){return arguments.length?(i=a==null?(t=null,new VT):new jT(t=a),typeof n!="function"&&i.pointRadius(n),o):t},o.pointRadius=function(a){return arguments.length?(n=typeof a=="function"?a:(i.pointRadius(+a),+a),o):n},o.projection(e).context(t)}function TJ(e){return{stream:el(e)}}function el(e){return function(t){var n=new My;for(var r in e)n[r]=e[r];return n.stream=t,n}}function My(){}My.prototype={constructor:My,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Ty(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),In(n,e.stream(ed)),t(ed.result()),r!=null&&e.clipExtent(r),e}function id(e,t,n){return Ty(e,function(r){var i=t[1][0]-t[0][0],o=t[1][1]-t[0][1],a=Math.min(i/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),s=+t[0][0]+(i-a*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(o-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([s,u])},n)}function ky(e,t,n){return id(e,[[0,0],t],n)}function Oy(e,t,n){return Ty(e,function(r){var i=+t,o=i/(r[1][0]-r[0][0]),a=(i-o*(r[1][0]+r[0][0]))/2,s=-o*r[0][1];e.scale(150*o).translate([a,s])},n)}function Cy(e,t,n){return Ty(e,function(r){var i=+t,o=i/(r[1][1]-r[0][1]),a=-o*r[0][0],s=(i-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([a,s])},n)}var GT=16,kJ=ae(30*le);function XT(e,t){return+t?CJ(e,t):OJ(e)}function OJ(e){return el({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function CJ(e,t){function n(r,i,o,a,s,u,l,c,f,h,d,p,m,g){var y=l-r,v=c-i,x=y*y+v*v;if(x>4*t&&m--){var b=a+h,_=s+d,w=u+p,$=at(b*b+_*_+w*w),T=Lt(w/=$),k=be(be(w)-1)<ue||be(o-f)<ue?(o+f)/2:Dt(_,b),S=e(k,T),M=S[0],A=S[1],E=M-r,O=A-i,P=v*E-y*O;(P*P/x>t||be((y*E+v*O)/x-.5)>.3||a*h+s*d+u*p<kJ)&&(n(r,i,o,a,s,u,M,A,k,b/=$,_/=$,w,m,g),g.point(M,A),n(M,A,k,b,_,w,l,c,f,h,d,p,m,g))}}return function(r){var i,o,a,s,u,l,c,f,h,d,p,m,g={point:y,lineStart:v,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=_},polygonEnd:function(){r.polygonEnd(),g.lineStart=v}};function y(T,k){T=e(T,k),r.point(T[0],T[1])}function v(){f=NaN,g.point=x,r.lineStart()}function x(T,k){var S=uo([T,k]),M=e(T,k);n(f,h,c,d,p,m,f=M[0],h=M[1],c=T,d=S[0],p=S[1],m=S[2],GT,r),r.point(f,h)}function b(){g.point=y,r.lineEnd()}function _(){v(),g.point=w,g.lineEnd=$}function w(T,k){x(i=T,k),o=f,a=h,s=d,u=p,l=m,g.point=x}function $(){n(f,h,c,d,p,m,o,a,i,s,u,l,GT,r),g.lineEnd=b,b()}return g}}var PJ=el({point:function(e,t){this.stream.point(e*le,t*le)}});function EJ(e){return el({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function AJ(e,t,n,r,i){function o(a,s){return a*=r,s*=i,[t+e*a,n-e*s]}return o.invert=function(a,s){return[(a-t)/e*r,(n-s)/e*i]},o}function KT(e,t,n,r,i,o){if(!o)return AJ(e,t,n,r,i);var a=ae(o),s=re(o),u=a*e,l=s*e,c=a/e,f=s/e,h=(s*n-a*t)/e,d=(s*t+a*n)/e;function p(m,g){return m*=r,g*=i,[u*m-l*g+t,n-l*m-u*g]}return p.invert=function(m,g){return[r*(c*m-f*g+h),i*(d-f*m-c*g)]},p}function pr(e){return Py(function(){return e})()}function Py(e){var t,n=150,r=480,i=250,o=0,a=0,s=0,u=0,l=0,c,f=0,h=1,d=1,p=null,m=fy,g=null,y,v,x,b=Gu,_=.5,w,$,T,k,S;function M(P){return T(P[0]*le,P[1]*le)}function A(P){return P=T.invert(P[0],P[1]),P&&[P[0]*ke,P[1]*ke]}M.stream=function(P){return k&&S===P?k:k=PJ(EJ(c)(m(w(b(S=P)))))},M.preclip=function(P){return arguments.length?(m=P,p=void 0,O()):m},M.postclip=function(P){return arguments.length?(b=P,g=y=v=x=null,O()):b},M.clipAngle=function(P){return arguments.length?(m=+P?xT(p=P*le):(p=null,fy),O()):p*ke},M.clipExtent=function(P){return arguments.length?(b=P==null?(g=y=v=x=null,Gu):Yh(g=+P[0][0],y=+P[0][1],v=+P[1][0],x=+P[1][1]),O()):g==null?null:[[g,y],[v,x]]},M.scale=function(P){return arguments.length?(n=+P,E()):n},M.translate=function(P){return arguments.length?(r=+P[0],i=+P[1],E()):[r,i]},M.center=function(P){return arguments.length?(o=P[0]%360*le,a=P[1]%360*le,E()):[o*ke,a*ke]},M.rotate=function(P){return arguments.length?(s=P[0]%360*le,u=P[1]%360*le,l=P.length>2?P[2]%360*le:0,E()):[s*ke,u*ke,l*ke]},M.angle=function(P){return arguments.length?(f=P%360*le,E()):f*ke},M.reflectX=function(P){return arguments.length?(h=P?-1:1,E()):h<0},M.reflectY=function(P){return arguments.length?(d=P?-1:1,E()):d<0},M.precision=function(P){return arguments.length?(w=XT($,_=P*P),O()):at(_)},M.fitExtent=function(P,C){return id(M,P,C)},M.fitSize=function(P,C){return ky(M,P,C)},M.fitWidth=function(P,C){return Oy(M,P,C)},M.fitHeight=function(P,C){return Cy(M,P,C)};function E(){var P=KT(n,0,0,h,d,f).apply(null,t(o,a)),C=KT(n,r-P[0],i-P[1],h,d,f);return c=ly(s,u,l),$=sy(t,C),T=sy(c,$),w=XT($,_),O()}function O(){return k=S=null,M}return function(){return t=e.apply(this,arguments),M.invert=t.invert&&A,E()}}function Ey(e){var t=0,n=me/3,r=Py(e),i=r(t,n);return i.parallels=function(o){return arguments.length?r(t=o[0]*le,n=o[1]*le):[t*ke,n*ke]},i}function NJ(e){var t=ae(e);function n(r,i){return[r*t,re(i)/t]}return n.invert=function(r,i){return[r/t,Lt(i*t)]},n}function ZT(e,t){var n=re(e),r=(n+re(t))/2;if(be(r)<ue)return NJ(e);var i=1+n*(2*r-n),o=at(i)/r;function a(s,u){var l=at(i-2*r*re(u))/r;return[l*re(s*=r),o-l*ae(s)]}return a.invert=function(s,u){var l=o-u,c=Dt(s,be(l))*wn(l);return l*r<0&&(c-=me*wn(s)*wn(l)),[c/r,Lt((i-(s*s+l*l)*r*r)/(2*r))]},a}function od(){return Ey(ZT).scale(155.424).center([0,33.6442])}function QT(){return od().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function RJ(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function DJ(){var e,t,n=QT(),r,i=od().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,a=od().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,u,l={point:function(h,d){u=[h,d]}};function c(h){var d=h[0],p=h[1];return u=null,r.point(d,p),u||(o.point(d,p),u)||(s.point(d,p),u)}c.invert=function(h){var d=n.scale(),p=n.translate(),m=(h[0]-p[0])/d,g=(h[1]-p[1])/d;return(g>=.12&&g<.234&&m>=-.425&&m<-.214?i:g>=.166&&g<.234&&m>=-.214&&m<-.115?a:n).invert(h)},c.stream=function(h){return e&&t===h?e:e=RJ([n.stream(t=h),i.stream(h),a.stream(h)])},c.precision=function(h){return arguments.length?(n.precision(h),i.precision(h),a.precision(h),f()):n.precision()},c.scale=function(h){return arguments.length?(n.scale(h),i.scale(h*.35),a.scale(h),c.translate(n.translate())):n.scale()},c.translate=function(h){if(!arguments.length)return n.translate();var d=n.scale(),p=+h[0],m=+h[1];return r=n.translate(h).clipExtent([[p-.455*d,m-.238*d],[p+.455*d,m+.238*d]]).stream(l),o=i.translate([p-.307*d,m+.201*d]).clipExtent([[p-.425*d+ue,m+.12*d+ue],[p-.214*d-ue,m+.234*d-ue]]).stream(l),s=a.translate([p-.205*d,m+.212*d]).clipExtent([[p-.214*d+ue,m+.166*d+ue],[p-.115*d-ue,m+.234*d-ue]]).stream(l),f()},c.fitExtent=function(h,d){return id(c,h,d)},c.fitSize=function(h,d){return ky(c,h,d)},c.fitWidth=function(h,d){return Oy(c,h,d)},c.fitHeight=function(h,d){return Cy(c,h,d)};function f(){return e=t=null,c}return c.scale(1070)}function JT(e){return function(t,n){var r=ae(t),i=ae(n),o=e(r*i);return o===1/0?[2,0]:[o*i*re(t),o*re(n)]}}function tl(e){return function(t,n){var r=at(t*t+n*n),i=e(r),o=re(i),a=ae(i);return[Dt(t*o,r*a),Lt(r&&n*o/r)]}}var Ay=JT(function(e){return at(2/(1+e))});Ay.invert=tl(function(e){return 2*Lt(e/2)});function LJ(){return pr(Ay).scale(124.75).clipAngle(180-.001)}var Ny=JT(function(e){return(e=HM(e))&&e/re(e)});Ny.invert=tl(function(e){return e});function IJ(){return pr(Ny).scale(79.4188).clipAngle(180-.001)}function nl(e,t){return[e,Ch(K1((Fe+t)/2))]}nl.invert=function(e,t){return[e,2*La(WM(t))-Fe]};function zJ(){return e4(nl).scale(961/Rt)}function e4(e){var t=pr(e),n=t.center,r=t.scale,i=t.translate,o=t.clipExtent,a=null,s,u,l;t.scale=function(f){return arguments.length?(r(f),c()):r()},t.translate=function(f){return arguments.length?(i(f),c()):i()},t.center=function(f){return arguments.length?(n(f),c()):n()},t.clipExtent=function(f){return arguments.length?(f==null?a=s=u=l=null:(a=+f[0][0],s=+f[0][1],u=+f[1][0],l=+f[1][1]),c()):a==null?null:[[a,s],[u,l]]};function c(){var f=me*r(),h=t(hT(t.rotate()).invert([0,0]));return o(a==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===nl?[[Math.max(h[0]-f,a),s],[Math.min(h[0]+f,u),l]]:[[a,Math.max(h[1]-f,s)],[u,Math.min(h[1]+f,l)]])}return c()}function ad(e){return K1((Fe+e)/2)}function t4(e,t){var n=ae(e),r=e===t?re(e):Ch(n/ae(t))/Ch(ad(t)/ad(e)),i=n*X1(ad(e),r)/r;if(!r)return nl;function o(a,s){i>0?s<-Fe+ue&&(s=-Fe+ue):s>Fe-ue&&(s=Fe-ue);var u=i/X1(ad(s),r);return[u*re(r*a),i-u*ae(r*a)]}return o.invert=function(a,s){var u=i-s,l=wn(r)*at(a*a+u*u),c=Dt(a,be(u))*wn(u);return u*r<0&&(c-=me*wn(a)*wn(u)),[c/r,2*La(X1(i/l,1/r))-Fe]},o}function FJ(){return Ey(t4).scale(109.5).parallels([30,30])}function rl(e,t){return[e,t]}rl.invert=rl;function BJ(){return pr(rl).scale(152.63)}function n4(e,t){var n=ae(e),r=e===t?re(e):(n-ae(t))/(t-e),i=n/r+e;if(be(r)<ue)return rl;function o(a,s){var u=i-s,l=r*a;return[u*re(l),i-u*ae(l)]}return o.invert=function(a,s){var u=i-s,l=Dt(a,be(u))*wn(u);return u*r<0&&(l-=me*wn(a)*wn(u)),[l/r,i-wn(r)*at(a*a+u*u)]},o}function jJ(){return Ey(n4).scale(131.154).center([0,13.9389])}var il=1.340264,ol=-.081106,al=893e-6,sl=.003796,sd=at(3)/2,WJ=12;function Ry(e,t){var n=Lt(sd*re(t)),r=n*n,i=r*r*r;return[e*ae(n)/(sd*(il+3*ol*r+i*(7*al+9*sl*r))),n*(il+ol*r+i*(al+sl*r))]}Ry.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,o=0,a,s,u;o<WJ&&(s=n*(il+ol*r+i*(al+sl*r))-t,u=il+3*ol*r+i*(7*al+9*sl*r),n-=a=s/u,r=n*n,i=r*r*r,!(be(a)<Hu));++o);return[sd*e*(il+3*ol*r+i*(7*al+9*sl*r))/ae(n),Lt(re(n)/sd)]};function HJ(){return pr(Ry).scale(177.158)}function Dy(e,t){var n=ae(t),r=ae(e)*n;return[n*re(e)/r,re(t)/r]}Dy.invert=tl(La);function qJ(){return pr(Dy).scale(144.049).clipAngle(60)}function UJ(){var e=1,t=0,n=0,r=1,i=1,o=0,a,s,u=null,l,c,f,h=1,d=1,p=el({point:function(b,_){var w=x([b,_]);this.stream.point(w[0],w[1])}}),m=Gu,g,y;function v(){return h=e*r,d=e*i,g=y=null,x}function x(b){var _=b[0]*h,w=b[1]*d;if(o){var $=w*a-_*s;_=_*a+w*s,w=$}return[_+t,w+n]}return x.invert=function(b){var _=b[0]-t,w=b[1]-n;if(o){var $=w*a+_*s;_=_*a-w*s,w=$}return[_/h,w/d]},x.stream=function(b){return g&&y===b?g:g=p(m(y=b))},x.postclip=function(b){return arguments.length?(m=b,u=l=c=f=null,v()):m},x.clipExtent=function(b){return arguments.length?(m=b==null?(u=l=c=f=null,Gu):Yh(u=+b[0][0],l=+b[0][1],c=+b[1][0],f=+b[1][1]),v()):u==null?null:[[u,l],[c,f]]},x.scale=function(b){return arguments.length?(e=+b,v()):e},x.translate=function(b){return arguments.length?(t=+b[0],n=+b[1],v()):[t,n]},x.angle=function(b){return arguments.length?(o=b%360*le,s=re(o),a=ae(o),v()):o*ke},x.reflectX=function(b){return arguments.length?(r=b?-1:1,v()):r<0},x.reflectY=function(b){return arguments.length?(i=b?-1:1,v()):i<0},x.fitExtent=function(b,_){return id(x,b,_)},x.fitSize=function(b,_){return ky(x,b,_)},x.fitWidth=function(b,_){return Oy(x,b,_)},x.fitHeight=function(b,_){return Cy(x,b,_)},x}function Ly(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}Ly.invert=function(e,t){var n=t,r=25,i;do{var o=n*n,a=o*o;n-=i=(n*(1.007226+o*(.015085+a*(-.044475+.028874*o-.005916*a)))-t)/(1.007226+o*(.015085*3+a*(-.044475*7+.028874*9*o-.005916*11*a)))}while(be(i)>ue&&--r>0);return[e/(.8707+(o=n*n)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),n]};function VJ(){return pr(Ly).scale(175.295)}function Iy(e,t){return[ae(t)*re(e),re(t)]}Iy.invert=tl(Lt);function YJ(){return pr(Iy).scale(249.5).clipAngle(90+ue)}function zy(e,t){var n=ae(t),r=1+ae(e)*n;return[n*re(e)/r,re(t)/r]}zy.invert=tl(function(e){return 2*La(e)});function GJ(){return pr(zy).scale(250).clipAngle(142)}function Fy(e,t){return[Ch(K1((Fe+t)/2)),-e]}Fy.invert=function(e,t){return[-t,2*La(WM(e))-Fe]};function XJ(){var e=e4(Fy),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function KJ(e,t){return e.parent===t.parent?1:2}function ZJ(e){return e.reduce(QJ,0)/e.length}function QJ(e,t){return e+t.x}function JJ(e){return 1+e.reduce(eee,0)}function eee(e,t){return Math.max(e,t.y)}function tee(e){for(var t;t=e.children;)e=t[0];return e}function nee(e){for(var t;t=e.children;)e=t[t.length-1];return e}function ree(){var e=KJ,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(h){var d=h.children;d?(h.x=ZJ(d),h.y=JJ(d)):(h.x=a?s+=e(h,a):0,h.y=0,a=h)});var u=tee(o),l=nee(o),c=u.x-e(u,l)/2,f=l.x+e(l,u)/2;return o.eachAfter(r?function(h){h.x=(h.x-o.x)*t,h.y=(o.y-h.y)*n}:function(h){h.x=(h.x-c)/(f-c)*t,h.y=(1-(o.y?h.y/o.y:1))*n})}return i.separation=function(o){return arguments.length?(e=o,i):e},i.size=function(o){return arguments.length?(r=!1,t=+o[0],n=+o[1],i):r?null:[t,n]},i.nodeSize=function(o){return arguments.length?(r=!0,t=+o[0],n=+o[1],i):r?[t,n]:null},i}function iee(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function oee(){return this.eachAfter(iee)}function aee(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function see(e,t){for(var n=this,r=[n],i,o,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(o=i.length-1;o>=0;--o)r.push(i[o]);return this}function uee(e,t){for(var n=this,r=[n],i=[],o,a,s,u=-1;n=r.pop();)if(i.push(n),o=n.children)for(a=0,s=o.length;a<s;++a)r.push(o[a]);for(;n=i.pop();)e.call(t,n,++u,this);return this}function lee(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function cee(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function fee(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function hee(e){for(var t=this,n=dee(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function dee(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function pee(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function gee(){return Array.from(this)}function mee(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function yee(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*vee(){var e=this,t,n=[e],r,i,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);while(n.length)}function By(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=wee)):t===void 0&&(t=xee);for(var n=new Ha(e),r,i=[n],o,a,s,u;r=i.pop();)if((a=t(r.data))&&(u=(a=Array.from(a)).length))for(r.children=a,s=u-1;s>=0;--s)i.push(o=a[s]=new Ha(a[s])),o.parent=r,o.depth=r.depth+1;return n.eachBefore(r4)}function bee(){return By(this).eachBefore(_ee)}function xee(e){return e.children}function wee(e){return Array.isArray(e)?e[1]:null}function _ee(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function r4(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Ha(e){this.data=e,this.depth=this.height=0,this.parent=null}Ha.prototype=By.prototype={constructor:Ha,count:oee,each:aee,eachAfter:uee,eachBefore:see,find:lee,sum:cee,sort:fee,path:hee,ancestors:pee,descendants:gee,leaves:mee,links:yee,copy:bee,[Symbol.iterator]:vee};function $ee(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function See(e){for(var t=e.length,n,r;t;)r=Math.random()*t--|0,n=e[t],e[t]=e[r],e[r]=n;return e}function i4(e){for(var t=0,n=(e=See(Array.from(e))).length,r=[],i,o;t<n;)i=e[t],o&&o4(o,i)?++t:(o=Tee(r=Mee(r,i)),t=0);return o}function Mee(e,t){var n,r;if(jy(t,e))return[t];for(n=0;n<e.length;++n)if(ud(t,e[n])&&jy(ul(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(ud(ul(e[n],e[r]),t)&&ud(ul(e[n],t),e[r])&&ud(ul(e[r],t),e[n])&&jy(a4(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function ud(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function o4(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function jy(e,t){for(var n=0;n<t.length;++n)if(!o4(e,t[n]))return!1;return!0}function Tee(e){switch(e.length){case 1:return kee(e[0]);case 2:return ul(e[0],e[1]);case 3:return a4(e[0],e[1],e[2])}}function kee(e){return{x:e.x,y:e.y,r:e.r}}function ul(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+o+u/f*c)/2,y:(r+a+l/f*c)/2,r:(f+i+s)/2}}function a4(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,f=n.r,h=r-a,d=r-l,p=i-s,m=i-c,g=u-o,y=f-o,v=r*r+i*i-o*o,x=v-a*a-s*s+u*u,b=v-l*l-c*c+f*f,_=d*p-h*m,w=(p*b-m*x)/(_*2)-r,$=(m*g-p*y)/_,T=(d*x-h*b)/(_*2)-i,k=(h*y-d*g)/_,S=$*$+k*k-1,M=2*(o+w*$+T*k),A=w*w+T*T-o*o,E=-(S?(M+Math.sqrt(M*M-4*S*A))/(2*S):A/M);return{x:r+w+$*E,y:i+T+k*E,r:E}}function s4(e,t,n){var r=e.x-t.x,i,o,a=e.y-t.y,s,u,l=r*r+a*a;l?(o=t.r+n.r,o*=o,u=e.r+n.r,u*=u,o>u?(i=(l+u-o)/(2*l),s=Math.sqrt(Math.max(0,u/l-i*i)),n.x=e.x-i*r-s*a,n.y=e.y-i*a+s*r):(i=(l+o-u)/(2*l),s=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x+i*r-s*a,n.y=t.y+i*a+s*r)):(n.x=t.x+n.r,n.y=t.y)}function u4(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function l4(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function ld(e){this._=e,this.next=null,this.previous=null}function c4(e){if(!(i=(e=$ee(e)).length))return 0;var t,n,r,i,o,a,s,u,l,c,f;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;s4(n,t,r=e[2]),t=new ld(t),n=new ld(n),r=new ld(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){s4(t._,n._,r=e[s]),r=new ld(r),u=n.next,l=t.previous,c=n._.r,f=t._.r;do if(c<=f){if(u4(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(u4(l._,r._)){t=l,t.next=n,n.previous=t,--s;continue e}f+=l._.r,l=l.previous}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=l4(t);(r=r.next)!==n;)(a=l4(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=i4(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Oee(e){return c4(e),e}function Cee(e){return e==null?null:cd(e)}function cd(e){if(typeof e!="function")throw new Error;return e}function fo(){return 0}function qa(e){return function(){return e}}function Pee(e){return Math.sqrt(e.value)}function Eee(){var e=null,t=1,n=1,r=fo;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(f4(e)).eachAfter(Wy(r,.5)).eachBefore(h4(1)):o.eachBefore(f4(Pee)).eachAfter(Wy(fo,1)).eachAfter(Wy(r,o.r/Math.min(t,n))).eachBefore(h4(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Cee(o),i):e},i.size=function(o){return arguments.length?(t=+o[0],n=+o[1],i):[t,n]},i.padding=function(o){return arguments.length?(r=typeof o=="function"?o:qa(+o),i):r},i}function f4(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Wy(e,t){return function(n){if(r=n.children){var r,i,o=r.length,a=e(n)*t||0,s;if(a)for(i=0;i<o;++i)r[i].r+=a;if(s=c4(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function h4(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function d4(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ll(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(r-t)/e.value;++s<u;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*l}function Aee(){var e=1,t=1,n=0,r=!1;function i(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/s,a.eachBefore(o(t,s)),r&&a.eachBefore(d4),a}function o(a,s){return function(u){u.children&&ll(u,u.x0,a*(u.depth+1)/s,u.x1,a*(u.depth+2)/s);var l=u.x0,c=u.y0,f=u.x1-n,h=u.y1-n;f<l&&(l=f=(l+f)/2),h<c&&(c=h=(c+h)/2),u.x0=l,u.y0=c,u.x1=f,u.y1=h}}return i.round=function(a){return arguments.length?(r=!!a,i):r},i.size=function(a){return arguments.length?(e=+a[0],t=+a[1],i):[e,t]},i.padding=function(a){return arguments.length?(n=+a,i):n},i}var Nee={depth:-1},p4={};function Ree(e){return e.id}function Dee(e){return e.parentId}function Lee(){var e=Ree,t=Dee;function n(r){var i=Array.from(r),o=i.length,a,s,u,l,c,f,h,d=new Map;for(s=0;s<o;++s)a=i[s],c=i[s]=new Ha(a),(f=e(a,s,r))!=null&&(f+="")&&(h=c.id=f,d.set(h,d.has(h)?p4:c)),(f=t(a,s,r))!=null&&(f+="")&&(c.parent=f);for(s=0;s<o;++s)if(c=i[s],f=c.parent){if(l=d.get(f),!l)throw new Error("missing: "+f);if(l===p4)throw new Error("ambiguous: "+f);l.children?l.children.push(c):l.children=[c],c.parent=l}else{if(u)throw new Error("multiple roots");u=c}if(!u)throw new Error("no root");if(u.parent=Nee,u.eachBefore(function(p){p.depth=p.parent.depth+1,--o}).eachBefore(r4),u.parent=null,o>0)throw new Error("cycle");return u}return n.id=function(r){return arguments.length?(e=cd(r),n):e},n.parentId=function(r){return arguments.length?(t=cd(r),n):t},n}function Iee(e,t){return e.parent===t.parent?1:2}function Hy(e){var t=e.children;return t?t[0]:e.t}function qy(e){var t=e.children;return t?t[t.length-1]:e.t}function zee(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Fee(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function Bee(e,t,n){return e.a.parent===t.parent?e.a:n}function fd(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}fd.prototype=Object.create(Ha.prototype);function jee(e){for(var t=new fd(e,0),n,r=[t],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new fd(o[a],a)),i.parent=n;return(t.parent=new fd(null,0)).children=[t],t}function Wee(){var e=Iee,t=1,n=1,r=null;function i(l){var c=jee(l);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)l.eachBefore(u);else{var f=l,h=l,d=l;l.eachBefore(function(v){v.x<f.x&&(f=v),v.x>h.x&&(h=v),v.depth>d.depth&&(d=v)});var p=f===h?1:e(f,h)/2,m=p-f.x,g=t/(h.x+p+m),y=n/(d.depth||1);l.eachBefore(function(v){v.x=(v.x+m)*g,v.y=v.depth*y})}return l}function o(l){var c=l.children,f=l.parent.children,h=l.i?f[l.i-1]:null;if(c){Fee(l);var d=(c[0].z+c[c.length-1].z)/2;h?(l.z=h.z+e(l._,h._),l.m=l.z-d):l.z=d}else h&&(l.z=h.z+e(l._,h._));l.parent.A=s(l,h,l.parent.A||f[0])}function a(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,c,f){if(c){for(var h=l,d=l,p=c,m=h.parent.children[0],g=h.m,y=d.m,v=p.m,x=m.m,b;p=qy(p),h=Hy(h),p&&h;)m=Hy(m),d=qy(d),d.a=l,b=p.z+v-h.z-g+e(p._,h._),b>0&&(zee(Bee(p,l,f),l,b),g+=b,y+=b),v+=p.m,g+=h.m,x+=m.m,y+=d.m;p&&!qy(d)&&(d.t=p,d.m+=v-y),h&&!Hy(m)&&(m.t=h,m.m+=g-x,f=l)}return f}function u(l){l.x*=t,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(e=l,i):e},i.size=function(l){return arguments.length?(r=!1,t=+l[0],n=+l[1],i):r?null:[t,n]},i.nodeSize=function(l){return arguments.length?(r=!0,t=+l[0],n=+l[1],i):r?[t,n]:null},i}function hd(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(i-n)/e.value;++s<u;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*l}var g4=(1+Math.sqrt(5))/2;function m4(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,f=0,h=s.length,d,p,m=t.value,g,y,v,x,b,_,w;c<h;){d=i-n,p=o-r;do g=s[f++].value;while(!g&&f<h);for(y=v=g,_=Math.max(p/d,d/p)/(m*e),w=g*g*_,b=Math.max(v/w,w/y);f<h;++f){if(g+=l=s[f].value,l<y&&(y=l),l>v&&(v=l),w=g*g*_,x=Math.max(v/w,w/y),x>b){g-=l;break}b=x}a.push(u={value:g,dice:d<p,children:s.slice(c,f)}),u.dice?ll(u,n,r,i,m?r+=p*g/m:o):hd(u,n,r,m?n+=d*g/m:i,o),m-=g,c=f}return a}var y4=function e(t){function n(r,i,o,a,s){m4(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(g4);function Hee(){var e=y4,t=!1,n=1,r=1,i=[0],o=fo,a=fo,s=fo,u=fo,l=fo;function c(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(f),i=[0],t&&h.eachBefore(d4),h}function f(h){var d=i[h.depth],p=h.x0+d,m=h.y0+d,g=h.x1-d,y=h.y1-d;g<p&&(p=g=(p+g)/2),y<m&&(m=y=(m+y)/2),h.x0=p,h.y0=m,h.x1=g,h.y1=y,h.children&&(d=i[h.depth+1]=o(h)/2,p+=l(h)-d,m+=a(h)-d,g-=s(h)-d,y-=u(h)-d,g<p&&(p=g=(p+g)/2),y<m&&(m=y=(m+y)/2),e(h,p,m,g,y))}return c.round=function(h){return arguments.length?(t=!!h,c):t},c.size=function(h){return arguments.length?(n=+h[0],r=+h[1],c):[n,r]},c.tile=function(h){return arguments.length?(e=cd(h),c):e},c.padding=function(h){return arguments.length?c.paddingInner(h).paddingOuter(h):c.paddingInner()},c.paddingInner=function(h){return arguments.length?(o=typeof h=="function"?h:qa(+h),c):o},c.paddingOuter=function(h){return arguments.length?c.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):c.paddingTop()},c.paddingTop=function(h){return arguments.length?(a=typeof h=="function"?h:qa(+h),c):a},c.paddingRight=function(h){return arguments.length?(s=typeof h=="function"?h:qa(+h),c):s},c.paddingBottom=function(h){return arguments.length?(u=typeof h=="function"?h:qa(+h),c):u},c.paddingLeft=function(h){return arguments.length?(l=typeof h=="function"?h:qa(+h),c):l},c}function qee(e,t,n,r,i){var o=e.children,a,s=o.length,u,l=new Array(s+1);for(l[0]=u=a=0;a<s;++a)l[a+1]=u+=o[a].value;c(0,s,e.value,t,n,r,i);function c(f,h,d,p,m,g,y){if(f>=h-1){var v=o[f];v.x0=p,v.y0=m,v.x1=g,v.y1=y;return}for(var x=l[f],b=d/2+x,_=f+1,w=h-1;_<w;){var $=_+w>>>1;l[$]<b?_=$+1:w=$}b-l[_-1]<l[_]-b&&f+1<_&&--_;var T=l[_]-x,k=d-T;if(g-p>y-m){var S=d?(p*k+g*T)/d:g;c(f,_,T,p,m,S,y),c(_,h,k,S,m,g,y)}else{var M=d?(m*k+y*T)/d:y;c(f,_,T,p,m,g,M),c(_,h,k,p,M,g,y)}}}function Uee(e,t,n,r,i){(e.depth&1?hd:ll)(e,t,n,r,i)}var Vee=function e(t){function n(r,i,o,a,s){if((u=r._squarify)&&u.ratio===t)for(var u,l,c,f,h=-1,d,p=u.length,m=r.value;++h<p;){for(l=u[h],c=l.children,f=l.value=0,d=c.length;f<d;++f)l.value+=c[f].value;l.dice?ll(l,i,o,a,m?o+=(s-o)*l.value/m:s):hd(l,i,o,m?i+=(a-i)*l.value/m:a,s),m-=l.value}else r._squarify=u=m4(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(g4);function v4(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function b4(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),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return v4((n-r/t)*t,a,i,o,s)}}function x4(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return v4((n-r/t)*t,i,o,a,s)}}var dd=e=>()=>e;function w4(e,t){return function(n){return e+n*t}}function Yee(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)}}function pd(e,t){var n=t-e;return n?w4(e,n>180||n<-180?n-360*Math.round(n/360):n):dd(isNaN(e)?t:e)}function Gee(e){return(e=+e)==1?st:function(t,n){return n-t?Yee(t,n,e):dd(isNaN(t)?n:t)}}function st(e,t){var n=t-e;return n?w4(e,n):dd(isNaN(e)?t:e)}var Uy=function e(t){var n=Gee(t);function r(i,o){var a=n((i=zu(i)).r,(o=zu(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=st(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function _4(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=zu(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=o(u),s+""}}}var Xee=_4(b4),Kee=_4(x4);function Vy(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function $4(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Zee(e,t){return($4(t)?Vy:S4)(e,t)}function S4(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=ho(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function M4(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function T4(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=ho(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var Yy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gy=new RegExp(Yy.source,"g");function Qee(e){return function(){return e}}function Jee(e){return function(t){return e(t)+""}}function k4(e,t){var n=Yy.lastIndex=Gy.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=Yy.exec(e))&&(i=Gy.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Bn(r,i)})),n=Gy.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?Jee(u[0].x):Qee(t):(t=u.length,function(l){for(var c=0,f;c<t;++c)s[(f=u[c]).i]=f.x(l);return s.join("")})}function ho(e,t){var n=typeof t,r;return t==null||n==="boolean"?dd(t):(n==="number"?Bn:n==="string"?(r=Ea(t))?(t=r,Uy):k4:t instanceof Ea?Uy:t instanceof Date?M4:$4(t)?Vy:Array.isArray(t)?S4:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?T4:Bn)(e,t)}function ete(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function tte(e,t){var n=pd(+e,+t);return function(r){var i=n(r);return i-360*Math.floor(i/360)}}function gd(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var O4=180/Math.PI,Xy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function C4(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*O4,skewX:Math.atan(u)*O4,scaleX:a,scaleY:s}}var md;function nte(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Xy:C4(t.a,t.b,t.c,t.d,t.e,t.f)}function rte(e){return e==null||(md||(md=document.createElementNS("http://www.w3.org/2000/svg","g")),md.setAttribute("transform",e),!(e=md.transform.baseVal.consolidate()))?Xy:(e=e.matrix,C4(e.a,e.b,e.c,e.d,e.e,e.f))}function P4(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push("translate(",null,t,null,n);p.push({i:m-4,x:Bn(l,f)},{i:m-2,x:Bn(c,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function a(l,c,f,h){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Bn(l,c)})):c&&f.push(i(f)+"rotate("+c+r)}function s(l,c,f,h){l!==c?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Bn(l,c)}):c&&f.push(i(f)+"skewX("+c+r)}function u(l,c,f,h,d,p){if(l!==f||c!==h){var m=d.push(i(d)+"scale(",null,",",null,")");p.push({i:m-4,x:Bn(l,f)},{i:m-2,x:Bn(c,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(l,c){var f=[],h=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,f,h),a(l.rotate,c.rotate,f,h),s(l.skewX,c.skewX,f,h),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,f,h),l=c=null,function(d){for(var p=-1,m=h.length,g;++p<m;)f[(g=h[p]).i]=g.x(d);return f.join("")}}}var ite=P4(nte,"px, ","px)","deg)"),ote=P4(rte,", ",")",")"),ate=1e-12;function E4(e){return((e=Math.exp(e))+1/e)/2}function ste(e){return((e=Math.exp(e))-1/e)/2}function ute(e){return((e=Math.exp(2*e))-1)/(e+1)}var lte=function e(t,n,r){function i(o,a){var s=o[0],u=o[1],l=o[2],c=a[0],f=a[1],h=a[2],d=c-s,p=f-u,m=d*d+p*p,g,y;if(m<ate)y=Math.log(h/l)/t,g=function($){return[s+$*d,u+$*p,l*Math.exp(t*$*y)]};else{var v=Math.sqrt(m),x=(h*h-l*l+r*m)/(2*l*n*v),b=(h*h-l*l-r*m)/(2*h*n*v),_=Math.log(Math.sqrt(x*x+1)-x),w=Math.log(Math.sqrt(b*b+1)-b);y=(w-_)/t,g=function($){var T=$*y,k=E4(_),S=l/(n*v)*(k*ute(t*T+_)-ste(_));return[s+S*d,u+S*p,l*k/E4(t*T+_)]}}return g.duration=y*1e3*t/Math.SQRT2,g}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,u=s*s;return e(a,s,u)},i}(Math.SQRT2,2,4);function A4(e){return function(t,n){var r=e((t=ch(t)).h,(n=ch(n)).h),i=st(t.s,n.s),o=st(t.l,n.l),a=st(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var cte=A4(pd),fte=A4(st);function hte(e,t){var n=st((e=hh(e)).l,(t=hh(t)).l),r=st(e.a,t.a),i=st(e.b,t.b),o=st(e.opacity,t.opacity);return function(a){return e.l=n(a),e.a=r(a),e.b=i(a),e.opacity=o(a),e+""}}function N4(e){return function(t,n){var r=e((t=dh(t)).h,(n=dh(n)).h),i=st(t.c,n.c),o=st(t.l,n.l),a=st(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=o(s),t.opacity=a(s),t+""}}}var dte=N4(pd),pte=N4(st);function R4(e){return function t(n){n=+n;function r(i,o){var a=e((i=gh(i)).h,(o=gh(o)).h),s=st(i.s,o.s),u=st(i.l,o.l),l=st(i.opacity,o.opacity);return function(c){return i.h=a(c),i.s=s(c),i.l=u(Math.pow(c,n)),i.opacity=l(c),i+""}}return r.gamma=t,r}(1)}var gte=R4(pd),mte=R4(st);function D4(e,t){t===void 0&&(t=e,e=ho);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function yte(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}const Ky=Math.PI,Zy=2*Ky,po=1e-6,vte=Zy-po;function Qy(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function go(){return new Qy}Qy.prototype=go.prototype={constructor:Qy,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(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,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,l=o-e,c=a-t,f=l*l+c*c;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>po)if(!(Math.abs(c*s-u*l)>po)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-o,d=r-a,p=s*s+u*u,m=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),v=i*Math.tan((Ky-Math.acos((p+f-m)/(2*g*y)))/2),x=v/y,b=v/g;Math.abs(x-1)>po&&(this._+="L"+(e+x*l)+","+(t+x*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>l*d)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=e+a,l=t+s,c=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+u+","+l:(Math.abs(this._x1-u)>po||Math.abs(this._y1-l)>po)&&(this._+="L"+u+","+l),n&&(f<0&&(f=f%Zy+Zy),f>vte?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):f>po&&(this._+="A"+n+","+n+",0,"+ +(f>=Ky)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},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._}};function bte(e){for(var t=-1,n=e.length,r,i=e[n-1],o=0;++t<n;)r=i,i=e[t],o+=r[1]*i[0]-r[0]*i[1];return o/2}function xte(e){for(var t=-1,n=e.length,r=0,i=0,o,a=e[n-1],s,u=0;++t<n;)o=a,a=e[t],u+=s=o[0]*a[1]-a[0]*o[1],r+=(o[0]+a[0])*s,i+=(o[1]+a[1])*s;return u*=3,[r/u,i/u]}function wte(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function _te(e,t){return e[0]-t[0]||e[1]-t[1]}function L4(e){const t=e.length,n=[0,1];let r=2,i;for(i=2;i<t;++i){for(;r>1&&wte(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function $te(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(_te),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=L4(r),a=L4(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],l=[];for(t=o.length-1;t>=0;--t)l.push(e[r[o[t]][2]]);for(t=+s;t<a.length-u;++t)l.push(e[r[a[t]][2]]);return l}function Ste(e,t){for(var n=e.length,r=e[n-1],i=t[0],o=t[1],a=r[0],s=r[1],u,l,c=!1,f=0;f<n;++f)r=e[f],u=r[0],l=r[1],l>o!=s>o&&i<(a-u)*(o-l)/(s-l)+u&&(c=!c),a=u,s=l;return c}function Mte(e){for(var t=-1,n=e.length,r=e[n-1],i,o,a=r[0],s=r[1],u=0;++t<n;)i=a,o=s,r=e[t],a=r[0],s=r[1],i-=a,o-=s,u+=Math.hypot(i,o);return u}var dt=Math.random,Tte=function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,arguments.length===1?(i=r,r=0):i-=r,function(){return t()*i+r}}return n.source=e,n}(dt),kte=function e(t){function n(r,i){return arguments.length<2&&(i=r,r=0),r=Math.floor(r),i=Math.floor(i)-r,function(){return Math.floor(t()*i+r)}}return n.source=e,n}(dt),Jy=function e(t){function n(r,i){var o,a;return r=r==null?0:+r,i=i==null?1:+i,function(){var s;if(o!=null)s=o,o=null;else do o=t()*2-1,s=t()*2-1,a=o*o+s*s;while(!a||a>1);return r+i*s*Math.sqrt(-2*Math.log(a)/a)}}return n.source=e,n}(dt),Ote=function e(t){var n=Jy.source(t);function r(){var i=n.apply(this,arguments);return function(){return Math.exp(i())}}return r.source=e,r}(dt),I4=function e(t){function n(r){return(r=+r)<=0?()=>0:function(){for(var i=0,o=r;o>1;--o)i+=t();return i+o*t()}}return n.source=e,n}(dt),Cte=function e(t){var n=I4.source(t);function r(i){if((i=+i)==0)return t;var o=n(i);return function(){return o()/i}}return r.source=e,r}(dt),Pte=function e(t){function n(r){return function(){return-Math.log1p(-t())/r}}return n.source=e,n}(dt),Ete=function e(t){function n(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-t(),r)}}return n.source=e,n}(dt),Ate=function e(t){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(t()+r)}}return n.source=e,n}(dt),z4=function e(t){function n(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return r===0?()=>1/0:r===1?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-t())/r)})}return n.source=e,n}(dt),ev=function e(t){var n=Jy.source(t)();function r(i,o){if((i=+i)<0)throw new RangeError("invalid k");if(i===0)return()=>0;if(o=o==null?1:+o,i===1)return()=>-Math.log1p(-t())*o;var a=(i<1?i+1:i)-1/3,s=1/(3*Math.sqrt(a)),u=i<1?()=>Math.pow(t(),1/i):()=>1;return function(){do{do var l=n(),c=1+s*l;while(c<=0);c*=c*c;var f=1-t()}while(f>=1-.0331*l*l*l*l&&Math.log(f)>=.5*l*l+a*(1-c+Math.log(c)));return a*c*u()*o}}return r.source=e,r}(dt),F4=function e(t){var n=ev.source(t);function r(i,o){var a=n(i),s=n(o);return function(){var u=a();return u===0?0:u/(u+s())}}return r.source=e,r}(dt),B4=function e(t){var n=z4.source(t),r=F4.source(t);function i(o,a){return o=+o,(a=+a)>=1?()=>o:a<=0?()=>0:function(){for(var s=0,u=o,l=a;u*l>16&&u*(1-l)>16;){var c=Math.floor((u+1)*l),f=r(c,u-c+1)();f<=l?(s+=c,u-=c,l=(l-f)/(1-f)):(u=c-1,l/=f)}for(var h=l<.5,d=h?l:1-l,p=n(d),m=p(),g=0;m<=u;++g)m+=p();return s+(h?g:u-g)}}return i.source=e,i}(dt),Nte=function e(t){function n(r,i,o){var a;return(r=+r)==0?a=s=>-Math.log(s):(r=1/r,a=s=>Math.pow(s,r)),i=i==null?0:+i,o=o==null?1:+o,function(){return i+o*a(-Math.log1p(-t()))}}return n.source=e,n}(dt),Rte=function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){return r+i*Math.tan(Math.PI*t())}}return n.source=e,n}(dt),Dte=function e(t){function n(r,i){return r=r==null?0:+r,i=i==null?1:+i,function(){var o=t();return r+i*Math.log(o/(1-o))}}return n.source=e,n}(dt),Lte=function e(t){var n=ev.source(t),r=B4.source(t);function i(o){return function(){for(var a=0,s=o;s>16;){var u=Math.floor(.875*s),l=n(u)();if(l>s)return a+r(u-1,s/l)();a+=u,s-=l}for(var c=-Math.log1p(-t()),f=0;c<=s;++f)c-=Math.log1p(-t());return a+f}}return i.source=e,i}(dt);const Ite=1664525,zte=1013904223,j4=1/4294967296;function Fte(e=Math.random()){let t=(0<=e&&e<1?e/j4:Math.abs(e))|0;return()=>(t=Ite*t+zte|0,j4*(t>>>0))}function _n(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Lr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const tv=Symbol("implicit");function nv(){var e=new Map,t=[],n=[],r=tv;function i(o){var a=o+"",s=e.get(a);if(!s){if(r!==tv)return r;e.set(a,s=t.push(o))}return n[(s-1)%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new Map;for(const a of o){const s=a+"";e.has(s)||e.set(s,t.push(a))}return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return nv(t,n).unknown(r)},_n.apply(i,arguments),i}function rv(){var e=nv().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,u=0,l=0,c=.5;delete e.unknown;function f(){var h=t().length,d=i<r,p=d?i:r,m=d?r:i;o=(m-p)/Math.max(1,h-u+l*2),s&&(o=Math.floor(o)),p+=(m-p-o*(h-u))*c,a=o*(1-u),s&&(p=Math.round(p),a=Math.round(a));var g=ri(h).map(function(y){return p+o*y});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,l=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(l=+h,f()):l},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return rv(t(),[r,i]).round(s).paddingInner(u).paddingOuter(l).align(c)},_n.apply(f(),arguments)}function W4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return W4(t())},e}function Bte(){return W4(rv.apply(null,arguments).paddingInner(1))}function jte(e){return function(){return e}}function yd(e){return+e}var H4=[0,1];function Bt(e){return e}function iv(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:jte(isNaN(t)?NaN:.5)}function Wte(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Hte(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=iv(i,r),o=n(a,o)):(r=iv(r,i),o=n(o,a)),function(s){return o(r(s))}}function qte(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=iv(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var u=Ki(e,s,1,r)-1;return o[u](i[u](s))}}function cl(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function vd(){var e=H4,t=H4,n=ho,r,i,o,a=Bt,s,u,l;function c(){var h=Math.min(e.length,t.length);return a!==Bt&&(a=Wte(e[0],e[h-1])),s=h>2?qte:Hte,u=l=null,f}function f(h){return h==null||isNaN(h=+h)?o:(u||(u=s(e.map(r),t,n)))(r(a(h)))}return f.invert=function(h){return a(i((l||(l=s(t,e.map(r),Bn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,yd),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=gd,c()},f.clamp=function(h){return arguments.length?(a=h?!0:Bt,c()):a!==Bt},f.interpolate=function(h){return arguments.length?(n=h,c()):n},f.unknown=function(h){return arguments.length?(o=h,f):o},function(h,d){return r=h,i=d,c()}}function ov(){return vd()(Bt,Bt)}function q4(e,t,n,r){var i=Df(e,t,n),o;switch(r=Wu(r==null?",f":r),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=BM(i,a))&&(r.precision=o),Y1(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=jM(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=FM(i))&&(r.precision=o-(r.type==="%")*2);break}}return Th(r)}function fi(e){var t=e.domain;return e.ticks=function(n){var r=t();return pu(r[0],r[r.length-1],n==null?10:n)},e.tickFormat=function(n,r){var i=t();return q4(i[0],i[i.length-1],n==null?10:n,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],u,l,c=10;for(s<a&&(l=a,a=s,s=l,l=i,i=o,o=l);c-- >0;){if(l=gu(a,s,n),l===u)return r[i]=a,r[o]=s,t(r);if(l>0)a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l;else if(l<0)a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l;else break;u=l}return e},e}function U4(){var e=ov();return e.copy=function(){return cl(e,U4())},_n.apply(e,arguments),fi(e)}function V4(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,yd),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return V4(e).unknown(t)},e=arguments.length?Array.from(e,yd):[0,1],fi(n)}function Y4(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function G4(e){return Math.log(e)}function X4(e){return Math.exp(e)}function Ute(e){return-Math.log(-e)}function Vte(e){return-Math.exp(-e)}function Yte(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Gte(e){return e===10?Yte:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function Xte(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function K4(e){return function(t){return-e(-t)}}function av(e){var t=e(G4,X4),n=t.domain,r=10,i,o;function a(){return i=Xte(r),o=Gte(r),n()[0]<0?(i=K4(i),o=K4(o),e(Ute,Vte)):e(G4,X4),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=function(s){var u=n(),l=u[0],c=u[u.length-1],f;(f=c<l)&&(h=l,l=c,c=h);var h=i(l),d=i(c),p,m,g,y=s==null?10:+s,v=[];if(!(r%1)&&d-h<y){if(h=Math.floor(h),d=Math.ceil(d),l>0){for(;h<=d;++h)for(m=1,p=o(h);m<r;++m)if(g=p*m,!(g<l)){if(g>c)break;v.push(g)}}else for(;h<=d;++h)for(m=r-1,p=o(h);m>=1;--m)if(g=p*m,!(g<l)){if(g>c)break;v.push(g)}v.length*2<y&&(v=pu(l,c,y))}else v=pu(h,d,Math.min(d-h,y)).map(o);return f?v.reverse():v},t.tickFormat=function(s,u){if(u==null&&(u=r===10?".0e":","),typeof u!="function"&&(u=Th(u)),s===1/0)return u;s==null&&(s=10);var l=Math.max(1,r*s/t.ticks().length);return function(c){var f=c/o(Math.round(i(c)));return f*r<r-.5&&(f*=r),f<=l?u(c):""}},t.nice=function(){return n(Y4(n(),{floor:function(s){return o(Math.floor(i(s)))},ceil:function(s){return o(Math.ceil(i(s)))}}))},t}function Z4(){var e=av(vd()).domain([1,10]);return e.copy=function(){return cl(e,Z4()).base(e.base())},_n.apply(e,arguments),e}function Q4(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function J4(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function sv(e){var t=1,n=e(Q4(t),J4(t));return n.constant=function(r){return arguments.length?e(Q4(t=+r),J4(t)):t},fi(n)}function e6(){var e=sv(vd());return e.copy=function(){return cl(e,e6()).constant(e.constant())},_n.apply(e,arguments)}function t6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Kte(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Zte(e){return e<0?-e*e:e*e}function uv(e){var t=e(Bt,Bt),n=1;function r(){return n===1?e(Bt,Bt):n===.5?e(Kte,Zte):e(t6(n),t6(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},fi(t)}function lv(){var e=uv(vd());return e.copy=function(){return cl(e,lv()).exponent(e.exponent())},_n.apply(e,arguments),e}function Qte(){return lv.apply(null,arguments).exponent(.5)}function n6(e){return Math.sign(e)*e*e}function Jte(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function r6(){var e=ov(),t=[0,1],n=!1,r;function i(o){var a=Jte(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(n6(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,yd)).map(n6)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return r6(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},_n.apply(i,arguments),fi(i)}function i6(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=S3(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[Ki(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Ve),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return i6().domain(e).range(t).unknown(r)},_n.apply(o,arguments)}function o6(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(u){return u!=null&&u<=u?i[Ki(r,u,0,n)]:o}function s(){var u=-1;for(r=new Array(n);++u<n;)r[u]=((u+1)*t-(u-n)*e)/(n+1);return a}return a.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,s()):[e,t]},a.range=function(u){return arguments.length?(n=(i=Array.from(u)).length-1,s()):i.slice()},a.invertExtent=function(u){var l=i.indexOf(u);return l<0?[NaN,NaN]:l<1?[e,r[0]]:l>=n?[r[n-1],t]:[r[l-1],r[l]]},a.unknown=function(u){return arguments.length&&(o=u),a},a.thresholds=function(){return r.slice()},a.copy=function(){return o6().domain([e,t]).range(i).unknown(o)},_n.apply(fi(a),arguments)}function a6(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[Ki(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return a6().domain(e).range(t).unknown(n)},_n.apply(i,arguments)}var cv=new Date,fv=new Date;function Ke(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=function(o){return e(o=new Date(+o)),o},i.ceil=function(o){return e(o=new Date(o-1)),t(o,1),e(o),o},i.round=function(o){var a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=function(o,a){return t(o=new Date(+o),a==null?1:Math.floor(a)),o},i.range=function(o,a,s){var u=[],l;if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return u;do u.push(l=new Date(+o)),t(o,s),e(o);while(l<o&&o<a);return u},i.filter=function(o){return Ke(function(a){if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},function(a,s){if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););})},n&&(i.count=function(o,a){return cv.setTime(+o),fv.setTime(+a),e(cv),e(fv),Math.floor(n(cv,fv))},i.every=function(o){return o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?function(a){return r(a)%o===0}:function(a){return i.count(0,a)%o===0}):i}),i}var bd=Ke(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});bd.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ke(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):bd};var hv=bd,s6=bd.range;const Ir=1e3,$n=Ir*60,zr=$n*60,mo=zr*24,dv=mo*7,u6=mo*30,pv=mo*365;var l6=Ke(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*Ir)},function(e,t){return(t-e)/Ir},function(e){return e.getUTCSeconds()}),hi=l6,c6=l6.range,f6=Ke(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ir)},function(e,t){e.setTime(+e+t*$n)},function(e,t){return(t-e)/$n},function(e){return e.getMinutes()}),gv=f6,ene=f6.range,h6=Ke(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ir-e.getMinutes()*$n)},function(e,t){e.setTime(+e+t*zr)},function(e,t){return(t-e)/zr},function(e){return e.getHours()}),mv=h6,tne=h6.range,d6=Ke(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$n)/mo,e=>e.getDate()-1),fl=d6,nne=d6.range;function yo(e){return Ke(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(t,n){t.setDate(t.getDate()+n*7)},function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*$n)/dv})}var Ua=yo(0),hl=yo(1),p6=yo(2),g6=yo(3),vo=yo(4),m6=yo(5),y6=yo(6),v6=Ua.range,rne=hl.range,ine=p6.range,one=g6.range,ane=vo.range,sne=m6.range,une=y6.range,b6=Ke(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()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()}),yv=b6,lne=b6.range,vv=Ke(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()});vv.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ke(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)})};var di=vv,cne=vv.range,x6=Ke(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*$n)},function(e,t){return(t-e)/$n},function(e){return e.getUTCMinutes()}),bv=x6,fne=x6.range,w6=Ke(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*zr)},function(e,t){return(t-e)/zr},function(e){return e.getUTCHours()}),xv=w6,hne=w6.range,_6=Ke(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/mo},function(e){return e.getUTCDate()-1}),dl=_6,dne=_6.range;function bo(e){return Ke(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n*7)},function(t,n){return(n-t)/dv})}var Va=bo(0),pl=bo(1),$6=bo(2),S6=bo(3),xo=bo(4),M6=bo(5),T6=bo(6),k6=Va.range,pne=pl.range,gne=$6.range,mne=S6.range,yne=xo.range,vne=M6.range,bne=T6.range,O6=Ke(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()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()}),wv=O6,xne=O6.range,_v=Ke(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()});_v.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:Ke(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)})};var pi=_v,wne=_v.range;function C6(e,t,n,r,i,o){const a=[[hi,1,Ir],[hi,5,5*Ir],[hi,15,15*Ir],[hi,30,30*Ir],[o,1,$n],[o,5,5*$n],[o,15,15*$n],[o,30,30*$n],[i,1,zr],[i,3,3*zr],[i,6,6*zr],[i,12,12*zr],[r,1,mo],[r,2,2*mo],[n,1,dv],[t,1,u6],[t,3,3*u6],[e,1,pv]];function s(l,c,f){const h=c<l;h&&([l,c]=[c,l]);const d=f&&typeof f.range=="function"?f:u(l,c,f),p=d?d.range(l,+c+1):[];return h?p.reverse():p}function u(l,c,f){const h=Math.abs(c-l)/f,d=Ef(([,,g])=>g).right(a,h);if(d===a.length)return e.every(Df(l/pv,c/pv,f));if(d===0)return hv.every(Math.max(Df(l,c,f),1));const[p,m]=a[h/a[d-1][2]<a[d][2]/h?d-1:d];return p.every(m)}return[s,u]}const[P6,E6]=C6(pi,wv,Va,dl,xv,bv),[A6,N6]=C6(di,yv,Ua,fl,mv,gv);function $v(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 Sv(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 gl(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function R6(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,l=ml(i),c=yl(i),f=ml(o),h=yl(o),d=ml(a),p=yl(a),m=ml(s),g=yl(s),y=ml(u),v=yl(u),x={a:N,A:D,b:I,B,c:null,d:B6,e:B6,f:qne,g:ere,G:nre,H:jne,I:Wne,j:Hne,L:j6,m:Une,M:Vne,p:U,q:Y,Q:Y6,s:G6,S:Yne,u:Gne,U:Xne,V:Kne,w:Zne,W:Qne,x:null,X:null,y:Jne,Y:tre,Z:rre,"%":V6},b={a:J,A:q,b:j,B:V,c:null,d:H6,e:H6,f:sre,g:yre,G:bre,H:ire,I:ore,j:are,L:q6,m:ure,M:lre,p:G,q:ne,Q:Y6,s:G6,S:cre,u:fre,U:hre,V:dre,w:pre,W:gre,x:null,X:null,y:mre,Y:vre,Z:xre,"%":V6},_={a:S,A:M,b:A,B:E,c:O,d:z6,e:z6,f:Ine,g:I6,G:L6,H:F6,I:F6,j:Nne,L:Lne,m:Ane,M:Rne,p:k,q:Ene,Q:Fne,s:Bne,S:Dne,u:Tne,U:kne,V:One,w:Mne,W:Cne,x:P,X:C,y:I6,Y:L6,Z:Pne,"%":zne};x.x=w(n,x),x.X=w(r,x),x.c=w(t,x),b.x=w(n,b),b.X=w(r,b),b.c=w(t,b);function w(L,W){return function(X){var R=[],te=-1,ee=0,se=L.length,ce,ie,ge;for(X instanceof Date||(X=new Date(+X));++te<se;)L.charCodeAt(te)===37&&(R.push(L.slice(ee,te)),(ie=D6[ce=L.charAt(++te)])!=null?ce=L.charAt(++te):ie=ce==="e"?" ":"0",(ge=W[ce])&&(ce=ge(X,ie)),R.push(ce),ee=te+1);return R.push(L.slice(ee,te)),R.join("")}}function $(L,W){return function(X){var R=gl(1900,void 0,1),te=T(R,L,X+="",0),ee,se;if(te!=X.length)return null;if("Q"in R)return new Date(R.Q);if("s"in R)return new Date(R.s*1e3+("L"in R?R.L:0));if(W&&!("Z"in R)&&(R.Z=0),"p"in R&&(R.H=R.H%12+R.p*12),R.m===void 0&&(R.m="q"in R?R.q:0),"V"in R){if(R.V<1||R.V>53)return null;"w"in R||(R.w=1),"Z"in R?(ee=Sv(gl(R.y,0,1)),se=ee.getUTCDay(),ee=se>4||se===0?pl.ceil(ee):pl(ee),ee=dl.offset(ee,(R.V-1)*7),R.y=ee.getUTCFullYear(),R.m=ee.getUTCMonth(),R.d=ee.getUTCDate()+(R.w+6)%7):(ee=$v(gl(R.y,0,1)),se=ee.getDay(),ee=se>4||se===0?hl.ceil(ee):hl(ee),ee=fl.offset(ee,(R.V-1)*7),R.y=ee.getFullYear(),R.m=ee.getMonth(),R.d=ee.getDate()+(R.w+6)%7)}else("W"in R||"U"in R)&&("w"in R||(R.w="u"in R?R.u%7:"W"in R?1:0),se="Z"in R?Sv(gl(R.y,0,1)).getUTCDay():$v(gl(R.y,0,1)).getDay(),R.m=0,R.d="W"in R?(R.w+6)%7+R.W*7-(se+5)%7:R.w+R.U*7-(se+6)%7);return"Z"in R?(R.H+=R.Z/100|0,R.M+=R.Z%100,Sv(R)):$v(R)}}function T(L,W,X,R){for(var te=0,ee=W.length,se=X.length,ce,ie;te<ee;){if(R>=se)return-1;if(ce=W.charCodeAt(te++),ce===37){if(ce=W.charAt(te++),ie=_[ce in D6?W.charAt(te++):ce],!ie||(R=ie(L,X,R))<0)return-1}else if(ce!=X.charCodeAt(R++))return-1}return R}function k(L,W,X){var R=l.exec(W.slice(X));return R?(L.p=c.get(R[0].toLowerCase()),X+R[0].length):-1}function S(L,W,X){var R=d.exec(W.slice(X));return R?(L.w=p.get(R[0].toLowerCase()),X+R[0].length):-1}function M(L,W,X){var R=f.exec(W.slice(X));return R?(L.w=h.get(R[0].toLowerCase()),X+R[0].length):-1}function A(L,W,X){var R=y.exec(W.slice(X));return R?(L.m=v.get(R[0].toLowerCase()),X+R[0].length):-1}function E(L,W,X){var R=m.exec(W.slice(X));return R?(L.m=g.get(R[0].toLowerCase()),X+R[0].length):-1}function O(L,W,X){return T(L,t,W,X)}function P(L,W,X){return T(L,n,W,X)}function C(L,W,X){return T(L,r,W,X)}function N(L){return a[L.getDay()]}function D(L){return o[L.getDay()]}function I(L){return u[L.getMonth()]}function B(L){return s[L.getMonth()]}function U(L){return i[+(L.getHours()>=12)]}function Y(L){return 1+~~(L.getMonth()/3)}function J(L){return a[L.getUTCDay()]}function q(L){return o[L.getUTCDay()]}function j(L){return u[L.getUTCMonth()]}function V(L){return s[L.getUTCMonth()]}function G(L){return i[+(L.getUTCHours()>=12)]}function ne(L){return 1+~~(L.getUTCMonth()/3)}return{format:function(L){var W=w(L+="",x);return W.toString=function(){return L},W},parse:function(L){var W=$(L+="",!1);return W.toString=function(){return L},W},utcFormat:function(L){var W=w(L+="",b);return W.toString=function(){return L},W},utcParse:function(L){var W=$(L+="",!0);return W.toString=function(){return L},W}}}var D6={"-":"",_:" ",0:"0"},ut=/^\s*\d+/,_ne=/^%/,$ne=/[\\^$*+?|[\]().{}]/g;function _e(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Sne(e){return e.replace($ne,"\\$&")}function ml(e){return new RegExp("^(?:"+e.map(Sne).join("|")+")","i")}function yl(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Mne(e,t,n){var r=ut.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Tne(e,t,n){var r=ut.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function kne(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function One(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Cne(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function L6(e,t,n){var r=ut.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function I6(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Pne(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 Ene(e,t,n){var r=ut.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ane(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function z6(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nne(e,t,n){var r=ut.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F6(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Rne(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Dne(e,t,n){var r=ut.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Lne(e,t,n){var r=ut.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ine(e,t,n){var r=ut.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function zne(e,t,n){var r=_ne.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Fne(e,t,n){var r=ut.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Bne(e,t,n){var r=ut.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function B6(e,t){return _e(e.getDate(),t,2)}function jne(e,t){return _e(e.getHours(),t,2)}function Wne(e,t){return _e(e.getHours()%12||12,t,2)}function Hne(e,t){return _e(1+fl.count(di(e),e),t,3)}function j6(e,t){return _e(e.getMilliseconds(),t,3)}function qne(e,t){return j6(e,t)+"000"}function Une(e,t){return _e(e.getMonth()+1,t,2)}function Vne(e,t){return _e(e.getMinutes(),t,2)}function Yne(e,t){return _e(e.getSeconds(),t,2)}function Gne(e){var t=e.getDay();return t===0?7:t}function Xne(e,t){return _e(Ua.count(di(e)-1,e),t,2)}function W6(e){var t=e.getDay();return t>=4||t===0?vo(e):vo.ceil(e)}function Kne(e,t){return e=W6(e),_e(vo.count(di(e),e)+(di(e).getDay()===4),t,2)}function Zne(e){return e.getDay()}function Qne(e,t){return _e(hl.count(di(e)-1,e),t,2)}function Jne(e,t){return _e(e.getFullYear()%100,t,2)}function ere(e,t){return e=W6(e),_e(e.getFullYear()%100,t,2)}function tre(e,t){return _e(e.getFullYear()%1e4,t,4)}function nre(e,t){var n=e.getDay();return e=n>=4||n===0?vo(e):vo.ceil(e),_e(e.getFullYear()%1e4,t,4)}function rre(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_e(t/60|0,"0",2)+_e(t%60,"0",2)}function H6(e,t){return _e(e.getUTCDate(),t,2)}function ire(e,t){return _e(e.getUTCHours(),t,2)}function ore(e,t){return _e(e.getUTCHours()%12||12,t,2)}function are(e,t){return _e(1+dl.count(pi(e),e),t,3)}function q6(e,t){return _e(e.getUTCMilliseconds(),t,3)}function sre(e,t){return q6(e,t)+"000"}function ure(e,t){return _e(e.getUTCMonth()+1,t,2)}function lre(e,t){return _e(e.getUTCMinutes(),t,2)}function cre(e,t){return _e(e.getUTCSeconds(),t,2)}function fre(e){var t=e.getUTCDay();return t===0?7:t}function hre(e,t){return _e(Va.count(pi(e)-1,e),t,2)}function U6(e){var t=e.getUTCDay();return t>=4||t===0?xo(e):xo.ceil(e)}function dre(e,t){return e=U6(e),_e(xo.count(pi(e),e)+(pi(e).getUTCDay()===4),t,2)}function pre(e){return e.getUTCDay()}function gre(e,t){return _e(pl.count(pi(e)-1,e),t,2)}function mre(e,t){return _e(e.getUTCFullYear()%100,t,2)}function yre(e,t){return e=U6(e),_e(e.getUTCFullYear()%100,t,2)}function vre(e,t){return _e(e.getUTCFullYear()%1e4,t,4)}function bre(e,t){var n=e.getUTCDay();return e=n>=4||n===0?xo(e):xo.ceil(e),_e(e.getUTCFullYear()%1e4,t,4)}function xre(){return"+0000"}function V6(){return"%"}function Y6(e){return+e}function G6(e){return Math.floor(+e/1e3)}var Ya,Mv,X6,xd,Tv;K6({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function K6(e){return Ya=R6(e),Mv=Ya.format,X6=Ya.parse,xd=Ya.utcFormat,Tv=Ya.utcParse,Ya}var Z6="%Y-%m-%dT%H:%M:%S.%LZ";function wre(e){return e.toISOString()}var _re=Date.prototype.toISOString?wre:xd(Z6),$re=_re;function Sre(e){var t=new Date(e);return isNaN(t)?null:t}var Mre=+new Date("2000-01-01T00:00:00.000Z")?Sre:Tv(Z6),Tre=Mre;function kre(e){return new Date(e)}function Ore(e){return e instanceof Date?+e:+new Date(+e)}function kv(e,t,n,r,i,o,a,s,u,l){var c=ov(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),m=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),v=l("%b %d"),x=l("%B"),b=l("%Y");function _(w){return(u(w)<w?d:s(w)<w?p:a(w)<w?m:o(w)<w?g:r(w)<w?i(w)<w?y:v:n(w)<w?x:b)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,Ore)):h().map(kre)},c.ticks=function(w){var $=h();return e($[0],$[$.length-1],w==null?10:w)},c.tickFormat=function(w,$){return $==null?_:l($)},c.nice=function(w){var $=h();return(!w||typeof w.range!="function")&&(w=t($[0],$[$.length-1],w==null?10:w)),w?h(Y4($,w)):c},c.copy=function(){return cl(c,kv(e,t,n,r,i,o,a,s,u,l))},c}function Cre(){return _n.apply(kv(A6,N6,di,yv,Ua,fl,mv,gv,hi,Mv).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Pre(){return _n.apply(kv(P6,E6,pi,wv,Va,dl,xv,bv,hi,xd).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function wd(){var e=0,t=1,n,r,i,o,a=Bt,s=!1,u;function l(f){return f==null||isNaN(f=+f)?u:a(i===0?.5:(f=(o(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}l.domain=function(f){return arguments.length?([e,t]=f,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(f){return arguments.length?(s=!!f,l):s},l.interpolator=function(f){return arguments.length?(a=f,l):a};function c(f){return function(h){var d,p;return arguments.length?([d,p]=h,a=f(d,p),l):[a(0),a(1)]}}return l.range=c(ho),l.rangeRound=c(gd),l.unknown=function(f){return arguments.length?(u=f,l):u},function(f){return o=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),l}}function gi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Q6(){var e=fi(wd()(Bt));return e.copy=function(){return gi(e,Q6())},Lr.apply(e,arguments)}function J6(){var e=av(wd()).domain([1,10]);return e.copy=function(){return gi(e,J6()).base(e.base())},Lr.apply(e,arguments)}function e8(){var e=sv(wd());return e.copy=function(){return gi(e,e8()).constant(e.constant())},Lr.apply(e,arguments)}function Ov(){var e=uv(wd());return e.copy=function(){return gi(e,Ov()).exponent(e.exponent())},Lr.apply(e,arguments)}function Ere(){return Ov.apply(null,arguments).exponent(.5)}function t8(){var e=[],t=Bt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Ki(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ve),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>yu(e,o/r))},n.copy=function(){return t8(t).domain(e)},Lr.apply(n,arguments)}function _d(){var e=0,t=.5,n=1,r=1,i,o,a,s,u,l=Bt,c,f=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-o)*(r*m<r*o?s:u),l(f?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t,n]=m,i=c(e=+e),o=c(t=+t),a=c(n=+n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d):[e,t,n]},d.clamp=function(m){return arguments.length?(f=!!m,d):f},d.interpolator=function(m){return arguments.length?(l=m,d):l};function p(m){return function(g){var y,v,x;return arguments.length?([y,v,x]=g,l=D4(m,[y,v,x]),d):[l(0),l(.5),l(1)]}}return d.range=p(ho),d.rangeRound=p(gd),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return c=m,i=m(e),o=m(t),a=m(n),s=i===o?0:.5/(o-i),u=o===a?0:.5/(a-o),r=o<i?-1:1,d}}function n8(){var e=fi(_d()(Bt));return e.copy=function(){return gi(e,n8())},Lr.apply(e,arguments)}function r8(){var e=av(_d()).domain([.1,1,10]);return e.copy=function(){return gi(e,r8()).base(e.base())},Lr.apply(e,arguments)}function i8(){var e=sv(_d());return e.copy=function(){return gi(e,i8()).constant(e.constant())},Lr.apply(e,arguments)}function Cv(){var e=uv(_d());return e.copy=function(){return gi(e,Cv()).exponent(e.exponent())},Lr.apply(e,arguments)}function Are(){return Cv.apply(null,arguments).exponent(.5)}function pe(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}var Nre=pe("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Rre=pe("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Dre=pe("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Lre=pe("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Ire=pe("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),zre=pe("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Fre=pe("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Bre=pe("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),jre=pe("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Wre=pe("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab");function $d(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Pv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ga(){}var wo=.7,Xa=1/wo,Ka="\\s*([+-]?\\d+)\\s*",vl="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gr="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hre=/^#([0-9a-f]{3,8})$/,qre=new RegExp("^rgb\\("+[Ka,Ka,Ka]+"\\)$"),Ure=new RegExp("^rgb\\("+[gr,gr,gr]+"\\)$"),Vre=new RegExp("^rgba\\("+[Ka,Ka,Ka,vl]+"\\)$"),Yre=new RegExp("^rgba\\("+[gr,gr,gr,vl]+"\\)$"),Gre=new RegExp("^hsl\\("+[vl,gr,gr]+"\\)$"),Xre=new RegExp("^hsla\\("+[vl,gr,gr,vl]+"\\)$"),o8={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};$d(Ga,Ev,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:a8,formatHex:a8,formatHsl:Kre,formatRgb:s8,toString:s8});function a8(){return this.rgb().formatHex()}function Kre(){return d8(this).formatHsl()}function s8(){return this.rgb().formatRgb()}function Ev(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Hre.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?u8(t):n===3?new jt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Sd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Sd(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=qre.exec(e))?new jt(t[1],t[2],t[3],1):(t=Ure.exec(e))?new jt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Vre.exec(e))?Sd(t[1],t[2],t[3],t[4]):(t=Yre.exec(e))?Sd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gre.exec(e))?h8(t[1],t[2]/100,t[3]/100,1):(t=Xre.exec(e))?h8(t[1],t[2]/100,t[3]/100,t[4]):o8.hasOwnProperty(e)?u8(o8[e]):e==="transparent"?new jt(NaN,NaN,NaN,0):null}function u8(e){return new jt(e>>16&255,e>>8&255,e&255,1)}function Sd(e,t,n,r){return r<=0&&(e=t=n=NaN),new jt(e,t,n,r)}function l8(e){return e instanceof Ga||(e=Ev(e)),e?(e=e.rgb(),new jt(e.r,e.g,e.b,e.opacity)):new jt}function bl(e,t,n,r){return arguments.length===1?l8(e):new jt(e,t,n,r==null?1:r)}function jt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}$d(jt,bl,Pv(Ga,{brighter:function(e){return e=e==null?Xa:Math.pow(Xa,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?wo:Math.pow(wo,e),new jt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:c8,formatHex:c8,formatRgb:f8,toString:f8}));function c8(){return"#"+Av(this.r)+Av(this.g)+Av(this.b)}function f8(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Av(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function h8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mr(e,t,n,r)}function d8(e){if(e instanceof mr)return new mr(e.h,e.s,e.l,e.opacity);if(e instanceof Ga||(e=Ev(e)),!e)return new mr;if(e instanceof mr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new mr(a,s,u,e.opacity)}function Zre(e,t,n,r){return arguments.length===1?d8(e):new mr(e,t,n,r==null?1:r)}function mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$d(mr,Zre,Pv(Ga,{brighter:function(e){return e=e==null?Xa:Math.pow(Xa,e),new mr(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?wo:Math.pow(wo,e),new mr(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new jt(Nv(e>=240?e-240:e+120,i,r),Nv(e,i,r),Nv(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Nv(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Qre=Math.PI/180,Jre=180/Math.PI;var p8=-.14861,Rv=1.78277,Dv=-.29227,Md=-.90649,xl=1.97294,g8=xl*Md,m8=xl*Rv,y8=Rv*Dv-Md*p8;function eie(e){if(e instanceof _o)return new _o(e.h,e.s,e.l,e.opacity);e instanceof jt||(e=l8(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(y8*r+g8*t-m8*n)/(y8+g8-m8),o=r-i,a=(xl*(n-i)-Dv*o)/Md,s=Math.sqrt(a*a+o*o)/(xl*i*(1-i)),u=s?Math.atan2(a,o)*Jre-120:NaN;return new _o(u<0?u+360:u,s,i,e.opacity)}function yr(e,t,n,r){return arguments.length===1?eie(e):new _o(e,t,n,r==null?1:r)}function _o(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}$d(_o,yr,Pv(Ga,{brighter:function(e){return e=e==null?Xa:Math.pow(Xa,e),new _o(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?wo:Math.pow(wo,e),new _o(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Qre,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new jt(255*(t+n*(p8*r+Rv*i)),255*(t+n*(Dv*r+Md*i)),255*(t+n*(xl*r)),this.opacity)}}));function tie(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function nie(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),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return tie((n-r/t)*t,a,i,o,s)}}var Lv=e=>()=>e;function v8(e,t){return function(n){return e+n*t}}function rie(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)}}function iie(e,t){var n=t-e;return n?v8(e,n>180||n<-180?n-360*Math.round(n/360):n):Lv(isNaN(e)?t:e)}function oie(e){return(e=+e)==1?Za:function(t,n){return n-t?rie(t,n,e):Lv(isNaN(t)?n:t)}}function Za(e,t){var n=t-e;return n?v8(e,n):Lv(isNaN(e)?t:e)}(function e(t){var n=oie(t);function r(i,o){var a=n((i=bl(i)).r,(o=bl(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=Za(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r})(1);function aie(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),o=new Array(n),a,s;for(a=0;a<n;++a)s=bl(t[a]),r[a]=s.r||0,i[a]=s.g||0,o[a]=s.b||0;return r=e(r),i=e(i),o=e(o),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=o(u),s+""}}}var sie=aie(nie);function b8(e){return function t(n){n=+n;function r(i,o){var a=e((i=yr(i)).h,(o=yr(o)).h),s=Za(i.s,o.s),u=Za(i.l,o.l),l=Za(i.opacity,o.opacity);return function(c){return i.h=a(c),i.s=s(c),i.l=u(Math.pow(c,n)),i.opacity=l(c),i+""}}return r.gamma=t,r}(1)}b8(iie);var Iv=b8(Za),Oe=e=>sie(e[e.length-1]),x8=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(pe),uie=Oe(x8),w8=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(pe),lie=Oe(w8),_8=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(pe),cie=Oe(_8),$8=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(pe),fie=Oe($8),S8=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(pe),hie=Oe(S8),M8=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(pe),die=Oe(M8),T8=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(pe),pie=Oe(T8),k8=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(pe),gie=Oe(k8),O8=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(pe),mie=Oe(O8),C8=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(pe),yie=Oe(C8),P8=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(pe),vie=Oe(P8),E8=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(pe),bie=Oe(E8),A8=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(pe),xie=Oe(A8),N8=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(pe),wie=Oe(N8),R8=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(pe),_ie=Oe(R8),D8=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(pe),$ie=Oe(D8),L8=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(pe),Sie=Oe(L8),I8=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(pe),Mie=Oe(I8),z8=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(pe),Tie=Oe(z8),F8=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(pe),kie=Oe(F8),B8=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(pe),Oie=Oe(B8),j8=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(pe),Cie=Oe(j8),W8=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(pe),Pie=Oe(W8),H8=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(pe),Eie=Oe(H8),q8=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(pe),Aie=Oe(q8),U8=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(pe),Nie=Oe(U8),V8=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(pe),Rie=Oe(V8);function Die(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}var Lie=Iv(yr(300,.5,0),yr(-240,.5,1)),Iie=Iv(yr(-100,.75,.35),yr(80,1.5,.8)),zie=Iv(yr(260,.75,.35),yr(80,1.5,.8)),Td=yr();function Fie(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Td.h=360*e-100,Td.s=1.5-1.5*t,Td.l=.8-.9*t,Td+""}var kd=bl(),Bie=Math.PI/3,jie=Math.PI*2/3;function Wie(e){var t;return e=(.5-e)*Math.PI,kd.r=255*(t=Math.sin(e))*t,kd.g=255*(t=Math.sin(e+Bie))*t,kd.b=255*(t=Math.sin(e+jie))*t,kd+""}function Hie(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function Od(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var qie=Od(pe("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Uie=Od(pe("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Vie=Od(pe("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Yie=Od(pe("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function de(e){return function(){return e}}var Y8=Math.abs,_t=Math.atan2,$o=Math.cos,Gie=Math.max,zv=Math.min,vr=Math.sin,Qa=Math.sqrt,$t=1e-12,mi=Math.PI,Cd=mi/2,yi=2*mi;function Xie(e){return e>1?0:e<-1?mi:Math.acos(e)}function G8(e){return e>=1?Cd:e<=-1?-Cd:Math.asin(e)}function Kie(e){return e.innerRadius}function Zie(e){return e.outerRadius}function Qie(e){return e.startAngle}function Jie(e){return e.endAngle}function eoe(e){return e&&e.padAngle}function toe(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,f=s-o,h=f*u-c*l;if(!(h*h<$t))return h=(c*(t-o)-f*(e-i))/h,[e+h*u,t+h*l]}function Pd(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/Qa(s*s+u*u),c=l*u,f=-l*s,h=e+c,d=t+f,p=n+c,m=r+f,g=(h+p)/2,y=(d+m)/2,v=p-h,x=m-d,b=v*v+x*x,_=i-o,w=h*m-p*d,$=(x<0?-1:1)*Qa(Gie(0,_*_*b-w*w)),T=(w*x-v*$)/b,k=(-w*v-x*$)/b,S=(w*x+v*$)/b,M=(-w*v+x*$)/b,A=T-g,E=k-y,O=S-g,P=M-y;return A*A+E*E>O*O+P*P&&(T=S,k=M),{cx:T,cy:k,x01:-c,y01:-f,x11:T*(i/_-1),y11:k*(i/_-1)}}function noe(){var e=Kie,t=Zie,n=de(0),r=null,i=Qie,o=Jie,a=eoe,s=null;function u(){var l,c,f=+e.apply(this,arguments),h=+t.apply(this,arguments),d=i.apply(this,arguments)-Cd,p=o.apply(this,arguments)-Cd,m=Y8(p-d),g=p>d;if(s||(s=l=go()),h<f&&(c=h,h=f,f=c),!(h>$t))s.moveTo(0,0);else if(m>yi-$t)s.moveTo(h*$o(d),h*vr(d)),s.arc(0,0,h,d,p,!g),f>$t&&(s.moveTo(f*$o(p),f*vr(p)),s.arc(0,0,f,p,d,g));else{var y=d,v=p,x=d,b=p,_=m,w=m,$=a.apply(this,arguments)/2,T=$>$t&&(r?+r.apply(this,arguments):Qa(f*f+h*h)),k=zv(Y8(h-f)/2,+n.apply(this,arguments)),S=k,M=k,A,E;if(T>$t){var O=G8(T/f*vr($)),P=G8(T/h*vr($));(_-=O*2)>$t?(O*=g?1:-1,x+=O,b-=O):(_=0,x=b=(d+p)/2),(w-=P*2)>$t?(P*=g?1:-1,y+=P,v-=P):(w=0,y=v=(d+p)/2)}var C=h*$o(y),N=h*vr(y),D=f*$o(b),I=f*vr(b);if(k>$t){var B=h*$o(v),U=h*vr(v),Y=f*$o(x),J=f*vr(x),q;if(m<mi&&(q=toe(C,N,Y,J,B,U,D,I))){var j=C-q[0],V=N-q[1],G=B-q[0],ne=U-q[1],L=1/vr(Xie((j*G+V*ne)/(Qa(j*j+V*V)*Qa(G*G+ne*ne)))/2),W=Qa(q[0]*q[0]+q[1]*q[1]);S=zv(k,(f-W)/(L-1)),M=zv(k,(h-W)/(L+1))}}w>$t?M>$t?(A=Pd(Y,J,C,N,h,M,g),E=Pd(B,U,D,I,h,M,g),s.moveTo(A.cx+A.x01,A.cy+A.y01),M<k?s.arc(A.cx,A.cy,M,_t(A.y01,A.x01),_t(E.y01,E.x01),!g):(s.arc(A.cx,A.cy,M,_t(A.y01,A.x01),_t(A.y11,A.x11),!g),s.arc(0,0,h,_t(A.cy+A.y11,A.cx+A.x11),_t(E.cy+E.y11,E.cx+E.x11),!g),s.arc(E.cx,E.cy,M,_t(E.y11,E.x11),_t(E.y01,E.x01),!g))):(s.moveTo(C,N),s.arc(0,0,h,y,v,!g)):s.moveTo(C,N),!(f>$t)||!(_>$t)?s.lineTo(D,I):S>$t?(A=Pd(D,I,B,U,f,-S,g),E=Pd(C,N,Y,J,f,-S,g),s.lineTo(A.cx+A.x01,A.cy+A.y01),S<k?s.arc(A.cx,A.cy,S,_t(A.y01,A.x01),_t(E.y01,E.x01),!g):(s.arc(A.cx,A.cy,S,_t(A.y01,A.x01),_t(A.y11,A.x11),!g),s.arc(0,0,f,_t(A.cy+A.y11,A.cx+A.x11),_t(E.cy+E.y11,E.cx+E.x11),g),s.arc(E.cx,E.cy,S,_t(E.y11,E.x11),_t(E.y01,E.x01),!g))):s.arc(0,0,f,b,x,g)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-mi/2;return[$o(c)*l,vr(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:de(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:de(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:de(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:de(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:de(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:de(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:de(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}var roe=Array.prototype.slice;function Ed(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function X8(e){this._context=e}X8.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Ad(e){return new X8(e)}function Fv(e){return e[0]}function Bv(e){return e[1]}function jv(e,t){var n=de(!0),r=null,i=Ad,o=null;e=typeof e=="function"?e:e===void 0?Fv:de(e),t=typeof t=="function"?t:t===void 0?Bv:de(t);function a(s){var u,l=(s=Ed(s)).length,c,f=!1,h;for(r==null&&(o=i(h=go())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(c,u,s),+t(c,u,s));if(h)return o=null,h+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:de(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:de(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:de(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function K8(e,t,n){var r=null,i=de(!0),o=null,a=Ad,s=null;e=typeof e=="function"?e:e===void 0?Fv:de(+e),t=typeof t=="function"?t:de(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Bv:de(+n);function u(c){var f,h,d,p=(c=Ed(c)).length,m,g=!1,y,v=new Array(p),x=new Array(p);for(o==null&&(s=a(y=go())),f=0;f<=p;++f){if(!(f<p&&i(m=c[f],f,c))===g)if(g=!g)h=f,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=f-1;d>=h;--d)s.point(v[d],x[d]);s.lineEnd(),s.areaEnd()}g&&(v[f]=+e(m,f,c),x[f]=+t(m,f,c),s.point(r?+r(m,f,c):v[f],n?+n(m,f,c):x[f]))}if(y)return s=null,y+""||null}function l(){return jv().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:de(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:de(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:de(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:de(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:de(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:de(+c),u):n},u.lineX0=u.lineY0=function(){return l().x(e).y(t)},u.lineY1=function(){return l().x(e).y(n)},u.lineX1=function(){return l().x(r).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:de(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function ioe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ooe(e){return e}function aoe(){var e=ooe,t=ioe,n=null,r=de(0),i=de(yi),o=de(0);function a(s){var u,l=(s=Ed(s)).length,c,f,h=0,d=new Array(l),p=new Array(l),m=+r.apply(this,arguments),g=Math.min(yi,Math.max(-yi,i.apply(this,arguments)-m)),y,v=Math.min(Math.abs(g)/l,o.apply(this,arguments)),x=v*(g<0?-1:1),b;for(u=0;u<l;++u)(b=p[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(_,w){return t(p[_],p[w])}):n!=null&&d.sort(function(_,w){return n(s[_],s[w])}),u=0,f=h?(g-l*x)/h:0;u<l;++u,m=y)c=d[u],b=p[c],y=m+(b>0?b*f:0)+x,p[c]={data:s[c],index:u,value:b,startAngle:m,endAngle:y,padAngle:v};return p}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:de(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:de(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:de(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:de(+s),a):o},a}var Z8=Wv(Ad);function Q8(e){this._curve=e}Q8.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))}};function Wv(e){function t(n){return new Q8(e(n))}return t._curve=e,t}function wl(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Wv(n)):t()._curve},e}function J8(){return wl(jv().curve(Z8))}function ek(){var e=K8().curve(Z8),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=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 wl(n())},delete e.lineX0,e.lineEndAngle=function(){return wl(r())},delete e.lineX1,e.lineInnerRadius=function(){return wl(i())},delete e.lineY0,e.lineOuterRadius=function(){return wl(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Wv(a)):t()._curve},e}function _l(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}function soe(e){return e.source}function uoe(e){return e.target}function Hv(e){var t=soe,n=uoe,r=Fv,i=Bv,o=null;function a(){var s,u=roe.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=go()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),s)return o=null,s+""||null}return a.source=function(s){return arguments.length?(t=s,a):t},a.target=function(s){return arguments.length?(n=s,a):n},a.x=function(s){return arguments.length?(r=typeof s=="function"?s:de(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:de(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function loe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function coe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function foe(e,t,n,r,i){var o=_l(t,n),a=_l(t,n=(n+i)/2),s=_l(r,n),u=_l(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function hoe(){return Hv(loe)}function doe(){return Hv(coe)}function poe(){var e=Hv(foe);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var qv={draw:function(e,t){var n=Math.sqrt(t/mi);e.moveTo(n,0),e.arc(0,0,n,0,yi)}},tk={draw:function(e,t){var n=Math.sqrt(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()}},nk=Math.sqrt(1/3),goe=nk*2,rk={draw:function(e,t){var n=Math.sqrt(t/goe),r=n*nk;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},moe=.8908130915292852,ik=Math.sin(mi/10)/Math.sin(7*mi/10),yoe=Math.sin(yi/10)*ik,voe=-Math.cos(yi/10)*ik,ok={draw:function(e,t){var n=Math.sqrt(t*moe),r=yoe*n,i=voe*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=yi*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},ak={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Uv=Math.sqrt(3),sk={draw:function(e,t){var n=-Math.sqrt(t/(Uv*3));e.moveTo(0,n*2),e.lineTo(-Uv*n,-n),e.lineTo(Uv*n,-n),e.closePath()}},Sn=-.5,Mn=Math.sqrt(3)/2,Vv=1/Math.sqrt(12),boe=(Vv/2+1)*3,uk={draw:function(e,t){var n=Math.sqrt(t/boe),r=n/2,i=n*Vv,o=r,a=n*Vv+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(Sn*r-Mn*i,Mn*r+Sn*i),e.lineTo(Sn*o-Mn*a,Mn*o+Sn*a),e.lineTo(Sn*s-Mn*u,Mn*s+Sn*u),e.lineTo(Sn*r+Mn*i,Sn*i-Mn*r),e.lineTo(Sn*o+Mn*a,Sn*a-Mn*o),e.lineTo(Sn*s+Mn*u,Sn*u-Mn*s),e.closePath()}},xoe=[qv,tk,rk,ak,ok,sk,uk];function woe(e,t){var n=null;e=typeof e=="function"?e:de(e||qv),t=typeof t=="function"?t:de(t===void 0?64:+t);function r(){var i;if(n||(n=i=go()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:de(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:de(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function vi(){}function Nd(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 Rd(e){this._context=e}Rd.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:Nd(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _oe(e){return new Rd(e)}function lk(e){this._context=e}lk.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $oe(e){return new lk(e)}function ck(e){this._context=e}ck.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var 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:Nd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Soe(e){return new ck(e)}class fk{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Moe(e){return new fk(e,!0)}function Toe(e){return new fk(e,!1)}function hk(e,t){this._basis=new Rd(e),this._beta=t}hk.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=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var koe=function e(t){function n(r){return t===1?new Rd(r):new hk(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Dd(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 Yv(e,t){this._context=e,this._k=(1-t)/6}Yv.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:Dd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Dd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ooe=function e(t){function n(r){return new Yv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Gv(e,t){this._context=e,this._k=(1-t)/6}Gv.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Dd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Coe=function e(t){function n(r){return new Gv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Xv(e,t){this._context=e,this._k=(1-t)/6}Xv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:Dd(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Poe=function e(t){function n(r){return new Xv(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Kv(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>$t){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>$t){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function dk(e,t){this._context=e,this._alpha=t}dk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var 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:Kv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Eoe=function e(t){function n(r){return t?new dk(r,t):new Yv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function pk(e,t){this._context=e,this._alpha=t}pk.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Kv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Aoe=function e(t){function n(r){return t?new pk(r,t):new Gv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function gk(e,t){this._context=e,this._alpha=t}gk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(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:Kv(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Noe=function e(t){function n(r){return t?new gk(r,t):new Xv(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function mk(e){this._context=e}mk.prototype={areaStart:vi,areaEnd:vi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Roe(e){return new mk(e)}function yk(e){return e<0?-1:1}function vk(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(yk(o)+yk(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function bk(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Zv(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Ld(e){this._context=e}Ld.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:Zv(this,this._t0,bk(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Zv(this,bk(this,n=vk(this,e,t)),n);break;default:Zv(this,this._t0,n=vk(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function xk(e){this._context=new wk(e)}(xk.prototype=Object.create(Ld.prototype)).point=function(e,t){Ld.prototype.point.call(this,t,e)};function wk(e){this._context=e}wk.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,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Doe(e){return new Ld(e)}function Loe(e){return new xk(e)}function _k(e){this._context=e}_k.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]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$k(e),i=$k(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $k(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Ioe(e){return new _k(e)}function Id(e,t){this._context=e,this._t=t}Id.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function zoe(e){return new Id(e,.5)}function Foe(e){return new Id(e,0)}function Boe(e){return new Id(e,1)}function Ja(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function es(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function joe(e,t){return e[t]}function Woe(e){const t=[];return t.key=e,t}function Hoe(){var e=de([]),t=es,n=Ja,r=joe;function i(o){var a=Array.from(e.apply(this,arguments),Woe),s,u=a.length,l=-1,c;for(const f of o)for(s=0,++l;s<u;++s)(a[s][l]=[0,+r(f,a[s].key,l,o)]).data=f;for(s=0,c=Ed(t(a));s<u;++s)a[c[s]].index=s;return n(a,c),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:de(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:de(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?es:typeof o=="function"?o:de(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?Ja:o,i):n},i}function qoe(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Ja(e,t)}}function Uoe(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Voe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ja(e,t)}}function Yoe(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],f=c[r][1]||0,h=c[r-1][1]||0,d=(f-h)/2,p=0;p<s;++p){var m=e[t[p]],g=m[r][1]||0,y=m[r-1][1]||0;d+=g-y}u+=f,l+=d*f}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,Ja(e,t)}}function Sk(e){var t=e.map(Goe);return es(e).sort(function(n,r){return t[n]-t[r]})}function Goe(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function Mk(e){var t=e.map(Tk);return es(e).sort(function(n,r){return t[n]-t[r]})}function Tk(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function Xoe(e){return Mk(e).reverse()}function Koe(e){var t=e.length,n,r,i=e.map(Tk),o=Sk(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function Zoe(e){return es(e).reverse()}var Qoe=1e-12;function kk(e){return((e=Math.exp(e))+1/e)/2}function Joe(e){return((e=Math.exp(e))-1/e)/2}function eae(e){return((e=Math.exp(2*e))-1)/(e+1)}var tae=function e(t,n,r){function i(o,a){var s=o[0],u=o[1],l=o[2],c=a[0],f=a[1],h=a[2],d=c-s,p=f-u,m=d*d+p*p,g,y;if(m<Qoe)y=Math.log(h/l)/t,g=function($){return[s+$*d,u+$*p,l*Math.exp(t*$*y)]};else{var v=Math.sqrt(m),x=(h*h-l*l+r*m)/(2*l*n*v),b=(h*h-l*l-r*m)/(2*h*n*v),_=Math.log(Math.sqrt(x*x+1)-x),w=Math.log(Math.sqrt(b*b+1)-b);y=(w-_)/t,g=function($){var T=$*y,k=kk(_),S=l/(n*v)*(k*eae(t*T+_)-Joe(_));return[s+S*d,u+S*p,l*k/kk(t*T+_)]}}return g.duration=y*1e3*t/Math.SQRT2,g}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,u=s*s;return e(a,s,u)},i}(Math.SQRT2,2,4),zd=e=>()=>e;function nae(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Fr(e,t,n){this.k=e,this.x=t,this.y=n}Fr.prototype={constructor:Fr,scale:function(e){return e===1?this:new Fr(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Fr(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Fd=new Fr(1,0,0);Ok.prototype=Fr.prototype;function Ok(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Fd;return e.__zoom}function Qv(e){e.stopImmediatePropagation()}function $l(e){e.preventDefault(),e.stopImmediatePropagation()}function rae(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function iae(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ck(){return this.__zoom||Fd}function oae(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function aae(){return navigator.maxTouchPoints||"ontouchstart"in this}function sae(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function uae(){var e=rae,t=iae,n=sae,r=oae,i=aae,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=tae,l=va("start","zoom","end"),c,f,h,d=500,p=150,m=0,g=10;function y(O){O.property("__zoom",Ck).on("wheel.zoom",T).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(i).on("touchstart.zoom",M).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",E).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(O,P,C,N){var D=O.selection?O.selection():O;D.property("__zoom",Ck),O!==D?_(O,P,C,N):D.interrupt().each(function(){w(this,arguments).event(N).start().zoom(null,typeof P=="function"?P.apply(this,arguments):P).end()})},y.scaleBy=function(O,P,C,N){y.scaleTo(O,function(){var D=this.__zoom.k,I=typeof P=="function"?P.apply(this,arguments):P;return D*I},C,N)},y.scaleTo=function(O,P,C,N){y.transform(O,function(){var D=t.apply(this,arguments),I=this.__zoom,B=C==null?b(D):typeof C=="function"?C.apply(this,arguments):C,U=I.invert(B),Y=typeof P=="function"?P.apply(this,arguments):P;return n(x(v(I,Y),B,U),D,a)},C,N)},y.translateBy=function(O,P,C,N){y.transform(O,function(){return n(this.__zoom.translate(typeof P=="function"?P.apply(this,arguments):P,typeof C=="function"?C.apply(this,arguments):C),t.apply(this,arguments),a)},null,N)},y.translateTo=function(O,P,C,N,D){y.transform(O,function(){var I=t.apply(this,arguments),B=this.__zoom,U=N==null?b(I):typeof N=="function"?N.apply(this,arguments):N;return n(Fd.translate(U[0],U[1]).scale(B.k).translate(typeof P=="function"?-P.apply(this,arguments):-P,typeof C=="function"?-C.apply(this,arguments):-C),I,a)},N,D)};function v(O,P){return P=Math.max(o[0],Math.min(o[1],P)),P===O.k?O:new Fr(P,O.x,O.y)}function x(O,P,C){var N=P[0]-C[0]*O.k,D=P[1]-C[1]*O.k;return N===O.x&&D===O.y?O:new Fr(O.k,N,D)}function b(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function _(O,P,C,N){O.on("start.zoom",function(){w(this,arguments).event(N).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).event(N).end()}).tween("zoom",function(){var D=this,I=arguments,B=w(D,I).event(N),U=t.apply(D,I),Y=C==null?b(U):typeof C=="function"?C.apply(D,I):C,J=Math.max(U[1][0]-U[0][0],U[1][1]-U[0][1]),q=D.__zoom,j=typeof P=="function"?P.apply(D,I):P,V=u(q.invert(Y).concat(J/q.k),j.invert(Y).concat(J/j.k));return function(G){if(G===1)G=j;else{var ne=V(G),L=J/ne[2];G=new Fr(L,Y[0]-ne[0]*L,Y[1]-ne[1]*L)}B.zoom(null,G)}})}function w(O,P,C){return!C&&O.__zooming||new $(O,P)}function $(O,P){this.that=O,this.args=P,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,P),this.taps=0}$.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,P){return this.mouse&&O!=="mouse"&&(this.mouse[1]=P.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=P.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=P.invert(this.touch1[0])),this.that.__zoom=P,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var P=bt(this.that).datum();l.call(O,this.that,new nae(O,{sourceEvent:this.sourceEvent,target:y,type:O,transform:this.that.__zoom,dispatch:l}),P)}};function T(O,...P){if(!e.apply(this,arguments))return;var C=w(this,P).event(O),N=this.__zoom,D=Math.max(o[0],Math.min(o[1],N.k*Math.pow(2,r.apply(this,arguments)))),I=an(O);if(C.wheel)(C.mouse[0][0]!==I[0]||C.mouse[0][1]!==I[1])&&(C.mouse[1]=N.invert(C.mouse[0]=I)),clearTimeout(C.wheel);else{if(N.k===D)return;C.mouse=[I,N.invert(I)],eo(this),C.start()}$l(O),C.wheel=setTimeout(B,p),C.zoom("mouse",n(x(v(N,D),C.mouse[0],C.mouse[1]),C.extent,a));function B(){C.wheel=null,C.end()}}function k(O,...P){if(h||!e.apply(this,arguments))return;var C=w(this,P,!0).event(O),N=bt(O.view).on("mousemove.zoom",Y,!0).on("mouseup.zoom",J,!0),D=an(O,I),I=O.currentTarget,B=O.clientX,U=O.clientY;qf(O.view),Qv(O),C.mouse=[D,this.__zoom.invert(D)],eo(this),C.start();function Y(q){if($l(q),!C.moved){var j=q.clientX-B,V=q.clientY-U;C.moved=j*j+V*V>m}C.event(q).zoom("mouse",n(x(C.that.__zoom,C.mouse[0]=an(q,I),C.mouse[1]),C.extent,a))}function J(q){N.on("mousemove.zoom mouseup.zoom",null),Uf(q.view,C.moved),$l(q),C.event(q).end()}}function S(O,...P){if(!!e.apply(this,arguments)){var C=this.__zoom,N=an(O.changedTouches?O.changedTouches[0]:O,this),D=C.invert(N),I=C.k*(O.shiftKey?.5:2),B=n(x(v(C,I),N,D),t.apply(this,P),a);$l(O),s>0?bt(this).transition().duration(s).call(_,B,N,O):bt(this).call(y.transform,B,N,O)}}function M(O,...P){if(!!e.apply(this,arguments)){var C=O.touches,N=C.length,D=w(this,P,O.changedTouches.length===N).event(O),I,B,U,Y;for(Qv(O),B=0;B<N;++B)U=C[B],Y=an(U,this),Y=[Y,this.__zoom.invert(Y),U.identifier],D.touch0?!D.touch1&&D.touch0[2]!==Y[2]&&(D.touch1=Y,D.taps=0):(D.touch0=Y,I=!0,D.taps=1+!!c);c&&(c=clearTimeout(c)),I&&(D.taps<2&&(f=Y[0],c=setTimeout(function(){c=null},d)),eo(this),D.start())}}function A(O,...P){if(!!this.__zooming){var C=w(this,P).event(O),N=O.changedTouches,D=N.length,I,B,U,Y;for($l(O),I=0;I<D;++I)B=N[I],U=an(B,this),C.touch0&&C.touch0[2]===B.identifier?C.touch0[0]=U:C.touch1&&C.touch1[2]===B.identifier&&(C.touch1[0]=U);if(B=C.that.__zoom,C.touch1){var J=C.touch0[0],q=C.touch0[1],j=C.touch1[0],V=C.touch1[1],G=(G=j[0]-J[0])*G+(G=j[1]-J[1])*G,ne=(ne=V[0]-q[0])*ne+(ne=V[1]-q[1])*ne;B=v(B,Math.sqrt(G/ne)),U=[(J[0]+j[0])/2,(J[1]+j[1])/2],Y=[(q[0]+V[0])/2,(q[1]+V[1])/2]}else if(C.touch0)U=C.touch0[0],Y=C.touch0[1];else return;C.zoom("touch",n(x(B,U,Y),C.extent,a))}}function E(O,...P){if(!!this.__zooming){var C=w(this,P).event(O),N=O.changedTouches,D=N.length,I,B;for(Qv(O),h&&clearTimeout(h),h=setTimeout(function(){h=null},d),I=0;I<D;++I)B=N[I],C.touch0&&C.touch0[2]===B.identifier?delete C.touch0:C.touch1&&C.touch1[2]===B.identifier&&delete C.touch1;if(C.touch1&&!C.touch0&&(C.touch0=C.touch1,delete C.touch1),C.touch0)C.touch0[1]=this.__zoom.invert(C.touch0[0]);else if(C.end(),C.taps===2&&(B=an(B,this),Math.hypot(f[0]-B[0],f[1]-B[1])<g)){var U=bt(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return y.wheelDelta=function(O){return arguments.length?(r=typeof O=="function"?O:zd(+O),y):r},y.filter=function(O){return arguments.length?(e=typeof O=="function"?O:zd(!!O),y):e},y.touchable=function(O){return arguments.length?(i=typeof O=="function"?O:zd(!!O),y):i},y.extent=function(O){return arguments.length?(t=typeof O=="function"?O:zd([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),y):t},y.scaleExtent=function(O){return arguments.length?(o[0]=+O[0],o[1]=+O[1],y):[o[0],o[1]]},y.translateExtent=function(O){return arguments.length?(a[0][0]=+O[0][0],a[1][0]=+O[1][0],a[0][1]=+O[0][1],a[1][1]=+O[1][1],y):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},y.constrain=function(O){return arguments.length?(n=O,y):n},y.duration=function(O){return arguments.length?(s=+O,y):s},y.interpolate=function(O){return arguments.length?(u=O,y):u},y.on=function(){var O=l.on.apply(l,arguments);return O===l?y:O},y.clickDistance=function(O){return arguments.length?(m=(O=+O)*O,y):Math.sqrt(m)},y.tapDistance=function(O){return arguments.length?(g=+O,y):g},y}var lae=Object.freeze(Object.defineProperty({__proto__:null,version:Dq,bisect:Ki,bisectRight:c3,bisectLeft:zq,bisectCenter:Fq,ascending:Ve,bisector:Ef,count:Af,cross:qq,cumsum:Uq,descending:Vq,deviation:h3,extent:Nf,Adder:Ge,fsum:Yq,fcumsum:Gq,group:y3,groups:Kq,index:Qq,indexes:Jq,rollup:v3,rollups:Zq,groupSort:eU,bin:$3,histogram:$3,thresholdFreedmanDiaconis:rU,thresholdScott:iU,thresholdSturges:_3,max:km,maxIndex:M3,mean:oU,median:aU,merge:Cm,min:Lf,minIndex:T3,nice:w3,pairs:uU,permute:x3,quantile:yu,quantileSorted:S3,quickselect:Om,range:ri,least:cU,leastIndex:k3,greatest:fU,greatestIndex:hU,scan:dU,shuffle:pU,shuffler:O3,sum:gU,ticks:pu,tickIncrement:gu,tickStep:Df,transpose:C3,variance:f3,zip:yU,every:vU,some:bU,filter:xU,map:wU,reduce:_U,reverse:$U,sort:$m,difference:SU,disjoint:MU,intersection:kU,subset:OU,superset:P3,union:CU,InternMap:d3,InternSet:Xq,axisTop:LU,axisRight:IU,axisBottom:zU,axisLeft:FU,brush:hK,brushX:cK,brushY:fK,brushSelection:lK,chord:pK,chordTranspose:gK,chordDirected:mK,ribbon:SK,ribbonArrow:MK,color:Ea,rgb:zu,hsl:ch,lab:hh,hcl:dh,lch:LK,gray:DK,cubehelix:gh,contours:gM,contourDensity:rZ,Delaunay:j1,Voronoi:vM,dispatch:bM,drag:kY,dragDisable:qf,dragEnable:Uf,dsvFormat:xh,csvParse:SM,csvParseRows:$Z,csvFormat:SZ,csvFormatBody:MZ,csvFormatRows:TZ,csvFormatRow:kZ,csvFormatValue:OZ,tsvParse:MM,tsvParseRows:CZ,tsvFormat:PZ,tsvFormatBody:EZ,tsvFormatRows:AZ,tsvFormatRow:NZ,tsvFormatValue:RZ,autoType:DZ,easeLinear:_X,easeQuad:SS,easeQuadIn:$X,easeQuadOut:SX,easeQuadInOut:SS,easeCubic:h1,easeCubicIn:MX,easeCubicOut:TX,easeCubicInOut:h1,easePoly:MS,easePolyIn:kX,easePolyOut:OX,easePolyInOut:MS,easeSin:OS,easeSinIn:CX,easeSinOut:PX,easeSinInOut:OS,easeExp:CS,easeExpIn:EX,easeExpOut:AX,easeExpInOut:CS,easeCircle:PS,easeCircleIn:NX,easeCircleOut:RX,easeCircleInOut:PS,easeBounce:Ru,easeBounceIn:HX,easeBounceOut:Ru,easeBounceInOut:qX,easeBack:ES,easeBackIn:UX,easeBackOut:VX,easeBackInOut:ES,easeElastic:AS,easeElasticIn:YX,easeElasticOut:AS,easeElasticInOut:GX,blob:zZ,buffer:BZ,dsv:WZ,csv:HZ,tsv:qZ,image:UZ,json:YZ,text:wh,xml:GZ,html:XZ,svg:KZ,forceCenter:ZZ,forceCollide:mQ,forceLink:vQ,forceManyBody:kQ,forceRadial:OQ,forceSimulation:TQ,forceX:CQ,forceY:PQ,formatDefaultLocale:zM,get format(){return Th},get formatPrefix(){return Y1},formatLocale:IM,formatSpecifier:Wu,FormatSpecifier:Sh,precisionFixed:FM,precisionPrefix:BM,precisionRound:jM,geoArea:BQ,geoBounds:qQ,geoCentroid:KQ,geoCircle:ZQ,geoClipAntimeridian:fy,geoClipCircle:xT,geoClipExtent:iJ,geoClipRectangle:Yh,geoContains:fJ,geoDistance:Kh,geoGraticule:PT,geoGraticule10:hJ,geoInterpolate:dJ,geoLength:wT,geoPath:MJ,geoAlbers:QT,geoAlbersUsa:DJ,geoAzimuthalEqualArea:LJ,geoAzimuthalEqualAreaRaw:Ay,geoAzimuthalEquidistant:IJ,geoAzimuthalEquidistantRaw:Ny,geoConicConformal:FJ,geoConicConformalRaw:t4,geoConicEqualArea:od,geoConicEqualAreaRaw:ZT,geoConicEquidistant:jJ,geoConicEquidistantRaw:n4,geoEqualEarth:HJ,geoEqualEarthRaw:Ry,geoEquirectangular:BJ,geoEquirectangularRaw:rl,geoGnomonic:qJ,geoGnomonicRaw:Dy,geoIdentity:UJ,geoProjection:pr,geoProjectionMutator:Py,geoMercator:zJ,geoMercatorRaw:nl,geoNaturalEarth1:VJ,geoNaturalEarth1Raw:Ly,geoOrthographic:YJ,geoOrthographicRaw:Iy,geoStereographic:GJ,geoStereographicRaw:zy,geoTransverseMercator:XJ,geoTransverseMercatorRaw:Fy,geoRotation:hT,geoStream:In,geoTransform:TJ,cluster:ree,hierarchy:By,pack:Eee,packSiblings:Oee,packEnclose:i4,partition:Aee,stratify:Lee,tree:Wee,treemap:Hee,treemapBinary:qee,treemapDice:ll,treemapSlice:hd,treemapSliceDice:Uee,treemapSquarify:y4,treemapResquarify:Vee,interpolate:ho,interpolateArray:Zee,interpolateBasis:b4,interpolateBasisClosed:x4,interpolateDate:M4,interpolateDiscrete:ete,interpolateHue:tte,interpolateNumber:Bn,interpolateNumberArray:Vy,interpolateObject:T4,interpolateRound:gd,interpolateString:k4,interpolateTransformCss:ite,interpolateTransformSvg:ote,interpolateZoom:lte,interpolateRgb:Uy,interpolateRgbBasis:Xee,interpolateRgbBasisClosed:Kee,interpolateHsl:cte,interpolateHslLong:fte,interpolateLab:hte,interpolateHcl:dte,interpolateHclLong:pte,interpolateCubehelix:gte,interpolateCubehelixLong:mte,piecewise:D4,quantize:yte,path:go,polygonArea:bte,polygonCentroid:xte,polygonHull:$te,polygonContains:Ste,polygonLength:Mte,quadtree:_h,randomUniform:Tte,randomInt:kte,randomNormal:Jy,randomLogNormal:Ote,randomBates:Cte,randomIrwinHall:I4,randomExponential:Pte,randomPareto:Ete,randomBernoulli:Ate,randomGeometric:z4,randomBinomial:B4,randomGamma:ev,randomBeta:F4,randomWeibull:Nte,randomCauchy:Rte,randomLogistic:Dte,randomPoisson:Lte,randomLcg:Fte,scaleBand:rv,scalePoint:Bte,scaleIdentity:V4,scaleLinear:U4,scaleLog:Z4,scaleSymlog:e6,scaleOrdinal:nv,scaleImplicit:tv,scalePow:lv,scaleSqrt:Qte,scaleRadial:r6,scaleQuantile:i6,scaleQuantize:o6,scaleThreshold:a6,scaleTime:Cre,scaleUtc:Pre,scaleSequential:Q6,scaleSequentialLog:J6,scaleSequentialPow:Ov,scaleSequentialSqrt:Ere,scaleSequentialSymlog:e8,scaleSequentialQuantile:t8,scaleDiverging:n8,scaleDivergingLog:r8,scaleDivergingPow:Cv,scaleDivergingSqrt:Are,scaleDivergingSymlog:i8,tickFormat:q4,schemeCategory10:Nre,schemeAccent:Rre,schemeDark2:Dre,schemePaired:Lre,schemePastel1:Ire,schemePastel2:zre,schemeSet1:Fre,schemeSet2:Bre,schemeSet3:jre,schemeTableau10:Wre,interpolateBrBG:uie,schemeBrBG:x8,interpolatePRGn:lie,schemePRGn:w8,interpolatePiYG:cie,schemePiYG:_8,interpolatePuOr:fie,schemePuOr:$8,interpolateRdBu:hie,schemeRdBu:S8,interpolateRdGy:die,schemeRdGy:M8,interpolateRdYlBu:pie,schemeRdYlBu:T8,interpolateRdYlGn:gie,schemeRdYlGn:k8,interpolateSpectral:mie,schemeSpectral:O8,interpolateBuGn:yie,schemeBuGn:C8,interpolateBuPu:vie,schemeBuPu:P8,interpolateGnBu:bie,schemeGnBu:E8,interpolateOrRd:xie,schemeOrRd:A8,interpolatePuBuGn:wie,schemePuBuGn:N8,interpolatePuBu:_ie,schemePuBu:R8,interpolatePuRd:$ie,schemePuRd:D8,interpolateRdPu:Sie,schemeRdPu:L8,interpolateYlGnBu:Mie,schemeYlGnBu:I8,interpolateYlGn:Tie,schemeYlGn:z8,interpolateYlOrBr:kie,schemeYlOrBr:F8,interpolateYlOrRd:Oie,schemeYlOrRd:B8,interpolateBlues:Cie,schemeBlues:j8,interpolateGreens:Pie,schemeGreens:W8,interpolateGreys:Eie,schemeGreys:H8,interpolatePurples:Aie,schemePurples:q8,interpolateReds:Nie,schemeReds:U8,interpolateOranges:Rie,schemeOranges:V8,interpolateCividis:Die,interpolateCubehelixDefault:Lie,interpolateRainbow:Fie,interpolateWarm:Iie,interpolateCool:zie,interpolateSinebow:Wie,interpolateTurbo:Hie,interpolateViridis:qie,interpolateMagma:Uie,interpolateInferno:Vie,interpolatePlasma:Yie,create:bY,creator:jf,local:B3,matcher:Lm,namespace:bu,namespaces:Nm,pointer:an,pointers:wY,select:bt,selectAll:_Y,selection:Qi,selector:Wf,selectorAll:Dm,style:Zi,window:Im,arc:noe,area:K8,line:jv,pie:aoe,areaRadial:ek,radialArea:ek,lineRadial:J8,radialLine:J8,pointRadial:_l,linkHorizontal:hoe,linkVertical:doe,linkRadial:poe,symbol:woe,symbols:xoe,symbolCircle:qv,symbolCross:tk,symbolDiamond:rk,symbolSquare:ak,symbolStar:ok,symbolTriangle:sk,symbolWye:uk,curveBasisClosed:$oe,curveBasisOpen:Soe,curveBasis:_oe,curveBumpX:Moe,curveBumpY:Toe,curveBundle:koe,curveCardinalClosed:Coe,curveCardinalOpen:Poe,curveCardinal:Ooe,curveCatmullRomClosed:Aoe,curveCatmullRomOpen:Noe,curveCatmullRom:Eoe,curveLinearClosed:Roe,curveLinear:Ad,curveMonotoneX:Doe,curveMonotoneY:Loe,curveNatural:Ioe,curveStep:zoe,curveStepAfter:Boe,curveStepBefore:Foe,stack:Hoe,stackOffsetExpand:qoe,stackOffsetDiverging:Uoe,stackOffsetNone:Ja,stackOffsetSilhouette:Voe,stackOffsetWiggle:Yoe,stackOrderAppearance:Sk,stackOrderAscending:Mk,stackOrderDescending:Xoe,stackOrderInsideOut:Koe,stackOrderNone:es,stackOrderReverse:Zoe,timeInterval:Ke,timeMillisecond:hv,timeMilliseconds:s6,utcMillisecond:hv,utcMilliseconds:s6,timeSecond:hi,timeSeconds:c6,utcSecond:hi,utcSeconds:c6,timeMinute:gv,timeMinutes:ene,timeHour:mv,timeHours:tne,timeDay:fl,timeDays:nne,timeWeek:Ua,timeWeeks:v6,timeSunday:Ua,timeSundays:v6,timeMonday:hl,timeMondays:rne,timeTuesday:p6,timeTuesdays:ine,timeWednesday:g6,timeWednesdays:one,timeThursday:vo,timeThursdays:ane,timeFriday:m6,timeFridays:sne,timeSaturday:y6,timeSaturdays:une,timeMonth:yv,timeMonths:lne,timeYear:di,timeYears:cne,utcMinute:bv,utcMinutes:fne,utcHour:xv,utcHours:hne,utcDay:dl,utcDays:dne,utcWeek:Va,utcWeeks:k6,utcSunday:Va,utcSundays:k6,utcMonday:pl,utcMondays:pne,utcTuesday:$6,utcTuesdays:gne,utcWednesday:S6,utcWednesdays:mne,utcThursday:xo,utcThursdays:yne,utcFriday:M6,utcFridays:vne,utcSaturday:T6,utcSaturdays:bne,utcMonth:wv,utcMonths:xne,utcYear:pi,utcYears:wne,utcTicks:P6,utcTickInterval:E6,timeTicks:A6,timeTickInterval:N6,timeFormatDefaultLocale:K6,get timeFormat(){return Mv},get timeParse(){return X6},get utcFormat(){return xd},get utcParse(){return Tv},timeFormatLocale:R6,isoFormat:$re,isoParse:Tre,now:Ou,timer:Qf,timerFlush:tS,timeout:Jm,interval:QY,transition:_S,active:JX,interrupt:eo,zoom:uae,zoomTransform:Ok,zoomIdentity:Fd},Symbol.toStringTag,{value:"Module"})),ts=et(lae),Pk={},Bd={},cae=typeof global=="object"&&global&&global.Object===Object&&global,Ek=cae,fae=typeof self=="object"&&self&&self.Object===Object&&self,hae=Ek||fae||Function("return this")(),bi=hae,dae=bi.Symbol,jd=dae,Ak=Object.prototype,pae=Ak.hasOwnProperty,gae=Ak.toString,Sl=jd?jd.toStringTag:void 0;function mae(e){var t=pae.call(e,Sl),n=e[Sl];try{e[Sl]=void 0;var r=!0}catch{}var i=gae.call(e);return r&&(t?e[Sl]=n:delete e[Sl]),i}var yae=Object.prototype,vae=yae.toString;function bae(e){return vae.call(e)}var xae="[object Null]",wae="[object Undefined]",Nk=jd?jd.toStringTag:void 0;function So(e){return e==null?e===void 0?wae:xae:Nk&&Nk in Object(e)?mae(e):bae(e)}function Ml(e){return e!=null&&typeof e=="object"}var _ae="[object Number]";function $ae(e){return typeof e=="number"||Ml(e)&&So(e)==_ae}var Sae=Object.freeze(Object.defineProperty({__proto__:null,default:$ae},Symbol.toStringTag,{value:"Module"})),Mae=et(Sae);function Tae(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==void 0&&(n=n===void 0?o:n+o)}return n}function Rk(e){return e}function kae(e){return e&&e.length?Tae(e,Rk):0}var Oae=Object.freeze(Object.defineProperty({__proto__:null,default:kae},Symbol.toStringTag,{value:"Module"})),Cae=et(Oae),Pae=Object.prototype;function Dk(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pae;return e===n}function Eae(e,t){return function(n){return e(t(n))}}var Aae=Eae(Object.keys,Object),Nae=Aae,Rae=Object.prototype,Dae=Rae.hasOwnProperty;function Lae(e){if(!Dk(e))return Nae(e);var t=[];for(var n in Object(e))Dae.call(e,n)&&n!="constructor"&&t.push(n);return t}function Wd(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Iae="[object AsyncFunction]",zae="[object Function]",Fae="[object GeneratorFunction]",Bae="[object Proxy]";function Lk(e){if(!Wd(e))return!1;var t=So(e);return t==zae||t==Fae||t==Iae||t==Bae}var jae=bi["__core-js_shared__"],Jv=jae,Ik=function(){var e=/[^.]+$/.exec(Jv&&Jv.keys&&Jv.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Wae(e){return!!Ik&&Ik in e}var Hae=Function.prototype,qae=Hae.toString;function Mo(e){if(e!=null){try{return qae.call(e)}catch{}try{return e+""}catch{}}return""}var Uae=/[\\^$.*+?()[\]{}|]/g,Vae=/^\[object .+?Constructor\]$/,Yae=Function.prototype,Gae=Object.prototype,Xae=Yae.toString,Kae=Gae.hasOwnProperty,Zae=RegExp("^"+Xae.call(Kae).replace(Uae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qae(e){if(!Wd(e)||Wae(e))return!1;var t=Lk(e)?Zae:Vae;return t.test(Mo(e))}function Jae(e,t){return e==null?void 0:e[t]}function Tl(e,t){var n=Jae(e,t);return Qae(n)?n:void 0}var ese=Tl(bi,"DataView"),eb=ese,tse=Tl(bi,"Map"),tb=tse,nse=Tl(bi,"Promise"),nb=nse,rse=Tl(bi,"Set"),rb=rse,ise=Tl(bi,"WeakMap"),ib=ise,zk="[object Map]",ose="[object Object]",Fk="[object Promise]",Bk="[object Set]",jk="[object WeakMap]",Wk="[object DataView]",ase=Mo(eb),sse=Mo(tb),use=Mo(nb),lse=Mo(rb),cse=Mo(ib),To=So;(eb&&To(new eb(new ArrayBuffer(1)))!=Wk||tb&&To(new tb)!=zk||nb&&To(nb.resolve())!=Fk||rb&&To(new rb)!=Bk||ib&&To(new ib)!=jk)&&(To=function(e){var t=So(e),n=t==ose?e.constructor:void 0,r=n?Mo(n):"";if(r)switch(r){case ase:return Wk;case sse:return zk;case use:return Fk;case lse:return Bk;case cse:return jk}return t});var fse=To,hse="[object Arguments]";function Hk(e){return Ml(e)&&So(e)==hse}var qk=Object.prototype,dse=qk.hasOwnProperty,pse=qk.propertyIsEnumerable,gse=Hk(function(){return arguments}())?Hk:function(e){return Ml(e)&&dse.call(e,"callee")&&!pse.call(e,"callee")},mse=gse,Uk=Array.isArray,yse=Object.freeze(Object.defineProperty({__proto__:null,default:Uk},Symbol.toStringTag,{value:"Module"})),vse=9007199254740991;function Vk(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=vse}function bse(e){return e!=null&&Vk(e.length)&&!Lk(e)}function xse(){return!1}var Yk=typeof Re=="object"&&Re&&!Re.nodeType&&Re,Gk=Yk&&typeof module=="object"&&module&&!module.nodeType&&module,wse=Gk&&Gk.exports===Yk,Xk=wse?bi.Buffer:void 0,_se=Xk?Xk.isBuffer:void 0,$se=_se||xse,Sse=$se,Mse="[object Arguments]",Tse="[object Array]",kse="[object Boolean]",Ose="[object Date]",Cse="[object Error]",Pse="[object Function]",Ese="[object Map]",Ase="[object Number]",Nse="[object Object]",Rse="[object RegExp]",Dse="[object Set]",Lse="[object String]",Ise="[object WeakMap]",zse="[object ArrayBuffer]",Fse="[object DataView]",Bse="[object Float32Array]",jse="[object Float64Array]",Wse="[object Int8Array]",Hse="[object Int16Array]",qse="[object Int32Array]",Use="[object Uint8Array]",Vse="[object Uint8ClampedArray]",Yse="[object Uint16Array]",Gse="[object Uint32Array]",Ee={};Ee[Bse]=Ee[jse]=Ee[Wse]=Ee[Hse]=Ee[qse]=Ee[Use]=Ee[Vse]=Ee[Yse]=Ee[Gse]=!0,Ee[Mse]=Ee[Tse]=Ee[zse]=Ee[kse]=Ee[Fse]=Ee[Ose]=Ee[Cse]=Ee[Pse]=Ee[Ese]=Ee[Ase]=Ee[Nse]=Ee[Rse]=Ee[Dse]=Ee[Lse]=Ee[Ise]=!1;function Xse(e){return Ml(e)&&Vk(e.length)&&!!Ee[So(e)]}function Kse(e){return function(t){return e(t)}}var Kk=typeof Re=="object"&&Re&&!Re.nodeType&&Re,kl=Kk&&typeof module=="object"&&module&&!module.nodeType&&module,Zse=kl&&kl.exports===Kk,ob=Zse&&Ek.process,Qse=function(){try{var e=kl&&kl.require&&kl.require("util").types;return e||ob&&ob.binding&&ob.binding("util")}catch{}}(),Zk=Qse,Qk=Zk&&Zk.isTypedArray,Jse=Qk?Kse(Qk):Xse,eue=Jse,tue="[object Map]",nue="[object Set]",rue=Object.prototype,iue=rue.hasOwnProperty;function oue(e){if(e==null)return!0;if(bse(e)&&(Uk(e)||typeof e=="string"||typeof e.splice=="function"||Sse(e)||eue(e)||mse(e)))return!e.length;var t=fse(e);if(t==tue||t==nue)return!e.size;if(Dk(e))return!Lae(e).length;for(var n in e)if(iue.call(e,n))return!1;return!0}var aue=Object.freeze(Object.defineProperty({__proto__:null,default:oue},Symbol.toStringTag,{value:"Module"})),Jk=et(aue),eO=et(yse);function sue(e){return e&&e.length?e[0]:void 0}var uue=Object.freeze(Object.defineProperty({__proto__:null,default:sue},Symbol.toStringTag,{value:"Module"})),lue=et(uue);function cue(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var fue=Object.freeze(Object.defineProperty({__proto__:null,default:cue},Symbol.toStringTag,{value:"Module"})),hue=et(fue);function tO(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var due=/\s/;function pue(e){for(var t=e.length;t--&&due.test(e.charAt(t)););return t}var gue=/^\s+/;function mue(e){return e&&e.slice(0,pue(e)+1).replace(gue,"")}var yue="[object Symbol]";function vue(e){return typeof e=="symbol"||Ml(e)&&So(e)==yue}var nO=0/0,bue=/^[-+]0x[0-9a-f]+$/i,xue=/^0b[01]+$/i,wue=/^0o[0-7]+$/i,_ue=parseInt;function $ue(e){if(typeof e=="number")return e;if(vue(e))return nO;if(Wd(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Wd(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=mue(e);var n=xue.test(e);return n||wue.test(e)?_ue(e.slice(2),n?2:8):bue.test(e)?nO:+e}var rO=1/0,Sue=17976931348623157e292;function Mue(e){if(!e)return e===0?e:0;if(e=$ue(e),e===rO||e===-rO){var t=e<0?-1:1;return t*Sue}return e===e?e:0}function ab(e){var t=Mue(e),n=t%1;return t===t?n?t-n:t:0}function Tue(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===void 0?1:ab(t),tO(e,t<0?0:t,r)):[]}var kue=Object.freeze(Object.defineProperty({__proto__:null,default:Tue},Symbol.toStringTag,{value:"Module"})),Oue=et(kue);function Cue(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Pue(e){return typeof e=="function"?e:Rk}var Eue=9007199254740991,sb=4294967295,Aue=Math.min;function Nue(e,t){if(e=ab(e),e<1||e>Eue)return[];var n=sb,r=Aue(e,sb);t=Pue(t),e-=sb;for(var i=Cue(r,t);++n<e;)t(n);return i}var Rue=Object.freeze(Object.defineProperty({__proto__:null,default:Nue},Symbol.toStringTag,{value:"Module"})),Due=et(Rue);function Lue(e,t,n){return e&&e.length?(t=n||t===void 0?1:ab(t),tO(e,0,t<0?0:t)):[]}var Iue=Object.freeze(Object.defineProperty({__proto__:null,default:Lue},Symbol.toStringTag,{value:"Module"})),zue=et(Iue);(function(e){var t=ga.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.sumArrayTill=h,e.calculateSegmentStops=d,e.calculateNeedleHeight=p,e.calculateSegmentLabelCount=m,e.calculateScale=g,e.calculateTicks=y,e.formatCurrentValueText=v,e.deg2rad=x,e.centerTranslation=b,e.getRadius=_;var n=t(Mae),r=t(Cae),i=t(Jk),o=t(eO),a=t(lue),s=t(hue),u=t(Oue),l=t(Due),c=t(zue),f=ts;function h(w,$){return(0,r.default)((0,c.default)(w,$))}function d(w){var $=w.tickData,T=w.customSegmentStops,k=w.min,S=w.max;if(!(0,o.default)(T)||(0,i.default)(T))return $;if((0,a.default)(T)!==k)throw new Error("First value should be equivalent to min value given. Current min value - ".concat(k));if((0,s.default)(T)!==S)throw new Error("Last value should be equivalent to max value given. Current min value - ".concat(S));var M=T.map(function(A,E){return E===0?void 0:(A-T[E-1])/(S-k)});return(0,u.default)(M)}function p(w){var $=w.heightRatio,T=w.radius;if(0>$||1<$)throw new Error("Invalid needleHeightRatio given - ".concat($));return Math.round(T*$)}function m(w){var $=w.maxSegmentLabelCount,T=w.segmentCount,k=parseInt($,10),S=parseInt(T,10);return(0,n.default)(k)&&0<=k&&k<=S?k:S}function g(w){var $=w.min,T=w.max;return w.segments,(0,f.scaleLinear)().range([0,1]).domain([$,T])}function y(w,$){var T=$.min,k=$.max,S=$.segments,M=[];M=w.ticks(S);var A=((0,s.default)(M)!==k||S<M.length)&&1<M.length;return A&&(M=[T],(0,l.default)(S,function(E){M.push(T+(E+1)*((k-T)/S))})),M.length===1&&(M=[T,k]),M}function v(w,$){var T=$.labelFormat(w),k=$.currentValuePlaceholderStyle;return $.currentValueText.replace(k,T)}function x(w){return w*Math.PI/180}function b(w,$,T){return"translate(".concat(w+$,", ").concat(w+T,")")}function _(w){return w.width/2}})(Bd);var Hd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Transition=e.CustomSegmentLabelPosition=void 0;var t={Inside:"INSIDE",Outside:"OUTSIDE"};e.CustomSegmentLabelPosition=t;var n={easeLinear:"easeLinear",easeQuadIn:"easeQuadIn",easeQuadOut:"easeQuadOut",easeQuadInOut:"easeQuadInOut",easeCubicIn:"easeCubicIn",easeCubicOut:"easeCubicOut",easeCubicInOut:"easeCubicInOut",easePolyIn:"easePolyIn",easePolyOut:"easePolyOut",easePolyInOut:"easePolyInOut",easeSinIn:"easeSinIn",easeSinOut:"easeSinOut",easeSinInOut:"easeSinInOut",easeExpIn:"easeExpIn",easeExpOut:"easeExpOut",easeExpInOut:"easeExpInOut",easeCircleIn:"easeCircleIn",easeCircleOut:"easeCircleOut",easeCircleInOut:"easeCircleInOut",easeBounceIn:"easeBounceIn",easeBounceOut:"easeBounceOut",easeBounceInOut:"easeBounceInOut",easeBackIn:"easeBackIn",easeBackOut:"easeBackOut",easeBackInOut:"easeBackInOut",easeElasticIn:"easeElasticIn",easeElasticOut:"easeElasticOut",easeElasticInOut:"easeElasticInOut",easeElastic:"easeElastic"};e.Transition=n})(Hd),function(e){var t=ga.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.updateConfig=e.getConfig=e.DEFAULT_PROPS=e.defaultSegmentValueFormatter=void 0;var n=t(wm.exports),r=ts,i=Bd,o=Hd;function a(d,p){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(d);p&&(g=g.filter(function(y){return Object.getOwnPropertyDescriptor(d,y).enumerable})),m.push.apply(m,g)}return m}function s(d){for(var p,m=1;m<arguments.length;m++)p=arguments[m]==null?{}:arguments[m],m%2?a(Object(p),!0).forEach(function(g){(0,n.default)(d,g,p[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(p)):a(Object(p)).forEach(function(g){Object.defineProperty(d,g,Object.getOwnPropertyDescriptor(p,g))});return d}var u=function(d){return d};e.defaultSegmentValueFormatter=u;var l={value:0,minValue:0,maxValue:1e3,forceRender:!1,width:300,height:300,paddingHorizontal:0,paddingVertical:0,fluidWidth:!1,dimensionUnit:"px",segments:5,maxSegmentLabels:-1,customSegmentStops:[],customSegmentLabels:[],needleColor:"steelblue",startColor:"#FF471A",endColor:"#33CC33",segmentColors:[],needleTransition:o.Transition.easeQuadInOut,needleTransitionDuration:500,needleHeightRatio:.9,ringWidth:60,textColor:"#666",valueFormat:"",segmentValueFormatter:u,currentValueText:"${value}",currentValuePlaceholderStyle:"${value}",labelFontSize:"14px",valueTextFontSize:"16px",valueTextFontWeight:"bold",svgAriaLabel:"React d3 speedometer"};e.DEFAULT_PROPS=l;var c={ringInset:20,pointerWidth:10,pointerTailLength:5,minAngle:-90,maxAngle:90,labelInset:10},f=function(d){var p=d.PROPS,m=d.parentWidth,g=d.parentHeight,y={width:p.fluidWidth?m:p.width,height:p.fluidWidth?g:p.height,paddingHorizontal:p.paddingHorizontal,paddingVertical:p.paddingVertical,dimensionUnit:p.dimensionUnit,ringWidth:p.ringWidth,minValue:p.minValue,maxValue:p.maxValue,needleColor:p.needleColor,majorTicks:p.segments,customSegmentStops:p.customSegmentStops,customSegmentLabels:p.customSegmentLabels,maxSegmentLabels:(0,i.calculateSegmentLabelCount)({maxSegmentLabelCount:p.maxSegmentLabels,segmentCount:p.segments}),segmentColors:p.segmentColors,arcColorFn:0<p.segmentColors.length?(0,r.scaleQuantize)(p.segmentColors):(0,r.interpolateHsl)((0,r.rgb)(p.startColor),(0,r.rgb)(p.endColor)),needleTransition:p.needleTransition,needleTransitionDuration:p.needleTransitionDuration,needleHeightRatio:p.needleHeightRatio,textColor:p.textColor,labelFormat:(0,r.format)(p.valueFormat),segmentValueFormatter:p.segmentValueFormatter,currentValueText:p.currentValueText,currentValuePlaceholderStyle:p.currentValuePlaceholderStyle,labelFontSize:p.labelFontSize,valueTextFontSize:p.valueTextFontSize,valueTextFontWeight:p.valueTextFontWeight,svgAriaLabel:p.svgAriaLabel};return Object.assign({},c,y)};e.getConfig=f;var h=function(d,p){return s(s({},d),p)};e.updateConfig=h}(Pk);var iO={},oO={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getNeedleTransition=r;var t=ts,n=Hd;function r(i){return i===n.Transition.easeLinear?t.easeLinear:i===n.Transition.easeQuadIn?t.easeQuadIn:i===n.Transition.easeQuadOut?t.easeQuadOut:i===n.Transition.easeQuadInOut?t.easeQuadInOut:i===n.Transition.easeCubicIn?t.easeCubicIn:i===n.Transition.easeCubicOut?t.easeCubicOut:i===n.Transition.easeCubicInOut?t.easeCubicInOut:i===n.Transition.easePolyIn?t.easePolyIn:i===n.Transition.easePolyOut?t.easePolyOut:i===n.Transition.easePolyInOut?t.easePolyInOut:i===n.Transition.easeSinIn?t.easeSinIn:i===n.Transition.easeSinOut?t.easeSinOut:i===n.Transition.easeSinInOut?t.easeSinInOut:i===n.Transition.easeExpIn?t.easeExpIn:i===n.Transition.easeExpOut?t.easeExpOut:i===n.Transition.easeExpInOut?t.easeExpInOut:i===n.Transition.easeCircleIn?t.easeCircleIn:i===n.Transition.easeCircleOut?t.easeCircleOut:i===n.Transition.easeCircleInOut?t.easeCircleInOut:i===n.Transition.easeBounceIn?t.easeBounceIn:i===n.Transition.easeBounceOut?t.easeBounceOut:i===n.Transition.easeBounceInOut?t.easeBounceInOut:i===n.Transition.easeBackIn?t.easeBackIn:i===n.Transition.easeBackOut?t.easeBackOut:i===n.Transition.easeBackInOut?t.easeBackInOut:i===n.Transition.easeElasticIn?t.easeElasticIn:i===n.Transition.easeElasticOut?t.easeElasticOut:i===n.Transition.easeElasticInOut?t.easeElasticInOut:i===n.Transition.easeElastic?t.easeElastic:t.easeQuadInOut}})(oO);var aO={},sO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Fue(e,t){return!!(e===t||sO(e)&&sO(t))}function Bue(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Fue(e[n],t[n]))return!1;return!0}function jue(e,t){t===void 0&&(t=Bue);var n,r=[],i,o=!1;function a(){for(var s=[],u=0;u<arguments.length;u++)s[u]=arguments[u];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}return a}var Wue=Object.freeze(Object.defineProperty({__proto__:null,default:jue},Symbol.toStringTag,{value:"Module"})),Hue=et(Wue);(function(e){var t=ga.exports;Object.defineProperty(e,"__esModule",{value:!0}),e.configureArc=e.configureTickData=e.configureTicks=e.configureScale=void 0;var n=t(Hue),r=ts,i=Bd,o=(0,n.default)(l);e.configureScale=o;var a=(0,n.default)(c);e.configureTicks=a;var s=(0,n.default)(f);e.configureTickData=s;var u=(0,n.default)(h);e.configureArc=u;function l(d){return(0,i.calculateScale)({min:d.minValue,max:d.maxValue,segments:d.maxSegmentLabels})}function c(d){var p=o(d),m=(0,i.calculateTicks)(p,{min:d.minValue,max:d.maxValue,segments:d.maxSegmentLabels});return 0<d.customSegmentStops.length&&d.maxSegmentLabels!==0&&(m=d.customSegmentStops),m}function f(d){var p=(0,r.range)(d.majorTicks).map(function(){return 1/d.majorTicks}),m=(0,i.calculateSegmentStops)({tickData:p,customSegmentStops:d.customSegmentStops,min:d.minValue,max:d.maxValue});return m}function h(d){var p=s(d),m=d.maxAngle-d.minAngle,g=d.width/2,y=(0,r.arc)().innerRadius(g-d.ringWidth-d.ringInset).outerRadius(g-d.ringInset).startAngle(function(v,x){var b=(0,i.sumArrayTill)(p,x);return(0,i.deg2rad)(d.minAngle+b*m)}).endAngle(function(v,x){var b=(0,i.sumArrayTill)(p,x+1);return(0,i.deg2rad)(d.minAngle+b*m)});return y}})(aO),function(e){var t=ga.exports;Object.defineProperty(e,"__esModule",{value:!0}),e._renderLabels=h,e.render=e.update=void 0;var n=ts,r=t(Jk),i=t(eO),o=Bd,a=oO,s=aO,u=function(g){var y=g.d3_refs,v=g.newValue,x=g.config,b=(0,s.configureScale)(x),_=b(v),w=x.maxAngle-x.minAngle,$=x.minAngle+_*w;y.pointer.transition().duration(x.needleTransitionDuration).ease((0,a.getNeedleTransition)(x.needleTransition)).attr("transform","rotate(".concat($,")")),y.current_value_text.text((0,o.formatCurrentValueText)(v,x))};e.update=u;var l=function(g){var y=g.container,v=g.config,x=(0,o.getRadius)(v),b=(0,o.centerTranslation)(x,v.paddingHorizontal,v.paddingVertical),_=c({container:y,config:v});return f({config:v,svg:_,centerTx:b}),h({config:v,svg:_,centerTx:b,r:x}),{current_value_text:p({config:v,svg:_}),pointer:m({config:v,svg:_,r:x,centerTx:b})}};e.render=l;function c(g){var y=g.container,v=g.config,x=v.width+2*v.paddingHorizontal,b=v.height+2*v.paddingVertical;return(0,n.select)(y).append("svg:svg").attr("class","speedometer").attr("width","".concat(x).concat(v.dimensionUnit)).attr("height","".concat(b).concat(v.dimensionUnit)).attr("role","img").attr("focusable","false").attr("aria-label",v.svgAriaLabel).style("width","".concat(x).concat(v.dimensionUnit)).style("height","".concat(b).concat(v.dimensionUnit))}function f(g){var y=g.config,v=g.svg,x=g.centerTx,b=(0,s.configureTickData)(y),_=(0,s.configureArc)(y),w=v.append("g").attr("class","arc").attr("transform",x);w.selectAll("path").data(b).enter().append("path").attr("class","speedo-segment").attr("fill",function($,T){return!(0,r.default)(y.segmentColors)&&y.segmentColors[T]?y.segmentColors[T]:y.arcColorFn($*T)}).attr("d",_)}function h(g){var y=g.config,v=g.svg,x=g.centerTx,b=g.r,_=(0,s.configureTicks)(y),w=(0,s.configureTickData)(y),$=(0,s.configureScale)(y),T=y.maxAngle-y.minAngle,k=y.customSegmentLabels,S=(0,i.default)(k)&&!(0,r.default)(k),M=S&&k.length===w.length;if(S&&!M)throw new Error("Custom Segment Labels should be an array with length of ".concat(w.length));if(S&&M)return void d({config:y,svg:v,centerTx:x,r:b,ticks:_,tickData:w,scale:$,range:T});var A=v.append("g").attr("class","label").attr("transform",x);A.selectAll("text").data(_).enter().append("text").attr("transform",function(E,O){var P=y.customSegmentStops.length===0?$(E):(0,o.sumArrayTill)(w,O),C=y.minAngle+P*T;return"rotate(".concat(C,") translate(0, ").concat(y.labelInset-b,")")}).text(function(E){return y.segmentValueFormatter(y.labelFormat(E))}).attr("class","segment-value").style("text-anchor","middle").style("font-size",y.labelFontSize).style("font-weight","bold").style("fill",y.textColor)}function d(g){function y(C,N){var D=S.length===0?T(C):(0,o.sumArrayTill)($,N),I=v.minAngle+D*k;return I}var v=g.config,x=g.svg,b=g.centerTx,_=g.r,w=g.ticks,$=g.tickData,T=g.scale,k=g.range,S=v.customSegmentStops,M=v.customSegmentLabels,A=M.map(function(C,N){var D=N,I=N+1,B=w[D],U=y(B,D),Y=w[I],J=y(Y,I);return(J+U)/2}),E=_-v.ringWidth-v.ringInset,O=_-v.ringInset,P=x.append("g").attr("class","label").attr("transform",b);P.selectAll("text").data(M).enter().append("text").attr("transform",function(C,N){var D=A[N],I="rotate(".concat(D,") translate(0, ").concat(v.labelInset-_,")"),B="rotate(".concat(D,") translate(0, ").concat(v.labelInset/2-(O-(O-E)/2),")");return C.position==="OUTSIDE"?I:B}).text(function(C){return C.text||""}).attr("class","segment-value").style("text-anchor","middle").style("font-size",function(C){return C.fontSize||v.labelFontSize}).style("font-weight","bold").style("fill",function(C){return C.color||v.textColor})}function p(g){var y=g.config,v=g.svg,x=(y.width+2*y.paddingHorizontal)/2,b=(y.width+4*y.paddingVertical)/2;return v.append("g").attr("transform","translate(".concat(x,", ").concat(b,")")).append("text").attr("class","current-value").attr("text-anchor","middle").attr("y",23).text(y.currentValue).style("font-size",y.valueTextFontSize).style("font-weight",y.valueTextFontWeight).style("fill",y.textColor)}function m(g){var y=g.config,v=g.svg,x=g.r,b=g.centerTx,_=(0,o.calculateNeedleHeight)({heightRatio:y.needleHeightRatio,radius:x}),w=[[y.pointerWidth/2,0],[0,-_],[-(y.pointerWidth/2),0],[0,y.pointerTailLength],[y.pointerWidth/2,0]],$=(0,n.line)().curve(n.curveMonotoneX),T=v.append("g").data([w]).attr("class","pointer").attr("transform",b).style("fill",y.needleColor);return T.append("path").attr("d",$).attr("transform","rotate(".concat(y.minAngle,")"))}}(iO),function(e){var t=e3.exports,n=ga.exports;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"CustomSegmentLabelPosition",{enumerable:!0,get:function(){return m.CustomSegmentLabelPosition}}),Object.defineProperty(e,"Transition",{enumerable:!0,get:function(){return m.Transition}}),e.default=void 0;var r=n(t3.exports),i=n(n3.exports),o=n(xm.exports),a=n(i3.exports),s=n(a3.exports),u=n(s3.exports),l=n(wm.exports),c=t(Q.default),f=n(Eo.exports),h=ts,d=Pk,p=iO,m=Hd;function g(b){var _=y();return function(){var w,$=(0,u.default)(b);if(_){var T=(0,u.default)(this).constructor;w=Reflect.construct($,arguments,T)}else w=$.apply(this,arguments);return(0,s.default)(this,w)}}function y(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}var v=function(b){function _($){var T;return(0,r.default)(this,_),T=w.call(this,$),(0,l.default)((0,o.default)(T),"render",function(){return c.default.createElement("div",{ref:function(S){return T.gaugeDiv=S}})}),T.d3_refs={pointer:!1,current_value_text:!1},T}(0,a.default)(_,b);var w=g(_);return(0,i.default)(_,[{key:"componentDidMount",value:function(){this.renderGauge()}},{key:"componentDidUpdate",value:function(){this.props.forceRender?this.renderGauge():this.updateReadings()}},{key:"renderGauge",value:function(){this.config=(0,d.getConfig)({PROPS:this.props,parentWidth:this.gaugeDiv.parentNode.clientWidth,parentHeight:this.gaugeDiv.parentNode.clientHeight}),(0,h.select)(this.gaugeDiv).select("svg").remove(),this.d3_refs=(0,p.render)({container:this.gaugeDiv,config:this.config}),(0,p.update)({d3_refs:this.d3_refs,newValue:this.props.value,config:this.config})}},{key:"updateReadings",value:function(){this.config=(0,d.updateConfig)(this.config,{labelFormat:(0,h.format)(this.props.valueFormat||""),segmentValueFormatter:this.props.segmentValueFormatter||d.defaultSegmentValueFormatter,currentValueText:this.props.currentValueText||"${value}"}),(0,p.update)({d3_refs:this.d3_refs,newValue:this.props.value||0,config:this.config})}}]),_}(c.PureComponent);(0,l.default)(v,"displayName","ReactSpeedometer"),v.propTypes={value:f.default.number.isRequired,minValue:f.default.number.isRequired,maxValue:f.default.number.isRequired,forceRender:f.default.bool.isRequired,width:f.default.number.isRequired,height:f.default.number.isRequired,paddingHorizontal:f.default.number.isRequired,paddingVertical:f.default.number.isRequired,dimensionUnit:f.default.string.isRequired,fluidWidth:f.default.bool.isRequired,segments:f.default.number.isRequired,maxSegmentLabels:f.default.number,customSegmentStops:f.default.array,customSegmentLabels:f.default.arrayOf(f.default.shape({text:f.default.string,position:f.default.oneOf(["OUTSIDE","INSIDE"]),fontSize:f.default.string,color:f.default.string})),needleColor:f.default.string.isRequired,startColor:f.default.string.isRequired,endColor:f.default.string.isRequired,segmentColors:f.default.array.isRequired,needleTransition:f.default.string.isRequired,needleTransitionDuration:f.default.number.isRequired,needleHeightRatio:f.default.number.isRequired,ringWidth:f.default.number.isRequired,textColor:f.default.string.isRequired,valueFormat:f.default.string.isRequired,segmentValueFormatter:f.default.func,currentValueText:f.default.string.isRequired,currentValuePlaceholderStyle:f.default.string.isRequired,labelFontSize:f.default.string.isRequired,valueTextFontSize:f.default.string.isRequired,valueTextFontWeight:f.default.string.isRequired,svgAriaLabel:f.default.string},v.defaultProps=d.DEFAULT_PROPS;var x=v;e.default=x}(J5);var que=dO(J5);const Uue=({value:e,theme:t})=>{var n,r,i,o,a,s,u,l,c,f,h,d,p,m,g,y,v,x,b,_,w,$,T;return oe("div",{style:{...(n=e==null?void 0:e.style)==null?void 0:n.containerStyle,background:t.palette.secondary.main},children:[((r=e==null?void 0:e.main)==null?void 0:r.header)&&z("div",{style:{fontWeight:700,textAlign:"left",fontFamily:"inherit",fontSize:"18px",color:t.palette.text.primary||"#121926",...(i=e==null?void 0:e.style)==null?void 0:i.headerStyle},children:e.main.header}),z("div",{style:{width:"100%",minWidth:500,display:"flex",justifyContent:"center",overflow:"auto"},children:z(que,{forceRender:!0,segmentColors:(o=e==null?void 0:e.style)==null?void 0:o.segmentColors,maxValue:((s=(a=e==null?void 0:e.main)==null?void 0:a.data)==null?void 0:s.maxValue)||500,width:((u=e==null?void 0:e.style)==null?void 0:u.width)||450,needleHeightRatio:((l=e==null?void 0:e.style)==null?void 0:l.needleHeightRatio)||.7,currentValueText:(c=e==null?void 0:e.main)==null?void 0:c.currentValueText,customSegmentLabels:(f=e==null?void 0:e.main)==null?void 0:f.customSegmentLabel,ringWidth:((h=e==null?void 0:e.style)==null?void 0:h.ringWidth)||37,needleTransitionDuration:((d=e==null?void 0:e.style)==null?void 0:d.needleTransitionDuration)||5333,height:(p=e==null?void 0:e.style)==null?void 0:p.height,needleTransition:((m=e==null?void 0:e.style)==null?void 0:m.needleTransition)||"easeElastic",value:((y=(g=e==null?void 0:e.main)==null?void 0:g.data)==null?void 0:y.value)||473,needleColor:((v=e==null?void 0:e.style)==null?void 0:v.needleColor)||"red",minValue:((b=(x=e==null?void 0:e.main)==null?void 0:x.data)==null?void 0:b.minValue)||0,startColor:((_=e==null?void 0:e.style)==null?void 0:_.startColor)||"red",segments:((w=e==null?void 0:e.main)==null?void 0:w.segments)||5,endColor:(($=e==null?void 0:e.style)==null?void 0:$.endColor)||"green",textColor:((T=e==null?void 0:e.style)==null?void 0:T.textColor)||"black"})})]})};function Vue({value:e}){var l,c;const{uischema:t}=e,n=(l=t==null?void 0:t.config)==null?void 0:l.main,r=(c=t==null?void 0:t.config)==null?void 0:c.style,i={position:"absolute",top:"0px",right:"0px",color:"#0DF3C2",backgroundColor:"#333333",padding:"4px 8px",borderRadius:"3px 12px 4px 14px",fontWeight:"bold",...r==null?void 0:r.rank},o={paddingBottom:"10px",textAlign:"center",maxHeight:100,fontSize:"15px",fontWeight:"400",color:"gray",overflow:"auto",wordWrap:"break-word","&::-webkit-scrollbar":{display:"none"},...r==null?void 0:r.description},a={color:"#3747A6",backgroundColor:"#eae9e9",marginTop:"8px",padding:"0px 12px",textAlign:"center",borderRadius:"8px",fontWeight:"700",...r==null?void 0:r.name},s={boxShadow:"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)",minWidth:280,maxWidth:280,minHeight:290,maxHeight:290,position:"relative",borderRadius:"12px",...r==null?void 0:r.card};return z(Jt,{children:z(ot,{sx:{backgroundColor:"#ebebff",display:"flex",justifyContent:"center",alignItems:"center",gap:"10px",padding:"5px"},children:z(oq,{sx:s,children:oe(fq,{children:[z($q,{component:"img",height:"140",image:"https://cdn.onlinewebfonts.com/svg/img_296570.png",style:{objectFit:"contain",paddingTop:"15px"},alt:"green iguana"}),oe(mq,{children:[z(pm,{sx:i,children:"# "+(n==null?void 0:n.rank)||"#"}),z(pm,{gutterBottom:!0,variant:"h6",component:"div",sx:a,children:n==null?void 0:n.name}),z(pm,{variant:"body2",color:"text.secondary",sx:o,children:n==null?void 0:n.description})]})]})})})})}const Yue=({value:e})=>{var x;let{uischema:t,data:n}=e;const r=(x=t==null?void 0:t.config)==null?void 0:x.style,[i,o]=H.useState(0),[a,s]=H.useState(0),[u,l]=H.useState(0),[c,f]=H.useState(0),[h,d]=H.useState();H.useEffect(()=>{if(new Date(n.startDate).getTime()<new Date().getTime()&&new Date(n.startDate).getTime()<new Date(n.endDate).getTime()){let b=new Date;console.log("Values in Timer>> ",n.startDate," >> ",n.endDate," >> ",b);const w=(new Date(n.endDate).getTime()-b.getTime())/(1e3*3600*24);return o(Math.floor(w)),d(setInterval(()=>{const $=new Date;f($.getHours()),s($.getMinutes()),l($.getSeconds())},1e3)),()=>{clearInterval(h)}}else o(0),f(0),s(0),l(0)},[n]);const p={display:"flex",flexDirection:"column",backgroundColor:"rgb(15,15,15)",justifyContent:"center",alignItems:"center",height:"40vh",gap:"10px",...r==null?void 0:r.container},m={backgroundColor:"rgb(51,51,51)",width:"22%",minWidth:"40px",height:"100px",padding:"10px",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",...r==null?void 0:r.digitContainer},g={color:"rgb(0,253,199)",fontSize:"19px",fontWeight:"700",padding:"6px",...r==null?void 0:r.digit},y={color:"white",fontSize:"19px",fontWeight:"700",...r==null?void 0:r.digitLabel},v={color:"white",...r.containerLabelColor};return z(Jt,{children:oe(ot,{component:"div",sx:p,children:[z(ot,{component:"h1",style:v,children:new Date().getTime()>=new Date(n==null?void 0:n.startDate).getTime()&&new Date().getTime()<=new Date(n.endDate).getTime()?"Contest ends in...":new Date().getTime()<new Date(n.startDate).getTime()?"Program Not Started Yet":"Program Over"}),oe(ot,{style:{display:"flex",gap:"15px",width:"80%",maxWidth:"650px",marginLeft:"auto",marginRight:"auto"},children:[oe(ot,{style:m,children:[oe(ot,{style:g,children:[i===0||i<10?0:Math.floor(i/10),i===0?0:i%10]}),z(ot,{style:y,children:"Days"})]}),oe(ot,{style:m,children:[oe(ot,{style:g,children:[c===0||24-c<10?0:Math.floor((24-c)/10),c===0?0:(24-c)%10]}),z(ot,{style:y,children:"Hours"})]}),oe(ot,{style:m,children:[oe(ot,{style:g,children:[a===0||60-a<10?0:Math.floor((60-a)/10),a===0?0:(60-a)%10]}),z(ot,{style:y,children:"Mins"})]}),oe(ot,{style:m,children:[oe(ot,{style:g,children:[u===0||60-u<10?0:Math.floor((60-u)/10),u===0?0:(60-u)%10]}),z(ot,{style:y,children:"Secs"})]})]})]})})};Re.BarGraph=$L,Re.Card=Vue,Re.HorizontalBarGraph=Hz,Re.LineGraph=jz,Re.PieGraph=ML,Re.ProgressBar=Rq,Re.SpeedoMeter=Uue,Re.Timer=Yue,Object.defineProperties(Re,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
104
104
  //# sourceMappingURL=impaktapps-design.umd.js.map