summit/frontend/node_modules/robust-predicates/umd/predicates.min.js

2 lines
24 KiB
JavaScript
Raw Normal View History

2025-12-08 16:31:30 +00:00
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).predicates={})}(this,function(t){"use strict";const n=134217729,e=33306690738754706e-32;function r(t,n,e,r,s){let o,a,c,u,f=n[0],i=r[0],h=0,b=0;i>f==i>-f?(o=f,f=n[++h]):(o=i,i=r[++b]);let M=0;if(h<t&&b<e)for(i>f==i>-f?(c=o-((a=f+o)-f),f=n[++h]):(c=o-((a=i+o)-i),i=r[++b]),o=a,0!==c&&(s[M++]=c);h<t&&b<e;)i>f==i>-f?(c=o-((a=o+f)-(u=a-o))+(f-u),f=n[++h]):(c=o-((a=o+i)-(u=a-o))+(i-u),i=r[++b]),o=a,0!==c&&(s[M++]=c);for(;h<t;)c=o-((a=o+f)-(u=a-o))+(f-u),f=n[++h],o=a,0!==c&&(s[M++]=c);for(;b<e;)c=o-((a=o+i)-(u=a-o))+(i-u),i=r[++b],o=a,0!==c&&(s[M++]=c);return 0===o&&0!==M||(s[M++]=o),M}function s(t,n,e,s,o,a,c,u){return r(r(t,n,e,s,c),c,o,a,u)}function o(t,e,r,s){let o,a,c,u,f,i,h,b,M,l,d;d=r-(l=(h=n*r)-(h-r));let p=e[0],y=0;0!==(c=(M=p-(b=(h=n*p)-(h-p)))*d-((o=p*r)-b*l-M*l-b*d))&&(s[y++]=c);for(let x=1;x<t;x++)0!==(c=o-((a=o+(f=(M=(p=e[x])-(b=(h=n*p)-(h-p)))*d-((u=p*r)-b*l-M*l-b*d)))-(i=a-o))+(f-i))&&(s[y++]=c),0!==(c=a-((o=u+a)-u))&&(s[y++]=c);return 0===o&&0!==y||(s[y++]=o),y}function a(t,n){for(let e=0;e<t;e++)n[e]=-n[e];return t}function c(t,n){let e=n[0];for(let r=1;r<t;r++)e+=n[r];return e}function u(t){return new Float64Array(t)}const f=33306690738754716e-32,i=22204460492503146e-32,h=11093356479670487e-47,b=u(4),M=u(8),l=u(12),d=u(16),p=u(4);const y=7771561172376103e-31,x=3330669073875473e-31,j=32047474274603644e-47,m=u(4),_=u(4),v=u(4),w=u(4),A=u(4),F=u(4),O=u(4),P=u(4),g=u(4),k=u(8),q=u(8),z=u(8),B=u(4),C=u(8),D=u(8),E=u(8),G=u(12);let H=u(192),I=u(192);function J(t,n,e){t=r(t,H,n,e,I);const s=H;return H=I,I=s,t}function K(t,e,r,s,o,a,c,u){let f,i,h,b,M,l,d,p,y,x,j,m,_,v,w;return 0===t?0===e?(c[0]=0,u[0]=0,1):(x=(w=-e)*r,b=w-(h=(i=n*w)-(i-w)),l=r-(M=(i=n*r)-(i-r)),c[0]=b*l-(x-h*M-b*M-h*l),c[1]=x,x=e*o,b=e-(h=(i=n*e)-(i-e)),l=o-(M=(i=n*o)-(i-o)),u[0]=b*l-(x-h*M-b*M-h*l),u[1]=x,2):0===e?(x=t*s,b=t-(h=(i=n*t)-(i-t)),l=s-(M=(i=n*s)-(i-s)),c[0]=b*l-(x-h*M-b*M-h*l),c[1]=x,x=(w=-t)*a,b=w-(h=(i=n*w)-(i-w)),l=a-(M=(i=n*a)-(i-a)),u[0]=b*l-(x-h*M-b*M-h*l),u[1]=x,2):(f=(j=(b=t-(h=(i=n*t)-(i-t)))*(l=s-(M=(i=n*s)-(i-s)))-((x=t*s)-h*M-b*M-h*l))-(d=j-(_=(b=e-(h=(i=n*e)-(i-e)))*(l=r-(M=(i=n*r)-(i-r)))-((m=e*r)-h*M-b*M-h*l))),c[0]=j-(d+f)+(f-_),f=(y=x-((p=x+d)-(f=p-x))+(d-f))-(d=y-m),c[1]=y-(d+f)+(f-m),f=(v=p+d)-p,c[2]=p-(v-f)+(d-f),c[3]=v,f=(j=(b=e-(h=(i=n*e)-(i-e)))*(l=o-(M=(i=n*o)-(i-o)))-((x=e*o)-h*M-b*M-h*l))-(d=j-(_=(b=t-(h=(i=n*t)-(i-t)))*(l=a-(M=(i=n*a)-(i-a)))-((m=t*a)-h*M-b*M-h*l))),u[0]=j-(d+f)+(f-_),f=(y=x-((p=x+d)-(f=p-x))+(d-f))-(d=y-m),u[1]=y-(d+f)+(f-m),f=(v=p+d)-p,u[2]=p-(v-f)+(d-f),u[3]=v,4)}function L(t,e,r,s,o){let a,c,u,f,i,h,b,M,l,d,p,y,x;return y=(f=e-(u=(c=n*e)-(c-e)))*(h=r-(i=(c=n*r)-(c-r)))-((p=e*r)-u*i-f*i-u*h),h=s-(i=(c=n*s)-(c-s)),b=y*s,f=y-(u=(c=n*y)-(c-y)),B[0]=f*h-(b-u*i-f*i-u*h),a=(l=b+(d=(f=p-(u=(c=n*p)-(c-p)))*h-((M=p*s)-u*i-f*i-u*h)))-b,B[1]=b-(l-a)+(d-a),x=M+l,B[2]=l-(x-M),B[3]=x,t=J(t,4,B),0!==o&&(h=o-(i=(c=n*o)-(c-o)),b=y*o,f=y-(u=(c=n*y)-(c-y)),B[0]=f*h-(b-u*i-f*i-u*h),a=(l=b+(d=(f=p-(u=(c=n*p)-(c-p)))*h-((M=p*o)-u*i-f*i-u*h)))-b,B[1]=b-(l-a)+(d-a),x=M+l,B[2]=l-(x-M),B[3]=x,t=J(t,4,B)),t}const N=11102230246251577e-31,Q=4440892098500632e-31,R=5423418723394464e-46,S=u(4),T=u(4),U=u(4),V=u(4),W=u(4),X=u(4),Y=u(4),Z=u(4),$=u(8),tt=u(8),nt=u(8),et=u(8),rt=u(8),st=u(8),ot=u(8),at=u(8),ct=u(8),ut=u(4),ft=u(4),it=u(4),ht=u(8),bt=u(16),Mt=u(16),lt=u(16),dt=u(32),pt=u(32),yt=u(48),xt=u(64);let jt=u(1152),mt=u(1152);function _t(t,n,e){t=r(t,jt,n,e,mt);const s=jt;return jt=mt,mt=s,t}const vt=17763568394002532e-31,wt=5551115123125792e-31,At=8751425667295619e-46,Ft=u(4),Ot=u(4),Pt=u(4),gt=u(4),kt=u(4),qt=u(4),zt=u(4),Bt=u(4),Ct=u(4),Dt=u(4),Et=u(24),Gt=u(24),Ht=u(24),It=u(24),Jt=u(24),Kt=u(24),Lt=u(24),Nt=u(24),Qt=u(24),Rt=u(24),St=u(1152),Tt=u(1152),Ut=u(1152),Vt=u(1152),Wt=u(1152),Xt=u(2304),Yt=u(2304),Zt=u(3456),$t=u(5760),tn=u(8),nn=u(8),en=u(8),rn=u(16),sn=u(24),on=u(48),an=u(48),cn=u(96),un=u(192),fn=u(384),hn=u(384),bn=u(384),Mn=u(768);function ln(t,n,