@needle-tools/engine 4.1.0 → 4.1.1

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.
@@ -1754,15 +1754,15 @@ function AC() {
1754
1754
  return n || null;
1755
1755
  }
1756
1756
  const H0 = S("debugdefines");
1757
- Oo('if(!globalThis[""4.1.0""]) globalThis[""4.1.0""] = "0.0.0";');
1757
+ Oo('if(!globalThis[""4.1.1""]) globalThis[""4.1.1""] = "0.0.0";');
1758
1758
  Oo('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
1759
- Oo('if(!globalThis[""Thu Feb 13 2025 12:57:46 GMT+0100 (Central European Standard Time)""]) globalThis[""Thu Feb 13 2025 12:57:46 GMT+0100 (Central European Standard Time)""] = "unknown";');
1759
+ Oo('if(!globalThis[""Fri Feb 14 2025 12:52:39 GMT+0100 (Central European Standard Time)""]) globalThis[""Fri Feb 14 2025 12:52:39 GMT+0100 (Central European Standard Time)""] = "unknown";');
1760
1760
  Oo('if(!globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""]) globalThis[""npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9""] = "unknown";');
1761
- Oo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.1.0";');
1761
+ Oo('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.1.1";');
1762
1762
  Oo('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
1763
- Oo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu Feb 13 2025 12:57:46 GMT+0100 (Central European Standard Time)";');
1763
+ Oo('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Fri Feb 14 2025 12:52:39 GMT+0100 (Central European Standard Time)";');
1764
1764
  Oo('globalThis["__NEEDLE_PUBLIC_KEY__"] = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9";');
1765
- const $s = "4.1.0", gg = "undefined", G0 = "Thu Feb 13 2025 12:57:46 GMT+0100 (Central European Standard Time)";
1765
+ const $s = "4.1.1", gg = "undefined", G0 = "Fri Feb 14 2025 12:52:39 GMT+0100 (Central European Standard Time)";
1766
1766
  H0 && console.log(`Engine version: ${$s} (generator: ${gg})
1767
1767
  Project built at ${G0}`);
1768
1768
  const hd = "npk_74222a9fbd1b42572cdd3bf7f639eeb17a07d07f40a6185fac5f722e8fd34df9", go = "needle_isActiveInHierarchy", ca = "builtin_components", dd = "needle_editor_guid";
@@ -2284,6 +2284,10 @@ class HC {
2284
2284
  getPointerPositionDelta(t) {
2285
2285
  return t >= this._pointerPositionsDelta.length ? null : this._pointerPositionsDelta[t];
2286
2286
  }
2287
+ /**
2288
+ * The pointer position in screenspace coordinates (-1 to 1) where 0 is the center of the screen.
2289
+ * This can be useful for e.g. raycasting (see https://threejs.org/docs/#api/en/core/Raycaster.setFromCamera)
2290
+ */
2287
2291
  getPointerPositionRC(t) {
2288
2292
  return t >= this._pointerPositionsRC.length ? null : this._pointerPositionsRC[t];
2289
2293
  }
@@ -24925,10 +24929,10 @@ class Rw {
24925
24929
  onAfterBuildDocument(t) {
24926
24930
  }
24927
24931
  }
24928
- var eT = Object.defineProperty, tT = Object.getOwnPropertyDescriptor, lh = (n, t, e, i) => {
24929
- for (var s = i > 1 ? void 0 : i ? tT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
24932
+ var e2 = Object.defineProperty, t2 = Object.getOwnPropertyDescriptor, lh = (n, t, e, i) => {
24933
+ for (var s = i > 1 ? void 0 : i ? t2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
24930
24934
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
24931
- return i && s && eT(t, e, s), s;
24935
+ return i && s && e2(t, e, s), s;
24932
24936
  };
24933
24937
  const mp = S("debugui"), gp = S("debuguilayout");
24934
24938
  class kw {
@@ -25149,10 +25153,10 @@ lh([
25149
25153
  lh([
25150
25154
  f(oe)
25151
25155
  ], ei.prototype, "anchorMax", 2);
25152
- var iT = Object.defineProperty, sT = Object.getOwnPropertyDescriptor, Ew = (n, t, e, i) => {
25153
- for (var s = i > 1 ? void 0 : i ? sT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25156
+ var i2 = Object.defineProperty, s2 = Object.getOwnPropertyDescriptor, Ew = (n, t, e, i) => {
25157
+ for (var s = i > 1 ? void 0 : i ? s2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25154
25158
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
25155
- return i && s && iT(t, e, s), s;
25159
+ return i && s && i2(t, e, s), s;
25156
25160
  };
25157
25161
  class ch extends D {
25158
25162
  constructor() {
@@ -25167,10 +25171,10 @@ Ew([
25167
25171
  Ew([
25168
25172
  f(oe)
25169
25173
  ], ch.prototype, "effectDistance", 2);
25170
- var nT = Object.defineProperty, oT = Object.getOwnPropertyDescriptor, Iw = (n, t, e, i) => {
25171
- for (var s = i > 1 ? void 0 : i ? oT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25174
+ var n2 = Object.defineProperty, o2 = Object.getOwnPropertyDescriptor, Iw = (n, t, e, i) => {
25175
+ for (var s = i > 1 ? void 0 : i ? o2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25172
25176
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
25173
- return i && s && nT(t, e, s), s;
25177
+ return i && s && n2(t, e, s), s;
25174
25178
  };
25175
25179
  const Qh = {
25176
25180
  backgroundColor: new ae(1, 1, 1),
@@ -25304,10 +25308,10 @@ class Ju extends ll {
25304
25308
  this.uiObject && !this._flippedObject && (this._flippedObject = !0, this.uiObject.scale.y *= -1);
25305
25309
  }
25306
25310
  }
25307
- var rT = Object.defineProperty, aT = Object.getOwnPropertyDescriptor, zn = (n, t, e, i) => {
25308
- for (var s = i > 1 ? void 0 : i ? aT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25311
+ var r2 = Object.defineProperty, a2 = Object.getOwnPropertyDescriptor, zn = (n, t, e, i) => {
25312
+ for (var s = i > 1 ? void 0 : i ? a2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25309
25313
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
25310
- return i && s && rT(t, e, s), s;
25314
+ return i && s && r2(t, e, s), s;
25311
25315
  };
25312
25316
  const Wo = S("debugtext");
25313
25317
  var lt = /* @__PURE__ */ ((n) => (n[n.UpperLeft = 0] = "UpperLeft", n[n.UpperCenter = 1] = "UpperCenter", n[n.UpperRight = 2] = "UpperRight", n[n.MiddleLeft = 3] = "MiddleLeft", n[n.MiddleCenter = 4] = "MiddleCenter", n[n.MiddleRight = 5] = "MiddleRight", n[n.LowerLeft = 6] = "LowerLeft", n[n.LowerCenter = 7] = "LowerCenter", n[n.LowerRight = 8] = "LowerRight", n))(lt || {}), Dw = /* @__PURE__ */ ((n) => (n[n.Normal = 0] = "Normal", n[n.Bold = 1] = "Bold", n[n.Italic = 2] = "Italic", n[n.BoldAndItalic = 3] = "BoldAndItalic", n))(Dw || {});
@@ -25590,7 +25594,7 @@ class ii extends ll {
25590
25594
  if (s < 0)
25591
25595
  return e;
25592
25596
  const o = (d = e.substring(s + 1)) == null ? void 0 : d.toLowerCase();
25593
- if (lT.includes(o))
25597
+ if (l2.includes(o))
25594
25598
  return Wo && console.warn("Unsupported font style: " + o), e;
25595
25599
  const a = e.lastIndexOf("/");
25596
25600
  let l = e;
@@ -25644,7 +25648,7 @@ class yp {
25644
25648
  this.tag = t, this.previousValues = e;
25645
25649
  }
25646
25650
  }
25647
- const lT = [
25651
+ const l2 = [
25648
25652
  "medium",
25649
25653
  "mediumitalic",
25650
25654
  "black",
@@ -25704,7 +25708,7 @@ class ty {
25704
25708
  return l.content = t, l.width = e, l.height = i, l.horizontalAlignment = s, l.verticalAlignment = o, a !== void 0 && (l.wrapMode = a), l;
25705
25709
  }
25706
25710
  }
25707
- const cT = new ne().makeRotationY(Math.PI), hT = new ne().makeScale(-1, 1, -1);
25711
+ const c2 = new ne().makeRotationY(Math.PI), h2 = new ne().makeScale(-1, 1, -1);
25708
25712
  class ef {
25709
25713
  get extensionName() {
25710
25714
  return "text";
@@ -25716,8 +25720,8 @@ class ef {
25716
25720
  const o = C.getComponent(t, ei);
25717
25721
  let a = 100, l = 100;
25718
25722
  o && (a = o.width, l = o.height);
25719
- const c = cT.clone();
25720
- o && c.premultiply(hT), e.setMatrix(c);
25723
+ const c = c2.clone();
25724
+ o && c.premultiply(h2), e.setMatrix(c);
25721
25725
  const h = s.color.clone();
25722
25726
  e.material = new li({ color: h, emissive: h }), e.addEventListener("serialize", (d, u) => {
25723
25727
  let p = s.text;
@@ -25777,10 +25781,10 @@ class ef {
25777
25781
  }
25778
25782
  }
25779
25783
  }
25780
- var dT = Object.defineProperty, uT = Object.getOwnPropertyDescriptor, nt = (n, t, e, i) => {
25781
- for (var s = i > 1 ? void 0 : i ? uT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25784
+ var d2 = Object.defineProperty, u2 = Object.getOwnPropertyDescriptor, nt = (n, t, e, i) => {
25785
+ for (var s = i > 1 ? void 0 : i ? u2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25782
25786
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
25783
- return i && s && dT(t, e, s), s;
25787
+ return i && s && d2(t, e, s), s;
25784
25788
  };
25785
25789
  const Mb = S("debuguilayout");
25786
25790
  class Nr {
@@ -25975,10 +25979,10 @@ class Bw extends ki {
25975
25979
  onCalculateLayout() {
25976
25980
  }
25977
25981
  }
25978
- var fT = Object.defineProperty, pT = Object.getOwnPropertyDescriptor, Ks = (n, t, e, i) => {
25979
- for (var s = i > 1 ? void 0 : i ? pT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25982
+ var f2 = Object.defineProperty, p2 = Object.getOwnPropertyDescriptor, Ks = (n, t, e, i) => {
25983
+ for (var s = i > 1 ? void 0 : i ? p2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
25980
25984
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
25981
- return i && s && fT(t, e, s), s;
25985
+ return i && s && f2(t, e, s), s;
25982
25986
  }, Fw = /* @__PURE__ */ ((n) => (n[n.ScreenSpaceOverlay = 0] = "ScreenSpaceOverlay", n[n.ScreenSpaceCamera = 1] = "ScreenSpaceCamera", n[n.WorldSpace = 2] = "WorldSpace", n[n.Undefined = -1] = "Undefined", n))(Fw || {});
25983
25987
  const _p = S("debuguilayout"), zw = class extends $u {
25984
25988
  constructor() {
@@ -26214,10 +26218,10 @@ Ks([
26214
26218
  Ks([
26215
26219
  f()
26216
26220
  ], zt.prototype, "planeDistance", 2);
26217
- var mT = Object.defineProperty, gT = Object.getOwnPropertyDescriptor, iy = (n, t, e, i) => {
26218
- for (var s = i > 1 ? void 0 : i ? gT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
26221
+ var m2 = Object.defineProperty, g2 = Object.getOwnPropertyDescriptor, iy = (n, t, e, i) => {
26222
+ for (var s = i > 1 ? void 0 : i ? g2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
26219
26223
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
26220
- return i && s && mT(t, e, s), s;
26224
+ return i && s && m2(t, e, s), s;
26221
26225
  };
26222
26226
  class Pr extends D {
26223
26227
  constructor() {
@@ -26476,12 +26480,12 @@ const jy = class {
26476
26480
  };
26477
26481
  let _o = jy;
26478
26482
  r(_o, "_instance");
26479
- var yT = Object.defineProperty, _T = Object.getOwnPropertyDescriptor, xt = (n, t, e, i) => {
26480
- for (var s = i > 1 ? void 0 : i ? _T(t, e) : t, o = n.length - 1, a; o >= 0; o--)
26483
+ var y2 = Object.defineProperty, _2 = Object.getOwnPropertyDescriptor, xt = (n, t, e, i) => {
26484
+ for (var s = i > 1 ? void 0 : i ? _2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
26481
26485
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
26482
- return i && s && yT(t, e, s), s;
26486
+ return i && s && y2(t, e, s), s;
26483
26487
  };
26484
- const eu = S("debugspriterenderer"), bT = S("wireframe"), pu = class {
26488
+ const eu = S("debugspriterenderer"), b2 = S("wireframe"), pu = class {
26485
26489
  static getOrCreateGeometry(t) {
26486
26490
  if (t.__cached_geometry)
26487
26491
  return t.__cached_geometry;
@@ -26501,7 +26505,7 @@ const eu = S("debugspriterenderer"), bT = S("wireframe"), pu = class {
26501
26505
  };
26502
26506
  let br = pu;
26503
26507
  r(br, "cache", {});
26504
- class vT {
26508
+ class v2 {
26505
26509
  constructor() {
26506
26510
  r(this, "x");
26507
26511
  r(this, "y");
@@ -26722,7 +26726,7 @@ class Ti extends D {
26722
26726
  this._currentSprite.geometry = br.getOrCreateGeometry(s), this._currentSprite.material.map = s.texture;
26723
26727
  else {
26724
26728
  const a = new Me({ color: 16777215, side: Oi });
26725
- if (bT && (a.wireframe = !0), this.color && (a.color || (a.color = new ae()), a.color.copy(this.color), a.opacity = this.color.alpha), a.transparent = !0, a.toneMapped = this.toneMapped, s.texture && !a.wireframe) {
26729
+ if (b2 && (a.wireframe = !0), this.color && (a.color || (a.color = new ae()), a.color.copy(this.color), a.opacity = this.color.alpha), a.transparent = !0, a.toneMapped = this.toneMapped, s.texture && !a.wireframe) {
26726
26730
  let l = s.texture;
26727
26731
  l[bp] !== void 0 && l[bp] !== this && this.spriteFrames > 1 && (l = s.texture = l.clone()), l[bp] = this, a.map = l;
26728
26732
  }
@@ -26735,7 +26739,7 @@ xt([
26735
26739
  f()
26736
26740
  ], Ti.prototype, "drawMode", 2);
26737
26741
  xt([
26738
- f(vT)
26742
+ f(v2)
26739
26743
  ], Ti.prototype, "size", 2);
26740
26744
  xt([
26741
26745
  f(ve)
@@ -26761,7 +26765,7 @@ xt([
26761
26765
  xt([
26762
26766
  f(bo)
26763
26767
  ], Ti.prototype, "sprite", 1);
26764
- const Rb = S("debugwebxr"), wT = new ne().makeRotationY(Math.PI);
26768
+ const Rb = S("debugwebxr"), w2 = new ne().makeRotationY(Math.PI);
26765
26769
  class Po extends D {
26766
26770
  constructor() {
26767
26771
  super(...arguments);
@@ -26998,7 +27002,7 @@ class Po extends D {
26998
27002
  }
26999
27003
  (l = Z.active) != null && l.rigScale;
27000
27004
  const s = i.parent || this.context.scene;
27001
- this._rigPlacementMatrix ? (c = this._rigPlacementMatrix) == null || c.decompose(i.position, i.quaternion, i.scale) : this._rigPlacementMatrix = i.matrix.clone(), this.applyViewBasedTransform(e), e.updateMatrix(), this.context.scene.add(e), e.attach(i), e.removeFromParent(), i.scale.set(this.arScale, this.arScale, this.arScale), i.position.multiplyScalar(this.arScale), i.updateMatrix(), this.invertForward && i.matrix.premultiply(wT), i.matrix.premultiply(this._startOffset), i.matrix.decompose(i.position, i.quaternion, i.scale), s.add(i);
27005
+ this._rigPlacementMatrix ? (c = this._rigPlacementMatrix) == null || c.decompose(i.position, i.quaternion, i.scale) : this._rigPlacementMatrix = i.matrix.clone(), this.applyViewBasedTransform(e), e.updateMatrix(), this.context.scene.add(e), e.attach(i), e.removeFromParent(), i.scale.set(this.arScale, this.arScale, this.arScale), i.position.multiplyScalar(this.arScale), i.updateMatrix(), this.invertForward && i.matrix.premultiply(w2), i.matrix.premultiply(this._startOffset), i.matrix.decompose(i.position, i.quaternion, i.scale), s.add(i);
27002
27006
  }
27003
27007
  }
27004
27008
  r(Po, "_eventListeners", {});
@@ -27146,7 +27150,7 @@ const mu = class {
27146
27150
  let ga = mu;
27147
27151
  r(ga, "up", new v(0, 1, 0)), r(ga, "zero", new v(0, 0, 0)), r(ga, "one", new v(1, 1, 1));
27148
27152
  const no = S("debugautosync"), vp = Symbol("syncerId");
27149
- class xT {
27153
+ class x2 {
27150
27154
  constructor() {
27151
27155
  r(this, "_syncers", {});
27152
27156
  }
@@ -27155,15 +27159,15 @@ class xT {
27155
27159
  return null;
27156
27160
  if (this._syncers[t.guid])
27157
27161
  return this._syncers[t.guid];
27158
- const e = new ST(t);
27162
+ const e = new S2(t);
27159
27163
  return e[vp] = t.guid, this._syncers[e[vp]] = e, e;
27160
27164
  }
27161
27165
  removeSyncer(t) {
27162
27166
  delete this._syncers[t[vp]];
27163
27167
  }
27164
27168
  }
27165
- const ny = new xT();
27166
- class ST {
27169
+ const ny = new x2();
27170
+ class S2 {
27167
27171
  constructor(t) {
27168
27172
  r(this, "comp");
27169
27173
  // private getters: { [key: string]: Function } = {};
@@ -27216,18 +27220,18 @@ class ST {
27216
27220
  this._isReceiving || (no && console.log("Property changed: " + t, e), this.hasChanges = !0, this.changedProperties[t] = e);
27217
27221
  }
27218
27222
  }
27219
- function CT(n, t) {
27223
+ function C2(n, t) {
27220
27224
  let e = t !== n;
27221
27225
  return !e && n && t && (Array.isArray(n) && Array.isArray(t) || typeof n == "object" && typeof t == "object") && (e = !0), e;
27222
27226
  }
27223
27227
  const mc = Symbol("AutoSyncHandler");
27224
- function PT(n) {
27228
+ function P2(n) {
27225
27229
  if (n[mc])
27226
27230
  return n[mc];
27227
27231
  const t = ny.getOrCreateSyncer(n);
27228
27232
  return t == null || t.init(n), n[mc] = t, t;
27229
27233
  }
27230
- function OT(n) {
27234
+ function O2(n) {
27231
27235
  const t = n[mc];
27232
27236
  t && (ny.removeSyncer(t), t.destroy(), delete n[mc]);
27233
27237
  }
@@ -27262,8 +27266,8 @@ const $w = function(n = null) {
27262
27266
  }
27263
27267
  p = !0;
27264
27268
  try {
27265
- const _ = CT(m, g);
27266
- no && console.log("SyncField assignment", i, "changed?", _, m, o), _ && (o == null ? void 0 : o.call(this, m, g)) !== !1 && ((y = PT(this)) == null || y.notifyChanged(i, m));
27269
+ const _ = C2(m, g);
27270
+ no && console.log("SyncField assignment", i, "changed?", _, m, o), _ && (o == null ? void 0 : o.call(this, m, g)) !== !1 && ((y = P2(this)) == null || y.notifyChanged(i, m));
27267
27271
  } finally {
27268
27272
  p = !1;
27269
27273
  }
@@ -27279,14 +27283,14 @@ const $w = function(n = null) {
27279
27283
  };
27280
27284
  const h = a.__internalDestroy;
27281
27285
  a.__internalDestroy = function() {
27282
- OT(this), h.call(this);
27286
+ O2(this), h.call(this);
27283
27287
  };
27284
27288
  };
27285
27289
  };
27286
- var MT = Object.defineProperty, RT = Object.getOwnPropertyDescriptor, tf = (n, t, e, i) => {
27287
- for (var s = i > 1 ? void 0 : i ? RT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27290
+ var M2 = Object.defineProperty, R2 = Object.getOwnPropertyDescriptor, tf = (n, t, e, i) => {
27291
+ for (var s = i > 1 ? void 0 : i ? R2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27288
27292
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27289
- return i && s && MT(t, e, s), s;
27293
+ return i && s && M2(t, e, s), s;
27290
27294
  };
27291
27295
  const Qt = S("debugplayersync"), Ww = class extends D {
27292
27296
  constructor() {
@@ -27376,7 +27380,7 @@ tf([
27376
27380
  tf([
27377
27381
  f(Re)
27378
27382
  ], hh.prototype, "onPlayerSpawned", 2);
27379
- var kT = /* @__PURE__ */ ((n) => (n.OwnerChanged = "ownerChanged", n))(kT || {}), Nl;
27383
+ var k2 = /* @__PURE__ */ ((n) => (n.OwnerChanged = "ownerChanged", n))(k2 || {}), Nl;
27380
27384
  const Mt = (Nl = class extends D {
27381
27385
  constructor() {
27382
27386
  super(...arguments);
@@ -27477,10 +27481,10 @@ let Xi = Mt;
27477
27481
  tf([
27478
27482
  $w(Xi.prototype.onOwnerChange)
27479
27483
  ], Xi.prototype, "owner", 2);
27480
- var TT = Object.defineProperty, AT = Object.getOwnPropertyDescriptor, cl = (n, t, e, i) => {
27481
- for (var s = i > 1 ? void 0 : i ? AT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27484
+ var T2 = Object.defineProperty, A2 = Object.getOwnPropertyDescriptor, cl = (n, t, e, i) => {
27485
+ for (var s = i > 1 ? void 0 : i ? A2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27482
27486
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27483
- return i && s && TT(t, e, s), s;
27487
+ return i && s && T2(t, e, s), s;
27484
27488
  };
27485
27489
  class Nn extends D {
27486
27490
  constructor() {
@@ -27519,10 +27523,10 @@ cl([
27519
27523
  cl([
27520
27524
  f()
27521
27525
  ], Nn.prototype, "createQRCodeButton", 2);
27522
- var ET = Object.defineProperty, IT = Object.getOwnPropertyDescriptor, oy = (n, t, e, i) => {
27523
- for (var s = i > 1 ? void 0 : i ? IT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27526
+ var E2 = Object.defineProperty, I2 = Object.getOwnPropertyDescriptor, oy = (n, t, e, i) => {
27527
+ for (var s = i > 1 ? void 0 : i ? I2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27524
27528
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27525
- return i && s && ET(t, e, s), s;
27529
+ return i && s && E2(t, e, s), s;
27526
27530
  };
27527
27531
  const Il = S("debugwebxr"), kb = new W().setFromAxisAngle(new v(0, 1, 0), Math.PI);
27528
27532
  class Mr extends D {
@@ -27656,10 +27660,10 @@ oy([
27656
27660
  oy([
27657
27661
  f(re)
27658
27662
  ], Mr.prototype, "rightHand", 2);
27659
- var DT = Object.defineProperty, LT = Object.getOwnPropertyDescriptor, sf = (n, t, e, i) => {
27660
- for (var s = i > 1 ? void 0 : i ? LT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27663
+ var D2 = Object.defineProperty, L2 = Object.getOwnPropertyDescriptor, sf = (n, t, e, i) => {
27664
+ for (var s = i > 1 ? void 0 : i ? L2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27661
27665
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27662
- return i && s && DT(t, e, s), s;
27666
+ return i && s && D2(t, e, s), s;
27663
27667
  };
27664
27668
  const an = S("debugwebxr"), qn = new Array();
27665
27669
  class In extends D {
@@ -27812,10 +27816,10 @@ sf([
27812
27816
  ], In.prototype, "customRightHand", 2);
27813
27817
  class ry extends D {
27814
27818
  }
27815
- var jT = Object.defineProperty, BT = Object.getOwnPropertyDescriptor, Eo = (n, t, e, i) => {
27816
- for (var s = i > 1 ? void 0 : i ? BT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27819
+ var j2 = Object.defineProperty, B2 = Object.getOwnPropertyDescriptor, Eo = (n, t, e, i) => {
27820
+ for (var s = i > 1 ? void 0 : i ? B2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
27817
27821
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
27818
- return i && s && jT(t, e, s), s;
27822
+ return i && s && j2(t, e, s), s;
27819
27823
  };
27820
27824
  const wp = S("debugwebxr");
27821
27825
  class is extends D {
@@ -27989,7 +27993,7 @@ class is extends D {
27989
27993
  if (u.normal) {
27990
27994
  this.updateHitPointerPosition(o, a, u.distance);
27991
27995
  const _ = u.normal.applyQuaternion(xe(u.object));
27992
- a.quaternion.setFromUnitVectors(FT, _);
27996
+ a.quaternion.setFromUnitVectors(F2, _);
27993
27997
  } else
27994
27998
  this.updateHitPointerPosition(o, a, u.distance);
27995
27999
  a.parent !== this.context.scene && this.context.scene.add(a);
@@ -28070,13 +28074,13 @@ Eo([
28070
28074
  Eo([
28071
28075
  f()
28072
28076
  ], is.prototype, "showHits", 2);
28073
- const FT = new v(0, 1, 0);
28074
- var zT = Object.defineProperty, UT = Object.getOwnPropertyDescriptor, St = (n, t, e, i) => {
28075
- for (var s = i > 1 ? void 0 : i ? UT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28077
+ const F2 = new v(0, 1, 0);
28078
+ var z2 = Object.defineProperty, U2 = Object.getOwnPropertyDescriptor, St = (n, t, e, i) => {
28079
+ for (var s = i > 1 ? void 0 : i ? U2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28076
28080
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28077
- return i && s && zT(t, e, s), s;
28081
+ return i && s && z2(t, e, s), s;
28078
28082
  };
28079
- const Dl = S("debugwebxr"), NT = S("debugusdz");
28083
+ const Dl = S("debugwebxr"), N2 = S("debugusdz");
28080
28084
  var Wp;
28081
28085
  const ya = (Wp = class extends D {
28082
28086
  constructor() {
@@ -28218,7 +28222,7 @@ const ya = (Wp = class extends D {
28218
28222
  }
28219
28223
  handleCreatingHTML() {
28220
28224
  if (this.createARButton || this.createVRButton || this.useQuicklookExport) {
28221
- if ((Q.isiOS() && Q.isSafari() || NT) && this.useQuicklookExport) {
28225
+ if ((Q.isiOS() && Q.isSafari() || N2) && this.useQuicklookExport) {
28222
28226
  const e = C.findObjectOfType(Ge);
28223
28227
  if (!e || e && e.allowCreateQuicklookButton) {
28224
28228
  const i = this.getButtonsFactory().createQuicklookButton();
@@ -28314,7 +28318,7 @@ St([
28314
28318
  f(re)
28315
28319
  ], tt.prototype, "defaultAvatar", 2);
28316
28320
  const Jl = S("debugusdz");
28317
- function $T(n, t) {
28321
+ function $2(n, t) {
28318
28322
  var l;
28319
28323
  const e = [], i = C.getComponentsInChildren(n, Ft), s = C.getComponentsInChildren(n, Jt), o = new Array(), a = new Array();
28320
28324
  if (t.injectImplicitBehaviours)
@@ -28365,7 +28369,7 @@ function $T(n, t) {
28365
28369
  t.registerAnimation(c.root, h);
28366
28370
  return a;
28367
28371
  }
28368
- function WT(n, t) {
28372
+ function W2(n, t) {
28369
28373
  const e = C.getComponentsInChildren(n, qe), i = C.getComponentsInChildren(n, Cr), s = new Array(), o = new Array();
28370
28374
  Jl && console.log({ audioSources: e, playAudioOnClicks: i });
28371
28375
  for (const a of i) {
@@ -28384,7 +28388,7 @@ function WT(n, t) {
28384
28388
  }
28385
28389
  return o;
28386
28390
  }
28387
- function VT(n) {
28391
+ function V2(n) {
28388
28392
  return new ht(
28389
28393
  "DisableAtStart",
28390
28394
  kt.sceneStartTrigger(),
@@ -28404,12 +28408,12 @@ function Tb(n, t) {
28404
28408
  const a = document.createElement("img");
28405
28409
  return a.id = "button", o.appendChild(a), n.domElement.shadowRoot.appendChild(i), o;
28406
28410
  }
28407
- var HT = Object.defineProperty, GT = Object.getOwnPropertyDescriptor, Tt = (n, t, e, i) => {
28408
- for (var s = i > 1 ? void 0 : i ? GT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28411
+ var H2 = Object.defineProperty, G2 = Object.getOwnPropertyDescriptor, Tt = (n, t, e, i) => {
28412
+ for (var s = i > 1 ? void 0 : i ? G2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28409
28413
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28410
- return i && s && HT(t, e, s), s;
28414
+ return i && s && H2(t, e, s), s;
28411
28415
  };
28412
- const mi = S("debugusdz"), qT = S("debugusdzpruning");
28416
+ const mi = S("debugusdz"), q2 = S("debugusdzpruning");
28413
28417
  class $r {
28414
28418
  constructor() {
28415
28419
  r(this, "callToAction");
@@ -28563,7 +28567,7 @@ const Um = (rd = class extends D {
28563
28567
  const u = [c, ...d, ...this.extensions], p = { self: this, exporter: l, extensions: u, object: t };
28564
28568
  he.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: p })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, he.report("export-usdz", "auto export animations and audio sources");
28565
28569
  const m = new Array();
28566
- this.autoExportAnimations && m.push(...$T(t, c)), this.extensions.find((O) => O.extensionName === "Audio") && this.autoExportAudioSources && m.push(...WT(t)), l.debug = mi, l.pruneUnusedNodes = !qT;
28570
+ this.autoExportAnimations && m.push(...$2(t, c)), this.extensions.find((O) => O.extensionName === "Audio") && this.autoExportAudioSources && m.push(...W2(t)), l.debug = mi, l.pruneUnusedNodes = !q2;
28567
28571
  const y = lo.instance.objs.map((O) => O.batchedMesh);
28568
28572
  l.keepObject = (O) => {
28569
28573
  let R = !0;
@@ -28583,7 +28587,7 @@ const Um = (rd = class extends D {
28583
28587
  O.visible || _.push(O);
28584
28588
  });
28585
28589
  const b = this.extensions.find((O) => O.extensionName === "Behaviour");
28586
- this.interactive && b && _.length > 0 && b.addBehavior(VT(_));
28590
+ this.interactive && b && _.length > 0 && b.addBehavior(V2(_));
28587
28591
  let x = !0;
28588
28592
  this.quickLookCompatible && !this.interactive && (x = !1), this.anchoringType !== "plane" && this.anchoringType !== "none" && this.anchoringType !== "image" && this.anchoringType !== "face" && (this.anchoringType = "plane"), this.planeAnchoringAlignment !== "horizontal" && this.planeAnchoringAlignment !== "vertical" && this.planeAnchoringAlignment !== "any" && (this.planeAnchoringAlignment = "horizontal"), he.report("export-usdz", "Invoking exporter.parse");
28589
28593
  const M = await l.parse(this.objectToExport, {
@@ -28712,10 +28716,10 @@ Tt([
28712
28716
  Tt([
28713
28717
  f()
28714
28718
  ], Ge.prototype, "quickLookCompatible", 2);
28715
- var XT = Object.defineProperty, QT = Object.getOwnPropertyDescriptor, ay = (n, t, e, i) => {
28716
- for (var s = i > 1 ? void 0 : i ? QT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28719
+ var X2 = Object.defineProperty, Q2 = Object.getOwnPropertyDescriptor, ay = (n, t, e, i) => {
28720
+ for (var s = i > 1 ? void 0 : i ? Q2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28717
28721
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28718
- return i && s && XT(t, e, s), s;
28722
+ return i && s && X2(t, e, s), s;
28719
28723
  };
28720
28724
  class dh extends D {
28721
28725
  constructor() {
@@ -28762,10 +28766,10 @@ ay([
28762
28766
  ay([
28763
28767
  f(ae)
28764
28768
  ], dh.prototype, "color", 1);
28765
- var YT = Object.defineProperty, KT = Object.getOwnPropertyDescriptor, ly = (n, t, e, i) => {
28766
- for (var s = i > 1 ? void 0 : i ? KT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28769
+ var Y2 = Object.defineProperty, K2 = Object.getOwnPropertyDescriptor, ly = (n, t, e, i) => {
28770
+ for (var s = i > 1 ? void 0 : i ? K2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28767
28771
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28768
- return i && s && YT(t, e, s), s;
28772
+ return i && s && Y2(t, e, s), s;
28769
28773
  };
28770
28774
  class hl extends D {
28771
28775
  constructor() {
@@ -28797,10 +28801,10 @@ ly([
28797
28801
  ly([
28798
28802
  f()
28799
28803
  ], hl.prototype, "isGizmo", 2);
28800
- var ZT = Object.defineProperty, JT = Object.getOwnPropertyDescriptor, cy = (n, t, e, i) => {
28801
- for (var s = i > 1 ? void 0 : i ? JT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28804
+ var Z2 = Object.defineProperty, J2 = Object.getOwnPropertyDescriptor, cy = (n, t, e, i) => {
28805
+ for (var s = i > 1 ? void 0 : i ? J2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28802
28806
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28803
- return i && s && ZT(t, e, s), s;
28807
+ return i && s && Z2(t, e, s), s;
28804
28808
  };
28805
28809
  class uh extends D {
28806
28810
  constructor() {
@@ -28834,10 +28838,10 @@ cy([
28834
28838
  cy([
28835
28839
  f(ae)
28836
28840
  ], uh.prototype, "color1", 2);
28837
- var e2 = Object.defineProperty, t2 = Object.getOwnPropertyDescriptor, hy = (n, t, e, i) => {
28838
- for (var s = i > 1 ? void 0 : i ? t2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28841
+ var eT = Object.defineProperty, tT = Object.getOwnPropertyDescriptor, hy = (n, t, e, i) => {
28842
+ for (var s = i > 1 ? void 0 : i ? tT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28839
28843
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28840
- return i && s && e2(t, e, s), s;
28844
+ return i && s && eT(t, e, s), s;
28841
28845
  };
28842
28846
  class dy extends D {
28843
28847
  constructor() {
@@ -28881,10 +28885,10 @@ hy([
28881
28885
  hy([
28882
28886
  f(v)
28883
28887
  ], nf.prototype, "axis", 2);
28884
- var i2 = Object.defineProperty, s2 = Object.getOwnPropertyDescriptor, Zs = (n, t, e, i) => {
28885
- for (var s = i > 1 ? void 0 : i ? s2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28888
+ var iT = Object.defineProperty, sT = Object.getOwnPropertyDescriptor, Zs = (n, t, e, i) => {
28889
+ for (var s = i > 1 ? void 0 : i ? sT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
28886
28890
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
28887
- return i && s && i2(t, e, s), s;
28891
+ return i && s && iT(t, e, s), s;
28888
28892
  };
28889
28893
  function xp(n) {
28890
28894
  return n * Math.PI / 180;
@@ -29125,12 +29129,12 @@ Zs([
29125
29129
  f()
29126
29130
  ], Ai.prototype, "shadowResolution", 1);
29127
29131
  new v(0, 0, 0);
29128
- var n2 = Object.defineProperty, o2 = Object.getOwnPropertyDescriptor, fh = (n, t, e, i) => {
29129
- for (var s = i > 1 ? void 0 : i ? o2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29132
+ var nT = Object.defineProperty, oT = Object.getOwnPropertyDescriptor, fh = (n, t, e, i) => {
29133
+ for (var s = i > 1 ? void 0 : i ? oT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29130
29134
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
29131
- return i && s && n2(t, e, s), s;
29135
+ return i && s && nT(t, e, s), s;
29132
29136
  };
29133
- const Sp = S("debuglods"), r2 = S("nolods");
29137
+ const Sp = S("debuglods"), rT = S("nolods");
29134
29138
  class dl {
29135
29139
  constructor() {
29136
29140
  r(this, "screenRelativeTransitionHeight");
@@ -29147,7 +29151,7 @@ fh([
29147
29151
  fh([
29148
29152
  f(et)
29149
29153
  ], dl.prototype, "renderers", 2);
29150
- class a2 {
29154
+ class aT {
29151
29155
  constructor(t) {
29152
29156
  r(this, "model");
29153
29157
  this.model = t;
@@ -29172,10 +29176,10 @@ class of extends D {
29172
29176
  r(this, "_distanceFactor", 1);
29173
29177
  }
29174
29178
  start() {
29175
- if (Sp && console.log("LODGROUP", this.name, this.lodModels, this), !r2 && !this._lodsHandler && this.gameObject && this.lodModels && Array.isArray(this.lodModels)) {
29179
+ if (Sp && console.log("LODGROUP", this.name, this.lodModels, this), !rT && !this._lodsHandler && this.gameObject && this.lodModels && Array.isArray(this.lodModels)) {
29176
29180
  const e = [];
29177
29181
  for (const s of this.lodModels) {
29178
- const o = new a2(s);
29182
+ const o = new aT(s);
29179
29183
  this._lods.push(o);
29180
29184
  for (const a of o.renderers)
29181
29185
  e.includes(a) || e.push(a);
@@ -29238,10 +29242,10 @@ fh([
29238
29242
  fh([
29239
29243
  f(dl)
29240
29244
  ], of.prototype, "lodModels", 2);
29241
- var l2 = Object.defineProperty, c2 = Object.getOwnPropertyDescriptor, h2 = (n, t, e, i) => {
29242
- for (var s = i > 1 ? void 0 : i ? c2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29245
+ var lT = Object.defineProperty, cT = Object.getOwnPropertyDescriptor, hT = (n, t, e, i) => {
29246
+ for (var s = i > 1 ? void 0 : i ? cT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29243
29247
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
29244
- return i && s && l2(t, e, s), s;
29248
+ return i && s && lT(t, e, s), s;
29245
29249
  };
29246
29250
  const Yh = S("debugnestedgltf");
29247
29251
  class uy extends D {
@@ -29293,15 +29297,15 @@ class uy extends D {
29293
29297
  return i;
29294
29298
  }
29295
29299
  }
29296
- h2([
29300
+ hT([
29297
29301
  f(re)
29298
29302
  ], uy.prototype, "filePath", 2);
29299
- var d2 = Object.defineProperty, u2 = Object.getOwnPropertyDescriptor, fy = (n, t, e, i) => {
29300
- for (var s = i > 1 ? void 0 : i ? u2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29303
+ var dT = Object.defineProperty, uT = Object.getOwnPropertyDescriptor, fy = (n, t, e, i) => {
29304
+ for (var s = i > 1 ? void 0 : i ? uT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29301
29305
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
29302
- return i && s && d2(t, e, s), s;
29306
+ return i && s && dT(t, e, s), s;
29303
29307
  };
29304
- const f2 = S("debugnet"), Nm = class extends D {
29308
+ const fT = S("debugnet"), Nm = class extends D {
29305
29309
  constructor() {
29306
29310
  super(...arguments);
29307
29311
  r(this, "url", null);
@@ -29310,7 +29314,7 @@ const f2 = S("debugnet"), Nm = class extends D {
29310
29314
  }
29311
29315
  /** @internal */
29312
29316
  awake() {
29313
- f2 && console.log(this), this.context.connection.registerProvider(this);
29317
+ fT && console.log(this), this.context.connection.registerProvider(this);
29314
29318
  }
29315
29319
  /** @internal */
29316
29320
  getWebsocketUrl() {
@@ -29347,10 +29351,10 @@ fy([
29347
29351
  fy([
29348
29352
  f()
29349
29353
  ], ph.prototype, "localhost", 2);
29350
- var p2 = Object.defineProperty, m2 = Object.getOwnPropertyDescriptor, rf = (n, t, e, i) => {
29351
- for (var s = i > 1 ? void 0 : i ? m2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29354
+ var pT = Object.defineProperty, mT = Object.getOwnPropertyDescriptor, rf = (n, t, e, i) => {
29355
+ for (var s = i > 1 ? void 0 : i ? mT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29352
29356
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
29353
- return i && s && p2(t, e, s), s;
29357
+ return i && s && pT(t, e, s), s;
29354
29358
  };
29355
29359
  class ul extends D {
29356
29360
  constructor() {
@@ -29397,10 +29401,10 @@ rf([
29397
29401
  rf([
29398
29402
  f(v)
29399
29403
  ], ul.prototype, "rotationOffset", 2);
29400
- var g2 = Object.defineProperty, y2 = Object.getOwnPropertyDescriptor, P = (n, t, e, i) => {
29401
- for (var s = i > 1 ? void 0 : i ? y2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29404
+ var gT = Object.defineProperty, yT = Object.getOwnPropertyDescriptor, P = (n, t, e, i) => {
29405
+ for (var s = i > 1 ? void 0 : i ? yT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
29402
29406
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
29403
- return i && s && g2(t, e, s), s;
29407
+ return i && s && gT(t, e, s), s;
29404
29408
  };
29405
29409
  const Kh = S("debugparticles");
29406
29410
  var gn = /* @__PURE__ */ ((n) => (n[n.Billboard = 0] = "Billboard", n[n.Stretch = 1] = "Stretch", n[n.HorizontalBillboard = 2] = "HorizontalBillboard", n[n.VerticalBillboard = 3] = "VerticalBillboard", n[n.Mesh = 4] = "Mesh", n))(gn || {});
@@ -30893,12 +30897,12 @@ class py {
30893
30897
  ), this.particleSystem.worldSpace || i.multiplyMatrices(this._emitterMatrix, i), this.subParticleSystem.emit(e, t.emissionState, i);
30894
30898
  }
30895
30899
  }
30896
- var _2 = Object.defineProperty, b2 = Object.getOwnPropertyDescriptor, He = (n, t, e, i) => {
30897
- for (var s = i > 1 ? void 0 : i ? b2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
30900
+ var _T = Object.defineProperty, bT = Object.getOwnPropertyDescriptor, He = (n, t, e, i) => {
30901
+ for (var s = i > 1 ? void 0 : i ? bT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
30898
30902
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
30899
- return i && s && _2(t, e, s), s;
30903
+ return i && s && _T(t, e, s), s;
30900
30904
  };
30901
- const io = S("debugparticles"), v2 = S("noprogressive"), w2 = S("debugprogressive");
30905
+ const io = S("debugparticles"), vT = S("noprogressive"), wT = S("debugprogressive");
30902
30906
  var Vm = /* @__PURE__ */ ((n) => (n[n.Birth = 0] = "Birth", n[n.Collision = 1] = "Collision", n[n.Death = 2] = "Death", n[n.Trigger = 3] = "Trigger", n[n.Manual = 4] = "Manual", n))(Vm || {});
30903
30907
  class ws extends D {
30904
30908
  constructor() {
@@ -30929,12 +30933,12 @@ class ws extends D {
30929
30933
  if (i) {
30930
30934
  if (i.type === "MeshStandardMaterial") {
30931
30935
  io && console.debug("ParticleSystemRenderer.getMaterial: MeshStandardMaterial detected, converting to MeshBasicMaterial. See https://github.com/Alchemist0823/three.quarks/issues/101"), "map" in i && i.map && (i.map.colorSpace = wr, i.map.premultiplyAlpha = !1);
30932
- const s = new Me({ map: i.map });
30933
- e ? this.trailMaterial = s : this.particleMaterial = s;
30936
+ const s = new Me();
30937
+ s.copy(i), e ? this.trailMaterial = s : this.particleMaterial = s;
30934
30938
  }
30935
30939
  i.map && (i.map.colorSpace = wr, i.map.premultiplyAlpha = !1), e && i.side === So && (i = i.clone(), i.side = rg, e ? this.trailMaterial = i : this.particleMaterial = i);
30936
30940
  }
30937
- return i && !v2 && i._didRequestTextureLOD === void 0 && (i._didRequestTextureLOD = 0, w2 && console.log("Load material LOD", i.name), Je.assignTextureLOD(i, 0)), i;
30941
+ return i && !vT && i._didRequestTextureLOD === void 0 && (i._didRequestTextureLOD = 0, wT && console.log("Load material LOD", i.name), Je.assignTextureLOD(i, 0)), i;
30938
30942
  }
30939
30943
  getMesh(e) {
30940
30944
  let i = null;
@@ -31005,12 +31009,12 @@ class my {
31005
31009
  startGen(t) {
31006
31010
  }
31007
31011
  }
31008
- class x2 extends my {
31012
+ class xT extends my {
31009
31013
  genValue() {
31010
31014
  return this.system.textureSheetAnimation.getStartIndex();
31011
31015
  }
31012
31016
  }
31013
- class S2 extends my {
31017
+ class ST extends my {
31014
31018
  constructor() {
31015
31019
  super(...arguments);
31016
31020
  r(this, "_lastPosition", new v());
@@ -31035,7 +31039,7 @@ class S2 extends my {
31035
31039
  return $.clamp(e, 0, s / this.system.deltaTime);
31036
31040
  }
31037
31041
  }
31038
- class C2 extends my {
31042
+ class CT extends my {
31039
31043
  genValue() {
31040
31044
  return this.system.isPlaying, 0;
31041
31045
  }
@@ -31064,7 +31068,7 @@ class Gr {
31064
31068
  reset() {
31065
31069
  }
31066
31070
  }
31067
- class P2 extends Gr {
31071
+ class PT extends Gr {
31068
31072
  constructor() {
31069
31073
  super(...arguments);
31070
31074
  r(this, "type", "NeedleTextureSheet");
@@ -31081,7 +31085,7 @@ class P2 extends Gr {
31081
31085
  }
31082
31086
  }
31083
31087
  const Eb = Symbol("particleRotation");
31084
- class O2 extends Gr {
31088
+ class OT extends Gr {
31085
31089
  constructor() {
31086
31090
  super(...arguments);
31087
31091
  r(this, "type", "NeedleRotation");
@@ -31099,8 +31103,8 @@ class O2 extends Gr {
31099
31103
  }
31100
31104
  }
31101
31105
  }
31102
- const Ib = Symbol("sizeLerpFactor"), M2 = new v();
31103
- class R2 extends Gr {
31106
+ const Ib = Symbol("sizeLerpFactor"), MT = new v();
31107
+ class RT extends Gr {
31104
31108
  constructor() {
31105
31109
  super(...arguments);
31106
31110
  r(this, "type", "NeedleSize");
@@ -31118,13 +31122,13 @@ class R2 extends Gr {
31118
31122
  this.system.renderer.renderMode !== gn.Mesh && (a = this.system.worldScale.x / this.system.cameraScale);
31119
31123
  const l = H(e.startSize).multiplyScalar(o * a);
31120
31124
  if (e.size.set(l.x, l.y, l.z), this.system.localspace) {
31121
- const c = Gw(this.system, M2);
31125
+ const c = Gw(this.system, MT);
31122
31126
  e.size.x *= c.x, e.size.y *= c.y, e.size.z *= c.z;
31123
31127
  }
31124
31128
  }
31125
31129
  }
31126
31130
  const va = Symbol("particleLife"), Cp = Symbol("trailLifetime"), Db = Symbol("trailStartLength"), Pp = Symbol("trailWidthRandom");
31127
- class k2 extends Gr {
31131
+ class kT extends Gr {
31128
31132
  constructor() {
31129
31133
  super(...arguments);
31130
31134
  r(this, "type", "NeedleTrail");
@@ -31153,7 +31157,7 @@ class k2 extends Gr {
31153
31157
  }
31154
31158
  }
31155
31159
  const Jh = Symbol("startVelocity"), Lb = Symbol("gravityModifier"), Op = Symbol("gravitySpeed"), ed = Symbol("velocity lerp factor"), Hm = new v();
31156
- class T2 extends Gr {
31160
+ class TT extends Gr {
31157
31161
  constructor() {
31158
31162
  super(...arguments);
31159
31163
  r(this, "type", "NeedleVelocity");
@@ -31194,7 +31198,7 @@ class T2 extends Gr {
31194
31198
  }
31195
31199
  }
31196
31200
  const jb = Symbol("colorLerpFactor"), Bb = new ve(1, 1, 1, 1), Vo = new ve(1, 1, 1, 1);
31197
- class A2 extends Gr {
31201
+ class AT extends Gr {
31198
31202
  constructor() {
31199
31203
  super(...arguments);
31200
31204
  r(this, "type", "NeedleColor");
@@ -31213,7 +31217,7 @@ class A2 extends Gr {
31213
31217
  e.color.copy(e.startColor);
31214
31218
  }
31215
31219
  }
31216
- class E2 {
31220
+ class ET {
31217
31221
  constructor(t) {
31218
31222
  r(this, "system");
31219
31223
  r(this, "emission");
@@ -31229,7 +31233,7 @@ class E2 {
31229
31233
  });
31230
31234
  r(this, "flatWhiteTexture");
31231
31235
  r(this, "clonedTexture", { original: void 0, clone: void 0 });
31232
- this.system = t, this.emission = new S2(this.system);
31236
+ this.system = t, this.emission = new ST(this.system);
31233
31237
  }
31234
31238
  get anim() {
31235
31239
  return this.system.textureSheetAnimation;
@@ -31277,7 +31281,7 @@ class E2 {
31277
31281
  }
31278
31282
  /** this is not supported yet */
31279
31283
  get emissionOverDistance() {
31280
- return new C2(this.system);
31284
+ return new CT(this.system);
31281
31285
  }
31282
31286
  get instancingGeometry() {
31283
31287
  return this.system.renderer.getMesh(this.system.renderer.renderMode).geometry;
@@ -31317,7 +31321,7 @@ class E2 {
31317
31321
  return this.flatWhiteTexture || (this.flatWhiteTexture = Eg(new ve(1, 1, 1, 1), 1)), this.flatWhiteTexture;
31318
31322
  }
31319
31323
  get startTileIndex() {
31320
- return new x2(this.system);
31324
+ return new xT(this.system);
31321
31325
  }
31322
31326
  get uTileCount() {
31323
31327
  var t;
@@ -31341,7 +31345,7 @@ class E2 {
31341
31345
  return this.system.main.simulationSpace === Fc.World;
31342
31346
  }
31343
31347
  }
31344
- class I2 {
31348
+ class IT {
31345
31349
  constructor() {
31346
31350
  r(this, "burstParticleIndex", 0);
31347
31351
  r(this, "burstParticleCount", 0);
@@ -31419,7 +31423,7 @@ const Pd = class extends D {
31419
31423
  }
31420
31424
  emit(t) {
31421
31425
  if (this._particleSystem) {
31422
- this.onUpdate(), t = Math.min(t, this.maxParticles - this.currentParticles), this._state || (this._state = new I2()), this._state.waitEmiting = t, this._state.time = 0;
31426
+ this.onUpdate(), t = Math.min(t, this.maxParticles - this.currentParticles), this._state || (this._state = new IT()), this._state.waitEmiting = t, this._state.time = 0;
31423
31427
  const e = this._particleSystem.emitEnded;
31424
31428
  this._particleSystem.emitEnded = !1, this._particleSystem.emit(this.deltaTime, this._state, this._particleSystem.emitter.matrixWorld), this._particleSystem.emitEnded = e;
31425
31429
  }
@@ -31561,7 +31565,7 @@ const Pd = class extends D {
31561
31565
  awake() {
31562
31566
  if (this._worldPositionFrame = -1, this._renderer = this.gameObject.getComponent(ws), !this.main)
31563
31567
  throw new Error("Not Supported: ParticleSystem needs a serialized MainModule. Creating new particle systems at runtime is currently not supported.");
31564
- this._container = new L(), this._container.matrixAutoUpdate = !1, this.context.scene.add(this._container), this._batchSystem = new xS(), this._batchSystem.name = this.gameObject.name, this._container.add(this._batchSystem), this._interface = new E2(this), this._particleSystem = new SS(this._interface), this._particleSystem.addBehavior(new R2(this)), this._particleSystem.addBehavior(new A2(this)), this._particleSystem.addBehavior(new P2(this)), this._particleSystem.addBehavior(new O2(this)), this._particleSystem.addBehavior(new T2(this)), this._particleSystem.addBehavior(new k2(this)), this._batchSystem.addSystem(this._particleSystem);
31568
+ this._container = new L(), this._container.matrixAutoUpdate = !1, this.context.scene.add(this._container), this._batchSystem = new xS(), this._batchSystem.name = this.gameObject.name, this._container.add(this._batchSystem), this._interface = new ET(this), this._particleSystem = new SS(this._interface), this._particleSystem.addBehavior(new RT(this)), this._particleSystem.addBehavior(new AT(this)), this._particleSystem.addBehavior(new PT(this)), this._particleSystem.addBehavior(new OT(this)), this._particleSystem.addBehavior(new TT(this)), this._particleSystem.addBehavior(new kT(this)), this._batchSystem.addSystem(this._particleSystem);
31565
31569
  const t = this._particleSystem.emitter;
31566
31570
  this.context.scene.add(t), this.inheritVelocity.system && this.inheritVelocity.system !== this && (this.inheritVelocity = this.inheritVelocity.clone()), this.inheritVelocity.awake(this), io && (console.log(this), this.gameObject.add(new Pi(1)));
31567
31571
  }
@@ -31779,9 +31783,9 @@ class zc extends D {
31779
31783
  return new ae(i / 255, s / 255, o / 255);
31780
31784
  }
31781
31785
  }
31782
- const D2 = S("debugpost");
31786
+ const DT = S("debugpost");
31783
31787
  let Gm = null;
31784
- function L2(n) {
31788
+ function LT(n) {
31785
31789
  Gm = n;
31786
31790
  }
31787
31791
  function qw(n) {
@@ -31794,23 +31798,23 @@ function qw(n) {
31794
31798
  }
31795
31799
  return null;
31796
31800
  }
31797
- function j2(n) {
31801
+ function jT(n) {
31798
31802
  let t = qw(n);
31799
31803
  if (!t)
31800
31804
  if (Gm) {
31801
- D2 && console.warn("Adding postprocessing manager to the scene.");
31805
+ DT && console.warn("Adding postprocessing manager to the scene.");
31802
31806
  const e = n.scene;
31803
31807
  t = Qi(e, Gm);
31804
31808
  } else
31805
31809
  z() && console.warn("No post processing manager found");
31806
31810
  return t;
31807
31811
  }
31808
- var B2 = Object.defineProperty, F2 = Object.getOwnPropertyDescriptor, Xw = (n, t, e, i) => {
31809
- for (var s = i > 1 ? void 0 : i ? F2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
31812
+ var BT = Object.defineProperty, FT = Object.getOwnPropertyDescriptor, Xw = (n, t, e, i) => {
31813
+ for (var s = i > 1 ? void 0 : i ? FT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
31810
31814
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
31811
- return i && s && B2(t, e, s), s;
31815
+ return i && s && BT(t, e, s), s;
31812
31816
  };
31813
- const z2 = S("debugpost");
31817
+ const zT = S("debugpost");
31814
31818
  class N {
31815
31819
  constructor(t) {
31816
31820
  r(this, "isVolumeParameter", !0);
@@ -31858,7 +31862,7 @@ class N {
31858
31862
  if (t == null || !e && this.testIfValueChanged(t) === !1)
31859
31863
  return;
31860
31864
  const i = this._value;
31861
- z2 && typeof i == "number" && typeof t == "number" && (i == null || i.toFixed(4), t == null || t.toFixed(4)), !this._active && this._defaultValue !== void 0 ? (this._value = this._defaultValue, t = this._defaultValue, this._valueRaw = t) : (this._valueRaw = t, this._active && this.valueProcessor && (t = this.valueProcessor(t)), this._value = t), this.onValueChanged && this.onValueChanged(t, i, this);
31865
+ zT && typeof i == "number" && typeof t == "number" && (i == null || i.toFixed(4), t == null || t.toFixed(4)), !this._active && this._defaultValue !== void 0 ? (this._value = this._defaultValue, t = this._defaultValue, this._valueRaw = t) : (this._valueRaw = t, this._active && this.valueProcessor && (t = this.valueProcessor(t)), this._value = t), this.onValueChanged && this.onValueChanged(t, i, this);
31862
31866
  }
31863
31867
  testIfValueChanged(t) {
31864
31868
  return this._valueRaw !== t;
@@ -31870,7 +31874,7 @@ Xw([
31870
31874
  Xw([
31871
31875
  f()
31872
31876
  ], N.prototype, "value", 1);
31873
- class U2 extends ss {
31877
+ class UT extends ss {
31874
31878
  constructor() {
31875
31879
  super([N]);
31876
31880
  }
@@ -31887,13 +31891,13 @@ class U2 extends ss {
31887
31891
  return o;
31888
31892
  }
31889
31893
  }
31890
- new U2();
31891
- var N2 = Object.defineProperty, $2 = Object.getOwnPropertyDescriptor, W2 = (n, t, e, i) => {
31892
- for (var s = i > 1 ? void 0 : i ? $2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
31894
+ new UT();
31895
+ var NT = Object.defineProperty, $T = Object.getOwnPropertyDescriptor, WT = (n, t, e, i) => {
31896
+ for (var s = i > 1 ? void 0 : i ? $T(t, e) : t, o = n.length - 1, a; o >= 0; o--)
31893
31897
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
31894
- return i && s && N2(t, e, s), s;
31898
+ return i && s && NT(t, e, s), s;
31895
31899
  };
31896
- const V2 = S("debugpost");
31900
+ const VT = S("debugpost");
31897
31901
  class dt extends D {
31898
31902
  constructor(e = void 0) {
31899
31903
  super();
@@ -31920,7 +31924,7 @@ class dt extends D {
31920
31924
  }
31921
31925
  onEffectEnabled(e) {
31922
31926
  var i;
31923
- e && e.isPostProcessingManager === !0 ? this._manager = e : this._manager || (this._manager = j2(this)), (i = this._manager) == null || i.addEffect(this);
31927
+ e && e.isPostProcessingManager === !0 ? this._manager = e : this._manager || (this._manager = jT(this)), (i = this._manager) == null || i.addEffect(this);
31924
31928
  }
31925
31929
  /** override to initialize bindings on parameters */
31926
31930
  init() {
@@ -31937,7 +31941,7 @@ class dt extends D {
31937
31941
  unapply() {
31938
31942
  }
31939
31943
  dispose() {
31940
- V2 && console.warn("DISPOSE", this), this._result && (Array.isArray(this._result) ? this._result.forEach((e) => e.dispose()) : this._result.dispose()), this._result = void 0;
31944
+ VT && console.warn("DISPOSE", this), this._result && (Array.isArray(this._result) ? this._result.forEach((e) => e.dispose()) : this._result.dispose()), this._result = void 0;
31941
31945
  }
31942
31946
  initParameters() {
31943
31947
  const e = Object.keys(this);
@@ -31956,20 +31960,20 @@ class dt extends D {
31956
31960
  }
31957
31961
  }
31958
31962
  }
31959
- W2([
31963
+ WT([
31960
31964
  f()
31961
31965
  ], dt.prototype, "active", 2);
31962
- var H2 = Object.defineProperty, G2 = Object.getOwnPropertyDescriptor, q2 = (n, t, e, i) => {
31963
- for (var s = i > 1 ? void 0 : i ? G2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
31966
+ var HT = Object.defineProperty, GT = Object.getOwnPropertyDescriptor, qT = (n, t, e, i) => {
31967
+ for (var s = i > 1 ? void 0 : i ? GT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
31964
31968
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
31965
- return i && s && H2(t, e, s), s;
31969
+ return i && s && HT(t, e, s), s;
31966
31970
  };
31967
- const X2 = S("debugpost"), qm = {};
31971
+ const XT = S("debugpost"), qm = {};
31968
31972
  function xs(n, t) {
31969
31973
  qm[n] = t;
31970
31974
  }
31971
- function Q2(n) {
31972
- return n.__type in qm ? qm[n.__type] : (X2 && n.__type && console.warn("Unknown postprocessing type", n.__type, n), dt);
31975
+ function QT(n) {
31976
+ return n.__type in qm ? qm[n.__type] : (XT && n.__type && console.warn("Unknown postprocessing type", n.__type, n), dt);
31973
31977
  }
31974
31978
  class lf {
31975
31979
  constructor() {
@@ -31991,13 +31995,13 @@ class lf {
31991
31995
  e >= 0 && this.components.splice(e, 1);
31992
31996
  }
31993
31997
  }
31994
- q2([
31995
- Qc([(n) => Q2(n), dt])
31998
+ qT([
31999
+ Qc([(n) => QT(n), dt])
31996
32000
  ], lf.prototype, "components", 2);
31997
- var Y2 = Object.defineProperty, K2 = Object.getOwnPropertyDescriptor, Z2 = (n, t, e, i) => {
31998
- for (var s = i > 1 ? void 0 : i ? K2(t, e) : t, o = n.length - 1, a; o >= 0; o--)
32001
+ var YT = Object.defineProperty, KT = Object.getOwnPropertyDescriptor, ZT = (n, t, e, i) => {
32002
+ for (var s = i > 1 ? void 0 : i ? KT(t, e) : t, o = n.length - 1, a; o >= 0; o--)
31999
32003
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
32000
- return i && s && Y2(t, e, s), s;
32004
+ return i && s && YT(t, e, s), s;
32001
32005
  };
32002
32006
  class cf extends dt {
32003
32007
  constructor() {
@@ -32018,14 +32022,14 @@ class cf extends dt {
32018
32022
  }, e;
32019
32023
  }
32020
32024
  }
32021
- Z2([
32025
+ ZT([
32022
32026
  f(N)
32023
32027
  ], cf.prototype, "preset", 2);
32024
32028
  xs("Antialiasing", cf);
32025
- var J2 = Object.defineProperty, eA = Object.getOwnPropertyDescriptor, gy = (n, t, e, i) => {
32029
+ var JT = Object.defineProperty, eA = Object.getOwnPropertyDescriptor, gy = (n, t, e, i) => {
32026
32030
  for (var s = i > 1 ? void 0 : i ? eA(t, e) : t, o = n.length - 1, a; o >= 0; o--)
32027
32031
  (a = n[o]) && (s = (i ? a(t, e, s) : a(s)) || s);
32028
- return i && s && J2(t, e, s), s;
32032
+ return i && s && JT(t, e, s), s;
32029
32033
  }, Vp;
32030
32034
  const Qw = (Vp = class extends dt {
32031
32035
  constructor() {
@@ -33025,7 +33029,7 @@ RA([
33025
33029
  Qc(lf)
33026
33030
  ], pf.prototype, "sharedProfile", 2);
33027
33031
  const td = /* @__PURE__ */ new Map();
33028
- L2(pf);
33032
+ LT(pf);
33029
33033
  async function by(n) {
33030
33034
  const { NeedleEngineHTMLElement: t } = await Promise.resolve().then(() => bI);
33031
33035
  t.observedAttributes.includes(n) || t.observedAttributes.push(n);
@@ -41634,7 +41638,7 @@ export {
41634
41638
  ry as hz,
41635
41639
  Iv as i,
41636
41640
  hh as i0,
41637
- kT as i1,
41641
+ k2 as i1,
41638
41642
  Xi as i2,
41639
41643
  Z0 as i3,
41640
41644
  J0 as i4,