<!-- SOLID-PLAYTIME · part 70 -->
t.animations.slice(),this.userData=JSON.parse(JSON.stringify(t.userData)),e===!0)for(let n=0;n<t.children.length;n++){let i=t.children[n];this.add(i.clone())}return this}}Ne.DEFAULT_UP=new C(0,1,0);Ne.DEFAULT_MATRIX_AUTO_UPDATE=!0;Ne.DEFAULT_MATRIX_WORLD_AUTO_UPDATE=!0;var Ni=new C,Rs=new C,dm=new C,ws=new C,Ao=new C,So=new C,pb=new C,pm=new C,mm=new C,Um=new C,gm=new Le,vm=new Le,ym=new Le;class hi{constructor(t=new C,e=new C,n=new C){this.a=t,this.b=e,this.c=n}static getNormal(t,e,n,i){i.subVectors(n,e),Ni.subVectors(t,e),i.cross(Ni);let s=i.lengthSq();if(s>0)return i.multiplyScalar(1/Math.sqrt(s));return i.set(0,0,0)}static getBarycoord(t,e,n,i,s){Ni.subVectors(i,e),Rs.subVectors(n,e),dm.subVectors(t,e);let a=Ni.dot(Ni),r=Ni.dot(Rs),o=Ni.dot(dm),l=Rs.dot(Rs),c=Rs.dot(dm),u=a*l-r*r;if(u===0)return s.set(0,0,0),null;let f=1/u,h=(l*o-r*c)*f,p=(a*c-r*o)*f;return s.set(1-h-p,p,h)}static containsPoint(t,e,n,i){if(this.getBarycoord(t,e,n,i,ws)===null)return!1;return ws.x>=0&&ws.y>=0&&ws.x+ws.y<=1}static getInterpolation(t,e,n,i,s,a,r,o){if(this.getBarycoord(t,e,n,i,ws)===null){if(o.x=0,o.y=0,"z"in o)o.z=0;if("w"in o)o.w=0;return null}return o.setScalar(0),o.addScaledVector(s,ws.x),o.addScaledVector(a,ws.y),o.addScaledVector(r,ws.z),o}static getInterpolatedAttribute(t,e,n,i,s,a){return gm.setScalar(0),vm.setScalar(0),ym.setScalar(0),gm.fromBufferAttribute(t,e),vm.fromBufferAttribute(t,n),ym.fromBufferAttribute(t,i),a.setScalar(0),a.addScaledVector(gm,s.x),a.addScaledVector(vm,s.y),a.addScaledVector(ym,s.z),a}static isFrontFacing(t,e,n,i){return Ni.subVectors(n,e),Rs.subVectors(t,e),Ni.cross(Rs).dot(i)<0?!0:!1}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,n,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,i),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return Ni.subVectors(this.c,this.b),Rs.subVectors(this.a,this.b),Ni.cross(Rs).length()*0.5}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(0.3333333333333333)}getNormal(t){return hi.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return hi.getBarycoord(t,this.a,this.b,this.c,e)}getInterpolation(t,e,n,i,s){return hi.getInterpolation(t,this.a,this.b,this.c,e,n,i,s)}containsPoint(t){return hi.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return hi.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){let n=this.a,i=this.b,s=this.c,a,r;Ao.subVectors(i,n),So.subVectors(s,n),pm.subVectors(t,n);let o=Ao.dot(pm),l=So.dot(pm);if(o<=0&&l<=0)return e.copy(n);mm.subVectors(t,i);let c=Ao.dot(mm),u=So.dot(mm);if(c>=0&&u<=c)return e.copy(i);let f=o*u-c*l;if(f<=0&&o>=0&&c<=0)return a=o/(o-c),e.copy(n).addScaledVector(Ao,a);Um.subVectors(t,s);let h=Ao.dot(Um),p=So.dot(Um);if(p>=0&&h<=p)return e.copy(s);let v=h*l-o*p;if(v<=0&&l>=0&&p<=0)return r=l/(l-p),e.copy(n).addScaledVector(So,r);let y=c*p-h*u;if(y<=0&&u-c>=0&&h-p>=0)return pb.subVectors(s,i),r=(u-c)/(u-c+(h-p)),e.copy(i).addScaledVector(pb,r);let U=1/(y+v+f);return a=v*U,r=f*U,e.copy(n).addScaledVector(Ao,a).addScaledVector(So,r)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}var NE={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightsl