import{M as ln,N as an,O as V,P as E,Q as q,R as rn,S as d,T as tn,V as Z,W as _,X as un,Y as f,Z as sn,$ as fn,a0 as on}from"./mermaid.core-BMua9uWp.js";(function(){try{var u=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};u.SENTRY_RELEASE={id:"66e9b849450b819e11683314a547a341cb57f7d0"};var o=new u.Error().stack;o&&(u._sentryDebugIds=u._sentryDebugIds||{},u._sentryDebugIds[o]="44f31bac-10e7-4410-9200-8c5a891aa801",u._sentryDebugIdIdentifier="sentry-dbid-44f31bac-10e7-4410-9200-8c5a891aa801")}catch{}})();function cn(u){return u.innerRadius}function yn(u){return u.outerRadius}function dn(u){return u.startAngle}function gn(u){return u.endAngle}function pn(u){return u&&u.padAngle}function mn(u,o,I,D,v,R,L,a){var S=I-u,s=D-o,n=L-v,p=a-R,r=p*S-n*s;if(!(r*r<d))return r=(n*(o-R)-p*(u-v))/r,[u+r*S,o+r*s]}function C(u,o,I,D,v,R,L){var a=u-I,S=o-D,s=(L?R:-R)/Z(a*a+S*S),n=s*S,p=-s*a,r=u+n,l=o+p,c=I+n,y=D+p,M=(r+c)/2,t=(l+y)/2,m=c-r,g=y-l,A=m*m+g*g,T=v-R,b=r*y-c*l,N=(g<0?-1:1)*Z(fn(0,T*T*A-b*b)),O=(b*g-m*N)/A,Y=(-b*m-g*N)/A,w=(b*g+m*N)/A,h=(-b*m+g*N)/A,x=O-M,e=Y-t,i=w-M,Q=h-t;return x*x+e*e>i*i+Q*Q&&(O=w,Y=h),{cx:O,cy:Y,x01:-n,y01:-p,x11:O*(v/T-1),y11:Y*(v/T-1)}}function xn(){var u=cn,o=yn,I=q(0),D=null,v=dn,R=gn,L=pn,a=null,S=ln(s);function s(){var n,p,r=+u.apply(this,arguments),l=+o.apply(this,arguments),c=v.apply(this,arguments)-rn,y=R.apply(this,arguments)-rn,M=un(y-c),t=y>c;if(a||(a=n=S()),l<r&&(p=l,l=r,r=p),!(l>d))a.moveTo(0,0);else if(M>tn-d)a.moveTo(l*V(c),l*E(c)),a.arc(0,0,l,c,y,!t),r>d&&(a.moveTo(r*V(y),r*E(y)),a.arc(0,0,r,y,c,t));else{var m=c,g=y,A=c,T=y,b=M,N=M,O=L.apply(this,arguments)/2,Y=O>d&&(D?+D.apply(this,arguments):Z(r*r+l*l)),w=_(un(l-r)/2,+I.apply(this,arguments)),h=w,x=w,e,i;if(Y>d){var Q=sn(Y/r*E(O)),$=sn(Y/l*E(O));(b-=Q*2)>d?(Q*=t?1:-1,A+=Q,T-=Q):(b=0,A=T=(c+y)/2),(N-=$*2)>d?($*=t?1:-1,m+=$,g-=$):(N=0,m=g=(c+y)/2)}var W=l*V(m),X=l*E(m),j=r*V(T),k=r*E(T);if(w>d){var z=l*V(g),B=l*E(g),F=r*V(A),G=r*E(A),P;if(M<an)if(P=mn(W,X,F,G,z,B,j,k)){var H=W-P[0],J=X-P[1],K=z-P[0],U=B-P[1],nn=1/E(on((H*K+J*U)/(Z(H*H+J*J)*Z(K*K+U*U)))/2),en=Z(P[0]*P[0]+P[1]*P[1]);h=_(w,(r-en)/(nn-1)),x=_(w,(l-en)/(nn+1))}else h=x=0}N>d?x>d?(e=C(F,G,W,X,l,x,t),i=C(z,B,j,k,l,x,t),a.moveTo(e.cx+e.x01,e.cy+e.y01),x<w?a.arc(e.cx,e.cy,x,f(e.y01,e.x01),f(i.y01,i.x01),!t):(a.arc(e.cx,e.cy,x,f(e.y01,e.x01),f(e.y11,e.x11),!t),a.arc(0,0,l,f(e.cy+e.y11,e.cx+e.x11),f(i.cy+i.y11,i.cx+i.x11),!t),a.arc(i.cx,i.cy,x,f(i.y11,i.x11),f(i.y01,i.x01),!t))):(a.moveTo(W,X),a.arc(0,0,l,m,g,!t)):a.moveTo(W,X),!(r>d)||!(b>d)?a.lineTo(j,k):h>d?(e=C(j,k,z,B,r,-h,t),i=C(W,X,F,G,r,-h,t),a.lineTo(e.cx+e.x01,e.cy+e.y01),h<w?a.arc(e.cx,e.cy,h,f(e.y01,e.x01),f(i.y01,i.x01),!t):(a.arc(e.cx,e.cy,h,f(e.y01,e.x01),f(e.y11,e.x11),!t),a.arc(0,0,r,f(e.cy+e.y11,e.cx+e.x11),f(i.cy+i.y11,i.cx+i.x11),t),a.arc(i.cx,i.cy,h,f(i.y11,i.x11),f(i.y01,i.x01),!t))):a.arc(0,0,r,T,A,t)}if(a.closePath(),n)return a=null,n+""||null}return s.centroid=function(){var n=(+u.apply(this,arguments)+ +o.apply(this,arguments))/2,p=(+v.apply(this,arguments)+ +R.apply(this,arguments))/2-an/2;return[V(p)*n,E(p)*n]},s.innerRadius=function(n){return arguments.length?(u=typeof n=="function"?n:q(+n),s):u},s.outerRadius=function(n){return arguments.length?(o=typeof n=="function"?n:q(+n),s):o},s.cornerRadius=function(n){return arguments.length?(I=typeof n=="function"?n:q(+n),s):I},s.padRadius=function(n){return arguments.length?(D=n==null?null:typeof n=="function"?n:q(+n),s):D},s.startAngle=function(n){return arguments.length?(v=typeof n=="function"?n:q(+n),s):v},s.endAngle=function(n){return arguments.length?(R=typeof n=="function"?n:q(+n),s):R},s.padAngle=function(n){return arguments.length?(L=typeof n=="function"?n:q(+n),s):L},s.context=function(n){return arguments.length?(a=n??null,s):a},s}export{xn as d};
//# sourceMappingURL=arc-DGPiDAPj.js.map
