1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2434],{2434:function(e,t,n){n.r(t),n.d(t,{Pie:function(){return ey},PieCanvas:function(){return eC},ResponsivePie:function(){return em},ResponsivePieCanvas:function(){return eO},defaultProps:function(){return ec},useNormalizedData:function(){return ev},usePie:function(){return ep},usePieArcs:function(){return eg},usePieFromBox:function(){return eA},usePieLayerContext:function(){return eL}});var r=n(2265),i=n(38097),a=n(48474),o=n(57437),u=n(44774),l=Math.PI,s=2*l,d=s-1e-6;function c(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function f(){return new c}c.prototype=f.prototype={constructor:c,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,u=n-e,s=r-t,d=a-e,c=o-t,f=d*d+c*c;if(i<0)throw Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6){if(Math.abs(c*u-s*d)>1e-6&&i){var v=n-a,g=r-o,h=u*u+s*s,p=Math.sqrt(h),A=Math.sqrt(f),L=i*Math.tan((l-Math.acos((h+f-(v*v+g*g))/(2*p*A)))/2),x=L/A,b=L/p;Math.abs(x-1)>1e-6&&(this._+="L"+(e+x*d)+","+(t+x*c)),this._+="A"+i+","+i+",0,0,"+ +(c*v>d*g)+","+(this._x1=e+b*u)+","+(this._y1=t+b*s)}else this._+="L"+(this._x1=e)+","+(this._y1=t)}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),u=n*Math.sin(r),c=e+o,f=t+u,v=1^a,g=a?r-i:i-r;if(n<0)throw Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+f:(Math.abs(this._x1-c)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+c+","+f),n&&(g<0&&(g=g%s+s),g>d?this._+="A"+n+","+n+",0,1,"+v+","+(e-o)+","+(t-u)+"A"+n+","+n+",0,1,"+v+","+(this._x1=c)+","+(this._y1=f):g>1e-6&&(this._+="A"+n+","+n+",0,"+ +(g>=l)+","+v+","+(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._}};var v=n(29751),g=n(78601);function h(e){return e[0]}function p(e){return e[1]}var A=n(79166);function L(e){return e.innerRadius}function x(e){return e.outerRadius}function b(e){return e.startAngle}function R(e){return e.endAngle}function y(e){return e&&e.padAngle}function m(e,t,n,r,i,a,o){var u=e-n,l=t-r,s=(o?a:-a)/(0,A._b)(u*u+l*l),d=s*l,c=-s*u,f=e+d,v=t+c,g=n+d,h=r+c,p=(f+g)/2,L=(v+h)/2,x=g-f,b=h-v,R=x*x+b*b,y=i-a,m=f*h-g*v,k=(b<0?-1:1)*(0,A._b)((0,A.Fp)(0,y*y*R-m*m)),M=(m*b-x*k)/R,C=(-m*x-b*k)/R,O=(m*b+x*k)/R,I=(-m*x+b*k)/R,_=M-p,T=C-L,w=O-p,W=I-L;return _*_+T*T>w*w+W*W&&(M=O,C=I),{cx:M,cy:C,x01:-d,y01:-c,x11:M*(i/y-1),y11:C*(i/y-1)}}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}).apply(this,arguments)}var M={pointerEvents:"none"},C=function(e){var t=e.label,n=e.style,r=(0,i.Fg)();return(0,o.jsx)(a.q.g,{transform:n.transform,opacity:n.progress,style:M,children:(0,o.jsx)(a.q.text,{textAnchor:"middle",dominantBaseline:"central",style:k({},r.labels.text,{fill:n.textColor}),children:t})})},O=function(e){var t=e%(2*Math.PI);return t<0&&(t+=2*Math.PI),t},I=function(e,t){return e.filter(function(e){return Math.abs((0,i.vi)(e.arc.endAngle-e.arc.startAngle))>=t})},_={startAngle:{enter:function(e){return k({},e,{endAngle:e.startAngle})},update:function(e){return e},leave:function(e){return k({},e,{startAngle:e.endAngle})}},middleAngle:{enter:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return k({},e,{startAngle:t,endAngle:t})},update:function(e){return e},leave:function(e){var t=e.startAngle+(e.endAngle-e.startAngle)/2;return k({},e,{startAngle:t,endAngle:t})}},endAngle:{enter:function(e){return k({},e,{startAngle:e.endAngle})},update:function(e){return e},leave:function(e){return k({},e,{endAngle:e.startAngle})}},innerRadius:{enter:function(e){return k({},e,{outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return k({},e,{innerRadius:e.outerRadius})}},centerRadius:{enter:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return k({},e,{innerRadius:t,outerRadius:t})},update:function(e){return e},leave:function(e){var t=e.innerRadius+(e.outerRadius-e.innerRadius)/2;return k({},e,{innerRadius:t,outerRadius:t})}},outerRadius:{enter:function(e){return k({},e,{innerRadius:e.outerRadius})},update:function(e){return e},leave:function(e){return k({},e,{outerRadius:e.innerRadius})}},pushIn:{enter:function(e){return k({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})},update:function(e){return e},leave:function(e){return k({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})}},pushOut:{enter:function(e){return k({},e,{innerRadius:e.outerRadius,outerRadius:e.outerRadius+e.outerRadius-e.innerRadius})},update:function(e){return e},leave:function(e){return k({},e,{innerRadius:e.innerRadius-e.outerRadius+e.innerRadius,outerRadius:e.innerRadius})}}},T=function(e,t){return(0,r.useMemo)(function(){var n=_[e];return{enter:function(e){return k({progress:0},n.enter(e.arc),t?t.enter(e):{})},update:function(e){return k({progress:1},n.update(e.arc),t?t.update(e):{})},leave:function(e){return k({progress:0},n.leave(e.arc),t?t.leave(e):{})}}},[e,t])},w=function(e,t){var n=(0,i.Vp)(e)-Math.PI/2,r=e.innerRadius+(e.outerRadius-e.innerRadius)*t;return(0,i.re)(n,r)},W=function(e,t,n,r){void 0===t&&(t=.5),void 0===n&&(n="innerRadius");var o,u=(0,i.tf)(),l=u.animate,s=u.config,d=T(n,r);return{transition:(0,a.Yz)(e,{keys:function(e){return e.id},initial:d.update,from:d.enter,enter:d.update,update:d.update,leave:d.leave,config:s,immediate:!l}),interpolate:(o=t,function(e,t,n,r){return(0,a.to)([e,t,n,r],function(e,t,n,r){var i=w({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},o);return"translate("+i.x+","+i.y+")"})})}},S=function(e){var t=e.data,n=e.offset,i=void 0===n?.5:n,a=e.skipAngle,o=void 0===a?0:a,u=e.computeExtraProps,l=void 0===u?function(){return{}}:u;return(0,r.useMemo)(function(){return I(t,o).map(function(e){var t=w(e.arc,i);return k({},l(e),{x:t.x,y:t.y,data:e})})},[t,i,o,l])},j=function(e){var t=e.center,n=e.data,a=e.transitionMode,l=e.label,s=e.radiusOffset,d=e.skipAngle,c=e.textColor,f=e.component,v=(0,i.LR)(l),g=(0,i.Fg)(),h=(0,u.Bf)(c,g),p=W((0,r.useMemo)(function(){return n.filter(function(e){return Math.abs((0,i.vi)(e.arc.endAngle-e.arc.startAngle))>=d})},[n,d]),s,a),A=p.transition,L=p.interpolate,x=void 0===f?C:f;return(0,o.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:A(function(e,t){return(0,r.createElement)(x,{key:t.id,datum:t,label:v(t),style:k({},e,{transform:L(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textColor:h(t)})})})})},E=function(e,t,n){e.textAlign="center",e.textBaseline="middle",e.font=n.labels.text.fontSize+"px "+n.labels.text.fontFamily,t.forEach(function(t){e.fillStyle=t.textColor,e.fillText(""+t.label,t.x,t.y)})},P=function(e){var t=e.data,n=e.offset,a=e.skipAngle,o=e.label,l=e.textColor,s=(0,i.LR)(o),d=(0,i.Fg)(),c=(0,u.Bf)(l,d);
1return S({data:t,offset:n,skipAngle:a,computeExtraProps:(0,r.useCallback)(function(e){return{label:s(e),textColor:c(e)}},[s,c])})},B=function(e){var t=e.label,n=e.style,r=(0,i.Fg)();return(0,o.jsxs)(a.q.g,{opacity:n.opacity,children:[(0,o.jsx)(a.q.path,{fill:"none",stroke:n.linkColor,strokeWidth:n.thickness,d:n.path}),(0,o.jsx)(a.q.text,{transform:n.textPosition,textAnchor:n.textAnchor,dominantBaseline:"central",style:k({},r.labels.text,{fill:n.textColor}),children:t})]})},H=function(e){var t=O(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2);return t<Math.PI/2||t>1.5*Math.PI?"start":"end"},Z=function(e,t,n,r){var a,o,u=O(e.startAngle+(e.endAngle-e.startAngle)/2-Math.PI/2),l=(0,i.re)(u,e.outerRadius+t),s=(0,i.re)(u,e.outerRadius+t+n);return u<Math.PI/2||u>1.5*Math.PI?(a="after",o={x:s.x+r,y:s.y}):(a="before",o={x:s.x-r,y:s.y}),{side:a,points:[l,s,o]}},V=(function(){var e=h,t=p,n=(0,v.Z)(!0),r=null,i=g.Z,a=null;function o(o){var u,l,s,d=o.length,c=!1;for(null==r&&(a=i(s=f())),u=0;u<=d;++u)!(u<d&&n(l=o[u],u,o))===c&&((c=!c)?a.lineStart():a.lineEnd()),c&&a.point(+e(l,u,o),+t(l,u,o));if(s)return a=null,s+""||null}return o.x=function(t){return arguments.length?(e="function"==typeof t?t:(0,v.Z)(+t),o):e},o.y=function(e){return arguments.length?(t="function"==typeof e?e:(0,v.Z)(+e),o):t},o.defined=function(e){return arguments.length?(n="function"==typeof e?e:(0,v.Z)(!!e),o):n},o.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),o):i},o.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),o):r},o})().x(function(e){return e.x}).y(function(e){return e.y}),F=function(e,t,n,r,i,o,u){return(0,a.to)([e,t,n,r,i,o,u],function(e,t,n,r,i,a,o){return V(Z({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o).points)})},D=function(e,t,n,r){return(0,a.to)([e,t,n,r],function(e,t,n,r){return H({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r})})},G=function(e,t,n,r,i,o,u,l){return(0,a.to)([e,t,n,r,i,o,u,l],function(e,t,n,r,i,a,o,u){var l=Z({startAngle:e,endAngle:t,innerRadius:n,outerRadius:r},i,a,o),s=l.points,d=l.side,c=s[2];return"before"===d?c.x-=u:c.x+=u,"translate("+c.x+","+c.y+")"})},$=function(e){var t,n,o,l,s,d,c,f,v=e.data,g=e.offset,h=e.diagonalLength,p=e.straightLength,A=e.skipAngle,L=e.textOffset,x=e.linkColor,b=e.textColor,R=(0,i.tf)(),y=R.animate,m=R.config,k=(0,i.Fg)(),M=(0,u.Bf)(x,k),C=(0,u.Bf)(b,k),O=(t=void 0===A?0:A,(0,r.useMemo)(function(){return I(v,t)},[v,t])),_=(o=(n={offset:void 0===g?0:g,diagonalLength:h,straightLength:p,textOffset:L,getLinkColor:M,getTextColor:C}).offset,l=n.diagonalLength,s=n.straightLength,d=n.textOffset,c=n.getLinkColor,f=n.getTextColor,(0,r.useMemo)(function(){return{enter:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:o,diagonalLength:0,straightLength:0,textOffset:d,linkColor:c(e),textColor:f(e),opacity:0}},update:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:o,diagonalLength:l,straightLength:s,textOffset:d,linkColor:c(e),textColor:f(e),opacity:1}},leave:function(e){return{startAngle:e.arc.startAngle,endAngle:e.arc.endAngle,innerRadius:e.arc.innerRadius,outerRadius:e.arc.outerRadius,offset:o,diagonalLength:0,straightLength:0,textOffset:d,linkColor:c(e),textColor:f(e),opacity:0}}}},[l,s,d,c,f,o]));return{transition:(0,a.Yz)(O,{keys:function(e){return e.id},initial:_.update,from:_.enter,enter:_.update,update:_.update,leave:_.leave,config:m,immediate:!y}),interpolateLink:F,interpolateTextAnchor:D,interpolateTextPosition:G}},q=function(e){var t=e.center,n=e.data,a=e.label,u=e.skipAngle,l=e.offset,s=e.diagonalLength,d=e.straightLength,c=e.strokeWidth,f=e.textOffset,v=e.textColor,g=e.linkColor,h=e.component,p=(0,i.LR)(a),A=$({data:n,skipAngle:u,offset:l,diagonalLength:s,straightLength:d,textOffset:f,linkColor:g,textColor:v}),L=A.transition,x=A.interpolateLink,b=A.interpolateTextAnchor,R=A.interpolateTextPosition,y=void 0===h?B:h;return(0,o.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:L(function(e,t){return(0,r.createElement)(y,{key:t.id,datum:t,label:p(t),style:k({},e,{thickness:c,path:x(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength),textAnchor:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius),textPosition:R(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,e.offset,e.diagonalLength,e.straightLength,e.textOffset)})})})})},Y=function(e,t,n,r){e.textBaseline="middle",e.font=n.labels.text.fontSize+"px "+n.labels.text.fontFamily,t.forEach(function(t){e.fillStyle=t.textColor,e.textAlign=i.a6.canvas.align[t.textAnchor],e.fillText(""+t.label,t.x,t.y),e.beginPath(),e.strokeStyle=t.linkColor,e.lineWidth=r,t.points.forEac
1h(function(t,n){0===n?e.moveTo(t.x,t.y):e.lineTo(t.x,t.y)}),e.stroke()})},z=function(e){var t=e.data,n=e.skipAngle,a=void 0===n?0:n,o=e.offset,u=void 0===o?.5:o,l=e.diagonalLength,s=e.straightLength,d=e.computeExtraProps,c=void 0===d?function(){return{}}:d,f=(0,r.useMemo)(function(){return t.filter(function(e){return Math.abs((0,i.vi)(e.arc.endAngle-e.arc.startAngle))>=a}).map(function(e){return k({},Z(e.arc,u,l,s),{data:e})})},[t,a,u,l,s]);return(0,r.useMemo)(function(){return f.map(function(e){return k({},c(e),e)})},[f,c])},X=function(e){var t=e.data,n=e.skipAngle,a=e.offset,o=e.diagonalLength,l=e.straightLength,s=e.textOffset,d=void 0===s?0:s,c=e.label,f=e.linkColor,v=e.textColor,g=(0,i.LR)(c),h=(0,i.Fg)(),p=(0,u.Bf)(f,h),A=(0,u.Bf)(v,h);return z({data:t,skipAngle:n,offset:a,diagonalLength:o,straightLength:l,computeExtraProps:(0,r.useCallback)(function(e){var t,n={x:e.points[2].x,y:e.points[2].y};return"before"===e.side?(n.x-=d,t="end"):(n.x+=d,t="start"),k({},n,{label:g(e.data),linkColor:p(e.data),textAnchor:t,textColor:A(e.data)})},[g,p,A,d])})},N=function(e){var t=e.datum,n=e.style,i=e.onClick,u=e.onMouseEnter,l=e.onMouseMove,s=e.onMouseLeave,d=(0,r.useCallback)(function(e){return null==i?void 0:i(t,e)},[i,t]),c=(0,r.useCallback)(function(e){return null==u?void 0:u(t,e)},[u,t]),f=(0,r.useCallback)(function(e){return null==l?void 0:l(t,e)},[l,t]),v=(0,r.useCallback)(function(e){return null==s?void 0:s(t,e)},[s,t]);return(0,o.jsx)(a.q.path,{d:n.path,opacity:n.opacity,fill:t.fill||n.color,stroke:n.borderColor,strokeWidth:n.borderWidth,onClick:i?d:void 0,onMouseEnter:u?c:void 0,onMouseMove:l?f:void 0,onMouseLeave:s?v:void 0})},U=function(e,t,n,r,i){return(0,a.to)([e,t,n,r],function(e,t,n,r){return i({startAngle:e,endAngle:t,innerRadius:Math.max(0,n),outerRadius:Math.max(0,r)})})},K=function(e,t,n){void 0===t&&(t="innerRadius");var r=(0,i.tf)(),o=r.animate,u=r.config,l=T(t,n);return{transition:(0,a.Yz)(e,{keys:function(e){return e.id},initial:l.update,from:l.enter,enter:l.update,update:l.update,leave:l.leave,config:u,immediate:!o}),interpolate:U}},Q=function(e){var t=e.center,n=e.data,a=e.arcGenerator,l=e.borderWidth,s=e.borderColor,d=e.onClick,c=e.onMouseEnter,f=e.onMouseMove,v=e.onMouseLeave,g=e.transitionMode,h=e.component,p=(0,i.Fg)(),A=(0,u.Bf)(s,p),L=K(n,g,{enter:function(e){return{opacity:0,color:e.color,borderColor:A(e)}},update:function(e){return{opacity:1,color:e.color,borderColor:A(e)}},leave:function(e){return{opacity:0,color:e.color,borderColor:A(e)}}}),x=L.transition,b=L.interpolate,R=void 0===h?N:h;return(0,o.jsx)("g",{transform:"translate("+t[0]+","+t[1]+")",children:x(function(e,t){return(0,r.createElement)(R,{key:t.id,datum:t,style:k({},e,{borderWidth:l,path:b(e.startAngle,e.endAngle,e.innerRadius,e.outerRadius,a)}),onClick:d,onMouseEnter:c,onMouseMove:f,onMouseLeave:v})})})},J=function(e,t,n,r,a,o){void 0===o&&(o=!0);var u=[],l=(0,i.re)((0,i.Ht)(r),n);u.push([l.x,l.y]);var s=(0,i.re)((0,i.Ht)(a),n);u.push([s.x,s.y]);for(var d=Math.round(Math.min(r,a));d<=Math.round(Math.max(r,a));d++)if(d%90==0){var c=(0,i.re)((0,i.Ht)(d),n);u.push([c.x,c.y])}u=u.map(function(n){return[e+n[0],t+n[1]]}),o&&u.push([e,t]);var f=u.map(function(e){return e[0]}),v=u.map(function(e){return e[1]}),g=Math.min.apply(Math,f),h=Math.max.apply(Math,f),p=Math.min.apply(Math,v);return{points:u,x:g,y:p,width:h-g,height:Math.max.apply(Math,v)-p}},ee=function(e,t,n,r,a,o){var u=(0,i.Sp)(a,o,e,t);return u<n&&u>r},et=function(e,t,n,r,a,o,u){if(ee(e,t,n,r,o,u)){var l=(0,i._O)(o,u,e,t);return a.find(function(e){var t=e.startAngle,n=e.endAngle;return l>=t&&l<n})}},en=function(e){var t=void 0===e?{}:e,n=t.cornerRadius,i=void 0===n?0:n,a=t.padAngle,o=void 0===a?0:a;return(0,r.useMemo)(function(){return(function(){var e=L,t=x,n=(0,v.Z)(0),r=null,i=b,a=R,o=y,u=null;function l(){var l,s,d=+e.apply(this,arguments),c=+t.apply(this,arguments),v=i.apply(this,arguments)-A.ou,g=a.apply(this,arguments)-A.ou,h=(0,A.Wn)(g-v),p=g>v;if(u||(u=l=f()),c<d&&(s=c,c=d,d=s),c>A.Ho){if(h>A.BZ-A.Ho)u.moveTo(c*(0,A.mC)(v),c*(0,A.O$)(v)),u.arc(0,0,c,v,g,!p),d>A.Ho&&(u.moveTo(d*(0,A.mC)(g),d*(0,A.O$)(g)),u.arc(0,0,d,g,v,p));else{var L,x,b=v,R=g,y=v,k=g,M=h,C=h,O=o.apply(this,arguments)/2,I=O>
1A.Ho&&(r?+r.apply(this,arguments):(0,A._b)(d*d+c*c)),_=(0,A.VV)((0,A.Wn)(c-d)/2,+n.apply(this,arguments)),T=_,w=_;if(I>A.Ho){var W=(0,A.ZR)(I/d*(0,A.O$)(O)),S=(0,A.ZR)(I/c*(0,A.O$)(O));(M-=2*W)>A.Ho?(W*=p?1:-1,y+=W,k-=W):(M=0,y=k=(v+g)/2),(C-=2*S)>A.Ho?(S*=p?1:-1,b+=S,R-=S):(C=0,b=R=(v+g)/2)}var j=c*(0,A.mC)(b),E=c*(0,A.O$)(b),P=d*(0,A.mC)(k),B=d*(0,A.O$)(k);if(_>A.Ho){var H,Z=c*(0,A.mC)(R),V=c*(0,A.O$)(R),F=d*(0,A.mC)(y),D=d*(0,A.O$)(y);if(h<A.pi&&(H=function(e,t,n,r,i,a,o,u){var l=n-e,s=r-t,d=o-i,c=u-a,f=c*l-d*s;if(!(f*f<A.Ho))return f=(d*(t-a)-c*(e-i))/f,[e+f*l,t+f*s]}(j,E,F,D,Z,V,P,B))){var G=j-H[0],$=E-H[1],q=Z-H[0],Y=V-H[1],z=1/(0,A.O$)((0,A.Kh)((G*q+$*Y)/((0,A._b)(G*G+$*$)*(0,A._b)(q*q+Y*Y)))/2),X=(0,A._b)(H[0]*H[0]+H[1]*H[1]);T=(0,A.VV)(_,(d-X)/(z-1)),w=(0,A.VV)(_,(c-X)/(z+1))}}C>A.Ho?w>A.Ho?(L=m(F,D,j,E,c,w,p),x=m(Z,V,P,B,c,w,p),u.moveTo(L.cx+L.x01,L.cy+L.y01),w<_?u.arc(L.cx,L.cy,w,(0,A.fv)(L.y01,L.x01),(0,A.fv)(x.y01,x.x01),!p):(u.arc(L.cx,L.cy,w,(0,A.fv)(L.y01,L.x01),(0,A.fv)(L.y11,L.x11),!p),u.arc(0,0,c,(0,A.fv)(L.cy+L.y11,L.cx+L.x11),(0,A.fv)(x.cy+x.y11,x.cx+x.x11),!p),u.arc(x.cx,x.cy,w,(0,A.fv)(x.y11,x.x11),(0,A.fv)(x.y01,x.x01),!p))):(u.moveTo(j,E),u.arc(0,0,c,b,R,!p)):u.moveTo(j,E),d>A.Ho&&M>A.Ho?T>A.Ho?(L=m(P,B,Z,V,d,-T,p),x=m(j,E,F,D,d,-T,p),u.lineTo(L.cx+L.x01,L.cy+L.y01),T<_?u.arc(L.cx,L.cy,T,(0,A.fv)(L.y01,L.x01),(0,A.fv)(x.y01,x.x01),!p):(u.arc(L.cx,L.cy,T,(0,A.fv)(L.y01,L.x01),(0,A.fv)(L.y11,L.x11),!p),u.arc(0,0,d,(0,A.fv)(L.cy+L.y11,L.cx+L.x11),(0,A.fv)(x.cy+x.y11,x.cx+x.x11),p),u.arc(x.cx,x.cy,T,(0,A.fv)(x.y11,x.x11),(0,A.fv)(x.y01,x.x01),!p))):u.arc(0,0,d,k,y,p):u.lineTo(P,B)}}else u.moveTo(0,0);if(u.closePath(),l)return u=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-A.pi/2;return[(0,A.mC)(r)*n,(0,A.O$)(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:(0,v.Z)(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:(0,v.Z)(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:(0,v.Z)(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:(0,v.Z)(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:(0,v.Z)(+e),l):i},l.endAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,v.Z)(+e),l):a},l.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:(0,v.Z)(+e),l):o},l.context=function(e){return arguments.length?(u=null==e?null:e,l):u},l})().innerRadius(function(e){return e.innerRadius}).outerRadius(function(e){return e.outerRadius}).cornerRadius(i).padAngle(o)},[i,o])},er=n(8667);function ei(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function ea(e){return e}var eo=n(55226);function eu(){return(eu=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}).apply(this,arguments)}function el(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var es,ed=function(e){var t=e.width,n=e.height,r=e.legends,i=e.data,a=e.toggleSerie;return(0,o.jsx)(o.Fragment,{children:r.map(function(e,r){var u;return(0,o.jsx)(er.$6,eu({},e,{containerWidth:t,containerHeight:n,data:null!=(u=e.data)?u:i,toggleSerie:e.toggleSerie?a:void 0}),r)})})},ec={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcs","arcLinkLabels","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var t=e.datum;return(0,o.jsx)(eo._5,{id:t.id,value:t.formattedValue,enableChip:!0,color:t.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!=(es=window.devicePixelRatio)?es:1},ef=["points"],ev=function(e){var t=e.data,n=e.id,a=void 0===n?ec.id:n,o=e.value,l=void 0===o?ec.value:o,s=e.valueFormat,d=e.colors,c=void 0===d?ec.colors:d,f=(0,i.LR)(a),v=(0,i.LR)(l),g=(0,i.O_)(s),h=(0,u.U)(c,"id");return(0,r.useMemo)(function(){return t.map(function(e){var t,n=f(e),r=v(e),i={id:n,label:null!=(t=e.label)?t:n,hidden:!1,value:r,formattedValue:g(r),data:e};return eu({},i,{color:h(i)})})},[t,f,v,g,h])},eg=function(e){var t=e.data,n=e.startAngle,a=e.endAngle,o=e.innerRadius,u=e.outerRadius,l=e.padAngle,s=e.sortByValue,d=e.activeId,c=e.activeInnerRadiusOffset,f=e.activeOuterRadiusOffset,g=e.hiddenIds,h=e.forwardLegendD
1ata,p=(0,r.useMemo)(function(){var e=(function(){var e=ea,t=ei,n=null,r=(0,v.Z)(0),i=(0,v.Z)(A.BZ),a=(0,v.Z)(0);function o(o){var u,l,s,d,c,f=o.length,v=0,g=Array(f),h=Array(f),p=+r.apply(this,arguments),L=Math.min(A.BZ,Math.max(-A.BZ,i.apply(this,arguments)-p)),x=Math.min(Math.abs(L)/f,a.apply(this,arguments)),b=x*(L<0?-1:1);for(u=0;u<f;++u)(c=h[g[u]=u]=+e(o[u],u,o))>0&&(v+=c);for(null!=t?g.sort(function(e,n){return t(h[e],h[n])}):null!=n&&g.sort(function(e,t){return n(o[e],o[t])}),u=0,s=v?(L-f*b)/v:0;u<f;++u,p=d)d=p+((c=h[l=g[u]])>0?c*s:0)+b,h[l]={data:o[l],index:u,value:c,startAngle:p,endAngle:d,padAngle:x};return h}return o.value=function(t){return arguments.length?(e="function"==typeof t?t:(0,v.Z)(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:(0,v.Z)(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:(0,v.Z)(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:(0,v.Z)(+e),o):a},o})().value(function(e){return e.value}).startAngle((0,i.Ht)(n)).endAngle((0,i.Ht)(a)).padAngle((0,i.Ht)(l));return s||e.sortValues(null),e},[n,a,l,s]),L=(0,r.useMemo)(function(){return{dataWithArc:p(t.filter(function(e){return!g.includes(e.id)}
1)).map(function(e){var t=Math.abs(e.endAngle-e.startAngle);return eu({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:d===e.data.id?o-c:o,outerRadius:d===e.data.id?u+f:u,thickness:u-o,padAngle:e.padAngle,angle:t,angleDeg:(0,i.vi)(t)}})}),legendData:t.map(function(e){return{id:e.id,label:e.label,color:e.color,hidden:g.includes(e.id),data:e}})}},[p,t,g,d,o,c,u,f]),x=L.legendData,b=(0,r.useRef)(h);return(0,r.useEffect)(function(){"function"==typeof b.current&&b.current(x)},[b,x]),L},eh=function(e){var t=e.activeId,n=e.onActiveIdChange,i=e.defaultActiveId,a=void 0!==t,o=(0,r.useState)(a?null:void 0===i?null:i),u=o[0],l=o[1];return{activeId:a?t:u,setActiveId:(0,r.useCallback)(function(e){n&&n(e),a||l(e)},[a,n,l])}},ep=function(e){var t=e.data,n=e.radius,a=e.innerRadius,o=e.startAngle,u=void 0===o?ec.startAngle:o,l=e.endAngle,s=void 0===l?ec.endAngle:l,d=e.padAngle,c=void 0===d?ec.padAngle:d,f=e.sortByValue,v=void 0===f?ec.sortByValue:f,g=e.cornerRadius,h=void 0===g?ec.cornerRadius:g,p=e.activeInnerRadiusOffset,A=void 0===p?ec.activeInnerRadiusOffset:p,L=e.activeOuterRadiusOffset,x=void 0===L?ec.activeOuterRadiusOffset:L,b=e.activeId,R=e.onActiveIdChange,y=e.defaultActiveId,m=e.forwardLegendData,k=eh({activeId:b,onActiveIdChange:R,defaultActiveId:y}),M=k.activeId,C=k.setActiveId,O=(0,r.useState)([]),I=O[0],_=O[1],T=eg({data:t,startAngle:u,endAngle:s,innerRadius:a,outerRadius:n,padAngle:c,sortByValue:v,activeId:M,activeInnerRadiusOffset:A,activeOuterRadiusOffset:x,hiddenIds:I,forwardLegendData:m}),w=(0,r.useCallback)(function(e){_(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return eu({},T,{arcGenerator:en({cornerRadius:h,padAngle:(0,i.Ht)(c)}),setActiveId:C,toggleSerie:w})},eA=function(e){var t=e.data,n=e.width,a=e.height,o=e.innerRadius,u=void 0===o?ec.innerRadius:o,l=e.startAngle,s=void 0===l?ec.startAngle:l,d=e.endAngle,c=void 0===d?ec.endAngle:d,f=e.padAngle,v=void 0===f?ec.padAngle:f,g=e.sortByValue,h=void 0===g?ec.sortByValue:g,p=e.cornerRadius,A=void 0===p?ec.cornerRadius:p,L=e.fit,x=void 0===L?ec.fit:L,b=e.activeInnerRadiusOffset,R=void 0===b?ec.activeInnerRadiusOffset:b,y=e.activeOuterRadiusOffset,m=void 0===y?ec.activeOuterRadiusOffset:y,k=e.activeId,M=e.onActiveIdChange,C=e.defaultActiveId,O=e.forwardLegendData,I=eh({activeId:k,onActiveIdChange:M,defaultActiveId:C}),_=I.activeId,T=I.setActiveId,w=(0,r.useState)([]),W=w[0],S=w[1],j=(0,r.useMemo)(function(){var e,t=Math.min(n,a)/2,r=t*Math.min(u,1),i=n/2,o=a/2;if(x){var l=J(i,o,t,s-90,c-90),d=l.points,f=el(l,ef),v=Math.min(n/f.width,a/f.height),g={width:f.width*v,height:f.height*v};g.x=(n-g.width)/2,g.y=(a-g.height)/2,i=(i-f.x)/f.width*f.width*v+g.x,o=(o-f.y)/f.height*f.height*v+g.y,e={box:f,ratio:v,points:d},t*=v,r*=v}return{centerX:i,centerY:o,radius:t,innerRadius:r,debug:e}},[n,a,u,s,c,x]),E=eg({data:t,startAngle:s,endAngle:c,innerRadius:j.innerRadius,outerRadius:j.radius,padAngle:v,sortByValue:h,activeId:_,activeInnerRadiusOffset:R,activeOuterRadiusOffset:m,hiddenIds:W,forwardLegendData:O}),P=(0,r.useCallback)(function(e){S(function(t){return t.indexOf(e)>-1?t.filter(function(t){return t!==e}):[].concat(t,[e])})},[]);return eu({arcGenerator:en({cornerRadius:A,padAngle:(0,i.Ht)(v)}),activeId:_,setActiveId:T,toggleSerie:P},E,j)},eL=function(e){var t=e.dataWithArc,n=e.arcGenerator,i=e.centerX,a=e.centerY,o=e.radius,u=e.innerRadius;return(0,r.useMemo)(function(){return{dataWithArc:t,arcGenerator:n,centerX:i,centerY:a,radius:o,innerRadius:u}},[t,n,i,a,o,u])},ex=function(e){var t=e.center,n=e.data,i=e.arcGenerator,a=e.borderWidth,u=e.borderColor,l=e.isInteractive,s=e.onClick,d=e.onMouseEnter,c=e.onMouseMove,f=e.onMouseLeave,v=e.setActiveId,g=e.tooltip,h=e.transitionMode,p=(0,eo.lL)(),A=p.showTooltipFromEvent,L=p.hideTooltip,x=(0,r.useMemo)(function(){if(l)return function(e,t){null==s||s(e,t)}},[l,s]),b=(0,r.useMemo)(function(){if(l)return function(e,t){A((0,r.createElement)(g,{datum:e}),t),v(e.id),null==d||d(e,t)}},[l,A,v,d,g]),R=(0,r.useMemo)(function(){if(l)return function(e,t){A((0,r.createElement)(g,{datum:e}),t),null==c||c(e,t)}},[l,A,c,g]),y=(0,r.useMemo)(function(){if(l)return function(e,t){L(),v(null),null==f||f(e,t)}},[l,L,v,f]);return(0,o.jsx)(Q,{center:t,data:n,arcGenerator:i,borderWidth:a,borderColor:u,transitionMode:h,onClick:x,onMouseEnter:b,onMouseMove:R,onMouseLeave:y})},eb=["isInteractive","animate","motionConfig","theme","renderWrapper"],eR=function(e){var t=e.data,n=e.id,a=void 0===n?ec.id:n,u=e.value,l=void 0===u?ec.value:u,s=e.valueFormat,d=e.s
1ortByValue,c=void 0===d?ec.sortByValue:d,f=e.layers,v=void 0===f?ec.layers:f,g=e.startAngle,h=void 0===g?ec.startAngle:g,p=e.endAngle,A=void 0===p?ec.endAngle:p,L=e.padAngle,x=void 0===L?ec.padAngle:L,b=e.fit,R=void 0===b?ec.fit:b,y=e.innerRadius,m=void 0===y?ec.innerRadius:y,k=e.cornerRadius,M=void 0===k?ec.cornerRadius:k,C=e.activeInnerRadiusOffset,O=void 0===C?ec.activeInnerRadiusOffset:C,I=e.activeOuterRadiusOffset,_=void 0===I?ec.activeOuterRadiusOffset:I,T=e.width,w=e.height,W=e.margin,S=e.colors,E=void 0===S?ec.colors:S,P=e.borderWidth,B=void 0===P?ec.borderWidth:P,H=e.borderColor,Z=void 0===H?ec.borderColor:H,V=e.enableArcLabels,F=void 0===V?ec.enableArcLabels:V,D=e.arcLabel,G=void 0===D?ec.arcLabel:D,$=e.arcLabelsSkipAngle,Y=void 0===$?ec.arcLabelsSkipAngle:$,z=e.arcLabelsTextColor,X=void 0===z?ec.arcLabelsTextColor:z,N=e.arcLabelsRadiusOffset,U=void 0===N?ec.arcLabelsRadiusOffset:N,K=e.arcLabelsComponent,Q=e.enableArcLinkLabels,J=void 0===Q?ec.enableArcLinkLabels:Q,ee=e.arcLinkLabel,et=void 0===ee?ec.arcLinkLabel:ee,en=e.arcLinkLabelsSkipAngle,er=void 0===en?ec.arcLinkLabelsSkipAngle:en,ei=e.arcLinkLabelsOffset,ea=void 0===ei?ec.arcLinkLabelsOffset:ei,eo=e.arcLinkLabelsDiagonalLength,eu=void 0===eo?ec.arcLinkLabelsDiagonalLength:eo,el=e.arcLinkLabelsStraightLength,es=void 0===el?ec.arcLinkLabelsStraightLength:el,ef=e.arcLinkLabelsThickness,eg=void 0===ef?ec.arcLinkLabelsThickness:ef,eh=e.arcLinkLabelsTextOffset,ep=void 0===eh?ec.arcLinkLabelsTextOffset:eh,eb=e.arcLinkLabelsTextColor,eR=void 0===eb?ec.arcLinkLabelsTextColor:eb,ey=e.arcLinkLabelsColor,em=void 0===ey?ec.arcLinkLabelsColor:ey,ek=e.arcLinkLabelComponent,eM=e.defs,eC=void 0===eM?ec.defs:eM,eO=e.fill,eI=void 0===eO?ec.fill:eO,e_=e.isInteractive,eT=void 0===e_?ec.isInteractive:e_,ew=e.onClick,eW=e.onMouseEnter,eS=e.onMouseMove,ej=e.onMouseLeave,eE=e.tooltip,eP=void 0===eE?ec.tooltip:eE,eB=e.activeId,eH=e.onActiveIdChange,eZ=e.defaultActiveId,eV=e.transitionMode,eF=void 0===eV?ec.transitionMode:eV,eD=e.legends,eG=void 0===eD?ec.legends:eD,e$=e.forwardLegendData,eq=e.role,eY=void 0===eq?ec.role:eq,ez=(0,i.Bs)(T,w,W),eX=ez.outerWidth,eN=ez.outerHeight,eU=ez.margin,eK=ez.innerWidth,eQ=ez.innerHeight,eJ=eA({data:ev({data:t,id:a,value:l,valueFormat:s,colors:E}),width:eK,height:eQ,fit:R,innerRadius:m,startAngle:h,endAngle:A,padAngle:x,sortByValue:c,cornerRadius:M,activeInnerRadiusOffset:O,activeOuterRadiusOffset:_,activeId:eB,onActiveIdChange:eH,defaultActiveId:eZ,forwardLegendData:e$}),e0=eJ.dataWithArc,e1=eJ.legendData,e2=eJ.arcGenerator,e6=eJ.centerX,e4=eJ.centerY,e5=eJ.radius,e7=eJ.innerRadius,e9=eJ.setActiveId,e3=eJ.toggleSerie,e8=(0,i.yU)(eC,e0,eI),te={arcs:null,arcLinkLabels:null,arcLabels:null,legends:null};v.includes("arcs")&&(te.arcs=(0,o.jsx)(ex,{center:[e6,e4],data:e0,arcGenerator:e2,borderWidth:B,borderColor:Z,isInteractive:eT,onClick:ew,onMouseEnter:eW,onMouseMove:eS,onMouseLeave:ej,setActiveId:e9,tooltip:eP,transitionMode:eF},"arcs")),J&&v.includes("arcLinkLabels")&&(te.arcLinkLabels=(0,o.jsx)(q,{center:[e6,e4],data:e0,label:et,skipAngle:er,offset:ea,diagonalLength:eu,straightLength:es,strokeWidth:eg,textOffset:ep,textColor:eR,linkColor:em,component:ek},"arcLinkLabels")),F&&v.includes("arcLabels")&&(te.arcLabels=(0,o.jsx)(j,{center:[e6,e4],data:e0,label:G,radiusOffset:U,skipAngle:Y,textColor:X,transitionMode:eF,component:K},"arcLabels")),eG.length>0&&v.includes("legends")&&(te.legends=(0,o.jsx)(ed,{width:eK,height:eQ,data:e1,legends:eG,toggleSerie:e3},"legends"));var tt=eL({dataWithArc:e0,arcGenerator:e2,centerX:e6,centerY:e4,radius:e5,innerRadius:e7});return(0,o.jsx)(i.tM,{width:eX,height:eN,margin:eU,defs:e8,role:eY,children:v.map(function(e,t){return void 0!==te[e]?te[e]:"function"==typeof e?(0,o.jsx)(r.Fragment,{children:(0,r.createElement)(e,tt)},t):null})})},ey=function(e){var t=e.isInteractive,n=void 0===t?ec.isInteractive:t,r=e.animate,a=void 0===r?ec.animate:r,u=e.motionConfig,l=void 0===u?ec.motionConfig:u,s=e.theme,d=e.renderWrapper,c=el(e,eb);return(0,o.jsx)(i.W2,{animate:a,isInteractive:n,motionConfig:l,renderWrapper:d,theme:s,children:(0,o.jsx)(eR,eu({isInteractive:n},c))})},em=function(e){return(0,o.jsx)(i.d,{children:function(t){var n=t.
1width,r=t.height;return(0,o.jsx)(ey,eu({width:n,height:r},e))}})},ek=["isInteractive","theme","renderWrapper"],eM=function(e){var t=e.data,n=e.id,a=void 0===n?ec.id:n,l=e.value,s=void 0===l?ec.value:l,d=e.valueFormat,c=e.sortByValue,f=void 0===c?ec.sortByValue:c,v=e.startAngle,g=void 0===v?ec.startAngle:v,h=e.endAngle,p=void 0===h?ec.endAngle:h,A=e.padAngle,L=void 0===A?ec.padAngle:A,x=e.fit,b=void 0===x?ec.fit:x,R=e.innerRadius,y=void 0===R?ec.innerRadius:R,m=e.cornerRadius,k=void 0===m?ec.cornerRadius:m,M=e.activeInnerRadiusOffset,C=void 0===M?ec.activeInnerRadiusOffset:M,O=e.activeOuterRadiusOffset,I=void 0===O?ec.activeOuterRadiusOffset:O,_=e.width,T=e.height,w=e.margin,W=e.pixelRatio,S=void 0===W?ec.pixelRatio:W,j=e.colors,B=void 0===j?ec.colors:j,H=e.borderWidth,Z=void 0===H?ec.borderWidth:H,V=e.borderColor,F=void 0===V?ec.borderColor:V,D=e.enableArcLabels,G=void 0===D?ec.enableArcLabels:D,$=e.arcLabel,q=void 0===$?ec.arcLabel:$,z=e.arcLabelsSkipAngle,N=void 0===z?ec.arcLabelsSkipAngle:z,U=e.arcLabelsTextColor,K=void 0===U?ec.arcLabelsTextColor:U,Q=e.arcLabelsRadiusOffset,J=void 0===Q?ec.arcLabelsRadiusOffset:Q,ee=e.enableArcLinkLabels,en=void 0===ee?ec.enableArcLinkLabels:ee,ei=e.arcLinkLabel,ea=void 0===ei?ec.arcLinkLabel:ei,el=e.arcLinkLabelsSkipAngle,es=void 0===el?ec.arcLinkLabelsSkipAngle:el,ed=e.arcLinkLabelsOffset,ef=void 0===ed?ec.arcLinkLabelsOffset:ed,eg=e.arcLinkLabelsDiagonalLength,eh=void 0===eg?ec.arcLinkLabelsDiagonalLength:eg,ep=e.arcLinkLabelsStraightLength,eL=void 0===ep?ec.arcLinkLabelsStraightLength:ep,ex=e.arcLinkLabelsThickness,eb=void 0===ex?ec.arcLinkLabelsThickness:ex,eR=e.arcLinkLabelsTextOffset,ey=void 0===eR?ec.arcLinkLabelsTextOffset:eR,em=e.arcLinkLabelsTextColor,ek=void 0===em?ec.arcLinkLabelsTextColor:em,eM=e.arcLinkLabelsColor,eC=void 0===eM?ec.arcLinkLabelsColor:eM,eO=e.isInteractive,eI=void 0===eO?ec.isInteractive:eO,e_=e.onClick,eT=e.onMouseMove,ew=e.tooltip,eW=void 0===ew?ec.tooltip:ew,eS=e.activeId,ej=e.onActiveIdChange,eE=e.defaultActiveId,eP=e.legends,eB=void 0===eP?ec.legends:eP,eH=e.forwardLegendData,eZ=(0,r.useRef)(null),eV=(0,i.Fg)(),eF=(0,i.Bs)(_,T,w),eD=eF.margin,eG=eF.innerWidth,e$=eF.innerHeight,eq=eF.outerWidth,eY=eF.outerHeight,ez=eA({data:ev({data:t,id:a,value:s,valueFormat:d,colors:B}),width:eG,height:e$,fit:b,innerRadius:y,startAngle:g,endAngle:p,padAngle:L,sortByValue:f,cornerRadius:k,activeInnerRadiusOffset:C,activeOuterRadiusOffset:I,activeId:eS,onActiveIdChange:ej,defaultActiveId:eE,forwardLegendData:eH}),eX=ez.dataWithArc,eN=ez.arcGenerator,eU=ez.centerX,eK=ez.centerY,eQ=ez.radius,eJ=ez.innerRadius,e0=ez.setActiveId,e1=(0,u.Bf)(F,eV),e2=P({data:eX,label:q,skipAngle:N,offset:J,textColor:K}),e6=X({data:eX,skipAngle:es,offset:ef,diagonalLength:eh,straightLength:eL,label:ea,linkColor:eC,textOffset:ey,textColor:ek});(0,r.useEffect)(function(){if(eZ.current){eZ.current.width=eq*S,eZ.current.height=eY*S;var e=eZ.current.getContext("2d");e.scale(S,S),e.fillStyle=eV.background,e.fillRect(0,0,eq,eY),e.save(),e.translate(eD.left,eD.top),eN.context(e),e.save(),e.translate(eU,eK),eX.forEach(function(t){e.beginPath(),e.fillStyle=t.color,e.strokeStyle=e1(t),e.lineWidth=Z,eN(t.arc),e.fill(),Z>0&&e.stroke()}),!0===en&&Y(e,e6,eV,eb),!0===G&&E(e,e2,eV),e.restore(),eB.forEach(function(t){(0,er.as)(e,eu({},t,{data:eX,containerWidth:eG,containerHeight:e$,theme:eV}))})}},[eZ,eG,e$,eq,eY,eD.top,eD.left,S,eU,eK,eN,eX,Z,e1,G,e2,en,e6,eb,eB,eV]);var e4=(0,r.useMemo)(function(){return eX.map(function(e){return eu({id:e.id},e.arc)})},[eX]),e5=function(e){if(!eZ.current)return null;var t=(0,i.P6)(eZ.current,e),n=t[0],r=t[1],a=et(eD.left+eU,eD.top+eK,eQ,eJ,e4,n,r);return a?eX.find(function(e){return e.id===a.id}):null},e7=(0,eo.lL)(),e9=e7.showTooltipFromEvent,e3=e7.hideTooltip,e8=function(e){var t=e5(e);t?(null==eT||eT(t,e),e0(t.id),e9((0,r.createElement)(eW,{datum:t}),e)):(e0(null),e3())};return(0,o.jsx)("canvas",{ref:eZ,width:eq*S,height:eY*S,style:{width:eq,height:eY,cursor:eI?"auto":"normal"},onMouseEnter:eI?e8:void 0,onMouseMove:eI?e8:void 0,onMouseLeave:eI?function(){e3()}:void 0,onClick:eI?function(e){if(e_){var t=e5(e);t&&e_(t,e)}}:void 0})},eC=function(e){var t=e.isInteractive,n=void 0===t?ec.isInteractive:t,r=e.theme,a=e.renderWrapper,u=el(e,ek);return(0,o.jsx)(i.W2,{isInteractive:n,renderWrapper:a,theme:r,children:(0,o.jsx)(eM,eu({isInteractive:n},u))})}
1,eO=function(e){return(0,o.jsx)(i.d,{children:function(t){var n=t.width,r=t.height;return(0,o.jsx)(eC,eu({width:n,height:r},e))}})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.