iflow-engine 1.0.6 → 1.0.7

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.
@@ -1612,17 +1612,17 @@ class K0 extends Ii {
1612
1612
  this.activeDialogs.forEach((e) => e.destroy()), this.activeDialogs = [], super.destroy();
1613
1613
  }
1614
1614
  }
1615
- const Ma = "181", cr = { ROTATE: 0, DOLLY: 1, PAN: 2 }, rr = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, $0 = 0, Qu = 1, J0 = 2, Hp = 1, Vp = 2, Si = 3, Fn = 0, un = 1, Tt = 2, Wt = 0, hr = 1, Zc = 2, ed = 3, td = 4, Gp = 5, Zn = 100, Q0 = 101, eg = 102, tg = 103, ng = 104, Qr = 200, ig = 201, sg = 202, rg = 203, Yc = 204, Kc = 205, $c = 206, ag = 207, Jc = 208, og = 209, lg = 210, cg = 211, hg = 212, ug = 213, dg = 214, Qc = 0, eh = 1, th = 2, pr = 3, nh = 4, ih = 5, sh = 6, rh = 7, pl = 0, fg = 1, pg = 2, Ki = 0, Wp = 1, Xp = 2, jp = 3, uu = 4, qp = 5, Zp = 6, Yp = 7, nd = "attached", mg = "detached", Kp = 300, mr = 301, gr = 302, ah = 303, oh = 304, ml = 306, hi = 1e3, oi = 1001, nl = 1002, Qt = 1003, $p = 1004, ea = 1005, Yt = 1006, Vo = 1007, Ai = 1008, Jn = 1009, Jp = 1010, Qp = 1011, fa = 1012, du = 1013, _s = 1014, $n = 1015, On = 1016, fu = 1017, pu = 1018, xr = 1020, em = 35902, tm = 35899, nm = 1021, im = 1022, xn = 1023, pa = 1026, vr = 1027, mu = 1028, gu = 1029, xu = 1030, vu = 1031, bu = 1033, Go = 33776, Wo = 33777, Xo = 33778, jo = 33779, lh = 35840, ch = 35841, hh = 35842, uh = 35843, dh = 36196, fh = 37492, ph = 37496, mh = 37808, gh = 37809, xh = 37810, vh = 37811, bh = 37812, yh = 37813, _h = 37814, wh = 37815, Mh = 37816, Sh = 37817, Eh = 37818, Th = 37819, Ah = 37820, Ch = 37821, Ph = 36492, Rh = 36494, Lh = 36495, Dh = 36283, Ih = 36284, Nh = 36285, Bh = 36286, ma = 2300, ga = 2301, Rl = 2302, id = 2400, sd = 2401, rd = 2402, gg = 2500, xg = 0, sm = 1, Uh = 2, vg = 3200, bg = 3201, Sa = 0, yg = 1, Xi = "", vt = "srgb", Nt = "srgb-linear", il = "linear", lt = "srgb", Ns = 7680, ad = 519, _g = 512, wg = 513, Mg = 514, rm = 515, Sg = 516, Eg = 517, Tg = 518, Ag = 519, Oh = 35044, od = "300 es", li = 2e3, sl = 2001;
1615
+ const Ma = "181", cr = { ROTATE: 0, DOLLY: 1, PAN: 2 }, rr = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, $0 = 0, Qu = 1, J0 = 2, Hp = 1, Vp = 2, Si = 3, Fn = 0, un = 1, Tt = 2, Wt = 0, hr = 1, Zc = 2, ed = 3, td = 4, Gp = 5, Zn = 100, Q0 = 101, eg = 102, tg = 103, ng = 104, ea = 200, ig = 201, sg = 202, rg = 203, Yc = 204, Kc = 205, $c = 206, ag = 207, Jc = 208, og = 209, lg = 210, cg = 211, hg = 212, ug = 213, dg = 214, Qc = 0, eh = 1, th = 2, pr = 3, nh = 4, ih = 5, sh = 6, rh = 7, pl = 0, fg = 1, pg = 2, Ki = 0, Wp = 1, Xp = 2, jp = 3, uu = 4, qp = 5, Zp = 6, Yp = 7, nd = "attached", mg = "detached", Kp = 300, mr = 301, gr = 302, ah = 303, oh = 304, ml = 306, hi = 1e3, oi = 1001, nl = 1002, Qt = 1003, $p = 1004, ta = 1005, Yt = 1006, Vo = 1007, Ai = 1008, Jn = 1009, Jp = 1010, Qp = 1011, pa = 1012, du = 1013, _s = 1014, $n = 1015, On = 1016, fu = 1017, pu = 1018, xr = 1020, em = 35902, tm = 35899, nm = 1021, im = 1022, xn = 1023, ma = 1026, vr = 1027, mu = 1028, gu = 1029, xu = 1030, vu = 1031, bu = 1033, Go = 33776, Wo = 33777, Xo = 33778, jo = 33779, lh = 35840, ch = 35841, hh = 35842, uh = 35843, dh = 36196, fh = 37492, ph = 37496, mh = 37808, gh = 37809, xh = 37810, vh = 37811, bh = 37812, yh = 37813, _h = 37814, wh = 37815, Mh = 37816, Sh = 37817, Eh = 37818, Th = 37819, Ah = 37820, Ch = 37821, Ph = 36492, Rh = 36494, Lh = 36495, Dh = 36283, Ih = 36284, Nh = 36285, Bh = 36286, ga = 2300, xa = 2301, Rl = 2302, id = 2400, sd = 2401, rd = 2402, gg = 2500, xg = 0, sm = 1, Uh = 2, vg = 3200, bg = 3201, Sa = 0, yg = 1, Xi = "", vt = "srgb", Nt = "srgb-linear", il = "linear", lt = "srgb", Ns = 7680, ad = 519, _g = 512, wg = 513, Mg = 514, rm = 515, Sg = 516, Eg = 517, Tg = 518, Ag = 519, Oh = 35044, od = "300 es", li = 2e3, sl = 2001;
1616
1616
  function am(s) {
1617
1617
  for (let e = s.length - 1; e >= 0; --e)
1618
1618
  if (s[e] >= 65535) return !0;
1619
1619
  return !1;
1620
1620
  }
