(()=>{"use strict";vart={d:(e,n)=>{for(variinn)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{ArcCurve:()=>ca,CatmullRomCurve3:()=>ma,CubicBezierCurve:()=>xa,CubicBezierCurve3:()=>ya,EllipseCurve:()=>la,LineCurve:()=>Ma,LineCurve3:()=>ba,QuadraticBezierCurve:()=>wa,QuadraticBezierCurve3:()=>Ea,SplineCurve:()=>Sa});constn=100,i=1e3,r=1001,a=1002,o=1003,s=1006,l=1012,c=1014,h=1015,u=1016,d=1020,p=1022,f=1023,m=1026,g=1027,v=3e3,_=7680,x="300 es",y=[];for(lett=0;t<256;t++)y[t]=(t<16?"0":"")+t.toString(16);letM=1234567;constb={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){constt=4294967295*Math.random()|0,e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0;return(y[255&t]+y[t>>8&255]+y[t>>16&255]+y[t>>24&255]+"-"+y[255&e]+y[e>>8&255]+"-"+y[e>>16&15|64]+y[e>>24&255]+"-"+y[63&n|128]+y[n>>8&255]+"-"+y[n>>16&255]+y[n>>24&255]+y[255&i]+y[i>>8&255]+y[i>>16&255]+y[i>>24&255]).toUpperCase()},clamp:function(t,e,n){returnMath.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){returni+(t-e)*(r-i)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},damp:function(t,e,n,i){returnb.lerp(t,e,1-Math.exp(-n*i))},pingpong:function(t,e=1){returne-Math.abs(b.euclideanModulo(t,2*e)-e)},smoothstep:function(t,e,n){returnt<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){returnt<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){returnt+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){returnt+Math.random()*(e-t)},randFloatSpread:function(t){returnt*(.5-Math.random())},seededRandom:function(t){returnvoid0!==t&&(M=t%2147483647),M=16807*M%2147483647,(M-1)/2147483646},degToRad:function(t){returnt*b.DEG2RAD},radToDeg:function(t){returnt*b.RAD2DEG},isPowerOfTwo:function(t){return0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){returnMath.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){returnMath.pow(2,Math.floor(Math.log(t)/Math.LN2))},setQuaternionFromProperEuler:function(t,e,n,i,r){consta=Math.cos,o=Math.sin,s=a(n/2),l=o(n/2),c=a((e+i)/2),h=o((e+i)/2),u=a((e-i)/2),d=o((e-i)/2),p=a((i-e)/2),f=o((i-e)/2);switch(r){case"XYX":t.set(s*h,l*u,l*d,s*c);break;case"YZY":t.set(l*d,s*h,l*u,s*c);break;case"ZXZ":t.set(l*u,l*d,s*h,s*c);break;case"XZX":t.set(s*h,l*f,l*p,s*c);break;case"YXY":t.set(l*p,s*h,l*f,s*c);break;case"ZYZ":t.set(l*f,l*p,s*h,s*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r)}}};functionw(){}Object.assign(w.prototype,{addEventListener:function(t,e){void0===this._listeners&&(this._listeners={});constn=this._listeners;void0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},hasEventListener:function(t,e){if(void0===this._listeners)return!1;constn=this._listeners;returnvoid0!==n[t]&&-1!==n[t].indexOf(e)},removeEventListener:function(t,e){if(void0===this._listeners)return;constn=this._listeners[t];if(void0!==n){constt=n.indexOf(e);-1!==t&&n.splice(t,1)}},dispatchEvent:function(t){if(void0===this._listeners)return;conste=this._listeners[t.type];if(void0!==e){t.target=this;constn=e.slice(0);for(lete=0,i=n.length;e<i;e++)n[e].call(this,t)}}});classE{constructor(t=0,e=0){this.x=t,this.y=e}getwidth(){returnthis.x}setwidth(t){this.x=t}getheight(){returnthis.y}setheight(t){this.y=t}set(t,e){returnthis.x=t,this.y=e,this}setScalar(t){returnthis.x=t,this.y=t,this}setX(t){returnthis.x=t,this}setY(t){returnthis.y=t,this}setComponent(t,e){switch(t){case0:this.x=e;break;case1:this.y=e;break;default:thrownewError("index is out of range: "+t)}returnthis}getComponent(t){switch(t){case0:returnthis.x;case1:returnthis.y;default:thrownewError("index is out of range: "+t)}}clone(){returnnewthis.constructor(this.x,this.y)}c