shop-components 0.0.15 → 0.0.17

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.
@@ -3,7 +3,7 @@
3
3
  * Copyright 2010-2023 Three.js Authors
4
4
  * SPDX-License-Identifier: MIT
5
5
  */
6
- const Mf = "159", Kr = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Or = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, GL = 0, Tm = 1, PL = 2, lb = 1, EL = 2, Bn = 3, Bi = 0, fi = 1, Li = 2, wi = 0, mr = 1, Qd = 2, Mm = 3, Im = 4, hb = 5, hr = 100, AL = 101, RL = 102, wm = 103, _m = 104, KL = 200, OL = 201, qL = 202, XL = 203, $d = 204, ep = 205, zL = 206, WL = 207, NL = 208, kL = 209, HL = 210, ZL = 211, YL = 212, DL = 213, jL = 214, FL = 0, BL = 1, JL = 2, lc = 3, VL = 4, UL = 5, QL = 6, $L = 7, cb = 0, e1 = 1, t1 = 2, En = 0, ub = 1, db = 2, pb = 3, If = 4, i1 = 5, Gm = "attached", n1 = "detached", fb = 300, Za = 301, Ya = 302, hc = 303, tp = 304, Nc = 306, ki = 1e3, Nt = 1001, cc = 1002, pt = 1003, ip = 1004, Fh = 1005, lt = 1006, mb = 1007, Xs = 1008, on = 1009, np = 1010, gb = 1011, kc = 1012, Bo = 1013, Ri = 1014, Mt = 1015, vt = 1016, yb = 1017, vb = 1018, gr = 1020, s1 = 1021, St = 1023, r1 = 1024, a1 = 1025, yr = 1026, Da = 1027, ja = 1028, wf = 1029, bb = 1030, Hc = 1031, cl = 1033, fu = 33776, mu = 33777, gu = 33778, yu = 33779, Pm = 35840, Em = 35841, Am = 35842, Rm = 35843, xb = 36196, Km = 37492, Om = 37496, qm = 37808, Xm = 37809, zm = 37810, Wm = 37811, Nm = 37812, km = 37813, Hm = 37814, Zm = 37815, Ym = 37816, Dm = 37817, jm = 37818, Fm = 37819, Bm = 37820, Jm = 37821, vu = 36492, Vm = 36494, Um = 36495, o1 = 36283, Qm = 36284, $m = 36285, eg = 36286, ul = 2300, Fa = 2301, bu = 2302, tg = 2400, ig = 2401, ng = 2402, l1 = 2500, h1 = 0, Sb = 1, sp = 2, Lb = 3e3, vr = 3001, c1 = 3200, Cb = 3201, Tb = 0, u1 = 1, Ni = "", mt = "srgb", Ft = "srgb-linear", _f = "display-p3", Zc = "display-p3-linear", uc = "linear", xt = "srgb", dc = "rec709", pc = "p3", qr = 7680, sg = 519, d1 = 512, p1 = 513, f1 = 514, Mb = 515, m1 = 516, g1 = 517, y1 = 518, v1 = 519, rp = 35044, rg = "300 es", ap = 1035, $n = 2e3, fc = 2001;
6
+ const Mf = "159", Kr = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Or = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, GL = 0, Tm = 1, PL = 2, lb = 1, EL = 2, Bn = 3, Bi = 0, fi = 1, Li = 2, wi = 0, mr = 1, $d = 2, Mm = 3, Im = 4, hb = 5, hr = 100, AL = 101, RL = 102, wm = 103, _m = 104, KL = 200, OL = 201, qL = 202, XL = 203, ep = 204, tp = 205, zL = 206, WL = 207, NL = 208, kL = 209, HL = 210, ZL = 211, YL = 212, DL = 213, jL = 214, FL = 0, BL = 1, JL = 2, lc = 3, VL = 4, UL = 5, QL = 6, $L = 7, cb = 0, e1 = 1, t1 = 2, En = 0, ub = 1, db = 2, pb = 3, If = 4, i1 = 5, Gm = "attached", n1 = "detached", fb = 300, Za = 301, Ya = 302, hc = 303, ip = 304, kc = 306, ki = 1e3, Nt = 1001, cc = 1002, pt = 1003, np = 1004, Fh = 1005, lt = 1006, mb = 1007, Xs = 1008, on = 1009, sp = 1010, gb = 1011, Hc = 1012, Bo = 1013, Ri = 1014, Mt = 1015, vt = 1016, yb = 1017, vb = 1018, gr = 1020, s1 = 1021, St = 1023, r1 = 1024, a1 = 1025, yr = 1026, Da = 1027, ja = 1028, wf = 1029, bb = 1030, Zc = 1031, cl = 1033, mu = 33776, gu = 33777, yu = 33778, vu = 33779, Pm = 35840, Em = 35841, Am = 35842, Rm = 35843, xb = 36196, Km = 37492, Om = 37496, qm = 37808, Xm = 37809, zm = 37810, Wm = 37811, Nm = 37812, km = 37813, Hm = 37814, Zm = 37815, Ym = 37816, Dm = 37817, jm = 37818, Fm = 37819, Bm = 37820, Jm = 37821, bu = 36492, Vm = 36494, Um = 36495, o1 = 36283, Qm = 36284, $m = 36285, eg = 36286, ul = 2300, Fa = 2301, xu = 2302, tg = 2400, ig = 2401, ng = 2402, l1 = 2500, h1 = 0, Sb = 1, rp = 2, Lb = 3e3, vr = 3001, c1 = 3200, Cb = 3201, Tb = 0, u1 = 1, Ni = "", mt = "srgb", Ft = "srgb-linear", _f = "display-p3", Yc = "display-p3-linear", uc = "linear", xt = "srgb", dc = "rec709", pc = "p3", qr = 7680, sg = 519, d1 = 512, p1 = 513, f1 = 514, Mb = 515, m1 = 516, g1 = 517, y1 = 518, v1 = 519, ap = 35044, rg = "300 es", op = 1035, $n = 2e3, fc = 2001;
7
7
  class Gr {
8
8
  addEventListener(e, t) {
9
9
  this._listeners === void 0 && (this._listeners = {});
@@ -92,7 +92,7 @@ function G1(n) {
92
92
  function P1(n) {
93
93
  return n * Ba;
94
94
  }
95
- function op(n) {
95
+ function lp(n) {
96
96
  return (n & n - 1) === 0 && n !== 0;
97
97
  }
98
98
  function E1(n) {
@@ -185,7 +185,7 @@ const Uo = {
185
185
  seededRandom: _1,
186
186
  degToRad: G1,
187
187
  radToDeg: P1,
188
- isPowerOfTwo: op,
188
+ isPowerOfTwo: lp,
189
189
  ceilPowerOfTwo: E1,
190
190
  floorPowerOfTwo: mc,
191
191
  setQuaternionFromProperEuler: A1,
@@ -492,13 +492,13 @@ class et {
492
492
  }
493
493
  //
494
494
  scale(e, t) {
495
- return this.premultiply(xu.makeScale(e, t)), this;
495
+ return this.premultiply(Su.makeScale(e, t)), this;
496
496
  }
497
497
  rotate(e) {
498
- return this.premultiply(xu.makeRotation(-e)), this;
498
+ return this.premultiply(Su.makeRotation(-e)), this;
499
499
  }
500
500
  translate(e, t) {
501
- return this.premultiply(xu.makeTranslation(e, t)), this;
501
+ return this.premultiply(Su.makeTranslation(e, t)), this;
502
502
  }
503
503
  // for 2D Transforms
504
504
  makeTranslation(e, t) {
@@ -572,7 +572,7 @@ class et {
572
572
  return new this.constructor().fromArray(this.elements);
573
573
  }
574
574
  }
575
- const xu = /* @__PURE__ */ new et();
575
+ const Su = /* @__PURE__ */ new et();
576
576
  function Ib(n) {
577
577
  for (let e = n.length - 1; e >= 0; --e)
578
578
  if (n[e] >= 65535)
@@ -623,7 +623,7 @@ const lg = /* @__PURE__ */ new et().set(
623
623
  toReference: (n) => n.convertSRGBToLinear(),
624
624
  fromReference: (n) => n.convertLinearToSRGB()
625
625
  },
626
- [Zc]: {
626
+ [Yc]: {
627
627
  transfer: uc,
628
628
  primaries: pc,
629
629
  toReference: (n) => n.applyMatrix3(hg),
@@ -635,7 +635,7 @@ const lg = /* @__PURE__ */ new et().set(
635
635
  toReference: (n) => n.convertSRGBToLinear().applyMatrix3(hg),
636
636
  fromReference: (n) => n.applyMatrix3(lg).convertLinearToSRGB()
637
637
  }
638
- }, K1 = /* @__PURE__ */ new Set([Ft, Zc]), dt = {
638
+ }, K1 = /* @__PURE__ */ new Set([Ft, Yc]), dt = {
639
639
  enabled: !0,
640
640
  _workingColorSpace: Ft,
641
641
  get legacyMode() {
@@ -674,7 +674,7 @@ const lg = /* @__PURE__ */ new et().set(
674
674
  function Ea(n) {
675
675
  return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
676
676
  }
677
- function Su(n) {
677
+ function Lu(n) {
678
678
  return n < 31308e-7 ? n * 12.92 : 1.055 * Math.pow(n, 0.41666) - 0.055;
679
679
  }
680
680
  let Xr;
@@ -736,15 +736,15 @@ class Pf {
736
736
  if (Array.isArray(s)) {
737
737
  r = [];
738
738
  for (let a = 0, o = s.length; a < o; a++)
739
- s[a].isDataTexture ? r.push(Lu(s[a].image)) : r.push(Lu(s[a]));
739
+ s[a].isDataTexture ? r.push(Cu(s[a].image)) : r.push(Cu(s[a]));
740
740
  } else
741
- r = Lu(s);
741
+ r = Cu(s);
742
742
  i.url = r;
743
743
  }
744
744
  return t || (e.images[this.uuid] = i), i;
745
745
  }
746
746
  }
747
- function Lu(n) {
747
+ function Cu(n) {
748
748
  return typeof HTMLImageElement < "u" && n instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && n instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && n instanceof ImageBitmap ? wb.getDataURL(n) : n.data ? {
749
749
  data: Array.from(n.data),
750
750
  width: n.width,
@@ -1083,14 +1083,14 @@ class zt extends X1 {
1083
1083
  super(e, t, i), this.isWebGLRenderTarget = !0;
1084
1084
  }
1085
1085
  }
1086
- class Yc extends _i {
1086
+ class Dc extends _i {
1087
1087
  constructor(e = null, t = 1, i = 1, s = 1) {
1088
1088
  super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: i, depth: s }, this.magFilter = pt, this.minFilter = pt, this.wrapR = Nt, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
1089
1089
  }
1090
1090
  }
1091
1091
  class _b extends zt {
1092
1092
  constructor(e = 1, t = 1, i = 1, s = {}) {
1093
- super(e, t, s), this.isWebGLArrayRenderTarget = !0, this.depth = i, this.texture = new Yc(null, e, t, i), this.texture.isRenderTargetTexture = !0;
1093
+ super(e, t, s), this.isWebGLArrayRenderTarget = !0, this.depth = i, this.texture = new Dc(null, e, t, i), this.texture.isRenderTargetTexture = !0;
1094
1094
  }
1095
1095
  }
1096
1096
  class z1 extends _i {
@@ -1502,10 +1502,10 @@ class A {
1502
1502
  return this.copy(e).multiplyScalar(i);
1503
1503
  }
1504
1504
  projectOnPlane(e) {
1505
- return Cu.copy(this).projectOnVector(e), this.sub(Cu);
1505
+ return Tu.copy(this).projectOnVector(e), this.sub(Tu);
1506
1506
  }
1507
1507
  reflect(e) {
1508
- return this.sub(Cu.copy(e).multiplyScalar(2 * this.dot(e)));
1508
+ return this.sub(Tu.copy(e).multiplyScalar(2 * this.dot(e)));
1509
1509
  }
1510
1510
  angleTo(e) {
1511
1511
  const t = Math.sqrt(this.lengthSq() * e.lengthSq());
@@ -1580,7 +1580,7 @@ class A {
1580
1580
  yield this.x, yield this.y, yield this.z;
1581
1581
  }
1582
1582
  }
1583
- const Cu = /* @__PURE__ */ new A(), cg = /* @__PURE__ */ new un();
1583
+ const Tu = /* @__PURE__ */ new A(), cg = /* @__PURE__ */ new un();
1584
1584
  class Et {
1585
1585
  constructor(e = new A(1 / 0, 1 / 0, 1 / 0), t = new A(-1 / 0, -1 / 0, -1 / 0)) {
1586
1586
  this.isBox3 = !0, this.min = e, this.max = t;
@@ -1712,7 +1712,7 @@ class Et {
1712
1712
  Ds.x,
1713
1713
  0
1714
1714
  ];
1715
- return !Tu(t, zr, Wr, Nr, Gl) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Tu(t, zr, Wr, Nr, Gl)) ? !1 : (Pl.crossVectors(fs, ms), t = [Pl.x, Pl.y, Pl.z], Tu(t, zr, Wr, Nr, Gl));
1715
+ return !Mu(t, zr, Wr, Nr, Gl) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Mu(t, zr, Wr, Nr, Gl)) ? !1 : (Pl.crossVectors(fs, ms), t = [Pl.x, Pl.y, Pl.z], Mu(t, zr, Wr, Nr, Gl));
1716
1716
  }
1717
1717
  clampPoint(e, t) {
1718
1718
  return t.copy(e).clamp(this.min, this.max);
@@ -1749,7 +1749,7 @@ const Nn = [
1749
1749
  /* @__PURE__ */ new A(),
1750
1750
  /* @__PURE__ */ new A()
1751
1751
  ], Ui = /* @__PURE__ */ new A(), _l = /* @__PURE__ */ new Et(), zr = /* @__PURE__ */ new A(), Wr = /* @__PURE__ */ new A(), Nr = /* @__PURE__ */ new A(), fs = /* @__PURE__ */ new A(), ms = /* @__PURE__ */ new A(), Ds = /* @__PURE__ */ new A(), yo = /* @__PURE__ */ new A(), Gl = /* @__PURE__ */ new A(), Pl = /* @__PURE__ */ new A(), js = /* @__PURE__ */ new A();
1752
- function Tu(n, e, t, i, s) {
1752
+ function Mu(n, e, t, i, s) {
1753
1753
  for (let r = 0, a = n.length - 3; r <= a; r += 3) {
1754
1754
  js.fromArray(n, r);
1755
1755
  const o = s.x * Math.abs(js.x) + s.y * Math.abs(js.y) + s.z * Math.abs(js.z), l = e.dot(js), c = t.dot(js), d = i.dot(js);
@@ -1758,7 +1758,7 @@ function Tu(n, e, t, i, s) {
1758
1758
  }
1759
1759
  return !0;
1760
1760
  }
1761
- const W1 = /* @__PURE__ */ new Et(), vo = /* @__PURE__ */ new A(), Mu = /* @__PURE__ */ new A();
1761
+ const W1 = /* @__PURE__ */ new Et(), vo = /* @__PURE__ */ new A(), Iu = /* @__PURE__ */ new A();
1762
1762
  class pn {
1763
1763
  constructor(e = new A(), t = -1) {
1764
1764
  this.center = e, this.radius = t;
@@ -1824,7 +1824,7 @@ class pn {
1824
1824
  return this;
1825
1825
  }
1826
1826
  union(e) {
1827
- return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Mu.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(vo.copy(e.center).add(Mu)), this.expandByPoint(vo.copy(e.center).sub(Mu))), this);
1827
+ return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Iu.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(vo.copy(e.center).add(Iu)), this.expandByPoint(vo.copy(e.center).sub(Iu))), this);
1828
1828
  }
1829
1829
  equals(e) {
1830
1830
  return e.center.equals(this.center) && e.radius === this.radius;
@@ -1833,7 +1833,7 @@ class pn {
1833
1833
  return new this.constructor().copy(this);
1834
1834
  }
1835
1835
  }
1836
- const kn = /* @__PURE__ */ new A(), Iu = /* @__PURE__ */ new A(), El = /* @__PURE__ */ new A(), gs = /* @__PURE__ */ new A(), wu = /* @__PURE__ */ new A(), Al = /* @__PURE__ */ new A(), _u = /* @__PURE__ */ new A();
1836
+ const kn = /* @__PURE__ */ new A(), wu = /* @__PURE__ */ new A(), El = /* @__PURE__ */ new A(), gs = /* @__PURE__ */ new A(), _u = /* @__PURE__ */ new A(), Al = /* @__PURE__ */ new A(), Gu = /* @__PURE__ */ new A();
1837
1837
  class oo {
1838
1838
  constructor(e = new A(), t = new A(0, 0, -1)) {
1839
1839
  this.origin = e, this.direction = t;
@@ -1866,7 +1866,7 @@ class oo {
1866
1866
  return t < 0 ? this.origin.distanceToSquared(e) : (kn.copy(this.origin).addScaledVector(this.direction, t), kn.distanceToSquared(e));
1867
1867
  }
1868
1868
  distanceSqToSegment(e, t, i, s) {
1869
- Iu.copy(e).add(t).multiplyScalar(0.5), El.copy(t).sub(e).normalize(), gs.copy(this.origin).sub(Iu);
1869
+ wu.copy(e).add(t).multiplyScalar(0.5), El.copy(t).sub(e).normalize(), gs.copy(this.origin).sub(wu);
1870
1870
  const r = e.distanceTo(t) * 0.5, a = -this.direction.dot(El), o = gs.dot(this.direction), l = -gs.dot(El), c = gs.lengthSq(), d = Math.abs(1 - a * a);
1871
1871
  let h, u, p, m;
1872
1872
  if (d > 0)
@@ -1883,7 +1883,7 @@ class oo {
1883
1883
  u <= -m ? (h = Math.max(0, -(-a * r + o)), u = h > 0 ? -r : Math.min(Math.max(-r, -l), r), p = -h * h + u * (u + 2 * l) + c) : u <= m ? (h = 0, u = Math.min(Math.max(-r, -l), r), p = u * (u + 2 * l) + c) : (h = Math.max(0, -(a * r + o)), u = h > 0 ? r : Math.min(Math.max(-r, -l), r), p = -h * h + u * (u + 2 * l) + c);
1884
1884
  else
1885
1885
  u = a > 0 ? -r : r, h = Math.max(0, -(a * u + o)), p = -h * h + u * (u + 2 * l) + c;
1886
- return i && i.copy(this.origin).addScaledVector(this.direction, h), s && s.copy(Iu).addScaledVector(El, u), p;
1886
+ return i && i.copy(this.origin).addScaledVector(this.direction, h), s && s.copy(wu).addScaledVector(El, u), p;
1887
1887
  }
1888
1888
  intersectSphere(e, t) {
1889
1889
  kn.subVectors(e.center, this.origin);
@@ -1920,8 +1920,8 @@ class oo {
1920
1920
  return this.intersectBox(e, kn) !== null;
1921
1921
  }
1922
1922
  intersectTriangle(e, t, i, s, r) {
1923
- wu.subVectors(t, e), Al.subVectors(i, e), _u.crossVectors(wu, Al);
1924
- let a = this.direction.dot(_u), o;
1923
+ _u.subVectors(t, e), Al.subVectors(i, e), Gu.crossVectors(_u, Al);
1924
+ let a = this.direction.dot(Gu), o;
1925
1925
  if (a > 0) {
1926
1926
  if (s)
1927
1927
  return null;
@@ -1934,10 +1934,10 @@ class oo {
1934
1934
  const l = o * this.direction.dot(Al.crossVectors(gs, Al));
1935
1935
  if (l < 0)
1936
1936
  return null;
1937
- const c = o * this.direction.dot(wu.cross(gs));
1937
+ const c = o * this.direction.dot(_u.cross(gs));
1938
1938
  if (c < 0 || l + c > a)
1939
1939
  return null;
1940
- const d = -o * gs.dot(_u);
1940
+ const d = -o * gs.dot(Gu);
1941
1941
  return d < 0 ? null : this.at(d / a, r);
1942
1942
  }
1943
1943
  applyMatrix4(e) {
@@ -2339,8 +2339,8 @@ class Oe {
2339
2339
  }
2340
2340
  }
2341
2341
  const kr = /* @__PURE__ */ new A(), Qi = /* @__PURE__ */ new Oe(), N1 = /* @__PURE__ */ new A(0, 0, 0), k1 = /* @__PURE__ */ new A(1, 1, 1), ys = /* @__PURE__ */ new A(), Rl = /* @__PURE__ */ new A(), Pi = /* @__PURE__ */ new A(), ug = /* @__PURE__ */ new Oe(), dg = /* @__PURE__ */ new un();
2342
- class Dc {
2343
- constructor(e = 0, t = 0, i = 0, s = Dc.DEFAULT_ORDER) {
2342
+ class jc {
2343
+ constructor(e = 0, t = 0, i = 0, s = jc.DEFAULT_ORDER) {
2344
2344
  this.isEuler = !0, this._x = e, this._y = t, this._z = i, this._order = s;
2345
2345
  }
2346
2346
  get x() {
@@ -2429,7 +2429,7 @@ class Dc {
2429
2429
  yield this._x, yield this._y, yield this._z, yield this._order;
2430
2430
  }
2431
2431
  }
2432
- Dc.DEFAULT_ORDER = "XYZ";
2432
+ jc.DEFAULT_ORDER = "XYZ";
2433
2433
  class Ef {
2434
2434
  constructor() {
2435
2435
  this.mask = 1;
@@ -2464,7 +2464,7 @@ const pg = /* @__PURE__ */ new A(), Hr = /* @__PURE__ */ new un(), Hn = /* @__PU
2464
2464
  class It extends Gr {
2465
2465
  constructor() {
2466
2466
  super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: H1++ }), this.uuid = ln(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = It.DEFAULT_UP.clone();
2467
- const e = new A(), t = new Dc(), i = new un(), s = new A(1, 1, 1);
2467
+ const e = new A(), t = new jc(), i = new un(), s = new A(1, 1, 1);
2468
2468
  function r() {
2469
2469
  i.setFromEuler(t, !1);
2470
2470
  }
@@ -2767,7 +2767,7 @@ class It extends Gr {
2767
2767
  It.DEFAULT_UP = /* @__PURE__ */ new A(0, 1, 0);
2768
2768
  It.DEFAULT_MATRIX_AUTO_UPDATE = !0;
2769
2769
  It.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
2770
- const $i = /* @__PURE__ */ new A(), Zn = /* @__PURE__ */ new A(), Gu = /* @__PURE__ */ new A(), Yn = /* @__PURE__ */ new A(), Zr = /* @__PURE__ */ new A(), Yr = /* @__PURE__ */ new A(), yg = /* @__PURE__ */ new A(), Pu = /* @__PURE__ */ new A(), Eu = /* @__PURE__ */ new A(), Au = /* @__PURE__ */ new A();
2770
+ const $i = /* @__PURE__ */ new A(), Zn = /* @__PURE__ */ new A(), Pu = /* @__PURE__ */ new A(), Yn = /* @__PURE__ */ new A(), Zr = /* @__PURE__ */ new A(), Yr = /* @__PURE__ */ new A(), yg = /* @__PURE__ */ new A(), Eu = /* @__PURE__ */ new A(), Au = /* @__PURE__ */ new A(), Ru = /* @__PURE__ */ new A();
2771
2771
  let Ol = !1;
2772
2772
  class ui {
2773
2773
  constructor(e = new A(), t = new A(), i = new A()) {
@@ -2781,8 +2781,8 @@ class ui {
2781
2781
  // static/instance method to calculate barycentric coordinates
2782
2782
  // based on: http://www.blackpawn.com/texts/pointinpoly/default.html
2783
2783
  static getBarycoord(e, t, i, s, r) {
2784
- $i.subVectors(s, t), Zn.subVectors(i, t), Gu.subVectors(e, t);
2785
- const a = $i.dot($i), o = $i.dot(Zn), l = $i.dot(Gu), c = Zn.dot(Zn), d = Zn.dot(Gu), h = a * c - o * o;
2784
+ $i.subVectors(s, t), Zn.subVectors(i, t), Pu.subVectors(e, t);
2785
+ const a = $i.dot($i), o = $i.dot(Zn), l = $i.dot(Pu), c = Zn.dot(Zn), d = Zn.dot(Pu), h = a * c - o * o;
2786
2786
  if (h === 0)
2787
2787
  return r.set(-2, -1, -1);
2788
2788
  const u = 1 / h, p = (c * l - o * d) * u, m = (a * d - o * l) * u;
@@ -2848,19 +2848,19 @@ class ui {
2848
2848
  closestPointToPoint(e, t) {
2849
2849
  const i = this.a, s = this.b, r = this.c;
2850
2850
  let a, o;
2851
- Zr.subVectors(s, i), Yr.subVectors(r, i), Pu.subVectors(e, i);
2852
- const l = Zr.dot(Pu), c = Yr.dot(Pu);
2851
+ Zr.subVectors(s, i), Yr.subVectors(r, i), Eu.subVectors(e, i);
2852
+ const l = Zr.dot(Eu), c = Yr.dot(Eu);
2853
2853
  if (l <= 0 && c <= 0)
2854
2854
  return t.copy(i);
2855
- Eu.subVectors(e, s);
2856
- const d = Zr.dot(Eu), h = Yr.dot(Eu);
2855
+ Au.subVectors(e, s);
2856
+ const d = Zr.dot(Au), h = Yr.dot(Au);
2857
2857
  if (d >= 0 && h <= d)
2858
2858
  return t.copy(s);
2859
2859
  const u = l * h - d * c;
2860
2860
  if (u <= 0 && l >= 0 && d <= 0)
2861
2861
  return a = l / (l - d), t.copy(i).addScaledVector(Zr, a);
2862
- Au.subVectors(e, r);
2863
- const p = Zr.dot(Au), m = Yr.dot(Au);
2862
+ Ru.subVectors(e, r);
2863
+ const p = Zr.dot(Ru), m = Yr.dot(Ru);
2864
2864
  if (m >= 0 && p <= m)
2865
2865
  return t.copy(r);
2866
2866
  const y = p * c - l * m;
@@ -3026,7 +3026,7 @@ const Gb = {
3026
3026
  yellow: 16776960,
3027
3027
  yellowgreen: 10145074
3028
3028
  }, vs = { h: 0, s: 0, l: 0 }, ql = { h: 0, s: 0, l: 0 };
3029
- function Ru(n, e, t) {
3029
+ function Ku(n, e, t) {
3030
3030
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * 6 * (2 / 3 - t) : n;
3031
3031
  }
3032
3032
  let qe = class {
@@ -3055,7 +3055,7 @@ let qe = class {
3055
3055
  this.r = this.g = this.b = i;
3056
3056
  else {
3057
3057
  const r = i <= 0.5 ? i * (1 + t) : i + t - i * t, a = 2 * i - r;
3058
- this.r = Ru(a, r, e + 1 / 3), this.g = Ru(a, r, e), this.b = Ru(a, r, e - 1 / 3);
3058
+ this.r = Ku(a, r, e + 1 / 3), this.g = Ku(a, r, e), this.b = Ku(a, r, e - 1 / 3);
3059
3059
  }
3060
3060
  return dt.toWorkingColorSpace(this, s), this;
3061
3061
  }
@@ -3128,7 +3128,7 @@ let qe = class {
3128
3128
  return this.r = Ea(e.r), this.g = Ea(e.g), this.b = Ea(e.b), this;
3129
3129
  }
3130
3130
  copyLinearToSRGB(e) {
3131
- return this.r = Su(e.r), this.g = Su(e.g), this.b = Su(e.b), this;
3131
+ return this.r = Lu(e.r), this.g = Lu(e.g), this.b = Lu(e.b), this;
3132
3132
  }
3133
3133
  convertSRGBToLinear() {
3134
3134
  return this.copySRGBToLinear(this), this;
@@ -3237,7 +3237,7 @@ qe.NAMES = Gb;
3237
3237
  let F1 = 0;
3238
3238
  class An extends Gr {
3239
3239
  constructor() {
3240
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: F1++ }), this.uuid = ln(), this.name = "", this.type = "Material", this.blending = mr, this.side = Bi, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = $d, this.blendDst = ep, this.blendEquation = hr, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new qe(0, 0, 0), this.blendAlpha = 0, this.depthFunc = lc, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = sg, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = qr, this.stencilZFail = qr, this.stencilZPass = qr, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3240
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: F1++ }), this.uuid = ln(), this.name = "", this.type = "Material", this.blending = mr, this.side = Bi, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ep, this.blendDst = tp, this.blendEquation = hr, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new qe(0, 0, 0), this.blendAlpha = 0, this.depthFunc = lc, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = sg, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = qr, this.stencilZFail = qr, this.stencilZPass = qr, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3241
3241
  }
3242
3242
  get alphaTest() {
3243
3243
  return this._alphaTest;
@@ -3283,7 +3283,7 @@ class An extends Gr {
3283
3283
  generator: "Material.toJSON"
3284
3284
  }
3285
3285
  };
3286
- i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== mr && (i.blending = this.blending), this.side !== Bi && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== $d && (i.blendSrc = this.blendSrc), this.blendDst !== ep && (i.blendDst = this.blendDst), this.blendEquation !== hr && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== lc && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== sg && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== qr && (i.stencilFail = this.stencilFail), this.stencilZFail !== qr && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== qr && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
3286
+ i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== mr && (i.blending = this.blending), this.side !== Bi && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== ep && (i.blendSrc = this.blendSrc), this.blendDst !== tp && (i.blendDst = this.blendDst), this.blendEquation !== hr && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== lc && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== sg && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== qr && (i.stencilFail = this.stencilFail), this.stencilZFail !== qr && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== qr && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
3287
3287
  function s(r) {
3288
3288
  const a = [];
3289
3289
  for (const o in r) {
@@ -3379,7 +3379,7 @@ class ut {
3379
3379
  constructor(e, t, i = !1) {
3380
3380
  if (Array.isArray(e))
3381
3381
  throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
3382
- this.isBufferAttribute = !0, this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = i, this.usage = rp, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.gpuType = Mt, this.version = 0;
3382
+ this.isBufferAttribute = !0, this.name = "", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = i, this.usage = ap, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.gpuType = Mt, this.version = 0;
3383
3383
  }
3384
3384
  onUploadCallback() {
3385
3385
  }
@@ -3494,7 +3494,7 @@ class ut {
3494
3494
  array: Array.from(this.array),
3495
3495
  normalized: this.normalized
3496
3496
  };
3497
- return this.name !== "" && (e.name = this.name), this.usage !== rp && (e.usage = this.usage), e;
3497
+ return this.name !== "" && (e.name = this.name), this.usage !== ap && (e.usage = this.usage), e;
3498
3498
  }
3499
3499
  }
3500
3500
  class Pb extends ut {
@@ -3513,7 +3513,7 @@ class ji extends ut {
3513
3513
  }
3514
3514
  }
3515
3515
  let U1 = 0;
3516
- const Xi = /* @__PURE__ */ new Oe(), Ku = /* @__PURE__ */ new It(), Dr = /* @__PURE__ */ new A(), Ei = /* @__PURE__ */ new Et(), xo = /* @__PURE__ */ new Et(), Qt = /* @__PURE__ */ new A();
3516
+ const Xi = /* @__PURE__ */ new Oe(), Ou = /* @__PURE__ */ new It(), Dr = /* @__PURE__ */ new A(), Ei = /* @__PURE__ */ new Et(), xo = /* @__PURE__ */ new Et(), Qt = /* @__PURE__ */ new A();
3517
3517
  class ai extends Gr {
3518
3518
  constructor() {
3519
3519
  super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: U1++ }), this.uuid = ln(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
@@ -3579,7 +3579,7 @@ class ai extends Gr {
3579
3579
  return Xi.makeScale(e, t, i), this.applyMatrix4(Xi), this;
3580
3580
  }
3581
3581
  lookAt(e) {
3582
- return Ku.lookAt(e), Ku.updateMatrix(), this.applyMatrix4(Ku.matrix), this;
3582
+ return Ou.lookAt(e), Ou.updateMatrix(), this.applyMatrix4(Ou.matrix), this;
3583
3583
  }
3584
3584
  center() {
3585
3585
  return this.computeBoundingBox(), this.boundingBox.getCenter(Dr).negate(), this.translate(Dr.x, Dr.y, Dr.z), this;
@@ -3825,7 +3825,7 @@ class ai extends Gr {
3825
3825
  this.dispatchEvent({ type: "dispose" });
3826
3826
  }
3827
3827
  }
3828
- const vg = /* @__PURE__ */ new Oe(), Fs = /* @__PURE__ */ new oo(), zl = /* @__PURE__ */ new pn(), bg = /* @__PURE__ */ new A(), jr = /* @__PURE__ */ new A(), Fr = /* @__PURE__ */ new A(), Br = /* @__PURE__ */ new A(), Ou = /* @__PURE__ */ new A(), Wl = /* @__PURE__ */ new A(), Nl = /* @__PURE__ */ new ge(), kl = /* @__PURE__ */ new ge(), Hl = /* @__PURE__ */ new ge(), xg = /* @__PURE__ */ new A(), Sg = /* @__PURE__ */ new A(), Lg = /* @__PURE__ */ new A(), Zl = /* @__PURE__ */ new A(), Yl = /* @__PURE__ */ new A();
3828
+ const vg = /* @__PURE__ */ new Oe(), Fs = /* @__PURE__ */ new oo(), zl = /* @__PURE__ */ new pn(), bg = /* @__PURE__ */ new A(), jr = /* @__PURE__ */ new A(), Fr = /* @__PURE__ */ new A(), Br = /* @__PURE__ */ new A(), qu = /* @__PURE__ */ new A(), Wl = /* @__PURE__ */ new A(), Nl = /* @__PURE__ */ new ge(), kl = /* @__PURE__ */ new ge(), Hl = /* @__PURE__ */ new ge(), xg = /* @__PURE__ */ new A(), Sg = /* @__PURE__ */ new A(), Lg = /* @__PURE__ */ new A(), Zl = /* @__PURE__ */ new A(), Yl = /* @__PURE__ */ new A();
3829
3829
  let ni = class extends It {
3830
3830
  constructor(e = new ai(), t = new Gn()) {
3831
3831
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.updateMorphTargets();
@@ -3854,7 +3854,7 @@ let ni = class extends It {
3854
3854
  Wl.set(0, 0, 0);
3855
3855
  for (let l = 0, c = r.length; l < c; l++) {
3856
3856
  const d = o[l], h = r[l];
3857
- d !== 0 && (Ou.fromBufferAttribute(h, e), a ? Wl.addScaledVector(Ou, d) : Wl.addScaledVector(Ou.sub(t), d));
3857
+ d !== 0 && (qu.fromBufferAttribute(h, e), a ? Wl.addScaledVector(qu, d) : Wl.addScaledVector(qu.sub(t), d));
3858
3858
  }
3859
3859
  t.add(Wl);
3860
3860
  }
@@ -3999,7 +3999,7 @@ function $1(n) {
3999
3999
  function Ab(n) {
4000
4000
  return n.getRenderTarget() === null ? n.outputColorSpace : dt.workingColorSpace;
4001
4001
  }
4002
- const jc = { clone: Ja, merge: bi };
4002
+ const Fc = { clone: Ja, merge: bi };
4003
4003
  var eC = `void main() {
4004
4004
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
4005
4005
  }`, tC = `void main() {
@@ -4309,7 +4309,7 @@ class nC extends zt {
4309
4309
  e.setRenderTarget(r);
4310
4310
  }
4311
4311
  }
4312
- const qu = /* @__PURE__ */ new A(), sC = /* @__PURE__ */ new A(), rC = /* @__PURE__ */ new et();
4312
+ const Xu = /* @__PURE__ */ new A(), sC = /* @__PURE__ */ new A(), rC = /* @__PURE__ */ new et();
4313
4313
  class Cn {
4314
4314
  constructor(e = new A(1, 0, 0), t = 0) {
4315
4315
  this.isPlane = !0, this.normal = e, this.constant = t;
@@ -4324,7 +4324,7 @@ class Cn {
4324
4324
  return this.normal.copy(e), this.constant = -t.dot(this.normal), this;
4325
4325
  }
4326
4326
  setFromCoplanarPoints(e, t, i) {
4327
- const s = qu.subVectors(i, t).cross(sC.subVectors(e, t)).normalize();
4327
+ const s = Xu.subVectors(i, t).cross(sC.subVectors(e, t)).normalize();
4328
4328
  return this.setFromNormalAndCoplanarPoint(s, e), this;
4329
4329
  }
4330
4330
  copy(e) {
@@ -4347,7 +4347,7 @@ class Cn {
4347
4347
  return t.copy(e).addScaledVector(this.normal, -this.distanceToPoint(e));
4348
4348
  }
4349
4349
  intersectLine(e, t) {
4350
- const i = e.delta(qu), s = this.normal.dot(i);
4350
+ const i = e.delta(Xu), s = this.normal.dot(i);
4351
4351
  if (s === 0)
4352
4352
  return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
4353
4353
  const r = -(e.start.dot(this.normal) + this.constant) / s;
@@ -4367,7 +4367,7 @@ class Cn {
4367
4367
  return e.copy(this.normal).multiplyScalar(-this.constant);
4368
4368
  }
4369
4369
  applyMatrix4(e, t) {
4370
- const i = t || rC.getNormalMatrix(e), s = this.coplanarPoint(qu).applyMatrix4(e), r = this.normal.applyMatrix3(i).normalize();
4370
+ const i = t || rC.getNormalMatrix(e), s = this.coplanarPoint(Xu).applyMatrix4(e), r = this.normal.applyMatrix3(i).normalize();
4371
4371
  return this.constant = -s.dot(r), this;
4372
4372
  }
4373
4373
  translate(e) {
@@ -8575,7 +8575,7 @@ function NM(n, e, t, i, s, r, a) {
8575
8575
  let v = !1, b = f.isScene === !0 ? f.background : null;
8576
8576
  b && b.isTexture && (b = (f.backgroundBlurriness > 0 ? t : e).get(b)), b === null ? y(o, l) : b && b.isColor && (y(b, 1), v = !0);
8577
8577
  const x = n.xr.getEnvironmentBlendMode();
8578
- x === "additive" ? i.buffers.color.setClear(0, 0, 0, 1, a) : x === "alpha-blend" && i.buffers.color.setClear(0, 0, 0, 0, a), (n.autoClear || v) && n.clear(n.autoClearColor, n.autoClearDepth, n.autoClearStencil), b && (b.isCubeTexture || b.mapping === Nc) ? (d === void 0 && (d = new ni(
8578
+ x === "additive" ? i.buffers.color.setClear(0, 0, 0, 1, a) : x === "alpha-blend" && i.buffers.color.setClear(0, 0, 0, 0, a), (n.autoClear || v) && n.clear(n.autoClearColor, n.autoClearDepth, n.autoClearStencil), b && (b.isCubeTexture || b.mapping === kc) ? (d === void 0 && (d = new ni(
8579
8579
  new bl(1, 1, 1),
8580
8580
  new pi({
8581
8581
  name: "BackgroundCubeMaterial",
@@ -8988,12 +8988,12 @@ function YM(n) {
8988
8988
  function DM(n) {
8989
8989
  let e = /* @__PURE__ */ new WeakMap();
8990
8990
  function t(a, o) {
8991
- return o === hc ? a.mapping = Za : o === tp && (a.mapping = Ya), a;
8991
+ return o === hc ? a.mapping = Za : o === ip && (a.mapping = Ya), a;
8992
8992
  }
8993
8993
  function i(a) {
8994
8994
  if (a && a.isTexture) {
8995
8995
  const o = a.mapping;
8996
- if (o === hc || o === tp)
8996
+ if (o === hc || o === ip)
8997
8997
  if (e.has(a)) {
8998
8998
  const l = e.get(a).texture;
8999
8999
  return t(l, a.mapping);
@@ -9022,7 +9022,7 @@ function DM(n) {
9022
9022
  dispose: r
9023
9023
  };
9024
9024
  }
9025
- class Fc extends Rb {
9025
+ class Bc extends Rb {
9026
9026
  constructor(e = -1, t = 1, i = 1, s = -1, r = 0.1, a = 2e3) {
9027
9027
  super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = i, this.bottom = s, this.near = r, this.far = a, this.updateProjectionMatrix();
9028
9028
  }
@@ -9057,8 +9057,8 @@ class Fc extends Rb {
9057
9057
  return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
9058
9058
  }
9059
9059
  }
9060
- const Ia = 4, Cg = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], cr = 20, Xu = /* @__PURE__ */ new Fc(), Tg = /* @__PURE__ */ new qe();
9061
- let zu = null, Wu = 0, Nu = 0;
9060
+ const Ia = 4, Cg = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], cr = 20, zu = /* @__PURE__ */ new Bc(), Tg = /* @__PURE__ */ new qe();
9061
+ let Wu = null, Nu = 0, ku = 0;
9062
9062
  const ir = (1 + Math.sqrt(5)) / 2, Ur = 1 / ir, Mg = [
9063
9063
  /* @__PURE__ */ new A(1, 1, 1),
9064
9064
  /* @__PURE__ */ new A(-1, 1, 1),
@@ -9083,7 +9083,7 @@ class Ig {
9083
9083
  * is placed at the origin).
9084
9084
  */
9085
9085
  fromScene(e, t = 0, i = 0.1, s = 100) {
9086
- zu = this._renderer.getRenderTarget(), Wu = this._renderer.getActiveCubeFace(), Nu = this._renderer.getActiveMipmapLevel(), this._setSize(256);
9086
+ Wu = this._renderer.getRenderTarget(), Nu = this._renderer.getActiveCubeFace(), ku = this._renderer.getActiveMipmapLevel(), this._setSize(256);
9087
9087
  const r = this._allocateTargets();
9088
9088
  return r.depthBuffer = !0, this._sceneToCubeUV(e, i, s, r), t > 0 && this._blur(r, 0, 0, t), this._applyPMREM(r), this._cleanup(r), r;
9089
9089
  }
@@ -9135,10 +9135,10 @@ class Ig {
9135
9135
  this._lodPlanes[e].dispose();
9136
9136
  }
9137
9137
  _cleanup(e) {
9138
- this._renderer.setRenderTarget(zu, Wu, Nu), e.scissorTest = !1, Bl(e, 0, 0, e.width, e.height);
9138
+ this._renderer.setRenderTarget(Wu, Nu, ku), e.scissorTest = !1, Bl(e, 0, 0, e.width, e.height);
9139
9139
  }
9140
9140
  _fromTexture(e, t) {
9141
- e.mapping === Za || e.mapping === Ya ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), zu = this._renderer.getRenderTarget(), Wu = this._renderer.getActiveCubeFace(), Nu = this._renderer.getActiveMipmapLevel();
9141
+ e.mapping === Za || e.mapping === Ya ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Wu = this._renderer.getRenderTarget(), Nu = this._renderer.getActiveCubeFace(), ku = this._renderer.getActiveMipmapLevel();
9142
9142
  const i = t || this._allocateTargets();
9143
9143
  return this._textureToCubeUV(e, i), this._applyPMREM(i), this._cleanup(i), i;
9144
9144
  }
@@ -9161,7 +9161,7 @@ class Ig {
9161
9161
  }
9162
9162
  _compileMaterial(e) {
9163
9163
  const t = new ni(this._lodPlanes[0], e);
9164
- this._renderer.compile(t, Xu);
9164
+ this._renderer.compile(t, zu);
9165
9165
  }
9166
9166
  _sceneToCubeUV(e, t, i, s) {
9167
9167
  const o = new di(90, 1, t, i), l = [1, -1, 1, 1, 1, 1], c = [1, 1, 1, -1, -1, -1], d = this._renderer, h = d.autoClear, u = d.toneMapping;
@@ -9189,7 +9189,7 @@ class Ig {
9189
9189
  const r = s ? this._cubemapMaterial : this._equirectMaterial, a = new ni(this._lodPlanes[0], r), o = r.uniforms;
9190
9190
  o.envMap.value = e;
9191
9191
  const l = this._cubeSize;
9192
- Bl(t, 0, 0, 3 * l, 2 * l), i.setRenderTarget(t), i.render(a, Xu);
9192
+ Bl(t, 0, 0, 3 * l, 2 * l), i.setRenderTarget(t), i.render(a, zu);
9193
9193
  }
9194
9194
  _applyPMREM(e) {
9195
9195
  const t = this._renderer, i = t.autoClear;
@@ -9246,7 +9246,7 @@ class Ig {
9246
9246
  const { _lodMax: b } = this;
9247
9247
  u.dTheta.value = m, u.mipInt.value = b - i;
9248
9248
  const x = this._sizeLods[s], S = 3 * x * (s > b - Ia ? s - b + Ia : 0), C = 4 * (this._cubeSize - x);
9249
- Bl(t, S, C, 3 * x, 2 * x), l.setRenderTarget(t), l.render(h, Xu);
9249
+ Bl(t, S, C, 3 * x, 2 * x), l.setRenderTarget(t), l.render(h, zu);
9250
9250
  }
9251
9251
  }
9252
9252
  function jM(n) {
@@ -9291,7 +9291,7 @@ function jM(n) {
9291
9291
  }
9292
9292
  function wg(n, e, t) {
9293
9293
  const i = new zt(n, e, t);
9294
- return i.texture.mapping = Nc, i.texture.name = "PMREM.cubeUv", i.scissorTest = !0, i;
9294
+ return i.texture.mapping = kc, i.texture.name = "PMREM.cubeUv", i.scissorTest = !0, i;
9295
9295
  }
9296
9296
  function Bl(n, e, t, i, s) {
9297
9297
  n.viewport.set(e, t, i, s), n.scissor.set(e, t, i, s);
@@ -9518,7 +9518,7 @@ function BM(n) {
9518
9518
  let e = /* @__PURE__ */ new WeakMap(), t = null;
9519
9519
  function i(o) {
9520
9520
  if (o && o.isTexture) {
9521
- const l = o.mapping, c = l === hc || l === tp, d = l === Za || l === Ya;
9521
+ const l = o.mapping, c = l === hc || l === ip, d = l === Za || l === Ya;
9522
9522
  if (c || d)
9523
9523
  if (o.isRenderTargetTexture && o.needsPMREMUpdate === !0) {
9524
9524
  o.needsPMREMUpdate = !1;
@@ -9779,7 +9779,7 @@ function tI(n, e, t) {
9779
9779
  v === !0 && (I = 1), b === !0 && (I = 2), x === !0 && (I = 3);
9780
9780
  let L = d.attributes.position.count * I, M = 1;
9781
9781
  L > e.maxTextureSize && (M = Math.ceil(L / e.maxTextureSize), L = e.maxTextureSize);
9782
- const K = new Float32Array(L * M * 4 * m), P = new Yc(K, L, M, m);
9782
+ const K = new Float32Array(L * M * 4 * m), P = new Dc(K, L, M, m);
9783
9783
  P.type = Mt, P.needsUpdate = !0;
9784
9784
  const G = I * 4;
9785
9785
  for (let O = 0; O < m; O++) {
@@ -9869,7 +9869,7 @@ class qb extends _i {
9869
9869
  }
9870
9870
  const Xb = /* @__PURE__ */ new _i(), zb = /* @__PURE__ */ new qb(1, 1);
9871
9871
  zb.compareFunction = Mb;
9872
- const Wb = /* @__PURE__ */ new Yc(), Nb = /* @__PURE__ */ new z1(), kb = /* @__PURE__ */ new Kb(), Pg = [], Eg = [], Ag = new Float32Array(16), Rg = new Float32Array(9), Kg = new Float32Array(4);
9872
+ const Wb = /* @__PURE__ */ new Dc(), Nb = /* @__PURE__ */ new z1(), kb = /* @__PURE__ */ new Kb(), Pg = [], Eg = [], Ag = new Float32Array(16), Rg = new Float32Array(9), Kg = new Float32Array(4);
9873
9873
  function lo(n, e, t) {
9874
9874
  const i = n[0];
9875
9875
  if (i <= 0 || i > 0)
@@ -9895,7 +9895,7 @@ function Jt(n, e) {
9895
9895
  for (let t = 0, i = e.length; t < i; t++)
9896
9896
  n[t] = e[t];
9897
9897
  }
9898
- function Bc(n, e) {
9898
+ function Jc(n, e) {
9899
9899
  let t = Eg[e];
9900
9900
  t === void 0 && (t = new Int32Array(e), Eg[e] = t);
9901
9901
  for (let i = 0; i !== e; ++i)
@@ -10170,25 +10170,25 @@ function XI(n, e) {
10170
10170
  n.uniform4uiv(this.addr, e);
10171
10171
  }
10172
10172
  function zI(n, e, t) {
10173
- const i = this.cache, s = e.length, r = Bc(t, s);
10173
+ const i = this.cache, s = e.length, r = Jc(t, s);
10174
10174
  Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
10175
10175
  for (let a = 0; a !== s; ++a)
10176
10176
  t.setTexture2D(e[a] || Xb, r[a]);
10177
10177
  }
10178
10178
  function WI(n, e, t) {
10179
- const i = this.cache, s = e.length, r = Bc(t, s);
10179
+ const i = this.cache, s = e.length, r = Jc(t, s);
10180
10180
  Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
10181
10181
  for (let a = 0; a !== s; ++a)
10182
10182
  t.setTexture3D(e[a] || Nb, r[a]);
10183
10183
  }
10184
10184
  function NI(n, e, t) {
10185
- const i = this.cache, s = e.length, r = Bc(t, s);
10185
+ const i = this.cache, s = e.length, r = Jc(t, s);
10186
10186
  Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
10187
10187
  for (let a = 0; a !== s; ++a)
10188
10188
  t.setTextureCube(e[a] || kb, r[a]);
10189
10189
  }
10190
10190
  function kI(n, e, t) {
10191
- const i = this.cache, s = e.length, r = Bc(t, s);
10191
+ const i = this.cache, s = e.length, r = Jc(t, s);
10192
10192
  Bt(i, r) || (n.uniform1iv(this.addr, r), Jt(i, r));
10193
10193
  for (let a = 0; a !== s; ++a)
10194
10194
  t.setTexture2DArray(e[a] || Wb, r[a]);
@@ -10273,14 +10273,14 @@ class DI {
10273
10273
  }
10274
10274
  }
10275
10275
  }
10276
- const ku = /(\w+)(\])?(\[|\.)?/g;
10276
+ const Hu = /(\w+)(\])?(\[|\.)?/g;
10277
10277
  function Og(n, e) {
10278
10278
  n.seq.push(e), n.map[e.id] = e;
10279
10279
  }
10280
10280
  function jI(n, e, t) {
10281
10281
  const i = n.name, s = i.length;
10282
- for (ku.lastIndex = 0; ; ) {
10283
- const r = ku.exec(i), a = ku.lastIndex;
10282
+ for (Hu.lastIndex = 0; ; ) {
10283
+ const r = Hu.exec(i), a = Hu.lastIndex;
10284
10284
  let o = r[1];
10285
10285
  const l = r[2] === "]", c = r[3];
10286
10286
  if (l && (o = o | 0), c === void 0 || c === "[" && a + 2 === s) {
@@ -10345,7 +10345,7 @@ function VI(n) {
10345
10345
  let i;
10346
10346
  switch (e === t ? i = "" : e === pc && t === dc ? i = "LinearDisplayP3ToLinearSRGB" : e === dc && t === pc && (i = "LinearSRGBToLinearDisplayP3"), n) {
10347
10347
  case Ft:
10348
- case Zc:
10348
+ case Yc:
10349
10349
  return [i, "LinearTransferOETF"];
10350
10350
  case mt:
10351
10351
  case _f:
@@ -10438,7 +10438,7 @@ function Wg(n, e) {
10438
10438
  return n.replace(/NUM_CLIPPING_PLANES/g, e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, e.numClippingPlanes - e.numClipIntersection);
10439
10439
  }
10440
10440
  const i2 = /^[ \t]*#include +<([\w\d./]+)>/gm;
10441
- function lp(n) {
10441
+ function hp(n) {
10442
10442
  return n.replace(i2, s2);
10443
10443
  }
10444
10444
  const n2 = /* @__PURE__ */ new Map([
@@ -10458,7 +10458,7 @@ function s2(n, e) {
10458
10458
  else
10459
10459
  throw new Error("Can not resolve #include <" + e + ">");
10460
10460
  }
10461
- return lp(t);
10461
+ return hp(t);
10462
10462
  }
10463
10463
  const r2 = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
10464
10464
  function Ng(n) {
@@ -10490,7 +10490,7 @@ function l2(n) {
10490
10490
  case Ya:
10491
10491
  e = "ENVMAP_TYPE_CUBE";
10492
10492
  break;
10493
- case Nc:
10493
+ case kc:
10494
10494
  e = "ENVMAP_TYPE_CUBE_UV";
10495
10495
  break;
10496
10496
  }
@@ -10776,7 +10776,7 @@ function d2(n, e, t, i) {
10776
10776
  `
10777
10777
  `
10778
10778
  ].filter(Wo).join(`
10779
- `)), a = lp(a), a = zg(a, t), a = Wg(a, t), o = lp(o), o = zg(o, t), o = Wg(o, t), a = Ng(a), o = Ng(o), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (v = `#version 300 es
10779
+ `)), a = hp(a), a = zg(a, t), a = Wg(a, t), o = hp(o), o = zg(o, t), o = Wg(o, t), a = Ng(a), o = Ng(o), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (v = `#version 300 es
10780
10780
  `, g = [
10781
10781
  "precision mediump sampler2DArray;",
10782
10782
  "#define attribute in",
@@ -10917,7 +10917,7 @@ function g2(n, e, t, i, s, r, a) {
10917
10917
  return L === 0 ? "uv" : `uv${L}`;
10918
10918
  }
10919
10919
  function g(L, M, K, P, G) {
10920
- const w = P.fog, O = G.geometry, X = L.isMeshStandardMaterial ? P.environment : null, W = (L.isMeshStandardMaterial ? t : e).get(L.envMap || X), J = W && W.mapping === Nc ? W.image.height : null, D = m[L.type];
10920
+ const w = P.fog, O = G.geometry, X = L.isMeshStandardMaterial ? P.environment : null, W = (L.isMeshStandardMaterial ? t : e).get(L.envMap || X), J = W && W.mapping === kc ? W.image.height : null, D = m[L.type];
10921
10921
  L.precision !== null && (p = s.getMaxPrecision(L.precision), p !== L.precision && console.warn("THREE.WebGLProgram.getParameters:", L.precision, "not supported, using", p, "instead."));
10922
10922
  const N = O.morphAttributes.position || O.morphAttributes.normal || O.morphAttributes.color, H = N !== void 0 ? N.length : 0;
10923
10923
  let ee = 0;
@@ -11085,7 +11085,7 @@ function g2(n, e, t, i, s, r, a) {
11085
11085
  let K;
11086
11086
  if (M) {
11087
11087
  const P = Tn[M];
11088
- K = jc.clone(P.uniforms);
11088
+ K = Fc.clone(P.uniforms);
11089
11089
  } else
11090
11090
  K = L.uniforms;
11091
11091
  return K;
@@ -11792,12 +11792,12 @@ function P2(n, e, t) {
11792
11792
  [KL]: n.ZERO,
11793
11793
  [OL]: n.ONE,
11794
11794
  [qL]: n.SRC_COLOR,
11795
- [$d]: n.SRC_ALPHA,
11795
+ [ep]: n.SRC_ALPHA,
11796
11796
  [HL]: n.SRC_ALPHA_SATURATE,
11797
11797
  [NL]: n.DST_COLOR,
11798
11798
  [zL]: n.DST_ALPHA,
11799
11799
  [XL]: n.ONE_MINUS_SRC_COLOR,
11800
- [ep]: n.ONE_MINUS_SRC_ALPHA,
11800
+ [tp]: n.ONE_MINUS_SRC_ALPHA,
11801
11801
  [kL]: n.ONE_MINUS_DST_COLOR,
11802
11802
  [WL]: n.ONE_MINUS_DST_ALPHA,
11803
11803
  [ZL]: n.CONSTANT_COLOR,
@@ -11817,7 +11817,7 @@ function P2(n, e, t) {
11817
11817
  case mr:
11818
11818
  n.blendFuncSeparate(n.ONE, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
11819
11819
  break;
11820
- case Qd:
11820
+ case $d:
11821
11821
  n.blendFunc(n.ONE, n.ONE);
11822
11822
  break;
11823
11823
  case Mm:
@@ -11835,7 +11835,7 @@ function P2(n, e, t) {
11835
11835
  case mr:
11836
11836
  n.blendFuncSeparate(n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
11837
11837
  break;
11838
- case Qd:
11838
+ case $d:
11839
11839
  n.blendFunc(n.SRC_ALPHA, n.ONE);
11840
11840
  break;
11841
11841
  case Mm:
@@ -12043,7 +12043,7 @@ function E2(n, e, t, i, s, r, a) {
12043
12043
  return R;
12044
12044
  }
12045
12045
  function x(R) {
12046
- return op(R.width) && op(R.height);
12046
+ return lp(R.width) && lp(R.height);
12047
12047
  }
12048
12048
  function S(R) {
12049
12049
  return o ? !1 : R.wrapS !== Nt || R.wrapT !== Nt || R.minFilter !== pt && R.minFilter !== lt;
@@ -12073,7 +12073,7 @@ function E2(n, e, t, i, s, r, a) {
12073
12073
  return C(R, j) === !0 || R.isFramebufferTexture && R.minFilter !== pt && R.minFilter !== lt ? Math.log2(Math.max(_.width, _.height)) + 1 : R.mipmaps !== void 0 && R.mipmaps.length > 0 ? R.mipmaps.length : R.isCompressedTexture && Array.isArray(R.image) ? _.mipmaps.length : 1;
12074
12074
  }
12075
12075
  function M(R) {
12076
- return R === pt || R === ip || R === Fh ? n.NEAREST : n.LINEAR;
12076
+ return R === pt || R === np || R === Fh ? n.NEAREST : n.LINEAR;
12077
12077
  }
12078
12078
  function K(R) {
12079
12079
  const _ = R.target;
@@ -12186,7 +12186,7 @@ function E2(n, e, t, i, s, r, a) {
12186
12186
  [cc]: n.MIRRORED_REPEAT
12187
12187
  }, re = {
12188
12188
  [pt]: n.NEAREST,
12189
- [ip]: n.NEAREST_MIPMAP_NEAREST,
12189
+ [np]: n.NEAREST_MIPMAP_NEAREST,
12190
12190
  [Fh]: n.NEAREST_MIPMAP_LINEAR,
12191
12191
  [lt]: n.LINEAR,
12192
12192
  [mb]: n.LINEAR_MIPMAP_NEAREST,
@@ -12245,7 +12245,7 @@ function E2(n, e, t, i, s, r, a) {
12245
12245
  let Te;
12246
12246
  const it = _.mipmaps, z = o && _.isVideoTexture !== !0 && _e !== xb, ue = Ee.__version === void 0 || ne === !0, ie = L(_, te, Ze);
12247
12247
  if (_.isDepthTexture)
12248
- _e = n.DEPTH_COMPONENT, o ? _.type === Mt ? _e = n.DEPTH_COMPONENT32F : _.type === Ri ? _e = n.DEPTH_COMPONENT24 : _.type === gr ? _e = n.DEPTH24_STENCIL8 : _e = n.DEPTH_COMPONENT16 : _.type === Mt && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), _.format === yr && _e === n.DEPTH_COMPONENT && _.type !== kc && _.type !== Ri && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), _.type = Ri, We = r.convert(_.type)), _.format === Da && _e === n.DEPTH_COMPONENT && (_e = n.DEPTH_STENCIL, _.type !== gr && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), _.type = gr, We = r.convert(_.type))), ue && (z ? t.texStorage2D(n.TEXTURE_2D, 1, _e, te.width, te.height) : t.texImage2D(n.TEXTURE_2D, 0, _e, te.width, te.height, 0, Re, We, null));
12248
+ _e = n.DEPTH_COMPONENT, o ? _.type === Mt ? _e = n.DEPTH_COMPONENT32F : _.type === Ri ? _e = n.DEPTH_COMPONENT24 : _.type === gr ? _e = n.DEPTH24_STENCIL8 : _e = n.DEPTH_COMPONENT16 : _.type === Mt && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), _.format === yr && _e === n.DEPTH_COMPONENT && _.type !== Hc && _.type !== Ri && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), _.type = Ri, We = r.convert(_.type)), _.format === Da && _e === n.DEPTH_COMPONENT && (_e = n.DEPTH_STENCIL, _.type !== gr && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), _.type = gr, We = r.convert(_.type))), ue && (z ? t.texStorage2D(n.TEXTURE_2D, 1, _e, te.width, te.height) : t.texImage2D(n.TEXTURE_2D, 0, _e, te.width, te.height, 0, Re, We, null));
12249
12249
  else if (_.isDataTexture)
12250
12250
  if (it.length > 0 && Ze) {
12251
12251
  z && ue && t.texStorage2D(n.TEXTURE_2D, ie, _e, it[0].width, it[0].height);
@@ -12516,7 +12516,7 @@ function E2(n, e, t, i, s, r, a) {
12516
12516
  }
12517
12517
  function Zt(R, _) {
12518
12518
  const j = R.colorSpace, ae = R.format, ne = R.type;
12519
- return R.isCompressedTexture === !0 || R.isVideoTexture === !0 || R.format === ap || j !== Ft && j !== Ni && (dt.getTransfer(j) === xt ? o === !1 ? e.has("EXT_sRGB") === !0 && ae === St ? (R.format = ap, R.minFilter = lt, R.generateMipmaps = !1) : _ = wb.sRGBToLinear(_) : (ae !== St || ne !== on) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", j)), _;
12519
+ return R.isCompressedTexture === !0 || R.isVideoTexture === !0 || R.format === op || j !== Ft && j !== Ni && (dt.getTransfer(j) === xt ? o === !1 ? e.has("EXT_sRGB") === !0 && ae === St ? (R.format = op, R.minFilter = lt, R.generateMipmaps = !1) : _ = wb.sRGBToLinear(_) : (ae !== St || ne !== on) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", j)), _;
12520
12520
  }
12521
12521
  this.allocateTextureUnit = J, this.resetTextureUnits = W, this.setTexture2D = N, this.setTexture2DArray = H, this.setTexture3D = ee, this.setTextureCube = Y, this.rebindTextures = Ne, this.setupRenderTarget = Xe, this.updateRenderTargetMipmap = yt, this.updateMultisampleRenderTarget = je, this.setupDepthRenderbuffer = Ce, this.setupFrameBufferTexture = Se, this.useMultisampledRTT = ct;
12522
12522
  }
@@ -12531,11 +12531,11 @@ function A2(n, e, t) {
12531
12531
  return n.UNSIGNED_SHORT_4_4_4_4;
12532
12532
  if (r === vb)
12533
12533
  return n.UNSIGNED_SHORT_5_5_5_1;
12534
- if (r === np)
12534
+ if (r === sp)
12535
12535
  return n.BYTE;
12536
12536
  if (r === gb)
12537
12537
  return n.SHORT;
12538
- if (r === kc)
12538
+ if (r === Hc)
12539
12539
  return n.UNSIGNED_SHORT;
12540
12540
  if (r === Bo)
12541
12541
  return n.INT;
@@ -12557,7 +12557,7 @@ function A2(n, e, t) {
12557
12557
  return n.DEPTH_COMPONENT;
12558
12558
  if (r === Da)
12559
12559
  return n.DEPTH_STENCIL;
12560
- if (r === ap)
12560
+ if (r === op)
12561
12561
  return o = e.get("EXT_sRGB"), o !== null ? o.SRGB_ALPHA_EXT : null;
12562
12562
  if (r === ja)
12563
12563
  return n.RED;
@@ -12565,31 +12565,31 @@ function A2(n, e, t) {
12565
12565
  return n.RED_INTEGER;
12566
12566
  if (r === bb)
12567
12567
  return n.RG;
12568
- if (r === Hc)
12568
+ if (r === Zc)
12569
12569
  return n.RG_INTEGER;
12570
12570
  if (r === cl)
12571
12571
  return n.RGBA_INTEGER;
12572
- if (r === fu || r === mu || r === gu || r === yu)
12572
+ if (r === mu || r === gu || r === yu || r === vu)
12573
12573
  if (l === xt)
12574
12574
  if (o = e.get("WEBGL_compressed_texture_s3tc_srgb"), o !== null) {
12575
- if (r === fu)
12576
- return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;
12577
12575
  if (r === mu)
12578
- return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
12576
+ return o.COMPRESSED_SRGB_S3TC_DXT1_EXT;
12579
12577
  if (r === gu)
12580
- return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
12578
+ return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;
12581
12579
  if (r === yu)
12580
+ return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;
12581
+ if (r === vu)
12582
12582
  return o.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT;
12583
12583
  } else
12584
12584
  return null;
12585
12585
  else if (o = e.get("WEBGL_compressed_texture_s3tc"), o !== null) {
12586
- if (r === fu)
12587
- return o.COMPRESSED_RGB_S3TC_DXT1_EXT;
12588
12586
  if (r === mu)
12589
- return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;
12587
+ return o.COMPRESSED_RGB_S3TC_DXT1_EXT;
12590
12588
  if (r === gu)
12591
- return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;
12589
+ return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;
12592
12590
  if (r === yu)
12591
+ return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;
12592
+ if (r === vu)
12593
12593
  return o.COMPRESSED_RGBA_S3TC_DXT5_EXT;
12594
12594
  } else
12595
12595
  return null;
@@ -12647,9 +12647,9 @@ function A2(n, e, t) {
12647
12647
  return l === xt ? o.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR : o.COMPRESSED_RGBA_ASTC_12x12_KHR;
12648
12648
  } else
12649
12649
  return null;
12650
- if (r === vu || r === Vm || r === Um)
12650
+ if (r === bu || r === Vm || r === Um)
12651
12651
  if (o = e.get("EXT_texture_compression_bptc"), o !== null) {
12652
- if (r === vu)
12652
+ if (r === bu)
12653
12653
  return l === xt ? o.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT : o.COMPRESSED_RGBA_BPTC_UNORM_EXT;
12654
12654
  if (r === Vm)
12655
12655
  return o.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;
@@ -12659,7 +12659,7 @@ function A2(n, e, t) {
12659
12659
  return null;
12660
12660
  if (r === o1 || r === Qm || r === $m || r === eg)
12661
12661
  if (o = e.get("EXT_texture_compression_rgtc"), o !== null) {
12662
- if (r === vu)
12662
+ if (r === bu)
12663
12663
  return o.COMPRESSED_RED_RGTC1_EXT;
12664
12664
  if (r === Qm)
12665
12665
  return o.COMPRESSED_SIGNED_RED_RGTC1_EXT;
@@ -12684,7 +12684,7 @@ let es = class extends It {
12684
12684
  }
12685
12685
  };
12686
12686
  const K2 = { type: "move" };
12687
- class Hu {
12687
+ class Zu {
12688
12688
  constructor() {
12689
12689
  this._targetRay = null, this._grip = null, this._hand = null;
12690
12690
  }
@@ -12765,13 +12765,13 @@ class O2 extends Gr {
12765
12765
  let M = null, K = null;
12766
12766
  this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(Y) {
12767
12767
  let U = v[Y];
12768
- return U === void 0 && (U = new Hu(), v[Y] = U), U.getTargetRaySpace();
12768
+ return U === void 0 && (U = new Zu(), v[Y] = U), U.getTargetRaySpace();
12769
12769
  }, this.getControllerGrip = function(Y) {
12770
12770
  let U = v[Y];
12771
- return U === void 0 && (U = new Hu(), v[Y] = U), U.getGripSpace();
12771
+ return U === void 0 && (U = new Zu(), v[Y] = U), U.getGripSpace();
12772
12772
  }, this.getHand = function(Y) {
12773
12773
  let U = v[Y];
12774
- return U === void 0 && (U = new Hu(), v[Y] = U), U.getHandSpace();
12774
+ return U === void 0 && (U = new Zu(), v[Y] = U), U.getHandSpace();
12775
12775
  };
12776
12776
  function P(Y) {
12777
12777
  const U = b.indexOf(Y.inputSource);
@@ -13266,10 +13266,10 @@ class Zb {
13266
13266
  let F = !1;
13267
13267
  if (T !== null) {
13268
13268
  const xe = T.texture.format;
13269
- F = xe === cl || xe === Hc || xe === wf;
13269
+ F = xe === cl || xe === Zc || xe === wf;
13270
13270
  }
13271
13271
  if (F) {
13272
- const xe = T.texture.type, Ke = xe === on || xe === Ri || xe === kc || xe === gr || xe === yb || xe === vb, Ye = ye.getClearColor(), Be = ye.getClearAlpha(), $e = Ye.r, Ve = Ye.g, Qe = Ye.b;
13272
+ const xe = T.texture.type, Ke = xe === on || xe === Ri || xe === Hc || xe === gr || xe === yb || xe === vb, Ye = ye.getClearColor(), Be = ye.getClearAlpha(), $e = Ye.r, Ve = Ye.g, Qe = Ye.b;
13273
13273
  Ke ? (p[0] = $e, p[1] = Ve, p[2] = Qe, p[3] = Be, k.clearBufferuiv(k.COLOR, 0, p)) : (m[0] = $e, m[1] = Ve, m[2] = Qe, m[3] = Be, k.clearBufferiv(k.COLOR, 0, m));
13274
13274
  } else
13275
13275
  V |= k.COLOR_BUFFER_BIT;
@@ -13338,8 +13338,8 @@ class Zb {
13338
13338
  else if (F.isInstancedMesh)
13339
13339
  wt.renderInstances(Ot, Ut, F.count);
13340
13340
  else if (B.isInstancedBufferGeometry) {
13341
- const st = B._maxInstanceCount !== void 0 ? B._maxInstanceCount : 1 / 0, cu = Math.min(B.instanceCount, st);
13342
- wt.renderInstances(Ot, Ut, cu);
13341
+ const st = B._maxInstanceCount !== void 0 ? B._maxInstanceCount : 1 / 0, uu = Math.min(B.instanceCount, st);
13342
+ wt.renderInstances(Ot, Ut, uu);
13343
13343
  } else
13344
13344
  wt.render(Ot, Ut);
13345
13345
  };
@@ -13511,25 +13511,25 @@ class Zb {
13511
13511
  const xe = Z.fog, Ke = V.isMeshStandardMaterial ? Z.environment : null, Ye = T === null ? b.outputColorSpace : T.isXRRenderTarget === !0 ? T.texture.colorSpace : Ft, Be = (V.isMeshStandardMaterial ? Ht : ct).get(V.envMap || Ke), $e = V.vertexColors === !0 && !!B.attributes.color && B.attributes.color.itemSize === 4, Ve = !!B.attributes.tangent && (!!V.normalMap || V.anisotropy > 0), Qe = !!B.morphAttributes.position, Ot = !!B.morphAttributes.normal, Gi = !!B.morphAttributes.color;
13512
13512
  let Ut = En;
13513
13513
  V.toneMapped && (T === null || T.isXRRenderTarget === !0) && (Ut = b.toneMapping);
13514
- const Wn = B.morphAttributes.position || B.morphAttributes.normal || B.morphAttributes.color, wt = Wn !== void 0 ? Wn.length : 0, st = je.get(V), cu = g.state.lights;
13514
+ const Wn = B.morphAttributes.position || B.morphAttributes.normal || B.morphAttributes.color, wt = Wn !== void 0 ? Wn.length : 0, st = je.get(V), uu = g.state.lights;
13515
13515
  if (U === !0 && (re === !0 || E !== L)) {
13516
13516
  const qi = E === L && V.id === I;
13517
13517
  Ee.setState(V, E, qi);
13518
13518
  }
13519
13519
  let Rt = !1;
13520
- V.version === st.__version ? (st.needsLights && st.lightsStateVersion !== cu.state.version || st.outputColorSpace !== Ye || F.isBatchedMesh && st.batching === !1 || !F.isBatchedMesh && st.batching === !0 || F.isInstancedMesh && st.instancing === !1 || !F.isInstancedMesh && st.instancing === !0 || F.isSkinnedMesh && st.skinning === !1 || !F.isSkinnedMesh && st.skinning === !0 || F.isInstancedMesh && st.instancingColor === !0 && F.instanceColor === null || F.isInstancedMesh && st.instancingColor === !1 && F.instanceColor !== null || st.envMap !== Be || V.fog === !0 && st.fog !== xe || st.numClippingPlanes !== void 0 && (st.numClippingPlanes !== Ee.numPlanes || st.numIntersection !== Ee.numIntersection) || st.vertexAlphas !== $e || st.vertexTangents !== Ve || st.morphTargets !== Qe || st.morphNormals !== Ot || st.morphColors !== Gi || st.toneMapping !== Ut || Ne.isWebGL2 === !0 && st.morphTargetsCount !== wt) && (Rt = !0) : (Rt = !0, st.__version = V.version);
13520
+ V.version === st.__version ? (st.needsLights && st.lightsStateVersion !== uu.state.version || st.outputColorSpace !== Ye || F.isBatchedMesh && st.batching === !1 || !F.isBatchedMesh && st.batching === !0 || F.isInstancedMesh && st.instancing === !1 || !F.isInstancedMesh && st.instancing === !0 || F.isSkinnedMesh && st.skinning === !1 || !F.isSkinnedMesh && st.skinning === !0 || F.isInstancedMesh && st.instancingColor === !0 && F.instanceColor === null || F.isInstancedMesh && st.instancingColor === !1 && F.instanceColor !== null || st.envMap !== Be || V.fog === !0 && st.fog !== xe || st.numClippingPlanes !== void 0 && (st.numClippingPlanes !== Ee.numPlanes || st.numIntersection !== Ee.numIntersection) || st.vertexAlphas !== $e || st.vertexTangents !== Ve || st.morphTargets !== Qe || st.morphNormals !== Ot || st.morphColors !== Gi || st.toneMapping !== Ut || Ne.isWebGL2 === !0 && st.morphTargetsCount !== wt) && (Rt = !0) : (Rt = !0, st.__version = V.version);
13521
13521
  let Zs = st.currentProgram;
13522
13522
  Rt === !0 && (Zs = Il(V, Z, F));
13523
- let Lm = !1, go = !1, uu = !1;
13523
+ let Lm = !1, go = !1, du = !1;
13524
13524
  const oi = Zs.getUniforms(), Ys = st.uniforms;
13525
- if (Xe.useProgram(Zs.program) && (Lm = !0, go = !0, uu = !0), V.id !== I && (I = V.id, go = !0), Lm || L !== E) {
13525
+ if (Xe.useProgram(Zs.program) && (Lm = !0, go = !0, du = !0), V.id !== I && (I = V.id, go = !0), Lm || L !== E) {
13526
13526
  oi.setValue(k, "projectionMatrix", E.projectionMatrix), oi.setValue(k, "viewMatrix", E.matrixWorldInverse);
13527
13527
  const qi = oi.map.cameraPosition;
13528
13528
  qi !== void 0 && qi.setValue(k, Pe.setFromMatrixPosition(E.matrixWorld)), Ne.logarithmicDepthBuffer && oi.setValue(
13529
13529
  k,
13530
13530
  "logDepthBufFC",
13531
13531
  2 / (Math.log(E.far + 1) / Math.LN2)
13532
- ), (V.isMeshPhongMaterial || V.isMeshToonMaterial || V.isMeshLambertMaterial || V.isMeshBasicMaterial || V.isMeshStandardMaterial || V.isShaderMaterial) && oi.setValue(k, "isOrthographic", E.isOrthographicCamera === !0), L !== E && (L = E, go = !0, uu = !0);
13532
+ ), (V.isMeshPhongMaterial || V.isMeshToonMaterial || V.isMeshLambertMaterial || V.isMeshBasicMaterial || V.isMeshStandardMaterial || V.isShaderMaterial) && oi.setValue(k, "isOrthographic", E.isOrthographicCamera === !0), L !== E && (L = E, go = !0, du = !0);
13533
13533
  }
13534
13534
  if (F.isSkinnedMesh) {
13535
13535
  oi.setOptional(k, F, "bindMatrix"), oi.setOptional(k, F, "bindMatrixInverse");
@@ -13537,12 +13537,12 @@ class Zb {
13537
13537
  qi && (Ne.floatVertexTextures ? (qi.boneTexture === null && qi.computeBoneTexture(), oi.setValue(k, "boneTexture", qi.boneTexture, Fe)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
13538
13538
  }
13539
13539
  F.isBatchedMesh && (oi.setOptional(k, F, "batchingTexture"), oi.setValue(k, "batchingTexture", F._matricesTexture, Fe));
13540
- const du = B.morphAttributes;
13541
- if ((du.position !== void 0 || du.normal !== void 0 || du.color !== void 0 && Ne.isWebGL2 === !0) && q.update(F, B, Zs), (go || st.receiveShadow !== F.receiveShadow) && (st.receiveShadow = F.receiveShadow, oi.setValue(k, "receiveShadow", F.receiveShadow)), V.isMeshGouraudMaterial && V.envMap !== null && (Ys.envMap.value = Be, Ys.flipEnvMap.value = Be.isCubeTexture && Be.isRenderTargetTexture === !1 ? -1 : 1), go && (oi.setValue(k, "toneMappingExposure", b.toneMappingExposure), st.needsLights && IL(Ys, uu), xe && V.fog === !0 && ae.refreshFogUniforms(Ys, xe), ae.refreshMaterialUniforms(Ys, V, W, X, pe), Jh.upload(k, xm(st), Ys, Fe)), V.isShaderMaterial && V.uniformsNeedUpdate === !0 && (Jh.upload(k, xm(st), Ys, Fe), V.uniformsNeedUpdate = !1), V.isSpriteMaterial && oi.setValue(k, "center", F.center), oi.setValue(k, "modelViewMatrix", F.modelViewMatrix), oi.setValue(k, "normalMatrix", F.normalMatrix), oi.setValue(k, "modelMatrix", F.matrixWorld), V.isShaderMaterial || V.isRawShaderMaterial) {
13540
+ const pu = B.morphAttributes;
13541
+ if ((pu.position !== void 0 || pu.normal !== void 0 || pu.color !== void 0 && Ne.isWebGL2 === !0) && q.update(F, B, Zs), (go || st.receiveShadow !== F.receiveShadow) && (st.receiveShadow = F.receiveShadow, oi.setValue(k, "receiveShadow", F.receiveShadow)), V.isMeshGouraudMaterial && V.envMap !== null && (Ys.envMap.value = Be, Ys.flipEnvMap.value = Be.isCubeTexture && Be.isRenderTargetTexture === !1 ? -1 : 1), go && (oi.setValue(k, "toneMappingExposure", b.toneMappingExposure), st.needsLights && IL(Ys, du), xe && V.fog === !0 && ae.refreshFogUniforms(Ys, xe), ae.refreshMaterialUniforms(Ys, V, W, X, pe), Jh.upload(k, xm(st), Ys, Fe)), V.isShaderMaterial && V.uniformsNeedUpdate === !0 && (Jh.upload(k, xm(st), Ys, Fe), V.uniformsNeedUpdate = !1), V.isSpriteMaterial && oi.setValue(k, "center", F.center), oi.setValue(k, "modelViewMatrix", F.modelViewMatrix), oi.setValue(k, "normalMatrix", F.normalMatrix), oi.setValue(k, "modelMatrix", F.matrixWorld), V.isShaderMaterial || V.isRawShaderMaterial) {
13542
13542
  const qi = V.uniformsGroups;
13543
- for (let pu = 0, _L = qi.length; pu < _L; pu++)
13543
+ for (let fu = 0, _L = qi.length; fu < _L; fu++)
13544
13544
  if (Ne.isWebGL2) {
13545
- const Cm = qi[pu];
13545
+ const Cm = qi[fu];
13546
13546
  We.update(Cm, Zs), We.bind(Cm, Zs);
13547
13547
  } else
13548
13548
  console.warn("THREE.WebGLRenderer: Uniform Buffer Objects can only be used with WebGL 2.");
@@ -13654,7 +13654,7 @@ class Zb {
13654
13654
  set outputColorSpace(e) {
13655
13655
  this._outputColorSpace = e;
13656
13656
  const t = this.getContext();
13657
- t.drawingBufferColorSpace = e === _f ? "display-p3" : "srgb", t.unpackColorSpace = dt.workingColorSpace === Zc ? "display-p3" : "srgb";
13657
+ t.drawingBufferColorSpace = e === _f ? "display-p3" : "srgb", t.unpackColorSpace = dt.workingColorSpace === Yc ? "display-p3" : "srgb";
13658
13658
  }
13659
13659
  get physicallyCorrectLights() {
13660
13660
  return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."), !this.useLegacyLights;
@@ -13692,7 +13692,7 @@ class W2 extends It {
13692
13692
  }
13693
13693
  class N2 {
13694
13694
  constructor(e, t) {
13695
- this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = rp, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid = ln();
13695
+ this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = ap, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid = ln();
13696
13696
  }
13697
13697
  onUploadCallback() {
13698
13698
  }
@@ -13844,7 +13844,7 @@ class Of {
13844
13844
  };
13845
13845
  }
13846
13846
  }
13847
- const Dg = /* @__PURE__ */ new A(), jg = /* @__PURE__ */ new ht(), Fg = /* @__PURE__ */ new ht(), k2 = /* @__PURE__ */ new A(), Bg = /* @__PURE__ */ new Oe(), Jl = /* @__PURE__ */ new A(), Zu = /* @__PURE__ */ new pn(), Jg = /* @__PURE__ */ new Oe(), Yu = /* @__PURE__ */ new oo();
13847
+ const Dg = /* @__PURE__ */ new A(), jg = /* @__PURE__ */ new ht(), Fg = /* @__PURE__ */ new ht(), k2 = /* @__PURE__ */ new A(), Bg = /* @__PURE__ */ new Oe(), Jl = /* @__PURE__ */ new A(), Yu = /* @__PURE__ */ new pn(), Jg = /* @__PURE__ */ new Oe(), Du = /* @__PURE__ */ new oo();
13848
13848
  class H2 extends ni {
13849
13849
  constructor(e, t) {
13850
13850
  super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Gm, this.bindMatrix = new Oe(), this.bindMatrixInverse = new Oe(), this.boundingBox = null, this.boundingSphere = null;
@@ -13868,7 +13868,7 @@ class H2 extends ni {
13868
13868
  }
13869
13869
  raycast(e, t) {
13870
13870
  const i = this.material, s = this.matrixWorld;
13871
- i !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Zu.copy(this.boundingSphere), Zu.applyMatrix4(s), e.ray.intersectsSphere(Zu) !== !1 && (Jg.copy(s).invert(), Yu.copy(e.ray).applyMatrix4(Jg), !(this.boundingBox !== null && Yu.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Yu)));
13871
+ i !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Yu.copy(this.boundingSphere), Yu.applyMatrix4(s), e.ray.intersectsSphere(Yu) !== !1 && (Jg.copy(s).invert(), Du.copy(e.ray).applyMatrix4(Jg), !(this.boundingBox !== null && Du.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Du)));
13872
13872
  }
13873
13873
  getVertexPosition(e, t) {
13874
13874
  return super.getVertexPosition(e, t), this.applyBoneTransform(e, t), t;
@@ -14007,7 +14007,7 @@ class qf {
14007
14007
  return e;
14008
14008
  }
14009
14009
  }
14010
- class hp extends ut {
14010
+ class cp extends ut {
14011
14011
  constructor(e, t, i, s = 1) {
14012
14012
  super(e, t, i), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = s;
14013
14013
  }
@@ -14022,7 +14022,7 @@ class hp extends ut {
14022
14022
  const Qr = /* @__PURE__ */ new Oe(), Ug = /* @__PURE__ */ new Oe(), Vl = [], Qg = /* @__PURE__ */ new Et(), Y2 = /* @__PURE__ */ new Oe(), So = /* @__PURE__ */ new ni(), Lo = /* @__PURE__ */ new pn();
14023
14023
  class D2 extends ni {
14024
14024
  constructor(e, t, i) {
14025
- super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new hp(new Float32Array(i * 16), 16), this.instanceColor = null, this.count = i, this.boundingBox = null, this.boundingSphere = null;
14025
+ super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new cp(new Float32Array(i * 16), 16), this.instanceColor = null, this.count = i, this.boundingBox = null, this.boundingSphere = null;
14026
14026
  for (let s = 0; s < i; s++)
14027
14027
  this.setMatrixAt(s, Y2);
14028
14028
  }
@@ -14060,7 +14060,7 @@ class D2 extends ni {
14060
14060
  }
14061
14061
  }
14062
14062
  setColorAt(e, t) {
14063
- this.instanceColor === null && (this.instanceColor = new hp(new Float32Array(this.instanceMatrix.count * 3), 3)), t.toArray(this.instanceColor.array, e * 3);
14063
+ this.instanceColor === null && (this.instanceColor = new cp(new Float32Array(this.instanceMatrix.count * 3), 3)), t.toArray(this.instanceColor.array, e * 3);
14064
14064
  }
14065
14065
  setMatrixAt(e, t) {
14066
14066
  t.toArray(this.instanceMatrix.array, e * 16);
@@ -14079,7 +14079,7 @@ class Db extends An {
14079
14079
  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;
14080
14080
  }
14081
14081
  }
14082
- const $g = /* @__PURE__ */ new A(), ey = /* @__PURE__ */ new A(), ty = /* @__PURE__ */ new Oe(), Du = /* @__PURE__ */ new oo(), Ul = /* @__PURE__ */ new pn();
14082
+ const $g = /* @__PURE__ */ new A(), ey = /* @__PURE__ */ new A(), ty = /* @__PURE__ */ new Oe(), ju = /* @__PURE__ */ new oo(), Ul = /* @__PURE__ */ new pn();
14083
14083
  let Xf = class extends It {
14084
14084
  constructor(e = new ai(), t = new Db()) {
14085
14085
  super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.updateMorphTargets();
@@ -14102,13 +14102,13 @@ let Xf = class extends It {
14102
14102
  const i = this.geometry, s = this.matrixWorld, r = e.params.Line.threshold, a = i.drawRange;
14103
14103
  if (i.boundingSphere === null && i.computeBoundingSphere(), Ul.copy(i.boundingSphere), Ul.applyMatrix4(s), Ul.radius += r, e.ray.intersectsSphere(Ul) === !1)
14104
14104
  return;
14105
- ty.copy(s).invert(), Du.copy(e.ray).applyMatrix4(ty);
14105
+ ty.copy(s).invert(), ju.copy(e.ray).applyMatrix4(ty);
14106
14106
  const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = new A(), d = new A(), h = new A(), u = new A(), p = this.isLineSegments ? 2 : 1, m = i.index, g = i.attributes.position;
14107
14107
  if (m !== null) {
14108
14108
  const f = Math.max(0, a.start), v = Math.min(m.count, a.start + a.count);
14109
14109
  for (let b = f, x = v - 1; b < x; b += p) {
14110
14110
  const S = m.getX(b), C = m.getX(b + 1);
14111
- if (c.fromBufferAttribute(g, S), d.fromBufferAttribute(g, C), Du.distanceSqToSegment(c, d, u, h) > l)
14111
+ if (c.fromBufferAttribute(g, S), d.fromBufferAttribute(g, C), ju.distanceSqToSegment(c, d, u, h) > l)
14112
14112
  continue;
14113
14113
  u.applyMatrix4(this.matrixWorld);
14114
14114
  const I = e.ray.origin.distanceTo(u);
@@ -14126,7 +14126,7 @@ let Xf = class extends It {
14126
14126
  } else {
14127
14127
  const f = Math.max(0, a.start), v = Math.min(g.count, a.start + a.count);
14128
14128
  for (let b = f, x = v - 1; b < x; b += p) {
14129
- if (c.fromBufferAttribute(g, b), d.fromBufferAttribute(g, b + 1), Du.distanceSqToSegment(c, d, u, h) > l)
14129
+ if (c.fromBufferAttribute(g, b), d.fromBufferAttribute(g, b + 1), ju.distanceSqToSegment(c, d, u, h) > l)
14130
14130
  continue;
14131
14131
  u.applyMatrix4(this.matrixWorld);
14132
14132
  const C = e.ray.origin.distanceTo(u);
@@ -14187,7 +14187,7 @@ class jb extends An {
14187
14187
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
14188
14188
  }
14189
14189
  }
14190
- const sy = /* @__PURE__ */ new Oe(), cp = /* @__PURE__ */ new oo(), Ql = /* @__PURE__ */ new pn(), $l = /* @__PURE__ */ new A();
14190
+ const sy = /* @__PURE__ */ new Oe(), up = /* @__PURE__ */ new oo(), Ql = /* @__PURE__ */ new pn(), $l = /* @__PURE__ */ new A();
14191
14191
  class B2 extends It {
14192
14192
  constructor(e = new ai(), t = new jb()) {
14193
14193
  super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.updateMorphTargets();
@@ -14199,7 +14199,7 @@ class B2 extends It {
14199
14199
  const i = this.geometry, s = this.matrixWorld, r = e.params.Points.threshold, a = i.drawRange;
14200
14200
  if (i.boundingSphere === null && i.computeBoundingSphere(), Ql.copy(i.boundingSphere), Ql.applyMatrix4(s), Ql.radius += r, e.ray.intersectsSphere(Ql) === !1)
14201
14201
  return;
14202
- sy.copy(s).invert(), cp.copy(e.ray).applyMatrix4(sy);
14202
+ sy.copy(s).invert(), up.copy(e.ray).applyMatrix4(sy);
14203
14203
  const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = i.index, h = i.attributes.position;
14204
14204
  if (c !== null) {
14205
14205
  const u = Math.max(0, a.start), p = Math.min(c.count, a.start + a.count);
@@ -14228,10 +14228,10 @@ class B2 extends It {
14228
14228
  }
14229
14229
  }
14230
14230
  function ry(n, e, t, i, s, r, a) {
14231
- const o = cp.distanceSqToPoint(n);
14231
+ const o = up.distanceSqToPoint(n);
14232
14232
  if (o < t) {
14233
14233
  const l = new A();
14234
- cp.closestPointToPoint(n, l), l.applyMatrix4(i);
14234
+ up.closestPointToPoint(n, l), l.applyMatrix4(i);
14235
14235
  const c = s.ray.origin.distanceTo(l);
14236
14236
  if (c < s.near || c > s.far)
14237
14237
  return;
@@ -14532,7 +14532,7 @@ class Xn {
14532
14532
  case Fa:
14533
14533
  t = this.InterpolantFactoryMethodLinear;
14534
14534
  break;
14535
- case bu:
14535
+ case xu:
14536
14536
  t = this.InterpolantFactoryMethodSmooth;
14537
14537
  break;
14538
14538
  }
@@ -14554,7 +14554,7 @@ class Xn {
14554
14554
  case this.InterpolantFactoryMethodLinear:
14555
14555
  return Fa;
14556
14556
  case this.InterpolantFactoryMethodSmooth:
14557
- return bu;
14557
+ return xu;
14558
14558
  }
14559
14559
  }
14560
14560
  getValueSize() {
@@ -14627,7 +14627,7 @@ class Xn {
14627
14627
  // removes equivalent sequential keys as common in morph target sequences
14628
14628
  // (0,0,0,0,1,1,1,0,0,0,0,0,0,0) --> (0,0,1,1,0,0)
14629
14629
  optimize() {
14630
- const e = this.times.slice(), t = this.values.slice(), i = this.getValueSize(), s = this.getInterpolation() === bu, r = e.length - 1;
14630
+ const e = this.times.slice(), t = this.values.slice(), i = this.getValueSize(), s = this.getInterpolation() === xu, r = e.length - 1;
14631
14631
  let a = 1;
14632
14632
  for (let o = 1; o < r; ++o) {
14633
14633
  let l = !1;
@@ -15170,7 +15170,7 @@ class Wf extends It {
15170
15170
  return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, this.groundColor !== void 0 && (t.object.groundColor = this.groundColor.getHex()), this.distance !== void 0 && (t.object.distance = this.distance), this.angle !== void 0 && (t.object.angle = this.angle), this.decay !== void 0 && (t.object.decay = this.decay), this.penumbra !== void 0 && (t.object.penumbra = this.penumbra), this.shadow !== void 0 && (t.object.shadow = this.shadow.toJSON()), t;
15171
15171
  }
15172
15172
  }
15173
- const ju = /* @__PURE__ */ new Oe(), oy = /* @__PURE__ */ new A(), ly = /* @__PURE__ */ new A();
15173
+ const Fu = /* @__PURE__ */ new Oe(), oy = /* @__PURE__ */ new A(), ly = /* @__PURE__ */ new A();
15174
15174
  class Nf {
15175
15175
  constructor(e) {
15176
15176
  this.camera = e, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new ge(512, 512), this.map = null, this.mapPass = null, this.matrix = new Oe(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Af(), this._frameExtents = new ge(1, 1), this._viewportCount = 1, this._viewports = [
@@ -15185,7 +15185,7 @@ class Nf {
15185
15185
  }
15186
15186
  updateMatrices(e) {
15187
15187
  const t = this.camera, i = this.matrix;
15188
- oy.setFromMatrixPosition(e.matrixWorld), t.position.copy(oy), ly.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(ly), t.updateMatrixWorld(), ju.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(ju), i.set(
15188
+ oy.setFromMatrixPosition(e.matrixWorld), t.position.copy(oy), ly.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(ly), t.updateMatrixWorld(), Fu.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Fu), i.set(
15189
15189
  0.5,
15190
15190
  0,
15191
15191
  0,
@@ -15202,7 +15202,7 @@ class Nf {
15202
15202
  0,
15203
15203
  0,
15204
15204
  1
15205
- ), i.multiply(ju);
15205
+ ), i.multiply(Fu);
15206
15206
  }
15207
15207
  getViewport(e) {
15208
15208
  return this._viewports[e];
@@ -15253,7 +15253,7 @@ class cw extends Wf {
15253
15253
  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;
15254
15254
  }
15255
15255
  }
15256
- const hy = /* @__PURE__ */ new Oe(), Co = /* @__PURE__ */ new A(), Fu = /* @__PURE__ */ new A();
15256
+ const hy = /* @__PURE__ */ new Oe(), Co = /* @__PURE__ */ new A(), Bu = /* @__PURE__ */ new A();
15257
15257
  class uw extends Nf {
15258
15258
  constructor() {
15259
15259
  super(new di(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new ge(4, 2), this._viewportCount = 6, this._viewports = [
@@ -15299,7 +15299,7 @@ class uw extends Nf {
15299
15299
  }
15300
15300
  updateMatrices(e, t = 0) {
15301
15301
  const i = this.camera, s = this.matrix, r = e.distance || i.far;
15302
- r !== i.far && (i.far = r, i.updateProjectionMatrix()), Co.setFromMatrixPosition(e.matrixWorld), i.position.copy(Co), Fu.copy(i.position), Fu.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Fu), i.updateMatrixWorld(), s.makeTranslation(-Co.x, -Co.y, -Co.z), hy.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(hy);
15302
+ r !== i.far && (i.far = r, i.updateProjectionMatrix()), Co.setFromMatrixPosition(e.matrixWorld), i.position.copy(Co), Bu.copy(i.position), Bu.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Bu), i.updateMatrixWorld(), s.makeTranslation(-Co.x, -Co.y, -Co.z), hy.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(hy);
15303
15303
  }
15304
15304
  }
15305
15305
  class dw extends Wf {
@@ -15321,7 +15321,7 @@ class dw extends Wf {
15321
15321
  }
15322
15322
  class pw extends Nf {
15323
15323
  constructor() {
15324
- super(new Fc(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
15324
+ super(new Bc(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
15325
15325
  }
15326
15326
  }
15327
15327
  class fw extends Wf {
@@ -15731,22 +15731,22 @@ class Iw {
15731
15731
  t.isPerspectiveCamera ? (this.ray.origin.setFromMatrixPosition(t.matrixWorld), this.ray.direction.set(e.x, e.y, 0.5).unproject(t).sub(this.ray.origin).normalize(), this.camera = t) : t.isOrthographicCamera ? (this.ray.origin.set(e.x, e.y, (t.near + t.far) / (t.near - t.far)).unproject(t), this.ray.direction.set(0, 0, -1).transformDirection(t.matrixWorld), this.camera = t) : console.error("THREE.Raycaster: Unsupported camera type: " + t.type);
15732
15732
  }
15733
15733
  intersectObject(e, t = !0, i = []) {
15734
- return up(e, this, i, t), i.sort(uy), i;
15734
+ return dp(e, this, i, t), i.sort(uy), i;
15735
15735
  }
15736
15736
  intersectObjects(e, t = !0, i = []) {
15737
15737
  for (let s = 0, r = e.length; s < r; s++)
15738
- up(e[s], this, i, t);
15738
+ dp(e[s], this, i, t);
15739
15739
  return i.sort(uy), i;
15740
15740
  }
15741
15741
  }
15742
15742
  function uy(n, e) {
15743
15743
  return n.distance - e.distance;
15744
15744
  }
15745
- function up(n, e, t, i) {
15745
+ function dp(n, e, t, i) {
15746
15746
  if (n.layers.test(e.layers) && n.raycast(e, t), i === !0) {
15747
15747
  const s = n.children;
15748
15748
  for (let r = 0, a = s.length; r < a; r++)
15749
- up(s[r], e, t, !0);
15749
+ dp(s[r], e, t, !0);
15750
15750
  }
15751
15751
  }
15752
15752
  class dy {
@@ -15982,7 +15982,7 @@ class uo {
15982
15982
  dispose() {
15983
15983
  }
15984
15984
  }
15985
- const _w = new Fc(-1, 1, 1, -1, 0, 1);
15985
+ const _w = new Bc(-1, 1, 1, -1, 0, 1);
15986
15986
  class Gw extends ai {
15987
15987
  constructor() {
15988
15988
  super(), this.setAttribute("position", new ji([-1, 3, 0, -1, -1, 0, 3, -1, 0], 3)), this.setAttribute("uv", new ji([0, 2, 0, 0, 2, 0], 2));
@@ -16063,7 +16063,7 @@ class ts extends uo {
16063
16063
  const o = 4, l = 4;
16064
16064
  this.separableBlurMaterial1 = this.getSeperableBlurMaterial(o), this.separableBlurMaterial1.uniforms.texSize.value.set(r, a), this.separableBlurMaterial1.uniforms.kernelRadius.value = 1, this.separableBlurMaterial2 = this.getSeperableBlurMaterial(l), this.separableBlurMaterial2.uniforms.texSize.value.set(Math.round(r / 2), Math.round(a / 2)), this.separableBlurMaterial2.uniforms.kernelRadius.value = l, this.overlayMaterial = this.getOverlayMaterial();
16065
16065
  const c = Ub;
16066
- this.copyUniforms = jc.clone(c.uniforms), this.materialCopy = new pi({
16066
+ this.copyUniforms = Fc.clone(c.uniforms), this.materialCopy = new pi({
16067
16067
  uniforms: this.copyUniforms,
16068
16068
  vertexShader: c.vertexShader,
16069
16069
  fragmentShader: c.fragmentShader,
@@ -16329,7 +16329,7 @@ class ts extends uo {
16329
16329
  finalColor += + visibilityFactor * (1.0 - maskColor.r) * (1.0 - patternColor.r);
16330
16330
  gl_FragColor = finalColor;
16331
16331
  }`,
16332
- blending: Qd,
16332
+ blending: $d,
16333
16333
  depthTest: !1,
16334
16334
  depthWrite: !1,
16335
16335
  transparent: !0
@@ -16340,7 +16340,7 @@ ts.BlurDirectionX = new ge(1, 0);
16340
16340
  ts.BlurDirectionY = new ge(0, 1);
16341
16341
  class Qb extends uo {
16342
16342
  constructor(e, t) {
16343
- super(), this.textureID = t !== void 0 ? t : "tDiffuse", e instanceof pi ? (this.uniforms = e.uniforms, this.material = e) : e && (this.uniforms = jc.clone(e.uniforms), this.material = new pi({
16343
+ super(), this.textureID = t !== void 0 ? t : "tDiffuse", e instanceof pi ? (this.uniforms = e.uniforms, this.material = e) : e && (this.uniforms = Fc.clone(e.uniforms), this.material = new pi({
16344
16344
  name: e.name !== void 0 ? e.name : "unspecified",
16345
16345
  defines: Object.assign({}, e.defines),
16346
16346
  uniforms: this.uniforms,
@@ -16627,7 +16627,7 @@ const Aw = {
16627
16627
  }
16628
16628
  `
16629
16629
  )
16630
- }, fy = { type: "change" }, Bu = { type: "start" }, my = { type: "end" }, ih = new oo(), gy = new Cn(), Rw = Math.cos(70 * Uo.DEG2RAD);
16630
+ }, fy = { type: "change" }, Ju = { type: "start" }, my = { type: "end" }, ih = new oo(), gy = new Cn(), Rw = Math.cos(70 * Uo.DEG2RAD);
16631
16631
  class Kw extends Gr {
16632
16632
  constructor(e, t) {
16633
16633
  super(), this.object = e, this.domElement = t, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new A(), this.cursor = new A(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: Kr.ROTATE, MIDDLE: Kr.DOLLY, RIGHT: Kr.PAN }, this.touches = { ONE: Or.ROTATE, TWO: Or.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
@@ -16893,7 +16893,7 @@ class Kw extends Gr {
16893
16893
  default:
16894
16894
  r = s.NONE;
16895
16895
  }
16896
- r !== s.NONE && i.dispatchEvent(Bu);
16896
+ r !== s.NONE && i.dispatchEvent(Ju);
16897
16897
  }
16898
16898
  function Zt(q) {
16899
16899
  switch (r) {
@@ -16915,7 +16915,7 @@ class Kw extends Gr {
16915
16915
  }
16916
16916
  }
16917
16917
  function R(q) {
16918
- i.enabled === !1 || i.enableZoom === !1 || r !== s.NONE || (q.preventDefault(), i.dispatchEvent(Bu), pe(q), i.dispatchEvent(my));
16918
+ i.enabled === !1 || i.enableZoom === !1 || r !== s.NONE || (q.preventDefault(), i.dispatchEvent(Ju), pe(q), i.dispatchEvent(my));
16919
16919
  }
16920
16920
  function _(q) {
16921
16921
  i.enabled === !1 || i.enablePan === !1 || me(q);
@@ -16957,7 +16957,7 @@ class Kw extends Gr {
16957
16957
  default:
16958
16958
  r = s.NONE;
16959
16959
  }
16960
- r !== s.NONE && i.dispatchEvent(Bu);
16960
+ r !== s.NONE && i.dispatchEvent(Ju);
16961
16961
  }
16962
16962
  function ae(q) {
16963
16963
  switch (ce(q), r) {
@@ -17088,7 +17088,7 @@ class qw extends uo {
17088
17088
  constructor() {
17089
17089
  super();
17090
17090
  const e = Ow;
17091
- this.uniforms = jc.clone(e.uniforms), this.material = new J2({
17091
+ this.uniforms = Fc.clone(e.uniforms), this.material = new J2({
17092
17092
  name: e.name,
17093
17093
  uniforms: this.uniforms,
17094
17094
  vertexShader: e.vertexShader,
@@ -17536,7 +17536,7 @@ class Zw {
17536
17536
  this._task || (this._task = Hw.call(this)), this._task.next();
17537
17537
  }
17538
17538
  }
17539
- const ex = 0, Yw = 1, Yf = 2, vy = 2, Ju = 1.25, by = 1, br = 6 * 4 + 4 + 4, Jc = 65535, Dw = Math.pow(2, -24), Vu = Symbol("SKIP_GENERATION");
17539
+ const ex = 0, Yw = 1, Yf = 2, vy = 2, Vu = 1.25, by = 1, br = 6 * 4 + 4 + 4, Vc = 65535, Dw = Math.pow(2, -24), Uu = Symbol("SKIP_GENERATION");
17540
17540
  function tx(n) {
17541
17541
  return n.index ? n.index.count : n.attributes.position.count;
17542
17542
  }
@@ -17621,7 +17621,7 @@ function To(n) {
17621
17621
  const e = n[3] - n[0], t = n[4] - n[1], i = n[5] - n[2];
17622
17622
  return 2 * (e * t + t * i + i * e);
17623
17623
  }
17624
- function Uu(n, e, t, i, s = null) {
17624
+ function Qu(n, e, t, i, s = null) {
17625
17625
  let r = 1 / 0, a = 1 / 0, o = 1 / 0, l = -1 / 0, c = -1 / 0, d = -1 / 0, h = 1 / 0, u = 1 / 0, p = 1 / 0, m = -1 / 0, y = -1 / 0, g = -1 / 0;
17626
17626
  const f = s !== null;
17627
17627
  for (let v = e * 6, b = (e + t) * 6; v < b; v += 6) {
@@ -17684,7 +17684,7 @@ function Qw(n, e, t, i, s, r) {
17684
17684
  a = xy(n), a !== -1 && (o = $w(t, i, s, a));
17685
17685
  else if (r === Yf) {
17686
17686
  const l = To(n);
17687
- let c = Ju * s;
17687
+ let c = Vu * s;
17688
17688
  const d = i * 6, h = (i + s) * 6;
17689
17689
  for (let u = 0; u < 3; u++) {
17690
17690
  const p = e[u], g = (e[u + 3] - p) / Jn;
@@ -17724,7 +17724,7 @@ function Qw(n, e, t, i, s, r) {
17724
17724
  C !== 0 && (M = To(I) / l);
17725
17725
  let K = 0;
17726
17726
  T !== 0 && (K = To(L) / l);
17727
- const P = by + Ju * (M * C + K * T);
17727
+ const P = by + Vu * (M * C + K * T);
17728
17728
  P < c && (a = u, c = P, o = S.candidate);
17729
17729
  }
17730
17730
  } else {
@@ -17755,7 +17755,7 @@ function Qw(n, e, t, i, s, r) {
17755
17755
  v !== 0 && (L = To(ah) / l);
17756
17756
  const K = s - v;
17757
17757
  K !== 0 && (M = To(I) / l);
17758
- const P = by + Ju * (L * v + M * K);
17758
+ const P = by + Vu * (L * v + M * K);
17759
17759
  P < c && (a = u, c = P, o = x.candidate);
17760
17760
  }
17761
17761
  }
@@ -17832,7 +17832,7 @@ function n_(n, e) {
17832
17832
  } else
17833
17833
  for (let x of f) {
17834
17834
  const S = new oh();
17835
- S.boundingData = new Float32Array(6), Uu(m, x.offset, x.count, S.boundingData, p), b(S, x.offset, x.count, p), g.push(S);
17835
+ S.boundingData = new Float32Array(6), Qu(m, x.offset, x.count, S.boundingData, p), b(S, x.offset, x.count, p), g.push(S);
17836
17836
  }
17837
17837
  return g;
17838
17838
  function v(x) {
@@ -17850,9 +17850,9 @@ function n_(n, e) {
17850
17850
  else {
17851
17851
  x.splitAxis = L.axis;
17852
17852
  const K = new oh(), P = S, G = M - S;
17853
- x.left = K, K.boundingData = new Float32Array(6), Uu(m, P, G, K.boundingData, p), b(K, P, G, p, I + 1);
17853
+ x.left = K, K.boundingData = new Float32Array(6), Qu(m, P, G, K.boundingData, p), b(K, P, G, p, I + 1);
17854
17854
  const w = new oh(), O = M, X = C - G;
17855
- x.right = w, w.boundingData = new Float32Array(6), Uu(m, O, X, w.boundingData, p), b(w, O, X, p, I + 1);
17855
+ x.right = w, w.boundingData = new Float32Array(6), Qu(m, O, X, w.boundingData, p), b(w, O, X, p, I + 1);
17856
17856
  }
17857
17857
  return x;
17858
17858
  }
@@ -17882,7 +17882,7 @@ function s_(n, e) {
17882
17882
  s[p + f] = g[f];
17883
17883
  if (y) {
17884
17884
  const f = u.offset, v = u.count;
17885
- return r[p + 6] = f, a[m + 14] = v, a[m + 15] = Jc, h + br;
17885
+ return r[p + 6] = f, a[m + 14] = v, a[m + 15] = Vc, h + br;
17886
17886
  } else {
17887
17887
  const f = u.left, v = u.right, b = u.splitAxis;
17888
17888
  let x;
@@ -17984,7 +17984,7 @@ const r_ = function() {
17984
17984
  return !1;
17985
17985
  };
17986
17986
  }(), o_ = 1e-15;
17987
- function Qu(n) {
17987
+ function $u(n) {
17988
17988
  return Math.abs(n) < o_;
17989
17989
  }
17990
17990
  class dn extends ui {
@@ -18025,13 +18025,13 @@ dn.prototype.intersectsTriangle = function() {
18025
18025
  for (let S = 0; S < 3; S++) {
18026
18026
  const { start: C, end: T } = d;
18027
18027
  C.copy(v[S]), T.copy(v[(S + 1) % 3]), d.delta(a);
18028
- const I = Qu(g.distanceToPoint(C));
18029
- if (Qu(g.normal.dot(a)) && I) {
18028
+ const I = $u(g.distanceToPoint(C));
18029
+ if ($u(g.normal.dot(a)) && I) {
18030
18030
  f.copy(d), b = 2;
18031
18031
  break;
18032
18032
  }
18033
18033
  const L = g.intersectLine(d, p);
18034
- if (!L && I && p.copy(C), (L || I) && !Qu(p.distanceTo(T))) {
18034
+ if (!L && I && p.copy(C), (L || I) && !$u(p.distanceTo(T))) {
18035
18035
  if (b <= 1)
18036
18036
  (b === 1 ? f.start : f.end).copy(p), I && (x = b);
18037
18037
  else if (b >= 2) {
@@ -18304,12 +18304,12 @@ let Es, wa;
18304
18304
  const ea = [], lh = /* @__PURE__ */ new jf(() => new Et());
18305
18305
  function c_(n, e, t, i, s, r) {
18306
18306
  Es = lh.getPrimitive(), wa = lh.getPrimitive(), ea.push(Es, wa), Ct.setBuffer(n._roots[e]);
18307
- const a = dp(0, n.geometry, t, i, s, r);
18307
+ const a = pp(0, n.geometry, t, i, s, r);
18308
18308
  Ct.clearBuffer(), lh.releasePrimitive(Es), lh.releasePrimitive(wa), ea.pop(), ea.pop();
18309
18309
  const o = ea.length;
18310
18310
  return o > 0 && (wa = ea[o - 1], Es = ea[o - 2]), a;
18311
18311
  }
18312
- function dp(n, e, t, i, s = null, r = 0, a = 0) {
18312
+ function pp(n, e, t, i, s = null, r = 0, a = 0) {
18313
18313
  const { float32Array: o, uint16Array: l, uint32Array: c } = Ct;
18314
18314
  let d = n * 2;
18315
18315
  if (Ci(d, l)) {
@@ -18343,7 +18343,7 @@ function dp(n, e, t, i, s = null, r = 0, a = 0) {
18343
18343
  const P = M(m), w = K(m) - P;
18344
18344
  C = i(P, w, !0, a + 1, r + m, v);
18345
18345
  } else
18346
- C = S && dp(
18346
+ C = S && pp(
18347
18347
  m,
18348
18348
  e,
18349
18349
  t,
@@ -18361,7 +18361,7 @@ function dp(n, e, t, i, s = null, r = 0, a = 0) {
18361
18361
  const P = M(y), w = K(y) - P;
18362
18362
  L = i(P, w, !0, a + 1, r + y, b);
18363
18363
  } else
18364
- L = I && dp(
18364
+ L = I && pp(
18365
18365
  y,
18366
18366
  e,
18367
18367
  t,
@@ -18373,7 +18373,7 @@ function dp(n, e, t, i, s = null, r = 0, a = 0) {
18373
18373
  return !!L;
18374
18374
  }
18375
18375
  }
18376
- const Mo = /* @__PURE__ */ new A(), $u = /* @__PURE__ */ new A();
18376
+ const Mo = /* @__PURE__ */ new A(), ed = /* @__PURE__ */ new A();
18377
18377
  function u_(n, e, t = {}, i = 0, s = 1 / 0) {
18378
18378
  const r = i * i, a = s * s;
18379
18379
  let o = 1 / 0, l = null;
@@ -18384,13 +18384,13 @@ function u_(n, e, t = {}, i = 0, s = 1 / 0) {
18384
18384
  intersectsTriangle: (d, h) => {
18385
18385
  d.closestPointToPoint(e, Mo);
18386
18386
  const u = e.distanceToSquared(Mo);
18387
- return u < o && ($u.copy(Mo), o = u, l = h), u < r;
18387
+ return u < o && (ed.copy(Mo), o = u, l = h), u < r;
18388
18388
  }
18389
18389
  }
18390
18390
  ), o === 1 / 0)
18391
18391
  return null;
18392
18392
  const c = Math.sqrt(o);
18393
- return t.point ? t.point.copy($u) : t.point = $u.clone(), t.distance = c, t.faceIndex = l, t;
18393
+ return t.point ? t.point.copy(ed) : t.point = ed.clone(), t.distance = c, t.faceIndex = l, t;
18394
18394
  }
18395
18395
  const ta = /* @__PURE__ */ new A(), ia = /* @__PURE__ */ new A(), na = /* @__PURE__ */ new A(), hh = /* @__PURE__ */ new ge(), ch = /* @__PURE__ */ new ge(), uh = /* @__PURE__ */ new ge(), Cy = /* @__PURE__ */ new A(), Ty = /* @__PURE__ */ new A(), My = /* @__PURE__ */ new A(), dh = /* @__PURE__ */ new A();
18396
18396
  function d_(n, e, t, i, s, r) {
@@ -18416,7 +18416,7 @@ function p_(n, e, t, i, s, r, a, o, l) {
18416
18416
  }
18417
18417
  return c;
18418
18418
  }
18419
- function Vc(n, e, t, i, s) {
18419
+ function Uc(n, e, t, i, s) {
18420
18420
  const r = i * 3;
18421
18421
  let a = r + 0, o = r + 1, l = r + 2;
18422
18422
  const c = n.index;
@@ -18432,14 +18432,14 @@ function kt(n, e, t, i) {
18432
18432
  function f_(n, e, t, i, s, r) {
18433
18433
  const { geometry: a, _indirectBuffer: o } = n;
18434
18434
  for (let l = i, c = i + s; l < c; l++)
18435
- Vc(a, e, t, l, r);
18435
+ Uc(a, e, t, l, r);
18436
18436
  }
18437
18437
  function m_(n, e, t, i, s) {
18438
18438
  const { geometry: r, _indirectBuffer: a } = n;
18439
18439
  let o = 1 / 0, l = null;
18440
18440
  for (let c = i, d = i + s; c < d; c++) {
18441
18441
  let h;
18442
- h = Vc(r, e, t, c), h && h.distance < o && (l = h, o = h.distance);
18442
+ h = Uc(r, e, t, c), h && h.distance < o && (l = h, o = h.distance);
18443
18443
  }
18444
18444
  return l;
18445
18445
  }
@@ -18461,7 +18461,7 @@ function y_(n, e = null) {
18461
18461
  r = d[u], a = new Uint32Array(r), o = new Uint16Array(r), l = new Float32Array(r), h(0, c), c += r.byteLength;
18462
18462
  function h(u, p, m = !1) {
18463
18463
  const y = u * 2;
18464
- if (o[y + 15] === Jc) {
18464
+ if (o[y + 15] === Vc) {
18465
18465
  const f = a[u + 6], v = o[y + 14];
18466
18466
  let b = 1 / 0, x = 1 / 0, S = 1 / 0, C = -1 / 0, T = -1 / 0, I = -1 / 0;
18467
18467
  for (let L = 3 * f, M = 3 * (f + v); L < M; L++) {
@@ -18497,7 +18497,7 @@ function v_(n, e, t, i, s, r) {
18497
18497
  const { geometry: a, _indirectBuffer: o } = n;
18498
18498
  for (let l = i, c = i + s; l < c; l++) {
18499
18499
  let d = o ? o[l] : l;
18500
- Vc(a, e, t, d, r);
18500
+ Uc(a, e, t, d, r);
18501
18501
  }
18502
18502
  }
18503
18503
  function b_(n, e, t, i, s) {
@@ -18505,7 +18505,7 @@ function b_(n, e, t, i, s) {
18505
18505
  let o = 1 / 0, l = null;
18506
18506
  for (let c = i, d = i + s; c < d; c++) {
18507
18507
  let h;
18508
- h = Vc(r, e, t, a ? a[c] : c), h && h.distance < o && (l = h, o = h.distance);
18508
+ h = Uc(r, e, t, a ? a[c] : c), h && h.distance < o && (l = h, o = h.distance);
18509
18509
  }
18510
18510
  return l;
18511
18511
  }
@@ -18520,27 +18520,27 @@ function x_(n, e, t, i, s, r, a) {
18520
18520
  }
18521
18521
  const wy = /* @__PURE__ */ new A();
18522
18522
  function S_(n, e, t, i, s) {
18523
- Ct.setBuffer(n._roots[e]), pp(0, n, t, i, s), Ct.clearBuffer();
18523
+ Ct.setBuffer(n._roots[e]), fp(0, n, t, i, s), Ct.clearBuffer();
18524
18524
  }
18525
- function pp(n, e, t, i, s) {
18525
+ function fp(n, e, t, i, s) {
18526
18526
  const { float32Array: r, uint16Array: a, uint32Array: o } = Ct, l = n * 2;
18527
18527
  if (Ci(l, a)) {
18528
18528
  const d = Ti(n, o), h = Ki(l, a);
18529
18529
  f_(e, t, i, d, h, s);
18530
18530
  } else {
18531
18531
  const d = Zi(n);
18532
- zs(d, r, i, wy) && pp(d, e, t, i, s);
18532
+ zs(d, r, i, wy) && fp(d, e, t, i, s);
18533
18533
  const h = Oi(n, o);
18534
- zs(h, r, i, wy) && pp(h, e, t, i, s);
18534
+ zs(h, r, i, wy) && fp(h, e, t, i, s);
18535
18535
  }
18536
18536
  }
18537
18537
  const _y = /* @__PURE__ */ new A(), L_ = ["x", "y", "z"];
18538
18538
  function C_(n, e, t, i) {
18539
18539
  Ct.setBuffer(n._roots[e]);
18540
- const s = fp(0, n, t, i);
18540
+ const s = mp(0, n, t, i);
18541
18541
  return Ct.clearBuffer(), s;
18542
18542
  }
18543
- function fp(n, e, t, i) {
18543
+ function mp(n, e, t, i) {
18544
18544
  const { float32Array: s, uint16Array: r, uint32Array: a } = Ct;
18545
18545
  let o = n * 2;
18546
18546
  if (Ci(o, r)) {
@@ -18550,7 +18550,7 @@ function fp(n, e, t, i) {
18550
18550
  const c = Ff(n, a), d = L_[c], u = i.direction[d] >= 0;
18551
18551
  let p, m;
18552
18552
  u ? (p = Zi(n), m = Oi(n, a)) : (p = Oi(n, a), m = Zi(n));
18553
- const g = zs(p, s, i, _y) ? fp(p, e, t, i) : null;
18553
+ const g = zs(p, s, i, _y) ? mp(p, e, t, i) : null;
18554
18554
  if (g) {
18555
18555
  const b = g.point[d];
18556
18556
  if (u ? b <= s[m + c] : (
@@ -18559,17 +18559,17 @@ function fp(n, e, t, i) {
18559
18559
  ))
18560
18560
  return g;
18561
18561
  }
18562
- const v = zs(m, s, i, _y) ? fp(m, e, t, i) : null;
18562
+ const v = zs(m, s, i, _y) ? mp(m, e, t, i) : null;
18563
18563
  return g && v ? g.distance <= v.distance ? g : v : g || v || null;
18564
18564
  }
18565
18565
  }
18566
18566
  const ph = /* @__PURE__ */ new Et(), sa = /* @__PURE__ */ new dn(), ra = /* @__PURE__ */ new dn(), Io = /* @__PURE__ */ new Oe(), Gy = /* @__PURE__ */ new Si(), fh = /* @__PURE__ */ new Si();
18567
18567
  function T_(n, e, t, i) {
18568
18568
  Ct.setBuffer(n._roots[e]);
18569
- const s = mp(0, n, t, i);
18569
+ const s = gp(0, n, t, i);
18570
18570
  return Ct.clearBuffer(), s;
18571
18571
  }
18572
- function mp(n, e, t, i, s = null) {
18572
+ function gp(n, e, t, i, s = null) {
18573
18573
  const { float32Array: r, uint16Array: a, uint32Array: o } = Ct;
18574
18574
  let l = n * 2;
18575
18575
  if (s === null && (t.boundingBox || t.computeBoundingBox(), Gy.set(t.boundingBox.min, t.boundingBox.max, i), s = Gy), Ci(l, a)) {
@@ -18593,19 +18593,19 @@ function mp(n, e, t, i, s = null) {
18593
18593
  }
18594
18594
  } else {
18595
18595
  const d = n + 8, h = o[n + 6];
18596
- return Gt(d, r, ph), !!(s.intersectsBox(ph) && mp(d, e, t, i, s) || (Gt(h, r, ph), s.intersectsBox(ph) && mp(h, e, t, i, s)));
18596
+ return Gt(d, r, ph), !!(s.intersectsBox(ph) && gp(d, e, t, i, s) || (Gt(h, r, ph), s.intersectsBox(ph) && gp(h, e, t, i, s)));
18597
18597
  }
18598
18598
  }
18599
- const mh = /* @__PURE__ */ new Oe(), ed = /* @__PURE__ */ new Si(), wo = /* @__PURE__ */ new Si(), M_ = /* @__PURE__ */ new A(), I_ = /* @__PURE__ */ new A(), w_ = /* @__PURE__ */ new A(), __ = /* @__PURE__ */ new A();
18599
+ const mh = /* @__PURE__ */ new Oe(), td = /* @__PURE__ */ new Si(), wo = /* @__PURE__ */ new Si(), M_ = /* @__PURE__ */ new A(), I_ = /* @__PURE__ */ new A(), w_ = /* @__PURE__ */ new A(), __ = /* @__PURE__ */ new A();
18600
18600
  function G_(n, e, t, i = {}, s = {}, r = 0, a = 1 / 0) {
18601
- e.boundingBox || e.computeBoundingBox(), ed.set(e.boundingBox.min, e.boundingBox.max, t), ed.needsUpdate = !0;
18601
+ e.boundingBox || e.computeBoundingBox(), td.set(e.boundingBox.min, e.boundingBox.max, t), td.needsUpdate = !0;
18602
18602
  const o = n.geometry, l = o.attributes.position, c = o.index, d = e.attributes.position, h = e.index, u = Hi.getPrimitive(), p = Hi.getPrimitive();
18603
18603
  let m = M_, y = I_, g = null, f = null;
18604
18604
  s && (g = w_, f = __);
18605
18605
  let v = 1 / 0, b = null, x = null;
18606
18606
  return mh.copy(t).invert(), wo.matrix.copy(mh), n.shapecast(
18607
18607
  {
18608
- boundsTraverseOrder: (S) => ed.distanceToBox(S),
18608
+ boundsTraverseOrder: (S) => td.distanceToBox(S),
18609
18609
  intersectsBounds: (S, C, T) => T < v && T < a ? (C && (wo.min.copy(S.min), wo.max.copy(S.max), wo.needsUpdate = !0), !0) : !1,
18610
18610
  intersectsRange: (S, C) => {
18611
18611
  if (e.boundsTree)
@@ -18649,7 +18649,7 @@ function P_(n, e = null) {
18649
18649
  r = d[u], a = new Uint32Array(r), o = new Uint16Array(r), l = new Float32Array(r), h(0, c), c += r.byteLength;
18650
18650
  function h(u, p, m = !1) {
18651
18651
  const y = u * 2;
18652
- if (o[y + 15] === Jc) {
18652
+ if (o[y + 15] === Vc) {
18653
18653
  const f = a[u + 6], v = o[y + 14];
18654
18654
  let b = 1 / 0, x = 1 / 0, S = 1 / 0, C = -1 / 0, T = -1 / 0, I = -1 / 0;
18655
18655
  for (let L = f, M = f + v; L < M; L++) {
@@ -18683,27 +18683,27 @@ function P_(n, e = null) {
18683
18683
  }
18684
18684
  const Py = /* @__PURE__ */ new A();
18685
18685
  function E_(n, e, t, i, s) {
18686
- Ct.setBuffer(n._roots[e]), gp(0, n, t, i, s), Ct.clearBuffer();
18686
+ Ct.setBuffer(n._roots[e]), yp(0, n, t, i, s), Ct.clearBuffer();
18687
18687
  }
18688
- function gp(n, e, t, i, s) {
18688
+ function yp(n, e, t, i, s) {
18689
18689
  const { float32Array: r, uint16Array: a, uint32Array: o } = Ct, l = n * 2;
18690
18690
  if (Ci(l, a)) {
18691
18691
  const d = Ti(n, o), h = Ki(l, a);
18692
18692
  v_(e, t, i, d, h, s);
18693
18693
  } else {
18694
18694
  const d = Zi(n);
18695
- zs(d, r, i, Py) && gp(d, e, t, i, s);
18695
+ zs(d, r, i, Py) && yp(d, e, t, i, s);
18696
18696
  const h = Oi(n, o);
18697
- zs(h, r, i, Py) && gp(h, e, t, i, s);
18697
+ zs(h, r, i, Py) && yp(h, e, t, i, s);
18698
18698
  }
18699
18699
  }
18700
18700
  const Ey = /* @__PURE__ */ new A(), A_ = ["x", "y", "z"];
18701
18701
  function R_(n, e, t, i) {
18702
18702
  Ct.setBuffer(n._roots[e]);
18703
- const s = yp(0, n, t, i);
18703
+ const s = vp(0, n, t, i);
18704
18704
  return Ct.clearBuffer(), s;
18705
18705
  }
18706
- function yp(n, e, t, i) {
18706
+ function vp(n, e, t, i) {
18707
18707
  const { float32Array: s, uint16Array: r, uint32Array: a } = Ct;
18708
18708
  let o = n * 2;
18709
18709
  if (Ci(o, r)) {
@@ -18713,7 +18713,7 @@ function yp(n, e, t, i) {
18713
18713
  const c = Ff(n, a), d = A_[c], u = i.direction[d] >= 0;
18714
18714
  let p, m;
18715
18715
  u ? (p = Zi(n), m = Oi(n, a)) : (p = Oi(n, a), m = Zi(n));
18716
- const g = zs(p, s, i, Ey) ? yp(p, e, t, i) : null;
18716
+ const g = zs(p, s, i, Ey) ? vp(p, e, t, i) : null;
18717
18717
  if (g) {
18718
18718
  const b = g.point[d];
18719
18719
  if (u ? b <= s[m + c] : (
@@ -18722,17 +18722,17 @@ function yp(n, e, t, i) {
18722
18722
  ))
18723
18723
  return g;
18724
18724
  }
18725
- const v = zs(m, s, i, Ey) ? yp(m, e, t, i) : null;
18725
+ const v = zs(m, s, i, Ey) ? vp(m, e, t, i) : null;
18726
18726
  return g && v ? g.distance <= v.distance ? g : v : g || v || null;
18727
18727
  }
18728
18728
  }
18729
18729
  const gh = /* @__PURE__ */ new Et(), aa = /* @__PURE__ */ new dn(), oa = /* @__PURE__ */ new dn(), _o = /* @__PURE__ */ new Oe(), Ay = /* @__PURE__ */ new Si(), yh = /* @__PURE__ */ new Si();
18730
18730
  function K_(n, e, t, i) {
18731
18731
  Ct.setBuffer(n._roots[e]);
18732
- const s = vp(0, n, t, i);
18732
+ const s = bp(0, n, t, i);
18733
18733
  return Ct.clearBuffer(), s;
18734
18734
  }
18735
- function vp(n, e, t, i, s = null) {
18735
+ function bp(n, e, t, i, s = null) {
18736
18736
  const { float32Array: r, uint16Array: a, uint32Array: o } = Ct;
18737
18737
  let l = n * 2;
18738
18738
  if (s === null && (t.boundingBox || t.computeBoundingBox(), Ay.set(t.boundingBox.min, t.boundingBox.max, i), s = Ay), Ci(l, a)) {
@@ -18757,19 +18757,19 @@ function vp(n, e, t, i, s = null) {
18757
18757
  }
18758
18758
  } else {
18759
18759
  const d = n + 8, h = o[n + 6];
18760
- return Gt(d, r, gh), !!(s.intersectsBox(gh) && vp(d, e, t, i, s) || (Gt(h, r, gh), s.intersectsBox(gh) && vp(h, e, t, i, s)));
18760
+ return Gt(d, r, gh), !!(s.intersectsBox(gh) && bp(d, e, t, i, s) || (Gt(h, r, gh), s.intersectsBox(gh) && bp(h, e, t, i, s)));
18761
18761
  }
18762
18762
  }
18763
- const vh = /* @__PURE__ */ new Oe(), td = /* @__PURE__ */ new Si(), Go = /* @__PURE__ */ new Si(), O_ = /* @__PURE__ */ new A(), q_ = /* @__PURE__ */ new A(), X_ = /* @__PURE__ */ new A(), z_ = /* @__PURE__ */ new A();
18763
+ const vh = /* @__PURE__ */ new Oe(), id = /* @__PURE__ */ new Si(), Go = /* @__PURE__ */ new Si(), O_ = /* @__PURE__ */ new A(), q_ = /* @__PURE__ */ new A(), X_ = /* @__PURE__ */ new A(), z_ = /* @__PURE__ */ new A();
18764
18764
  function W_(n, e, t, i = {}, s = {}, r = 0, a = 1 / 0) {
18765
- e.boundingBox || e.computeBoundingBox(), td.set(e.boundingBox.min, e.boundingBox.max, t), td.needsUpdate = !0;
18765
+ e.boundingBox || e.computeBoundingBox(), id.set(e.boundingBox.min, e.boundingBox.max, t), id.needsUpdate = !0;
18766
18766
  const o = n.geometry, l = o.attributes.position, c = o.index, d = e.attributes.position, h = e.index, u = Hi.getPrimitive(), p = Hi.getPrimitive();
18767
18767
  let m = O_, y = q_, g = null, f = null;
18768
18768
  s && (g = X_, f = z_);
18769
18769
  let v = 1 / 0, b = null, x = null;
18770
18770
  return vh.copy(t).invert(), Go.matrix.copy(vh), n.shapecast(
18771
18771
  {
18772
- boundsTraverseOrder: (S) => td.distanceToBox(S),
18772
+ boundsTraverseOrder: (S) => id.distanceToBox(S),
18773
18773
  intersectsBounds: (S, C, T) => T < v && T < a ? (C && (Go.min.copy(S.min), Go.max.copy(S.max), Go.needsUpdate = !0), !0) : !1,
18774
18774
  intersectsRange: (S, C) => {
18775
18775
  if (e.boundsTree) {
@@ -18811,12 +18811,12 @@ function W_(n, e, t, i = {}, s = {}, r = 0, a = 1 / 0) {
18811
18811
  function N_() {
18812
18812
  return typeof SharedArrayBuffer < "u";
18813
18813
  }
18814
- const el = new Ct.constructor(), gc = new Ct.constructor(), Ms = new jf(() => new Et()), la = new Et(), ha = new Et(), id = new Et(), nd = new Et();
18815
- let sd = !1;
18814
+ const el = new Ct.constructor(), gc = new Ct.constructor(), Ms = new jf(() => new Et()), la = new Et(), ha = new Et(), nd = new Et(), sd = new Et();
18815
+ let rd = !1;
18816
18816
  function k_(n, e, t, i) {
18817
- if (sd)
18817
+ if (rd)
18818
18818
  throw new Error("MeshBVH: Recursive calls to bvhcast not supported.");
18819
- sd = !0;
18819
+ rd = !0;
18820
18820
  const s = n._roots, r = e._roots;
18821
18821
  let a, o = 0, l = 0;
18822
18822
  const c = new Oe().copy(t).invert();
@@ -18840,7 +18840,7 @@ function k_(n, e, t, i) {
18840
18840
  if (Ms.releasePrimitive(u), el.clearBuffer(), o += s[d].length, a)
18841
18841
  break;
18842
18842
  }
18843
- return sd = !1, a;
18843
+ return rd = !1, a;
18844
18844
  }
18845
18845
  function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
18846
18846
  let h, u;
@@ -18900,8 +18900,8 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
18900
18900
  ), Ms.releasePrimitive(I);
18901
18901
  } else {
18902
18902
  const I = Zi(e), L = Oi(e, f);
18903
- Gt(I, g, id), Gt(L, g, nd);
18904
- const M = c.intersectsBox(id), K = c.intersectsBox(nd);
18903
+ Gt(I, g, nd), Gt(L, g, sd);
18904
+ const M = c.intersectsBox(nd), K = c.intersectsBox(sd);
18905
18905
  if (M && K)
18906
18906
  T = nn(
18907
18907
  n,
@@ -18945,7 +18945,7 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
18945
18945
  );
18946
18946
  else {
18947
18947
  const P = Ms.getPrimitive();
18948
- P.copy(id).applyMatrix4(t);
18948
+ P.copy(nd).applyMatrix4(t);
18949
18949
  const G = Zi(n), w = Oi(n, m);
18950
18950
  Gt(G, p, la), Gt(w, p, ha);
18951
18951
  const O = P.intersectsBox(la), X = P.intersectsBox(ha);
@@ -18992,7 +18992,7 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
18992
18992
  );
18993
18993
  else {
18994
18994
  const P = Ms.getPrimitive();
18995
- P.copy(nd).applyMatrix4(t);
18995
+ P.copy(sd).applyMatrix4(t);
18996
18996
  const G = Zi(n), w = Oi(n, m);
18997
18997
  Gt(G, p, la), Gt(w, p, ha);
18998
18998
  const O = P.intersectsBox(la), X = P.intersectsBox(ha);
@@ -19026,7 +19026,7 @@ function nn(n, e, t, i, s, r = 0, a = 0, o = 0, l = 0, c = null, d = !1) {
19026
19026
  return T;
19027
19027
  }
19028
19028
  const bh = /* @__PURE__ */ new Si(), Ry = /* @__PURE__ */ new Et();
19029
- class Uc {
19029
+ class Qc {
19030
19030
  static serialize(e, t = {}) {
19031
19031
  t = {
19032
19032
  cloneBuffers: !0,
@@ -19050,7 +19050,7 @@ class Uc {
19050
19050
  indirect: !!e.indirectBuffer,
19051
19051
  ...i
19052
19052
  };
19053
- const { index: s, roots: r, indirectBuffer: a } = e, o = new Uc(t, { ...i, [Vu]: !0 });
19053
+ const { index: s, roots: r, indirectBuffer: a } = e, o = new Qc(t, { ...i, [Uu]: !0 });
19054
19054
  if (o._roots = r, o._indirectBuffer = a || null, i.setIndex) {
19055
19055
  const l = t.getIndex();
19056
19056
  if (l === null) {
@@ -19081,10 +19081,10 @@ class Uc {
19081
19081
  indirect: !1,
19082
19082
  // undocumented options
19083
19083
  // Whether to skip generating the tree. Used for deserialization.
19084
- [Vu]: !1
19084
+ [Uu]: !1
19085
19085
  }, t), t.useSharedArrayBuffer && !N_())
19086
19086
  throw new Error("MeshBVH: SharedArrayBuffer is not available.");
19087
- this.geometry = e, this._roots = null, this._indirectBuffer = null, t[Vu] || (s_(this, t), !e.boundingBox && t.setBoundingBox && (e.boundingBox = this.getBoundingBox(new Et())));
19087
+ this.geometry = e, this._roots = null, this._indirectBuffer = null, t[Uu] || (s_(this, t), !e.boundingBox && t.setBoundingBox && (e.boundingBox = this.getBoundingBox(new Et())));
19088
19088
  const { _indirectBuffer: i } = this;
19089
19089
  this.resolveTriangleIndex = t.indirect ? (s) => i[s] : (s) => s;
19090
19090
  }
@@ -19095,7 +19095,7 @@ class Uc {
19095
19095
  const i = this._roots[t], s = new Uint32Array(i), r = new Uint16Array(i);
19096
19096
  a(0);
19097
19097
  function a(o, l = 0) {
19098
- const c = o * 2, d = r[c + 15] === Jc;
19098
+ const c = o * 2, d = r[c + 15] === Vc;
19099
19099
  if (d) {
19100
19100
  const h = s[o + 6], u = r[c + 14];
19101
19101
  e(l, d, new Float32Array(i, o * 4, 6), h, u);
@@ -19267,7 +19267,7 @@ function Ky(n) {
19267
19267
  case 1:
19268
19268
  return wf;
19269
19269
  case 2:
19270
- return Hc;
19270
+ return Zc;
19271
19271
  case 3:
19272
19272
  return cl;
19273
19273
  case 4:
@@ -19306,13 +19306,13 @@ class rx extends Fi {
19306
19306
  let u, p, m, y, g = H_(r);
19307
19307
  switch (d) {
19308
19308
  case Mt:
19309
- m = 1, p = Z_(r), o && c === 1 ? (y = l, g += "8", l === Uint8Array ? u = on : (u = np, g += "_SNORM")) : (y = Float32Array, g += "32F", u = Mt);
19309
+ m = 1, p = Z_(r), o && c === 1 ? (y = l, g += "8", l === Uint8Array ? u = on : (u = sp, g += "_SNORM")) : (y = Float32Array, g += "32F", u = Mt);
19310
19310
  break;
19311
19311
  case Bo:
19312
- g += c * 8 + "I", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Int8Array, u = np) : c === 2 ? (y = Int16Array, u = gb) : (y = Int32Array, u = Bo);
19312
+ g += c * 8 + "I", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Int8Array, u = sp) : c === 2 ? (y = Int16Array, u = gb) : (y = Int32Array, u = Bo);
19313
19313
  break;
19314
19314
  case Ri:
19315
- g += c * 8 + "UI", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Uint8Array, u = on) : c === 2 ? (y = Uint16Array, u = kc) : (y = Uint32Array, u = Ri);
19315
+ g += c * 8 + "UI", m = o ? Math.pow(2, l.BYTES_PER_ELEMENT * 8 - 1) : 1, p = Ky(r), c === 1 ? (y = Uint8Array, u = on) : c === 2 ? (y = Uint16Array, u = Hc) : (y = Uint32Array, u = Ri);
19316
19316
  break;
19317
19317
  }
19318
19318
  h === 3 && (p === St || p === cl) && (h = 4);
@@ -19384,9 +19384,9 @@ function j_(n, e, t) {
19384
19384
  u[p * 2 + 0] = v, u[p * 2 + 1] = f;
19385
19385
  }
19386
19386
  }
19387
- e.image.data = d, e.image.width = c, e.image.height = c, e.format = St, e.type = Mt, e.internalFormat = "RGBA32F", e.minFilter = pt, e.magFilter = pt, e.generateMipmaps = !1, e.needsUpdate = !0, e.dispose(), t.image.data = u, t.image.width = h, t.image.height = h, t.format = Hc, t.type = Ri, t.internalFormat = "RG32UI", t.minFilter = pt, t.magFilter = pt, t.generateMipmaps = !1, t.needsUpdate = !0, t.dispose();
19387
+ e.image.data = d, e.image.width = c, e.image.height = c, e.format = St, e.type = Mt, e.internalFormat = "RGBA32F", e.minFilter = pt, e.magFilter = pt, e.generateMipmaps = !1, e.needsUpdate = !0, e.dispose(), t.image.data = u, t.image.width = h, t.image.height = h, t.format = Zc, t.type = Ri, t.internalFormat = "RG32UI", t.minFilter = pt, t.magFilter = pt, t.generateMipmaps = !1, t.needsUpdate = !0, t.dispose();
19388
19388
  }
19389
- const Js = /* @__PURE__ */ new A(), Vs = /* @__PURE__ */ new A(), Us = /* @__PURE__ */ new A(), Oy = /* @__PURE__ */ new ht(), xh = /* @__PURE__ */ new A(), rd = /* @__PURE__ */ new A(), qy = /* @__PURE__ */ new ht(), Xy = /* @__PURE__ */ new ht(), Sh = /* @__PURE__ */ new Oe(), zy = /* @__PURE__ */ new Oe();
19389
+ const Js = /* @__PURE__ */ new A(), Vs = /* @__PURE__ */ new A(), Us = /* @__PURE__ */ new A(), Oy = /* @__PURE__ */ new ht(), xh = /* @__PURE__ */ new A(), ad = /* @__PURE__ */ new A(), qy = /* @__PURE__ */ new ht(), Xy = /* @__PURE__ */ new ht(), Sh = /* @__PURE__ */ new Oe(), zy = /* @__PURE__ */ new Oe();
19390
19390
  function Po(n, e) {
19391
19391
  if (!n && !e)
19392
19392
  return;
@@ -19427,11 +19427,11 @@ function Wy(n, e, t) {
19427
19427
  }
19428
19428
  return Sh.multiply(n.bindMatrix).premultiply(n.bindMatrixInverse), t.transformDirection(Sh), t;
19429
19429
  }
19430
- function ad(n, e, t, i, s) {
19430
+ function od(n, e, t, i, s) {
19431
19431
  xh.set(0, 0, 0);
19432
19432
  for (let r = 0, a = n.length; r < a; r++) {
19433
19433
  const o = e[r], l = n[r];
19434
- o !== 0 && (rd.fromBufferAttribute(l, i), t ? xh.addScaledVector(rd, o) : xh.addScaledVector(rd.sub(s), o));
19434
+ o !== 0 && (ad.fromBufferAttribute(l, i), t ? xh.addScaledVector(ad, o) : xh.addScaledVector(ad.sub(s), o));
19435
19435
  }
19436
19436
  s.add(xh);
19437
19437
  }
@@ -19561,7 +19561,7 @@ class U_ {
19561
19561
  const c = o.position, d = r ? o.normal : null, h = a ? o.tangent : null, u = i.morphAttributes.position, p = i.morphAttributes.normal, m = i.morphAttributes.tangent, y = i.morphTargetsRelative, g = e.morphTargetInfluences, f = new et();
19562
19562
  f.getNormalMatrix(e.matrixWorld);
19563
19563
  for (let v = 0, b = o.position.count; v < b; v++)
19564
- Js.fromBufferAttribute(c, v), d && Vs.fromBufferAttribute(d, v), h && (Oy.fromBufferAttribute(h, v), Us.fromBufferAttribute(h, v)), g && (u && ad(u, g, y, v, Js), p && ad(p, g, y, v, Vs), m && ad(m, g, y, v, Us)), e.isSkinnedMesh && (e.applyBoneTransform(v, Js), d && Wy(e, v, Vs), h && Wy(e, v, Us)), s && Js.applyMatrix4(e.matrixWorld), l.position.setXYZ(v, Js.x, Js.y, Js.z), d && (s && Vs.applyNormalMatrix(f), l.normal.setXYZ(v, Vs.x, Vs.y, Vs.z)), h && (s && Us.transformDirection(e.matrixWorld), l.tangent.setXYZW(v, Us.x, Us.y, Us.z, Oy.w));
19564
+ Js.fromBufferAttribute(c, v), d && Vs.fromBufferAttribute(d, v), h && (Oy.fromBufferAttribute(h, v), Us.fromBufferAttribute(h, v)), g && (u && od(u, g, y, v, Js), p && od(p, g, y, v, Vs), m && od(m, g, y, v, Us)), e.isSkinnedMesh && (e.applyBoneTransform(v, Js), d && Wy(e, v, Vs), h && Wy(e, v, Us)), s && Js.applyMatrix4(e.matrixWorld), l.position.setXYZ(v, Js.x, Js.y, Js.z), d && (s && Vs.applyNormalMatrix(f), l.normal.setXYZ(v, Vs.x, Vs.y, Vs.z)), h && (s && Us.transformDirection(e.matrixWorld), l.tangent.setXYZW(v, Us.x, Us.y, Us.z, Oy.w));
19565
19565
  for (const v in this.attributes) {
19566
19566
  const b = this.attributes[v];
19567
19567
  b === "position" || b === "tangent" || b === "normal" || !(b in o) || (l[b] || t.setAttribute(b, No(o[b])), Po(o[b], l[b]), lx(o[b], l[b]));
@@ -20030,7 +20030,7 @@ function iG(n, e = 1e-4) {
20030
20030
  function ky(n, e) {
20031
20031
  if (e === h1)
20032
20032
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), n;
20033
- if (e === sp || e === Sb) {
20033
+ if (e === rp || e === Sb) {
20034
20034
  let t = n.getIndex();
20035
20035
  if (t === null) {
20036
20036
  const a = [], o = n.getAttribute("position");
@@ -20042,7 +20042,7 @@ function ky(n, e) {
20042
20042
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."), n;
20043
20043
  }
20044
20044
  const i = t.count - 2, s = [];
20045
- if (e === sp)
20045
+ if (e === rp)
20046
20046
  for (let a = 1; a <= i; a++)
20047
20047
  s.push(t.getX(0)), s.push(t.getX(a)), s.push(t.getX(a + 1));
20048
20048
  else
@@ -20160,7 +20160,7 @@ class oG {
20160
20160
  materials: i,
20161
20161
  textures: s,
20162
20162
  lights: a,
20163
- bvh: new Uc(r, o)
20163
+ bvh: new Qc(r, o)
20164
20164
  };
20165
20165
  }
20166
20166
  }
@@ -20178,13 +20178,13 @@ class lG extends di {
20178
20178
  return super.copy(e, t), this.fStop = e.fStop, this.apertureBlades = e.apertureBlades, this.apertureRotation = e.apertureRotation, this.focusDistance = e.focusDistance, this.anamorphicRatio = e.anamorphicRatio, this;
20179
20179
  }
20180
20180
  }
20181
- function bp(n) {
20181
+ function xp(n) {
20182
20182
  return `${n.source.uuid}:${n.encoding}`;
20183
20183
  }
20184
20184
  function hx(n) {
20185
20185
  const e = /* @__PURE__ */ new Set(), t = [];
20186
20186
  for (let i = 0, s = n.length; i < s; i++) {
20187
- const r = n[i], a = bp(r);
20187
+ const r = n[i], a = xp(r);
20188
20188
  e.has(a) || (e.add(a), t.push(r));
20189
20189
  }
20190
20190
  return t;
@@ -20227,7 +20227,7 @@ class cG extends Fi {
20227
20227
  updateFrom(e, t) {
20228
20228
  function i(g, f, v = -1) {
20229
20229
  if (f in g && g[f]) {
20230
- const b = bp(g[f]);
20230
+ const b = xp(g[f]);
20231
20231
  return m[b];
20232
20232
  } else
20233
20233
  return v;
@@ -20250,7 +20250,7 @@ class cG extends Fi {
20250
20250
  let o = 0;
20251
20251
  const l = e.length * cx, c = Math.ceil(Math.sqrt(l)), { threeCompatibilityTransforms: d, image: h, features: u } = this, p = hx(t), m = {};
20252
20252
  for (let g = 0, f = p.length; g < f; g++)
20253
- m[bp(p[g])] = g;
20253
+ m[xp(p[g])] = g;
20254
20254
  h.width !== c && (this.dispose(), h.data = new Float32Array(c * c * 4), h.width = c, h.height = c);
20255
20255
  const y = h.data;
20256
20256
  u.reset();
@@ -20701,7 +20701,7 @@ function Jy(n, e, t, i, s) {
20701
20701
  t[s + c + h] = e >= h + 1 ? n[d + h] / o : 0;
20702
20702
  }
20703
20703
  }
20704
- class MG extends Yc {
20704
+ class MG extends Dc {
20705
20705
  constructor() {
20706
20706
  super(), this._textures = [], this.type = Mt, this.format = St, this.internalFormat = "RGBA32F";
20707
20707
  }
@@ -24372,11 +24372,11 @@ var Aa = Object.freeze({
24372
24372
  return n._nextId++;
24373
24373
  }, n._nextId = 0, n;
24374
24374
  }()
24375
- ), xp = new ux(), dx = (
24375
+ ), Sp = new ux(), dx = (
24376
24376
  /** @class */
24377
24377
  function() {
24378
24378
  function n(e, t) {
24379
- t === void 0 && (t = xp), this._object = e, this._group = t, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Aa.Linear.None, this._interpolationFunction = pr.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = Bf.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
24379
+ t === void 0 && (t = Sp), this._object = e, this._group = t, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = Aa.Linear.None, this._interpolationFunction = pr.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = Bf.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
24380
24380
  }
24381
24381
  return n.prototype.getId = function() {
24382
24382
  return this._id;
@@ -24461,7 +24461,7 @@ var Aa = Object.freeze({
24461
24461
  this._chainedTweens[e].stop();
24462
24462
  return this;
24463
24463
  }, n.prototype.group = function(e) {
24464
- return e === void 0 && (e = xp), this._group = e, this;
24464
+ return e === void 0 && (e = Sp), this._group = e, this;
24465
24465
  }, n.prototype.delay = function(e) {
24466
24466
  return e === void 0 && (e = 0), this._delayTime = e, this;
24467
24467
  }, n.prototype.repeat = function(e) {
@@ -24531,7 +24531,7 @@ var Aa = Object.freeze({
24531
24531
  typeof i == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(i) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = t;
24532
24532
  }, n;
24533
24533
  }()
24534
- ), iP = "21.1.1", nP = Bf.nextId, On = xp, sP = On.getAll.bind(On), rP = On.removeAll.bind(On), aP = On.add.bind(On), oP = On.remove.bind(On), lP = On.update.bind(On), t0 = {
24534
+ ), iP = "21.1.1", nP = Bf.nextId, On = Sp, sP = On.getAll.bind(On), rP = On.removeAll.bind(On), aP = On.add.bind(On), oP = On.remove.bind(On), lP = On.update.bind(On), t0 = {
24535
24535
  Easing: Aa,
24536
24536
  Group: ux,
24537
24537
  Interpolation: pr,
@@ -24784,7 +24784,7 @@ class pP {
24784
24784
  if (d.error)
24785
24785
  r(new Error(d.error)), i.onmessage = null;
24786
24786
  else if (d.serialized) {
24787
- const { serialized: h, position: u } = d, p = Uc.deserialize(h, e, { setIndex: !1 }), m = Object.assign({
24787
+ const { serialized: h, position: u } = d, p = Qc.deserialize(h, e, { setIndex: !1 }), m = Object.assign({
24788
24788
  setBoundingBox: !0
24789
24789
  }, t);
24790
24790
  if (e.setAttribute("position", new ji(u, 3)), e.index)
@@ -26066,15 +26066,17 @@ let vP = class {
26066
26066
  this.sound.play();
26067
26067
  }
26068
26068
  };
26069
- const Sp = (n) => {
26069
+ const yc = (n) => {
26070
26070
  var e;
26071
26071
  for (; n.children.length > 0; )
26072
- Sp(n.children[0]), n.children[0].removeFromParent();
26072
+ yc(n.children[0]), n.children[0].removeFromParent();
26073
26073
  if (n instanceof ni)
26074
26074
  try {
26075
26075
  (e = n.geometry) == null || e.dispose();
26076
26076
  } catch {
26077
26077
  }
26078
+ else
26079
+ n.dispose && n.dispose();
26078
26080
  };
26079
26081
  class bP extends ps {
26080
26082
  constructor(e) {
@@ -26627,7 +26629,7 @@ class XP {
26627
26629
  for (const x in l)
26628
26630
  if (x === "_COLOR_0") {
26629
26631
  const S = l[x];
26630
- b.instanceColor = new hp(S.array, S.itemSize, S.normalized);
26632
+ b.instanceColor = new cp(S.array, S.itemSize, S.normalized);
26631
26633
  } else
26632
26634
  x !== "TRANSLATION" && x !== "ROTATION" && x !== "SCALE" && m.geometry.setAttribute(x, l[x]);
26633
26635
  It.prototype.copy.call(b, m), this.parser.assignFinalMaterial(b), p.push(b);
@@ -26769,7 +26771,7 @@ const zi = {
26769
26771
  }, r0 = {
26770
26772
  9728: pt,
26771
26773
  9729: lt,
26772
- 9984: ip,
26774
+ 9984: np,
26773
26775
  9985: mb,
26774
26776
  9986: Fh,
26775
26777
  9987: Xs
@@ -26777,7 +26779,7 @@ const zi = {
26777
26779
  33071: Nt,
26778
26780
  33648: cc,
26779
26781
  10497: ki
26780
- }, od = {
26782
+ }, ld = {
26781
26783
  SCALAR: 1,
26782
26784
  VEC2: 2,
26783
26785
  VEC3: 3,
@@ -26807,7 +26809,7 @@ const zi = {
26807
26809
  // keyframe track will be initialized with a default interpolation type, then modified.
26808
26810
  LINEAR: Fa,
26809
26811
  STEP: ul
26810
- }, ld = {
26812
+ }, hd = {
26811
26813
  OPAQUE: "OPAQUE",
26812
26814
  MASK: "MASK",
26813
26815
  BLEND: "BLEND"
@@ -26881,12 +26883,12 @@ function FP(n, e) {
26881
26883
  function BP(n) {
26882
26884
  let e;
26883
26885
  const t = n.extensions && n.extensions[ot.KHR_DRACO_MESH_COMPRESSION];
26884
- if (t ? e = "draco:" + t.bufferView + ":" + t.indices + ":" + hd(t.attributes) : e = n.indices + ":" + hd(n.attributes) + ":" + n.mode, n.targets !== void 0)
26886
+ if (t ? e = "draco:" + t.bufferView + ":" + t.indices + ":" + cd(t.attributes) : e = n.indices + ":" + cd(n.attributes) + ":" + n.mode, n.targets !== void 0)
26885
26887
  for (let i = 0, s = n.targets.length; i < s; i++)
26886
- e += ":" + hd(n.targets[i]);
26888
+ e += ":" + cd(n.targets[i]);
26887
26889
  return e;
26888
26890
  }
26889
- function hd(n) {
26891
+ function cd(n) {
26890
26892
  let e = "";
26891
26893
  const t = Object.keys(n).sort();
26892
26894
  for (let i = 0, s = t.length; i < s; i++)
@@ -27131,12 +27133,12 @@ class UP {
27131
27133
  loadAccessor(e) {
27132
27134
  const t = this, i = this.json, s = this.json.accessors[e];
27133
27135
  if (s.bufferView === void 0 && s.sparse === void 0) {
27134
- const a = od[s.type], o = Ra[s.componentType], l = s.normalized === !0, c = new o(s.count * a);
27136
+ const a = ld[s.type], o = Ra[s.componentType], l = s.normalized === !0, c = new o(s.count * a);
27135
27137
  return Promise.resolve(new ut(c, a, l));
27136
27138
  }
27137
27139
  const r = [];
27138
27140
  return s.bufferView !== void 0 ? r.push(this.getDependency("bufferView", s.bufferView)) : r.push(null), s.sparse !== void 0 && (r.push(this.getDependency("bufferView", s.sparse.indices.bufferView)), r.push(this.getDependency("bufferView", s.sparse.values.bufferView))), Promise.all(r).then(function(a) {
27139
- const o = a[0], l = od[s.type], c = Ra[s.componentType], d = c.BYTES_PER_ELEMENT, h = d * l, u = s.byteOffset || 0, p = s.bufferView !== void 0 ? i.bufferViews[s.bufferView].byteStride : void 0, m = s.normalized === !0;
27141
+ const o = a[0], l = ld[s.type], c = Ra[s.componentType], d = c.BYTES_PER_ELEMENT, h = d * l, u = s.byteOffset || 0, p = s.bufferView !== void 0 ? i.bufferViews[s.bufferView].byteStride : void 0, m = s.normalized === !0;
27140
27142
  let y, g;
27141
27143
  if (p && p !== h) {
27142
27144
  const f = Math.floor(u / p), v = "InterleavedBuffer:" + s.bufferView + ":" + s.componentType + ":" + f + ":" + s.count;
@@ -27145,7 +27147,7 @@ class UP {
27145
27147
  } else
27146
27148
  o === null ? y = new c(s.count * l) : y = new c(o, u, s.count * l), g = new ut(y, l, m);
27147
27149
  if (s.sparse !== void 0) {
27148
- const f = od.SCALAR, v = Ra[s.sparse.indices.componentType], b = s.sparse.indices.byteOffset || 0, x = s.sparse.values.byteOffset || 0, S = new v(a[1], b, s.sparse.count * f), C = new c(a[2], x, s.sparse.count * l);
27150
+ const f = ld.SCALAR, v = Ra[s.sparse.indices.componentType], b = s.sparse.indices.byteOffset || 0, x = s.sparse.values.byteOffset || 0, S = new v(a[1], b, s.sparse.count * f), C = new c(a[2], x, s.sparse.count * l);
27149
27151
  o !== null && (g = new ut(g.array.slice(), g.itemSize, g.normalized));
27150
27152
  for (let T = 0, I = S.length; T < I; T++) {
27151
27153
  const L = S[T];
@@ -27291,8 +27293,8 @@ class UP {
27291
27293
  })));
27292
27294
  }
27293
27295
  r.doubleSided === !0 && (o.side = Li);
27294
- const d = r.alphaMode || ld.OPAQUE;
27295
- if (d === ld.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, d === ld.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && a !== Gn && (c.push(t.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new ge(1, 1), r.normalTexture.scale !== void 0)) {
27296
+ const d = r.alphaMode || hd.OPAQUE;
27297
+ if (d === hd.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, d === hd.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && a !== Gn && (c.push(t.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new ge(1, 1), r.normalTexture.scale !== void 0)) {
27296
27298
  const h = r.normalTexture.scale;
27297
27299
  o.normalScale.set(h, h);
27298
27300
  }
@@ -27355,7 +27357,7 @@ class UP {
27355
27357
  let f;
27356
27358
  const v = c[p];
27357
27359
  if (g.mode === zi.TRIANGLES || g.mode === zi.TRIANGLE_STRIP || g.mode === zi.TRIANGLE_FAN || g.mode === void 0)
27358
- f = r.isSkinnedMesh === !0 ? new H2(y, v) : new ni(y, v), f.isSkinnedMesh === !0 && f.normalizeSkinWeights(), g.mode === zi.TRIANGLE_STRIP ? f.geometry = ky(f.geometry, Sb) : g.mode === zi.TRIANGLE_FAN && (f.geometry = ky(f.geometry, sp));
27360
+ f = r.isSkinnedMesh === !0 ? new H2(y, v) : new ni(y, v), f.isSkinnedMesh === !0 && f.normalizeSkinWeights(), g.mode === zi.TRIANGLE_STRIP ? f.geometry = ky(f.geometry, Sb) : g.mode === zi.TRIANGLE_FAN && (f.geometry = ky(f.geometry, rp));
27359
27361
  else if (g.mode === zi.LINES)
27360
27362
  f = new j2(y, v);
27361
27363
  else if (g.mode === zi.LINE_STRIP)
@@ -27394,7 +27396,7 @@ class UP {
27394
27396
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
27395
27397
  return;
27396
27398
  }
27397
- return i.type === "perspective" ? t = new di(Uo.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (t = new Fc(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (t.name = this.createUniqueName(i.name)), Is(t, i), Promise.resolve(t);
27399
+ return i.type === "perspective" ? t = new di(Uo.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (t = new Bc(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (t.name = this.createUniqueName(i.name)), Is(t, i), Promise.resolve(t);
27398
27400
  }
27399
27401
  /**
27400
27402
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -27661,7 +27663,7 @@ function o0(n, e, t) {
27661
27663
  return e.targets !== void 0 ? jP(n, e.targets, t) : n;
27662
27664
  });
27663
27665
  }
27664
- const cd = /* @__PURE__ */ new WeakMap();
27666
+ const ud = /* @__PURE__ */ new WeakMap();
27665
27667
  class $P extends ps {
27666
27668
  constructor(e) {
27667
27669
  super(e), this.decoderPath = "", this.decoderConfig = {}, this.decoderBinary = null, this.decoderPending = null, this.workerLimit = 4, this.workerPool = [], this.workerNextTaskID = 1, this.workerSourceURL = "", this.defaultAttributeIDs = {
@@ -27705,8 +27707,8 @@ class $P extends ps {
27705
27707
  }
27706
27708
  decodeGeometry(e, t) {
27707
27709
  const i = JSON.stringify(t);
27708
- if (cd.has(e)) {
27709
- const l = cd.get(e);
27710
+ if (ud.has(e)) {
27711
+ const l = ud.get(e);
27710
27712
  if (l.key === i)
27711
27713
  return l.promise;
27712
27714
  if (e.byteLength === 0)
@@ -27720,7 +27722,7 @@ class $P extends ps {
27720
27722
  }))).then((l) => this._createGeometry(l.geometry));
27721
27723
  return o.catch(() => !0).then(() => {
27722
27724
  s && r && this._releaseTask(s, r);
27723
- }), cd.set(e, {
27725
+ }), ud.set(e, {
27724
27726
  key: i,
27725
27727
  promise: o
27726
27728
  }), o;
@@ -27896,10 +27898,10 @@ function e5() {
27896
27898
  }
27897
27899
  }
27898
27900
  }
27899
- const Tp = new bP(), yc = new $P();
27900
- window.dracoPath ? yc.setDecoderPath(window.dracoPath) : yc.setDecoderPath("./draco/");
27901
- yc.setDecoderConfig({ type: "wasm" });
27902
- Tp.setDRACOLoader(yc);
27901
+ const Tp = new bP(), vc = new $P();
27902
+ window.dracoPath ? vc.setDecoderPath(window.dracoPath) : vc.setDecoderPath("./draco/");
27903
+ vc.setDecoderConfig({ type: "wasm" });
27904
+ Tp.setDRACOLoader(vc);
27903
27905
  const l0 = [115, 103, 108, 98];
27904
27906
  function GX(n, e, t) {
27905
27907
  const i = JSON.stringify(e), s = new TextEncoder().encode(i), r = new Uint8Array([115, 103, 108, 98]), a = new Uint8Array(2);
@@ -27986,7 +27988,7 @@ const Ln = {
27986
27988
  ON_DROP: "slot-on-drop",
27987
27989
  ON_BEFORE_SELECTED: "slot-on-before-selected",
27988
27990
  ON_SELECTED: "slot-on-selected",
27989
- ON_DEVICE_SELECTED: "slot-on-selected",
27991
+ ON_DEVICE_SELECTED: "slot-on-device-selected",
27990
27992
  ON_DROP_ERROR: "slot-on-drop-error",
27991
27993
  ON_ERROR_STATE_CHANGE: "slot-on-error-state-change"
27992
27994
  };
@@ -28042,7 +28044,7 @@ class h0 extends eP {
28042
28044
  }
28043
28045
  clearSlot() {
28044
28046
  this._slotContainer.children.forEach((e) => {
28045
- e.removeFromParent(), Sp(e);
28047
+ e.removeFromParent(), yc(e);
28046
28048
  }), this.element.classList.remove("filled"), this.deviceInfo = void 0;
28047
28049
  }
28048
28050
  enable() {
@@ -28081,7 +28083,7 @@ class h0 extends eP {
28081
28083
  this._canInstall = e, e ? this.element.classList.add("can-install") : this.element.classList.remove("can-install");
28082
28084
  }
28083
28085
  dispose() {
28084
- this.clearSlot(), this._emitter.removeAllListeners(), Sp(this._slotContainer), this.element.remove();
28086
+ this.clearSlot(), this._emitter.removeAllListeners(), yc(this._slotContainer), this.element.remove();
28085
28087
  }
28086
28088
  }
28087
28089
  /**
@@ -28137,7 +28139,7 @@ const Sx = (n) => new xx(typeof n == "string" ? n : n + "", void 0, Uf), Lx = (n
28137
28139
  * Copyright 2017 Google LLC
28138
28140
  * SPDX-License-Identifier: BSD-3-Clause
28139
28141
  */
28140
- const { is: n5, defineProperty: s5, getOwnPropertyDescriptor: r5, getOwnPropertyNames: a5, getOwnPropertySymbols: o5, getPrototypeOf: l5 } = Object, Os = globalThis, d0 = Os.trustedTypes, h5 = d0 ? d0.emptyScript : "", ud = Os.reactiveElementPolyfillSupport, nl = (n, e) => n, vc = { toAttribute(n, e) {
28142
+ const { is: n5, defineProperty: s5, getOwnPropertyDescriptor: r5, getOwnPropertyNames: a5, getOwnPropertySymbols: o5, getPrototypeOf: l5 } = Object, Os = globalThis, d0 = Os.trustedTypes, h5 = d0 ? d0.emptyScript : "", dd = Os.reactiveElementPolyfillSupport, nl = (n, e) => n, bc = { toAttribute(n, e) {
28141
28143
  switch (e) {
28142
28144
  case Boolean:
28143
28145
  n = n ? h5 : null;
@@ -28165,7 +28167,7 @@ const { is: n5, defineProperty: s5, getOwnPropertyDescriptor: r5, getOwnProperty
28165
28167
  }
28166
28168
  }
28167
28169
  return t;
28168
- } }, Qf = (n, e) => !n5(n, e), p0 = { attribute: !0, type: String, converter: vc, reflect: !1, hasChanged: Qf };
28170
+ } }, Qf = (n, e) => !n5(n, e), p0 = { attribute: !0, type: String, converter: bc, reflect: !1, hasChanged: Qf };
28169
28171
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Os.litPropertyMetadata ?? (Os.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
28170
28172
  let ya = class extends HTMLElement {
28171
28173
  static addInitializer(e) {
@@ -28286,7 +28288,7 @@ let ya = class extends HTMLElement {
28286
28288
  var r;
28287
28289
  const i = this.constructor.elementProperties.get(e), s = this.constructor._$Eu(e, i);
28288
28290
  if (s !== void 0 && i.reflect === !0) {
28289
- const a = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : vc).toAttribute(t, i.type);
28291
+ const a = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : bc).toAttribute(t, i.type);
28290
28292
  this._$Em = e, a == null ? this.removeAttribute(s) : this.setAttribute(s, a), this._$Em = null;
28291
28293
  }
28292
28294
  }
@@ -28294,7 +28296,7 @@ let ya = class extends HTMLElement {
28294
28296
  var r;
28295
28297
  const i = this.constructor, s = i._$Eh.get(e);
28296
28298
  if (s !== void 0 && this._$Em !== s) {
28297
- const a = i.getPropertyOptions(s), o = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : vc;
28299
+ const a = i.getPropertyOptions(s), o = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((r = a.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? a.converter : bc;
28298
28300
  this._$Em = s, this[s] = o.fromAttribute(t, a.type), this._$Em = null;
28299
28301
  }
28300
28302
  }
@@ -28378,14 +28380,14 @@ let ya = class extends HTMLElement {
28378
28380
  firstUpdated(e) {
28379
28381
  }
28380
28382
  };
28381
- ya.elementStyles = [], ya.shadowRootOptions = { mode: "open" }, ya[nl("elementProperties")] = /* @__PURE__ */ new Map(), ya[nl("finalized")] = /* @__PURE__ */ new Map(), ud == null || ud({ ReactiveElement: ya }), (Os.reactiveElementVersions ?? (Os.reactiveElementVersions = [])).push("2.0.3");
28383
+ ya.elementStyles = [], ya.shadowRootOptions = { mode: "open" }, ya[nl("elementProperties")] = /* @__PURE__ */ new Map(), ya[nl("finalized")] = /* @__PURE__ */ new Map(), dd == null || dd({ ReactiveElement: ya }), (Os.reactiveElementVersions ?? (Os.reactiveElementVersions = [])).push("2.0.3");
28382
28384
  /**
28383
28385
  * @license
28384
28386
  * Copyright 2017 Google LLC
28385
28387
  * SPDX-License-Identifier: BSD-3-Clause
28386
28388
  */
28387
- const sl = globalThis, bc = sl.trustedTypes, f0 = bc ? bc.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Cx = "$lit$", Gs = `lit$${(Math.random() + "").slice(9)}$`, Tx = "?" + Gs, c5 = `<${Tx}>`, Mr = document, pl = () => Mr.createComment(""), fl = (n) => n === null || typeof n != "object" && typeof n != "function", Mx = Array.isArray, u5 = (n) => Mx(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", dd = `[
28388
- \f\r]`, Ao = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, m0 = /-->/g, g0 = />/g, $s = RegExp(`>|${dd}(?:([^\\s"'>=/]+)(${dd}*=${dd}*(?:[^
28389
+ const sl = globalThis, xc = sl.trustedTypes, f0 = xc ? xc.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Cx = "$lit$", Gs = `lit$${(Math.random() + "").slice(9)}$`, Tx = "?" + Gs, c5 = `<${Tx}>`, Mr = document, pl = () => Mr.createComment(""), fl = (n) => n === null || typeof n != "object" && typeof n != "function", Mx = Array.isArray, u5 = (n) => Mx(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", pd = `[
28390
+ \f\r]`, Ao = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, m0 = /-->/g, g0 = />/g, $s = RegExp(`>|${pd}(?:([^\\s"'>=/]+)(${pd}*=${pd}*(?:[^
28389
28391
  \f\r"'\`<>=]|("|')|))|$)`, "g"), y0 = /'/g, v0 = /"/g, Ix = /^(?:script|style|textarea|title)$/i, wx = (n) => (e, ...t) => ({ _$litType$: n, strings: e, values: t }), d5 = wx(1), b0 = wx(2), eo = Symbol.for("lit-noChange"), ii = Symbol.for("lit-nothing"), x0 = /* @__PURE__ */ new WeakMap(), fr = Mr.createTreeWalker(Mr, 129);
28390
28392
  function _x(n, e) {
28391
28393
  if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
@@ -28421,13 +28423,13 @@ let Mp = class Gx {
28421
28423
  for (const h of s.getAttributeNames())
28422
28424
  if (h.endsWith(Cx)) {
28423
28425
  const u = d[a++], p = s.getAttribute(h).split(Gs), m = /([.?@])?(.*)/.exec(u);
28424
- l.push({ type: 1, index: r, name: m[2], strings: p, ctor: m[1] === "." ? m5 : m[1] === "?" ? g5 : m[1] === "@" ? y5 : Qc }), s.removeAttribute(h);
28426
+ l.push({ type: 1, index: r, name: m[2], strings: p, ctor: m[1] === "." ? m5 : m[1] === "?" ? g5 : m[1] === "@" ? y5 : $c }), s.removeAttribute(h);
28425
28427
  } else
28426
28428
  h.startsWith(Gs) && (l.push({ type: 6, index: r }), s.removeAttribute(h));
28427
28429
  if (Ix.test(s.tagName)) {
28428
28430
  const h = s.textContent.split(Gs), u = h.length - 1;
28429
28431
  if (u > 0) {
28430
- s.textContent = bc ? bc.emptyScript : "";
28432
+ s.textContent = xc ? xc.emptyScript : "";
28431
28433
  for (let p = 0; p < u; p++)
28432
28434
  s.append(h[p], pl()), fr.nextNode(), l.push({ type: 2, index: ++r });
28433
28435
  s.append(h[u], pl());
@@ -28549,7 +28551,7 @@ let f5 = class {
28549
28551
  var t;
28550
28552
  this._$AM === void 0 && (this._$Cv = e, (t = this._$AP) == null || t.call(this, e));
28551
28553
  }
28552
- }, Qc = class {
28554
+ }, $c = class {
28553
28555
  get tagName() {
28554
28556
  return this.element.tagName;
28555
28557
  }
@@ -28575,21 +28577,21 @@ let f5 = class {
28575
28577
  O(e) {
28576
28578
  e === ii ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
28577
28579
  }
28578
- }, m5 = class extends Qc {
28580
+ }, m5 = class extends $c {
28579
28581
  constructor() {
28580
28582
  super(...arguments), this.type = 3;
28581
28583
  }
28582
28584
  O(e) {
28583
28585
  this.element[this.name] = e === ii ? void 0 : e;
28584
28586
  }
28585
- }, g5 = class extends Qc {
28587
+ }, g5 = class extends $c {
28586
28588
  constructor() {
28587
28589
  super(...arguments), this.type = 4;
28588
28590
  }
28589
28591
  O(e) {
28590
28592
  this.element.toggleAttribute(this.name, !!e && e !== ii);
28591
28593
  }
28592
- }, y5 = class extends Qc {
28594
+ }, y5 = class extends $c {
28593
28595
  constructor(e, t, i, s, r) {
28594
28596
  super(e, t, i, s, r), this.type = 5;
28595
28597
  }
@@ -28614,8 +28616,8 @@ let f5 = class {
28614
28616
  to(this, e);
28615
28617
  }
28616
28618
  };
28617
- const pd = sl.litHtmlPolyfillSupport;
28618
- pd == null || pd(Mp, $f), (sl.litHtmlVersions ?? (sl.litHtmlVersions = [])).push("3.1.1");
28619
+ const fd = sl.litHtmlPolyfillSupport;
28620
+ fd == null || fd(Mp, $f), (sl.litHtmlVersions ?? (sl.litHtmlVersions = [])).push("3.1.1");
28619
28621
  const b5 = (n, e, t) => {
28620
28622
  const i = (t == null ? void 0 : t.renderBefore) ?? e;
28621
28623
  let s = i._$litPart$;
@@ -28657,8 +28659,8 @@ let Ka = class extends ya {
28657
28659
  };
28658
28660
  var ob;
28659
28661
  Ka._$litElement$ = !0, Ka.finalized = !0, (ob = globalThis.litElementHydrateSupport) == null || ob.call(globalThis, { LitElement: Ka });
28660
- const fd = globalThis.litElementPolyfillSupport;
28661
- fd == null || fd({ LitElement: Ka });
28662
+ const md = globalThis.litElementPolyfillSupport;
28663
+ md == null || md({ LitElement: Ka });
28662
28664
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.3");
28663
28665
  /**
28664
28666
  * @license
@@ -28675,7 +28677,7 @@ const Ex = (n) => (e, t) => {
28675
28677
  * Copyright 2017 Google LLC
28676
28678
  * SPDX-License-Identifier: BSD-3-Clause
28677
28679
  */
28678
- const x5 = { attribute: !0, type: String, converter: vc, reflect: !1, hasChanged: Qf }, S5 = (n = x5, e, t) => {
28680
+ const x5 = { attribute: !0, type: String, converter: bc, reflect: !1, hasChanged: Qf }, S5 = (n = x5, e, t) => {
28679
28681
  const { kind: i, metadata: s } = t;
28680
28682
  let r = globalThis.litPropertyMetadata.get(s);
28681
28683
  if (r === void 0 && globalThis.litPropertyMetadata.set(s, r = /* @__PURE__ */ new Map()), r.set(t.name, n), i === "accessor") {
@@ -28925,7 +28927,7 @@ class NX {
28925
28927
  });
28926
28928
  }), this._pointerDownTimeout = 0;
28927
28929
  };
28928
- this._pointerDownTimeout = window.setTimeout(i, 80);
28930
+ this._pointerDownTimeout = window.setTimeout(i, 200);
28929
28931
  }, this._detectTrackpad = () => {
28930
28932
  va || typeof va < "u" || (Uh === 0 && (Ip = performance.now()), Uh++, performance.now() - Ip > 66 && (Uh > 5 ? va = !0 : va = !1, va ? this.controls.zoomSpeed = 0.2 : this.controls.zoomSpeed = 1, setTimeout(G5, 2e3)));
28931
28933
  }, this.fit = () => {
@@ -29071,8 +29073,11 @@ class NX {
29071
29073
  const e = this.renderer.domElement.toDataURL("image/png"), t = document.createElement("a");
29072
29074
  t.href = e, t.download = "transparent-background-object.png", document.body.appendChild(t), t.click(), document.body.removeChild(t);
29073
29075
  }
29076
+ clearAMR() {
29077
+ yc(this._container);
29078
+ }
29074
29079
  async addAMR(e) {
29075
- if (!e.endsWith(".sglb"))
29080
+ if (!e.startsWith("blob") && !e.endsWith(".sglb"))
29076
29081
  return console.error("Not valid amr file url.");
29077
29082
  const i = await new bx({ useCache: !0 }).loadAsync(e);
29078
29083
  if (!i.glb)
@@ -29239,7 +29244,7 @@ const P5 = {
29239
29244
  */
29240
29245
  ROUND_PIXELS: !1
29241
29246
  };
29242
- var md = /iPhone/i, C0 = /iPod/i, T0 = /iPad/i, M0 = /\biOS-universal(?:.+)Mac\b/i, gd = /\bAndroid(?:.+)Mobile\b/i, I0 = /Android/i, da = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Lh = /Silk/i, jn = /Windows Phone/i, w0 = /\bWindows(?:.+)ARM\b/i, _0 = /BlackBerry/i, G0 = /BB10/i, P0 = /Opera Mini/i, E0 = /\b(CriOS|Chrome)(?:.+)Mobile/i, A0 = /Mobile(?:.+)Firefox\b/i, R0 = function(n) {
29247
+ var gd = /iPhone/i, C0 = /iPod/i, T0 = /iPad/i, M0 = /\biOS-universal(?:.+)Mac\b/i, yd = /\bAndroid(?:.+)Mobile\b/i, I0 = /Android/i, da = /(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i, Lh = /Silk/i, jn = /Windows Phone/i, w0 = /\bWindows(?:.+)ARM\b/i, _0 = /BlackBerry/i, G0 = /BB10/i, P0 = /Opera Mini/i, E0 = /\b(CriOS|Chrome)(?:.+)Mobile/i, A0 = /Mobile(?:.+)Firefox\b/i, R0 = function(n) {
29243
29248
  return typeof n < "u" && n.platform === "MacIntel" && typeof n.maxTouchPoints == "number" && n.maxTouchPoints > 1 && typeof MSStream > "u";
29244
29249
  };
29245
29250
  function E5(n) {
@@ -29266,11 +29271,11 @@ function K0(n) {
29266
29271
  typeof i[1] < "u" && (t = i[0]), i = t.split("Twitter"), typeof i[1] < "u" && (t = i[0]);
29267
29272
  var s = E5(t), r = {
29268
29273
  apple: {
29269
- phone: s(md) && !s(jn),
29274
+ phone: s(gd) && !s(jn),
29270
29275
  ipod: s(C0),
29271
- tablet: !s(md) && (s(T0) || R0(e)) && !s(jn),
29276
+ tablet: !s(gd) && (s(T0) || R0(e)) && !s(jn),
29272
29277
  universal: s(M0),
29273
- device: (s(md) || s(C0) || s(T0) || s(M0) || R0(e)) && !s(jn)
29278
+ device: (s(gd) || s(C0) || s(T0) || s(M0) || R0(e)) && !s(jn)
29274
29279
  },
29275
29280
  amazon: {
29276
29281
  phone: s(da),
@@ -29278,9 +29283,9 @@ function K0(n) {
29278
29283
  device: s(da) || s(Lh)
29279
29284
  },
29280
29285
  android: {
29281
- phone: !s(jn) && s(da) || !s(jn) && s(gd),
29282
- tablet: !s(jn) && !s(da) && !s(gd) && (s(Lh) || s(I0)),
29283
- device: !s(jn) && (s(da) || s(Lh) || s(gd) || s(I0)) || s(/\bokhttp\b/i)
29286
+ phone: !s(jn) && s(da) || !s(jn) && s(yd),
29287
+ tablet: !s(jn) && !s(da) && !s(yd) && (s(Lh) || s(I0)),
29288
+ device: !s(jn) && (s(da) || s(Lh) || s(yd) || s(I0)) || s(/\bokhttp\b/i)
29284
29289
  },
29285
29290
  windows: {
29286
29291
  phone: s(jn),
@@ -29418,9 +29423,9 @@ var Kx = { exports: {} };
29418
29423
  var R5 = Kx.exports;
29419
29424
  const Sl = /* @__PURE__ */ Jf(R5);
29420
29425
  var im = { exports: {} };
29421
- im.exports = $c;
29422
- im.exports.default = $c;
29423
- function $c(n, e, t) {
29426
+ im.exports = eu;
29427
+ im.exports.default = eu;
29428
+ function eu(n, e, t) {
29424
29429
  t = t || 2;
29425
29430
  var i = e && e.length, s = i ? e[0] * t : n.length, r = Ox(n, 0, s, t, !0), a = [];
29426
29431
  if (!r || r.next === r.prev)
@@ -29442,7 +29447,7 @@ function Ox(n, e, t, i, s) {
29442
29447
  else
29443
29448
  for (r = t - i; r >= e; r -= i)
29444
29449
  a = O0(r, n[r], n[r + 1], a);
29445
- return a && eu(a, a.next) && (yl(a), a = a.next), a;
29450
+ return a && tu(a, a.next) && (yl(a), a = a.next), a;
29446
29451
  }
29447
29452
  function Ir(n, e) {
29448
29453
  if (!n)
@@ -29450,7 +29455,7 @@ function Ir(n, e) {
29450
29455
  e || (e = n);
29451
29456
  var t = n, i;
29452
29457
  do
29453
- if (i = !1, !t.steiner && (eu(t, t.next) || Pt(t.prev, t, t.next) === 0)) {
29458
+ if (i = !1, !t.steiner && (tu(t, t.next) || Pt(t.prev, t, t.next) === 0)) {
29454
29459
  if (yl(t), t = e = t.prev, t === t.next)
29455
29460
  break;
29456
29461
  i = !0;
@@ -29510,7 +29515,7 @@ function q5(n, e, t) {
29510
29515
  var i = n;
29511
29516
  do {
29512
29517
  var s = i.prev, r = i.next.next;
29513
- !eu(s, r) && qx(s, i, i.next, r) && gl(s, r) && gl(r, s) && (e.push(s.i / t | 0), e.push(i.i / t | 0), e.push(r.i / t | 0), yl(i), yl(i.next), i = n = r), i = i.next;
29518
+ !tu(s, r) && qx(s, i, i.next, r) && gl(s, r) && gl(r, s) && (e.push(s.i / t | 0), e.push(i.i / t | 0), e.push(r.i / t | 0), yl(i), yl(i.next), i = n = r), i = i.next;
29514
29519
  } while (i !== n);
29515
29520
  return Ir(i);
29516
29521
  }
@@ -29606,12 +29611,12 @@ function j5(n, e) {
29606
29611
  return n.next.i !== e.i && n.prev.i !== e.i && !F5(n, e) && // dones't intersect other edges
29607
29612
  (gl(n, e) && gl(e, n) && B5(n, e) && // locally visible
29608
29613
  (Pt(n.prev, n, e.prev) || Pt(n, e.prev, e)) || // does not create opposite-facing sectors
29609
- eu(n, e) && Pt(n.prev, n, n.next) > 0 && Pt(e.prev, e, e.next) > 0);
29614
+ tu(n, e) && Pt(n.prev, n, n.next) > 0 && Pt(e.prev, e, e.next) > 0);
29610
29615
  }
29611
29616
  function Pt(n, e, t) {
29612
29617
  return (e.y - n.y) * (t.x - e.x) - (e.x - n.x) * (t.y - e.y);
29613
29618
  }
29614
- function eu(n, e) {
29619
+ function tu(n, e) {
29615
29620
  return n.x === e.x && n.y === e.y;
29616
29621
  }
29617
29622
  function qx(n, e, t, i) {
@@ -29657,7 +29662,7 @@ function yl(n) {
29657
29662
  function Gp(n, e, t) {
29658
29663
  this.i = n, this.x = e, this.y = t, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
29659
29664
  }
29660
- $c.deviation = function(n, e, t, i) {
29665
+ eu.deviation = function(n, e, t, i) {
29661
29666
  var s = e && e.length, r = s ? e[0] * t : n.length, a = Math.abs(Pp(n, 0, r, t));
29662
29667
  if (s)
29663
29668
  for (var o = 0, l = e.length; o < l; o++) {
@@ -29678,7 +29683,7 @@ function Pp(n, e, t, i) {
29678
29683
  s += (n[a] - n[r]) * (n[r + 1] + n[a + 1]), a = r;
29679
29684
  return s;
29680
29685
  }
29681
- $c.flatten = function(n) {
29686
+ eu.flatten = function(n) {
29682
29687
  for (var e = n[0][0].length, t = { vertices: [], holes: [], dimensions: e }, i = 0, s = 0; s < n.length; s++) {
29683
29688
  for (var r = 0; r < n[s].length; r++)
29684
29689
  for (var a = 0; a < e; a++)
@@ -29689,9 +29694,9 @@ $c.flatten = function(n) {
29689
29694
  };
29690
29695
  var J5 = im.exports;
29691
29696
  const V5 = /* @__PURE__ */ Jf(J5);
29692
- var xc = { exports: {} };
29697
+ var Sc = { exports: {} };
29693
29698
  /*! https://mths.be/punycode v1.4.1 by @mathias */
29694
- xc.exports;
29699
+ Sc.exports;
29695
29700
  (function(n, e) {
29696
29701
  (function(t) {
29697
29702
  var i = e && !e.nodeType && e, s = n && !n.nodeType && n, r = typeof Qn == "object" && Qn;
@@ -29809,8 +29814,8 @@ xc.exports;
29809
29814
  else
29810
29815
  t.punycode = a;
29811
29816
  })(Qn);
29812
- })(xc, xc.exports);
29813
- var U5 = xc.exports, Q5 = function() {
29817
+ })(Sc, Sc.exports);
29818
+ var U5 = Sc.exports, Q5 = function() {
29814
29819
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
29815
29820
  return !1;
29816
29821
  if (typeof Symbol.iterator == "symbol")
@@ -29877,7 +29882,7 @@ var U5 = xc.exports, Q5 = function() {
29877
29882
  c.prototype = t.prototype, s.prototype = new c(), c.prototype = null;
29878
29883
  }
29879
29884
  return s;
29880
- }, cE = hE, nm = Function.prototype.bind || cE, uE = Function.prototype.call, dE = Object.prototype.hasOwnProperty, pE = nm, fE = pE.call(uE, dE), at, no = SyntaxError, zx = Function, qa = TypeError, yd = function(n) {
29885
+ }, cE = hE, nm = Function.prototype.bind || cE, uE = Function.prototype.call, dE = Object.prototype.hasOwnProperty, pE = nm, fE = pE.call(uE, dE), at, no = SyntaxError, zx = Function, qa = TypeError, vd = function(n) {
29881
29886
  try {
29882
29887
  return zx('"use strict"; return (' + n + ").constructor;")();
29883
29888
  } catch {
@@ -29889,19 +29894,19 @@ if (xr)
29889
29894
  } catch {
29890
29895
  xr = null;
29891
29896
  }
29892
- var vd = function() {
29897
+ var bd = function() {
29893
29898
  throw new qa();
29894
29899
  }, mE = xr ? function() {
29895
29900
  try {
29896
- return arguments.callee, vd;
29901
+ return arguments.callee, bd;
29897
29902
  } catch {
29898
29903
  try {
29899
29904
  return xr(arguments, "callee").get;
29900
29905
  } catch {
29901
- return vd;
29906
+ return bd;
29902
29907
  }
29903
29908
  }
29904
- }() : vd, pa = eE(), gE = iE(), ei = Object.getPrototypeOf || (gE ? function(n) {
29909
+ }() : bd, pa = eE(), gE = iE(), ei = Object.getPrototypeOf || (gE ? function(n) {
29905
29910
  return n.__proto__;
29906
29911
  } : null), ba = {}, yE = typeof Uint8Array > "u" || !ei ? at : ei(Uint8Array), Sr = {
29907
29912
  "%AggregateError%": typeof AggregateError > "u" ? at : AggregateError,
@@ -29982,11 +29987,11 @@ if (ei)
29982
29987
  var bE = function n(e) {
29983
29988
  var t;
29984
29989
  if (e === "%AsyncFunction%")
29985
- t = yd("async function () {}");
29990
+ t = vd("async function () {}");
29986
29991
  else if (e === "%GeneratorFunction%")
29987
- t = yd("function* () {}");
29992
+ t = vd("function* () {}");
29988
29993
  else if (e === "%AsyncGeneratorFunction%")
29989
- t = yd("async function* () {}");
29994
+ t = vd("async function* () {}");
29990
29995
  else if (e === "%AsyncGenerator%") {
29991
29996
  var i = n("%AsyncGeneratorFunction%");
29992
29997
  i && (t = i.prototype);
@@ -30047,8 +30052,8 @@ var bE = function n(e) {
30047
30052
  "%URIErrorPrototype%": ["URIError", "prototype"],
30048
30053
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
30049
30054
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
30050
- }, Ll = nm, Sc = fE, xE = Ll.call(Function.call, Array.prototype.concat), SE = Ll.call(Function.apply, Array.prototype.splice), N0 = Ll.call(Function.call, String.prototype.replace), Lc = Ll.call(Function.call, String.prototype.slice), LE = Ll.call(Function.call, RegExp.prototype.exec), CE = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, TE = /\\(\\)?/g, ME = function(e) {
30051
- var t = Lc(e, 0, 1), i = Lc(e, -1);
30055
+ }, Ll = nm, Lc = fE, xE = Ll.call(Function.call, Array.prototype.concat), SE = Ll.call(Function.apply, Array.prototype.splice), N0 = Ll.call(Function.call, String.prototype.replace), Cc = Ll.call(Function.call, String.prototype.slice), LE = Ll.call(Function.call, RegExp.prototype.exec), CE = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, TE = /\\(\\)?/g, ME = function(e) {
30056
+ var t = Cc(e, 0, 1), i = Cc(e, -1);
30052
30057
  if (t === "%" && i !== "%")
30053
30058
  throw new no("invalid intrinsic syntax, expected closing `%`");
30054
30059
  if (i === "%" && t !== "%")
@@ -30059,7 +30064,7 @@ var bE = function n(e) {
30059
30064
  }), s;
30060
30065
  }, IE = function(e, t) {
30061
30066
  var i = e, s;
30062
- if (Sc(W0, i) && (s = W0[i], i = "%" + s[0] + "%"), Sc(Sr, i)) {
30067
+ if (Lc(W0, i) && (s = W0[i], i = "%" + s[0] + "%"), Lc(Sr, i)) {
30063
30068
  var r = Sr[i];
30064
30069
  if (r === ba && (r = bE(i)), typeof r > "u" && !t)
30065
30070
  throw new qa("intrinsic " + e + " exists, but is not available. Please file an issue!");
@@ -30080,10 +30085,10 @@ var bE = function n(e) {
30080
30085
  var i = ME(e), s = i.length > 0 ? i[0] : "", r = IE("%" + s + "%", t), a = r.name, o = r.value, l = !1, c = r.alias;
30081
30086
  c && (s = c[0], SE(i, xE([0, 1], c)));
30082
30087
  for (var d = 1, h = !0; d < i.length; d += 1) {
30083
- var u = i[d], p = Lc(u, 0, 1), m = Lc(u, -1);
30088
+ var u = i[d], p = Cc(u, 0, 1), m = Cc(u, -1);
30084
30089
  if ((p === '"' || p === "'" || p === "`" || m === '"' || m === "'" || m === "`") && p !== m)
30085
30090
  throw new no("property names with quotes must have matching quotes");
30086
- if ((u === "constructor" || !h) && (l = !0), s += "." + u, a = "%" + s + "%", Sc(Sr, a))
30091
+ if ((u === "constructor" || !h) && (l = !0), s += "." + u, a = "%" + s + "%", Lc(Sr, a))
30087
30092
  o = Sr[a];
30088
30093
  else if (o != null) {
30089
30094
  if (!(u in o)) {
@@ -30095,7 +30100,7 @@ var bE = function n(e) {
30095
30100
  var y = xr(o, u);
30096
30101
  h = !!y, h && "get" in y && !("originalValue" in y.get) ? o = y.get : o = o[u];
30097
30102
  } else
30098
- h = Sc(o, u), o = o[u];
30103
+ h = Lc(o, u), o = o[u];
30099
30104
  h && !l && (Sr[a] = o);
30100
30105
  }
30101
30106
  }
@@ -30212,7 +30217,7 @@ const zE = {}, WE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
30212
30217
  __proto__: null,
30213
30218
  default: zE
30214
30219
  }, Symbol.toStringTag, { value: "Module" })), NE = /* @__PURE__ */ hP(WE);
30215
- var rm = typeof Map == "function" && Map.prototype, bd = Object.getOwnPropertyDescriptor && rm ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Cc = rm && bd && typeof bd.get == "function" ? bd.get : null, D0 = rm && Map.prototype.forEach, am = typeof Set == "function" && Set.prototype, xd = Object.getOwnPropertyDescriptor && am ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Tc = am && xd && typeof xd.get == "function" ? xd.get : null, j0 = am && Set.prototype.forEach, kE = typeof WeakMap == "function" && WeakMap.prototype, al = kE ? WeakMap.prototype.has : null, HE = typeof WeakSet == "function" && WeakSet.prototype, ol = HE ? WeakSet.prototype.has : null, ZE = typeof WeakRef == "function" && WeakRef.prototype, F0 = ZE ? WeakRef.prototype.deref : null, YE = Boolean.prototype.valueOf, DE = Object.prototype.toString, jE = Function.prototype.toString, FE = String.prototype.match, om = String.prototype.slice, As = String.prototype.replace, BE = String.prototype.toUpperCase, B0 = String.prototype.toLowerCase, Dx = RegExp.prototype.test, J0 = Array.prototype.concat, In = Array.prototype.join, JE = Array.prototype.slice, V0 = Math.floor, Rp = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Sd = Object.getOwnPropertySymbols, Kp = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, so = typeof Symbol == "function" && typeof Symbol.iterator == "object", mi = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === so || !0) ? Symbol.toStringTag : null, jx = Object.prototype.propertyIsEnumerable, U0 = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
30220
+ var rm = typeof Map == "function" && Map.prototype, xd = Object.getOwnPropertyDescriptor && rm ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Tc = rm && xd && typeof xd.get == "function" ? xd.get : null, D0 = rm && Map.prototype.forEach, am = typeof Set == "function" && Set.prototype, Sd = Object.getOwnPropertyDescriptor && am ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Mc = am && Sd && typeof Sd.get == "function" ? Sd.get : null, j0 = am && Set.prototype.forEach, kE = typeof WeakMap == "function" && WeakMap.prototype, al = kE ? WeakMap.prototype.has : null, HE = typeof WeakSet == "function" && WeakSet.prototype, ol = HE ? WeakSet.prototype.has : null, ZE = typeof WeakRef == "function" && WeakRef.prototype, F0 = ZE ? WeakRef.prototype.deref : null, YE = Boolean.prototype.valueOf, DE = Object.prototype.toString, jE = Function.prototype.toString, FE = String.prototype.match, om = String.prototype.slice, As = String.prototype.replace, BE = String.prototype.toUpperCase, B0 = String.prototype.toLowerCase, Dx = RegExp.prototype.test, J0 = Array.prototype.concat, In = Array.prototype.join, JE = Array.prototype.slice, V0 = Math.floor, Rp = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, Ld = Object.getOwnPropertySymbols, Kp = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, so = typeof Symbol == "function" && typeof Symbol.iterator == "object", mi = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === so || !0) ? Symbol.toStringTag : null, jx = Object.prototype.propertyIsEnumerable, U0 = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
30216
30221
  return n.__proto__;
30217
30222
  } : null);
30218
30223
  function Q0(n, e) {
@@ -30310,20 +30315,20 @@ var Op = NE, $0 = Op.custom, ev = Bx($0) ? $0 : null, VE = function n(e, t, i, s
30310
30315
  var S = [];
30311
30316
  return D0 && D0.call(e, function(G, w) {
30312
30317
  S.push(u(w, e, !0) + " => " + u(G, e));
30313
- }), iv("Map", Cc.call(e), S, h);
30318
+ }), iv("Map", Tc.call(e), S, h);
30314
30319
  }
30315
30320
  if (hA(e)) {
30316
30321
  var C = [];
30317
30322
  return j0 && j0.call(e, function(G) {
30318
30323
  C.push(u(G, e));
30319
- }), iv("Set", Tc.call(e), C, h);
30324
+ }), iv("Set", Mc.call(e), C, h);
30320
30325
  }
30321
30326
  if (oA(e))
30322
- return Ld("WeakMap");
30327
+ return Cd("WeakMap");
30323
30328
  if (cA(e))
30324
- return Ld("WeakSet");
30329
+ return Cd("WeakSet");
30325
30330
  if (lA(e))
30326
- return Ld("WeakRef");
30331
+ return Cd("WeakRef");
30327
30332
  if (tA(e))
30328
30333
  return Ro(u(Number(e)));
30329
30334
  if (nA(e))
@@ -30416,12 +30421,12 @@ function Jx(n, e) {
30416
30421
  return -1;
30417
30422
  }
30418
30423
  function aA(n) {
30419
- if (!Cc || !n || typeof n != "object")
30424
+ if (!Tc || !n || typeof n != "object")
30420
30425
  return !1;
30421
30426
  try {
30422
- Cc.call(n);
30427
+ Tc.call(n);
30423
30428
  try {
30424
- Tc.call(n);
30429
+ Mc.call(n);
30425
30430
  } catch {
30426
30431
  return !0;
30427
30432
  }
@@ -30455,12 +30460,12 @@ function lA(n) {
30455
30460
  return !1;
30456
30461
  }
30457
30462
  function hA(n) {
30458
- if (!Tc || !n || typeof n != "object")
30463
+ if (!Mc || !n || typeof n != "object")
30459
30464
  return !1;
30460
30465
  try {
30461
- Tc.call(n);
30466
+ Mc.call(n);
30462
30467
  try {
30463
- Cc.call(n);
30468
+ Tc.call(n);
30464
30469
  } catch {
30465
30470
  return !0;
30466
30471
  }
@@ -30508,7 +30513,7 @@ function dA(n) {
30508
30513
  function Ro(n) {
30509
30514
  return "Object(" + n + ")";
30510
30515
  }
30511
- function Ld(n) {
30516
+ function Cd(n) {
30512
30517
  return n + " { ? }";
30513
30518
  }
30514
30519
  function iv(n, e, t, i) {
@@ -30550,7 +30555,7 @@ function Mh(n, e) {
30550
30555
  for (var s = 0; s < n.length; s++)
30551
30556
  i[s] = ws(n, s) ? e(n[s], n) : "";
30552
30557
  }
30553
- var r = typeof Sd == "function" ? Sd(n) : [], a;
30558
+ var r = typeof Ld == "function" ? Ld(n) : [], a;
30554
30559
  if (so) {
30555
30560
  a = {};
30556
30561
  for (var o = 0; o < r.length; o++)
@@ -30558,7 +30563,7 @@ function Mh(n, e) {
30558
30563
  }
30559
30564
  for (var l in n)
30560
30565
  ws(n, l) && (t && String(Number(l)) === l && l < n.length || so && a["$" + l] instanceof Symbol || (Dx.call(/[^\w$]/, l) ? i.push(e(l, n) + ": " + e(n[l], n)) : i.push(l + ": " + e(n[l], n))));
30561
- if (typeof Sd == "function")
30566
+ if (typeof Ld == "function")
30562
30567
  for (var c = 0; c < r.length; c++)
30563
30568
  jx.call(n, r[c]) && i.push("[" + e(r[c]) + "]: " + e(n[r[c]], n));
30564
30569
  return i;
@@ -30612,11 +30617,11 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
30612
30617
  }
30613
30618
  };
30614
30619
  return s;
30615
- }, wA = String.prototype.replace, _A = /%20/g, Cd = {
30620
+ }, wA = String.prototype.replace, _A = /%20/g, Td = {
30616
30621
  RFC1738: "RFC1738",
30617
30622
  RFC3986: "RFC3986"
30618
30623
  }, cm = {
30619
- default: Cd.RFC3986,
30624
+ default: Td.RFC3986,
30620
30625
  formatters: {
30621
30626
  RFC1738: function(n) {
30622
30627
  return wA.call(n, _A, "+");
@@ -30625,9 +30630,9 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
30625
30630
  return String(n);
30626
30631
  }
30627
30632
  },
30628
- RFC1738: Cd.RFC1738,
30629
- RFC3986: Cd.RFC3986
30630
- }, GA = cm, Td = Object.prototype.hasOwnProperty, ur = Array.isArray, gn = function() {
30633
+ RFC1738: Td.RFC1738,
30634
+ RFC3986: Td.RFC3986
30635
+ }, GA = cm, Md = Object.prototype.hasOwnProperty, ur = Array.isArray, gn = function() {
30631
30636
  for (var n = [], e = 0; e < 256; ++e)
30632
30637
  n.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
30633
30638
  return n;
@@ -30651,7 +30656,7 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
30651
30656
  if (ur(e))
30652
30657
  e.push(t);
30653
30658
  else if (e && typeof e == "object")
30654
- (i && (i.plainObjects || i.allowPrototypes) || !Td.call(Object.prototype, t)) && (e[t] = !0);
30659
+ (i && (i.plainObjects || i.allowPrototypes) || !Md.call(Object.prototype, t)) && (e[t] = !0);
30655
30660
  else
30656
30661
  return [e, t];
30657
30662
  return e;
@@ -30660,14 +30665,14 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
30660
30665
  return [e].concat(t);
30661
30666
  var s = e;
30662
30667
  return ur(e) && !ur(t) && (s = Ux(e, i)), ur(e) && ur(t) ? (t.forEach(function(r, a) {
30663
- if (Td.call(e, a)) {
30668
+ if (Md.call(e, a)) {
30664
30669
  var o = e[a];
30665
30670
  o && typeof o == "object" && r && typeof r == "object" ? e[a] = n(o, r, i) : e.push(r);
30666
30671
  } else
30667
30672
  e[a] = r;
30668
30673
  }), e) : Object.keys(t).reduce(function(r, a) {
30669
30674
  var o = t[a];
30670
- return Td.call(r, a) ? r[a] = n(r[a], o, i) : r[a] = o, r;
30675
+ return Md.call(r, a) ? r[a] = n(r[a], o, i) : r[a] = o, r;
30671
30676
  }, s);
30672
30677
  }, AA = function(e, t) {
30673
30678
  return Object.keys(t).reduce(function(i, s) {
@@ -30775,15 +30780,15 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
30775
30780
  strictNullHandling: !1
30776
30781
  }, ZA = function(e) {
30777
30782
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
30778
- }, Md = {}, YA = function n(e, t, i, s, r, a, o, l, c, d, h, u, p, m, y, g) {
30779
- for (var f = e, v = g, b = 0, x = !1; (v = v.get(Md)) !== void 0 && !x; ) {
30783
+ }, Id = {}, YA = function n(e, t, i, s, r, a, o, l, c, d, h, u, p, m, y, g) {
30784
+ for (var f = e, v = g, b = 0, x = !1; (v = v.get(Id)) !== void 0 && !x; ) {
30780
30785
  var S = v.get(e);
30781
30786
  if (b += 1, typeof S < "u") {
30782
30787
  if (S === b)
30783
30788
  throw new RangeError("Cyclic object value");
30784
30789
  x = !0;
30785
30790
  }
30786
- typeof v.get(Md) > "u" && (b = 0);
30791
+ typeof v.get(Id) > "u" && (b = 0);
30787
30792
  }
30788
30793
  if (typeof l == "function" ? f = l(t, f) : f instanceof Date ? f = h(f) : i === "comma" && Vn(f) && (f = $h.maybeMap(f, function(X) {
30789
30794
  return X instanceof Date ? h(X) : X;
@@ -30817,7 +30822,7 @@ var lm = Er, fo = XE, mA = VE, gA = lm("%TypeError%"), Ih = lm("%WeakMap%", !0),
30817
30822
  var w = Vn(f) ? typeof i == "function" ? i(M, P) : M : M + (d ? "." + P : "[" + P + "]");
30818
30823
  g.set(e, b);
30819
30824
  var O = $x();
30820
- O.set(Md, g), eS(T, n(
30825
+ O.set(Id, g), eS(T, n(
30821
30826
  G,
30822
30827
  w,
30823
30828
  i,
@@ -31519,9 +31524,9 @@ const jt = {
31519
31524
  delimiter: ":",
31520
31525
  joinExtensions: [".html"]
31521
31526
  };
31522
- let Id;
31527
+ let wd;
31523
31528
  async function bR() {
31524
- return Id ?? (Id = (async () => {
31529
+ return wd ?? (wd = (async () => {
31525
31530
  var r;
31526
31531
  const n = document.createElement("canvas").getContext("webgl");
31527
31532
  if (!n)
@@ -31544,11 +31549,11 @@ async function bR() {
31544
31549
  ), n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1), n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL, n.NONE), n.texImage2D(n.TEXTURE_2D, 0, n.RGBA, n.RGBA, n.UNSIGNED_BYTE, e);
31545
31550
  const s = new Uint8Array(4);
31546
31551
  return n.readPixels(0, 0, 1, 1, n.RGBA, n.UNSIGNED_BYTE, s), n.deleteFramebuffer(i), n.deleteTexture(t), (r = n.getExtension("WEBGL_lose_context")) == null || r.loseContext(), s[0] <= s[3] ? Mi.PMA : Mi.UNPACK;
31547
- })()), Id;
31552
+ })()), wd;
31548
31553
  }
31549
- let wd;
31554
+ let _d;
31550
31555
  function xR() {
31551
- return typeof wd > "u" && (wd = function() {
31556
+ return typeof _d > "u" && (_d = function() {
31552
31557
  var e;
31553
31558
  const n = {
31554
31559
  stencil: !0,
@@ -31568,7 +31573,7 @@ function xR() {
31568
31573
  } catch {
31569
31574
  return !1;
31570
31575
  }
31571
- }()), wd;
31576
+ }()), _d;
31572
31577
  }
31573
31578
  var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
31574
31579
  return typeof n == "string" ? n.length > 0 : typeof n == "number";
@@ -31580,7 +31585,7 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
31580
31585
  return (n = isFinite(n) ? n % 360 : 0) > 0 ? n : n + 360;
31581
31586
  }, hv = function(n) {
31582
31587
  return { r: Di(n.r, 0, 255), g: Di(n.g, 0, 255), b: Di(n.b, 0, 255), a: Di(n.a) };
31583
- }, _d = function(n) {
31588
+ }, Gd = function(n) {
31584
31589
  return { r: ti(n.r), g: ti(n.g), b: ti(n.b), a: ti(n.a, 3) };
31585
31590
  }, LR = /^#([0-9a-f]{3,8})$/i, _h = function(n) {
31586
31591
  var e = n.toString(16);
@@ -31641,10 +31646,10 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
31641
31646
  return [null, void 0];
31642
31647
  }, wR = function(n) {
31643
31648
  return typeof n == "string" ? pv(n.trim(), Hp.string) : typeof n == "object" && n !== null ? pv(n, Hp.object) : [null, void 0];
31644
- }, Gd = function(n, e) {
31649
+ }, Pd = function(n, e) {
31645
31650
  var t = hl(n);
31646
31651
  return { h: t.h, s: Di(t.s + 100 * e, 0, 100), l: t.l, a: t.a };
31647
- }, Pd = function(n) {
31652
+ }, Ed = function(n) {
31648
31653
  return (299 * n.r + 587 * n.g + 114 * n.b) / 1e3 / 255;
31649
31654
  }, fv = function(n, e) {
31650
31655
  var t = hl(n);
@@ -31656,18 +31661,18 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
31656
31661
  return n.prototype.isValid = function() {
31657
31662
  return this.parsed !== null;
31658
31663
  }, n.prototype.brightness = function() {
31659
- return ti(Pd(this.rgba), 2);
31664
+ return ti(Ed(this.rgba), 2);
31660
31665
  }, n.prototype.isDark = function() {
31661
- return Pd(this.rgba) < 0.5;
31666
+ return Ed(this.rgba) < 0.5;
31662
31667
  }, n.prototype.isLight = function() {
31663
- return Pd(this.rgba) >= 0.5;
31668
+ return Ed(this.rgba) >= 0.5;
31664
31669
  }, n.prototype.toHex = function() {
31665
- return e = _d(this.rgba), t = e.r, i = e.g, s = e.b, a = (r = e.a) < 1 ? _h(ti(255 * r)) : "", "#" + _h(t) + _h(i) + _h(s) + a;
31670
+ return e = Gd(this.rgba), t = e.r, i = e.g, s = e.b, a = (r = e.a) < 1 ? _h(ti(255 * r)) : "", "#" + _h(t) + _h(i) + _h(s) + a;
31666
31671
  var e, t, i, s, r, a;
31667
31672
  }, n.prototype.toRgb = function() {
31668
- return _d(this.rgba);
31673
+ return Gd(this.rgba);
31669
31674
  }, n.prototype.toRgbString = function() {
31670
- return e = _d(this.rgba), t = e.r, i = e.g, s = e.b, (r = e.a) < 1 ? "rgba(" + t + ", " + i + ", " + s + ", " + r + ")" : "rgb(" + t + ", " + i + ", " + s + ")";
31675
+ return e = Gd(this.rgba), t = e.r, i = e.g, s = e.b, (r = e.a) < 1 ? "rgba(" + t + ", " + i + ", " + s + ", " + r + ")" : "rgb(" + t + ", " + i + ", " + s + ")";
31671
31676
  var e, t, i, s, r;
31672
31677
  }, n.prototype.toHsl = function() {
31673
31678
  return uv(hl(this.rgba));
@@ -31681,11 +31686,11 @@ var SR = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, Fn = function(n) {
31681
31686
  return yn({ r: 255 - (e = this.rgba).r, g: 255 - e.g, b: 255 - e.b, a: e.a });
31682
31687
  var e;
31683
31688
  }, n.prototype.saturate = function(e) {
31684
- return e === void 0 && (e = 0.1), yn(Gd(this.rgba, e));
31689
+ return e === void 0 && (e = 0.1), yn(Pd(this.rgba, e));
31685
31690
  }, n.prototype.desaturate = function(e) {
31686
- return e === void 0 && (e = 0.1), yn(Gd(this.rgba, -e));
31691
+ return e === void 0 && (e = 0.1), yn(Pd(this.rgba, -e));
31687
31692
  }, n.prototype.grayscale = function() {
31688
- return yn(Gd(this.rgba, -1));
31693
+ return yn(Pd(this.rgba, -1));
31689
31694
  }, n.prototype.lighten = function(e) {
31690
31695
  return e === void 0 && (e = 0.1), yn(fv(this.rgba, e));
31691
31696
  }, n.prototype.darken = function(e) {
@@ -32040,7 +32045,7 @@ function oS(n) {
32040
32045
  return "Uint8Array";
32041
32046
  return null;
32042
32047
  }
32043
- function Mc(n) {
32048
+ function Ic(n) {
32044
32049
  return n += n === 0 ? 1 : 0, --n, n |= n >>> 1, n |= n >>> 2, n |= n >>> 4, n |= n >>> 8, n |= n >>> 16, n + 1;
32045
32050
  }
32046
32051
  function gv(n) {
@@ -32400,7 +32405,7 @@ function kR(n, e) {
32400
32405
  }
32401
32406
  return n;
32402
32407
  }
32403
- const Ed = 0, Ad = 1, Rd = 2, Kd = 3, Od = 4, qd = 5;
32408
+ const Ad = 0, Rd = 1, Kd = 2, Od = 3, qd = 4, Xd = 5;
32404
32409
  class zn {
32405
32410
  constructor() {
32406
32411
  this.data = 0, this.blendMode = He.NORMAL, this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
@@ -32410,60 +32415,60 @@ class zn {
32410
32415
  * @default true
32411
32416
  */
32412
32417
  get blend() {
32413
- return !!(this.data & 1 << Ed);
32418
+ return !!(this.data & 1 << Ad);
32414
32419
  }
32415
32420
  set blend(e) {
32416
- !!(this.data & 1 << Ed) !== e && (this.data ^= 1 << Ed);
32421
+ !!(this.data & 1 << Ad) !== e && (this.data ^= 1 << Ad);
32417
32422
  }
32418
32423
  /**
32419
32424
  * Activates adding an offset to depth values of polygon's fragments
32420
32425
  * @default false
32421
32426
  */
32422
32427
  get offsets() {
32423
- return !!(this.data & 1 << Ad);
32428
+ return !!(this.data & 1 << Rd);
32424
32429
  }
32425
32430
  set offsets(e) {
32426
- !!(this.data & 1 << Ad) !== e && (this.data ^= 1 << Ad);
32431
+ !!(this.data & 1 << Rd) !== e && (this.data ^= 1 << Rd);
32427
32432
  }
32428
32433
  /**
32429
32434
  * Activates culling of polygons.
32430
32435
  * @default false
32431
32436
  */
32432
32437
  get culling() {
32433
- return !!(this.data & 1 << Rd);
32438
+ return !!(this.data & 1 << Kd);
32434
32439
  }
32435
32440
  set culling(e) {
32436
- !!(this.data & 1 << Rd) !== e && (this.data ^= 1 << Rd);
32441
+ !!(this.data & 1 << Kd) !== e && (this.data ^= 1 << Kd);
32437
32442
  }
32438
32443
  /**
32439
32444
  * Activates depth comparisons and updates to the depth buffer.
32440
32445
  * @default false
32441
32446
  */
32442
32447
  get depthTest() {
32443
- return !!(this.data & 1 << Kd);
32448
+ return !!(this.data & 1 << Od);
32444
32449
  }
32445
32450
  set depthTest(e) {
32446
- !!(this.data & 1 << Kd) !== e && (this.data ^= 1 << Kd);
32451
+ !!(this.data & 1 << Od) !== e && (this.data ^= 1 << Od);
32447
32452
  }
32448
32453
  /**
32449
32454
  * Enables or disables writing to the depth buffer.
32450
32455
  * @default true
32451
32456
  */
32452
32457
  get depthMask() {
32453
- return !!(this.data & 1 << qd);
32458
+ return !!(this.data & 1 << Xd);
32454
32459
  }
32455
32460
  set depthMask(e) {
32456
- !!(this.data & 1 << qd) !== e && (this.data ^= 1 << qd);
32461
+ !!(this.data & 1 << Xd) !== e && (this.data ^= 1 << Xd);
32457
32462
  }
32458
32463
  /**
32459
32464
  * Specifies whether or not front or back-facing polygons can be culled.
32460
32465
  * @default false
32461
32466
  */
32462
32467
  get clockwiseFrontFace() {
32463
- return !!(this.data & 1 << Od);
32468
+ return !!(this.data & 1 << qd);
32464
32469
  }
32465
32470
  set clockwiseFrontFace(e) {
32466
- !!(this.data & 1 << Od) !== e && (this.data ^= 1 << Od);
32471
+ !!(this.data & 1 << qd) !== e && (this.data ^= 1 << qd);
32467
32472
  }
32468
32473
  /**
32469
32474
  * The blend mode to be applied when this state is set. Apply a value of `PIXI.BLEND_MODES.NORMAL` to reset the blend mode.
@@ -32704,7 +32709,7 @@ class vl {
32704
32709
  return !1;
32705
32710
  }
32706
32711
  }
32707
- class tu extends vl {
32712
+ class iu extends vl {
32708
32713
  /**
32709
32714
  * @param source - Source buffer
32710
32715
  * @param options - Options
@@ -32991,7 +32996,7 @@ const HR = {
32991
32996
  */
32992
32997
  static fromBuffer(e, t, i, s) {
32993
32998
  e = e || new Float32Array(t * i * 4);
32994
- const r = new tu(e, { width: t, height: i, ...s == null ? void 0 : s.resourceOptions });
32999
+ const r = new iu(e, { width: t, height: i, ...s == null ? void 0 : s.resourceOptions });
32995
33000
  let a, o;
32996
33001
  return e instanceof Float32Array ? (a = se.RGBA, o = Ae.FLOAT) : e instanceof Int32Array ? (a = se.RGBA_INTEGER, o = Ae.INT) : e instanceof Uint32Array ? (a = se.RGBA_INTEGER, o = Ae.UNSIGNED_INT) : e instanceof Int16Array ? (a = se.RGBA_INTEGER, o = Ae.SHORT) : e instanceof Uint16Array ? (a = se.RGBA_INTEGER, o = Ae.UNSIGNED_SHORT) : e instanceof Int8Array ? (a = se.RGBA, o = Ae.BYTE) : (a = se.RGBA, o = Ae.UNSIGNED_BYTE), r.internal = !0, new Sa(r, Object.assign({}, HR, { type: o, format: a }, s));
32997
33002
  }
@@ -33125,7 +33130,7 @@ class qt {
33125
33130
  return e instanceof Array && (e = new Float32Array(e)), new qt(e);
33126
33131
  }
33127
33132
  }
33128
- class Ic {
33133
+ class wc {
33129
33134
  /**
33130
33135
  * @param buffer - the id of the buffer that this attribute will look for
33131
33136
  * @param size - the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2.
@@ -33153,7 +33158,7 @@ class Ic {
33153
33158
  * @returns - A new {@link PIXI.Attribute} based on the information provided
33154
33159
  */
33155
33160
  static from(e, t, i, s, r) {
33156
- return new Ic(e, t, i, s, r);
33161
+ return new wc(e, t, i, s, r);
33157
33162
  }
33158
33163
  }
33159
33164
  const YR = {
@@ -33222,7 +33227,7 @@ class Ws {
33222
33227
  return this;
33223
33228
  }
33224
33229
  let d = this.buffers.indexOf(t);
33225
- return d === -1 && (this.buffers.push(t), d = this.buffers.length - 1), this.attributes[e] = new Ic(d, i, s, r, a, o, l), this.instanced = this.instanced || l, this;
33230
+ return d === -1 && (this.buffers.push(t), d = this.buffers.length - 1), this.attributes[e] = new wc(d, i, s, r, a, o, l), this.instanced = this.instanced || l, this;
33226
33231
  }
33227
33232
  /**
33228
33233
  * Returns the requested attribute.
@@ -33301,7 +33306,7 @@ class Ws {
33301
33306
  e.buffers[t] = new qt(this.buffers[t].data.slice(0));
33302
33307
  for (const t in this.attributes) {
33303
33308
  const i = this.attributes[t];
33304
- e.attributes[t] = new Ic(
33309
+ e.attributes[t] = new wc(
33305
33310
  i.buffer,
33306
33311
  i.size,
33307
33312
  i.normalized,
@@ -33366,7 +33371,7 @@ class hS extends Ws {
33366
33371
  super(), this._buffer = new qt(null, e, !1), this._indexBuffer = new qt(null, e, !0), this.addAttribute("aVertexPosition", this._buffer, 2, !1, Ae.FLOAT).addAttribute("aTextureCoord", this._buffer, 2, !1, Ae.FLOAT).addAttribute("aColor", this._buffer, 4, !0, Ae.UNSIGNED_BYTE).addAttribute("aTextureId", this._buffer, 1, !0, Ae.FLOAT).addIndex(this._indexBuffer);
33367
33372
  }
33368
33373
  }
33369
- const wc = Math.PI * 2, BR = 180 / Math.PI, JR = Math.PI / 180;
33374
+ const _c = Math.PI * 2, BR = 180 / Math.PI, JR = Math.PI / 180;
33370
33375
  var ri = /* @__PURE__ */ ((n) => (n[n.POLY = 0] = "POLY", n[n.RECT = 1] = "RECT", n[n.CIRC = 2] = "CIRC", n[n.ELIP = 3] = "ELIP", n[n.RREC = 4] = "RREC", n))(ri || {});
33371
33376
  class ke {
33372
33377
  /**
@@ -33559,7 +33564,7 @@ class De {
33559
33564
  De.prototype.toString = function() {
33560
33565
  return `[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
33561
33566
  };
33562
- class iu {
33567
+ class nu {
33563
33568
  /**
33564
33569
  * @param x - The X coordinate of the center of this circle
33565
33570
  * @param y - The Y coordinate of the center of this circle
@@ -33573,7 +33578,7 @@ class iu {
33573
33578
  * @returns A copy of the Circle
33574
33579
  */
33575
33580
  clone() {
33576
- return new iu(this.x, this.y, this.radius);
33581
+ return new nu(this.x, this.y, this.radius);
33577
33582
  }
33578
33583
  /**
33579
33584
  * Checks whether the x and y coordinates given are contained within this circle
@@ -33596,10 +33601,10 @@ class iu {
33596
33601
  return new De(this.x - this.radius, this.y - this.radius, this.radius * 2, this.radius * 2);
33597
33602
  }
33598
33603
  }
33599
- iu.prototype.toString = function() {
33604
+ nu.prototype.toString = function() {
33600
33605
  return `[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`;
33601
33606
  };
33602
- class nu {
33607
+ class su {
33603
33608
  /**
33604
33609
  * @param x - The X coordinate of the center of this ellipse
33605
33610
  * @param y - The Y coordinate of the center of this ellipse
@@ -33614,7 +33619,7 @@ class nu {
33614
33619
  * @returns {PIXI.Ellipse} A copy of the ellipse
33615
33620
  */
33616
33621
  clone() {
33617
- return new nu(this.x, this.y, this.width, this.height);
33622
+ return new su(this.x, this.y, this.width, this.height);
33618
33623
  }
33619
33624
  /**
33620
33625
  * Checks whether the x and y coordinates given are contained within this ellipse
@@ -33636,7 +33641,7 @@ class nu {
33636
33641
  return new De(this.x - this.width, this.y - this.height, this.width, this.height);
33637
33642
  }
33638
33643
  }
33639
- nu.prototype.toString = function() {
33644
+ su.prototype.toString = function() {
33640
33645
  return `[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`;
33641
33646
  };
33642
33647
  class Lr {
@@ -33684,7 +33689,7 @@ class Lr {
33684
33689
  Lr.prototype.toString = function() {
33685
33690
  return `[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((n, e) => `${n}, ${e}`, "")}]`;
33686
33691
  };
33687
- class su {
33692
+ class ru {
33688
33693
  /**
33689
33694
  * @param x - The X coordinate of the upper-left corner of the rounded rectangle
33690
33695
  * @param y - The Y coordinate of the upper-left corner of the rounded rectangle
@@ -33700,7 +33705,7 @@ class su {
33700
33705
  * @returns - A copy of the rounded rectangle.
33701
33706
  */
33702
33707
  clone() {
33703
- return new su(this.x, this.y, this.width, this.height, this.radius);
33708
+ return new ru(this.x, this.y, this.width, this.height, this.radius);
33704
33709
  }
33705
33710
  /**
33706
33711
  * Checks whether the x and y coordinates given are contained within this Rounded Rectangle
@@ -33723,7 +33728,7 @@ class su {
33723
33728
  return !1;
33724
33729
  }
33725
33730
  }
33726
- su.prototype.toString = function() {
33731
+ ru.prototype.toString = function() {
33727
33732
  return `[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`;
33728
33733
  };
33729
33734
  class Tt {
@@ -33872,7 +33877,7 @@ class Tt {
33872
33877
  */
33873
33878
  decompose(e) {
33874
33879
  const t = this.a, i = this.b, s = this.c, r = this.d, a = e.pivot, o = -Math.atan2(-s, r), l = Math.atan2(i, t), c = Math.abs(o + l);
33875
- return c < 1e-5 || Math.abs(wc - c) < 1e-5 ? (e.rotation = l, e.skew.x = e.skew.y = 0) : (e.rotation = 0, e.skew.x = o, e.skew.y = l), e.scale.x = Math.sqrt(t * t + i * i), e.scale.y = Math.sqrt(s * s + r * r), e.position.x = this.tx + (a.x * t + a.y * s), e.position.y = this.ty + (a.x * i + a.y * r), e;
33880
+ return c < 1e-5 || Math.abs(_c - c) < 1e-5 ? (e.rotation = l, e.skew.x = e.skew.y = 0) : (e.rotation = 0, e.skew.x = o, e.skew.y = l), e.scale.x = Math.sqrt(t * t + i * i), e.scale.y = Math.sqrt(s * s + r * r), e.position.x = this.tx + (a.x * t + a.y * s), e.position.y = this.ty + (a.x * i + a.y * r), e;
33876
33881
  }
33877
33882
  /**
33878
33883
  * Inverts this matrix
@@ -34271,7 +34276,7 @@ function Tv(n, e, t) {
34271
34276
  const i = n.createShader(e);
34272
34277
  return n.shaderSource(i, t), n.compileShader(i), i;
34273
34278
  }
34274
- function Xd(n) {
34279
+ function zd(n) {
34275
34280
  const e = new Array(n);
34276
34281
  for (let t = 0; t < e.length; t++)
34277
34282
  e[t] = !1;
@@ -34307,11 +34312,11 @@ function uS(n, e) {
34307
34312
  case "bool":
34308
34313
  return !1;
34309
34314
  case "bvec2":
34310
- return Xd(2 * e);
34315
+ return zd(2 * e);
34311
34316
  case "bvec3":
34312
- return Xd(3 * e);
34317
+ return zd(3 * e);
34313
34318
  case "bvec4":
34314
- return Xd(4 * e);
34319
+ return zd(4 * e);
34315
34320
  case "mat2":
34316
34321
  return new Float32Array([
34317
34322
  1,
@@ -35075,7 +35080,7 @@ function uK(n) {
35075
35080
  }
35076
35081
  return e ? n : 4;
35077
35082
  }
35078
- class ru {
35083
+ class au {
35079
35084
  /**
35080
35085
  * @param renderer - The renderer this manager works for.
35081
35086
  */
@@ -35141,7 +35146,7 @@ void main(void){
35141
35146
  vColor = aColor * tint;
35142
35147
  }
35143
35148
  `;
35144
- const ko = class sn extends ru {
35149
+ const ko = class sn extends au {
35145
35150
  /**
35146
35151
  * This will hook onto the renderer's `contextChange`
35147
35152
  * and `prerender` signals.
@@ -35335,7 +35340,7 @@ const ko = class sn extends ru {
35335
35340
  * @returns - buffer than can hold atleast `size` floats
35336
35341
  */
35337
35342
  getAttributeBuffer(e) {
35338
- const t = Mc(Math.ceil(e / 8)), i = yv(t), s = t * 8;
35343
+ const t = Ic(Math.ceil(e / 8)), i = yv(t), s = t * 8;
35339
35344
  this._aBuffers.length <= i && (this._iBuffers.length = i + 1);
35340
35345
  let r = this._aBuffers[s];
35341
35346
  return r || (this._aBuffers[s] = r = new jp(s * this.vertexSize * 4)), r;
@@ -35347,7 +35352,7 @@ const ko = class sn extends ru {
35347
35352
  * @returns - buffer that can fit `size` indices.
35348
35353
  */
35349
35354
  getIndexBuffer(e) {
35350
- const t = Mc(Math.ceil(e / 12)), i = yv(t), s = t * 12;
35355
+ const t = Ic(Math.ceil(e / 12)), i = yv(t), s = t * 12;
35351
35356
  this._iBuffers.length <= i && (this._iBuffers.length = i + 1);
35352
35357
  let r = this._iBuffers[i];
35353
35358
  return r || (this._iBuffers[i] = r = new Uint16Array(s)), r;
@@ -35504,7 +35509,7 @@ ef.defaultResolution = 1, /**
35504
35509
  */
35505
35510
  ef.defaultMultisample = Wt.NONE;
35506
35511
  let xi = ef;
35507
- class _c {
35512
+ class Gc {
35508
35513
  constructor() {
35509
35514
  this.clearBeforeRender = !0, this._backgroundColor = new Lt(0), this.alpha = 1;
35510
35515
  }
@@ -35544,7 +35549,7 @@ class _c {
35544
35549
  destroy() {
35545
35550
  }
35546
35551
  }
35547
- _c.defaultOptions = {
35552
+ Gc.defaultOptions = {
35548
35553
  /**
35549
35554
  * {@link PIXI.IRendererOptions.backgroundAlpha}
35550
35555
  * @default 1
@@ -35564,20 +35569,20 @@ _c.defaultOptions = {
35564
35569
  */
35565
35570
  clearBeforeRender: !0
35566
35571
  }, /** @ignore */
35567
- _c.extension = {
35572
+ Gc.extension = {
35568
35573
  type: [
35569
35574
  fe.RendererSystem,
35570
35575
  fe.CanvasRendererSystem
35571
35576
  ],
35572
35577
  name: "background"
35573
35578
  };
35574
- Ie.add(_c);
35579
+ Ie.add(Gc);
35575
35580
  class mS {
35576
35581
  /**
35577
35582
  * @param renderer - The renderer this System works for.
35578
35583
  */
35579
35584
  constructor(e) {
35580
- this.renderer = e, this.emptyRenderer = new ru(e), this.currentRenderer = this.emptyRenderer;
35585
+ this.renderer = e, this.emptyRenderer = new au(e), this.currentRenderer = this.emptyRenderer;
35581
35586
  }
35582
35587
  /**
35583
35588
  * Changes the current renderer to the one given in parameter
@@ -35650,7 +35655,7 @@ mS.extension = {
35650
35655
  };
35651
35656
  Ie.add(mS);
35652
35657
  let _v = 0;
35653
- class Gc {
35658
+ class Pc {
35654
35659
  /** @param renderer - The renderer this System works for. */
35655
35660
  constructor(e) {
35656
35661
  this.renderer = e, this.webGLVersion = 1, this.extensions = {}, this.supports = {
@@ -35785,7 +35790,7 @@ class Gc {
35785
35790
  this.supports.uint32Indices = s, s || console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly");
35786
35791
  }
35787
35792
  }
35788
- Gc.defaultOptions = {
35793
+ Pc.defaultOptions = {
35789
35794
  /**
35790
35795
  * {@link PIXI.IRendererOptions.context}
35791
35796
  * @default null
@@ -35817,11 +35822,11 @@ Gc.defaultOptions = {
35817
35822
  */
35818
35823
  powerPreference: "default"
35819
35824
  }, /** @ignore */
35820
- Gc.extension = {
35825
+ Pc.extension = {
35821
35826
  type: fe.RendererSystem,
35822
35827
  name: "context"
35823
35828
  };
35824
- Ie.add(Gc);
35829
+ Ie.add(Pc);
35825
35830
  class tf {
35826
35831
  /**
35827
35832
  * @param width - Width of the frame buffer
@@ -36497,7 +36502,7 @@ class vS {
36497
36502
  */
36498
36503
  getOptimalTexture(e, t, i = 1, s = Wt.NONE) {
36499
36504
  let r;
36500
- e = Math.max(Math.ceil(e * i - 1e-6), 1), t = Math.max(Math.ceil(t * i - 1e-6), 1), !this.enableFullScreen || e !== this._pixelsWidth || t !== this._pixelsHeight ? (e = Mc(e), t = Mc(t), r = ((e & 65535) << 16 | t & 65535) >>> 0, s > 1 && (r += s * 4294967296)) : r = s > 1 ? -s : -1, this.texturePool[r] || (this.texturePool[r] = []);
36505
+ e = Math.max(Math.ceil(e * i - 1e-6), 1), t = Math.max(Math.ceil(t * i - 1e-6), 1), !this.enableFullScreen || e !== this._pixelsWidth || t !== this._pixelsHeight ? (e = Ic(e), t = Ic(t), r = ((e & 65535) << 16 | t & 65535) >>> 0, s > 1 && (r += s * 4294967296)) : r = s > 1 ? -s : -1, this.texturePool[r] || (this.texturePool[r] = []);
36501
36506
  let a = this.texturePool[r].pop();
36502
36507
  return a || (a = this.createTexture(e, t, s)), a.filterPoolKey = r, a.setResolution(i), a;
36503
36508
  }
@@ -36635,7 +36640,7 @@ class yK {
36635
36640
  this.target = null, this.filters = null, this.renderTexture = null;
36636
36641
  }
36637
36642
  }
36638
- const Oh = [new ke(), new ke(), new ke(), new ke()], zd = new Tt();
36643
+ const Oh = [new ke(), new ke(), new ke(), new ke()], Wd = new Tt();
36639
36644
  class xS {
36640
36645
  /**
36641
36646
  * @param renderer - The renderer this System works for.
@@ -36677,7 +36682,7 @@ class xS {
36677
36682
  s.length === 1 && (this.defaultFilterStack[0].renderTexture = a.current), s.push(r), r.resolution = c, r.multisample = d, r.legacy = p, r.target = e, r.sourceFrame.copyFrom(e.filterArea || e.getBounds(!0)), r.sourceFrame.pad(h);
36678
36683
  const m = this.tempRect.copyFrom(a.sourceFrame);
36679
36684
  i.projection.transform && this.transformAABB(
36680
- zd.copyFrom(i.projection.transform).invert(),
36685
+ Wd.copyFrom(i.projection.transform).invert(),
36681
36686
  m
36682
36687
  ), u ? (r.sourceFrame.fit(m), (r.sourceFrame.width <= 0 || r.sourceFrame.height <= 0) && (r.sourceFrame.width = 0, r.sourceFrame.height = 0)) : r.sourceFrame.intersects(m) || (r.sourceFrame.width = 0, r.sourceFrame.height = 0), this.roundFrame(
36683
36688
  r.sourceFrame,
@@ -36852,7 +36857,7 @@ class xS {
36852
36857
  if ((Math.abs(o) > 1e-4 || Math.abs(l) > 1e-4) && (Math.abs(a) > 1e-4 || Math.abs(c) > 1e-4))
36853
36858
  return;
36854
36859
  }
36855
- r = r ? zd.copyFrom(r) : zd.identity(), r.translate(-i.x, -i.y).scale(
36860
+ r = r ? Wd.copyFrom(r) : Wd.identity(), r.translate(-i.x, -i.y).scale(
36856
36861
  s.width / i.width,
36857
36862
  s.height / i.height
36858
36863
  ).translate(s.x, s.y), this.transformAABB(r, e), e.ceil(t), this.transformAABB(r.invert(), e);
@@ -37163,7 +37168,7 @@ SS.extension = {
37163
37168
  name: "framebuffer"
37164
37169
  };
37165
37170
  Ie.add(SS);
37166
- const Wd = { 5126: 4, 5123: 2, 5121: 1 };
37171
+ const Nd = { 5126: 4, 5123: 2, 5121: 1 };
37167
37172
  class LS {
37168
37173
  /** @param renderer - The renderer this System works for. */
37169
37174
  constructor(e) {
@@ -37250,10 +37255,10 @@ class LS {
37250
37255
  for (const y in h)
37251
37256
  p[y] = 0, m[y] = 0;
37252
37257
  for (const y in u)
37253
- !u[y].size && o.attributeData[y] ? u[y].size = o.attributeData[y].size : u[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`), p[u[y].buffer] += u[y].size * Wd[u[y].type];
37258
+ !u[y].size && o.attributeData[y] ? u[y].size = o.attributeData[y].size : u[y].size || console.warn(`PIXI Geometry attribute '${y}' size cannot be determined (likely the bound shader does not have the attribute)`), p[u[y].buffer] += u[y].size * Nd[u[y].type];
37254
37259
  for (const y in u) {
37255
37260
  const g = u[y], f = g.size;
37256
- g.stride === void 0 && (p[g.buffer] === f * Wd[g.type] ? g.stride = 0 : g.stride = p[g.buffer]), g.start === void 0 && (g.start = m[g.buffer], m[g.buffer] += f * Wd[g.type]);
37261
+ g.stride === void 0 && (p[g.buffer] === f * Nd[g.type] ? g.stride = 0 : g.stride = p[g.buffer]), g.start === void 0 && (g.start = m[g.buffer], m[g.buffer] += f * Nd[g.type]);
37257
37262
  }
37258
37263
  d = s.createVertexArray(), s.bindVertexArray(d);
37259
37264
  for (let y = 0; y < h.length; y++) {
@@ -38423,7 +38428,7 @@ RS.extension = {
38423
38428
  name: "shader"
38424
38429
  };
38425
38430
  Ie.add(RS);
38426
- class Pc {
38431
+ class Ec {
38427
38432
  constructor(e) {
38428
38433
  this.renderer = e;
38429
38434
  }
@@ -38438,7 +38443,7 @@ class Pc {
38438
38443
  destroy() {
38439
38444
  }
38440
38445
  }
38441
- Pc.defaultOptions = {
38446
+ Ec.defaultOptions = {
38442
38447
  /**
38443
38448
  * {@link PIXI.IRendererOptions.hello}
38444
38449
  * @default false
@@ -38446,14 +38451,14 @@ Pc.defaultOptions = {
38446
38451
  */
38447
38452
  hello: !1
38448
38453
  }, /** @ignore */
38449
- Pc.extension = {
38454
+ Ec.extension = {
38450
38455
  type: [
38451
38456
  fe.RendererSystem,
38452
38457
  fe.CanvasRendererSystem
38453
38458
  ],
38454
38459
  name: "startup"
38455
38460
  };
38456
- Ie.add(Pc);
38461
+ Ie.add(Ec);
38457
38462
  function qK(n, e = []) {
38458
38463
  return e[He.NORMAL] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.ADD] = [n.ONE, n.ONE], e[He.MULTIPLY] = [n.DST_COLOR, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SCREEN] = [n.ONE, n.ONE_MINUS_SRC_COLOR, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.OVERLAY] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.DARKEN] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.LIGHTEN] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.COLOR_DODGE] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.COLOR_BURN] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.HARD_LIGHT] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SOFT_LIGHT] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.DIFFERENCE] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.EXCLUSION] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.HUE] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SATURATION] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.COLOR] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.LUMINOSITY] = [n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.NONE] = [0, 0], e[He.NORMAL_NPM] = [n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.ADD_NPM] = [n.SRC_ALPHA, n.ONE, n.ONE, n.ONE], e[He.SCREEN_NPM] = [n.SRC_ALPHA, n.ONE_MINUS_SRC_COLOR, n.ONE, n.ONE_MINUS_SRC_ALPHA], e[He.SRC_IN] = [n.DST_ALPHA, n.ZERO], e[He.SRC_OUT] = [n.ONE_MINUS_DST_ALPHA, n.ZERO], e[He.SRC_ATOP] = [n.DST_ALPHA, n.ONE_MINUS_SRC_ALPHA], e[He.DST_OVER] = [n.ONE_MINUS_DST_ALPHA, n.ONE], e[He.DST_IN] = [n.ZERO, n.SRC_ALPHA], e[He.DST_OUT] = [n.ZERO, n.ONE_MINUS_SRC_ALPHA], e[He.DST_ATOP] = [n.ONE_MINUS_DST_ALPHA, n.SRC_ALPHA], e[He.XOR] = [n.ONE_MINUS_DST_ALPHA, n.ONE_MINUS_SRC_ALPHA], e[He.SUBTRACT] = [n.ONE, n.ONE, n.ONE, n.ONE, n.FUNC_REVERSE_SUBTRACT, n.FUNC_ADD], e;
38459
38464
  }
@@ -38741,7 +38746,7 @@ Zo.extension = {
38741
38746
  };
38742
38747
  let lr = Zo;
38743
38748
  Ie.add(lr);
38744
- class Nd {
38749
+ class kd {
38745
38750
  constructor(e) {
38746
38751
  this.texture = e, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = Ae.UNSIGNED_BYTE, this.internalFormat = se.RGBA, this.samplerType = 0;
38747
38752
  }
@@ -38943,8 +38948,8 @@ class OS {
38943
38948
  for (let s = 0; s < t; s++)
38944
38949
  this.boundTextures[s] = null;
38945
38950
  this.emptyTextures = {};
38946
- const i = new Nd(e.createTexture());
38947
- e.bindTexture(e.TEXTURE_2D, i.texture), e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, 1, 1, 0, e.RGBA, e.UNSIGNED_BYTE, new Uint8Array(4)), this.emptyTextures[e.TEXTURE_2D] = i, this.emptyTextures[e.TEXTURE_CUBE_MAP] = new Nd(e.createTexture()), e.bindTexture(e.TEXTURE_CUBE_MAP, this.emptyTextures[e.TEXTURE_CUBE_MAP].texture);
38951
+ const i = new kd(e.createTexture());
38952
+ e.bindTexture(e.TEXTURE_2D, i.texture), e.texImage2D(e.TEXTURE_2D, 0, e.RGBA, 1, 1, 0, e.RGBA, e.UNSIGNED_BYTE, new Uint8Array(4)), this.emptyTextures[e.TEXTURE_2D] = i, this.emptyTextures[e.TEXTURE_CUBE_MAP] = new kd(e.createTexture()), e.bindTexture(e.TEXTURE_CUBE_MAP, this.emptyTextures[e.TEXTURE_CUBE_MAP].texture);
38948
38953
  for (let s = 0; s < 6; s++)
38949
38954
  e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X + s, 0, e.RGBA, 1, 1, 0, e.RGBA, e.UNSIGNED_BYTE, null);
38950
38955
  e.texParameteri(e.TEXTURE_CUBE_MAP, e.TEXTURE_MAG_FILTER, e.LINEAR), e.texParameteri(e.TEXTURE_CUBE_MAP, e.TEXTURE_MIN_FILTER, e.LINEAR);
@@ -39006,7 +39011,7 @@ class OS {
39006
39011
  * @param texture - Texture to initialize
39007
39012
  */
39008
39013
  initTexture(e) {
39009
- const t = new Nd(this.gl.createTexture());
39014
+ const t = new kd(this.gl.createTexture());
39010
39015
  return t.dirtyId = -1, e._glTextures[this.CONTEXT_UID] = t, this.managedTextures.push(e), e.on("dispose", this.destroyTexture, this), t;
39011
39016
  }
39012
39017
  initTextureType(e, t) {
@@ -39173,7 +39178,7 @@ qS.extension = {
39173
39178
  name: "transformFeedback"
39174
39179
  };
39175
39180
  Ie.add(qS);
39176
- class Ec {
39181
+ class Ac {
39177
39182
  constructor(e) {
39178
39183
  this.renderer = e;
39179
39184
  }
@@ -39203,7 +39208,7 @@ class Ec {
39203
39208
  e && ((t = this.element.parentNode) == null || t.removeChild(this.element)), this.renderer = null, this.element = null, this.screen = null;
39204
39209
  }
39205
39210
  }
39206
- Ec.defaultOptions = {
39211
+ Ac.defaultOptions = {
39207
39212
  /**
39208
39213
  * {@link PIXI.IRendererOptions.width}
39209
39214
  * @default 800
@@ -39230,21 +39235,21 @@ Ec.defaultOptions = {
39230
39235
  */
39231
39236
  autoDensity: !1
39232
39237
  }, /** @ignore */
39233
- Ec.extension = {
39238
+ Ac.extension = {
39234
39239
  type: [
39235
39240
  fe.RendererSystem,
39236
39241
  fe.CanvasRendererSystem
39237
39242
  ],
39238
39243
  name: "_view"
39239
39244
  };
39240
- Ie.add(Ec);
39245
+ Ie.add(Ac);
39241
39246
  be.PREFER_ENV = Pr.WEBGL2;
39242
39247
  be.STRICT_TEXTURE_CACHE = !1;
39243
39248
  be.RENDER_OPTIONS = {
39249
+ ...Pc.defaultOptions,
39244
39250
  ...Gc.defaultOptions,
39245
- ..._c.defaultOptions,
39246
- ...Ec.defaultOptions,
39247
- ...Pc.defaultOptions
39251
+ ...Ac.defaultOptions,
39252
+ ...Ec.defaultOptions
39248
39253
  };
39249
39254
  Object.defineProperties(be, {
39250
39255
  /**
@@ -39489,7 +39494,7 @@ Object.defineProperties(be, {
39489
39494
  }
39490
39495
  });
39491
39496
  var _r = /* @__PURE__ */ ((n) => (n[n.INTERACTION = 50] = "INTERACTION", n[n.HIGH = 25] = "HIGH", n[n.NORMAL = 0] = "NORMAL", n[n.LOW = -25] = "LOW", n[n.UTILITY = -50] = "UTILITY", n))(_r || {});
39492
- class kd {
39497
+ class Hd {
39493
39498
  /**
39494
39499
  * Constructor
39495
39500
  * @private
@@ -39545,7 +39550,7 @@ class kd {
39545
39550
  }
39546
39551
  const XS = class Ai {
39547
39552
  constructor() {
39548
- this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new kd(null, null, 1 / 0), this.deltaMS = 1 / Ai.targetFPMS, this.elapsedMS = 1 / Ai.targetFPMS, this._tick = (e) => {
39553
+ this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new Hd(null, null, 1 / 0), this.deltaMS = 1 / Ai.targetFPMS, this.elapsedMS = 1 / Ai.targetFPMS, this._tick = (e) => {
39549
39554
  this._requestId = null, this.started && (this.update(e), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
39550
39555
  };
39551
39556
  }
@@ -39586,7 +39591,7 @@ const XS = class Ai {
39586
39591
  * @returns This instance of a ticker
39587
39592
  */
39588
39593
  add(e, t, i = _r.NORMAL) {
39589
- return this._addListener(new kd(e, t, i));
39594
+ return this._addListener(new Hd(e, t, i));
39590
39595
  }
39591
39596
  /**
39592
39597
  * Add a handler for the tick event which is only execute once.
@@ -39596,7 +39601,7 @@ const XS = class Ai {
39596
39601
  * @returns This instance of a ticker
39597
39602
  */
39598
39603
  addOnce(e, t, i = _r.NORMAL) {
39599
- return this._addListener(new kd(e, t, i, !0));
39604
+ return this._addListener(new Hd(e, t, i, !0));
39600
39605
  }
39601
39606
  /**
39602
39607
  * Internally adds the event handler so that it can be sorted by priority.
@@ -40909,11 +40914,11 @@ Fp.push(
40909
40914
  jS,
40910
40915
  tO,
40911
40916
  af,
40912
- tu,
40917
+ iu,
40913
40918
  eO,
40914
40919
  QK
40915
40920
  );
40916
- class Ac {
40921
+ class Rc {
40917
40922
  constructor() {
40918
40923
  this.minX = 1 / 0, this.minY = 1 / 0, this.maxX = -1 / 0, this.maxY = -1 / 0, this.rect = null, this.updateID = -1;
40919
40924
  }
@@ -41091,7 +41096,7 @@ class Ac {
41091
41096
  }
41092
41097
  class At extends Sl {
41093
41098
  constructor() {
41094
- super(), this.tempDisplayObjectParent = null, this.transform = new um(), this.alpha = 1, this.visible = !0, this.renderable = !0, this.cullable = !1, this.cullArea = null, this.parent = null, this.worldAlpha = 1, this._lastSortedIndex = 0, this._zIndex = 0, this.filterArea = null, this.filters = null, this._enabledFilters = null, this._bounds = new Ac(), this._localBounds = null, this._boundsID = 0, this._boundsRect = null, this._localBoundsRect = null, this._mask = null, this._maskRefCount = 0, this._destroyed = !1, this.isSprite = !1, this.isMask = !1;
41099
+ super(), this.tempDisplayObjectParent = null, this.transform = new um(), this.alpha = 1, this.visible = !0, this.renderable = !0, this.cullable = !1, this.cullArea = null, this.parent = null, this.worldAlpha = 1, this._lastSortedIndex = 0, this._zIndex = 0, this.filterArea = null, this.filters = null, this._enabledFilters = null, this._bounds = new Rc(), this._localBounds = null, this._boundsID = 0, this._boundsRect = null, this._localBoundsRect = null, this._mask = null, this._maskRefCount = 0, this._destroyed = !1, this.isSprite = !1, this.isMask = !1;
41095
41100
  }
41096
41101
  /**
41097
41102
  * Mixes all enumerable properties and methods from a source object to DisplayObject.
@@ -41181,7 +41186,7 @@ class At extends Sl {
41181
41186
  * @returns - The rectangular bounding area.
41182
41187
  */
41183
41188
  getLocalBounds(e) {
41184
- e || (this._localBoundsRect || (this._localBoundsRect = new De()), e = this._localBoundsRect), this._localBounds || (this._localBounds = new Ac());
41189
+ e || (this._localBoundsRect || (this._localBoundsRect = new De()), e = this._localBoundsRect), this._localBounds || (this._localBounds = new Rc());
41185
41190
  const t = this.transform, i = this.parent;
41186
41191
  this.parent = null, this._tempDisplayObjectParent.worldAlpha = (i == null ? void 0 : i.worldAlpha) ?? 1, this.transform = this._tempDisplayObjectParent.transform;
41187
41192
  const s = this._bounds, r = this._boundsID;
@@ -41859,7 +41864,7 @@ class Rr extends Ji {
41859
41864
  * @returns The bounds.
41860
41865
  */
41861
41866
  getLocalBounds(e) {
41862
- return this.children.length === 0 ? (this._localBounds || (this._localBounds = new Ac()), this._localBounds.minX = this._texture.orig.width * -this._anchor._x, this._localBounds.minY = this._texture.orig.height * -this._anchor._y, this._localBounds.maxX = this._texture.orig.width * (1 - this._anchor._x), this._localBounds.maxY = this._texture.orig.height * (1 - this._anchor._y), e || (this._localBoundsRect || (this._localBoundsRect = new De()), e = this._localBoundsRect), this._localBounds.getRectangle(e)) : super.getLocalBounds.call(this, e);
41867
+ return this.children.length === 0 ? (this._localBounds || (this._localBounds = new Rc()), this._localBounds.minX = this._texture.orig.width * -this._anchor._x, this._localBounds.minY = this._texture.orig.height * -this._anchor._y, this._localBounds.maxX = this._texture.orig.width * (1 - this._anchor._x), this._localBounds.maxY = this._texture.orig.height * (1 - this._anchor._y), e || (this._localBoundsRect || (this._localBoundsRect = new De()), e = this._localBoundsRect), this._localBounds.getRectangle(e)) : super.getLocalBounds.call(this, e);
41863
41868
  }
41864
41869
  /**
41865
41870
  * Tests if a point is inside this sprite
@@ -43655,7 +43660,7 @@ class Cl {
43655
43660
  this.propagationStopped = !0;
43656
43661
  }
43657
43662
  }
43658
- class Rc extends Cl {
43663
+ class Kc extends Cl {
43659
43664
  constructor() {
43660
43665
  super(...arguments), this.client = new ke(), this.movement = new ke(), this.offset = new ke(), this.global = new ke(), this.screen = new ke();
43661
43666
  }
@@ -43764,7 +43769,7 @@ class Rc extends Cl {
43764
43769
  throw new Error("Method not implemented.");
43765
43770
  }
43766
43771
  }
43767
- class rn extends Rc {
43772
+ class rn extends Kc {
43768
43773
  constructor() {
43769
43774
  super(...arguments), this.width = 0, this.height = 0, this.isPrimary = !1;
43770
43775
  }
@@ -43777,7 +43782,7 @@ class rn extends Rc {
43777
43782
  throw new Error("getPredictedEvents is not supported!");
43778
43783
  }
43779
43784
  }
43780
- class Na extends Rc {
43785
+ class Na extends Kc {
43781
43786
  constructor() {
43782
43787
  super(...arguments), this.DOM_DELTA_PIXEL = 0, this.DOM_DELTA_LINE = 1, this.DOM_DELTA_PAGE = 2;
43783
43788
  }
@@ -43785,7 +43790,7 @@ class Na extends Rc {
43785
43790
  Na.DOM_DELTA_PIXEL = 0, /** Units specified in lines. */
43786
43791
  Na.DOM_DELTA_LINE = 1, /** Units specified in pages. */
43787
43792
  Na.DOM_DELTA_PAGE = 2;
43788
- const MO = 2048, IO = new ke(), Hd = new ke();
43793
+ const MO = 2048, IO = new ke(), Zd = new ke();
43789
43794
  class wO {
43790
43795
  /**
43791
43796
  * @param rootTarget - The holder of the event boundary.
@@ -43986,7 +43991,7 @@ class wO {
43986
43991
  */
43987
43992
  hitPruneFn(e, t) {
43988
43993
  var i;
43989
- if (e.hitArea && (e.worldTransform.applyInverse(t, Hd), !e.hitArea.contains(Hd.x, Hd.y)))
43994
+ if (e.hitArea && (e.worldTransform.applyInverse(t, Zd), !e.hitArea.contains(Zd.x, Zd.y)))
43990
43995
  return !0;
43991
43996
  if (e._mask) {
43992
43997
  const s = e._mask.isMaskData ? e._mask.maskObject : e._mask;
@@ -44322,7 +44327,7 @@ class wO {
44322
44327
  * @param to
44323
44328
  */
44324
44329
  copyMouseData(e, t) {
44325
- e instanceof Rc && t instanceof Rc && (t.altKey = e.altKey, t.button = e.button, t.buttons = e.buttons, t.client.copyFrom(e.client), t.ctrlKey = e.ctrlKey, t.metaKey = e.metaKey, t.movement.copyFrom(e.movement), t.screen.copyFrom(e.screen), t.shiftKey = e.shiftKey, t.global.copyFrom(e.global));
44330
+ e instanceof Kc && t instanceof Kc && (t.altKey = e.altKey, t.button = e.button, t.buttons = e.buttons, t.client.copyFrom(e.client), t.ctrlKey = e.ctrlKey, t.metaKey = e.metaKey, t.movement.copyFrom(e.movement), t.screen.copyFrom(e.screen), t.shiftKey = e.shiftKey, t.global.copyFrom(e.global));
44326
44331
  }
44327
44332
  /**
44328
44333
  * Copies base {@link PIXI.FederatedEvent} data from {@code from} into {@code to}.
@@ -45631,7 +45636,7 @@ function WO(n) {
45631
45636
  i.push(n);
45632
45637
  return i;
45633
45638
  }
45634
- const Kc = (n) => !Array.isArray(n);
45639
+ const Oc = (n) => !Array.isArray(n);
45635
45640
  class NO {
45636
45641
  constructor() {
45637
45642
  this._parsers = [], this._cache = /* @__PURE__ */ new Map(), this._cacheMap = /* @__PURE__ */ new Map();
@@ -45758,7 +45763,7 @@ class kO {
45758
45763
  async load(e, t) {
45759
45764
  this._parsersValidated || this._validateParsers();
45760
45765
  let i = 0;
45761
- const s = {}, r = Kc(e), a = an(e, (c) => ({
45766
+ const s = {}, r = Oc(e), a = an(e, (c) => ({
45762
45767
  alias: [c],
45763
45768
  src: c
45764
45769
  })), o = a.length, l = a.map(async (c) => {
@@ -45958,7 +45963,7 @@ class eL extends Worker {
45958
45963
  eL.revokeObjectURL = function() {
45959
45964
  Ha && (URL.revokeObjectURL(Ha), Ha = null);
45960
45965
  };
45961
- let Wv = 0, Zd;
45966
+ let Wv = 0, Yd;
45962
45967
  class s3 {
45963
45968
  constructor() {
45964
45969
  this._initialized = !1, this._createdWorkers = 0, this.workerPool = [], this.queue = [], this.resolveHash = {};
@@ -45978,9 +45983,9 @@ class s3 {
45978
45983
  this._initialized || (this._initialized = !0);
45979
45984
  }
45980
45985
  getWorker() {
45981
- Zd === void 0 && (Zd = navigator.hardwareConcurrency || 4);
45986
+ Yd === void 0 && (Yd = navigator.hardwareConcurrency || 4);
45982
45987
  let e = this.workerPool.pop();
45983
- return !e && this._createdWorkers < Zd && (this._createdWorkers++, e = new eL(), e.addEventListener("message", (t) => {
45988
+ return !e && this._createdWorkers < Yd && (this._createdWorkers++, e = new eL(), e.addEventListener("message", (t) => {
45984
45989
  this.complete(t.data), this.returnWorker(t.target), this.next();
45985
45990
  })), e;
45986
45991
  }
@@ -46036,7 +46041,7 @@ async function o3(n) {
46036
46041
  const t = await e.blob();
46037
46042
  return await createImageBitmap(t);
46038
46043
  }
46039
- const au = {
46044
+ const ou = {
46040
46045
  name: "loadTextures",
46041
46046
  extension: {
46042
46047
  type: fe.LoadParser,
@@ -46067,7 +46072,7 @@ const au = {
46067
46072
  n.destroy(!0);
46068
46073
  }
46069
46074
  };
46070
- Ie.add(au);
46075
+ Ie.add(ou);
46071
46076
  const l3 = ".svg", h3 = "image/svg+xml", c3 = {
46072
46077
  extension: {
46073
46078
  type: fe.LoadParser,
@@ -46093,7 +46098,7 @@ const l3 = ".svg", h3 = "image/svg+xml", c3 = {
46093
46098
  async load(n, e) {
46094
46099
  return (await be.ADAPTER.fetch(n)).text();
46095
46100
  },
46096
- unload: au.unload
46101
+ unload: ou.unload
46097
46102
  };
46098
46103
  Ie.add(c3);
46099
46104
  const u3 = [".mp4", ".m4v", ".webm", ".ogv"], d3 = [
@@ -46437,7 +46442,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), a.pu
46437
46442
  * @returns All the bundles assets or a hash of assets for each bundle specified
46438
46443
  */
46439
46444
  resolveBundle(e) {
46440
- const t = Kc(e);
46445
+ const t = Oc(e);
46441
46446
  e = an(e);
46442
46447
  const i = {};
46443
46448
  return e.forEach((s) => {
@@ -46468,7 +46473,7 @@ Please use Assets.add({ alias, src, data, format, loadParser }) instead.`), a.pu
46468
46473
  return t.src;
46469
46474
  }
46470
46475
  resolve(e) {
46471
- const t = Kc(e);
46476
+ const t = Oc(e);
46472
46477
  e = an(e);
46473
46478
  const i = {};
46474
46479
  return e.forEach((s) => {
@@ -46570,7 +46575,7 @@ class m3 {
46570
46575
  }
46571
46576
  async load(e, t) {
46572
46577
  this._initialized || await this.init();
46573
- const i = Kc(e), s = an(e).map((o) => {
46578
+ const i = Oc(e), s = an(e).map((o) => {
46574
46579
  if (typeof o != "string") {
46575
46580
  const l = this.resolver.getAlias(o);
46576
46581
  return l.some((c) => !this.resolver.hasKey(c)) && this.add(o), Array.isArray(l) ? l[0] : l;
@@ -46835,7 +46840,7 @@ class m3 {
46835
46840
  * @see {@link Assets.setPreferences}
46836
46841
  */
46837
46842
  get preferWorkers() {
46838
- return au.config.preferWorkers;
46843
+ return ou.config.preferWorkers;
46839
46844
  }
46840
46845
  set preferWorkers(e) {
46841
46846
  rt("7.2.0", "Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."), this.setPreferences({ preferWorkers: e });
@@ -46959,7 +46964,7 @@ const C3 = {
46959
46964
  Ie.add(C3);
46960
46965
  const T3 = {
46961
46966
  extension: fe.ResolveParser,
46962
- test: au.test,
46967
+ test: ou.test,
46963
46968
  parse: (n) => {
46964
46969
  var e;
46965
46970
  return {
@@ -46971,7 +46976,7 @@ const T3 = {
46971
46976
  };
46972
46977
  Ie.add(T3);
46973
46978
  var si = /* @__PURE__ */ ((n) => (n[n.COMPRESSED_RGB_S3TC_DXT1_EXT = 33776] = "COMPRESSED_RGB_S3TC_DXT1_EXT", n[n.COMPRESSED_RGBA_S3TC_DXT1_EXT = 33777] = "COMPRESSED_RGBA_S3TC_DXT1_EXT", n[n.COMPRESSED_RGBA_S3TC_DXT3_EXT = 33778] = "COMPRESSED_RGBA_S3TC_DXT3_EXT", n[n.COMPRESSED_RGBA_S3TC_DXT5_EXT = 33779] = "COMPRESSED_RGBA_S3TC_DXT5_EXT", n[n.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 35917] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT", n[n.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 35918] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT", n[n.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 35919] = "COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT", n[n.COMPRESSED_SRGB_S3TC_DXT1_EXT = 35916] = "COMPRESSED_SRGB_S3TC_DXT1_EXT", n[n.COMPRESSED_R11_EAC = 37488] = "COMPRESSED_R11_EAC", n[n.COMPRESSED_SIGNED_R11_EAC = 37489] = "COMPRESSED_SIGNED_R11_EAC", n[n.COMPRESSED_RG11_EAC = 37490] = "COMPRESSED_RG11_EAC", n[n.COMPRESSED_SIGNED_RG11_EAC = 37491] = "COMPRESSED_SIGNED_RG11_EAC", n[n.COMPRESSED_RGB8_ETC2 = 37492] = "COMPRESSED_RGB8_ETC2", n[n.COMPRESSED_RGBA8_ETC2_EAC = 37496] = "COMPRESSED_RGBA8_ETC2_EAC", n[n.COMPRESSED_SRGB8_ETC2 = 37493] = "COMPRESSED_SRGB8_ETC2", n[n.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 37497] = "COMPRESSED_SRGB8_ALPHA8_ETC2_EAC", n[n.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37494] = "COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2", n[n.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 37495] = "COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2", n[n.COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 35840] = "COMPRESSED_RGB_PVRTC_4BPPV1_IMG", n[n.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 35842] = "COMPRESSED_RGBA_PVRTC_4BPPV1_IMG", n[n.COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 35841] = "COMPRESSED_RGB_PVRTC_2BPPV1_IMG", n[n.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 35843] = "COMPRESSED_RGBA_PVRTC_2BPPV1_IMG", n[n.COMPRESSED_RGB_ETC1_WEBGL = 36196] = "COMPRESSED_RGB_ETC1_WEBGL", n[n.COMPRESSED_RGB_ATC_WEBGL = 35986] = "COMPRESSED_RGB_ATC_WEBGL", n[n.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 35987] = "COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL", n[n.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 34798] = "COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL", n[n.COMPRESSED_RGBA_ASTC_4x4_KHR = 37808] = "COMPRESSED_RGBA_ASTC_4x4_KHR", n[n.COMPRESSED_RGBA_BPTC_UNORM_EXT = 36492] = "COMPRESSED_RGBA_BPTC_UNORM_EXT", n[n.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT = 36493] = "COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT", n[n.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT = 36494] = "COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT", n[n.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT = 36495] = "COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT", n))(si || {});
46974
- const Oc = {
46979
+ const qc = {
46975
46980
  // WEBGL_compressed_texture_s3tc
46976
46981
  33776: 0.5,
46977
46982
  33777: 0.5,
@@ -47051,7 +47056,7 @@ const M3 = {
47051
47056
  remove: async (n) => (Ca || Hv(), n.filter((e) => !(e in Ca)))
47052
47057
  };
47053
47058
  Ie.add(M3);
47054
- class I3 extends tu {
47059
+ class I3 extends iu {
47055
47060
  /**
47056
47061
  * @param source - The buffer/URL of the texture file.
47057
47062
  * @param {PIXI.IBlobResourceOptions} [options]
@@ -47164,18 +47169,18 @@ class Cr extends I3 {
47164
47169
  */
47165
47170
  static _createLevelBuffers(e, t, i, s, r, a, o) {
47166
47171
  const l = new Array(i);
47167
- let c = e.byteOffset, d = a, h = o, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p * Oc[t];
47172
+ let c = e.byteOffset, d = a, h = o, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p * qc[t];
47168
47173
  for (let y = 0; y < i; y++)
47169
47174
  l[y] = {
47170
47175
  levelID: y,
47171
47176
  levelWidth: i > 1 ? d : u,
47172
47177
  levelHeight: i > 1 ? h : p,
47173
47178
  levelBuffer: new Uint8Array(e.buffer, c, m)
47174
- }, c += m, d = d >> 1 || 1, h = h >> 1 || 1, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p * Oc[t];
47179
+ }, c += m, d = d >> 1 || 1, h = h >> 1 || 1, u = d + s - 1 & ~(s - 1), p = h + r - 1 & ~(r - 1), m = u * p * qc[t];
47175
47180
  return l;
47176
47181
  }
47177
47182
  }
47178
- const Yd = 4, Wh = 124, w3 = 32, Zv = 20, _3 = 542327876, Nh = {
47183
+ const Dd = 4, Wh = 124, w3 = 32, Zv = 20, _3 = 542327876, Nh = {
47179
47184
  SIZE: 1,
47180
47185
  FLAGS: 2,
47181
47186
  HEIGHT: 3,
@@ -47233,7 +47238,7 @@ function Z3(n) {
47233
47238
  if (o & A3) {
47234
47239
  const l = a[G3.FOURCC];
47235
47240
  if (l !== W3) {
47236
- const v = k3[l], b = Yd + Wh, x = new Uint8Array(n, b);
47241
+ const v = k3[l], b = Dd + Wh, x = new Uint8Array(n, b);
47237
47242
  return [new Cr(x, {
47238
47243
  format: v,
47239
47244
  width: s,
@@ -47242,7 +47247,7 @@ function Z3(n) {
47242
47247
  // CompressedTextureResource will separate the levelBuffers for us!
47243
47248
  })];
47244
47249
  }
47245
- const c = Yd + Wh, d = new Uint32Array(
47250
+ const c = Dd + Wh, d = new Uint32Array(
47246
47251
  e.buffer,
47247
47252
  c,
47248
47253
  Zv / Uint32Array.BYTES_PER_ELEMENT
@@ -47253,11 +47258,11 @@ function Z3(n) {
47253
47258
  throw new Error("DDSParser does not support cubemap textures");
47254
47259
  if (u === 6)
47255
47260
  throw new Error("DDSParser does not supported 3D texture data");
47256
- const g = new Array(), f = Yd + Wh + Zv;
47261
+ const g = new Array(), f = Dd + Wh + Zv;
47257
47262
  if (m === 1)
47258
47263
  g.push(new Uint8Array(n, f));
47259
47264
  else {
47260
- const v = Oc[y];
47265
+ const v = qc[y];
47261
47266
  let b = 0, x = s, S = i;
47262
47267
  for (let T = 0; T < r; T++) {
47263
47268
  const I = Math.max(1, x + 3 & -4), L = Math.max(1, S + 3 & -4), M = I * L * v;
@@ -47326,7 +47331,7 @@ function F3(n, e, t = !1) {
47326
47331
  let x = l * c;
47327
47332
  r === 0 && (x = f * v);
47328
47333
  let S;
47329
- if (r !== 0 ? Dv[r] ? S = Dv[r] * D3[a] : S = j3[r] : S = Oc[o], S === void 0)
47334
+ if (r !== 0 ? Dv[r] ? S = Dv[r] * D3[a] : S = j3[r] : S = qc[o], S === void 0)
47330
47335
  throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");
47331
47336
  const C = t ? V3(i, m, s) : null;
47332
47337
  let T = x * S, I = l, L = c, M = f, K = v, P = vf + m;
@@ -47361,7 +47366,7 @@ function F3(n, e, t = !1) {
47361
47366
  G[0].levelBuffer.byteOffset,
47362
47367
  G[0].levelBuffer.byteLength / 4
47363
47368
  )), {
47364
- resource: new tu(
47369
+ resource: new iu(
47365
47370
  w,
47366
47371
  {
47367
47372
  width: G[0].levelWidth,
@@ -47665,7 +47670,7 @@ iL.extension = {
47665
47670
  };
47666
47671
  let tq = iL;
47667
47672
  Ie.add(tq);
47668
- const qc = {
47673
+ const Xc = {
47669
47674
  build(n) {
47670
47675
  const e = n.points;
47671
47676
  let t, i, s, r, a, o;
@@ -47811,10 +47816,10 @@ const nL = {
47811
47816
  }
47812
47817
  }, nq = {
47813
47818
  build(n) {
47814
- qc.build(n);
47819
+ Xc.build(n);
47815
47820
  },
47816
47821
  triangulate(n, e) {
47817
- qc.triangulate(n, e);
47822
+ Xc.triangulate(n, e);
47818
47823
  }
47819
47824
  };
47820
47825
  var Wi = /* @__PURE__ */ ((n) => (n.MITER = "miter", n.BEVEL = "bevel", n.ROUND = "round", n))(Wi || {}), Ks = /* @__PURE__ */ ((n) => (n.BUTT = "butt", n.ROUND = "round", n.SQUARE = "square", n))(Ks || {});
@@ -47876,7 +47881,7 @@ class Fv {
47876
47881
  static arc(e, t, i, s, r, a, o, l, c) {
47877
47882
  const d = o - a, h = ao._segmentsCount(
47878
47883
  Math.abs(d) * r,
47879
- Math.ceil(Math.abs(d) / wc) * 40
47884
+ Math.ceil(Math.abs(d) / _c) * 40
47880
47885
  ), u = d / (h * 2), p = u * 2, m = Math.cos(u), y = Math.sin(u), g = h - 1, f = g % 1 / g;
47881
47886
  for (let v = 0; v <= g; ++v) {
47882
47887
  const b = v + f * v, x = u + a + p * b, S = Math.cos(x), C = -Math.sin(x);
@@ -48297,14 +48302,14 @@ class gm {
48297
48302
  }
48298
48303
  }
48299
48304
  }
48300
- const Dd = {
48305
+ const jd = {
48301
48306
  [ri.POLY]: nL,
48302
- [ri.CIRC]: qc,
48303
- [ri.ELIP]: qc,
48307
+ [ri.CIRC]: Xc,
48308
+ [ri.ELIP]: Xc,
48304
48309
  [ri.RECT]: iq,
48305
48310
  [ri.RREC]: nq
48306
48311
  }, Vv = [], Zh = [];
48307
- class Xc {
48312
+ class zc {
48308
48313
  /**
48309
48314
  * @param {PIXI.Circle|PIXI.Ellipse|PIXI.Polygon|PIXI.Rectangle|PIXI.RoundedRectangle} shape - The shape object to draw.
48310
48315
  * @param fillStyle - the width of the line to draw
@@ -48319,7 +48324,7 @@ class Xc {
48319
48324
  * @returns - Cloned GraphicsData object
48320
48325
  */
48321
48326
  clone() {
48322
- return new Xc(
48327
+ return new zc(
48323
48328
  this.shape,
48324
48329
  this.fillStyle,
48325
48330
  this.lineStyle,
@@ -48334,7 +48339,7 @@ class Xc {
48334
48339
  const ga = new ke(), sL = class rL extends hS {
48335
48340
  // eslint-disable-next-line @typescript-eslint/no-useless-constructor
48336
48341
  constructor() {
48337
- super(), this.closePointEps = 1e-4, this.boundsPadding = 0, this.uvsFloat32 = null, this.indicesUint16 = null, this.batchable = !1, this.points = [], this.colors = [], this.uvs = [], this.indices = [], this.textureIds = [], this.graphicsData = [], this.drawCalls = [], this.batchDirty = -1, this.batches = [], this.dirty = 0, this.cacheDirty = -1, this.clearDirty = 0, this.shapeIndex = 0, this._bounds = new Ac(), this.boundsDirty = -1;
48342
+ super(), this.closePointEps = 1e-4, this.boundsPadding = 0, this.uvsFloat32 = null, this.indicesUint16 = null, this.batchable = !1, this.points = [], this.colors = [], this.uvs = [], this.indices = [], this.textureIds = [], this.graphicsData = [], this.drawCalls = [], this.batchDirty = -1, this.batches = [], this.dirty = 0, this.cacheDirty = -1, this.clearDirty = 0, this.shapeIndex = 0, this._bounds = new Rc(), this.boundsDirty = -1;
48338
48343
  }
48339
48344
  /**
48340
48345
  * Get the current bounds of the graphic geometry.
@@ -48376,7 +48381,7 @@ const ga = new ke(), sL = class rL extends hS {
48376
48381
  * @returns - Returns geometry for chaining.
48377
48382
  */
48378
48383
  drawShape(e, t = null, i = null, s = null) {
48379
- const r = new Xc(e, t, i, s);
48384
+ const r = new zc(e, t, i, s);
48380
48385
  return this.graphicsData.push(r), this.dirty++, this;
48381
48386
  }
48382
48387
  /**
@@ -48388,7 +48393,7 @@ const ga = new ke(), sL = class rL extends hS {
48388
48393
  drawHole(e, t = null) {
48389
48394
  if (!this.graphicsData.length)
48390
48395
  return null;
48391
- const i = new Xc(e, null, null, t), s = this.graphicsData[this.graphicsData.length - 1];
48396
+ const i = new zc(e, null, null, t), s = this.graphicsData[this.graphicsData.length - 1];
48392
48397
  return i.lineStyle = s.lineStyle, s.holes.push(i), this.dirty++, this;
48393
48398
  }
48394
48399
  /** Destroys the GraphicsGeometry object. */
@@ -48440,7 +48445,7 @@ const ga = new ke(), sL = class rL extends hS {
48440
48445
  for (let l = this.shapeIndex; l < t.length; l++) {
48441
48446
  this.shapeIndex++;
48442
48447
  const c = t[l], d = c.fillStyle, h = c.lineStyle;
48443
- Dd[c.type].build(c), c.matrix && this.transformPoints(c.points, c.matrix), (d.visible || h.visible) && this.processHoles(c.holes);
48448
+ jd[c.type].build(c), c.matrix && this.transformPoints(c.points, c.matrix), (d.visible || h.visible) && this.processHoles(c.holes);
48444
48449
  for (let u = 0; u < 2; u++) {
48445
48450
  const p = u === 0 ? d : h;
48446
48451
  if (!p.visible)
@@ -48533,7 +48538,7 @@ const ga = new ke(), sL = class rL extends hS {
48533
48538
  * @param data
48534
48539
  */
48535
48540
  processFill(e) {
48536
- e.holes.length ? nL.triangulate(e, this) : Dd[e.type].triangulate(e, this);
48541
+ e.holes.length ? nL.triangulate(e, this) : jd[e.type].triangulate(e, this);
48537
48542
  }
48538
48543
  /**
48539
48544
  * Process line part of Graphics.
@@ -48551,7 +48556,7 @@ const ga = new ke(), sL = class rL extends hS {
48551
48556
  processHoles(e) {
48552
48557
  for (let t = 0; t < e.length; t++) {
48553
48558
  const i = e[t];
48554
- Dd[i.type].build(i), i.matrix && this.transformPoints(i.points, i.matrix);
48559
+ jd[i.type].build(i), i.matrix && this.transformPoints(i.points, i.matrix);
48555
48560
  }
48556
48561
  }
48557
48562
  /** Update the local bounds of the object. Expensive to use performance-wise. */
@@ -48639,13 +48644,13 @@ const ga = new ke(), sL = class rL extends hS {
48639
48644
  };
48640
48645
  sL.BATCHABLE_SIZE = 100;
48641
48646
  let oq = sL;
48642
- class ou {
48647
+ class lu {
48643
48648
  constructor() {
48644
48649
  this.color = 16777215, this.alpha = 1, this.texture = Me.WHITE, this.matrix = null, this.visible = !1, this.reset();
48645
48650
  }
48646
48651
  /** Clones the object */
48647
48652
  clone() {
48648
- const e = new ou();
48653
+ const e = new lu();
48649
48654
  return e.color = this.color, e.alpha = this.alpha, e.texture = this.texture, e.matrix = this.matrix, e.visible = this.visible, e;
48650
48655
  }
48651
48656
  /** Reset */
@@ -48657,7 +48662,7 @@ class ou {
48657
48662
  this.texture = null, this.matrix = null;
48658
48663
  }
48659
48664
  }
48660
- class ym extends ou {
48665
+ class ym extends lu {
48661
48666
  constructor() {
48662
48667
  super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Ks.BUTT, this.join = Wi.MITER, this.miterLimit = 10;
48663
48668
  }
@@ -48671,12 +48676,12 @@ class ym extends ou {
48671
48676
  super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = Ks.BUTT, this.join = Wi.MITER, this.miterLimit = 10;
48672
48677
  }
48673
48678
  }
48674
- const jd = {}, bf = class rc extends Ji {
48679
+ const Fd = {}, bf = class rc extends Ji {
48675
48680
  /**
48676
48681
  * @param geometry - Geometry to use, if omitted will create a new GraphicsGeometry instance.
48677
48682
  */
48678
48683
  constructor(e = null) {
48679
- super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new ou(), this._lineStyle = new ym(), this._matrix = null, this._holeMode = !1, this.state = zn.for2d(), this._geometry = e || new oq(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new Lt(16777215), this.blendMode = He.NORMAL;
48684
+ super(), this.shader = null, this.pluginName = "batch", this.currentPath = null, this.batches = [], this.batchTint = -1, this.batchDirty = -1, this.vertexData = null, this._fillStyle = new lu(), this._lineStyle = new ym(), this._matrix = null, this._holeMode = !1, this.state = zn.for2d(), this._geometry = e || new oq(), this._geometry.refCount++, this._transformID = -1, this._tintColor = new Lt(16777215), this.blendMode = He.NORMAL;
48680
48685
  }
48681
48686
  /**
48682
48687
  * Includes vertex positions, face indices, normals, colors, UVs, and
@@ -48883,7 +48888,7 @@ const jd = {}, bf = class rc extends Ji {
48883
48888
  arc(e, t, i, s, r, a = !1) {
48884
48889
  if (s === r)
48885
48890
  return this;
48886
- if (!a && r <= s ? r += wc : a && s <= r && (s += wc), r - s === 0)
48891
+ if (!a && r <= s ? r += _c : a && s <= r && (s += _c), r - s === 0)
48887
48892
  return this;
48888
48893
  const o = e + Math.cos(s) * i, l = t + Math.sin(s) * i, c = this._geometry.closePointEps;
48889
48894
  let d = this.currentPath ? this.currentPath.points : null;
@@ -48960,7 +48965,7 @@ const jd = {}, bf = class rc extends Ji {
48960
48965
  * @returns - This Graphics object. Good for chaining method calls
48961
48966
  */
48962
48967
  drawRoundedRect(e, t, i, s, r) {
48963
- return this.drawShape(new su(e, t, i, s, r));
48968
+ return this.drawShape(new ru(e, t, i, s, r));
48964
48969
  }
48965
48970
  /**
48966
48971
  * Draws a circle.
@@ -48970,7 +48975,7 @@ const jd = {}, bf = class rc extends Ji {
48970
48975
  * @returns - This Graphics object. Good for chaining method calls
48971
48976
  */
48972
48977
  drawCircle(e, t, i) {
48973
- return this.drawShape(new iu(e, t, i));
48978
+ return this.drawShape(new nu(e, t, i));
48974
48979
  }
48975
48980
  /**
48976
48981
  * Draws an ellipse.
@@ -48981,7 +48986,7 @@ const jd = {}, bf = class rc extends Ji {
48981
48986
  * @returns - This Graphics object. Good for chaining method calls
48982
48987
  */
48983
48988
  drawEllipse(e, t, i, s) {
48984
- return this.drawShape(new nu(e, t, i, s));
48989
+ return this.drawShape(new su(e, t, i, s));
48985
48990
  }
48986
48991
  /**
48987
48992
  * Draws a polygon using the given path.
@@ -49106,7 +49111,7 @@ const jd = {}, bf = class rc extends Ji {
49106
49111
  let t = this.shader;
49107
49112
  const i = this.pluginName;
49108
49113
  if (!t) {
49109
- if (!jd[i]) {
49114
+ if (!Fd[i]) {
49110
49115
  const { maxTextures: s } = e.plugins[i], r = new Int32Array(s);
49111
49116
  for (let l = 0; l < s; l++)
49112
49117
  r[l] = l;
@@ -49115,9 +49120,9 @@ const jd = {}, bf = class rc extends Ji {
49115
49120
  translationMatrix: new Tt(),
49116
49121
  default: cn.from({ uSamplers: r }, !0)
49117
49122
  }, o = e.plugins[i]._shader.program;
49118
- jd[i] = new Kn(o, a);
49123
+ Fd[i] = new Kn(o, a);
49119
49124
  }
49120
- t = jd[i];
49125
+ t = Fd[i];
49121
49126
  }
49122
49127
  return t;
49123
49128
  }
@@ -49239,7 +49244,7 @@ class lq {
49239
49244
  (!this.data || this.data.length !== t.length) && (this.data = new Float32Array(t.length)), this.uvMatrix.multiplyUvs(t, this.data), this._updateID++;
49240
49245
  }
49241
49246
  }
49242
- const Fd = new ke(), Uv = new Lr(), oL = class lL extends Ji {
49247
+ const Bd = new ke(), Uv = new Lr(), oL = class lL extends Ji {
49243
49248
  /**
49244
49249
  * @param geometry - The geometry the mesh will use.
49245
49250
  * @param {PIXI.MeshMaterial} shader - The shader the mesh will use.
@@ -49398,11 +49403,11 @@ const Fd = new ke(), Uv = new Lr(), oL = class lL extends Ji {
49398
49403
  containsPoint(e) {
49399
49404
  if (!this.getBounds().contains(e.x, e.y))
49400
49405
  return !1;
49401
- this.worldTransform.applyInverse(e, Fd);
49406
+ this.worldTransform.applyInverse(e, Bd);
49402
49407
  const t = this.geometry.getBuffer("aVertexPosition").data, i = Uv.points, s = this.geometry.getIndex().data, r = s.length, a = this.drawMode === 4 ? 3 : 1;
49403
49408
  for (let o = 0; o + 2 < r; o += a) {
49404
49409
  const l = s[o] * 2, c = s[o + 1] * 2, d = s[o + 2] * 2;
49405
- if (i[0] = t[l], i[1] = t[l + 1], i[2] = t[c], i[3] = t[c + 1], i[4] = t[d], i[5] = t[d + 1], Uv.contains(Fd.x, Fd.y))
49410
+ if (i[0] = t[l], i[1] = t[l + 1], i[2] = t[c], i[3] = t[c + 1], i[4] = t[d], i[5] = t[d + 1], Uv.contains(Bd.x, Bd.y))
49406
49411
  return !0;
49407
49412
  }
49408
49413
  return !1;
@@ -49668,7 +49673,7 @@ void main(void){
49668
49673
  vColor = aColor * uColor;
49669
49674
  }
49670
49675
  `;
49671
- class hL extends ru {
49676
+ class hL extends au {
49672
49677
  /**
49673
49678
  * @param renderer - The renderer this sprite batch works for.
49674
49679
  */
@@ -49844,7 +49849,7 @@ hL.extension = {
49844
49849
  type: fe.RendererPlugin
49845
49850
  };
49846
49851
  Ie.add(hL);
49847
- var lu = /* @__PURE__ */ ((n) => (n[n.LINEAR_VERTICAL = 0] = "LINEAR_VERTICAL", n[n.LINEAR_HORIZONTAL = 1] = "LINEAR_HORIZONTAL", n))(lu || {});
49852
+ var hu = /* @__PURE__ */ ((n) => (n[n.LINEAR_VERTICAL = 0] = "LINEAR_VERTICAL", n[n.LINEAR_HORIZONTAL = 1] = "LINEAR_HORIZONTAL", n))(hu || {});
49848
49853
  const Yh = {
49849
49854
  // TextMetrics requires getImageData readback for measuring fonts.
49850
49855
  willReadFrequently: !0
@@ -50275,7 +50280,7 @@ const fq = [
50275
50280
  * for the default values.
50276
50281
  */
50277
50282
  constructor(e) {
50278
- this.styleID = 0, this.reset(), Jd(this, e, e);
50283
+ this.styleID = 0, this.reset(), Vd(this, e, e);
50279
50284
  }
50280
50285
  /**
50281
50286
  * Creates a new TextStyle object with the same values as this one.
@@ -50285,11 +50290,11 @@ const fq = [
50285
50290
  */
50286
50291
  clone() {
50287
50292
  const e = {};
50288
- return Jd(e, this, jo.defaultStyle), new jo(e);
50293
+ return Vd(e, this, jo.defaultStyle), new jo(e);
50289
50294
  }
50290
50295
  /** Resets all properties to the defaults specified in TextStyle.prototype._default */
50291
50296
  reset() {
50292
- Jd(this, jo.defaultStyle, jo.defaultStyle);
50297
+ Vd(this, jo.defaultStyle, jo.defaultStyle);
50293
50298
  }
50294
50299
  /**
50295
50300
  * Alignment for multiline text, does not affect single line text.
@@ -50342,7 +50347,7 @@ const fq = [
50342
50347
  return this._dropShadowColor;
50343
50348
  }
50344
50349
  set dropShadowColor(e) {
50345
- const t = Bd(e);
50350
+ const t = Jd(e);
50346
50351
  this._dropShadowColor !== t && (this._dropShadowColor = t, this.styleID++);
50347
50352
  }
50348
50353
  /** Set a distance of the drop shadow. */
@@ -50364,7 +50369,7 @@ const fq = [
50364
50369
  return this._fill;
50365
50370
  }
50366
50371
  set fill(e) {
50367
- const t = Bd(e);
50372
+ const t = Jd(e);
50368
50373
  this._fill !== t && (this._fill = t, this.styleID++);
50369
50374
  }
50370
50375
  /**
@@ -50502,7 +50507,7 @@ const fq = [
50502
50507
  return this._stroke;
50503
50508
  }
50504
50509
  set stroke(e) {
50505
- const t = Bd(e);
50510
+ const t = Jd(e);
50506
50511
  this._stroke !== t && (this._stroke = t, this.styleID++);
50507
50512
  }
50508
50513
  /**
@@ -50619,7 +50624,7 @@ cL.defaultStyle = {
50619
50624
  * @type {PIXI.TEXT_GRADIENT}
50620
50625
  * @default PIXI.TEXT_GRADIENT.LINEAR_VERTICAL
50621
50626
  */
50622
- fillGradientType: lu.LINEAR_VERTICAL,
50627
+ fillGradientType: hu.LINEAR_VERTICAL,
50623
50628
  /**
50624
50629
  * See {@link PIXI.TextStyle.fillGradientStops}
50625
50630
  * @type {number[]}
@@ -50691,7 +50696,7 @@ cL.defaultStyle = {
50691
50696
  wordWrapWidth: 100
50692
50697
  };
50693
50698
  let Ns = cL;
50694
- function Bd(n) {
50699
+ function Jd(n) {
50695
50700
  const e = Lt.shared, t = (i) => {
50696
50701
  const s = e.setValue(i);
50697
50702
  return s.alpha === 1 ? s.toHex() : s.toRgbaString();
@@ -50706,7 +50711,7 @@ function mq(n, e) {
50706
50711
  return !1;
50707
50712
  return !0;
50708
50713
  }
50709
- function Jd(n, e, t) {
50714
+ function Vd(n, e, t) {
50710
50715
  for (const i in t)
50711
50716
  Array.isArray(e[i]) ? n[i] = e[i].slice() : n[i] = e[i];
50712
50717
  }
@@ -50867,7 +50872,7 @@ const gq = {
50867
50872
  for (let p = 1; p < u; ++p)
50868
50873
  h.push(p / u);
50869
50874
  }
50870
- if (d.unshift(s[0]), h.unshift(0), d.push(s[s.length - 1]), h.push(1), e.fillGradientType === lu.LINEAR_VERTICAL) {
50875
+ if (d.unshift(s[0]), h.unshift(0), d.push(s[s.length - 1]), h.push(1), e.fillGradientType === hu.LINEAR_VERTICAL) {
50871
50876
  r = this.context.createLinearGradient(l / 2, o, l / 2, c + o);
50872
50877
  const u = i.fontProperties.fontSize + e.strokeThickness;
50873
50878
  for (let p = 0; p < t.length; p++) {
@@ -51294,7 +51299,7 @@ void main(void)
51294
51299
  }
51295
51300
  `;
51296
51301
  const Dh = new Tt();
51297
- class yL extends ru {
51302
+ class yL extends au {
51298
51303
  /**
51299
51304
  * constructor for renderer
51300
51305
  * @param {PIXI.Renderer} renderer - The renderer this tiling awesomeness works for.
@@ -51557,7 +51562,7 @@ const Aq = {
51557
51562
  }
51558
51563
  };
51559
51564
  Ie.add(Aq);
51560
- class zc {
51565
+ class Wc {
51561
51566
  constructor() {
51562
51567
  this.info = [], this.common = [], this.page = [], this.char = [], this.kerning = [], this.distanceField = [];
51563
51568
  }
@@ -51595,7 +51600,7 @@ class ac {
51595
51600
  }
51596
51601
  i[a].push(l);
51597
51602
  }
51598
- const s = new zc();
51603
+ const s = new Wc();
51599
51604
  return i.info.forEach((r) => s.info.push({
51600
51605
  face: r.face,
51601
51606
  size: parseInt(r.size, 10)
@@ -51640,7 +51645,7 @@ class Lf {
51640
51645
  * @returns - Data to use for BitmapFont
51641
51646
  */
51642
51647
  static parse(e) {
51643
- const t = new zc(), i = e.getElementsByTagName("info"), s = e.getElementsByTagName("common"), r = e.getElementsByTagName("page"), a = e.getElementsByTagName("char"), o = e.getElementsByTagName("kerning"), l = e.getElementsByTagName("distanceField");
51648
+ const t = new Wc(), i = e.getElementsByTagName("info"), s = e.getElementsByTagName("common"), r = e.getElementsByTagName("page"), a = e.getElementsByTagName("char"), o = e.getElementsByTagName("kerning"), l = e.getElementsByTagName("distanceField");
51644
51649
  for (let c = 0; c < i.length; c++)
51645
51650
  t.info.push({
51646
51651
  face: i[c].getAttribute("face"),
@@ -51701,15 +51706,15 @@ class Cf {
51701
51706
  return Lf.parse(be.ADAPTER.parseXML(e));
51702
51707
  }
51703
51708
  }
51704
- const Vd = [
51709
+ const Ud = [
51705
51710
  ac,
51706
51711
  Lf,
51707
51712
  Cf
51708
51713
  ];
51709
51714
  function Rq(n) {
51710
- for (let e = 0; e < Vd.length; e++)
51711
- if (Vd[e].test(n))
51712
- return Vd[e];
51715
+ for (let e = 0; e < Ud.length; e++)
51716
+ if (Ud[e].test(n))
51717
+ return Ud[e];
51713
51718
  return null;
51714
51719
  }
51715
51720
  function Kq(n, e, t, i, s, r) {
@@ -51726,7 +51731,7 @@ function Kq(n, e, t, i, s, r) {
51726
51731
  for (let y = 1; y < m; ++y)
51727
51732
  p.push(y / m);
51728
51733
  }
51729
- if (u.unshift(a[0]), p.unshift(0), u.push(a[a.length - 1]), p.push(1), t.fillGradientType === lu.LINEAR_VERTICAL) {
51734
+ if (u.unshift(a[0]), p.unshift(0), u.push(a[a.length - 1]), p.push(1), t.fillGradientType === hu.LINEAR_VERTICAL) {
51730
51735
  o = e.createLinearGradient(d / 2, c, d / 2, h + c);
51731
51736
  let m = 0;
51732
51737
  const y = (r.fontProperties.fontSize + t.strokeThickness) / h;
@@ -51852,7 +51857,7 @@ const Cs = class Sn {
51852
51857
  */
51853
51858
  static install(e, t, i) {
51854
51859
  let s;
51855
- if (e instanceof zc)
51860
+ if (e instanceof Wc)
51856
51861
  s = e;
51857
51862
  else {
51858
51863
  const a = Rq(e);
@@ -51921,7 +51926,7 @@ const Cs = class Sn {
51921
51926
  textureWidth: o,
51922
51927
  textureHeight: l,
51923
51928
  ...c
51924
- } = Object.assign({}, Sn.defaultOptions, i), d = qq(s), h = t instanceof Ns ? t : new Ns(t), u = o, p = new zc();
51929
+ } = Object.assign({}, Sn.defaultOptions, i), d = qq(s), h = t instanceof Ns ? t : new Ns(t), u = o, p = new Wc();
51925
51930
  p.info[0] = {
51926
51931
  face: h.fontFamily,
51927
51932
  size: h.fontSize
@@ -52675,7 +52680,7 @@ Tf.defaultOptions = {
52675
52680
  /** Word wrap width */
52676
52681
  wordWrapWidth: 100
52677
52682
  };
52678
- let Ud = Tf;
52683
+ let Qd = Tf;
52679
52684
  const jh = class Ma extends Rr {
52680
52685
  /**
52681
52686
  * @param {string} [text] - Text contents
@@ -52836,7 +52841,7 @@ const jh = class Ma extends Rr {
52836
52841
  return this._style;
52837
52842
  }
52838
52843
  set style(e) {
52839
- this._style !== e && (e = e || {}, e instanceof Ud ? (this.ownsStyle = !1, this._style = e) : e instanceof Ns ? (console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"), this.ownsStyle = !0, this._style = Ud.from(e)) : (this.ownsStyle = !0, this._style = new Ud(e)), this.localStyleID = -1, this.dirty = !0);
52844
+ this._style !== e && (e = e || {}, e instanceof Qd ? (this.ownsStyle = !1, this._style = e) : e instanceof Ns ? (console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"), this.ownsStyle = !0, this._style = Qd.from(e)) : (this.ownsStyle = !0, this._style = new Qd(e)), this.localStyleID = -1, this.dirty = !0);
52840
52845
  }
52841
52846
  /**
52842
52847
  * Contents of text. This can be HTML text and include tags.
@@ -53020,7 +53025,7 @@ var Yq = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
53020
53025
  }).call(Yq);
53021
53026
  })(LL);
53022
53027
  const ab = LL.exports;
53023
- function hu(n, e) {
53028
+ function cu(n, e) {
53024
53029
  if (n) {
53025
53030
  if (typeof n == "function")
53026
53031
  return n;
@@ -53036,7 +53041,7 @@ const Dq = {
53036
53041
  };
53037
53042
  class jq extends Vi {
53038
53043
  constructor(e, t = {}) {
53039
- super(e), $(this, "options"), $(this, "startX"), $(this, "startY"), $(this, "deltaX"), $(this, "deltaY"), $(this, "keepCenter"), $(this, "startWidth", null), $(this, "startHeight", null), $(this, "deltaWidth", null), $(this, "deltaHeight", null), $(this, "width", null), $(this, "height", null), $(this, "time", 0), this.options = Object.assign({}, Dq, t), this.options.ease = hu(this.options.ease), this.setupPosition(), this.setupZoom(), this.time = 0;
53044
+ super(e), $(this, "options"), $(this, "startX"), $(this, "startY"), $(this, "deltaX"), $(this, "deltaY"), $(this, "keepCenter"), $(this, "startWidth", null), $(this, "startHeight", null), $(this, "deltaWidth", null), $(this, "deltaHeight", null), $(this, "width", null), $(this, "height", null), $(this, "time", 0), this.options = Object.assign({}, Dq, t), this.options.ease = cu(this.options.ease), this.setupPosition(), this.setupZoom(), this.time = 0;
53040
53045
  }
53041
53046
  setupPosition() {
53042
53047
  typeof this.options.position < "u" ? (this.startX = this.parent.center.x, this.startY = this.parent.center.y, this.deltaX = this.options.position.x - this.parent.center.x, this.deltaY = this.options.position.y - this.parent.center.y, this.keepCenter = !1) : this.keepCenter = !0;
@@ -53094,7 +53099,7 @@ const Fq = {
53094
53099
  };
53095
53100
  class Bq extends Vi {
53096
53101
  constructor(e, t = {}) {
53097
- super(e), $(this, "options"), $(this, "left"), $(this, "top"), $(this, "right"), $(this, "bottom"), $(this, "underflowX"), $(this, "underflowY"), $(this, "ease"), $(this, "toX"), $(this, "toY"), this.options = Object.assign({}, Fq, t), this.ease = hu(this.options.ease, "easeInOutSine"), this.options.sides ? this.options.sides === "all" ? this.top = this.bottom = this.left = this.right = !0 : this.options.sides === "horizontal" ? (this.right = this.left = !0, this.top = this.bottom = !1) : this.options.sides === "vertical" ? (this.left = this.right = !1, this.top = this.bottom = !0) : (this.top = this.options.sides.indexOf("top") !== -1, this.bottom = this.options.sides.indexOf("bottom") !== -1, this.left = this.options.sides.indexOf("left") !== -1, this.right = this.options.sides.indexOf("right") !== -1) : this.left = this.top = this.right = this.bottom = !1;
53102
+ super(e), $(this, "options"), $(this, "left"), $(this, "top"), $(this, "right"), $(this, "bottom"), $(this, "underflowX"), $(this, "underflowY"), $(this, "ease"), $(this, "toX"), $(this, "toY"), this.options = Object.assign({}, Fq, t), this.ease = cu(this.options.ease, "easeInOutSine"), this.options.sides ? this.options.sides === "all" ? this.top = this.bottom = this.left = this.right = !0 : this.options.sides === "horizontal" ? (this.right = this.left = !0, this.top = this.bottom = !1) : this.options.sides === "vertical" ? (this.left = this.right = !1, this.top = this.bottom = !0) : (this.top = this.options.sides.indexOf("top") !== -1, this.bottom = this.options.sides.indexOf("bottom") !== -1, this.left = this.options.sides.indexOf("left") !== -1, this.right = this.options.sides.indexOf("right") !== -1) : this.left = this.top = this.right = this.bottom = !1;
53098
53103
  const i = this.options.underflow.toLowerCase();
53099
53104
  i === "center" ? (this.underflowX = 0, this.underflowY = 0) : (this.underflowX = i.indexOf("left") !== -1 ? -1 : i.indexOf("right") !== -1 ? 1 : 0, this.underflowY = i.indexOf("top") !== -1 ? -1 : i.indexOf("bottom") !== -1 ? 1 : 0), this.reset();
53100
53105
  }
@@ -53700,7 +53705,7 @@ const hX = {
53700
53705
  };
53701
53706
  class cX extends Vi {
53702
53707
  constructor(e, t, i, s = {}) {
53703
- super(e), $(this, "options"), $(this, "ease"), $(this, "x"), $(this, "y"), $(this, "percent"), $(this, "snapping"), $(this, "deltaX"), $(this, "deltaY"), $(this, "startX"), $(this, "startY"), this.options = Object.assign({}, hX, s), this.ease = hu(s.ease, "easeInOutSine"), this.x = t, this.y = i, this.options.forceStart && this.snapStart();
53708
+ super(e), $(this, "options"), $(this, "ease"), $(this, "x"), $(this, "y"), $(this, "percent"), $(this, "snapping"), $(this, "deltaX"), $(this, "deltaY"), $(this, "startX"), $(this, "startY"), this.options = Object.assign({}, hX, s), this.ease = cu(s.ease, "easeInOutSine"), this.x = t, this.y = i, this.options.forceStart && this.snapStart();
53704
53709
  }
53705
53710
  snapStart() {
53706
53711
  this.percent = 0, this.snapping = { time: 0 };
@@ -53754,7 +53759,7 @@ const uX = {
53754
53759
  };
53755
53760
  class dX extends Vi {
53756
53761
  constructor(e, t = {}) {
53757
- super(e), $(this, "options"), $(this, "ease"), $(this, "xScale"), $(this, "yScale"), $(this, "xIndependent"), $(this, "yIndependent"), $(this, "snapping"), this.options = Object.assign({}, uX, t), this.ease = hu(this.options.ease), this.xIndependent = !1, this.yIndependent = !1, this.xScale = 0, this.yScale = 0, this.options.width > 0 && (this.xScale = e.screenWidth / this.options.width, this.xIndependent = !0), this.options.height > 0 && (this.yScale = e.screenHeight / this.options.height, this.yIndependent = !0), this.xScale = this.xIndependent ? this.xScale : this.yScale, this.yScale = this.yIndependent ? this.yScale : this.xScale, this.options.time === 0 ? (e.container.scale.x = this.xScale, e.container.scale.y = this.yScale, this.options.removeOnComplete && this.parent.plugins.remove("snap-zoom")) : t.forceStart && this.createSnapping();
53762
+ super(e), $(this, "options"), $(this, "ease"), $(this, "xScale"), $(this, "yScale"), $(this, "xIndependent"), $(this, "yIndependent"), $(this, "snapping"), this.options = Object.assign({}, uX, t), this.ease = cu(this.options.ease), this.xIndependent = !1, this.yIndependent = !1, this.xScale = 0, this.yScale = 0, this.options.width > 0 && (this.xScale = e.screenWidth / this.options.width, this.xIndependent = !0), this.options.height > 0 && (this.yScale = e.screenHeight / this.options.height, this.yIndependent = !0), this.xScale = this.xIndependent ? this.xScale : this.yScale, this.yScale = this.yIndependent ? this.yScale : this.xScale, this.options.time === 0 ? (e.container.scale.x = this.xScale, e.container.scale.y = this.yScale, this.options.removeOnComplete && this.parent.plugins.remove("snap-zoom")) : t.forceStart && this.createSnapping();
53758
53763
  }
53759
53764
  createSnapping() {
53760
53765
  const e = this.parent.worldScreenWidth, t = this.parent.worldScreenHeight, i = this.parent.screenWidth / this.xScale, s = this.parent.screenHeight / this.yScale;
@@ -54327,7 +54332,7 @@ var xX = Object.defineProperty, SX = Object.getOwnPropertyDescriptor, CL = (n, e
54327
54332
  (a = n[r]) && (s = (i ? a(e, t, s) : a(s)) || s);
54328
54333
  return i && s && xX(e, t, s), s;
54329
54334
  };
54330
- let Wc = class extends Ka {
54335
+ let Nc = class extends Ka {
54331
54336
  constructor() {
54332
54337
  super(), this.app = new US({
54333
54338
  backgroundAlpha: 0,
@@ -54383,7 +54388,7 @@ let Wc = class extends Ka {
54383
54388
  `;
54384
54389
  }
54385
54390
  };
54386
- Wc.styles = Lx`
54391
+ Nc.styles = Lx`
54387
54392
  :host {
54388
54393
  width: 100%;
54389
54394
  height: 100%;
@@ -54409,12 +54414,12 @@ Wc.styles = Lx`
54409
54414
  `;
54410
54415
  CL([
54411
54416
  Ax(".cropper-container")
54412
- ], Wc.prototype, "container", 2);
54413
- Wc = CL([
54417
+ ], Nc.prototype, "container", 2);
54418
+ Nc = CL([
54414
54419
  Ex("image-cropper")
54415
- ], Wc);
54420
+ ], Nc);
54416
54421
  export {
54417
- Wc as Cropper,
54422
+ Nc as Cropper,
54418
54423
  io as DeviceLines,
54419
54424
  WX as Line,
54420
54425
  bx as SGLBLoader,