import{c as Y,p as sn}from"./constant.6af51708.js";import{aX as en,aY as y,ak as ln,aZ as k,a_ as P,a$ as C,b0 as W,b1 as an,b2 as rn,b3 as t,b4 as un,b5 as on,b6 as tn}from"./state.2462faca.js";function fn(l){return l.innerRadius}function cn(l){return l.outerRadius}function yn(l){return l.startAngle}function gn(l){return l.endAngle}function mn(l){return l&&l.padAngle}function pn(l,x,D,q,h,v,Z,a){var s=D-l,n=q-x,m=Z-h,i=a-v,r=i*s-m*n;if(!(r*r$*$+j*j&&(X=R,d=T),{cx:X,cy:d,x01:-m,y01:-i,x11:X*(h/O-1),y11:d*(h/O-1)}}function hn(){var l=fn,x=cn,D=Y(0),q=null,h=yn,v=gn,Z=mn,a=null;function s(){var n,m,i=+l.apply(this,arguments),r=+x.apply(this,arguments),f=h.apply(this,arguments)-en,c=v.apply(this,arguments)-en,E=an(c-f),o=c>f;if(a||(a=n=sn()),ry))a.moveTo(0,0);else if(E>ln-y)a.moveTo(r*k(f),r*P(f)),a.arc(0,0,r,f,c,!o),i>y&&(a.moveTo(i*k(c),i*P(c)),a.arc(0,0,i,c,f,o));else{var I=f,p=c,g=f,A=c,O=E,b=E,S=Z.apply(this,arguments)/2,X=S>y&&(q?+q.apply(this,arguments):C(i*i+r*r)),d=W(an(r-i)/2,+D.apply(this,arguments)),R=d,T=d,e,u;if(X>y){var $=un(X/i*P(S)),j=un(X/r*P(S));(O-=$*2)>y?($*=o?1:-1,g+=$,A-=$):(O=0,g=A=(f+c)/2),(b-=j*2)>y?(j*=o?1:-1,I+=j,p-=j):(b=0,I=p=(f+c)/2)}var z=r*k(I),B=r*P(I),F=i*k(A),G=i*P(A);if(d>y){var H=r*k(p),J=r*P(p),L=i*k(g),M=i*P(g),w;if(Ey?T>y?(e=K(L,M,z,B,r,T,o),u=K(H,J,F,G,r,T,o),a.moveTo(e.cx+e.x01,e.cy+e.y01),Ty)||!(O>y)?a.lineTo(F,G):R>y?(e=K(F,G,H,J,i,-R,o),u=K(z,B,L,M,i,-R,o),a.lineTo(e.cx+e.x01,e.cy+e.y01),R