@thatopen/components 2.2.10 → 2.2.12

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.
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  var so = Object.defineProperty;
2
2
  var io = (c, s, t) => s in c ? so(c, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[s] = t;
3
- var _ = (c, s, t) => (io(c, typeof s != "symbol" ? s + "" : s, t), t);
3
+ var T = (c, s, t) => (io(c, typeof s != "symbol" ? s + "" : s, t), t);
4
4
  import * as M from "three";
5
5
  import { BufferAttribute as Nr, Vector3 as q, Vector2 as Je, Plane as gn, Line3 as he, Triangle as je, Sphere as no, Matrix4 as de, Box3 as se, BackSide as ro, DoubleSide as br, FrontSide as Pn, Mesh as rt, Ray as oo, Raycaster as ao, Quaternion as le, Object3D as Qi, Euler as co, MeshBasicMaterial as Pr, LineBasicMaterial as lo, CylinderGeometry as zt, BoxGeometry as Dt, BufferGeometry as Ln, Float32BufferAttribute as Mn, OctahedronGeometry as Ms, Line as Ie, SphereGeometry as ho, TorusGeometry as rs, PlaneGeometry as uo } from "three";
6
6
  import * as ye from "@thatopen/fragments";
@@ -99,8 +99,8 @@ function Pi(c, s, t, e, i = null) {
99
99
  F < n && (n = F), S > a && (a = S), m && g < d && (d = g), m && g > E && (E = g);
100
100
  const L = c[C + 2], N = c[C + 3], x = L - N, k = L + N;
101
101
  x < r && (r = x), k > l && (l = k), m && L < u && (u = L), m && L > p && (p = L);
102
- const w = c[C + 4], P = c[C + 5], T = w - P, v = w + P;
103
- T < o && (o = T), v > h && (h = v), m && w < f && (f = w), m && w > I && (I = w);
102
+ const w = c[C + 4], P = c[C + 5], _ = w - P, v = w + P;
103
+ _ < o && (o = _), v > h && (h = v), m && w < f && (f = w), m && w > I && (I = w);
104
104
  }
105
105
  e[0] = n, e[1] = r, e[2] = o, e[3] = a, e[4] = l, e[5] = h, m && (i[0] = d, i[1] = u, i[2] = f, i[3] = E, i[4] = p, i[5] = I);
106
106
  }
@@ -321,8 +321,8 @@ function bo(c, s) {
321
321
  g.splitAxis = N.axis;
322
322
  const k = new Ds(), w = y, P = x - y;
323
323
  g.left = k, k.boundingData = new Float32Array(6), Pi(E, w, P, k.boundingData, f), R(k, w, P, f, L + 1);
324
- const T = new Ds(), v = x, j = F - P;
325
- g.right = T, T.boundingData = new Float32Array(6), Pi(E, v, j, T.boundingData, f), R(T, v, j, f, L + 1);
324
+ const _ = new Ds(), v = x, Q = F - P;
325
+ g.right = _, _.boundingData = new Float32Array(6), Pi(E, v, Q, _.boundingData, f), R(_, v, Q, f, L + 1);
326
326
  }
327
327
  return g;
328
328
  }
