const rt=11102230246251565e-32,b=134217729,_n=(3+8*rt)*rt;function it(I,J,V,S,R){let K,j,D,E,e=J[0],f=S[0],a=0,r=0;f>e===f>-e?(K=e,e=J[++a]):(K=f,f=S[++r]);let i=0;if(ae===f>-e?(j=e+K,D=K-(j-e),e=J[++a]):(j=f+K,D=K-(j-f),f=S[++r]),K=j,D!==0&&(R[i++]=D);ae===f>-e?(j=K+e,E=j-K,D=K-(j-E)+(e-E),e=J[++a]):(j=K+f,E=j-K,D=K-(j-E)+(f-E),f=S[++r]),K=j,D!==0&&(R[i++]=D);for(;a=n||-Y>=n)return Y;if(a=I-H,D=I-(H+a)+(a-R),a=V-O,e=V-(O+a)+(a-R),a=J-U,E=J-(U+a)+(a-K),a=S-P,f=S-(P+a)+(a-K),D===0&&E===0&&e===0&&f===0)return Y;if(n=gc*j+_n*Math.abs(Y),Y+=H*f+P*D-(U*e+O*E),Y>=n||-Y>=n)return Y;Q=D*P,r=b*D,i=r-(r-D),v=D-i,r=b*P,t=r-(r-P),o=P-t,d=v*o-(Q-i*t-v*t-i*o),F=E*O,r=b*E,i=r-(r-E),v=E-i,r=b*O,t=r-(r-O),o=O-t,$=v*o-(F-i*t-v*t-i*o),l=d-$,a=d-l,$t[0]=d-(l+a)+(a-$),C=Q+l,a=C-Q,M=Q-(C-a)+(l-a),l=M-F,a=M-l,$t[1]=M-(l+a)+(a-F),A=C+l,a=A-C,$t[2]=C-(A-a)+(l-a),$t[3]=A;const u=it(4,kt,4,$t,cc);Q=H*f,r=b*H,i=r-(r-H),v=H-i,r=b*f,t=r-(r-f),o=f-t,d=v*o-(Q-i*t-v*t-i*o),F=U*e,r=b*U,i=r-(r-U),v=U-i,r=b*e,t=r-(r-e),o=e-t,$=v*o-(F-i*t-v*t-i*o),l=d-$,a=d-l,$t[0]=d-(l+a)+(a-$),C=Q+l,a=C-Q,M=Q-(C-a)+(l-a),l=M-F,a=M-l,$t[1]=M-(l+a)+(a-F),A=C+l,a=A-C,$t[2]=C-(A-a)+(l-a),$t[3]=A;const h=it(u,cc,4,$t,sc);Q=D*f,r=b*D,i=r-(r-D),v=D-i,r=b*f,t=r-(r-f),o=f-t,d=v*o-(Q-i*t-v*t-i*o),F=E*e,r=b*E,i=r-(r-E),v=E-i,r=b*e,t=r-(r-e),o=e-t,$=v*o-(F-i*t-v*t-i*o),l=d-$,a=d-l,$t[0]=d-(l+a)+(a-$),C=Q+l,a=C-Q,M=Q-(C-a)+(l-a),l=M-F,a=M-l,$t[1]=M-(l+a)+(a-F),A=C+l,a=A-C,$t[2]=C-(A-a)+(l-a),$t[3]=A;const q=it(h,sc,4,$t,oc);return oc[q-1]}function Fc(I,J,V,S,R,K){const j=(J-K)*(V-R),D=(I-R)*(S-K),E=j-D;if(j===0||D===0||j>0!==D>0)return E;const e=Math.abs(j+D);return Math.abs(E)>=Bc*e?E:-Dc(I,J,V,S,R,K,e)}function qc(I,J,V,S,R,K){return(J-K)*(V-R)-(I-R)*(S-K)}const Ec=(7+56*rt)*rt,Gc=(3+28*rt)*rt,Hc=(26+288*rt)*rt*rt,zt=N(4),xt=N(4),yt=N(4),ec=N(4),ic=N(4),rc=N(4),lc=N(4),ac=N(4),uc=N(4),gn=N(8),Dn=N(8),Fn=N(8),Gt=N(4),pn=N(8),fc=N(8),Ct=N(8),tn=N(12);let nn=N(192),qn=N(192);function qt(I,J,V){I=it(I,nn,J,V,qn);const S=nn;return nn=qn,qn=S,I}function En(I,J,V,S,R,K,j,D){let E,e,f,a,r,i,v,t,o,l,C,M,Q,d,F;return I===0?J===0?(j[0]=0,D[0]=0,1):(F=-J,l=F*V,e=b*F,f=e-(e-F),a=F-f,e=b*V,r=e-(e-V),i=V-r,j[0]=a*i-(l-f*r-a*r-f*i),j[1]=l,l=J*R,e=b*J,f=e-(e-J),a=J-f,e=b*R,r=e-(e-R),i=R-r,D[0]=a*i-(l-f*r-a*r-f*i),D[1]=l,2):J===0?(l=I*S,e=b*I,f=e-(e-I),a=I-f,e=b*S,r=e-(e-S),i=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Y-$),Y=u-c,$=u-Y,yt[1]=u-(Y+$)+($-c),s=n+Y,$=s-n,yt[2]=n-(s-$)+(Y-$),yt[3]=s,i=it(it(g(4,zt,L,pn),pn,g(4,xt,W,fc),fc,Ct),Ct,g(4,yt,X,pn),pn,nn);let Z=Mn(i,nn),z=Gc*r;if(Z>=z||-Z>=z)return Z;if($=I-p,v=I-(p+$)+($-e),$=S-B,t=S-(B+$)+($-e),$=j-m,o=j-(m+$)+($-e),$=J-w,l=J-(w+$)+($-f),$=R-G,C=R-(G+$)+($-f),$=D-T,M=D-(T+$)+($-f),$=V-L,Q=V-(L+$)+($-a),$=K-W,d=K-(W+$)+($-a),$=E-X,F=E-(X+$)+($-a),v===0&&t===0&&o===0&&l===0&&C===0&&M===0&&Q===0&&d===0&&F===0)return Z;if(z=Hc*r+_n*Math.abs(Z),Z+=L*(B*M+T*t-(G*o+m*C))+Q*(B*T-G*m)+W*(m*l+w*o-(T*v+p*M))+d*(m*w-T*p)+X*(p*C+G*v-(w*t+B*l))+F*(p*G-w*B),Z>=z||-Z>=z)return Z;const x=En(v,l,B,G,m,T,ec,ic),y=En(t,C,m,T,p,w,rc,lc),st=En(o,M,p,w,B,G,ac,uc),et=it(y,rc,st,uc,gn);i=qt(i,g(et,gn,L,Ct),Ct);const ct=it(st,ac,x,ic,Dn);i=qt(i,g(ct,Dn,W,Ct),Ct);const nt=it(x,ec,y,lc,Fn);return i=qt(i,g(nt,Fn,X,Ct),Ct),Q!==0&&(i=qt(i,g(4,zt,Q,tn),tn),i=qt(i,g(et,gn,Q,Ct),Ct)),d!==0&&(i=qt(i,g(4,xt,d,tn),tn),i=qt(i,g(ct,Dn,d,Ct),Ct)),F!==0&&(i=qt(i,g(4,yt,F,tn),tn),i=qt(i,g(nt,Fn,F,Ct),Ct)),v!==0&&(C!==0&&(i=cn(i,v,C,X,F)),M!==0&&(i=cn(i,-v,M,W,d))),t!==0&&(M!==0&&(i=cn(i,t,M,L,Q)),l!==0&&(i=cn(i,-t,l,X,F))),o!==0&&(l!==0&&(i=cn(i,o,l,W,d)),C!==0&&(i=cn(i,-o,C,L,Q))),nn[i-1]}function Jc(I,J,V,S,R,K,j,D,E,e,f,a){const r=I-e,i=S-e,v=j-e,t=J-f,o=R-f,l=D-f,C=V-a,M=K-a,Q=E-a,d=i*l,F=v*o,$=v*t,A=r*l,H=r*o,O=i*t,U=C*(d-F)+M*($-A)+Q*(H-O),P=(Math.abs(d)+Math.abs(F))*Math.abs(C)+(Math.abs($)+Math.abs(A))*Math.abs(M)+(Math.abs(H)+Math.abs(O))*Math.abs(Q),Y=Ec*P;return U>Y||-U>Y?U:Ic(I,J,V,S,R,K,j,D,E,e,f,a,P)}function Kc(I,J,V,S,R,K,j,D,E,e,f,a){const r=I-e,i=S-e,v=j-e,t=J-f,o=R-f,l=D-f,C=V-a,M=K-a,Q=E-a;return r*(o*Q-M*l)+i*(l*C-Q*t)+v*(t*M-C*o)}const Lc=(10+96*rt)*rt,Nc=(4+48*rt)*rt,Oc=(44+576*rt)*rt*rt,Lt=N(4),Nt=N(4),Ot=N(4),Ht=N(4),It=N(4),Jt=N(4),vt=N(4),wt=N(4),Gn=N(8),Hn=N(8),In=N(8),Jn=N(8),Kn=N(8),Ln=N(8),$n=N(8),vn=N(8),wn=N(8),St=N(4),Tt=N(4),Ut=N(4),k=N(8),tt=N(16),lt=N(16),at=N(16),ot=N(32),Pt=N(32),ft=N(48),jt=N(64);let sn=N(1152),Nn=N(1152);function bt(I,J,V){I=it(I,sn,J,V,Nn);const S=sn;return sn=Nn,Nn=S,I}function Pc(I,J,V,S,R,K,j,D,E){let e,f,a,r,i,v,t,o,l,C,M,Q,d,F,$,A,H,O,U,P,Y,n,u,h,q,c,_,s,p,B,m,w,G,T,L;const W=I-j,X=V-j,Z=R-j,z=J-D,x=S-D,y=K-D;m=X*y,u=b*X,h=u-(u-X),q=X-h,u=b*y,c=u-(u-y),_=y-c,w=q*_-(m-h*c-q*c-h*_),G=Z*x,u=b*Z,h=u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F=1,St[0]=0,H=1),r!==0){const ct=g(F,$n,r,at);e=bt(e,it(g(Q,Kn,r,tt),tt,g(ct,at,2*Z,ot),ot,ft),ft);const nt=g(H,St,r,k);e=bt(e,pt(g(nt,k,2*Z,tt),tt,g(nt,k,r,lt),lt,g(ct,at,r,ot),ot,Pt,jt),jt),i!==0&&(e=bt(e,g(g(4,It,r,k),k,i,tt),tt)),v!==0&&(e=bt(e,g(g(4,Ht,-r,k),k,v,tt),tt))}if(t!==0){const ct=g(F,$n,t,at);e=bt(e,it(g(d,Ln,t,tt),tt,g(ct,at,2*y,ot),ot,ft),ft);const nt=g(H,St,t,k);e=bt(e,pt(g(nt,k,2*y,tt),tt,g(nt,k,t,lt),lt,g(ct,at,t,ot),ot,Pt,jt),jt)}}return sn[e-1]}function Rc(I,J,V,S,R,K,j,D){const E=I-j,e=V-j,f=R-j,a=J-D,r=S-D,i=K-D,v=e*i,t=f*r,o=E*E+a*a,l=f*a,C=E*i,M=e*e+r*r,Q=E*r,d=e*a,F=f*f+i*i,$=o*(v-t)+M*(l-C)+F*(Q-d),A=(Math.abs(v)+Math.abs(t))*o+(Math.abs(l)+Math.abs(C))*M+(Math.abs(Q)+Math.abs(d))*F,H=Lc*A;return $>H||-$>H?$:Pc(I,J,V,S,R,K,j,D,A)}function Sc(I,J,V,S,R,K,j,D){const E=I-j,e=J-D,f=V-j,a=S-D,r=R-j,i=K-D,v=E*a-f*e,t=f*i-r*a,o=r*e-E*i,l=E*E+e*e,C=f*f+a*a,M=r*r+i*i;return l*t+C*o+M*v}const Tc=(16+224*rt)*rt,Uc=(5+72*rt)*rt,Vc=(71+1408*rt)*rt*rt,mt=N(4),At=N(4),Bt=N(4),Vt=N(4),Wt=N(4),Qt=N(4),gt=N(4),Xt=N(4),Dt=N(4),Yt=N(4),On=N(24),Pn=N(24),Rn=N(24),Sn=N(24),Tn=N(24),Un=N(24),Vn=N(24),Wn=N(24),Xn=N(24),Yn=N(24),fn=N(1152),Cn=N(1152),bn=N(1152),jn=N(1152),bc=N(1152),Zn=N(2304),kn=N(2304),dc=N(3456),hc=N(5760),_c=N(8),Mc=N(8),pc=N(8),Wc=N(16),mn=N(24),Rt=N(48),zn=N(48),An=N(96),Zt=N(192),$c=N(384),vc=N(384),wc=N(384),Xc=N(768);function Et(I,J,V,S,R,K,j){return pt(g(4,I,S,_c),_c,g(4,J,R,Mc),Mc,g(4,V,K,pc),pc,Wc,j)}function dn(I,J,V,S,R,K,j,D,E,e,f,a){const r=it(it(I,J,V,S,Rt),Rt,Qn(it(R,K,j,D,zn),zn),zn,An);return pt(g(g(r,An,E,Zt),Zt,E,$c),$c,g(g(r,An,e,Zt),Zt,e,vc),vc,g(g(r,An,f,Zt),Zt,f,wc),wc,Xc,a)}function Yc(I,J,V,S,R,K,j,D,E,e,f,a,r,i,v){let t,o,l,C,M,Q,d,F,$,A,H,O,U,P;A=I*R,o=b*I,l=o-(o-I),C=I-l,o=b*R,M=o-(o-R),Q=R-M,H=C*Q-(A-l*M-C*M-l*Q),O=S*J,o=b*S,l=o-(o-S),C=S-l,o=b*J,M=o-(o-J),Q=J-M,U=C*Q-(O-l*M-C*M-l*Q),d=H-U,t=H-d,mt[0]=H-(d+t)+(t-U),F=A+d,t=F-A,$=A-(F-t)+(d-t),d=$-O,t=$-d,mt[1]=$-(d+t)+(t-O),P=F+d,t=P-F,mt[2]=F-(P-t)+(d-t),mt[3]=P,A=S*D,o=b*S,l=o-(o-S),C=S-l,o=b*D,M=o-(o-D),Q=D-M,H=C*Q-(A-l*M-C*M-l*Q),O=j*R,o=b*j,l=o-(o-j),C=j-l,o=b*R,M=o-(o-R),Q=R-M,U=C*Q-(O-l*M-C*M-l*Q),d=H-U,t=H-d,At[0]=H-(d+t)+(t-U),F=A+d,t=F-A,$=A-(F-t)+(d-t),d=$-O,t=$-d,At[1]=$-(d+t)+(t-O),P=F+d,t=P-F,At[2]=F-(P-t)+(d-t),At[3]=P,A=j*f,o=b*j,l=o-(o-j),C=j-l,o=b*f,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ct=C*C+F*F+O*O,nt=et*x-ct*X+(y*Z-st*z),ut=Math.abs($),dt=Math.abs(A),ht=Math.abs(H),_t=Math.abs(O),Mt=Math.abs(U),hn=Math.abs(P),Ft=Math.abs(n),Kt=Math.abs(u),on=Math.abs(q),en=Math.abs(c),rn=Math.abs(s),ln=Math.abs(p),an=Math.abs(m),un=Math.abs(w),xn=Math.abs(T),yn=Math.abs(L),tc=((on+en)*dt+(yn+xn)*ht+(Ft+Kt)*_t)*y+((rn+ln)*ht+(an+un)*_t+(on+en)*ut)*st+((Mt+hn)*_t+(xn+yn)*ut+(rn+ln)*dt)*et+((Ft+Kt)*ut+(un+an)*dt+(Mt+hn)*ht)*ct,nc=Tc*tc;return nt>nc||-nt>nc?nt:-Zc(I,J,V,S,R,K,j,D,E,e,f,a,r,i,v,tc)}function zc(I,J,V,S,R,K,j,D,E,e,f,a,r,i,v){const t=I-r,o=S-r,l=j-r,C=e-r,M=J-i,Q=R-i,d=D-i,F=f-i,$=V-v,A=K-v,H=E-v,O=a-v,U=t*Q-o*M,P=o*d-l*Q,Y=l*F-C*d,n=C*M-t*F,u=t*d-l*M,h=o*F-C*Q,q=$*P-A*u+H*U,c=A*Y-H*h+O*P,_=H*n+O*u+$*Y,s=O*U+$*h+A*n,p=t*t+M*M+$*$,B=o*o+Q*Q+A*A,m=l*l+d*d+H*H,w=C*C+F*F+O*O;return m*s-w*q+(p*c-B*_)}export{Rc as incircle,Sc as incirclefast,kc as insphere,zc as inspherefast,Fc as orient2d,qc as orient2dfast,Jc as orient3d,Kc as orient3dfast};export default null;