1621
- function xa(s) {
1621
+ function va(s) {
1622
1622
  return document.createElementNS("http://www.w3.org/1999/xhtml", s);
1623
1623
  }
1624
1624
  function Cg() {
1625
- const s = xa("canvas");
1625
+ const s = va("canvas");
1626
1626
  return s.style.display = "block", s;
1627
1627
  }
1628
1628
  const ld = {};
@@ -1638,7 +1638,7 @@ function et(...s) {
1638
1638
  const e = "THREE." + s.shift();
1639
1639
  console.error(e, ...s);
1640
1640
  }
1641
- function va(...s) {
1641
+ function ba(...s) {
1642
1642
  const e = s.join(" ");
1643
1643
  e in ld || (ld[e] = !0, He(...s));
1644
1644
  }
@@ -1717,7 +1717,7 @@ class Ts {
1717
1717
  }
1718
1718
  const en = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
1719
1719
  let cd = 1234567;
1720
- const sa = Math.PI / 180, br = 180 / Math.PI;
1720
+ const ra = Math.PI / 180, br = 180 / Math.PI;
1721
1721
  function kn() {
1722
1722
  const s = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
1723
1723
  return (en[s & 255] + en[s >> 8 & 255] + en[s >> 16 & 255] + en[s >> 24 & 255] + "-" + en[e & 255] + en[e >> 8 & 255] + "-" + en[e >> 16 & 15 | 64] + en[e >> 24 & 255] + "-" + en[t & 63 | 128] + en[t >> 8 & 255] + "-" + en[t >> 16 & 255] + en[t >> 24 & 255] + en[n & 255] + en[n >> 8 & 255] + en[n >> 16 & 255] + en[n >> 24 & 255]).toLowerCase();
@@ -1734,11 +1734,11 @@ function Rg(s, e, t, n, i) {
1734
1734
  function Lg(s, e, t) {
1735
1735
  return s !== e ? (t - s) / (e - s) : 0;
1736
1736
  }
1737
- function ra(s, e, t) {
1737
+ function aa(s, e, t) {
1738
1738
  return (1 - t) * s + t * e;
1739
1739
  }
1740
1740
  function Dg(s, e, t, n) {
1741
- return ra(s, e, 1 - Math.exp(-t * n));
1741
+ return aa(s, e, 1 - Math.exp(-t * n));
1742
1742
  }
1743
1743
  function Ig(s, e = 1) {
1744
1744
  return e - Math.abs(yu(s, e * 2) - e);
@@ -1764,7 +1764,7 @@ function Fg(s) {
1764
1764
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
1765
1765
  }
1766
1766
  function zg(s) {
1767
- return s * sa;
1767
+ return s * ra;
1768
1768
  }
1769
1769
  function Hg(s) {
1770
1770
  return s * br;
@@ -1843,8 +1843,8 @@ function ct(s, e) {
1843
1843
  throw new Error("Invalid component type.");
1844
1844
  }
1845
1845
  }
1846
- const aa = {
1847
- DEG2RAD: sa,
1846
+ const oa = {
1847
+ DEG2RAD: ra,
1848
1848
  RAD2DEG: br,
1849
1849
  /**
1850
1850
  * Generate a [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier)
@@ -1914,7 +1914,7 @@ const aa = {
1914
1914
  * @param {number} t - The interpolation factor in the closed interval `[0, 1]`.
1915
1915
  * @return {number} The interpolated value.
1916
1916
  */
1917
- lerp: ra,
1917
+ lerp: aa,
1918
1918
  /**
1919
1919
  * Smoothly interpolate a number from `x` to `y` in a spring-like manner using a delta
1920
1920
  * time to maintain frame rate independent movement. For details, see
@@ -4283,10 +4283,10 @@ function jg() {
4283
4283
  },
4284
4284
  // Deprecated
4285
4285
  fromWorkingColorSpace: function(i, r) {
4286
- return va("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), s.workingToColorSpace(i, r);
4286
+ return ba("ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace()."), s.workingToColorSpace(i, r);
4287
4287
  },
4288
4288
  toWorkingColorSpace: function(i, r) {
4289
- return va("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), s.colorSpaceToWorking(i, r);
4289
+ return ba("ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking()."), s.colorSpaceToWorking(i, r);
4290
4290
  }
4291
4291
  }, e = [0.64, 0.33, 0.3, 0.6, 0.15, 0.06], t = [0.2126, 0.7152, 0.0722], n = [0.3127, 0.329];
4292
4292
  return s.define({
@@ -4334,7 +4334,7 @@ class qg {
4334
4334
  if (e instanceof HTMLCanvasElement)
4335
4335
  n = e;
4336
4336
  else {
4337
- Bs === void 0 && (Bs = xa("canvas")), Bs.width = e.width, Bs.height = e.height;
4337
+ Bs === void 0 && (Bs = va("canvas")), Bs.width = e.width, Bs.height = e.height;
4338
4338
  const i = Bs.getContext("2d");
4339
4339
  e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), n = Bs;
4340
4340
  }
@@ -4348,7 +4348,7 @@ class qg {
4348
4348
  */
4349
4349
  static sRGBToLinear(e) {
4350
4350
  if (typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap) {
4351
- const t = xa("canvas");
4351
+ const t = va("canvas");
4352
4352
  t.width = e.width, t.height = e.height;
4353
4353
  const n = t.getContext("2d");
4354
4354
  n.drawImage(e, 0, 0, e.width, e.height);
@@ -5664,7 +5664,7 @@ class pt {
5664
5664
  intersectsTriangle(e) {
5665
5665
  if (this.isEmpty())
5666
5666
  return !1;
5667
- this.getCenter(Nr), Ba.subVectors(this.max, Nr), Us.subVectors(e.a, Nr), Os.subVectors(e.b, Nr), ks.subVectors(e.c, Nr), Bi.subVectors(Os, Us), Ui.subVectors(ks, Os), ns.subVectors(Us, ks);
5667
+ this.getCenter(Br), Ba.subVectors(this.max, Br), Us.subVectors(e.a, Br), Os.subVectors(e.b, Br), ks.subVectors(e.c, Br), Bi.subVectors(Os, Us), Ui.subVectors(ks, Os), ns.subVectors(Us, ks);
5668
5668
  let t = [
5669
5669
  0,
5670
5670
  -Bi.z,
@@ -5806,7 +5806,7 @@ const pi = [
5806
5806
  /* @__PURE__ */ new P(),
5807
5807
  /* @__PURE__ */ new P(),
5808
5808
  /* @__PURE__ */ new P()
5809
- ], Wn = /* @__PURE__ */ new P(), Na = /* @__PURE__ */ new pt(), Us = /* @__PURE__ */ new P(), Os = /* @__PURE__ */ new P(), ks = /* @__PURE__ */ new P(), Bi = /* @__PURE__ */ new P(), Ui = /* @__PURE__ */ new P(), ns = /* @__PURE__ */ new P(), Nr = /* @__PURE__ */ new P(), Ba = /* @__PURE__ */ new P(), Ua = /* @__PURE__ */ new P(), is = /* @__PURE__ */ new P();
5809
+ ], Wn = /* @__PURE__ */ new P(), Na = /* @__PURE__ */ new pt(), Us = /* @__PURE__ */ new P(), Os = /* @__PURE__ */ new P(), ks = /* @__PURE__ */ new P(), Bi = /* @__PURE__ */ new P(), Ui = /* @__PURE__ */ new P(), ns = /* @__PURE__ */ new P(), Br = /* @__PURE__ */ new P(), Ba = /* @__PURE__ */ new P(), Ua = /* @__PURE__ */ new P(), is = /* @__PURE__ */ new P();
5810
5810
  function Bl(s, e, t, n, i) {
5811
5811
  for (let r = 0, a = s.length - 3; r <= a; r += 3) {
5812
5812
  is.fromArray(s, r);
@@ -5816,7 +5816,7 @@ function Bl(s, e, t, n, i) {
5816
5816
  }
5817
5817
  return !0;
5818
5818
  }
5819
- const Jg = /* @__PURE__ */ new pt(), Br = /* @__PURE__ */ new P(), Ul = /* @__PURE__ */ new P();
5819
+ const Jg = /* @__PURE__ */ new pt(), Ur = /* @__PURE__ */ new P(), Ul = /* @__PURE__ */ new P();
5820
5820
  class di {
5821
5821
  /**
5822
5822
  * Constructs a new sphere.
@@ -5981,11 +5981,11 @@ class di {
5981
5981
  expandByPoint(e) {
5982
5982
  if (this.isEmpty())
5983
5983
  return this.center.copy(e), this.radius = 0, this;
5984
- Br.subVectors(e, this.center);
5985
- const t = Br.lengthSq();
5984
+ Ur.subVectors(e, this.center);
5985
+ const t = Ur.lengthSq();
5986
5986
  if (t > this.radius * this.radius) {
5987
5987
  const n = Math.sqrt(t), i = (n - this.radius) * 0.5;
5988
- this.center.addScaledVector(Br, i / n), this.radius += i;
5988
+ this.center.addScaledVector(Ur, i / n), this.radius += i;
5989
5989
  }
5990
5990
  return this;
5991
5991
  }
@@ -5996,7 +5996,7 @@ class di {
5996
5996
  * @return {Sphere} A reference to this sphere.
5997
5997
  */
5998
5998
  union(e) {
5999
- return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Ul.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(Br.copy(e.center).add(Ul)), this.expandByPoint(Br.copy(e.center).sub(Ul))), this);
5999
+ return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Ul.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(Ur.copy(e.center).add(Ul)), this.expandByPoint(Ur.copy(e.center).sub(Ul))), this);
6000
6000
  }
6001
6001
  /**
6002
6002
  * Returns `true` if this sphere is equal with the given one.
@@ -7276,7 +7276,7 @@ class wu {
7276
7276
  }
7277
7277
  }
7278
7278
  let tx = 0;
7279
- const md = /* @__PURE__ */ new P(), zs = /* @__PURE__ */ new zn(), gi = /* @__PURE__ */ new ze(), za = /* @__PURE__ */ new P(), Ur = /* @__PURE__ */ new P(), nx = /* @__PURE__ */ new P(), ix = /* @__PURE__ */ new zn(), gd = /* @__PURE__ */ new P(1, 0, 0), xd = /* @__PURE__ */ new P(0, 1, 0), vd = /* @__PURE__ */ new P(0, 0, 1), bd = { type: "added" }, sx = { type: "removed" }, Hs = { type: "childadded", child: null }, zl = { type: "childremoved", child: null };
7279
+ const md = /* @__PURE__ */ new P(), zs = /* @__PURE__ */ new zn(), gi = /* @__PURE__ */ new ze(), za = /* @__PURE__ */ new P(), Or = /* @__PURE__ */ new P(), nx = /* @__PURE__ */ new P(), ix = /* @__PURE__ */ new zn(), gd = /* @__PURE__ */ new P(1, 0, 0), xd = /* @__PURE__ */ new P(0, 1, 0), vd = /* @__PURE__ */ new P(0, 0, 1), bd = { type: "added" }, sx = { type: "removed" }, Hs = { type: "childadded", child: null }, zl = { type: "childremoved", child: null };
7280
7280
  class Ct extends Ts {
7281
7281
  /**
7282
7282
  * Constructs a new 3D object.
@@ -7574,7 +7574,7 @@ class Ct extends Ts {
7574
7574
  lookAt(e, t, n) {
7575
7575
  e.isVector3 ? za.copy(e) : za.set(e, t, n);
7576
7576
  const i = this.parent;
7577
- this.updateWorldMatrix(!0, !1), Ur.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? gi.lookAt(Ur, za, this.up) : gi.lookAt(za, Ur, this.up), this.quaternion.setFromRotationMatrix(gi), i && (gi.extractRotation(i.matrixWorld), zs.setFromRotationMatrix(gi), this.quaternion.premultiply(zs.invert()));
7577
+ this.updateWorldMatrix(!0, !1), Or.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? gi.lookAt(Or, za, this.up) : gi.lookAt(za, Or, this.up), this.quaternion.setFromRotationMatrix(gi), i && (gi.extractRotation(i.matrixWorld), zs.setFromRotationMatrix(gi), this.quaternion.premultiply(zs.invert()));
7578
7578
  }
7579
7579
  /**
7580
7580
  * Adds the given 3D object as a child to this 3D object. An arbitrary number of
@@ -7713,7 +7713,7 @@ class Ct extends Ts {
7713
7713
  * @return {Quaternion} The 3D object's rotation in world space.
7714
7714
  */
7715
7715
  getWorldQuaternion(e) {
7716
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ur, e, nx), e;
7716
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Or, e, nx), e;
7717
7717
  }
7718
7718
  /**
7719
7719
  * Returns a vector representing the scale of the 3D object in world space.
@@ -7722,7 +7722,7 @@ class Ct extends Ts {
7722
7722
  * @return {Vector3} The 3D object's scale in world space.
7723
7723
  */
7724
7724
  getWorldScale(e) {
7725
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ur, ix, e), e;
7725
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Or, ix, e), e;
7726
7726
  }
7727
7727
  /**
7728
7728
  * Returns a vector representing the ("look") direction of the 3D object in world space.
@@ -8767,7 +8767,7 @@ class Fe {
8767
8767
  */
8768
8768
  lerpHSL(e, t) {
8769
8769
  this.getHSL(Fi), e.getHSL(Ha);
8770
- const n = ra(Fi.h, Ha.h, t), i = ra(Fi.s, Ha.s, t), r = ra(Fi.l, Ha.l, t);
8770
+ const n = aa(Fi.h, Ha.h, t), i = aa(Fi.s, Ha.s, t), r = aa(Fi.l, Ha.l, t);
8771
8771
  return this.setHSL(n, i, r), this;
8772
8772
  }
8773
8773
  /**
@@ -9389,7 +9389,7 @@ class rn extends ot {
9389
9389
  }
9390
9390
  }
9391
9391
  let ox = 0;
9392
- const Rn = /* @__PURE__ */ new ze(), Yl = /* @__PURE__ */ new Ct(), Ws = /* @__PURE__ */ new P(), Tn = /* @__PURE__ */ new pt(), Or = /* @__PURE__ */ new pt(), Gt = /* @__PURE__ */ new P();
9392
+ const Rn = /* @__PURE__ */ new ze(), Yl = /* @__PURE__ */ new Ct(), Ws = /* @__PURE__ */ new P(), Tn = /* @__PURE__ */ new pt(), kr = /* @__PURE__ */ new pt(), Gt = /* @__PURE__ */ new P();
9393
9393
  class mt extends Ts {
9394
9394
  /**
9395
9395
  * Constructs a new geometry.
@@ -9676,7 +9676,7 @@ class mt extends Ts {
9676
9676
  if (Tn.setFromBufferAttribute(e), t)
9677
9677
  for (let r = 0, a = t.length; r < a; r++) {
9678
9678
  const o = t[r];
9679
- Or.setFromBufferAttribute(o), this.morphTargetsRelative ? (Gt.addVectors(Tn.min, Or.min), Tn.expandByPoint(Gt), Gt.addVectors(Tn.max, Or.max), Tn.expandByPoint(Gt)) : (Tn.expandByPoint(Or.min), Tn.expandByPoint(Or.max));
9679
+ kr.setFromBufferAttribute(o), this.morphTargetsRelative ? (Gt.addVectors(Tn.min, kr.min), Tn.expandByPoint(Gt), Gt.addVectors(Tn.max, kr.max), Tn.expandByPoint(Gt)) : (Tn.expandByPoint(kr.min), Tn.expandByPoint(kr.max));
9680
9680
  }
9681
9681
  Tn.getCenter(n);
9682
9682
  let i = 0;
@@ -10279,7 +10279,7 @@ class nn extends dm {
10279
10279
  * @return {number} The computed focal length.
10280
10280
  */
10281
10281
  getFocalLength() {
10282
- const e = Math.tan(sa * 0.5 * this.fov);
10282
+ const e = Math.tan(ra * 0.5 * this.fov);
10283
10283
  return 0.5 * this.getFilmHeight() / e;
10284
10284
  }
10285
10285
  /**
@@ -10289,7 +10289,7 @@ class nn extends dm {
10289
10289
  */
10290
10290
  getEffectiveFOV() {
10291
10291
  return br * 2 * Math.atan(
10292
- Math.tan(sa * 0.5 * this.fov) / this.zoom
10292
+ Math.tan(ra * 0.5 * this.fov) / this.zoom
10293
10293
  );
10294
10294
  }
10295
10295
  /**
@@ -10397,7 +10397,7 @@ class nn extends dm {
10397
10397
  */
10398
10398
  updateProjectionMatrix() {
10399
10399
  const e = this.near;
10400
- let t = e * Math.tan(sa * 0.5 * this.fov) / this.zoom, n = 2 * t, i = this.aspect * n, r = -0.5 * i;
10400
+ let t = e * Math.tan(ra * 0.5 * this.fov) / this.zoom, n = 2 * t, i = this.aspect * n, r = -0.5 * i;
10401
10401
  const a = this.view;
10402
10402
  if (this.view !== null && this.view.enabled) {
10403
10403
  const l = a.fullWidth, c = a.fullHeight;
@@ -11418,7 +11418,7 @@ class kh extends ot {
11418
11418
  return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
11419
11419
  }
11420
11420
  }
11421
- const qs = /* @__PURE__ */ new ze(), Dd = /* @__PURE__ */ new ze(), $a = [], Id = /* @__PURE__ */ new pt(), vx = /* @__PURE__ */ new ze(), kr = /* @__PURE__ */ new gt(), Fr = /* @__PURE__ */ new di();
11421
+ const qs = /* @__PURE__ */ new ze(), Dd = /* @__PURE__ */ new ze(), $a = [], Id = /* @__PURE__ */ new pt(), vx = /* @__PURE__ */ new ze(), Fr = /* @__PURE__ */ new gt(), zr = /* @__PURE__ */ new di();
11422
11422
  class xl extends gt {
11423
11423
  /**
11424
11424
  * Constructs a new instanced mesh.
@@ -11452,7 +11452,7 @@ class xl extends gt {
11452
11452
  const e = this.geometry, t = this.count;
11453
11453
  this.boundingSphere === null && (this.boundingSphere = new di()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
11454
11454
  for (let n = 0; n < t; n++)
11455
- this.getMatrixAt(n, qs), Fr.copy(e.boundingSphere).applyMatrix4(qs), this.boundingSphere.union(Fr);
11455
+ this.getMatrixAt(n, qs), zr.copy(e.boundingSphere).applyMatrix4(qs), this.boundingSphere.union(zr);
11456
11456
  }
11457
11457
  copy(e, t) {
11458
11458
  return super.copy(e, t), this.instanceMatrix.copy(e.instanceMatrix), e.morphTexture !== null && (this.morphTexture = e.morphTexture.clone()), e.instanceColor !== null && (this.instanceColor = e.instanceColor.clone()), this.count = e.count, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
@@ -11488,9 +11488,9 @@ class xl extends gt {
11488
11488
  }
11489
11489
  raycast(e, t) {
11490
11490
  const n = this.matrixWorld, i = this.count;
11491
- if (kr.geometry = this.geometry, kr.material = this.material, kr.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Fr.copy(this.boundingSphere), Fr.applyMatrix4(n), e.ray.intersectsSphere(Fr) !== !1))
11491
+ if (Fr.geometry = this.geometry, Fr.material = this.material, Fr.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), zr.copy(this.boundingSphere), zr.applyMatrix4(n), e.ray.intersectsSphere(zr) !== !1))
11492
11492
  for (let r = 0; r < i; r++) {
11493
- this.getMatrixAt(r, qs), Dd.multiplyMatrices(n, qs), kr.matrixWorld = Dd, kr.raycast(e, $a);
11493
+ this.getMatrixAt(r, qs), Dd.multiplyMatrices(n, qs), Fr.matrixWorld = Dd, Fr.raycast(e, $a);
11494
11494
  for (let a = 0, o = $a.length; a < o; a++) {
11495
11495
  const l = $a[a];
11496
11496
  l.instanceId = r, l.object = this, t.push(l);
@@ -11914,7 +11914,7 @@ class As extends Cn {
11914
11914
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
11915
11915
  }
11916
11916
  }
11917
- const al = /* @__PURE__ */ new P(), ol = /* @__PURE__ */ new P(), Nd = /* @__PURE__ */ new ze(), zr = /* @__PURE__ */ new Qi(), Qa = /* @__PURE__ */ new di(), tc = /* @__PURE__ */ new P(), Bd = /* @__PURE__ */ new P();
11917
+ const al = /* @__PURE__ */ new P(), ol = /* @__PURE__ */ new P(), Nd = /* @__PURE__ */ new ze(), Hr = /* @__PURE__ */ new Qi(), Qa = /* @__PURE__ */ new di(), tc = /* @__PURE__ */ new P(), Bd = /* @__PURE__ */ new P();
11918
11918
  class Cs extends Ct {
11919
11919
  /**
11920
11920
  * Constructs a new line.
@@ -11955,26 +11955,26 @@ class Cs extends Ct {
11955
11955
  raycast(e, t) {
11956
11956
  const n = this.geometry, i = this.matrixWorld, r = e.params.Line.threshold, a = n.drawRange;
11957
11957
  if (n.boundingSphere === null && n.computeBoundingSphere(), Qa.copy(n.boundingSphere), Qa.applyMatrix4(i), Qa.radius += r, e.ray.intersectsSphere(Qa) === !1) return;
11958
- Nd.copy(i).invert(), zr.copy(e.ray).applyMatrix4(Nd);
11958
+ Nd.copy(i).invert(), Hr.copy(e.ray).applyMatrix4(Nd);
11959
11959
  const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = this.isLineSegments ? 2 : 1, h = n.index, d = n.attributes.position;
11960
11960
  if (h !== null) {
11961
11961
  const f = Math.max(0, a.start), p = Math.min(h.count, a.start + a.count);
11962
11962
  for (let g = f, x = p - 1; g < x; g += c) {
11963
- const m = h.getX(g), b = h.getX(g + 1), v = eo(this, e, zr, l, m, b, g);
11963
+ const m = h.getX(g), b = h.getX(g + 1), v = eo(this, e, Hr, l, m, b, g);
11964
11964
  v && t.push(v);
11965
11965
  }
11966
11966
  if (this.isLineLoop) {
11967
- const g = h.getX(p - 1), x = h.getX(f), m = eo(this, e, zr, l, g, x, p - 1);
11967
+ const g = h.getX(p - 1), x = h.getX(f), m = eo(this, e, Hr, l, g, x, p - 1);
11968
11968
  m && t.push(m);
11969
11969
  }
11970
11970
  } else {
11971
11971
  const f = Math.max(0, a.start), p = Math.min(d.count, a.start + a.count);
11972
11972
  for (let g = f, x = p - 1; g < x; g += c) {
11973
- const m = eo(this, e, zr, l, g, g + 1, g);
11973
+ const m = eo(this, e, Hr, l, g, g + 1, g);
11974
11974
  m && t.push(m);
11975
11975
  }
11976
11976
  if (this.isLineLoop) {
11977
- const g = eo(this, e, zr, l, p - 1, f, p - 1);
11977
+ const g = eo(this, e, Hr, l, p - 1, f, p - 1);
11978
11978
  g && t.push(g);
11979
11979
  }
11980
11980
  }
@@ -12156,8 +12156,8 @@ class Eu extends Zt {
12156
12156
  * @param {number} [format=DepthFormat] - The texture format.
12157
12157
  * @param {number} [depth=1] - The depth of the texture.
12158
12158
  */
12159
- constructor(e, t, n = _s, i, r, a, o = Qt, l = Qt, c, h = pa, u = 1) {
12160
- if (h !== pa && h !== vr)
12159
+ constructor(e, t, n = _s, i, r, a, o = Qt, l = Qt, c, h = ma, u = 1) {
12160
+ if (h !== ma && h !== vr)
12161
12161
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
12162
12162
  const d = { width: e, height: t, depth: u };
12163
12163
  super(d, i, r, a, o, l, h, n, c), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
@@ -12578,7 +12578,7 @@ function Ax(s, e) {
12578
12578
  function Cx(s, e) {
12579
12579
  return s * s * e;
12580
12580
  }
12581
- function oa(s, e, t, n) {
12581
+ function la(s, e, t, n) {
12582
12582
  return Tx(s, e) + Ax(s, t) + Cx(s, n);
12583
12583
  }
12584
12584
  function Px(s, e) {
@@ -12595,7 +12595,7 @@ function Lx(s, e) {
12595
12595
  function Dx(s, e) {
12596
12596
  return s * s * s * e;
12597
12597
  }
12598
- function la(s, e, t, n, i) {
12598
+ function ca(s, e, t, n, i) {
12599
12599
  return Px(s, e) + Rx(s, t) + Lx(s, n) + Dx(s, i);
12600
12600
  }
12601
12601
  class ym extends fi {
@@ -12620,8 +12620,8 @@ class ym extends fi {
12620
12620
  getPoint(e, t = new he()) {
12621
12621
  const n = t, i = this.v0, r = this.v1, a = this.v2, o = this.v3;
12622
12622
  return n.set(
12623
- la(e, i.x, r.x, a.x, o.x),
12624
- la(e, i.y, r.y, a.y, o.y)
12623
+ ca(e, i.x, r.x, a.x, o.x),
12624
+ ca(e, i.y, r.y, a.y, o.y)
12625
12625
  ), n;
12626
12626
  }
12627
12627
  copy(e) {
@@ -12657,9 +12657,9 @@ class Ix extends fi {
12657
12657
  getPoint(e, t = new P()) {
12658
12658
  const n = t, i = this.v0, r = this.v1, a = this.v2, o = this.v3;
12659
12659
  return n.set(
12660
- la(e, i.x, r.x, a.x, o.x),
12661
- la(e, i.y, r.y, a.y, o.y),
12662
- la(e, i.z, r.z, a.z, o.z)
12660
+ ca(e, i.x, r.x, a.x, o.x),
12661
+ ca(e, i.y, r.y, a.y, o.y),
12662
+ ca(e, i.z, r.z, a.z, o.z)
12663
12663
  ), n;
12664
12664
  }
12665
12665
  copy(e) {
@@ -12778,8 +12778,8 @@ class wm extends fi {
12778
12778
  getPoint(e, t = new he()) {
12779
12779
  const n = t, i = this.v0, r = this.v1, a = this.v2;
12780
12780
  return n.set(
12781
- oa(e, i.x, r.x, a.x),
12782
- oa(e, i.y, r.y, a.y)
12781
+ la(e, i.x, r.x, a.x),
12782
+ la(e, i.y, r.y, a.y)
12783
12783
  ), n;
12784
12784
  }
12785
12785
  copy(e) {
@@ -12814,9 +12814,9 @@ class Bx extends fi {
12814
12814
  getPoint(e, t = new P()) {
12815
12815
  const n = t, i = this.v0, r = this.v1, a = this.v2;
12816
12816
  return n.set(
12817
- oa(e, i.x, r.x, a.x),
12818
- oa(e, i.y, r.y, a.y),
12819
- oa(e, i.z, r.z, a.z)
12817
+ la(e, i.x, r.x, a.x),
12818
+ la(e, i.y, r.y, a.y),
12819
+ la(e, i.z, r.z, a.z)
12820
12820
  ), n;
12821
12821
  }
12822
12822
  copy(e) {
@@ -13265,7 +13265,7 @@ function Ox(s, e, t = 2) {
13265
13265
  }
13266
13266
  c = Math.max(h - o, u - l), c = c !== 0 ? 32767 / c : 0;
13267
13267
  }
13268
- return ba(r, a, t, o, l, c, 0), a;
13268
+ return ya(r, a, t, o, l, c, 0), a;
13269
13269
  }
13270
13270
  function Em(s, e, t, n, i) {
13271
13271
  let r;
@@ -13273,7 +13273,7 @@ function Em(s, e, t, n, i) {
13273
13273
  for (let a = e; a < t; a += n) r = Vd(a / n | 0, s[a], s[a + 1], r);
13274
13274
  else
13275
13275
  for (let a = t - n; a >= e; a -= n) r = Vd(a / n | 0, s[a], s[a + 1], r);
13276
- return r && _r(r, r.next) && (_a(r), r = r.next), r;
13276
+ return r && _r(r, r.next) && (wa(r), r = r.next), r;
13277
13277
  }
13278
13278
  function ws(s, e) {
13279
13279
  if (!s) return s;
@@ -13281,25 +13281,25 @@ function ws(s, e) {
13281
13281
  let t = s, n;
13282
13282
  do
13283
13283
  if (n = !1, !t.steiner && (_r(t, t.next) || At(t.prev, t, t.next) === 0)) {
13284
- if (_a(t), t = e = t.prev, t === t.next) break;
13284
+ if (wa(t), t = e = t.prev, t === t.next) break;
13285
13285
  n = !0;
13286
13286
  } else
13287
13287
  t = t.next;
13288
13288
  while (n || t !== e);
13289
13289
  return e;
13290
13290
  }
13291
- function ba(s, e, t, n, i, r, a) {
13291
+ function ya(s, e, t, n, i, r, a) {
13292
13292
  if (!s) return;
13293
13293
  !a && r && qx(s, n, i, r);
13294
13294
  let o = s;
13295
13295
  for (; s.prev !== s.next; ) {
13296
13296
  const l = s.prev, c = s.next;
13297
13297
  if (r ? Fx(s, n, i, r) : kx(s)) {
13298
- e.push(l.i, s.i, c.i), _a(s), s = c.next, o = c.next;
13298
+ e.push(l.i, s.i, c.i), wa(s), s = c.next, o = c.next;
13299
13299
  continue;
13300
13300
  }
13301
13301
  if (s = c, s === o) {
13302
- a ? a === 1 ? (s = zx(ws(s), e), ba(s, e, t, n, i, r, 2)) : a === 2 && Hx(s, e, t, n, i, r) : ba(ws(s), e, t, n, i, r, 1);
13302
+ a ? a === 1 ? (s = zx(ws(s), e), ya(s, e, t, n, i, r, 2)) : a === 2 && Hx(s, e, t, n, i, r) : ya(ws(s), e, t, n, i, r, 1);
13303
13303
  break;
13304
13304
  }
13305
13305
  }
@@ -13310,7 +13310,7 @@ function kx(s) {
13310
13310
  const i = e.x, r = t.x, a = n.x, o = e.y, l = t.y, c = n.y, h = Math.min(i, r, a), u = Math.min(o, l, c), d = Math.max(i, r, a), f = Math.max(o, l, c);
13311
13311
  let p = n.next;
13312
13312
  for (; p !== e; ) {
13313
- if (p.x >= h && p.x <= d && p.y >= u && p.y <= f && ta(i, o, r, l, a, c, p.x, p.y) && At(p.prev, p, p.next) >= 0) return !1;
13313
+ if (p.x >= h && p.x <= d && p.y >= u && p.y <= f && na(i, o, r, l, a, c, p.x, p.y) && At(p.prev, p, p.next) >= 0) return !1;
13314
13314
  p = p.next;
13315
13315
  }
13316
13316
  return !0;
@@ -13321,15 +13321,15 @@ function Fx(s, e, t, n) {
13321
13321
  const o = i.x, l = r.x, c = a.x, h = i.y, u = r.y, d = a.y, f = Math.min(o, l, c), p = Math.min(h, u, d), g = Math.max(o, l, c), x = Math.max(h, u, d), m = Hh(f, p, e, t, n), b = Hh(g, x, e, t, n);
13322
13322
  let v = s.prevZ, y = s.nextZ;
13323
13323
  for (; v && v.z >= m && y && y.z <= b; ) {
13324
- if (v.x >= f && v.x <= g && v.y >= p && v.y <= x && v !== i && v !== a && ta(o, h, l, u, c, d, v.x, v.y) && At(v.prev, v, v.next) >= 0 || (v = v.prevZ, y.x >= f && y.x <= g && y.y >= p && y.y <= x && y !== i && y !== a && ta(o, h, l, u, c, d, y.x, y.y) && At(y.prev, y, y.next) >= 0)) return !1;
13324
+ if (v.x >= f && v.x <= g && v.y >= p && v.y <= x && v !== i && v !== a && na(o, h, l, u, c, d, v.x, v.y) && At(v.prev, v, v.next) >= 0 || (v = v.prevZ, y.x >= f && y.x <= g && y.y >= p && y.y <= x && y !== i && y !== a && na(o, h, l, u, c, d, y.x, y.y) && At(y.prev, y, y.next) >= 0)) return !1;
13325
13325
  y = y.nextZ;
13326
13326
  }
13327
13327
  for (; v && v.z >= m; ) {
13328
- if (v.x >= f && v.x <= g && v.y >= p && v.y <= x && v !== i && v !== a && ta(o, h, l, u, c, d, v.x, v.y) && At(v.prev, v, v.next) >= 0) return !1;
13328
+ if (v.x >= f && v.x <= g && v.y >= p && v.y <= x && v !== i && v !== a && na(o, h, l, u, c, d, v.x, v.y) && At(v.prev, v, v.next) >= 0) return !1;
13329
13329
  v = v.prevZ;
13330
13330
  }
13331
13331
  for (; y && y.z <= b; ) {
13332
- if (y.x >= f && y.x <= g && y.y >= p && y.y <= x && y !== i && y !== a && ta(o, h, l, u, c, d, y.x, y.y) && At(y.prev, y, y.next) >= 0) return !1;
13332
+ if (y.x >= f && y.x <= g && y.y >= p && y.y <= x && y !== i && y !== a && na(o, h, l, u, c, d, y.x, y.y) && At(y.prev, y, y.next) >= 0) return !1;
13333
13333
  y = y.nextZ;
13334
13334
  }
13335
13335
  return !0;
@@ -13338,7 +13338,7 @@ function zx(s, e) {
13338
13338
  let t = s;
13339
13339
  do {
13340
13340
  const n = t.prev, i = t.next.next;
13341
- !_r(n, i) && Am(n, t, t.next, i) && ya(n, i) && ya(i, n) && (e.push(n.i, t.i, i.i), _a(t), _a(t.next), t = s = i), t = t.next;
13341
+ !_r(n, i) && Am(n, t, t.next, i) && _a(n, i) && _a(i, n) && (e.push(n.i, t.i, i.i), wa(t), wa(t.next), t = s = i), t = t.next;
13342
13342
  } while (t !== s);
13343
13343
  return ws(t);
13344
13344
  }
@@ -13349,7 +13349,7 @@ function Hx(s, e, t, n, i, r) {
13349
13349
  for (; o !== a.prev; ) {
13350
13350
  if (a.i !== o.i && Kx(a, o)) {
13351
13351
  let l = Cm(a, o);
13352
- a = ws(a, a.next), l = ws(l, l.next), ba(a, e, t, n, i, r, 0), ba(l, e, t, n, i, r, 0);
13352
+ a = ws(a, a.next), l = ws(l, l.next), ya(a, e, t, n, i, r, 0), ya(l, e, t, n, i, r, 0);
13353
13353
  return;
13354
13354
  }
13355
13355
  o = o.next;
@@ -13404,7 +13404,7 @@ function Xx(s, e) {
13404
13404
  do {
13405
13405
  if (n >= t.x && t.x >= l && n !== t.x && Tm(i < c ? n : r, i, l, c, i < c ? r : n, i, t.x, t.y)) {
13406
13406
  const u = Math.abs(i - t.y) / (n - t.x);
13407
- ya(t, s) && (u < h || u === h && (t.x > a.x || t.x === a.x && jx(a, t))) && (a = t, h = u);
13407
+ _a(t, s) && (u < h || u === h && (t.x > a.x || t.x === a.x && jx(a, t))) && (a = t, h = u);
13408
13408
  }
13409
13409
  t = t.next;
13410
13410
  } while (t !== o);
@@ -13453,12 +13453,12 @@ function Yx(s) {
13453
13453
  function Tm(s, e, t, n, i, r, a, o) {
13454
13454
  return (i - a) * (e - o) >= (s - a) * (r - o) && (s - a) * (n - o) >= (t - a) * (e - o) && (t - a) * (r - o) >= (i - a) * (n - o);
13455
13455
  }
13456
- function ta(s, e, t, n, i, r, a, o) {
13456
+ function na(s, e, t, n, i, r, a, o) {
13457
13457
  return !(s === a && e === o) && Tm(s, e, t, n, i, r, a, o);
13458
13458
  }
13459
13459
  function Kx(s, e) {
13460
13460
  return s.next.i !== e.i && s.prev.i !== e.i && !$x(s, e) && // doesn't intersect other edges
13461
- (ya(s, e) && ya(e, s) && Jx(s, e) && // locally visible
13461
+ (_a(s, e) && _a(e, s) && Jx(s, e) && // locally visible
13462
13462
  (At(s.prev, s, e.prev) || At(s, e.prev, e)) || // does not create opposite-facing sectors
13463
13463
  _r(s, e) && At(s.prev, s, s.next) > 0 && At(e.prev, e, e.next) > 0);
13464
13464
  }
@@ -13486,7 +13486,7 @@ function $x(s, e) {
13486
13486
  } while (t !== s);
13487
13487
  return !1;
13488
13488
  }
13489
- function ya(s, e) {
13489
+ function _a(s, e) {
13490
13490
  return At(s.prev, s, s.next) < 0 ? At(s, e, s.next) >= 0 && At(s, s.prev, e) >= 0 : At(s, e, s.prev) < 0 || At(s, s.next, e) < 0;
13491
13491
  }
13492
13492
  function Jx(s, e) {
@@ -13505,7 +13505,7 @@ function Vd(s, e, t, n) {
13505
13505
  const i = Vh(s, e, t);
13506
13506
  return n ? (i.next = n.next, i.prev = n, n.next.prev = i, n.next = i) : (i.prev = i, i.next = i), i;
13507
13507
  }
13508
- function _a(s) {
13508
+ function wa(s) {
13509
13509
  s.next.prev = s.prev, s.prev.next = s.next, s.prevZ && (s.prevZ.nextZ = s.nextZ), s.nextZ && (s.nextZ.prevZ = s.prevZ);
13510
13510
  }
13511
13511
  function Vh(s, e, t) {
@@ -14451,10 +14451,10 @@ class ei {
14451
14451
  setInterpolation(e) {
14452
14452
  let t;
14453
14453
  switch (e) {
14454
- case ma:
14454
+ case ga:
14455
14455
  t = this.InterpolantFactoryMethodDiscrete;
14456
14456
  break;
14457
- case ga:
14457
+ case xa:
14458
14458
  t = this.InterpolantFactoryMethodLinear;
14459
14459
  break;
14460
14460
  case Rl:
@@ -14480,9 +14480,9 @@ class ei {
14480
14480
  getInterpolation() {
14481
14481
  switch (this.createInterpolant) {
14482
14482
  case this.InterpolantFactoryMethodDiscrete:
14483
- return ma;
14484
- case this.InterpolantFactoryMethodLinear:
14485
14483
  return ga;
14484
+ case this.InterpolantFactoryMethodLinear:
14485
+ return xa;
14486
14486
  case this.InterpolantFactoryMethodSmooth:
14487
14487
  return Rl;
14488
14488
  }
@@ -14638,8 +14638,8 @@ class ei {
14638
14638
  ei.prototype.ValueTypeName = "";
14639
14639
  ei.prototype.TimeBufferType = Float32Array;
14640
14640
  ei.prototype.ValueBufferType = Float32Array;
14641
- ei.prototype.DefaultInterpolation = ga;
14642
- class Ar extends ei {
14641
+ ei.prototype.DefaultInterpolation = xa;
14642
+ class Cr extends ei {
14643
14643
  /**
14644
14644
  * Constructs a new boolean keyframe track.
14645
14645
  *
@@ -14654,11 +14654,11 @@ class Ar extends ei {
14654
14654
  super(e, t, n);
14655
14655
  }
14656
14656
  }
14657
- Ar.prototype.ValueTypeName = "bool";
14658
- Ar.prototype.ValueBufferType = Array;
14659
- Ar.prototype.DefaultInterpolation = ma;
14660
- Ar.prototype.InterpolantFactoryMethodLinear = void 0;
14661
- Ar.prototype.InterpolantFactoryMethodSmooth = void 0;
14657
+ Cr.prototype.ValueTypeName = "bool";
14658
+ Cr.prototype.ValueBufferType = Array;
14659
+ Cr.prototype.DefaultInterpolation = ga;
14660
+ Cr.prototype.InterpolantFactoryMethodLinear = void 0;
14661
+ Cr.prototype.InterpolantFactoryMethodSmooth = void 0;
14662
14662
  class Lm extends ei {
14663
14663
  /**
14664
14664
  * Constructs a new color keyframe track.
@@ -14732,7 +14732,7 @@ class Mr extends ei {
14732
14732
  }
14733
14733
  Mr.prototype.ValueTypeName = "quaternion";
14734
14734
  Mr.prototype.InterpolantFactoryMethodSmooth = void 0;
14735
- class Cr extends ei {
14735
+ class Pr extends ei {
14736
14736
  /**
14737
14737
  * Constructs a new string keyframe track.
14738
14738
  *
@@ -14747,11 +14747,11 @@ class Cr extends ei {
14747
14747
  super(e, t, n);
14748
14748
  }
14749
14749
  }
14750
- Cr.prototype.ValueTypeName = "string";
14751
- Cr.prototype.ValueBufferType = Array;
14752
- Cr.prototype.DefaultInterpolation = ma;
14753
- Cr.prototype.InterpolantFactoryMethodLinear = void 0;
14754
- Cr.prototype.InterpolantFactoryMethodSmooth = void 0;
14750
+ Pr.prototype.ValueTypeName = "string";
14751
+ Pr.prototype.ValueBufferType = Array;
14752
+ Pr.prototype.DefaultInterpolation = ga;
14753
+ Pr.prototype.InterpolantFactoryMethodLinear = void 0;
14754
+ Pr.prototype.InterpolantFactoryMethodSmooth = void 0;
14755
14755
  class Sr extends ei {
14756
14756
  /**
14757
14757
  * Constructs a new vector keyframe track.
@@ -15052,9 +15052,9 @@ function m1(s) {
15052
15052
  return Mr;
15053
15053
  case "bool":
15054
15054
  case "boolean":
15055
- return Ar;
15056
- case "string":
15057
15055
  return Cr;
15056
+ case "string":
15057
+ return Pr;
15058
15058
  }
15059
15059
  throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + s);
15060
15060
  }
@@ -15461,7 +15461,7 @@ class y1 extends Ps {
15461
15461
  }
15462
15462
  return a;
15463
15463
  }
15464
- const o = xa("img");
15464
+ const o = va("img");
15465
15465
  function l() {
15466
15466
  h(), t && t(this);
15467
15467
  const u = Zs.get(this) || [];
@@ -15710,7 +15710,7 @@ class w1 extends vl {
15710
15710
  return super.copy(e, t), this.distance = e.distance, this.angle = e.angle, this.penumbra = e.penumbra, this.decay = e.decay, this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
15711
15711
  }
15712
15712
  }
15713
- const Zd = /* @__PURE__ */ new ze(), Hr = /* @__PURE__ */ new P(), ac = /* @__PURE__ */ new P();
15713
+ const Zd = /* @__PURE__ */ new ze(), Vr = /* @__PURE__ */ new P(), ac = /* @__PURE__ */ new P();
15714
15714
  class M1 extends Pu {
15715
15715
  /**
15716
15716
  * Constructs a new point light shadow.
@@ -15765,7 +15765,7 @@ class M1 extends Pu {
15765
15765
  */
15766
15766
  updateMatrices(e, t = 0) {
15767
15767
  const n = this.camera, i = this.matrix, r = e.distance || n.far;
15768
- r !== n.far && (n.far = r, n.updateProjectionMatrix()), Hr.setFromMatrixPosition(e.matrixWorld), n.position.copy(Hr), ac.copy(n.position), ac.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(ac), n.updateMatrixWorld(), i.makeTranslation(-Hr.x, -Hr.y, -Hr.z), Zd.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Zd, n.coordinateSystem, n.reversedDepth);
15768
+ r !== n.far && (n.far = r, n.updateProjectionMatrix()), Vr.setFromMatrixPosition(e.matrixWorld), n.position.copy(Vr), ac.copy(n.position), ac.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(ac), n.updateMatrixWorld(), i.makeTranslation(-Vr.x, -Vr.y, -Vr.z), Zd.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Zd, n.coordinateSystem, n.reversedDepth);
15769
15769
  }
15770
15770
  }
15771
15771
  class S1 extends vl {
@@ -15899,7 +15899,7 @@ class cl extends vl {
15899
15899
  super(e, t), this.isAmbientLight = !0, this.type = "AmbientLight";
15900
15900
  }
15901
15901
  }
15902
- class ca {
15902
+ class ha {
15903
15903
  /**
15904
15904
  * Extracts the base URL from the given URL.
15905
15905
  *
@@ -16870,7 +16870,7 @@ function H1(s) {
16870
16870
  case Jn:
16871
16871
  case Jp:
16872
16872
  return { byteLength: 1, components: 1 };
16873
- case fa:
16873
+ case pa:
16874
16874
  case Qp:
16875
16875
  case On:
16876
16876
  return { byteLength: 2, components: 1 };
@@ -21600,7 +21600,7 @@ function Cy(s) {
21600
21600
  dispose: r
21601
21601
  };
21602
21602
  }
21603
- const qi = 4, ef = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ps = 20, Py = 256, Vr = /* @__PURE__ */ new Rs(), tf = /* @__PURE__ */ new Fe();
21603
+ const qi = 4, ef = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ps = 20, Py = 256, Gr = /* @__PURE__ */ new Rs(), tf = /* @__PURE__ */ new Fe();
21604
21604
  let cc = null, hc = 0, uc = 0, dc = !1;
21605
21605
  const Ry = /* @__PURE__ */ new P();
21606
21606
  class nf {
@@ -21718,7 +21718,7 @@ class nf {
21718
21718
  }
21719
21719
  _compileMaterial(e) {
21720
21720
  const t = new gt(new mt(), e);
21721
- this._renderer.compile(t, Vr);
21721
+ this._renderer.compile(t, Gr);
21722
21722
  }
21723
21723
  _sceneToCubeUV(e, t, n, i, r) {
21724
21724
  const l = new nn(90, 1, t, n), c = [1, -1, 1, 1, 1, 1], h = [1, 1, 1, -1, -1, -1], u = this._renderer, d = u.autoClear, f = u.toneMapping;
@@ -21751,7 +21751,7 @@ class nf {
21751
21751
  const o = r.uniforms;
21752
21752
  o.envMap.value = e;
21753
21753
  const l = this._cubeSize;
21754
- $s(t, 0, 0, 3 * l, 2 * l), n.setRenderTarget(t), n.render(a, Vr);
21754
+ $s(t, 0, 0, 3 * l, 2 * l), n.setRenderTarget(t), n.render(a, Gr);
21755
21755
  }
21756
21756
  _applyPMREM(e) {
21757
21757
  const t = this._renderer, n = t.autoClear;
@@ -21776,7 +21776,7 @@ class nf {
21776
21776
  const i = this._renderer, r = this._pingPongRenderTarget, a = this._ggxMaterial, o = this._lodMeshes[n];
21777
21777
  o.material = a;
21778
21778
  const l = a.uniforms, c = n / (this._lodMeshes.length - 1), h = t / (this._lodMeshes.length - 1), u = Math.sqrt(c * c - h * h), d = 0.05 + c * 0.95, f = u * d, { _lodMax: p } = this, g = this._sizeLods[n], x = 3 * g * (n > p - qi ? n - p + qi : 0), m = 4 * (this._cubeSize - g);
21779
- l.envMap.value = e.texture, l.roughness.value = f, l.mipInt.value = p - t, $s(r, x, m, 3 * g, 2 * g), i.setRenderTarget(r), i.render(o, Vr), l.envMap.value = r.texture, l.roughness.value = 0, l.mipInt.value = p - n, $s(e, x, m, 3 * g, 2 * g), i.setRenderTarget(e), i.render(o, Vr);
21779
+ l.envMap.value = e.texture, l.roughness.value = f, l.mipInt.value = p - t, $s(r, x, m, 3 * g, 2 * g), i.setRenderTarget(r), i.render(o, Gr), l.envMap.value = r.texture, l.roughness.value = 0, l.mipInt.value = p - n, $s(e, x, m, 3 * g, 2 * g), i.setRenderTarget(e), i.render(o, Gr);
21780
21780
  }
21781
21781
  /**
21782
21782
  * This is a two-pass Gaussian blur for a cubemap. Normally this is done
@@ -21835,7 +21835,7 @@ class nf {
21835
21835
  const { _lodMax: v } = this;
21836
21836
  d.dTheta.value = p, d.mipInt.value = v - n;
21837
21837
  const y = this._sizeLods[i], w = 3 * y * (i > v - qi ? i - v + qi : 0), E = 4 * (this._cubeSize - y);
21838
- $s(t, w, E, 3 * y, 2 * y), l.setRenderTarget(t), l.render(u, Vr);
21838
+ $s(t, w, E, 3 * y, 2 * y), l.setRenderTarget(t), l.render(u, Gr);
21839
21839
  }
21840
21840
  }
21841
21841
  function Ly(s) {
@@ -22293,7 +22293,7 @@ function By(s) {
22293
22293
  },
22294
22294
  get: function(n) {
22295
22295
  const i = t(n);
22296
- return i === null && va("WebGLRenderer: " + n + " extension not supported."), i;
22296
+ return i === null && ba("WebGLRenderer: " + n + " extension not supported."), i;
22297
22297
  }
22298
22298
  };
22299
22299
  }
@@ -22508,7 +22508,7 @@ function zy(s, e, t, n) {
22508
22508
  };
22509
22509
  }
22510
22510
  const Nm = /* @__PURE__ */ new Zt(), of = /* @__PURE__ */ new Eu(1, 1), Bm = /* @__PURE__ */ new om(), Um = /* @__PURE__ */ new $g(), Om = /* @__PURE__ */ new fm(), lf = [], cf = [], hf = new Float32Array(16), uf = new Float32Array(9), df = new Float32Array(4);
22511
- function Pr(s, e, t) {
22511
+ function Rr(s, e, t) {
22512
22512
  const n = s[0];
22513
22513
  if (n <= 0 || n > 0) return s;
22514
22514
  const i = e * t;
@@ -22769,27 +22769,27 @@ function o_(s, e) {
22769
22769
  s.uniform1fv(this.addr, e);
22770
22770
  }
22771
22771
  function l_(s, e) {
22772
- const t = Pr(e, this.size, 2);
22772
+ const t = Rr(e, this.size, 2);
22773
22773
  s.uniform2fv(this.addr, t);
22774
22774
  }
22775
22775
  function c_(s, e) {
22776
- const t = Pr(e, this.size, 3);
22776
+ const t = Rr(e, this.size, 3);
22777
22777
  s.uniform3fv(this.addr, t);
22778
22778
  }
22779
22779
  function h_(s, e) {
22780
- const t = Pr(e, this.size, 4);
22780
+ const t = Rr(e, this.size, 4);
22781
22781
  s.uniform4fv(this.addr, t);
22782
22782
  }
22783
22783
  function u_(s, e) {
22784
- const t = Pr(e, this.size, 4);
22784
+ const t = Rr(e, this.size, 4);
22785
22785
  s.uniformMatrix2fv(this.addr, !1, t);
22786
22786
  }
22787
22787
  function d_(s, e) {
22788
- const t = Pr(e, this.size, 9);
22788
+ const t = Rr(e, this.size, 9);
22789
22789
  s.uniformMatrix3fv(this.addr, !1, t);
22790
22790
  }
22791
22791
  function f_(s, e) {
22792
- const t = Pr(e, this.size, 16);
22792
+ const t = Rr(e, this.size, 16);
22793
22793
  s.uniformMatrix4fv(this.addr, !1, t);
22794
22794
  }
22795
22795
  function p_(s, e) {
@@ -23095,7 +23095,7 @@ function k_(s) {
23095
23095
  return [
23096
23096
  s.extensionClipCullDistance ? "#extension GL_ANGLE_clip_cull_distance : require" : "",
23097
23097
  s.extensionMultiDraw ? "#extension GL_ANGLE_multi_draw : require" : ""
23098
- ].filter(na).join(`
23098
+ ].filter(ia).join(`
23099
23099
  `);
23100
23100
  }
23101
23101
  function F_(s) {
@@ -23120,7 +23120,7 @@ function z_(s, e) {
23120
23120
  }
23121
23121
  return t;
23122
23122
  }
23123
- function na(s) {
23123
+ function ia(s) {
23124
23124
  return s !== "";
23125
23125
  }
23126
23126
  function xf(s, e) {
@@ -23240,13 +23240,13 @@ function $_(s, e, t, n) {
23240
23240
  "#define SHADER_TYPE " + t.shaderType,
23241
23241
  "#define SHADER_NAME " + t.shaderName,
23242
23242
  p
23243
- ].filter(na).join(`
23243
+ ].filter(ia).join(`
23244
23244
  `), x.length > 0 && (x += `
23245
23245
  `), m = [
23246
23246
  "#define SHADER_TYPE " + t.shaderType,
23247
23247
  "#define SHADER_NAME " + t.shaderName,
23248
23248
  p
23249
- ].filter(na).join(`
23249
+ ].filter(ia).join(`
23250
23250
  `), m.length > 0 && (m += `
23251
23251
  `)) : (x = [
23252
23252
  yf(t),
@@ -23380,7 +23380,7 @@ function $_(s, e, t, n) {
23380
23380
  "#endif",
23381
23381
  `
23382
23382
  `
23383
- ].filter(na).join(`
23383
+ ].filter(ia).join(`
23384
23384
  `), m = [
23385
23385
  yf(t),
23386
23386
  "#define SHADER_TYPE " + t.shaderType,
@@ -23464,7 +23464,7 @@ function $_(s, e, t, n) {
23464
23464
  t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "",
23465
23465
  `
23466
23466
  `
23467
- ].filter(na).join(`
23467
+ ].filter(ia).join(`
23468
23468
  `)), a = Wh(a), a = xf(a, t), a = vf(a, t), o = Wh(o), o = xf(o, t), o = vf(o, t), a = bf(a), o = bf(o), t.isRawShaderMaterial !== !0 && (b = `#version 300 es
23469
23469
  `, x = [
23470
23470
  f,
@@ -24484,7 +24484,7 @@ function m2(s, e) {
24484
24484
  };
24485
24485
  Ke[tg] = s.MIN, Ke[ng] = s.MAX;
24486
24486
  const Be = {
24487
- [Qr]: s.ZERO,
24487
+ [ea]: s.ZERO,
24488
24488
  [ig]: s.ONE,
24489
24489
  [sg]: s.SRC_COLOR,
24490
24490
  [Yc]: s.SRC_ALPHA,
@@ -24723,7 +24723,7 @@ function g2(s, e, t, n, i, r, a) {
24723
24723
  return f ? (
24724
24724
  // eslint-disable-next-line compat/compat
24725
24725
  new OffscreenCanvas(B, L)
24726
- ) : xa("canvas");
24726
+ ) : va("canvas");
24727
24727
  }
24728
24728
  function g(B, L, H) {
24729
24729
  let K = 1;
@@ -24761,7 +24761,7 @@ function g2(s, e, t, n, i, r, a) {
24761
24761
  }
24762
24762
  function y(B, L) {
24763
24763
  let H;
24764
- return B ? L === null || L === _s || L === xr ? H = s.DEPTH24_STENCIL8 : L === $n ? H = s.DEPTH32F_STENCIL8 : L === fa && (H = s.DEPTH24_STENCIL8, He("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : L === null || L === _s || L === xr ? H = s.DEPTH_COMPONENT24 : L === $n ? H = s.DEPTH_COMPONENT32F : L === fa && (H = s.DEPTH_COMPONENT16), H;
24764
+ return B ? L === null || L === _s || L === xr ? H = s.DEPTH24_STENCIL8 : L === $n ? H = s.DEPTH32F_STENCIL8 : L === pa && (H = s.DEPTH24_STENCIL8, He("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : L === null || L === _s || L === xr ? H = s.DEPTH_COMPONENT24 : L === $n ? H = s.DEPTH_COMPONENT32F : L === pa && (H = s.DEPTH_COMPONENT16), H;
24765
24765
  }
24766
24766
  function w(B, L) {
24767
24767
  return x(B) === !0 || B.isFramebufferTexture && B.minFilter !== Qt && B.minFilter !== Yt ? Math.log2(Math.max(L.width, L.height)) + 1 : B.mipmaps !== void 0 && B.mipmaps.length > 0 ? B.mipmaps.length : B.isCompressedTexture && Array.isArray(B.image) ? L.mipmaps.length : 1;
@@ -24875,7 +24875,7 @@ function g2(s, e, t, n, i, r, a) {
24875
24875
  }, re = {
24876
24876
  [Qt]: s.NEAREST,
24877
24877
  [$p]: s.NEAREST_MIPMAP_NEAREST,
24878
- [ea]: s.NEAREST_MIPMAP_LINEAR,
24878
+ [ta]: s.NEAREST_MIPMAP_LINEAR,
24879
24879
  [Yt]: s.LINEAR,
24880
24880
  [Vo]: s.LINEAR_MIPMAP_NEAREST,
24881
24881
  [Ai]: s.LINEAR_MIPMAP_LINEAR
@@ -24890,8 +24890,8 @@ function g2(s, e, t, n, i, r, a) {
24890
24890
  [Eg]: s.NOTEQUAL
24891
24891
  };
24892
24892
  function Y(B, L) {
24893
- if (L.type === $n && e.has("OES_texture_float_linear") === !1 && (L.magFilter === Yt || L.magFilter === Vo || L.magFilter === ea || L.magFilter === Ai || L.minFilter === Yt || L.minFilter === Vo || L.minFilter === ea || L.minFilter === Ai) && He("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), s.texParameteri(B, s.TEXTURE_WRAP_S, Z[L.wrapS]), s.texParameteri(B, s.TEXTURE_WRAP_T, Z[L.wrapT]), (B === s.TEXTURE_3D || B === s.TEXTURE_2D_ARRAY) && s.texParameteri(B, s.TEXTURE_WRAP_R, Z[L.wrapR]), s.texParameteri(B, s.TEXTURE_MAG_FILTER, re[L.magFilter]), s.texParameteri(B, s.TEXTURE_MIN_FILTER, re[L.minFilter]), L.compareFunction && (s.texParameteri(B, s.TEXTURE_COMPARE_MODE, s.COMPARE_REF_TO_TEXTURE), s.texParameteri(B, s.TEXTURE_COMPARE_FUNC, X[L.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
24894
- if (L.magFilter === Qt || L.minFilter !== ea && L.minFilter !== Ai || L.type === $n && e.has("OES_texture_float_linear") === !1) return;
24893
+ if (L.type === $n && e.has("OES_texture_float_linear") === !1 && (L.magFilter === Yt || L.magFilter === Vo || L.magFilter === ta || L.magFilter === Ai || L.minFilter === Yt || L.minFilter === Vo || L.minFilter === ta || L.minFilter === Ai) && He("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), s.texParameteri(B, s.TEXTURE_WRAP_S, Z[L.wrapS]), s.texParameteri(B, s.TEXTURE_WRAP_T, Z[L.wrapT]), (B === s.TEXTURE_3D || B === s.TEXTURE_2D_ARRAY) && s.texParameteri(B, s.TEXTURE_WRAP_R, Z[L.wrapR]), s.texParameteri(B, s.TEXTURE_MAG_FILTER, re[L.magFilter]), s.texParameteri(B, s.TEXTURE_MIN_FILTER, re[L.minFilter]), L.compareFunction && (s.texParameteri(B, s.TEXTURE_COMPARE_MODE, s.COMPARE_REF_TO_TEXTURE), s.texParameteri(B, s.TEXTURE_COMPARE_FUNC, X[L.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
24894
+ if (L.magFilter === Qt || L.minFilter !== ta && L.minFilter !== Ai || L.type === $n && e.has("OES_texture_float_linear") === !1) return;
24895
24895
  if (L.anisotropy > 1 || n.get(L).__currentAnisotropy) {
24896
24896
  const H = e.get("EXT_texture_filter_anisotropic");
24897
24897
  s.texParameterf(B, H.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(L.anisotropy, i.getMaxAnisotropy())), n.get(L).__currentAnisotropy = L.anisotropy;
@@ -25126,7 +25126,7 @@ function g2(s, e, t, n, i, r, a) {
25126
25126
  const K = n.get(L.depthTexture);
25127
25127
  K.__renderTarget = L, (!K.__webglTexture || L.depthTexture.image.width !== L.width || L.depthTexture.image.height !== L.height) && (L.depthTexture.image.width = L.width, L.depthTexture.image.height = L.height, L.depthTexture.needsUpdate = !0), F(L.depthTexture, 0);
25128
25128
  const le = K.__webglTexture, te = U(L);
25129
- if (L.depthTexture.format === pa)
25129
+ if (L.depthTexture.format === ma)
25130
25130
  z(L) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, s.DEPTH_ATTACHMENT, s.TEXTURE_2D, le, 0, te) : s.framebufferTexture2D(s.FRAMEBUFFER, s.DEPTH_ATTACHMENT, s.TEXTURE_2D, le, 0);
25131
25131
  else if (L.depthTexture.format === vr)
25132
25132
  z(L) ? o.framebufferTexture2DMultisampleEXT(s.FRAMEBUFFER, s.DEPTH_STENCIL_ATTACHMENT, s.TEXTURE_2D, le, 0, te) : s.framebufferTexture2D(s.FRAMEBUFFER, s.DEPTH_STENCIL_ATTACHMENT, s.TEXTURE_2D, le, 0);
@@ -25311,7 +25311,7 @@ function x2(s, e) {
25311
25311
  if (n === tm) return s.UNSIGNED_INT_10F_11F_11F_REV;
25312
25312
  if (n === Jp) return s.BYTE;
25313
25313
  if (n === Qp) return s.SHORT;
25314
- if (n === fa) return s.UNSIGNED_SHORT;
25314
+ if (n === pa) return s.UNSIGNED_SHORT;
25315
25315
  if (n === du) return s.INT;
25316
25316
  if (n === _s) return s.UNSIGNED_INT;
25317
25317
  if (n === $n) return s.FLOAT;
@@ -25319,7 +25319,7 @@ function x2(s, e) {
25319
25319
  if (n === nm) return s.ALPHA;
25320
25320
  if (n === im) return s.RGB;
25321
25321
  if (n === xn) return s.RGBA;
25322
- if (n === pa) return s.DEPTH_COMPONENT;
25322
+ if (n === ma) return s.DEPTH_COMPONENT;
25323
25323
  if (n === vr) return s.DEPTH_STENCIL;
25324
25324
  if (n === mu) return s.RED;
25325
25325
  if (n === gu) return s.RED_INTEGER;
@@ -25542,7 +25542,7 @@ class _2 extends Ts {
25542
25542
  if (i = ie, i !== null) {
25543
25543
  if (v = e.getRenderTarget(), i.addEventListener("select", F), i.addEventListener("selectstart", F), i.addEventListener("selectend", F), i.addEventListener("squeeze", F), i.addEventListener("squeezestart", F), i.addEventListener("squeezeend", F), i.addEventListener("end", W), i.addEventListener("inputsourceschange", j), b.xrCompatible !== !0 && await t.makeXRCompatible(), R = e.getPixelRatio(), e.getSize(A), g && "createProjectionLayer" in XRWebGLBinding.prototype) {
25544
25544
  let fe = null, ve = null, Me = null;
25545
- b.depth && (Me = b.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, fe = b.stencil ? vr : pa, ve = b.stencil ? xr : _s);
25545
+ b.depth && (Me = b.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, fe = b.stencil ? vr : ma, ve = b.stencil ? xr : _s);
25546
25546
  const Ne = {
25547
25547
  colorFormat: t.RGBA8,
25548
25548
  depthFormat: Me,
@@ -27958,7 +27958,7 @@ class km {
27958
27958
  ]), g = /* @__PURE__ */ new Set([
27959
27959
  Jn,
27960
27960
  _s,
27961
- fa,
27961
+ pa,
27962
27962
  xr,
27963
27963
  fu,
27964
27964
  pu
@@ -28147,7 +28147,7 @@ class km {
28147
28147
  } else ne.isPoints ? xt.setMode(I.POINTS) : ne.isSprite && xt.setMode(I.TRIANGLES);
28148
28148
  if (ne.isBatchedMesh)
28149
28149
  if (ne._multiDrawInstances !== null)
28150
- va("WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), xt.renderMultiDrawInstances(ne._multiDrawStarts, ne._multiDrawCounts, ne._multiDrawCount, ne._multiDrawInstances);
28150
+ ba("WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), xt.renderMultiDrawInstances(ne._multiDrawStarts, ne._multiDrawCounts, ne._multiDrawCount, ne._multiDrawInstances);
28151
28151
  else if (O.get("WEBGL_multi_draw"))
28152
28152
  xt.renderMultiDraw(ne._multiDrawStarts, ne._multiDrawCounts, ne._multiDrawCount);
28153
28153
  else {
@@ -28361,16 +28361,16 @@ class km {
28361
28361
  oe.version === Xe.__version ? (Xe.needsLights && Xe.lightsStateVersion !== St.state.version || Xe.outputColorSpace !== ke || ne.isBatchedMesh && Xe.batching === !1 || !ne.isBatchedMesh && Xe.batching === !0 || ne.isBatchedMesh && Xe.batchingColor === !0 && ne.colorTexture === null || ne.isBatchedMesh && Xe.batchingColor === !1 && ne.colorTexture !== null || ne.isInstancedMesh && Xe.instancing === !1 || !ne.isInstancedMesh && Xe.instancing === !0 || ne.isSkinnedMesh && Xe.skinning === !1 || !ne.isSkinnedMesh && Xe.skinning === !0 || ne.isInstancedMesh && Xe.instancingColor === !0 && ne.instanceColor === null || ne.isInstancedMesh && Xe.instancingColor === !1 && ne.instanceColor !== null || ne.isInstancedMesh && Xe.instancingMorph === !0 && ne.morphTexture === null || ne.isInstancedMesh && Xe.instancingMorph === !1 && ne.morphTexture !== null || Xe.envMap !== Ie || oe.fog === !0 && Xe.fog !== Se || Xe.numClippingPlanes !== void 0 && (Xe.numClippingPlanes !== De.numPlanes || Xe.numIntersection !== De.numIntersection) || Xe.vertexAlphas !== je || Xe.vertexTangents !== qe || Xe.morphTargets !== We || Xe.morphNormals !== it || Xe.morphColors !== dt || Xe.toneMapping !== Rt || Xe.morphTargetsCount !== xt) && (at = !0) : (at = !0, Xe.__version = oe.version);
28362
28362
  let Mn = Xe.currentProgram;
28363
28363
  at === !0 && (Mn = Ia(oe, Q, ne));
28364
- let Is = !1, Sn = !1, Ir = !1;
28364
+ let Is = !1, Sn = !1, Nr = !1;
28365
28365
  const Et = Mn.getUniforms(), fn = Xe.uniforms;
28366
- if (z.useProgram(Mn.program) && (Is = !0, Sn = !0, Ir = !0), oe.id !== D && (D = oe.id, Sn = !0), Is || C !== k) {
28366
+ if (z.useProgram(Mn.program) && (Is = !0, Sn = !0, Nr = !0), oe.id !== D && (D = oe.id, Sn = !0), Is || C !== k) {
28367
28367
  z.buffers.depth.getReversed() && k.reversedDepth !== !0 && (k._reversedDepth = !0, k.updateProjectionMatrix()), Et.setValue(I, "projectionMatrix", k.projectionMatrix), Et.setValue(I, "viewMatrix", k.matrixWorldInverse);
28368
28368
  const pn = Et.map.cameraPosition;
28369
28369
  pn !== void 0 && pn.setValue(I, Me.setFromMatrixPosition(k.matrixWorld)), U.logarithmicDepthBuffer && Et.setValue(
28370
28370
  I,
28371
28371
  "logDepthBufFC",
28372
28372
  2 / (Math.log(k.far + 1) / Math.LN2)
28373
- ), (oe.isMeshPhongMaterial || oe.isMeshToonMaterial || oe.isMeshLambertMaterial || oe.isMeshBasicMaterial || oe.isMeshStandardMaterial || oe.isShaderMaterial) && Et.setValue(I, "isOrthographic", k.isOrthographicCamera === !0), C !== k && (C = k, Sn = !0, Ir = !0);
28373
+ ), (oe.isMeshPhongMaterial || oe.isMeshToonMaterial || oe.isMeshLambertMaterial || oe.isMeshBasicMaterial || oe.isMeshStandardMaterial || oe.isShaderMaterial) && Et.setValue(I, "isOrthographic", k.isOrthographicCamera === !0), C !== k && (C = k, Sn = !0, Nr = !0);
28374
28374
  }
28375
28375
  if (ne.isSkinnedMesh) {
28376
28376
  Et.setOptional(I, ne, "bindMatrix"), Et.setOptional(I, ne, "bindMatrixInverse");
@@ -28379,7 +28379,7 @@ class km {
28379
28379
  }
28380
28380
  ne.isBatchedMesh && (Et.setOptional(I, ne, "batchingTexture"), Et.setValue(I, "batchingTexture", ne._matricesTexture, G), Et.setOptional(I, ne, "batchingIdTexture"), Et.setValue(I, "batchingIdTexture", ne._indirectTexture, G), Et.setOptional(I, ne, "batchingColorTexture"), ne._colorsTexture !== null && Et.setValue(I, "batchingColorTexture", ne._colorsTexture, G));
28381
28381
  const Pn = ae.morphAttributes;
28382
- if ((Pn.position !== void 0 || Pn.normal !== void 0 || Pn.color !== void 0) && Ve.update(ne, ae, Mn), (Sn || Xe.receiveShadow !== ne.receiveShadow) && (Xe.receiveShadow = ne.receiveShadow, Et.setValue(I, "receiveShadow", ne.receiveShadow)), oe.isMeshGouraudMaterial && oe.envMap !== null && (fn.envMap.value = Ie, fn.flipEnvMap.value = Ie.isCubeTexture && Ie.isRenderTargetTexture === !1 ? -1 : 1), oe.isMeshStandardMaterial && oe.envMap === null && Q.environment !== null && (fn.envMapIntensity.value = Q.environmentIntensity), fn.dfgLUT !== void 0 && (fn.dfgLUT.value = T2()), Sn && (Et.setValue(I, "toneMappingExposure", E.toneMappingExposure), Xe.needsLights && B0(fn, Ir), Se && oe.fog === !0 && Te.refreshFogUniforms(fn, Se), Te.refreshMaterialUniforms(fn, oe, re, Z, v.state.transmissionRenderTarget[k.id]), qo.upload(I, Ku(Xe), fn, G)), oe.isShaderMaterial && oe.uniformsNeedUpdate === !0 && (qo.upload(I, Ku(Xe), fn, G), oe.uniformsNeedUpdate = !1), oe.isSpriteMaterial && Et.setValue(I, "center", ne.center), Et.setValue(I, "modelViewMatrix", ne.modelViewMatrix), Et.setValue(I, "normalMatrix", ne.normalMatrix), Et.setValue(I, "modelMatrix", ne.matrixWorld), oe.isShaderMaterial || oe.isRawShaderMaterial) {
28382
+ if ((Pn.position !== void 0 || Pn.normal !== void 0 || Pn.color !== void 0) && Ve.update(ne, ae, Mn), (Sn || Xe.receiveShadow !== ne.receiveShadow) && (Xe.receiveShadow = ne.receiveShadow, Et.setValue(I, "receiveShadow", ne.receiveShadow)), oe.isMeshGouraudMaterial && oe.envMap !== null && (fn.envMap.value = Ie, fn.flipEnvMap.value = Ie.isCubeTexture && Ie.isRenderTargetTexture === !1 ? -1 : 1), oe.isMeshStandardMaterial && oe.envMap === null && Q.environment !== null && (fn.envMapIntensity.value = Q.environmentIntensity), fn.dfgLUT !== void 0 && (fn.dfgLUT.value = T2()), Sn && (Et.setValue(I, "toneMappingExposure", E.toneMappingExposure), Xe.needsLights && B0(fn, Nr), Se && oe.fog === !0 && Te.refreshFogUniforms(fn, Se), Te.refreshMaterialUniforms(fn, oe, re, Z, v.state.transmissionRenderTarget[k.id]), qo.upload(I, Ku(Xe), fn, G)), oe.isShaderMaterial && oe.uniformsNeedUpdate === !0 && (qo.upload(I, Ku(Xe), fn, G), oe.uniformsNeedUpdate = !1), oe.isSpriteMaterial && Et.setValue(I, "center", ne.center), Et.setValue(I, "modelViewMatrix", ne.modelViewMatrix), Et.setValue(I, "normalMatrix", ne.normalMatrix), Et.setValue(I, "modelMatrix", ne.matrixWorld), oe.isShaderMaterial || oe.isRawShaderMaterial) {
28383
28383
  const an = oe.uniformsGroups;
28384
28384
  for (let pn = 0, Pl = an.length; pn < Pl; pn++) {
28385
28385
  const ts = an[pn];
@@ -28497,7 +28497,7 @@ class km {
28497
28497
  };
28498
28498
  const k0 = I.createFramebuffer(), F0 = I.createFramebuffer();
28499
28499
  this.copyTextureToTexture = function(k, Q, ae = null, oe = null, ne = 0, Se = null) {
28500
- Se === null && (ne !== 0 ? (va("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), Se = ne, ne = 0) : Se = 0);
28500
+ Se === null && (ne !== 0 ? (ba("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), Se = ne, ne = 0) : Se = 0);
28501
28501
  let Le, ke, Ie, je, qe, We, it, dt, Rt;
28502
28502
  const Lt = k.isCompressedTexture ? k.mipmaps[Se] : k.image;
28503
28503
  if (ae !== null)
@@ -28510,7 +28510,7 @@ class km {
28510
28510
  const xt = Ge.convert(Q.format), Xe = Ge.convert(Q.type);
28511
28511
  let St;
28512
28512
  Q.isData3DTexture ? (G.setTexture3D(Q, 0), St = I.TEXTURE_3D) : Q.isDataArrayTexture || Q.isCompressedArrayTexture ? (G.setTexture2DArray(Q, 0), St = I.TEXTURE_2D_ARRAY) : (G.setTexture2D(Q, 0), St = I.TEXTURE_2D), I.pixelStorei(I.UNPACK_FLIP_Y_WEBGL, Q.flipY), I.pixelStorei(I.UNPACK_PREMULTIPLY_ALPHA_WEBGL, Q.premultiplyAlpha), I.pixelStorei(I.UNPACK_ALIGNMENT, Q.unpackAlignment);
28513
- const at = I.getParameter(I.UNPACK_ROW_LENGTH), Mn = I.getParameter(I.UNPACK_IMAGE_HEIGHT), Is = I.getParameter(I.UNPACK_SKIP_PIXELS), Sn = I.getParameter(I.UNPACK_SKIP_ROWS), Ir = I.getParameter(I.UNPACK_SKIP_IMAGES);
28513
+ const at = I.getParameter(I.UNPACK_ROW_LENGTH), Mn = I.getParameter(I.UNPACK_IMAGE_HEIGHT), Is = I.getParameter(I.UNPACK_SKIP_PIXELS), Sn = I.getParameter(I.UNPACK_SKIP_ROWS), Nr = I.getParameter(I.UNPACK_SKIP_IMAGES);
28514
28514
  I.pixelStorei(I.UNPACK_ROW_LENGTH, Lt.width), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Lt.height), I.pixelStorei(I.UNPACK_SKIP_PIXELS, je), I.pixelStorei(I.UNPACK_SKIP_ROWS, qe), I.pixelStorei(I.UNPACK_SKIP_IMAGES, We);
28515
28515
  const Et = k.isDataArrayTexture || k.isData3DTexture, fn = Q.isDataArrayTexture || Q.isData3DTexture;
28516
28516
  if (k.isDepthTexture) {
@@ -28527,7 +28527,7 @@ class km {
28527
28527
  z.bindFramebuffer(I.READ_FRAMEBUFFER, null), z.bindFramebuffer(I.DRAW_FRAMEBUFFER, null);
28528
28528
  } else
28529
28529
  fn ? k.isDataTexture || k.isData3DTexture ? I.texSubImage3D(St, Se, it, dt, Rt, Le, ke, Ie, xt, Xe, Lt.data) : Q.isCompressedArrayTexture ? I.compressedTexSubImage3D(St, Se, it, dt, Rt, Le, ke, Ie, xt, Lt.data) : I.texSubImage3D(St, Se, it, dt, Rt, Le, ke, Ie, xt, Xe, Lt) : k.isDataTexture ? I.texSubImage2D(I.TEXTURE_2D, Se, it, dt, Le, ke, xt, Xe, Lt.data) : k.isCompressedTexture ? I.compressedTexSubImage2D(I.TEXTURE_2D, Se, it, dt, Lt.width, Lt.height, xt, Lt.data) : I.texSubImage2D(I.TEXTURE_2D, Se, it, dt, Le, ke, xt, Xe, Lt);
28530
- I.pixelStorei(I.UNPACK_ROW_LENGTH, at), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Mn), I.pixelStorei(I.UNPACK_SKIP_PIXELS, Is), I.pixelStorei(I.UNPACK_SKIP_ROWS, Sn), I.pixelStorei(I.UNPACK_SKIP_IMAGES, Ir), Se === 0 && Q.generateMipmaps && I.generateMipmap(St), z.unbindTexture();
28530
+ I.pixelStorei(I.UNPACK_ROW_LENGTH, at), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Mn), I.pixelStorei(I.UNPACK_SKIP_PIXELS, Is), I.pixelStorei(I.UNPACK_SKIP_ROWS, Sn), I.pixelStorei(I.UNPACK_SKIP_IMAGES, Nr), Se === 0 && Q.generateMipmaps && I.generateMipmap(St), z.unbindTexture();
28531
28531
  }, this.initRenderTarget = function(k) {
28532
28532
  J.get(k).__webglFramebuffer === void 0 && G.setupRenderTarget(k);
28533
28533
  }, this.initTexture = function(k) {
@@ -28686,7 +28686,7 @@ class R2 {
28686
28686
  this.renderer?.dispose();
28687
28687
  }
28688
28688
  }
28689
- const Sf = { type: "change" }, Du = { type: "start" }, Fm = { type: "end" }, ho = new Qi(), Ef = new _t(), L2 = Math.cos(70 * aa.DEG2RAD), Ft = new P(), mn = 2 * Math.PI, ft = {
28689
+ const Sf = { type: "change" }, Du = { type: "start" }, Fm = { type: "end" }, ho = new Qi(), Ef = new _t(), L2 = Math.cos(70 * oa.DEG2RAD), Ft = new P(), mn = 2 * Math.PI, ft = {
28690
28690
  NONE: -1,
28691
28691
  ROTATE: 0,
28692
28692
  DOLLY: 1,
@@ -29439,7 +29439,7 @@ function Iu(s) {
29439
29439
  }
29440
29440
  function i(u) {
29441
29441
  const d = new he(), f = s.renderer.domElement.clientWidth, p = s.renderer.domElement.clientHeight;
29442
- return d.x = u.clientX / f * 2 - 1, d.y = -(u.clientY / p) * 2 + 1, d;
29442
+ return d.x = u.offsetX / f * 2 - 1, d.y = -(u.offsetY / p) * 2 + 1, d;
29443
29443
  }
29444
29444
  function r(u) {
29445
29445
  const d = new Ss(), f = i(u);
@@ -29477,16 +29477,16 @@ function Iu(s) {
29477
29477
  x || (x = [0, 0, []]);
29478
29478
  let m = "face", b = [], v = [], y = 5;
29479
29479
  if (x[2].map((R) => R[0]).forEach((R) => {
29480
- let _ = new P(R.X, R.Z, -R.Y), S = s.worldToScreen.worldToScreen(_), D = Math.sqrt(Math.pow(S.x - d.clientX, 2) + Math.pow(S.y - d.clientY, 2));
29480
+ let _ = new P(R.X, R.Z, -R.Y), S = s.worldToScreen.worldToScreen(_), D = Math.sqrt(Math.pow(S.x - d.offsetX, 2) + Math.pow(S.y - d.offsetY, 2));
29481
29481
  D < y && (y = D, b.push({
29482
29482
  point: _,
29483
29483
  distance: D,
29484
29484
  pointxy: S
29485
29485
  }));
29486
29486
  }), b.length > 0 ? (b.sort((R, _) => R.distance - _.distance), m = "point") : (x[2].forEach((R) => {
29487
- let _ = new P(R[0].X, R[0].Z, -R[0].Y), S = new P(R[1].X, R[1].Z, -R[1].Y), D = s.worldToScreen.worldToScreen(_), C = s.worldToScreen.worldToScreen(S), N = w(new he(d.clientX, d.clientY), D, C);
29487
+ let _ = new P(R[0].X, R[0].Z, -R[0].Y), S = new P(R[1].X, R[1].Z, -R[1].Y), D = s.worldToScreen.worldToScreen(_), C = s.worldToScreen.worldToScreen(S), N = w(new he(d.offsetX, d.offsetY), D, C);
29488
29488
  if (N < y) {
29489
- let M = E(new he(d.clientX, d.clientY), D, C), F = A(M, _, S);
29489
+ let M = E(new he(d.offsetX, d.offsetY), D, C), F = A(M, _, S);
29490
29490
  v.push({
29491
29491
  distance: N,
29492
29492
  point: F,
@@ -29499,12 +29499,12 @@ function Iu(s) {
29499
29499
  const R = s.worldToScreen.worldToScreen(b[0].point);
29500
29500
  console.log("捕捉点屏幕坐标:", R.x, R.y), console.log("Canvas尺寸:", s.renderer.domElement.width, s.renderer.domElement.height), console.log("SVG尺寸:", s.catchSvg.clientWidth, s.catchSvg.clientHeight), s.catchSvg.innerHTML = "";
29501
29501
  const _ = document.createElementNS("http://www.w3.org/2000/svg", "circle");
29502
- _.setAttribute("class", "catchPoint"), _.setAttribute("cx", R.x.toString()), _.setAttribute("cy", R.y.toString()), _.setAttribute("r", "5"), _.setAttribute("fill", "rgb(0, 255, 247)"), s.catchSvg.appendChild(_);
29502
+ _.setAttribute("class", "catchPoint"), _.setAttribute("cx", (R.x + s.reactBoundingClientRect.left).toString()), _.setAttribute("cy", (R.y + s.reactBoundingClientRect.top).toString()), _.setAttribute("r", "5"), _.setAttribute("fill", "rgb(0, 255, 247)"), s.catchSvg.appendChild(_);
29503
29503
  } else if (m == "line" && e.options.showCatch) {
29504
29504
  const R = s.worldToScreen.worldToScreen(v[0].point), _ = v[0].start, S = v[0].end;
29505
29505
  console.log("捕捉点屏幕坐标:", R.x, R.y), console.log("Canvas尺寸:", s.renderer.domElement.width, s.renderer.domElement.height), console.log("SVG尺寸:", s.catchSvg.clientWidth, s.catchSvg.clientHeight), s.catchSvg.innerHTML = "";
29506
29506
  const D = document.createElementNS("http://www.w3.org/2000/svg", "line");
29507
- D.setAttribute("class", "catchLine"), D.setAttribute("x1", _.x.toString()), D.setAttribute("y1", _.y.toString()), D.setAttribute("x2", S.x.toString()), D.setAttribute("y2", S.y.toString()), D.setAttribute("stroke", "rgb(0, 255, 247)"), D.setAttribute("stroke-width", "2"), s.catchSvg.appendChild(D);
29507
+ D.setAttribute("class", "catchLine"), D.setAttribute("x1", (_.x + s.reactBoundingClientRect.left).toString()), D.setAttribute("y1", (_.y + s.reactBoundingClientRect.top).toString()), D.setAttribute("x2", (S.x + s.reactBoundingClientRect.left).toString()), D.setAttribute("y2", (S.y + s.reactBoundingClientRect.top).toString()), D.setAttribute("stroke", "rgb(0, 255, 247)"), D.setAttribute("stroke-width", "2"), s.catchSvg.appendChild(D);
29508
29508
  } else if (m == "face" && e.options.showCatch) {
29509
29509
  let R = f[0].point.clone(), _ = f[0].normal || (f[0].face ? f[0].face.normal : null);
29510
29510
  const S = (_ ? _.clone() : new P(0, 0, 1)).normalize(), D = Math.abs(S.y) < 0.9 ? new P(0, 1, 0) : new P(1, 0, 0), C = new P().crossVectors(S, D).normalize(), N = new P().crossVectors(S, C).normalize(), M = 0.05, F = [
@@ -29515,14 +29515,14 @@ function Iu(s) {
29515
29515
  ].map((j) => new P().copy(R).add(j)).map((j) => s.worldToScreen.worldToScreen(j));
29516
29516
  s.catchSvg.innerHTML = "";
29517
29517
  const W = document.createElementNS("http://www.w3.org/2000/svg", "polygon");
29518
- W.setAttribute("class", "catchFace"), W.setAttribute("points", F.map((j) => `${j.x},${j.y}`).join(" ")), W.setAttribute("fill", "rgba(1, 238, 255, 0.2)"), W.setAttribute("stroke", "rgb(0, 255, 247)"), W.setAttribute("stroke-width", "1"), s.catchSvg.appendChild(W);
29518
+ W.setAttribute("class", "catchFace"), W.setAttribute("points", F.map((j) => `${j.x + s.reactBoundingClientRect.left},${j.y + s.reactBoundingClientRect.top}`).join(" ")), W.setAttribute("fill", "rgba(1, 238, 255, 0.2)"), W.setAttribute("stroke", "rgb(0, 255, 247)"), W.setAttribute("stroke-width", "1"), s.catchSvg.appendChild(W);
29519
29519
  }
29520
29520
  return f[0];
29521
29521
  function w(R, _, S) {
29522
29522
  const D = new he().subVectors(S, _), C = D.lengthSq();
29523
29523
  if (C < 1e-10)
29524
29524
  return R.distanceTo(_);
29525
- const N = new he().subVectors(R, _), M = aa.clamp(N.dot(D) / C, 0, 1), F = new he().copy(D).multiplyScalar(M).add(_);
29525
+ const N = new he().subVectors(R, _), M = oa.clamp(N.dot(D) / C, 0, 1), F = new he().copy(D).multiplyScalar(M).add(_);
29526
29526
  return R.distanceTo(F);
29527
29527
  }
29528
29528
  function E(R, _, S) {
@@ -29530,10 +29530,10 @@ function Iu(s) {
29530
29530
  if (C < 1e-10)
29531
29531
  return 0;
29532
29532
  const N = new he().subVectors(R, _);
29533
- return aa.clamp(N.dot(D) / C, 0, 1);
29533
+ return oa.clamp(N.dot(D) / C, 0, 1);
29534
29534
  }
29535
29535
  function A(R, _, S) {
29536
- const D = aa.clamp(R, 0, 1);
29536
+ const D = oa.clamp(R, 0, 1);
29537
29537
  return new P().lerpVectors(_, S, D);
29538
29538
  }
29539
29539
  }
@@ -29548,13 +29548,14 @@ class X2 {
29548
29548
  handelBehaved;
29549
29549
  isDragging = !1;
29550
29550
  isDown = !1;
29551
+ containerOffset = { left: 0, top: 0 };
29551
29552
  constructor(e) {
29552
29553
  this.engine = e, this.init(), this.handelBehaved = Iu(this.engine), this.handelBehaved.init(this, null), this.handelBehaved.active();
29553
29554
  }
29554
29555
  init() {
29555
29556
  this.orbitControls = new D2(this.engine, this.engine.camera, this.engine.renderer.domElement), this.orbitControls.showOriginIcon = !0, this.firstPersonControls = new Tf(this.engine, this.engine.camera, this.engine.renderer.domElement);
29556
29557
  const e = document.createElement("div");
29557
- this.originDiv = e, e.className = "originDiv", e.style.position = "absolute", e.style.top = "100px", e.style.left = "100px", e.style.width = "30px", e.style.height = "30px", e.style.borderRadius = "50%", e.style.pointerEvents = "none", e.style.backgroundImage = "url(./assets/svg/rotate-orbit.svg)", this.engine.container.appendChild(this.originDiv);
29558
+ this.originDiv = e, e.className = "originDiv", e.style.position = "absolute", e.style.top = "0px", e.style.left = "0px", e.style.width = "30px", e.style.height = "30px", e.style.borderRadius = "50%", e.style.pointerEvents = "none", e.style.backgroundImage = "url(./assets/svg/rotate-orbit.svg)", this.engine.container.appendChild(this.originDiv);
29558
29559
  }
29559
29560
  active() {
29560
29561
  this.isActive = !0, this.orbitControls.enabled = !0;
@@ -29592,7 +29593,7 @@ class X2 {
29592
29593
  update() {
29593
29594
  if (this.firstPersonControls.enabled && this.firstPersonControls.update(), this.orbitControls.enabled) {
29594
29595
  const e = this.engine.controlModule.orbitControls.origin, t = this.engine.worldToScreen.worldToScreen(e);
29595
- this.originDiv && this.isDragging ? (this.originDiv.style.left = t.x - 15 + "px", this.originDiv.style.top = t.y - 15 + "px", this.originDiv.style.display = "block") : this.originDiv && (this.originDiv.style.display = "none");
29596
+ this.originDiv && this.isDragging ? (this.originDiv.style.left = t.x - 15 + this.engine.reactBoundingClientRect.left + "px", this.originDiv.style.top = t.y - 15 + this.engine.reactBoundingClientRect.top + "px", this.originDiv.style.display = "block") : this.originDiv && (this.originDiv.style.display = "none");
29596
29597
  }
29597
29598
  }
29598
29599
  }
@@ -30730,10 +30731,10 @@ class gn extends Ls {
30730
30731
  depthTest: !1,
30731
30732
  depthWrite: !1,
30732
30733
  blendSrc: Jc,
30733
- blendDst: Qr,
30734
+ blendDst: ea,
30734
30735
  blendEquation: Zn,
30735
30736
  blendSrcAlpha: $c,
30736
- blendDstAlpha: Qr,
30737
+ blendDstAlpha: ea,
30737
30738
  blendEquationAlpha: Zn
30738
30739
  }), this.blendMaterial = new Ot({
30739
30740
  uniforms: ai.clone(mc.uniforms),
@@ -30744,10 +30745,10 @@ class gn extends Ls {
30744
30745
  depthWrite: !1,
30745
30746
  blending: Gp,
30746
30747
  blendSrc: Jc,
30747
- blendDst: Qr,
30748
+ blendDst: ea,
30748
30749
  blendEquation: Zn,
30749
30750
  blendSrcAlpha: $c,
30750
- blendDstAlpha: Qr,
30751
+ blendDstAlpha: ea,
30751
30752
  blendEquationAlpha: Zn
30752
30753
  }), this._fsQuad = new _l(null), this._originalClearColor = new Fe(), this.setGBuffer(r ? r.depthTexture : void 0, r ? r.normalTexture : void 0), a !== void 0 && this.updateGtaoMaterial(a), o !== void 0 && this.updatePdMaterial(o);
30753
30754
  }
@@ -33935,7 +33936,7 @@ function Gm(s, e) {
33935
33936
  const { toString: c3 } = Object.prototype, { getPrototypeOf: Nu } = Object, { iterator: wl, toStringTag: Wm } = Symbol, Ml = /* @__PURE__ */ ((s) => (e) => {
33936
33937
  const t = c3.call(e);
33937
33938
  return s[t] || (s[t] = t.slice(8, -1).toLowerCase());
33938
- })(/* @__PURE__ */ Object.create(null)), ti = (s) => (s = s.toLowerCase(), (e) => Ml(e) === s), Sl = (s) => (e) => typeof e === s, { isArray: Rr } = Array, Tr = Sl("undefined");
33939
+ })(/* @__PURE__ */ Object.create(null)), ti = (s) => (s = s.toLowerCase(), (e) => Ml(e) === s), Sl = (s) => (e) => typeof e === s, { isArray: Lr } = Array, Tr = Sl("undefined");
33939
33940
  function Ca(s) {
33940
33941
  return s !== null && !Tr(s) && s.constructor !== null && !Tr(s.constructor) && yn(s.constructor.isBuffer) && s.constructor.isBuffer(s);
33941
33942
  }
@@ -33966,7 +33967,7 @@ function Ra(s, e, { allOwnKeys: t = !1 } = {}) {
33966
33967
  if (s === null || typeof s > "u")
33967
33968
  return;
33968
33969
  let n, i;
33969
- if (typeof s != "object" && (s = [s]), Rr(s))
33970
+ if (typeof s != "object" && (s = [s]), Lr(s))
33970
33971
  for (n = 0, i = s.length; n < i; n++)
33971
33972
  e.call(null, s[n], n, s);
33972
33973
  else {
@@ -33993,7 +33994,7 @@ const xs = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typ
33993
33994
  function Xh() {
33994
33995
  const { caseless: s, skipUndefined: e } = Zm(this) && this || {}, t = {}, n = (i, r) => {
33995
33996
  const a = s && qm(t, r) || r;
33996
- Yo(t[a]) && Yo(i) ? t[a] = Xh(t[a], i) : Yo(i) ? t[a] = Xh({}, i) : Rr(i) ? t[a] = i.slice() : (!e || !Tr(i)) && (t[a] = i);
33997
+ Yo(t[a]) && Yo(i) ? t[a] = Xh(t[a], i) : Yo(i) ? t[a] = Xh({}, i) : Lr(i) ? t[a] = i.slice() : (!e || !Tr(i)) && (t[a] = i);
33997
33998
  };
33998
33999
  for (let i = 0, r = arguments.length; i < r; i++)
33999
34000
  arguments[i] && Ra(arguments[i], n);
@@ -34021,7 +34022,7 @@ const T3 = (s, e, t, { allOwnKeys: n } = {}) => (Ra(e, (i, r) => {
34021
34022
  return n !== -1 && n === t;
34022
34023
  }, L3 = (s) => {
34023
34024
  if (!s) return null;
34024
- if (Rr(s)) return s;
34025
+ if (Lr(s)) return s;
34025
34026
  let e = s.length;
34026
34027
  if (!jm(e)) return null;
34027
34028
  const t = new Array(e);
@@ -34073,7 +34074,7 @@ const T3 = (s, e, t, { allOwnKeys: n } = {}) => (Ra(e, (i, r) => {
34073
34074
  t[r] = !0;
34074
34075
  });
34075
34076
  };
34076
- return Rr(s) ? n(s) : n(String(s).split(e)), t;
34077
+ return Lr(s) ? n(s) : n(String(s).split(e)), t;
34077
34078
  }, z3 = () => {
34078
34079
  }, H3 = (s, e) => s != null && Number.isFinite(s = +s) ? s : e;
34079
34080
  function V3(s) {
@@ -34088,7 +34089,7 @@ const G3 = (s) => {
34088
34089
  return n;
34089
34090
  if (!("toJSON" in n)) {
34090
34091
  e[i] = n;
34091
- const r = Rr(n) ? [] : {};
34092
+ const r = Lr(n) ? [] : {};
34092
34093
  return Ra(n, (a, o) => {
34093
34094
  const l = t(a, i + 1);
34094
34095
  !Tr(l) && (r[o] = l);
@@ -34106,7 +34107,7 @@ const G3 = (s) => {
34106
34107
  typeof setImmediate == "function",
34107
34108
  yn(xs.postMessage)
34108
34109
  ), j3 = typeof queueMicrotask < "u" ? queueMicrotask.bind(xs) : typeof process < "u" && process.nextTick || Km, q3 = (s) => s != null && yn(s[wl]), se = {
34109
- isArray: Rr,
34110
+ isArray: Lr,
34110
34111
  isArrayBuffer: Xm,
34111
34112
  isBuffer: Ca,
34112
34113
  isFormData: b3,
@@ -34563,7 +34564,7 @@ const hw = se.toObjectSet([
34563
34564
  i = r.indexOf(":"), t = r.substring(0, i).trim().toLowerCase(), n = r.substring(i + 1).trim(), !(!t || e[t] && hw[t]) && (t === "set-cookie" ? e[t] ? e[t].push(n) : e[t] = [n] : e[t] = e[t] ? e[t] + ", " + n : n);
34564
34565
  }), e;
34565
34566
  }, Nf = Symbol("internals");
34566
- function Gr(s) {
34567
+ function Wr(s) {
34567
34568
  return s && String(s).trim().toLowerCase();
34568
34569
  }
34569
34570
  function Ko(s) {
@@ -34608,7 +34609,7 @@ let _n = class {
34608
34609
  set(s, e, t) {
34609
34610
  const n = this;
34610
34611
  function i(a, o, l) {
34611
- const c = Gr(o);
34612
+ const c = Wr(o);
34612
34613
  if (!c)
34613
34614
  throw new Error("header name must be a non-empty string");
34614
34615
  const h = se.findKey(n, c);
@@ -34632,7 +34633,7 @@ let _n = class {
34632
34633
  return this;
34633
34634
  }
34634
34635
  get(s, e) {
34635
- if (s = Gr(s), s) {
34636
+ if (s = Wr(s), s) {
34636
34637
  const t = se.findKey(this, s);
34637
34638
  if (t) {
34638
34639
  const n = this[t];
@@ -34649,7 +34650,7 @@ let _n = class {
34649
34650
  }
34650
34651
  }
34651
34652
  has(s, e) {
34652
- if (s = Gr(s), s) {
34653
+ if (s = Wr(s), s) {
34653
34654
  const t = se.findKey(this, s);
34654
34655
  return !!(t && this[t] !== void 0 && (!e || gc(this, this[t], t, e)));
34655
34656
  }
@@ -34659,7 +34660,7 @@ let _n = class {
34659
34660
  const t = this;
34660
34661
  let n = !1;
34661
34662
  function i(r) {
34662
- if (r = Gr(r), r) {
34663
+ if (r = Wr(r), r) {
34663
34664
  const a = se.findKey(t, r);
34664
34665
  a && (!e || gc(t, t[a], a, e)) && (delete t[a], n = !0);
34665
34666
  }
@@ -34721,7 +34722,7 @@ let _n = class {
34721
34722
  accessors: {}
34722
34723
  }).accessors, t = this.prototype;
34723
34724
  function n(i) {
34724
- const r = Gr(i);
34725
+ const r = Wr(i);
34725
34726
  e[r] || (mw(t, i), e[r] = !0);
34726
34727
  }
34727
34728
  return se.isArray(s) ? s.forEach(n) : n(s), this;
@@ -34748,10 +34749,10 @@ function xc(s, e) {
34748
34749
  function s0(s) {
34749
34750
  return !!(s && s.__CANCEL__);
34750
34751
  }
34751
- function Lr(s, e, t) {
34752
+ function Dr(s, e, t) {
34752
34753
  Je.call(this, s ?? "canceled", Je.ERR_CANCELED, e, t), this.name = "CanceledError";
34753
34754
  }
34754
- se.inherits(Lr, Je, {
34755
+ se.inherits(Dr, Je, {
34755
34756
  __CANCEL__: !0
34756
34757
  });
34757
34758
  function r0(s, e, t) {
@@ -34999,7 +35000,7 @@ const o0 = (s) => {
34999
35000
  }, i === void 0 && r.setContentType(null), "setRequestHeader" in g && se.forEach(r.toJSON(), function(b, v) {
35000
35001
  g.setRequestHeader(v, b);
35001
35002
  }), se.isUndefined(n.withCredentials) || (g.withCredentials = !!n.withCredentials), a && a !== "json" && (g.responseType = n.responseType), l && ([u, f] = hl(l, !0), g.addEventListener("progress", u)), o && g.upload && ([h, d] = hl(o), g.upload.addEventListener("progress", h), g.upload.addEventListener("loadend", d)), (n.cancelToken || n.signal) && (c = (b) => {
35002
- g && (t(!b || b.type ? new Lr(null, s, g) : b), g.abort(), g = null);
35003
+ g && (t(!b || b.type ? new Dr(null, s, g) : b), g.abort(), g = null);
35003
35004
  }, n.cancelToken && n.cancelToken.subscribe(c), n.signal && (n.signal.aborted ? c() : n.signal.addEventListener("abort", c)));
35004
35005
  const m = gw(n.url);
35005
35006
  if (m && sn.protocols.indexOf(m) === -1) {
@@ -35016,7 +35017,7 @@ const o0 = (s) => {
35016
35017
  if (!i) {
35017
35018
  i = !0, o();
35018
35019
  const h = c instanceof Error ? c : this.reason;
35019
- n.abort(h instanceof Je ? h : new Lr(h instanceof Error ? h.message : h));
35020
+ n.abort(h instanceof Je ? h : new Dr(h instanceof Error ? h.message : h));
35020
35021
  }
35021
35022
  };
35022
35023
  let a = e && setTimeout(() => {
@@ -35301,7 +35302,7 @@ const c0 = {
35301
35302
  };
35302
35303
  function vc(s) {
35303
35304
  if (s.cancelToken && s.cancelToken.throwIfRequested(), s.signal && s.signal.aborted)
35304
- throw new Lr(null, s);
35305
+ throw new Dr(null, s);
35305
35306
  }
35306
35307
  function Wf(s) {
35307
35308
  return vc(s), s.headers = _n.from(s.headers), s.data = xc.call(
@@ -35518,7 +35519,7 @@ let Bw = class u0 {
35518
35519
  n.unsubscribe(r);
35519
35520
  }, a;
35520
35521
  }, e(function(i, r, a) {
35521
- n.reason || (n.reason = new Lr(i, r, a), t(n.reason));
35522
+ n.reason || (n.reason = new Dr(i, r, a), t(n.reason));
35522
35523
  });
35523
35524
  }
35524
35525
  /**
@@ -35657,7 +35658,7 @@ function d0(s) {
35657
35658
  }
35658
35659
  const Bt = d0(La);
35659
35660
  Bt.Axios = bs;
35660
- Bt.CanceledError = Lr;
35661
+ Bt.CanceledError = Dr;
35661
35662
  Bt.CancelToken = Bw;
35662
35663
  Bt.isCancel = s0;
35663
35664
  Bt.VERSION = h0;
@@ -36062,7 +36063,7 @@ function Hw() {
36062
36063
  }
36063
36064
  }
36064
36065
  }
36065
- var wa = /* @__PURE__ */ ((s) => (s.ModelLoadStart = "model-load-start", s.ModelLoadProgress = "model-load-progress", s.ModelLoaded = "model-loaded", s.ModelError = "model-error", s.SelectionChanged = "selection-changed", s.HoverChanged = "hover-changed", s.Click = "click", s.MouseMove = "mouse-move", s.CameraChanged = "camera-changed", s.CameraIdle = "camera-idle", s.EngineFree = "engine-free", s.EngineBusy = "engine-busy", s))(wa || {});
36066
+ var Ar = /* @__PURE__ */ ((s) => (s.ModelLoadStart = "model-load-start", s.ModelLoadProgress = "model-load-progress", s.ModelLoaded = "model-loaded", s.ModelError = "model-error", s.SelectionChanged = "selection-changed", s.HoverChanged = "hover-changed", s.Click = "click", s.MouseMove = "mouse-move", s.CameraChanged = "camera-changed", s.CameraIdle = "camera-idle", s.ViewportResize = "viewport-resize", s.EngineFree = "engine-free", s.EngineBusy = "engine-busy", s))(Ar || {});
36066
36067
  function Vw(s, e, t, n) {
36067
36068
  let i = 0, r = 0, a = 0, o = s.models.find((f) => f.url == t), l = e.circularMeps, c = e.rectMeps.filter((f) => f.type === "风管"), h = e.rectMeps.filter((f) => f.type === "桥架"), u = e.ellipseMeps, d = s.scene;
36068
36069
  if (new qt(), new mt(), bo(d, "InstancedMesh"), l && l.length) {
@@ -36419,10 +36420,10 @@ class Ww extends Ps {
36419
36420
  if (this.resourcePath !== "")
36420
36421
  a = this.resourcePath;
36421
36422
  else if (this.path !== "") {
36422
- const c = ca.extractUrlBase(e);
36423
- a = ca.resolveURL(c, this.path);
36423
+ const c = ha.extractUrlBase(e);
36424
+ a = ha.resolveURL(c, this.path);
36424
36425
  } else
36425
- a = ca.extractUrlBase(e);
36426
+ a = ha.extractUrlBase(e);
36426
36427
  this.manager.itemStart(e);
36427
36428
  const o = function(c) {
36428
36429
  i ? i(c) : console.error(c), r.manager.itemError(e), r.manager.itemEnd(e);
@@ -36970,11 +36971,11 @@ class cM {
36970
36971
  }));
36971
36972
  }
36972
36973
  }
36973
- const p0 = "glTF", Wr = 12, Zf = { JSON: 1313821514, BIN: 5130562 };
36974
+ const p0 = "glTF", Xr = 12, Zf = { JSON: 1313821514, BIN: 5130562 };
36974
36975
  class hM {
36975
36976
  constructor(e) {
36976
36977
  this.name = nt.KHR_BINARY_GLTF, this.content = null, this.body = null;
36977
- const t = new DataView(e, 0, Wr), n = new TextDecoder();
36978
+ const t = new DataView(e, 0, Xr), n = new TextDecoder();
36978
36979
  if (this.header = {
36979
36980
  magic: n.decode(new Uint8Array(e.slice(0, 4))),
36980
36981
  version: t.getUint32(4, !0),
@@ -36983,17 +36984,17 @@ class hM {
36983
36984
  throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
36984
36985
  if (this.header.version < 2)
36985
36986
  throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
36986
- const i = this.header.length - Wr, r = new DataView(e, Wr);
36987
+ const i = this.header.length - Xr, r = new DataView(e, Xr);
36987
36988
  let a = 0;
36988
36989
  for (; a < i; ) {
36989
36990
  const o = r.getUint32(a, !0);
36990
36991
  a += 4;
36991
36992
  const l = r.getUint32(a, !0);
36992
36993
  if (a += 4, l === Zf.JSON) {
36993
- const c = new Uint8Array(e, Wr + a, o);
36994
+ const c = new Uint8Array(e, Xr + a, o);
36994
36995
  this.content = n.decode(c);
36995
36996
  } else if (l === Zf.BIN) {
36996
- const c = Wr + a;
36997
+ const c = Xr + a;
36997
36998
  this.body = e.slice(c, c + o);
36998
36999
  }
36999
37000
  a += o;
@@ -37093,7 +37094,7 @@ const In = {
37093
37094
  9729: Yt,
37094
37095
  9984: $p,
37095
37096
  9985: Vo,
37096
- 9986: ea,
37097
+ 9986: ta,
37097
37098
  9987: Ai
37098
37099
  }, Kf = {
37099
37100
  33071: oi,
@@ -37127,8 +37128,8 @@ const In = {
37127
37128
  CUBICSPLINE: void 0,
37128
37129
  // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
37129
37130
  // keyframe track will be initialized with a default interpolation type, then modified.
37130
- LINEAR: ga,
37131
- STEP: ma
37131
+ LINEAR: xa,
37132
+ STEP: ga
37132
37133
  }, _c = {
37133
37134
  OPAQUE: "OPAQUE",
37134
37135
  MASK: "MASK",
@@ -37452,7 +37453,7 @@ class MM {
37452
37453
  return Promise.resolve(this.extensions[nt.KHR_BINARY_GLTF].body);
37453
37454
  const i = this.options;
37454
37455
  return new Promise(function(r, a) {
37455
- n.load(ca.resolveURL(t.uri, i.path), r, void 0, function() {
37456
+ n.load(ha.resolveURL(t.uri, i.path), r, void 0, function() {
37456
37457
  a(new Error('THREE.GLTFLoader: Failed to load buffer "' + t.uri + '".'));
37457
37458
  });
37458
37459
  });
@@ -37555,7 +37556,7 @@ class MM {
37555
37556
  t.isImageBitmapLoader === !0 && (p = function(g) {
37556
37557
  const x = new Zt(g);
37557
37558
  x.needsUpdate = !0, d(x);
37558
- }), t.load(ca.resolveURL(u, r.path), p, void 0, f);
37559
+ }), t.load(ha.resolveURL(u, r.path), p, void 0, f);
37559
37560
  });
37560
37561
  }).then(function(u) {
37561
37562
  return c === !0 && o.revokeObjectURL(l), si(u, a), u.userData.mimeType = a.mimeType || _M(a.uri), u;
@@ -37763,7 +37764,7 @@ class MM {
37763
37764
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
37764
37765
  return;
37765
37766
  }
37766
- return n.type === "perspective" ? t = new nn(aa.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : n.type === "orthographic" && (t = new Rs(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), n.name && (t.name = this.createUniqueName(n.name)), si(t, n), Promise.resolve(t);
37767
+ return n.type === "perspective" ? t = new nn(oa.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : n.type === "orthographic" && (t = new Rs(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), n.name && (t.name = this.createUniqueName(n.name)), si(t, n), Promise.resolve(t);
37767
37768
  }
37768
37769
  /**
37769
37770
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -37953,7 +37954,7 @@ class MM {
37953
37954
  }
37954
37955
  break;
37955
37956
  }
37956
- const h = i.interpolation !== void 0 ? gM[i.interpolation] : ga, u = this._getArrayFromAccessor(n);
37957
+ const h = i.interpolation !== void 0 ? gM[i.interpolation] : xa, u = this._getArrayFromAccessor(n);
37957
37958
  for (let d = 0, f = l.length; d < f; d++) {
37958
37959
  const p = new c(
37959
37960
  l[d] + "." + Hi[r.path],
@@ -38062,7 +38063,7 @@ function EM(s, e, t) {
38062
38063
  min: new P(r.baseInfo.min.X * 0.3048, r.baseInfo.min.Z * 0.3048, -r.baseInfo.min.Y * 0.3048),
38063
38064
  max: new P(r.baseInfo.max.X * 0.3048, r.baseInfo.max.Z * 0.3048, -r.baseInfo.max.Y * 0.3048)
38064
38065
  }
38065
- }), s.events.trigger(wa.EngineFree, null);
38066
+ }), s.events.trigger(Ar.EngineFree, null);
38066
38067
  });
38067
38068
  }
38068
38069
  function TM(s) {
@@ -38092,7 +38093,7 @@ function AM(s, e) {
38092
38093
  let h = new Ww();
38093
38094
  const u = new zw();
38094
38095
  u.setDecoderPath("/static/js/draco/"), u.preload(), h.setDRACOLoader(u), h.load(i.get(c + ".glb"), (d) => {
38095
- n.glbs[c] = d.scene.children, l++, l == Object.keys(a).length && s.engineStatus.isFree && (s.events.trigger(wa.EngineFree, null), s.viewCube.CameraGoHome());
38096
+ n.glbs[c] = d.scene.children, l++, l == Object.keys(a).length && s.engineStatus.isFree && (s.events.trigger(Ar.EngineFree, null), s.viewCube.CameraGoHome());
38096
38097
  });
38097
38098
  }
38098
38099
  });
@@ -38191,9 +38192,9 @@ class RM {
38191
38192
  this.engine = e, this.isFree = !0, this.highlightModels = [], this.hideModels = [], this.models = [];
38192
38193
  }
38193
38194
  init() {
38194
- this.engine.events.on(wa.EngineFree, () => {
38195
+ this.engine.events.on(Ar.EngineFree, () => {
38195
38196
  this.updateFree(!0), console.log("引擎空闲"), TM(this.engine);
38196
- }), this.engine.events.on(wa.EngineBusy, () => {
38197
+ }), this.engine.events.on(Ar.EngineBusy, () => {
38197
38198
  this.updateFree(!1), console.log("引擎繁忙");
38198
38199
  });
38199
38200
  }
@@ -38727,7 +38728,7 @@ var fr = Object.freeze({
38727
38728
  }
38728
38729
  };
38729
38730
  }
38730
- }), ia = function() {
38731
+ }), sa = function() {
38731
38732
  return performance.now();
38732
38733
  }, FM = (
38733
38734
  /** @class */
@@ -38747,7 +38748,7 @@ var fr = Object.freeze({
38747
38748
  }, s.prototype.remove = function(e) {
38748
38749
  delete this._tweens[e.getId()], delete this._tweensAddedDuringUpdate[e.getId()];
38749
38750
  }, s.prototype.update = function(e, t) {
38750
- e === void 0 && (e = ia()), t === void 0 && (t = !1);
38751
+ e === void 0 && (e = sa()), t === void 0 && (t = !1);
38751
38752
  var n = Object.keys(this._tweens);
38752
38753
  if (n.length === 0)
38753
38754
  return !1;
@@ -38804,7 +38805,7 @@ var fr = Object.freeze({
38804
38805
  }, s.prototype.dynamic = function(e) {
38805
38806
  return e === void 0 && (e = !1), this._isDynamic = e, this;
38806
38807
  }, s.prototype.start = function(e, t) {
38807
- if (e === void 0 && (e = ia()), t === void 0 && (t = !1), this._isPlaying)
38808
+ if (e === void 0 && (e = sa()), t === void 0 && (t = !1), this._isPlaying)
38808
38809
  return this;
38809
38810
  if (this._group && this._group.add(this), this._repeat = this._initialRepeat, this._reversed) {
38810
38811
  this._reversed = !1;
@@ -38864,9 +38865,9 @@ var fr = Object.freeze({
38864
38865
  }, s.prototype.end = function() {
38865
38866
  return this._goToEnd = !0, this.update(1 / 0), this;
38866
38867
  }, s.prototype.pause = function(e) {
38867
- return e === void 0 && (e = ia()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this._group && this._group.remove(this), this);
38868
+ return e === void 0 && (e = sa()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this._group && this._group.remove(this), this);
38868
38869
  }, s.prototype.resume = function(e) {
38869
- return e === void 0 && (e = ia()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
38870
+ return e === void 0 && (e = sa()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
38870
38871
  }, s.prototype.stopChainedTweens = function() {
38871
38872
  for (var e = 0, t = this._chainedTweens.length; e < t; e++)
38872
38873
  this._chainedTweens[e].stop();
@@ -38903,7 +38904,7 @@ var fr = Object.freeze({
38903
38904
  return this._onStopCallback = e, this;
38904
38905
  }, s.prototype.update = function(e, t) {
38905
38906
  var n = this, i;
38906
- if (e === void 0 && (e = ia()), t === void 0 && (t = !0), this._isPaused)
38907
+ if (e === void 0 && (e = sa()), t === void 0 && (t = !0), this._isPaused)
38907
38908
  return !0;
38908
38909
  var r, a = this._startTime + this._duration;
38909
38910
  if (!this._goToEnd && !this._isPlaying) {
@@ -39574,7 +39575,7 @@ class jM {
39574
39575
  const t = this.engine.renderer?.domElement;
39575
39576
  if (!t) return;
39576
39577
  const n = t.getBoundingClientRect();
39577
- this.startPoint.set(e.clientX - n.left, e.clientY - n.top), this.endPoint.copy(this.startPoint), this.isDrawing = !0, this.selectionBox && (this.selectionBox.style.display = "block", this.updateSelectionBoxUI()), e.preventDefault(), e.stopPropagation();
39578
+ this.startPoint.set(e.offsetX - n.left, e.offsetY - n.top), this.endPoint.copy(this.startPoint), this.isDrawing = !0, this.selectionBox && (this.selectionBox.style.display = "block", this.updateSelectionBoxUI()), e.preventDefault(), e.stopPropagation();
39578
39579
  }
39579
39580
  /**
39580
39581
  * 鼠标移动事件处理
@@ -39585,7 +39586,7 @@ class jM {
39585
39586
  const t = this.engine.renderer?.domElement;
39586
39587
  if (!t) return;
39587
39588
  const n = t.getBoundingClientRect();
39588
- this.endPoint.set(e.clientX - n.left, e.clientY - n.top), this.updateSelectionBoxUI(), e.preventDefault(), e.stopPropagation();
39589
+ this.endPoint.set(e.offsetX - n.left, e.offsetY - n.top), this.updateSelectionBoxUI(), e.preventDefault(), e.stopPropagation();
39589
39590
  }
39590
39591
  /**
39591
39592
  * 鼠标释放事件处理
@@ -39614,8 +39615,8 @@ class jM {
39614
39615
  */
39615
39616
  updateSelectionBoxUI() {
39616
39617
  if (!this.selectionBox) return;
39617
- const e = Math.min(this.startPoint.x, this.endPoint.x), t = Math.min(this.startPoint.y, this.endPoint.y), n = Math.abs(this.endPoint.x - this.startPoint.x), i = Math.abs(this.endPoint.y - this.startPoint.y);
39618
- this.selectionBox.style.left = `${e}px`, this.selectionBox.style.top = `${t}px`, this.selectionBox.style.width = `${n}px`, this.selectionBox.style.height = `${i}px`;
39618
+ const e = Math.min(this.startPoint.x, this.endPoint.x), t = Math.min(this.startPoint.y, this.endPoint.y), n = Math.abs(this.endPoint.x - this.startPoint.x), i = Math.abs(this.endPoint.y - this.startPoint.y), r = this.engine.reactBoundingClientRect?.left || 0, a = this.engine.reactBoundingClientRect?.top || 0;
39619
+ this.selectionBox.style.left = `${e + r}px`, this.selectionBox.style.top = `${t + a}px`, this.selectionBox.style.width = `${n}px`, this.selectionBox.style.height = `${i}px`;
39619
39620
  }
39620
39621
  /**
39621
39622
  * 执行缩放操作
@@ -39950,7 +39951,7 @@ class Ni {
39950
39951
  });
39951
39952
  function t(l) {
39952
39953
  if (l.container == null) {
39953
- let g = [
39954
+ let m = [
39954
39955
  '<svg class="measureSvg">',
39955
39956
  '<circle cx="50" cy="50" r="5" fill="#f99d0b" />',
39956
39957
  // 起点
@@ -39966,18 +39967,20 @@ class Ni {
39966
39967
  '<text x="40" y="16" text-anchor="middle" class="measureLabel">' + l.text + "</text>",
39967
39968
  "</svg>"
39968
39969
  ].join("");
39969
- l.container = document.createElement("div"), l.container.className = "angle-annotation", l.container.id = l.id, l.container.style.pointerEvents = "none", l.container.innerHTML = g, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
39970
+ l.container = document.createElement("div"), l.container.className = "angle-annotation", l.container.id = l.id, l.container.style.pointerEvents = "none", l.container.innerHTML = m, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
39970
39971
  e.clearHighlight(), l.container.getElementsByTagName("svg")[0].classList.add("Hight"), l.highlight = !0;
39971
39972
  });
39972
39973
  }
39973
- let c = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point1), h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point2), u = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point3), d = l.container;
39974
- d.getElementsByTagName("circle")[0].setAttribute("cx", c.x), d.getElementsByTagName("circle")[0].setAttribute("cy", c.y), d.getElementsByTagName("circle")[1].setAttribute("cx", h.x), d.getElementsByTagName("circle")[1].setAttribute("cy", h.y), d.getElementsByTagName("circle")[2].setAttribute("cx", u.x), d.getElementsByTagName("circle")[2].setAttribute("cy", u.y), d.getElementsByTagName("polyline")[0].setAttribute("points", c.x + "," + c.y + " " + h.x + "," + h.y), d.getElementsByTagName("polyline")[1].setAttribute("points", h.x + "," + h.y + " " + u.x + "," + u.y);
39975
- let f = h.x, p = h.y - 30;
39976
- d.getElementsByTagName("rect")[0].setAttribute("x", f - 40), d.getElementsByTagName("rect")[0].setAttribute("y", p - 12.5), d.getElementsByTagName("text")[0].setAttribute("x", f), d.getElementsByTagName("text")[0].setAttribute("y", p + 4), d.getElementsByTagName("text")[0].innerHTML = l.text, d.style.top = "0px", d.style.left = "0px";
39974
+ let c = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point1), h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point2), u = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point3), d = e.engine.reactBoundingClientRect.left, f = e.engine.reactBoundingClientRect.top;
39975
+ c.x += d, c.y += f, h.x += d, h.y += f, u.x += d, u.y += f;
39976
+ let p = l.container;
39977
+ p.getElementsByTagName("circle")[0].setAttribute("cx", c.x), p.getElementsByTagName("circle")[0].setAttribute("cy", c.y), p.getElementsByTagName("circle")[1].setAttribute("cx", h.x), p.getElementsByTagName("circle")[1].setAttribute("cy", h.y), p.getElementsByTagName("circle")[2].setAttribute("cx", u.x), p.getElementsByTagName("circle")[2].setAttribute("cy", u.y), p.getElementsByTagName("polyline")[0].setAttribute("points", c.x + "," + c.y + " " + h.x + "," + h.y), p.getElementsByTagName("polyline")[1].setAttribute("points", h.x + "," + h.y + " " + u.x + "," + u.y);
39978
+ let g = h.x, x = h.y - 30;
39979
+ p.getElementsByTagName("rect")[0].setAttribute("x", g - 40), p.getElementsByTagName("rect")[0].setAttribute("y", x - 12.5), p.getElementsByTagName("text")[0].setAttribute("x", g), p.getElementsByTagName("text")[0].setAttribute("y", x + 4), p.getElementsByTagName("text")[0].innerHTML = l.text, p.style.top = "0px", p.style.left = "0px";
39977
39980
  }
39978
39981
  function n(l) {
39979
39982
  if (l.container == null) {
39980
- let x = [
39983
+ let b = [
39981
39984
  '<svg class="measureSvg">',
39982
39985
  '<polygon fill="rgba(255, 165, 0, 0.3)" stroke="orange" stroke-width="2" points="" style="opacity: 0.3;"/>',
39983
39986
  // 填充区域
@@ -39987,26 +39990,26 @@ class Ni {
39987
39990
  '<text x="40" y="16" text-anchor="middle" class="measureLabel">' + l.text + "</text>",
39988
39991
  "</svg>"
39989
39992
  ].join("");
39990
- l.container = document.createElement("div"), l.container.className = "area-annotation", l.container.id = l.id, l.container.innerHTML = x, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
39993
+ l.container = document.createElement("div"), l.container.className = "area-annotation", l.container.id = l.id, l.container.innerHTML = b, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
39991
39994
  e.clearHighlight(), l.container.getElementsByTagName("svg")[0].classList.add("Hight"), l.highlight = !0;
39992
39995
  });
39993
39996
  }
39994
39997
  if (!l.points || l.points.length < 3)
39995
39998
  return;
39996
- let c = [], h = 0, u = 0;
39997
- for (let x = 0; x < l.points.length; x++) {
39998
- let m = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.points[x]);
39999
- c.push(m), h += m.x, u += m.y;
39999
+ let c = e.engine.reactBoundingClientRect.left, h = e.engine.reactBoundingClientRect.top, u = [], d = 0, f = 0;
40000
+ for (let b = 0; b < l.points.length; b++) {
40001
+ let v = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.points[b]);
40002
+ v.x += c, v.y += h, u.push(v), d += v.x, f += v.y;
40000
40003
  }
40001
- h = h / c.length, u = u / c.length;
40002
- let d = c.map((x) => x.x + "," + x.y).join(" "), f = l.container;
40003
- f.getElementsByTagName("polygon")[0].setAttribute("points", d), f.getElementsByTagName("polyline")[0].setAttribute("points", d);
40004
- let p = h, g = u;
40005
- f.getElementsByTagName("rect")[0].setAttribute("x", p - 40), f.getElementsByTagName("rect")[0].setAttribute("y", g - 12.5), f.getElementsByTagName("text")[0].setAttribute("x", p), f.getElementsByTagName("text")[0].setAttribute("y", g + 4), f.getElementsByTagName("text")[0].innerHTML = l.text, f.style.top = "0px", f.style.left = "0px";
40004
+ d = d / u.length, f = f / u.length;
40005
+ let p = u.map((b) => b.x + "," + b.y).join(" "), g = l.container;
40006
+ g.getElementsByTagName("polygon")[0].setAttribute("points", p), g.getElementsByTagName("polyline")[0].setAttribute("points", p);
40007
+ let x = d, m = f;
40008
+ g.getElementsByTagName("rect")[0].setAttribute("x", x - 40), g.getElementsByTagName("rect")[0].setAttribute("y", m - 12.5), g.getElementsByTagName("text")[0].setAttribute("x", x), g.getElementsByTagName("text")[0].setAttribute("y", m + 4), g.getElementsByTagName("text")[0].innerHTML = l.text, g.style.top = "0px", g.style.left = "0px";
40006
40009
  }
40007
40010
  function i(l) {
40008
40011
  if (l.container == null) {
40009
- let p = [
40012
+ let x = [
40010
40013
  '<svg class="measureSvg">',
40011
40014
  "<defs>",
40012
40015
  '<marker id="slope-arrow-' + l.id + '" markerWidth="10" markerHeight="10" refX="9" refY="3" orient="auto" markerUnits="strokeWidth">',
@@ -40020,18 +40023,20 @@ class Ni {
40020
40023
  '<text x="50" y="16" text-anchor="middle" class="measureLabel">' + l.text + "</text>",
40021
40024
  "</svg>"
40022
40025
  ].join("");
40023
- l.container = document.createElement("div"), l.container.className = "slope-annotation", l.container.id = l.id, l.container.innerHTML = p, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40026
+ l.container = document.createElement("div"), l.container.className = "slope-annotation", l.container.id = l.id, l.container.innerHTML = x, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40024
40027
  e.clearHighlight(), l.container.getElementsByTagName("svg")[0].classList.add("Hight"), l.highlight = !0;
40025
40028
  });
40026
40029
  }
40027
- let c = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point1), h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point2), u = l.container;
40028
- u.getElementsByTagName("polyline")[0].setAttribute("points", c.x + "," + c.y + " " + h.x + "," + h.y);
40029
- let d = (c.x + h.x) / 2, f = (c.y + h.y) / 2 - 30;
40030
- u.getElementsByTagName("rect")[0].setAttribute("x", d - 50), u.getElementsByTagName("rect")[0].setAttribute("y", f - 12.5), u.getElementsByTagName("text")[0].setAttribute("x", d), u.getElementsByTagName("text")[0].setAttribute("y", f + 4), u.getElementsByTagName("text")[0].innerHTML = l.text, u.style.top = "0px", u.style.left = "0px";
40030
+ let c = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point1), h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point2), u = e.engine.reactBoundingClientRect.left, d = e.engine.reactBoundingClientRect.top;
40031
+ c.x += u, c.y += d, h.x += u, h.y += d;
40032
+ let f = l.container;
40033
+ f.getElementsByTagName("polyline")[0].setAttribute("points", c.x + "," + c.y + " " + h.x + "," + h.y);
40034
+ let p = (c.x + h.x) / 2, g = (c.y + h.y) / 2 - 30;
40035
+ f.getElementsByTagName("rect")[0].setAttribute("x", p - 50), f.getElementsByTagName("rect")[0].setAttribute("y", g - 12.5), f.getElementsByTagName("text")[0].setAttribute("x", p), f.getElementsByTagName("text")[0].setAttribute("y", g + 4), f.getElementsByTagName("text")[0].innerHTML = l.text, f.style.top = "0px", f.style.left = "0px";
40031
40036
  }
40032
40037
  function r(l) {
40033
40038
  if (l.container == null) {
40034
- let g = [
40039
+ let m = [
40035
40040
  '<svg class="measureSvg">',
40036
40041
  '<circle cx="0" cy="0" r="5" fill="#f99d0b" />',
40037
40042
  '<rect x="0" y="-25" width="100" height="25" class="measureBack" />',
@@ -40042,36 +40047,36 @@ class Ni {
40042
40047
  '<text x="40" y="51" text-anchor="middle" class="measureLabel">' + l.textZ + "</text>",
40043
40048
  "</svg>"
40044
40049
  ].join("");
40045
- l.container = document.createElement("div"), l.container.className = "coordinate-annotation", l.container.id = l.id, l.container.style.position = "absolute", l.container.style.pointerEvents = "none", l.container.innerHTML = g, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40050
+ l.container = document.createElement("div"), l.container.className = "coordinate-annotation", l.container.id = l.id, l.container.style.position = "absolute", l.container.style.pointerEvents = "none", l.container.innerHTML = m, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40046
40051
  e.clearHighlight(), l.container.getElementsByTagName("svg")[0].classList.add("Hight"), l.highlight = !0;
40047
40052
  });
40048
40053
  }
40049
- let c = l.container, h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point);
40050
- c.style.top = "0px", c.style.left = "0px";
40051
- let u = c.getElementsByTagName("circle")[0];
40052
- u && (u.setAttribute("cx", h.x), u.setAttribute("cy", h.y));
40053
- let d = c.getElementsByTagName("rect"), f = c.getElementsByTagName("text"), p = -55;
40054
- d[0] && (d[0].setAttribute("x", h.x + 10), d[0].setAttribute("y", h.y + 10 + p)), f[0] && (f[0].setAttribute("x", h.x + 10 + 40), f[0].setAttribute("y", h.y + 10 + 16 + p)), d[1] && (d[1].setAttribute("x", h.x + 10), d[1].setAttribute("y", h.y + 10 + 30 + p)), f[1] && (f[1].setAttribute("x", h.x + 10 + 40), f[1].setAttribute("y", h.y + 10 + 46 + p)), d[2] && (d[2].setAttribute("x", h.x + 10), d[2].setAttribute("y", h.y + 10 + 60 + p)), f[2] && (f[2].setAttribute("x", h.x + 10 + 40), f[2].setAttribute("y", h.y + 10 + 76 + p)), f[0] && (f[0].innerHTML = l.textX), f[1] && (f[1].innerHTML = l.textY), f[2] && (f[2].innerHTML = l.textZ);
40054
+ let c = l.container, h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point), u = e.engine.reactBoundingClientRect.left, d = e.engine.reactBoundingClientRect.top;
40055
+ h.x += u, h.y += d, c.style.top = "0px", c.style.left = "0px";
40056
+ let f = c.getElementsByTagName("circle")[0];
40057
+ f && (f.setAttribute("cx", h.x), f.setAttribute("cy", h.y));
40058
+ let p = c.getElementsByTagName("rect"), g = c.getElementsByTagName("text"), x = -55;
40059
+ p[0] && (p[0].setAttribute("x", h.x + 10), p[0].setAttribute("y", h.y + 10 + x)), g[0] && (g[0].setAttribute("x", h.x + 10 + 40), g[0].setAttribute("y", h.y + 10 + 16 + x)), p[1] && (p[1].setAttribute("x", h.x + 10), p[1].setAttribute("y", h.y + 10 + 30 + x)), g[1] && (g[1].setAttribute("x", h.x + 10 + 40), g[1].setAttribute("y", h.y + 10 + 46 + x)), p[2] && (p[2].setAttribute("x", h.x + 10), p[2].setAttribute("y", h.y + 10 + 60 + x)), g[2] && (g[2].setAttribute("x", h.x + 10 + 40), g[2].setAttribute("y", h.y + 10 + 76 + x)), g[0] && (g[0].innerHTML = l.textX), g[1] && (g[1].innerHTML = l.textY), g[2] && (g[2].innerHTML = l.textZ);
40055
40060
  }
40056
40061
  function a(l) {
40057
40062
  if (l.container == null) {
40058
- let u = [
40063
+ let f = [
40059
40064
  '<svg width="100" height="50" class="measureSvg">',
40060
40065
  '<rect x="0" y="0" width="80" height="25" class="measureBack" />',
40061
40066
  '<text x="40" y="16" text-anchor="middle" class="measureLabel">' + l.text + "</text>",
40062
40067
  '<polyline stroke="#f99d0b" stroke-width="2" points="80,32 0,32 16,48 32,32" style="fill: none; opacity: 1;"/>',
40063
40068
  "</svg>"
40064
40069
  ].join("");
40065
- l.container = document.createElement("div"), l.container.className = "elevation-annotation", l.container.id = l.id, l.container.style.position = "absolute", l.container.style.pointerEvents = "none", l.container.innerHTML = u, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40070
+ l.container = document.createElement("div"), l.container.className = "elevation-annotation", l.container.id = l.id, l.container.style.position = "absolute", l.container.style.pointerEvents = "none", l.container.innerHTML = f, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40066
40071
  e.clearHighlight(), l.container.getElementsByTagName("svg")[0].classList.add("Hight"), l.highlight = !0;
40067
40072
  });
40068
40073
  }
40069
- let c = l.container, h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point);
40070
- c.style.top = h.y - 48 + "px", c.style.left = h.x - 16 + "px", c.getElementsByTagName("text")[0].innerHTML = l.text;
40074
+ let c = l.container, h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point), u = e.engine.reactBoundingClientRect.left, d = e.engine.reactBoundingClientRect.top;
40075
+ c.style.top = h.y + d - 48 + "px", c.style.left = h.x + u - 16 + "px", c.getElementsByTagName("text")[0].innerHTML = l.text;
40071
40076
  }
40072
40077
  function o(l) {
40073
40078
  if (l.container == null) {
40074
- let d = [
40079
+ let p = [
40075
40080
  '<svg class="measureSvg">',
40076
40081
  '<circle cx="50" cy="50" r="5" fill="#f99d0b" />',
40077
40082
  '<circle cx="50" cy="50" r="5" fill="#f99d0b" />',
@@ -40080,7 +40085,7 @@ class Ni {
40080
40085
  '<text x="40" y="16" text-anchor="middle" class="measureLabel">' + l.text + "</text>",
40081
40086
  "</svg>"
40082
40087
  ].join("");
40083
- l.container = document.createElement("div"), l.container.className = "normal-annotation", l.container.id = l.id, l.container.innerHTML = d, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40088
+ l.container = document.createElement("div"), l.container.className = "normal-annotation", l.container.id = l.id, l.container.innerHTML = p, e.engine.measure.annotationContainer.appendChild(l.container), l.container.getElementsByTagName("svg")[0].addEventListener("click", function() {
40084
40089
  e.clearHighlight(), l.container.getElementsByTagName("svg")[0].classList.add("Hight"), l.highlight = !0;
40085
40090
  });
40086
40091
  }
@@ -40090,8 +40095,8 @@ class Ni {
40090
40095
  return;
40091
40096
  } else
40092
40097
  c.style.display = "block";
40093
- let h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point1), u = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point2);
40094
- c.getElementsByTagName("polyline")[0].setAttribute("points", h.x + "," + h.y + " " + u.x + "," + u.y), c.getElementsByTagName("circle")[0].setAttribute("cx", h.x), c.getElementsByTagName("circle")[0].setAttribute("cy", h.y), c.getElementsByTagName("circle")[1].setAttribute("cx", u.x), c.getElementsByTagName("circle")[1].setAttribute("cy", u.y), c.getElementsByTagName("rect")[0].setAttribute("x", h.x * 0.5 + u.x * 0.5 - 40), c.getElementsByTagName("rect")[0].setAttribute("y", h.y * 0.5 + u.y * 0.5 - 12.5), c.getElementsByTagName("text")[0].setAttribute("x", h.x * 0.5 + u.x * 0.5 + 40 - 40), c.getElementsByTagName("text")[0].setAttribute("y", h.y * 0.5 + u.y * 0.5 + 16 - 12.5), c.getElementsByTagName("text")[0].innerHTML = l.text, c.style.top = "0px", c.style.left = "0px";
40098
+ let h = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point1), u = new Dn(e.engine.camera, e.engine.renderer, e.engine.scene).worldToScreen(l.point2), d = e.engine.reactBoundingClientRect.left, f = e.engine.reactBoundingClientRect.top;
40099
+ h.x += d, h.y += f, u.x += d, u.y += f, c.getElementsByTagName("polyline")[0].setAttribute("points", h.x + "," + h.y + " " + u.x + "," + u.y), c.getElementsByTagName("circle")[0].setAttribute("cx", h.x), c.getElementsByTagName("circle")[0].setAttribute("cy", h.y), c.getElementsByTagName("circle")[1].setAttribute("cx", u.x), c.getElementsByTagName("circle")[1].setAttribute("cy", u.y), c.getElementsByTagName("rect")[0].setAttribute("x", h.x * 0.5 + u.x * 0.5 - 40), c.getElementsByTagName("rect")[0].setAttribute("y", h.y * 0.5 + u.y * 0.5 - 12.5), c.getElementsByTagName("text")[0].setAttribute("x", h.x * 0.5 + u.x * 0.5 + 40 - 40), c.getElementsByTagName("text")[0].setAttribute("y", h.y * 0.5 + u.y * 0.5 + 16 - 12.5), c.getElementsByTagName("text")[0].innerHTML = l.text, c.style.top = "0px", c.style.left = "0px";
40095
40100
  }
40096
40101
  }
40097
40102
  }
@@ -40871,7 +40876,7 @@ function wo(s, e, t) {
40871
40876
  a < t[n] && (t[n] = a), o > t[n + 3] && (t[n + 3] = o);
40872
40877
  }
40873
40878
  }
40874
- function Xr(s) {
40879
+ function jr(s) {
40875
40880
  const e = s[3] - s[0], t = s[4] - s[1], n = s[5] - s[2];
40876
40881
  return 2 * (e * t + t * n + n * e);
40877
40882
  }
@@ -40889,7 +40894,7 @@ function uS(s, e, t, n, i, r) {
40889
40894
  else if (r === sS)
40890
40895
  a = rp(s), a !== -1 && (o = dS(t, n, i, a));
40891
40896
  else if (r === rS) {
40892
- const l = Xr(s);
40897
+ const l = jr(s);
40893
40898
  let c = Sc * i;
40894
40899
  const h = t.offset || 0, u = (n - h) * 6, d = (n + i - h) * 6;
40895
40900
  for (let f = 0; f < 3; f++) {
@@ -40927,9 +40932,9 @@ function uS(s, e, t, n, i, r) {
40927
40932
  for (let v = 0; v < b; v++) {
40928
40933
  const y = x[v], w = y.count, E = i - y.count, A = y.leftCacheBounds, R = y.rightCacheBounds;
40929
40934
  let _ = 0;
40930
- w !== 0 && (_ = Xr(A) / l);
40935
+ w !== 0 && (_ = jr(A) / l);
40931
40936
  let S = 0;
40932
- E !== 0 && (S = Xr(R) / l);
40937
+ E !== 0 && (S = jr(R) / l);
40933
40938
  const D = np + Sc * (_ * w + S * E);
40934
40939
  D < c && (a = f, c = D, o = y.candidate);
40935
40940
  }
@@ -40958,9 +40963,9 @@ function uS(s, e, t, n, i, r) {
40958
40963
  const v = Vi[b], y = v.count, w = v.bounds, E = Vi[b + 1].rightCacheBounds;
40959
40964
  y !== 0 && (m === 0 ? ap(w, Mo) : op(w, Mo, Mo)), m += y;
40960
40965
  let A = 0, R = 0;
40961
- m !== 0 && (A = Xr(Mo) / l);
40966
+ m !== 0 && (A = jr(Mo) / l);
40962
40967
  const _ = i - m;
40963
- _ !== 0 && (R = Xr(E) / l);
40968
+ _ !== 0 && (R = jr(E) / l);
40964
40969
  const S = np + Sc * (A * m + R * _);
40965
40970
  S < c && (a = f, c = S, o = v.candidate);
40966
40971
  }
@@ -41618,25 +41623,25 @@ function iu(s, e, t, n, i = null, r = 0, a = 0) {
41618
41623
  return !!S;
41619
41624
  }
41620
41625
  }
41621
- const jr = /* @__PURE__ */ new P(), Cc = /* @__PURE__ */ new P();
41626
+ const qr = /* @__PURE__ */ new P(), Cc = /* @__PURE__ */ new P();
41622
41627
  function TS(s, e, t = {}, n = 0, i = 1 / 0) {
41623
41628
  const r = n * n, a = i * i;
41624
41629
  let o = 1 / 0, l = null;
41625
41630
  if (s.shapecast(
41626
41631
  {
41627
- boundsTraverseOrder: (h) => (jr.copy(e).clamp(h.min, h.max), jr.distanceToSquared(e)),
41632
+ boundsTraverseOrder: (h) => (qr.copy(e).clamp(h.min, h.max), qr.distanceToSquared(e)),
41628
41633
  intersectsBounds: (h, u, d) => d < o && d < a,
41629
41634
  intersectsTriangle: (h, u) => {
41630
- h.closestPointToPoint(e, jr);
41631
- const d = e.distanceToSquared(jr);
41632
- return d < o && (Cc.copy(jr), o = d, l = u), d < r;
41635
+ h.closestPointToPoint(e, qr);
41636
+ const d = e.distanceToSquared(qr);
41637
+ return d < o && (Cc.copy(qr), o = d, l = u), d < r;
41633
41638
  }
41634
41639
  }
41635
41640
  ), o === 1 / 0) return null;
41636
41641
  const c = Math.sqrt(o);
41637
41642
  return t.point ? t.point.copy(Cc) : t.point = Cc.clone(), t.distance = c, t.faceIndex = l, t;
41638
41643
  }
41639
- const Eo = parseInt(Ma) >= 169, AS = parseInt(Ma) <= 161, cs = /* @__PURE__ */ new P(), hs = /* @__PURE__ */ new P(), us = /* @__PURE__ */ new P(), To = /* @__PURE__ */ new he(), Ao = /* @__PURE__ */ new he(), Co = /* @__PURE__ */ new he(), cp = /* @__PURE__ */ new P(), hp = /* @__PURE__ */ new P(), up = /* @__PURE__ */ new P(), qr = /* @__PURE__ */ new P();
41644
+ const Eo = parseInt(Ma) >= 169, AS = parseInt(Ma) <= 161, cs = /* @__PURE__ */ new P(), hs = /* @__PURE__ */ new P(), us = /* @__PURE__ */ new P(), To = /* @__PURE__ */ new he(), Ao = /* @__PURE__ */ new he(), Co = /* @__PURE__ */ new he(), cp = /* @__PURE__ */ new P(), hp = /* @__PURE__ */ new P(), up = /* @__PURE__ */ new P(), Zr = /* @__PURE__ */ new P();
41640
41645
  function CS(s, e, t, n, i, r, a, o) {
41641
41646
  let l;
41642
41647
  if (r === un ? l = s.intersectTriangle(n, t, e, !0, i) : l = s.intersectTriangle(e, t, n, r !== Tt, i), l === null) return null;
@@ -41648,21 +41653,21 @@ function CS(s, e, t, n, i, r, a, o) {
41648
41653
  }
41649
41654
  function dp(s, e, t, n, i, r, a, o, l, c, h) {
41650
41655
  cs.fromBufferAttribute(e, r), hs.fromBufferAttribute(e, a), us.fromBufferAttribute(e, o);
41651
- const u = CS(s, cs, hs, us, qr, l, c, h);
41656
+ const u = CS(s, cs, hs, us, Zr, l, c, h);
41652
41657
  if (u) {
41653
41658
  if (n) {
41654
41659
  To.fromBufferAttribute(n, r), Ao.fromBufferAttribute(n, a), Co.fromBufferAttribute(n, o), u.uv = new he();
41655
- const f = wt.getInterpolation(qr, cs, hs, us, To, Ao, Co, u.uv);
41660
+ const f = wt.getInterpolation(Zr, cs, hs, us, To, Ao, Co, u.uv);
41656
41661
  Eo || (u.uv = f);
41657
41662
  }
41658
41663
  if (i) {
41659
41664
  To.fromBufferAttribute(i, r), Ao.fromBufferAttribute(i, a), Co.fromBufferAttribute(i, o), u.uv1 = new he();
41660
- const f = wt.getInterpolation(qr, cs, hs, us, To, Ao, Co, u.uv1);
41665
+ const f = wt.getInterpolation(Zr, cs, hs, us, To, Ao, Co, u.uv1);
41661
41666
  Eo || (u.uv1 = f), AS && (u.uv2 = u.uv1);
41662
41667
  }
41663
41668
  if (t) {
41664
41669
  cp.fromBufferAttribute(t, r), hp.fromBufferAttribute(t, a), up.fromBufferAttribute(t, o), u.normal = new P();
41665
- const f = wt.getInterpolation(qr, cs, hs, us, cp, hp, up, u.normal);
41670
+ const f = wt.getInterpolation(Zr, cs, hs, us, cp, hp, up, u.normal);
41666
41671
  u.normal.dot(s.direction) > 0 && u.normal.multiplyScalar(-1), Eo || (u.normal = f);
41667
41672
  }
41668
41673
  const d = {
@@ -41674,7 +41679,7 @@ function dp(s, e, t, n, i, r, a, o, l, c, h) {
41674
41679
  };
41675
41680
  if (wt.getNormal(cs, hs, us, d.normal), u.face = d, u.faceIndex = r, Eo) {
41676
41681
  const f = new P();
41677
- wt.getBarycoord(qr, cs, hs, us, f), u.barycoord = f;
41682
+ wt.getBarycoord(Zr, cs, hs, us, f), u.barycoord = f;
41678
41683
  }
41679
41684
  }
41680
41685
  return u;
@@ -41857,7 +41862,7 @@ function ru(s, e, t, n, i, r) {
41857
41862
  return g && x ? g.distance <= x.distance ? g : x : g || x || null;
41858
41863
  }
41859
41864
  }
41860
- const Po = /* @__PURE__ */ new pt(), Qs = /* @__PURE__ */ new Vn(), er = /* @__PURE__ */ new Vn(), Zr = /* @__PURE__ */ new ze(), pp = /* @__PURE__ */ new dn(), Ro = /* @__PURE__ */ new dn();
41865
+ const Po = /* @__PURE__ */ new pt(), Qs = /* @__PURE__ */ new Vn(), er = /* @__PURE__ */ new Vn(), Yr = /* @__PURE__ */ new ze(), pp = /* @__PURE__ */ new dn(), Ro = /* @__PURE__ */ new dn();
41861
41866
  function FS(s, e, t, n) {
41862
41867
  Mt.setBuffer(s._roots[e]);
41863
41868
  const i = au(0, s, t, n);
@@ -41868,8 +41873,8 @@ function au(s, e, t, n, i = null) {
41868
41873
  let l = s * 2;
41869
41874
  if (i === null && (t.boundingBox || t.computeBoundingBox(), pp.set(t.boundingBox.min, t.boundingBox.max, n), i = pp), jt(l, a)) {
41870
41875
  const c = e.geometry, h = c.index, u = c.attributes.position, d = t.index, f = t.attributes.position, p = An(s, o), g = Un(l, a);
41871
- if (Zr.copy(n).invert(), t.boundsTree)
41872
- return It(s, r, Ro), Ro.matrix.copy(Zr), Ro.needsUpdate = !0, t.boundsTree.shapecast({
41876
+ if (Yr.copy(n).invert(), t.boundsTree)
41877
+ return It(s, r, Ro), Ro.matrix.copy(Yr), Ro.needsUpdate = !0, t.boundsTree.shapecast({
41873
41878
  intersectsBounds: (x) => Ro.intersectsBox(x),
41874
41879
  intersectsTriangle: (x) => {
41875
41880
  x.a.applyMatrix4(n), x.b.applyMatrix4(n), x.c.applyMatrix4(n), x.needsUpdate = !0;
@@ -41882,7 +41887,7 @@ function au(s, e, t, n, i = null) {
41882
41887
  {
41883
41888
  const x = Ds(t);
41884
41889
  for (let m = p * 3, b = (g + p) * 3; m < b; m += 3) {
41885
- zt(Qs, m, h, u), Qs.a.applyMatrix4(Zr), Qs.b.applyMatrix4(Zr), Qs.c.applyMatrix4(Zr), Qs.needsUpdate = !0;
41890
+ zt(Qs, m, h, u), Qs.a.applyMatrix4(Yr), Qs.b.applyMatrix4(Yr), Qs.c.applyMatrix4(Yr), Qs.needsUpdate = !0;
41886
41891
  for (let v = 0, y = x * 3; v < y; v += 3)
41887
41892
  if (zt(er, v, d, f), er.needsUpdate = !0, Qs.intersectsTriangle(er))
41888
41893
  return !0;
@@ -41893,21 +41898,21 @@ function au(s, e, t, n, i = null) {
41893
41898
  return It(c, r, Po), !!(i.intersectsBox(Po) && au(c, e, t, n, i) || (It(h, r, Po), i.intersectsBox(Po) && au(h, e, t, n, i)));
41894
41899
  }
41895
41900
  }
41896
- const Lo = /* @__PURE__ */ new ze(), Pc = /* @__PURE__ */ new dn(), Yr = /* @__PURE__ */ new dn(), zS = /* @__PURE__ */ new P(), HS = /* @__PURE__ */ new P(), VS = /* @__PURE__ */ new P(), GS = /* @__PURE__ */ new P();
41901
+ const Lo = /* @__PURE__ */ new ze(), Pc = /* @__PURE__ */ new dn(), Kr = /* @__PURE__ */ new dn(), zS = /* @__PURE__ */ new P(), HS = /* @__PURE__ */ new P(), VS = /* @__PURE__ */ new P(), GS = /* @__PURE__ */ new P();
41897
41902
  function WS(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
41898
41903
  e.boundingBox || e.computeBoundingBox(), Pc.set(e.boundingBox.min, e.boundingBox.max, t), Pc.needsUpdate = !0;
41899
41904
  const o = s.geometry, l = o.attributes.position, c = o.index, h = e.attributes.position, u = e.index, d = Bn.getPrimitive(), f = Bn.getPrimitive();
41900
41905
  let p = zS, g = HS, x = null, m = null;
41901
41906
  i && (x = VS, m = GS);
41902
41907
  let b = 1 / 0, v = null, y = null;
41903
- return Lo.copy(t).invert(), Yr.matrix.copy(Lo), s.shapecast(
41908
+ return Lo.copy(t).invert(), Kr.matrix.copy(Lo), s.shapecast(
41904
41909
  {
41905
41910
  boundsTraverseOrder: (w) => Pc.distanceToBox(w),
41906
- intersectsBounds: (w, E, A) => A < b && A < a ? (E && (Yr.min.copy(w.min), Yr.max.copy(w.max), Yr.needsUpdate = !0), !0) : !1,
41911
+ intersectsBounds: (w, E, A) => A < b && A < a ? (E && (Kr.min.copy(w.min), Kr.max.copy(w.max), Kr.needsUpdate = !0), !0) : !1,
41907
41912
  intersectsRange: (w, E) => {
41908
41913
  if (e.boundsTree)
41909
41914
  return e.boundsTree.shapecast({
41910
- boundsTraverseOrder: (A) => Yr.distanceToBox(A),
41915
+ boundsTraverseOrder: (A) => Kr.distanceToBox(A),
41911
41916
  intersectsBounds: (A, R, _) => _ < b && _ < a,
41912
41917
  intersectsRange: (A, R) => {
41913
41918
  for (let _ = A, S = A + R; _ < S; _++) {
@@ -42028,7 +42033,7 @@ function lu(s, e, t, n, i, r) {
42028
42033
  return g && x ? g.distance <= x.distance ? g : x : g || x || null;
42029
42034
  }
42030
42035
  }
42031
- const Do = /* @__PURE__ */ new pt(), tr = /* @__PURE__ */ new Vn(), nr = /* @__PURE__ */ new Vn(), Kr = /* @__PURE__ */ new ze(), mp = /* @__PURE__ */ new dn(), Io = /* @__PURE__ */ new dn();
42036
+ const Do = /* @__PURE__ */ new pt(), tr = /* @__PURE__ */ new Vn(), nr = /* @__PURE__ */ new Vn(), $r = /* @__PURE__ */ new ze(), mp = /* @__PURE__ */ new dn(), Io = /* @__PURE__ */ new dn();
42032
42037
  function YS(s, e, t, n) {
42033
42038
  Mt.setBuffer(s._roots[e]);
42034
42039
  const i = cu(0, s, t, n);
@@ -42039,8 +42044,8 @@ function cu(s, e, t, n, i = null) {
42039
42044
  let l = s * 2;
42040
42045
  if (i === null && (t.boundingBox || t.computeBoundingBox(), mp.set(t.boundingBox.min, t.boundingBox.max, n), i = mp), jt(l, a)) {
42041
42046
  const c = e.geometry, h = c.index, u = c.attributes.position, d = t.index, f = t.attributes.position, p = An(s, o), g = Un(l, a);
42042
- if (Kr.copy(n).invert(), t.boundsTree)
42043
- return It(s, r, Io), Io.matrix.copy(Kr), Io.needsUpdate = !0, t.boundsTree.shapecast({
42047
+ if ($r.copy(n).invert(), t.boundsTree)
42048
+ return It(s, r, Io), Io.matrix.copy($r), Io.needsUpdate = !0, t.boundsTree.shapecast({
42044
42049
  intersectsBounds: (x) => Io.intersectsBox(x),
42045
42050
  intersectsTriangle: (x) => {
42046
42051
  x.a.applyMatrix4(n), x.b.applyMatrix4(n), x.c.applyMatrix4(n), x.needsUpdate = !0;
@@ -42054,7 +42059,7 @@ function cu(s, e, t, n, i = null) {
42054
42059
  const x = Ds(t);
42055
42060
  for (let m = p, b = g + p; m < b; m++) {
42056
42061
  const v = e.resolveTriangleIndex(m);
42057
- zt(tr, 3 * v, h, u), tr.a.applyMatrix4(Kr), tr.b.applyMatrix4(Kr), tr.c.applyMatrix4(Kr), tr.needsUpdate = !0;
42062
+ zt(tr, 3 * v, h, u), tr.a.applyMatrix4($r), tr.b.applyMatrix4($r), tr.c.applyMatrix4($r), tr.needsUpdate = !0;
42058
42063
  for (let y = 0, w = x * 3; y < w; y += 3)
42059
42064
  if (zt(nr, y, d, f), nr.needsUpdate = !0, tr.intersectsTriangle(nr))
42060
42065
  return !0;
@@ -42065,22 +42070,22 @@ function cu(s, e, t, n, i = null) {
42065
42070
  return It(c, r, Do), !!(i.intersectsBox(Do) && cu(c, e, t, n, i) || (It(h, r, Do), i.intersectsBox(Do) && cu(h, e, t, n, i)));
42066
42071
  }
42067
42072
  }
42068
- const No = /* @__PURE__ */ new ze(), Rc = /* @__PURE__ */ new dn(), $r = /* @__PURE__ */ new dn(), KS = /* @__PURE__ */ new P(), $S = /* @__PURE__ */ new P(), JS = /* @__PURE__ */ new P(), QS = /* @__PURE__ */ new P();
42073
+ const No = /* @__PURE__ */ new ze(), Rc = /* @__PURE__ */ new dn(), Jr = /* @__PURE__ */ new dn(), KS = /* @__PURE__ */ new P(), $S = /* @__PURE__ */ new P(), JS = /* @__PURE__ */ new P(), QS = /* @__PURE__ */ new P();
42069
42074
  function eE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
42070
42075
  e.boundingBox || e.computeBoundingBox(), Rc.set(e.boundingBox.min, e.boundingBox.max, t), Rc.needsUpdate = !0;
42071
42076
  const o = s.geometry, l = o.attributes.position, c = o.index, h = e.attributes.position, u = e.index, d = Bn.getPrimitive(), f = Bn.getPrimitive();
42072
42077
  let p = KS, g = $S, x = null, m = null;
42073
42078
  i && (x = JS, m = QS);
42074
42079
  let b = 1 / 0, v = null, y = null;
42075
- return No.copy(t).invert(), $r.matrix.copy(No), s.shapecast(
42080
+ return No.copy(t).invert(), Jr.matrix.copy(No), s.shapecast(
42076
42081
  {
42077
42082
  boundsTraverseOrder: (w) => Rc.distanceToBox(w),
42078
- intersectsBounds: (w, E, A) => A < b && A < a ? (E && ($r.min.copy(w.min), $r.max.copy(w.max), $r.needsUpdate = !0), !0) : !1,
42083
+ intersectsBounds: (w, E, A) => A < b && A < a ? (E && (Jr.min.copy(w.min), Jr.max.copy(w.max), Jr.needsUpdate = !0), !0) : !1,
42079
42084
  intersectsRange: (w, E) => {
42080
42085
  if (e.boundsTree) {
42081
42086
  const A = e.boundsTree;
42082
42087
  return A.shapecast({
42083
- boundsTraverseOrder: (R) => $r.distanceToBox(R),
42088
+ boundsTraverseOrder: (R) => Jr.distanceToBox(R),
42084
42089
  intersectsBounds: (R, _, S) => S < b && S < a,
42085
42090
  intersectsRange: (R, _) => {
42086
42091
  for (let S = R, D = R + _; S < D; S++) {
@@ -42116,7 +42121,7 @@ function eE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
42116
42121
  function tE() {
42117
42122
  return typeof SharedArrayBuffer < "u";
42118
42123
  }
42119
- const ha = /* @__PURE__ */ new Mt.constructor(), ul = /* @__PURE__ */ new Mt.constructor(), Wi = /* @__PURE__ */ new Fu(() => new pt()), ir = /* @__PURE__ */ new pt(), sr = /* @__PURE__ */ new pt(), Lc = /* @__PURE__ */ new pt(), Dc = /* @__PURE__ */ new pt();
42124
+ const ua = /* @__PURE__ */ new Mt.constructor(), ul = /* @__PURE__ */ new Mt.constructor(), Wi = /* @__PURE__ */ new Fu(() => new pt()), ir = /* @__PURE__ */ new pt(), sr = /* @__PURE__ */ new pt(), Lc = /* @__PURE__ */ new pt(), Dc = /* @__PURE__ */ new pt();
42120
42125
  let Ic = !1;
42121
42126
  function nE(s, e, t, n) {
42122
42127
  if (Ic)
@@ -42126,9 +42131,9 @@ function nE(s, e, t, n) {
42126
42131
  let a, o = 0, l = 0;
42127
42132
  const c = new ze().copy(t).invert();
42128
42133
  for (let h = 0, u = i.length; h < u; h++) {
42129
- ha.setBuffer(i[h]), l = 0;
42134
+ ua.setBuffer(i[h]), l = 0;
42130
42135
  const d = Wi.getPrimitive();
42131
- It(0, ha.float32Array, d), d.applyMatrix4(c);
42136
+ It(0, ua.float32Array, d), d.applyMatrix4(c);
42132
42137
  for (let f = 0, p = r.length; f < p && (ul.setBuffer(r[f]), a = qn(
42133
42138
  0,
42134
42139
  0,
@@ -42142,14 +42147,14 @@ function nE(s, e, t, n) {
42142
42147
  d
42143
42148
  ), ul.clearBuffer(), l += r[f].byteLength / hn, !a); f++)
42144
42149
  ;
42145
- if (Wi.releasePrimitive(d), ha.clearBuffer(), o += i[h].byteLength / hn, a)
42150
+ if (Wi.releasePrimitive(d), ua.clearBuffer(), o += i[h].byteLength / hn, a)
42146
42151
  break;
42147
42152
  }
42148
42153
  return Ic = !1, a;
42149
42154
  }
42150
42155
  function qn(s, e, t, n, i, r = 0, a = 0, o = 0, l = 0, c = null, h = !1) {
42151
42156
  let u, d;
42152
- h ? (u = ul, d = ha) : (u = ha, d = ul);
42157
+ h ? (u = ul, d = ua) : (u = ua, d = ul);
42153
42158
  const f = u.float32Array, p = u.uint32Array, g = u.uint16Array, x = d.float32Array, m = d.uint32Array, b = d.uint16Array, v = s * 2, y = e * 2, w = jt(v, g), E = jt(y, b);
42154
42159
  let A = !1;
42155
42160
  if (E && w)
@@ -42849,7 +42854,7 @@ function ji(s, e = ME) {
42849
42854
  const t = kc.angleTo(wp), n = kc.angleTo(Mp), i = Math.PI - t - n;
42850
42855
  return Math.abs(t) < e || Math.abs(n) < e || Math.abs(i) < e || s.a.distanceToSquared(s.b) < e || s.a.distanceToSquared(s.c) < e || s.b.distanceToSquared(s.c) < e;
42851
42856
  }
42852
- const Fc = 1e-10, Jr = 1e-10, SE = 1e-10, _i = new Hn(), Ut = new Hn(), wi = new P(), zc = new P(), Sp = new P(), Oo = new _t(), Hc = new Vn();
42857
+ const Fc = 1e-10, Qr = 1e-10, SE = 1e-10, _i = new Hn(), Ut = new Hn(), wi = new P(), zc = new P(), Sp = new P(), Oo = new _t(), Hc = new Vn();
42853
42858
  class EE {
42854
42859
  constructor() {
42855
42860
  this._pool = [], this._index = 0;
@@ -42922,16 +42927,16 @@ class TE {
42922
42927
  const b = (m + 1) % 3;
42923
42928
  _i.start.copy(x[m]), _i.end.copy(x[b]);
42924
42929
  const v = e.distanceToPoint(_i.start), y = e.distanceToPoint(_i.end);
42925
- if (Math.abs(v) < Jr && Math.abs(y) < Jr) {
42930
+ if (Math.abs(v) < Qr && Math.abs(y) < Qr) {
42926
42931
  f = !0;
42927
42932
  break;
42928
42933
  }
42929
- if (v > 0 ? p.push(m) : g.push(m), Math.abs(v) < Jr)
42934
+ if (v > 0 ? p.push(m) : g.push(m), Math.abs(v) < Qr)
42930
42935
  continue;
42931
42936
  let w = !!e.intersectLine(_i, wi);
42932
- !w && Math.abs(y) < Jr && (wi.copy(_i.end), w = !0), w && !(wi.distanceTo(_i.start) < Fc) && (wi.distanceTo(_i.end) < Fc && (d = m), u === 0 ? Ut.start.copy(wi) : Ut.end.copy(wi), u++);
42937
+ !w && Math.abs(y) < Qr && (wi.copy(_i.end), w = !0), w && !(wi.distanceTo(_i.start) < Fc) && (wi.distanceTo(_i.end) < Fc && (d = m), u === 0 ? Ut.start.copy(wi) : Ut.end.copy(wi), u++);
42933
42938
  }
42934
- if (!f && u === 2 && Ut.distance() > Jr)
42939
+ if (!f && u === 2 && Ut.distance() > Qr)
42935
42940
  if (d !== -1) {
42936
42941
  d = (d + 1) % 3;
42937
42942
  let m = 0;
@@ -43086,7 +43091,7 @@ class Tp {
43086
43091
  n[e] || (n[e] = [], i.push(e)), n[e].push(t);
43087
43092
  }
43088
43093
  }
43089
- const PE = 0, RE = 1, LE = 2, E0 = 3, DE = 4, T0 = 5, A0 = 6, Nn = new Qi(), Ap = new ze(), ln = new wt(), Mi = new P(), Cp = new tt(), Pp = new tt(), Rp = new tt(), Vc = new tt(), ko = new tt(), Fo = new tt(), Lp = new Hn(), Gc = new P(), Wc = 1e-8, IE = 1e-15, ms = -1, gs = 1, Qo = -2, el = 2, ua = 0, ds = 1, Gu = 2, NE = 1e-14;
43094
+ const PE = 0, RE = 1, LE = 2, E0 = 3, DE = 4, T0 = 5, A0 = 6, Nn = new Qi(), Ap = new ze(), ln = new wt(), Mi = new P(), Cp = new tt(), Pp = new tt(), Rp = new tt(), Vc = new tt(), ko = new tt(), Fo = new tt(), Lp = new Hn(), Gc = new P(), Wc = 1e-8, IE = 1e-15, ms = -1, gs = 1, Qo = -2, el = 2, da = 0, ds = 1, Gu = 2, NE = 1e-14;
43090
43095
  let tl = null;
43091
43096
  function Dp(s) {
43092
43097
  tl = s;
@@ -43154,7 +43159,7 @@ function P0(s, e, t = !1) {
43154
43159
  case RE:
43155
43160
  if (t) {
43156
43161
  if (e === ms)
43157
- return ua;
43162
+ return da;
43158
43163
  } else if (e === gs || e === Qo)
43159
43164
  return ds;
43160
43165
  break;
@@ -43163,11 +43168,11 @@ function P0(s, e, t = !1) {
43163
43168
  if (e === gs || e === Qo)
43164
43169
  return ds;
43165
43170
  } else if (e === ms)
43166
- return ua;
43171
+ return da;
43167
43172
  break;
43168
43173
  case DE:
43169
43174
  if (e === ms)
43170
- return ua;
43175
+ return da;
43171
43176
  if (e === gs)
43172
43177
  return ds;
43173
43178
  break;
@@ -43319,7 +43324,7 @@ function Np(s, e, t, n, i, r, a, o = 0) {
43319
43324
  if (Kn.length !== 0) {
43320
43325
  fs.getBarycoord(N.a, Ho.a), fs.getBarycoord(N.b, Ho.b), fs.getBarycoord(N.c, Ho.c);
43321
43326
  for (let F = 0, W = Kn.length; F < W; F++) {
43322
- const j = Kn[F], $ = ys[F] === ua;
43327
+ const j = Kn[F], $ = ys[F] === da;
43323
43328
  OE(v, Ho, s.geometry, s.matrixWorld, fl, j, l !== $);
43324
43329
  }
43325
43330
  }
@@ -43354,7 +43359,7 @@ function Bp(s, e, t, n, i, r, a = 0) {
43354
43359
  const R = 3 * A, _ = h.getX(R + 0), S = h.getX(R + 1), D = h.getX(R + 2), C = a === -1 ? 0 : c[A] + a;
43355
43360
  if (Gi.a.fromBufferAttribute(d, _), Gi.b.fromBufferAttribute(d, S), Gi.c.fromBufferAttribute(d, D), !ji(Gi))
43356
43361
  for (let N = 0, M = Kn.length; N < M; N++) {
43357
- const F = ys[N], W = Kn[N].getGroupAttrSet(C), j = F === ua;
43362
+ const F = ys[N], W = Kn[N].getGroupAttrSet(C), j = F === da;
43358
43363
  kE(_, S, D, u, s.matrixWorld, fl, W, j !== o);
43359
43364
  }
43360
43365
  }
@@ -44729,6 +44734,7 @@ class nT {
44729
44734
  isRenderingPaused = !1;
44730
44735
  controlsEnabledBeforePause = !0;
44731
44736
  animate;
44737
+ onWindowResize;
44732
44738
  // 基础模块
44733
44739
  scene;
44734
44740
  camera;
@@ -44764,16 +44770,19 @@ class nT {
44764
44770
  modelEdge;
44765
44771
  // 业务数据
44766
44772
  models = [];
44773
+ reactBoundingClientRect = { left: 0, top: 0 };
44767
44774
  // 引擎容器
44768
44775
  container;
44769
44776
  constructor(e) {
44770
44777
  if (this.options = e, this.container = document.getElementById(e.containerId), !this.container)
44771
44778
  throw new Error(`Container ${e.containerId} not found`);
44772
- this.deviceModule = new P2(this), this.DeviceType = this.deviceModule.getDeviceType(), this.cameraModule = new C2(this), this.sceneModule = new A2(this), this.scene = this.sceneModule.scene, this.renderModule = new R2(this), this.renderer = this.renderModule.createRenderer(), this.camera = this.cameraModule.orthographicCamera, this.scene.camera = this.camera, this.controlModule = new X2(this), this.controlModule.switchDefaultMode(), this.controls = this.controlModule.orbitControls, this.composerModule = new a3(this), this.composerModule.init(), this.events = new LM(), this.engineStatus = new RM(this), this.engineStatus.init(), this.loaderModule = new PM(this), this.lightModule = new DM(this), this.lightModule.init(), this.viewCube = new WM(this), this.viewCube.init(), this.octreeBox = XM(this), this.rangeScale = new jM(this), this.rangeScale.init(), this.clipping = new KE(this), this.clipping.init(), this.setting = new qM(this), this.setting.init(), this.handelBehaved = Iu(this), this.modelMapperBatch = new eT(this), this.measure = new nS(this), this.modelToolModule = new NM(this), this.modelProperties = new QE(this), this.interactionModule = new IM(this), this.interactionModule.init(), this.interactionModule.active(), this.modelEdge = new tT(this), this.modelTree = new $E(this), this.engineInfo = new JE(this), this.worldToScreen = new Dn(this.camera, this.renderer, this.scene), this.stats = new kM(), this.stats.showPanel(0), this.stats.dom.style.position = "absolute", this.stats.dom.style.top = "0px", this.stats.dom.style.left = "0px", this.stats.dom.style.zIndex = "1000", this.container.appendChild(this.stats.dom);
44779
+ this.deviceModule = new P2(this), this.DeviceType = this.deviceModule.getDeviceType(), this.cameraModule = new C2(this), this.sceneModule = new A2(this), this.scene = this.sceneModule.scene, this.renderModule = new R2(this), this.renderer = this.renderModule.createRenderer(), this.camera = this.cameraModule.orthographicCamera, this.scene.camera = this.camera, this.controlModule = new X2(this), this.controlModule.switchDefaultMode(), this.controls = this.controlModule.orbitControls, this.composerModule = new a3(this), this.composerModule.init(), this.events = new LM(), this.engineStatus = new RM(this), this.engineStatus.init(), this.loaderModule = new PM(this), this.lightModule = new DM(this), this.lightModule.init(), this.viewCube = new WM(this), this.viewCube.init(), this.octreeBox = XM(this), this.rangeScale = new jM(this), this.rangeScale.init(), this.clipping = new KE(this), this.clipping.init(), this.setting = new qM(this), this.setting.init(), this.handelBehaved = Iu(this), this.modelMapperBatch = new eT(this), this.measure = new nS(this), this.modelToolModule = new NM(this), this.modelProperties = new QE(this), this.interactionModule = new IM(this), this.interactionModule.init(), this.interactionModule.active(), this.modelEdge = new tT(this), this.modelTree = new $E(this), this.engineInfo = new JE(this), this.worldToScreen = new Dn(this.camera, this.renderer, this.scene), this.reactBoundingClientRect = this.container.getBoundingClientRect(), this.stats = new kM(), this.stats.showPanel(0), this.stats.dom.style.position = "absolute", this.stats.dom.style.top = "0px", this.stats.dom.style.left = "0px", this.stats.dom.style.zIndex = "1000", this.container.appendChild(this.stats.dom);
44773
44780
  let t = document.createElementNS("http://www.w3.org/2000/svg", "svg");
44774
44781
  t.style.position = "absolute", t.style.width = "100%", t.style.height = "100%", t.style.zIndex = "1000", t.style.left = "0px", t.style.top = "0px", t.style.pointerEvents = "none";
44775
44782
  const n = this.renderer?.domElement.width || 1920, i = this.renderer?.domElement.height || 1080;
44776
- t.setAttribute("viewBox", `0 0 ${n} ${i}`), t.setAttribute("preserveAspectRatio", "none"), this.container.appendChild(t), this.catchSvg = t, this.animate = () => {
44783
+ t.setAttribute("viewBox", `0 0 ${n} ${i}`), t.setAttribute("preserveAspectRatio", "none"), this.container.appendChild(t), this.catchSvg = t, this.onWindowResize = () => {
44784
+ this.handleWindowResize();
44785
+ }, window.addEventListener("resize", this.onWindowResize), this.animate = () => {
44777
44786
  if (!this.isRenderingPaused)
44778
44787
  this.animationId = requestAnimationFrame(this.animate);
44779
44788
  else {
@@ -44809,6 +44818,28 @@ class nT {
44809
44818
  isRenderingPausedState() {
44810
44819
  return this.isRenderingPaused;
44811
44820
  }
44821
+ /**
44822
+ * 处理窗口大小变化
44823
+ */
44824
+ handleWindowResize() {
44825
+ if (!this.container || !this.renderer || !this.camera)
44826
+ return;
44827
+ this.reactBoundingClientRect = this.container.getBoundingClientRect();
44828
+ const { width: e, height: t } = this.deviceModule.getContainerSize();
44829
+ this.renderer.setSize(e, t);
44830
+ const n = e / t;
44831
+ if (this.camera === this.cameraModule.perspectiveCamera ? (this.cameraModule.perspectiveCamera.aspect = n, this.cameraModule.perspectiveCamera.updateProjectionMatrix()) : this.camera === this.cameraModule.orthographicCamera && (this.cameraModule.orthographicCamera.left = 50 * n / -2, this.cameraModule.orthographicCamera.right = 50 * n / 2, this.cameraModule.orthographicCamera.top = 50 / 2, this.cameraModule.orthographicCamera.bottom = 50 / -2, this.cameraModule.orthographicCamera.updateProjectionMatrix()), this.composerModule && this.composerModule.composer && this.composerModule.composer.setSize(e, t), this.catchSvg) {
44832
+ const i = this.renderer.domElement.width, r = this.renderer.domElement.height;
44833
+ this.catchSvg.setAttribute("viewBox", `0 0 ${i} ${r}`);
44834
+ }
44835
+ this.events && this.events.trigger(Ar.ViewportResize, { width: e, height: t });
44836
+ }
44837
+ /**
44838
+ * 销毁引擎,释放资源
44839
+ */
44840
+ dispose() {
44841
+ window.removeEventListener("resize", this.onWindowResize), this.animationId !== null && (cancelAnimationFrame(this.animationId), this.animationId = null);
44842
+ }
44812
44843
  }
44813
44844
  function iT(s) {
44814
44845
  return new nT(s);
@@ -44946,6 +44977,16 @@ class sT {
44946
44977
  }
44947
44978
  this.engine.resumeRendering();
44948
44979
  }
44980
+ /**
44981
+ * 销毁 3D 引擎,释放 GPU 资源
44982
+ */
44983
+ dispose() {
44984
+ if (!this._isInitialized || !this.engine) {
44985
+ console.warn("[Engine] Engine not initialized.");
44986
+ return;
44987
+ }
44988
+ this.engine.dispose();
44989
+ }
44949
44990
  // ==================== 测量功能方法 ====================
44950
44991
  /**
44951
44992
  * 激活具体测量类型的统一入口(私有方法)
@@ -45078,7 +45119,7 @@ class sT {
45078
45119
  * 清理资源、取消订阅、销毁引擎实例
45079
45120
  */
45080
45121
  destroy() {
45081
- this._isDestroyed || (this.deactivateMeasure(), this.unsubscribeTheme && (this.unsubscribeTheme(), this.unsubscribeTheme = null), this.container.innerHTML = "", this.currentMeasureType = null, this.isMeasureActive = !1, this._isDestroyed = !0, this._isInitialized = !1);
45122
+ this._isDestroyed || (this.deactivateMeasure(), this.unsubscribeTheme && (this.unsubscribeTheme(), this.unsubscribeTheme = null), this.engine && (this.engine.dispose(), this.engine = null), this.container.innerHTML = "", this.currentMeasureType = null, this.isMeasureActive = !1, this._isDestroyed = !0, this._isInitialized = !1);
45082
45123
  }
45083
45124
  }
45084
45125
  class rT {
@@ -46442,7 +46483,7 @@ class gT extends Ii {
46442
46483
  this.hide(), super.destroy();
46443
46484
  }
46444
46485
  }
46445
- class Dr extends Ii {
46486
+ class Ir extends Ii {
46446
46487
  /** 对话框实例 */
46447
46488
  dialog = null;
46448
46489
  /** 对话框是否可见 */
@@ -46534,7 +46575,7 @@ const xT = {
46534
46575
  slope: '<svg viewBox="0 0 32 32" aria-hidden="true"><path fill="currentColor" d="M202.1,188.337l2.629-2.191-8.447-3.106,1.533,8.871,2.629-2.194,9.341,11.209,1.656-1.379Zm-13.726-.435a1.075,1.075,0,0,0-1.07-.341,1.057,1.057,0,0,0-.5.277l-5.11,4.08a1.08,1.08,0,0,0-.406.84l-.007,17.386a1.079,1.079,0,0,0,1.077,1.077L205.7,211.2a1.078,1.078,0,0,0,.822-1.774Zm-4.934,21.164.007-15.788,3.968-3.171,15.974,18.941Z" transform="translate(-180.36 -181.131)"/></svg>',
46535
46576
  spaceVolume: '<svg viewBox="0 0 32 32" aria-hidden="true"><g transform="translate(-106.35 -97.661)"><path fill="currentColor" d="M125.977,128.829l13.076-7.363v-13.6l-13.076,6.8Zm-3.126-15.655a.565.565,0,0,1-.258-.064L109.3,106.323a.567.567,0,0,1-.011-1L122.578,98a.567.567,0,0,1,.55,0l13.288,7.325a.567.567,0,0,1-.011,1l-13.292,6.79A.63.63,0,0,1,122.851,113.174ZM110.773,105.8l12.078,6.172,12.078-6.172-12.078-6.657Z" transform="translate(-1.922)"/><path fill="currentColor" d="M120.649,322.52a.58.58,0,0,1-.262-.064l-13.08-6.8a.573.573,0,0,1-.307-.5V301a.566.566,0,0,1,.273-.486.573.573,0,0,1,.558-.019l13.076,6.8a.573.573,0,0,1,.307.5v14.161a.57.57,0,0,1-.565.569Zm-12.511-7.708,11.942,6.206V308.136l-11.942-6.206Zm15.917,9.408a.585.585,0,0,1-.288-.076.567.567,0,0,1-.281-.489V309.49a.562.562,0,0,1,.307-.5l13.076-6.8a.573.573,0,0,1,.558.019.562.562,0,0,1,.273.486v13.6a.568.568,0,0,1-.288.493l-13.076,7.359A.557.557,0,0,1,124.055,324.22Zm.569-14.385V322.68l11.942-6.722V303.629Z" transform="translate(0 -194.822)"/></g></svg>'
46536
46577
  };
46537
- class da {
46578
+ class fa {
46538
46579
  element;
46539
46580
  options;
46540
46581
  activeMode;
@@ -46588,7 +46629,7 @@ class da {
46588
46629
  * @param options 组件配置
46589
46630
  */
46590
46631
  constructor(e = {}) {
46591
- this.options = e, this.activeMode = e.defaultMode ?? "distance", this.isExpanded = e.defaultExpanded ?? !1, this.config = this.loadConfigFromCache() ?? { ...da.DEFAULT_CONFIG }, this.element = this.createDom();
46632
+ this.options = e, this.activeMode = e.defaultMode ?? "distance", this.isExpanded = e.defaultExpanded ?? !1, this.config = this.loadConfigFromCache() ?? { ...fa.DEFAULT_CONFIG }, this.element = this.createDom();
46592
46633
  }
46593
46634
  /**
46594
46635
  * 初始化组件(实现 IBimComponent)
@@ -46839,7 +46880,7 @@ class da {
46839
46880
  */
46840
46881
  loadConfigFromCache() {
46841
46882
  try {
46842
- const e = localStorage.getItem(da.CONFIG_CACHE_KEY);
46883
+ const e = localStorage.getItem(fa.CONFIG_CACHE_KEY);
46843
46884
  if (!e) return null;
46844
46885
  const t = JSON.parse(e);
46845
46886
  if (!t || typeof t != "object") return null;
@@ -46857,7 +46898,7 @@ class da {
46857
46898
  */
46858
46899
  saveConfigToCache(e) {
46859
46900
  try {
46860
- localStorage.setItem(da.CONFIG_CACHE_KEY, JSON.stringify(e));
46901
+ localStorage.setItem(fa.CONFIG_CACHE_KEY, JSON.stringify(e));
46861
46902
  } catch {
46862
46903
  }
46863
46904
  }
@@ -47032,7 +47073,7 @@ class da {
47032
47073
  return { numberText: this.formatNumberWithPrecision(n, this.config.precision), unitText: t };
47033
47074
  }
47034
47075
  }
47035
- class vT extends Dr {
47076
+ class vT extends Ir {
47036
47077
  /** 测量面板实例 */
47037
47078
  panel = null;
47038
47079
  /** 测量配置(单位、精度等) */
@@ -47054,7 +47095,7 @@ class vT extends Dr {
47054
47095
  * 初始化测量面板并设置回调
47055
47096
  */
47056
47097
  createContent() {
47057
- this.panel = new da({
47098
+ this.panel = new fa({
47058
47099
  defaultMode: "distance",
47059
47100
  defaultExpanded: !1,
47060
47101
  onModeChange: (t) => {
@@ -47220,7 +47261,7 @@ class bT {
47220
47261
  return a.className = "section-plane-btn-label", i.appendChild(a), e === "hide" ? this.hideLabelEl = a : e === "reverse" ? this.reverseLabelEl = a : this.resetLabelEl = a, i.addEventListener("click", n), i;
47221
47262
  }
47222
47263
  }
47223
- class yT extends Dr {
47264
+ class yT extends Ir {
47224
47265
  /** 剖切面板实例 */
47225
47266
  panel = null;
47226
47267
  /** 对话框唯一标识 */
@@ -47422,7 +47463,7 @@ class _T {
47422
47463
  this.axisXBtn.classList.toggle("active", this.activeAxis === "x"), this.axisYBtn.classList.toggle("active", this.activeAxis === "y"), this.axisZBtn.classList.toggle("active", this.activeAxis === "z");
47423
47464
  }
47424
47465
  }
47425
- class wT extends Dr {
47466
+ class wT extends Ir {
47426
47467
  /** 轴向剖切面板实例 */
47427
47468
  panel = null;
47428
47469
  /** 对话框唯一标识 */
@@ -47668,7 +47709,7 @@ class MT {
47668
47709
  this.unsubscribeLocale?.(), this.unsubscribeTheme?.(), this.element && this.element.parentElement && this.element.parentElement.removeChild(this.element);
47669
47710
  }
47670
47711
  }
47671
- class ST extends Dr {
47712
+ class ST extends Ir {
47672
47713
  /** 剖切盒面板实例 */
47673
47714
  panel = null;
47674
47715
  /** 对话框唯一标识 */
@@ -47962,7 +48003,7 @@ class TT {
47962
48003
  this.unsubscribeLocale?.(), this.unsubscribeTheme?.(), this.element && this.element.parentElement && this.element.parentElement.removeChild(this.element);
47963
48004
  }
47964
48005
  }
47965
- class AT extends Dr {
48006
+ class AT extends Ir {
47966
48007
  /** 漫游路径面板实例 */
47967
48008
  panel = null;
47968
48009
  /** 对话框唯一标识 */
@@ -48092,7 +48133,7 @@ class PT {
48092
48133
  this.unsubscribeLocale?.(), this.unsubscribeTheme?.(), this.element && this.element.parentElement && this.element.parentElement.removeChild(this.element);
48093
48134
  }
48094
48135
  }
48095
- class RT extends Dr {
48136
+ class RT extends Ir {
48096
48137
  /** 地图面板实例 */
48097
48138
  panel = null;
48098
48139
  /** 对话框唯一标识 */