@@ -697,8 +697,8 @@ Bt.prototype.distanceToBox = function() {
697
697
  for (let C = 0; C <= 1; C++) {
698
698
  const R = (I + 1) % 3, g = (I + 2) % 3, y = m << R | C << g, F = 1 << I | m << R | C << g, S = f[y], L = f[F];
699
699
  s[p].set(S, L);
700
- const x = c[I], k = c[R], w = c[g], P = t[p], T = P.start, v = P.end;
701
- T[x] = d[x], T[k] = m ? d[k] : u[k], T[w] = C ? d[w] : u[k], v[x] = u[x], v[k] = m ? d[k] : u[k], v[w] = C ? d[w] : u[k], p++;
700
+ const x = c[I], k = c[R], w = c[g], P = t[p], _ = P.start, v = P.end;
701
+ _[x] = d[x], _[k] = m ? d[k] : u[k], _[w] = C ? d[w] : u[k], v[x] = u[x], v[k] = m ? d[k] : u[k], v[w] = C ? d[w] : u[k], p++;
702
702
  }
703
703
  for (let I = 0; I <= 1; I++)
704
704
  for (let m = 0; m <= 1; m++)
@@ -787,17 +787,17 @@ function qi(c, s, t, e, i = null, n = 0, r = 0) {
787
787
  return wt(c, o, Re), e(u, f, !1, r, n + c, Re);
788
788
  } else {
789
789
  let x = function(w) {
790
- const { uint16Array: P, uint32Array: T } = At;
790
+ const { uint16Array: P, uint32Array: _ } = At;
791
791
  let v = w * 2;
792
792
  for (; !Vt(v, P); )
793
793
  w = $t(w), v = w * 2;
794
- return Yt(w, T);
794
+ return Yt(w, _);
795
795
  }, k = function(w) {
796
- const { uint16Array: P, uint32Array: T } = At;
796
+ const { uint16Array: P, uint32Array: _ } = At;
797
797
  let v = w * 2;
798
798
  for (; !Vt(v, P); )
799
- w = jt(w, T), v = w * 2;
800
- return Yt(w, T) + Zt(v, P);
799
+ w = jt(w, _), v = w * 2;
800
+ return Yt(w, _) + Zt(v, P);
801
801
  };
802
802
  const u = $t(c), f = jt(c, l);
803
803
  let E = u, p = f, I, m, C, R;
@@ -810,8 +810,8 @@ function qi(c, s, t, e, i = null, n = 0, r = 0) {
810
810
  const g = Vt(E * 2, a), y = t(C, g, I, r + 1, n + E);
811
811
  let F;
812
812
  if (y === xn) {
813
- const w = x(E), T = k(E) - w;
814
- F = e(w, T, !0, r + 1, n + E, C);
813
+ const w = x(E), _ = k(E) - w;
814
+ F = e(w, _, !0, r + 1, n + E, C);
815
815
  } else
816
816
  F = y && qi(
817
817
  E,
@@ -828,8 +828,8 @@ function qi(c, s, t, e, i = null, n = 0, r = 0) {
828
828
  const S = Vt(p * 2, a), L = t(R, S, m, r + 1, n + p);
829
829
  let N;
830
830
  if (L === xn) {
831
- const w = x(p), T = k(p) - w;
832
- N = e(w, T, !0, r + 1, n + p, R);
831
+ const w = x(p), _ = k(p) - w;
832
+ N = e(w, _, !0, r + 1, n + p, R);
833
833
  } else
834
834
  N = L && qi(
835
835
  p,
@@ -936,8 +936,8 @@ function Ho(c, s = null) {
936
936
  let R = 1 / 0, g = 1 / 0, y = 1 / 0, F = -1 / 0, S = -1 / 0, L = -1 / 0;
937
937
  for (let N = 3 * m, x = 3 * (m + C); N < x; N++) {
938
938
  let k = e[N];
939
- const w = i.getX(k), P = i.getY(k), T = i.getZ(k);
940
- w < R && (R = w), w > F && (F = w), P < g && (g = P), P > S && (S = P), T < y && (y = T), T > L && (L = T);
939
+ const w = i.getX(k), P = i.getY(k), _ = i.getZ(k);
940
+ w < R && (R = w), w > F && (F = w), P < g && (g = P), P > S && (S = P), _ < y && (y = _), _ > L && (L = _);
941
941
  }
942
942
  return a[u + 0] !== R || a[u + 1] !== g || a[u + 2] !== y || a[u + 3] !== F || a[u + 4] !== S || a[u + 5] !== L ? (a[u + 0] = R, a[u + 1] = g, a[u + 2] = y, a[u + 3] = F, a[u + 4] = S, a[u + 5] = L, !0) : !1;
943
943
  } else {
@@ -952,8 +952,8 @@ function Ho(c, s = null) {
952
952
  const w = x || k;
953
953
  if (w)
954
954
  for (let P = 0; P < 3; P++) {
955
- const T = m + P, v = C + P, j = a[T], V = a[T + 3], et = a[v], H = a[v + 3];
956
- a[u + P] = j < et ? j : et, a[u + P + 3] = V > H ? V : H;
955
+ const _ = m + P, v = C + P, Q = a[_], V = a[_ + 3], et = a[v], H = a[v + 3];
956
+ a[u + P] = Q < et ? Q : et, a[u + P + 3] = V > H ? V : H;
957
957
  }
958
958
  return w;
959
959
  }
@@ -1087,8 +1087,8 @@ function sa(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
1087
1087
  Pt(f, 3 * x, d, h), f.a.applyMatrix4(t), f.b.applyMatrix4(t), f.c.applyMatrix4(t), f.needsUpdate = !0;
1088
1088
  for (let w = y, P = y + F; w < P; w++) {
1089
1089
  Pt(u, 3 * w, l, a), u.needsUpdate = !0;
1090
- const T = u.distanceToTriangle(f, E, I);
1091
- if (T < C && (p.copy(E), m && m.copy(I), C = T, R = w, g = x), T < n)
1090
+ const _ = u.distanceToTriangle(f, E, I);
1091
+ if (_ < C && (p.copy(E), m && m.copy(I), C = _, R = w, g = x), _ < n)
1092
1092
  return !0;
1093
1093
  }
1094
1094
  }
@@ -1127,8 +1127,8 @@ function ia(c, s = null) {
1127
1127
  for (let w = 0; w < 3; w++) {
1128
1128
  let P = k + w;
1129
1129
  P = e ? e[P] : P;
1130
- const T = i.getX(P), v = i.getY(P), j = i.getZ(P);
1131
- T < R && (R = T), T > F && (F = T), v < g && (g = v), v > S && (S = v), j < y && (y = j), j > L && (L = j);
1130
+ const _ = i.getX(P), v = i.getY(P), Q = i.getZ(P);
1131
+ _ < R && (R = _), _ > F && (F = _), v < g && (g = v), v > S && (S = v), Q < y && (y = Q), Q > L && (L = Q);
1132
1132
  }
1133
1133
  }
1134
1134
  return a[u + 0] !== R || a[u + 1] !== g || a[u + 2] !== y || a[u + 3] !== F || a[u + 4] !== S || a[u + 5] !== L ? (a[u + 0] = R, a[u + 1] = g, a[u + 2] = y, a[u + 3] = F, a[u + 4] = S, a[u + 5] = L, !0) : !1;
@@ -1144,8 +1144,8 @@ function ia(c, s = null) {
1144
1144
  const w = x || k;
1145
1145
  if (w)
1146
1146
  for (let P = 0; P < 3; P++) {
1147
- const T = m + P, v = C + P, j = a[T], V = a[T + 3], et = a[v], H = a[v + 3];
1148
- a[u + P] = j < et ? j : et, a[u + P + 3] = V > H ? V : H;
1147
+ const _ = m + P, v = C + P, Q = a[_], V = a[_ + 3], et = a[v], H = a[v + 3];
1148
+ a[u + P] = Q < et ? Q : et, a[u + P + 3] = V > H ? V : H;
1149
1149
  }
1150
1150
  return w;
1151
1151
  }
@@ -1251,11 +1251,11 @@ function ua(c, s, t, e = {}, i = {}, n = 0, r = 1 / 0) {
1251
1251
  for (let x = L, k = L + N; x < k; x++) {
1252
1252
  const w = S.resolveTriangleIndex(x);
1253
1253
  Pt(f, 3 * w, d, h), f.a.applyMatrix4(t), f.b.applyMatrix4(t), f.c.applyMatrix4(t), f.needsUpdate = !0;
1254
- for (let P = y, T = y + F; P < T; P++) {
1254
+ for (let P = y, _ = y + F; P < _; P++) {
1255
1255
  const v = c.resolveTriangleIndex(P);
1256
1256
  Pt(u, 3 * v, l, a), u.needsUpdate = !0;
1257
- const j = u.distanceToTriangle(f, E, I);
1258
- if (j < C && (p.copy(E), m && m.copy(I), C = j, R = P, g = x), j < n)
1257
+ const Q = u.distanceToTriangle(f, E, I);
1258
+ if (Q < C && (p.copy(E), m && m.copy(I), C = Q, R = P, g = x), Q < n)
1259
1259
  return !0;
1260
1260
  }
1261
1261
  }
@@ -1416,9 +1416,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1416
1416
  else {
1417
1417
  const w = _e.getPrimitive();
1418
1418
  w.copy(Di).applyMatrix4(t);
1419
- const P = $t(c), T = jt(c, E);
1420
- wt(P, f, Ge), wt(T, f, He);
1421
- const v = w.intersectsBox(Ge), j = w.intersectsBox(He);
1419
+ const P = $t(c), _ = jt(c, E);
1420
+ wt(P, f, Ge), wt(_, f, He);
1421
+ const v = w.intersectsBox(Ge), Q = w.intersectsBox(He);
1422
1422
  S = v && Qt(
1423
1423
  L,
1424
1424
  P,
@@ -1431,9 +1431,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1431
1431
  o + 1,
1432
1432
  w,
1433
1433
  !h
1434
- ) || j && Qt(
1434
+ ) || Q && Qt(
1435
1435
  L,
1436
- T,
1436
+ _,
1437
1437
  e,
1438
1438
  t,
1439
1439
  i,
@@ -1463,9 +1463,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1463
1463
  else {
1464
1464
  const w = _e.getPrimitive();
1465
1465
  w.copy(Ui).applyMatrix4(t);
1466
- const P = $t(c), T = jt(c, E);
1467
- wt(P, f, Ge), wt(T, f, He);
1468
- const v = w.intersectsBox(Ge), j = w.intersectsBox(He);
1466
+ const P = $t(c), _ = jt(c, E);
1467
+ wt(P, f, Ge), wt(_, f, He);
1468
+ const v = w.intersectsBox(Ge), Q = w.intersectsBox(He);
1469
1469
  S = v && Qt(
1470
1470
  N,
1471
1471
  P,
@@ -1478,9 +1478,9 @@ function Qt(c, s, t, e, i, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
1478
1478
  o + 1,
1479
1479
  w,
1480
1480
  !h
1481
- ) || j && Qt(
1481
+ ) || Q && Qt(
1482
1482
  N,
1483
- T,
1483
+ _,
1484
1484
  e,
1485
1485
  t,
1486
1486
  i,
@@ -1736,15 +1736,15 @@ function Ia(c) {
1736
1736
  function ga() {
1737
1737
  this.boundsTree = null;
1738
1738
  }
1739
- class Q {
1739
+ class j {
1740
1740
  constructor() {
1741
1741
  /** Triggers all the callbacks assigned to this event. */
1742
- _(this, "trigger", (s) => {
1742
+ T(this, "trigger", (s) => {
1743
1743
  const t = this.handlers.slice(0);
1744
1744
  for (const e of t)
1745
1745
  e(s);
1746
1746
  });
1747
- _(this, "handlers", []);
1747
+ T(this, "handlers", []);
1748
1748
  }
1749
1749
  /**
1750
1750
  * Add a callback to this event instance.
@@ -1768,12 +1768,12 @@ class Q {
1768
1768
  class oi {
1769
1769
  constructor() {
1770
1770
  /** Triggers all the callbacks assigned to this event. */
1771
- _(this, "trigger", async (s) => {
1771
+ T(this, "trigger", async (s) => {
1772
1772
  const t = this.handlers.slice(0);
1773
1773
  for (const e of t)
1774
1774
  await e(s);
1775
1775
  });
1776
- _(this, "handlers", []);
1776
+ T(this, "handlers", []);
1777
1777
  }
1778
1778
  /**
1779
1779
  * Add a callback to this event instance.
@@ -1797,15 +1797,15 @@ class oi {
1797
1797
  class An {
1798
1798
  constructor(s) {
1799
1799
  /** Whether is component is {@link Disposable}. */
1800
- _(this, "isDisposeable", () => "dispose" in this && "onDisposed" in this);
1800
+ T(this, "isDisposeable", () => "dispose" in this && "onDisposed" in this);
1801
1801
  /** Whether is component is {@link Resizeable}. */
1802
- _(this, "isResizeable", () => "resize" in this && "getSize" in this);
1802
+ T(this, "isResizeable", () => "resize" in this && "getSize" in this);
1803
1803
  /** Whether is component is {@link Updateable}. */
1804
- _(this, "isUpdateable", () => "onAfterUpdate" in this && "onBeforeUpdate" in this && "update" in this);
1804
+ T(this, "isUpdateable", () => "onAfterUpdate" in this && "onBeforeUpdate" in this && "update" in this);
1805
1805
  /** Whether is component is {@link Hideable}. */
1806
- _(this, "isHideable", () => "visible" in this);
1806
+ T(this, "isHideable", () => "visible" in this);
1807
1807
  /** Whether is component is {@link Configurable}. */
1808
- _(this, "isConfigurable", () => "setup" in this && "config" in this && "onSetup" in this);
1808
+ T(this, "isConfigurable", () => "setup" in this && "config" in this && "onSetup" in this);
1809
1809
  this.components = s;
1810
1810
  }
1811
1811
  }
@@ -1814,16 +1814,16 @@ class St extends An {
1814
1814
  class Rn extends An {
1815
1815
  constructor(t) {
1816
1816
  super(t);
1817
- _(this, "worlds", /* @__PURE__ */ new Map());
1817
+ T(this, "worlds", /* @__PURE__ */ new Map());
1818
1818
  /**
1819
1819
  * Event that is triggered when a world is added or removed from the `worlds` map.
1820
1820
  * The event payload contains the world instance and the action ("added" or "removed").
1821
1821
  */
1822
- _(this, "onWorldChanged", new Q());
1822
+ T(this, "onWorldChanged", new j());
1823
1823
  /**
1824
1824
  * The current world this item is associated with. It can be null if no world is currently active.
1825
1825
  */
1826
- _(this, "currentWorld", null);
1826
+ T(this, "currentWorld", null);
1827
1827
  this.onWorldChanged.add(({ world: e, action: i }) => {
1828
1828
  i === "removed" && this.worlds.delete(e.uuid);
1829
1829
  });
@@ -1837,29 +1837,29 @@ class Ca extends Rn {
1837
1837
  *
1838
1838
  * @returns True if the instance is controllable, false otherwise.
1839
1839
  */
1840
- _(this, "hasCameraControls", () => "controls" in this);
1840
+ T(this, "hasCameraControls", () => "controls" in this);
1841
1841
  }
1842
1842
  }
1843
1843
  class Ta extends Rn {
1844
1844
  constructor() {
1845
1845
  super(...arguments);
1846
1846
  /** {@link Updateable.onBeforeUpdate} */
1847
- _(this, "onAfterUpdate", new Q());
1847
+ T(this, "onAfterUpdate", new j());
1848
1848
  /** {@link Updateable.onAfterUpdate} */
1849
- _(this, "onBeforeUpdate", new Q());
1849
+ T(this, "onBeforeUpdate", new j());
1850
1850
  /** {@link Disposable.onDisposed} */
1851
- _(this, "onDisposed", new Q());
1851
+ T(this, "onDisposed", new j());
1852
1852
  /** {@link Resizeable.onResize} */
1853
- _(this, "onResize", new Q());
1853
+ T(this, "onResize", new j());
1854
1854
  /**
1855
1855
  * Event that fires when there has been a change to the list of clipping
1856
1856
  * planes used by the active renderer.
1857
1857
  */
1858
- _(this, "onClippingPlanesUpdated", new Q());
1858
+ T(this, "onClippingPlanesUpdated", new j());
1859
1859
  /**
1860
1860
  * The list of [clipping planes](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.clippingPlanes) used by this instance of the renderer.
1861
1861
  */
1862
- _(this, "clippingPlanes", []);
1862
+ T(this, "clippingPlanes", []);
1863
1863
  }
1864
1864
  /**
1865
1865
  * Updates the clipping planes and triggers the `onClippingPlanesUpdated` event.
@@ -1896,9 +1896,9 @@ class Ta extends Rn {
1896
1896
  const ys = class ys extends St {
1897
1897
  constructor(t) {
1898
1898
  super(t);
1899
- _(this, "_disposedComponents", /* @__PURE__ */ new Set());
1899
+ T(this, "_disposedComponents", /* @__PURE__ */ new Set());
1900
1900
  /** {@link Component.enabled} */
1901
- _(this, "enabled", !0);
1901
+ T(this, "enabled", !0);
1902
1902
  t.add(ys.uuid, this);
1903
1903
  }
1904
1904
  // TODO: Remove this?
@@ -1956,17 +1956,17 @@ const ys = class ys extends St {
1956
1956
  * A unique identifier for the component.
1957
1957
  * This UUID is used to register the component within the Components system.
1958
1958
  */
1959
- _(ys, "uuid", "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe");
1959
+ T(ys, "uuid", "76e9cd8e-ad8f-4753-9ef6-cbc60f7247fe");
1960
1960
  let Fe = ys;
1961
1961
  class _a extends Rn {
1962
1962
  constructor(t) {
1963
1963
  super(t);
1964
1964
  /** {@link Disposable.onDisposed} */
1965
- _(this, "onDisposed", new Q());
1965
+ T(this, "onDisposed", new j());
1966
1966
  /** The set of directional lights managed by this scene component. */
1967
- _(this, "directionalLights", /* @__PURE__ */ new Map());
1967
+ T(this, "directionalLights", /* @__PURE__ */ new Map());
1968
1968
  /** The set of ambient lights managed by this scene component. */
1969
- _(this, "ambientLights", /* @__PURE__ */ new Map());
1969
+ T(this, "ambientLights", /* @__PURE__ */ new Map());
1970
1970
  }
1971
1971
  /** {@link Disposable.dispose} */
1972
1972
  dispose() {
@@ -1993,15 +1993,15 @@ class qe extends Set {
1993
1993
  /**
1994
1994
  * An event that is triggered when a new item is added to the set.
1995
1995
  */
1996
- _(this, "onItemAdded", new Q());
1996
+ T(this, "onItemAdded", new j());
1997
1997
  /**
1998
1998
  * An event that is triggered when an item is deleted from the set.
1999
1999
  */
2000
- _(this, "onItemDeleted", new Q());
2000
+ T(this, "onItemDeleted", new j());
2001
2001
  /**
2002
2002
  * An event that is triggered when the set is cleared.
2003
2003
  */
2004
- _(this, "onCleared", new Q());
2004
+ T(this, "onCleared", new j());
2005
2005
  /**
2006
2006
  * A function that acts as a guard for adding items to the set.
2007
2007
  * It determines whether a given value should be allowed to be added to the set.
@@ -2011,7 +2011,7 @@ class qe extends Set {
2011
2011
  * By default, this function always returns true, allowing all values to be added.
2012
2012
  * You can override this behavior by providing a custom implementation.
2013
2013
  */
2014
- _(this, "guard", () => !0);
2014
+ T(this, "guard", () => !0);
2015
2015
  }
2016
2016
  /**
2017
2017
  * Clears the set and triggers the onCleared event.
@@ -2027,7 +2027,7 @@ class qe extends Set {
2027
2027
  */
2028
2028
  add(...t) {
2029
2029
  for (const e of t)
2030
- this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new Q()), this.onItemAdded.trigger(e));
2030
+ this.has(e) || !this.guard(e) || (super.add(e), this.onItemAdded || (this.onItemAdded = new j()), this.onItemAdded.trigger(e));
2031
2031
  return this;
2032
2032
  }
2033
2033
  /**
@@ -2058,19 +2058,19 @@ class Ee extends Map {
2058
2058
  /**
2059
2059
  * An event triggered when a new item is set in the map.
2060
2060
  */
2061
- _(this, "onItemSet", new Q());
2061
+ T(this, "onItemSet", new j());
2062
2062
  /**
2063
2063
  * An event triggered when an existing item in the map is updated.
2064
2064
  */
2065
- _(this, "onItemUpdated", new Q());
2065
+ T(this, "onItemUpdated", new j());
2066
2066
  /**
2067
2067
  * An event triggered when an item is deleted from the map.
2068
2068
  */
2069
- _(this, "onItemDeleted", new Q());
2069
+ T(this, "onItemDeleted", new j());
2070
2070
  /**
2071
2071
  * An event triggered when the map is cleared.
2072
2072
  */
2073
- _(this, "onCleared", new Q());
2073
+ T(this, "onCleared", new j());
2074
2074
  /**
2075
2075
  * A function that acts as a guard for adding items to the set.
2076
2076
  * It determines whether a given value should be allowed to be added to the set.
@@ -2081,7 +2081,7 @@ class Ee extends Map {
2081
2081
  * By default, this function always returns true, allowing all values to be added.
2082
2082
  * You can override this behavior by providing a custom implementation.
2083
2083
  */
2084
- _(this, "guard", () => !0);
2084
+ T(this, "guard", () => !0);
2085
2085
  }
2086
2086
  /**
2087
2087
  * Clears the map and triggers the onCleared event.
@@ -2101,7 +2101,7 @@ class Ee extends Map {
2101
2101
  if (!(this.guard ?? (() => !0))(t, e))
2102
2102
  return this;
2103
2103
  const o = super.set(t, e);
2104
- return i ? (this.onItemUpdated || (this.onItemUpdated = new Q()), this.onItemUpdated.trigger({ key: t, value: e })) : (this.onItemSet || (this.onItemSet = new Q()), this.onItemSet.trigger({ key: t, value: e })), o;
2104
+ return i ? (this.onItemUpdated || (this.onItemUpdated = new j()), this.onItemUpdated.trigger({ key: t, value: e })) : (this.onItemSet || (this.onItemSet = new j()), this.onItemSet.trigger({ key: t, value: e })), o;
2105
2105
  }
2106
2106
  /**
2107
2107
  * Deletes the specified key from the map and triggers the onItemDeleted event if the key was found.
@@ -2552,14 +2552,14 @@ function ba(c) {
2552
2552
  F.elements[0] = I, F.elements[1] = m, F.elements[2] = C, F.elements[3] = m, F.elements[4] = R, F.elements[5] = g, F.elements[6] = C, F.elements[7] = g, F.elements[8] = y, Na(F, e);
2553
2553
  const S = e.unitary, L = new M.Vector3(), N = new M.Vector3(), x = new M.Vector3();
2554
2554
  S.extractBasis(L, N, x);
2555
- let k = -1 / 0, w = -1 / 0, P = -1 / 0, T = 1 / 0, v = 1 / 0, j = 1 / 0;
2555
+ let k = -1 / 0, w = -1 / 0, P = -1 / 0, _ = 1 / 0, v = 1 / 0, Q = 1 / 0;
2556
2556
  for (let at = 0, ft = s.length; at < ft; at++) {
2557
2557
  const ut = s[at];
2558
- k = Math.max(L.dot(ut), k), w = Math.max(N.dot(ut), w), P = Math.max(x.dot(ut), P), T = Math.min(L.dot(ut), T), v = Math.min(N.dot(ut), v), j = Math.min(x.dot(ut), j);
2558
+ k = Math.max(L.dot(ut), k), w = Math.max(N.dot(ut), w), P = Math.max(x.dot(ut), P), _ = Math.min(L.dot(ut), _), v = Math.min(N.dot(ut), v), Q = Math.min(x.dot(ut), Q);
2559
2559
  }
2560
- L.multiplyScalar(0.5 * (T + k)), N.multiplyScalar(0.5 * (v + w)), x.multiplyScalar(0.5 * (j + P));
2560
+ L.multiplyScalar(0.5 * (_ + k)), N.multiplyScalar(0.5 * (v + w)), x.multiplyScalar(0.5 * (Q + P));
2561
2561
  const V = new M.Vector3(), et = new M.Vector3(), H = new M.Matrix3();
2562
- V.add(L).add(N).add(x), et.x = k - T, et.y = w - v, et.z = P - j, et.multiplyScalar(0.5), H.copy(S);
2562
+ V.add(L).add(N).add(x), et.x = k - _, et.y = w - v, et.z = P - Q, et.multiplyScalar(0.5), H.copy(S);
2563
2563
  const { x: nt, y: z, z: U } = et, ot = new M.Matrix4();
2564
2564
  ot.makeScale(nt * 2, z * 2, U * 2);
2565
2565
  const st = new M.Matrix4();
@@ -2602,8 +2602,8 @@ const Nt = class Nt {
2602
2602
  );
2603
2603
  }
2604
2604
  };
2605
- _(Nt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
2606
- _(Nt, "_lut", [
2605
+ T(Nt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
2606
+ T(Nt, "_lut", [
2607
2607
  "00",
2608
2608
  "01",
2609
2609
  "02",
@@ -2866,34 +2866,34 @@ class xl extends St {
2866
2866
  constructor(t, e) {
2867
2867
  super(t);
2868
2868
  /** {@link Disposable.onDisposed} */
2869
- _(this, "onDisposed", new Q());
2869
+ T(this, "onDisposed", new j());
2870
2870
  /**
2871
2871
  * An event that is triggered when a vertex is found.
2872
2872
  * The event passes a THREE.Vector3 representing the position of the found vertex.
2873
2873
  */
2874
- _(this, "onVertexFound", new Q());
2874
+ T(this, "onVertexFound", new j());
2875
2875
  /**
2876
2876
  * An event that is triggered when a vertex is lost.
2877
2877
  * The event passes a THREE.Vector3 representing the position of the lost vertex.
2878
2878
  */
2879
- _(this, "onVertexLost", new Q());
2879
+ T(this, "onVertexLost", new j());
2880
2880
  /**
2881
2881
  * An event that is triggered when the picker is enabled or disabled
2882
2882
  */
2883
- _(this, "onEnabled", new Q());
2883
+ T(this, "onEnabled", new j());
2884
2884
  /**
2885
2885
  * A reference to the Components instance associated with this VertexPicker.
2886
2886
  */
2887
- _(this, "components");
2887
+ T(this, "components");
2888
2888
  /**
2889
2889
  * A reference to the working plane used for vertex picking.
2890
2890
  * This plane is used to determine which vertices are considered valid for picking.
2891
2891
  * If this value is null, all vertices are considered valid.
2892
2892
  */
2893
- _(this, "workingPlane", null);
2894
- _(this, "_pickedPoint", null);
2895
- _(this, "_config");
2896
- _(this, "_enabled", !1);
2893
+ T(this, "workingPlane", null);
2894
+ T(this, "_pickedPoint", null);
2895
+ T(this, "_config");
2896
+ T(this, "_enabled", !1);
2897
2897
  this.components = t, this.config = {
2898
2898
  snapDistance: 0.25,
2899
2899
  showOnlyVertex: !1,
@@ -3015,19 +3015,38 @@ class xl extends St {
3015
3015
  const ui = class ui {
3016
3016
  constructor() {
3017
3017
  /** {@link Disposable.onDisposed} */
3018
- _(this, "onDisposed", new Q());
3018
+ T(this, "onDisposed", new j());
3019
3019
  /**
3020
3020
  * The list of components created in this app.
3021
3021
  * The keys are UUIDs and the values are instances of the components.
3022
3022
  */
3023
- _(this, "list", /* @__PURE__ */ new Map());
3023
+ T(this, "list", /* @__PURE__ */ new Map());
3024
3024
  /**
3025
3025
  * If disabled, the animation loop will be stopped.
3026
3026
  * Default value is false.
3027
3027
  */
3028
- _(this, "enabled", !1);
3029
- _(this, "_clock");
3030
- _(this, "update", () => {
3028
+ T(this, "enabled", !1);
3029
+ T(this, "_clock");
3030
+ /**
3031
+ * Event that triggers the Components instance is initialized.
3032
+ *
3033
+ * @remarks
3034
+ * This event is triggered once when the {@link Components.init} method has been called and finish processing.
3035
+ * This is useful to set configuration placeholders that need to be executed when the components instance is initialized.
3036
+ * For example, enabling and configuring custom effects in a post-production renderer.
3037
+ *
3038
+ * @example
3039
+ * ```typescript
3040
+ * const components = new Components();
3041
+ * components.onInit.add(() => {
3042
+ * // Enable custom effects in the post-production renderer
3043
+ * // or any other operation dependant on the component initialization
3044
+ * });
3045
+ * components.init();
3046
+ * ```
3047
+ */
3048
+ T(this, "onInit", new j());
3049
+ T(this, "update", () => {
3031
3050
  if (!this.enabled)
3032
3051
  return;
3033
3052
  const s = this._clock.getDelta();
@@ -3080,11 +3099,9 @@ const ui = class ui {
3080
3099
  * Initializes the Components instance.
3081
3100
  * This method starts the animation loop, sets the enabled flag to true,
3082
3101
  * and calls the update method.
3083
- *
3084
- * @returns {void}
3085
3102
  */
3086
3103
  init() {
3087
- this.enabled = !0, this._clock.start(), this.update();
3104
+ this.enabled = !0, this._clock.start(), this.update(), this.onInit.trigger();
3088
3105
  }
3089
3106
  /**
3090
3107
  * Disposes the memory of all the components and tools of this instance of
@@ -3114,7 +3131,7 @@ const ui = class ui {
3114
3131
  /**
3115
3132
  * The version of the @thatopen/components library.
3116
3133
  */
3117
- _(ui, "release", "2.2.10");
3134
+ T(ui, "release", "2.2.12");
3118
3135
  let an = ui;
3119
3136
  class La extends An {
3120
3137
  constructor() {
@@ -3122,33 +3139,33 @@ class La extends An {
3122
3139
  /**
3123
3140
  * All the loaded [meshes](https://threejs.org/docs/#api/en/objects/Mesh). These meshes will be taken into account in operations like raycasting.
3124
3141
  */
3125
- _(this, "meshes", /* @__PURE__ */ new Set());
3142
+ T(this, "meshes", /* @__PURE__ */ new Set());
3126
3143
  /** {@link Updateable.onAfterUpdate} */
3127
- _(this, "onAfterUpdate", new Q());
3144
+ T(this, "onAfterUpdate", new j());
3128
3145
  /** {@link Updateable.onBeforeUpdate} */
3129
- _(this, "onBeforeUpdate", new Q());
3146
+ T(this, "onBeforeUpdate", new j());
3130
3147
  /** {@link Disposable.onDisposed} */
3131
- _(this, "onDisposed", new Q());
3148
+ T(this, "onDisposed", new j());
3132
3149
  /**
3133
3150
  * Indicates whether the world is currently being disposed. This is useful to prevent trying to access world's elements when it's being disposed, which could cause errors when you dispose a world.
3134
3151
  */
3135
- _(this, "isDisposing", !1);
3152
+ T(this, "isDisposing", !1);
3136
3153
  /**
3137
3154
  * Indicates whether the world is currently enabled.
3138
3155
  * When disabled, the world will not be updated.
3139
3156
  */
3140
- _(this, "enabled", !0);
3157
+ T(this, "enabled", !0);
3141
3158
  /**
3142
3159
  * A unique identifier for the world. Is not meant to be changed at any moment.
3143
3160
  */
3144
- _(this, "uuid", me.create());
3161
+ T(this, "uuid", me.create());
3145
3162
  /**
3146
3163
  * An optional name for the world.
3147
3164
  */
3148
- _(this, "name");
3149
- _(this, "_scene");
3150
- _(this, "_camera");
3151
- _(this, "_renderer", null);
3165
+ T(this, "name");
3166
+ T(this, "_scene");
3167
+ T(this, "_camera");
3168
+ T(this, "_renderer", null);
3152
3169
  }
3153
3170
  /**
3154
3171
  * Getter for the scene. If no scene is initialized, it throws an error.
@@ -3220,19 +3237,19 @@ class Ma extends _a {
3220
3237
  constructor(t) {
3221
3238
  super(t);
3222
3239
  /** {@link Configurable.isSetup} */
3223
- _(this, "isSetup", !1);
3240
+ T(this, "isSetup", !1);
3224
3241
  /**
3225
3242
  * The underlying Three.js scene object.
3226
3243
  * It is used to define the 3D space containing objects, lights, and cameras.
3227
3244
  */
3228
- _(this, "three");
3245
+ T(this, "three");
3229
3246
  /** {@link Configurable.onSetup} */
3230
- _(this, "onSetup", new Q());
3247
+ T(this, "onSetup", new j());
3231
3248
  /**
3232
3249
  * Configuration interface for the {@link SimpleScene}.
3233
3250
  * Defines properties for directional and ambient lights.
3234
3251
  */
3235
- _(this, "config", {
3252
+ T(this, "config", {
3236
3253
  directionalLight: {
3237
3254
  color: new M.Color("white"),
3238
3255
  intensity: 1.5,
@@ -3274,35 +3291,35 @@ class vl extends Ta {
3274
3291
  * Indicates whether the renderer is enabled. If it's not, it won't be updated.
3275
3292
  * Default is `true`.
3276
3293
  */
3277
- _(this, "enabled", !0);
3294
+ T(this, "enabled", !0);
3278
3295
  /**
3279
3296
  * The HTML container of the THREE.js canvas where the scene is rendered.
3280
3297
  */
3281
- _(this, "container");
3298
+ T(this, "container");
3282
3299
  /**
3283
3300
  * The THREE.js WebGLRenderer instance.
3284
3301
  */
3285
- _(this, "three");
3286
- _(this, "_canvas");
3287
- _(this, "_parameters");
3288
- _(this, "_resizeObserver", null);
3289
- _(this, "onContainerUpdated", new Q());
3290
- _(this, "_resizing", !1);
3302
+ T(this, "three");
3303
+ T(this, "_canvas");
3304
+ T(this, "_parameters");
3305
+ T(this, "_resizeObserver", null);
3306
+ T(this, "onContainerUpdated", new j());
3307
+ T(this, "_resizing", !1);
3291
3308
  /** {@link Resizeable.resize} */
3292
- _(this, "resize", (t) => {
3309
+ T(this, "resize", (t) => {
3293
3310
  if (this._resizing)
3294
3311
  return;
3295
3312
  this._resizing = !0, this.onContainerUpdated.trigger();
3296
3313
  const e = t ? t.x : this.container.clientWidth, i = t ? t.y : this.container.clientHeight;
3297
3314
  this.three.setSize(e, i), this.onResize.trigger(new M.Vector2(e, i)), this._resizing = !1;
3298
3315
  });
3299
- _(this, "resizeEvent", () => {
3316
+ T(this, "resizeEvent", () => {
3300
3317
  this.resize();
3301
3318
  });
3302
- _(this, "onContextLost", (t) => {
3319
+ T(this, "onContextLost", (t) => {
3303
3320
  t.preventDefault(), this.enabled = !1;
3304
3321
  });
3305
- _(this, "onContextBack", () => {
3322
+ T(this, "onContextBack", () => {
3306
3323
  this.three.setRenderTarget(null), this.three.dispose(), this.three = new M.WebGLRenderer({
3307
3324
  canvas: this._canvas,
3308
3325
  antialias: !0,
@@ -3435,8 +3452,8 @@ function nr(c, s, t, e, i = 1 / 0, n, r) {
3435
3452
  h = c.x - f, d = c.y - E, u = c.z - p;
3436
3453
  const F = (t.x + o * f) * n, S = (t.y + o * E) * n, L = (t.z + o * p) * n;
3437
3454
  t.x = (t.x - o * F) * l, t.y = (t.y - o * S) * l, t.z = (t.z - o * L) * l, r.x = h + (f + F) * l, r.y = d + (E + S) * l, r.z = u + (p + L) * l;
3438
- const N = I - c.x, x = m - c.y, k = C - c.z, w = r.x - I, P = r.y - m, T = r.z - C;
3439
- return N * w + x * P + k * T > 0 && (r.x = I, r.y = m, r.z = C, t.x = (r.x - I) / n, t.y = (r.y - m) / n, t.z = (r.z - C) / n), r;
3455
+ const N = I - c.x, x = m - c.y, k = C - c.z, w = r.x - I, P = r.y - m, _ = r.z - C;
3456
+ return N * w + x * P + k * _ > 0 && (r.x = I, r.y = m, r.z = C, t.x = (r.x - I) / n, t.y = (r.y - m) / n, t.z = (r.z - C) / n), r;
3440
3457
  }
3441
3458
  function Yi(c, s) {
3442
3459
  s.set(0, 0), c.forEach((t) => {
@@ -4732,27 +4749,27 @@ class Ns extends Ca {
4732
4749
  constructor(t) {
4733
4750
  super(t);
4734
4751
  /** {@link Updateable.onBeforeUpdate} */
4735
- _(this, "onBeforeUpdate", new Q());
4752
+ T(this, "onBeforeUpdate", new j());
4736
4753
  /** {@link Updateable.onAfterUpdate} */
4737
- _(this, "onAfterUpdate", new Q());
4754
+ T(this, "onAfterUpdate", new j());
4738
4755
  /**
4739
4756
  * Event that is triggered when the aspect of the camera has been updated.
4740
4757
  * This event is useful when you need to perform actions after the aspect of the camera has been changed.
4741
4758
  */
4742
- _(this, "onAspectUpdated", new Q());
4759
+ T(this, "onAspectUpdated", new j());
4743
4760
  /** {@link Disposable.onDisposed} */
4744
- _(this, "onDisposed", new Q());
4761
+ T(this, "onDisposed", new j());
4745
4762
  /**
4746
4763
  * A three.js PerspectiveCamera or OrthographicCamera instance.
4747
4764
  * This camera is used for rendering the scene.
4748
4765
  */
4749
- _(this, "three");
4750
- _(this, "_allControls", /* @__PURE__ */ new Map());
4766
+ T(this, "three");
4767
+ T(this, "_allControls", /* @__PURE__ */ new Map());
4751
4768
  /**
4752
4769
  * Updates the aspect of the camera to match the size of the
4753
4770
  * {@link Components.renderer}.
4754
4771
  */
4755
- _(this, "updateAspect", () => {
4772
+ T(this, "updateAspect", () => {
4756
4773
  var t;
4757
4774
  if (!(!this.currentWorld || !this.currentWorld.renderer)) {
4758
4775
  if (this.three instanceof M.OrthographicCamera) {
@@ -4855,18 +4872,18 @@ const fi = class fi extends St {
4855
4872
  constructor(t) {
4856
4873
  super(t);
4857
4874
  /** {@link Updateable.onAfterUpdate} */
4858
- _(this, "onAfterUpdate", new Q());
4875
+ T(this, "onAfterUpdate", new j());
4859
4876
  /** {@link Updateable.onBeforeUpdate} */
4860
- _(this, "onBeforeUpdate", new Q());
4877
+ T(this, "onBeforeUpdate", new j());
4861
4878
  /** {@link Disposable.onDisposed} */
4862
- _(this, "onDisposed", new Q());
4879
+ T(this, "onDisposed", new j());
4863
4880
  /**
4864
4881
  * A collection of worlds managed by this component.
4865
4882
  * The key is the unique identifier (UUID) of the world, and the value is the World instance.
4866
4883
  */
4867
- _(this, "list", new Ee());
4884
+ T(this, "list", new Ee());
4868
4885
  /** {@link Component.enabled} */
4869
- _(this, "enabled", !0);
4886
+ T(this, "enabled", !0);
4870
4887
  t.add(fi.uuid, this);
4871
4888
  }
4872
4889
  /**
@@ -4918,7 +4935,7 @@ const fi = class fi extends St {
4918
4935
  * A unique identifier for the component.
4919
4936
  * This UUID is used to register the component within the Components system.
4920
4937
  */
4921
- _(fi, "uuid", "fdb61dc4-2ec1-4966-b83d-54ea795fad4a");
4938
+ T(fi, "uuid", "fdb61dc4-2ec1-4966-b83d-54ea795fad4a");
4922
4939
  let hi = fi;
4923
4940
  function Ba(c, s, t, e) {
4924
4941
  return new Promise((i, n) => {
@@ -4948,52 +4965,52 @@ async function Br(c, s, t, e, i, n, r, o) {
4948
4965
  class ka {
4949
4966
  constructor(s, t, e) {
4950
4967
  /** {@link Disposable.onDisposed} */
4951
- _(this, "onDisposed", new Q());
4968
+ T(this, "onDisposed", new j());
4952
4969
  /**
4953
4970
  * Fires after making the visibility check to the meshes. It lists the
4954
4971
  * meshes that are currently visible, and the ones that were visible
4955
4972
  * just before but not anymore.
4956
4973
  */
4957
- _(this, "onViewUpdated", new oi());
4974
+ T(this, "onViewUpdated", new oi());
4958
4975
  /**
4959
4976
  * Whether this renderer is active or not. If not, it won't render anything.
4960
4977
  */
4961
- _(this, "enabled", !0);
4978
+ T(this, "enabled", !0);
4962
4979
  /**
4963
4980
  * Needs to check whether there are objects that need to be hidden or shown.
4964
4981
  * You can bind this to the camera movement, to a certain interval, etc.
4965
4982
  */
4966
- _(this, "needsUpdate", !1);
4983
+ T(this, "needsUpdate", !1);
4967
4984
  /**
4968
4985
  * Render the internal scene used to determine the object visibility. Used
4969
4986
  * for debugging purposes.
4970
4987
  */
4971
- _(this, "renderDebugFrame", !1);
4988
+ T(this, "renderDebugFrame", !1);
4972
4989
  /** The components instance to which this renderer belongs. */
4973
- _(this, "components");
4990
+ T(this, "components");
4974
4991
  /** The world instance to which this renderer belongs. */
4975
- _(this, "world");
4992
+ T(this, "world");
4976
4993
  /** The THREE.js renderer used to make the visibility test. */
4977
- _(this, "renderer");
4978
- _(this, "autoUpdate", !0);
4979
- _(this, "updateInterval", 1e3);
4980
- _(this, "worker");
4981
- _(this, "scene", new M.Scene());
4982
- _(this, "_width", 512);
4983
- _(this, "_height", 512);
4984
- _(this, "_availableColor", 1);
4985
- _(this, "renderTarget");
4986
- _(this, "bufferSize");
4987
- _(this, "_buffer");
4994
+ T(this, "renderer");
4995
+ T(this, "autoUpdate", !0);
4996
+ T(this, "updateInterval", 1e3);
4997
+ T(this, "worker");
4998
+ T(this, "scene", new M.Scene());
4999
+ T(this, "_width", 512);
5000
+ T(this, "_height", 512);
5001
+ T(this, "_availableColor", 1);
5002
+ T(this, "renderTarget");
5003
+ T(this, "bufferSize");
5004
+ T(this, "_buffer");
4988
5005
  // Prevents worker being fired multiple times
4989
- _(this, "_isWorkerBusy", !1);
5006
+ T(this, "_isWorkerBusy", !1);
4990
5007
  /**
4991
5008
  * The function that the culler uses to reprocess the scene. Generally it's
4992
5009
  * better to call needsUpdate, but you can also call this to force it.
4993
5010
  * @param force if true, it will refresh the scene even if needsUpdate is
4994
5011
  * not true.
4995
5012
  */
4996
- _(this, "updateVisibility", async (s) => {
5013
+ T(this, "updateVisibility", async (s) => {
4997
5014
  if (!this.enabled || !this.needsUpdate && !s || this._isWorkerBusy)
4998
5015
  return;
4999
5016
  this._isWorkerBusy = !0;
@@ -5085,33 +5102,33 @@ class Va extends ka {
5085
5102
  * Event triggered when the visibility of meshes is updated.
5086
5103
  * Contains two sets: seen and unseen.
5087
5104
  */
5088
- _(this, "onViewUpdated", new Q());
5105
+ T(this, "onViewUpdated", new j());
5089
5106
  /**
5090
5107
  * Pixels in screen a geometry must occupy to be considered "seen".
5091
5108
  * Default value is 100.
5092
5109
  */
5093
- _(this, "threshold", 100);
5110
+ T(this, "threshold", 100);
5094
5111
  /**
5095
5112
  * Map of color code to THREE.InstancedMesh.
5096
5113
  * Used to keep track of color-coded meshes.
5097
5114
  */
5098
- _(this, "colorMeshes", /* @__PURE__ */ new Map());
5115
+ T(this, "colorMeshes", /* @__PURE__ */ new Map());
5099
5116
  /**
5100
5117
  * Flag to indicate if the renderer is currently processing.
5101
5118
  * Used to prevent concurrent processing.
5102
5119
  */
5103
- _(this, "isProcessing", !1);
5104
- _(this, "_interval", null);
5105
- _(this, "_colorCodeMeshMap", /* @__PURE__ */ new Map());
5106
- _(this, "_meshIDColorCodeMap", /* @__PURE__ */ new Map());
5107
- _(this, "_currentVisibleMeshes", /* @__PURE__ */ new Set());
5108
- _(this, "_recentlyHiddenMeshes", /* @__PURE__ */ new Set());
5109
- _(this, "_intervalID", null);
5110
- _(this, "_transparentMat", new M.MeshBasicMaterial({
5120
+ T(this, "isProcessing", !1);
5121
+ T(this, "_interval", null);
5122
+ T(this, "_colorCodeMeshMap", /* @__PURE__ */ new Map());
5123
+ T(this, "_meshIDColorCodeMap", /* @__PURE__ */ new Map());
5124
+ T(this, "_currentVisibleMeshes", /* @__PURE__ */ new Set());
5125
+ T(this, "_recentlyHiddenMeshes", /* @__PURE__ */ new Set());
5126
+ T(this, "_intervalID", null);
5127
+ T(this, "_transparentMat", new M.MeshBasicMaterial({
5111
5128
  transparent: !0,
5112
5129
  opacity: 0
5113
5130
  }));
5114
- _(this, "handleWorkerMessage", async (t) => {
5131
+ T(this, "handleWorkerMessage", async (t) => {
5115
5132
  if (this.isProcessing)
5116
5133
  return;
5117
5134
  const e = t.data.colors;
@@ -5234,12 +5251,12 @@ const ws = class ws extends St {
5234
5251
  /**
5235
5252
  * An event that is triggered when the Cullers component is disposed.
5236
5253
  */
5237
- _(this, "onDisposed", new Q());
5238
- _(this, "_enabled", !0);
5254
+ T(this, "onDisposed", new j());
5255
+ T(this, "_enabled", !0);
5239
5256
  /**
5240
5257
  * A map of MeshCullerRenderer instances, keyed by their world UUIDs.
5241
5258
  */
5242
- _(this, "list", /* @__PURE__ */ new Map());
5259
+ T(this, "list", /* @__PURE__ */ new Map());
5243
5260
  t.add(ws.uuid, this);
5244
5261
  }
5245
5262
  /** {@link Component.enabled} */
@@ -5302,66 +5319,66 @@ const ws = class ws extends St {
5302
5319
  * A unique identifier for the component.
5303
5320
  * This UUID is used to register the component within the Components system.
5304
5321
  */
5305
- _(ws, "uuid", "69f2a50d-c266-44fc-b1bd-fa4d34be89e6");
5322
+ T(ws, "uuid", "69f2a50d-c266-44fc-b1bd-fa4d34be89e6");
5306
5323
  let cn = ws;
5307
5324
  class Ya {
5308
5325
  constructor(s, t) {
5309
5326
  /** {@link Disposable.onDisposed} */
5310
- _(this, "onDisposed", new Q());
5327
+ T(this, "onDisposed", new j());
5311
5328
  /**
5312
5329
  * Fires after making the visibility check to the meshes. It lists the
5313
5330
  * meshes that are currently visible, and the ones that were visible
5314
5331
  * just before but not anymore.
5315
5332
  */
5316
- _(this, "onDistanceComputed", new Q());
5333
+ T(this, "onDistanceComputed", new j());
5317
5334
  /**
5318
5335
  * Objects that won't be taken into account in the distance check.
5319
5336
  */
5320
- _(this, "excludedObjects", /* @__PURE__ */ new Set());
5337
+ T(this, "excludedObjects", /* @__PURE__ */ new Set());
5321
5338
  /**
5322
5339
  * Whether this renderer is active or not. If not, it won't render anything.
5323
5340
  */
5324
- _(this, "enabled", !0);
5341
+ T(this, "enabled", !0);
5325
5342
  /**
5326
5343
  * Render the internal scene used to determine the object visibility. Used
5327
5344
  * for debugging purposes.
5328
5345
  */
5329
- _(this, "renderDebugFrame", !1);
5346
+ T(this, "renderDebugFrame", !1);
5330
5347
  /** The components instance to which this renderer belongs. */
5331
- _(this, "components");
5348
+ T(this, "components");
5332
5349
  /**
5333
5350
  * The scene where the distance is computed.
5334
5351
  */
5335
- _(this, "scene", new M.Scene());
5352
+ T(this, "scene", new M.Scene());
5336
5353
  /**
5337
5354
  * The camera used to compute the distance.
5338
5355
  */
5339
- _(this, "camera", new M.OrthographicCamera(-1, 1, 1, -1, 0, 1));
5356
+ T(this, "camera", new M.OrthographicCamera(-1, 1, 1, -1, 0, 1));
5340
5357
  /**
5341
5358
  * The material used to compute the distance.
5342
5359
  */
5343
- _(this, "depthMaterial");
5360
+ T(this, "depthMaterial");
5344
5361
  /** The world instance to which this renderer belongs. */
5345
- _(this, "world");
5362
+ T(this, "world");
5346
5363
  /** The THREE.js renderer used to make the visibility test. */
5347
- _(this, "renderer");
5348
- _(this, "worker");
5349
- _(this, "_width", 512);
5350
- _(this, "_height", 512);
5351
- _(this, "_postQuad");
5352
- _(this, "tempRT");
5353
- _(this, "resultRT");
5354
- _(this, "bufferSize");
5355
- _(this, "_buffer");
5364
+ T(this, "renderer");
5365
+ T(this, "worker");
5366
+ T(this, "_width", 512);
5367
+ T(this, "_height", 512);
5368
+ T(this, "_postQuad");
5369
+ T(this, "tempRT");
5370
+ T(this, "resultRT");
5371
+ T(this, "bufferSize");
5372
+ T(this, "_buffer");
5356
5373
  // Prevents worker being fired multiple times
5357
- _(this, "_isWorkerBusy", !1);
5374
+ T(this, "_isWorkerBusy", !1);
5358
5375
  /**
5359
5376
  * The function that the culler uses to reprocess the scene. Generally it's
5360
5377
  * better to call needsUpdate, but you can also call this to force it.
5361
5378
  * @param force if true, it will refresh the scene even if needsUpdate is
5362
5379
  * not true.
5363
5380
  */
5364
- _(this, "compute", async () => {
5381
+ T(this, "compute", async () => {
5365
5382
  if (!this.enabled || this.world.isDisposing || this._isWorkerBusy)
5366
5383
  return;
5367
5384
  this._isWorkerBusy = !0, this.world.camera.three.updateMatrix(), this.renderer.setSize(this._width, this._height), this.renderer.setRenderTarget(this.tempRT);
@@ -5392,7 +5409,7 @@ class Ya {
5392
5409
  buffer: this._buffer
5393
5410
  });
5394
5411
  });
5395
- _(this, "handleWorkerMessage", (s) => {
5412
+ T(this, "handleWorkerMessage", (s) => {
5396
5413
  if (!this.enabled || this.world.isDisposing)
5397
5414
  return;
5398
5415
  const t = s.data.colors;
@@ -5477,16 +5494,16 @@ void main() {
5477
5494
  class Dl extends Ma {
5478
5495
  constructor() {
5479
5496
  super(...arguments);
5480
- _(this, "_distanceRenderer");
5497
+ T(this, "_distanceRenderer");
5481
5498
  /**
5482
5499
  * Whether the bias property should be set automatically depending on the shadow distance.
5483
5500
  */
5484
- _(this, "autoBias", !0);
5501
+ T(this, "autoBias", !0);
5485
5502
  /**
5486
5503
  * Configuration interface for the {@link ShadowedScene}.
5487
5504
  * Defines properties for directional and ambient lights, as well as shadows.
5488
5505
  */
5489
- _(this, "config", {
5506
+ T(this, "config", {
5490
5507
  directionalLight: {
5491
5508
  color: new M.Color("white"),
5492
5509
  intensity: 1.5,
@@ -5501,11 +5518,11 @@ class Dl extends Ma {
5501
5518
  resolution: 512
5502
5519
  }
5503
5520
  });
5504
- _(this, "_lightsWithShadow", /* @__PURE__ */ new Map());
5505
- _(this, "_isComputingShadows", !1);
5506
- _(this, "_shadowsEnabled", !0);
5507
- _(this, "_bias", 0);
5508
- _(this, "recomputeShadows", (t) => {
5521
+ T(this, "_lightsWithShadow", /* @__PURE__ */ new Map());
5522
+ T(this, "_isComputingShadows", !1);
5523
+ T(this, "_shadowsEnabled", !0);
5524
+ T(this, "_bias", 0);
5525
+ T(this, "recomputeShadows", (t) => {
5509
5526
  if (!this._shadowsEnabled)
5510
5527
  return;
5511
5528
  if (this.autoBias && (this.bias = t / -1e5), t *= 1.5, !this.currentWorld)
@@ -5610,11 +5627,11 @@ class Dl extends Ma {
5610
5627
  }
5611
5628
  class Ga {
5612
5629
  constructor(s) {
5613
- _(this, "_event");
5614
- _(this, "_position", new M.Vector2());
5630
+ T(this, "_event");
5631
+ T(this, "_position", new M.Vector2());
5615
5632
  /** {@link Disposable.onDisposed} */
5616
- _(this, "onDisposed", new Q());
5617
- _(this, "updateMouseInfo", (s) => {
5633
+ T(this, "onDisposed", new j());
5634
+ T(this, "updateMouseInfo", (s) => {
5618
5635
  this._event = s;
5619
5636
  });
5620
5637
  this.dom = s, this.setupEvents(!0);
@@ -5646,23 +5663,23 @@ class Ga {
5646
5663
  class Ha {
5647
5664
  constructor(s, t) {
5648
5665
  /** {@link Component.enabled} */
5649
- _(this, "enabled", !0);
5666
+ T(this, "enabled", !0);
5650
5667
  /** The components instance to which this Raycaster belongs. */
5651
- _(this, "components");
5668
+ T(this, "components");
5652
5669
  /** {@link Disposable.onDisposed} */
5653
- _(this, "onDisposed", new Q());
5670
+ T(this, "onDisposed", new j());
5654
5671
  /** The position of the mouse in the screen. */
5655
- _(this, "mouse");
5672
+ T(this, "mouse");
5656
5673
  /**
5657
5674
  * A reference to the Three.js Raycaster instance.
5658
5675
  * This is used for raycasting operations.
5659
5676
  */
5660
- _(this, "three", new M.Raycaster());
5677
+ T(this, "three", new M.Raycaster());
5661
5678
  /**
5662
5679
  * A reference to the world instance to which this Raycaster belongs.
5663
5680
  * This is used to access the camera and meshes.
5664
5681
  */
5665
- _(this, "world");
5682
+ T(this, "world");
5666
5683
  const e = t.renderer;
5667
5684
  if (!e)
5668
5685
  throw new Error("A renderer is needed for the raycaster to work!");
@@ -5719,14 +5736,14 @@ const pi = class pi extends St {
5719
5736
  constructor(t) {
5720
5737
  super(t);
5721
5738
  /** {@link Component.enabled} */
5722
- _(this, "enabled", !0);
5739
+ T(this, "enabled", !0);
5723
5740
  /**
5724
5741
  * A Map that stores raycasters for each world.
5725
5742
  * The key is the world's UUID, and the value is the corresponding SimpleRaycaster instance.
5726
5743
  */
5727
- _(this, "list", /* @__PURE__ */ new Map());
5744
+ T(this, "list", /* @__PURE__ */ new Map());
5728
5745
  /** {@link Disposable.onDisposed} */
5729
- _(this, "onDisposed", new Q());
5746
+ T(this, "onDisposed", new j());
5730
5747
  t.add(pi.uuid, this);
5731
5748
  }
5732
5749
  /**
@@ -5767,20 +5784,20 @@ const pi = class pi extends St {
5767
5784
  * A unique identifier for the component.
5768
5785
  * This UUID is used to register the component within the Components system.
5769
5786
  */
5770
- _(pi, "uuid", "d5d8bdf0-db25-4952-b951-b643af207ace");
5787
+ T(pi, "uuid", "d5d8bdf0-db25-4952-b951-b643af207ace");
5771
5788
  let ts = pi;
5772
5789
  class Wa {
5773
5790
  constructor(s, t, e) {
5774
5791
  /** {@link Disposable.onDisposed} */
5775
- _(this, "onDisposed", new Q());
5792
+ T(this, "onDisposed", new j());
5776
5793
  /** The world instance to which this Raycaster belongs. */
5777
- _(this, "world");
5794
+ T(this, "world");
5778
5795
  /** The components instance to which this grid belongs. */
5779
- _(this, "components");
5796
+ T(this, "components");
5780
5797
  /** The Three.js mesh that contains the infinite grid. */
5781
- _(this, "three");
5782
- _(this, "_fade", 3);
5783
- _(this, "updateZoom", () => {
5798
+ T(this, "three");
5799
+ T(this, "_fade", 3);
5800
+ T(this, "updateZoom", () => {
5784
5801
  this.world.camera instanceof Ns && (this.material.uniforms.uZoom.value = this.world.camera.three.zoom);
5785
5802
  });
5786
5803
  this.world = t;
@@ -5921,20 +5938,20 @@ const Ei = class Ei extends St {
5921
5938
  /**
5922
5939
  * A map of world UUIDs to their corresponding grid instances.
5923
5940
  */
5924
- _(this, "list", /* @__PURE__ */ new Map());
5941
+ T(this, "list", /* @__PURE__ */ new Map());
5925
5942
  /**
5926
5943
  * The default configuration for grid creation.
5927
5944
  */
5928
- _(this, "config", {
5945
+ T(this, "config", {
5929
5946
  color: new M.Color(12303291),
5930
5947
  size1: 1,
5931
5948
  size2: 10,
5932
5949
  distance: 500
5933
5950
  });
5934
5951
  /** {@link Disposable.onDisposed} */
5935
- _(this, "onDisposed", new Q());
5952
+ T(this, "onDisposed", new j());
5936
5953
  /** {@link Component.enabled} */
5937
- _(this, "enabled", !0);
5954
+ T(this, "enabled", !0);
5938
5955
  t.add(Ei.uuid, this);
5939
5956
  }
5940
5957
  /**
@@ -5979,7 +5996,7 @@ const Ei = class Ei extends St {
5979
5996
  * A unique identifier for the component.
5980
5997
  * This UUID is used to register the component within the Components system.
5981
5998
  */
5982
- _(Ei, "uuid", "d1e814d5-b81c-4452-87a2-f039375e0489");
5999
+ T(Ei, "uuid", "d1e814d5-b81c-4452-87a2-f039375e0489");
5983
6000
  let hr = Ei;
5984
6001
  const be = new ao(), xt = new q(), Ce = new q(), yt = new le(), dr = {
5985
6002
  X: new q(1, 0, 0),
@@ -6185,8 +6202,8 @@ class Ka extends Qi {
6185
6202
  m.setAttribute("position", new Mn([0, 0, 0, 1, 0, 0], 3));
6186
6203
  const C = new zt(75e-4, 75e-4, 0.5, 3);
6187
6204
  C.translate(0, 0.25, 0);
6188
- function R(v, j) {
6189
- const V = new rs(v, 75e-4, 3, 64, j * Math.PI * 2);
6205
+ function R(v, Q) {
6206
+ const V = new rs(v, 75e-4, 3, 64, Q * Math.PI * 2);
6190
6207
  return V.rotateY(Math.PI / 2), V.rotateX(Math.PI / 2), V;
6191
6208
  }
6192
6209
  function g() {
@@ -6365,18 +6382,18 @@ class Ka extends Qi {
6365
6382
  [new Ie(m, i.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
6366
6383
  ]
6367
6384
  };
6368
- function T(v) {
6369
- const j = new Qi();
6385
+ function _(v) {
6386
+ const Q = new Qi();
6370
6387
  for (const V in v)
6371
6388
  for (let et = v[V].length; et--; ) {
6372
6389
  const H = v[V][et][0].clone(), nt = v[V][et][1], z = v[V][et][2], U = v[V][et][3], ot = v[V][et][4];
6373
6390
  H.name = V, H.tag = ot, nt && H.position.set(nt[0], nt[1], nt[2]), z && H.rotation.set(z[0], z[1], z[2]), U && H.scale.set(U[0], U[1], U[2]), H.updateMatrix();
6374
6391
  const st = H.geometry.clone();
6375
- st.applyMatrix4(H.matrix), H.geometry = st, H.renderOrder = 1 / 0, H.position.set(0, 0, 0), H.rotation.set(0, 0, 0), H.scale.set(1, 1, 1), j.add(H);
6392
+ st.applyMatrix4(H.matrix), H.geometry = st, H.renderOrder = 1 / 0, H.position.set(0, 0, 0), H.rotation.set(0, 0, 0), H.scale.set(1, 1, 1), Q.add(H);
6376
6393
  }
6377
- return j;
6394
+ return Q;
6378
6395
  }
6379
- this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = T(y)), this.add(this.gizmo.rotate = T(L)), this.add(this.gizmo.scale = T(k)), this.add(this.picker.translate = T(F)), this.add(this.picker.rotate = T(x)), this.add(this.picker.scale = T(w)), this.add(this.helper.translate = T(S)), this.add(this.helper.rotate = T(N)), this.add(this.helper.scale = T(P)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
6396
+ this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = _(y)), this.add(this.gizmo.rotate = _(L)), this.add(this.gizmo.scale = _(k)), this.add(this.picker.translate = _(F)), this.add(this.picker.rotate = _(x)), this.add(this.picker.scale = _(w)), this.add(this.helper.translate = _(S)), this.add(this.helper.rotate = _(N)), this.add(this.helper.scale = _(P)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
6380
6397
  }
6381
6398
  // updateMatrixWorld will update transformations and appearance of individual handles
6382
6399
  updateMatrixWorld(s) {
@@ -6446,47 +6463,47 @@ class Ja extends rt {
6446
6463
  class yn {
6447
6464
  constructor(s, t, e, i, n, r = 5, o = !0) {
6448
6465
  /** Event that fires when the user starts dragging a clipping plane. */
6449
- _(this, "onDraggingStarted", new Q());
6466
+ T(this, "onDraggingStarted", new j());
6450
6467
  /** Event that fires when the user stops dragging a clipping plane. */
6451
- _(this, "onDraggingEnded", new Q());
6468
+ T(this, "onDraggingEnded", new j());
6452
6469
  /** {@link Disposable.onDisposed} */
6453
- _(this, "onDisposed", new Q());
6470
+ T(this, "onDisposed", new j());
6454
6471
  /**
6455
6472
  * The normal vector of the clipping plane.
6456
6473
  */
6457
- _(this, "normal");
6474
+ T(this, "normal");
6458
6475
  /**
6459
6476
  * The origin point of the clipping plane.
6460
6477
  */
6461
- _(this, "origin");
6478
+ T(this, "origin");
6462
6479
  /**
6463
6480
  * The THREE.js Plane object representing the clipping plane.
6464
6481
  */
6465
- _(this, "three", new M.Plane());
6482
+ T(this, "three", new M.Plane());
6466
6483
  /** The components instance to which this plane belongs. */
6467
- _(this, "components");
6484
+ T(this, "components");
6468
6485
  /** The world instance to which this plane belongs. */
6469
- _(this, "world");
6486
+ T(this, "world");
6470
6487
  /** A custom string to identify what this plane is used for. */
6471
- _(this, "type", "default");
6472
- _(this, "_helper");
6473
- _(this, "_visible", !0);
6474
- _(this, "_enabled", !0);
6475
- _(this, "_controlsActive", !1);
6476
- _(this, "_arrowBoundBox", new M.Mesh());
6477
- _(this, "_planeMesh");
6478
- _(this, "_controls");
6479
- _(this, "_hiddenMaterial", new M.MeshBasicMaterial({
6488
+ T(this, "type", "default");
6489
+ T(this, "_helper");
6490
+ T(this, "_visible", !0);
6491
+ T(this, "_enabled", !0);
6492
+ T(this, "_controlsActive", !1);
6493
+ T(this, "_arrowBoundBox", new M.Mesh());
6494
+ T(this, "_planeMesh");
6495
+ T(this, "_controls");
6496
+ T(this, "_hiddenMaterial", new M.MeshBasicMaterial({
6480
6497
  visible: !1
6481
6498
  }));
6482
6499
  /** {@link Updateable.update} */
6483
- _(this, "update", () => {
6500
+ T(this, "update", () => {
6484
6501
  this._enabled && this.three.setFromNormalAndCoplanarPoint(
6485
6502
  this.normal,
6486
6503
  this._helper.position
6487
6504
  );
6488
6505
  });
6489
- _(this, "changeDrag", (s) => {
6506
+ T(this, "changeDrag", (s) => {
6490
6507
  this._visible = !s.value, this.preventCameraMovement(), this.notifyDraggingChanged(s);
6491
6508
  });
6492
6509
  if (this.components = s, this.world = t, !t.renderer)
@@ -6609,73 +6626,73 @@ const Fs = class Fs extends St {
6609
6626
  constructor(t) {
6610
6627
  super(t);
6611
6628
  /** Event that fires when the user starts dragging a clipping plane. */
6612
- _(this, "onBeforeDrag", new Q());
6629
+ T(this, "onBeforeDrag", new j());
6613
6630
  /** Event that fires when the user stops dragging a clipping plane. */
6614
- _(this, "onAfterDrag", new Q());
6631
+ T(this, "onAfterDrag", new j());
6615
6632
  /**
6616
6633
  * Event that fires when the user starts creating a clipping plane.
6617
6634
  */
6618
- _(this, "onBeforeCreate", new Q());
6635
+ T(this, "onBeforeCreate", new j());
6619
6636
  /**
6620
6637
  * Event that fires when the user cancels the creation of a clipping plane.
6621
6638
  */
6622
- _(this, "onBeforeCancel", new Q());
6639
+ T(this, "onBeforeCancel", new j());
6623
6640
  /**
6624
6641
  * Event that fires after the user cancels the creation of a clipping plane.
6625
6642
  */
6626
- _(this, "onAfterCancel", new Q());
6643
+ T(this, "onAfterCancel", new j());
6627
6644
  /**
6628
6645
  * Event that fires when the user starts deleting a clipping plane.
6629
6646
  */
6630
- _(this, "onBeforeDelete", new Q());
6647
+ T(this, "onBeforeDelete", new j());
6631
6648
  /**
6632
6649
  * Event that fires after a clipping plane has been created.
6633
6650
  * @param plane - The newly created clipping plane.
6634
6651
  */
6635
- _(this, "onAfterCreate", new Q());
6652
+ T(this, "onAfterCreate", new j());
6636
6653
  /**
6637
6654
  * Event that fires after a clipping plane has been deleted.
6638
6655
  * @param plane - The deleted clipping plane.
6639
6656
  */
6640
- _(this, "onAfterDelete", new Q());
6657
+ T(this, "onAfterDelete", new j());
6641
6658
  /** {@link Disposable.onDisposed} */
6642
- _(this, "onDisposed", new Q());
6659
+ T(this, "onDisposed", new j());
6643
6660
  /**
6644
6661
  * Whether to force the clipping plane to be orthogonal in the Y direction
6645
6662
  * (up). This is desirable when clipping a building horizontally and a
6646
6663
  * clipping plane is created in its roof, which might have a slight
6647
6664
  * slope for draining purposes.
6648
6665
  */
6649
- _(this, "orthogonalY", !1);
6666
+ T(this, "orthogonalY", !1);
6650
6667
  /**
6651
6668
  * The tolerance that determines whether an almost-horizontal clipping plane
6652
6669
  * will be forced to be orthogonal to the Y direction. {@link orthogonalY}
6653
6670
  * has to be `true` for this to apply.
6654
6671
  */
6655
- _(this, "toleranceOrthogonalY", 0.7);
6672
+ T(this, "toleranceOrthogonalY", 0.7);
6656
6673
  /**
6657
6674
  * The type of clipping plane to be created.
6658
6675
  * Default is {@link SimplePlane}.
6659
6676
  */
6660
- _(this, "Type", yn);
6677
+ T(this, "Type", yn);
6661
6678
  /**
6662
6679
  * A list of all the clipping planes created by this component.
6663
6680
  */
6664
- _(this, "list", []);
6681
+ T(this, "list", []);
6665
6682
  /** The material used in all the clipping planes. */
6666
- _(this, "_material", new M.MeshBasicMaterial({
6683
+ T(this, "_material", new M.MeshBasicMaterial({
6667
6684
  color: 12255487,
6668
6685
  side: M.DoubleSide,
6669
6686
  transparent: !0,
6670
6687
  opacity: 0.2
6671
6688
  }));
6672
- _(this, "_size", 5);
6673
- _(this, "_enabled", !1);
6674
- _(this, "_visible", !0);
6675
- _(this, "_onStartDragging", () => {
6689
+ T(this, "_size", 5);
6690
+ T(this, "_enabled", !1);
6691
+ T(this, "_visible", !0);
6692
+ T(this, "_onStartDragging", () => {
6676
6693
  this.onBeforeDrag.trigger();
6677
6694
  });
6678
- _(this, "_onEndDragging", () => {
6695
+ T(this, "_onEndDragging", () => {
6679
6696
  this.onAfterDrag.trigger();
6680
6697
  });
6681
6698
  this.components.add(Fs.uuid, this);
@@ -6845,14 +6862,14 @@ const Fs = class Fs extends St {
6845
6862
  * A unique identifier for the component.
6846
6863
  * This UUID is used to register the component within the Components system.
6847
6864
  */
6848
- _(Fs, "uuid", "66290bc5-18c4-4cd1-9379-2e17a0617611");
6865
+ T(Fs, "uuid", "66290bc5-18c4-4cd1-9379-2e17a0617611");
6849
6866
  let ln = Fs;
6850
6867
  class tc {
6851
6868
  constructor(s) {
6852
6869
  /** {@link NavigationMode.enabled} */
6853
- _(this, "enabled", !1);
6870
+ T(this, "enabled", !1);
6854
6871
  /** {@link NavigationMode.id} */
6855
- _(this, "id", "FirstPerson");
6872
+ T(this, "id", "FirstPerson");
6856
6873
  this.camera = s;
6857
6874
  }
6858
6875
  /** {@link NavigationMode.set} */
@@ -6877,9 +6894,9 @@ class tc {
6877
6894
  class ec {
6878
6895
  constructor(s) {
6879
6896
  /** {@link NavigationMode.enabled} */
6880
- _(this, "enabled", !0);
6897
+ T(this, "enabled", !0);
6881
6898
  /** {@link NavigationMode.id} */
6882
- _(this, "id", "Orbit");
6899
+ T(this, "id", "Orbit");
6883
6900
  this.camera = s, this.activateOrbitControls();
6884
6901
  }
6885
6902
  /** {@link NavigationMode.set} */
@@ -6900,14 +6917,14 @@ class ec {
6900
6917
  class sc {
6901
6918
  constructor(s) {
6902
6919
  /** {@link NavigationMode.enabled} */
6903
- _(this, "enabled", !1);
6920
+ T(this, "enabled", !1);
6904
6921
  /** {@link NavigationMode.id} */
6905
- _(this, "id", "Plan");
6906
- _(this, "mouseAction1");
6907
- _(this, "mouseAction2");
6908
- _(this, "mouseInitialized", !1);
6909
- _(this, "defaultAzimuthSpeed");
6910
- _(this, "defaultPolarSpeed");
6922
+ T(this, "id", "Plan");
6923
+ T(this, "mouseAction1");
6924
+ T(this, "mouseAction2");
6925
+ T(this, "mouseInitialized", !1);
6926
+ T(this, "defaultAzimuthSpeed");
6927
+ T(this, "defaultPolarSpeed");
6911
6928
  this.camera = s, this.defaultAzimuthSpeed = s.controls.azimuthRotateSpeed, this.defaultPolarSpeed = s.controls.polarRotateSpeed;
6912
6929
  }
6913
6930
  /** {@link NavigationMode.set} */
@@ -6922,21 +6939,21 @@ class ic {
6922
6939
  /**
6923
6940
  * Event that fires when the {@link CameraProjection} changes.
6924
6941
  */
6925
- _(this, "onChanged", new Q());
6942
+ T(this, "onChanged", new j());
6926
6943
  /**
6927
6944
  * Current projection mode of the camera.
6928
6945
  * Default is "Perspective".
6929
6946
  */
6930
- _(this, "current", "Perspective");
6947
+ T(this, "current", "Perspective");
6931
6948
  /**
6932
6949
  * The camera controlled by this ProjectionManager.
6933
6950
  * It can be either a PerspectiveCamera or an OrthographicCamera.
6934
6951
  */
6935
- _(this, "camera");
6952
+ T(this, "camera");
6936
6953
  /** Match Ortho zoom with Perspective distance when changing projection mode */
6937
- _(this, "matchOrthoDistanceEnabled", !1);
6938
- _(this, "_component");
6939
- _(this, "_previousDistance", -1);
6954
+ T(this, "matchOrthoDistanceEnabled", !1);
6955
+ T(this, "_component");
6956
+ T(this, "_previousDistance", -1);
6940
6957
  this._component = s, this.camera = s.three;
6941
6958
  }
6942
6959
  /**
@@ -6998,22 +7015,22 @@ class nc extends Ns {
6998
7015
  /**
6999
7016
  * A ProjectionManager instance that manages the projection modes of the camera.
7000
7017
  */
7001
- _(this, "projection");
7018
+ T(this, "projection");
7002
7019
  /**
7003
7020
  * A THREE.OrthographicCamera instance that represents the orthographic camera.
7004
7021
  * This camera is used when the projection mode is set to orthographic.
7005
7022
  */
7006
- _(this, "threeOrtho");
7023
+ T(this, "threeOrtho");
7007
7024
  /**
7008
7025
  * A THREE.PerspectiveCamera instance that represents the perspective camera.
7009
7026
  * This camera is used when the projection mode is set to perspective.
7010
7027
  */
7011
- _(this, "threePersp");
7012
- _(this, "_userInputButtons", {});
7013
- _(this, "_frustumSize", 50);
7014
- _(this, "_navigationModes", /* @__PURE__ */ new Map());
7015
- _(this, "_mode", null);
7016
- _(this, "previousSize", null);
7028
+ T(this, "threePersp");
7029
+ T(this, "_userInputButtons", {});
7030
+ T(this, "_frustumSize", 50);
7031
+ T(this, "_navigationModes", /* @__PURE__ */ new Map());
7032
+ T(this, "_mode", null);
7033
+ T(this, "previousSize", null);
7017
7034
  this.threePersp = this.three, this.threeOrtho = this.newOrthoCamera(), this.projection = new ic(this), this.onAspectUpdated.add(() => {
7018
7035
  this.setOrthoPerspCameraAspect();
7019
7036
  }), this.projection.onChanged.add(
@@ -8642,8 +8659,8 @@ class Ke {
8642
8659
  }
8643
8660
  class oc {
8644
8661
  constructor() {
8645
- _(this, "factor", 1);
8646
- _(this, "complement", 1);
8662
+ T(this, "factor", 1);
8663
+ T(this, "complement", 1);
8647
8664
  }
8648
8665
  apply(s) {
8649
8666
  const e = this.getScaleMatrix().multiply(s);
@@ -8700,8 +8717,8 @@ class oc {
8700
8717
  }
8701
8718
  class kr {
8702
8719
  constructor() {
8703
- _(this, "itemsByFloor", {});
8704
- _(this, "_units", new oc());
8720
+ T(this, "itemsByFloor", {});
8721
+ T(this, "_units", new oc());
8705
8722
  }
8706
8723
  // TODO: Maybe make this more flexible so that it also support more exotic spatial structures?
8707
8724
  setUp(s) {
@@ -8771,28 +8788,28 @@ class kr {
8771
8788
  class wn {
8772
8789
  constructor() {
8773
8790
  /** Whether to extract the IFC properties into a JSON. */
8774
- _(this, "includeProperties", !0);
8791
+ T(this, "includeProperties", !0);
8775
8792
  /**
8776
8793
  * Generate the geometry for categories that are not included by default,
8777
8794
  * like IFCSPACE.
8778
8795
  */
8779
- _(this, "optionalCategories", [X.IFCSPACE]);
8796
+ T(this, "optionalCategories", [X.IFCSPACE]);
8780
8797
  /** Whether to use the coordination data coming from the IFC files. */
8781
- _(this, "coordinate", !0);
8798
+ T(this, "coordinate", !0);
8782
8799
  /** Path of the WASM for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
8783
- _(this, "wasm", {
8800
+ T(this, "wasm", {
8784
8801
  path: "",
8785
8802
  absolute: !1,
8786
8803
  logLevel: X.LogLevel.LOG_LEVEL_OFF
8787
8804
  });
8788
8805
  /** List of categories that won't be converted to fragments. */
8789
- _(this, "excludedCategories", /* @__PURE__ */ new Set());
8806
+ T(this, "excludedCategories", /* @__PURE__ */ new Set());
8790
8807
  /** Exclusive list of categories that will be converted to fragments. If this contains any category, any other categories will be ignored. */
8791
- _(this, "includedCategories", /* @__PURE__ */ new Set());
8808
+ T(this, "includedCategories", /* @__PURE__ */ new Set());
8792
8809
  /** Whether to save the absolute location of all IFC items. */
8793
- _(this, "saveLocations", !1);
8810
+ T(this, "saveLocations", !1);
8794
8811
  /** Loader settings for [web-ifc](https://github.com/ThatOpen/engine_web-ifc). */
8795
- _(this, "webIfc", {
8812
+ T(this, "webIfc", {
8796
8813
  COORDINATE_TO_ORIGIN: !0
8797
8814
  // OPTIMIZE_PROFILES: true,
8798
8815
  });
@@ -8802,7 +8819,7 @@ class wn {
8802
8819
  * If set to false, the path must be provided manually in the `wasm.path` property.
8803
8820
  * Default value is true.
8804
8821
  */
8805
- _(this, "autoSetWasm", !0);
8822
+ T(this, "autoSetWasm", !0);
8806
8823
  /**
8807
8824
  * Custom function to handle the file location for [web-ifc](https://github.com/ThatOpen/engine_web-ifc).
8808
8825
  * This function will be called when [web-ifc](https://github.com/ThatOpen/engine_web-ifc) needs to locate a file.
@@ -8811,12 +8828,12 @@ class wn {
8811
8828
  * @param url - The URL of the file to locate.
8812
8829
  * @returns The absolute path of the file.
8813
8830
  */
8814
- _(this, "customLocateFileHandler", null);
8831
+ T(this, "customLocateFileHandler", null);
8815
8832
  }
8816
8833
  }
8817
8834
  class Vr {
8818
8835
  constructor() {
8819
- _(this, "defLineMat", new M.LineBasicMaterial({ color: 16777215 }));
8836
+ T(this, "defLineMat", new M.LineBasicMaterial({ color: 16777215 }));
8820
8837
  }
8821
8838
  read(s) {
8822
8839
  const t = s.GetAllAlignments(0), e = s.GetAllCrossSections2D(0), i = s.GetAllCrossSections3D(0), n = {
@@ -9059,7 +9076,7 @@ const Hr = /* @__PURE__ */ new Set([
9059
9076
  constructor(t) {
9060
9077
  super(t);
9061
9078
  /** {@link Component.enabled} */
9062
- _(this, "enabled", !0);
9079
+ T(this, "enabled", !0);
9063
9080
  t.add(mi.uuid, this);
9064
9081
  }
9065
9082
  /**
@@ -9096,39 +9113,39 @@ const Hr = /* @__PURE__ */ new Set([
9096
9113
  * A unique identifier for the component.
9097
9114
  * This UUID is used to register the component within the Components system.
9098
9115
  */
9099
- _(mi, "uuid", "b32c4332-cd67-436e-ba7f-196646c7a635");
9116
+ T(mi, "uuid", "b32c4332-cd67-436e-ba7f-196646c7a635");
9100
9117
  let hn = mi;
9101
9118
  const Ss = class Ss extends St {
9102
9119
  constructor(t) {
9103
9120
  super(t);
9104
9121
  /** {@link Disposable.onDisposed} */
9105
- _(this, "onDisposed", new Q());
9122
+ T(this, "onDisposed", new j());
9106
9123
  /**
9107
9124
  * An event triggered when the IFC file starts loading.
9108
9125
  */
9109
- _(this, "onIfcStartedLoading", new Q());
9126
+ T(this, "onIfcStartedLoading", new j());
9110
9127
  /**
9111
9128
  * An event triggered when the setup process is completed.
9112
9129
  */
9113
- _(this, "onSetup", new Q());
9130
+ T(this, "onSetup", new j());
9114
9131
  /**
9115
9132
  * The settings for the IfcLoader.
9116
9133
  * It includes options for excluding categories, setting WASM paths, and more.
9117
9134
  */
9118
- _(this, "settings", new wn());
9135
+ T(this, "settings", new wn());
9119
9136
  /**
9120
9137
  * The instance of the Web-IFC library used for handling IFC data.
9121
9138
  */
9122
- _(this, "webIfc", new X.IfcAPI());
9139
+ T(this, "webIfc", new X.IfcAPI());
9123
9140
  /** {@link Component.enabled} */
9124
- _(this, "enabled", !0);
9125
- _(this, "_material", new M.MeshLambertMaterial());
9126
- _(this, "_spatialTree", new kr());
9127
- _(this, "_metaData", new Yr());
9128
- _(this, "_fragmentInstances", /* @__PURE__ */ new Map());
9129
- _(this, "_civil", new Vr());
9130
- _(this, "_visitedFragments", /* @__PURE__ */ new Map());
9131
- _(this, "_materialT", new M.MeshLambertMaterial({
9141
+ T(this, "enabled", !0);
9142
+ T(this, "_material", new M.MeshLambertMaterial());
9143
+ T(this, "_spatialTree", new kr());
9144
+ T(this, "_metaData", new Yr());
9145
+ T(this, "_fragmentInstances", /* @__PURE__ */ new Map());
9146
+ T(this, "_civil", new Vr());
9147
+ T(this, "_visitedFragments", /* @__PURE__ */ new Map());
9148
+ T(this, "_materialT", new M.MeshLambertMaterial({
9132
9149
  transparent: !0,
9133
9150
  opacity: 0.5
9134
9151
  }));
@@ -9173,24 +9190,26 @@ const Ss = class Ss extends St {
9173
9190
  * const group = await ifcLoader.load(ifcData);
9174
9191
  * ```
9175
9192
  */
9176
- async load(t, e = !0) {
9177
- const i = performance.now();
9193
+ async load(t, e = !0, i = "") {
9194
+ const n = performance.now();
9178
9195
  this.onIfcStartedLoading.trigger(), await this.readIfcFile(t);
9179
- const n = await this.getAllGeometries(), o = await this.components.get(hn).export(this.webIfc, 0);
9180
- n.setLocalProperties(o);
9181
- const a = this.components.get(_t);
9182
- a.groups.set(n.uuid, n);
9183
- for (const l of n.items)
9184
- a.list.set(l.id, l), l.mesh.uuid = l.id, l.group = n;
9185
- a.onFragmentsLoaded.trigger(n), e && a.coordinate([n]);
9186
- for (const [l] of n.data) {
9187
- const h = o[l];
9188
- if (!h || !h.GlobalId)
9196
+ const r = await this.getAllGeometries();
9197
+ r.name = i;
9198
+ const a = await this.components.get(hn).export(this.webIfc, 0);
9199
+ r.setLocalProperties(a);
9200
+ const l = this.components.get(_t);
9201
+ l.groups.set(r.uuid, r);
9202
+ for (const h of r.items)
9203
+ l.list.set(h.id, h), h.mesh.uuid = h.id, h.group = r;
9204
+ l.onFragmentsLoaded.trigger(r), e && l.coordinate([r]);
9205
+ for (const [h] of r.data) {
9206
+ const d = a[h];
9207
+ if (!d || !d.GlobalId)
9189
9208
  continue;
9190
- const d = h.GlobalId.value || h.GlobalId;
9191
- n.globalToExpressIDs.set(d, l);
9209
+ const u = d.GlobalId.value || d.GlobalId;
9210
+ r.globalToExpressIDs.set(u, h);
9192
9211
  }
9193
- return Gr.get(n, this.webIfc), this.cleanUp(), console.log(`Streaming the IFC took ${performance.now() - i} ms!`), n;
9212
+ return Gr.get(r, this.webIfc), this.cleanUp(), console.log(`Streaming the IFC took ${performance.now() - n} ms!`), r;
9194
9213
  }
9195
9214
  /**
9196
9215
  * Reads an IFC file and initializes the Web-IFC library.
@@ -9352,7 +9371,7 @@ const Ss = class Ss extends St {
9352
9371
  * A unique identifier for the component.
9353
9372
  * This UUID is used to register the component within the Components system.
9354
9373
  */
9355
- _(Ss, "uuid", "a659add7-1418-4771-a0d6-7d4d438e4624");
9374
+ T(Ss, "uuid", "a659add7-1418-4771-a0d6-7d4d438e4624");
9356
9375
  let dn = Ss;
9357
9376
  const ac = {
9358
9377
  // IfcRelAssigns
@@ -9402,52 +9421,52 @@ const ac = {
9402
9421
  constructor(t) {
9403
9422
  super(t);
9404
9423
  /** {@link Disposable.onDisposed} */
9405
- _(this, "onDisposed", new Q());
9424
+ T(this, "onDisposed", new j());
9406
9425
  /**
9407
9426
  * Event triggered when a file is requested for export.
9408
9427
  */
9409
- _(this, "onRequestFile", new Q());
9428
+ T(this, "onRequestFile", new j());
9410
9429
  /**
9411
9430
  * ArrayBuffer containing the IFC data to be exported.
9412
9431
  */
9413
- _(this, "ifcToExport", null);
9432
+ T(this, "ifcToExport", null);
9414
9433
  /**
9415
9434
  * Event triggered when an element is added to a Pset.
9416
9435
  */
9417
- _(this, "onElementToPset", new Q());
9436
+ T(this, "onElementToPset", new j());
9418
9437
  /**
9419
9438
  * Event triggered when a property is added to a Pset.
9420
9439
  */
9421
- _(this, "onPropToPset", new Q());
9440
+ T(this, "onPropToPset", new j());
9422
9441
  /**
9423
9442
  * Event triggered when a Pset is removed.
9424
9443
  */
9425
- _(this, "onPsetRemoved", new Q());
9444
+ T(this, "onPsetRemoved", new j());
9426
9445
  /**
9427
9446
  * Event triggered when data in the model changes.
9428
9447
  */
9429
- _(this, "onDataChanged", new Q());
9448
+ T(this, "onDataChanged", new j());
9430
9449
  /**
9431
9450
  * Configuration for the WebAssembly module.
9432
9451
  */
9433
- _(this, "wasm", {
9452
+ T(this, "wasm", {
9434
9453
  path: "/",
9435
9454
  absolute: !1
9436
9455
  });
9437
9456
  /** {@link Component.enabled} */
9438
- _(this, "enabled", !0);
9457
+ T(this, "enabled", !0);
9439
9458
  /**
9440
9459
  * Map of attribute listeners.
9441
9460
  */
9442
- _(this, "attributeListeners", {});
9461
+ T(this, "attributeListeners", {});
9443
9462
  /**
9444
9463
  * The currently selected model.
9445
9464
  */
9446
- _(this, "selectedModel");
9465
+ T(this, "selectedModel");
9447
9466
  /**
9448
9467
  * Map of changed entities in the model.
9449
9468
  */
9450
- _(this, "changeMap", {});
9469
+ T(this, "changeMap", {});
9451
9470
  this.components.add(Ae.uuid, this);
9452
9471
  }
9453
9472
  /** {@link Disposable.dispose} */
@@ -9742,7 +9761,7 @@ const ac = {
9742
9761
  const a = o.value;
9743
9762
  if (a === void 0 || a == null)
9744
9763
  throw new Error(`Attribute ${i} has a badly defined handle.`);
9745
- const l = new Q();
9764
+ const l = new j();
9746
9765
  return Object.defineProperty(r[i], "value", {
9747
9766
  get() {
9748
9767
  return this._value;
@@ -9787,13 +9806,13 @@ const ac = {
9787
9806
  * A unique identifier for the component.
9788
9807
  * This UUID is used to register the component within the Components system.
9789
9808
  */
9790
- _(Ae, "uuid", "58c2d9f0-183c-48d6-a402-dfcf5b9a34df");
9809
+ T(Ae, "uuid", "58c2d9f0-183c-48d6-a402-dfcf5b9a34df");
9791
9810
  let un = Ae;
9792
9811
  const Os = class Os extends St {
9793
9812
  constructor(t) {
9794
9813
  super(t);
9795
9814
  /** {@link Disposable.onDisposed} */
9796
- _(this, "onDisposed", new Q());
9815
+ T(this, "onDisposed", new j());
9797
9816
  /**
9798
9817
  * Event triggered when relations for a model have been indexed.
9799
9818
  * This event provides the model's UUID and the relations map generated for that model.
@@ -9802,7 +9821,7 @@ const Os = class Os extends St {
9802
9821
  * @property {RelationsMap} relationsMap - The relations map generated for the specified model.
9803
9822
  * The map keys are expressIDs of entities, and the values are maps where each key is a relation type ID and its value is an array of expressIDs of entities related through that relation type.
9804
9823
  */
9805
- _(this, "onRelationsIndexed", new Q());
9824
+ T(this, "onRelationsIndexed", new j());
9806
9825
  /**
9807
9826
  * Holds the relationship mappings for each model processed by the indexer.
9808
9827
  * The structure is a map where each key is a model's UUID, and the value is another map.
@@ -9811,11 +9830,11 @@ const Os = class Os extends St {
9811
9830
  * that are related through that relation type. This structure allows for efficient querying
9812
9831
  * of entity relationships within a model.
9813
9832
  */
9814
- _(this, "relationMaps", {});
9833
+ T(this, "relationMaps", {});
9815
9834
  /** {@link Component.enabled} */
9816
- _(this, "enabled", !0);
9817
- _(this, "_relToAttributesMap", gr);
9818
- _(this, "_inverseAttributes", [
9835
+ T(this, "enabled", !0);
9836
+ T(this, "_relToAttributesMap", gr);
9837
+ T(this, "_inverseAttributes", [
9819
9838
  "IsDecomposedBy",
9820
9839
  "Decomposes",
9821
9840
  "AssociatedTo",
@@ -9842,7 +9861,7 @@ const Os = class Os extends St {
9842
9861
  "Nests",
9843
9862
  "DocumentRefForObjects"
9844
9863
  ]);
9845
- _(this, "_ifcRels", [
9864
+ T(this, "_ifcRels", [
9846
9865
  X.IFCRELAGGREGATES,
9847
9866
  X.IFCRELASSOCIATESMATERIAL,
9848
9867
  X.IFCRELASSOCIATESCLASSIFICATION,
@@ -9859,17 +9878,17 @@ const Os = class Os extends St {
9859
9878
  X.IFCRELNESTS,
9860
9879
  X.IFCRELASSOCIATESDOCUMENT
9861
9880
  ]);
9862
- _(this, "onFragmentsDisposed", (t) => {
9881
+ T(this, "onFragmentsDisposed", (t) => {
9863
9882
  delete this.relationMaps[t.groupID];
9864
9883
  });
9865
9884
  // Use to create the corresponding IfcRelationship
9866
- _(this, "_changeMap", {});
9885
+ T(this, "_changeMap", {});
9867
9886
  /**
9868
9887
  * An event that is triggered when entities are related in a BIM model.
9869
9888
  * The event provides information about the type of relation, the inverse attribute,
9870
9889
  * the IDs of the entities related, and the IDs of the entities that are being related.
9871
9890
  */
9872
- _(this, "onEntitiesRelated", new Q());
9891
+ T(this, "onEntitiesRelated", new j());
9873
9892
  this.components.add(Os.uuid, this), t.get(_t).onFragmentsDisposed.add(this.onFragmentsDisposed);
9874
9893
  }
9875
9894
  indexRelations(t, e, i, n) {
@@ -10273,36 +10292,36 @@ const Os = class Os extends St {
10273
10292
  * A unique identifier for the component.
10274
10293
  * This UUID is used to register the component within the Components system.
10275
10294
  */
10276
- _(Os, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
10295
+ T(Os, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
10277
10296
  let xe = Os;
10278
10297
  const Ii = class Ii extends St {
10279
10298
  constructor(t) {
10280
10299
  super(t);
10281
10300
  /** {@link Disposable.onDisposed} */
10282
- _(this, "onDisposed", new Q());
10301
+ T(this, "onDisposed", new j());
10283
10302
  /**
10284
10303
  * Event triggered when fragments are loaded.
10285
10304
  */
10286
- _(this, "onFragmentsLoaded", new Q());
10305
+ T(this, "onFragmentsLoaded", new j());
10287
10306
  /**
10288
10307
  * Event triggered when fragments are disposed.
10289
10308
  */
10290
- _(this, "onFragmentsDisposed", new Q());
10309
+ T(this, "onFragmentsDisposed", new j());
10291
10310
  /**
10292
10311
  * DataMap containing all loaded fragments.
10293
10312
  * The key is the fragment's unique identifier, and the value is the fragment itself.
10294
10313
  */
10295
- _(this, "list", new Ee());
10314
+ T(this, "list", new Ee());
10296
10315
  /**
10297
10316
  * DataMap containing all loaded fragment groups.
10298
10317
  * The key is the group's unique identifier, and the value is the group itself.
10299
10318
  */
10300
- _(this, "groups", new Ee());
10301
- _(this, "baseCoordinationModel", "");
10302
- _(this, "baseCoordinationMatrix", new M.Matrix4());
10319
+ T(this, "groups", new Ee());
10320
+ T(this, "baseCoordinationModel", "");
10321
+ T(this, "baseCoordinationMatrix", new M.Matrix4());
10303
10322
  /** {@link Component.enabled} */
10304
- _(this, "enabled", !0);
10305
- _(this, "_loader", new fo());
10323
+ T(this, "enabled", !0);
10324
+ T(this, "_loader", new fo());
10306
10325
  this.components.add(Ii.uuid, this);
10307
10326
  }
10308
10327
  /**
@@ -10499,7 +10518,7 @@ const Ii = class Ii extends St {
10499
10518
  * A unique identifier for the component.
10500
10519
  * This UUID is used to register the component within the Components system.
10501
10520
  */
10502
- _(Ii, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
10521
+ T(Ii, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
10503
10522
  let _t = Ii;
10504
10523
  var ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
10505
10524
  function lc(c) {
@@ -10647,17 +10666,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
10647
10666
  return I;
10648
10667
  }
10649
10668
  function r(f, E, p, I, m, C) {
10650
- var R, g, y = f.file, F = f.compression, S = C !== l.utf8encode, L = o.transformTo("string", C(y.name)), N = o.transformTo("string", l.utf8encode(y.name)), x = y.comment, k = o.transformTo("string", C(x)), w = o.transformTo("string", l.utf8encode(x)), P = N.length !== y.name.length, T = w.length !== x.length, v = "", j = "", V = "", et = y.dir, H = y.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
10669
+ var R, g, y = f.file, F = f.compression, S = C !== l.utf8encode, L = o.transformTo("string", C(y.name)), N = o.transformTo("string", l.utf8encode(y.name)), x = y.comment, k = o.transformTo("string", C(x)), w = o.transformTo("string", l.utf8encode(x)), P = N.length !== y.name.length, _ = w.length !== x.length, v = "", Q = "", V = "", et = y.dir, H = y.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
10651
10670
  E && !p || (nt.crc32 = f.crc32, nt.compressedSize = f.compressedSize, nt.uncompressedSize = f.uncompressedSize);
10652
10671
  var z = 0;
10653
- E && (z |= 8), S || !P && !T || (z |= 2048);
10672
+ E && (z |= 8), S || !P && !_ || (z |= 2048);
10654
10673
  var U = 0, ot = 0;
10655
10674
  et && (U |= 16), m === "UNIX" ? (ot = 798, U |= function(tt, Rt) {
10656
10675
  var Ft = tt;
10657
10676
  return tt || (Ft = Rt ? 16893 : 33204), (65535 & Ft) << 16;
10658
10677
  }(y.unixPermissions, et)) : (ot = 20, U |= function(tt) {
10659
10678
  return 63 & (tt || 0);
10660
- }(y.dosPermissions)), R = H.getUTCHours(), R <<= 6, R |= H.getUTCMinutes(), R <<= 5, R |= H.getUTCSeconds() / 2, g = H.getUTCFullYear() - 1980, g <<= 4, g |= H.getUTCMonth() + 1, g <<= 5, g |= H.getUTCDate(), P && (j = n(1, 1) + n(h(L), 4) + N, v += "up" + n(j.length, 2) + j), T && (V = n(1, 1) + n(h(k), 4) + w, v += "uc" + n(V.length, 2) + V);
10679
+ }(y.dosPermissions)), R = H.getUTCHours(), R <<= 6, R |= H.getUTCMinutes(), R <<= 5, R |= H.getUTCSeconds() / 2, g = H.getUTCFullYear() - 1980, g <<= 4, g |= H.getUTCMonth() + 1, g <<= 5, g |= H.getUTCDate(), P && (Q = n(1, 1) + n(h(L), 4) + N, v += "up" + n(Q.length, 2) + Q), _ && (V = n(1, 1) + n(h(k), 4) + w, v += "uc" + n(V.length, 2) + V);
10661
10680
  var st = "";
10662
10681
  return st += `
10663
10682
  \0`, st += n(z, 2), st += F.magic, st += n(R, 2), st += n(g, 2), st += n(nt.crc32, 4), st += n(nt.compressedSize, 4), st += n(nt.uncompressedSize, 4), st += n(L.length, 2), st += n(v.length, 2), { fileRecord: d.LOCAL_FILE_HEADER + st + L + v, dirRecord: d.CENTRAL_FILE_HEADER + n(ot, 2) + st + n(k.length, 2) + "\0\0\0\0" + n(U, 4) + n(I, 4) + L + v + k };
@@ -12022,7 +12041,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12022
12041
  return -1 ^ r;
12023
12042
  };
12024
12043
  }, {}], 46: [function(t, e, i) {
12025
- var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), d = 0, u = 4, f = 0, E = -2, p = -1, I = 4, m = 2, C = 8, R = 9, g = 286, y = 30, F = 19, S = 2 * g + 1, L = 15, N = 3, x = 258, k = x + N + 1, w = 42, P = 113, T = 1, v = 2, j = 3, V = 4;
12044
+ var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), d = 0, u = 4, f = 0, E = -2, p = -1, I = 4, m = 2, C = 8, R = 9, g = 286, y = 30, F = 19, S = 2 * g + 1, L = 15, N = 3, x = 258, k = x + N + 1, w = 42, P = 113, _ = 1, v = 2, Q = 3, V = 4;
12026
12045
  function et(A, W) {
12027
12046
  return A.msg = h[W], W;
12028
12047
  }
@@ -12085,7 +12104,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12085
12104
  for (var Y, b; ; ) {
12086
12105
  if (A.lookahead < k) {
12087
12106
  if (Rt(A), A.lookahead < k && W === d)
12088
- return T;
12107
+ return _;
12089
12108
  if (A.lookahead === 0)
12090
12109
  break;
12091
12110
  }
@@ -12099,15 +12118,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12099
12118
  else
12100
12119
  b = o._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++;
12101
12120
  if (b && (U(A, !1), A.strm.avail_out === 0))
12102
- return T;
12121
+ return _;
12103
12122
  }
12104
- return A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? j : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? T : v;
12123
+ return A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? _ : v;
12105
12124
  }
12106
12125
  function at(A, W) {
12107
12126
  for (var Y, b, O; ; ) {
12108
12127
  if (A.lookahead < k) {
12109
12128
  if (Rt(A), A.lookahead < k && W === d)
12110
- return T;
12129
+ return _;
12111
12130
  if (A.lookahead === 0)
12112
12131
  break;
12113
12132
  }
@@ -12115,14 +12134,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12115
12134
  for (O = A.strstart + A.lookahead - N, b = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - N), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= O && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + N - 1]) & A.hash_mask, Y = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
12116
12135
  ;
12117
12136
  if (A.match_available = 0, A.match_length = N - 1, A.strstart++, b && (U(A, !1), A.strm.avail_out === 0))
12118
- return T;
12137
+ return _;
12119
12138
  } else if (A.match_available) {
12120
12139
  if ((b = o._tr_tally(A, 0, A.window[A.strstart - 1])) && U(A, !1), A.strstart++, A.lookahead--, A.strm.avail_out === 0)
12121
- return T;
12140
+ return _;
12122
12141
  } else
12123
12142
  A.match_available = 1, A.strstart++, A.lookahead--;
12124
12143
  }
12125
- return A.match_available && (b = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? j : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? T : v;
12144
+ return A.match_available && (b = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < N - 1 ? A.strstart : N - 1, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : A.last_lit && (U(A, !1), A.strm.avail_out === 0) ? _ : v;
12126
12145
  }
12127
12146
  function ft(A, W, Y, b, O) {
12128
12147
  this.good_length = A, this.max_lazy = W, this.nice_length = Y, this.max_chain = b, this.func = O;
@@ -12155,16 +12174,16 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12155
12174
  for (Y > A.pending_buf_size - 5 && (Y = A.pending_buf_size - 5); ; ) {
12156
12175
  if (A.lookahead <= 1) {
12157
12176
  if (Rt(A), A.lookahead === 0 && W === d)
12158
- return T;
12177
+ return _;
12159
12178
  if (A.lookahead === 0)
12160
12179
  break;
12161
12180
  }
12162
12181
  A.strstart += A.lookahead, A.lookahead = 0;
12163
12182
  var b = A.block_start + Y;
12164
12183
  if ((A.strstart === 0 || A.strstart >= b) && (A.lookahead = A.strstart - b, A.strstart = b, U(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - k && (U(A, !1), A.strm.avail_out === 0))
12165
- return T;
12184
+ return _;
12166
12185
  }
12167
- return A.insert = 0, W === u ? (U(A, !0), A.strm.avail_out === 0 ? j : V) : (A.strstart > A.block_start && (U(A, !1), A.strm.avail_out), T);
12186
+ return A.insert = 0, W === u ? (U(A, !0), A.strm.avail_out === 0 ? Q : V) : (A.strstart > A.block_start && (U(A, !1), A.strm.avail_out), _);
12168
12187
  }), new ft(4, 4, 8, 4, Ft), new ft(4, 5, 16, 8, Ft), new ft(4, 6, 32, 32, Ft), new ft(4, 4, 16, 16, at), new ft(8, 16, 32, 32, at), new ft(8, 16, 128, 128, at), new ft(8, 32, 128, 256, at), new ft(32, 128, 258, 1024, at), new ft(32, 258, 258, 4096, at)], i.deflateInit = function(A, W) {
12169
12188
  return Mt(A, W, C, 15, 8, 0);
12170
12189
  }, i.deflateInit2 = Mt, i.deflateReset = Gt, i.deflateResetKeep = It, i.deflateSetHeader = function(A, W) {
@@ -12227,18 +12246,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12227
12246
  for (var it; ; ) {
12228
12247
  if (B.lookahead === 0 && (Rt(B), B.lookahead === 0)) {
12229
12248
  if (K === d)
12230
- return T;
12249
+ return _;
12231
12250
  break;
12232
12251
  }
12233
12252
  if (B.match_length = 0, it = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++, it && (U(B, !1), B.strm.avail_out === 0))
12234
- return T;
12253
+ return _;
12235
12254
  }
12236
- return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? j : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? T : v;
12255
+ return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? Q : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? _ : v;
12237
12256
  }(b, W) : b.strategy === 3 ? function(B, K) {
12238
12257
  for (var it, J, ct, Ct, pt = B.window; ; ) {
12239
12258
  if (B.lookahead <= x) {
12240
12259
  if (Rt(B), B.lookahead <= x && K === d)
12241
- return T;
12260
+ return _;
12242
12261
  if (B.lookahead === 0)
12243
12262
  break;
12244
12263
  }
@@ -12250,11 +12269,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12250
12269
  B.match_length = x - (Ct - ct), B.match_length > B.lookahead && (B.match_length = B.lookahead);
12251
12270
  }
12252
12271
  if (B.match_length >= N ? (it = o._tr_tally(B, 1, B.match_length - N), B.lookahead -= B.match_length, B.strstart += B.match_length, B.match_length = 0) : (it = o._tr_tally(B, 0, B.window[B.strstart]), B.lookahead--, B.strstart++), it && (U(B, !1), B.strm.avail_out === 0))
12253
- return T;
12272
+ return _;
12254
12273
  }
12255
- return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? j : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? T : v;
12274
+ return B.insert = 0, K === u ? (U(B, !0), B.strm.avail_out === 0 ? Q : V) : B.last_lit && (U(B, !1), B.strm.avail_out === 0) ? _ : v;
12256
12275
  }(b, W) : n[b.level].func(b, W);
12257
- if ($ !== j && $ !== V || (b.status = 666), $ === T || $ === j)
12276
+ if ($ !== Q && $ !== V || (b.status = 666), $ === _ || $ === Q)
12258
12277
  return A.avail_out === 0 && (b.last_flush = -1), f;
12259
12278
  if ($ === v && (W === 1 ? o._tr_align(b) : W !== 5 && (o._tr_stored_block(b, 0, 0, !1), W === 3 && (nt(b.head), b.lookahead === 0 && (b.strstart = 0, b.block_start = 0, b.insert = 0))), z(A), A.avail_out === 0))
12260
12279
  return b.last_flush = -1, f;
@@ -12280,11 +12299,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12280
12299
  };
12281
12300
  }, {}], 48: [function(t, e, i) {
12282
12301
  e.exports = function(n, r) {
12283
- var o, a, l, h, d, u, f, E, p, I, m, C, R, g, y, F, S, L, N, x, k, w, P, T, v;
12284
- o = n.state, a = n.next_in, T = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, d = h - (r - n.avail_out), u = h + (n.avail_out - 257), f = o.dmax, E = o.wsize, p = o.whave, I = o.wnext, m = o.window, C = o.hold, R = o.bits, g = o.lencode, y = o.distcode, F = (1 << o.lenbits) - 1, S = (1 << o.distbits) - 1;
12302
+ var o, a, l, h, d, u, f, E, p, I, m, C, R, g, y, F, S, L, N, x, k, w, P, _, v;
12303
+ o = n.state, a = n.next_in, _ = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, d = h - (r - n.avail_out), u = h + (n.avail_out - 257), f = o.dmax, E = o.wsize, p = o.whave, I = o.wnext, m = o.window, C = o.hold, R = o.bits, g = o.lencode, y = o.distcode, F = (1 << o.lenbits) - 1, S = (1 << o.distbits) - 1;
12285
12304
  t:
12286
12305
  do {
12287
- R < 15 && (C += T[a++] << R, R += 8, C += T[a++] << R, R += 8), L = g[C & F];
12306
+ R < 15 && (C += _[a++] << R, R += 8, C += _[a++] << R, R += 8), L = g[C & F];
12288
12307
  e:
12289
12308
  for (; ; ) {
12290
12309
  if (C >>>= N = L >>> 24, R -= N, (N = L >>> 16 & 255) === 0)
@@ -12302,7 +12321,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12302
12321
  n.msg = "invalid literal/length code", o.mode = 30;
12303
12322
  break t;
12304
12323
  }
12305
- x = 65535 & L, (N &= 15) && (R < N && (C += T[a++] << R, R += 8), x += C & (1 << N) - 1, C >>>= N, R -= N), R < 15 && (C += T[a++] << R, R += 8, C += T[a++] << R, R += 8), L = y[C & S];
12324
+ x = 65535 & L, (N &= 15) && (R < N && (C += _[a++] << R, R += 8), x += C & (1 << N) - 1, C >>>= N, R -= N), R < 15 && (C += _[a++] << R, R += 8, C += _[a++] << R, R += 8), L = y[C & S];
12306
12325
  s:
12307
12326
  for (; ; ) {
12308
12327
  if (C >>>= N = L >>> 24, R -= N, !(16 & (N = L >>> 16 & 255))) {
@@ -12313,7 +12332,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12313
12332
  n.msg = "invalid distance code", o.mode = 30;
12314
12333
  break t;
12315
12334
  }
12316
- if (k = 65535 & L, R < (N &= 15) && (C += T[a++] << R, (R += 8) < N && (C += T[a++] << R, R += 8)), f < (k += C & (1 << N) - 1)) {
12335
+ if (k = 65535 & L, R < (N &= 15) && (C += _[a++] << R, (R += 8) < N && (C += _[a++] << R, R += 8)), f < (k += C & (1 << N) - 1)) {
12317
12336
  n.msg = "invalid distance too far back", o.mode = 30;
12318
12337
  break t;
12319
12338
  }
@@ -12376,12 +12395,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12376
12395
  return w && w.state ? ((P = w.state).wsize = 0, P.whave = 0, P.wnext = 0, R(w)) : f;
12377
12396
  }
12378
12397
  function y(w, P) {
12379
- var T, v;
12380
- return w && w.state ? (v = w.state, P < 0 ? (T = 0, P = -P) : (T = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? f : (v.window !== null && v.wbits !== P && (v.window = null), v.wrap = T, v.wbits = P, g(w))) : f;
12398
+ var _, v;
12399
+ return w && w.state ? (v = w.state, P < 0 ? (_ = 0, P = -P) : (_ = 1 + (P >> 4), P < 48 && (P &= 15)), P && (P < 8 || 15 < P) ? f : (v.window !== null && v.wbits !== P && (v.window = null), v.wrap = _, v.wbits = P, g(w))) : f;
12381
12400
  }
12382
12401
  function F(w, P) {
12383
- var T, v;
12384
- return w ? (v = new C(), (w.state = v).window = null, (T = y(w, P)) !== u && (w.state = null), T) : f;
12402
+ var _, v;
12403
+ return w ? (v = new C(), (w.state = v).window = null, (_ = y(w, P)) !== u && (w.state = null), _) : f;
12385
12404
  }
12386
12405
  var S, L, N = !0;
12387
12406
  function x(w) {
@@ -12401,23 +12420,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12401
12420
  }
12402
12421
  w.lencode = S, w.lenbits = 9, w.distcode = L, w.distbits = 5;
12403
12422
  }
12404
- function k(w, P, T, v) {
12405
- var j, V = w.state;
12406
- return V.window === null && (V.wsize = 1 << V.wbits, V.wnext = 0, V.whave = 0, V.window = new n.Buf8(V.wsize)), v >= V.wsize ? (n.arraySet(V.window, P, T - V.wsize, V.wsize, 0), V.wnext = 0, V.whave = V.wsize) : (v < (j = V.wsize - V.wnext) && (j = v), n.arraySet(V.window, P, T - v, j, V.wnext), (v -= j) ? (n.arraySet(V.window, P, T - v, v, 0), V.wnext = v, V.whave = V.wsize) : (V.wnext += j, V.wnext === V.wsize && (V.wnext = 0), V.whave < V.wsize && (V.whave += j))), 0;
12423
+ function k(w, P, _, v) {
12424
+ var Q, V = w.state;
12425
+ return V.window === null && (V.wsize = 1 << V.wbits, V.wnext = 0, V.whave = 0, V.window = new n.Buf8(V.wsize)), v >= V.wsize ? (n.arraySet(V.window, P, _ - V.wsize, V.wsize, 0), V.wnext = 0, V.whave = V.wsize) : (v < (Q = V.wsize - V.wnext) && (Q = v), n.arraySet(V.window, P, _ - v, Q, V.wnext), (v -= Q) ? (n.arraySet(V.window, P, _ - v, v, 0), V.wnext = v, V.whave = V.wsize) : (V.wnext += Q, V.wnext === V.wsize && (V.wnext = 0), V.whave < V.wsize && (V.whave += Q))), 0;
12407
12426
  }
12408
12427
  i.inflateReset = g, i.inflateReset2 = y, i.inflateResetKeep = R, i.inflateInit = function(w) {
12409
12428
  return F(w, 15);
12410
12429
  }, i.inflateInit2 = F, i.inflate = function(w, P) {
12411
- var T, v, j, V, et, H, nt, z, U, ot, st, tt, Rt, Ft, at, ft, ut, It, Gt, Mt, A, W, Y, b, O = 0, D = new n.Buf8(4), Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
12430
+ var _, v, Q, V, et, H, nt, z, U, ot, st, tt, Rt, Ft, at, ft, ut, It, Gt, Mt, A, W, Y, b, O = 0, D = new n.Buf8(4), Z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
12412
12431
  if (!w || !w.state || !w.output || !w.input && w.avail_in !== 0)
12413
12432
  return f;
12414
- (T = w.state).mode === 12 && (T.mode = 13), et = w.next_out, j = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = T.hold, U = T.bits, ot = H, st = nt, W = u;
12433
+ (_ = w.state).mode === 12 && (_.mode = 13), et = w.next_out, Q = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = _.hold, U = _.bits, ot = H, st = nt, W = u;
12415
12434
  t:
12416
12435
  for (; ; )
12417
- switch (T.mode) {
12436
+ switch (_.mode) {
12418
12437
  case E:
12419
- if (T.wrap === 0) {
12420
- T.mode = 13;
12438
+ if (_.wrap === 0) {
12439
+ _.mode = 13;
12421
12440
  break;
12422
12441
  }
12423
12442
  for (; U < 16; ) {
@@ -12425,25 +12444,25 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12425
12444
  break t;
12426
12445
  H--, z += v[V++] << U, U += 8;
12427
12446
  }
12428
- if (2 & T.wrap && z === 35615) {
12429
- D[T.check = 0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0), U = z = 0, T.mode = 2;
12447
+ if (2 & _.wrap && z === 35615) {
12448
+ D[_.check = 0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0), U = z = 0, _.mode = 2;
12430
12449
  break;
12431
12450
  }
12432
- if (T.flags = 0, T.head && (T.head.done = !1), !(1 & T.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
12433
- w.msg = "incorrect header check", T.mode = 30;
12451
+ if (_.flags = 0, _.head && (_.head.done = !1), !(1 & _.wrap) || (((255 & z) << 8) + (z >> 8)) % 31) {
12452
+ w.msg = "incorrect header check", _.mode = 30;
12434
12453
  break;
12435
12454
  }
12436
12455
  if ((15 & z) != 8) {
12437
- w.msg = "unknown compression method", T.mode = 30;
12456
+ w.msg = "unknown compression method", _.mode = 30;
12438
12457
  break;
12439
12458
  }
12440
- if (U -= 4, A = 8 + (15 & (z >>>= 4)), T.wbits === 0)
12441
- T.wbits = A;
12442
- else if (A > T.wbits) {
12443
- w.msg = "invalid window size", T.mode = 30;
12459
+ if (U -= 4, A = 8 + (15 & (z >>>= 4)), _.wbits === 0)
12460
+ _.wbits = A;
12461
+ else if (A > _.wbits) {
12462
+ w.msg = "invalid window size", _.mode = 30;
12444
12463
  break;
12445
12464
  }
12446
- T.dmax = 1 << A, w.adler = T.check = 1, T.mode = 512 & z ? 10 : 12, U = z = 0;
12465
+ _.dmax = 1 << A, w.adler = _.check = 1, _.mode = 512 & z ? 10 : 12, U = z = 0;
12447
12466
  break;
12448
12467
  case 2:
12449
12468
  for (; U < 16; ) {
@@ -12451,80 +12470,80 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12451
12470
  break t;
12452
12471
  H--, z += v[V++] << U, U += 8;
12453
12472
  }
12454
- if (T.flags = z, (255 & T.flags) != 8) {
12455
- w.msg = "unknown compression method", T.mode = 30;
12473
+ if (_.flags = z, (255 & _.flags) != 8) {
12474
+ w.msg = "unknown compression method", _.mode = 30;
12456
12475
  break;
12457
12476
  }
12458
- if (57344 & T.flags) {
12459
- w.msg = "unknown header flags set", T.mode = 30;
12477
+ if (57344 & _.flags) {
12478
+ w.msg = "unknown header flags set", _.mode = 30;
12460
12479
  break;
12461
12480
  }
12462
- T.head && (T.head.text = z >> 8 & 1), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0)), U = z = 0, T.mode = 3;
12481
+ _.head && (_.head.text = z >> 8 & 1), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0, _.mode = 3;
12463
12482
  case 3:
12464
12483
  for (; U < 32; ) {
12465
12484
  if (H === 0)
12466
12485
  break t;
12467
12486
  H--, z += v[V++] << U, U += 8;
12468
12487
  }
12469
- T.head && (T.head.time = z), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, D[2] = z >>> 16 & 255, D[3] = z >>> 24 & 255, T.check = o(T.check, D, 4, 0)), U = z = 0, T.mode = 4;
12488
+ _.head && (_.head.time = z), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, D[2] = z >>> 16 & 255, D[3] = z >>> 24 & 255, _.check = o(_.check, D, 4, 0)), U = z = 0, _.mode = 4;
12470
12489
  case 4:
12471
12490
  for (; U < 16; ) {
12472
12491
  if (H === 0)
12473
12492
  break t;
12474
12493
  H--, z += v[V++] << U, U += 8;
12475
12494
  }
12476
- T.head && (T.head.xflags = 255 & z, T.head.os = z >> 8), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0)), U = z = 0, T.mode = 5;
12495
+ _.head && (_.head.xflags = 255 & z, _.head.os = z >> 8), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0, _.mode = 5;
12477
12496
  case 5:
12478
- if (1024 & T.flags) {
12497
+ if (1024 & _.flags) {
12479
12498
  for (; U < 16; ) {
12480
12499
  if (H === 0)
12481
12500
  break t;
12482
12501
  H--, z += v[V++] << U, U += 8;
12483
12502
  }
12484
- T.length = z, T.head && (T.head.extra_len = z), 512 & T.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, T.check = o(T.check, D, 2, 0)), U = z = 0;
12503
+ _.length = z, _.head && (_.head.extra_len = z), 512 & _.flags && (D[0] = 255 & z, D[1] = z >>> 8 & 255, _.check = o(_.check, D, 2, 0)), U = z = 0;
12485
12504
  } else
12486
- T.head && (T.head.extra = null);
12487
- T.mode = 6;
12505
+ _.head && (_.head.extra = null);
12506
+ _.mode = 6;
12488
12507
  case 6:
12489
- if (1024 & T.flags && (H < (tt = T.length) && (tt = H), tt && (T.head && (A = T.head.extra_len - T.length, T.head.extra || (T.head.extra = new Array(T.head.extra_len)), n.arraySet(T.head.extra, v, V, tt, A)), 512 & T.flags && (T.check = o(T.check, v, tt, V)), H -= tt, V += tt, T.length -= tt), T.length))
12508
+ if (1024 & _.flags && (H < (tt = _.length) && (tt = H), tt && (_.head && (A = _.head.extra_len - _.length, _.head.extra || (_.head.extra = new Array(_.head.extra_len)), n.arraySet(_.head.extra, v, V, tt, A)), 512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, _.length -= tt), _.length))
12490
12509
  break t;
12491
- T.length = 0, T.mode = 7;
12510
+ _.length = 0, _.mode = 7;
12492
12511
  case 7:
12493
- if (2048 & T.flags) {
12512
+ if (2048 & _.flags) {
12494
12513
  if (H === 0)
12495
12514
  break t;
12496
- for (tt = 0; A = v[V + tt++], T.head && A && T.length < 65536 && (T.head.name += String.fromCharCode(A)), A && tt < H; )
12515
+ for (tt = 0; A = v[V + tt++], _.head && A && _.length < 65536 && (_.head.name += String.fromCharCode(A)), A && tt < H; )
12497
12516
  ;
12498
- if (512 & T.flags && (T.check = o(T.check, v, tt, V)), H -= tt, V += tt, A)
12517
+ if (512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, A)
12499
12518
  break t;
12500
12519
  } else
12501
- T.head && (T.head.name = null);
12502
- T.length = 0, T.mode = 8;
12520
+ _.head && (_.head.name = null);
12521
+ _.length = 0, _.mode = 8;
12503
12522
  case 8:
12504
- if (4096 & T.flags) {
12523
+ if (4096 & _.flags) {
12505
12524
  if (H === 0)
12506
12525
  break t;
12507
- for (tt = 0; A = v[V + tt++], T.head && A && T.length < 65536 && (T.head.comment += String.fromCharCode(A)), A && tt < H; )
12526
+ for (tt = 0; A = v[V + tt++], _.head && A && _.length < 65536 && (_.head.comment += String.fromCharCode(A)), A && tt < H; )
12508
12527
  ;
12509
- if (512 & T.flags && (T.check = o(T.check, v, tt, V)), H -= tt, V += tt, A)
12528
+ if (512 & _.flags && (_.check = o(_.check, v, tt, V)), H -= tt, V += tt, A)
12510
12529
  break t;
12511
12530
  } else
12512
- T.head && (T.head.comment = null);
12513
- T.mode = 9;
12531
+ _.head && (_.head.comment = null);
12532
+ _.mode = 9;
12514
12533
  case 9:
12515
- if (512 & T.flags) {
12534
+ if (512 & _.flags) {
12516
12535
  for (; U < 16; ) {
12517
12536
  if (H === 0)
12518
12537
  break t;
12519
12538
  H--, z += v[V++] << U, U += 8;
12520
12539
  }
12521
- if (z !== (65535 & T.check)) {
12522
- w.msg = "header crc mismatch", T.mode = 30;
12540
+ if (z !== (65535 & _.check)) {
12541
+ w.msg = "header crc mismatch", _.mode = 30;
12523
12542
  break;
12524
12543
  }
12525
12544
  U = z = 0;
12526
12545
  }
12527
- T.head && (T.head.hcrc = T.flags >> 9 & 1, T.head.done = !0), w.adler = T.check = 0, T.mode = 12;
12546
+ _.head && (_.head.hcrc = _.flags >> 9 & 1, _.head.done = !0), w.adler = _.check = 0, _.mode = 12;
12528
12547
  break;
12529
12548
  case 10:
12530
12549
  for (; U < 32; ) {
@@ -12532,17 +12551,17 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12532
12551
  break t;
12533
12552
  H--, z += v[V++] << U, U += 8;
12534
12553
  }
12535
- w.adler = T.check = m(z), U = z = 0, T.mode = 11;
12554
+ w.adler = _.check = m(z), U = z = 0, _.mode = 11;
12536
12555
  case 11:
12537
- if (T.havedict === 0)
12538
- return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, T.hold = z, T.bits = U, 2;
12539
- w.adler = T.check = 1, T.mode = 12;
12556
+ if (_.havedict === 0)
12557
+ return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, 2;
12558
+ w.adler = _.check = 1, _.mode = 12;
12540
12559
  case 12:
12541
12560
  if (P === 5 || P === 6)
12542
12561
  break t;
12543
12562
  case 13:
12544
- if (T.last) {
12545
- z >>>= 7 & U, U -= 7 & U, T.mode = 27;
12563
+ if (_.last) {
12564
+ z >>>= 7 & U, U -= 7 & U, _.mode = 27;
12546
12565
  break;
12547
12566
  }
12548
12567
  for (; U < 3; ) {
@@ -12550,20 +12569,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12550
12569
  break t;
12551
12570
  H--, z += v[V++] << U, U += 8;
12552
12571
  }
12553
- switch (T.last = 1 & z, U -= 1, 3 & (z >>>= 1)) {
12572
+ switch (_.last = 1 & z, U -= 1, 3 & (z >>>= 1)) {
12554
12573
  case 0:
12555
- T.mode = 14;
12574
+ _.mode = 14;
12556
12575
  break;
12557
12576
  case 1:
12558
- if (x(T), T.mode = 20, P !== 6)
12577
+ if (x(_), _.mode = 20, P !== 6)
12559
12578
  break;
12560
12579
  z >>>= 2, U -= 2;
12561
12580
  break t;
12562
12581
  case 2:
12563
- T.mode = 17;
12582
+ _.mode = 17;
12564
12583
  break;
12565
12584
  case 3:
12566
- w.msg = "invalid block type", T.mode = 30;
12585
+ w.msg = "invalid block type", _.mode = 30;
12567
12586
  }
12568
12587
  z >>>= 2, U -= 2;
12569
12588
  break;
@@ -12574,21 +12593,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12574
12593
  H--, z += v[V++] << U, U += 8;
12575
12594
  }
12576
12595
  if ((65535 & z) != (z >>> 16 ^ 65535)) {
12577
- w.msg = "invalid stored block lengths", T.mode = 30;
12596
+ w.msg = "invalid stored block lengths", _.mode = 30;
12578
12597
  break;
12579
12598
  }
12580
- if (T.length = 65535 & z, U = z = 0, T.mode = 15, P === 6)
12599
+ if (_.length = 65535 & z, U = z = 0, _.mode = 15, P === 6)
12581
12600
  break t;
12582
12601
  case 15:
12583
- T.mode = 16;
12602
+ _.mode = 16;
12584
12603
  case 16:
12585
- if (tt = T.length) {
12604
+ if (tt = _.length) {
12586
12605
  if (H < tt && (tt = H), nt < tt && (tt = nt), tt === 0)
12587
12606
  break t;
12588
- n.arraySet(j, v, V, tt, et), H -= tt, V += tt, nt -= tt, et += tt, T.length -= tt;
12607
+ n.arraySet(Q, v, V, tt, et), H -= tt, V += tt, nt -= tt, et += tt, _.length -= tt;
12589
12608
  break;
12590
12609
  }
12591
- T.mode = 12;
12610
+ _.mode = 12;
12592
12611
  break;
12593
12612
  case 17:
12594
12613
  for (; U < 14; ) {
@@ -12596,36 +12615,36 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12596
12615
  break t;
12597
12616
  H--, z += v[V++] << U, U += 8;
12598
12617
  }
12599
- if (T.nlen = 257 + (31 & z), z >>>= 5, U -= 5, T.ndist = 1 + (31 & z), z >>>= 5, U -= 5, T.ncode = 4 + (15 & z), z >>>= 4, U -= 4, 286 < T.nlen || 30 < T.ndist) {
12600
- w.msg = "too many length or distance symbols", T.mode = 30;
12618
+ if (_.nlen = 257 + (31 & z), z >>>= 5, U -= 5, _.ndist = 1 + (31 & z), z >>>= 5, U -= 5, _.ncode = 4 + (15 & z), z >>>= 4, U -= 4, 286 < _.nlen || 30 < _.ndist) {
12619
+ w.msg = "too many length or distance symbols", _.mode = 30;
12601
12620
  break;
12602
12621
  }
12603
- T.have = 0, T.mode = 18;
12622
+ _.have = 0, _.mode = 18;
12604
12623
  case 18:
12605
- for (; T.have < T.ncode; ) {
12624
+ for (; _.have < _.ncode; ) {
12606
12625
  for (; U < 3; ) {
12607
12626
  if (H === 0)
12608
12627
  break t;
12609
12628
  H--, z += v[V++] << U, U += 8;
12610
12629
  }
12611
- T.lens[Z[T.have++]] = 7 & z, z >>>= 3, U -= 3;
12630
+ _.lens[Z[_.have++]] = 7 & z, z >>>= 3, U -= 3;
12612
12631
  }
12613
- for (; T.have < 19; )
12614
- T.lens[Z[T.have++]] = 0;
12615
- if (T.lencode = T.lendyn, T.lenbits = 7, Y = { bits: T.lenbits }, W = l(0, T.lens, 0, 19, T.lencode, 0, T.work, Y), T.lenbits = Y.bits, W) {
12616
- w.msg = "invalid code lengths set", T.mode = 30;
12632
+ for (; _.have < 19; )
12633
+ _.lens[Z[_.have++]] = 0;
12634
+ if (_.lencode = _.lendyn, _.lenbits = 7, Y = { bits: _.lenbits }, W = l(0, _.lens, 0, 19, _.lencode, 0, _.work, Y), _.lenbits = Y.bits, W) {
12635
+ w.msg = "invalid code lengths set", _.mode = 30;
12617
12636
  break;
12618
12637
  }
12619
- T.have = 0, T.mode = 19;
12638
+ _.have = 0, _.mode = 19;
12620
12639
  case 19:
12621
- for (; T.have < T.nlen + T.ndist; ) {
12622
- for (; ft = (O = T.lencode[z & (1 << T.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12640
+ for (; _.have < _.nlen + _.ndist; ) {
12641
+ for (; ft = (O = _.lencode[z & (1 << _.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12623
12642
  if (H === 0)
12624
12643
  break t;
12625
12644
  H--, z += v[V++] << U, U += 8;
12626
12645
  }
12627
12646
  if (ut < 16)
12628
- z >>>= at, U -= at, T.lens[T.have++] = ut;
12647
+ z >>>= at, U -= at, _.lens[_.have++] = ut;
12629
12648
  else {
12630
12649
  if (ut === 16) {
12631
12650
  for (b = at + 2; U < b; ) {
@@ -12633,11 +12652,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12633
12652
  break t;
12634
12653
  H--, z += v[V++] << U, U += 8;
12635
12654
  }
12636
- if (z >>>= at, U -= at, T.have === 0) {
12637
- w.msg = "invalid bit length repeat", T.mode = 30;
12655
+ if (z >>>= at, U -= at, _.have === 0) {
12656
+ w.msg = "invalid bit length repeat", _.mode = 30;
12638
12657
  break;
12639
12658
  }
12640
- A = T.lens[T.have - 1], tt = 3 + (3 & z), z >>>= 2, U -= 2;
12659
+ A = _.lens[_.have - 1], tt = 3 + (3 & z), z >>>= 2, U -= 2;
12641
12660
  } else if (ut === 17) {
12642
12661
  for (b = at + 3; U < b; ) {
12643
12662
  if (H === 0)
@@ -12653,154 +12672,154 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12653
12672
  }
12654
12673
  U -= at, A = 0, tt = 11 + (127 & (z >>>= at)), z >>>= 7, U -= 7;
12655
12674
  }
12656
- if (T.have + tt > T.nlen + T.ndist) {
12657
- w.msg = "invalid bit length repeat", T.mode = 30;
12675
+ if (_.have + tt > _.nlen + _.ndist) {
12676
+ w.msg = "invalid bit length repeat", _.mode = 30;
12658
12677
  break;
12659
12678
  }
12660
12679
  for (; tt--; )
12661
- T.lens[T.have++] = A;
12680
+ _.lens[_.have++] = A;
12662
12681
  }
12663
12682
  }
12664
- if (T.mode === 30)
12683
+ if (_.mode === 30)
12665
12684
  break;
12666
- if (T.lens[256] === 0) {
12667
- w.msg = "invalid code -- missing end-of-block", T.mode = 30;
12685
+ if (_.lens[256] === 0) {
12686
+ w.msg = "invalid code -- missing end-of-block", _.mode = 30;
12668
12687
  break;
12669
12688
  }
12670
- if (T.lenbits = 9, Y = { bits: T.lenbits }, W = l(h, T.lens, 0, T.nlen, T.lencode, 0, T.work, Y), T.lenbits = Y.bits, W) {
12671
- w.msg = "invalid literal/lengths set", T.mode = 30;
12689
+ if (_.lenbits = 9, Y = { bits: _.lenbits }, W = l(h, _.lens, 0, _.nlen, _.lencode, 0, _.work, Y), _.lenbits = Y.bits, W) {
12690
+ w.msg = "invalid literal/lengths set", _.mode = 30;
12672
12691
  break;
12673
12692
  }
12674
- if (T.distbits = 6, T.distcode = T.distdyn, Y = { bits: T.distbits }, W = l(d, T.lens, T.nlen, T.ndist, T.distcode, 0, T.work, Y), T.distbits = Y.bits, W) {
12675
- w.msg = "invalid distances set", T.mode = 30;
12693
+ if (_.distbits = 6, _.distcode = _.distdyn, Y = { bits: _.distbits }, W = l(d, _.lens, _.nlen, _.ndist, _.distcode, 0, _.work, Y), _.distbits = Y.bits, W) {
12694
+ w.msg = "invalid distances set", _.mode = 30;
12676
12695
  break;
12677
12696
  }
12678
- if (T.mode = 20, P === 6)
12697
+ if (_.mode = 20, P === 6)
12679
12698
  break t;
12680
12699
  case 20:
12681
- T.mode = 21;
12700
+ _.mode = 21;
12682
12701
  case 21:
12683
12702
  if (6 <= H && 258 <= nt) {
12684
- w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, T.hold = z, T.bits = U, a(w, st), et = w.next_out, j = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = T.hold, U = T.bits, T.mode === 12 && (T.back = -1);
12703
+ w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, a(w, st), et = w.next_out, Q = w.output, nt = w.avail_out, V = w.next_in, v = w.input, H = w.avail_in, z = _.hold, U = _.bits, _.mode === 12 && (_.back = -1);
12685
12704
  break;
12686
12705
  }
12687
- for (T.back = 0; ft = (O = T.lencode[z & (1 << T.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12706
+ for (_.back = 0; ft = (O = _.lencode[z & (1 << _.lenbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12688
12707
  if (H === 0)
12689
12708
  break t;
12690
12709
  H--, z += v[V++] << U, U += 8;
12691
12710
  }
12692
12711
  if (ft && !(240 & ft)) {
12693
- for (It = at, Gt = ft, Mt = ut; ft = (O = T.lencode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12712
+ for (It = at, Gt = ft, Mt = ut; ft = (O = _.lencode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12694
12713
  if (H === 0)
12695
12714
  break t;
12696
12715
  H--, z += v[V++] << U, U += 8;
12697
12716
  }
12698
- z >>>= It, U -= It, T.back += It;
12717
+ z >>>= It, U -= It, _.back += It;
12699
12718
  }
12700
- if (z >>>= at, U -= at, T.back += at, T.length = ut, ft === 0) {
12701
- T.mode = 26;
12719
+ if (z >>>= at, U -= at, _.back += at, _.length = ut, ft === 0) {
12720
+ _.mode = 26;
12702
12721
  break;
12703
12722
  }
12704
12723
  if (32 & ft) {
12705
- T.back = -1, T.mode = 12;
12724
+ _.back = -1, _.mode = 12;
12706
12725
  break;
12707
12726
  }
12708
12727
  if (64 & ft) {
12709
- w.msg = "invalid literal/length code", T.mode = 30;
12728
+ w.msg = "invalid literal/length code", _.mode = 30;
12710
12729
  break;
12711
12730
  }
12712
- T.extra = 15 & ft, T.mode = 22;
12731
+ _.extra = 15 & ft, _.mode = 22;
12713
12732
  case 22:
12714
- if (T.extra) {
12715
- for (b = T.extra; U < b; ) {
12733
+ if (_.extra) {
12734
+ for (b = _.extra; U < b; ) {
12716
12735
  if (H === 0)
12717
12736
  break t;
12718
12737
  H--, z += v[V++] << U, U += 8;
12719
12738
  }
12720
- T.length += z & (1 << T.extra) - 1, z >>>= T.extra, U -= T.extra, T.back += T.extra;
12739
+ _.length += z & (1 << _.extra) - 1, z >>>= _.extra, U -= _.extra, _.back += _.extra;
12721
12740
  }
12722
- T.was = T.length, T.mode = 23;
12741
+ _.was = _.length, _.mode = 23;
12723
12742
  case 23:
12724
- for (; ft = (O = T.distcode[z & (1 << T.distbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12743
+ for (; ft = (O = _.distcode[z & (1 << _.distbits) - 1]) >>> 16 & 255, ut = 65535 & O, !((at = O >>> 24) <= U); ) {
12725
12744
  if (H === 0)
12726
12745
  break t;
12727
12746
  H--, z += v[V++] << U, U += 8;
12728
12747
  }
12729
12748
  if (!(240 & ft)) {
12730
- for (It = at, Gt = ft, Mt = ut; ft = (O = T.distcode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12749
+ for (It = at, Gt = ft, Mt = ut; ft = (O = _.distcode[Mt + ((z & (1 << It + Gt) - 1) >> It)]) >>> 16 & 255, ut = 65535 & O, !(It + (at = O >>> 24) <= U); ) {
12731
12750
  if (H === 0)
12732
12751
  break t;
12733
12752
  H--, z += v[V++] << U, U += 8;
12734
12753
  }
12735
- z >>>= It, U -= It, T.back += It;
12754
+ z >>>= It, U -= It, _.back += It;
12736
12755
  }
12737
- if (z >>>= at, U -= at, T.back += at, 64 & ft) {
12738
- w.msg = "invalid distance code", T.mode = 30;
12756
+ if (z >>>= at, U -= at, _.back += at, 64 & ft) {
12757
+ w.msg = "invalid distance code", _.mode = 30;
12739
12758
  break;
12740
12759
  }
12741
- T.offset = ut, T.extra = 15 & ft, T.mode = 24;
12760
+ _.offset = ut, _.extra = 15 & ft, _.mode = 24;
12742
12761
  case 24:
12743
- if (T.extra) {
12744
- for (b = T.extra; U < b; ) {
12762
+ if (_.extra) {
12763
+ for (b = _.extra; U < b; ) {
12745
12764
  if (H === 0)
12746
12765
  break t;
12747
12766
  H--, z += v[V++] << U, U += 8;
12748
12767
  }
12749
- T.offset += z & (1 << T.extra) - 1, z >>>= T.extra, U -= T.extra, T.back += T.extra;
12768
+ _.offset += z & (1 << _.extra) - 1, z >>>= _.extra, U -= _.extra, _.back += _.extra;
12750
12769
  }
12751
- if (T.offset > T.dmax) {
12752
- w.msg = "invalid distance too far back", T.mode = 30;
12770
+ if (_.offset > _.dmax) {
12771
+ w.msg = "invalid distance too far back", _.mode = 30;
12753
12772
  break;
12754
12773
  }
12755
- T.mode = 25;
12774
+ _.mode = 25;
12756
12775
  case 25:
12757
12776
  if (nt === 0)
12758
12777
  break t;
12759
- if (tt = st - nt, T.offset > tt) {
12760
- if ((tt = T.offset - tt) > T.whave && T.sane) {
12761
- w.msg = "invalid distance too far back", T.mode = 30;
12778
+ if (tt = st - nt, _.offset > tt) {
12779
+ if ((tt = _.offset - tt) > _.whave && _.sane) {
12780
+ w.msg = "invalid distance too far back", _.mode = 30;
12762
12781
  break;
12763
12782
  }
12764
- Rt = tt > T.wnext ? (tt -= T.wnext, T.wsize - tt) : T.wnext - tt, tt > T.length && (tt = T.length), Ft = T.window;
12783
+ Rt = tt > _.wnext ? (tt -= _.wnext, _.wsize - tt) : _.wnext - tt, tt > _.length && (tt = _.length), Ft = _.window;
12765
12784
  } else
12766
- Ft = j, Rt = et - T.offset, tt = T.length;
12767
- for (nt < tt && (tt = nt), nt -= tt, T.length -= tt; j[et++] = Ft[Rt++], --tt; )
12785
+ Ft = Q, Rt = et - _.offset, tt = _.length;
12786
+ for (nt < tt && (tt = nt), nt -= tt, _.length -= tt; Q[et++] = Ft[Rt++], --tt; )
12768
12787
  ;
12769
- T.length === 0 && (T.mode = 21);
12788
+ _.length === 0 && (_.mode = 21);
12770
12789
  break;
12771
12790
  case 26:
12772
12791
  if (nt === 0)
12773
12792
  break t;
12774
- j[et++] = T.length, nt--, T.mode = 21;
12793
+ Q[et++] = _.length, nt--, _.mode = 21;
12775
12794
  break;
12776
12795
  case 27:
12777
- if (T.wrap) {
12796
+ if (_.wrap) {
12778
12797
  for (; U < 32; ) {
12779
12798
  if (H === 0)
12780
12799
  break t;
12781
12800
  H--, z |= v[V++] << U, U += 8;
12782
12801
  }
12783
- if (st -= nt, w.total_out += st, T.total += st, st && (w.adler = T.check = T.flags ? o(T.check, j, st, et - st) : r(T.check, j, st, et - st)), st = nt, (T.flags ? z : m(z)) !== T.check) {
12784
- w.msg = "incorrect data check", T.mode = 30;
12802
+ if (st -= nt, w.total_out += st, _.total += st, st && (w.adler = _.check = _.flags ? o(_.check, Q, st, et - st) : r(_.check, Q, st, et - st)), st = nt, (_.flags ? z : m(z)) !== _.check) {
12803
+ w.msg = "incorrect data check", _.mode = 30;
12785
12804
  break;
12786
12805
  }
12787
12806
  U = z = 0;
12788
12807
  }
12789
- T.mode = 28;
12808
+ _.mode = 28;
12790
12809
  case 28:
12791
- if (T.wrap && T.flags) {
12810
+ if (_.wrap && _.flags) {
12792
12811
  for (; U < 32; ) {
12793
12812
  if (H === 0)
12794
12813
  break t;
12795
12814
  H--, z += v[V++] << U, U += 8;
12796
12815
  }
12797
- if (z !== (4294967295 & T.total)) {
12798
- w.msg = "incorrect length check", T.mode = 30;
12816
+ if (z !== (4294967295 & _.total)) {
12817
+ w.msg = "incorrect length check", _.mode = 30;
12799
12818
  break;
12800
12819
  }
12801
12820
  U = z = 0;
12802
12821
  }
12803
- T.mode = 29;
12822
+ _.mode = 29;
12804
12823
  case 29:
12805
12824
  W = 1;
12806
12825
  break t;
@@ -12813,34 +12832,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12813
12832
  default:
12814
12833
  return f;
12815
12834
  }
12816
- return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, T.hold = z, T.bits = U, (T.wsize || st !== w.avail_out && T.mode < 30 && (T.mode < 27 || P !== 4)) && k(w, w.output, w.next_out, st - w.avail_out) ? (T.mode = 31, -4) : (ot -= w.avail_in, st -= w.avail_out, w.total_in += ot, w.total_out += st, T.total += st, T.wrap && st && (w.adler = T.check = T.flags ? o(T.check, j, st, w.next_out - st) : r(T.check, j, st, w.next_out - st)), w.data_type = T.bits + (T.last ? 64 : 0) + (T.mode === 12 ? 128 : 0) + (T.mode === 20 || T.mode === 15 ? 256 : 0), (ot == 0 && st === 0 || P === 4) && W === u && (W = -5), W);
12835
+ return w.next_out = et, w.avail_out = nt, w.next_in = V, w.avail_in = H, _.hold = z, _.bits = U, (_.wsize || st !== w.avail_out && _.mode < 30 && (_.mode < 27 || P !== 4)) && k(w, w.output, w.next_out, st - w.avail_out) ? (_.mode = 31, -4) : (ot -= w.avail_in, st -= w.avail_out, w.total_in += ot, w.total_out += st, _.total += st, _.wrap && st && (w.adler = _.check = _.flags ? o(_.check, Q, st, w.next_out - st) : r(_.check, Q, st, w.next_out - st)), w.data_type = _.bits + (_.last ? 64 : 0) + (_.mode === 12 ? 128 : 0) + (_.mode === 20 || _.mode === 15 ? 256 : 0), (ot == 0 && st === 0 || P === 4) && W === u && (W = -5), W);
12817
12836
  }, i.inflateEnd = function(w) {
12818
12837
  if (!w || !w.state)
12819
12838
  return f;
12820
12839
  var P = w.state;
12821
12840
  return P.window && (P.window = null), w.state = null, u;
12822
12841
  }, i.inflateGetHeader = function(w, P) {
12823
- var T;
12824
- return w && w.state && 2 & (T = w.state).wrap ? ((T.head = P).done = !1, u) : f;
12842
+ var _;
12843
+ return w && w.state && 2 & (_ = w.state).wrap ? ((_.head = P).done = !1, u) : f;
12825
12844
  }, i.inflateSetDictionary = function(w, P) {
12826
- var T, v = P.length;
12827
- return w && w.state ? (T = w.state).wrap !== 0 && T.mode !== 11 ? f : T.mode === 11 && r(1, P, v, 0) !== T.check ? -3 : k(w, P, v, v) ? (T.mode = 31, -4) : (T.havedict = 1, u) : f;
12845
+ var _, v = P.length;
12846
+ return w && w.state ? (_ = w.state).wrap !== 0 && _.mode !== 11 ? f : _.mode === 11 && r(1, P, v, 0) !== _.check ? -3 : k(w, P, v, v) ? (_.mode = 31, -4) : (_.havedict = 1, u) : f;
12828
12847
  }, i.inflateInfo = "pako inflate (from Nodeca project)";
12829
12848
  }, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, e, i) {
12830
12849
  var n = t("../utils/common"), r = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], l = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
12831
12850
  e.exports = function(h, d, u, f, E, p, I, m) {
12832
- var C, R, g, y, F, S, L, N, x, k = m.bits, w = 0, P = 0, T = 0, v = 0, j = 0, V = 0, et = 0, H = 0, nt = 0, z = 0, U = null, ot = 0, st = new n.Buf16(16), tt = new n.Buf16(16), Rt = null, Ft = 0;
12851
+ var C, R, g, y, F, S, L, N, x, k = m.bits, w = 0, P = 0, _ = 0, v = 0, Q = 0, V = 0, et = 0, H = 0, nt = 0, z = 0, U = null, ot = 0, st = new n.Buf16(16), tt = new n.Buf16(16), Rt = null, Ft = 0;
12833
12852
  for (w = 0; w <= 15; w++)
12834
12853
  st[w] = 0;
12835
12854
  for (P = 0; P < f; P++)
12836
12855
  st[d[u + P]]++;
12837
- for (j = k, v = 15; 1 <= v && st[v] === 0; v--)
12856
+ for (Q = k, v = 15; 1 <= v && st[v] === 0; v--)
12838
12857
  ;
12839
- if (v < j && (j = v), v === 0)
12858
+ if (v < Q && (Q = v), v === 0)
12840
12859
  return E[p++] = 20971520, E[p++] = 20971520, m.bits = 1, 0;
12841
- for (T = 1; T < v && st[T] === 0; T++)
12860
+ for (_ = 1; _ < v && st[_] === 0; _++)
12842
12861
  ;
12843
- for (j < T && (j = T), w = H = 1; w <= 15; w++)
12862
+ for (Q < _ && (Q = _), w = H = 1; w <= 15; w++)
12844
12863
  if (H <<= 1, (H -= st[w]) < 0)
12845
12864
  return -1;
12846
12865
  if (0 < H && (h === 0 || v !== 1))
@@ -12849,10 +12868,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12849
12868
  tt[w + 1] = tt[w] + st[w];
12850
12869
  for (P = 0; P < f; P++)
12851
12870
  d[u + P] !== 0 && (I[tt[d[u + P]]++] = P);
12852
- if (S = h === 0 ? (U = Rt = I, 19) : h === 1 ? (U = r, ot -= 257, Rt = o, Ft -= 257, 256) : (U = a, Rt = l, -1), w = T, F = p, et = P = z = 0, g = -1, y = (nt = 1 << (V = j)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
12871
+ if (S = h === 0 ? (U = Rt = I, 19) : h === 1 ? (U = r, ot -= 257, Rt = o, Ft -= 257, 256) : (U = a, Rt = l, -1), w = _, F = p, et = P = z = 0, g = -1, y = (nt = 1 << (V = Q)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
12853
12872
  return 1;
12854
12873
  for (; ; ) {
12855
- for (L = w - et, x = I[P] < S ? (N = 0, I[P]) : I[P] > S ? (N = Rt[Ft + I[P]], U[ot + I[P]]) : (N = 96, 0), C = 1 << w - et, T = R = 1 << V; E[F + (z >> et) + (R -= C)] = L << 24 | N << 16 | x | 0, R !== 0; )
12874
+ for (L = w - et, x = I[P] < S ? (N = 0, I[P]) : I[P] > S ? (N = Rt[Ft + I[P]], U[ot + I[P]]) : (N = 96, 0), C = 1 << w - et, _ = R = 1 << V; E[F + (z >> et) + (R -= C)] = L << 24 | N << 16 | x | 0, R !== 0; )
12856
12875
  ;
12857
12876
  for (C = 1 << w - 1; z & C; )
12858
12877
  C >>= 1;
@@ -12861,15 +12880,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12861
12880
  break;
12862
12881
  w = d[u + I[P]];
12863
12882
  }
12864
- if (j < w && (z & y) !== g) {
12865
- for (et === 0 && (et = j), F += T, H = 1 << (V = w - et); V + et < v && !((H -= st[V + et]) <= 0); )
12883
+ if (Q < w && (z & y) !== g) {
12884
+ for (et === 0 && (et = Q), F += _, H = 1 << (V = w - et); V + et < v && !((H -= st[V + et]) <= 0); )
12866
12885
  V++, H <<= 1;
12867
12886
  if (nt += 1 << V, h === 1 && 852 < nt || h === 2 && 592 < nt)
12868
12887
  return 1;
12869
- E[g = z & y] = j << 24 | V << 16 | F - p | 0;
12888
+ E[g = z & y] = Q << 24 | V << 16 | F - p | 0;
12870
12889
  }
12871
12890
  }
12872
- return z !== 0 && (E[F + z] = w - et << 24 | 64 << 16 | 0), m.bits = j, 0;
12891
+ return z !== 0 && (E[F + z] = w - et << 24 | 64 << 16 | 0), m.bits = Q, 0;
12873
12892
  };
12874
12893
  }, { "../utils/common": 41 }], 51: [function(t, e, i) {
12875
12894
  e.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
@@ -12885,11 +12904,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12885
12904
  a(w);
12886
12905
  var P = new Array(512);
12887
12906
  a(P);
12888
- var T = new Array(256);
12889
- a(T);
12907
+ var _ = new Array(256);
12908
+ a(_);
12890
12909
  var v = new Array(h);
12891
12910
  a(v);
12892
- var j, V, et, H = new Array(f);
12911
+ var Q, V, et, H = new Array(f);
12893
12912
  function nt(O, D, Z, $, B) {
12894
12913
  this.static_tree = O, this.extra_bits = D, this.extra_base = Z, this.elems = $, this.max_length = B, this.has_stree = O && O.length;
12895
12914
  }
@@ -12947,7 +12966,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
12947
12966
  function Gt(O, D, Z) {
12948
12967
  var $, B, K, it, J = 0;
12949
12968
  if (O.last_lit !== 0)
12950
- for (; $ = O.pending_buf[O.d_buf + 2 * J] << 8 | O.pending_buf[O.d_buf + 2 * J + 1], B = O.pending_buf[O.l_buf + J], J++, $ === 0 ? tt(O, B, D) : (tt(O, (K = T[B]) + d + 1, D), (it = S[K]) !== 0 && st(O, B -= v[K], it), tt(O, K = U(--$), Z), (it = L[K]) !== 0 && st(O, $ -= H[K], it)), J < O.last_lit; )
12969
+ for (; $ = O.pending_buf[O.d_buf + 2 * J] << 8 | O.pending_buf[O.d_buf + 2 * J + 1], B = O.pending_buf[O.l_buf + J], J++, $ === 0 ? tt(O, B, D) : (tt(O, (K = _[B]) + d + 1, D), (it = S[K]) !== 0 && st(O, B -= v[K], it), tt(O, K = U(--$), Z), (it = L[K]) !== 0 && st(O, $ -= H[K], it)), J < O.last_lit; )
12951
12970
  ;
12952
12971
  tt(O, R, D);
12953
12972
  }
@@ -13008,8 +13027,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13008
13027
  var D, Z, $, B, K, it = new Array(I + 1);
13009
13028
  for (B = $ = 0; B < h - 1; B++)
13010
13029
  for (v[B] = $, D = 0; D < 1 << S[B]; D++)
13011
- T[$++] = B;
13012
- for (T[$ - 1] = B, B = K = 0; B < 16; B++)
13030
+ _[$++] = B;
13031
+ for (_[$ - 1] = B, B = K = 0; B < 16; B++)
13013
13032
  for (H[B] = K, D = 0; D < 1 << L[B]; D++)
13014
13033
  P[K++] = B;
13015
13034
  for (K >>= 7; B < f; B++)
@@ -13027,8 +13046,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13027
13046
  k[2 * D + 1] = 8, D++, it[8]++;
13028
13047
  for (Ft(k, u + 1, it), D = 0; D < f; D++)
13029
13048
  w[2 * D + 1] = 5, w[2 * D] = Rt(D, 5);
13030
- j = new nt(k, S, d + 1, u, I), V = new nt(w, L, 0, f, I), et = new nt(new Array(0), N, 0, E, C);
13031
- }(), Y = !0), O.l_desc = new z(O.dyn_ltree, j), O.d_desc = new z(O.dyn_dtree, V), O.bl_desc = new z(O.bl_tree, et), O.bi_buf = 0, O.bi_valid = 0, at(O);
13049
+ Q = new nt(k, S, d + 1, u, I), V = new nt(w, L, 0, f, I), et = new nt(new Array(0), N, 0, E, C);
13050
+ }(), Y = !0), O.l_desc = new z(O.dyn_ltree, Q), O.d_desc = new z(O.dyn_dtree, V), O.bl_desc = new z(O.bl_tree, et), O.bi_buf = 0, O.bi_valid = 0, at(O);
13032
13051
  }, i._tr_stored_block = b, i._tr_flush_block = function(O, D, Z, $) {
13033
13052
  var B, K, it = 0;
13034
13053
  0 < O.level ? (O.strm.data_type === 2 && (O.strm.data_type = function(J) {
@@ -13054,7 +13073,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
13054
13073
  W(J, J.dyn_ltree, ct - 1), W(J, J.dyn_dtree, Ct - 1);
13055
13074
  }(O, O.l_desc.max_code + 1, O.d_desc.max_code + 1, it + 1), Gt(O, O.dyn_ltree, O.dyn_dtree)), at(O), $ && ft(O);
13056
13075
  }, i._tr_tally = function(O, D, Z) {
13057
- return O.pending_buf[O.d_buf + 2 * O.last_lit] = D >>> 8 & 255, O.pending_buf[O.d_buf + 2 * O.last_lit + 1] = 255 & D, O.pending_buf[O.l_buf + O.last_lit] = 255 & Z, O.last_lit++, D === 0 ? O.dyn_ltree[2 * Z]++ : (O.matches++, D--, O.dyn_ltree[2 * (T[Z] + d + 1)]++, O.dyn_dtree[2 * U(D)]++), O.last_lit === O.lit_bufsize - 1;
13076
+ return O.pending_buf[O.d_buf + 2 * O.last_lit] = D >>> 8 & 255, O.pending_buf[O.d_buf + 2 * O.last_lit + 1] = 255 & D, O.pending_buf[O.l_buf + O.last_lit] = 255 & Z, O.last_lit++, D === 0 ? O.dyn_ltree[2 * Z]++ : (O.matches++, D--, O.dyn_ltree[2 * (_[Z] + d + 1)]++, O.dyn_dtree[2 * U(D)]++), O.last_lit === O.lit_bufsize - 1;
13058
13077
  }, i._tr_align = function(O) {
13059
13078
  st(O, 2, 3), tt(O, R, k), function(D) {
13060
13079
  D.bi_valid === 16 ? (ot(D, D.bi_buf), D.bi_buf = 0, D.bi_valid = 0) : 8 <= D.bi_valid && (D.pending_buf[D.pending++] = 255 & D.bi_buf, D.bi_buf >>= 8, D.bi_valid -= 8);
@@ -14184,15 +14203,15 @@ class En {
14184
14203
  * @param text - The initial comment text.
14185
14204
  */
14186
14205
  constructor(s, t) {
14187
- _(this, "date", /* @__PURE__ */ new Date());
14188
- _(this, "author");
14189
- _(this, "guid", me.create());
14190
- _(this, "viewpoint");
14191
- _(this, "modifiedAuthor");
14192
- _(this, "modifiedDate");
14193
- _(this, "topic");
14194
- _(this, "_components");
14195
- _(this, "_comment", "");
14206
+ T(this, "date", /* @__PURE__ */ new Date());
14207
+ T(this, "author");
14208
+ T(this, "guid", me.create());
14209
+ T(this, "viewpoint");
14210
+ T(this, "modifiedAuthor");
14211
+ T(this, "modifiedDate");
14212
+ T(this, "topic");
14213
+ T(this, "_components");
14214
+ T(this, "_comment", "");
14196
14215
  this._components = s, this._comment = t;
14197
14216
  const e = this._components.get(Lt);
14198
14217
  this.author = e.config.author;
@@ -14255,30 +14274,30 @@ const ce = class ce {
14255
14274
  * @remarks
14256
14275
  * The `guid` is automatically generated upon topic creation and by no means it should change.
14257
14276
  */
14258
- _(this, "guid", me.create());
14259
- _(this, "title", ce.default.title);
14260
- _(this, "creationDate", /* @__PURE__ */ new Date());
14261
- _(this, "creationAuthor", "");
14277
+ T(this, "guid", me.create());
14278
+ T(this, "title", ce.default.title);
14279
+ T(this, "creationDate", /* @__PURE__ */ new Date());
14280
+ T(this, "creationAuthor", "");
14262
14281
  // Store viewpoint guids instead of the actual Viewpoint to prevent a possible memory leak
14263
- _(this, "viewpoints", new qe());
14282
+ T(this, "viewpoints", new qe());
14264
14283
  // Store topic guids instead of the actual Topic to prevent a possible memory leak
14265
- _(this, "relatedTopics", new qe());
14284
+ T(this, "relatedTopics", new qe());
14266
14285
  // There is no problem to store the comment it-self as it is not referenced anywhere else
14267
- _(this, "comments", new Ee());
14268
- _(this, "customData", {});
14269
- _(this, "description");
14270
- _(this, "serverAssignedId");
14271
- _(this, "dueDate");
14272
- _(this, "modifiedAuthor");
14273
- _(this, "modifiedDate");
14274
- _(this, "index");
14275
- _(this, "_type", ce.default.type);
14276
- _(this, "_status", ce.default.status);
14277
- _(this, "_priority", ce.default.priority);
14278
- _(this, "_stage", ce.default.priority);
14279
- _(this, "_assignedTo", ce.default.assignedTo);
14280
- _(this, "_labels", ce.default.labels);
14281
- _(this, "_components");
14286
+ T(this, "comments", new Ee());
14287
+ T(this, "customData", {});
14288
+ T(this, "description");
14289
+ T(this, "serverAssignedId");
14290
+ T(this, "dueDate");
14291
+ T(this, "modifiedAuthor");
14292
+ T(this, "modifiedDate");
14293
+ T(this, "index");
14294
+ T(this, "_type", ce.default.type);
14295
+ T(this, "_status", ce.default.status);
14296
+ T(this, "_priority", ce.default.priority);
14297
+ T(this, "_stage", ce.default.priority);
14298
+ T(this, "_assignedTo", ce.default.assignedTo);
14299
+ T(this, "_labels", ce.default.labels);
14300
+ T(this, "_components");
14282
14301
  this._components = s;
14283
14302
  const t = s.get(Lt);
14284
14303
  this.creationAuthor = t.config.author, this.relatedTopics.guard = (e) => e !== this.guid;
@@ -14514,7 +14533,7 @@ ${t}
14514
14533
  /**
14515
14534
  * Default values for a BCF Topic, excluding `guid`, `creationDate`, and `creationAuthor`.
14516
14535
  */
14517
- _(ce, "default", {
14536
+ T(ce, "default", {
14518
14537
  title: "BCF Topic",
14519
14538
  type: "Issue",
14520
14539
  status: "Active",
@@ -14551,8 +14570,8 @@ const Fl = (c, s) => {
14551
14570
  }, Le = class Le extends St {
14552
14571
  constructor() {
14553
14572
  super(...arguments);
14554
- _(this, "enabled", !1);
14555
- _(this, "config", {
14573
+ T(this, "enabled", !1);
14574
+ T(this, "config", {
14556
14575
  author: "jhon.doe@example.com",
14557
14576
  version: "2.1",
14558
14577
  types: /* @__PURE__ */ new Set([
@@ -14576,11 +14595,11 @@ const Fl = (c, s) => {
14576
14595
  fallbackVersionOnImport: "2.1",
14577
14596
  ignoreIncompleteTopicsOnImport: !1
14578
14597
  });
14579
- _(this, "list", new Ee());
14580
- _(this, "onSetup", new Q());
14581
- _(this, "isSetup", !1);
14582
- _(this, "onBCFImported", new Q());
14583
- _(this, "onDisposed", new Q());
14598
+ T(this, "list", new Ee());
14599
+ T(this, "onSetup", new j());
14600
+ T(this, "isSetup", !1);
14601
+ T(this, "onBCFImported", new j());
14602
+ T(this, "onDisposed", new j());
14584
14603
  }
14585
14604
  setup(t) {
14586
14605
  this.isSetup || (this.config = { ...this.config, ...t }, this.isSetup = !0, this.enabled = !0, this.onSetup.trigger());
@@ -14842,29 +14861,29 @@ ${o}
14842
14861
  PerspectiveCamera: k
14843
14862
  } = y;
14844
14863
  if (S && (F.guid = S), N) {
14845
- const { Selection: P, Visibility: T } = N;
14864
+ const { Selection: P, Visibility: _ } = N;
14846
14865
  if (P && P.Component) {
14847
- const j = Array.isArray(P.Component) ? P.Component : [P.Component];
14848
- F.selectionComponents = j.map((V) => V.IfcGuid).filter((V) => V);
14866
+ const Q = Array.isArray(P.Component) ? P.Component : [P.Component];
14867
+ F.selectionComponents = Q.map((V) => V.IfcGuid).filter((V) => V);
14849
14868
  }
14850
- if (T && "DefaultVisibility" in T && (F.defaultVisibility = T.DefaultVisibility), T && T.Exceptions && "Component" in T.Exceptions) {
14851
- const { Component: j } = T.Exceptions, V = Array.isArray(j) ? j : [j];
14869
+ if (_ && "DefaultVisibility" in _ && (F.defaultVisibility = _.DefaultVisibility), _ && _.Exceptions && "Component" in _.Exceptions) {
14870
+ const { Component: Q } = _.Exceptions, V = Array.isArray(Q) ? Q : [Q];
14852
14871
  F.exceptionComponents = V.map((et) => et.IfcGuid).filter((et) => et);
14853
14872
  }
14854
14873
  let v;
14855
14874
  l === "2.1" && (v = N.ViewSetupHints), l === "3" && (v = (C = N.Visibility) == null ? void 0 : C.ViewSetupHints), v && ("OpeningsVisible" in v && (F.openingsVisible = v.OpeningsVisible), "SpacesVisible" in v && (F.spacesVisible = v.SpacesVisible), "SpaceBoundariesVisible" in v && (F.spaceBoundariesVisible = v.SpaceBoundariesVisible));
14856
14875
  }
14857
14876
  if (x || k) {
14858
- const P = y.PerspectiveCamera ?? y.OrthogonalCamera, { CameraViewPoint: T, CameraDirection: v } = P, j = new M.Vector3(
14859
- Number(T.X),
14860
- Number(T.Z),
14861
- Number(-T.Y)
14877
+ const P = y.PerspectiveCamera ?? y.OrthogonalCamera, { CameraViewPoint: _, CameraDirection: v } = P, Q = new M.Vector3(
14878
+ Number(_.X),
14879
+ Number(_.Z),
14880
+ Number(-_.Y)
14862
14881
  ), V = new M.Vector3(
14863
14882
  Number(v.X),
14864
14883
  Number(v.Z),
14865
14884
  Number(-v.Y)
14866
14885
  ), et = {
14867
- position: { x: j.x, y: j.y, z: j.z },
14886
+ position: { x: Q.x, y: Q.y, z: Q.z },
14868
14887
  direction: { x: V.x, y: V.y, z: V.z },
14869
14888
  aspectRatio: "AspectRatio" in P ? P.AspectRatio : 1
14870
14889
  // Temporal simplification
@@ -14884,23 +14903,23 @@ ${o}
14884
14903
  if (N) {
14885
14904
  const { Coloring: P } = N;
14886
14905
  if (P && P.Color) {
14887
- const T = Array.isArray(P.Color) ? P.Color : [P.Color];
14888
- for (const v of T) {
14889
- const { Color: j, Component: V } = v, H = (Array.isArray(V) ? V : [V]).map((nt) => nt.IfcGuid);
14890
- w.componentColors.set(j, H);
14906
+ const _ = Array.isArray(P.Color) ? P.Color : [P.Color];
14907
+ for (const v of _) {
14908
+ const { Color: Q, Component: V } = v, H = (Array.isArray(V) ? V : [V]).map((nt) => nt.IfcGuid);
14909
+ w.componentColors.set(Q, H);
14891
14910
  }
14892
14911
  }
14893
14912
  }
14894
14913
  if (u.push(w), L) {
14895
- const P = this.components.get(ln), T = Array.isArray(L.ClippingPlane) ? L.ClippingPlane : [L.ClippingPlane];
14896
- for (const v of T) {
14897
- const { Location: j, Direction: V } = v;
14898
- if (!(j && V))
14914
+ const P = this.components.get(ln), _ = Array.isArray(L.ClippingPlane) ? L.ClippingPlane : [L.ClippingPlane];
14915
+ for (const v of _) {
14916
+ const { Location: Q, Direction: V } = v;
14917
+ if (!(Q && V))
14899
14918
  continue;
14900
14919
  const et = new M.Vector3(
14901
- j.X,
14902
- j.Z,
14903
- -j.Y
14920
+ Q.X,
14921
+ Q.Z,
14922
+ -Q.Y
14904
14923
  ), H = new M.Vector3(
14905
14924
  V.X,
14906
14925
  -V.Z,
@@ -14928,13 +14947,13 @@ ${o}
14928
14947
  continue;
14929
14948
  const P = new di(this.components);
14930
14949
  P.guid = S ?? P.guid;
14931
- const T = this.getMarkupRelatedTopics(y, l);
14932
- p[P.guid] = new Set(T), P.type = L ?? P.type, P.status = N ?? P.status, P.title = x ?? P.title, P.creationDate = k ? new Date(k) : P.creationDate, P.creationAuthor = w ?? P.creationAuthor, P.serverAssignedId = F.ServerAssignedId, P.priority = F.Priority, P.index = F.Index, P.modifiedDate = F.ModifiedDate ? new Date(F.ModifiedDate) : void 0, P.modifiedAuthor = F.ModifiedAuthor, P.dueDate = F.DueDate ? new Date(F.DueDate) : void 0, P.assignedTo = F.AssignedTo, P.description = F.Description, P.stage = F.Stage;
14950
+ const _ = this.getMarkupRelatedTopics(y, l);
14951
+ p[P.guid] = new Set(_), P.type = L ?? P.type, P.status = N ?? P.status, P.title = x ?? P.title, P.creationDate = k ? new Date(k) : P.creationDate, P.creationAuthor = w ?? P.creationAuthor, P.serverAssignedId = F.ServerAssignedId, P.priority = F.Priority, P.index = F.Index, P.modifiedDate = F.ModifiedDate ? new Date(F.ModifiedDate) : void 0, P.modifiedAuthor = F.ModifiedAuthor, P.dueDate = F.DueDate ? new Date(F.DueDate) : void 0, P.assignedTo = F.AssignedTo, P.description = F.Description, P.stage = F.Stage;
14933
14952
  const v = this.getMarkupLabels(y, l);
14934
14953
  for (const et of v)
14935
14954
  P.labels.add(et);
14936
- const j = this.getMarkupComments(y, l);
14937
- for (const et of j)
14955
+ const Q = this.getMarkupComments(y, l);
14956
+ for (const et of Q)
14938
14957
  P.comments.set(et.guid, et);
14939
14958
  const V = this.getMarkupViewpoints(y, l);
14940
14959
  for (const et of V) {
@@ -14956,7 +14975,7 @@ ${o}
14956
14975
  return this.onBCFImported.trigger(I), { viewpoints: u, topics: I };
14957
14976
  }
14958
14977
  };
14959
- _(Le, "uuid", "de977976-e4f6-4e4f-a01a-204727839802"), _(Le, "xmlParser", new wl.XMLParser({
14978
+ T(Le, "uuid", "de977976-e4f6-4e4f-a01a-204727839802"), T(Le, "xmlParser", new wl.XMLParser({
14960
14979
  allowBooleanAttributes: !0,
14961
14980
  attributeNamePrefix: "",
14962
14981
  ignoreAttributes: !1,
@@ -14974,12 +14993,12 @@ const Jt = class Jt extends St {
14974
14993
  constructor(t) {
14975
14994
  super(t);
14976
14995
  /** {@link Component.enabled} */
14977
- _(this, "enabled", !0);
14996
+ T(this, "enabled", !0);
14978
14997
  /** {@link Disposable.onDisposed} */
14979
- _(this, "onDisposed", new Q());
14980
- _(this, "_absoluteMin");
14981
- _(this, "_absoluteMax");
14982
- _(this, "_meshes", []);
14998
+ T(this, "onDisposed", new j());
14999
+ T(this, "_absoluteMin");
15000
+ T(this, "_absoluteMax");
15001
+ T(this, "_meshes", []);
14983
15002
  this.components.add(Jt.uuid, this), this._absoluteMin = Jt.newBound(!0), this._absoluteMax = Jt.newBound(!1);
14984
15003
  }
14985
15004
  /**
@@ -15245,21 +15264,21 @@ const Jt = class Jt extends St {
15245
15264
  return new M.Box3(r, o);
15246
15265
  }
15247
15266
  };
15248
- _(Jt, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
15267
+ T(Jt, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
15249
15268
  let mn = Jt;
15250
15269
  const gi = class gi extends St {
15251
15270
  constructor(t) {
15252
15271
  super(t);
15253
15272
  /** {@link Component.enabled} */
15254
- _(this, "enabled", !0);
15273
+ T(this, "enabled", !0);
15255
15274
  /**
15256
15275
  * A map representing the classification systems.
15257
15276
  * The key is the system name, and the value is an object representing the classes within the system.
15258
15277
  */
15259
- _(this, "list", {});
15278
+ T(this, "list", {});
15260
15279
  /** {@link Disposable.onDisposed} */
15261
- _(this, "onDisposed", new Q());
15262
- _(this, "onFragmentsDisposed", (t) => {
15280
+ T(this, "onDisposed", new j());
15281
+ T(this, "onFragmentsDisposed", (t) => {
15263
15282
  const { groupID: e, fragmentIDs: i } = t;
15264
15283
  for (const n in this.list) {
15265
15284
  const r = this.list[n], o = Object.keys(r);
@@ -15602,32 +15621,32 @@ const gi = class gi extends St {
15602
15621
  * A unique identifier for the component.
15603
15622
  * This UUID is used to register the component within the Components system.
15604
15623
  */
15605
- _(gi, "uuid", "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7");
15624
+ T(gi, "uuid", "e25a7f3c-46c4-4a14-9d3d-5115f24ebeb7");
15606
15625
  let bs = gi;
15607
15626
  const Ci = class Ci extends St {
15608
15627
  constructor(t) {
15609
15628
  super(t);
15610
15629
  /** {@link Disposable.onDisposed} */
15611
- _(this, "onDisposed", new Q());
15630
+ T(this, "onDisposed", new j());
15612
15631
  /** {@link Component.enabled} */
15613
- _(this, "enabled", !0);
15632
+ T(this, "enabled", !0);
15614
15633
  /**
15615
15634
  * The height of the explosion animation.
15616
15635
  * This property determines the vertical distance by which fragments are moved during the explosion.
15617
15636
  * Default value is 10.
15618
15637
  */
15619
- _(this, "height", 10);
15638
+ T(this, "height", 10);
15620
15639
  /**
15621
15640
  * The group name used for the explosion animation.
15622
15641
  * This property specifies the group of fragments that will be affected by the explosion.
15623
15642
  * Default value is "storeys".
15624
15643
  */
15625
- _(this, "groupName", "spatialStructures");
15644
+ T(this, "groupName", "spatialStructures");
15626
15645
  /**
15627
15646
  * A set of strings representing the exploded items.
15628
15647
  * This set is used to keep track of which items have been exploded.
15629
15648
  */
15630
- _(this, "list", /* @__PURE__ */ new Set());
15649
+ T(this, "list", /* @__PURE__ */ new Set());
15631
15650
  t.add(Ci.uuid, this);
15632
15651
  }
15633
15652
  /** {@link Disposable.dispose} */
@@ -15672,13 +15691,13 @@ const Ci = class Ci extends St {
15672
15691
  * A unique identifier for the component.
15673
15692
  * This UUID is used to register the component within the Components system.
15674
15693
  */
15675
- _(Ci, "uuid", "d260618b-ce88-4c7d-826c-6debb91de3e2");
15694
+ T(Ci, "uuid", "d260618b-ce88-4c7d-826c-6debb91de3e2");
15676
15695
  let wr = Ci;
15677
15696
  const Ti = class Ti extends St {
15678
15697
  constructor(t) {
15679
15698
  super(t);
15680
15699
  /** {@link Component.enabled} */
15681
- _(this, "enabled", !0);
15700
+ T(this, "enabled", !0);
15682
15701
  this.components.add(Ti.uuid, this);
15683
15702
  }
15684
15703
  /**
@@ -15728,7 +15747,7 @@ const Ti = class Ti extends St {
15728
15747
  * A unique identifier for the component.
15729
15748
  * This UUID is used to register the component within the Components system.
15730
15749
  */
15731
- _(Ti, "uuid", "dd9ccf2d-8a21-4821-b7f6-2949add16a29");
15750
+ T(Ti, "uuid", "dd9ccf2d-8a21-4821-b7f6-2949add16a29");
15732
15751
  let In = Ti;
15733
15752
  class Sl extends wn {
15734
15753
  constructor() {
@@ -15737,12 +15756,12 @@ class Sl extends wn {
15737
15756
  * Minimum number of geometries to be streamed.
15738
15757
  * Defaults to 10 geometries.
15739
15758
  */
15740
- _(this, "minGeometrySize", 10);
15759
+ T(this, "minGeometrySize", 10);
15741
15760
  /**
15742
15761
  * Minimum amount of assets to be streamed.
15743
15762
  * Defaults to 1000 assets.
15744
15763
  */
15745
- _(this, "minAssetsSize", 1e3);
15764
+ T(this, "minAssetsSize", 1e3);
15746
15765
  }
15747
15766
  }
15748
15767
  const _i = class _i extends St {
@@ -15752,44 +15771,44 @@ const _i = class _i extends St {
15752
15771
  * Event triggered when geometry is streamed.
15753
15772
  * Contains the streamed geometry data and its buffer.
15754
15773
  */
15755
- _(this, "onGeometryStreamed", new Q());
15774
+ T(this, "onGeometryStreamed", new j());
15756
15775
  /**
15757
15776
  * Event triggered when assets are streamed.
15758
15777
  * Contains the streamed assets.
15759
15778
  */
15760
- _(this, "onAssetStreamed", new Q());
15779
+ T(this, "onAssetStreamed", new j());
15761
15780
  /**
15762
15781
  * Event triggered to indicate the progress of the streaming process.
15763
15782
  * Contains the progress percentage.
15764
15783
  */
15765
- _(this, "onProgress", new Q());
15784
+ T(this, "onProgress", new j());
15766
15785
  /**
15767
15786
  * Event triggered when the IFC file is loaded.
15768
15787
  * Contains the loaded IFC file data.
15769
15788
  */
15770
- _(this, "onIfcLoaded", new Q());
15789
+ T(this, "onIfcLoaded", new j());
15771
15790
  /** {@link Disposable.onDisposed} */
15772
- _(this, "onDisposed", new Q());
15791
+ T(this, "onDisposed", new j());
15773
15792
  /**
15774
15793
  * Settings for the IfcGeometryTiler.
15775
15794
  */
15776
- _(this, "settings", new Sl());
15795
+ T(this, "settings", new Sl());
15777
15796
  /** {@link Component.enabled} */
15778
- _(this, "enabled", !0);
15797
+ T(this, "enabled", !0);
15779
15798
  /**
15780
15799
  * The WebIFC API instance used for IFC file processing.
15781
15800
  */
15782
- _(this, "webIfc", new X.IfcAPI());
15783
- _(this, "_spatialTree", new kr());
15784
- _(this, "_metaData", new Yr());
15785
- _(this, "_visitedGeometries", /* @__PURE__ */ new Map());
15786
- _(this, "_streamSerializer", new ye.StreamSerializer());
15787
- _(this, "_geometries", /* @__PURE__ */ new Map());
15788
- _(this, "_geometryCount", 0);
15789
- _(this, "_civil", new Vr());
15790
- _(this, "_groupSerializer", new ye.Serializer());
15791
- _(this, "_assets", []);
15792
- _(this, "_meshesWithHoles", /* @__PURE__ */ new Set());
15801
+ T(this, "webIfc", new X.IfcAPI());
15802
+ T(this, "_spatialTree", new kr());
15803
+ T(this, "_metaData", new Yr());
15804
+ T(this, "_visitedGeometries", /* @__PURE__ */ new Map());
15805
+ T(this, "_streamSerializer", new ye.StreamSerializer());
15806
+ T(this, "_geometries", /* @__PURE__ */ new Map());
15807
+ T(this, "_geometryCount", 0);
15808
+ T(this, "_civil", new Vr());
15809
+ T(this, "_groupSerializer", new ye.Serializer());
15810
+ T(this, "_assets", []);
15811
+ T(this, "_meshesWithHoles", /* @__PURE__ */ new Set());
15793
15812
  this.components.add(_i.uuid, this), this.settings.excludedCategories.add(X.IFCOPENINGELEMENT);
15794
15813
  }
15795
15814
  /** {@link Disposable.dispose} */
@@ -15955,7 +15974,7 @@ const _i = class _i extends St {
15955
15974
  * A unique identifier for the component.
15956
15975
  * This UUID is used to register the component within the Components system.
15957
15976
  */
15958
- _(_i, "uuid", "d9999a00-e1f5-4d3f-8cfe-c56e08609764");
15977
+ T(_i, "uuid", "d9999a00-e1f5-4d3f-8cfe-c56e08609764");
15959
15978
  let Fr = _i;
15960
15979
  class Ol extends wn {
15961
15980
  constructor() {
@@ -15964,7 +15983,7 @@ class Ol extends wn {
15964
15983
  * Amount of properties to be streamed.
15965
15984
  * Defaults to 100 properties.
15966
15985
  */
15967
- _(this, "propertiesSize", 100);
15986
+ T(this, "propertiesSize", 100);
15968
15987
  }
15969
15988
  }
15970
15989
  class Nl extends St {
@@ -15974,29 +15993,29 @@ class Nl extends St {
15974
15993
  * An event that is triggered when properties are streamed from the IFC file.
15975
15994
  * The event provides the type of the IFC entity and the corresponding data.
15976
15995
  */
15977
- _(this, "onPropertiesStreamed", new oi());
15996
+ T(this, "onPropertiesStreamed", new oi());
15978
15997
  /**
15979
15998
  * An event that is triggered to indicate the progress of the streaming process.
15980
15999
  * The event provides a number between 0 and 1 representing the progress percentage.
15981
16000
  */
15982
- _(this, "onProgress", new oi());
16001
+ T(this, "onProgress", new oi());
15983
16002
  /**
15984
16003
  * An event that is triggered when indices are streamed from the IFC file.
15985
16004
  * The event provides a map of indices, where the key is the entity type and the value is another map of indices.
15986
16005
  */
15987
- _(this, "onIndicesStreamed", new oi());
16006
+ T(this, "onIndicesStreamed", new oi());
15988
16007
  /** {@link Disposable.onDisposed} */
15989
- _(this, "onDisposed", new Q());
16008
+ T(this, "onDisposed", new j());
15990
16009
  /** {@link Component.enabled} */
15991
- _(this, "enabled", !0);
16010
+ T(this, "enabled", !0);
15992
16011
  /**
15993
16012
  * An instance of the PropertiesStreamingSettings class, which holds the settings for the streaming process.
15994
16013
  */
15995
- _(this, "settings", new Ol());
16014
+ T(this, "settings", new Ol());
15996
16015
  /**
15997
16016
  * An instance of the IfcAPI class from the Web-IFC library, which provides methods for reading and processing IFC data.
15998
16017
  */
15999
- _(this, "webIfc", new X.IfcAPI());
16018
+ T(this, "webIfc", new X.IfcAPI());
16000
16019
  }
16001
16020
  /** {@link Disposable.dispose} */
16002
16021
  async dispose() {
@@ -16085,19 +16104,19 @@ class Nl extends St {
16085
16104
  * A unique identifier for the component.
16086
16105
  * This UUID is used to register the component within the Components system.
16087
16106
  */
16088
- _(Nl, "uuid", "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b");
16107
+ T(Nl, "uuid", "88d2c89c-ce32-47d7-8cb6-d51e4b311a0b");
16089
16108
  class Kr {
16090
16109
  constructor(s, t, e) {
16091
- _(this, "title");
16092
- _(this, "guid", me.create());
16110
+ T(this, "title");
16111
+ T(this, "guid", me.create());
16093
16112
  /**
16094
16113
  * ClippingPlanes can be used to define a subsection of a building model that is related to the topic.
16095
16114
  * Each clipping plane is defined by Location and Direction.
16096
16115
  * The Direction vector points in the invisible direction meaning the half-space that is clipped.
16097
16116
  * @experimental
16098
16117
  */
16099
- _(this, "clippingPlanes", new qe());
16100
- _(this, "camera", {
16118
+ T(this, "clippingPlanes", new qe());
16119
+ T(this, "camera", {
16101
16120
  aspectRatio: 0,
16102
16121
  fov: 0,
16103
16122
  direction: { x: 0, y: 0, z: 80 },
@@ -16106,44 +16125,44 @@ class Kr {
16106
16125
  /**
16107
16126
  * A list of components GUIDs to hide when defaultVisibility = true or to show when defaultVisibility = false
16108
16127
  */
16109
- _(this, "exceptionComponents", new qe());
16128
+ T(this, "exceptionComponents", new qe());
16110
16129
  /**
16111
16130
  * A list of components GUIDs that should be selected (highlighted) when displaying a viewpoint.
16112
16131
  */
16113
- _(this, "selectionComponents", new qe());
16132
+ T(this, "selectionComponents", new qe());
16114
16133
  /**
16115
16134
  * A map of colors and components GUIDs that should be colorized when displaying a viewpoint.
16116
16135
  * For this to work, call viewpoint.colorize()
16117
16136
  */
16118
- _(this, "componentColors", new Ee());
16137
+ T(this, "componentColors", new Ee());
16119
16138
  /**
16120
16139
  * Boolean flags to allow fine control over the visibility of spaces.
16121
16140
  * A typical use of these flags is when DefaultVisibility=true but spaces should remain hidden.
16122
16141
  * @default false
16123
16142
  */
16124
- _(this, "spacesVisible", !1);
16143
+ T(this, "spacesVisible", !1);
16125
16144
  /**
16126
16145
  * Boolean flags to allow fine control over the visibility of space boundaries.
16127
16146
  * A typical use of these flags is when DefaultVisibility=true but space boundaries should remain hidden.
16128
16147
  * @default false
16129
16148
  */
16130
- _(this, "spaceBoundariesVisible", !1);
16149
+ T(this, "spaceBoundariesVisible", !1);
16131
16150
  /**
16132
16151
  * Boolean flags to allow fine control over the visibility of openings.
16133
16152
  * A typical use of these flags is when DefaultVisibility=true but openings should remain hidden.
16134
16153
  * @default false
16135
16154
  */
16136
- _(this, "openingsVisible", !1);
16155
+ T(this, "openingsVisible", !1);
16137
16156
  /**
16138
16157
  * When true, all components should be visible unless listed in the exceptions
16139
16158
  * When false all components should be invisible unless listed in the exceptions
16140
16159
  */
16141
- _(this, "defaultVisibility", !0);
16142
- _(this, "_components");
16160
+ T(this, "defaultVisibility", !0);
16161
+ T(this, "_components");
16143
16162
  /**
16144
16163
  * Represents the world in which the viewpoints are created and managed.
16145
16164
  */
16146
- _(this, "world");
16165
+ T(this, "world");
16147
16166
  const i = { setCamera: !0, ...e }, { data: n, setCamera: r } = i;
16148
16167
  this._components = s, this.world = t, n && (this.guid = n.guid ?? this.guid, this.set(n)), r && this.updateCamera();
16149
16168
  }
@@ -16488,17 +16507,17 @@ class Kr {
16488
16507
  const Ai = class Ai extends St {
16489
16508
  constructor(t) {
16490
16509
  super(t);
16491
- _(this, "enabled", !0);
16510
+ T(this, "enabled", !0);
16492
16511
  /**
16493
16512
  * A DataMap that stores Viewpoint instances, indexed by their unique identifiers (guid).
16494
16513
  * This map is used to manage and retrieve Viewpoint instances within the Viewpoints component.
16495
16514
  */
16496
- _(this, "list", new Ee());
16497
- _(this, "isSetup", !1);
16498
- _(this, "onSetup", new Q());
16499
- _(this, "config", { overwriteColors: !1 });
16515
+ T(this, "list", new Ee());
16516
+ T(this, "isSetup", !1);
16517
+ T(this, "onSetup", new j());
16518
+ T(this, "config", { overwriteColors: !1 });
16500
16519
  /** {@link Disposable.onDisposed} */
16501
- _(this, "onDisposed", new Q());
16520
+ T(this, "onDisposed", new j());
16502
16521
  t.add(Ai.uuid, this);
16503
16522
  }
16504
16523
  /**
@@ -16526,58 +16545,58 @@ const Ai = class Ai extends St {
16526
16545
  this.list.dispose(), this.onDisposed.trigger(), this.onDisposed.reset();
16527
16546
  }
16528
16547
  };
16529
- _(Ai, "uuid", "ee867824-a796-408d-8aa0-4e5962a83c66");
16548
+ T(Ai, "uuid", "ee867824-a796-408d-8aa0-4e5962a83c66");
16530
16549
  let te = Ai;
16531
16550
  class bl {
16532
16551
  constructor(s) {
16533
16552
  /** {@link Disposable.onDisposed} */
16534
- _(this, "onDisposed", new Q());
16553
+ T(this, "onDisposed", new j());
16535
16554
  /** {@link Updateable.onAfterUpdate} */
16536
- _(this, "onAfterUpdate", new Q());
16555
+ T(this, "onAfterUpdate", new j());
16537
16556
  /** {@link Updateable.onBeforeUpdate} */
16538
- _(this, "onBeforeUpdate", new Q());
16557
+ T(this, "onBeforeUpdate", new j());
16539
16558
  /** {@link Resizeable.onResize} */
16540
- _(this, "onResize", new Q());
16559
+ T(this, "onResize", new j());
16541
16560
  /**
16542
16561
  * The front offset of the minimap.
16543
16562
  * It determines how much the minimap's view is offset from the camera's view.
16544
16563
  * By pushing the map to the front, what the user sees on screen corresponds with what they see on the map
16545
16564
  */
16546
- _(this, "frontOffset", 0);
16565
+ T(this, "frontOffset", 0);
16547
16566
  /**
16548
16567
  * The override material for the minimap.
16549
16568
  * It is used to render the depth information of the world onto the minimap.
16550
16569
  */
16551
- _(this, "overrideMaterial", new M.MeshDepthMaterial());
16570
+ T(this, "overrideMaterial", new M.MeshDepthMaterial());
16552
16571
  /**
16553
16572
  * The background color of the minimap.
16554
16573
  * It is used to set the background color of the minimap's renderer.
16555
16574
  */
16556
- _(this, "backgroundColor", new M.Color(395274));
16575
+ T(this, "backgroundColor", new M.Color(395274));
16557
16576
  /**
16558
16577
  * The WebGL renderer for the minimap.
16559
16578
  * It is used to render the minimap onto the screen.
16560
16579
  */
16561
- _(this, "renderer");
16580
+ T(this, "renderer");
16562
16581
  /**
16563
16582
  * A flag indicating whether the minimap is enabled.
16564
16583
  * If disabled, the minimap will not update or render.
16565
16584
  */
16566
- _(this, "enabled", !0);
16585
+ T(this, "enabled", !0);
16567
16586
  /**
16568
16587
  * The world in which the minimap is displayed.
16569
16588
  * It provides access to the 3D scene, camera, and other relevant world elements.
16570
16589
  */
16571
- _(this, "world");
16572
- _(this, "_lockRotation", !0);
16573
- _(this, "_camera");
16574
- _(this, "_plane");
16575
- _(this, "_size", new M.Vector2(320, 160));
16576
- _(this, "_tempVector1", new M.Vector3());
16577
- _(this, "_tempVector2", new M.Vector3());
16578
- _(this, "_tempTarget", new M.Vector3());
16579
- _(this, "down", new M.Vector3(0, -1, 0));
16580
- _(this, "updatePlanes", () => {
16590
+ T(this, "world");
16591
+ T(this, "_lockRotation", !0);
16592
+ T(this, "_camera");
16593
+ T(this, "_plane");
16594
+ T(this, "_size", new M.Vector2(320, 160));
16595
+ T(this, "_tempVector1", new M.Vector3());
16596
+ T(this, "_tempVector2", new M.Vector3());
16597
+ T(this, "_tempTarget", new M.Vector3());
16598
+ T(this, "down", new M.Vector3(0, -1, 0));
16599
+ T(this, "updatePlanes", () => {
16581
16600
  if (!this.world.renderer)
16582
16601
  throw new Error("The given world must have a renderer!");
16583
16602
  const s = [], t = this.world.renderer.three;
@@ -16673,17 +16692,17 @@ const Ri = class Ri extends St {
16673
16692
  constructor(t) {
16674
16693
  super(t);
16675
16694
  /** {@link Updateable.onAfterUpdate} */
16676
- _(this, "onAfterUpdate", new Q());
16695
+ T(this, "onAfterUpdate", new j());
16677
16696
  /** {@link Updateable.onBeforeUpdate} */
16678
- _(this, "onBeforeUpdate", new Q());
16697
+ T(this, "onBeforeUpdate", new j());
16679
16698
  /** {@link Disposable.onDisposed} */
16680
- _(this, "onDisposed", new Q());
16699
+ T(this, "onDisposed", new j());
16681
16700
  /** {@link Component.enabled} */
16682
- _(this, "enabled", !0);
16701
+ T(this, "enabled", !0);
16683
16702
  /**
16684
16703
  * A collection of {@link MiniMap} instances, each associated with a unique world ID.
16685
16704
  */
16686
- _(this, "list", /* @__PURE__ */ new Map());
16705
+ T(this, "list", /* @__PURE__ */ new Map());
16687
16706
  this.components.add(Ri.uuid, this);
16688
16707
  }
16689
16708
  /**
@@ -16727,13 +16746,13 @@ const Ri = class Ri extends St {
16727
16746
  * A unique identifier for the component.
16728
16747
  * This UUID is used to register the component within the Components system.
16729
16748
  */
16730
- _(Ri, "uuid", "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f");
16749
+ T(Ri, "uuid", "39ad6aad-84c8-4adf-a1e0-7f25313a9e7f");
16731
16750
  let Sr = Ri;
16732
16751
  const yi = class yi extends St {
16733
16752
  constructor(t) {
16734
16753
  super(t);
16735
16754
  /** {@link Component.enabled} */
16736
- _(this, "enabled", !0);
16755
+ T(this, "enabled", !0);
16737
16756
  t.add(yi.uuid, this);
16738
16757
  }
16739
16758
  /**
@@ -16986,7 +17005,7 @@ const yi = class yi extends St {
16986
17005
  * A unique identifier for the component.
16987
17006
  * This UUID is used to register the component within the Components system.
16988
17007
  */
16989
- _(yi, "uuid", "267ca032-672f-4cb0-afa9-d24e904f39d6");
17008
+ T(yi, "uuid", "267ca032-672f-4cb0-afa9-d24e904f39d6");
16990
17009
  let Or = yi;
16991
17010
  export {
16992
17011
  oi as AsyncEvent,
@@ -17007,7 +17026,7 @@ export {
17007
17026
  Ee as DataMap,
17008
17027
  qe as DataSet,
17009
17028
  Fe as Disposer,
17010
- Q as Event,
17029
+ j as Event,
17011
17030
  wr as Exploder,
17012
17031
  tc as FirstPersonMode,
17013
17032
  _t as FragmentsManager,