@needle-tools/engine 3.6.2 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -538,7 +538,7 @@ class On {
538
538
  const cs = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
539
539
  let bM = 1234567;
540
540
  const Nh = Math.PI / 180, Wd = 180 / Math.PI;
541
- function yr() {
541
+ function br() {
542
542
  const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
543
543
  return (cs[n & 255] + cs[n >> 8 & 255] + cs[n >> 16 & 255] + cs[n >> 24 & 255] + "-" + cs[e & 255] + cs[e >> 8 & 255] + "-" + cs[e >> 16 & 15 | 64] + cs[e >> 24 & 255] + "-" + cs[t & 63 | 128] + cs[t >> 8 & 255] + "-" + cs[t >> 16 & 255] + cs[t >> 24 & 255] + cs[i & 255] + cs[i >> 8 & 255] + cs[i >> 16 & 255] + cs[i >> 24 & 255]).toLowerCase();
544
544
  }
@@ -659,7 +659,7 @@ var Ls = /* @__PURE__ */ Object.freeze({
659
659
  __proto__: null,
660
660
  DEG2RAD: Nh,
661
661
  RAD2DEG: Wd,
662
- generateUUID: yr,
662
+ generateUUID: br,
663
663
  clamp: sn,
664
664
  euclideanModulo: aE,
665
665
  mapLinear: sz,
@@ -1465,7 +1465,7 @@ class lE {
1465
1465
  }
1466
1466
  class ul {
1467
1467
  constructor(e = null) {
1468
- this.isSource = !0, this.uuid = yr(), this.data = e, this.version = 0;
1468
+ this.isSource = !0, this.uuid = br(), this.data = e, this.version = 0;
1469
1469
  }
1470
1470
  set needsUpdate(e) {
1471
1471
  e === !0 && this.version++;
@@ -1502,7 +1502,7 @@ function G_(n) {
1502
1502
  let vz = 0;
1503
1503
  class Gt extends On {
1504
1504
  constructor(e = Gt.DEFAULT_IMAGE, t = Gt.DEFAULT_MAPPING, i = Vn, s = Vn, r = Ot, o = Uo, a = Ti, l = mi, c = 1, u = ln) {
1505
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: vz++ }), this.uuid = yr(), this.name = "", this.source = new ul(e), this.mipmaps = [], this.mapping = t, this.wrapS = i, this.wrapT = s, this.magFilter = r, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new V(0, 0), this.repeat = new V(1, 1), this.center = new V(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new mn(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = u, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
1505
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: vz++ }), this.uuid = br(), this.name = "", this.source = new ul(e), this.mipmaps = [], this.mapping = t, this.wrapS = i, this.wrapT = s, this.magFilter = r, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new V(0, 0), this.repeat = new V(1, 1), this.center = new V(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new mn(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = u, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
1506
1506
  }
1507
1507
  get image() {
1508
1508
  return this.source.data;
@@ -3188,7 +3188,7 @@ let Sz = 0;
3188
3188
  const CM = /* @__PURE__ */ new S(), Mu = /* @__PURE__ */ new xe(), za = /* @__PURE__ */ new Pe(), MA = /* @__PURE__ */ new S(), sp = /* @__PURE__ */ new S(), Ez = /* @__PURE__ */ new S(), Iz = /* @__PURE__ */ new xe(), SM = /* @__PURE__ */ new S(1, 0, 0), EM = /* @__PURE__ */ new S(0, 1, 0), IM = /* @__PURE__ */ new S(0, 0, 1), Mz = { type: "added" }, MM = { type: "removed" };
3189
3189
  class Ie extends On {
3190
3190
  constructor() {
3191
- super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Sz++ }), this.uuid = yr(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Ie.DefaultUp.clone();
3191
+ super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Sz++ }), this.uuid = br(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Ie.DefaultUp.clone();
3192
3192
  const e = new S(), t = new An(), i = new xe(), s = new S(1, 1, 1);
3193
3193
  function r() {
3194
3194
  i.setFromEuler(t, !1);
@@ -3473,7 +3473,7 @@ Ie.DefaultUp = /* @__PURE__ */ new S(0, 1, 0);
3473
3473
  Ie.DefaultMatrixAutoUpdate = !0;
3474
3474
  Ie.DefaultMatrixWorldAutoUpdate = !0;
3475
3475
  const xo = /* @__PURE__ */ new S(), Ga = /* @__PURE__ */ new S(), Y_ = /* @__PURE__ */ new S(), Qa = /* @__PURE__ */ new S(), Tu = /* @__PURE__ */ new S(), Pu = /* @__PURE__ */ new S(), TM = /* @__PURE__ */ new S(), K_ = /* @__PURE__ */ new S(), J_ = /* @__PURE__ */ new S(), Z_ = /* @__PURE__ */ new S();
3476
- class gr {
3476
+ class mr {
3477
3477
  constructor(e = new S(), t = new S(), i = new S()) {
3478
3478
  this.a = e, this.b = t, this.c = i;
3479
3479
  }
@@ -3523,22 +3523,22 @@ class gr {
3523
3523
  return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
3524
3524
  }
3525
3525
  getNormal(e) {
3526
- return gr.getNormal(this.a, this.b, this.c, e);
3526
+ return mr.getNormal(this.a, this.b, this.c, e);
3527
3527
  }
3528
3528
  getPlane(e) {
3529
3529
  return e.setFromCoplanarPoints(this.a, this.b, this.c);
3530
3530
  }
3531
3531
  getBarycoord(e, t) {
3532
- return gr.getBarycoord(e, this.a, this.b, this.c, t);
3532
+ return mr.getBarycoord(e, this.a, this.b, this.c, t);
3533
3533
  }
3534
3534
  getUV(e, t, i, s, r) {
3535
- return gr.getUV(e, this.a, this.b, this.c, t, i, s, r);
3535
+ return mr.getUV(e, this.a, this.b, this.c, t, i, s, r);
3536
3536
  }
3537
3537
  containsPoint(e) {
3538
- return gr.containsPoint(e, this.a, this.b, this.c);
3538
+ return mr.containsPoint(e, this.a, this.b, this.c);
3539
3539
  }
3540
3540
  isFrontFacing(e) {
3541
- return gr.isFrontFacing(this.a, this.b, this.c, e);
3541
+ return mr.isFrontFacing(this.a, this.b, this.c, e);
3542
3542
  }
3543
3543
  intersectsBox(e) {
3544
3544
  return e.intersectsTriangle(this);
@@ -3577,7 +3577,7 @@ class gr {
3577
3577
  let Tz = 0;
3578
3578
  class Dt extends On {
3579
3579
  constructor() {
3580
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Tz++ }), this.uuid = yr(), this.name = "", this.type = "Material", this.blending = Al, this.side = Fs, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = KS, this.blendDst = JS, this.blendEquation = xh, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = Nd, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = oE, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Xp, this.stencilZFail = Xp, this.stencilZPass = Xp, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3580
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Tz++ }), this.uuid = br(), this.name = "", this.type = "Material", this.blending = Al, this.side = Fs, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = KS, this.blendDst = JS, this.blendEquation = xh, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = Nd, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = oE, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Xp, this.stencilZFail = Xp, this.stencilZPass = Xp, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3581
3581
  }
3582
3582
  get alphaTest() {
3583
3583
  return this._alphaTest;
@@ -3839,10 +3839,10 @@ class Lz extends rt {
3839
3839
  }
3840
3840
  }
3841
3841
  let Fz = 0;
3842
- const Dr = /* @__PURE__ */ new Pe(), $_ = /* @__PURE__ */ new Ie(), Ru = /* @__PURE__ */ new S(), cr = /* @__PURE__ */ new ys(), rp = /* @__PURE__ */ new ys(), Un = /* @__PURE__ */ new S();
3842
+ const kr = /* @__PURE__ */ new Pe(), $_ = /* @__PURE__ */ new Ie(), Ru = /* @__PURE__ */ new S(), cr = /* @__PURE__ */ new ys(), rp = /* @__PURE__ */ new ys(), Un = /* @__PURE__ */ new S();
3843
3843
  class vt extends On {
3844
3844
  constructor() {
3845
- super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Fz++ }), this.uuid = yr(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
3845
+ super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Fz++ }), this.uuid = br(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
3846
3846
  }
3847
3847
  getIndex() {
3848
3848
  return this.index;
@@ -3887,22 +3887,22 @@ class vt extends On {
3887
3887
  return s !== void 0 && (s.transformDirection(e), s.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
3888
3888
  }
3889
3889
  applyQuaternion(e) {
3890
- return Dr.makeRotationFromQuaternion(e), this.applyMatrix4(Dr), this;
3890
+ return kr.makeRotationFromQuaternion(e), this.applyMatrix4(kr), this;
3891
3891
  }
3892
3892
  rotateX(e) {
3893
- return Dr.makeRotationX(e), this.applyMatrix4(Dr), this;
3893
+ return kr.makeRotationX(e), this.applyMatrix4(kr), this;
3894
3894
  }
3895
3895
  rotateY(e) {
3896
- return Dr.makeRotationY(e), this.applyMatrix4(Dr), this;
3896
+ return kr.makeRotationY(e), this.applyMatrix4(kr), this;
3897
3897
  }
3898
3898
  rotateZ(e) {
3899
- return Dr.makeRotationZ(e), this.applyMatrix4(Dr), this;
3899
+ return kr.makeRotationZ(e), this.applyMatrix4(kr), this;
3900
3900
  }
3901
3901
  translate(e, t, i) {
3902
- return Dr.makeTranslation(e, t, i), this.applyMatrix4(Dr), this;
3902
+ return kr.makeTranslation(e, t, i), this.applyMatrix4(kr), this;
3903
3903
  }
3904
3904
  scale(e, t, i) {
3905
- return Dr.makeScale(e, t, i), this.applyMatrix4(Dr), this;
3905
+ return kr.makeScale(e, t, i), this.applyMatrix4(kr), this;
3906
3906
  }
3907
3907
  lookAt(e) {
3908
3908
  return $_.lookAt(e), $_.updateMatrix(), this.applyMatrix4($_.matrix), this;
@@ -4242,7 +4242,7 @@ function FA(n, e, t, i, s, r, o, a, l, c, u, d) {
4242
4242
  n.isSkinnedMesh && (n.boneTransform(c, ql), n.boneTransform(u, Xl), n.boneTransform(d, Yl));
4243
4243
  const p = Uz(n, e, t, i, ql, Xl, Yl, sx);
4244
4244
  if (p) {
4245
- a && (DA.fromBufferAttribute(a, c), kA.fromBufferAttribute(a, u), OA.fromBufferAttribute(a, d), p.uv = gr.getUV(sx, ql, Xl, Yl, DA, kA, OA, new V())), l && (DA.fromBufferAttribute(l, c), kA.fromBufferAttribute(l, u), OA.fromBufferAttribute(l, d), p.uv2 = gr.getUV(sx, ql, Xl, Yl, DA, kA, OA, new V()));
4245
+ a && (DA.fromBufferAttribute(a, c), kA.fromBufferAttribute(a, u), OA.fromBufferAttribute(a, d), p.uv = mr.getUV(sx, ql, Xl, Yl, DA, kA, OA, new V())), l && (DA.fromBufferAttribute(l, c), kA.fromBufferAttribute(l, u), OA.fromBufferAttribute(l, d), p.uv2 = mr.getUV(sx, ql, Xl, Yl, DA, kA, OA, new V()));
4246
4246
  const g = {
4247
4247
  a: c,
4248
4248
  b: u,
@@ -4250,7 +4250,7 @@ function FA(n, e, t, i, s, r, o, a, l, c, u, d) {
4250
4250
  normal: new S(),
4251
4251
  materialIndex: 0
4252
4252
  };
4253
- gr.getNormal(ql, Xl, Yl, g.normal), p.face = g;
4253
+ mr.getNormal(ql, Xl, Yl, g.normal), p.face = g;
4254
4254
  }
4255
4255
  return p;
4256
4256
  }
@@ -8057,7 +8057,7 @@ void main() {
8057
8057
  alphaTest: { value: 0 },
8058
8058
  uvTransform: { value: /* @__PURE__ */ new mn() }
8059
8059
  }
8060
- }, pr = {
8060
+ }, gr = {
8061
8061
  basic: {
8062
8062
  uniforms: /* @__PURE__ */ Ts([
8063
8063
  Ye.common,
@@ -8281,9 +8281,9 @@ void main() {
8281
8281
  fragmentShader: Rt.shadow_frag
8282
8282
  }
8283
8283
  };
8284
- pr.physical = {
8284
+ gr.physical = {
8285
8285
  uniforms: /* @__PURE__ */ Ts([
8286
- pr.standard.uniforms,
8286
+ gr.standard.uniforms,
8287
8287
  {
8288
8288
  clearcoat: { value: 0 },
8289
8289
  clearcoatMap: { value: null },
@@ -8331,9 +8331,9 @@ function wQ(n, e, t, i, s, r, o) {
8331
8331
  new gi(1, 1, 1),
8332
8332
  new Lt({
8333
8333
  name: "BackgroundCubeMaterial",
8334
- uniforms: jd(pr.backgroundCube.uniforms),
8335
- vertexShader: pr.backgroundCube.vertexShader,
8336
- fragmentShader: pr.backgroundCube.fragmentShader,
8334
+ uniforms: jd(gr.backgroundCube.uniforms),
8335
+ vertexShader: gr.backgroundCube.vertexShader,
8336
+ fragmentShader: gr.backgroundCube.fragmentShader,
8337
8337
  side: Mn,
8338
8338
  depthTest: !1,
8339
8339
  depthWrite: !1,
@@ -8349,9 +8349,9 @@ function wQ(n, e, t, i, s, r, o) {
8349
8349
  new Xn(2, 2),
8350
8350
  new Lt({
8351
8351
  name: "BackgroundMaterial",
8352
- uniforms: jd(pr.background.uniforms),
8353
- vertexShader: pr.background.vertexShader,
8354
- fragmentShader: pr.background.fragmentShader,
8352
+ uniforms: jd(gr.background.uniforms),
8353
+ vertexShader: gr.background.vertexShader,
8354
+ fragmentShader: gr.background.fragmentShader,
8355
8355
  side: Fs,
8356
8356
  depthTest: !1,
8357
8357
  depthWrite: !1,
@@ -10529,7 +10529,7 @@ function KH(n, e, t, i, s, r, o) {
10529
10529
  L.morphAttributes.position !== void 0 && (Re = 1), L.morphAttributes.normal !== void 0 && (Re = 2), L.morphAttributes.color !== void 0 && (Re = 3);
10530
10530
  let ge, ie, ae, we;
10531
10531
  if (K) {
10532
- const at = pr[K];
10532
+ const at = gr[K];
10533
10533
  ge = at.vertexShader, ie = at.fragmentShader;
10534
10534
  } else
10535
10535
  ge = x.vertexShader, ie = x.fragmentShader, l.update(x), ae = l.getVertexShaderID(x), we = l.getFragmentShaderID(x);
@@ -10654,7 +10654,7 @@ function KH(n, e, t, i, s, r, o) {
10654
10654
  const M = g[x.type];
10655
10655
  let P;
10656
10656
  if (M) {
10657
- const k = pr[M];
10657
+ const k = gr[M];
10658
10658
  P = uE.clone(k.uniforms);
10659
10659
  } else
10660
10660
  P = x.uniforms;
@@ -13129,7 +13129,7 @@ class sr extends Ie {
13129
13129
  }
13130
13130
  class Am {
13131
13131
  constructor(e, t) {
13132
- this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = Bg, this.updateRange = { offset: 0, count: -1 }, this.version = 0, this.uuid = yr();
13132
+ this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = Bg, this.updateRange = { offset: 0, count: -1 }, this.version = 0, this.uuid = br();
13133
13133
  }
13134
13134
  onUploadCallback() {
13135
13135
  }
@@ -13152,7 +13152,7 @@ class Am {
13152
13152
  return this.array.set(e, t), this;
13153
13153
  }
13154
13154
  clone(e) {
13155
- e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = yr()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
13155
+ e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = br()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
13156
13156
  const t = new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]), i = new this.constructor(t, this.stride);
13157
13157
  return i.setUsage(this.usage), i;
13158
13158
  }
@@ -13160,7 +13160,7 @@ class Am {
13160
13160
  return this.onUploadCallback = e, this;
13161
13161
  }
13162
13162
  toJSON(e) {
13163
- return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = yr()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), {
13163
+ return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = br()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), {
13164
13164
  uuid: this.uuid,
13165
13165
  buffer: this.array.buffer._uuid,
13166
13166
  type: this.array.constructor.name,
@@ -13326,7 +13326,7 @@ let Dk = class extends Ie {
13326
13326
  l < e.near || l > e.far || t.push({
13327
13327
  distance: l,
13328
13328
  point: op.clone(),
13329
- uv: gr.getUV(op, GA, lp, QA, $M, hx, eT, new V()),
13329
+ uv: mr.getUV(op, GA, lp, QA, $M, hx, eT, new V()),
13330
13330
  face: null,
13331
13331
  object: this
13332
13332
  });
@@ -13475,7 +13475,7 @@ class no extends Gt {
13475
13475
  const oT = /* @__PURE__ */ new Pe(), AV = /* @__PURE__ */ new Pe();
13476
13476
  class cf {
13477
13477
  constructor(e = [], t = []) {
13478
- this.uuid = yr(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.boneTexture = null, this.boneTextureSize = 0, this.frame = -1, this.init();
13478
+ this.uuid = br(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.boneTexture = null, this.boneTextureSize = 0, this.frame = -1, this.init();
13479
13479
  }
13480
13480
  init() {
13481
13481
  const e = this.bones, t = this.boneInverses;
@@ -13563,7 +13563,7 @@ class cf {
13563
13563
  return e;
13564
13564
  }
13565
13565
  }
13566
- class dr extends rt {
13566
+ class fr extends rt {
13567
13567
  constructor(e, t, i, s = 1) {
13568
13568
  super(e, t, i), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = s;
13569
13569
  }
@@ -13578,7 +13578,7 @@ class dr extends rt {
13578
13578
  const aT = /* @__PURE__ */ new Pe(), lT = /* @__PURE__ */ new Pe(), WA = [], vV = /* @__PURE__ */ new Pe(), cp = /* @__PURE__ */ new Ae();
13579
13579
  class tb extends Ae {
13580
13580
  constructor(e, t, i) {
13581
- super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new dr(new Float32Array(i * 16), 16), this.instanceColor = null, this.count = i, this.frustumCulled = !1;
13581
+ super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new fr(new Float32Array(i * 16), 16), this.instanceColor = null, this.count = i, this.frustumCulled = !1;
13582
13582
  for (let s = 0; s < i; s++)
13583
13583
  this.setMatrixAt(s, vV);
13584
13584
  }
@@ -13604,7 +13604,7 @@ class tb extends Ae {
13604
13604
  }
13605
13605
  }
13606
13606
  setColorAt(e, t) {
13607
- this.instanceColor === null && (this.instanceColor = new dr(new Float32Array(this.instanceMatrix.count * 3), 3)), t.toArray(this.instanceColor.array, e * 3);
13607
+ this.instanceColor === null && (this.instanceColor = new fr(new Float32Array(this.instanceMatrix.count * 3), 3)), t.toArray(this.instanceColor.array, e * 3);
13608
13608
  }
13609
13609
  setMatrixAt(e, t) {
13610
13610
  t.toArray(this.instanceMatrix.array, e * 16);
@@ -13702,7 +13702,7 @@ let nn = class extends Ie {
13702
13702
  }
13703
13703
  };
13704
13704
  const dT = /* @__PURE__ */ new S(), fT = /* @__PURE__ */ new S();
13705
- class Ir extends nn {
13705
+ class Mr extends nn {
13706
13706
  constructor(e, t) {
13707
13707
  super(e, t), this.isLineSegments = !0, this.type = "LineSegments";
13708
13708
  }
@@ -14880,7 +14880,7 @@ class xm extends Dl {
14880
14880
  return new xm(e.radius, e.detail);
14881
14881
  }
14882
14882
  }
14883
- const KA = /* @__PURE__ */ new S(), JA = /* @__PURE__ */ new S(), gx = /* @__PURE__ */ new S(), ZA = /* @__PURE__ */ new gr();
14883
+ const KA = /* @__PURE__ */ new S(), JA = /* @__PURE__ */ new S(), gx = /* @__PURE__ */ new S(), ZA = /* @__PURE__ */ new mr();
14884
14884
  class EE extends vt {
14885
14885
  constructor(e = null, t = 1) {
14886
14886
  if (super(), this.type = "EdgesGeometry", this.parameters = {
@@ -14912,7 +14912,7 @@ class EE extends vt {
14912
14912
  }
14913
14913
  class Gh extends kg {
14914
14914
  constructor(e) {
14915
- super(e), this.uuid = yr(), this.type = "Shape", this.holes = [];
14915
+ super(e), this.uuid = br(), this.type = "Shape", this.holes = [];
14916
14916
  }
14917
14917
  getPointsHoles(e) {
14918
14918
  const t = [];
@@ -16353,7 +16353,7 @@ class $k extends ff {
16353
16353
  return this.copySampleValue_(e - 1);
16354
16354
  }
16355
16355
  }
16356
- class Sr {
16356
+ class Er {
16357
16357
  constructor(e, t, i, s) {
16358
16358
  if (e === void 0)
16359
16359
  throw new Error("THREE.KeyframeTrack: track name is undefined");
@@ -16533,20 +16533,20 @@ class Sr {
16533
16533
  return s.createInterpolant = this.createInterpolant, s;
16534
16534
  }
16535
16535
  }
16536
- Sr.prototype.TimeBufferType = Float32Array;
16537
- Sr.prototype.ValueBufferType = Float32Array;
16538
- Sr.prototype.DefaultInterpolation = Cl;
16539
- class nu extends Sr {
16536
+ Er.prototype.TimeBufferType = Float32Array;
16537
+ Er.prototype.ValueBufferType = Float32Array;
16538
+ Er.prototype.DefaultInterpolation = Cl;
16539
+ class nu extends Er {
16540
16540
  }
16541
16541
  nu.prototype.ValueTypeName = "bool";
16542
16542
  nu.prototype.ValueBufferType = Array;
16543
16543
  nu.prototype.DefaultInterpolation = jh;
16544
16544
  nu.prototype.InterpolantFactoryMethodLinear = void 0;
16545
16545
  nu.prototype.InterpolantFactoryMethodSmooth = void 0;
16546
- class Mm extends Sr {
16546
+ class Mm extends Er {
16547
16547
  }
16548
16548
  Mm.prototype.ValueTypeName = "color";
16549
- class Dc extends Sr {
16549
+ class Dc extends Er {
16550
16550
  }
16551
16551
  Dc.prototype.ValueTypeName = "number";
16552
16552
  class e2 extends ff {
@@ -16561,7 +16561,7 @@ class e2 extends ff {
16561
16561
  return r;
16562
16562
  }
16563
16563
  }
16564
- class Ea extends Sr {
16564
+ class Ea extends Er {
16565
16565
  InterpolantFactoryMethodLinear(e) {
16566
16566
  return new e2(this.times, this.values, this.getValueSize(), e);
16567
16567
  }
@@ -16569,19 +16569,19 @@ class Ea extends Sr {
16569
16569
  Ea.prototype.ValueTypeName = "quaternion";
16570
16570
  Ea.prototype.DefaultInterpolation = Cl;
16571
16571
  Ea.prototype.InterpolantFactoryMethodSmooth = void 0;
16572
- class su extends Sr {
16572
+ class su extends Er {
16573
16573
  }
16574
16574
  su.prototype.ValueTypeName = "string";
16575
16575
  su.prototype.ValueBufferType = Array;
16576
16576
  su.prototype.DefaultInterpolation = jh;
16577
16577
  su.prototype.InterpolantFactoryMethodLinear = void 0;
16578
16578
  su.prototype.InterpolantFactoryMethodSmooth = void 0;
16579
- class kc extends Sr {
16579
+ class kc extends Er {
16580
16580
  }
16581
16581
  kc.prototype.ValueTypeName = "vector";
16582
16582
  class ao {
16583
16583
  constructor(e, t = -1, i, s = q0) {
16584
- this.name = e, this.tracks = i, this.duration = t, this.blendMode = s, this.uuid = yr(), this.duration < 0 && this.resetDuration();
16584
+ this.name = e, this.tracks = i, this.duration = t, this.blendMode = s, this.uuid = br(), this.duration < 0 && this.resetDuration();
16585
16585
  }
16586
16586
  static parse(e) {
16587
16587
  const t = [], i = e.tracks, s = 1 / (e.fps || 1);
@@ -16599,7 +16599,7 @@ class ao {
16599
16599
  blendMode: e.blendMode
16600
16600
  };
16601
16601
  for (let r = 0, o = i.length; r !== o; ++r)
16602
- t.push(Sr.toJSON(i[r]));
16602
+ t.push(Er.toJSON(i[r]));
16603
16603
  return s;
16604
16604
  }
16605
16605
  static CreateFromMorphTargetSequence(e, t, i, s) {
@@ -17555,7 +17555,7 @@ class n2 extends xs {
17555
17555
  const A = s(e.data, g.data);
17556
17556
  m = new Sl(A, g.itemSize, g.offset, g.normalized);
17557
17557
  } else {
17558
- const A = dd(g.type, g.array), v = g.isInstancedBufferAttribute ? dr : rt;
17558
+ const A = dd(g.type, g.array), v = g.isInstancedBufferAttribute ? fr : rt;
17559
17559
  m = new v(A, g.itemSize, g.normalized);
17560
17560
  }
17561
17561
  g.name !== void 0 && (m.name = g.name), g.usage !== void 0 && m.setUsage(g.usage), g.updateRange !== void 0 && (m.updateRange.offset = g.updateRange.offset, m.updateRange.count = g.updateRange.count), o.setAttribute(p, m);
@@ -17858,7 +17858,7 @@ class r5 extends xs {
17858
17858
  case "InstancedMesh":
17859
17859
  u = a(e.geometry), d = l(e.material);
17860
17860
  const f = e.count, p = e.instanceMatrix, g = e.instanceColor;
17861
- o = new tb(u, d, f), o.instanceMatrix = new dr(new Float32Array(p.array), 16), g !== void 0 && (o.instanceColor = new dr(new Float32Array(g.array), g.itemSize));
17861
+ o = new tb(u, d, f), o.instanceMatrix = new fr(new Float32Array(p.array), 16), g !== void 0 && (o.instanceColor = new fr(new Float32Array(g.array), g.itemSize));
17862
17862
  break;
17863
17863
  case "LOD":
17864
17864
  o = new AE();
@@ -17870,7 +17870,7 @@ class r5 extends xs {
17870
17870
  o = new vE(a(e.geometry), l(e.material));
17871
17871
  break;
17872
17872
  case "LineSegments":
17873
- o = new Ir(a(e.geometry), l(e.material));
17873
+ o = new Mr(a(e.geometry), l(e.material));
17874
17874
  break;
17875
17875
  case "PointCloud":
17876
17876
  case "Points":
@@ -18692,7 +18692,7 @@ Qt.prototype.SetterByBindingTypeAndVersioning = [
18692
18692
  ];
18693
18693
  class _5 {
18694
18694
  constructor() {
18695
- this.isAnimationObjectGroup = !0, this.uuid = yr(), this._objects = Array.prototype.slice.call(arguments), this.nCachedObjects_ = 0;
18695
+ this.isAnimationObjectGroup = !0, this.uuid = br(), this._objects = Array.prototype.slice.call(arguments), this.nCachedObjects_ = 0;
18696
18696
  const e = {};
18697
18697
  this._indicesByUUID = e;
18698
18698
  for (let i = 0, s = arguments.length; i !== s; ++i)
@@ -19604,7 +19604,7 @@ class P5 extends Ie {
19604
19604
  }
19605
19605
  i.setAttribute("position", new nt(s, 3));
19606
19606
  const r = new cn({ fog: !1, toneMapped: !1 });
19607
- this.cone = new Ir(i, r), this.add(this.cone), this.update();
19607
+ this.cone = new Mr(i, r), this.add(this.cone), this.update();
19608
19608
  }
19609
19609
  dispose() {
19610
19610
  this.cone.geometry.dispose(), this.cone.material.dispose();
@@ -19616,7 +19616,7 @@ class P5 extends Ie {
19616
19616
  }
19617
19617
  }
19618
19618
  const Kl = /* @__PURE__ */ new S(), nv = /* @__PURE__ */ new Pe(), vx = /* @__PURE__ */ new Pe();
19619
- class R5 extends Ir {
19619
+ class R5 extends Mr {
19620
19620
  constructor(e) {
19621
19621
  const t = c2(e), i = new vt(), s = [], r = [], o = new ye(0, 0, 1), a = new ye(0, 1, 0);
19622
19622
  for (let c = 0; c < t.length; c++) {
@@ -19687,7 +19687,7 @@ class k5 extends Ie {
19687
19687
  this.light.updateWorldMatrix(!0, !1), e.lookAt(D5.setFromMatrixPosition(this.light.matrixWorld).negate());
19688
19688
  }
19689
19689
  }
19690
- let GE = class extends Ir {
19690
+ let GE = class extends Mr {
19691
19691
  constructor(e = 10, t = 10, i = 4473924, s = 8947848) {
19692
19692
  i = new ye(i), s = new ye(s);
19693
19693
  const r = t / 2, o = e / t, a = e / 2, l = [], c = [];
@@ -19705,7 +19705,7 @@ let GE = class extends Ir {
19705
19705
  this.geometry.dispose(), this.material.dispose();
19706
19706
  }
19707
19707
  };
19708
- class O5 extends Ir {
19708
+ class O5 extends Mr {
19709
19709
  constructor(e = 10, t = 16, i = 8, s = 64, r = 4473924, o = 8947848) {
19710
19710
  r = new ye(r), o = new ye(o);
19711
19711
  const a = [], l = [];
@@ -19765,7 +19765,7 @@ class h2 extends Ie {
19765
19765
  }
19766
19766
  }
19767
19767
  const rv = /* @__PURE__ */ new S(), Vi = /* @__PURE__ */ new eu();
19768
- class u2 extends Ir {
19768
+ class u2 extends Mr {
19769
19769
  constructor(e) {
19770
19770
  const t = new vt(), i = new cn({ color: 16777215, vertexColors: !0, toneMapped: !1 }), s = [], r = [], o = {};
19771
19771
  a("n1", "n2"), a("n2", "n4"), a("n4", "n3"), a("n3", "n1"), a("f1", "f2"), a("f2", "f4"), a("f4", "f3"), a("f3", "f1"), a("n1", "f1"), a("n2", "f2"), a("n3", "f3"), a("n4", "f4"), a("p", "n1"), a("p", "n2"), a("p", "n3"), a("p", "n4"), a("u1", "u2"), a("u2", "u3"), a("u3", "u1"), a("c", "t"), a("p", "c"), a("cn1", "cn2"), a("cn3", "cn4"), a("cf1", "cf2"), a("cf3", "cf4");
@@ -19801,7 +19801,7 @@ function $i(n, e, t, i, s, r, o) {
19801
19801
  }
19802
19802
  }
19803
19803
  const ov = /* @__PURE__ */ new ys();
19804
- class gb extends Ir {
19804
+ class gb extends Mr {
19805
19805
  constructor(e, t = 16776960) {
19806
19806
  const i = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), s = new Float32Array(8 * 3), r = new vt();
19807
19807
  r.setIndex(new rt(i, 1)), r.setAttribute("position", new rt(s, 3)), super(r, new cn({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
@@ -19822,7 +19822,7 @@ class gb extends Ir {
19822
19822
  this.geometry.dispose(), this.material.dispose();
19823
19823
  }
19824
19824
  }
19825
- class TC extends Ir {
19825
+ class TC extends Mr {
19826
19826
  constructor(e, t = 16776960) {
19827
19827
  const i = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), s = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], r = new vt();
19828
19828
  r.setIndex(new rt(i, 1)), r.setAttribute("position", new nt(s, 3)), super(r, new cn({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
@@ -19880,7 +19880,7 @@ class F5 extends Ie {
19880
19880
  this.line.geometry.dispose(), this.line.material.dispose(), this.cone.geometry.dispose(), this.cone.material.dispose();
19881
19881
  }
19882
19882
  }
19883
- let gf = class extends Ir {
19883
+ let gf = class extends Mr {
19884
19884
  constructor(e = 1) {
19885
19885
  const t = [
19886
19886
  0,
@@ -20341,7 +20341,7 @@ const u8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20341
20341
  ImmediateRenderObject: Q5,
20342
20342
  IncrementStencilOp: ak,
20343
20343
  IncrementWrapStencilOp: ck,
20344
- InstancedBufferAttribute: dr,
20344
+ InstancedBufferAttribute: fr,
20345
20345
  InstancedBufferGeometry: LE,
20346
20346
  InstancedInterleavedBuffer: E5,
20347
20347
  InstancedMesh: tb,
@@ -20357,7 +20357,7 @@ const u8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20357
20357
  InterpolateSmooth: ey,
20358
20358
  InvertStencilOp: uk,
20359
20359
  KeepStencilOp: Xp,
20360
- KeyframeTrack: Sr,
20360
+ KeyframeTrack: Er,
20361
20361
  LOD: AE,
20362
20362
  LatheBufferGeometry: e8,
20363
20363
  LatheGeometry: hf,
@@ -20375,7 +20375,7 @@ const u8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20375
20375
  LineCurve3: zk,
20376
20376
  LineDashedMaterial: Kk,
20377
20377
  LineLoop: vE,
20378
- LineSegments: Ir,
20378
+ LineSegments: Mr,
20379
20379
  LinearEncoding: ln,
20380
20380
  LinearFilter: Ot,
20381
20381
  LinearInterpolant: RE,
@@ -20514,7 +20514,7 @@ const u8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20514
20514
  SRGBColorSpace: To,
20515
20515
  Scene: sr,
20516
20516
  ShaderChunk: Rt,
20517
- ShaderLib: pr,
20517
+ ShaderLib: gr,
20518
20518
  ShaderMaterial: Lt,
20519
20519
  ShadowMaterial: IE,
20520
20520
  Shape: Gh,
@@ -20560,7 +20560,7 @@ const u8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20560
20560
  TorusGeometry: la,
20561
20561
  TorusKnotBufferGeometry: c8,
20562
20562
  TorusKnotGeometry: Em,
20563
- Triangle: gr,
20563
+ Triangle: mr,
20564
20564
  TriangleFanDrawMode: rE,
20565
20565
  TriangleStripDrawMode: ik,
20566
20566
  TrianglesDrawMode: YN,
@@ -21205,7 +21205,7 @@ function k8(n, e) {
21205
21205
  while (!t && (n = Object.getPrototypeOf(n)));
21206
21206
  return t;
21207
21207
  }
21208
- const kr = le("debuginput");
21208
+ const Or = le("debuginput");
21209
21209
  class xx {
21210
21210
  constructor(e) {
21211
21211
  h(this, "key");
@@ -21291,7 +21291,7 @@ class L8 extends EventTarget {
21291
21291
  if (!(t.changedTouches.length <= 0) && this.canReceiveInput(t) !== !1)
21292
21292
  for (let i = 0; i < t.changedTouches.length; i++) {
21293
21293
  const s = t.changedTouches[i], r = this.getPointerIndex(s.identifier);
21294
- kr && ts(`touch start #${r}, identifier:${s.identifier}`);
21294
+ Or && ts(`touch start #${r}, identifier:${s.identifier}`);
21295
21295
  const o = { button: r, clientX: s.clientX, clientY: s.clientY, pointerType: "touch", source: t };
21296
21296
  this.onDown(o);
21297
21297
  }
@@ -21309,7 +21309,7 @@ class L8 extends EventTarget {
21309
21309
  const s = t.changedTouches[i], r = this.getPointerIndex(s.identifier);
21310
21310
  if (!this.isNewEvent(t.timeStamp, r, this._pointerUpTimestamp))
21311
21311
  continue;
21312
- kr && ts(`touch up #${r}, identifier:${s.identifier}`);
21312
+ Or && ts(`touch up #${r}, identifier:${s.identifier}`);
21313
21313
  const o = { button: r, clientX: s.clientX, clientY: s.clientY, pointerType: "touch", source: t };
21314
21314
  this.onUp(o);
21315
21315
  }
@@ -21544,13 +21544,13 @@ class L8 extends EventTarget {
21544
21544
  return null;
21545
21545
  }
21546
21546
  createPointerDown(t) {
21547
- kr && ts("Create Pointer down"), this.onDown(t);
21547
+ Or && ts("Create Pointer down"), this.onDown(t);
21548
21548
  }
21549
21549
  createPointerMove(t) {
21550
- kr && ts("Create Pointer move"), this.onMove(t);
21550
+ Or && ts("Create Pointer move"), this.onMove(t);
21551
21551
  }
21552
21552
  createPointerUp(t) {
21553
- kr && ts("Create Pointer up"), this.onUp(t);
21553
+ Or && ts("Create Pointer up"), this.onUp(t);
21554
21554
  }
21555
21555
  convertScreenspaceToRaycastSpace(t) {
21556
21556
  t.x = (t.x - this.context.domX) / this.context.domWidth * 2 - 1, t.y = -((t.y - this.context.domY) / this.context.domHeight) * 2 + 1;
@@ -21572,15 +21572,15 @@ class L8 extends EventTarget {
21572
21572
  if (this.context.isInXR)
21573
21573
  return !0;
21574
21574
  const i = this.context.domElement.getBoundingClientRect(), s = t.clientX, r = t.clientY, o = s >= i.x && s <= i.right && r >= i.y && r <= i.bottom;
21575
- return kr && !o && console.log("Not in rect", i, s, r), o;
21575
+ return Or && !o && console.log("Not in rect", i, s, r), o;
21576
21576
  }
21577
21577
  onDown(t) {
21578
21578
  var i;
21579
- if (kr && console.log(t.pointerType, "DOWN", t.button), !!this.isInRect(t)) {
21579
+ if (Or && console.log(t.pointerType, "DOWN", t.button), !!this.isInRect(t)) {
21580
21580
  if (t.pointerType === "mouse") {
21581
21581
  const s = this._pointerUpTimestamp[t.button];
21582
21582
  if (s > 0 && s === ((i = t.source) == null ? void 0 : i.timeStamp)) {
21583
- kr && console.log("Ignoring mouse.down for touch.up");
21583
+ Or && console.log("Ignoring mouse.down for touch.up");
21584
21584
  return;
21585
21585
  }
21586
21586
  }
@@ -21596,18 +21596,18 @@ class L8 extends EventTarget {
21596
21596
  // moveEvent?: Event;
21597
21597
  onMove(t) {
21598
21598
  const i = this.getPointerPressed(t.button);
21599
- i === !1 && !this.isInRect(t) || t.pointerType === "touch" && !i || (kr && console.log(t.pointerType, "MOVE", t.button), this.updatePointerPosition(t), this.setPointerStateT(t.button, this._pointerEvent, t.source), this.onDispatchEvent("pointermove", t));
21599
+ i === !1 && !this.isInRect(t) || t.pointerType === "touch" && !i || (Or && console.log(t.pointerType, "MOVE", t.button), this.updatePointerPosition(t), this.setPointerStateT(t.button, this._pointerEvent, t.source), this.onDispatchEvent("pointermove", t));
21600
21600
  }
21601
21601
  onUp(t) {
21602
21602
  var o;
21603
21603
  if (((o = this._pointerIds) == null ? void 0 : o.length) >= t.button && (this._pointerIds[t.button] = -1), !this._pointerPressed[t.button]) {
21604
- kr && console.log(t.pointerType, "UP", t.button, "was not down");
21604
+ Or && console.log(t.pointerType, "UP", t.button, "was not down");
21605
21605
  return;
21606
21606
  }
21607
- for (kr && console.log(t.pointerType, "UP", t.button), this.setPointerState(t.button, this._pointerPressed, !1), this.setPointerStateT(t.button, this._pointerEvent, t.source), this.setPointerState(t.button, this._pointerUp, !0); t.button >= this._pointerUsed.length; )
21607
+ for (Or && console.log(t.pointerType, "UP", t.button), this.setPointerState(t.button, this._pointerPressed, !1), this.setPointerStateT(t.button, this._pointerEvent, t.source), this.setPointerState(t.button, this._pointerUp, !0); t.button >= this._pointerUsed.length; )
21608
21608
  this._pointerUsed.push(!1);
21609
21609
  if (this.setPointerState(t.button, this._pointerUsed, !1), this.updatePointerPosition(t), !this._pointerPositionDown[t.button]) {
21610
- kr && Ia("Received pointer up event without matching down event for button: " + t.button), console.warn("Received pointer up event without matching down event for button: " + t.button);
21610
+ Or && Ia("Received pointer up event without matching down event for button: " + t.button), console.warn("Received pointer up event without matching down event for button: " + t.button);
21611
21611
  return;
21612
21612
  }
21613
21613
  const s = t.clientX - this._pointerPositionDown[t.button].x, r = t.clientY - this._pointerPositionDown[t.button].y;
@@ -21741,7 +21741,7 @@ function jn(n, e = null) {
21741
21741
  const t = e ?? Zy.get();
21742
21742
  return n.parent ? (n.getWorldQuaternion(t), t) : t.copy(n.quaternion);
21743
21743
  }
21744
- function Er(n, e) {
21744
+ function Ir(n, e) {
21745
21745
  if (!n)
21746
21746
  return;
21747
21747
  e !== Qh && Qh.copy(e);
@@ -21751,7 +21751,7 @@ function Er(n, e) {
21751
21751
  n.quaternion.set(s.x, s.y, s.z, s.w);
21752
21752
  }
21753
21753
  function z8(n, e, t, i, s) {
21754
- Qh.set(e, t, i, s), Er(n, Qh);
21754
+ Qh.set(e, t, i, s), Ir(n, Qh);
21755
21755
  }
21756
21756
  const G8 = new xl(() => new S(), 100), Q8 = new S();
21757
21757
  function ms(n, e = null) {
@@ -21782,7 +21782,7 @@ function j8(n) {
21782
21782
  }
21783
21783
  function q8(n, e) {
21784
21784
  const t = Zy.get();
21785
- Er(n, t.setFromEuler(e));
21785
+ Ir(n, t.setFromEuler(e));
21786
21786
  }
21787
21787
  function VE(n) {
21788
21788
  const e = j8(n), t = W8;
@@ -21792,7 +21792,7 @@ function X8(n, e) {
21792
21792
  WE(n, e.x, e.y, e.z, !0);
21793
21793
  }
21794
21794
  function WE(n, e, t, i, s = !0) {
21795
- s && (e = $e.toRadians(e), t = $e.toRadians(t), i = $e.toRadians(i)), XT.set(e, t, i), Qh.setFromEuler(XT), Er(n, Qh);
21795
+ s && (e = $e.toRadians(e), t = $e.toRadians(t), i = $e.toRadians(i)), XT.set(e, t, i), Qh.setFromEuler(XT), Ir(n, Qh);
21796
21796
  }
21797
21797
  function FC(n, e = !0) {
21798
21798
  n && (e ? function t(i) {
@@ -27993,7 +27993,7 @@ class j6 extends W6 {
27993
27993
  }
27994
27994
  }
27995
27995
  }
27996
- var fr = /* @__PURE__ */ ((n) => (n[n.OnConnection = 0] = "OnConnection", n[n.OnRoomJoin = 1] = "OnRoomJoin", n[n.Queued = 2] = "Queued", n[n.Immediate = 3] = "Immediate", n))(fr || {});
27996
+ var pr = /* @__PURE__ */ ((n) => (n[n.OnConnection = 0] = "OnConnection", n[n.OnRoomJoin = 1] = "OnRoomJoin", n[n.Queued = 2] = "Queued", n[n.Immediate = 3] = "Immediate", n))(pr || {});
27997
27997
  const CP = "https://urls.needle.tools/default-networking-backend/index";
27998
27998
  let Jl = "wss://needle-tiny-starter.glitch.me/socket";
27999
27999
  const qs = !!le("debugnet"), fv = !!(qs || le("debugowner"));
@@ -28155,7 +28155,7 @@ class Y6 {
28155
28155
  return e;
28156
28156
  }
28157
28157
  joinRoom(e, t = !1) {
28158
- this.connect(), qs && console.log("join: " + e), this.send("join-room", { room: e, viewOnly: t }, fr.OnConnection);
28158
+ this.connect(), qs && console.log("join: " + e), this.send("join-room", { room: e, viewOnly: t }, pr.OnConnection);
28159
28159
  }
28160
28160
  leaveRoom(e = null) {
28161
28161
  if (e || (e = this.currentRoomName), !e) {
@@ -28164,8 +28164,8 @@ class Y6 {
28164
28164
  }
28165
28165
  this.send("leave-room", { room: e });
28166
28166
  }
28167
- send(e, t = null, i = fr.Queued) {
28168
- if (t === null && (t = {}), i === fr.Queued) {
28167
+ send(e, t = null, i = pr.Queued) {
28168
+ if (t === null && (t = {}), i === pr.Queued) {
28169
28169
  this._defaultMessagesBuffer.push({ key: e, value: t });
28170
28170
  return;
28171
28171
  }
@@ -28190,7 +28190,7 @@ class Y6 {
28190
28190
  for (const s in this._defaultMessagesBuffer) {
28191
28191
  const r = this._defaultMessagesBuffer[s];
28192
28192
  if (e <= 1) {
28193
- this.sendWithWebsocket(r.key, r.value, fr.Immediate);
28193
+ this.sendWithWebsocket(r.key, r.value, pr.Immediate);
28194
28194
  break;
28195
28195
  }
28196
28196
  const o = this.toMessage(r.key, r.value);
@@ -28252,7 +28252,7 @@ class Y6 {
28252
28252
  ` + Jl);
28253
28253
  const r = new y2.WebsocketBuilder(Jl).onOpen(() => {
28254
28254
  this._connectingToWebsocketPromise = null, this._ws = r, this.connected = !0, console.log(`⊞ Connected to networking backend
28255
- ` + Jl), s(!0), this.onSendQueued(fr.OnConnection);
28255
+ ` + Jl), s(!0), this.onSendQueued(pr.OnConnection);
28256
28256
  }).onClose((o) => {
28257
28257
  this._connectingToWebsocketPromise = null, this.connected = !1, this._isInRoom = !1, s(!1);
28258
28258
  }).onError((o, a) => {
@@ -28311,7 +28311,7 @@ class Y6 {
28311
28311
  const l = e;
28312
28312
  this._currentRoomName = l.room, this._currentRoomViewId = l.viewId, this._currentRoomAllowEditing = l.allowEditing ?? !0, console.log("Room view id", this._currentRoomViewId), this._currentInRoom.length = 0, this._currentInRoom.push(...l.inRoom), qs && console.log("joined room with", this._currentInRoom, this.context.alias ?? "");
28313
28313
  }
28314
- this.onSendQueued(fr.OnRoomJoin);
28314
+ this.onSendQueued(pr.OnRoomJoin);
28315
28315
  break;
28316
28316
  case "left-room":
28317
28317
  e.room === this.currentRoomName && (this._isInRoom = !1, this._currentRoomName = null, this._currentInRoom.length = 0);
@@ -28350,7 +28350,7 @@ class Y6 {
28350
28350
  data: t
28351
28351
  };
28352
28352
  }
28353
- sendWithWebsocket(e, t, i = fr.OnRoomJoin) {
28353
+ sendWithWebsocket(e, t, i = pr.OnRoomJoin) {
28354
28354
  if (!this._ws) {
28355
28355
  const r = this._waitingForSocket[i] || [];
28356
28356
  r.push(() => this.sendWithWebsocket(e, t, i)), this._waitingForSocket[i] = r;
@@ -28543,11 +28543,11 @@ function $E(n, e, t = !0) {
28543
28543
  return;
28544
28544
  }
28545
28545
  const r = new dO(s);
28546
- e.send("instance-destroyed", r, fr.Queued);
28546
+ e.send("instance-destroyed", r, pr.Queued);
28547
28547
  }
28548
28548
  function c9(n, e) {
28549
28549
  const t = new dO(n);
28550
- e.send("instance-destroyed", t, fr.Queued);
28550
+ e.send("instance-destroyed", t, pr.Queued);
28551
28551
  }
28552
28552
  function h9(n) {
28553
28553
  n.connection.beginListen("instance-destroyed", (e) => {
@@ -28932,7 +28932,7 @@ Object.getOwnPropertyDescriptor(Ie.prototype, "transform") || Object.definePrope
28932
28932
  });
28933
28933
  A9(Ie);
28934
28934
  const Qg = Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), _O = Symbol("isUsingInstancing");
28935
- class br {
28935
+ class _r {
28936
28936
  static isUsingInstancing(e) {
28937
28937
  return e[_O] === !0;
28938
28938
  }
@@ -28940,7 +28940,7 @@ class br {
28940
28940
  static markDirty(e, t = !0) {
28941
28941
  if (e && (this.isUsingInstancing(e) && (e[Qg] = !0, e.matrixWorldNeedsUpdate = !0), t))
28942
28942
  for (const i of e.children)
28943
- br.markDirty(i, !0);
28943
+ _r.markDirty(i, !0);
28944
28944
  }
28945
28945
  }
28946
28946
  const TP = Symbol("gltf-loader-internal-usage-tracker"), C9 = le("debugusers"), yg = class {
@@ -29138,7 +29138,7 @@ function L9(n, e) {
29138
29138
  n[_O] = e;
29139
29139
  }
29140
29140
  function s1(n) {
29141
- return br.isUsingInstancing(n);
29141
+ return _r.isUsingInstancing(n);
29142
29142
  }
29143
29143
  function Tb(n, e) {
29144
29144
  return Eg(n, e, !0, !0);
@@ -29252,7 +29252,7 @@ function BO(n, e, t, i, s, r) {
29252
29252
  }
29253
29253
  e.animations && e.animations.length > 0 && (l.animations = [...e.animations]);
29254
29254
  const c = e.parent;
29255
- if (c && c.add(l), t != null && t.position ? vn(l, t.position) : l.position.copy(e.position), t != null && t.rotation ? Er(l, t.rotation) : l.quaternion.copy(e.quaternion), t != null && t.scale ? l.scale.copy(t.scale) : l.scale.copy(e.scale), t != null && t.parent && t.parent !== "scene") {
29255
+ if (c && c.add(l), t != null && t.position ? vn(l, t.position) : l.position.copy(e.position), t != null && t.rotation ? Ir(l, t.rotation) : l.quaternion.copy(e.quaternion), t != null && t.scale ? l.scale.copy(t.scale) : l.scale.copy(e.scale), t != null && t.parent && t.parent !== "scene") {
29256
29256
  let d = null;
29257
29257
  if (typeof t.parent == "string" ? d = Eg(t.parent, n.scene, !0) : d = t.parent, d) {
29258
29258
  const f = t.keepWorldPosition === !0 ? d.attach : d.add;
@@ -29944,7 +29944,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
29944
29944
  DEPTH: 0,
29945
29945
  LUMA: 1,
29946
29946
  COLOR: 2
29947
- }, _r = {
29947
+ }, xr = {
29948
29948
  NONE: 0,
29949
29949
  DEPTH: 1,
29950
29950
  CONVOLUTION: 2
@@ -33746,7 +33746,7 @@ function UW(n, e, t) {
33746
33746
  const r = i !== void 0 && /mainImage/.test(i), o = i !== void 0 && /mainUv/.test(i);
33747
33747
  if (t.attributes |= e.getAttributes(), i === void 0)
33748
33748
  throw new Error(`Missing fragment shader (${e.name})`);
33749
- if (o && t.attributes & _r.CONVOLUTION)
33749
+ if (o && t.attributes & xr.CONVOLUTION)
33750
33750
  throw new Error(`Effects that transform UVs are incompatible with convolution effects (${e.name})`);
33751
33751
  if (!r && !o)
33752
33752
  throw new Error(`Could not find mainImage or mainUv function (${e.name})`);
@@ -33781,7 +33781,7 @@ function UW(n, e, t) {
33781
33781
  ` : `color0 = sRGBToLinear(color0);
33782
33782
  `), e.outputColorSpace !== FO ? t.colorSpace = e.outputColorSpace : e.inputColorSpace !== null && (t.colorSpace = e.inputColorSpace);
33783
33783
  const _ = /MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;
33784
- d += `${n}MainImage(color0, UV, `, t.attributes & _r.DEPTH && _.test(i) && (d += "depth, ", t.readDepth = !0), d += `color1);
33784
+ d += `${n}MainImage(color0, UV, `, t.attributes & xr.DEPTH && _.test(i) && (d += "depth, ", t.readDepth = !0), d += `color1);
33785
33785
  `;
33786
33786
  const y = n + "BlendOpacity";
33787
33787
  t.uniforms.set(y, v.opacity), d += `color0 = blend${v.blendFunction}(color0, color1, ${y});
@@ -33863,9 +33863,9 @@ var LP = class extends as {
33863
33863
  let e = 0;
33864
33864
  for (const o of this.effects)
33865
33865
  if (o.blendMode.blendFunction === Nt.DST)
33866
- n.attributes |= o.getAttributes() & _r.DEPTH;
33866
+ n.attributes |= o.getAttributes() & xr.DEPTH;
33867
33867
  else {
33868
- if (n.attributes & o.getAttributes() & _r.CONVOLUTION)
33868
+ if (n.attributes & o.getAttributes() & xr.CONVOLUTION)
33869
33869
  throw new Error(`Convolution effects cannot be merged (${o.name})`);
33870
33870
  UW("e" + e++, o, n);
33871
33871
  }
@@ -33874,7 +33874,7 @@ var LP = class extends as {
33874
33874
  for (const o of n.blendModes.values())
33875
33875
  t += o.getShaderCode().replace(r, `blend${o.blendFunction}`) + `
33876
33876
  `;
33877
- n.attributes & _r.DEPTH ? (n.readDepth && (i = `float depth = readDepth(UV);
33877
+ n.attributes & xr.DEPTH ? (n.readDepth && (i = `float depth = readDepth(UV);
33878
33878
 
33879
33879
  ` + i), this.needsDepthTexture = this.getDepthTexture() === null) : this.needsDepthTexture = !1, n.colorSpace === Ai && (i += `color0 = sRGBToLinear(color0);
33880
33880
  `), n.uvTransformation ? (s = `vec2 transformedUv = vUv;
@@ -34950,7 +34950,7 @@ var LP = class extends as {
34950
34950
  [oi.FRAGMENT_MAIN_IMAGE, null],
34951
34951
  [oi.VERTEX_HEAD, null],
34952
34952
  [oi.VERTEX_MAIN_SUPPORT, null]
34953
- ]), this.defines = /* @__PURE__ */ new Map(), this.uniforms = /* @__PURE__ */ new Map(), this.blendModes = /* @__PURE__ */ new Map(), this.extensions = /* @__PURE__ */ new Set(), this.attributes = _r.NONE, this.varyings = /* @__PURE__ */ new Set(), this.uvTransformation = !1, this.readDepth = !1, this.colorSpace = Rb;
34953
+ ]), this.defines = /* @__PURE__ */ new Map(), this.uniforms = /* @__PURE__ */ new Map(), this.blendModes = /* @__PURE__ */ new Map(), this.extensions = /* @__PURE__ */ new Set(), this.attributes = xr.NONE, this.varyings = /* @__PURE__ */ new Set(), this.uvTransformation = !1, this.readDepth = !1, this.colorSpace = Rb;
34954
34954
  }
34955
34955
  }, jW = class extends Set {
34956
34956
  /**
@@ -35204,7 +35204,7 @@ var LP = class extends as {
35204
35204
  * @param {String} [options.vertexShader=null] - The vertex shader. Most effects don't need one.
35205
35205
  */
35206
35206
  constructor(n, e, {
35207
- attributes: t = _r.NONE,
35207
+ attributes: t = xr.NONE,
35208
35208
  blendFunction: i = Nt.NORMAL,
35209
35209
  defines: s = /* @__PURE__ */ new Map(),
35210
35210
  uniforms: r = /* @__PURE__ */ new Map(),
@@ -35789,7 +35789,7 @@ outputColor=vec4(ra.x,inputColor.g,ba.x,max(max(ra.y,ba.y),inputColor.a));}`, Pj
35789
35789
  } = {}) {
35790
35790
  super("ChromaticAberrationEffect", Tj, {
35791
35791
  vertexShader: Pj,
35792
- attributes: _r.CONVOLUTION,
35792
+ attributes: xr.CONVOLUTION,
35793
35793
  uniforms: /* @__PURE__ */ new Map([
35794
35794
  ["offset", new _e(n)],
35795
35795
  ["modulationOffset", new _e(t)]
@@ -35889,7 +35889,7 @@ uniform lowp sampler2D nearCoCBuffer;uniform float scale;void mainImage(const in
35889
35889
  } = {}) {
35890
35890
  super("DepthOfFieldEffect", Rj, {
35891
35891
  blendFunction: e,
35892
- attributes: _r.DEPTH,
35892
+ attributes: xr.DEPTH,
35893
35893
  uniforms: /* @__PURE__ */ new Map([
35894
35894
  ["nearColorBuffer", new _e(null)],
35895
35895
  ["farColorBuffer", new _e(null)],
@@ -36256,7 +36256,7 @@ var XO = class extends h1 {
36256
36256
  * @param {Object} [options] - The options. See {@link BloomEffect} for details.
36257
36257
  */
36258
36258
  constructor(n, e, t) {
36259
- super(t), this.setAttributes(this.getAttributes() | _r.DEPTH), this.camera = e, this.depthPass = new FW(n, e), this.clearPass = new Bb(!0, !1, !1), this.clearPass.overrideClearColor = new ye(0), this.depthMaskPass = new ra(new aW());
36259
+ super(t), this.setAttributes(this.getAttributes() | xr.DEPTH), this.camera = e, this.depthPass = new FW(n, e), this.clearPass = new Bb(!0, !1, !1), this.clearPass.overrideClearColor = new ye(0), this.depthMaskPass = new ra(new aW());
36260
36260
  const i = this.depthMaskMaterial;
36261
36261
  i.copyCameraSettings(e), i.depthBuffer1 = this.depthPass.texture, i.depthPacking1 = X0, i.depthMode = zd, this.renderTargetMasked = new si(1, 1, { depthBuffer: !1 }), this.renderTargetMasked.texture.name = "Bloom.Masked", this.selection = new jW(), this.selection.layer = 11, this._inverted = !1, this._ignoreBackground = !1;
36262
36262
  }
@@ -36405,7 +36405,7 @@ var XO = class extends h1 {
36405
36405
  super("SMAAEffect", Lj, {
36406
36406
  vertexShader: Fj,
36407
36407
  blendFunction: n,
36408
- attributes: _r.CONVOLUTION | _r.DEPTH,
36408
+ attributes: xr.CONVOLUTION | xr.DEPTH,
36409
36409
  uniforms: /* @__PURE__ */ new Map([
36410
36410
  ["weightMap", new _e(null)]
36411
36411
  ])
@@ -36684,7 +36684,7 @@ outputColor=vec4(vec3(1.0-ao),inputColor.a);
36684
36684
  } = {}) {
36685
36685
  super("SSAOEffect", Nj, {
36686
36686
  blendFunction: t,
36687
- attributes: _r.DEPTH,
36687
+ attributes: xr.DEPTH,
36688
36688
  defines: /* @__PURE__ */ new Map([
36689
36689
  ["THRESHOLD", "0.997"]
36690
36690
  ]),
@@ -39278,7 +39278,7 @@ let ru = (qi = class {
39278
39278
  return this._worldQuaternion || (this._worldQuaternion = new xe()), jn(this.gameObject, this._worldQuaternion);
39279
39279
  }
39280
39280
  set worldQuaternion(e) {
39281
- Er(this.gameObject, e);
39281
+ Ir(this.gameObject, e);
39282
39282
  }
39283
39283
  setWorldQuaternion(e, t, i, s) {
39284
39284
  qi._worldQuaternionBuffer.set(e, t, i, s), this.worldQuaternion = qi._worldQuaternionBuffer;
@@ -39409,7 +39409,7 @@ function P7(n) {
39409
39409
  const r = document.createElement("div");
39410
39410
  r.innerHTML = s, r.classList.add("logo"), e.appendChild(r);
39411
39411
  const o = document.createElement("div");
39412
- o.classList.add("text"), e.appendChild(o), e.title = "Needle Engine", kb() || (e.title += " non commercial version"), e.addEventListener("click", () => {
39412
+ o.classList.add("text"), e.appendChild(o), e.title = "Needle Engine", kb() || (e.title += " No active license found - Non Commercial Use"), e.addEventListener("click", () => {
39413
39413
  globalThis.open("https://needle.tools", "_blank");
39414
39414
  });
39415
39415
  const a = $C + eS;
@@ -39424,17 +39424,25 @@ async function R7(n) {
39424
39424
  return;
39425
39425
  YP = e;
39426
39426
  const i = `
39427
+ position: relative;
39428
+ display: block;
39427
39429
  font-size: 18px;
39428
39430
  background-size: 20px;
39429
- background-position: left top;
39431
+ background-position: 10px 5px;
39430
39432
  background-repeat:no-repeat;
39431
39433
  background-image:url('data:image/webp;base64,UklGRrABAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSKEAAAARN6CmbSM4WR7vdARON11EBDq3fLiNbVtVzpMCPlKAEzsx0Y/x+Ovuv4dn0EFE/ydAvz6YggXzgh5sVgXM/zOC/4sii7qgGvB5N7hmuQYwkvazWAu1JPW41FXSHq6pnaQWvqYH18Fc0j1hO/BFTtIeSBlJi5w6qIIO7IOrwhFsB2Yxukif0FTRLpXswHR8MxbslKe9VZsn/Ub5C7YFOpqSTABWUDgg6AAAAFAGAJ0BKiAAIAA+7VyoTqmkpCI3+qgBMB2JbACdMt69DwMIQBLhkTO6XwY00UEDK6cNIDnuNibPf0EgAP7Y1myuiQHLDsF/0h5unrGh6WAbv7aegg2ZMd3uRKfT/3SJztcaujYfTvMXspfCTmYcoO6a+vhC3ss4M8uM58t4siiu59I4aOl59e9Sr6xoxYlHf2v+NnBNpJYeJf8jABQAId/PXuBkLEFkiCucgSGEcfhvajql/j3reCGl0M5/9gQWy7ayNPs+wlvIxFnNfSlfuND4CZOCyxOHhRqOmHN4ULHo3tCSrUNvgAA=');
39432
39434
  background-max-size: 40px;
39433
- padding-left: 30px;
39434
- margin-bottom: 2px;
39435
39435
  margin-bottom: 5px;
39436
+ margin-top: 2em;
39437
+ margin-bottom: 2em;
39438
+ padding: .2em;
39439
+ padding-left: 37px;
39440
+ background-color: rgba(250,160,160,.2);
39441
+ border-radius: .5em;
39442
+ border: 2px solid rgba(250,160,160,.5);
39443
+ color: rgba(90,20,20,1);
39436
39444
  `;
39437
- console.log("%c " + "Needle Engine — non commercial version", i);
39445
+ console.log("%c" + "Needle Engine — No license active, commercial use is not allowed. Visit https://needle.tools/pricing for more information and licensing options.", i);
39438
39446
  }
39439
39447
  function B7() {
39440
39448
  const n = document.createElement("div");
@@ -41022,7 +41030,7 @@ var K7 = Object.defineProperty, J7 = Object.getOwnPropertyDescriptor, Ob = (n, e
41022
41030
  return i && s && K7(e, t, s), s;
41023
41031
  };
41024
41032
  const Vx = le("debuganimator");
41025
- class Mr extends Se {
41033
+ class Tr extends Se {
41026
41034
  constructor() {
41027
41035
  super(...arguments);
41028
41036
  h(this, "applyRootMotion", !1);
@@ -41161,16 +41169,16 @@ class Mr extends Se {
41161
41169
  }
41162
41170
  Ob([
41163
41171
  w()
41164
- ], Mr.prototype, "applyRootMotion", 2);
41172
+ ], Tr.prototype, "applyRootMotion", 2);
41165
41173
  Ob([
41166
41174
  w()
41167
- ], Mr.prototype, "hasRootMotion", 2);
41175
+ ], Tr.prototype, "hasRootMotion", 2);
41168
41176
  Ob([
41169
41177
  w()
41170
- ], Mr.prototype, "keepAnimatorControllerStateOnDisable", 2);
41178
+ ], Tr.prototype, "keepAnimatorControllerStateOnDisable", 2);
41171
41179
  Ob([
41172
41180
  w()
41173
- ], Mr.prototype, "runtimeAnimatorController", 1);
41181
+ ], Tr.prototype, "runtimeAnimatorController", 1);
41174
41182
  var Z7 = Object.defineProperty, $7 = Object.getOwnPropertyDescriptor, Fm = (n, e, t, i) => {
41175
41183
  for (var s = i > 1 ? void 0 : i ? $7(e, t) : e, r = n.length - 1, o; r >= 0; r--)
41176
41184
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
@@ -42855,7 +42863,7 @@ class Mq {
42855
42863
  if (A.mode === qr.TRIANGLES || A.mode === qr.TRIANGLE_STRIP || A.mode === qr.TRIANGLE_FAN || A.mode === void 0)
42856
42864
  v = r.isSkinnedMesh === !0 ? new lf(m, _) : new Ae(m, _), v.isSkinnedMesh === !0 && !v.geometry.attributes.skinWeight.normalized && v.normalizeSkinWeights(), A.mode === qr.TRIANGLE_STRIP ? v.geometry = fR(v.geometry, ik) : A.mode === qr.TRIANGLE_FAN && (v.geometry = fR(v.geometry, rE));
42857
42865
  else if (A.mode === qr.LINES)
42858
- v = new Ir(m, _);
42866
+ v = new Mr(m, _);
42859
42867
  else if (A.mode === qr.LINE_STRIP)
42860
42868
  v = new nn(m, _);
42861
42869
  else if (A.mode === qr.LINE_LOOP)
@@ -46498,7 +46506,7 @@ class T1 extends Event {
46498
46506
  h(this, "args");
46499
46507
  }
46500
46508
  }
46501
- class xr {
46509
+ class wr {
46502
46510
  constructor(e) {
46503
46511
  h(this, "target");
46504
46512
  h(this, "key");
@@ -46655,7 +46663,7 @@ class fX extends Gc {
46655
46663
  const ew = new fX(), pX = Symbol("eventListDebugInfo");
46656
46664
  class gX extends Gc {
46657
46665
  constructor() {
46658
- super([xr]);
46666
+ super([wr]);
46659
46667
  }
46660
46668
  onSerialize(e, t) {
46661
46669
  console.log("TODO: SERIALIZE EVENT");
@@ -46663,7 +46671,7 @@ class gX extends Gc {
46663
46671
  onDeserialize(e, t) {
46664
46672
  var i, s, r, o;
46665
46673
  if (typeof e == "function")
46666
- return new xr([new Xg(e, !0)]);
46674
+ return new wr([new Xg(e, !0)]);
46667
46675
  if (e && e.type === "EventList") {
46668
46676
  vs && console.log("DESERIALIZE EVENT", e);
46669
46677
  const a = new Array();
@@ -46707,7 +46715,7 @@ class gX extends Gc {
46707
46715
  } else
46708
46716
  a.push(p);
46709
46717
  }
46710
- const l = new xr(a);
46718
+ const l = new wr(a);
46711
46719
  vs && console.log(l);
46712
46720
  const c = t.target;
46713
46721
  return c !== void 0 && t.path !== void 0 && l.setEventTarget(t.path, c), l;
@@ -46789,7 +46797,7 @@ h(gl, "_up", new S(0, 1, 0));
46789
46797
  const vX = new gi(1, 1, 1);
46790
46798
  function cF(n = null) {
46791
46799
  const e = new ye(n ?? 14540253), t = new EE(vX);
46792
- return new Ir(t, new cn({ color: e }));
46800
+ return new Mr(t, new cn({ color: e }));
46793
46801
  }
46794
46802
  const ER = Symbol("GizmoCache");
46795
46803
  class Bs {
@@ -48187,7 +48195,7 @@ const fM = class {
48187
48195
  };
48188
48196
  let Mc = fM;
48189
48197
  h(Mc, "global_id", 0);
48190
- class wr {
48198
+ class Cr {
48191
48199
  static sceneStartTrigger() {
48192
48200
  const e = new Mc();
48193
48201
  return e.targetId = void 0, e.tokenId = "SceneTransition", e.type = "enter", e;
@@ -48980,7 +48988,7 @@ let aY = class extends On {
48980
48988
  const Ut = i.object.getWorldPosition(e.position);
48981
48989
  O.copy(Ut).sub(i.target), O.applyQuaternion(ve), a.setFromVector3(O), i.autoRotate && r === s.NONE && P(x()), i.enableDamping ? (a.theta += l.theta * i.dampingFactor, a.phi += l.phi * i.dampingFactor) : (a.theta += l.theta, a.phi += l.phi);
48982
48990
  let Pt = i.minAzimuthAngle, j = i.maxAzimuthAngle;
48983
- return isFinite(Pt) && isFinite(j) && (Pt < -Math.PI ? Pt += Ue : Pt > Math.PI && (Pt -= Ue), j < -Math.PI ? j += Ue : j > Math.PI && (j -= Ue), Pt <= j ? a.theta = Math.max(Pt, Math.min(j, a.theta)) : a.theta = a.theta > (Pt + j) / 2 ? Math.max(Pt, a.theta) : Math.min(j, a.theta)), a.phi = Math.max(i.minPolarAngle, Math.min(i.maxPolarAngle, a.phi)), a.makeSafe(), u = Ls.lerp(u, c, i.dampingFactor), a.radius *= u, a.radius = Math.max(i.minDistance, Math.min(i.maxDistance, a.radius)), i.enableDamping === !0 ? i.target.addScaledVector(d, i.dampingFactor) : i.target.add(d), O.setFromSpherical(a), O.applyQuaternion(Ke), Ut.copy(i.target).add(O), i.object.parent ? i.object.parent.worldToLocal(Ut) : i.object.position.copy(Ut), i.object.lookAt(i.target), i.enableDamping === !0 ? (l.theta *= 1 - i.dampingFactor, l.phi *= 1 - i.dampingFactor, d.multiplyScalar(1 - i.dampingFactor)) : (l.set(0, 0, 0), d.set(0, 0, 0)), c = 1, f || ze.distanceToSquared(i.object.position) > o || 8 * (1 - We.dot(i.object.quaternion)) > o ? (i.dispatchEvent(LR), ze.copy(i.object.position), We.copy(i.object.quaternion), f = !1, !0) : !1;
48991
+ return isFinite(Pt) && isFinite(j) && (Pt < -Math.PI ? Pt += Ue : Pt > Math.PI && (Pt -= Ue), j < -Math.PI ? j += Ue : j > Math.PI && (j -= Ue), Pt <= j ? a.theta = Math.max(Pt, Math.min(j, a.theta)) : a.theta = a.theta > (Pt + j) / 2 ? Math.max(Pt, a.theta) : Math.min(j, a.theta)), a.phi = Math.max(i.minPolarAngle, Math.min(i.maxPolarAngle, a.phi)), a.makeSafe(), u = Ls.lerp(u, c, i.enableDamping ? i.dampingFactor : 1), a.radius *= u, a.radius = Math.max(i.minDistance, Math.min(i.maxDistance, a.radius)), i.enableDamping === !0 ? i.target.addScaledVector(d, i.dampingFactor) : i.target.add(d), O.setFromSpherical(a), O.applyQuaternion(Ke), Ut.copy(i.target).add(O), i.object.parent ? i.object.parent.worldToLocal(Ut) : i.object.position.copy(Ut), i.object.lookAt(i.target), i.enableDamping === !0 ? (l.theta *= 1 - i.dampingFactor, l.phi *= 1 - i.dampingFactor, d.multiplyScalar(1 - i.dampingFactor)) : (l.set(0, 0, 0), d.set(0, 0, 0)), c = 1, f || ze.distanceToSquared(i.object.position) > o || 8 * (1 - We.dot(i.object.quaternion)) > o ? (i.dispatchEvent(LR), ze.copy(i.object.position), We.copy(i.object.quaternion), f = !1, !0) : !1;
48984
48992
  };
48985
48993
  }(), this.dispose = function() {
48986
48994
  i.domElement.removeEventListener("contextmenu", Ee), i.domElement.removeEventListener("pointerdown", Ze), i.domElement.removeEventListener("pointercancel", ht), i.domElement.removeEventListener("wheel", Ft), i.domElement.removeEventListener("pointermove", je), i.domElement.removeEventListener("pointerup", ft), i._domElementKeyEvents !== null && i._domElementKeyEvents.removeEventListener("keydown", U);
@@ -49636,7 +49644,7 @@ class jc extends Se {
49636
49644
  // }
49637
49645
  // }
49638
49646
  async onOpenPeerConnection(t) {
49639
- Js && console.log("Peer connection established and received id"), this.model = new hY(t), this.context.connection.send("peer-update-id", this.model, fr.OnRoomJoin), this.peer && (this.peer.on("call", this.onReceiveCall.bind(this)), this.peer.on("connection", function(i) {
49647
+ Js && console.log("Peer connection established and received id"), this.model = new hY(t), this.context.connection.send("peer-update-id", this.model, pr.OnRoomJoin), this.peer && (this.peer.on("call", this.onReceiveCall.bind(this)), this.peer.on("connection", function(i) {
49640
49648
  Js && console.log("CONNECTION", i), i.on("data", function(s) {
49641
49649
  Js && console.log("Received", s);
49642
49650
  });
@@ -49730,7 +49738,7 @@ class au extends Se {
49730
49738
  this.gameObject.visible = !0;
49731
49739
  }
49732
49740
  onEnd(t, i) {
49733
- this._placementPose = null, this.gameObject.visible = !1, this.gameObject.matrixAutoUpdate = !1, this._startPose && this.gameObject.matrix.copy(this._startPose), t && (t.matrixAutoUpdate = !0, this._rigStartPose && this._rigStartPose.decompose(t.position, t.quaternion, t.scale)), br.markDirty(this.gameObject, !0), setTimeout(() => {
49741
+ this._placementPose = null, this.gameObject.visible = !1, this.gameObject.matrixAutoUpdate = !1, this._startPose && this.gameObject.matrix.copy(this._startPose), t && (t.matrixAutoUpdate = !0, this._rigStartPose && this._rigStartPose.decompose(t.position, t.quaternion, t.scale)), _r.markDirty(this.gameObject, !0), setTimeout(() => {
49734
49742
  this.gameObject.matrixAutoUpdate = !0, this.gameObject.visible = !0;
49735
49743
  }, 100);
49736
49744
  }
@@ -49833,7 +49841,7 @@ class yY extends Ie {
49833
49841
  this.intersectBoxObject(e) ? e.onPress() : e.onClear(), e.isPressed() && e.whilePressed();
49834
49842
  }
49835
49843
  }
49836
- const bY = 0.05, UR = 0.02, wv = 0.01, NR = 0.02, zR = 1, Wu = 0.4, _Y = 2e-3, vp = 0.01, Cv = 3e-3, GR = 0.035, yi = 16, Or = 12, nw = 110, xY = new S(0, 1, 0), wY = new S(0, 0, 1), CY = 0.02, SY = 1.5;
49844
+ const bY = 0.05, UR = 0.02, wv = 0.01, NR = 0.02, zR = 1, Wu = 0.4, _Y = 2e-3, vp = 0.01, Cv = 3e-3, GR = 0.035, yi = 16, Lr = 12, nw = 110, xY = new S(0, 1, 0), wY = new S(0, 0, 1), CY = 0.02, SY = 1.5;
49837
49845
  class EY extends Ie {
49838
49846
  constructor(e, t) {
49839
49847
  super(), this.hand = e, this.controller = t, this.motionController = null, this.envMap = null, this.mesh = null, this.pointerGeometry = null, this.pointerMesh = null, this.pointerObject = null, this.pinched = !1, this.attached = !1, this.cursorObject = null, this.raycaster = null, e.addEventListener("connected", (i) => {
@@ -49861,12 +49869,12 @@ class EY extends Ie {
49861
49869
  Math.cos(Math.PI * nw / 180) * e,
49862
49870
  0
49863
49871
  );
49864
- for (let c = 0; c < Or; c++)
49872
+ for (let c = 0; c < Lr; c++)
49865
49873
  this._drawVerticesRing(t, s, c + 1), s.applyAxisAngle(
49866
49874
  xY,
49867
- Math.PI * nw / 180 / (Or * -2)
49875
+ Math.PI * nw / 180 / (Lr * -2)
49868
49876
  );
49869
- const r = yi * (1 + Or), o = yi * (1 + Or) + 1, a = new S(
49877
+ const r = yi * (1 + Lr), o = yi * (1 + Lr) + 1, a = new S(
49870
49878
  0,
49871
49879
  0,
49872
49880
  -1 * (GR - e)
@@ -49881,12 +49889,12 @@ class EY extends Ie {
49881
49889
  createPointer() {
49882
49890
  let e, t;
49883
49891
  const i = new Array(
49884
- ((Or + 1) * yi + 2) * 3
49892
+ ((Lr + 1) * yi + 2) * 3
49885
49893
  ).fill(0), s = [];
49886
49894
  for (this.pointerGeometry = new vt(), this.pointerGeometry.setAttribute(
49887
49895
  "position",
49888
49896
  new nt(i, 3)
49889
- ), this._updatePointerVertices(vp), e = 0; e < Or; e++) {
49897
+ ), this._updatePointerVertices(vp), e = 0; e < Lr; e++) {
49890
49898
  for (t = 0; t < yi - 1; t++)
49891
49899
  s.push(
49892
49900
  e * yi + t,
@@ -49907,17 +49915,17 @@ class EY extends Ie {
49907
49915
  (e + 2) * yi - 1
49908
49916
  );
49909
49917
  }
49910
- const r = yi * (1 + Or), o = yi * (1 + Or) + 1;
49918
+ const r = yi * (1 + Lr), o = yi * (1 + Lr) + 1;
49911
49919
  for (e = 0; e < yi - 1; e++)
49912
49920
  s.push(r, e + 1, e), s.push(
49913
49921
  o,
49914
- e + yi * Or,
49915
- e + yi * Or + 1
49922
+ e + yi * Lr,
49923
+ e + yi * Lr + 1
49916
49924
  );
49917
49925
  s.push(r, 0, yi - 1), s.push(
49918
49926
  o,
49919
- yi * (Or + 1) - 1,
49920
- yi * Or
49927
+ yi * (Lr + 1) - 1,
49928
+ yi * Lr
49921
49929
  );
49922
49930
  const a = new vi();
49923
49931
  a.transparent = !0, a.opacity = Wu, this.pointerGeometry.setIndex(s), this.pointerMesh = new Ae(this.pointerGeometry, a), this.pointerMesh.position.set(0, 0, -1 * vp), this.pointerObject = new Ie(), this.pointerObject.add(this.pointerMesh), this.raycaster = new pf();
@@ -50560,15 +50568,15 @@ const xg = class {
50560
50568
  if (e.guid === this.guid && (this.lastAvatarId !== e.avatarId && e.avatarId && e.avatarId.length > 0 && (this.lastAvatarId = e.avatarId, this.setupCustomAvatar(e.avatarId)), this.lastUpdate = e.time, this.head)) {
50561
50569
  const i = this.webxr.IsInAR ? yl.Handheld : yl.Headset;
50562
50570
  let s = this.head;
50563
- this.context.players.setPlayerView(e.guid, s, i), br.markDirty(this.head), this._canInterpolate = !0;
50571
+ this.context.players.setPlayerView(e.guid, s, i), _r.markDirty(this.head), this._canInterpolate = !0;
50564
50572
  const r = this.isLocalAvatar ? this.head : this._headTarget;
50565
50573
  if (r.position.set(e.position.x, e.position.y, e.position.z), r.quaternion.set(e.rotation.x, e.rotation.y, e.rotation.z, e.rotation.w), r.scale.set(e.scale, e.scale, e.scale), r.scale.multiply(this.headScale), this.handLeft) {
50566
50574
  const o = this.isLocalAvatar ? this.handLeft : this._handLeftTarget;
50567
- o.position.set(e.posLeftHand.x, e.posLeftHand.y, e.posLeftHand.z), o.quaternion.set(e.rotLeftHand._x, e.rotLeftHand._y, e.rotLeftHand._z, e.rotLeftHand._w), o.quaternion.multiply(xg.invertRotation), o.scale.set(e.scale, e.scale, e.scale), o.scale.multiply(this.handLeftScale), br.markDirty(this.handLeft);
50575
+ o.position.set(e.posLeftHand.x, e.posLeftHand.y, e.posLeftHand.z), o.quaternion.set(e.rotLeftHand._x, e.rotLeftHand._y, e.rotLeftHand._z, e.rotLeftHand._w), o.quaternion.multiply(xg.invertRotation), o.scale.set(e.scale, e.scale, e.scale), o.scale.multiply(this.handLeftScale), _r.markDirty(this.handLeft);
50568
50576
  }
50569
50577
  if (this.handRight) {
50570
50578
  const o = this.isLocalAvatar ? this.handRight : this._handRightTarget;
50571
- o.position.set(e.posRightHand.x, e.posRightHand.y, e.posRightHand.z), o.quaternion.set(e.rotRightHand._x, e.rotRightHand._y, e.rotRightHand._z, e.rotRightHand._w), o.quaternion.multiply(xg.invertRotation), o.scale.set(e.scale, e.scale, e.scale), o.scale.multiply(this.handRightScale), br.markDirty(this.handRight);
50579
+ o.position.set(e.posRightHand.x, e.posRightHand.y, e.posRightHand.z), o.quaternion.set(e.rotRightHand._x, e.rotRightHand._y, e.rotRightHand._z, e.rotRightHand._w), o.quaternion.multiply(xg.invertRotation), o.scale.set(e.scale, e.scale, e.scale), o.scale.multiply(this.handRightScale), _r.markDirty(this.handRight);
50572
50580
  }
50573
50581
  }
50574
50582
  }
@@ -51039,7 +51047,7 @@ Ol([
51039
51047
  uo(),
51040
51048
  w()
51041
51049
  ], Yi.prototype, "collisionDetectionMode", 2);
51042
- class Cr {
51050
+ class Sr {
51043
51051
  constructor() {
51044
51052
  h(this, "bb", null);
51045
51053
  h(this, "bb_pos", 0);
@@ -51072,13 +51080,13 @@ class TF {
51072
51080
  return this.bb_pos = e, this.bb = t, this;
51073
51081
  }
51074
51082
  position(e) {
51075
- return (e || new Cr()).__init(this.bb_pos, this.bb);
51083
+ return (e || new Sr()).__init(this.bb_pos, this.bb);
51076
51084
  }
51077
51085
  rotation(e) {
51078
- return (e || new Cr()).__init(this.bb_pos + 12, this.bb);
51086
+ return (e || new Sr()).__init(this.bb_pos + 12, this.bb);
51079
51087
  }
51080
51088
  scale(e) {
51081
- return (e || new Cr()).__init(this.bb_pos + 24, this.bb);
51089
+ return (e || new Sr()).__init(this.bb_pos + 24, this.bb);
51082
51090
  }
51083
51091
  static sizeOf() {
51084
51092
  return 36;
@@ -51213,7 +51221,7 @@ class Kh extends Se {
51213
51221
  oc && console.log("new data", this.context.connection.connectionId, this.context.time.frameCount, this.guid, t), this.receivedUpdate = !0, this._receivedFastUpdate = t.fast();
51214
51222
  const s = t.transform();
51215
51223
  if (s) {
51216
- br.markDirty(this.gameObject, !0);
51224
+ _r.markDirty(this.gameObject, !0);
51217
51225
  const r = s.position();
51218
51226
  r && (this.interpolatePosition && ((i = this._targetPosition) == null || i.set(r.x(), r.y(), r.z())), (!this.interpolatePosition || !this._receivedDataBefore) && this.setWorldPosition(r.x(), r.y(), r.z()));
51219
51227
  const o = s.rotation();
@@ -51239,7 +51247,7 @@ class Kh extends Se {
51239
51247
  let t = this.worldPosition, i = this.worldQuaternion;
51240
51248
  if (this._model.isOwned && !this.receivedUpdate) {
51241
51249
  const o = t.distanceTo(this.lastWorldPos), a = i.angleTo(this.lastWorldRotation), l = this._model.hasOwnership || this.fastMode ? 1e-4 : 1e-3;
51242
- (o > l || a > l) && (this._model.hasOwnership ? this._needsUpdate = !0 : (oc && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, t.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, i.copy(this.lastWorldRotation), br.markDirty(this.gameObject, !0), this._needsUpdate = !1));
51250
+ (o > l || a > l) && (this._model.hasOwnership ? this._needsUpdate = !0 : (oc && console.log(this.guid, "reset because not owned but", this.gameObject.name, this.lastWorldPos), this.worldPosition = this.lastWorldPos, t.copy(this.lastWorldPos), this.worldQuaternion = this.lastWorldRotation, i.copy(this.lastWorldRotation), _r.markDirty(this.gameObject, !0), this._needsUpdate = !1));
51243
51251
  }
51244
51252
  if (this._model && !this._model.hasOwnership && this._model.isOwned && this._receivedDataBefore) {
51245
51253
  const a = this._receivedFastUpdate || this.fastMode ? 0.5 : 0.3;
@@ -51252,7 +51260,7 @@ class Kh extends Se {
51252
51260
  const c = this.worldQuaternion;
51253
51261
  c.slerp(this._targetRotation, a), this.worldQuaternion = c, l = !0;
51254
51262
  }
51255
- l && br.markDirty(this.gameObject, !0);
51263
+ l && _r.markDirty(this.gameObject, !0);
51256
51264
  }
51257
51265
  if (this.receivedUpdate = !1, this.lastWorldPos.copy(t), this.lastWorldRotation.copy(i), !this._model)
51258
51266
  return;
@@ -54298,10 +54306,10 @@ function $d(n, e) {
54298
54306
  var ii = function(e, t) {
54299
54307
  t === void 0 && (t = {}), this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
54300
54308
  };
54301
- function Lr(n, e) {
54309
+ function Fr(n, e) {
54302
54310
  return new ii(n, { beforeExpr: !0, binop: e });
54303
54311
  }
54304
- var Fr = { beforeExpr: !0 }, js = { startsExpr: !0 }, Z1 = {};
54312
+ var Ur = { beforeExpr: !0 }, js = { startsExpr: !0 }, Z1 = {};
54305
54313
  function Zt(n, e) {
54306
54314
  return e === void 0 && (e = {}), e.keyword = n, Z1[n] = new ii(n, e);
54307
54315
  }
@@ -54319,16 +54327,16 @@ var B = {
54319
54327
  braceR: new ii("}"),
54320
54328
  parenL: new ii("(", { beforeExpr: !0, startsExpr: !0 }),
54321
54329
  parenR: new ii(")"),
54322
- comma: new ii(",", Fr),
54323
- semi: new ii(";", Fr),
54324
- colon: new ii(":", Fr),
54330
+ comma: new ii(",", Ur),
54331
+ semi: new ii(";", Ur),
54332
+ colon: new ii(":", Ur),
54325
54333
  dot: new ii("."),
54326
- question: new ii("?", Fr),
54334
+ question: new ii("?", Ur),
54327
54335
  questionDot: new ii("?."),
54328
- arrow: new ii("=>", Fr),
54336
+ arrow: new ii("=>", Ur),
54329
54337
  template: new ii("template"),
54330
54338
  invalidTemplate: new ii("invalidTemplate"),
54331
- ellipsis: new ii("...", Fr),
54339
+ ellipsis: new ii("...", Ur),
54332
54340
  backQuote: new ii("`", js),
54333
54341
  dollarBraceL: new ii("${", { beforeExpr: !0, startsExpr: !0 }),
54334
54342
  // Operators. These carry several kinds of properties to help the
@@ -54348,36 +54356,36 @@ var B = {
54348
54356
  assign: new ii("_=", { beforeExpr: !0, isAssign: !0 }),
54349
54357
  incDec: new ii("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }),
54350
54358
  prefix: new ii("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }),
54351
- logicalOR: Lr("||", 1),
54352
- logicalAND: Lr("&&", 2),
54353
- bitwiseOR: Lr("|", 3),
54354
- bitwiseXOR: Lr("^", 4),
54355
- bitwiseAND: Lr("&", 5),
54356
- equality: Lr("==/!=/===/!==", 6),
54357
- relational: Lr("</>/<=/>=", 7),
54358
- bitShift: Lr("<</>>/>>>", 8),
54359
+ logicalOR: Fr("||", 1),
54360
+ logicalAND: Fr("&&", 2),
54361
+ bitwiseOR: Fr("|", 3),
54362
+ bitwiseXOR: Fr("^", 4),
54363
+ bitwiseAND: Fr("&", 5),
54364
+ equality: Fr("==/!=/===/!==", 6),
54365
+ relational: Fr("</>/<=/>=", 7),
54366
+ bitShift: Fr("<</>>/>>>", 8),
54359
54367
  plusMin: new ii("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }),
54360
- modulo: Lr("%", 10),
54361
- star: Lr("*", 10),
54362
- slash: Lr("/", 10),
54368
+ modulo: Fr("%", 10),
54369
+ star: Fr("*", 10),
54370
+ slash: Fr("/", 10),
54363
54371
  starstar: new ii("**", { beforeExpr: !0 }),
54364
- coalesce: Lr("??", 1),
54372
+ coalesce: Fr("??", 1),
54365
54373
  // Keyword token types.
54366
54374
  _break: Zt("break"),
54367
- _case: Zt("case", Fr),
54375
+ _case: Zt("case", Ur),
54368
54376
  _catch: Zt("catch"),
54369
54377
  _continue: Zt("continue"),
54370
54378
  _debugger: Zt("debugger"),
54371
- _default: Zt("default", Fr),
54379
+ _default: Zt("default", Ur),
54372
54380
  _do: Zt("do", { isLoop: !0, beforeExpr: !0 }),
54373
- _else: Zt("else", Fr),
54381
+ _else: Zt("else", Ur),
54374
54382
  _finally: Zt("finally"),
54375
54383
  _for: Zt("for", { isLoop: !0 }),
54376
54384
  _function: Zt("function", js),
54377
54385
  _if: Zt("if"),
54378
- _return: Zt("return", Fr),
54386
+ _return: Zt("return", Ur),
54379
54387
  _switch: Zt("switch"),
54380
- _throw: Zt("throw", Fr),
54388
+ _throw: Zt("throw", Ur),
54381
54389
  _try: Zt("try"),
54382
54390
  _var: Zt("var"),
54383
54391
  _const: Zt("const"),
@@ -54387,7 +54395,7 @@ var B = {
54387
54395
  _this: Zt("this", js),
54388
54396
  _super: Zt("super", js),
54389
54397
  _class: Zt("class", js),
54390
- _extends: Zt("extends", Fr),
54398
+ _extends: Zt("extends", Ur),
54391
54399
  _export: Zt("export"),
54392
54400
  _import: Zt("import", js),
54393
54401
  _null: Zt("null", js),
@@ -60129,7 +60137,7 @@ class Ca extends Se {
60129
60137
  return t != null && t.isCanvas ? t : null;
60130
60138
  }
60131
60139
  markDirty() {
60132
- Ar.markUIDirty(this.context);
60140
+ vr.markUIDirty(this.context);
60133
60141
  }
60134
60142
  get controlsChildLayout() {
60135
60143
  return this._controlsChildLayout;
@@ -60419,9 +60427,9 @@ const Gn = class extends Se {
60419
60427
  const l = this.getWristQuaternion();
60420
60428
  l && this.rayRotation.copy(l);
60421
60429
  }
60422
- Er(this.raycastLine, this.rayRotation);
60430
+ Ir(this.raycastLine, this.rayRotation);
60423
60431
  } else
60424
- this.raycastLine.visible = r, Er(this.raycastLine, this.rayRotation), vn(this.raycastLine, s);
60432
+ this.raycastLine.visible = r, Ir(this.raycastLine, this.rayRotation), vn(this.raycastLine, s);
60425
60433
  }
60426
60434
  this.lastHit = this.updateLastHit(), this.grabbed && this.grabbed.update(), this._selectionPressedLastFrame = this._selectionPressed, this.selectStartCallback && this.selectStartCallback();
60427
60435
  }
@@ -60735,12 +60743,12 @@ const Ps = class {
60735
60743
  let i = 1;
60736
60744
  this.controller.type === 0 && (i = Math.max(0, 1 + this.totalChangeAlongDirection * 2 / t), i = i * i * i), this.grabDistance / t < 0.8 && (i = 1), this.targetDir || (this.targetDir = new S()), this.targetDir.set(0, 0, -this.grabDistance * i);
60737
60745
  const s = this.targetDir.applyQuaternion(this.controller.rayRotation).add(this.controllerWorldPos), r = this.controller.rayRotation.clone().multiplyQuaternions(this.controller.rayRotation, this.localQuaternionToGrab);
60738
- this.quaternionLerp || (this.quaternionLerp = r.clone()), this.quaternionLerp.slerp(r, this.controller.useSmoothing ? this.controller.context.time.deltaTime / 0.03 : 1), Er(this.selected, this.quaternionLerp), this.selected.updateWorldMatrix(!1, !1), this.grabPoint.copy(s), this.localPositionOffsetToGrab && (this.localPositionOffsetToGrab_worldSpace.copy(this.localPositionOffsetToGrab), this.selected.localToWorld(this.localPositionOffsetToGrab_worldSpace).sub(wt(this.selected)), s.sub(this.localPositionOffsetToGrab_worldSpace)), vn(this.selected, s);
60746
+ this.quaternionLerp || (this.quaternionLerp = r.clone()), this.quaternionLerp.slerp(r, this.controller.useSmoothing ? this.controller.context.time.deltaTime / 0.03 : 1), Ir(this.selected, this.quaternionLerp), this.selected.updateWorldMatrix(!1, !1), this.grabPoint.copy(s), this.localPositionOffsetToGrab && (this.localPositionOffsetToGrab_worldSpace.copy(this.localPositionOffsetToGrab), this.selected.localToWorld(this.localPositionOffsetToGrab_worldSpace).sub(wt(this.selected)), s.sub(this.localPositionOffsetToGrab_worldSpace)), vn(this.selected, s);
60739
60747
  }
60740
60748
  if (this.rigidbodies != null)
60741
60749
  for (const t of this.rigidbodies)
60742
60750
  t.wakeUp();
60743
- br.markDirty(this.selected, !0);
60751
+ _r.markDirty(this.selected, !0);
60744
60752
  }
60745
60753
  }
60746
60754
  };
@@ -60847,7 +60855,7 @@ class ps {
60847
60855
  }
60848
60856
  position(e) {
60849
60857
  const t = this.bb.__offset(this.bb_pos, 10);
60850
- return t ? (e || new Cr()).__init(this.bb_pos + t, this.bb) : null;
60858
+ return t ? (e || new Sr()).__init(this.bb_pos + t, this.bb) : null;
60851
60859
  }
60852
60860
  rotation(e) {
60853
60861
  const t = this.bb.__offset(this.bb_pos, 12);
@@ -60859,11 +60867,11 @@ class ps {
60859
60867
  }
60860
60868
  posLeftHand(e) {
60861
60869
  const t = this.bb.__offset(this.bb_pos, 16);
60862
- return t ? (e || new Cr()).__init(this.bb_pos + t, this.bb) : null;
60870
+ return t ? (e || new Sr()).__init(this.bb_pos + t, this.bb) : null;
60863
60871
  }
60864
60872
  posRightHand(e) {
60865
60873
  const t = this.bb.__offset(this.bb_pos, 18);
60866
- return t ? (e || new Cr()).__init(this.bb_pos + t, this.bb) : null;
60874
+ return t ? (e || new Sr()).__init(this.bb_pos + t, this.bb) : null;
60867
60875
  }
60868
60876
  rotLeftHand(e) {
60869
60877
  const t = this.bb.__offset(this.bb_pos, 20);
@@ -60960,7 +60968,7 @@ const wg = class {
60960
60968
  sendAsBuffer(e, t) {
60961
60969
  e.clear();
60962
60970
  const i = e.createString(this.guid), s = e.createString(this.avatarId);
60963
- ps.startVrUserStateBuffer(e), ps.addGuid(e, i), ps.addTime(e, Y$(this.time)), ps.addAvatarId(e, s), ps.addPosition(e, Cr.createVec3(e, this.position.x, this.position.y, this.position.z)), ps.addRotation(e, Dd.createVec4(e, this.rotation.x, this.rotation.y, this.rotation.z, this.rotation.w)), ps.addScale(e, this.scale), ps.addPosLeftHand(e, Cr.createVec3(e, this.posLeftHand.x, this.posLeftHand.y, this.posLeftHand.z)), ps.addPosRightHand(e, Cr.createVec3(e, this.posRightHand.x, this.posRightHand.y, this.posRightHand.z)), ps.addRotLeftHand(e, Dd.createVec4(e, this.rotLeftHand.x, this.rotLeftHand.y, this.rotLeftHand.z, this.rotLeftHand.w)), ps.addRotRightHand(e, Dd.createVec4(e, this.rotRightHand.x, this.rotRightHand.y, this.rotRightHand.z, this.rotRightHand.w));
60971
+ ps.startVrUserStateBuffer(e), ps.addGuid(e, i), ps.addTime(e, Y$(this.time)), ps.addAvatarId(e, s), ps.addPosition(e, Sr.createVec3(e, this.position.x, this.position.y, this.position.z)), ps.addRotation(e, Dd.createVec4(e, this.rotation.x, this.rotation.y, this.rotation.z, this.rotation.w)), ps.addScale(e, this.scale), ps.addPosLeftHand(e, Sr.createVec3(e, this.posLeftHand.x, this.posLeftHand.y, this.posLeftHand.z)), ps.addPosRightHand(e, Sr.createVec3(e, this.posRightHand.x, this.posRightHand.y, this.posRightHand.z)), ps.addRotLeftHand(e, Dd.createVec4(e, this.rotLeftHand.x, this.rotLeftHand.y, this.rotLeftHand.z, this.rotLeftHand.w)), ps.addRotRightHand(e, Dd.createVec4(e, this.rotRightHand.x, this.rotRightHand.y, this.rotRightHand.z, this.rotRightHand.w));
60964
60972
  const r = ps.endVrUserStateBuffer(e);
60965
60973
  e.finish(r, vI);
60966
60974
  const o = e.asUint8Array();
@@ -61366,7 +61374,7 @@ const Sn = ($u = class extends Se {
61366
61374
  onExitXR(e) {
61367
61375
  var i, s, r;
61368
61376
  const t = this._isInAR;
61369
- this._isInAR && e && ((i = this.webAR) == null || i.onEnd(e)), this._isInAR = !1, this._isInVR = !1, this._requestedAR = !1, this._requestedVR = !1, this.context.xrSessionMode = void 0, this.xrMirrorWindow && (this.xrMirrorWindow.close(), this.xrMirrorWindow = null), this.destroyControllers(), this.context.mainCamera && ((s = this._originalCameraParent) == null || s.add(this.context.mainCamera), vn(this.context.mainCamera, this._originalCameraPosition), Er(this.context.mainCamera, this._originalCameraRotation), this.context.mainCamera.scale.set(1, 1, 1)), t && ((r = this._originalXRRigParent) == null || r.add(this.rig), this.rig.position.copy(this._originalXRRigPosition), this.rig.quaternion.copy(this._originalXRRigRotation)), Oo.Global.Set(In.Browser | In.ThirdPerson), Sn.events.dispatchEvent({ type: "xrStopped", session: e });
61377
+ this._isInAR && e && ((i = this.webAR) == null || i.onEnd(e)), this._isInAR = !1, this._isInVR = !1, this._requestedAR = !1, this._requestedVR = !1, this.context.xrSessionMode = void 0, this.xrMirrorWindow && (this.xrMirrorWindow.close(), this.xrMirrorWindow = null), this.destroyControllers(), this.context.mainCamera && ((s = this._originalCameraParent) == null || s.add(this.context.mainCamera), vn(this.context.mainCamera, this._originalCameraPosition), Ir(this.context.mainCamera, this._originalCameraRotation), this.context.mainCamera.scale.set(1, 1, 1)), t && ((r = this._originalXRRigParent) == null || r.add(this.rig), this.rig.position.copy(this._originalXRRigPosition), this.rig.quaternion.copy(this._originalXRRigRotation)), Oo.Global.Set(In.Browser | In.ThirdPerson), Sn.events.dispatchEvent({ type: "xrStopped", session: e });
61370
61378
  }
61371
61379
  onEnterVR(e) {
61372
61380
  }
@@ -61541,15 +61549,15 @@ class yd {
61541
61549
  }
61542
61550
  class Km extends Se {
61543
61551
  awake() {
61544
- Ar.createIfNoneExists(this.context);
61552
+ vr.createIfNoneExists(this.context);
61545
61553
  }
61546
61554
  onEnable() {
61547
61555
  var e;
61548
- (e = Ar.get(this.context)) == null || e.register(this);
61556
+ (e = vr.get(this.context)) == null || e.register(this);
61549
61557
  }
61550
61558
  onDisable() {
61551
61559
  var e;
61552
- (e = Ar.get(this.context)) == null || e.unregister(this);
61560
+ (e = vr.get(this.context)) == null || e.unregister(this);
61553
61561
  }
61554
61562
  performRaycast(e = null) {
61555
61563
  return null;
@@ -61847,8 +61855,8 @@ const na = class extends Se {
61847
61855
  return t ? $.isActiveSelf(t) ? this.testIsVisible(t.parent) : !1 : !0;
61848
61856
  }
61849
61857
  };
61850
- let Ar = na;
61851
- h(Ar, "_eventSystemMap", /* @__PURE__ */ new Map()), h(Ar, "didSearchEventSystem", !1);
61858
+ let vr = na;
61859
+ h(vr, "_eventSystemMap", /* @__PURE__ */ new Map()), h(vr, "didSearchEventSystem", !1);
61852
61860
  class tl {
61853
61861
  static markDirty() {
61854
61862
  this.needsUpdate = !0;
@@ -61967,7 +61975,7 @@ class Xc extends Se {
61967
61975
  this.setTarget(r, !0);
61968
61976
  }
61969
61977
  }
61970
- this.startCoroutine(this.startRaycastDelayed()), this._eventSystem = Ar.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(IS.AfterHandleInput, this._afterHandleInputFn));
61978
+ this.startCoroutine(this.startRaycastDelayed()), this._eventSystem = vr.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(IS.AfterHandleInput, this._afterHandleInputFn));
61971
61979
  }
61972
61980
  onDestroy() {
61973
61981
  var t, i;
@@ -61983,7 +61991,7 @@ class Xc extends Se {
61983
61991
  const s = this.targetElement ?? this.context.domElement, r = i == null ? void 0 : i.quaternion.clone();
61984
61992
  this._controls = new aY(i, s), i == null || i.quaternion.copy(r), dw === void 0 && (dw = { ...this._controls.keys });
61985
61993
  }
61986
- this._controls && (Tv && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, sf() && (this.doubleClickToFocus = !0)), this._controls.enableDamping = this.enableDamping, this._controls.keys = this.enableKeys ? dw : ree, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.addEventListener("start", this.onControlsChangeStarted), (i == null ? void 0 : i.type) === "PerspectiveCamera" ? Tv || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : Tv || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = $.getComponent(this.gameObject, Kh) ?? void 0;
61994
+ this._controls && (Tv && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, sf() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), (i == null ? void 0 : i.type) === "PerspectiveCamera" ? Tv || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : Tv || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = $.getComponent(this.gameObject, Kh) ?? void 0;
61987
61995
  }
61988
61996
  onDisable() {
61989
61997
  var t;
@@ -62019,7 +62027,7 @@ class Xc extends Se {
62019
62027
  }
62020
62028
  this._lerpToTargetPosition && (this.lerpTarget(this._lookTargetPosition, o), this._lookTargetPosition.distanceTo(this._controls.target) < 1e-5 && (this._lerpToTargetPosition = !1));
62021
62029
  }
62022
- !Tv && ((r = this.lookAtConstraint) != null && r.locked) && this.setFromTargetPosition(0, this.lookAtConstraint01), this._controls && !this.context.isInXR && (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent, this._controls.update());
62030
+ !Tv && ((r = this.lookAtConstraint) != null && r.locked) && this.setFromTargetPosition(0, this.lookAtConstraint01), this._controls && !this.context.isInXR && (this.debugLog && (this._controls.domElement = this.context.renderer.domElement), this._controls.enabled = !this._shouldDisable && this._camera === this.context.mainCameraComponent, this._controls.enableDamping = this.enableDamping, this._controls.keys = this.enableKeys ? dw : ree, this._controls.autoRotate = this.autoRotate, this._controls.autoRotateSpeed = this.autoRotateSpeed, this._controls.enableZoom = this.enableZoom, this._controls.dampingFactor = this.dampingFactor, this._controls.enablePan = this.enablePan, this._controls.update());
62023
62031
  }
62024
62032
  setCameraTarget(t, i = !1) {
62025
62033
  var s;
@@ -62387,7 +62395,7 @@ qb([
62387
62395
  w(Xb)
62388
62396
  ], Jm.prototype, "signal", 2);
62389
62397
  qb([
62390
- w(xr)
62398
+ w(wr)
62391
62399
  ], Jm.prototype, "reaction", 2);
62392
62400
  var Gw;
62393
62401
  const Ya = (Gw = class extends Se {
@@ -62725,7 +62733,7 @@ const _p = le("debugtimeline"), U0 = class extends Se {
62725
62733
  for (let l = r.outputs.length - 1; l >= 0; l--) {
62726
62734
  let c = r.outputs[l];
62727
62735
  if (c instanceof Ie) {
62728
- const d = $.getOrAddComponent(c, Mr);
62736
+ const d = $.getOrAddComponent(c, Tr);
62729
62737
  d && (c = d);
62730
62738
  }
62731
62739
  const u = (i = c == null ? void 0 : c.gameObject) == null ? void 0 : i.animations;
@@ -62938,7 +62946,7 @@ class yI extends Yb {
62938
62946
  const i = new fee(t);
62939
62947
  this._actionOffsets.push(i);
62940
62948
  }
62941
- this.target && (this._animator = $.getComponent(this.target, Mr) ?? null, this._animator ? (this._animatorWasEnabled = this._animator.enabled, this._animator.enabled = !1) : this._animatorWasEnabled = !1);
62949
+ this.target && (this._animator = $.getComponent(this.target, Tr) ?? null, this._animator ? (this._animatorWasEnabled = this._animator.enabled, this._animator.enabled = !1) : this._animatorWasEnabled = !1);
62942
62950
  for (const t of this.models) {
62943
62951
  const i = t.asset, s = i.position, r = i.rotation;
62944
62952
  s && s.x !== void 0 && (s.isVector3 || (i.position = new S(s.x, s.y, s.z)), r.isQuaternion || (i.rotation = new xe(r.x, r.y, r.z, r.w)));
@@ -64482,7 +64490,7 @@ class MI extends n_ {
64482
64490
  s_([
64483
64491
  w(Gt)
64484
64492
  ], MI.prototype, "mainTexture", 1);
64485
- var Zee = Object.defineProperty, $ee = Object.getOwnPropertyDescriptor, Tr = (n, e, t, i) => {
64493
+ var Zee = Object.defineProperty, $ee = Object.getOwnPropertyDescriptor, Pr = (n, e, t, i) => {
64486
64494
  for (var s = i > 1 ? void 0 : i ? $ee(e, t) : e, r = n.length - 1, o; r >= 0; r--)
64487
64495
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
64488
64496
  return i && s && Zee(e, t, s), s;
@@ -64499,25 +64507,25 @@ class hu {
64499
64507
  h(this, "selectedColor");
64500
64508
  }
64501
64509
  }
64502
- Tr([
64510
+ Pr([
64503
64511
  w()
64504
64512
  ], hu.prototype, "colorMultiplier", 2);
64505
- Tr([
64513
+ Pr([
64506
64514
  w(Ei)
64507
64515
  ], hu.prototype, "disabledColor", 2);
64508
- Tr([
64516
+ Pr([
64509
64517
  w()
64510
64518
  ], hu.prototype, "fadeDuration", 2);
64511
- Tr([
64519
+ Pr([
64512
64520
  w(Ei)
64513
64521
  ], hu.prototype, "highlightedColor", 2);
64514
- Tr([
64522
+ Pr([
64515
64523
  w(Ei)
64516
64524
  ], hu.prototype, "normalColor", 2);
64517
- Tr([
64525
+ Pr([
64518
64526
  w(Ei)
64519
64527
  ], hu.prototype, "pressedColor", 2);
64520
- Tr([
64528
+ Pr([
64521
64529
  w(Ei)
64522
64530
  ], hu.prototype, "selectedColor", 2);
64523
64531
  class Yc extends Se {
@@ -64629,22 +64637,22 @@ class Yc extends Se {
64629
64637
  return i ? t.clone().multiply(i) : t.clone();
64630
64638
  }
64631
64639
  }
64632
- Tr([
64633
- w(xr)
64640
+ Pr([
64641
+ w(wr)
64634
64642
  ], Yc.prototype, "onClick", 2);
64635
- Tr([
64643
+ Pr([
64636
64644
  w()
64637
64645
  ], Yc.prototype, "colors", 2);
64638
- Tr([
64646
+ Pr([
64639
64647
  w()
64640
64648
  ], Yc.prototype, "transition", 2);
64641
- Tr([
64649
+ Pr([
64642
64650
  w()
64643
64651
  ], Yc.prototype, "animationTriggers", 2);
64644
- Tr([
64645
- w(Mr)
64652
+ Pr([
64653
+ w(Tr)
64646
64654
  ], Yc.prototype, "animator", 2);
64647
- Tr([
64655
+ Pr([
64648
64656
  w()
64649
64657
  ], Yc.prototype, "interactable", 1);
64650
64658
  var ete = Object.defineProperty, tte = Object.getOwnPropertyDescriptor, bn = (n, e, t, i) => {
@@ -64679,7 +64687,7 @@ bn([
64679
64687
  bn([
64680
64688
  w()
64681
64689
  ], uu.prototype, "bottom", 2);
64682
- class Pr extends Se {
64690
+ class Rr extends Se {
64683
64691
  constructor() {
64684
64692
  super(...arguments);
64685
64693
  h(this, "_rectTransform", null);
@@ -64732,35 +64740,35 @@ class Pr extends Se {
64732
64740
  }
64733
64741
  bn([
64734
64742
  w()
64735
- ], Pr.prototype, "childAlignment", 2);
64743
+ ], Rr.prototype, "childAlignment", 2);
64736
64744
  bn([
64737
64745
  w()
64738
- ], Pr.prototype, "reverseArrangement", 2);
64746
+ ], Rr.prototype, "reverseArrangement", 2);
64739
64747
  bn([
64740
64748
  w()
64741
- ], Pr.prototype, "spacing", 2);
64749
+ ], Rr.prototype, "spacing", 2);
64742
64750
  bn([
64743
64751
  w(uu)
64744
- ], Pr.prototype, "padding", 2);
64752
+ ], Rr.prototype, "padding", 2);
64745
64753
  bn([
64746
64754
  w()
64747
- ], Pr.prototype, "minWidth", 2);
64755
+ ], Rr.prototype, "minWidth", 2);
64748
64756
  bn([
64749
64757
  w()
64750
- ], Pr.prototype, "minHeight", 2);
64758
+ ], Rr.prototype, "minHeight", 2);
64751
64759
  bn([
64752
64760
  w()
64753
- ], Pr.prototype, "flexibleHeight", 2);
64761
+ ], Rr.prototype, "flexibleHeight", 2);
64754
64762
  bn([
64755
64763
  w()
64756
- ], Pr.prototype, "flexibleWidth", 2);
64764
+ ], Rr.prototype, "flexibleWidth", 2);
64757
64765
  bn([
64758
64766
  w()
64759
- ], Pr.prototype, "preferredHeight", 2);
64767
+ ], Rr.prototype, "preferredHeight", 2);
64760
64768
  bn([
64761
64769
  w()
64762
- ], Pr.prototype, "preferredWidth", 2);
64763
- class Kc extends Pr {
64770
+ ], Rr.prototype, "preferredWidth", 2);
64771
+ class Kc extends Rr {
64764
64772
  constructor() {
64765
64773
  super(...arguments);
64766
64774
  h(this, "childControlHeight", !0);
@@ -64842,7 +64850,7 @@ class fU extends Kc {
64842
64850
  return "x";
64843
64851
  }
64844
64852
  }
64845
- class pU extends Pr {
64853
+ class pU extends Rr {
64846
64854
  onCalculateLayout() {
64847
64855
  }
64848
64856
  }
@@ -64871,7 +64879,7 @@ const gw = le("debuguilayout"), gU = class extends jb {
64871
64879
  h(this, "_layoutGroups", /* @__PURE__ */ new Map());
64872
64880
  h(this, "onBeforeRenderRoutine", () => {
64873
64881
  var e, t;
64874
- this.previousParent = this.gameObject.parent, this.renderOnTop || this.screenspace ? this.gameObject.removeFromParent() : (this.onUpdateRenderMode(), this.handleLayoutUpdates(), (e = this.shadowComponent) == null || e.updateMatrixWorld(!0), (t = this.shadowComponent) == null || t.updateWorldMatrix(!0, !0), Ar.ensureUpdateMeshUI(tB, this.context));
64882
+ this.previousParent = this.gameObject.parent, this.renderOnTop || this.screenspace ? this.gameObject.removeFromParent() : (this.onUpdateRenderMode(), this.handleLayoutUpdates(), (e = this.shadowComponent) == null || e.updateMatrixWorld(!0), (t = this.shadowComponent) == null || t.updateWorldMatrix(!0, !0), vr.ensureUpdateMeshUI(tB, this.context));
64875
64883
  });
64876
64884
  h(this, "onAfterRenderRoutine", () => {
64877
64885
  var e, t;
@@ -64881,7 +64889,7 @@ const gw = le("debuguilayout"), gU = class extends jb {
64881
64889
  i == null || i.add(this.gameObject);
64882
64890
  } else
64883
64891
  this.previousParent.add(this.gameObject);
64884
- this.context.renderer.autoClear = !1, this.context.renderer.clearDepth(), this.onUpdateRenderMode(!0), this.handleLayoutUpdates(), (e = this.shadowComponent) == null || e.updateMatrixWorld(!0), Ar.ensureUpdateMeshUI(tB, this.context), this.context.renderer.render(this.gameObject, this.context.mainCamera), this.context.renderer.autoClear = !0, this.previousParent.add(this.gameObject);
64892
+ this.context.renderer.autoClear = !1, this.context.renderer.clearDepth(), this.onUpdateRenderMode(!0), this.handleLayoutUpdates(), (e = this.shadowComponent) == null || e.updateMatrixWorld(!0), vr.ensureUpdateMeshUI(tB, this.context), this.context.renderer.render(this.gameObject, this.context.mainCamera), this.context.renderer.autoClear = !0, this.previousParent.add(this.gameObject);
64885
64893
  }
64886
64894
  (t = this._lastMatrixWorld) == null || t.copy(this.gameObject.matrixWorld);
64887
64895
  });
@@ -64984,7 +64992,7 @@ const gw = le("debuguilayout"), gU = class extends jb {
64984
64992
  for (const i of this._rectTransforms) {
64985
64993
  e && i.markDirty();
64986
64994
  let s = this._layoutGroups.get(i.gameObject);
64987
- i.isDirty && !s && (s = i.gameObject.getComponentInParent(Pr)), (i.isDirty || s != null && s.isDirty) && (gw && !t && console.log("CANVAS UPDATE ### " + i.name + " ##################################### " + this.context.time.frame), s == null || s.updateLayout(), i.updateTransform());
64995
+ i.isDirty && !s && (s = i.gameObject.getComponentInParent(Rr)), (i.isDirty || s != null && s.isDirty) && (gw && !t && console.log("CANVAS UPDATE ### " + i.name + " ##################################### " + this.context.time.frame), s == null || s.updateLayout(), i.updateTransform());
64988
64996
  }
64989
64997
  }
64990
64998
  applyRenderSettings() {
@@ -65122,12 +65130,12 @@ class Uf extends Se {
65122
65130
  return;
65123
65131
  const t = wt(this.object).clone(), i = wt(this.target).clone(), s = jn(this.object).clone(), r = jn(this.target).clone(), o = ms(this.object).clone(), a = ms(this.target).clone(), l = t.distanceTo(i), c = s.angleTo(r), u = o.distanceTo(a);
65124
65132
  if (l < 0.01 && c < 0.01 && u < 0.01) {
65125
- vn(this.object, i), Er(this.object, r), WT(this.object, a), this.coroutine = null;
65133
+ vn(this.object, i), Ir(this.object, r), WT(this.object, a), this.coroutine = null;
65126
65134
  return;
65127
65135
  }
65128
65136
  let d = 0, f = 0;
65129
65137
  for (; d < 1; )
65130
- d += this.context.time.deltaTime / this.duration, d > 1 && (d = 1), f = d < 0.5 ? 4 * d * d * d : 1 - Math.pow(-2 * d + 2, 3) / 2, this.targetPos.lerpVectors(t, i, f), this.targetRot.slerpQuaternions(s, r, f), this.targetScale.lerpVectors(o, a, f), vn(this.object, this.targetPos), Er(this.object, this.targetRot), WT(this.object, this.targetScale), yield;
65138
+ d += this.context.time.deltaTime / this.duration, d > 1 && (d = 1), f = d < 0.5 ? 4 * d * d * d : 1 - Math.pow(-2 * d + 2, 3) / 2, this.targetPos.lerpVectors(t, i, f), this.targetRot.slerpQuaternions(s, r, f), this.targetScale.lerpVectors(o, a, f), vn(this.object, this.targetPos), Ir(this.object, this.targetRot), WT(this.object, this.targetScale), yield;
65131
65139
  this.coroutine = null;
65132
65140
  }
65133
65141
  *moveRelative() {
@@ -65148,7 +65156,7 @@ class Uf extends Se {
65148
65156
  if (this.target && this.object && this.gameObject) {
65149
65157
  const s = new bs(
65150
65158
  "Move to " + ((i = this.target) == null ? void 0 : i.name),
65151
- wr.tapTrigger(this.gameObject),
65159
+ Cr.tapTrigger(this.gameObject),
65152
65160
  ci.transformAction(this.object, this.target, this.duration, this.relativeMotion ? mS.Relative : mS.Absolute)
65153
65161
  );
65154
65162
  t.addBehavior(s);
@@ -65224,13 +65232,13 @@ const ad = (Vw = class extends Se {
65224
65232
  e.addBehavior(
65225
65233
  new bs(
65226
65234
  "Select " + this.selfModel.name,
65227
- wr.tapTrigger(this.selfModel),
65235
+ Cr.tapTrigger(this.selfModel),
65228
65236
  ci.parallel(...r)
65229
65237
  )
65230
65238
  ), e.addBehavior(
65231
65239
  new bs(
65232
65240
  "Start hidden " + this.selfModel.name,
65233
- wr.sceneStartTrigger(),
65241
+ Cr.sceneStartTrigger(),
65234
65242
  ci.parallel(...s)
65235
65243
  )
65236
65244
  );
@@ -65283,17 +65291,17 @@ class sA extends Se {
65283
65291
  const r = [];
65284
65292
  if (s && r.push(ci.fadeAction(this.selfModel, 0, !1)), this.toggleModel && r.push(ci.fadeAction(this.toggleModel, 0, !0)), r.push(ci.fadeAction(this.otherModel, 0, this.targetState)), t.addBehavior(new bs(
65285
65293
  "Toggle_" + this.selfModel.name + "_hideSelf",
65286
- wr.tapTrigger(this.selfModel),
65294
+ Cr.tapTrigger(this.selfModel),
65287
65295
  ci.sequence(...r)
65288
65296
  )), this.toggleOnClick && this.toggleModel) {
65289
65297
  const o = [];
65290
65298
  o.push(ci.fadeAction(this.toggleModel, 0, !1)), o.push(ci.fadeAction(this.selfModel, 0, !0)), o.push(ci.fadeAction(this.otherModel, 0, !this.targetState)), t.addBehavior(new bs(
65291
65299
  "Toggle_" + this.selfModel.name + "_toggleSelf",
65292
- wr.tapTrigger(this.toggleModel),
65300
+ Cr.tapTrigger(this.toggleModel),
65293
65301
  ci.sequence(...o)
65294
65302
  )), t.addBehavior(new bs(
65295
65303
  "HideOnStart_" + this.gameObject.name,
65296
- wr.sceneStartTrigger(),
65304
+ Cr.sceneStartTrigger(),
65297
65305
  ci.fadeAction(this.toggleModel, 0, !1)
65298
65306
  ));
65299
65307
  }
@@ -65318,7 +65326,7 @@ class mU extends Se {
65318
65326
  createBehaviours(e, t, i) {
65319
65327
  t.uuid === this.gameObject.uuid && e.addBehavior(new bs(
65320
65328
  "HideOnStart_" + this.gameObject.name,
65321
- wr.sceneStartTrigger(),
65329
+ Cr.sceneStartTrigger(),
65322
65330
  ci.fadeAction(t, 0, !1)
65323
65331
  ));
65324
65332
  }
@@ -65342,7 +65350,7 @@ class rA extends Se {
65342
65350
  if (this.target && i.uuid === this.gameObject.uuid) {
65343
65351
  const r = new bs(
65344
65352
  "emphasize " + this.name,
65345
- wr.tapTrigger(this.gameObject),
65353
+ Cr.tapTrigger(this.gameObject),
65346
65354
  ci.emphasize(this.target, this.duration, this.motionType, void 0, "basic")
65347
65355
  );
65348
65356
  t.addBehavior(r);
@@ -65383,7 +65391,7 @@ class oA extends Se {
65383
65391
  return;
65384
65392
  const o = this.target ? this.target.gameObject : this.gameObject, a = r.split("/").pop(), l = this.target ? this.target.volume : 1, c = this.target && this.target.spatialBlend == 0 ? AS.NonSpatial : AS.Spatial, u = new bs(
65385
65393
  "playAudio " + this.name,
65386
- wr.tapTrigger(this.gameObject),
65394
+ Cr.tapTrigger(this.gameObject),
65387
65395
  ci.playAudioAction(o, "audio/" + a, wF.Play, l, c)
65388
65396
  );
65389
65397
  t.addBehavior(u);
@@ -65449,7 +65457,7 @@ const ld = (Ww = class extends Se {
65449
65457
  }
65450
65458
  const c = new bs(
65451
65459
  "tap " + this.name + " for " + this.stateName + " on " + ((o = this.target) == null ? void 0 : o.name),
65452
- wr.tapTrigger(this.selfModel),
65460
+ Cr.tapTrigger(this.selfModel),
65453
65461
  ci.sequence(...a)
65454
65462
  );
65455
65463
  e.addBehavior(c);
@@ -65471,7 +65479,7 @@ Li([
65471
65479
  w(Ie)
65472
65480
  ], du.prototype, "target", 2);
65473
65481
  Li([
65474
- w(Mr)
65482
+ w(Tr)
65475
65483
  ], du.prototype, "animator", 2);
65476
65484
  Li([
65477
65485
  w()
@@ -65644,7 +65652,7 @@ Ul([
65644
65652
  w()
65645
65653
  ], Jc.prototype, "doubleJumpForce", 2);
65646
65654
  Ul([
65647
- w(Mr)
65655
+ w(Tr)
65648
65656
  ], Jc.prototype, "animator", 2);
65649
65657
  var hte = Object.defineProperty, ute = Object.getOwnPropertyDescriptor, dte = (n, e, t, i) => {
65650
65658
  for (var s = i > 1 ? void 0 : i ? ute(e, t) : e, r = n.length - 1, o; r >= 0; r--)
@@ -66076,25 +66084,25 @@ const Eo = (Kv = class {
66076
66084
  return Eo._temp.set(16711935), Eo._temp.alpha = 1, Eo._temp;
66077
66085
  }
66078
66086
  }, h(Kv, "_temp", new Ei(0, 0, 0, 1)), h(Kv, "_temp2", new Ei(0, 0, 0, 1)), Kv);
66079
- let Rr = Eo;
66087
+ let Br = Eo;
66080
66088
  Y([
66081
66089
  w(Ei)
66082
- ], Rr.prototype, "color", 2);
66090
+ ], Br.prototype, "color", 2);
66083
66091
  Y([
66084
66092
  w(Ei)
66085
- ], Rr.prototype, "colorMin", 2);
66093
+ ], Br.prototype, "colorMin", 2);
66086
66094
  Y([
66087
66095
  w(Ei)
66088
- ], Rr.prototype, "colorMax", 2);
66096
+ ], Br.prototype, "colorMax", 2);
66089
66097
  Y([
66090
66098
  w(pu)
66091
- ], Rr.prototype, "gradient", 2);
66099
+ ], Br.prototype, "gradient", 2);
66092
66100
  Y([
66093
66101
  w(pu)
66094
- ], Rr.prototype, "gradientMin", 2);
66102
+ ], Br.prototype, "gradientMin", 2);
66095
66103
  Y([
66096
66104
  w(pu)
66097
- ], Rr.prototype, "gradientMax", 2);
66105
+ ], Br.prototype, "gradientMax", 2);
66098
66106
  class ws {
66099
66107
  constructor() {
66100
66108
  h(this, "cullingMode");
@@ -66145,7 +66153,7 @@ Y([
66145
66153
  w(ct)
66146
66154
  ], ws.prototype, "gravityModifier", 2);
66147
66155
  Y([
66148
- w(Rr)
66156
+ w(Br)
66149
66157
  ], ws.prototype, "startColor", 2);
66150
66158
  Y([
66151
66159
  w(ct)
@@ -66274,7 +66282,7 @@ class u_ {
66274
66282
  }
66275
66283
  }
66276
66284
  Y([
66277
- w(Rr)
66285
+ w(Br)
66278
66286
  ], u_.prototype, "color", 2);
66279
66287
  class gu {
66280
66288
  constructor() {
@@ -66687,10 +66695,10 @@ Y([
66687
66695
  w()
66688
66696
  ], Hi.prototype, "attachRibbonToTransform", 2);
66689
66697
  Y([
66690
- w(Rr)
66698
+ w(Br)
66691
66699
  ], Hi.prototype, "colorOverLifetime", 2);
66692
66700
  Y([
66693
- w(Rr)
66701
+ w(Br)
66694
66702
  ], Hi.prototype, "colorOverTrail", 2);
66695
66703
  Y([
66696
66704
  w()
@@ -67203,7 +67211,7 @@ Y([
67203
67211
  w(V)
67204
67212
  ], zf.prototype, "range", 2);
67205
67213
  Y([
67206
- w(Rr)
67214
+ w(Br)
67207
67215
  ], zf.prototype, "color", 2);
67208
67216
  function bte(n) {
67209
67217
  const e = n.domElement.querySelector("link[rel='ar']");
@@ -67225,7 +67233,7 @@ function _te() {
67225
67233
  }
67226
67234
  const Ov = le("debugusdz");
67227
67235
  function xte(n, e) {
67228
- const t = [], i = $.getComponentsInChildren(n, Mr);
67236
+ const t = [], i = $.getComponentsInChildren(n, Tr);
67229
67237
  let s = !1;
67230
67238
  Ov && console.log(i);
67231
67239
  for (const r of i) {
@@ -67238,7 +67246,7 @@ function xte(n, e) {
67238
67246
  const l = a.getClip();
67239
67247
  if (!s && l.tracks.length > 0) {
67240
67248
  s = !0;
67241
- const c = l.tracks[0], u = c.name.substring(0, c.name.lastIndexOf(".")), d = new Sr(u + ".position", [0, 0.01], [0, 0, 0, 0, 0, 0]), f = new Sr(u + ".quaternion", [0, 0.01], [0, 0, 0, 1, 0, 0, 0, 1]);
67249
+ const c = l.tracks[0], u = c.name.substring(0, c.name.lastIndexOf(".")), d = new Er(u + ".position", [0, 0.01], [0, 0, 0, 0, 0, 0]), f = new Er(u + ".quaternion", [0, 0.01], [0, 0, 0, 1, 0, 0, 0, 1]);
67242
67250
  o.push(new ao("rest", 0.01, [d, f]));
67243
67251
  }
67244
67252
  o.includes(l) || o.push(l);
@@ -68250,7 +68258,7 @@ const gM = class {
68250
68258
  this._hasGroundPlane = !0, this._groundPlane.setFromNormalAndCoplanarPoint(t.direction.multiplyScalar(-1), t.origin), this._raycaster.ray.intersectPlane(this._groundPlane, this._intersection), this._groundDistance = this._intersection.distanceTo(e), this._groundOffset.copy(this._intersection).sub(e);
68251
68259
  }
68252
68260
  onDidUpdate() {
68253
- br.markDirty(this._selected);
68261
+ _r.markDirty(this._selected);
68254
68262
  for (const e of this._rbs)
68255
68263
  e.wakeUp(), e.resetForcesAndTorques(), e.setAngularVelocity(0, 0, 0);
68256
68264
  }
@@ -68615,7 +68623,7 @@ LI([
68615
68623
  w()
68616
68624
  ], FI.prototype, "eventID", 2);
68617
68625
  LI([
68618
- w(xr)
68626
+ w(wr)
68619
68627
  ], FI.prototype, "callback", 2);
68620
68628
  class UI extends Se {
68621
68629
  constructor() {
@@ -69017,16 +69025,16 @@ const ni = {
69017
69025
  CLAMP_TO_EDGE: 33071,
69018
69026
  MIRRORED_REPEAT: 33648,
69019
69027
  REPEAT: 10497
69020
- }, vr = {};
69021
- vr[Yt] = ni.NEAREST;
69022
- vr[Qd] = ni.NEAREST_MIPMAP_NEAREST;
69023
- vr[Hd] = ni.NEAREST_MIPMAP_LINEAR;
69024
- vr[Ot] = ni.LINEAR;
69025
- vr[fm] = ni.LINEAR_MIPMAP_NEAREST;
69026
- vr[Uo] = ni.LINEAR_MIPMAP_LINEAR;
69027
- vr[Vn] = ni.CLAMP_TO_EDGE;
69028
- vr[nr] = ni.REPEAT;
69029
- vr[wl] = ni.MIRRORED_REPEAT;
69028
+ }, yr = {};
69029
+ yr[Yt] = ni.NEAREST;
69030
+ yr[Qd] = ni.NEAREST_MIPMAP_NEAREST;
69031
+ yr[Hd] = ni.NEAREST_MIPMAP_LINEAR;
69032
+ yr[Ot] = ni.LINEAR;
69033
+ yr[fm] = ni.LINEAR_MIPMAP_NEAREST;
69034
+ yr[Uo] = ni.LINEAR_MIPMAP_LINEAR;
69035
+ yr[Vn] = ni.CLAMP_TO_EDGE;
69036
+ yr[nr] = ni.REPEAT;
69037
+ yr[wl] = ni.MIRRORED_REPEAT;
69030
69038
  const hB = {
69031
69039
  scale: "scale",
69032
69040
  position: "translation",
@@ -69422,10 +69430,10 @@ class cie {
69422
69430
  const t = this.json;
69423
69431
  t.samplers || (t.samplers = []);
69424
69432
  const i = {
69425
- magFilter: vr[e.magFilter],
69426
- minFilter: vr[e.minFilter],
69427
- wrapS: vr[e.wrapS],
69428
- wrapT: vr[e.wrapT]
69433
+ magFilter: yr[e.magFilter],
69434
+ minFilter: yr[e.minFilter],
69435
+ wrapS: yr[e.wrapS],
69436
+ wrapT: yr[e.wrapT]
69429
69437
  };
69430
69438
  return t.samplers.push(i) - 1;
69431
69439
  }
@@ -70489,10 +70497,10 @@ m_([
70489
70497
  w(ar)
70490
70498
  ], Vf.prototype, "placeholder", 2);
70491
70499
  m_([
70492
- w(xr)
70500
+ w(wr)
70493
70501
  ], Vf.prototype, "onValueChanged", 2);
70494
70502
  m_([
70495
- w(xr)
70503
+ w(wr)
70496
70504
  ], Vf.prototype, "onEndEdit", 2);
70497
70505
  var Cie = Object.defineProperty, Sie = Object.getOwnPropertyDescriptor, Da = (n, e, t, i) => {
70498
70506
  for (var s = i > 1 ? void 0 : i ? Sie(e, t) : e, r = n.length - 1, o; r >= 0; r--)
@@ -70503,7 +70511,7 @@ function xw(n) {
70503
70511
  return n * Math.PI / 180;
70504
70512
  }
70505
70513
  const gB = 300, Xu = le("debuglights");
70506
- class Br extends Se {
70514
+ class Dr extends Se {
70507
70515
  constructor() {
70508
70516
  super(...arguments);
70509
70517
  h(this, "type", 0);
@@ -70702,37 +70710,37 @@ class Br extends Se {
70702
70710
  t.add(t.target), t.target.position.set(0, 0, -1);
70703
70711
  }
70704
70712
  }
70705
- h(Br, "allowChangingRendererShadowMapType", !0);
70713
+ h(Dr, "allowChangingRendererShadowMapType", !0);
70706
70714
  Da([
70707
70715
  w()
70708
- ], Br.prototype, "type", 2);
70716
+ ], Dr.prototype, "type", 2);
70709
70717
  Da([
70710
70718
  w(ye)
70711
- ], Br.prototype, "color", 1);
70719
+ ], Dr.prototype, "color", 1);
70712
70720
  Da([
70713
70721
  w()
70714
- ], Br.prototype, "shadowNearPlane", 1);
70722
+ ], Dr.prototype, "shadowNearPlane", 1);
70715
70723
  Da([
70716
70724
  w()
70717
- ], Br.prototype, "shadowBias", 1);
70725
+ ], Dr.prototype, "shadowBias", 1);
70718
70726
  Da([
70719
70727
  w()
70720
- ], Br.prototype, "shadowNormalBias", 1);
70728
+ ], Dr.prototype, "shadowNormalBias", 1);
70721
70729
  Da([
70722
70730
  w()
70723
- ], Br.prototype, "shadows", 1);
70731
+ ], Dr.prototype, "shadows", 1);
70724
70732
  Da([
70725
70733
  w()
70726
- ], Br.prototype, "lightmapBakeType", 2);
70734
+ ], Dr.prototype, "lightmapBakeType", 2);
70727
70735
  Da([
70728
70736
  w()
70729
- ], Br.prototype, "intensity", 1);
70737
+ ], Dr.prototype, "intensity", 1);
70730
70738
  Da([
70731
70739
  w()
70732
- ], Br.prototype, "shadowDistance", 1);
70740
+ ], Dr.prototype, "shadowDistance", 1);
70733
70741
  Da([
70734
70742
  w()
70735
- ], Br.prototype, "shadowResolution", 1);
70743
+ ], Dr.prototype, "shadowResolution", 1);
70736
70744
  new S(0, 0, 0);
70737
70745
  var Eie = Object.defineProperty, Iie = Object.getOwnPropertyDescriptor, hA = (n, e, t, i) => {
70738
70746
  for (var s = i > 1 ? void 0 : i ? Iie(e, t) : e, r = n.length - 1, o; r >= 0; r--)
@@ -70895,7 +70903,7 @@ const MU = (jw = class extends Se {
70895
70903
  if (e || (e = this.context.mainCamera), !e)
70896
70904
  return;
70897
70905
  const t = wt(e), i = wt(this.gameObject);
70898
- this.keepUpDirection && (t.y = i.y), this.copyTargetRotation ? Er(this.gameObject, jn(e)) : this.gameObject.lookAt(t), this.invertForward && this.gameObject.quaternion.multiply(MU.flipYQuat);
70906
+ this.keepUpDirection && (t.y = i.y), this.copyTargetRotation ? Ir(this.gameObject, jn(e)) : this.gameObject.lookAt(t), this.invertForward && this.gameObject.quaternion.multiply(MU.flipYQuat);
70899
70907
  }
70900
70908
  createBehaviours(e, t, i) {
70901
70909
  if (t.uuid === this.gameObject.uuid) {
@@ -70908,7 +70916,7 @@ const MU = (jw = class extends Se {
70908
70916
  }
70909
70917
  const r = new bs(
70910
70918
  "lookat " + this.name,
70911
- wr.sceneStartTrigger(),
70919
+ Cr.sceneStartTrigger(),
70912
70920
  ci.lookAtCameraAction(
70913
70921
  s,
70914
70922
  void 0,
@@ -71016,7 +71024,7 @@ class qf extends Se {
71016
71024
  }
71017
71025
  this.affectPosition && vn(this.gameObject, t);
71018
71026
  const r = new An(this.rotationOffset.x, this.rotationOffset.y, this.rotationOffset.z), o = new xe().setFromEuler(r);
71019
- this.affectRotation && Er(this.gameObject, i.multiply(o));
71027
+ this.affectRotation && Ir(this.gameObject, i.multiply(o));
71020
71028
  let a = new S();
71021
71029
  this.from.getWorldDirection(a).multiplyScalar(50), this.levelLookDirection && (a.y = 0), this.alignLookDirection && this.gameObject.lookAt(a);
71022
71030
  }
@@ -72749,7 +72757,7 @@ var FB = /* @__PURE__ */ function() {
72749
72757
  },
72750
72758
  set: function(t) {
72751
72759
  this._mesh = t;
72752
- var i = new gr();
72760
+ var i = new mr();
72753
72761
  this._triangleIndexToArea.length = 0;
72754
72762
  var s = 0, r = t.geometry;
72755
72763
  if (r.getIndex()) {
@@ -73405,7 +73413,7 @@ var Ane = /* @__PURE__ */ function(n) {
73405
73413
  return qt(t, [{
73406
73414
  key: "buildExpandableBuffers",
73407
73415
  value: function() {
73408
- this.offsetBuffer = new dr(new Float32Array(this.maxParticles * 3), 3), this.offsetBuffer.setUsage(gs), this.geometry.setAttribute("offset", this.offsetBuffer), this.colorBuffer = new dr(new Float32Array(this.maxParticles * 4), 4), this.colorBuffer.setUsage(gs), this.geometry.setAttribute("color", this.colorBuffer), this.settings.renderMode === yt.LocalSpace ? (this.rotationBuffer = new dr(new Float32Array(this.maxParticles * 4), 4), this.rotationBuffer.setUsage(gs), this.geometry.setAttribute("rotation", this.rotationBuffer)) : (this.settings.renderMode === yt.BillBoard || this.settings.renderMode === yt.StretchedBillBoard) && (this.rotationBuffer = new dr(new Float32Array(this.maxParticles), 1), this.rotationBuffer.setUsage(gs), this.geometry.setAttribute("rotation", this.rotationBuffer)), this.sizeBuffer = new dr(new Float32Array(this.maxParticles), 1), this.sizeBuffer.setUsage(gs), this.geometry.setAttribute("size", this.sizeBuffer), this.uvTileBuffer = new dr(new Float32Array(this.maxParticles), 1), this.uvTileBuffer.setUsage(gs), this.geometry.setAttribute("uvTile", this.uvTileBuffer), this.settings.renderMode === yt.StretchedBillBoard && (this.velocityBuffer = new dr(new Float32Array(this.maxParticles * 3), 3), this.velocityBuffer.setUsage(gs), this.geometry.setAttribute("velocity", this.velocityBuffer));
73416
+ this.offsetBuffer = new fr(new Float32Array(this.maxParticles * 3), 3), this.offsetBuffer.setUsage(gs), this.geometry.setAttribute("offset", this.offsetBuffer), this.colorBuffer = new fr(new Float32Array(this.maxParticles * 4), 4), this.colorBuffer.setUsage(gs), this.geometry.setAttribute("color", this.colorBuffer), this.settings.renderMode === yt.LocalSpace ? (this.rotationBuffer = new fr(new Float32Array(this.maxParticles * 4), 4), this.rotationBuffer.setUsage(gs), this.geometry.setAttribute("rotation", this.rotationBuffer)) : (this.settings.renderMode === yt.BillBoard || this.settings.renderMode === yt.StretchedBillBoard) && (this.rotationBuffer = new fr(new Float32Array(this.maxParticles), 1), this.rotationBuffer.setUsage(gs), this.geometry.setAttribute("rotation", this.rotationBuffer)), this.sizeBuffer = new fr(new Float32Array(this.maxParticles), 1), this.sizeBuffer.setUsage(gs), this.geometry.setAttribute("size", this.sizeBuffer), this.uvTileBuffer = new fr(new Float32Array(this.maxParticles), 1), this.uvTileBuffer.setUsage(gs), this.geometry.setAttribute("uvTile", this.uvTileBuffer), this.settings.renderMode === yt.StretchedBillBoard && (this.velocityBuffer = new fr(new Float32Array(this.maxParticles * 3), 3), this.velocityBuffer.setUsage(gs), this.geometry.setAttribute("velocity", this.velocityBuffer));
73409
73417
  }
73410
73418
  }, {
73411
73419
  key: "setupBuffers",
@@ -77762,13 +77770,13 @@ pA([
77762
77770
  w()
77763
77771
  ], _l.prototype, "triggerMask", 2);
77764
77772
  pA([
77765
- w(xr)
77773
+ w(wr)
77766
77774
  ], _l.prototype, "onEnter", 2);
77767
77775
  pA([
77768
- w(xr)
77776
+ w(wr)
77769
77777
  ], _l.prototype, "onStay", 2);
77770
77778
  pA([
77771
- w(xr)
77779
+ w(wr)
77772
77780
  ], _l.prototype, "onExit", 2);
77773
77781
  var Xw;
77774
77782
  const ky = (Xw = class extends Se {
@@ -77816,7 +77824,7 @@ var Lse = Object.defineProperty, Fse = Object.getOwnPropertyDescriptor, Use = (n
77816
77824
  (o = n[r]) && (s = (i ? o(e, t, s) : o(s)) || s);
77817
77825
  return i && s && Lse(e, t, s), s;
77818
77826
  };
77819
- const mr = le("debugspectator");
77827
+ const Ar = le("debugspectator");
77820
77828
  class JI extends Se {
77821
77829
  constructor() {
77822
77830
  super(...arguments);
@@ -77905,14 +77913,14 @@ class JI extends Se {
77905
77913
  this.isSupportedPlatform() && $.setActive(this.gameObject, !0);
77906
77914
  }
77907
77915
  onXRSessionStart(t) {
77908
- this.isSupportedPlatform() && (mr && console.log(this.context.mainCamera), this.context.mainCamera && this.followSelf());
77916
+ this.isSupportedPlatform() && (Ar && console.log(this.context.mainCamera), this.context.mainCamera && this.followSelf());
77909
77917
  }
77910
77918
  onXRSessionEnded(t) {
77911
77919
  var i, s;
77912
77920
  this.context.removeCamera(this.cam), $.setActive(this.gameObject, !1), this.orbit && (this.orbit.enabled = !0), (i = this._handler) == null || i.set(void 0), (s = this._handler) == null || s.disable(), this.isSpectatingSelf && this.stopSpectating();
77913
77921
  }
77914
77922
  followSelf() {
77915
- this.target = this.context.players.getPlayerView(this.context.connection.connectionId), this.target || (this.context.players.setPlayerView(this.localId, this.context.mainCamera, yl.Headset), this.target = this.context.players.getPlayerView(this.localId)), mr && console.log("Follow self", this.target);
77923
+ this.target = this.context.players.getPlayerView(this.context.connection.connectionId), this.target || (this.context.players.setPlayerView(this.localId, this.context.mainCamera, yl.Headset), this.target = this.context.players.getPlayerView(this.localId)), Ar && console.log("Follow self", this.target);
77916
77924
  }
77917
77925
  // TODO: only show Spectator cam for DesktopVR;
77918
77926
  // don't show for AR, don't show on Quest
@@ -77993,10 +78001,10 @@ class Nse {
77993
78001
  this.spectator.stopSpectating();
77994
78002
  return;
77995
78003
  }
77996
- t !== this.currentObject && (this.currentObject = t, this.view = e, this.follow || (this.follow = $.addNewComponent(this.cam.gameObject, bu)), this.target || (this.target = new Ie()), t.add(this.target), this.follow.enabled = !0, this.follow.target = this.target, mr && console.log("FOLLOW", t), this.context.isInXR ? this.context.removeCamera(this.cam) : this.context.setCurrentCamera(this.cam));
78004
+ t !== this.currentObject && (this.currentObject = t, this.view = e, this.follow || (this.follow = $.addNewComponent(this.cam.gameObject, bu)), this.target || (this.target = new Ie()), t.add(this.target), this.follow.enabled = !0, this.follow.target = this.target, Ar && console.log("FOLLOW", t), this.context.isInXR ? this.context.removeCamera(this.cam) : this.context.setCurrentCamera(this.cam));
77997
78005
  }
77998
78006
  disable() {
77999
- mr && console.log("STOP FOLLOW", this.currentObject), this.view = void 0, this.currentObject = void 0, this.context.removeCamera(this.cam), this.follow && (this.follow.enabled = !1);
78007
+ Ar && console.log("STOP FOLLOW", this.currentObject), this.view = void 0, this.currentObject = void 0, this.context.removeCamera(this.cam), this.follow && (this.follow.enabled = !1);
78000
78008
  }
78001
78009
  destroy() {
78002
78010
  var e;
@@ -78005,10 +78013,10 @@ class Nse {
78005
78013
  update(e) {
78006
78014
  var s, r, o, a, l, c;
78007
78015
  if (((s = this.currentTarget) == null ? void 0 : s.isConnected) === !1 || ((r = this.currentTarget) == null ? void 0 : r.removed) === !0) {
78008
- mr && console.log("Target disconnected or timeout", this.currentTarget), this.spectator.stopSpectating();
78016
+ Ar && console.log("Target disconnected or timeout", this.currentTarget), this.spectator.stopSpectating();
78009
78017
  return;
78010
78018
  }
78011
- this.currentTarget && ((o = this.currentTarget) == null ? void 0 : o.currentObject) !== this.currentObject && (mr && console.log("Target changed", this.currentObject, "to", this.currentTarget.currentObject), this.set(this.currentTarget));
78019
+ this.currentTarget && ((o = this.currentTarget) == null ? void 0 : o.currentObject) !== this.currentObject && (Ar && console.log("Target changed", this.currentObject, "to", this.currentTarget.currentObject), this.set(this.currentTarget));
78012
78020
  const t = this.context.mainCamera;
78013
78021
  t && (this.cam.cam.near !== t.near || this.cam.cam.far !== t.far) && (this.cam.cam.near = t.near, this.cam.cam.far = t.far, this.cam.cam.updateProjectionMatrix());
78014
78022
  const i = (a = this.follow) == null ? void 0 : a.target;
@@ -78047,14 +78055,14 @@ class Gse {
78047
78055
  const e = new Ma();
78048
78056
  e.setMask(16777215);
78049
78057
  const t = this.context.physics.raycast(e);
78050
- if (mr && console.log(...t), t != null && t.length)
78058
+ if (Ar && console.log(...t), t != null && t.length)
78051
78059
  for (const i of t) {
78052
78060
  if (i.distance < 0.2)
78053
78061
  continue;
78054
78062
  const s = i.object, r = $.getComponentInParent(s, is), o = r == null ? void 0 : r.connectionId;
78055
78063
  if (o) {
78056
78064
  const a = this.context.players.getPlayerView(o);
78057
- this.spectator.target = a, mr && console.log("spectate", o, r);
78065
+ this.spectator.target = a, Ar && console.log("spectate", o, r);
78058
78066
  break;
78059
78067
  }
78060
78068
  }
@@ -78099,13 +78107,13 @@ class Vse {
78099
78107
  this.context.connection.stopListen("spectator-follower-changed", this._followerEventMethod), this.context.connection.stopListen("spectator-request-follow", this._requestFollowMethod), this.context.connection.stopListen(rn.JoinedRoom, this._joinedRoomMethod);
78100
78108
  }
78101
78109
  onSpectatedObjectChanged(e, t) {
78102
- if (mr && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", e, t), this.context.connection.connectionId) {
78110
+ if (Ar && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", e, t), this.context.connection.connectionId) {
78103
78111
  const i = (e == null ? void 0 : e.userId) === void 0, s = i ? t : e == null ? void 0 : e.userId, r = new Qse(this.context.connection.connectionId, s, i);
78104
78112
  this.context.connection.send("spectator-follower-changed", r);
78105
78113
  }
78106
78114
  }
78107
78115
  onRequestFollowMe(e = !1) {
78108
- if (mr && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
78116
+ if (Ar && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
78109
78117
  this.spectator.stopSpectating();
78110
78118
  const t = e ? void 0 : this.context.connection.connectionId, i = new Hse(this.spectator, t);
78111
78119
  this.context.connection.send("spectator-request-follow", i);
@@ -78116,7 +78124,7 @@ class Vse {
78116
78124
  }
78117
78125
  onFollowerEvent(e) {
78118
78126
  const t = e.targetUserId, i = e.guid;
78119
- if (mr && console.log(e), t === this.context.connection.connectionId)
78127
+ if (Ar && console.log(e), t === this.context.connection.connectionId)
78120
78128
  if (e.stoppedFollowing) {
78121
78129
  const s = this.followers.indexOf(i);
78122
78130
  s !== -1 && (this.followers.splice(s, 1), this.removeDisconnectedFollowers(), console.log(i, "unfollows you", this.followers.length));
@@ -78139,13 +78147,13 @@ class Vse {
78139
78147
  if (t)
78140
78148
  this.spectator.target = t;
78141
78149
  else
78142
- return mr && console.warn("Could not find view", e.userId), this.enforceFollow(), !1;
78150
+ return Ar && console.warn("Could not find view", e.userId), this.enforceFollow(), !1;
78143
78151
  }
78144
78152
  return !0;
78145
78153
  }
78146
78154
  enforceFollow() {
78147
78155
  this._enforceFollowInterval || (this._enforceFollowInterval = setInterval(() => {
78148
- this._lastRequestFollowUser === void 0 || this._lastRequestFollowUser.userId && this.spectator.isFollowedBy(this._lastRequestFollowUser.userId) ? (clearInterval(this._enforceFollowInterval), this._enforceFollowInterval = void 0) : (mr && console.log("REQUEST FOLLOW AGAIN", this._lastRequestFollowUser.userId), this.onRequestFollowEvent(this._lastRequestFollowUser));
78156
+ this._lastRequestFollowUser === void 0 || this._lastRequestFollowUser.userId && this.spectator.isFollowedBy(this._lastRequestFollowUser.userId) ? (clearInterval(this._enforceFollowInterval), this._enforceFollowInterval = void 0) : (Ar && console.log("REQUEST FOLLOW AGAIN", this._lastRequestFollowUser.userId), this.onRequestFollowEvent(this._lastRequestFollowUser));
78149
78157
  }, 1e3));
78150
78158
  }
78151
78159
  }
@@ -78341,11 +78349,11 @@ class oa {
78341
78349
  }
78342
78350
  pos(e) {
78343
78351
  const t = this.bb.__offset(this.bb_pos, 10);
78344
- return t ? (e || new Cr()).__init(this.bb_pos + t, this.bb) : null;
78352
+ return t ? (e || new Sr()).__init(this.bb_pos + t, this.bb) : null;
78345
78353
  }
78346
78354
  rot(e) {
78347
78355
  const t = this.bb.__offset(this.bb_pos, 12);
78348
- return t ? (e || new Cr()).__init(this.bb_pos + t, this.bb) : null;
78356
+ return t ? (e || new Sr()).__init(this.bb_pos + t, this.bb) : null;
78349
78357
  }
78350
78358
  static startSyncedCameraModel(e) {
78351
78359
  e.startObject(5);
@@ -78398,7 +78406,7 @@ class Jse {
78398
78406
  const i = hr.createString(this.guid), s = hr.createString(this.userId);
78399
78407
  oa.startSyncedCameraModel(hr), oa.addGuid(hr, i), oa.addUserId(hr, s);
78400
78408
  const r = wt(e), o = VE(e);
78401
- oa.addPos(hr, Cr.createVec3(hr, r.x, r.y, r.z)), oa.addRot(hr, Cr.createVec3(hr, o.x, o.y, o.z));
78409
+ oa.addPos(hr, Sr.createVec3(hr, r.x, r.y, r.z)), oa.addRot(hr, Sr.createVec3(hr, o.x, o.y, o.z));
78402
78410
  const a = oa.endSyncedCameraModel(hr);
78403
78411
  hr.finish(a, B0), t.sendBinary(hr.asUint8Array());
78404
78412
  }
@@ -78472,7 +78480,7 @@ const FS = (Yw = class extends Se {
78472
78480
  } else
78473
78481
  return;
78474
78482
  const r = s.obj;
78475
- this.context.players.setPlayerView(i, r, yl.Browser), s.lastUpdate = this.context.time.realtimeSinceStartup, br.markDirty(r);
78483
+ this.context.players.setPlayerView(i, r, yl.Browser), s.lastUpdate = this.context.time.realtimeSinceStartup, _r.markDirty(r);
78476
78484
  const o = e.pos();
78477
78485
  o && Ng(r, o.x(), o.y(), o.z());
78478
78486
  const a = e.rot();
@@ -79596,8 +79604,8 @@ function Ere(n) {
79596
79604
  // @ts-ignore
79597
79605
  new Lt({
79598
79606
  name: "BackgroundMaterial",
79599
- uniforms: uE.clone(pr.background.uniforms),
79600
- vertexShader: pr.background.vertexShader,
79607
+ uniforms: uE.clone(gr.background.uniforms),
79608
+ vertexShader: gr.background.vertexShader,
79601
79609
  fragmentShader: Sre.replace("<backgroundTint>", e),
79602
79610
  // ShaderLib.background.fragmentShader,
79603
79611
  side: Si,
@@ -79983,10 +79991,10 @@ class YU extends Se {
79983
79991
  this.context.connection.stopListen("xr-grab-visual-start-or-update", this._addOrUpdateSub), this.context.connection.stopListen("xr-grab-visual-end", this._endSub), Lo.RemoveEventListener(SS.WillFree, this._freeSub);
79984
79992
  }
79985
79993
  addOrUpdateGrab(t) {
79986
- this.context.connection.send("xr-grab-visual-start-or-update", t, fr.Queued);
79994
+ this.context.connection.send("xr-grab-visual-start-or-update", t, pr.Queued);
79987
79995
  }
79988
79996
  endGrab(t) {
79989
- this.context.connection.send("xr-grab-visual-end", t, fr.Queued);
79997
+ this.context.connection.send("xr-grab-visual-end", t, pr.Queued);
79990
79998
  }
79991
79999
  onRemoteGrabStartOrUpdate(t) {
79992
80000
  if (!this.prefab)
@@ -80057,7 +80065,7 @@ const Dre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80057
80065
  AnimationCurve: Tf,
80058
80066
  AnimationExtension: O1,
80059
80067
  AnimationTrackHandler: yI,
80060
- Animator: Mr,
80068
+ Animator: Tr,
80061
80069
  AnimatorController: Yd,
80062
80070
  Antialiasing: Jb,
80063
80071
  AttachedObject: Lo,
@@ -80112,9 +80120,9 @@ const Dre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80112
80120
  Duplicatable: Qf,
80113
80121
  EmissionModule: Nl,
80114
80122
  EmphasizeOnClick: rA,
80115
- EventList: xr,
80123
+ EventList: wr,
80116
80124
  EventListEvent: T1,
80117
- EventSystem: Ar,
80125
+ EventSystem: vr,
80118
80126
  EventTrigger: UI,
80119
80127
  FieldWithDefault: pF,
80120
80128
  FixedJoint: wU,
@@ -80138,7 +80146,7 @@ const Dre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80138
80146
  Interactable: Hm,
80139
80147
  LODGroup: A_,
80140
80148
  LODModel: Wf,
80141
- Light: Br,
80149
+ Light: Dr,
80142
80150
  LimitVelocityOverLifetimeModule: Ln,
80143
80151
  LogStats: IU,
80144
80152
  LookAt: jf,
@@ -80148,7 +80156,7 @@ const Dre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80148
80156
  MeshCollider: i_,
80149
80157
  MeshRenderer: P1,
80150
80158
  MinMaxCurve: ct,
80151
- MinMaxGradient: Rr,
80159
+ MinMaxGradient: Br,
80152
80160
  NestedGltf: VI,
80153
80161
  Networking: Gf,
80154
80162
  NoiseModule: pi,
@@ -80226,7 +80234,7 @@ const Dre = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
80226
80234
  TrailModule: Hi,
80227
80235
  TransformData: k1,
80228
80236
  TransformGizmo: Zf,
80229
- TriggerBuilder: wr,
80237
+ TriggerBuilder: Cr,
80230
80238
  TriggerModel: Mc,
80231
80239
  UIRaycastUtils: nm,
80232
80240
  UIRootComponent: jb,
@@ -80416,7 +80424,7 @@ Q.add("Animation", ba);
80416
80424
  Q.add("AnimationCurve", Tf);
80417
80425
  Q.add("AnimationExtension", O1);
80418
80426
  Q.add("AnimationTrackHandler", yI);
80419
- Q.add("Animator", Mr);
80427
+ Q.add("Animator", Tr);
80420
80428
  Q.add("AnimatorController", Yd);
80421
80429
  Q.add("Antialiasing", Jb);
80422
80430
  Q.add("AttachedObject", Lo);
@@ -80471,9 +80479,9 @@ Q.add("DropListener", d_);
80471
80479
  Q.add("Duplicatable", Qf);
80472
80480
  Q.add("EmissionModule", Nl);
80473
80481
  Q.add("EmphasizeOnClick", rA);
80474
- Q.add("EventList", xr);
80482
+ Q.add("EventList", wr);
80475
80483
  Q.add("EventListEvent", T1);
80476
- Q.add("EventSystem", Ar);
80484
+ Q.add("EventSystem", vr);
80477
80485
  Q.add("EventTrigger", UI);
80478
80486
  Q.add("FieldWithDefault", pF);
80479
80487
  Q.add("FixedJoint", wU);
@@ -80495,7 +80503,7 @@ Q.add("Image", iA);
80495
80503
  Q.add("InheritVelocityModule", mu);
80496
80504
  Q.add("InputField", Vf);
80497
80505
  Q.add("Interactable", Hm);
80498
- Q.add("Light", Br);
80506
+ Q.add("Light", Dr);
80499
80507
  Q.add("LimitVelocityOverLifetimeModule", Ln);
80500
80508
  Q.add("LODGroup", A_);
80501
80509
  Q.add("LODModel", Wf);
@@ -80507,7 +80515,7 @@ Q.add("MaskableGraphic", n_);
80507
80515
  Q.add("MeshCollider", i_);
80508
80516
  Q.add("MeshRenderer", P1);
80509
80517
  Q.add("MinMaxCurve", ct);
80510
- Q.add("MinMaxGradient", Rr);
80518
+ Q.add("MinMaxGradient", Br);
80511
80519
  Q.add("NestedGltf", VI);
80512
80520
  Q.add("Networking", Gf);
80513
80521
  Q.add("NoiseModule", pi);
@@ -80588,7 +80596,7 @@ Q.add("ToneMapping", I_);
80588
80596
  Q.add("TrailModule", Hi);
80589
80597
  Q.add("TransformData", k1);
80590
80598
  Q.add("TransformGizmo", Zf);
80591
- Q.add("TriggerBuilder", wr);
80599
+ Q.add("TriggerBuilder", Cr);
80592
80600
  Q.add("TriggerModel", Mc);
80593
80601
  Q.add("UIRaycastUtils", nm);
80594
80602
  Q.add("UIRootComponent", jb);
@@ -80828,7 +80836,7 @@ function nN(n, e = !1) {
80828
80836
  if (s && s.length > 0)
80829
80837
  for (let o = 0; o < s.length; o++) {
80830
80838
  const a = s[o];
80831
- if (a instanceof Mr || a instanceof ba)
80839
+ if (a instanceof Tr || a instanceof ba)
80832
80840
  return i;
80833
80841
  }
80834
80842
  return t(i.parent);
@@ -81323,14 +81331,14 @@ function noe() {
81323
81331
  function soe() {
81324
81332
  return pD.byteLength, pD;
81325
81333
  }
81326
- let ur = 0;
81334
+ let dr = 0;
81327
81335
  function ph(n, e) {
81328
81336
  const t = e(4 * n.length);
81329
- return noe().set(n, t / 4), ur = n.length, t;
81337
+ return noe().set(n, t / 4), dr = n.length, t;
81330
81338
  }
81331
81339
  function qv(n, e) {
81332
81340
  const t = e(4 * n.length);
81333
- return soe().set(n, t / 4), ur = n.length, t;
81341
+ return soe().set(n, t / 4), dr = n.length, t;
81334
81342
  }
81335
81343
  class D0 {
81336
81344
  static __wrap(e) {
@@ -81536,15 +81544,15 @@ class zt {
81536
81544
  return zt.__wrap(s);
81537
81545
  }
81538
81546
  static polyline(e, t) {
81539
- const i = ph(e, Qe.__wbindgen_malloc), s = ur, r = qv(t, Qe.__wbindgen_malloc), o = ur, a = Qe.rawshape_polyline(i, s, r, o);
81547
+ const i = ph(e, Qe.__wbindgen_malloc), s = dr, r = qv(t, Qe.__wbindgen_malloc), o = dr, a = Qe.rawshape_polyline(i, s, r, o);
81540
81548
  return zt.__wrap(a);
81541
81549
  }
81542
81550
  static trimesh(e, t) {
81543
- const i = ph(e, Qe.__wbindgen_malloc), s = ur, r = qv(t, Qe.__wbindgen_malloc), o = ur, a = Qe.rawshape_trimesh(i, s, r, o);
81551
+ const i = ph(e, Qe.__wbindgen_malloc), s = dr, r = qv(t, Qe.__wbindgen_malloc), o = dr, a = Qe.rawshape_trimesh(i, s, r, o);
81544
81552
  return zt.__wrap(a);
81545
81553
  }
81546
81554
  static heightfield(e, t, i, s) {
81547
- const r = ph(i, Qe.__wbindgen_malloc), o = ur;
81555
+ const r = ph(i, Qe.__wbindgen_malloc), o = dr;
81548
81556
  mt(s, ut);
81549
81557
  const a = Qe.rawshape_heightfield(e, t, r, o, s.ptr);
81550
81558
  return zt.__wrap(a);
@@ -81565,19 +81573,19 @@ class zt {
81565
81573
  return zt.__wrap(r);
81566
81574
  }
81567
81575
  static convexHull(e) {
81568
- const t = ph(e, Qe.__wbindgen_malloc), i = ur, s = Qe.rawshape_convexHull(t, i);
81576
+ const t = ph(e, Qe.__wbindgen_malloc), i = dr, s = Qe.rawshape_convexHull(t, i);
81569
81577
  return s === 0 ? void 0 : zt.__wrap(s);
81570
81578
  }
81571
81579
  static roundConvexHull(e, t) {
81572
- const i = ph(e, Qe.__wbindgen_malloc), s = ur, r = Qe.rawshape_roundConvexHull(i, s, t);
81580
+ const i = ph(e, Qe.__wbindgen_malloc), s = dr, r = Qe.rawshape_roundConvexHull(i, s, t);
81573
81581
  return r === 0 ? void 0 : zt.__wrap(r);
81574
81582
  }
81575
81583
  static convexMesh(e, t) {
81576
- const i = ph(e, Qe.__wbindgen_malloc), s = ur, r = qv(t, Qe.__wbindgen_malloc), o = ur, a = Qe.rawshape_convexMesh(i, s, r, o);
81584
+ const i = ph(e, Qe.__wbindgen_malloc), s = dr, r = qv(t, Qe.__wbindgen_malloc), o = dr, a = Qe.rawshape_convexMesh(i, s, r, o);
81577
81585
  return a === 0 ? void 0 : zt.__wrap(a);
81578
81586
  }
81579
81587
  static roundConvexMesh(e, t, i) {
81580
- const s = ph(e, Qe.__wbindgen_malloc), r = ur, o = qv(t, Qe.__wbindgen_malloc), a = ur, l = Qe.rawshape_roundConvexMesh(s, r, o, a, i);
81588
+ const s = ph(e, Qe.__wbindgen_malloc), r = dr, o = qv(t, Qe.__wbindgen_malloc), a = dr, l = Qe.rawshape_roundConvexMesh(s, r, o, a, i);
81581
81589
  return l === 0 ? void 0 : zt.__wrap(l);
81582
81590
  }
81583
81591
  castShape(e, t, i, s, r, o, a, l) {
@@ -82709,9 +82717,10 @@ function foe(n, e, t) {
82709
82717
  return r.join("");
82710
82718
  }
82711
82719
  Vr["-".charCodeAt(0)] = 62, Vr["_".charCodeAt(0)] = 63;
82712
- const Ur = le("debugphysics"), Uw = le("debugphysicscolliders"), Nw = le("debugcollisions"), poe = le("showcolliders"), Wr = Symbol("needle component"), Co = Symbol("physics body"), goe = Symbol("rigidbody");
82720
+ const ur = le("debugphysics"), Uw = le("debugphysicscolliders"), Nw = le("debugcollisions"), poe = le("showcolliders"), Wr = Symbol("needle component"), Co = Symbol("physics body"), goe = Symbol("rigidbody");
82713
82721
  let Ju;
82714
- globalThis.false = globalThis.false || !0;
82722
+ globalThis.false = globalThis.false !== void 0 ? globalThis.false : !0;
82723
+ ur && console.log("Use Rapier", !1, globalThis.false);
82715
82724
  const Sg = class {
82716
82725
  constructor() {
82717
82726
  h(this, "debugRenderColliders", !1);
@@ -82839,7 +82848,7 @@ const Sg = class {
82839
82848
  }
82840
82849
  /** Check is the physics engine has been initialized and the call can be made */
82841
82850
  validate() {
82842
- this._isInitialized || Ur && console.warn("Physics engine is not initialized");
82851
+ this._isInitialized || ur && console.warn("Physics engine is not initialized");
82843
82852
  }
82844
82853
  raycast(e, t, i, s) {
82845
82854
  var a;
@@ -82887,7 +82896,7 @@ const Sg = class {
82887
82896
  if (!s)
82888
82897
  return console.error("Can not perform raycast from 2d point - no main camera found"), null;
82889
82898
  const u = this.raycastVectorsBuffer.get();
82890
- u.x = t.x, u.y = t.y, u.z = 0, (u.x > 1 || u.y > 1 || u.y < -1 || u.x < -1) && (Ur && console.warn("Converting screenspace to raycast space", u), (c = this.context) == null || c.input.convertScreenspaceToRaycastSpace(u)), u.unproject(s), t = u;
82899
+ u.x = t.x, u.y = t.y, u.z = 0, (u.x > 1 || u.y > 1 || u.y < -1 || u.x < -1) && (ur && console.warn("Converting screenspace to raycast space", u), (c = this.context) == null || c.input.convertScreenspaceToRaycastSpace(u)), u.unproject(s), t = u;
82891
82900
  }
82892
82901
  const r = t;
82893
82902
  e.origin.x = r.x, e.origin.y = r.y, e.origin.z = r.z;
@@ -82942,7 +82951,7 @@ const Sg = class {
82942
82951
  if (this._isInitialized || await this.initialize(e.context), !e.activeAndEnabled)
82943
82952
  return;
82944
82953
  if (!this.enabled) {
82945
- Ur && console.warn("Physics are disabled");
82954
+ ur && console.warn("Physics are disabled");
82946
82955
  return;
82947
82956
  }
82948
82957
  const s = e.gameObject, r = ms(s, this._tempPosition).multiply(i);
@@ -82954,7 +82963,7 @@ const Sg = class {
82954
82963
  if (this._isInitialized || await this.initialize(e.context), !e.activeAndEnabled)
82955
82964
  return;
82956
82965
  if (!this.enabled) {
82957
- Ur && console.warn("Physics are disabled");
82966
+ ur && console.warn("Physics are disabled");
82958
82967
  return;
82959
82968
  }
82960
82969
  const s = e.gameObject, r = ms(s, this._tempPosition).multiplyScalar(i);
@@ -82966,7 +82975,7 @@ const Sg = class {
82966
82975
  if (this._isInitialized || await this.initialize(e.context), !e.activeAndEnabled)
82967
82976
  return;
82968
82977
  if (!this.enabled) {
82969
- Ur && console.warn("Physics are disabled");
82978
+ ur && console.warn("Physics are disabled");
82970
82979
  return;
82971
82980
  }
82972
82981
  const r = e.gameObject, o = ms(r, this._tempPosition);
@@ -82979,12 +82988,12 @@ const Sg = class {
82979
82988
  if (this._isInitialized || await this.initialize(e.context), !e.activeAndEnabled)
82980
82989
  return;
82981
82990
  if (!this.enabled) {
82982
- Ur && console.warn("Physics are disabled");
82991
+ ur && console.warn("Physics are disabled");
82983
82992
  return;
82984
82993
  }
82985
82994
  const r = t.geometry;
82986
82995
  if (!r) {
82987
- Ur && console.warn("Missing mesh geometry", t.name);
82996
+ ur && console.warn("Missing mesh geometry", t.name);
82988
82997
  return;
82989
82998
  }
82990
82999
  let o = r.getAttribute("position").array;
@@ -82992,7 +83001,7 @@ const Sg = class {
82992
83001
  if (Math.abs(s.x - 1) > 1e-4 || Math.abs(s.y - 1) > 1e-4 || Math.abs(s.z - 1) > 1e-4) {
82993
83002
  const u = r.uuid + "_" + s.x + "_" + s.y + "_" + s.z + "_" + i;
82994
83003
  if (this._meshCache.has(u))
82995
- Ur && console.warn("Use cached mesh collider"), o = this._meshCache.get(u);
83004
+ ur && console.warn("Use cached mesh collider"), o = this._meshCache.get(u);
82996
83005
  else {
82997
83006
  console.warn("Your model is using scaled mesh colliders which is not optimal for performance", t.name, Object.assign({}, s), t);
82998
83007
  const d = new Float32Array(o.length);
@@ -83054,7 +83063,7 @@ const Sg = class {
83054
83063
  const r = e.attachedRigidbody;
83055
83064
  if (i = r[Co], s = !0, !i) {
83056
83065
  const o = r.isKinematic && !Uw;
83057
- Ur && console.log("Create rigidbody", o);
83066
+ ur && console.log("Create rigidbody", o);
83058
83067
  const a = o ? Ju.RigidBodyDesc.kinematicPositionBased() : Ju.RigidBodyDesc.dynamic(), l = wt(e.attachedRigidbody.gameObject);
83059
83068
  a.setTranslation(l.x, l.y, l.z), a.setRotation(jn(e.attachedRigidbody.gameObject)), i = this.world.createRigidBody(a), this.bodies.push(i), this.objects.push(r);
83060
83069
  }
@@ -83076,14 +83085,14 @@ const Sg = class {
83076
83085
  }
83077
83086
  updateDebugRendering(e) {
83078
83087
  var t, i, s;
83079
- if (Ur || Uw || poe || this.debugRenderColliders === !0) {
83088
+ if (ur || Uw || poe || this.debugRenderColliders === !0) {
83080
83089
  if (!this.lines) {
83081
83090
  const o = new cn({
83082
83091
  color: 2258688,
83083
83092
  fog: !1
83084
83093
  // vertexColors: THREE.VertexColors
83085
83094
  }), a = new vt();
83086
- this.lines = new Ir(a, o);
83095
+ this.lines = new Mr(a, o);
83087
83096
  }
83088
83097
  this.lines.parent !== ((t = this.context) == null ? void 0 : t.scene) && ((i = this.context) == null || i.scene.add(this.lines));
83089
83098
  const r = e.debugRender();
@@ -83150,7 +83159,7 @@ const Sg = class {
83150
83159
  this._tempPosition,
83151
83160
  this._tempQuaternion
83152
83161
  ), o = this.world.createImpulseJoint(r, i, s, !0);
83153
- Ur && console.log("ADD FIXED JOINT", o);
83162
+ ur && console.log("ADD FIXED JOINT", o);
83154
83163
  }
83155
83164
  /** The joint prevents any relative movement between two rigid-bodies, except for relative rotations along one axis. This is typically used to simulate wheels, fans, etc. They are characterized by one local anchor as well as one local axis on each rigid-body. */
83156
83165
  addHingeJoint(e, t, i, s) {
@@ -83161,7 +83170,7 @@ const Sg = class {
83161
83170
  const r = e[Co], o = t[Co];
83162
83171
  this.calculateJointRelativeMatrices(e.gameObject, t.gameObject, this._tempMatrix), this._tempMatrix.decompose(this._tempPosition, this._tempQuaternion, this._tempScale);
83163
83172
  let a = Ju.JointData.revolute(i, this._tempPosition, s), l = this.world.createImpulseJoint(a, r, o, !0);
83164
- Ur && console.log("ADD HINGE JOINT", l);
83173
+ ur && console.log("ADD HINGE JOINT", l);
83165
83174
  }
83166
83175
  calculateJointRelativeMatrices(e, t, i) {
83167
83176
  e.updateWorldMatrix(!0, !1), t.updateWorldMatrix(!0, !1);
@@ -83396,7 +83405,7 @@ export {
83396
83405
  Tf as AnimationCurve,
83397
83406
  O1 as AnimationExtension,
83398
83407
  yI as AnimationTrackHandler,
83399
- Mr as Animator,
83408
+ Tr as Animator,
83400
83409
  vh as AnimatorConditionMode,
83401
83410
  Yd as AnimatorController,
83402
83411
  yL as AnimatorControllerParameterType,
@@ -83479,9 +83488,9 @@ export {
83479
83488
  Nl as EmissionModule,
83480
83489
  rA as EmphasizeOnClick,
83481
83490
  my as EngineLoadingView,
83482
- xr as EventList,
83491
+ wr as EventList,
83483
83492
  T1 as EventListEvent,
83484
- Ar as EventSystem,
83493
+ vr as EventSystem,
83485
83494
  UI as EventTrigger,
83486
83495
  pF as FieldWithDefault,
83487
83496
  Ote as FileSpawnModel,
@@ -83517,7 +83526,7 @@ export {
83517
83526
  L8 as Input,
83518
83527
  $a as InputEvents,
83519
83528
  Vf as InputField,
83520
- br as InstancingUtil,
83529
+ _r as InstancingUtil,
83521
83530
  l9 as InstantiateEvent,
83522
83531
  $s as InstantiateIdProvider,
83523
83532
  El as InstantiateOptions,
@@ -83527,7 +83536,7 @@ export {
83527
83536
  A_ as LODGroup,
83528
83537
  Wf as LODModel,
83529
83538
  joe as LeftRoomResponse,
83530
- Br as Light,
83539
+ Dr as Light,
83531
83540
  c7 as LightData,
83532
83541
  Ln as LimitVelocityOverLifetimeModule,
83533
83542
  rae as LoadingElementOptions,
@@ -83542,7 +83551,7 @@ export {
83542
83551
  i_ as MeshCollider,
83543
83552
  P1 as MeshRenderer,
83544
83553
  ct as MinMaxCurve,
83545
- Rr as MinMaxGradient,
83554
+ Br as MinMaxGradient,
83546
83555
  sa as NEEDLE_progressive,
83547
83556
  Xi as NeedleEngine,
83548
83557
  oN as NeedleEngineHTMLElement,
@@ -83608,7 +83617,7 @@ export {
83608
83617
  x_ as ScreenCapture,
83609
83618
  $c as ScreenSpaceAmbientOcclusion,
83610
83619
  Oa as ScreenSpaceAmbientOcclusionN8,
83611
- fr as SendQueue,
83620
+ pr as SendQueue,
83612
83621
  sA as SetActiveOnClick,
83613
83622
  w_ as ShadowCatcher,
83614
83623
  _n as ShapeModule,
@@ -83653,7 +83662,7 @@ export {
83653
83662
  Hi as TrailModule,
83654
83663
  k1 as TransformData,
83655
83664
  Zf as TransformGizmo,
83656
- wr as TriggerBuilder,
83665
+ Cr as TriggerBuilder,
83657
83666
  Mc as TriggerModel,
83658
83667
  Q as TypeStore,
83659
83668
  nm as UIRaycastUtils,
@@ -83837,7 +83846,7 @@ export {
83837
83846
  q8 as setWorldEuler,
83838
83847
  vn as setWorldPosition,
83839
83848
  Ng as setWorldPositionXYZ,
83840
- Er as setWorldQuaternion,
83849
+ Ir as setWorldQuaternion,
83841
83850
  z8 as setWorldQuaternionXYZW,
83842
83851
  X8 as setWorldRotation,
83843
83852
  WE as setWorldRotationXYZ,