dpot-ui 0.4.14 → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -269,7 +269,7 @@ function qn(n) {
269
269
  function ln(n) {
270
270
  return n instanceof qt(n).HTMLElement;
271
271
  }
272
- function Ln(n) {
272
+ function Pn(n) {
273
273
  return n instanceof qt(n).Element;
274
274
  }
275
275
  function ul(n) {
@@ -300,7 +300,7 @@ function ju(n) {
300
300
  return o && (t = s, i = a), { width: t, height: i, $: o };
301
301
  }
302
302
  function Ta(n) {
303
- return Ln(n) ? n : n.contextElement;
303
+ return Pn(n) ? n : n.contextElement;
304
304
  }
305
305
  function zi(n) {
306
306
  const e = Ta(n);
@@ -322,11 +322,11 @@ function fi(n, e, t, i) {
322
322
  e === void 0 && (e = !1), t === void 0 && (t = !1);
323
323
  const r = n.getBoundingClientRect(), s = Ta(n);
324
324
  let a = hi(1);
325
- e && (i ? Ln(i) && (a = zi(i)) : a = zi(n));
325
+ e && (i ? Pn(i) && (a = zi(i)) : a = zi(n));
326
326
  const o = Yu(s, t, i);
327
327
  let l = (r.left + o.x) / a.x, c = (r.top + o.y) / a.y, u = r.width / a.x, h = r.height / a.y;
328
328
  if (s) {
329
- const f = qt(s), d = i && Ln(i) ? qt(i) : i;
329
+ const f = qt(s), d = i && Pn(i) ? qt(i) : i;
330
330
  let p = f.frameElement;
331
331
  for (; p && i && d !== f; ) {
332
332
  const _ = zi(p), m = p.getBoundingClientRect(), g = getComputedStyle(p), y = m.left + (p.clientLeft + parseFloat(g.paddingLeft)) * _.x, v = m.top + (p.clientTop + parseFloat(g.paddingTop)) * _.y;
@@ -335,19 +335,19 @@ function fi(n, e, t, i) {
335
335
  }
336
336
  return As({ width: u, height: h, x: l, y: c });
337
337
  }
338
- function Pn(n) {
338
+ function Dn(n) {
339
339
  return ((qu(n) ? n.ownerDocument : n.document) || window.document).documentElement;
340
340
  }
341
341
  function ks(n) {
342
- return Ln(n) ? { scrollLeft: n.scrollLeft, scrollTop: n.scrollTop } : { scrollLeft: n.pageXOffset, scrollTop: n.pageYOffset };
342
+ return Pn(n) ? { scrollLeft: n.scrollLeft, scrollTop: n.scrollTop } : { scrollLeft: n.pageXOffset, scrollTop: n.pageYOffset };
343
343
  }
344
344
  function Ku(n) {
345
- return fi(Pn(n)).left + ks(n).scrollLeft;
345
+ return fi(Dn(n)).left + ks(n).scrollLeft;
346
346
  }
347
347
  function Gi(n) {
348
348
  if (qn(n) === "html")
349
349
  return n;
350
- const e = n.assignedSlot || n.parentNode || ul(n) && n.host || Pn(n);
350
+ const e = n.assignedSlot || n.parentNode || ul(n) && n.host || Dn(n);
351
351
  return ul(e) ? e.host : e;
352
352
  }
353
353
  function Zu(n) {
@@ -364,7 +364,7 @@ function fl(n, e, t) {
364
364
  let i;
365
365
  if (e === "viewport")
366
366
  i = function(r, s) {
367
- const a = qt(r), o = Pn(r), l = a.visualViewport;
367
+ const a = qt(r), o = Dn(r), l = a.visualViewport;
368
368
  let c = o.clientWidth, u = o.clientHeight, h = 0, f = 0;
369
369
  if (l) {
370
370
  c = l.width, u = l.height;
@@ -375,12 +375,12 @@ function fl(n, e, t) {
375
375
  }(n, t);
376
376
  else if (e === "document")
377
377
  i = function(r) {
378
- const s = Pn(r), a = ks(r), o = r.ownerDocument.body, l = Bi(s.scrollWidth, s.clientWidth, o.scrollWidth, o.clientWidth), c = Bi(s.scrollHeight, s.clientHeight, o.scrollHeight, o.clientHeight);
378
+ const s = Dn(r), a = ks(r), o = r.ownerDocument.body, l = Bi(s.scrollWidth, s.clientWidth, o.scrollWidth, o.clientWidth), c = Bi(s.scrollHeight, s.clientHeight, o.scrollHeight, o.clientHeight);
379
379
  let u = -a.scrollLeft + Ku(r);
380
380
  const h = -a.scrollTop;
381
381
  return on(o).direction === "rtl" && (u += Bi(s.clientWidth, o.clientWidth) - l), { width: l, height: c, x: u, y: h };
382
- }(Pn(n));
383
- else if (Ln(e))
382
+ }(Dn(n));
383
+ else if (Pn(e))
384
384
  i = function(r, s) {
385
385
  const a = fi(r, !0, s === "fixed"), o = a.top + r.clientTop, l = a.left + r.clientLeft, c = ln(r) ? zi(r) : hi(1);
386
386
  return { width: r.clientWidth * c.x, height: r.clientHeight * c.y, x: l * c.x, y: o * c.y };
@@ -393,7 +393,7 @@ function fl(n, e, t) {
393
393
  }
394
394
  function Ju(n, e) {
395
395
  const t = Gi(n);
396
- return !(t === e || !Ln(t) || Hs(t)) && (on(t).position === "fixed" || Ju(t, e));
396
+ return !(t === e || !Pn(t) || Hs(t)) && (on(t).position === "fixed" || Ju(t, e));
397
397
  }
398
398
  function dl(n, e) {
399
399
  return ln(n) && on(n).position !== "fixed" ? e ? e(n) : n.offsetParent : null;
@@ -416,7 +416,7 @@ function pl(n, e) {
416
416
  }(n) || t;
417
417
  }
418
418
  function Ff(n, e, t) {
419
- const i = ln(e), r = Pn(e), s = t === "fixed", a = fi(n, !0, s, e);
419
+ const i = ln(e), r = Dn(e), s = t === "fixed", a = fi(n, !0, s, e);
420
420
  let o = { scrollLeft: 0, scrollTop: 0 };
421
421
  const l = hi(0);
422
422
  if (i || !i && !s)
@@ -433,10 +433,10 @@ const Bf = { getClippingRect: function(n) {
433
433
  const h = u.get(c);
434
434
  if (h)
435
435
  return h;
436
- let f = Ps(c).filter((m) => Ln(m) && qn(m) !== "body"), d = null;
436
+ let f = Ps(c).filter((m) => Pn(m) && qn(m) !== "body"), d = null;
437
437
  const p = on(c).position === "fixed";
438
438
  let _ = p ? Gi(c) : c;
439
- for (; Ln(_) && !Hs(_); ) {
439
+ for (; Pn(_) && !Hs(_); ) {
440
440
  const m = on(_), g = Zo(_);
441
441
  g || m.position !== "fixed" || (d = null), (p ? !g && !d : !g && m.position === "static" && d && ["absolute", "fixed"].includes(d.position) || xr(_) && !g && Ju(c, _)) ? f = f.filter((y) => y !== _) : d = m, _ = Gi(_);
442
442
  }
@@ -448,7 +448,7 @@ const Bf = { getClippingRect: function(n) {
448
448
  return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
449
449
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(n) {
450
450
  let { rect: e, offsetParent: t, strategy: i } = n;
451
- const r = ln(t), s = Pn(t);
451
+ const r = ln(t), s = Dn(t);
452
452
  if (t === s)
453
453
  return e;
454
454
  let a = { scrollLeft: 0, scrollTop: 0 }, o = hi(1);
@@ -458,9 +458,9 @@ const Bf = { getClippingRect: function(n) {
458
458
  o = zi(t), l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
459
459
  }
460
460
  return { width: e.width * o.x, height: e.height * o.y, x: e.x * o.x - a.scrollLeft * o.x + l.x, y: e.y * o.y - a.scrollTop * o.y + l.y };
461
- }, isElement: Ln, getDimensions: function(n) {
461
+ }, isElement: Pn, getDimensions: function(n) {
462
462
  return ju(n);
463
- }, getOffsetParent: pl, getDocumentElement: Pn, getScale: zi, getElementRects(n) {
463
+ }, getOffsetParent: pl, getDocumentElement: Dn, getScale: zi, getElementRects(n) {
464
464
  return zt(this, null, function* () {
465
465
  let { reference: e, floating: t, strategy: i } = n;
466
466
  const r = this.getOffsetParent || pl, s = this.getDimensions;
@@ -475,7 +475,7 @@ function zf(n, e, t, i) {
475
475
  });
476
476
  const h = c && o ? function(_, m) {
477
477
  let g, y = null;
478
- const v = Pn(_);
478
+ const v = Dn(_);
479
479
  function M() {
480
480
  clearTimeout(g), y && y.disconnect(), y = null;
481
481
  }
@@ -2503,7 +2503,7 @@ const Ap = /* @__PURE__ */ function() {
2503
2503
  * Copyright 2010-2023 Three.js Authors
2504
2504
  * SPDX-License-Identifier: MIT
2505
2505
  */
2506
- const Aa = "156", zn = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, _i = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cp = 0, Pl = 1, Rp = 2, nh = 1, Lp = 2, An = 3, jn = 0, Ot = 1, Cn = 2, Wn = 0, Hi = 1, Dl = 2, Il = 3, Ul = 4, Pp = 5, Ni = 100, Dp = 101, Ip = 102, Nl = 103, Ol = 104, Up = 200, Np = 201, Op = 202, Fp = 203, ih = 204, rh = 205, Bp = 206, zp = 207, Hp = 208, kp = 209, Gp = 210, Vp = 0, Wp = 1, Xp = 2, ea = 3, $p = 4, qp = 5, jp = 6, Yp = 7, Ca = 0, Kp = 1, Zp = 2, Xn = 0, Jp = 1, Qp = 2, em = 3, tm = 4, nm = 5, sh = 300, Vi = 301, Wi = 302, ta = 303, na = 304, Gs = 306, ia = 1e3, nn = 1001, ra = 1002, Dt = 1003, Fl = 1004, so = 1005, $t = 1006, im = 1007, yr = 1008, $n = 1009, rm = 1010, sm = 1011, Ra = 1012, oh = 1013, kn = 1014, Gn = 1015, Sr = 1016, ah = 1017, lh = 1018, oi = 1020, om = 1021, rn = 1023, am = 1024, lm = 1025, ai = 1026, Xi = 1027, cm = 1028, ch = 1029, um = 1030, uh = 1031, hh = 1033, oo = 33776, ao = 33777, lo = 33778, co = 33779, Bl = 35840, zl = 35841, Hl = 35842, kl = 35843, hm = 36196, Gl = 37492, Vl = 37496, Wl = 37808, Xl = 37809, $l = 37810, ql = 37811, jl = 37812, Yl = 37813, Kl = 37814, Zl = 37815, Jl = 37816, Ql = 37817, ec = 37818, tc = 37819, nc = 37820, ic = 37821, uo = 36492, rc = 36494, sc = 36495, fm = 36283, oc = 36284, ac = 36285, lc = 36286, fh = 3e3, li = 3001, dm = 3200, pm = 3201, dh = 0, mm = 1, ci = "", nt = "srgb", gn = "srgb-linear", Vs = "display-p3", ho = 7680, gm = 519, _m = 512, vm = 513, xm = 514, ym = 515, Sm = 516, Mm = 517, Em = 518, bm = 519, sa = 35044, cc = "300 es", oa = 1035, Rn = 2e3, Ds = 2001;
2506
+ const Aa = "156", zn = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, _i = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cp = 0, Pl = 1, Rp = 2, nh = 1, Lp = 2, Cn = 3, jn = 0, Ot = 1, Rn = 2, Wn = 0, Hi = 1, Dl = 2, Il = 3, Ul = 4, Pp = 5, Ni = 100, Dp = 101, Ip = 102, Nl = 103, Ol = 104, Up = 200, Np = 201, Op = 202, Fp = 203, ih = 204, rh = 205, Bp = 206, zp = 207, Hp = 208, kp = 209, Gp = 210, Vp = 0, Wp = 1, Xp = 2, ea = 3, $p = 4, qp = 5, jp = 6, Yp = 7, Ca = 0, Kp = 1, Zp = 2, Xn = 0, Jp = 1, Qp = 2, em = 3, tm = 4, nm = 5, sh = 300, Vi = 301, Wi = 302, ta = 303, na = 304, Gs = 306, ia = 1e3, nn = 1001, ra = 1002, Dt = 1003, Fl = 1004, so = 1005, $t = 1006, im = 1007, yr = 1008, $n = 1009, rm = 1010, sm = 1011, Ra = 1012, oh = 1013, kn = 1014, Gn = 1015, Sr = 1016, ah = 1017, lh = 1018, oi = 1020, om = 1021, rn = 1023, am = 1024, lm = 1025, ai = 1026, Xi = 1027, cm = 1028, ch = 1029, um = 1030, uh = 1031, hh = 1033, oo = 33776, ao = 33777, lo = 33778, co = 33779, Bl = 35840, zl = 35841, Hl = 35842, kl = 35843, hm = 36196, Gl = 37492, Vl = 37496, Wl = 37808, Xl = 37809, $l = 37810, ql = 37811, jl = 37812, Yl = 37813, Kl = 37814, Zl = 37815, Jl = 37816, Ql = 37817, ec = 37818, tc = 37819, nc = 37820, ic = 37821, uo = 36492, rc = 36494, sc = 36495, fm = 36283, oc = 36284, ac = 36285, lc = 36286, fh = 3e3, li = 3001, dm = 3200, pm = 3201, dh = 0, mm = 1, ci = "", nt = "srgb", _n = "srgb-linear", Vs = "display-p3", ho = 7680, gm = 519, _m = 512, vm = 513, xm = 514, ym = 515, Sm = 516, Mm = 517, Em = 518, bm = 519, sa = 35044, cc = "300 es", oa = 1035, Ln = 2e3, Ds = 2001;
2507
2507
  class gi {
2508
2508
  addEventListener(e, t) {
2509
2509
  this._listeners === void 0 && (this._listeners = {});
@@ -2541,7 +2541,7 @@ class gi {
2541
2541
  const wt = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
2542
2542
  let uc = 1234567;
2543
2543
  const fr = Math.PI / 180, Mr = 180 / Math.PI;
2544
- function mn() {
2544
+ function gn() {
2545
2545
  const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
2546
2546
  return (wt[n & 255] + wt[n >> 8 & 255] + wt[n >> 16 & 255] + wt[n >> 24 & 255] + "-" + wt[e & 255] + wt[e >> 8 & 255] + "-" + wt[e >> 16 & 15 | 64] + wt[e >> 24 & 255] + "-" + wt[t & 63 | 128] + wt[t >> 8 & 255] + "-" + wt[t >> 16 & 255] + wt[t >> 24 & 255] + wt[i & 255] + wt[i >> 8 & 255] + wt[i >> 16 & 255] + wt[i >> 24 & 255]).toLowerCase();
2547
2547
  }
@@ -2626,7 +2626,7 @@ function Bm(n, e, t, i, r) {
2626
2626
  console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: " + r);
2627
2627
  }
2628
2628
  }
2629
- function fn(n, e) {
2629
+ function dn(n, e) {
2630
2630
  switch (e.constructor) {
2631
2631
  case Float32Array:
2632
2632
  return n;
@@ -2669,7 +2669,7 @@ function Ye(n, e) {
2669
2669
  const ph = {
2670
2670
  DEG2RAD: fr,
2671
2671
  RAD2DEG: Mr,
2672
- generateUUID: mn,
2672
+ generateUUID: gn,
2673
2673
  clamp: vt,
2674
2674
  euclideanModulo: La,
2675
2675
  mapLinear: Tm,
@@ -2690,7 +2690,7 @@ const ph = {
2690
2690
  floorPowerOfTwo: Is,
2691
2691
  setQuaternionFromProperEuler: Bm,
2692
2692
  normalize: Ye,
2693
- denormalize: fn
2693
+ denormalize: dn
2694
2694
  };
2695
2695
  class ue {
2696
2696
  constructor(e = 0, t = 0) {
@@ -3124,11 +3124,11 @@ function Vm(n) {
3124
3124
  return n.applyMatrix3(Hm).convertLinearToSRGB();
3125
3125
  }
3126
3126
  const Wm = {
3127
- [gn]: (n) => n,
3127
+ [_n]: (n) => n,
3128
3128
  [nt]: (n) => n.convertSRGBToLinear(),
3129
3129
  [Vs]: Gm
3130
3130
  }, Xm = {
3131
- [gn]: (n) => n,
3131
+ [_n]: (n) => n,
3132
3132
  [nt]: (n) => n.convertLinearToSRGB(),
3133
3133
  [Vs]: Vm
3134
3134
  }, Zt = {
@@ -3140,7 +3140,7 @@ const Wm = {
3140
3140
  console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."), this.enabled = !n;
3141
3141
  },
3142
3142
  get workingColorSpace() {
3143
- return gn;
3143
+ return _n;
3144
3144
  },
3145
3145
  set workingColorSpace(n) {
3146
3146
  console.warn("THREE.ColorManagement: .workingColorSpace is readonly.");
@@ -3201,7 +3201,7 @@ class gh {
3201
3201
  let $m = 0;
3202
3202
  class _h {
3203
3203
  constructor(e = null) {
3204
- this.isSource = !0, Object.defineProperty(this, "id", { value: $m++ }), this.uuid = mn(), this.data = e, this.version = 0;
3204
+ this.isSource = !0, Object.defineProperty(this, "id", { value: $m++ }), this.uuid = gn(), this.data = e, this.version = 0;
3205
3205
  }
3206
3206
  set needsUpdate(e) {
3207
3207
  e === !0 && this.version++;
@@ -3238,7 +3238,7 @@ function mo(n) {
3238
3238
  let qm = 0;
3239
3239
  class It extends gi {
3240
3240
  constructor(e = It.DEFAULT_IMAGE, t = It.DEFAULT_MAPPING, i = nn, r = nn, s = $t, a = yr, o = rn, l = $n, c = It.DEFAULT_ANISOTROPY, u = ci) {
3241
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: qm++ }), this.uuid = mn(), this.name = "", this.source = new _h(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = r, this.magFilter = s, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new ue(0, 0), this.repeat = new ue(1, 1), this.center = new ue(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Be(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof u == "string" ? this.colorSpace = u : (pr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = u === li ? nt : ci), this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
3241
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: qm++ }), this.uuid = gn(), this.name = "", this.source = new _h(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = r, this.magFilter = s, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new ue(0, 0), this.repeat = new ue(1, 1), this.center = new ue(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Be(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof u == "string" ? this.colorSpace = u : (pr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = u === li ? nt : ci), this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
3242
3242
  }
3243
3243
  get image() {
3244
3244
  return this.source.data;
@@ -4062,13 +4062,13 @@ class Kn {
4062
4062
  setFromArray(e) {
4063
4063
  this.makeEmpty();
4064
4064
  for (let t = 0, i = e.length; t < i; t += 3)
4065
- this.expandByPoint(Mn.fromArray(e, t));
4065
+ this.expandByPoint(En.fromArray(e, t));
4066
4066
  return this;
4067
4067
  }
4068
4068
  setFromBufferAttribute(e) {
4069
4069
  this.makeEmpty();
4070
4070
  for (let t = 0, i = e.count; t < i; t++)
4071
- this.expandByPoint(Mn.fromBufferAttribute(e, t));
4071
+ this.expandByPoint(En.fromBufferAttribute(e, t));
4072
4072
  return this;
4073
4073
  }
4074
4074
  setFromPoints(e) {
@@ -4078,7 +4078,7 @@ class Kn {
4078
4078
  return this;
4079
4079
  }
4080
4080
  setFromCenterAndSize(e, t) {
4081
- const i = Mn.copy(t).multiplyScalar(0.5);
4081
+ const i = En.copy(t).multiplyScalar(0.5);
4082
4082
  return this.min.copy(e).sub(i), this.max.copy(e).add(i), this;
4083
4083
  }
4084
4084
  setFromObject(e, t = !1) {
@@ -4120,7 +4120,7 @@ class Kn {
4120
4120
  if (t && r.attributes !== void 0 && r.attributes.position !== void 0) {
4121
4121
  const s = r.attributes.position;
4122
4122
  for (let a = 0, o = s.count; a < o; a++)
4123
- Mn.fromBufferAttribute(s, a).applyMatrix4(e.matrixWorld), this.expandByPoint(Mn);
4123
+ En.fromBufferAttribute(s, a).applyMatrix4(e.matrixWorld), this.expandByPoint(En);
4124
4124
  } else
4125
4125
  r.boundingBox === null && r.computeBoundingBox(), xi.copy(r.boundingBox), xi.applyMatrix4(e.matrixWorld), this.union(xi);
4126
4126
  }
@@ -4146,7 +4146,7 @@ class Kn {
4146
4146
  return !(e.max.x < this.min.x || e.min.x > this.max.x || e.max.y < this.min.y || e.min.y > this.max.y || e.max.z < this.min.z || e.min.z > this.max.z);
4147
4147
  }
4148
4148
  intersectsSphere(e) {
4149
- return this.clampPoint(e.center, Mn), Mn.distanceToSquared(e.center) <= e.radius * e.radius;
4149
+ return this.clampPoint(e.center, En), En.distanceToSquared(e.center) <= e.radius * e.radius;
4150
4150
  }
4151
4151
  intersectsPlane(e) {
4152
4152
  let t, i;
@@ -4155,46 +4155,46 @@ class Kn {
4155
4155
  intersectsTriangle(e) {
4156
4156
  if (this.isEmpty())
4157
4157
  return !1;
4158
- this.getCenter(tr), kr.subVectors(this.max, tr), yi.subVectors(e.a, tr), Si.subVectors(e.b, tr), Mi.subVectors(e.c, tr), In.subVectors(Si, yi), Un.subVectors(Mi, Si), Qn.subVectors(yi, Mi);
4158
+ this.getCenter(tr), kr.subVectors(this.max, tr), yi.subVectors(e.a, tr), Si.subVectors(e.b, tr), Mi.subVectors(e.c, tr), Un.subVectors(Si, yi), Nn.subVectors(Mi, Si), Qn.subVectors(yi, Mi);
4159
4159
  let t = [
4160
- 0,
4161
- -In.z,
4162
- In.y,
4163
4160
  0,
4164
4161
  -Un.z,
4165
4162
  Un.y,
4166
4163
  0,
4164
+ -Nn.z,
4165
+ Nn.y,
4166
+ 0,
4167
4167
  -Qn.z,
4168
4168
  Qn.y,
4169
- In.z,
4170
- 0,
4171
- -In.x,
4172
4169
  Un.z,
4173
4170
  0,
4174
4171
  -Un.x,
4172
+ Nn.z,
4173
+ 0,
4174
+ -Nn.x,
4175
4175
  Qn.z,
4176
4176
  0,
4177
4177
  -Qn.x,
4178
- -In.y,
4179
- In.x,
4180
- 0,
4181
4178
  -Un.y,
4182
4179
  Un.x,
4183
4180
  0,
4181
+ -Nn.y,
4182
+ Nn.x,
4183
+ 0,
4184
4184
  -Qn.y,
4185
4185
  Qn.x,
4186
4186
  0
4187
4187
  ];
4188
- return !_o(t, yi, Si, Mi, kr) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !_o(t, yi, Si, Mi, kr)) ? !1 : (Gr.crossVectors(In, Un), t = [Gr.x, Gr.y, Gr.z], _o(t, yi, Si, Mi, kr));
4188
+ return !_o(t, yi, Si, Mi, kr) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !_o(t, yi, Si, Mi, kr)) ? !1 : (Gr.crossVectors(Un, Nn), t = [Gr.x, Gr.y, Gr.z], _o(t, yi, Si, Mi, kr));
4189
4189
  }
4190
4190
  clampPoint(e, t) {
4191
4191
  return t.copy(e).clamp(this.min, this.max);
4192
4192
  }
4193
4193
  distanceToPoint(e) {
4194
- return this.clampPoint(e, Mn).distanceTo(e);
4194
+ return this.clampPoint(e, En).distanceTo(e);
4195
4195
  }
4196
4196
  getBoundingSphere(e) {
4197
- return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(Mn).length() * 0.5), e;
4197
+ return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(En).length() * 0.5), e;
4198
4198
  }
4199
4199
  intersect(e) {
4200
4200
  return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;
@@ -4203,7 +4203,7 @@ class Kn {
4203
4203
  return this.min.min(e.min), this.max.max(e.max), this;
4204
4204
  }
4205
4205
  applyMatrix4(e) {
4206
- return this.isEmpty() ? this : (Sn[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), Sn[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), Sn[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), Sn[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), Sn[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), Sn[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), Sn[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), Sn[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(Sn), this);
4206
+ return this.isEmpty() ? this : (Mn[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), Mn[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), Mn[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), Mn[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), Mn[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), Mn[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), Mn[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), Mn[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(Mn), this);
4207
4207
  }
4208
4208
  translate(e) {
4209
4209
  return this.min.add(e), this.max.add(e), this;
@@ -4212,7 +4212,7 @@ class Kn {
4212
4212
  return e.min.equals(this.min) && e.max.equals(this.max);
4213
4213
  }
4214
4214
  }
4215
- const Sn = [
4215
+ const Mn = [
4216
4216
  /* @__PURE__ */ new D(),
4217
4217
  /* @__PURE__ */ new D(),
4218
4218
  /* @__PURE__ */ new D(),
@@ -4221,7 +4221,7 @@ const Sn = [
4221
4221
  /* @__PURE__ */ new D(),
4222
4222
  /* @__PURE__ */ new D(),
4223
4223
  /* @__PURE__ */ new D()
4224
- ], Mn = /* @__PURE__ */ new D(), xi = /* @__PURE__ */ new Kn(), yi = /* @__PURE__ */ new D(), Si = /* @__PURE__ */ new D(), Mi = /* @__PURE__ */ new D(), In = /* @__PURE__ */ new D(), Un = /* @__PURE__ */ new D(), Qn = /* @__PURE__ */ new D(), tr = /* @__PURE__ */ new D(), kr = /* @__PURE__ */ new D(), Gr = /* @__PURE__ */ new D(), ei = /* @__PURE__ */ new D();
4224
+ ], En = /* @__PURE__ */ new D(), xi = /* @__PURE__ */ new Kn(), yi = /* @__PURE__ */ new D(), Si = /* @__PURE__ */ new D(), Mi = /* @__PURE__ */ new D(), Un = /* @__PURE__ */ new D(), Nn = /* @__PURE__ */ new D(), Qn = /* @__PURE__ */ new D(), tr = /* @__PURE__ */ new D(), kr = /* @__PURE__ */ new D(), Gr = /* @__PURE__ */ new D(), ei = /* @__PURE__ */ new D();
4225
4225
  function _o(n, e, t, i, r) {
4226
4226
  for (let s = 0, a = n.length - 3; s <= a; s += 3) {
4227
4227
  ei.fromArray(n, s);
@@ -4306,7 +4306,7 @@ class Dr {
4306
4306
  return new this.constructor().copy(this);
4307
4307
  }
4308
4308
  }
4309
- const En = /* @__PURE__ */ new D(), xo = /* @__PURE__ */ new D(), Vr = /* @__PURE__ */ new D(), Nn = /* @__PURE__ */ new D(), yo = /* @__PURE__ */ new D(), Wr = /* @__PURE__ */ new D(), So = /* @__PURE__ */ new D();
4309
+ const bn = /* @__PURE__ */ new D(), xo = /* @__PURE__ */ new D(), Vr = /* @__PURE__ */ new D(), On = /* @__PURE__ */ new D(), yo = /* @__PURE__ */ new D(), Wr = /* @__PURE__ */ new D(), So = /* @__PURE__ */ new D();
4310
4310
  class Pa {
4311
4311
  constructor(e = new D(), t = new D(0, 0, -1)) {
4312
4312
  this.origin = e, this.direction = t;
@@ -4324,7 +4324,7 @@ class Pa {
4324
4324
  return this.direction.copy(e).sub(this.origin).normalize(), this;
4325
4325
  }
4326
4326
  recast(e) {
4327
- return this.origin.copy(this.at(e, En)), this;
4327
+ return this.origin.copy(this.at(e, bn)), this;
4328
4328
  }
4329
4329
  closestPointToPoint(e, t) {
4330
4330
  t.subVectors(e, this.origin);
@@ -4335,12 +4335,12 @@ class Pa {
4335
4335
  return Math.sqrt(this.distanceSqToPoint(e));
4336
4336
  }
4337
4337
  distanceSqToPoint(e) {
4338
- const t = En.subVectors(e, this.origin).dot(this.direction);
4339
- return t < 0 ? this.origin.distanceToSquared(e) : (En.copy(this.origin).addScaledVector(this.direction, t), En.distanceToSquared(e));
4338
+ const t = bn.subVectors(e, this.origin).dot(this.direction);
4339
+ return t < 0 ? this.origin.distanceToSquared(e) : (bn.copy(this.origin).addScaledVector(this.direction, t), bn.distanceToSquared(e));
4340
4340
  }
4341
4341
  distanceSqToSegment(e, t, i, r) {
4342
- xo.copy(e).add(t).multiplyScalar(0.5), Vr.copy(t).sub(e).normalize(), Nn.copy(this.origin).sub(xo);
4343
- const s = e.distanceTo(t) * 0.5, a = -this.direction.dot(Vr), o = Nn.dot(this.direction), l = -Nn.dot(Vr), c = Nn.lengthSq(), u = Math.abs(1 - a * a);
4342
+ xo.copy(e).add(t).multiplyScalar(0.5), Vr.copy(t).sub(e).normalize(), On.copy(this.origin).sub(xo);
4343
+ const s = e.distanceTo(t) * 0.5, a = -this.direction.dot(Vr), o = On.dot(this.direction), l = -On.dot(Vr), c = On.lengthSq(), u = Math.abs(1 - a * a);
4344
4344
  let h, f, d, p;
4345
4345
  if (u > 0)
4346
4346
  if (h = a * l - o, f = a * o - l, p = s * u, h >= 0)
@@ -4359,8 +4359,8 @@ class Pa {
4359
4359
  return i && i.copy(this.origin).addScaledVector(this.direction, h), r && r.copy(xo).addScaledVector(Vr, f), d;
4360
4360
  }
4361
4361
  intersectSphere(e, t) {
4362
- En.subVectors(e.center, this.origin);
4363
- const i = En.dot(this.direction), r = En.dot(En) - i * i, s = e.radius * e.radius;
4362
+ bn.subVectors(e.center, this.origin);
4363
+ const i = bn.dot(this.direction), r = bn.dot(bn) - i * i, s = e.radius * e.radius;
4364
4364
  if (r > s)
4365
4365
  return null;
4366
4366
  const a = Math.sqrt(s - r), o = i - a, l = i + a;
@@ -4390,7 +4390,7 @@ class Pa {
4390
4390
  return c >= 0 ? (i = (e.min.x - f.x) * c, r = (e.max.x - f.x) * c) : (i = (e.max.x - f.x) * c, r = (e.min.x - f.x) * c), u >= 0 ? (s = (e.min.y - f.y) * u, a = (e.max.y - f.y) * u) : (s = (e.max.y - f.y) * u, a = (e.min.y - f.y) * u), i > a || s > r || ((s > i || isNaN(i)) && (i = s), (a < r || isNaN(r)) && (r = a), h >= 0 ? (o = (e.min.z - f.z) * h, l = (e.max.z - f.z) * h) : (o = (e.max.z - f.z) * h, l = (e.min.z - f.z) * h), i > l || o > r) || ((o > i || i !== i) && (i = o), (l < r || r !== r) && (r = l), r < 0) ? null : this.at(i >= 0 ? i : r, t);
4391
4391
  }
4392
4392
  intersectsBox(e) {
4393
- return this.intersectBox(e, En) !== null;
4393
+ return this.intersectBox(e, bn) !== null;
4394
4394
  }
4395
4395
  intersectTriangle(e, t, i, r, s) {
4396
4396
  yo.subVectors(t, e), Wr.subVectors(i, e), So.crossVectors(yo, Wr);
@@ -4403,14 +4403,14 @@ class Pa {
4403
4403
  o = -1, a = -a;
4404
4404
  else
4405
4405
  return null;
4406
- Nn.subVectors(this.origin, e);
4407
- const l = o * this.direction.dot(Wr.crossVectors(Nn, Wr));
4406
+ On.subVectors(this.origin, e);
4407
+ const l = o * this.direction.dot(Wr.crossVectors(On, Wr));
4408
4408
  if (l < 0)
4409
4409
  return null;
4410
- const c = o * this.direction.dot(yo.cross(Nn));
4410
+ const c = o * this.direction.dot(yo.cross(On));
4411
4411
  if (c < 0 || l + c > a)
4412
4412
  return null;
4413
- const u = -o * Nn.dot(So);
4413
+ const u = -o * On.dot(So);
4414
4414
  return u < 0 ? null : this.at(u / a, s);
4415
4415
  }
4416
4416
  applyMatrix4(e) {
@@ -4555,7 +4555,7 @@ class it {
4555
4555
  }
4556
4556
  lookAt(e, t, i) {
4557
4557
  const r = this.elements;
4558
- return Ht.subVectors(e, t), Ht.lengthSq() === 0 && (Ht.z = 1), Ht.normalize(), On.crossVectors(i, Ht), On.lengthSq() === 0 && (Math.abs(i.z) === 1 ? Ht.x += 1e-4 : Ht.z += 1e-4, Ht.normalize(), On.crossVectors(i, Ht)), On.normalize(), Xr.crossVectors(Ht, On), r[0] = On.x, r[4] = Xr.x, r[8] = Ht.x, r[1] = On.y, r[5] = Xr.y, r[9] = Ht.y, r[2] = On.z, r[6] = Xr.z, r[10] = Ht.z, this;
4558
+ return Ht.subVectors(e, t), Ht.lengthSq() === 0 && (Ht.z = 1), Ht.normalize(), Fn.crossVectors(i, Ht), Fn.lengthSq() === 0 && (Math.abs(i.z) === 1 ? Ht.x += 1e-4 : Ht.z += 1e-4, Ht.normalize(), Fn.crossVectors(i, Ht)), Fn.normalize(), Xr.crossVectors(Ht, Fn), r[0] = Fn.x, r[4] = Xr.x, r[8] = Ht.x, r[1] = Fn.y, r[5] = Xr.y, r[9] = Ht.y, r[2] = Fn.z, r[6] = Xr.z, r[10] = Ht.z, this;
4559
4559
  }
4560
4560
  multiply(e) {
4561
4561
  return this.multiplyMatrices(this, e);
@@ -4772,10 +4772,10 @@ class it {
4772
4772
  const c = 1 / s, u = 1 / a, h = 1 / o;
4773
4773
  return Jt.elements[0] *= c, Jt.elements[1] *= c, Jt.elements[2] *= c, Jt.elements[4] *= u, Jt.elements[5] *= u, Jt.elements[6] *= u, Jt.elements[8] *= h, Jt.elements[9] *= h, Jt.elements[10] *= h, t.setFromRotationMatrix(Jt), i.x = s, i.y = a, i.z = o, this;
4774
4774
  }
4775
- makePerspective(e, t, i, r, s, a, o = Rn) {
4775
+ makePerspective(e, t, i, r, s, a, o = Ln) {
4776
4776
  const l = this.elements, c = 2 * s / (t - e), u = 2 * s / (i - r), h = (t + e) / (t - e), f = (i + r) / (i - r);
4777
4777
  let d, p;
4778
- if (o === Rn)
4778
+ if (o === Ln)
4779
4779
  d = -(a + s) / (a - s), p = -2 * a * s / (a - s);
4780
4780
  else if (o === Ds)
4781
4781
  d = -a / (a - s), p = -a * s / (a - s);
@@ -4783,10 +4783,10 @@ class it {
4783
4783
  throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: " + o);
4784
4784
  return l[0] = c, l[4] = 0, l[8] = h, l[12] = 0, l[1] = 0, l[5] = u, l[9] = f, l[13] = 0, l[2] = 0, l[6] = 0, l[10] = d, l[14] = p, l[3] = 0, l[7] = 0, l[11] = -1, l[15] = 0, this;
4785
4785
  }
4786
- makeOrthographic(e, t, i, r, s, a, o = Rn) {
4786
+ makeOrthographic(e, t, i, r, s, a, o = Ln) {
4787
4787
  const l = this.elements, c = 1 / (t - e), u = 1 / (i - r), h = 1 / (a - s), f = (t + e) * c, d = (i + r) * u;
4788
4788
  let p, _;
4789
- if (o === Rn)
4789
+ if (o === Ln)
4790
4790
  p = (a + s) * h, _ = -2 * h;
4791
4791
  else if (o === Ds)
4792
4792
  p = s * h, _ = -1 * h;
@@ -4811,7 +4811,7 @@ class it {
4811
4811
  return e[t] = i[0], e[t + 1] = i[1], e[t + 2] = i[2], e[t + 3] = i[3], e[t + 4] = i[4], e[t + 5] = i[5], e[t + 6] = i[6], e[t + 7] = i[7], e[t + 8] = i[8], e[t + 9] = i[9], e[t + 10] = i[10], e[t + 11] = i[11], e[t + 12] = i[12], e[t + 13] = i[13], e[t + 14] = i[14], e[t + 15] = i[15], e;
4812
4812
  }
4813
4813
  }
4814
- const Ei = /* @__PURE__ */ new D(), Jt = /* @__PURE__ */ new it(), Zm = /* @__PURE__ */ new D(0, 0, 0), Jm = /* @__PURE__ */ new D(1, 1, 1), On = /* @__PURE__ */ new D(), Xr = /* @__PURE__ */ new D(), Ht = /* @__PURE__ */ new D(), dc = /* @__PURE__ */ new it(), pc = /* @__PURE__ */ new pi();
4814
+ const Ei = /* @__PURE__ */ new D(), Jt = /* @__PURE__ */ new it(), Zm = /* @__PURE__ */ new D(0, 0, 0), Jm = /* @__PURE__ */ new D(1, 1, 1), Fn = /* @__PURE__ */ new D(), Xr = /* @__PURE__ */ new D(), Ht = /* @__PURE__ */ new D(), dc = /* @__PURE__ */ new it(), pc = /* @__PURE__ */ new pi();
4815
4815
  class Ws {
4816
4816
  constructor(e = 0, t = 0, i = 0, r = Ws.DEFAULT_ORDER) {
4817
4817
  this.isEuler = !0, this._x = e, this._y = t, this._z = i, this._order = r;
@@ -4933,10 +4933,10 @@ class Da {
4933
4933
  }
4934
4934
  }
4935
4935
  let Qm = 0;
4936
- const mc = /* @__PURE__ */ new D(), bi = /* @__PURE__ */ new pi(), bn = /* @__PURE__ */ new it(), $r = /* @__PURE__ */ new D(), ir = /* @__PURE__ */ new D(), eg = /* @__PURE__ */ new D(), tg = /* @__PURE__ */ new pi(), gc = /* @__PURE__ */ new D(1, 0, 0), _c = /* @__PURE__ */ new D(0, 1, 0), vc = /* @__PURE__ */ new D(0, 0, 1), ng = { type: "added" }, ig = { type: "removed" };
4936
+ const mc = /* @__PURE__ */ new D(), bi = /* @__PURE__ */ new pi(), Tn = /* @__PURE__ */ new it(), $r = /* @__PURE__ */ new D(), ir = /* @__PURE__ */ new D(), eg = /* @__PURE__ */ new D(), tg = /* @__PURE__ */ new pi(), gc = /* @__PURE__ */ new D(1, 0, 0), _c = /* @__PURE__ */ new D(0, 1, 0), vc = /* @__PURE__ */ new D(0, 0, 1), ng = { type: "added" }, ig = { type: "removed" };
4937
4937
  class at extends gi {
4938
4938
  constructor() {
4939
- super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Qm++ }), this.uuid = mn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = at.DEFAULT_UP.clone();
4939
+ super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Qm++ }), this.uuid = gn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = at.DEFAULT_UP.clone();
4940
4940
  const e = new D(), t = new Ws(), i = new pi(), r = new D(1, 1, 1);
4941
4941
  function s() {
4942
4942
  i.setFromEuler(t, !1);
@@ -5026,12 +5026,12 @@ class at extends gi {
5026
5026
  return this.updateWorldMatrix(!0, !1), e.applyMatrix4(this.matrixWorld);
5027
5027
  }
5028
5028
  worldToLocal(e) {
5029
- return this.updateWorldMatrix(!0, !1), e.applyMatrix4(bn.copy(this.matrixWorld).invert());
5029
+ return this.updateWorldMatrix(!0, !1), e.applyMatrix4(Tn.copy(this.matrixWorld).invert());
5030
5030
  }
5031
5031
  lookAt(e, t, i) {
5032
5032
  e.isVector3 ? $r.copy(e) : $r.set(e, t, i);
5033
5033
  const r = this.parent;
5034
- this.updateWorldMatrix(!0, !1), ir.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? bn.lookAt(ir, $r, this.up) : bn.lookAt($r, ir, this.up), this.quaternion.setFromRotationMatrix(bn), r && (bn.extractRotation(r.matrixWorld), bi.setFromRotationMatrix(bn), this.quaternion.premultiply(bi.invert()));
5034
+ this.updateWorldMatrix(!0, !1), ir.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Tn.lookAt(ir, $r, this.up) : Tn.lookAt($r, ir, this.up), this.quaternion.setFromRotationMatrix(Tn), r && (Tn.extractRotation(r.matrixWorld), bi.setFromRotationMatrix(Tn), this.quaternion.premultiply(bi.invert()));
5035
5035
  }
5036
5036
  add(e) {
5037
5037
  if (arguments.length > 1) {
@@ -5058,7 +5058,7 @@ class at extends gi {
5058
5058
  return this.remove(...this.children);
5059
5059
  }
5060
5060
  attach(e) {
5061
- return this.updateWorldMatrix(!0, !1), bn.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), bn.multiply(e.parent.matrixWorld)), e.applyMatrix4(bn), this.add(e), e.updateWorldMatrix(!1, !0), this;
5061
+ return this.updateWorldMatrix(!0, !1), Tn.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Tn.multiply(e.parent.matrixWorld)), e.applyMatrix4(Tn), this.add(e), e.updateWorldMatrix(!1, !0), this;
5062
5062
  }
5063
5063
  getObjectById(e) {
5064
5064
  return this.getObjectByProperty("id", e);
@@ -5225,7 +5225,7 @@ class at extends gi {
5225
5225
  at.DEFAULT_UP = /* @__PURE__ */ new D(0, 1, 0);
5226
5226
  at.DEFAULT_MATRIX_AUTO_UPDATE = !0;
5227
5227
  at.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
5228
- const Qt = /* @__PURE__ */ new D(), Tn = /* @__PURE__ */ new D(), Mo = /* @__PURE__ */ new D(), wn = /* @__PURE__ */ new D(), Ti = /* @__PURE__ */ new D(), wi = /* @__PURE__ */ new D(), xc = /* @__PURE__ */ new D(), Eo = /* @__PURE__ */ new D(), bo = /* @__PURE__ */ new D(), To = /* @__PURE__ */ new D();
5228
+ const Qt = /* @__PURE__ */ new D(), wn = /* @__PURE__ */ new D(), Mo = /* @__PURE__ */ new D(), An = /* @__PURE__ */ new D(), Ti = /* @__PURE__ */ new D(), wi = /* @__PURE__ */ new D(), xc = /* @__PURE__ */ new D(), Eo = /* @__PURE__ */ new D(), bo = /* @__PURE__ */ new D(), To = /* @__PURE__ */ new D();
5229
5229
  let qr = !1;
5230
5230
  class tn {
5231
5231
  constructor(e = new D(), t = new D(), i = new D()) {
@@ -5239,24 +5239,24 @@ class tn {
5239
5239
  // static/instance method to calculate barycentric coordinates
5240
5240
  // based on: http://www.blackpawn.com/texts/pointinpoly/default.html
5241
5241
  static getBarycoord(e, t, i, r, s) {
5242
- Qt.subVectors(r, t), Tn.subVectors(i, t), Mo.subVectors(e, t);
5243
- const a = Qt.dot(Qt), o = Qt.dot(Tn), l = Qt.dot(Mo), c = Tn.dot(Tn), u = Tn.dot(Mo), h = a * c - o * o;
5242
+ Qt.subVectors(r, t), wn.subVectors(i, t), Mo.subVectors(e, t);
5243
+ const a = Qt.dot(Qt), o = Qt.dot(wn), l = Qt.dot(Mo), c = wn.dot(wn), u = wn.dot(Mo), h = a * c - o * o;
5244
5244
  if (h === 0)
5245
5245
  return s.set(-2, -1, -1);
5246
5246
  const f = 1 / h, d = (c * l - o * u) * f, p = (a * u - o * l) * f;
5247
5247
  return s.set(1 - d - p, p, d);
5248
5248
  }
5249
5249
  static containsPoint(e, t, i, r) {
5250
- return this.getBarycoord(e, t, i, r, wn), wn.x >= 0 && wn.y >= 0 && wn.x + wn.y <= 1;
5250
+ return this.getBarycoord(e, t, i, r, An), An.x >= 0 && An.y >= 0 && An.x + An.y <= 1;
5251
5251
  }
5252
5252
  static getUV(e, t, i, r, s, a, o, l) {
5253
5253
  return qr === !1 && (console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."), qr = !0), this.getInterpolation(e, t, i, r, s, a, o, l);
5254
5254
  }
5255
5255
  static getInterpolation(e, t, i, r, s, a, o, l) {
5256
- return this.getBarycoord(e, t, i, r, wn), l.setScalar(0), l.addScaledVector(s, wn.x), l.addScaledVector(a, wn.y), l.addScaledVector(o, wn.z), l;
5256
+ return this.getBarycoord(e, t, i, r, An), l.setScalar(0), l.addScaledVector(s, An.x), l.addScaledVector(a, An.y), l.addScaledVector(o, An.z), l;
5257
5257
  }
5258
5258
  static isFrontFacing(e, t, i, r) {
5259
- return Qt.subVectors(i, t), Tn.subVectors(e, t), Qt.cross(Tn).dot(r) < 0;
5259
+ return Qt.subVectors(i, t), wn.subVectors(e, t), Qt.cross(wn).dot(r) < 0;
5260
5260
  }
5261
5261
  set(e, t, i) {
5262
5262
  return this.a.copy(e), this.b.copy(t), this.c.copy(i), this;
@@ -5274,7 +5274,7 @@ class tn {
5274
5274
  return this.a.copy(e.a), this.b.copy(e.b), this.c.copy(e.c), this;
5275
5275
  }
5276
5276
  getArea() {
5277
- return Qt.subVectors(this.c, this.b), Tn.subVectors(this.a, this.b), Qt.cross(Tn).length() * 0.5;
5277
+ return Qt.subVectors(this.c, this.b), wn.subVectors(this.a, this.b), Qt.cross(wn).length() * 0.5;
5278
5278
  }
5279
5279
  getMidpoint(e) {
5280
5280
  return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
@@ -5337,7 +5337,7 @@ class tn {
5337
5337
  let rg = 0;
5338
5338
  class Zi extends gi {
5339
5339
  constructor() {
5340
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: rg++ }), this.uuid = mn(), this.name = "", this.type = "Material", this.blending = Hi, this.side = jn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ih, this.blendDst = rh, this.blendEquation = Ni, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = ea, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = gm, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ho, this.stencilZFail = ho, this.stencilZPass = ho, 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;
5340
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: rg++ }), this.uuid = gn(), this.name = "", this.type = "Material", this.blending = Hi, this.side = jn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ih, this.blendDst = rh, this.blendEquation = Ni, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = ea, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = gm, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ho, this.stencilZFail = ho, this.stencilZPass = ho, 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;
5341
5341
  }
5342
5342
  get alphaTest() {
5343
5343
  return this._alphaTest;
@@ -5842,35 +5842,35 @@ class an {
5842
5842
  }
5843
5843
  getComponent(e, t) {
5844
5844
  let i = this.array[e * this.itemSize + t];
5845
- return this.normalized && (i = fn(i, this.array)), i;
5845
+ return this.normalized && (i = dn(i, this.array)), i;
5846
5846
  }
5847
5847
  setComponent(e, t, i) {
5848
5848
  return this.normalized && (i = Ye(i, this.array)), this.array[e * this.itemSize + t] = i, this;
5849
5849
  }
5850
5850
  getX(e) {
5851
5851
  let t = this.array[e * this.itemSize];
5852
- return this.normalized && (t = fn(t, this.array)), t;
5852
+ return this.normalized && (t = dn(t, this.array)), t;
5853
5853
  }
5854
5854
  setX(e, t) {
5855
5855
  return this.normalized && (t = Ye(t, this.array)), this.array[e * this.itemSize] = t, this;
5856
5856
  }
5857
5857
  getY(e) {
5858
5858
  let t = this.array[e * this.itemSize + 1];
5859
- return this.normalized && (t = fn(t, this.array)), t;
5859
+ return this.normalized && (t = dn(t, this.array)), t;
5860
5860
  }
5861
5861
  setY(e, t) {
5862
5862
  return this.normalized && (t = Ye(t, this.array)), this.array[e * this.itemSize + 1] = t, this;
5863
5863
  }
5864
5864
  getZ(e) {
5865
5865
  let t = this.array[e * this.itemSize + 2];
5866
- return this.normalized && (t = fn(t, this.array)), t;
5866
+ return this.normalized && (t = dn(t, this.array)), t;
5867
5867
  }
5868
5868
  setZ(e, t) {
5869
5869
  return this.normalized && (t = Ye(t, this.array)), this.array[e * this.itemSize + 2] = t, this;
5870
5870
  }
5871
5871
  getW(e) {
5872
5872
  let t = this.array[e * this.itemSize + 3];
5873
- return this.normalized && (t = fn(t, this.array)), t;
5873
+ return this.normalized && (t = dn(t, this.array)), t;
5874
5874
  }
5875
5875
  setW(e, t) {
5876
5876
  return this.normalized && (t = Ye(t, this.array)), this.array[e * this.itemSize + 3] = t, this;
@@ -5917,9 +5917,9 @@ class jt extends an {
5917
5917
  }
5918
5918
  let sg = 0;
5919
5919
  const Xt = /* @__PURE__ */ new it(), Ao = /* @__PURE__ */ new at(), Ai = /* @__PURE__ */ new D(), kt = /* @__PURE__ */ new Kn(), rr = /* @__PURE__ */ new Kn(), St = /* @__PURE__ */ new D();
5920
- class _n extends gi {
5920
+ class vn extends gi {
5921
5921
  constructor() {
5922
- super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: sg++ }), this.uuid = mn(), 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 = {};
5922
+ super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: sg++ }), this.uuid = gn(), 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 = {};
5923
5923
  }
5924
5924
  getIndex() {
5925
5925
  return this.index;
@@ -6126,7 +6126,7 @@ class _n extends gi {
6126
6126
  }
6127
6127
  if (this.index === null)
6128
6128
  return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
6129
- const t = new _n(), i = this.index.array, r = this.attributes;
6129
+ const t = new vn(), i = this.index.array, r = this.attributes;
6130
6130
  for (const o in r) {
6131
6131
  const l = r[o], c = e(l, i);
6132
6132
  t.setAttribute(o, c);
@@ -6229,8 +6229,8 @@ class _n extends gi {
6229
6229
  }
6230
6230
  }
6231
6231
  const yc = /* @__PURE__ */ new it(), ti = /* @__PURE__ */ new Pa(), Kr = /* @__PURE__ */ new Dr(), Sc = /* @__PURE__ */ new D(), Ci = /* @__PURE__ */ new D(), Ri = /* @__PURE__ */ new D(), Li = /* @__PURE__ */ new D(), Co = /* @__PURE__ */ new D(), Zr = /* @__PURE__ */ new D(), Jr = /* @__PURE__ */ new ue(), Qr = /* @__PURE__ */ new ue(), es = /* @__PURE__ */ new ue(), Mc = /* @__PURE__ */ new D(), Ec = /* @__PURE__ */ new D(), bc = /* @__PURE__ */ new D(), ts = /* @__PURE__ */ new D(), ns = /* @__PURE__ */ new D();
6232
- class pn extends at {
6233
- constructor(e = new _n(), t = new Ia()) {
6232
+ class mn extends at {
6233
+ constructor(e = new vn(), t = new Ia()) {
6234
6234
  super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.updateMorphTargets();
6235
6235
  }
6236
6236
  copy(e, t) {
@@ -6332,7 +6332,7 @@ function is(n, e, t, i, r, s, a, o, l, c) {
6332
6332
  }
6333
6333
  return u;
6334
6334
  }
6335
- class Ir extends _n {
6335
+ class Ir extends vn {
6336
6336
  constructor(e = 1, t = 1, i = 1, r = 1, s = 1, a = 1) {
6337
6337
  super(), this.type = "BoxGeometry", this.parameters = {
6338
6338
  width: e,
@@ -6400,7 +6400,7 @@ function ag(n) {
6400
6400
  return e;
6401
6401
  }
6402
6402
  function Mh(n) {
6403
- return n.getRenderTarget() === null ? n.outputColorSpace : gn;
6403
+ return n.getRenderTarget() === null ? n.outputColorSpace : _n;
6404
6404
  }
6405
6405
  const Ua = { clone: $i, merge: Pt };
6406
6406
  var lg = `void main() {
@@ -6467,7 +6467,7 @@ class Yn extends Zi {
6467
6467
  }
6468
6468
  class Eh extends at {
6469
6469
  constructor() {
6470
- super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new it(), this.projectionMatrix = new it(), this.projectionMatrixInverse = new it(), this.coordinateSystem = Rn;
6470
+ super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new it(), this.projectionMatrix = new it(), this.projectionMatrixInverse = new it(), this.coordinateSystem = Ln;
6471
6471
  }
6472
6472
  copy(e, t) {
6473
6473
  return super.copy(e, t), this.matrixWorldInverse.copy(e.matrixWorldInverse), this.projectionMatrix.copy(e.projectionMatrix), this.projectionMatrixInverse.copy(e.projectionMatrixInverse), this.coordinateSystem = e.coordinateSystem, this;
@@ -6610,7 +6610,7 @@ class ug extends at {
6610
6610
  const e = this.coordinateSystem, t = this.children.concat(), [i, r, s, a, o, l] = t;
6611
6611
  for (const c of t)
6612
6612
  this.remove(c);
6613
- if (e === Rn)
6613
+ if (e === Ln)
6614
6614
  i.up.set(0, 1, 0), i.lookAt(1, 0, 0), r.up.set(0, 1, 0), r.lookAt(-1, 0, 0), s.up.set(0, 0, -1), s.lookAt(0, 1, 0), a.up.set(0, 0, 1), a.lookAt(0, -1, 0), o.up.set(0, 1, 0), o.lookAt(0, 0, 1), l.up.set(0, 1, 0), l.lookAt(0, 0, -1);
6615
6615
  else if (e === Ds)
6616
6616
  i.up.set(0, -1, 0), i.lookAt(-1, 0, 0), r.up.set(0, -1, 0), r.lookAt(1, 0, 0), s.up.set(0, 0, 1), s.lookAt(0, 1, 0), a.up.set(0, 0, -1), a.lookAt(0, -1, 0), o.up.set(0, -1, 0), o.lookAt(0, 0, 1), l.up.set(0, -1, 0), l.lookAt(0, 0, -1);
@@ -6704,7 +6704,7 @@ class hg extends di {
6704
6704
  blending: Wn
6705
6705
  });
6706
6706
  s.uniforms.tEquirect.value = t;
6707
- const a = new pn(r, s), o = t.minFilter;
6707
+ const a = new mn(r, s), o = t.minFilter;
6708
6708
  return t.minFilter === yr && (t.minFilter = $t), new ug(1, 10, this).update(e, a), t.minFilter = o, a.geometry.dispose(), a.material.dispose(), this;
6709
6709
  }
6710
6710
  clear(e, t, i, r) {
@@ -6800,9 +6800,9 @@ class Na {
6800
6800
  t[i].copy(e.planes[i]);
6801
6801
  return this;
6802
6802
  }
6803
- setFromProjectionMatrix(e, t = Rn) {
6803
+ setFromProjectionMatrix(e, t = Ln) {
6804
6804
  const i = this.planes, r = e.elements, s = r[0], a = r[1], o = r[2], l = r[3], c = r[4], u = r[5], h = r[6], f = r[7], d = r[8], p = r[9], _ = r[10], m = r[11], g = r[12], y = r[13], v = r[14], M = r[15];
6805
- if (i[0].setComponents(l - s, f - c, m - d, M - g).normalize(), i[1].setComponents(l + s, f + c, m + d, M + g).normalize(), i[2].setComponents(l + a, f + u, m + p, M + y).normalize(), i[3].setComponents(l - a, f - u, m - p, M - y).normalize(), i[4].setComponents(l - o, f - h, m - _, M - v).normalize(), t === Rn)
6805
+ if (i[0].setComponents(l - s, f - c, m - d, M - g).normalize(), i[1].setComponents(l + s, f + c, m + d, M + g).normalize(), i[2].setComponents(l + a, f + u, m + p, M + y).normalize(), i[3].setComponents(l - a, f - u, m - p, M - y).normalize(), i[4].setComponents(l - o, f - h, m - _, M - v).normalize(), t === Ln)
6806
6806
  i[5].setComponents(l + o, f + h, m + _, M + v).normalize();
6807
6807
  else if (t === Ds)
6808
6808
  i[5].setComponents(o, h, _, v).normalize();
@@ -6949,7 +6949,7 @@ function pg(n, e) {
6949
6949
  update: l
6950
6950
  };
6951
6951
  }
6952
- class Oa extends _n {
6952
+ class Oa extends vn {
6953
6953
  constructor(e = 1, t = 1, i = 1, r = 1) {
6954
6954
  super(), this.type = "PlaneGeometry", this.parameters = {
6955
6955
  width: e,
@@ -10871,7 +10871,7 @@ function $v(n, e, t, i, r, s, a) {
10871
10871
  let y = !1, v = g.isScene === !0 ? g.background : null;
10872
10872
  v && v.isTexture && (v = (g.backgroundBlurriness > 0 ? t : e).get(v)), v === null ? _(o, l) : v && v.isColor && (_(v, 1), y = !0);
10873
10873
  const M = n.xr.getEnvironmentBlendMode();
10874
- M === "additive" ? i.buffers.color.setClear(0, 0, 0, 1, a) : M === "alpha-blend" && i.buffers.color.setClear(0, 0, 0, 0, a), (n.autoClear || y) && n.clear(n.autoClearColor, n.autoClearDepth, n.autoClearStencil), v && (v.isCubeTexture || v.mapping === Gs) ? (u === void 0 && (u = new pn(
10874
+ M === "additive" ? i.buffers.color.setClear(0, 0, 0, 1, a) : M === "alpha-blend" && i.buffers.color.setClear(0, 0, 0, 0, a), (n.autoClear || y) && n.clear(n.autoClearColor, n.autoClearDepth, n.autoClearStencil), v && (v.isCubeTexture || v.mapping === Gs) ? (u === void 0 && (u = new mn(
10875
10875
  new Ir(1, 1, 1),
10876
10876
  new Yn({
10877
10877
  name: "BackgroundCubeMaterial",
@@ -10889,7 +10889,7 @@ function $v(n, e, t, i, r, s, a) {
10889
10889
  get: function() {
10890
10890
  return this.uniforms.envMap.value;
10891
10891
  }
10892
- }), r.update(u)), u.material.uniforms.envMap.value = v, u.material.uniforms.flipEnvMap.value = v.isCubeTexture && v.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = g.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = g.backgroundIntensity, u.material.toneMapped = v.colorSpace !== nt, (h !== v || f !== v.version || d !== n.toneMapping) && (u.material.needsUpdate = !0, h = v, f = v.version, d = n.toneMapping), u.layers.enableAll(), m.unshift(u, u.geometry, u.material, 0, 0, null)) : v && v.isTexture && (c === void 0 && (c = new pn(
10892
+ }), r.update(u)), u.material.uniforms.envMap.value = v, u.material.uniforms.flipEnvMap.value = v.isCubeTexture && v.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = g.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = g.backgroundIntensity, u.material.toneMapped = v.colorSpace !== nt, (h !== v || f !== v.version || d !== n.toneMapping) && (u.material.needsUpdate = !0, h = v, f = v.version, d = n.toneMapping), u.layers.enableAll(), m.unshift(u, u.geometry, u.material, 0, 0, null)) : v && v.isTexture && (c === void 0 && (c = new mn(
10893
10893
  new Oa(2, 2),
10894
10894
  new Yn({
10895
10895
  name: "BackgroundMaterial",
@@ -11430,7 +11430,7 @@ class Cc {
11430
11430
  generateMipmaps: !1,
11431
11431
  type: Sr,
11432
11432
  format: rn,
11433
- colorSpace: gn,
11433
+ colorSpace: _n,
11434
11434
  depthBuffer: !1
11435
11435
  }, r = Rc(e, t, i);
11436
11436
  if (this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== e || this._pingPongRenderTarget.height !== t) {
@@ -11441,7 +11441,7 @@ class Cc {
11441
11441
  return r;
11442
11442
  }
11443
11443
  _compileMaterial(e) {
11444
- const t = new pn(this._lodPlanes[0], e);
11444
+ const t = new mn(this._lodPlanes[0], e);
11445
11445
  this._renderer.compile(t, Lo);
11446
11446
  }
11447
11447
  _sceneToCubeUV(e, t, i, r) {
@@ -11452,7 +11452,7 @@ class Cc {
11452
11452
  side: Ot,
11453
11453
  depthWrite: !1,
11454
11454
  depthTest: !1
11455
- }), p = new pn(new Ir(), d);
11455
+ }), p = new mn(new Ir(), d);
11456
11456
  let _ = !1;
11457
11457
  const m = e.background;
11458
11458
  m ? m.isColor && (d.color.copy(m), e.background = null, _ = !0) : (d.color.copy(wc), _ = !0);
@@ -11467,7 +11467,7 @@ class Cc {
11467
11467
  _textureToCubeUV(e, t) {
11468
11468
  const i = this._renderer, r = e.mapping === Vi || e.mapping === Wi;
11469
11469
  r ? (this._cubemapMaterial === null && (this._cubemapMaterial = Pc()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = Lc());
11470
- const s = r ? this._cubemapMaterial : this._equirectMaterial, a = new pn(this._lodPlanes[0], s), o = s.uniforms;
11470
+ const s = r ? this._cubemapMaterial : this._equirectMaterial, a = new mn(this._lodPlanes[0], s), o = s.uniforms;
11471
11471
  o.envMap.value = e;
11472
11472
  const l = this._cubeSize;
11473
11473
  os(t, 0, 0, 3 * l, 2 * l), i.setRenderTarget(t), i.render(a, Lo);
@@ -11513,7 +11513,7 @@ class Cc {
11513
11513
  a !== "latitudinal" && a !== "longitudinal" && console.error(
11514
11514
  "blur direction must be either latitudinal or longitudinal!"
11515
11515
  );
11516
- const u = 3, h = new pn(this._lodPlanes[r], c), f = c.uniforms, d = this._sizeLods[i] - 1, p = isFinite(s) ? Math.PI / (2 * d) : 2 * Math.PI / (2 * ri - 1), _ = s / p, m = isFinite(s) ? 1 + Math.floor(u * _) : ri;
11516
+ const u = 3, h = new mn(this._lodPlanes[r], c), f = c.uniforms, d = this._sizeLods[i] - 1, p = isFinite(s) ? Math.PI / (2 * d) : 2 * Math.PI / (2 * ri - 1), _ = s / p, m = isFinite(s) ? 1 + Math.floor(u * _) : ri;
11517
11517
  m > ri && console.warn(`sigmaRadians, ${s}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${ri}`);
11518
11518
  const g = [];
11519
11519
  let y = 0;
@@ -11565,7 +11565,7 @@ function Qv(n) {
11565
11565
  const E = [R, R, R, R, R, R];
11566
11566
  M.set(E, g * p * R);
11567
11567
  }
11568
- const b = new _n();
11568
+ const b = new vn();
11569
11569
  b.setAttribute("position", new an(y, _)), b.setAttribute("uv", new an(v, m)), b.setAttribute("faceIndex", new an(M, g)), e.push(b), r > Oi && r--;
11570
11570
  }
11571
11571
  return { lodPlanes: e, sizeLods: t, sigmas: i };
@@ -12589,7 +12589,7 @@ function tx(n, e) {
12589
12589
  }
12590
12590
  function nx(n) {
12591
12591
  switch (n) {
12592
- case gn:
12592
+ case _n:
12593
12593
  return ["Linear", "( value )"];
12594
12594
  case nt:
12595
12595
  return ["sRGB", "( value )"];
@@ -12723,7 +12723,7 @@ precision ` + n.precision + " int;";
12723
12723
  }
12724
12724
  function dx(n) {
12725
12725
  let e = "SHADOWMAP_TYPE_BASIC";
12726
- return n.shadowMapType === nh ? e = "SHADOWMAP_TYPE_PCF" : n.shadowMapType === Lp ? e = "SHADOWMAP_TYPE_PCF_SOFT" : n.shadowMapType === An && (e = "SHADOWMAP_TYPE_VSM"), e;
12726
+ return n.shadowMapType === nh ? e = "SHADOWMAP_TYPE_PCF" : n.shadowMapType === Lp ? e = "SHADOWMAP_TYPE_PCF_SOFT" : n.shadowMapType === Cn && (e = "SHADOWMAP_TYPE_VSM"), e;
12727
12727
  }
12728
12728
  function px(n) {
12729
12729
  let e = "ENVMAP_TYPE_CUBE";
@@ -13177,7 +13177,7 @@ function Mx(n, e, t, i, r, s, a) {
13177
13177
  instancing: Te,
13178
13178
  instancingColor: Te && N.instanceColor !== null,
13179
13179
  supportsVertexTextures: f,
13180
- outputColorSpace: we === null ? n.outputColorSpace : we.isXRRenderTarget === !0 ? we.texture.colorSpace : gn,
13180
+ outputColorSpace: we === null ? n.outputColorSpace : we.isXRRenderTarget === !0 ? we.texture.colorSpace : _n,
13181
13181
  map: Ve,
13182
13182
  matcap: Ze,
13183
13183
  envMap: Ce,
@@ -13280,7 +13280,7 @@ function Mx(n, e, t, i, r, s, a) {
13280
13280
  useLegacyLights: n._useLegacyLights,
13281
13281
  decodeVideoTexture: Ve && x.map.isVideoTexture === !0 && x.map.colorSpace === nt,
13282
13282
  premultipliedAlpha: x.premultipliedAlpha,
13283
- doubleSided: x.side === Cn,
13283
+ doubleSided: x.side === Rn,
13284
13284
  flipSided: x.side === Ot,
13285
13285
  useDepthPacking: x.depthPacking >= 0,
13286
13286
  depthPacking: x.depthPacking || 0,
@@ -13750,7 +13750,7 @@ void main() {
13750
13750
  }`;
13751
13751
  function Ox(n, e, t) {
13752
13752
  let i = new Na();
13753
- const r = new ue(), s = new ue(), a = new Ke(), o = new Dx({ depthPacking: pm }), l = new Ix(), c = {}, u = t.maxTextureSize, h = { [jn]: Ot, [Ot]: jn, [Cn]: Cn }, f = new Yn({
13753
+ const r = new ue(), s = new ue(), a = new Ke(), o = new Dx({ depthPacking: pm }), l = new Ix(), c = {}, u = t.maxTextureSize, h = { [jn]: Ot, [Ot]: jn, [Rn]: Rn }, f = new Yn({
13754
13754
  defines: {
13755
13755
  VSM_SAMPLES: 8
13756
13756
  },
@@ -13763,7 +13763,7 @@ function Ox(n, e, t) {
13763
13763
  fragmentShader: Nx
13764
13764
  }), d = f.clone();
13765
13765
  d.defines.HORIZONTAL_PASS = 1;
13766
- const p = new _n();
13766
+ const p = new vn();
13767
13767
  p.setAttribute(
13768
13768
  "position",
13769
13769
  new an(
@@ -13771,7 +13771,7 @@ function Ox(n, e, t) {
13771
13771
  3
13772
13772
  )
13773
13773
  );
13774
- const _ = new pn(p, f), m = this;
13774
+ const _ = new mn(p, f), m = this;
13775
13775
  this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = nh;
13776
13776
  let g = this.type;
13777
13777
  this.render = function(b, R, w) {
@@ -13779,7 +13779,7 @@ function Ox(n, e, t) {
13779
13779
  return;
13780
13780
  const O = n.getRenderTarget(), x = n.getActiveCubeFace(), E = n.getActiveMipmapLevel(), F = n.state;
13781
13781
  F.setBlending(Wn), F.buffers.color.setClear(1, 1, 1, 1), F.buffers.depth.setTest(!0), F.setScissorTest(!1);
13782
- const ee = g !== An && this.type === An, N = g === An && this.type !== An;
13782
+ const ee = g !== Cn && this.type === Cn, N = g === Cn && this.type !== Cn;
13783
13783
  for (let U = 0, C = b.length; U < C; U++) {
13784
13784
  const z = b[U], H = z.shadow;
13785
13785
  if (H === void 0) {
@@ -13791,7 +13791,7 @@ function Ox(n, e, t) {
13791
13791
  r.copy(H.mapSize);
13792
13792
  const V = H.getFrameExtents();
13793
13793
  if (r.multiply(V), s.copy(H.mapSize), (r.x > u || r.y > u) && (r.x > u && (s.x = Math.floor(u / V.x), r.x = s.x * V.x, H.mapSize.x = s.x), r.y > u && (s.y = Math.floor(u / V.y), r.y = s.y * V.y, H.mapSize.y = s.y)), H.map === null || ee === !0 || N === !0) {
13794
- const Q = this.type !== An ? { minFilter: Dt, magFilter: Dt } : {};
13794
+ const Q = this.type !== Cn ? { minFilter: Dt, magFilter: Dt } : {};
13795
13795
  H.map !== null && H.map.dispose(), H.map = new di(r.x, r.y, Q), H.map.texture.name = z.name + ".shadowMap", H.camera.updateProjectionMatrix();
13796
13796
  }
13797
13797
  n.setRenderTarget(H.map), n.clear();
@@ -13805,7 +13805,7 @@ function Ox(n, e, t) {
13805
13805
  s.y * B.w
13806
13806
  ), F.viewport(a), H.updateMatrices(z, Q), i = H.getFrustum(), M(R, w, H.camera, z, this.type);
13807
13807
  }
13808
- H.isPointLightShadow !== !0 && this.type === An && y(H, w), H.needsUpdate = !1;
13808
+ H.isPointLightShadow !== !0 && this.type === Cn && y(H, w), H.needsUpdate = !1;
13809
13809
  }
13810
13810
  g = this.type, m.needsUpdate = !1, n.setRenderTarget(O, x, E);
13811
13811
  };
@@ -13825,7 +13825,7 @@ function Ox(n, e, t) {
13825
13825
  let U = N[ee];
13826
13826
  U === void 0 && (U = x.clone(), N[ee] = U), x = U;
13827
13827
  }
13828
- if (x.visible = R.visible, x.wireframe = R.wireframe, O === An ? x.side = R.shadowSide !== null ? R.shadowSide : R.side : x.side = R.shadowSide !== null ? R.shadowSide : h[R.side], x.alphaMap = R.alphaMap, x.alphaTest = R.alphaTest, x.map = R.map, x.clipShadows = R.clipShadows, x.clippingPlanes = R.clippingPlanes, x.clipIntersection = R.clipIntersection, x.displacementMap = R.displacementMap, x.displacementScale = R.displacementScale, x.displacementBias = R.displacementBias, x.wireframeLinewidth = R.wireframeLinewidth, x.linewidth = R.linewidth, w.isPointLight === !0 && x.isMeshDistanceMaterial === !0) {
13828
+ if (x.visible = R.visible, x.wireframe = R.wireframe, O === Cn ? x.side = R.shadowSide !== null ? R.shadowSide : R.side : x.side = R.shadowSide !== null ? R.shadowSide : h[R.side], x.alphaMap = R.alphaMap, x.alphaTest = R.alphaTest, x.map = R.map, x.clipShadows = R.clipShadows, x.clippingPlanes = R.clippingPlanes, x.clipIntersection = R.clipIntersection, x.displacementMap = R.displacementMap, x.displacementScale = R.displacementScale, x.displacementBias = R.displacementBias, x.wireframeLinewidth = R.wireframeLinewidth, x.linewidth = R.linewidth, w.isPointLight === !0 && x.isMeshDistanceMaterial === !0) {
13829
13829
  const F = n.properties.get(x);
13830
13830
  F.light = w;
13831
13831
  }
@@ -13834,7 +13834,7 @@ function Ox(n, e, t) {
13834
13834
  function M(b, R, w, O, x) {
13835
13835
  if (b.visible === !1)
13836
13836
  return;
13837
- if (b.layers.test(R.layers) && (b.isMesh || b.isLine || b.isPoints) && (b.castShadow || b.receiveShadow && x === An) && (!b.frustumCulled || i.intersectsObject(b))) {
13837
+ if (b.layers.test(R.layers) && (b.isMesh || b.isLine || b.isPoints) && (b.castShadow || b.receiveShadow && x === Cn) && (!b.frustumCulled || i.intersectsObject(b))) {
13838
13838
  b.modelViewMatrix.multiplyMatrices(w.matrixWorldInverse, b.matrixWorld);
13839
13839
  const ee = e.update(b), N = b.material;
13840
13840
  if (Array.isArray(N)) {
@@ -14076,7 +14076,7 @@ function Fx(n, e, t) {
14076
14076
  fe = fe || _e, He = He || $, qe = qe || re, (_e !== v || fe !== R) && (n.blendEquationSeparate(L[_e], L[fe]), v = _e, R = fe), ($ !== M || re !== b || He !== w || qe !== O) && (n.blendFuncSeparate(he[$], he[re], he[He], he[qe]), M = $, b = re, w = He, O = qe), y = I, x = !1;
14077
14077
  }
14078
14078
  function ae(I, _e) {
14079
- I.side === Cn ? Te(n.CULL_FACE) : we(n.CULL_FACE);
14079
+ I.side === Rn ? Te(n.CULL_FACE) : we(n.CULL_FACE);
14080
14080
  let $ = I.side === Ot;
14081
14081
  _e && ($ = !$), ne($), I.blending === Hi && I.transparent === !1 ? J(Wn) : J(I.blending, I.blendEquation, I.blendSrc, I.blendDst, I.blendEquationAlpha, I.blendSrcAlpha, I.blendDstAlpha, I.premultipliedAlpha), l.setFunc(I.depthFunc), l.setTest(I.depthTest), l.setMask(I.depthWrite), o.setMask(I.colorWrite);
14082
14082
  const re = I.stencilWrite;
@@ -14729,7 +14729,7 @@ function Bx(n, e, t, i, r, s, a) {
14729
14729
  }
14730
14730
  function tt(A, S) {
14731
14731
  const W = A.colorSpace, se = A.format, ie = A.type;
14732
- return A.isCompressedTexture === !0 || A.isVideoTexture === !0 || A.format === oa || W !== gn && W !== ci && (W === nt || W === Vs ? o === !1 ? e.has("EXT_sRGB") === !0 && se === rn ? (A.format = oa, A.minFilter = $t, A.generateMipmaps = !1) : S = gh.sRGBToLinear(S) : (se !== rn || ie !== $n) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", W)), S;
14732
+ return A.isCompressedTexture === !0 || A.isVideoTexture === !0 || A.format === oa || W !== _n && W !== ci && (W === nt || W === Vs ? o === !1 ? e.has("EXT_sRGB") === !0 && se === rn ? (A.format = oa, A.minFilter = $t, A.generateMipmaps = !1) : S = gh.sRGBToLinear(S) : (se !== rn || ie !== $n) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", W)), S;
14733
14733
  }
14734
14734
  this.allocateTextureUnit = V, this.resetTextureUnits = H, this.setTexture2D = Q, this.setTexture2DArray = B, this.setTexture3D = q, this.setTextureCube = oe, this.rebindTextures = ae, this.setupRenderTarget = ne, this.updateRenderTargetMipmap = be, this.updateMultisampleRenderTarget = ye, this.setupDepthRenderbuffer = J, this.setupFrameBufferTexture = Ce, this.useMultisampledRTT = Le;
14735
14735
  }
@@ -15553,8 +15553,8 @@ class Lh {
15553
15553
  if (Wt < 0 || Wt === 1 / 0)
15554
15554
  return;
15555
15555
  ve.setup(Y, G, Ie, j, Ue);
15556
- let yn, ft = te;
15557
- if (Ue !== null && (yn = tt.get(Ue), ft = xe, ft.setIndex(yn)), Y.isMesh)
15556
+ let Sn, ft = te;
15557
+ if (Ue !== null && (Sn = tt.get(Ue), ft = xe, ft.setIndex(Sn)), Y.isMesh)
15558
15558
  G.wireframe === !0 ? (ne.setLineWidth(G.wireframeLinewidth * Ce()), ft.setMode(L.LINES)) : ft.setMode(L.TRIANGLES);
15559
15559
  else if (Y.isLine) {
15560
15560
  let Ge = G.linewidth;
@@ -15570,7 +15570,7 @@ class Lh {
15570
15570
  ft.render(ot, Wt);
15571
15571
  }, this.compile = function(T, k) {
15572
15572
  function j(G, Y, Me) {
15573
- G.transparent === !0 && G.side === Cn && G.forceSinglePass === !1 ? (G.side = Ot, G.needsUpdate = !0, Fr(G, Y, Me), G.side = jn, G.needsUpdate = !0, Fr(G, Y, Me), G.side = Cn) : Fr(G, Y, Me);
15573
+ G.transparent === !0 && G.side === Rn && G.forceSinglePass === !1 ? (G.side = Ot, G.needsUpdate = !0, Fr(G, Y, Me), G.side = jn, G.needsUpdate = !0, Fr(G, Y, Me), G.side = Rn) : Fr(G, Y, Me);
15574
15574
  }
15575
15575
  m = le.get(T), m.init(), y.push(m), T.traverseVisible(function(G) {
15576
15576
  G.isLight && G.layers.test(k.layers) && (m.pushLight(G), G.castShadow && m.pushShadow(G));
@@ -15669,9 +15669,9 @@ class Lh {
15669
15669
  let Ie = !1;
15670
15670
  for (let Ue = 0, ke = k.length; Ue < ke; Ue++) {
15671
15671
  const Pe = k[Ue], Oe = Pe.object, ot = Pe.geometry, ct = Pe.material, Wt = Pe.group;
15672
- if (ct.side === Cn && Oe.layers.test(G.layers)) {
15673
- const yn = ct.side;
15674
- ct.side = Ot, ct.needsUpdate = !0, el(Oe, j, G, ot, ct, Wt), ct.side = yn, ct.needsUpdate = !0, Ie = !0;
15672
+ if (ct.side === Rn && Oe.layers.test(G.layers)) {
15673
+ const Sn = ct.side;
15674
+ ct.side = Ot, ct.needsUpdate = !0, el(Oe, j, G, ot, ct, Wt), ct.side = Sn, ct.needsUpdate = !0, Ie = !0;
15675
15675
  }
15676
15676
  }
15677
15677
  Ie === !0 && (Se.updateMultisampleRenderTarget(Ae), Se.updateRenderTargetMipmap(Ae)), v.setRenderTarget(Me), v.setClearColor(N, U), v.toneMapping = Re;
@@ -15684,7 +15684,7 @@ class Lh {
15684
15684
  }
15685
15685
  }
15686
15686
  function el(T, k, j, G, Y, Me) {
15687
- T.onBeforeRender(v, k, j, G, Y, Me), T.modelViewMatrix.multiplyMatrices(j.matrixWorldInverse, T.matrixWorld), T.normalMatrix.getNormalMatrix(T.modelViewMatrix), Y.onBeforeRender(v, k, j, G, T, Me), Y.transparent === !0 && Y.side === Cn && Y.forceSinglePass === !1 ? (Y.side = Ot, Y.needsUpdate = !0, v.renderBufferDirect(j, k, G, Y, T, Me), Y.side = jn, Y.needsUpdate = !0, v.renderBufferDirect(j, k, G, Y, T, Me), Y.side = Cn) : v.renderBufferDirect(j, k, G, Y, T, Me), T.onAfterRender(v, k, j, G, Y, Me);
15687
+ T.onBeforeRender(v, k, j, G, Y, Me), T.modelViewMatrix.multiplyMatrices(j.matrixWorldInverse, T.matrixWorld), T.normalMatrix.getNormalMatrix(T.modelViewMatrix), Y.onBeforeRender(v, k, j, G, T, Me), Y.transparent === !0 && Y.side === Rn && Y.forceSinglePass === !1 ? (Y.side = Ot, Y.needsUpdate = !0, v.renderBufferDirect(j, k, G, Y, T, Me), Y.side = jn, Y.needsUpdate = !0, v.renderBufferDirect(j, k, G, Y, T, Me), Y.side = Rn) : v.renderBufferDirect(j, k, G, Y, T, Me), T.onAfterRender(v, k, j, G, Y, Me);
15688
15688
  }
15689
15689
  function Fr(T, k, j) {
15690
15690
  k.isScene !== !0 && (k = Ze);
@@ -15708,10 +15708,10 @@ class Lh {
15708
15708
  }
15709
15709
  function _f(T, k, j, G, Y) {
15710
15710
  k.isScene !== !0 && (k = Ze), Se.resetTextureUnits();
15711
- const Me = k.fog, Re = G.isMeshStandardMaterial ? k.environment : null, Ie = w === null ? v.outputColorSpace : w.isXRRenderTarget === !0 ? w.texture.colorSpace : gn, Ue = (G.isMeshStandardMaterial ? ze : Le).get(G.envMap || Re), ke = G.vertexColors === !0 && !!j.attributes.color && j.attributes.color.itemSize === 4, Pe = !!j.attributes.tangent && (!!G.normalMap || G.anisotropy > 0), Oe = !!j.morphAttributes.position, ot = !!j.morphAttributes.normal, ct = !!j.morphAttributes.color;
15711
+ const Me = k.fog, Re = G.isMeshStandardMaterial ? k.environment : null, Ie = w === null ? v.outputColorSpace : w.isXRRenderTarget === !0 ? w.texture.colorSpace : _n, Ue = (G.isMeshStandardMaterial ? ze : Le).get(G.envMap || Re), ke = G.vertexColors === !0 && !!j.attributes.color && j.attributes.color.itemSize === 4, Pe = !!j.attributes.tangent && (!!G.normalMap || G.anisotropy > 0), Oe = !!j.morphAttributes.position, ot = !!j.morphAttributes.normal, ct = !!j.morphAttributes.color;
15712
15712
  let Wt = Xn;
15713
15713
  G.toneMapped && (w === null || w.isXRRenderTarget === !0) && (Wt = v.toneMapping);
15714
- const yn = j.morphAttributes.position || j.morphAttributes.normal || j.morphAttributes.color, ft = yn !== void 0 ? yn.length : 0, Ge = ye.get(G), Qs = m.state.lights;
15714
+ const Sn = j.morphAttributes.position || j.morphAttributes.normal || j.morphAttributes.color, ft = Sn !== void 0 ? Sn.length : 0, Ge = ye.get(G), Qs = m.state.lights;
15715
15715
  if (me === !0 && (ge === !0 || T !== x)) {
15716
15716
  const Bt = T === x && G.id === O;
15717
15717
  Ee.setState(G, T, Bt);
@@ -15836,8 +15836,8 @@ class Lh {
15836
15836
  return;
15837
15837
  }
15838
15838
  L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL, G.flipY), L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL, G.premultiplyAlpha), L.pixelStorei(L.UNPACK_ALIGNMENT, G.unpackAlignment);
15839
- const Oe = L.getParameter(L.UNPACK_ROW_LENGTH), ot = L.getParameter(L.UNPACK_IMAGE_HEIGHT), ct = L.getParameter(L.UNPACK_SKIP_PIXELS), Wt = L.getParameter(L.UNPACK_SKIP_ROWS), yn = L.getParameter(L.UNPACK_SKIP_IMAGES), ft = j.isCompressedTexture ? j.mipmaps[0] : j.image;
15840
- L.pixelStorei(L.UNPACK_ROW_LENGTH, ft.width), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, ft.height), L.pixelStorei(L.UNPACK_SKIP_PIXELS, T.min.x), L.pixelStorei(L.UNPACK_SKIP_ROWS, T.min.y), L.pixelStorei(L.UNPACK_SKIP_IMAGES, T.min.z), j.isDataTexture || j.isData3DTexture ? L.texSubImage3D(Pe, Y, k.x, k.y, k.z, Me, Re, Ie, Ue, ke, ft.data) : j.isCompressedArrayTexture ? (console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."), L.compressedTexSubImage3D(Pe, Y, k.x, k.y, k.z, Me, Re, Ie, Ue, ft.data)) : L.texSubImage3D(Pe, Y, k.x, k.y, k.z, Me, Re, Ie, Ue, ke, ft), L.pixelStorei(L.UNPACK_ROW_LENGTH, Oe), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, ot), L.pixelStorei(L.UNPACK_SKIP_PIXELS, ct), L.pixelStorei(L.UNPACK_SKIP_ROWS, Wt), L.pixelStorei(L.UNPACK_SKIP_IMAGES, yn), Y === 0 && G.generateMipmaps && L.generateMipmap(Pe), ne.unbindTexture();
15839
+ const Oe = L.getParameter(L.UNPACK_ROW_LENGTH), ot = L.getParameter(L.UNPACK_IMAGE_HEIGHT), ct = L.getParameter(L.UNPACK_SKIP_PIXELS), Wt = L.getParameter(L.UNPACK_SKIP_ROWS), Sn = L.getParameter(L.UNPACK_SKIP_IMAGES), ft = j.isCompressedTexture ? j.mipmaps[0] : j.image;
15840
+ L.pixelStorei(L.UNPACK_ROW_LENGTH, ft.width), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, ft.height), L.pixelStorei(L.UNPACK_SKIP_PIXELS, T.min.x), L.pixelStorei(L.UNPACK_SKIP_ROWS, T.min.y), L.pixelStorei(L.UNPACK_SKIP_IMAGES, T.min.z), j.isDataTexture || j.isData3DTexture ? L.texSubImage3D(Pe, Y, k.x, k.y, k.z, Me, Re, Ie, Ue, ke, ft.data) : j.isCompressedArrayTexture ? (console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."), L.compressedTexSubImage3D(Pe, Y, k.x, k.y, k.z, Me, Re, Ie, Ue, ft.data)) : L.texSubImage3D(Pe, Y, k.x, k.y, k.z, Me, Re, Ie, Ue, ke, ft), L.pixelStorei(L.UNPACK_ROW_LENGTH, Oe), L.pixelStorei(L.UNPACK_IMAGE_HEIGHT, ot), L.pixelStorei(L.UNPACK_SKIP_PIXELS, ct), L.pixelStorei(L.UNPACK_SKIP_ROWS, Wt), L.pixelStorei(L.UNPACK_SKIP_IMAGES, Sn), Y === 0 && G.generateMipmaps && L.generateMipmap(Pe), ne.unbindTexture();
15841
15841
  }, this.initTexture = function(T) {
15842
15842
  T.isCubeTexture ? Se.setTextureCube(T, 0) : T.isData3DTexture ? Se.setTexture3D(T, 0) : T.isDataArrayTexture || T.isCompressedArrayTexture ? Se.setTexture2DArray(T, 0) : Se.setTexture2D(T, 0), ne.unbindTexture();
15843
15843
  }, this.resetState = function() {
@@ -15845,7 +15845,7 @@ class Lh {
15845
15845
  }, typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
15846
15846
  }
15847
15847
  get coordinateSystem() {
15848
- return Rn;
15848
+ return Ln;
15849
15849
  }
15850
15850
  get physicallyCorrectLights() {
15851
15851
  return console.warn("THREE.WebGLRenderer: The property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."), !this.useLegacyLights;
@@ -15857,7 +15857,7 @@ class Lh {
15857
15857
  return console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."), this.outputColorSpace === nt ? li : fh;
15858
15858
  }
15859
15859
  set outputEncoding(e) {
15860
- console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."), this.outputColorSpace = e === li ? nt : gn;
15860
+ console.warn("THREE.WebGLRenderer: Property .outputEncoding has been removed. Use .outputColorSpace instead."), this.outputColorSpace = e === li ? nt : _n;
15861
15861
  }
15862
15862
  get useLegacyLights() {
15863
15863
  return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."), this._useLegacyLights;
@@ -15883,7 +15883,7 @@ class jx extends at {
15883
15883
  }
15884
15884
  class Yx {
15885
15885
  constructor(e, t) {
15886
- this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = sa, this.updateRange = { offset: 0, count: -1 }, this.version = 0, this.uuid = mn();
15886
+ this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = sa, this.updateRange = { offset: 0, count: -1 }, this.version = 0, this.uuid = gn();
15887
15887
  }
15888
15888
  onUploadCallback() {
15889
15889
  }
@@ -15906,7 +15906,7 @@ class Yx {
15906
15906
  return this.array.set(e, t), this;
15907
15907
  }
15908
15908
  clone(e) {
15909
- e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = mn()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
15909
+ e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = gn()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
15910
15910
  const t = new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]), i = new this.constructor(t, this.stride);
15911
15911
  return i.setUsage(this.usage), i;
15912
15912
  }
@@ -15914,7 +15914,7 @@ class Yx {
15914
15914
  return this.onUploadCallback = e, this;
15915
15915
  }
15916
15916
  toJSON(e) {
15917
- return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = mn()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), {
15917
+ return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = gn()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), {
15918
15918
  uuid: this.uuid,
15919
15919
  buffer: this.array.buffer._uuid,
15920
15920
  type: this.array.constructor.name,
@@ -15965,19 +15965,19 @@ class Vn {
15965
15965
  }
15966
15966
  getX(e) {
15967
15967
  let t = this.data.array[e * this.data.stride + this.offset];
15968
- return this.normalized && (t = fn(t, this.array)), t;
15968
+ return this.normalized && (t = dn(t, this.array)), t;
15969
15969
  }
15970
15970
  getY(e) {
15971
15971
  let t = this.data.array[e * this.data.stride + this.offset + 1];
15972
- return this.normalized && (t = fn(t, this.array)), t;
15972
+ return this.normalized && (t = dn(t, this.array)), t;
15973
15973
  }
15974
15974
  getZ(e) {
15975
15975
  let t = this.data.array[e * this.data.stride + this.offset + 2];
15976
- return this.normalized && (t = fn(t, this.array)), t;
15976
+ return this.normalized && (t = dn(t, this.array)), t;
15977
15977
  }
15978
15978
  getW(e) {
15979
15979
  let t = this.data.array[e * this.data.stride + this.offset + 3];
15980
- return this.normalized && (t = fn(t, this.array)), t;
15980
+ return this.normalized && (t = dn(t, this.array)), t;
15981
15981
  }
15982
15982
  setXY(e, t, i) {
15983
15983
  return e = e * this.data.stride + this.offset, this.normalized && (t = Ye(t, this.array), i = Ye(i, this.array)), this.data.array[e + 0] = t, this.data.array[e + 1] = i, this;
@@ -16026,7 +16026,7 @@ class Vn {
16026
16026
  };
16027
16027
  }
16028
16028
  }
16029
- class vn {
16029
+ class xn {
16030
16030
  constructor() {
16031
16031
  this.type = "Curve", this.arcLengthDivisions = 200;
16032
16032
  }
@@ -16161,7 +16161,7 @@ class vn {
16161
16161
  return this.arcLengthDivisions = e.arcLengthDivisions, this;
16162
16162
  }
16163
16163
  }
16164
- class Ba extends vn {
16164
+ class Ba extends xn {
16165
16165
  constructor(e = 0, t = 0, i = 1, r = 1, s = 0, a = Math.PI * 2, o = !1, l = 0) {
16166
16166
  super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = e, this.aY = t, this.xRadius = i, this.yRadius = r, this.aStartAngle = s, this.aEndAngle = a, this.aClockwise = o, this.aRotation = l;
16167
16167
  }
@@ -16218,7 +16218,7 @@ function za() {
16218
16218
  };
16219
16219
  }
16220
16220
  const ls = /* @__PURE__ */ new D(), Uo = /* @__PURE__ */ new za(), No = /* @__PURE__ */ new za(), Oo = /* @__PURE__ */ new za();
16221
- class Zx extends vn {
16221
+ class Zx extends xn {
16222
16222
  constructor(e = [], t = !1, i = "centripetal", r = 0.5) {
16223
16223
  super(), this.isCatmullRomCurve3 = !0, this.type = "CatmullRomCurve3", this.points = e, this.closed = t, this.curveType = i, this.tension = r;
16224
16224
  }
@@ -16301,7 +16301,7 @@ function ry(n, e) {
16301
16301
  function gr(n, e, t, i, r) {
16302
16302
  return ty(n, e) + ny(n, t) + iy(n, i) + ry(n, r);
16303
16303
  }
16304
- class Ph extends vn {
16304
+ class Ph extends xn {
16305
16305
  constructor(e = new ue(), t = new ue(), i = new ue(), r = new ue()) {
16306
16306
  super(), this.isCubicBezierCurve = !0, this.type = "CubicBezierCurve", this.v0 = e, this.v1 = t, this.v2 = i, this.v3 = r;
16307
16307
  }
@@ -16323,7 +16323,7 @@ class Ph extends vn {
16323
16323
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this;
16324
16324
  }
16325
16325
  }
16326
- class sy extends vn {
16326
+ class sy extends xn {
16327
16327
  constructor(e = new D(), t = new D(), i = new D(), r = new D()) {
16328
16328
  super(), this.isCubicBezierCurve3 = !0, this.type = "CubicBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = i, this.v3 = r;
16329
16329
  }
@@ -16346,7 +16346,7 @@ class sy extends vn {
16346
16346
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this;
16347
16347
  }
16348
16348
  }
16349
- class Ha extends vn {
16349
+ class Ha extends xn {
16350
16350
  constructor(e = new ue(), t = new ue()) {
16351
16351
  super(), this.isLineCurve = !0, this.type = "LineCurve", this.v1 = e, this.v2 = t;
16352
16352
  }
@@ -16375,7 +16375,7 @@ class Ha extends vn {
16375
16375
  return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
16376
16376
  }
16377
16377
  }
16378
- class oy extends vn {
16378
+ class oy extends xn {
16379
16379
  constructor(e = new D(), t = new D()) {
16380
16380
  super(), this.isLineCurve3 = !0, this.type = "LineCurve3", this.v1 = e, this.v2 = t;
16381
16381
  }
@@ -16404,7 +16404,7 @@ class oy extends vn {
16404
16404
  return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
16405
16405
  }
16406
16406
  }
16407
- class Dh extends vn {
16407
+ class Dh extends xn {
16408
16408
  constructor(e = new ue(), t = new ue(), i = new ue()) {
16409
16409
  super(), this.isQuadraticBezierCurve = !0, this.type = "QuadraticBezierCurve", this.v0 = e, this.v1 = t, this.v2 = i;
16410
16410
  }
@@ -16426,7 +16426,7 @@ class Dh extends vn {
16426
16426
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
16427
16427
  }
16428
16428
  }
16429
- class ay extends vn {
16429
+ class ay extends xn {
16430
16430
  constructor(e = new D(), t = new D(), i = new D()) {
16431
16431
  super(), this.isQuadraticBezierCurve3 = !0, this.type = "QuadraticBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = i;
16432
16432
  }
@@ -16449,7 +16449,7 @@ class ay extends vn {
16449
16449
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
16450
16450
  }
16451
16451
  }
16452
- class Ih extends vn {
16452
+ class Ih extends xn {
16453
16453
  constructor(e = []) {
16454
16454
  super(), this.isSplineCurve = !0, this.type = "SplineCurve", this.points = e;
16455
16455
  }
@@ -16499,7 +16499,7 @@ var Uh = /* @__PURE__ */ Object.freeze({
16499
16499
  QuadraticBezierCurve3: ay,
16500
16500
  SplineCurve: Ih
16501
16501
  });
16502
- class ly extends vn {
16502
+ class ly extends xn {
16503
16503
  constructor() {
16504
16504
  super(), this.type = "CurvePath", this.curves = [], this.autoClose = !1;
16505
16505
  }
@@ -16674,7 +16674,7 @@ class jc extends ly {
16674
16674
  }
16675
16675
  class Nh extends jc {
16676
16676
  constructor(e) {
16677
- super(e), this.uuid = mn(), this.type = "Shape", this.holes = [];
16677
+ super(e), this.uuid = gn(), this.type = "Shape", this.holes = [];
16678
16678
  }
16679
16679
  getPointsHoles(e) {
16680
16680
  const t = [];
@@ -17004,7 +17004,7 @@ function Zc(n, e) {
17004
17004
  for (let t = 0; t < e.length; t++)
17005
17005
  n.push(e[t].x), n.push(e[t].y);
17006
17006
  }
17007
- class ka extends _n {
17007
+ class ka extends vn {
17008
17008
  constructor(e = new Nh([new ue(0.5, 0.5), new ue(-0.5, 0.5), new ue(-0.5, -0.5), new ue(0.5, -0.5)]), t = {}) {
17009
17009
  super(), this.type = "ExtrudeGeometry", this.parameters = {
17010
17010
  shapes: e,
@@ -17229,7 +17229,7 @@ function Ay(n, e, t) {
17229
17229
  t.shapes.push(n.uuid);
17230
17230
  return t.options = Object.assign({}, e), e.extrudePath !== void 0 && (t.options.extrudePath = e.extrudePath.toJSON()), t;
17231
17231
  }
17232
- class Cy extends _n {
17232
+ class Cy extends vn {
17233
17233
  constructor(e = null) {
17234
17234
  if (super(), this.type = "WireframeGeometry", this.parameters = {
17235
17235
  geometry: e
@@ -17408,7 +17408,7 @@ class Iy extends Ly {
17408
17408
  return super.copy(e, t), this.distance = e.distance, this.decay = e.decay, this.shadow = e.shadow.clone(), this;
17409
17409
  }
17410
17410
  }
17411
- class Uy extends _n {
17411
+ class Uy extends vn {
17412
17412
  constructor() {
17413
17413
  super(), this.isInstancedBufferGeometry = !0, this.type = "InstancedBufferGeometry", this.instanceCount = 1 / 0;
17414
17414
  }
@@ -18580,7 +18580,7 @@ class Ga extends Yn {
18580
18580
  }
18581
18581
  }
18582
18582
  const du = new D(), pu = new D(), Mt = new Ke(), Et = new Ke(), un = new Ke(), ko = new D(), Go = new it(), bt = new Oy(), mu = new D(), ps = new Kn(), ms = new Dr(), hn = new Ke();
18583
- let dn, ui;
18583
+ let pn, ui;
18584
18584
  function gu(n, e, t) {
18585
18585
  return hn.set(0, 0, -e, 1).applyMatrix4(n.projectionMatrix), hn.multiplyScalar(1 / hn.w), hn.x = ui / t.width, hn.y = ui / t.height, hn.applyMatrix4(n.projectionMatrixInverse), hn.multiplyScalar(1 / hn.w), Math.abs(Math.max(hn.x, hn.y));
18586
18586
  }
@@ -18589,10 +18589,10 @@ function Hy(n, e) {
18589
18589
  for (let o = 0, l = a; o < l; o++) {
18590
18590
  bt.start.fromBufferAttribute(r, o), bt.end.fromBufferAttribute(s, o), bt.applyMatrix4(t);
18591
18591
  const c = new D(), u = new D();
18592
- dn.distanceSqToSegment(bt.start, bt.end, u, c), u.distanceTo(c) < ui * 0.5 && e.push({
18592
+ pn.distanceSqToSegment(bt.start, bt.end, u, c), u.distanceTo(c) < ui * 0.5 && e.push({
18593
18593
  point: u,
18594
18594
  pointOnLine: c,
18595
- distance: dn.origin.distanceTo(u),
18595
+ distance: pn.origin.distanceTo(u),
18596
18596
  object: n,
18597
18597
  face: null,
18598
18598
  faceIndex: o,
@@ -18603,7 +18603,7 @@ function Hy(n, e) {
18603
18603
  }
18604
18604
  function ky(n, e, t) {
18605
18605
  const i = e.projectionMatrix, s = n.material.resolution, a = n.matrixWorld, o = n.geometry, l = o.attributes.instanceStart, c = o.attributes.instanceEnd, u = Math.min(o.instanceCount, l.count), h = -e.near;
18606
- dn.at(1, un), un.w = 1, un.applyMatrix4(e.matrixWorldInverse), un.applyMatrix4(i), un.multiplyScalar(1 / un.w), un.x *= s.x / 2, un.y *= s.y / 2, un.z = 0, ko.copy(un), Go.multiplyMatrices(e.matrixWorldInverse, a);
18606
+ pn.at(1, un), un.w = 1, un.applyMatrix4(e.matrixWorldInverse), un.applyMatrix4(i), un.multiplyScalar(1 / un.w), un.x *= s.x / 2, un.y *= s.y / 2, un.z = 0, ko.copy(un), Go.multiplyMatrices(e.matrixWorldInverse, a);
18607
18607
  for (let f = 0, d = u; f < d; f++) {
18608
18608
  if (Mt.fromBufferAttribute(l, f), Et.fromBufferAttribute(c, f), Mt.w = 1, Et.w = 1, Mt.applyMatrix4(Go), Et.applyMatrix4(Go), Mt.z > h && Et.z > h)
18609
18609
  continue;
@@ -18621,10 +18621,10 @@ function ky(n, e, t) {
18621
18621
  if (g && y) {
18622
18622
  bt.start.fromBufferAttribute(l, f), bt.end.fromBufferAttribute(c, f), bt.start.applyMatrix4(a), bt.end.applyMatrix4(a);
18623
18623
  const v = new D(), M = new D();
18624
- dn.distanceSqToSegment(bt.start, bt.end, M, v), t.push({
18624
+ pn.distanceSqToSegment(bt.start, bt.end, M, v), t.push({
18625
18625
  point: M,
18626
18626
  pointOnLine: v,
18627
- distance: dn.origin.distanceTo(M),
18627
+ distance: pn.origin.distanceTo(M),
18628
18628
  object: n,
18629
18629
  face: null,
18630
18630
  faceIndex: f,
@@ -18634,7 +18634,7 @@ function ky(n, e, t) {
18634
18634
  }
18635
18635
  }
18636
18636
  }
18637
- class Gy extends pn {
18637
+ class Gy extends mn {
18638
18638
  constructor(e = new zh(), t = new Ga({ color: Math.random() * 16777215 })) {
18639
18639
  super(e, t), this.isLineSegments2 = !0, this.type = "LineSegments2";
18640
18640
  }
@@ -18650,27 +18650,27 @@ class Gy extends pn {
18650
18650
  const i = this.material.worldUnits, r = e.camera;
18651
18651
  r === null && !i && console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');
18652
18652
  const s = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
18653
- dn = e.ray;
18653
+ pn = e.ray;
18654
18654
  const a = this.matrixWorld, o = this.geometry, l = this.material;
18655
18655
  ui = l.linewidth + s, o.boundingSphere === null && o.computeBoundingSphere(), ms.copy(o.boundingSphere).applyMatrix4(a);
18656
18656
  let c;
18657
18657
  if (i)
18658
18658
  c = ui * 0.5;
18659
18659
  else {
18660
- const h = Math.max(r.near, ms.distanceToPoint(dn.origin));
18660
+ const h = Math.max(r.near, ms.distanceToPoint(pn.origin));
18661
18661
  c = gu(r, h, l.resolution);
18662
18662
  }
18663
- if (ms.radius += c, dn.intersectsSphere(ms) === !1)
18663
+ if (ms.radius += c, pn.intersectsSphere(ms) === !1)
18664
18664
  return;
18665
18665
  o.boundingBox === null && o.computeBoundingBox(), ps.copy(o.boundingBox).applyMatrix4(a);
18666
18666
  let u;
18667
18667
  if (i)
18668
18668
  u = ui * 0.5;
18669
18669
  else {
18670
- const h = Math.max(r.near, ps.distanceToPoint(dn.origin));
18670
+ const h = Math.max(r.near, ps.distanceToPoint(pn.origin));
18671
18671
  u = gu(r, h, l.resolution);
18672
18672
  }
18673
- ps.expandByScalar(u), dn.intersectsBox(ps) !== !1 && (i ? Hy(this, t) : ky(this, r, t));
18673
+ ps.expandByScalar(u), pn.intersectsBox(ps) !== !1 && (i ? Hy(this, t) : ky(this, r, t));
18674
18674
  }
18675
18675
  }
18676
18676
  class Hh extends zh {
@@ -19552,11 +19552,11 @@ function jh(n, e) {
19552
19552
  const { toString: bS } = Object.prototype, { getPrototypeOf: $a } = Object, js = ((n) => (e) => {
19553
19553
  const t = bS.call(e);
19554
19554
  return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
19555
- })(/* @__PURE__ */ Object.create(null)), xn = (n) => (n = n.toLowerCase(), (e) => js(e) === n), Ys = (n) => (e) => typeof e === n, { isArray: Qi } = Array, Rr = Ys("undefined");
19555
+ })(/* @__PURE__ */ Object.create(null)), yn = (n) => (n = n.toLowerCase(), (e) => js(e) === n), Ys = (n) => (e) => typeof e === n, { isArray: Qi } = Array, Rr = Ys("undefined");
19556
19556
  function TS(n) {
19557
19557
  return n !== null && !Rr(n) && n.constructor !== null && !Rr(n.constructor) && Yt(n.constructor.isBuffer) && n.constructor.isBuffer(n);
19558
19558
  }
19559
- const Yh = xn("ArrayBuffer");
19559
+ const Yh = yn("ArrayBuffer");
19560
19560
  function wS(n) {
19561
19561
  let e;
19562
19562
  return typeof ArrayBuffer != "undefined" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && Yh(n.buffer), e;
@@ -19566,11 +19566,11 @@ const AS = Ys("string"), Yt = Ys("function"), Kh = Ys("number"), Ks = (n) => n !
19566
19566
  return !1;
19567
19567
  const e = $a(n);
19568
19568
  return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in n) && !(Symbol.iterator in n);
19569
- }, RS = xn("Date"), LS = xn("File"), PS = xn("Blob"), DS = xn("FileList"), IS = (n) => Ks(n) && Yt(n.pipe), US = (n) => {
19569
+ }, RS = yn("Date"), LS = yn("File"), PS = yn("Blob"), DS = yn("FileList"), IS = (n) => Ks(n) && Yt(n.pipe), US = (n) => {
19570
19570
  let e;
19571
19571
  return n && (typeof FormData == "function" && n instanceof FormData || Yt(n.append) && ((e = js(n)) === "formdata" || // detect form-data instance
19572
19572
  e === "object" && Yt(n.toString) && n.toString() === "[object FormData]"));
19573
- }, NS = xn("URLSearchParams"), OS = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
19573
+ }, NS = yn("URLSearchParams"), OS = (n) => n.trim ? n.trim() : n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
19574
19574
  function Ur(n, e, { allOwnKeys: t = !1 } = {}) {
19575
19575
  if (n === null || typeof n == "undefined")
19576
19576
  return;
@@ -19650,12 +19650,12 @@ const FS = (n, e, t, { allOwnKeys: i } = {}) => (Ur(e, (r, s) => {
19650
19650
  for (; (t = n.exec(e)) !== null; )
19651
19651
  i.push(t);
19652
19652
  return i;
19653
- }, $S = xn("HTMLFormElement"), qS = (n) => n.toLowerCase().replace(
19653
+ }, $S = yn("HTMLFormElement"), qS = (n) => n.toLowerCase().replace(
19654
19654
  /[-_\s]([a-z\d])(\w*)/g,
19655
19655
  function(t, i, r) {
19656
19656
  return i.toUpperCase() + r;
19657
19657
  }
19658
- ), Iu = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), jS = xn("RegExp"), ef = (n, e) => {
19658
+ ), Iu = (({ hasOwnProperty: n }) => (e, t) => n.call(e, t))(Object.prototype), jS = yn("RegExp"), ef = (n, e) => {
19659
19659
  const t = Object.getOwnPropertyDescriptors(n), i = {};
19660
19660
  Ur(t, (r, s) => {
19661
19661
  let a;
@@ -19715,7 +19715,7 @@ const tM = (n) => {
19715
19715
  return i;
19716
19716
  };
19717
19717
  return t(n, 0);
19718
- }, nM = xn("AsyncFunction"), iM = (n) => n && (Ks(n) || Yt(n)) && Yt(n.then) && Yt(n.catch), Z = {
19718
+ }, nM = yn("AsyncFunction"), iM = (n) => n && (Ks(n) || Yt(n)) && Yt(n.then) && Yt(n.catch), Z = {
19719
19719
  isArray: Qi,
19720
19720
  isArrayBuffer: Yh,
19721
19721
  isBuffer: TS,
@@ -19744,7 +19744,7 @@ const tM = (n) => {
19744
19744
  inherits: zS,
19745
19745
  toFlatObject: HS,
19746
19746
  kindOf: js,
19747
- kindOfTest: xn,
19747
+ kindOfTest: yn,
19748
19748
  endsWith: kS,
19749
19749
  toArray: GS,
19750
19750
  forEachEntry: WS,
@@ -20309,9 +20309,9 @@ Z.reduceDescriptors(Js.prototype, ({ value: n }, e) => {
20309
20309
  };
20310
20310
  });
20311
20311
  Z.freezeMethods(Js);
20312
- const Dn = Js;
20312
+ const In = Js;
20313
20313
  function qo(n, e) {
20314
- const t = this || Ya, i = e || t, r = Dn.from(i.headers);
20314
+ const t = this || Ya, i = e || t, r = In.from(i.headers);
20315
20315
  let s = i.data;
20316
20316
  return Z.forEach(n, function(o) {
20317
20317
  s = o.call(t, s, r.normalize(), e ? e.status : void 0);
@@ -20449,7 +20449,7 @@ function zu(n, e) {
20449
20449
  const PM = typeof XMLHttpRequest != "undefined", DM = PM && function(n) {
20450
20450
  return new Promise(function(t, i) {
20451
20451
  let r = n.data;
20452
- const s = Dn.from(n.headers).normalize(), a = n.responseType;
20452
+ const s = In.from(n.headers).normalize(), a = n.responseType;
20453
20453
  let o;
20454
20454
  function l() {
20455
20455
  n.cancelToken && n.cancelToken.unsubscribe(o), n.signal && n.signal.removeEventListener("abort", o);
@@ -20465,7 +20465,7 @@ const PM = typeof XMLHttpRequest != "undefined", DM = PM && function(n) {
20465
20465
  function h() {
20466
20466
  if (!c)
20467
20467
  return;
20468
- const d = Dn.from(
20468
+ const d = In.from(
20469
20469
  "getAllResponseHeaders" in c && c.getAllResponseHeaders()
20470
20470
  ), _ = {
20471
20471
  data: !a || a === "text" || a === "json" ? c.responseText : c.response,
@@ -20550,7 +20550,7 @@ function jo(n) {
20550
20550
  throw new Nr(null, n);
20551
20551
  }
20552
20552
  function Hu(n) {
20553
- return jo(n), n.headers = Dn.from(n.headers), n.data = qo.call(
20553
+ return jo(n), n.headers = In.from(n.headers), n.data = qo.call(
20554
20554
  n,
20555
20555
  n.transformRequest
20556
20556
  ), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), ff.getAdapter(n.adapter || Ya.adapter)(n).then(function(i) {
@@ -20558,16 +20558,16 @@ function Hu(n) {
20558
20558
  n,
20559
20559
  n.transformResponse,
20560
20560
  i
20561
- ), i.headers = Dn.from(i.headers), i;
20561
+ ), i.headers = In.from(i.headers), i;
20562
20562
  }, function(i) {
20563
20563
  return uf(i) || (jo(n), i && i.response && (i.response.data = qo.call(
20564
20564
  n,
20565
20565
  n.transformResponse,
20566
20566
  i.response
20567
- ), i.response.headers = Dn.from(i.response.headers))), Promise.reject(i);
20567
+ ), i.response.headers = In.from(i.response.headers))), Promise.reject(i);
20568
20568
  });
20569
20569
  }
20570
- const ku = (n) => n instanceof Dn ? n.toJSON() : n;
20570
+ const ku = (n) => n instanceof In ? n.toJSON() : n;
20571
20571
  function Yi(n, e) {
20572
20572
  e = e || {};
20573
20573
  const t = {};
@@ -20678,7 +20678,7 @@ function IM(n, e, t) {
20678
20678
  const Sa = {
20679
20679
  assertOptions: IM,
20680
20680
  validators: Ka
20681
- }, Fn = Sa.validators;
20681
+ }, Bn = Sa.validators;
20682
20682
  class zs {
20683
20683
  constructor(e) {
20684
20684
  this.defaults = e, this.interceptors = {
@@ -20698,14 +20698,14 @@ class zs {
20698
20698
  typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Yi(this.defaults, t);
20699
20699
  const { transitional: i, paramsSerializer: r, headers: s } = t;
20700
20700
  i !== void 0 && Sa.assertOptions(i, {
20701
- silentJSONParsing: Fn.transitional(Fn.boolean),
20702
- forcedJSONParsing: Fn.transitional(Fn.boolean),
20703
- clarifyTimeoutError: Fn.transitional(Fn.boolean)
20701
+ silentJSONParsing: Bn.transitional(Bn.boolean),
20702
+ forcedJSONParsing: Bn.transitional(Bn.boolean),
20703
+ clarifyTimeoutError: Bn.transitional(Bn.boolean)
20704
20704
  }, !1), r != null && (Z.isFunction(r) ? t.paramsSerializer = {
20705
20705
  serialize: r
20706
20706
  } : Sa.assertOptions(r, {
20707
- encode: Fn.function,
20708
- serialize: Fn.function
20707
+ encode: Bn.function,
20708
+ serialize: Bn.function
20709
20709
  }, !0)), t.method = (t.method || this.defaults.method || "get").toLowerCase();
20710
20710
  let a = s && Z.merge(
20711
20711
  s.common,
@@ -20716,7 +20716,7 @@ class zs {
20716
20716
  (p) => {
20717
20717
  delete s[p];
20718
20718
  }
20719
- ), t.headers = Dn.concat(a, s);
20719
+ ), t.headers = In.concat(a, s);
20720
20720
  const o = [];
20721
20721
  let l = !0;
20722
20722
  this.interceptors.request.forEach(function(_) {
@@ -20951,7 +20951,7 @@ gt.all = function(e) {
20951
20951
  gt.spread = NM;
20952
20952
  gt.isAxiosError = OM;
20953
20953
  gt.mergeConfig = Yi;
20954
- gt.AxiosHeaders = Dn;
20954
+ gt.AxiosHeaders = In;
20955
20955
  gt.formToJSON = (n) => cf(Z.isHTMLForm(n) ? new FormData(n) : n);
20956
20956
  gt.getAdapter = ff.getAdapter;
20957
20957
  gt.HttpStatusCode = FM;
@@ -20965,7 +20965,7 @@ const BM = gt, zM = BM.create({
20965
20965
  return `${n}` == `${t}` && (t = parseInt(n / 1e4) * 1e4), `${n}` == `${t}` && (t = 1e5), mf(t);
20966
20966
  } else
20967
20967
  return Promise.reject();
20968
- }) : Promise.reject(), Bn = {
20968
+ }) : Promise.reject(), fn = {
20969
20969
  lineHasData: "#78F0FE",
20970
20970
  // 有数据边框色
20971
20971
  lineNoData: "#333",
@@ -21109,6 +21109,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21109
21109
  activeMesh: [],
21110
21110
  tipsMesh: null,
21111
21111
  circleMesh: null,
21112
+ mapMesh: null,
21112
21113
  canvasDom: null,
21113
21114
  viewObserver: null,
21114
21115
  size: { width: 0, height: 0 },
@@ -21176,15 +21177,13 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21176
21177
  }, 200);
21177
21178
  return;
21178
21179
  }
21179
- vr.dispose(), this.tipsMesh && this.tipsMesh.remove(...this.tipsMesh.children), this.circleMesh && this.circleMesh.remove(...this.circleMesh.children), this.activeMesh.length && (this.activeMesh = []), this.scene.remove(...this.scene.children);
21180
- const n = ys(new at());
21181
- n.name = "map";
21182
- const e = Du().center(this.centroid).scale(this.scale).translate([0, 0]), { blockList: t, infoData: i } = this.drawItemArea(e);
21183
- n.add(...t), this.scene.add(n), this.circleMesh = ys(new at()), this.circleMesh.name = "circle";
21184
- const r = this.drawActiveTag(i, e);
21185
- r.length && this.circleMesh.add(...r), this.scene.add(this.circleMesh);
21186
- const s = ys(new Iy(16777215, 3e3));
21187
- s.position.set(0, 8, 20), this.scene.add(s), this.loading = !1, this.drawTips(), this.animate();
21180
+ this.mapMesh && this.mapMesh.remove(...this.mapMesh.children), this.tipsMesh && this.tipsMesh.remove(...this.tipsMesh.children), this.circleMesh && this.circleMesh.remove(...this.circleMesh.children), vr.dispose(), this.scene.remove(...this.scene.children), this.mapMesh = ys(new at()), this.mapMesh.name = "map";
21181
+ const n = Du().center(this.centroid).scale(this.scale).translate([0, 0]), { blockList: e, infoData: t } = this.drawItemArea(n);
21182
+ this.mapMesh.add(...e), this.scene.add(this.mapMesh), this.circleMesh = ys(new at()), this.circleMesh.name = "circle";
21183
+ const i = this.drawActiveTag(t, n);
21184
+ i.length && this.circleMesh.add(...i), this.scene.add(this.circleMesh);
21185
+ const r = ys(new Iy(16777215, 3e3));
21186
+ r.position.set(0, 8, 20), this.scene.add(r), this.loading = !1, this.drawTips(), this.animate();
21188
21187
  },
21189
21188
  // 绘制地图区域
21190
21189
  drawItemArea(n) {
@@ -21195,12 +21194,12 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21195
21194
  const [y, v] = l(a[g]);
21196
21195
  (!isNaN(y) || !isNaN(v)) && (g === 0 && c.moveTo(y, -v), c.lineTo(y, -v), u.push(new D(y, -v, 0.85)));
21197
21196
  }
21198
- let h = o._hasData_ ? Bn.meshHasData : Bn.meshNoData;
21199
- const f = new ka(c, { depth: 0.8, bevelEnabled: !1 }), d = new Ry({ color: h }), p = new Ia({ color: h }), _ = new pn(f, [d, p]);
21197
+ let h = o._hasData_ ? fn.meshHasData : fn.meshNoData;
21198
+ const f = new ka(c, { depth: 0.8, bevelEnabled: !1 }), d = new Ry({ color: h }), p = new Ia({ color: h }), _ = new mn(f, [d, p]);
21200
21199
  _.name = o.properties.adcode, _.userData = {
21201
21200
  mapInfo: o
21202
21201
  };
21203
- const m = this.drawLine(u, o._hasData_ ? Bn.lineHasData : Bn.lineNoData, { mapInfo: o }, o.properties.adcode);
21202
+ const m = this.drawLine(u, o._hasData_ ? fn.lineHasData : fn.lineNoData, { mapInfo: o }, o.properties.adcode);
21204
21203
  return { mesh: _, line: m };
21205
21204
  };
21206
21205
  let t = [], i = [];
@@ -21277,10 +21276,10 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21277
21276
  }), this.tipsMesh.remove(...this.tipsMesh.children)) : this.tipsMesh = ys(new at()), this.activeMesh.length && (this.activeMesh.forEach((o) => {
21278
21277
  switch (o.type) {
21279
21278
  case "Mesh":
21280
- o.material[0].color.set(Bn.meshHasData);
21279
+ o.material[0].color.set(this.tipsData.find((l) => l.code === o.name) ? fn.meshHasData : fn.meshNoData);
21281
21280
  break;
21282
21281
  case "Line2":
21283
- o.material.color.set(Bn.lineHasData), o.scale.set(1, 1, 1);
21282
+ o.material.color.set(this.tipsData.find((l) => l.code === o.name) ? fn.lineHasData : fn.lineNoData), o.scale.set(1, 1, 1);
21284
21283
  break;
21285
21284
  }
21286
21285
  }), this.activeMesh = []);
@@ -21322,10 +21321,10 @@ const ys = vr.track.bind(vr), kM = bf.extend({
21322
21321
  }), this.activeMesh.forEach((E) => {
21323
21322
  switch (E.type) {
21324
21323
  case "Mesh":
21325
- E.material[0].color.set(Bn.activedMesh);
21324
+ E.material[0].color.set(fn.activedMesh);
21326
21325
  break;
21327
21326
  case "Line2":
21328
- E.material.color.set(Bn.activedLine), E.scale.set(1, 1, 1.05);
21327
+ E.material.color.set(fn.activedLine), E.scale.set(1, 1, 1.05);
21329
21328
  break;
21330
21329
  }
21331
21330
  });
@@ -21386,7 +21385,7 @@ var WM = /* @__PURE__ */ Tt(
21386
21385
  VM,
21387
21386
  !1,
21388
21387
  XM,
21389
- "0ea61248",
21388
+ "c05b59f2",
21390
21389
  null,
21391
21390
  null
21392
21391
  );