dpot-ui 0.4.12 → 0.4.14

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
@@ -77,7 +77,7 @@ function al(n, e, t) {
77
77
  }
78
78
  return h;
79
79
  }
80
- const wf = (n, e, t) => zt(void 0, null, function* () {
80
+ const Tf = (n, e, t) => zt(void 0, null, function* () {
81
81
  const { placement: i = "bottom", strategy: r = "absolute", middleware: s = [], platform: a } = t, o = s.filter(Boolean), l = yield a.isRTL == null ? void 0 : a.isRTL(e);
82
82
  let c = yield a.getElementRects({ reference: n, floating: e, strategy: r }), { x: u, y: h } = al(c, i, l), f = i, d = {}, p = 0;
83
83
  for (let _ = 0; _ < o.length; _++) {
@@ -86,7 +86,7 @@ const wf = (n, e, t) => zt(void 0, null, function* () {
86
86
  }
87
87
  return { x: u, y: h, placement: f, strategy: r, middlewareData: d };
88
88
  });
89
- function Zi(n, e) {
89
+ function Ki(n, e) {
90
90
  return typeof n == "function" ? n(e) : n;
91
91
  }
92
92
  function Xu(n) {
@@ -101,23 +101,23 @@ function Cs(n, e) {
101
101
  return zt(this, null, function* () {
102
102
  var t;
103
103
  e === void 0 && (e = {});
104
- const { x: i, y: r, platform: s, rects: a, elements: o, strategy: l } = n, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: h = "floating", altBoundary: f = !1, padding: d = 0 } = Zi(e, n), p = Xu(d), _ = o[f ? h === "floating" ? "reference" : "floating" : h], m = As(yield s.getClippingRect({ element: (t = yield s.isElement == null ? void 0 : s.isElement(_)) == null || t ? _ : _.contextElement || (yield s.getDocumentElement == null ? void 0 : s.getDocumentElement(o.floating)), boundary: c, rootBoundary: u, strategy: l })), g = h === "floating" ? rt(De({}, a.floating), { x: i, y: r }) : a.reference, y = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(o.floating), v = (yield s.isElement == null ? void 0 : s.isElement(y)) && (yield s.getScale == null ? void 0 : s.getScale(y)) || { x: 1, y: 1 }, M = As(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: g, offsetParent: y, strategy: l }) : g);
104
+ const { x: i, y: r, platform: s, rects: a, elements: o, strategy: l } = n, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: h = "floating", altBoundary: f = !1, padding: d = 0 } = Ki(e, n), p = Xu(d), _ = o[f ? h === "floating" ? "reference" : "floating" : h], m = As(yield s.getClippingRect({ element: (t = yield s.isElement == null ? void 0 : s.isElement(_)) == null || t ? _ : _.contextElement || (yield s.getDocumentElement == null ? void 0 : s.getDocumentElement(o.floating)), boundary: c, rootBoundary: u, strategy: l })), g = h === "floating" ? rt(De({}, a.floating), { x: i, y: r }) : a.reference, y = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(o.floating), v = (yield s.isElement == null ? void 0 : s.isElement(y)) && (yield s.getScale == null ? void 0 : s.getScale(y)) || { x: 1, y: 1 }, M = As(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: g, offsetParent: y, strategy: l }) : g);
105
105
  return { top: (m.top - M.top + p.top) / v.y, bottom: (M.bottom - m.bottom + p.bottom) / v.y, left: (m.left - M.left + p.left) / v.x, right: (M.right - m.right + p.right) / v.x };
106
106
  });
107
107
  }
108
- const Yo = Math.min, Tf = Math.max;
108
+ const Yo = Math.min, wf = Math.max;
109
109
  function Ko(n, e, t) {
110
- return Tf(n, Yo(e, t));
110
+ return wf(n, Yo(e, t));
111
111
  }
112
112
  const Af = (n) => ({ name: "arrow", options: n, fn(t) {
113
113
  return zt(this, null, function* () {
114
- const { x: i, y: r, placement: s, rects: a, platform: o, elements: l } = t, { element: c, padding: u = 0 } = Zi(n, t) || {};
114
+ const { x: i, y: r, placement: s, rects: a, platform: o, elements: l } = t, { element: c, padding: u = 0 } = Ki(n, t) || {};
115
115
  if (c == null)
116
116
  return {};
117
117
  const h = Xu(u), f = { x: i, y: r }, d = Pr(s), p = Ea(d), _ = yield o.getDimensions(c), m = d === "y", g = m ? "top" : "left", y = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", M = a.reference[p] + a.reference[d] - f[d] - a.floating[p], b = f[d] - a.reference[d], R = yield o.getOffsetParent == null ? void 0 : o.getOffsetParent(c);
118
- let T = R ? R[v] : 0;
119
- T && (yield o.isElement == null ? void 0 : o.isElement(R)) || (T = l.floating[v] || a.floating[p]);
120
- const O = M / 2 - b / 2, x = T / 2 - _[p] / 2 - 1, E = Yo(h[g], x), F = Yo(h[y], x), ee = E, N = T - _[p] - F, U = T / 2 - _[p] / 2 + O, C = Ko(ee, U, N), z = Lr(s) != null && U != C && a.reference[p] / 2 - (U < ee ? E : F) - _[p] / 2 < 0 ? U < ee ? ee - U : N - U : 0;
118
+ let w = R ? R[v] : 0;
119
+ w && (yield o.isElement == null ? void 0 : o.isElement(R)) || (w = l.floating[v] || a.floating[p]);
120
+ const O = M / 2 - b / 2, x = w / 2 - _[p] / 2 - 1, E = Yo(h[g], x), F = Yo(h[y], x), ee = E, N = w - _[p] - F, U = w / 2 - _[p] / 2 + O, C = Ko(ee, U, N), z = Lr(s) != null && U != C && a.reference[p] / 2 - (U < ee ? E : F) - _[p] / 2 < 0 ? U < ee ? ee - U : N - U : 0;
121
121
  return { [d]: f[d] - z, data: { [d]: C, centerOffset: U - C + z } };
122
122
  });
123
123
  } }), $u = ["top", "right", "bottom", "left"];
@@ -140,7 +140,7 @@ const Pf = function(n) {
140
140
  return n === void 0 && (n = {}), { name: "flip", options: n, fn(t) {
141
141
  return zt(this, null, function* () {
142
142
  var i;
143
- const { placement: r, middlewareData: s, rects: a, initialPlacement: o, platform: l, elements: c } = t, ee = Zi(n, t), { mainAxis: u = !0, crossAxis: h = !0, fallbackPlacements: f, fallbackStrategy: d = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: _ = !0 } = ee, m = zr(ee, ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"]), g = si(r), y = si(o) === o, v = yield l.isRTL == null ? void 0 : l.isRTL(c.floating), M = f || (y || !_ ? [Rs(o)] : function(N) {
143
+ const { placement: r, middlewareData: s, rects: a, initialPlacement: o, platform: l, elements: c } = t, ee = Ki(n, t), { mainAxis: u = !0, crossAxis: h = !0, fallbackPlacements: f, fallbackStrategy: d = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: _ = !0 } = ee, m = zr(ee, ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"]), g = si(r), y = si(o) === o, v = yield l.isRTL == null ? void 0 : l.isRTL(c.floating), M = f || (y || !_ ? [Rs(o)] : function(N) {
144
144
  const U = Rs(N);
145
145
  return [ro(N), U, ro(U)];
146
146
  }(o));
@@ -161,13 +161,13 @@ const Pf = function(n) {
161
161
  }(si(N), C === "start", z);
162
162
  return H && (V = V.map((K) => K + "-" + H), U && (V = V.concat(V.map(ro)))), V;
163
163
  }(o, _, p, v));
164
- const b = [o, ...M], R = yield Cs(t, m), T = [];
164
+ const b = [o, ...M], R = yield Cs(t, m), w = [];
165
165
  let O = ((i = s.flip) == null ? void 0 : i.overflows) || [];
166
- if (u && T.push(R[g]), h) {
166
+ if (u && w.push(R[g]), h) {
167
167
  const { main: N, cross: U } = Rf(r, a, v);
168
- T.push(R[N], R[U]);
168
+ w.push(R[N], R[U]);
169
169
  }
170
- if (O = [...O, { placement: r, overflows: T }], !T.every((N) => N <= 0)) {
170
+ if (O = [...O, { placement: r, overflows: w }], !w.every((N) => N <= 0)) {
171
171
  var x, E;
172
172
  const N = (((x = s.flip) == null ? void 0 : x.index) || 0) + 1, U = b[N];
173
173
  if (U)
@@ -200,7 +200,7 @@ function cl(n) {
200
200
  const Df = function(n) {
201
201
  return n === void 0 && (n = {}), { name: "hide", options: n, fn(t) {
202
202
  return zt(this, null, function* () {
203
- const { rects: i } = t, a = Zi(n, t), { strategy: r = "referenceHidden" } = a, s = zr(a, ["strategy"]);
203
+ const { rects: i } = t, a = Ki(n, t), { strategy: r = "referenceHidden" } = a, s = zr(a, ["strategy"]);
204
204
  switch (r) {
205
205
  case "referenceHidden": {
206
206
  const o = ll(yield Cs(t, rt(De({}, s), { elementContext: "reference" })), i.reference);
@@ -220,7 +220,7 @@ const Df = function(n) {
220
220
  return zt(this, null, function* () {
221
221
  const { x: i, y: r } = t, s = yield function(a, o) {
222
222
  return zt(this, null, function* () {
223
- const { placement: l, platform: c, elements: u } = a, h = yield c.isRTL == null ? void 0 : c.isRTL(u.floating), f = si(l), d = Lr(l), p = Pr(l) === "x", _ = ["left", "top"].includes(f) ? -1 : 1, m = h && p ? -1 : 1, g = Zi(o, a);
223
+ const { placement: l, platform: c, elements: u } = a, h = yield c.isRTL == null ? void 0 : c.isRTL(u.floating), f = si(l), d = Lr(l), p = Pr(l) === "x", _ = ["left", "top"].includes(f) ? -1 : 1, m = h && p ? -1 : 1, g = Ki(o, a);
224
224
  let { mainAxis: y, crossAxis: v, alignmentAxis: M } = typeof g == "number" ? { mainAxis: g, crossAxis: 0, alignmentAxis: null } : De({ mainAxis: 0, crossAxis: 0, alignmentAxis: null }, g);
225
225
  return d && typeof M == "number" && (v = d === "end" ? -1 * M : M), p ? { x: v * m, y: y * _ } : { x: y * _, y: v * m };
226
226
  });
@@ -235,7 +235,7 @@ function Uf(n) {
235
235
  const Nf = function(n) {
236
236
  return n === void 0 && (n = {}), { name: "shift", options: n, fn(t) {
237
237
  return zt(this, null, function* () {
238
- const { x: i, y: r, placement: s } = t, g = Zi(n, t), { mainAxis: a = !0, crossAxis: o = !1, limiter: l = { fn: (y) => {
238
+ const { x: i, y: r, placement: s } = t, g = Ki(n, t), { mainAxis: a = !0, crossAxis: o = !1, limiter: l = { fn: (y) => {
239
239
  let { x: v, y: M } = y;
240
240
  return { x: v, y: M };
241
241
  } } } = g, c = zr(g, ["mainAxis", "crossAxis", "limiter"]), u = { x: i, y: r }, h = yield Cs(t, c), f = Pr(si(s)), d = Uf(f);
@@ -292,18 +292,18 @@ function ba() {
292
292
  function Hs(n) {
293
293
  return ["html", "body", "#document"].includes(qn(n));
294
294
  }
295
- const Jo = Math.min, zi = Math.max, Ls = Math.round, Hr = Math.floor, hi = (n) => ({ x: n, y: n });
295
+ const Jo = Math.min, Bi = Math.max, Ls = Math.round, Hr = Math.floor, hi = (n) => ({ x: n, y: n });
296
296
  function ju(n) {
297
297
  const e = on(n);
298
298
  let t = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
299
299
  const r = ln(n), s = r ? n.offsetWidth : t, a = r ? n.offsetHeight : i, o = Ls(t) !== s || Ls(i) !== a;
300
300
  return o && (t = s, i = a), { width: t, height: i, $: o };
301
301
  }
302
- function wa(n) {
302
+ function Ta(n) {
303
303
  return Ln(n) ? n : n.contextElement;
304
304
  }
305
- function Hi(n) {
306
- const e = wa(n);
305
+ function zi(n) {
306
+ const e = Ta(n);
307
307
  if (!ln(e))
308
308
  return hi(1);
309
309
  const t = e.getBoundingClientRect(), { width: i, height: r, $: s } = ju(e);
@@ -320,16 +320,16 @@ function Yu(n, e, t) {
320
320
  }
321
321
  function fi(n, e, t, i) {
322
322
  e === void 0 && (e = !1), t === void 0 && (t = !1);
323
- const r = n.getBoundingClientRect(), s = wa(n);
323
+ const r = n.getBoundingClientRect(), s = Ta(n);
324
324
  let a = hi(1);
325
- e && (i ? Ln(i) && (a = Hi(i)) : a = Hi(n));
325
+ e && (i ? Ln(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
329
  const f = qt(s), d = i && Ln(i) ? qt(i) : i;
330
330
  let p = f.frameElement;
331
331
  for (; p && i && d !== f; ) {
332
- const _ = Hi(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;
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;
333
333
  l *= _.x, c *= _.y, u *= _.x, h *= _.y, l += y, c += v, p = qt(p).frameElement;
334
334
  }
335
335
  }
@@ -344,14 +344,14 @@ function ks(n) {
344
344
  function Ku(n) {
345
345
  return fi(Pn(n)).left + ks(n).scrollLeft;
346
346
  }
347
- function Vi(n) {
347
+ function Gi(n) {
348
348
  if (qn(n) === "html")
349
349
  return n;
350
350
  const e = n.assignedSlot || n.parentNode || ul(n) && n.host || Pn(n);
351
351
  return ul(e) ? e.host : e;
352
352
  }
353
353
  function Zu(n) {
354
- const e = Vi(n);
354
+ const e = Gi(n);
355
355
  return Hs(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : ln(e) && xr(e) ? e : Zu(e);
356
356
  }
357
357
  function Ps(n, e) {
@@ -375,14 +375,14 @@ 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 = zi(s.scrollWidth, s.clientWidth, o.scrollWidth, o.clientWidth), c = zi(s.scrollHeight, s.clientHeight, o.scrollHeight, o.clientHeight);
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);
379
379
  let u = -a.scrollLeft + Ku(r);
380
380
  const h = -a.scrollTop;
381
- return on(o).direction === "rtl" && (u += zi(s.clientWidth, o.clientWidth) - l), { width: l, height: c, x: u, y: h };
381
+ return on(o).direction === "rtl" && (u += Bi(s.clientWidth, o.clientWidth) - l), { width: l, height: c, x: u, y: h };
382
382
  }(Pn(n));
383
383
  else if (Ln(e))
384
384
  i = function(r, s) {
385
- const a = fi(r, !0, s === "fixed"), o = a.top + r.clientTop, l = a.left + r.clientLeft, c = ln(r) ? Hi(r) : hi(1);
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 };
387
387
  }(e, t);
388
388
  else {
@@ -392,7 +392,7 @@ function fl(n, e, t) {
392
392
  return As(i);
393
393
  }
394
394
  function Ju(n, e) {
395
- const t = Vi(n);
395
+ const t = Gi(n);
396
396
  return !(t === e || !Ln(t) || Hs(t)) && (on(t).position === "fixed" || Ju(t, e));
397
397
  }
398
398
  function dl(n, e) {
@@ -406,11 +406,11 @@ function pl(n, e) {
406
406
  for (; i && Of(i) && on(i).position === "static"; )
407
407
  i = dl(i, e);
408
408
  return i && (qn(i) === "html" || qn(i) === "body" && on(i).position === "static" && !Zo(i)) ? t : i || function(r) {
409
- let s = Vi(r);
409
+ let s = Gi(r);
410
410
  for (; ln(s) && !Hs(s); ) {
411
411
  if (Zo(s))
412
412
  return s;
413
- s = Vi(s);
413
+ s = Gi(s);
414
414
  }
415
415
  return null;
416
416
  }(n) || t;
@@ -435,15 +435,15 @@ const Bf = { getClippingRect: function(n) {
435
435
  return h;
436
436
  let f = Ps(c).filter((m) => Ln(m) && qn(m) !== "body"), d = null;
437
437
  const p = on(c).position === "fixed";
438
- let _ = p ? Vi(c) : c;
438
+ let _ = p ? Gi(c) : c;
439
439
  for (; Ln(_) && !Hs(_); ) {
440
440
  const m = on(_), g = Zo(_);
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, _ = Vi(_);
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
  }
443
443
  return u.set(c, f), f;
444
444
  }(e, this._c) : [].concat(t), a = [...s, i], o = a[0], l = a.reduce((c, u) => {
445
445
  const h = fl(e, u, r);
446
- return c.top = zi(h.top, c.top), c.right = Jo(h.right, c.right), c.bottom = Jo(h.bottom, c.bottom), c.left = zi(h.left, c.left), c;
446
+ return c.top = Bi(h.top, c.top), c.right = Jo(h.right, c.right), c.bottom = Jo(h.bottom, c.bottom), c.left = Bi(h.left, c.left), c;
447
447
  }, fl(e, o, r));
448
448
  return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
449
449
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(n) {
@@ -455,12 +455,12 @@ const Bf = { getClippingRect: function(n) {
455
455
  const l = hi(0);
456
456
  if ((r || !r && i !== "fixed") && ((qn(t) !== "body" || xr(s)) && (a = ks(t)), ln(t))) {
457
457
  const c = fi(t);
458
- o = Hi(t), l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
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
461
  }, isElement: Ln, getDimensions: function(n) {
462
462
  return ju(n);
463
- }, getOffsetParent: pl, getDocumentElement: Pn, getScale: Hi, getElementRects(n) {
463
+ }, getOffsetParent: pl, getDocumentElement: Pn, 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;
@@ -469,7 +469,7 @@ const Bf = { getClippingRect: function(n) {
469
469
  }, getClientRects: (n) => Array.from(n.getClientRects()), isRTL: (n) => on(n).direction === "rtl" };
470
470
  function zf(n, e, t, i) {
471
471
  i === void 0 && (i = {});
472
- const { ancestorScroll: r = !0, ancestorResize: s = !0, elementResize: a = !0, layoutShift: o = typeof IntersectionObserver == "function", animationFrame: l = !1 } = i, c = wa(n), u = r || s ? [...c ? Ps(c) : [], ...Ps(e)] : [];
472
+ const { ancestorScroll: r = !0, ancestorResize: s = !0, elementResize: a = !0, layoutShift: o = typeof IntersectionObserver == "function", animationFrame: l = !1 } = i, c = Ta(n), u = r || s ? [...c ? Ps(c) : [], ...Ps(e)] : [];
473
473
  u.forEach((_) => {
474
474
  r && _.addEventListener("scroll", t, { passive: !0 }), s && _.addEventListener("resize", t);
475
475
  });
@@ -479,8 +479,8 @@ function zf(n, e, t, i) {
479
479
  function M() {
480
480
  clearTimeout(g), y && y.disconnect(), y = null;
481
481
  }
482
- return function b(R, T) {
483
- R === void 0 && (R = !1), T === void 0 && (T = 1), M();
482
+ return function b(R, w) {
483
+ R === void 0 && (R = !1), w === void 0 && (w = 1), M();
484
484
  const { left: O, top: x, width: E, height: F } = _.getBoundingClientRect();
485
485
  if (R || m(), !E || !F)
486
486
  return;
@@ -488,7 +488,7 @@ function zf(n, e, t, i) {
488
488
  let z = !0;
489
489
  y = new IntersectionObserver((H) => {
490
490
  const V = H[0].intersectionRatio;
491
- if (V !== T) {
491
+ if (V !== w) {
492
492
  if (!z)
493
493
  return b();
494
494
  V ? b(!1, V) : g = setTimeout(() => {
@@ -496,7 +496,7 @@ function zf(n, e, t, i) {
496
496
  }, 100);
497
497
  }
498
498
  z = !1;
499
- }, { rootMargin: -ee + "px " + -N + "px " + -U + "px " + -C + "px", threshold: zi(0, Jo(1, T)) || 1 }), y.observe(_);
499
+ }, { rootMargin: -ee + "px " + -N + "px " + -U + "px " + -C + "px", threshold: Bi(0, Jo(1, w)) || 1 }), y.observe(_);
500
500
  }(!0), M;
501
501
  }(c, t) : null;
502
502
  let f, d = null;
@@ -513,7 +513,7 @@ function zf(n, e, t, i) {
513
513
  }
514
514
  const Hf = (n, e, t) => {
515
515
  const i = /* @__PURE__ */ new Map(), r = De({ platform: Bf }, t), s = rt(De({}, r.platform), { _c: i });
516
- return wf(n, e, rt(De({}, r), { platform: s }));
516
+ return Tf(n, e, rt(De({}, r), { platform: s }));
517
517
  };
518
518
  var kf = function() {
519
519
  var n = this, e = n.$createElement, t = n._self._c || e;
@@ -545,7 +545,7 @@ var kf = function() {
545
545
  }
546
546
  }, [n._t("reference")], 2)]);
547
547
  }, Gf = [];
548
- function wt(n, e, t, i, r, s, a, o) {
548
+ function Tt(n, e, t, i, r, s, a, o) {
549
549
  var l = typeof n == "function" ? n.options : n;
550
550
  e && (l.render = e, l.staticRenderFns = t, l._compiled = !0), i && (l.functional = !0), s && (l._scopeId = "data-v-" + s);
551
551
  var c;
@@ -671,7 +671,7 @@ const Vf = {
671
671
  n && (n.removeEventListener("mouseenter", this.handleMouseEnter), n.removeEventListener("mouseleave", this.handleMouseLeave), e.removeEventListener("mouseenter", this.handleMouseEnter), e.removeEventListener("mouseleave", this.handleMouseLeave));
672
672
  }
673
673
  }, ml = {};
674
- var Wf = /* @__PURE__ */ wt(
674
+ var Wf = /* @__PURE__ */ Tt(
675
675
  Vf,
676
676
  kf,
677
677
  Gf,
@@ -685,7 +685,7 @@ function Xf(n) {
685
685
  for (let e in ml)
686
686
  this[e] = ml[e];
687
687
  }
688
- const Ta = /* @__PURE__ */ function() {
688
+ const wa = /* @__PURE__ */ function() {
689
689
  return Wf.exports;
690
690
  }();
691
691
  var $f = function() {
@@ -728,7 +728,7 @@ const jf = {
728
728
  }
729
729
  }
730
730
  }, gl = {};
731
- var Yf = /* @__PURE__ */ wt(
731
+ var Yf = /* @__PURE__ */ Tt(
732
732
  jf,
733
733
  $f,
734
734
  qf,
@@ -784,7 +784,7 @@ const ed = {
784
784
  }
785
785
  }
786
786
  }, _l = {};
787
- var td = /* @__PURE__ */ wt(
787
+ var td = /* @__PURE__ */ Tt(
788
788
  ed,
789
789
  Jf,
790
790
  Qf,
@@ -853,7 +853,7 @@ var rd = function() {
853
853
  const od = {
854
854
  name: "dp-checkfilter",
855
855
  components: {
856
- DpPopover: Ta,
856
+ DpPopover: wa,
857
857
  DpCheck: Zf,
858
858
  DpRadio: id
859
859
  },
@@ -885,7 +885,7 @@ const od = {
885
885
  }
886
886
  }
887
887
  }, vl = {};
888
- var ad = /* @__PURE__ */ wt(
888
+ var ad = /* @__PURE__ */ Tt(
889
889
  od,
890
890
  rd,
891
891
  sd,
@@ -947,7 +947,7 @@ const hd = {
947
947
  }
948
948
  }
949
949
  }, xl = {};
950
- var fd = /* @__PURE__ */ wt(
950
+ var fd = /* @__PURE__ */ Tt(
951
951
  hd,
952
952
  cd,
953
953
  ud,
@@ -1020,7 +1020,7 @@ var md = function() {
1020
1020
  const _d = {
1021
1021
  name: "dp-select",
1022
1022
  components: {
1023
- DpPopover: Ta
1023
+ DpPopover: wa
1024
1024
  },
1025
1025
  props: {
1026
1026
  value: {
@@ -1068,7 +1068,7 @@ const _d = {
1068
1068
  }
1069
1069
  }
1070
1070
  }, yl = {};
1071
- var vd = /* @__PURE__ */ wt(
1071
+ var vd = /* @__PURE__ */ Tt(
1072
1072
  _d,
1073
1073
  md,
1074
1074
  gd,
@@ -1175,21 +1175,21 @@ const Ed = {
1175
1175
  }
1176
1176
  }
1177
1177
  }, Sl = {};
1178
- var bd = /* @__PURE__ */ wt(
1178
+ var bd = /* @__PURE__ */ Tt(
1179
1179
  Ed,
1180
1180
  Sd,
1181
1181
  Md,
1182
1182
  !1,
1183
- wd,
1183
+ Td,
1184
1184
  "cf64bc14",
1185
1185
  null,
1186
1186
  null
1187
1187
  );
1188
- function wd(n) {
1188
+ function Td(n) {
1189
1189
  for (let e in Sl)
1190
1190
  this[e] = Sl[e];
1191
1191
  }
1192
- const Td = /* @__PURE__ */ function() {
1192
+ const wd = /* @__PURE__ */ function() {
1193
1193
  return bd.exports;
1194
1194
  }();
1195
1195
  var Ad = function() {
@@ -1278,7 +1278,7 @@ const Rd = {
1278
1278
  name: "dp-pagin",
1279
1279
  components: {
1280
1280
  DpSelect: yd,
1281
- DpInput: Td
1281
+ DpInput: wd
1282
1282
  },
1283
1283
  props: {
1284
1284
  pageInfo: {
@@ -1327,7 +1327,7 @@ const Rd = {
1327
1327
  }
1328
1328
  }
1329
1329
  }, Ml = {};
1330
- var Ld = /* @__PURE__ */ wt(
1330
+ var Ld = /* @__PURE__ */ Tt(
1331
1331
  Rd,
1332
1332
  Ad,
1333
1333
  Cd,
@@ -1443,7 +1443,7 @@ const Ud = {
1443
1443
  }
1444
1444
  }
1445
1445
  }, El = {};
1446
- var Nd = /* @__PURE__ */ wt(
1446
+ var Nd = /* @__PURE__ */ Tt(
1447
1447
  Ud,
1448
1448
  Dd,
1449
1449
  Id,
@@ -1597,7 +1597,7 @@ const Hd = {
1597
1597
  this.item.children || this.$nextTick(this.handleResize);
1598
1598
  }
1599
1599
  }, bl = {};
1600
- var kd = /* @__PURE__ */ wt(
1600
+ var kd = /* @__PURE__ */ Tt(
1601
1601
  Hd,
1602
1602
  Bd,
1603
1603
  zd,
@@ -1619,9 +1619,9 @@ const Vd = /* @__PURE__ */ function() {
1619
1619
  return {};
1620
1620
  const r = (a) => typeof a == "number" ? [a] : (Object.values(a) || []).map((o) => r(o)).flat();
1621
1621
  return { position: "sticky", left: `${n.filter((a, o) => o < t && a.isFixed).map((a) => r(e[a.code])).reduce((a, o) => parseFloat(a) + parseFloat(o), 0)}px` };
1622
- }, lr = (n, e, t) => {
1622
+ }, ar = (n, e, t) => {
1623
1623
  const i = n[e[0]];
1624
- return e.length > 1 ? lr(i, e.slice(1), t) : n[t] === void 0 ? i : n[t];
1624
+ return e.length > 1 ? ar(i, e.slice(1), t) : n[t] === void 0 ? i : n[t];
1625
1625
  };
1626
1626
  var Wd = function() {
1627
1627
  var n = this, e = n.$createElement, t = n._self._c || e;
@@ -1740,8 +1740,8 @@ const $d = {
1740
1740
  this.key++, this.widthInfo = {}, this.$emit("changeBlock", this.isBlock);
1741
1741
  }
1742
1742
  }
1743
- }, wl = {};
1744
- var qd = /* @__PURE__ */ wt(
1743
+ }, Tl = {};
1744
+ var qd = /* @__PURE__ */ Tt(
1745
1745
  $d,
1746
1746
  Wd,
1747
1747
  Xd,
@@ -1752,8 +1752,8 @@ var qd = /* @__PURE__ */ wt(
1752
1752
  null
1753
1753
  );
1754
1754
  function jd(n) {
1755
- for (let e in wl)
1756
- this[e] = wl[e];
1755
+ for (let e in Tl)
1756
+ this[e] = Tl[e];
1757
1757
  }
1758
1758
  const Yd = /* @__PURE__ */ function() {
1759
1759
  return qd.exports;
@@ -2011,7 +2011,7 @@ const Jd = {
2011
2011
  return n.length ? [...this.bodyData].filter((e) => {
2012
2012
  let t = !0;
2013
2013
  return n.some((i) => {
2014
- if (!i.value.includes(lr(e, i.target, i.filterKey)))
2014
+ if (!i.value.includes(ar(e, i.target, i.filterKey)))
2015
2015
  return t = !1, !0;
2016
2016
  }), t;
2017
2017
  }) : this.bodyData;
@@ -2023,7 +2023,7 @@ const Jd = {
2023
2023
  const e = this.sortInfo.value === "up";
2024
2024
  let t = !1;
2025
2025
  if (n = [...n].sort((i, r) => {
2026
- const s = [lr(i, this.sortInfo.target, this.sortInfo.sortKey)].flat(), a = [lr(r, this.sortInfo.target, this.sortInfo.sortKey)].flat(), o = s.length > 1 ? s.sort((c, u) => e ? c - u : u - c)[0] : s[0], l = a.length > 1 ? a.sort((c, u) => e ? c - u : u - c)[0] : a[0];
2026
+ const s = [ar(i, this.sortInfo.target, this.sortInfo.sortKey)].flat(), a = [ar(r, this.sortInfo.target, this.sortInfo.sortKey)].flat(), o = s.length > 1 ? s.sort((c, u) => e ? c - u : u - c)[0] : s[0], l = a.length > 1 ? a.sort((c, u) => e ? c - u : u - c)[0] : a[0];
2027
2027
  return (s.length > 1 || a.length > 1) && (t = !0), e ? o - l : l - o;
2028
2028
  }), t) {
2029
2029
  const i = (r, s, a) => {
@@ -2037,7 +2037,7 @@ const Jd = {
2037
2037
  return o;
2038
2038
  };
2039
2039
  n = n.map((r) => {
2040
- const s = [lr(r, this.sortInfo.target, this.sortInfo.sortKey)].flat();
2040
+ const s = [ar(r, this.sortInfo.target, this.sortInfo.sortKey)].flat();
2041
2041
  if (s.length > 1) {
2042
2042
  const a = s.sort((c, u) => e ? c - u : u - c);
2043
2043
  let o = [];
@@ -2191,8 +2191,8 @@ const Jd = {
2191
2191
  this.filterInfo = De(De({}, this.filterInfo), n), this.beforeIndex = 0, this.currentIndex = 50, this.$refs.table.scrollTop = 0, this.$emit("changeFilter", Object.values(this.filterInfo).map((e) => ({ key: e.key, value: e.value })));
2192
2192
  }
2193
2193
  }
2194
- }, Tl = {};
2195
- var Qd = /* @__PURE__ */ wt(
2194
+ }, wl = {};
2195
+ var Qd = /* @__PURE__ */ Tt(
2196
2196
  Jd,
2197
2197
  Kd,
2198
2198
  Zd,
@@ -2203,8 +2203,8 @@ var Qd = /* @__PURE__ */ wt(
2203
2203
  null
2204
2204
  );
2205
2205
  function ep(n) {
2206
- for (let e in Tl)
2207
- this[e] = Tl[e];
2206
+ for (let e in wl)
2207
+ this[e] = wl[e];
2208
2208
  }
2209
2209
  const tp = /* @__PURE__ */ function() {
2210
2210
  return Qd.exports;
@@ -2252,7 +2252,7 @@ const rp = {
2252
2252
  }
2253
2253
  }
2254
2254
  }, Al = {};
2255
- var sp = /* @__PURE__ */ wt(
2255
+ var sp = /* @__PURE__ */ Tt(
2256
2256
  rp,
2257
2257
  np,
2258
2258
  ip,
@@ -2314,7 +2314,7 @@ const fp = {
2314
2314
  }
2315
2315
  }
2316
2316
  }, Cl = {};
2317
- var dp = /* @__PURE__ */ wt(
2317
+ var dp = /* @__PURE__ */ Tt(
2318
2318
  fp,
2319
2319
  up,
2320
2320
  hp,
@@ -2400,7 +2400,7 @@ const vp = {
2400
2400
  }
2401
2401
  }
2402
2402
  }, Rl = {};
2403
- var xp = /* @__PURE__ */ wt(
2403
+ var xp = /* @__PURE__ */ Tt(
2404
2404
  vp,
2405
2405
  gp,
2406
2406
  _p,
@@ -2446,7 +2446,7 @@ const bp = {
2446
2446
  name: "dp-toggleraw",
2447
2447
  components: {
2448
2448
  DpIcon: mp,
2449
- DpPopover: Ta,
2449
+ DpPopover: wa,
2450
2450
  DpCapsule: Sp
2451
2451
  },
2452
2452
  props: {
@@ -2481,29 +2481,29 @@ const bp = {
2481
2481
  }
2482
2482
  }
2483
2483
  }, Ll = {};
2484
- var wp = /* @__PURE__ */ wt(
2484
+ var Tp = /* @__PURE__ */ Tt(
2485
2485
  bp,
2486
2486
  Mp,
2487
2487
  Ep,
2488
2488
  !1,
2489
- Tp,
2490
- "1a73bbf6",
2489
+ wp,
2490
+ "d75021ba",
2491
2491
  null,
2492
2492
  null
2493
2493
  );
2494
- function Tp(n) {
2494
+ function wp(n) {
2495
2495
  for (let e in Ll)
2496
2496
  this[e] = Ll[e];
2497
2497
  }
2498
2498
  const Ap = /* @__PURE__ */ function() {
2499
- return wp.exports;
2499
+ return Tp.exports;
2500
2500
  }();
2501
2501
  /**
2502
2502
  * @license
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, ki = 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, Wi = 301, Xi = 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, $i = 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, 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;
2507
2507
  class gi {
2508
2508
  addEventListener(e, t) {
2509
2509
  this._listeners === void 0 && (this._listeners = {});
@@ -2538,12 +2538,12 @@ class gi {
2538
2538
  }
2539
2539
  }
2540
2540
  }
2541
- const Tt = ["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"];
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
- const dr = Math.PI / 180, Mr = 180 / Math.PI;
2543
+ const fr = Math.PI / 180, Mr = 180 / Math.PI;
2544
2544
  function mn() {
2545
2545
  const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
2546
- return (Tt[n & 255] + Tt[n >> 8 & 255] + Tt[n >> 16 & 255] + Tt[n >> 24 & 255] + "-" + Tt[e & 255] + Tt[e >> 8 & 255] + "-" + Tt[e >> 16 & 15 | 64] + Tt[e >> 24 & 255] + "-" + Tt[t & 63 | 128] + Tt[t >> 8 & 255] + "-" + Tt[t >> 16 & 255] + Tt[t >> 24 & 255] + Tt[i & 255] + Tt[i >> 8 & 255] + Tt[i >> 16 & 255] + Tt[i >> 24 & 255]).toLowerCase();
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
  }
2548
2548
  function vt(n, e, t) {
2549
2549
  return Math.max(e, Math.min(t, n));
@@ -2551,17 +2551,17 @@ function vt(n, e, t) {
2551
2551
  function La(n, e) {
2552
2552
  return (n % e + e) % e;
2553
2553
  }
2554
- function wm(n, e, t, i, r) {
2554
+ function Tm(n, e, t, i, r) {
2555
2555
  return i + (n - e) * (r - i) / (t - e);
2556
2556
  }
2557
- function Tm(n, e, t) {
2557
+ function wm(n, e, t) {
2558
2558
  return n !== e ? (t - n) / (e - n) : 0;
2559
2559
  }
2560
- function pr(n, e, t) {
2560
+ function dr(n, e, t) {
2561
2561
  return (1 - t) * n + t * e;
2562
2562
  }
2563
2563
  function Am(n, e, t, i) {
2564
- return pr(n, e, 1 - Math.exp(-t * i));
2564
+ return dr(n, e, 1 - Math.exp(-t * i));
2565
2565
  }
2566
2566
  function Cm(n, e = 1) {
2567
2567
  return e - Math.abs(La(n, e * 2) - e);
@@ -2587,7 +2587,7 @@ function Um(n) {
2587
2587
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
2588
2588
  }
2589
2589
  function Nm(n) {
2590
- return n * dr;
2590
+ return n * fr;
2591
2591
  }
2592
2592
  function Om(n) {
2593
2593
  return n * Mr;
@@ -2667,14 +2667,14 @@ function Ye(n, e) {
2667
2667
  }
2668
2668
  }
2669
2669
  const ph = {
2670
- DEG2RAD: dr,
2670
+ DEG2RAD: fr,
2671
2671
  RAD2DEG: Mr,
2672
2672
  generateUUID: mn,
2673
2673
  clamp: vt,
2674
2674
  euclideanModulo: La,
2675
- mapLinear: wm,
2676
- inverseLerp: Tm,
2677
- lerp: pr,
2675
+ mapLinear: Tm,
2676
+ inverseLerp: wm,
2677
+ lerp: dr,
2678
2678
  damp: Am,
2679
2679
  pingpong: Cm,
2680
2680
  smoothstep: Rm,
@@ -2946,8 +2946,8 @@ class Be {
2946
2946
  return this.multiplyMatrices(e, this);
2947
2947
  }
2948
2948
  multiplyMatrices(e, t) {
2949
- const i = e.elements, r = t.elements, s = this.elements, a = i[0], o = i[3], l = i[6], c = i[1], u = i[4], h = i[7], f = i[2], d = i[5], p = i[8], _ = r[0], m = r[3], g = r[6], y = r[1], v = r[4], M = r[7], b = r[2], R = r[5], T = r[8];
2950
- return s[0] = a * _ + o * y + l * b, s[3] = a * m + o * v + l * R, s[6] = a * g + o * M + l * T, s[1] = c * _ + u * y + h * b, s[4] = c * m + u * v + h * R, s[7] = c * g + u * M + h * T, s[2] = f * _ + d * y + p * b, s[5] = f * m + d * v + p * R, s[8] = f * g + d * M + p * T, this;
2949
+ const i = e.elements, r = t.elements, s = this.elements, a = i[0], o = i[3], l = i[6], c = i[1], u = i[4], h = i[7], f = i[2], d = i[5], p = i[8], _ = r[0], m = r[3], g = r[6], y = r[1], v = r[4], M = r[7], b = r[2], R = r[5], w = r[8];
2950
+ return s[0] = a * _ + o * y + l * b, s[3] = a * m + o * v + l * R, s[6] = a * g + o * M + l * w, s[1] = c * _ + u * y + h * b, s[4] = c * m + u * v + h * R, s[7] = c * g + u * M + h * w, s[2] = f * _ + d * y + p * b, s[5] = f * m + d * v + p * R, s[8] = f * g + d * M + p * w, this;
2951
2951
  }
2952
2952
  multiplyScalar(e) {
2953
2953
  const t = this.elements;
@@ -3087,10 +3087,10 @@ function zm() {
3087
3087
  return n.style.display = "block", n;
3088
3088
  }
3089
3089
  const hc = {};
3090
- function mr(n) {
3090
+ function pr(n) {
3091
3091
  n in hc || (hc[n] = !0, console.warn(n));
3092
3092
  }
3093
- function Gi(n) {
3093
+ function ki(n) {
3094
3094
  return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
3095
3095
  }
3096
3096
  function po(n) {
@@ -3183,12 +3183,12 @@ class gh {
3183
3183
  i.drawImage(e, 0, 0, e.width, e.height);
3184
3184
  const r = i.getImageData(0, 0, e.width, e.height), s = r.data;
3185
3185
  for (let a = 0; a < s.length; a++)
3186
- s[a] = Gi(s[a] / 255) * 255;
3186
+ s[a] = ki(s[a] / 255) * 255;
3187
3187
  return i.putImageData(r, 0, 0), t;
3188
3188
  } else if (e.data) {
3189
3189
  const t = e.data.slice(0);
3190
3190
  for (let i = 0; i < t.length; i++)
3191
- t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(Gi(t[i] / 255) * 255) : t[i] = Gi(t[i]);
3191
+ t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(ki(t[i] / 255) * 255) : t[i] = ki(t[i]);
3192
3192
  return {
3193
3193
  data: t,
3194
3194
  width: e.width,
@@ -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 : (mr("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 = 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;
3242
3242
  }
3243
3243
  get image() {
3244
3244
  return this.source.data;
@@ -3325,10 +3325,10 @@ class It extends gi {
3325
3325
  e === !0 && (this.version++, this.source.needsUpdate = !0);
3326
3326
  }
3327
3327
  get encoding() {
3328
- return mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace === nt ? li : fh;
3328
+ return pr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace === nt ? li : fh;
3329
3329
  }
3330
3330
  set encoding(e) {
3331
- mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = e === li ? nt : ci;
3331
+ pr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = e === li ? nt : ci;
3332
3332
  }
3333
3333
  }
3334
3334
  It.DEFAULT_IMAGE = null;
@@ -3453,8 +3453,8 @@ class Ke {
3453
3453
  if (Math.abs(u + f) < 0.1 && Math.abs(h + _) < 0.1 && Math.abs(p + m) < 0.1 && Math.abs(c + d + g - 3) < 0.1)
3454
3454
  return this.set(1, 0, 0, 0), this;
3455
3455
  t = Math.PI;
3456
- const v = (c + 1) / 2, M = (d + 1) / 2, b = (g + 1) / 2, R = (u + f) / 4, T = (h + _) / 4, O = (p + m) / 4;
3457
- return v > M && v > b ? v < 0.01 ? (i = 0, r = 0.707106781, s = 0.707106781) : (i = Math.sqrt(v), r = R / i, s = T / i) : M > b ? M < 0.01 ? (i = 0.707106781, r = 0, s = 0.707106781) : (r = Math.sqrt(M), i = R / r, s = O / r) : b < 0.01 ? (i = 0.707106781, r = 0.707106781, s = 0) : (s = Math.sqrt(b), i = T / s, r = O / s), this.set(i, r, s, t), this;
3456
+ const v = (c + 1) / 2, M = (d + 1) / 2, b = (g + 1) / 2, R = (u + f) / 4, w = (h + _) / 4, O = (p + m) / 4;
3457
+ return v > M && v > b ? v < 0.01 ? (i = 0, r = 0.707106781, s = 0.707106781) : (i = Math.sqrt(v), r = R / i, s = w / i) : M > b ? M < 0.01 ? (i = 0.707106781, r = 0, s = 0.707106781) : (r = Math.sqrt(M), i = R / r, s = O / r) : b < 0.01 ? (i = 0.707106781, r = 0.707106781, s = 0) : (s = Math.sqrt(b), i = w / s, r = O / s), this.set(i, r, s, t), this;
3458
3458
  }
3459
3459
  let y = Math.sqrt((m - p) * (m - p) + (h - _) * (h - _) + (f - u) * (f - u));
3460
3460
  return Math.abs(y) < 1e-3 && (y = 1), this.x = (m - p) / y, this.y = (h - _) / y, this.z = (f - u) / y, this.w = Math.acos((c + d + g - 1) / 2), this;
@@ -3537,7 +3537,7 @@ class jm extends gi {
3537
3537
  constructor(e = 1, t = 1, i = {}) {
3538
3538
  super(), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = 1, this.scissor = new Ke(0, 0, e, t), this.scissorTest = !1, this.viewport = new Ke(0, 0, e, t);
3539
3539
  const r = { width: e, height: t, depth: 1 };
3540
- i.encoding !== void 0 && (mr("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."), i.colorSpace = i.encoding === li ? nt : ci), this.texture = new It(r, i.mapping, i.wrapS, i.wrapT, i.magFilter, i.minFilter, i.format, i.type, i.anisotropy, i.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = i.generateMipmaps !== void 0 ? i.generateMipmaps : !1, this.texture.internalFormat = i.internalFormat !== void 0 ? i.internalFormat : null, this.texture.minFilter = i.minFilter !== void 0 ? i.minFilter : $t, this.depthBuffer = i.depthBuffer !== void 0 ? i.depthBuffer : !0, this.stencilBuffer = i.stencilBuffer !== void 0 ? i.stencilBuffer : !1, this.depthTexture = i.depthTexture !== void 0 ? i.depthTexture : null, this.samples = i.samples !== void 0 ? i.samples : 0;
3540
+ i.encoding !== void 0 && (pr("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."), i.colorSpace = i.encoding === li ? nt : ci), this.texture = new It(r, i.mapping, i.wrapS, i.wrapT, i.magFilter, i.minFilter, i.format, i.type, i.anisotropy, i.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = i.generateMipmaps !== void 0 ? i.generateMipmaps : !1, this.texture.internalFormat = i.internalFormat !== void 0 ? i.internalFormat : null, this.texture.minFilter = i.minFilter !== void 0 ? i.minFilter : $t, this.depthBuffer = i.depthBuffer !== void 0 ? i.depthBuffer : !0, this.stencilBuffer = i.stencilBuffer !== void 0 ? i.stencilBuffer : !1, this.depthTexture = i.depthTexture !== void 0 ? i.depthTexture : null, this.samples = i.samples !== void 0 ? i.samples : 0;
3541
3541
  }
3542
3542
  setSize(e, t, i = 1) {
3543
3543
  (this.width !== e || this.height !== t || this.depth !== i) && (this.width = e, this.height = t, this.depth = i, this.texture.image.width = e, this.texture.image.height = t, this.texture.image.depth = i, this.dispose()), this.viewport.set(0, 0, e, t), this.scissor.set(0, 0, e, t);
@@ -4155,7 +4155,7 @@ class Kn {
4155
4155
  intersectsTriangle(e) {
4156
4156
  if (this.isEmpty())
4157
4157
  return !1;
4158
- this.getCenter(nr), kr.subVectors(this.max, nr), yi.subVectors(e.a, nr), Si.subVectors(e.b, nr), Mi.subVectors(e.c, nr), 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), In.subVectors(Si, yi), Un.subVectors(Mi, Si), Qn.subVectors(yi, Mi);
4159
4159
  let t = [
4160
4160
  0,
4161
4161
  -In.z,
@@ -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(), nr = /* @__PURE__ */ new D(), kr = /* @__PURE__ */ new D(), Gr = /* @__PURE__ */ new D(), ei = /* @__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();
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);
@@ -4231,7 +4231,7 @@ function _o(n, e, t, i, r) {
4231
4231
  }
4232
4232
  return !0;
4233
4233
  }
4234
- const Km = /* @__PURE__ */ new Kn(), ir = /* @__PURE__ */ new D(), vo = /* @__PURE__ */ new D();
4234
+ const Km = /* @__PURE__ */ new Kn(), nr = /* @__PURE__ */ new D(), vo = /* @__PURE__ */ new D();
4235
4235
  class Dr {
4236
4236
  constructor(e = new D(), t = -1) {
4237
4237
  this.center = e, this.radius = t;
@@ -4288,16 +4288,16 @@ class Dr {
4288
4288
  expandByPoint(e) {
4289
4289
  if (this.isEmpty())
4290
4290
  return this.center.copy(e), this.radius = 0, this;
4291
- ir.subVectors(e, this.center);
4292
- const t = ir.lengthSq();
4291
+ nr.subVectors(e, this.center);
4292
+ const t = nr.lengthSq();
4293
4293
  if (t > this.radius * this.radius) {
4294
4294
  const i = Math.sqrt(t), r = (i - this.radius) * 0.5;
4295
- this.center.addScaledVector(ir, r / i), this.radius += r;
4295
+ this.center.addScaledVector(nr, r / i), this.radius += r;
4296
4296
  }
4297
4297
  return this;
4298
4298
  }
4299
4299
  union(e) {
4300
- return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (vo.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(ir.copy(e.center).add(vo)), this.expandByPoint(ir.copy(e.center).sub(vo))), this);
4300
+ return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (vo.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(nr.copy(e.center).add(vo)), this.expandByPoint(nr.copy(e.center).sub(vo))), this);
4301
4301
  }
4302
4302
  equals(e) {
4303
4303
  return e.center.equals(this.center) && e.radius === this.radius;
@@ -4564,8 +4564,8 @@ class it {
4564
4564
  return this.multiplyMatrices(e, this);
4565
4565
  }
4566
4566
  multiplyMatrices(e, t) {
4567
- const i = e.elements, r = t.elements, s = this.elements, a = i[0], o = i[4], l = i[8], c = i[12], u = i[1], h = i[5], f = i[9], d = i[13], p = i[2], _ = i[6], m = i[10], g = i[14], y = i[3], v = i[7], M = i[11], b = i[15], R = r[0], T = r[4], O = r[8], x = r[12], E = r[1], F = r[5], ee = r[9], N = r[13], U = r[2], C = r[6], z = r[10], H = r[14], V = r[3], K = r[7], Q = r[11], B = r[15];
4568
- return s[0] = a * R + o * E + l * U + c * V, s[4] = a * T + o * F + l * C + c * K, s[8] = a * O + o * ee + l * z + c * Q, s[12] = a * x + o * N + l * H + c * B, s[1] = u * R + h * E + f * U + d * V, s[5] = u * T + h * F + f * C + d * K, s[9] = u * O + h * ee + f * z + d * Q, s[13] = u * x + h * N + f * H + d * B, s[2] = p * R + _ * E + m * U + g * V, s[6] = p * T + _ * F + m * C + g * K, s[10] = p * O + _ * ee + m * z + g * Q, s[14] = p * x + _ * N + m * H + g * B, s[3] = y * R + v * E + M * U + b * V, s[7] = y * T + v * F + M * C + b * K, s[11] = y * O + v * ee + M * z + b * Q, s[15] = y * x + v * N + M * H + b * B, this;
4567
+ const i = e.elements, r = t.elements, s = this.elements, a = i[0], o = i[4], l = i[8], c = i[12], u = i[1], h = i[5], f = i[9], d = i[13], p = i[2], _ = i[6], m = i[10], g = i[14], y = i[3], v = i[7], M = i[11], b = i[15], R = r[0], w = r[4], O = r[8], x = r[12], E = r[1], F = r[5], ee = r[9], N = r[13], U = r[2], C = r[6], z = r[10], H = r[14], V = r[3], K = r[7], Q = r[11], B = r[15];
4568
+ return s[0] = a * R + o * E + l * U + c * V, s[4] = a * w + o * F + l * C + c * K, s[8] = a * O + o * ee + l * z + c * Q, s[12] = a * x + o * N + l * H + c * B, s[1] = u * R + h * E + f * U + d * V, s[5] = u * w + h * F + f * C + d * K, s[9] = u * O + h * ee + f * z + d * Q, s[13] = u * x + h * N + f * H + d * B, s[2] = p * R + _ * E + m * U + g * V, s[6] = p * w + _ * F + m * C + g * K, s[10] = p * O + _ * ee + m * z + g * Q, s[14] = p * x + _ * N + m * H + g * B, s[3] = y * R + v * E + M * U + b * V, s[7] = y * w + v * F + M * C + b * K, s[11] = y * O + v * ee + M * z + b * Q, s[15] = y * x + v * N + M * H + b * B, this;
4569
4569
  }
4570
4570
  multiplyScalar(e) {
4571
4571
  const t = this.elements;
@@ -4588,8 +4588,8 @@ class it {
4588
4588
  const e = this.elements, t = e[0], i = e[1], r = e[2], s = e[3], a = e[4], o = e[5], l = e[6], c = e[7], u = e[8], h = e[9], f = e[10], d = e[11], p = e[12], _ = e[13], m = e[14], g = e[15], y = h * m * c - _ * f * c + _ * l * d - o * m * d - h * l * g + o * f * g, v = p * f * c - u * m * c - p * l * d + a * m * d + u * l * g - a * f * g, M = u * _ * c - p * h * c + p * o * d - a * _ * d - u * o * g + a * h * g, b = p * h * l - u * _ * l - p * o * f + a * _ * f + u * o * m - a * h * m, R = t * y + i * v + r * M + s * b;
4589
4589
  if (R === 0)
4590
4590
  return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
4591
- const T = 1 / R;
4592
- return e[0] = y * T, e[1] = (_ * f * s - h * m * s - _ * r * d + i * m * d + h * r * g - i * f * g) * T, e[2] = (o * m * s - _ * l * s + _ * r * c - i * m * c - o * r * g + i * l * g) * T, e[3] = (h * l * s - o * f * s - h * r * c + i * f * c + o * r * d - i * l * d) * T, e[4] = v * T, e[5] = (u * m * s - p * f * s + p * r * d - t * m * d - u * r * g + t * f * g) * T, e[6] = (p * l * s - a * m * s - p * r * c + t * m * c + a * r * g - t * l * g) * T, e[7] = (a * f * s - u * l * s + u * r * c - t * f * c - a * r * d + t * l * d) * T, e[8] = M * T, e[9] = (p * h * s - u * _ * s - p * i * d + t * _ * d + u * i * g - t * h * g) * T, e[10] = (a * _ * s - p * o * s + p * i * c - t * _ * c - a * i * g + t * o * g) * T, e[11] = (u * o * s - a * h * s - u * i * c + t * h * c + a * i * d - t * o * d) * T, e[12] = b * T, e[13] = (u * _ * r - p * h * r + p * i * f - t * _ * f - u * i * m + t * h * m) * T, e[14] = (p * o * r - a * _ * r - p * i * l + t * _ * l + a * i * m - t * o * m) * T, e[15] = (a * h * r - u * o * r + u * i * l - t * h * l - a * i * f + t * o * f) * T, this;
4591
+ const w = 1 / R;
4592
+ return e[0] = y * w, e[1] = (_ * f * s - h * m * s - _ * r * d + i * m * d + h * r * g - i * f * g) * w, e[2] = (o * m * s - _ * l * s + _ * r * c - i * m * c - o * r * g + i * l * g) * w, e[3] = (h * l * s - o * f * s - h * r * c + i * f * c + o * r * d - i * l * d) * w, e[4] = v * w, e[5] = (u * m * s - p * f * s + p * r * d - t * m * d - u * r * g + t * f * g) * w, e[6] = (p * l * s - a * m * s - p * r * c + t * m * c + a * r * g - t * l * g) * w, e[7] = (a * f * s - u * l * s + u * r * c - t * f * c - a * r * d + t * l * d) * w, e[8] = M * w, e[9] = (p * h * s - u * _ * s - p * i * d + t * _ * d + u * i * g - t * h * g) * w, e[10] = (a * _ * s - p * o * s + p * i * c - t * _ * c - a * i * g + t * o * g) * w, e[11] = (u * o * s - a * h * s - u * i * c + t * h * c + a * i * d - t * o * d) * w, e[12] = b * w, e[13] = (u * _ * r - p * h * r + p * i * f - t * _ * f - u * i * m + t * h * m) * w, e[14] = (p * o * r - a * _ * r - p * i * l + t * _ * l + a * i * m - t * o * m) * w, e[15] = (a * h * r - u * o * r + u * i * l - t * h * l - a * i * f + t * o * f) * w, this;
4593
4593
  }
4594
4594
  scale(e) {
4595
4595
  const t = this.elements, i = e.x, r = e.y, s = e.z;
@@ -4761,8 +4761,8 @@ class it {
4761
4761
  ), this;
4762
4762
  }
4763
4763
  compose(e, t, i) {
4764
- const r = this.elements, s = t._x, a = t._y, o = t._z, l = t._w, c = s + s, u = a + a, h = o + o, f = s * c, d = s * u, p = s * h, _ = a * u, m = a * h, g = o * h, y = l * c, v = l * u, M = l * h, b = i.x, R = i.y, T = i.z;
4765
- return r[0] = (1 - (_ + g)) * b, r[1] = (d + M) * b, r[2] = (p - v) * b, r[3] = 0, r[4] = (d - M) * R, r[5] = (1 - (f + g)) * R, r[6] = (m + y) * R, r[7] = 0, r[8] = (p + v) * T, r[9] = (m - y) * T, r[10] = (1 - (f + _)) * T, r[11] = 0, r[12] = e.x, r[13] = e.y, r[14] = e.z, r[15] = 1, this;
4764
+ const r = this.elements, s = t._x, a = t._y, o = t._z, l = t._w, c = s + s, u = a + a, h = o + o, f = s * c, d = s * u, p = s * h, _ = a * u, m = a * h, g = o * h, y = l * c, v = l * u, M = l * h, b = i.x, R = i.y, w = i.z;
4765
+ return r[0] = (1 - (_ + g)) * b, r[1] = (d + M) * b, r[2] = (p - v) * b, r[3] = 0, r[4] = (d - M) * R, r[5] = (1 - (f + g)) * R, r[6] = (m + y) * R, r[7] = 0, r[8] = (p + v) * w, r[9] = (m - y) * w, r[10] = (1 - (f + _)) * w, r[11] = 0, r[12] = e.x, r[13] = e.y, r[14] = e.z, r[15] = 1, this;
4766
4766
  }
4767
4767
  decompose(e, t, i) {
4768
4768
  const r = this.elements;
@@ -4933,7 +4933,7 @@ 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(), rr = /* @__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(), 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" };
4937
4937
  class at extends gi {
4938
4938
  constructor() {
4939
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();
@@ -5031,7 +5031,7 @@ class at extends gi {
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), rr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? bn.lookAt(rr, $r, this.up) : bn.lookAt($r, rr, 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 ? 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()));
5035
5035
  }
5036
5036
  add(e) {
5037
5037
  if (arguments.length > 1) {
@@ -5088,10 +5088,10 @@ class at extends gi {
5088
5088
  return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);
5089
5089
  }
5090
5090
  getWorldQuaternion(e) {
5091
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rr, e, eg), e;
5091
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(ir, e, eg), e;
5092
5092
  }
5093
5093
  getWorldScale(e) {
5094
- return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rr, tg, e), e;
5094
+ return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(ir, tg, e), e;
5095
5095
  }
5096
5096
  getWorldDirection(e) {
5097
5097
  this.updateWorldMatrix(!0, !1);
@@ -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(), wn = /* @__PURE__ */ new D(), Mo = /* @__PURE__ */ new D(), Tn = /* @__PURE__ */ new D(), wi = /* @__PURE__ */ new D(), Ti = /* @__PURE__ */ new D(), xc = /* @__PURE__ */ new D(), Eo = /* @__PURE__ */ new D(), bo = /* @__PURE__ */ new D(), wo = /* @__PURE__ */ new D();
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();
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), 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;
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;
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, Tn), Tn.x >= 0 && Tn.y >= 0 && Tn.x + Tn.y <= 1;
5250
+ return this.getBarycoord(e, t, i, r, wn), wn.x >= 0 && wn.y >= 0 && wn.x + wn.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, Tn), l.setScalar(0), l.addScaledVector(s, Tn.x), l.addScaledVector(a, Tn.y), l.addScaledVector(o, Tn.z), 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;
5257
5257
  }
5258
5258
  static isFrontFacing(e, t, i, r) {
5259
- return Qt.subVectors(i, t), wn.subVectors(e, t), Qt.cross(wn).dot(r) < 0;
5259
+ return Qt.subVectors(i, t), Tn.subVectors(e, t), Qt.cross(Tn).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), wn.subVectors(this.a, this.b), Qt.cross(wn).length() * 0.5;
5277
+ return Qt.subVectors(this.c, this.b), Tn.subVectors(this.a, this.b), Qt.cross(Tn).length() * 0.5;
5278
5278
  }
5279
5279
  getMidpoint(e) {
5280
5280
  return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
@@ -5306,38 +5306,38 @@ class tn {
5306
5306
  closestPointToPoint(e, t) {
5307
5307
  const i = this.a, r = this.b, s = this.c;
5308
5308
  let a, o;
5309
- wi.subVectors(r, i), Ti.subVectors(s, i), Eo.subVectors(e, i);
5310
- const l = wi.dot(Eo), c = Ti.dot(Eo);
5309
+ Ti.subVectors(r, i), wi.subVectors(s, i), Eo.subVectors(e, i);
5310
+ const l = Ti.dot(Eo), c = wi.dot(Eo);
5311
5311
  if (l <= 0 && c <= 0)
5312
5312
  return t.copy(i);
5313
5313
  bo.subVectors(e, r);
5314
- const u = wi.dot(bo), h = Ti.dot(bo);
5314
+ const u = Ti.dot(bo), h = wi.dot(bo);
5315
5315
  if (u >= 0 && h <= u)
5316
5316
  return t.copy(r);
5317
5317
  const f = l * h - u * c;
5318
5318
  if (f <= 0 && l >= 0 && u <= 0)
5319
- return a = l / (l - u), t.copy(i).addScaledVector(wi, a);
5320
- wo.subVectors(e, s);
5321
- const d = wi.dot(wo), p = Ti.dot(wo);
5319
+ return a = l / (l - u), t.copy(i).addScaledVector(Ti, a);
5320
+ To.subVectors(e, s);
5321
+ const d = Ti.dot(To), p = wi.dot(To);
5322
5322
  if (p >= 0 && d <= p)
5323
5323
  return t.copy(s);
5324
5324
  const _ = d * c - l * p;
5325
5325
  if (_ <= 0 && c >= 0 && p <= 0)
5326
- return o = c / (c - p), t.copy(i).addScaledVector(Ti, o);
5326
+ return o = c / (c - p), t.copy(i).addScaledVector(wi, o);
5327
5327
  const m = u * p - d * h;
5328
5328
  if (m <= 0 && h - u >= 0 && d - p >= 0)
5329
5329
  return xc.subVectors(s, r), o = (h - u) / (h - u + (d - p)), t.copy(r).addScaledVector(xc, o);
5330
5330
  const g = 1 / (m + _ + f);
5331
- return a = _ * g, o = f * g, t.copy(i).addScaledVector(wi, a).addScaledVector(Ti, o);
5331
+ return a = _ * g, o = f * g, t.copy(i).addScaledVector(Ti, a).addScaledVector(wi, o);
5332
5332
  }
5333
5333
  equals(e) {
5334
5334
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
5335
5335
  }
5336
5336
  }
5337
5337
  let rg = 0;
5338
- class Ji extends gi {
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 = ki, 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 = 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;
5341
5341
  }
5342
5342
  get alphaTest() {
5343
5343
  return this._alphaTest;
@@ -5383,7 +5383,7 @@ class Ji extends gi {
5383
5383
  generator: "Material.toJSON"
5384
5384
  }
5385
5385
  };
5386
- i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== ki && (i.blending = this.blending), this.side !== jn && (i.side = this.side), this.vertexColors && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = this.transparent), i.depthFunc = this.depthFunc, i.depthTest = this.depthTest, i.depthWrite = this.depthWrite, i.colorWrite = this.colorWrite, i.stencilWrite = this.stencilWrite, i.stencilWriteMask = this.stencilWriteMask, i.stencilFunc = this.stencilFunc, i.stencilRef = this.stencilRef, i.stencilFuncMask = this.stencilFuncMask, i.stencilFail = this.stencilFail, i.stencilZFail = this.stencilZFail, i.stencilZPass = this.stencilZPass, this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = this.alphaHash), this.alphaToCoverage === !0 && (i.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = this.premultipliedAlpha), this.forceSinglePass === !0 && (i.forceSinglePass = this.forceSinglePass), this.wireframe === !0 && (i.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = this.flatShading), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
5386
+ i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== Hi && (i.blending = this.blending), this.side !== jn && (i.side = this.side), this.vertexColors && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = this.transparent), i.depthFunc = this.depthFunc, i.depthTest = this.depthTest, i.depthWrite = this.depthWrite, i.colorWrite = this.colorWrite, i.stencilWrite = this.stencilWrite, i.stencilWriteMask = this.stencilWriteMask, i.stencilFunc = this.stencilFunc, i.stencilRef = this.stencilRef, i.stencilFuncMask = this.stencilFuncMask, i.stencilFail = this.stencilFail, i.stencilZFail = this.stencilZFail, i.stencilZPass = this.stencilZPass, this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = this.alphaHash), this.alphaToCoverage === !0 && (i.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = this.premultipliedAlpha), this.forceSinglePass === !0 && (i.forceSinglePass = this.forceSinglePass), this.wireframe === !0 && (i.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = this.flatShading), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
5387
5387
  function r(s) {
5388
5388
  const a = [];
5389
5389
  for (const o in s) {
@@ -5570,7 +5570,7 @@ const xh = {
5570
5570
  yellow: 16776960,
5571
5571
  yellowgreen: 10145074
5572
5572
  }, en = { h: 0, s: 0, l: 0 }, jr = { h: 0, s: 0, l: 0 };
5573
- function To(n, e, t) {
5573
+ function wo(n, e, t) {
5574
5574
  return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * 6 * (2 / 3 - t) : n;
5575
5575
  }
5576
5576
  class je {
@@ -5599,7 +5599,7 @@ class je {
5599
5599
  this.r = this.g = this.b = i;
5600
5600
  else {
5601
5601
  const s = i <= 0.5 ? i * (1 + t) : i + t - i * t, a = 2 * i - s;
5602
- this.r = To(a, s, e + 1 / 3), this.g = To(a, s, e), this.b = To(a, s, e - 1 / 3);
5602
+ this.r = wo(a, s, e + 1 / 3), this.g = wo(a, s, e), this.b = wo(a, s, e - 1 / 3);
5603
5603
  }
5604
5604
  return Zt.toWorkingColorSpace(this, r), this;
5605
5605
  }
@@ -5669,7 +5669,7 @@ class je {
5669
5669
  return this.r = e.r, this.g = e.g, this.b = e.b, this;
5670
5670
  }
5671
5671
  copySRGBToLinear(e) {
5672
- return this.r = Gi(e.r), this.g = Gi(e.g), this.b = Gi(e.b), this;
5672
+ return this.r = ki(e.r), this.g = ki(e.g), this.b = ki(e.b), this;
5673
5673
  }
5674
5674
  copyLinearToSRGB(e) {
5675
5675
  return this.r = po(e.r), this.g = po(e.g), this.b = po(e.b), this;
@@ -5747,7 +5747,7 @@ class je {
5747
5747
  }
5748
5748
  lerpHSL(e, t) {
5749
5749
  this.getHSL(en), e.getHSL(jr);
5750
- const i = pr(en.h, jr.h, t), r = pr(en.s, jr.s, t), s = pr(en.l, jr.l, t);
5750
+ const i = dr(en.h, jr.h, t), r = dr(en.s, jr.s, t), s = dr(en.l, jr.l, t);
5751
5751
  return this.setHSL(i, r, s), this;
5752
5752
  }
5753
5753
  setFromVector3(e) {
@@ -5778,7 +5778,7 @@ class je {
5778
5778
  }
5779
5779
  const At = /* @__PURE__ */ new je();
5780
5780
  je.NAMES = xh;
5781
- class Ia extends Ji {
5781
+ class Ia extends Zi {
5782
5782
  constructor(e) {
5783
5783
  super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new je(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ca, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
5784
5784
  }
@@ -5916,7 +5916,7 @@ class jt extends an {
5916
5916
  }
5917
5917
  }
5918
5918
  let sg = 0;
5919
- const Xt = /* @__PURE__ */ new it(), Ao = /* @__PURE__ */ new at(), Ai = /* @__PURE__ */ new D(), kt = /* @__PURE__ */ new Kn(), sr = /* @__PURE__ */ new Kn(), St = /* @__PURE__ */ new D();
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
5920
  class _n extends gi {
5921
5921
  constructor() {
5922
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 = {};
@@ -6027,7 +6027,7 @@ class _n extends gi {
6027
6027
  if (kt.setFromBufferAttribute(e), t)
6028
6028
  for (let s = 0, a = t.length; s < a; s++) {
6029
6029
  const o = t[s];
6030
- sr.setFromBufferAttribute(o), this.morphTargetsRelative ? (St.addVectors(kt.min, sr.min), kt.expandByPoint(St), St.addVectors(kt.max, sr.max), kt.expandByPoint(St)) : (kt.expandByPoint(sr.min), kt.expandByPoint(sr.max));
6030
+ rr.setFromBufferAttribute(o), this.morphTargetsRelative ? (St.addVectors(kt.min, rr.min), kt.expandByPoint(St), St.addVectors(kt.max, rr.max), kt.expandByPoint(St)) : (kt.expandByPoint(rr.min), kt.expandByPoint(rr.max));
6031
6031
  }
6032
6032
  kt.getCenter(i);
6033
6033
  let r = 0;
@@ -6073,11 +6073,11 @@ class _n extends gi {
6073
6073
  i[C + 2]
6074
6074
  );
6075
6075
  }
6076
- const b = new D(), R = new D(), T = new D(), O = new D();
6076
+ const b = new D(), R = new D(), w = new D(), O = new D();
6077
6077
  function x(E) {
6078
- T.fromArray(s, E * 3), O.copy(T);
6078
+ w.fromArray(s, E * 3), O.copy(w);
6079
6079
  const F = c[E];
6080
- b.copy(F), b.sub(T.multiplyScalar(T.dot(F))).normalize(), R.crossVectors(O, F);
6080
+ b.copy(F), b.sub(w.multiplyScalar(w.dot(F))).normalize(), R.crossVectors(O, F);
6081
6081
  const N = R.dot(u[E]) < 0 ? -1 : 1;
6082
6082
  l[E * 4] = b.x, l[E * 4 + 1] = b.y, l[E * 4 + 2] = b.z, l[E * 4 + 3] = N;
6083
6083
  }
@@ -6275,8 +6275,8 @@ class pn extends at {
6275
6275
  for (let p = 0, _ = f.length; p < _; p++) {
6276
6276
  const m = f[p], g = a[m.materialIndex], y = Math.max(m.start, d.start), v = Math.min(o.count, Math.min(m.start + m.count, d.start + d.count));
6277
6277
  for (let M = y, b = v; M < b; M += 3) {
6278
- const R = o.getX(M), T = o.getX(M + 1), O = o.getX(M + 2);
6279
- r = is(this, g, e, i, c, u, h, R, T, O), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6278
+ const R = o.getX(M), w = o.getX(M + 1), O = o.getX(M + 2);
6279
+ r = is(this, g, e, i, c, u, h, R, w, O), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6280
6280
  }
6281
6281
  }
6282
6282
  else {
@@ -6291,8 +6291,8 @@ class pn extends at {
6291
6291
  for (let p = 0, _ = f.length; p < _; p++) {
6292
6292
  const m = f[p], g = a[m.materialIndex], y = Math.max(m.start, d.start), v = Math.min(l.count, Math.min(m.start + m.count, d.start + d.count));
6293
6293
  for (let M = y, b = v; M < b; M += 3) {
6294
- const R = M, T = M + 1, O = M + 2;
6295
- r = is(this, g, e, i, c, u, h, R, T, O), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6294
+ const R = M, w = M + 1, O = M + 2;
6295
+ r = is(this, g, e, i, c, u, h, R, w, O), r && (r.faceIndex = Math.floor(M / 3), r.face.materialIndex = m.materialIndex, t.push(r));
6296
6296
  }
6297
6297
  }
6298
6298
  else {
@@ -6347,19 +6347,19 @@ class Ir extends _n {
6347
6347
  const l = [], c = [], u = [], h = [];
6348
6348
  let f = 0, d = 0;
6349
6349
  p("z", "y", "x", -1, -1, i, t, e, a, s, 0), p("z", "y", "x", 1, -1, i, t, -e, a, s, 1), p("x", "z", "y", 1, 1, e, i, t, r, a, 2), p("x", "z", "y", 1, -1, e, i, -t, r, a, 3), p("x", "y", "z", 1, -1, e, t, i, r, s, 4), p("x", "y", "z", -1, -1, e, t, -i, r, s, 5), this.setIndex(l), this.setAttribute("position", new jt(c, 3)), this.setAttribute("normal", new jt(u, 3)), this.setAttribute("uv", new jt(h, 2));
6350
- function p(_, m, g, y, v, M, b, R, T, O, x) {
6351
- const E = M / T, F = b / O, ee = M / 2, N = b / 2, U = R / 2, C = T + 1, z = O + 1;
6350
+ function p(_, m, g, y, v, M, b, R, w, O, x) {
6351
+ const E = M / w, F = b / O, ee = M / 2, N = b / 2, U = R / 2, C = w + 1, z = O + 1;
6352
6352
  let H = 0, V = 0;
6353
6353
  const K = new D();
6354
6354
  for (let Q = 0; Q < z; Q++) {
6355
6355
  const B = Q * F - N;
6356
6356
  for (let q = 0; q < C; q++) {
6357
6357
  const oe = q * E - ee;
6358
- K[_] = oe * y, K[m] = B * v, K[g] = U, c.push(K.x, K.y, K.z), K[_] = 0, K[m] = 0, K[g] = R > 0 ? 1 : -1, u.push(K.x, K.y, K.z), h.push(q / T), h.push(1 - Q / O), H += 1;
6358
+ K[_] = oe * y, K[m] = B * v, K[g] = U, c.push(K.x, K.y, K.z), K[_] = 0, K[m] = 0, K[g] = R > 0 ? 1 : -1, u.push(K.x, K.y, K.z), h.push(q / w), h.push(1 - Q / O), H += 1;
6359
6359
  }
6360
6360
  }
6361
6361
  for (let Q = 0; Q < O; Q++)
6362
- for (let B = 0; B < T; B++) {
6362
+ for (let B = 0; B < w; B++) {
6363
6363
  const q = f + B + C * Q, oe = f + B + C * (Q + 1), me = f + (B + 1) + C * (Q + 1), ge = f + (B + 1) + C * Q;
6364
6364
  l.push(q, oe, ge), l.push(oe, me, ge), V += 6;
6365
6365
  }
@@ -6373,7 +6373,7 @@ class Ir extends _n {
6373
6373
  return new Ir(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);
6374
6374
  }
6375
6375
  }
6376
- function qi(n) {
6376
+ function $i(n) {
6377
6377
  const e = {};
6378
6378
  for (const t in n) {
6379
6379
  e[t] = {};
@@ -6387,7 +6387,7 @@ function qi(n) {
6387
6387
  function Pt(n) {
6388
6388
  const e = {};
6389
6389
  for (let t = 0; t < n.length; t++) {
6390
- const i = qi(n[t]);
6390
+ const i = $i(n[t]);
6391
6391
  for (const r in i)
6392
6392
  e[r] = i[r];
6393
6393
  }
@@ -6402,13 +6402,13 @@ function ag(n) {
6402
6402
  function Mh(n) {
6403
6403
  return n.getRenderTarget() === null ? n.outputColorSpace : gn;
6404
6404
  }
6405
- const Ua = { clone: qi, merge: Pt };
6405
+ const Ua = { clone: $i, merge: Pt };
6406
6406
  var lg = `void main() {
6407
6407
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
6408
6408
  }`, cg = `void main() {
6409
6409
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
6410
6410
  }`;
6411
- class Yn extends Ji {
6411
+ class Yn extends Zi {
6412
6412
  constructor(e) {
6413
6413
  super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = lg, this.fragmentShader = cg, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
6414
6414
  derivatives: !1,
@@ -6426,7 +6426,7 @@ class Yn extends Ji {
6426
6426
  }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, e !== void 0 && this.setValues(e);
6427
6427
  }
6428
6428
  copy(e) {
6429
- return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = qi(e.uniforms), this.uniformsGroups = ag(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this;
6429
+ return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = $i(e.uniforms), this.uniformsGroups = ag(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this;
6430
6430
  }
6431
6431
  toJSON(e) {
6432
6432
  const t = super.toJSON(e);
@@ -6510,12 +6510,12 @@ class Vt extends Eh {
6510
6510
  * Calculates the focal length from the current .fov and .filmGauge.
6511
6511
  */
6512
6512
  getFocalLength() {
6513
- const e = Math.tan(dr * 0.5 * this.fov);
6513
+ const e = Math.tan(fr * 0.5 * this.fov);
6514
6514
  return 0.5 * this.getFilmHeight() / e;
6515
6515
  }
6516
6516
  getEffectiveFOV() {
6517
6517
  return Mr * 2 * Math.atan(
6518
- Math.tan(dr * 0.5 * this.fov) / this.zoom
6518
+ Math.tan(fr * 0.5 * this.fov) / this.zoom
6519
6519
  );
6520
6520
  }
6521
6521
  getFilmWidth() {
@@ -6575,7 +6575,7 @@ class Vt extends Eh {
6575
6575
  }
6576
6576
  updateProjectionMatrix() {
6577
6577
  const e = this.near;
6578
- let t = e * Math.tan(dr * 0.5 * this.fov) / this.zoom, i = 2 * t, r = this.aspect * i, s = -0.5 * r;
6578
+ let t = e * Math.tan(fr * 0.5 * this.fov) / this.zoom, i = 2 * t, r = this.aspect * i, s = -0.5 * r;
6579
6579
  const a = this.view;
6580
6580
  if (this.view !== null && this.view.enabled) {
6581
6581
  const l = a.fullWidth, c = a.fullHeight;
@@ -6631,7 +6631,7 @@ class ug extends at {
6631
6631
  }
6632
6632
  class bh extends It {
6633
6633
  constructor(e, t, i, r, s, a, o, l, c, u) {
6634
- e = e !== void 0 ? e : [], t = t !== void 0 ? t : Wi, super(e, t, i, r, s, a, o, l, c, u), this.isCubeTexture = !0, this.flipY = !1;
6634
+ e = e !== void 0 ? e : [], t = t !== void 0 ? t : Vi, super(e, t, i, r, s, a, o, l, c, u), this.isCubeTexture = !0, this.flipY = !1;
6635
6635
  }
6636
6636
  get images() {
6637
6637
  return this.image;
@@ -6644,7 +6644,7 @@ class hg extends di {
6644
6644
  constructor(e = 1, t = {}) {
6645
6645
  super(e, e, t), this.isWebGLCubeRenderTarget = !0;
6646
6646
  const i = { width: e, height: e, depth: 1 }, r = [i, i, i, i, i, i];
6647
- t.encoding !== void 0 && (mr("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."), t.colorSpace = t.encoding === li ? nt : ci), this.texture = new bh(r, t.mapping, t.wrapS, t.wrapT, t.magFilter, t.minFilter, t.format, t.type, t.anisotropy, t.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.generateMipmaps = t.generateMipmaps !== void 0 ? t.generateMipmaps : !1, this.texture.minFilter = t.minFilter !== void 0 ? t.minFilter : $t;
6647
+ t.encoding !== void 0 && (pr("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."), t.colorSpace = t.encoding === li ? nt : ci), this.texture = new bh(r, t.mapping, t.wrapS, t.wrapT, t.magFilter, t.minFilter, t.format, t.type, t.anisotropy, t.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.generateMipmaps = t.generateMipmaps !== void 0 ? t.generateMipmaps : !1, this.texture.minFilter = t.minFilter !== void 0 ? t.minFilter : $t;
6648
6648
  }
6649
6649
  fromEquirectangularTexture(e, t) {
6650
6650
  this.texture.type = t.type, this.texture.colorSpace = t.colorSpace, this.texture.generateMipmaps = t.generateMipmaps, this.texture.minFilter = t.minFilter, this.texture.magFilter = t.magFilter;
@@ -6697,7 +6697,7 @@ class hg extends di {
6697
6697
  )
6698
6698
  }, r = new Ir(5, 5, 5), s = new Yn({
6699
6699
  name: "CubemapFromEquirect",
6700
- uniforms: qi(i.uniforms),
6700
+ uniforms: $i(i.uniforms),
6701
6701
  vertexShader: i.vertexShader,
6702
6702
  fragmentShader: i.fragmentShader,
6703
6703
  side: Ot,
@@ -6849,7 +6849,7 @@ class Na {
6849
6849
  return new this.constructor().copy(this);
6850
6850
  }
6851
6851
  }
6852
- function wh() {
6852
+ function Th() {
6853
6853
  let n = null, e = !1, t = null, i = null;
6854
6854
  function r(s, a) {
6855
6855
  t(s, a), i = n.requestAnimationFrame(r);
@@ -7040,7 +7040,7 @@ var mg = `#ifdef USE_ALPHAHASH
7040
7040
  #endif`, bg = `vec3 objectNormal = vec3( normal );
7041
7041
  #ifdef USE_TANGENT
7042
7042
  vec3 objectTangent = vec3( tangent.xyz );
7043
- #endif`, wg = `float G_BlinnPhong_Implicit( ) {
7043
+ #endif`, Tg = `float G_BlinnPhong_Implicit( ) {
7044
7044
  return 0.25;
7045
7045
  }
7046
7046
  float D_BlinnPhong( const in float shininess, const in float dotNH ) {
@@ -7054,7 +7054,7 @@ vec3 BRDF_BlinnPhong( const in vec3 lightDir, const in vec3 viewDir, const in ve
7054
7054
  float G = G_BlinnPhong_Implicit( );
7055
7055
  float D = D_BlinnPhong( shininess, dotNH );
7056
7056
  return F * ( G * D );
7057
- } // validated`, Tg = `#ifdef USE_IRIDESCENCE
7057
+ } // validated`, wg = `#ifdef USE_IRIDESCENCE
7058
7058
  const mat3 XYZ_TO_REC709 = mat3(
7059
7059
  3.2404542, -0.9692660, 0.0556434,
7060
7060
  -1.5371385, 1.8760108, -0.2040259,
@@ -8294,9 +8294,9 @@ IncidentLight directLight;
8294
8294
  #ifdef USE_METALNESSMAP
8295
8295
  vec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );
8296
8296
  metalnessFactor *= texelMetalness.b;
8297
- #endif`, w_ = `#ifdef USE_METALNESSMAP
8297
+ #endif`, T_ = `#ifdef USE_METALNESSMAP
8298
8298
  uniform sampler2D metalnessMap;
8299
- #endif`, T_ = `#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
8299
+ #endif`, w_ = `#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )
8300
8300
  vColor *= morphTargetBaseInfluence;
8301
8301
  for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {
8302
8302
  #if defined( USE_COLOR_ALPHA )
@@ -9478,7 +9478,7 @@ void main() {
9478
9478
  #include <logdepthbuf_vertex>
9479
9479
  #include <clipping_planes_vertex>
9480
9480
  #include <fog_vertex>
9481
- }`, wv = `uniform vec3 diffuse;
9481
+ }`, Tv = `uniform vec3 diffuse;
9482
9482
  uniform float opacity;
9483
9483
  uniform float dashSize;
9484
9484
  uniform float totalSize;
@@ -9506,7 +9506,7 @@ void main() {
9506
9506
  #include <colorspace_fragment>
9507
9507
  #include <fog_fragment>
9508
9508
  #include <premultiplied_alpha_fragment>
9509
- }`, Tv = `#include <common>
9509
+ }`, wv = `#include <common>
9510
9510
  #include <uv_pars_vertex>
9511
9511
  #include <envmap_pars_vertex>
9512
9512
  #include <color_pars_vertex>
@@ -10301,8 +10301,8 @@ void main() {
10301
10301
  aomap_pars_fragment: Mg,
10302
10302
  begin_vertex: Eg,
10303
10303
  beginnormal_vertex: bg,
10304
- bsdfs: wg,
10305
- iridescence_fragment: Tg,
10304
+ bsdfs: Tg,
10305
+ iridescence_fragment: wg,
10306
10306
  bumpmap_pars_fragment: Ag,
10307
10307
  clipping_planes_fragment: Cg,
10308
10308
  clipping_planes_pars_fragment: Rg,
@@ -10355,8 +10355,8 @@ void main() {
10355
10355
  map_particle_fragment: M_,
10356
10356
  map_particle_pars_fragment: E_,
10357
10357
  metalnessmap_fragment: b_,
10358
- metalnessmap_pars_fragment: w_,
10359
- morphcolor_vertex: T_,
10358
+ metalnessmap_pars_fragment: T_,
10359
+ morphcolor_vertex: w_,
10360
10360
  morphnormal_vertex: A_,
10361
10361
  morphtarget_pars_vertex: C_,
10362
10362
  morphtarget_vertex: R_,
@@ -10409,8 +10409,8 @@ void main() {
10409
10409
  equirect_vert: Mv,
10410
10410
  equirect_frag: Ev,
10411
10411
  linedashed_vert: bv,
10412
- linedashed_frag: wv,
10413
- meshbasic_vert: Tv,
10412
+ linedashed_frag: Tv,
10413
+ meshbasic_vert: wv,
10414
10414
  meshbasic_frag: Av,
10415
10415
  meshlambert_vert: Cv,
10416
10416
  meshlambert_frag: Rv,
@@ -10875,7 +10875,7 @@ function $v(n, e, t, i, r, s, a) {
10875
10875
  new Ir(1, 1, 1),
10876
10876
  new Yn({
10877
10877
  name: "BackgroundCubeMaterial",
10878
- uniforms: qi(Ut.backgroundCube.uniforms),
10878
+ uniforms: $i(Ut.backgroundCube.uniforms),
10879
10879
  vertexShader: Ut.backgroundCube.vertexShader,
10880
10880
  fragmentShader: Ut.backgroundCube.fragmentShader,
10881
10881
  side: Ot,
@@ -10883,8 +10883,8 @@ function $v(n, e, t, i, r, s, a) {
10883
10883
  depthWrite: !1,
10884
10884
  fog: !1
10885
10885
  })
10886
- ), u.geometry.deleteAttribute("normal"), u.geometry.deleteAttribute("uv"), u.onBeforeRender = function(b, R, T) {
10887
- this.matrixWorld.copyPosition(T.matrixWorld);
10886
+ ), u.geometry.deleteAttribute("normal"), u.geometry.deleteAttribute("uv"), u.onBeforeRender = function(b, R, w) {
10887
+ this.matrixWorld.copyPosition(w.matrixWorld);
10888
10888
  }, Object.defineProperty(u.material, "envMap", {
10889
10889
  get: function() {
10890
10890
  return this.uniforms.envMap.value;
@@ -10893,7 +10893,7 @@ function $v(n, e, t, i, r, s, a) {
10893
10893
  new Oa(2, 2),
10894
10894
  new Yn({
10895
10895
  name: "BackgroundMaterial",
10896
- uniforms: qi(Ut.background.uniforms),
10896
+ uniforms: $i(Ut.background.uniforms),
10897
10897
  vertexShader: Ut.background.vertexShader,
10898
10898
  fragmentShader: Ut.background.fragmentShader,
10899
10899
  side: jn,
@@ -11019,7 +11019,7 @@ function qv(n, e, t, i) {
11019
11019
  for (let z = 0, H = C.length; z < H; z++)
11020
11020
  C[z] !== U[z] && (n.disableVertexAttribArray(z), C[z] = 0);
11021
11021
  }
11022
- function T(U, C, z, H, V, K, Q) {
11022
+ function w(U, C, z, H, V, K, Q) {
11023
11023
  Q === !0 ? n.vertexAttribIPointer(U, C, z, V, K) : n.vertexAttribPointer(U, C, z, H, V, K);
11024
11024
  }
11025
11025
  function O(U, C, z, H) {
@@ -11035,7 +11035,7 @@ function qv(n, e, t, i) {
11035
11035
  const me = oe.normalized, ge = oe.itemSize, Ae = t.get(oe);
11036
11036
  if (Ae === void 0)
11037
11037
  continue;
11038
- const Te = Ae.buffer, we = Ae.type, Ve = Ae.bytesPerElement, Ze = i.isWebGL2 === !0 && (we === n.INT || we === n.UNSIGNED_INT || oe.gpuType === oh);
11038
+ const we = Ae.buffer, Te = Ae.type, Ve = Ae.bytesPerElement, Ze = i.isWebGL2 === !0 && (Te === n.INT || Te === n.UNSIGNED_INT || oe.gpuType === oh);
11039
11039
  if (oe.isInterleavedBufferAttribute) {
11040
11040
  const Ce = oe.data, L = Ce.stride, he = oe.offset;
11041
11041
  if (Ce.isInstancedInterleavedBuffer) {
@@ -11045,12 +11045,12 @@ function qv(n, e, t, i) {
11045
11045
  } else
11046
11046
  for (let J = 0; J < q.locationSize; J++)
11047
11047
  M(q.location + J);
11048
- n.bindBuffer(n.ARRAY_BUFFER, Te);
11048
+ n.bindBuffer(n.ARRAY_BUFFER, we);
11049
11049
  for (let J = 0; J < q.locationSize; J++)
11050
- T(
11050
+ w(
11051
11051
  q.location + J,
11052
11052
  ge / q.locationSize,
11053
- we,
11053
+ Te,
11054
11054
  me,
11055
11055
  L * Ve,
11056
11056
  (he + ge / q.locationSize * J) * Ve,
@@ -11064,12 +11064,12 @@ function qv(n, e, t, i) {
11064
11064
  } else
11065
11065
  for (let Ce = 0; Ce < q.locationSize; Ce++)
11066
11066
  M(q.location + Ce);
11067
- n.bindBuffer(n.ARRAY_BUFFER, Te);
11067
+ n.bindBuffer(n.ARRAY_BUFFER, we);
11068
11068
  for (let Ce = 0; Ce < q.locationSize; Ce++)
11069
- T(
11069
+ w(
11070
11070
  q.location + Ce,
11071
11071
  ge / q.locationSize,
11072
- we,
11072
+ Te,
11073
11073
  me,
11074
11074
  ge * Ve,
11075
11075
  ge / q.locationSize * Ce * Ve,
@@ -11180,19 +11180,19 @@ function Yv(n, e, t) {
11180
11180
  if (i !== void 0)
11181
11181
  return i;
11182
11182
  if (e.has("EXT_texture_filter_anisotropic") === !0) {
11183
- const T = e.get("EXT_texture_filter_anisotropic");
11184
- i = n.getParameter(T.MAX_TEXTURE_MAX_ANISOTROPY_EXT);
11183
+ const w = e.get("EXT_texture_filter_anisotropic");
11184
+ i = n.getParameter(w.MAX_TEXTURE_MAX_ANISOTROPY_EXT);
11185
11185
  } else
11186
11186
  i = 0;
11187
11187
  return i;
11188
11188
  }
11189
- function s(T) {
11190
- if (T === "highp") {
11189
+ function s(w) {
11190
+ if (w === "highp") {
11191
11191
  if (n.getShaderPrecisionFormat(n.VERTEX_SHADER, n.HIGH_FLOAT).precision > 0 && n.getShaderPrecisionFormat(n.FRAGMENT_SHADER, n.HIGH_FLOAT).precision > 0)
11192
11192
  return "highp";
11193
- T = "mediump";
11193
+ w = "mediump";
11194
11194
  }
11195
- return T === "mediump" && n.getShaderPrecisionFormat(n.VERTEX_SHADER, n.MEDIUM_FLOAT).precision > 0 && n.getShaderPrecisionFormat(n.FRAGMENT_SHADER, n.MEDIUM_FLOAT).precision > 0 ? "mediump" : "lowp";
11195
+ return w === "mediump" && n.getShaderPrecisionFormat(n.VERTEX_SHADER, n.MEDIUM_FLOAT).precision > 0 && n.getShaderPrecisionFormat(n.FRAGMENT_SHADER, n.MEDIUM_FLOAT).precision > 0 ? "mediump" : "lowp";
11196
11196
  }
11197
11197
  const a = typeof WebGL2RenderingContext != "undefined" && n.constructor.name === "WebGL2RenderingContext";
11198
11198
  let o = t.precision !== void 0 ? t.precision : "highp";
@@ -11269,7 +11269,7 @@ function Kv(n) {
11269
11269
  function Zv(n) {
11270
11270
  let e = /* @__PURE__ */ new WeakMap();
11271
11271
  function t(a, o) {
11272
- return o === ta ? a.mapping = Wi : o === na && (a.mapping = Xi), a;
11272
+ return o === ta ? a.mapping = Vi : o === na && (a.mapping = Wi), a;
11273
11273
  }
11274
11274
  function i(a) {
11275
11275
  if (a && a.isTexture && a.isRenderTargetTexture === !1) {
@@ -11338,7 +11338,7 @@ class Jv extends Eh {
11338
11338
  return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
11339
11339
  }
11340
11340
  }
11341
- const Oi = 4, wc = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ri = 20, Lo = /* @__PURE__ */ new Jv(), Tc = /* @__PURE__ */ new je();
11341
+ const Oi = 4, Tc = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ri = 20, Lo = /* @__PURE__ */ new Jv(), wc = /* @__PURE__ */ new je();
11342
11342
  let Po = null;
11343
11343
  const ii = (1 + Math.sqrt(5)) / 2, Ii = 1 / ii, Ac = [
11344
11344
  /* @__PURE__ */ new D(1, 1, 1),
@@ -11419,7 +11419,7 @@ class Cc {
11419
11419
  this._renderer.setRenderTarget(Po), e.scissorTest = !1, os(e, 0, 0, e.width, e.height);
11420
11420
  }
11421
11421
  _fromTexture(e, t) {
11422
- e.mapping === Wi || e.mapping === Xi ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Po = this._renderer.getRenderTarget();
11422
+ e.mapping === Vi || e.mapping === Wi ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Po = this._renderer.getRenderTarget();
11423
11423
  const i = t || this._allocateTargets();
11424
11424
  return this._textureToCubeUV(e, i), this._applyPMREM(i), this._cleanup(i), i;
11425
11425
  }
@@ -11446,7 +11446,7 @@ class Cc {
11446
11446
  }
11447
11447
  _sceneToCubeUV(e, t, i, r) {
11448
11448
  const o = new Vt(90, 1, t, i), l = [1, -1, 1, 1, 1, 1], c = [1, 1, 1, -1, -1, -1], u = this._renderer, h = u.autoClear, f = u.toneMapping;
11449
- u.getClearColor(Tc), u.toneMapping = Xn, u.autoClear = !1;
11449
+ u.getClearColor(wc), u.toneMapping = Xn, u.autoClear = !1;
11450
11450
  const d = new Ia({
11451
11451
  name: "PMREM.Background",
11452
11452
  side: Ot,
@@ -11455,7 +11455,7 @@ class Cc {
11455
11455
  }), p = new pn(new Ir(), d);
11456
11456
  let _ = !1;
11457
11457
  const m = e.background;
11458
- m ? m.isColor && (d.color.copy(m), e.background = null, _ = !0) : (d.color.copy(Tc), _ = !0);
11458
+ m ? m.isColor && (d.color.copy(m), e.background = null, _ = !0) : (d.color.copy(wc), _ = !0);
11459
11459
  for (let g = 0; g < 6; g++) {
11460
11460
  const y = g % 3;
11461
11461
  y === 0 ? (o.up.set(0, l[g], 0), o.lookAt(c[g], 0, 0)) : y === 1 ? (o.up.set(0, 0, l[g]), o.lookAt(0, c[g], 0)) : (o.up.set(0, l[g], 0), o.lookAt(0, 0, c[g]));
@@ -11465,7 +11465,7 @@ class Cc {
11465
11465
  p.geometry.dispose(), p.material.dispose(), u.toneMapping = f, u.autoClear = h, e.background = m;
11466
11466
  }
11467
11467
  _textureToCubeUV(e, t) {
11468
- const i = this._renderer, r = e.mapping === Wi || e.mapping === Xi;
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
11470
  const s = r ? this._cubemapMaterial : this._equirectMaterial, a = new pn(this._lodPlanes[0], s), o = s.uniforms;
11471
11471
  o.envMap.value = e;
@@ -11517,12 +11517,12 @@ class Cc {
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;
11520
- for (let T = 0; T < ri; ++T) {
11521
- const O = T / _, x = Math.exp(-O * O / 2);
11522
- g.push(x), T === 0 ? y += x : T < m && (y += 2 * x);
11520
+ for (let w = 0; w < ri; ++w) {
11521
+ const O = w / _, x = Math.exp(-O * O / 2);
11522
+ g.push(x), w === 0 ? y += x : w < m && (y += 2 * x);
11523
11523
  }
11524
- for (let T = 0; T < g.length; T++)
11525
- g[T] = g[T] / y;
11524
+ for (let w = 0; w < g.length; w++)
11525
+ g[w] = g[w] / y;
11526
11526
  f.envMap.value = e.texture, f.samples.value = m, f.weights.value = g, f.latitudinal.value = a === "latitudinal", o && (f.poleAxis.value = o);
11527
11527
  const { _lodMax: v } = this;
11528
11528
  f.dTheta.value = p, f.mipInt.value = v - i;
@@ -11533,31 +11533,31 @@ class Cc {
11533
11533
  function Qv(n) {
11534
11534
  const e = [], t = [], i = [];
11535
11535
  let r = n;
11536
- const s = n - Oi + 1 + wc.length;
11536
+ const s = n - Oi + 1 + Tc.length;
11537
11537
  for (let a = 0; a < s; a++) {
11538
11538
  const o = Math.pow(2, r);
11539
11539
  t.push(o);
11540
11540
  let l = 1 / o;
11541
- a > n - Oi ? l = wc[a - n + Oi - 1] : a === 0 && (l = 0), i.push(l);
11541
+ a > n - Oi ? l = Tc[a - n + Oi - 1] : a === 0 && (l = 0), i.push(l);
11542
11542
  const c = 1 / (o - 2), u = -c, h = 1 + c, f = [u, u, h, u, h, h, u, u, h, h, u, h], d = 6, p = 6, _ = 3, m = 2, g = 1, y = new Float32Array(_ * p * d), v = new Float32Array(m * p * d), M = new Float32Array(g * p * d);
11543
11543
  for (let R = 0; R < d; R++) {
11544
- const T = R % 3 * 2 / 3 - 1, O = R > 2 ? 0 : -1, x = [
11545
- T,
11544
+ const w = R % 3 * 2 / 3 - 1, O = R > 2 ? 0 : -1, x = [
11545
+ w,
11546
11546
  O,
11547
11547
  0,
11548
- T + 2 / 3,
11548
+ w + 2 / 3,
11549
11549
  O,
11550
11550
  0,
11551
- T + 2 / 3,
11551
+ w + 2 / 3,
11552
11552
  O + 1,
11553
11553
  0,
11554
- T,
11554
+ w,
11555
11555
  O,
11556
11556
  0,
11557
- T + 2 / 3,
11557
+ w + 2 / 3,
11558
11558
  O + 1,
11559
11559
  0,
11560
- T,
11560
+ w,
11561
11561
  O + 1,
11562
11562
  0
11563
11563
  ];
@@ -11799,7 +11799,7 @@ function t0(n) {
11799
11799
  let e = /* @__PURE__ */ new WeakMap(), t = null;
11800
11800
  function i(o) {
11801
11801
  if (o && o.isTexture) {
11802
- const l = o.mapping, c = l === ta || l === na, u = l === Wi || l === Xi;
11802
+ const l = o.mapping, c = l === ta || l === na, u = l === Vi || l === Wi;
11803
11803
  if (c || u)
11804
11804
  if (o.isRenderTargetTexture && o.needsPMREMUpdate === !0) {
11805
11805
  o.needsPMREMUpdate = !1;
@@ -11916,15 +11916,15 @@ function i0(n, e, t, i) {
11916
11916
  const y = d.array;
11917
11917
  _ = d.version;
11918
11918
  for (let v = 0, M = y.length; v < M; v += 3) {
11919
- const b = y[v + 0], R = y[v + 1], T = y[v + 2];
11920
- f.push(b, R, R, T, T, b);
11919
+ const b = y[v + 0], R = y[v + 1], w = y[v + 2];
11920
+ f.push(b, R, R, w, w, b);
11921
11921
  }
11922
11922
  } else if (p !== void 0) {
11923
11923
  const y = p.array;
11924
11924
  _ = p.version;
11925
11925
  for (let v = 0, M = y.length / 3 - 1; v < M; v += 3) {
11926
- const b = v + 0, R = v + 1, T = v + 2;
11927
- f.push(b, R, R, T, T, b);
11926
+ const b = v + 0, R = v + 1, w = v + 2;
11927
+ f.push(b, R, R, w, w, b);
11928
11928
  }
11929
11929
  } else
11930
11930
  return;
@@ -12040,7 +12040,7 @@ function l0(n, e, t) {
12040
12040
  ee.dispose(), s.delete(u), u.removeEventListener("dispose", U);
12041
12041
  };
12042
12042
  _ !== void 0 && _.texture.dispose();
12043
- const y = u.morphAttributes.position !== void 0, v = u.morphAttributes.normal !== void 0, M = u.morphAttributes.color !== void 0, b = u.morphAttributes.position || [], R = u.morphAttributes.normal || [], T = u.morphAttributes.color || [];
12043
+ const y = u.morphAttributes.position !== void 0, v = u.morphAttributes.normal !== void 0, M = u.morphAttributes.color !== void 0, b = u.morphAttributes.position || [], R = u.morphAttributes.normal || [], w = u.morphAttributes.color || [];
12044
12044
  let O = 0;
12045
12045
  y === !0 && (O = 1), v === !0 && (O = 2), M === !0 && (O = 3);
12046
12046
  let x = u.attributes.position.count * O, E = 1;
@@ -12049,7 +12049,7 @@ function l0(n, e, t) {
12049
12049
  ee.type = Gn, ee.needsUpdate = !0;
12050
12050
  const N = O * 4;
12051
12051
  for (let C = 0; C < p; C++) {
12052
- const z = b[C], H = R[C], V = T[C], K = x * E * 4 * C;
12052
+ const z = b[C], H = R[C], V = w[C], K = x * E * 4 * C;
12053
12053
  for (let Q = 0; Q < z.count; Q++) {
12054
12054
  const B = Q * N;
12055
12055
  y === !0 && (a.fromBufferAttribute(z, Q), F[K + B + 0] = a.x, F[K + B + 1] = a.y, F[K + B + 2] = a.z, F[K + B + 3] = 0), v === !0 && (a.fromBufferAttribute(H, Q), F[K + B + 4] = a.x, F[K + B + 5] = a.y, F[K + B + 6] = a.z, F[K + B + 7] = 0), M === !0 && (a.fromBufferAttribute(V, Q), F[K + B + 8] = a.x, F[K + B + 9] = a.y, F[K + B + 10] = a.z, F[K + B + 11] = V.itemSize === 4 ? a.w : 1);
@@ -12119,8 +12119,8 @@ function c0(n, e, t, i) {
12119
12119
  dispose: a
12120
12120
  };
12121
12121
  }
12122
- const Th = /* @__PURE__ */ new It(), Ah = /* @__PURE__ */ new vh(), Ch = /* @__PURE__ */ new Ym(), Rh = /* @__PURE__ */ new bh(), Dc = [], Ic = [], Uc = new Float32Array(16), Nc = new Float32Array(9), Oc = new Float32Array(4);
12123
- function Qi(n, e, t) {
12122
+ const wh = /* @__PURE__ */ new It(), Ah = /* @__PURE__ */ new vh(), Ch = /* @__PURE__ */ new Ym(), Rh = /* @__PURE__ */ new bh(), Dc = [], Ic = [], Uc = new Float32Array(16), Nc = new Float32Array(9), Oc = new Float32Array(4);
12123
+ function Ji(n, e, t) {
12124
12124
  const i = n[0];
12125
12125
  if (i <= 0 || i > 0)
12126
12126
  return n;
@@ -12292,11 +12292,11 @@ function b0(n, e) {
12292
12292
  n.uniform4uiv(this.addr, e), yt(t, e);
12293
12293
  }
12294
12294
  }
12295
- function w0(n, e, t) {
12295
+ function T0(n, e, t) {
12296
12296
  const i = this.cache, r = t.allocateTextureUnit();
12297
- i[0] !== r && (n.uniform1i(this.addr, r), i[0] = r), t.setTexture2D(e || Th, r);
12297
+ i[0] !== r && (n.uniform1i(this.addr, r), i[0] = r), t.setTexture2D(e || wh, r);
12298
12298
  }
12299
- function T0(n, e, t) {
12299
+ function w0(n, e, t) {
12300
12300
  const i = this.cache, r = t.allocateTextureUnit();
12301
12301
  i[0] !== r && (n.uniform1i(this.addr, r), i[0] = r), t.setTexture3D(e || Ch, r);
12302
12302
  }
@@ -12349,11 +12349,11 @@ function R0(n) {
12349
12349
  case 36298:
12350
12350
  case 36306:
12351
12351
  case 35682:
12352
- return w0;
12352
+ return T0;
12353
12353
  case 35679:
12354
12354
  case 36299:
12355
12355
  case 36307:
12356
- return T0;
12356
+ return w0;
12357
12357
  case 35680:
12358
12358
  case 36300:
12359
12359
  case 36308:
@@ -12370,27 +12370,27 @@ function L0(n, e) {
12370
12370
  n.uniform1fv(this.addr, e);
12371
12371
  }
12372
12372
  function P0(n, e) {
12373
- const t = Qi(e, this.size, 2);
12373
+ const t = Ji(e, this.size, 2);
12374
12374
  n.uniform2fv(this.addr, t);
12375
12375
  }
12376
12376
  function D0(n, e) {
12377
- const t = Qi(e, this.size, 3);
12377
+ const t = Ji(e, this.size, 3);
12378
12378
  n.uniform3fv(this.addr, t);
12379
12379
  }
12380
12380
  function I0(n, e) {
12381
- const t = Qi(e, this.size, 4);
12381
+ const t = Ji(e, this.size, 4);
12382
12382
  n.uniform4fv(this.addr, t);
12383
12383
  }
12384
12384
  function U0(n, e) {
12385
- const t = Qi(e, this.size, 4);
12385
+ const t = Ji(e, this.size, 4);
12386
12386
  n.uniformMatrix2fv(this.addr, !1, t);
12387
12387
  }
12388
12388
  function N0(n, e) {
12389
- const t = Qi(e, this.size, 9);
12389
+ const t = Ji(e, this.size, 9);
12390
12390
  n.uniformMatrix3fv(this.addr, !1, t);
12391
12391
  }
12392
12392
  function O0(n, e) {
12393
- const t = Qi(e, this.size, 16);
12393
+ const t = Ji(e, this.size, 16);
12394
12394
  n.uniformMatrix4fv(this.addr, !1, t);
12395
12395
  }
12396
12396
  function F0(n, e) {
@@ -12421,7 +12421,7 @@ function X0(n, e, t) {
12421
12421
  const i = this.cache, r = e.length, s = Xs(t, r);
12422
12422
  xt(i, s) || (n.uniform1iv(this.addr, s), yt(i, s));
12423
12423
  for (let a = 0; a !== r; ++a)
12424
- t.setTexture2D(e[a] || Th, s[a]);
12424
+ t.setTexture2D(e[a] || wh, s[a]);
12425
12425
  }
12426
12426
  function $0(n, e, t) {
12427
12427
  const i = this.cache, r = e.length, s = Xs(t, r);
@@ -12645,7 +12645,7 @@ function sx(n) {
12645
12645
  (n.extensionFragDepth || n.logarithmicDepthBuffer) && n.rendererExtensionFragDepth ? "#extension GL_EXT_frag_depth : enable" : "",
12646
12646
  n.extensionDrawBuffers && n.rendererExtensionDrawBuffers ? "#extension GL_EXT_draw_buffers : require" : "",
12647
12647
  (n.extensionShaderTextureLOD || n.envMap || n.transmission) && n.rendererExtensionShaderTextureLod ? "#extension GL_EXT_shader_texture_lod : enable" : ""
12648
- ].filter(cr).join(`
12648
+ ].filter(lr).join(`
12649
12649
  `);
12650
12650
  }
12651
12651
  function ox(n) {
@@ -12670,7 +12670,7 @@ function ax(n, e) {
12670
12670
  }
12671
12671
  return t;
12672
12672
  }
12673
- function cr(n) {
12673
+ function lr(n) {
12674
12674
  return n !== "";
12675
12675
  }
12676
12676
  function Hc(n, e) {
@@ -12729,8 +12729,8 @@ function px(n) {
12729
12729
  let e = "ENVMAP_TYPE_CUBE";
12730
12730
  if (n.envMap)
12731
12731
  switch (n.envMapMode) {
12732
+ case Vi:
12732
12733
  case Wi:
12733
- case Xi:
12734
12734
  e = "ENVMAP_TYPE_CUBE";
12735
12735
  break;
12736
12736
  case Gs:
@@ -12743,7 +12743,7 @@ function mx(n) {
12743
12743
  let e = "ENVMAP_MODE_REFLECTION";
12744
12744
  if (n.envMap)
12745
12745
  switch (n.envMapMode) {
12746
- case Xi:
12746
+ case Wi:
12747
12747
  e = "ENVMAP_MODE_REFRACTION";
12748
12748
  break;
12749
12749
  }
@@ -12782,14 +12782,14 @@ function vx(n, e, t, i) {
12782
12782
  "#define SHADER_TYPE " + t.shaderType,
12783
12783
  "#define SHADER_NAME " + t.shaderName,
12784
12784
  p
12785
- ].filter(cr).join(`
12785
+ ].filter(lr).join(`
12786
12786
  `), m.length > 0 && (m += `
12787
12787
  `), g = [
12788
12788
  d,
12789
12789
  "#define SHADER_TYPE " + t.shaderType,
12790
12790
  "#define SHADER_NAME " + t.shaderName,
12791
12791
  p
12792
- ].filter(cr).join(`
12792
+ ].filter(lr).join(`
12793
12793
  `), g.length > 0 && (g += `
12794
12794
  `)) : (m = [
12795
12795
  Vc(t),
@@ -12933,7 +12933,7 @@ function vx(n, e, t, i) {
12933
12933
  "#endif",
12934
12934
  `
12935
12935
  `
12936
- ].filter(cr).join(`
12936
+ ].filter(lr).join(`
12937
12937
  `), g = [
12938
12938
  d,
12939
12939
  Vc(t),
@@ -13014,7 +13014,7 @@ function vx(n, e, t, i) {
13014
13014
  t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "",
13015
13015
  `
13016
13016
  `
13017
- ].filter(cr).join(`
13017
+ ].filter(lr).join(`
13018
13018
  `)), a = la(a), a = Hc(a, t), a = kc(a, t), o = la(o), o = Hc(o, t), o = kc(o, t), a = Gc(a), o = Gc(o), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (y = `#version 300 es
13019
13019
  `, m = [
13020
13020
  "precision mediump sampler2DArray;",
@@ -13073,9 +13073,9 @@ Program Info Log: ` + x + `
13073
13073
  });
13074
13074
  }
13075
13075
  r.deleteShader(b), r.deleteShader(R);
13076
- let T;
13076
+ let w;
13077
13077
  this.getUniforms = function() {
13078
- return T === void 0 && (T = new Ss(r, _)), T;
13078
+ return w === void 0 && (w = new Ss(r, _)), w;
13079
13079
  };
13080
13080
  let O;
13081
13081
  return this.getAttributes = function() {
@@ -13159,9 +13159,9 @@ function Mx(n, e, t, i, r, s, a) {
13159
13159
  oe = et.vertexShader, me = et.fragmentShader;
13160
13160
  } else
13161
13161
  oe = x.vertexShader, me = x.fragmentShader, l.update(x), ge = l.getVertexShaderID(x), Ae = l.getFragmentShaderID(x);
13162
- const Te = n.getRenderTarget(), we = N.isInstancedMesh === !0, Ve = !!x.map, Ze = !!x.matcap, Ce = !!H, L = !!x.aoMap, he = !!x.lightMap, J = !!x.bumpMap, ae = !!x.normalMap, ne = !!x.displacementMap, be = !!x.emissiveMap, ye = !!x.metalnessMap, Se = !!x.roughnessMap, Le = x.anisotropy > 0, ze = x.clearcoat > 0, tt = x.iridescence > 0, A = x.sheen > 0, S = x.transmission > 0, W = Le && !!x.anisotropyMap, se = ze && !!x.clearcoatMap, ie = ze && !!x.clearcoatNormalMap, le = ze && !!x.clearcoatRoughnessMap, Ee = tt && !!x.iridescenceMap, ce = tt && !!x.iridescenceThicknessMap, X = A && !!x.sheenColorMap, P = A && !!x.sheenRoughnessMap, te = !!x.specularMap, xe = !!x.specularColorMap, pe = !!x.specularIntensityMap, ve = S && !!x.transmissionMap, Ne = S && !!x.thicknessMap, We = !!x.gradientMap, I = !!x.alphaMap, _e = x.alphaTest > 0, $ = !!x.alphaHash, re = !!x.extensions, fe = !!C.attributes.uv1, He = !!C.attributes.uv2, qe = !!C.attributes.uv3;
13162
+ const we = n.getRenderTarget(), Te = N.isInstancedMesh === !0, Ve = !!x.map, Ze = !!x.matcap, Ce = !!H, L = !!x.aoMap, he = !!x.lightMap, J = !!x.bumpMap, ae = !!x.normalMap, ne = !!x.displacementMap, be = !!x.emissiveMap, ye = !!x.metalnessMap, Se = !!x.roughnessMap, Le = x.anisotropy > 0, ze = x.clearcoat > 0, tt = x.iridescence > 0, A = x.sheen > 0, S = x.transmission > 0, W = Le && !!x.anisotropyMap, se = ze && !!x.clearcoatMap, ie = ze && !!x.clearcoatNormalMap, le = ze && !!x.clearcoatRoughnessMap, Ee = tt && !!x.iridescenceMap, ce = tt && !!x.iridescenceThicknessMap, X = A && !!x.sheenColorMap, P = A && !!x.sheenRoughnessMap, te = !!x.specularMap, xe = !!x.specularColorMap, pe = !!x.specularIntensityMap, ve = S && !!x.transmissionMap, Ne = S && !!x.thicknessMap, We = !!x.gradientMap, I = !!x.alphaMap, _e = x.alphaTest > 0, $ = !!x.alphaHash, re = !!x.extensions, fe = !!C.attributes.uv1, He = !!C.attributes.uv2, qe = !!C.attributes.uv3;
13163
13163
  let Je = Xn;
13164
- return x.toneMapped && (Te === null || Te.isXRRenderTarget === !0) && (Je = n.toneMapping), {
13164
+ return x.toneMapped && (we === null || we.isXRRenderTarget === !0) && (Je = n.toneMapping), {
13165
13165
  isWebGL2: u,
13166
13166
  shaderID: K,
13167
13167
  shaderType: x.type,
@@ -13174,10 +13174,10 @@ function Mx(n, e, t, i, r, s, a) {
13174
13174
  isRawShaderMaterial: x.isRawShaderMaterial === !0,
13175
13175
  glslVersion: x.glslVersion,
13176
13176
  precision: d,
13177
- instancing: we,
13178
- instancingColor: we && N.instanceColor !== null,
13177
+ instancing: Te,
13178
+ instancingColor: Te && N.instanceColor !== null,
13179
13179
  supportsVertexTextures: f,
13180
- outputColorSpace: Te === null ? n.outputColorSpace : Te.isXRRenderTarget === !0 ? Te.texture.colorSpace : gn,
13180
+ outputColorSpace: we === null ? n.outputColorSpace : we.isXRRenderTarget === !0 ? we.texture.colorSpace : gn,
13181
13181
  map: Ve,
13182
13182
  matcap: Ze,
13183
13183
  envMap: Ce,
@@ -13212,7 +13212,7 @@ function Mx(n, e, t, i, r, s, a) {
13212
13212
  transmissionMap: ve,
13213
13213
  thicknessMap: Ne,
13214
13214
  gradientMap: We,
13215
- opaque: x.transparent === !1 && x.blending === ki,
13215
+ opaque: x.transparent === !1 && x.blending === Hi,
13216
13216
  alphaMap: I,
13217
13217
  alphaTest: _e,
13218
13218
  alphaHash: $,
@@ -13335,7 +13335,7 @@ function Mx(n, e, t, i, r, s, a) {
13335
13335
  c[E] = c[c.length - 1], c.pop(), x.destroy();
13336
13336
  }
13337
13337
  }
13338
- function T(x) {
13338
+ function w(x) {
13339
13339
  l.remove(x);
13340
13340
  }
13341
13341
  function O() {
@@ -13347,7 +13347,7 @@ function Mx(n, e, t, i, r, s, a) {
13347
13347
  getUniforms: M,
13348
13348
  acquireProgram: b,
13349
13349
  releaseProgram: R,
13350
- releaseShaderCache: T,
13350
+ releaseShaderCache: w,
13351
13351
  // Exposed for resource monitoring & error feedback via renderer.info:
13352
13352
  programs: c,
13353
13353
  dispose: O
@@ -13431,7 +13431,7 @@ function Xc() {
13431
13431
  sort: c
13432
13432
  };
13433
13433
  }
13434
- function wx() {
13434
+ function Tx() {
13435
13435
  let n = /* @__PURE__ */ new WeakMap();
13436
13436
  function e(i, r) {
13437
13437
  const s = n.get(i);
@@ -13446,7 +13446,7 @@ function wx() {
13446
13446
  dispose: t
13447
13447
  };
13448
13448
  }
13449
- function Tx() {
13449
+ function wx() {
13450
13450
  const n = {};
13451
13451
  return {
13452
13452
  get: function(e) {
@@ -13543,7 +13543,7 @@ function Rx(n, e) {
13543
13543
  return (e.castShadow ? 2 : 0) - (n.castShadow ? 2 : 0) + (e.map ? 1 : 0) - (n.map ? 1 : 0);
13544
13544
  }
13545
13545
  function Lx(n, e) {
13546
- const t = new Tx(), i = Ax(), r = {
13546
+ const t = new wx(), i = Ax(), r = {
13547
13547
  version: 0,
13548
13548
  hash: {
13549
13549
  directionalLength: -1,
@@ -13584,7 +13584,7 @@ function Lx(n, e) {
13584
13584
  let f = 0, d = 0, p = 0;
13585
13585
  for (let F = 0; F < 9; F++)
13586
13586
  r.probe[F].set(0, 0, 0);
13587
- let _ = 0, m = 0, g = 0, y = 0, v = 0, M = 0, b = 0, R = 0, T = 0, O = 0;
13587
+ let _ = 0, m = 0, g = 0, y = 0, v = 0, M = 0, b = 0, R = 0, w = 0, O = 0;
13588
13588
  u.sort(Rx);
13589
13589
  const x = h === !0 ? Math.PI : 1;
13590
13590
  for (let F = 0, ee = u.length; F < ee; F++) {
@@ -13605,7 +13605,7 @@ function Lx(n, e) {
13605
13605
  const V = t.get(N);
13606
13606
  V.position.setFromMatrixPosition(N.matrixWorld), V.color.copy(U).multiplyScalar(C * x), V.distance = z, V.coneCos = Math.cos(N.angle), V.penumbraCos = Math.cos(N.angle * (1 - N.penumbra)), V.decay = N.decay, r.spot[g] = V;
13607
13607
  const K = N.shadow;
13608
- if (N.map && (r.spotLightMap[T] = N.map, T++, K.updateMatrices(N), N.castShadow && O++), r.spotLightMatrix[g] = K.matrix, N.castShadow) {
13608
+ if (N.map && (r.spotLightMap[w] = N.map, w++, K.updateMatrices(N), N.castShadow && O++), r.spotLightMatrix[g] = K.matrix, N.castShadow) {
13609
13609
  const Q = i.get(N);
13610
13610
  Q.shadowBias = K.bias, Q.shadowNormalBias = K.normalBias, Q.shadowRadius = K.radius, Q.shadowMapSize = K.mapSize, r.spotShadow[g] = Q, r.spotShadowMap[g] = H, R++;
13611
13611
  }
@@ -13627,7 +13627,7 @@ function Lx(n, e) {
13627
13627
  }
13628
13628
  y > 0 && (e.isWebGL2 || n.has("OES_texture_float_linear") === !0 ? (r.rectAreaLTC1 = de.LTC_FLOAT_1, r.rectAreaLTC2 = de.LTC_FLOAT_2) : n.has("OES_texture_half_float_linear") === !0 ? (r.rectAreaLTC1 = de.LTC_HALF_1, r.rectAreaLTC2 = de.LTC_HALF_2) : console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")), r.ambient[0] = f, r.ambient[1] = d, r.ambient[2] = p;
13629
13629
  const E = r.hash;
13630
- (E.directionalLength !== _ || E.pointLength !== m || E.spotLength !== g || E.rectAreaLength !== y || E.hemiLength !== v || E.numDirectionalShadows !== M || E.numPointShadows !== b || E.numSpotShadows !== R || E.numSpotMaps !== T) && (r.directional.length = _, r.spot.length = g, r.rectArea.length = y, r.point.length = m, r.hemi.length = v, r.directionalShadow.length = M, r.directionalShadowMap.length = M, r.pointShadow.length = b, r.pointShadowMap.length = b, r.spotShadow.length = R, r.spotShadowMap.length = R, r.directionalShadowMatrix.length = M, r.pointShadowMatrix.length = b, r.spotLightMatrix.length = R + T - O, r.spotLightMap.length = T, r.numSpotLightShadowsWithMaps = O, E.directionalLength = _, E.pointLength = m, E.spotLength = g, E.rectAreaLength = y, E.hemiLength = v, E.numDirectionalShadows = M, E.numPointShadows = b, E.numSpotShadows = R, E.numSpotMaps = T, r.version = Cx++);
13630
+ (E.directionalLength !== _ || E.pointLength !== m || E.spotLength !== g || E.rectAreaLength !== y || E.hemiLength !== v || E.numDirectionalShadows !== M || E.numPointShadows !== b || E.numSpotShadows !== R || E.numSpotMaps !== w) && (r.directional.length = _, r.spot.length = g, r.rectArea.length = y, r.point.length = m, r.hemi.length = v, r.directionalShadow.length = M, r.directionalShadowMap.length = M, r.pointShadow.length = b, r.pointShadowMap.length = b, r.spotShadow.length = R, r.spotShadowMap.length = R, r.directionalShadowMatrix.length = M, r.pointShadowMatrix.length = b, r.spotLightMatrix.length = R + w - O, r.spotLightMap.length = w, r.numSpotLightShadowsWithMaps = O, E.directionalLength = _, E.pointLength = m, E.spotLength = g, E.rectAreaLength = y, E.hemiLength = v, E.numDirectionalShadows = M, E.numPointShadows = b, E.numSpotShadows = R, E.numSpotMaps = w, r.version = Cx++);
13631
13631
  }
13632
13632
  function c(u, h) {
13633
13633
  let f = 0, d = 0, p = 0, _ = 0, m = 0;
@@ -13703,7 +13703,7 @@ function Px(n, e) {
13703
13703
  dispose: r
13704
13704
  };
13705
13705
  }
13706
- class Dx extends Ji {
13706
+ class Dx extends Zi {
13707
13707
  constructor(e) {
13708
13708
  super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = dm, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(e);
13709
13709
  }
@@ -13711,7 +13711,7 @@ class Dx extends Ji {
13711
13711
  return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
13712
13712
  }
13713
13713
  }
13714
- class Ix extends Ji {
13714
+ class Ix extends Zi {
13715
13715
  constructor(e) {
13716
13716
  super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(e);
13717
13717
  }
@@ -13774,7 +13774,7 @@ function Ox(n, e, t) {
13774
13774
  const _ = new pn(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
- this.render = function(b, R, T) {
13777
+ this.render = function(b, R, w) {
13778
13778
  if (m.enabled === !1 || m.autoUpdate === !1 && m.needsUpdate === !1 || b.length === 0)
13779
13779
  return;
13780
13780
  const O = n.getRenderTarget(), x = n.getActiveCubeFace(), E = n.getActiveMipmapLevel(), F = n.state;
@@ -13803,39 +13803,39 @@ function Ox(n, e, t) {
13803
13803
  s.y * B.y,
13804
13804
  s.x * B.z,
13805
13805
  s.y * B.w
13806
- ), F.viewport(a), H.updateMatrices(z, Q), i = H.getFrustum(), M(R, T, H.camera, z, this.type);
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, T), H.needsUpdate = !1;
13808
+ H.isPointLightShadow !== !0 && this.type === An && y(H, w), H.needsUpdate = !1;
13809
13809
  }
13810
13810
  g = this.type, m.needsUpdate = !1, n.setRenderTarget(O, x, E);
13811
13811
  };
13812
13812
  function y(b, R) {
13813
- const T = e.update(_);
13814
- f.defines.VSM_SAMPLES !== b.blurSamples && (f.defines.VSM_SAMPLES = b.blurSamples, d.defines.VSM_SAMPLES = b.blurSamples, f.needsUpdate = !0, d.needsUpdate = !0), b.mapPass === null && (b.mapPass = new di(r.x, r.y)), f.uniforms.shadow_pass.value = b.map.texture, f.uniforms.resolution.value = b.mapSize, f.uniforms.radius.value = b.radius, n.setRenderTarget(b.mapPass), n.clear(), n.renderBufferDirect(R, null, T, f, _, null), d.uniforms.shadow_pass.value = b.mapPass.texture, d.uniforms.resolution.value = b.mapSize, d.uniforms.radius.value = b.radius, n.setRenderTarget(b.map), n.clear(), n.renderBufferDirect(R, null, T, d, _, null);
13813
+ const w = e.update(_);
13814
+ f.defines.VSM_SAMPLES !== b.blurSamples && (f.defines.VSM_SAMPLES = b.blurSamples, d.defines.VSM_SAMPLES = b.blurSamples, f.needsUpdate = !0, d.needsUpdate = !0), b.mapPass === null && (b.mapPass = new di(r.x, r.y)), f.uniforms.shadow_pass.value = b.map.texture, f.uniforms.resolution.value = b.mapSize, f.uniforms.radius.value = b.radius, n.setRenderTarget(b.mapPass), n.clear(), n.renderBufferDirect(R, null, w, f, _, null), d.uniforms.shadow_pass.value = b.mapPass.texture, d.uniforms.resolution.value = b.mapSize, d.uniforms.radius.value = b.radius, n.setRenderTarget(b.map), n.clear(), n.renderBufferDirect(R, null, w, d, _, null);
13815
13815
  }
13816
- function v(b, R, T, O) {
13816
+ function v(b, R, w, O) {
13817
13817
  let x = null;
13818
- const E = T.isPointLight === !0 ? b.customDistanceMaterial : b.customDepthMaterial;
13818
+ const E = w.isPointLight === !0 ? b.customDistanceMaterial : b.customDepthMaterial;
13819
13819
  if (E !== void 0)
13820
13820
  x = E;
13821
- else if (x = T.isPointLight === !0 ? l : o, n.localClippingEnabled && R.clipShadows === !0 && Array.isArray(R.clippingPlanes) && R.clippingPlanes.length !== 0 || R.displacementMap && R.displacementScale !== 0 || R.alphaMap && R.alphaTest > 0 || R.map && R.alphaTest > 0) {
13821
+ else if (x = w.isPointLight === !0 ? l : o, n.localClippingEnabled && R.clipShadows === !0 && Array.isArray(R.clippingPlanes) && R.clippingPlanes.length !== 0 || R.displacementMap && R.displacementScale !== 0 || R.alphaMap && R.alphaTest > 0 || R.map && R.alphaTest > 0) {
13822
13822
  const F = x.uuid, ee = R.uuid;
13823
13823
  let N = c[F];
13824
13824
  N === void 0 && (N = {}, c[F] = N);
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, T.isPointLight === !0 && x.isMeshDistanceMaterial === !0) {
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) {
13829
13829
  const F = n.properties.get(x);
13830
- F.light = T;
13830
+ F.light = w;
13831
13831
  }
13832
13832
  return x;
13833
13833
  }
13834
- function M(b, R, T, O, x) {
13834
+ function M(b, R, w, O, x) {
13835
13835
  if (b.visible === !1)
13836
13836
  return;
13837
13837
  if (b.layers.test(R.layers) && (b.isMesh || b.isLine || b.isPoints) && (b.castShadow || b.receiveShadow && x === An) && (!b.frustumCulled || i.intersectsObject(b))) {
13838
- b.modelViewMatrix.multiplyMatrices(T.matrixWorldInverse, b.matrixWorld);
13838
+ b.modelViewMatrix.multiplyMatrices(w.matrixWorldInverse, b.matrixWorld);
13839
13839
  const ee = e.update(b), N = b.material;
13840
13840
  if (Array.isArray(N)) {
13841
13841
  const U = ee.groups;
@@ -13843,17 +13843,17 @@ function Ox(n, e, t) {
13843
13843
  const H = U[C], V = N[H.materialIndex];
13844
13844
  if (V && V.visible) {
13845
13845
  const K = v(b, V, O, x);
13846
- n.renderBufferDirect(T, null, ee, K, b, H);
13846
+ n.renderBufferDirect(w, null, ee, K, b, H);
13847
13847
  }
13848
13848
  }
13849
13849
  } else if (N.visible) {
13850
13850
  const U = v(b, N, O, x);
13851
- n.renderBufferDirect(T, null, ee, U, b, null);
13851
+ n.renderBufferDirect(w, null, ee, U, b, null);
13852
13852
  }
13853
13853
  }
13854
13854
  const F = b.children;
13855
13855
  for (let ee = 0, N = F.length; ee < N; ee++)
13856
- M(F[ee], R, T, O, x);
13856
+ M(F[ee], R, w, O, x);
13857
13857
  }
13858
13858
  }
13859
13859
  function Fx(n, e, t) {
@@ -13882,7 +13882,7 @@ function Fx(n, e, t) {
13882
13882
  let I = !1, _e = null, $ = null, re = null;
13883
13883
  return {
13884
13884
  setTest: function(fe) {
13885
- fe ? Te(n.DEPTH_TEST) : we(n.DEPTH_TEST);
13885
+ fe ? we(n.DEPTH_TEST) : Te(n.DEPTH_TEST);
13886
13886
  },
13887
13887
  setMask: function(fe) {
13888
13888
  _e !== fe && !I && (n.depthMask(fe), _e = fe);
@@ -13935,7 +13935,7 @@ function Fx(n, e, t) {
13935
13935
  let I = !1, _e = null, $ = null, re = null, fe = null, He = null, qe = null, Je = null, Ft = null;
13936
13936
  return {
13937
13937
  setTest: function(et) {
13938
- I || (et ? Te(n.STENCIL_TEST) : we(n.STENCIL_TEST));
13938
+ I || (et ? we(n.STENCIL_TEST) : Te(n.STENCIL_TEST));
13939
13939
  },
13940
13940
  setMask: function(et) {
13941
13941
  _e !== et && !I && (n.stencilMask(et), _e = et);
@@ -13958,7 +13958,7 @@ function Fx(n, e, t) {
13958
13958
  };
13959
13959
  }
13960
13960
  const o = new r(), l = new s(), c = new a(), u = /* @__PURE__ */ new WeakMap(), h = /* @__PURE__ */ new WeakMap();
13961
- let f = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), _ = [], m = null, g = !1, y = null, v = null, M = null, b = null, R = null, T = null, O = null, x = !1, E = null, F = null, ee = null, N = null, U = null;
13961
+ let f = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), _ = [], m = null, g = !1, y = null, v = null, M = null, b = null, R = null, w = null, O = null, x = !1, E = null, F = null, ee = null, N = null, U = null;
13962
13962
  const C = n.getParameter(n.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
13963
13963
  let z = !1, H = 0;
13964
13964
  const V = n.getParameter(n.VERSION);
@@ -13973,11 +13973,11 @@ function Fx(n, e, t) {
13973
13973
  return He;
13974
13974
  }
13975
13975
  const Ae = {};
13976
- Ae[n.TEXTURE_2D] = ge(n.TEXTURE_2D, n.TEXTURE_2D, 1), Ae[n.TEXTURE_CUBE_MAP] = ge(n.TEXTURE_CUBE_MAP, n.TEXTURE_CUBE_MAP_POSITIVE_X, 6), i && (Ae[n.TEXTURE_2D_ARRAY] = ge(n.TEXTURE_2D_ARRAY, n.TEXTURE_2D_ARRAY, 1, 1), Ae[n.TEXTURE_3D] = ge(n.TEXTURE_3D, n.TEXTURE_3D, 1, 1)), o.setClear(0, 0, 0, 1), l.setClear(1), c.setClear(0), Te(n.DEPTH_TEST), l.setFunc(ea), ne(!1), be(Pl), Te(n.CULL_FACE), J(Wn);
13977
- function Te(I) {
13976
+ Ae[n.TEXTURE_2D] = ge(n.TEXTURE_2D, n.TEXTURE_2D, 1), Ae[n.TEXTURE_CUBE_MAP] = ge(n.TEXTURE_CUBE_MAP, n.TEXTURE_CUBE_MAP_POSITIVE_X, 6), i && (Ae[n.TEXTURE_2D_ARRAY] = ge(n.TEXTURE_2D_ARRAY, n.TEXTURE_2D_ARRAY, 1, 1), Ae[n.TEXTURE_3D] = ge(n.TEXTURE_3D, n.TEXTURE_3D, 1, 1)), o.setClear(0, 0, 0, 1), l.setClear(1), c.setClear(0), we(n.DEPTH_TEST), l.setFunc(ea), ne(!1), be(Pl), we(n.CULL_FACE), J(Wn);
13977
+ function we(I) {
13978
13978
  f[I] !== !0 && (n.enable(I), f[I] = !0);
13979
13979
  }
13980
- function we(I) {
13980
+ function Te(I) {
13981
13981
  f[I] !== !1 && (n.disable(I), f[I] = !1);
13982
13982
  }
13983
13983
  function Ve(I, _e) {
@@ -14028,14 +14028,14 @@ function Fx(n, e, t) {
14028
14028
  };
14029
14029
  function J(I, _e, $, re, fe, He, qe, Je) {
14030
14030
  if (I === Wn) {
14031
- g === !0 && (we(n.BLEND), g = !1);
14031
+ g === !0 && (Te(n.BLEND), g = !1);
14032
14032
  return;
14033
14033
  }
14034
- if (g === !1 && (Te(n.BLEND), g = !0), I !== Pp) {
14034
+ if (g === !1 && (we(n.BLEND), g = !0), I !== Pp) {
14035
14035
  if (I !== y || Je !== x) {
14036
14036
  if ((v !== Ni || R !== Ni) && (n.blendEquation(n.FUNC_ADD), v = Ni, R = Ni), Je)
14037
14037
  switch (I) {
14038
- case ki:
14038
+ case Hi:
14039
14039
  n.blendFuncSeparate(n.ONE, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
14040
14040
  break;
14041
14041
  case Dl:
@@ -14053,7 +14053,7 @@ function Fx(n, e, t) {
14053
14053
  }
14054
14054
  else
14055
14055
  switch (I) {
14056
- case ki:
14056
+ case Hi:
14057
14057
  n.blendFuncSeparate(n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
14058
14058
  break;
14059
14059
  case Dl:
@@ -14069,33 +14069,33 @@ function Fx(n, e, t) {
14069
14069
  console.error("THREE.WebGLState: Invalid blending: ", I);
14070
14070
  break;
14071
14071
  }
14072
- M = null, b = null, T = null, O = null, y = I, x = Je;
14072
+ M = null, b = null, w = null, O = null, y = I, x = Je;
14073
14073
  }
14074
14074
  return;
14075
14075
  }
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 !== T || qe !== O) && (n.blendFuncSeparate(he[$], he[re], he[He], he[qe]), M = $, b = re, T = He, O = qe), y = I, x = !1;
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 ? we(n.CULL_FACE) : Te(n.CULL_FACE);
14079
+ I.side === Cn ? Te(n.CULL_FACE) : we(n.CULL_FACE);
14080
14080
  let $ = I.side === Ot;
14081
- _e && ($ = !$), ne($), I.blending === ki && 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);
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;
14083
- c.setTest(re), re && (c.setMask(I.stencilWriteMask), c.setFunc(I.stencilFunc, I.stencilRef, I.stencilFuncMask), c.setOp(I.stencilFail, I.stencilZFail, I.stencilZPass)), Se(I.polygonOffset, I.polygonOffsetFactor, I.polygonOffsetUnits), I.alphaToCoverage === !0 ? Te(n.SAMPLE_ALPHA_TO_COVERAGE) : we(n.SAMPLE_ALPHA_TO_COVERAGE);
14083
+ c.setTest(re), re && (c.setMask(I.stencilWriteMask), c.setFunc(I.stencilFunc, I.stencilRef, I.stencilFuncMask), c.setOp(I.stencilFail, I.stencilZFail, I.stencilZPass)), Se(I.polygonOffset, I.polygonOffsetFactor, I.polygonOffsetUnits), I.alphaToCoverage === !0 ? we(n.SAMPLE_ALPHA_TO_COVERAGE) : Te(n.SAMPLE_ALPHA_TO_COVERAGE);
14084
14084
  }
14085
14085
  function ne(I) {
14086
14086
  E !== I && (I ? n.frontFace(n.CW) : n.frontFace(n.CCW), E = I);
14087
14087
  }
14088
14088
  function be(I) {
14089
- I !== Cp ? (Te(n.CULL_FACE), I !== F && (I === Pl ? n.cullFace(n.BACK) : I === Rp ? n.cullFace(n.FRONT) : n.cullFace(n.FRONT_AND_BACK))) : we(n.CULL_FACE), F = I;
14089
+ I !== Cp ? (we(n.CULL_FACE), I !== F && (I === Pl ? n.cullFace(n.BACK) : I === Rp ? n.cullFace(n.FRONT) : n.cullFace(n.FRONT_AND_BACK))) : Te(n.CULL_FACE), F = I;
14090
14090
  }
14091
14091
  function ye(I) {
14092
14092
  I !== ee && (z && n.lineWidth(I), ee = I);
14093
14093
  }
14094
14094
  function Se(I, _e, $) {
14095
- I ? (Te(n.POLYGON_OFFSET_FILL), (N !== _e || U !== $) && (n.polygonOffset(_e, $), N = _e, U = $)) : we(n.POLYGON_OFFSET_FILL);
14095
+ I ? (we(n.POLYGON_OFFSET_FILL), (N !== _e || U !== $) && (n.polygonOffset(_e, $), N = _e, U = $)) : Te(n.POLYGON_OFFSET_FILL);
14096
14096
  }
14097
14097
  function Le(I) {
14098
- I ? Te(n.SCISSOR_TEST) : we(n.SCISSOR_TEST);
14098
+ I ? we(n.SCISSOR_TEST) : Te(n.SCISSOR_TEST);
14099
14099
  }
14100
14100
  function ze(I) {
14101
14101
  I === void 0 && (I = n.TEXTURE0 + C - 1), K !== I && (n.activeTexture(I), K = I);
@@ -14196,7 +14196,7 @@ function Fx(n, e, t) {
14196
14196
  u.get(_e) !== re && (n.uniformBlockBinding(_e, re, I.__bindingPointIndex), u.set(_e, re));
14197
14197
  }
14198
14198
  function We() {
14199
- n.disable(n.BLEND), n.disable(n.CULL_FACE), n.disable(n.DEPTH_TEST), n.disable(n.POLYGON_OFFSET_FILL), n.disable(n.SCISSOR_TEST), n.disable(n.STENCIL_TEST), n.disable(n.SAMPLE_ALPHA_TO_COVERAGE), n.blendEquation(n.FUNC_ADD), n.blendFunc(n.ONE, n.ZERO), n.blendFuncSeparate(n.ONE, n.ZERO, n.ONE, n.ZERO), n.colorMask(!0, !0, !0, !0), n.clearColor(0, 0, 0, 0), n.depthMask(!0), n.depthFunc(n.LESS), n.clearDepth(1), n.stencilMask(4294967295), n.stencilFunc(n.ALWAYS, 0, 4294967295), n.stencilOp(n.KEEP, n.KEEP, n.KEEP), n.clearStencil(0), n.cullFace(n.BACK), n.frontFace(n.CCW), n.polygonOffset(0, 0), n.activeTexture(n.TEXTURE0), n.bindFramebuffer(n.FRAMEBUFFER, null), i === !0 && (n.bindFramebuffer(n.DRAW_FRAMEBUFFER, null), n.bindFramebuffer(n.READ_FRAMEBUFFER, null)), n.useProgram(null), n.lineWidth(1), n.scissor(0, 0, n.canvas.width, n.canvas.height), n.viewport(0, 0, n.canvas.width, n.canvas.height), f = {}, K = null, Q = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), _ = [], m = null, g = !1, y = null, v = null, M = null, b = null, R = null, T = null, O = null, x = !1, E = null, F = null, ee = null, N = null, U = null, oe.set(0, 0, n.canvas.width, n.canvas.height), me.set(0, 0, n.canvas.width, n.canvas.height), o.reset(), l.reset(), c.reset();
14199
+ n.disable(n.BLEND), n.disable(n.CULL_FACE), n.disable(n.DEPTH_TEST), n.disable(n.POLYGON_OFFSET_FILL), n.disable(n.SCISSOR_TEST), n.disable(n.STENCIL_TEST), n.disable(n.SAMPLE_ALPHA_TO_COVERAGE), n.blendEquation(n.FUNC_ADD), n.blendFunc(n.ONE, n.ZERO), n.blendFuncSeparate(n.ONE, n.ZERO, n.ONE, n.ZERO), n.colorMask(!0, !0, !0, !0), n.clearColor(0, 0, 0, 0), n.depthMask(!0), n.depthFunc(n.LESS), n.clearDepth(1), n.stencilMask(4294967295), n.stencilFunc(n.ALWAYS, 0, 4294967295), n.stencilOp(n.KEEP, n.KEEP, n.KEEP), n.clearStencil(0), n.cullFace(n.BACK), n.frontFace(n.CCW), n.polygonOffset(0, 0), n.activeTexture(n.TEXTURE0), n.bindFramebuffer(n.FRAMEBUFFER, null), i === !0 && (n.bindFramebuffer(n.DRAW_FRAMEBUFFER, null), n.bindFramebuffer(n.READ_FRAMEBUFFER, null)), n.useProgram(null), n.lineWidth(1), n.scissor(0, 0, n.canvas.width, n.canvas.height), n.viewport(0, 0, n.canvas.width, n.canvas.height), f = {}, K = null, Q = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), _ = [], m = null, g = !1, y = null, v = null, M = null, b = null, R = null, w = null, O = null, x = !1, E = null, F = null, ee = null, N = null, U = null, oe.set(0, 0, n.canvas.width, n.canvas.height), me.set(0, 0, n.canvas.width, n.canvas.height), o.reset(), l.reset(), c.reset();
14200
14200
  }
14201
14201
  return {
14202
14202
  buffers: {
@@ -14204,8 +14204,8 @@ function Fx(n, e, t) {
14204
14204
  depth: l,
14205
14205
  stencil: c
14206
14206
  },
14207
- enable: Te,
14208
- disable: we,
14207
+ enable: we,
14208
+ disable: Te,
14209
14209
  bindFramebuffer: Ve,
14210
14210
  drawBuffers: Ze,
14211
14211
  useProgram: Ce,
@@ -14272,7 +14272,7 @@ function Bx(n, e, t, i, r, s, a) {
14272
14272
  function R(A, S) {
14273
14273
  return A.generateMipmaps && S && A.minFilter !== Dt && A.minFilter !== $t;
14274
14274
  }
14275
- function T(A) {
14275
+ function w(A) {
14276
14276
  n.generateMipmap(A);
14277
14277
  }
14278
14278
  function O(A, S, W, se, ie = !1) {
@@ -14418,7 +14418,7 @@ function Bx(n, e, t, i, r, s, a) {
14418
14418
  [Sm]: n.GREATER,
14419
14419
  [Mm]: n.NOTEQUAL
14420
14420
  };
14421
- function Te(A, S, W) {
14421
+ function we(A, S, W) {
14422
14422
  if (W ? (n.texParameteri(A, n.TEXTURE_WRAP_S, me[S.wrapS]), n.texParameteri(A, n.TEXTURE_WRAP_T, me[S.wrapT]), (A === n.TEXTURE_3D || A === n.TEXTURE_2D_ARRAY) && n.texParameteri(A, n.TEXTURE_WRAP_R, me[S.wrapR]), n.texParameteri(A, n.TEXTURE_MAG_FILTER, ge[S.magFilter]), n.texParameteri(A, n.TEXTURE_MIN_FILTER, ge[S.minFilter])) : (n.texParameteri(A, n.TEXTURE_WRAP_S, n.CLAMP_TO_EDGE), n.texParameteri(A, n.TEXTURE_WRAP_T, n.CLAMP_TO_EDGE), (A === n.TEXTURE_3D || A === n.TEXTURE_2D_ARRAY) && n.texParameteri(A, n.TEXTURE_WRAP_R, n.CLAMP_TO_EDGE), (S.wrapS !== nn || S.wrapT !== nn) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), n.texParameteri(A, n.TEXTURE_MAG_FILTER, E(S.magFilter)), n.texParameteri(A, n.TEXTURE_MIN_FILTER, E(S.minFilter)), S.minFilter !== Dt && S.minFilter !== $t && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")), S.compareFunction && (n.texParameteri(A, n.TEXTURE_COMPARE_MODE, n.COMPARE_REF_TO_TEXTURE), n.texParameteri(A, n.TEXTURE_COMPARE_FUNC, Ae[S.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
14423
14423
  const se = e.get("EXT_texture_filter_anisotropic");
14424
14424
  if (S.magFilter === Dt || S.minFilter !== so && S.minFilter !== yr || S.type === Gn && e.has("OES_texture_float_linear") === !1 || o === !1 && S.type === Sr && e.has("OES_texture_half_float_linear") === !1)
@@ -14426,7 +14426,7 @@ function Bx(n, e, t, i, r, s, a) {
14426
14426
  (S.anisotropy > 1 || i.get(S).__currentAnisotropy) && (n.texParameterf(A, se.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(S.anisotropy, r.getMaxAnisotropy())), i.get(S).__currentAnisotropy = S.anisotropy);
14427
14427
  }
14428
14428
  }
14429
- function we(A, S) {
14429
+ function Te(A, S) {
14430
14430
  let W = !1;
14431
14431
  A.__webglInit === void 0 && (A.__webglInit = !0, S.addEventListener("dispose", F));
14432
14432
  const se = S.source;
@@ -14446,7 +14446,7 @@ function Bx(n, e, t, i, r, s, a) {
14446
14446
  function Ve(A, S, W) {
14447
14447
  let se = n.TEXTURE_2D;
14448
14448
  (S.isDataArrayTexture || S.isCompressedArrayTexture) && (se = n.TEXTURE_2D_ARRAY), S.isData3DTexture && (se = n.TEXTURE_3D);
14449
- const ie = we(A, S), le = S.source;
14449
+ const ie = Te(A, S), le = S.source;
14450
14450
  t.bindTexture(se, A.__webglTexture, n.TEXTURE0 + W);
14451
14451
  const Ee = i.get(le);
14452
14452
  if (le.version !== Ee.__version || ie === !0) {
@@ -14456,11 +14456,11 @@ function Bx(n, e, t, i, r, s, a) {
14456
14456
  X = tt(S, X);
14457
14457
  const P = M(X) || o, te = s.convert(S.format, S.colorSpace);
14458
14458
  let xe = s.convert(S.type), pe = O(S.internalFormat, te, xe, S.colorSpace, S.isVideoTexture);
14459
- Te(se, S, P);
14459
+ we(se, S, P);
14460
14460
  let ve;
14461
14461
  const Ne = S.mipmaps, We = o && S.isVideoTexture !== !0, I = Ee.__version === void 0 || ie === !0, _e = x(S, X, P);
14462
14462
  if (S.isDepthTexture)
14463
- pe = n.DEPTH_COMPONENT, o ? S.type === Gn ? pe = n.DEPTH_COMPONENT32F : S.type === kn ? pe = n.DEPTH_COMPONENT24 : S.type === oi ? pe = n.DEPTH24_STENCIL8 : pe = n.DEPTH_COMPONENT16 : S.type === Gn && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), S.format === ai && pe === n.DEPTH_COMPONENT && S.type !== Ra && S.type !== kn && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), S.type = kn, xe = s.convert(S.type)), S.format === $i && pe === n.DEPTH_COMPONENT && (pe = n.DEPTH_STENCIL, S.type !== oi && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), S.type = oi, xe = s.convert(S.type))), I && (We ? t.texStorage2D(n.TEXTURE_2D, 1, pe, X.width, X.height) : t.texImage2D(n.TEXTURE_2D, 0, pe, X.width, X.height, 0, te, xe, null));
14463
+ pe = n.DEPTH_COMPONENT, o ? S.type === Gn ? pe = n.DEPTH_COMPONENT32F : S.type === kn ? pe = n.DEPTH_COMPONENT24 : S.type === oi ? pe = n.DEPTH24_STENCIL8 : pe = n.DEPTH_COMPONENT16 : S.type === Gn && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), S.format === ai && pe === n.DEPTH_COMPONENT && S.type !== Ra && S.type !== kn && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), S.type = kn, xe = s.convert(S.type)), S.format === Xi && pe === n.DEPTH_COMPONENT && (pe = n.DEPTH_STENCIL, S.type !== oi && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), S.type = oi, xe = s.convert(S.type))), I && (We ? t.texStorage2D(n.TEXTURE_2D, 1, pe, X.width, X.height) : t.texImage2D(n.TEXTURE_2D, 0, pe, X.width, X.height, 0, te, xe, null));
14464
14464
  else if (S.isDataTexture)
14465
14465
  if (Ne.length > 0 && P) {
14466
14466
  We && I && t.texStorage2D(n.TEXTURE_2D, _e, pe, Ne[0].width, Ne[0].height);
@@ -14499,14 +14499,14 @@ function Bx(n, e, t, i, r, s, a) {
14499
14499
  S.generateMipmaps = !1;
14500
14500
  } else
14501
14501
  We ? (I && t.texStorage2D(n.TEXTURE_2D, _e, pe, X.width, X.height), t.texSubImage2D(n.TEXTURE_2D, 0, 0, 0, te, xe, X)) : t.texImage2D(n.TEXTURE_2D, 0, pe, te, xe, X);
14502
- R(S, P) && T(se), Ee.__version = le.version, S.onUpdate && S.onUpdate(S);
14502
+ R(S, P) && w(se), Ee.__version = le.version, S.onUpdate && S.onUpdate(S);
14503
14503
  }
14504
14504
  A.__version = S.version;
14505
14505
  }
14506
14506
  function Ze(A, S, W) {
14507
14507
  if (S.image.length !== 6)
14508
14508
  return;
14509
- const se = we(A, S), ie = S.source;
14509
+ const se = Te(A, S), ie = S.source;
14510
14510
  t.bindTexture(n.TEXTURE_CUBE_MAP, A.__webglTexture, n.TEXTURE0 + W);
14511
14511
  const le = i.get(ie);
14512
14512
  if (ie.version !== le.__version || se === !0) {
@@ -14516,7 +14516,7 @@ function Bx(n, e, t, i, r, s, a) {
14516
14516
  !Ee && !ce ? X[$] = v(S.image[$], !1, !0, c) : X[$] = ce ? S.image[$].image : S.image[$], X[$] = tt(S, X[$]);
14517
14517
  const P = X[0], te = M(P) || o, xe = s.convert(S.format, S.colorSpace), pe = s.convert(S.type), ve = O(S.internalFormat, xe, pe, S.colorSpace), Ne = o && S.isVideoTexture !== !0, We = le.__version === void 0 || se === !0;
14518
14518
  let I = x(S, P, te);
14519
- Te(n.TEXTURE_CUBE_MAP, S, te);
14519
+ we(n.TEXTURE_CUBE_MAP, S, te);
14520
14520
  let _e;
14521
14521
  if (Ee) {
14522
14522
  Ne && We && t.texStorage2D(n.TEXTURE_CUBE_MAP, I, ve, P.width, P.height);
@@ -14544,7 +14544,7 @@ function Bx(n, e, t, i, r, s, a) {
14544
14544
  }
14545
14545
  }
14546
14546
  }
14547
- R(S, te) && T(n.TEXTURE_CUBE_MAP), le.__version = ie.version, S.onUpdate && S.onUpdate(S);
14547
+ R(S, te) && w(n.TEXTURE_CUBE_MAP), le.__version = ie.version, S.onUpdate && S.onUpdate(S);
14548
14548
  }
14549
14549
  A.__version = S.version;
14550
14550
  }
@@ -14588,7 +14588,7 @@ function Bx(n, e, t, i, r, s, a) {
14588
14588
  const se = i.get(S.depthTexture).__webglTexture, ie = Se(S);
14589
14589
  if (S.depthTexture.format === ai)
14590
14590
  Le(S) ? f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.TEXTURE_2D, se, 0, ie) : n.framebufferTexture2D(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.TEXTURE_2D, se, 0);
14591
- else if (S.depthTexture.format === $i)
14591
+ else if (S.depthTexture.format === Xi)
14592
14592
  Le(S) ? f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER, n.DEPTH_STENCIL_ATTACHMENT, n.TEXTURE_2D, se, 0, ie) : n.framebufferTexture2D(n.FRAMEBUFFER, n.DEPTH_STENCIL_ATTACHMENT, n.TEXTURE_2D, se, 0);
14593
14593
  else
14594
14594
  throw new Error("Unknown depthTexture format");
@@ -14653,29 +14653,29 @@ function Bx(n, e, t, i, r, s, a) {
14653
14653
  }
14654
14654
  }
14655
14655
  if (ie) {
14656
- t.bindTexture(n.TEXTURE_CUBE_MAP, se.__webglTexture), Te(n.TEXTURE_CUBE_MAP, S, Ee);
14656
+ t.bindTexture(n.TEXTURE_CUBE_MAP, se.__webglTexture), we(n.TEXTURE_CUBE_MAP, S, Ee);
14657
14657
  for (let ce = 0; ce < 6; ce++)
14658
14658
  if (o && S.mipmaps && S.mipmaps.length > 0)
14659
14659
  for (let X = 0; X < S.mipmaps.length; X++)
14660
14660
  Ce(W.__webglFramebuffer[ce][X], A, S, n.COLOR_ATTACHMENT0, n.TEXTURE_CUBE_MAP_POSITIVE_X + ce, X);
14661
14661
  else
14662
14662
  Ce(W.__webglFramebuffer[ce], A, S, n.COLOR_ATTACHMENT0, n.TEXTURE_CUBE_MAP_POSITIVE_X + ce, 0);
14663
- R(S, Ee) && T(n.TEXTURE_CUBE_MAP), t.unbindTexture();
14663
+ R(S, Ee) && w(n.TEXTURE_CUBE_MAP), t.unbindTexture();
14664
14664
  } else if (le) {
14665
14665
  const ce = A.texture;
14666
14666
  for (let X = 0, P = ce.length; X < P; X++) {
14667
14667
  const te = ce[X], xe = i.get(te);
14668
- t.bindTexture(n.TEXTURE_2D, xe.__webglTexture), Te(n.TEXTURE_2D, te, Ee), Ce(W.__webglFramebuffer, A, te, n.COLOR_ATTACHMENT0 + X, n.TEXTURE_2D, 0), R(te, Ee) && T(n.TEXTURE_2D);
14668
+ t.bindTexture(n.TEXTURE_2D, xe.__webglTexture), we(n.TEXTURE_2D, te, Ee), Ce(W.__webglFramebuffer, A, te, n.COLOR_ATTACHMENT0 + X, n.TEXTURE_2D, 0), R(te, Ee) && w(n.TEXTURE_2D);
14669
14669
  }
14670
14670
  t.unbindTexture();
14671
14671
  } else {
14672
14672
  let ce = n.TEXTURE_2D;
14673
- if ((A.isWebGL3DRenderTarget || A.isWebGLArrayRenderTarget) && (o ? ce = A.isWebGL3DRenderTarget ? n.TEXTURE_3D : n.TEXTURE_2D_ARRAY : console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")), t.bindTexture(ce, se.__webglTexture), Te(ce, S, Ee), o && S.mipmaps && S.mipmaps.length > 0)
14673
+ if ((A.isWebGL3DRenderTarget || A.isWebGLArrayRenderTarget) && (o ? ce = A.isWebGL3DRenderTarget ? n.TEXTURE_3D : n.TEXTURE_2D_ARRAY : console.error("THREE.WebGLTextures: THREE.Data3DTexture and THREE.DataArrayTexture only supported with WebGL2.")), t.bindTexture(ce, se.__webglTexture), we(ce, S, Ee), o && S.mipmaps && S.mipmaps.length > 0)
14674
14674
  for (let X = 0; X < S.mipmaps.length; X++)
14675
14675
  Ce(W.__webglFramebuffer[X], A, S, n.COLOR_ATTACHMENT0, ce, X);
14676
14676
  else
14677
14677
  Ce(W.__webglFramebuffer, A, S, n.COLOR_ATTACHMENT0, ce, 0);
14678
- R(S, Ee) && T(ce), t.unbindTexture();
14678
+ R(S, Ee) && w(ce), t.unbindTexture();
14679
14679
  }
14680
14680
  A.depthBuffer && J(A);
14681
14681
  }
@@ -14685,7 +14685,7 @@ function Bx(n, e, t, i, r, s, a) {
14685
14685
  const le = W[se];
14686
14686
  if (R(le, S)) {
14687
14687
  const Ee = A.isWebGLCubeRenderTarget ? n.TEXTURE_CUBE_MAP : n.TEXTURE_2D, ce = i.get(le).__webglTexture;
14688
- t.bindTexture(Ee, ce), T(Ee), t.unbindTexture();
14688
+ t.bindTexture(Ee, ce), w(Ee), t.unbindTexture();
14689
14689
  }
14690
14690
  }
14691
14691
  }
@@ -14769,7 +14769,7 @@ function Hx(n, e, t) {
14769
14769
  return n.LUMINANCE_ALPHA;
14770
14770
  if (s === ai)
14771
14771
  return n.DEPTH_COMPONENT;
14772
- if (s === $i)
14772
+ if (s === Xi)
14773
14773
  return n.DEPTH_STENCIL;
14774
14774
  if (s === oa)
14775
14775
  return o = e.get("EXT_sRGB"), o !== null ? o.SRGB_ALPHA_EXT : null;
@@ -14963,9 +14963,9 @@ class Io {
14963
14963
  }
14964
14964
  class Vx extends It {
14965
14965
  constructor(e, t, i, r, s, a, o, l, c, u) {
14966
- if (u = u !== void 0 ? u : ai, u !== ai && u !== $i)
14966
+ if (u = u !== void 0 ? u : ai, u !== ai && u !== Xi)
14967
14967
  throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
14968
- i === void 0 && u === ai && (i = kn), i === void 0 && u === $i && (i = oi), super(null, r, s, a, o, l, u, i, c), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = o !== void 0 ? o : Dt, this.minFilter = l !== void 0 ? l : Dt, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
14968
+ i === void 0 && u === ai && (i = kn), i === void 0 && u === Xi && (i = oi), super(null, r, s, a, o, l, u, i, c), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = o !== void 0 ? o : Dt, this.minFilter = l !== void 0 ? l : Dt, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
14969
14969
  }
14970
14970
  copy(e) {
14971
14971
  return super.copy(e), this.compareFunction = e.compareFunction, this;
@@ -14986,8 +14986,8 @@ class Wx extends gi {
14986
14986
  M.layers.enable(1), M.viewport = new Ke();
14987
14987
  const b = new Vt();
14988
14988
  b.layers.enable(2), b.viewport = new Ke();
14989
- const R = [M, b], T = new kx();
14990
- T.layers.enable(1), T.layers.enable(2);
14989
+ const R = [M, b], w = new kx();
14990
+ w.layers.enable(1), w.layers.enable(2);
14991
14991
  let O = null, x = null;
14992
14992
  this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(B) {
14993
14993
  let q = y[B];
@@ -15053,7 +15053,7 @@ class Wx extends gi {
15053
15053
  );
15054
15054
  } else {
15055
15055
  let q = null, oe = null, me = null;
15056
- _.depth && (me = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, q = _.stencil ? $i : ai, oe = _.stencil ? oi : kn);
15056
+ _.depth && (me = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, q = _.stencil ? Xi : ai, oe = _.stencil ? oi : kn);
15057
15057
  const ge = {
15058
15058
  colorFormat: t.RGBA8,
15059
15059
  depthFormat: me,
@@ -15108,9 +15108,9 @@ class Wx extends gi {
15108
15108
  const N = new D(), U = new D();
15109
15109
  function C(B, q, oe) {
15110
15110
  N.setFromMatrixPosition(q.matrixWorld), U.setFromMatrixPosition(oe.matrixWorld);
15111
- const me = N.distanceTo(U), ge = q.projectionMatrix.elements, Ae = oe.projectionMatrix.elements, Te = ge[14] / (ge[10] - 1), we = ge[14] / (ge[10] + 1), Ve = (ge[9] + 1) / ge[5], Ze = (ge[9] - 1) / ge[5], Ce = (ge[8] - 1) / ge[0], L = (Ae[8] + 1) / Ae[0], he = Te * Ce, J = Te * L, ae = me / (-Ce + L), ne = ae * -Ce;
15111
+ const me = N.distanceTo(U), ge = q.projectionMatrix.elements, Ae = oe.projectionMatrix.elements, we = ge[14] / (ge[10] - 1), Te = ge[14] / (ge[10] + 1), Ve = (ge[9] + 1) / ge[5], Ze = (ge[9] - 1) / ge[5], Ce = (ge[8] - 1) / ge[0], L = (Ae[8] + 1) / Ae[0], he = we * Ce, J = we * L, ae = me / (-Ce + L), ne = ae * -Ce;
15112
15112
  q.matrixWorld.decompose(B.position, B.quaternion, B.scale), B.translateX(ne), B.translateZ(ae), B.matrixWorld.compose(B.position, B.quaternion, B.scale), B.matrixWorldInverse.copy(B.matrixWorld).invert();
15113
- const be = Te + ae, ye = we + ae, Se = he - ne, Le = J + (me - ne), ze = Ve * we / ye * be, tt = Ze * we / ye * be;
15113
+ const be = we + ae, ye = Te + ae, Se = he - ne, Le = J + (me - ne), ze = Ve * Te / ye * be, tt = Ze * Te / ye * be;
15114
15114
  B.projectionMatrix.makePerspective(Se, Le, ze, tt, be, ye), B.projectionMatrixInverse.copy(B.projectionMatrix).invert();
15115
15115
  }
15116
15116
  function z(B, q) {
@@ -15119,21 +15119,21 @@ class Wx extends gi {
15119
15119
  this.updateCamera = function(B) {
15120
15120
  if (r === null)
15121
15121
  return;
15122
- T.near = b.near = M.near = B.near, T.far = b.far = M.far = B.far, (O !== T.near || x !== T.far) && (r.updateRenderState({
15123
- depthNear: T.near,
15124
- depthFar: T.far
15125
- }), O = T.near, x = T.far);
15126
- const q = B.parent, oe = T.cameras;
15127
- z(T, q);
15122
+ w.near = b.near = M.near = B.near, w.far = b.far = M.far = B.far, (O !== w.near || x !== w.far) && (r.updateRenderState({
15123
+ depthNear: w.near,
15124
+ depthFar: w.far
15125
+ }), O = w.near, x = w.far);
15126
+ const q = B.parent, oe = w.cameras;
15127
+ z(w, q);
15128
15128
  for (let me = 0; me < oe.length; me++)
15129
15129
  z(oe[me], q);
15130
- oe.length === 2 ? C(T, M, b) : T.projectionMatrix.copy(M.projectionMatrix), H(B, T, q);
15130
+ oe.length === 2 ? C(w, M, b) : w.projectionMatrix.copy(M.projectionMatrix), H(B, w, q);
15131
15131
  };
15132
15132
  function H(B, q, oe) {
15133
15133
  oe === null ? B.matrix.copy(q.matrixWorld) : (B.matrix.copy(oe.matrixWorld), B.matrix.invert(), B.matrix.multiply(q.matrixWorld)), B.matrix.decompose(B.position, B.quaternion, B.scale), B.updateMatrixWorld(!0), B.projectionMatrix.copy(q.projectionMatrix), B.projectionMatrixInverse.copy(q.projectionMatrixInverse), B.isPerspectiveCamera && (B.fov = Mr * 2 * Math.atan(1 / B.projectionMatrix.elements[5]), B.zoom = 1);
15134
15134
  }
15135
15135
  this.getCamera = function() {
15136
- return T;
15136
+ return w;
15137
15137
  }, this.getFoveation = function() {
15138
15138
  if (!(f === null && d === null))
15139
15139
  return l;
@@ -15146,22 +15146,22 @@ class Wx extends gi {
15146
15146
  const oe = u.views;
15147
15147
  d !== null && (e.setRenderTargetFramebuffer(g, d.framebuffer), e.setRenderTarget(g));
15148
15148
  let me = !1;
15149
- oe.length !== T.cameras.length && (T.cameras.length = 0, me = !0);
15149
+ oe.length !== w.cameras.length && (w.cameras.length = 0, me = !0);
15150
15150
  for (let ge = 0; ge < oe.length; ge++) {
15151
15151
  const Ae = oe[ge];
15152
- let Te = null;
15152
+ let we = null;
15153
15153
  if (d !== null)
15154
- Te = d.getViewport(Ae);
15154
+ we = d.getViewport(Ae);
15155
15155
  else {
15156
15156
  const Ve = h.getViewSubImage(f, Ae);
15157
- Te = Ve.viewport, ge === 0 && (e.setRenderTargetTextures(
15157
+ we = Ve.viewport, ge === 0 && (e.setRenderTargetTextures(
15158
15158
  g,
15159
15159
  Ve.colorTexture,
15160
15160
  f.ignoreDepthValues ? void 0 : Ve.depthStencilTexture
15161
15161
  ), e.setRenderTarget(g));
15162
15162
  }
15163
- let we = R[ge];
15164
- we === void 0 && (we = new Vt(), we.layers.enable(ge), we.viewport = new Ke(), R[ge] = we), we.matrix.fromArray(Ae.transform.matrix), we.matrix.decompose(we.position, we.quaternion, we.scale), we.projectionMatrix.fromArray(Ae.projectionMatrix), we.projectionMatrixInverse.copy(we.projectionMatrix).invert(), we.viewport.set(Te.x, Te.y, Te.width, Te.height), ge === 0 && (T.matrix.copy(we.matrix), T.matrix.decompose(T.position, T.quaternion, T.scale)), me === !0 && T.cameras.push(we);
15163
+ let Te = R[ge];
15164
+ Te === void 0 && (Te = new Vt(), Te.layers.enable(ge), Te.viewport = new Ke(), R[ge] = Te), Te.matrix.fromArray(Ae.transform.matrix), Te.matrix.decompose(Te.position, Te.quaternion, Te.scale), Te.projectionMatrix.fromArray(Ae.projectionMatrix), Te.projectionMatrixInverse.copy(Te.projectionMatrix).invert(), Te.viewport.set(we.x, we.y, we.width, we.height), ge === 0 && (w.matrix.copy(Te.matrix), w.matrix.decompose(w.position, w.quaternion, w.scale)), me === !0 && w.cameras.push(Te);
15165
15165
  }
15166
15166
  }
15167
15167
  for (let oe = 0; oe < y.length; oe++) {
@@ -15170,7 +15170,7 @@ class Wx extends gi {
15170
15170
  }
15171
15171
  V && V(B, q), q.detectedPlanes && i.dispatchEvent({ type: "planesdetected", data: q }), p = null;
15172
15172
  }
15173
- const Q = new wh();
15173
+ const Q = new Th();
15174
15174
  Q.setAnimationLoop(K), this.setAnimationLoop = function(B) {
15175
15175
  V = B;
15176
15176
  }, this.dispose = function() {
@@ -15263,7 +15263,7 @@ function $x(n, e, t, i) {
15263
15263
  function f(y) {
15264
15264
  const v = r[y.id], M = y.uniforms, b = y.__cache;
15265
15265
  n.bindBuffer(n.UNIFORM_BUFFER, v);
15266
- for (let R = 0, T = M.length; R < T; R++) {
15266
+ for (let R = 0, w = M.length; R < w; R++) {
15267
15267
  const O = M[R];
15268
15268
  if (d(O, R, b) === !0) {
15269
15269
  const x = O.__offset, E = Array.isArray(O.value) ? O.value : [O.value];
@@ -15283,21 +15283,21 @@ function $x(n, e, t, i) {
15283
15283
  if (typeof b == "number")
15284
15284
  M[v] = b;
15285
15285
  else {
15286
- const R = Array.isArray(b) ? b : [b], T = [];
15286
+ const R = Array.isArray(b) ? b : [b], w = [];
15287
15287
  for (let O = 0; O < R.length; O++)
15288
- T.push(R[O].clone());
15289
- M[v] = T;
15288
+ w.push(R[O].clone());
15289
+ M[v] = w;
15290
15290
  }
15291
15291
  return !0;
15292
15292
  } else if (typeof b == "number") {
15293
15293
  if (M[v] !== b)
15294
15294
  return M[v] = b, !0;
15295
15295
  } else {
15296
- const R = Array.isArray(M[v]) ? M[v] : [M[v]], T = Array.isArray(b) ? b : [b];
15296
+ const R = Array.isArray(M[v]) ? M[v] : [M[v]], w = Array.isArray(b) ? b : [b];
15297
15297
  for (let O = 0; O < R.length; O++) {
15298
15298
  const x = R[O];
15299
- if (x.equals(T[O]) === !1)
15300
- return x.copy(T[O]), !0;
15299
+ if (x.equals(w[O]) === !1)
15300
+ return x.copy(w[O]), !0;
15301
15301
  }
15302
15302
  }
15303
15303
  return !1;
@@ -15307,8 +15307,8 @@ function $x(n, e, t, i) {
15307
15307
  let M = 0;
15308
15308
  const b = 16;
15309
15309
  let R = 0;
15310
- for (let T = 0, O = v.length; T < O; T++) {
15311
- const x = v[T], E = {
15310
+ for (let w = 0, O = v.length; w < O; w++) {
15311
+ const x = v[w], E = {
15312
15312
  boundary: 0,
15313
15313
  // bytes
15314
15314
  storage: 0
@@ -15318,7 +15318,7 @@ function $x(n, e, t, i) {
15318
15318
  const U = F[ee], C = _(U);
15319
15319
  E.boundary += C.boundary, E.storage += C.storage;
15320
15320
  }
15321
- if (x.__data = new Float32Array(E.storage / Float32Array.BYTES_PER_ELEMENT), x.__offset = M, T > 0) {
15321
+ if (x.__data = new Float32Array(E.storage / Float32Array.BYTES_PER_ELEMENT), x.__offset = M, w > 0) {
15322
15322
  R = M % b;
15323
15323
  const ee = b - R;
15324
15324
  R !== 0 && ee - E.boundary < 0 && (M += b - R, x.__offset = M);
@@ -15386,7 +15386,7 @@ class Lh {
15386
15386
  onShaderError: null
15387
15387
  }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.outputColorSpace = nt, this._useLegacyLights = !1, this.toneMapping = Xn, this.toneMappingExposure = 1;
15388
15388
  const v = this;
15389
- let M = !1, b = 0, R = 0, T = null, O = -1, x = null;
15389
+ let M = !1, b = 0, R = 0, w = null, O = -1, x = null;
15390
15390
  const E = new Ke(), F = new Ke();
15391
15391
  let ee = null;
15392
15392
  const N = new je(0);
@@ -15395,21 +15395,21 @@ class Lh {
15395
15395
  let q = !1;
15396
15396
  const oe = new Na();
15397
15397
  let me = !1, ge = !1, Ae = null;
15398
- const Te = new it(), we = new ue(), Ve = new D(), Ze = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
15398
+ const we = new it(), Te = new ue(), Ve = new D(), Ze = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
15399
15399
  function Ce() {
15400
- return T === null ? H : 1;
15400
+ return w === null ? H : 1;
15401
15401
  }
15402
15402
  let L = i;
15403
- function he(w, k) {
15404
- for (let j = 0; j < w.length; j++) {
15405
- const G = w[j], Y = t.getContext(G, k);
15403
+ function he(T, k) {
15404
+ for (let j = 0; j < T.length; j++) {
15405
+ const G = T[j], Y = t.getContext(G, k);
15406
15406
  if (Y !== null)
15407
15407
  return Y;
15408
15408
  }
15409
15409
  return null;
15410
15410
  }
15411
15411
  try {
15412
- const w = {
15412
+ const T = {
15413
15413
  alpha: !0,
15414
15414
  depth: r,
15415
15415
  stencil: s,
@@ -15421,18 +15421,18 @@ class Lh {
15421
15421
  };
15422
15422
  if ("setAttribute" in t && t.setAttribute("data-engine", `three.js r${Aa}`), t.addEventListener("webglcontextlost", _e, !1), t.addEventListener("webglcontextrestored", $, !1), t.addEventListener("webglcontextcreationerror", re, !1), L === null) {
15423
15423
  const k = ["webgl2", "webgl", "experimental-webgl"];
15424
- if (v.isWebGL1Renderer === !0 && k.shift(), L = he(k, w), L === null)
15424
+ if (v.isWebGL1Renderer === !0 && k.shift(), L = he(k, T), L === null)
15425
15425
  throw he(k) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context.");
15426
15426
  }
15427
15427
  typeof WebGLRenderingContext != "undefined" && L instanceof WebGLRenderingContext && console.warn("THREE.WebGLRenderer: WebGL 1 support was deprecated in r153 and will be removed in r163."), L.getShaderPrecisionFormat === void 0 && (L.getShaderPrecisionFormat = function() {
15428
15428
  return { rangeMin: 1, rangeMax: 1, precision: 1 };
15429
15429
  });
15430
- } catch (w) {
15431
- throw console.error("THREE.WebGLRenderer: " + w.message), w;
15430
+ } catch (T) {
15431
+ throw console.error("THREE.WebGLRenderer: " + T.message), T;
15432
15432
  }
15433
15433
  let J, ae, ne, be, ye, Se, Le, ze, tt, A, S, W, se, ie, le, Ee, ce, X, P, te, xe, pe, ve, Ne;
15434
15434
  function We() {
15435
- J = new n0(L), ae = new Yv(L, J, e), J.init(ae), pe = new Hx(L, J, ae), ne = new Fx(L, J, ae), be = new s0(L), ye = new Ex(), Se = new Bx(L, J, ne, ye, ae, pe, be), Le = new Zv(v), ze = new t0(v), tt = new pg(L, ae), ve = new qv(L, J, tt, ae), A = new i0(L, tt, be, ve), S = new c0(L, A, tt, be), P = new l0(L, ae, Se), Ee = new Kv(ye), W = new Mx(v, Le, ze, J, ae, ve, Ee), se = new Xx(v, ye), ie = new wx(), le = new Px(J, ae), X = new $v(v, Le, ze, ne, S, f, l), ce = new Ox(v, S, ae), Ne = new $x(L, be, ae, ne), te = new jv(L, J, be, ae), xe = new r0(L, J, be, ae), be.programs = W.programs, v.capabilities = ae, v.extensions = J, v.properties = ye, v.renderLists = ie, v.shadowMap = ce, v.state = ne, v.info = be;
15435
+ J = new n0(L), ae = new Yv(L, J, e), J.init(ae), pe = new Hx(L, J, ae), ne = new Fx(L, J, ae), be = new s0(L), ye = new Ex(), Se = new Bx(L, J, ne, ye, ae, pe, be), Le = new Zv(v), ze = new t0(v), tt = new pg(L, ae), ve = new qv(L, J, tt, ae), A = new i0(L, tt, be, ve), S = new c0(L, A, tt, be), P = new l0(L, ae, Se), Ee = new Kv(ye), W = new Mx(v, Le, ze, J, ae, ve, Ee), se = new Xx(v, ye), ie = new Tx(), le = new Px(J, ae), X = new $v(v, Le, ze, ne, S, f, l), ce = new Ox(v, S, ae), Ne = new $x(L, be, ae, ne), te = new jv(L, J, be, ae), xe = new r0(L, J, be, ae), be.programs = W.programs, v.capabilities = ae, v.extensions = J, v.properties = ye, v.renderLists = ie, v.shadowMap = ce, v.state = ne, v.info = be;
15436
15436
  }
15437
15437
  We();
15438
15438
  const I = new Wx(v, L);
@@ -15441,63 +15441,63 @@ class Lh {
15441
15441
  }, this.getContextAttributes = function() {
15442
15442
  return L.getContextAttributes();
15443
15443
  }, this.forceContextLoss = function() {
15444
- const w = J.get("WEBGL_lose_context");
15445
- w && w.loseContext();
15444
+ const T = J.get("WEBGL_lose_context");
15445
+ T && T.loseContext();
15446
15446
  }, this.forceContextRestore = function() {
15447
- const w = J.get("WEBGL_lose_context");
15448
- w && w.restoreContext();
15447
+ const T = J.get("WEBGL_lose_context");
15448
+ T && T.restoreContext();
15449
15449
  }, this.getPixelRatio = function() {
15450
15450
  return H;
15451
- }, this.setPixelRatio = function(w) {
15452
- w !== void 0 && (H = w, this.setSize(C, z, !1));
15453
- }, this.getSize = function(w) {
15454
- return w.set(C, z);
15455
- }, this.setSize = function(w, k, j = !0) {
15451
+ }, this.setPixelRatio = function(T) {
15452
+ T !== void 0 && (H = T, this.setSize(C, z, !1));
15453
+ }, this.getSize = function(T) {
15454
+ return T.set(C, z);
15455
+ }, this.setSize = function(T, k, j = !0) {
15456
15456
  if (I.isPresenting) {
15457
15457
  console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");
15458
15458
  return;
15459
15459
  }
15460
- C = w, z = k, t.width = Math.floor(w * H), t.height = Math.floor(k * H), j === !0 && (t.style.width = w + "px", t.style.height = k + "px"), this.setViewport(0, 0, w, k);
15461
- }, this.getDrawingBufferSize = function(w) {
15462
- return w.set(C * H, z * H).floor();
15463
- }, this.setDrawingBufferSize = function(w, k, j) {
15464
- C = w, z = k, H = j, t.width = Math.floor(w * j), t.height = Math.floor(k * j), this.setViewport(0, 0, w, k);
15465
- }, this.getCurrentViewport = function(w) {
15466
- return w.copy(E);
15467
- }, this.getViewport = function(w) {
15468
- return w.copy(Q);
15469
- }, this.setViewport = function(w, k, j, G) {
15470
- w.isVector4 ? Q.set(w.x, w.y, w.z, w.w) : Q.set(w, k, j, G), ne.viewport(E.copy(Q).multiplyScalar(H).floor());
15471
- }, this.getScissor = function(w) {
15472
- return w.copy(B);
15473
- }, this.setScissor = function(w, k, j, G) {
15474
- w.isVector4 ? B.set(w.x, w.y, w.z, w.w) : B.set(w, k, j, G), ne.scissor(F.copy(B).multiplyScalar(H).floor());
15460
+ C = T, z = k, t.width = Math.floor(T * H), t.height = Math.floor(k * H), j === !0 && (t.style.width = T + "px", t.style.height = k + "px"), this.setViewport(0, 0, T, k);
15461
+ }, this.getDrawingBufferSize = function(T) {
15462
+ return T.set(C * H, z * H).floor();
15463
+ }, this.setDrawingBufferSize = function(T, k, j) {
15464
+ C = T, z = k, H = j, t.width = Math.floor(T * j), t.height = Math.floor(k * j), this.setViewport(0, 0, T, k);
15465
+ }, this.getCurrentViewport = function(T) {
15466
+ return T.copy(E);
15467
+ }, this.getViewport = function(T) {
15468
+ return T.copy(Q);
15469
+ }, this.setViewport = function(T, k, j, G) {
15470
+ T.isVector4 ? Q.set(T.x, T.y, T.z, T.w) : Q.set(T, k, j, G), ne.viewport(E.copy(Q).multiplyScalar(H).floor());
15471
+ }, this.getScissor = function(T) {
15472
+ return T.copy(B);
15473
+ }, this.setScissor = function(T, k, j, G) {
15474
+ T.isVector4 ? B.set(T.x, T.y, T.z, T.w) : B.set(T, k, j, G), ne.scissor(F.copy(B).multiplyScalar(H).floor());
15475
15475
  }, this.getScissorTest = function() {
15476
15476
  return q;
15477
- }, this.setScissorTest = function(w) {
15478
- ne.setScissorTest(q = w);
15479
- }, this.setOpaqueSort = function(w) {
15480
- V = w;
15481
- }, this.setTransparentSort = function(w) {
15482
- K = w;
15483
- }, this.getClearColor = function(w) {
15484
- return w.copy(X.getClearColor());
15477
+ }, this.setScissorTest = function(T) {
15478
+ ne.setScissorTest(q = T);
15479
+ }, this.setOpaqueSort = function(T) {
15480
+ V = T;
15481
+ }, this.setTransparentSort = function(T) {
15482
+ K = T;
15483
+ }, this.getClearColor = function(T) {
15484
+ return T.copy(X.getClearColor());
15485
15485
  }, this.setClearColor = function() {
15486
15486
  X.setClearColor.apply(X, arguments);
15487
15487
  }, this.getClearAlpha = function() {
15488
15488
  return X.getClearAlpha();
15489
15489
  }, this.setClearAlpha = function() {
15490
15490
  X.setClearAlpha.apply(X, arguments);
15491
- }, this.clear = function(w = !0, k = !0, j = !0) {
15491
+ }, this.clear = function(T = !0, k = !0, j = !0) {
15492
15492
  let G = 0;
15493
- if (w) {
15493
+ if (T) {
15494
15494
  let Y = !1;
15495
- if (T !== null) {
15496
- const Me = T.texture.format;
15495
+ if (w !== null) {
15496
+ const Me = w.texture.format;
15497
15497
  Y = Me === hh || Me === uh || Me === ch;
15498
15498
  }
15499
15499
  if (Y) {
15500
- const Me = T.texture.type, Re = Me === $n || Me === kn || Me === Ra || Me === oi || Me === ah || Me === lh, Ie = X.getClearColor(), Ue = X.getClearAlpha(), ke = Ie.r, Pe = Ie.g, Oe = Ie.b;
15500
+ const Me = w.texture.type, Re = Me === $n || Me === kn || Me === Ra || Me === oi || Me === ah || Me === lh, Ie = X.getClearColor(), Ue = X.getClearAlpha(), ke = Ie.r, Pe = Ie.g, Oe = Ie.b;
15501
15501
  Re ? (d[0] = ke, d[1] = Pe, d[2] = Oe, d[3] = Ue, L.clearBufferuiv(L.COLOR, 0, d)) : (p[0] = ke, p[1] = Pe, p[2] = Oe, p[3] = Ue, L.clearBufferiv(L.COLOR, 0, p));
15502
15502
  } else
15503
15503
  G |= L.COLOR_BUFFER_BIT;
@@ -15512,33 +15512,33 @@ class Lh {
15512
15512
  }, this.dispose = function() {
15513
15513
  t.removeEventListener("webglcontextlost", _e, !1), t.removeEventListener("webglcontextrestored", $, !1), t.removeEventListener("webglcontextcreationerror", re, !1), ie.dispose(), le.dispose(), ye.dispose(), Le.dispose(), ze.dispose(), S.dispose(), ve.dispose(), Ne.dispose(), W.dispose(), I.dispose(), I.removeEventListener("sessionstart", et), I.removeEventListener("sessionend", cn), Ae && (Ae.dispose(), Ae = null), Ct.stop();
15514
15514
  };
15515
- function _e(w) {
15516
- w.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), M = !0;
15515
+ function _e(T) {
15516
+ T.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), M = !0;
15517
15517
  }
15518
15518
  function $() {
15519
15519
  console.log("THREE.WebGLRenderer: Context Restored."), M = !1;
15520
- const w = be.autoReset, k = ce.enabled, j = ce.autoUpdate, G = ce.needsUpdate, Y = ce.type;
15521
- We(), be.autoReset = w, ce.enabled = k, ce.autoUpdate = j, ce.needsUpdate = G, ce.type = Y;
15520
+ const T = be.autoReset, k = ce.enabled, j = ce.autoUpdate, G = ce.needsUpdate, Y = ce.type;
15521
+ We(), be.autoReset = T, ce.enabled = k, ce.autoUpdate = j, ce.needsUpdate = G, ce.type = Y;
15522
15522
  }
15523
- function re(w) {
15524
- console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", w.statusMessage);
15523
+ function re(T) {
15524
+ console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ", T.statusMessage);
15525
15525
  }
15526
- function fe(w) {
15527
- const k = w.target;
15526
+ function fe(T) {
15527
+ const k = T.target;
15528
15528
  k.removeEventListener("dispose", fe), He(k);
15529
15529
  }
15530
- function He(w) {
15531
- qe(w), ye.remove(w);
15530
+ function He(T) {
15531
+ qe(T), ye.remove(T);
15532
15532
  }
15533
- function qe(w) {
15534
- const k = ye.get(w).programs;
15533
+ function qe(T) {
15534
+ const k = ye.get(T).programs;
15535
15535
  k !== void 0 && (k.forEach(function(j) {
15536
15536
  W.releaseProgram(j);
15537
- }), w.isShaderMaterial && W.releaseShaderCache(w));
15537
+ }), T.isShaderMaterial && W.releaseShaderCache(T));
15538
15538
  }
15539
- this.renderBufferDirect = function(w, k, j, G, Y, Me) {
15539
+ this.renderBufferDirect = function(T, k, j, G, Y, Me) {
15540
15540
  k === null && (k = Ze);
15541
- const Re = Y.isMesh && Y.matrixWorld.determinant() < 0, Ie = _f(w, k, j, G, Y);
15541
+ const Re = Y.isMesh && Y.matrixWorld.determinant() < 0, Ie = _f(T, k, j, G, Y);
15542
15542
  ne.setMaterial(G, Re);
15543
15543
  let Ue = j.index, ke = 1;
15544
15544
  if (G.wireframe === !0) {
@@ -15568,27 +15568,27 @@ class Lh {
15568
15568
  ft.renderInstances(ot, Wt, Qs);
15569
15569
  } else
15570
15570
  ft.render(ot, Wt);
15571
- }, this.compile = function(w, k) {
15571
+ }, this.compile = function(T, k) {
15572
15572
  function j(G, Y, Me) {
15573
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);
15574
15574
  }
15575
- m = le.get(w), m.init(), y.push(m), w.traverseVisible(function(G) {
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));
15577
- }), m.setupLights(v._useLegacyLights), w.traverse(function(G) {
15577
+ }), m.setupLights(v._useLegacyLights), T.traverse(function(G) {
15578
15578
  const Y = G.material;
15579
15579
  if (Y)
15580
15580
  if (Array.isArray(Y))
15581
15581
  for (let Me = 0; Me < Y.length; Me++) {
15582
15582
  const Re = Y[Me];
15583
- j(Re, w, G);
15583
+ j(Re, T, G);
15584
15584
  }
15585
15585
  else
15586
- j(Y, w, G);
15586
+ j(Y, T, G);
15587
15587
  }), y.pop(), m = null;
15588
15588
  };
15589
15589
  let Je = null;
15590
- function Ft(w) {
15591
- Je && Je(w);
15590
+ function Ft(T) {
15591
+ Je && Je(T);
15592
15592
  }
15593
15593
  function et() {
15594
15594
  Ct.stop();
@@ -15596,76 +15596,76 @@ class Lh {
15596
15596
  function cn() {
15597
15597
  Ct.start();
15598
15598
  }
15599
- const Ct = new wh();
15600
- Ct.setAnimationLoop(Ft), typeof self != "undefined" && Ct.setContext(self), this.setAnimationLoop = function(w) {
15601
- Je = w, I.setAnimationLoop(w), w === null ? Ct.stop() : Ct.start();
15602
- }, I.addEventListener("sessionstart", et), I.addEventListener("sessionend", cn), this.render = function(w, k) {
15599
+ const Ct = new Th();
15600
+ Ct.setAnimationLoop(Ft), typeof self != "undefined" && Ct.setContext(self), this.setAnimationLoop = function(T) {
15601
+ Je = T, I.setAnimationLoop(T), T === null ? Ct.stop() : Ct.start();
15602
+ }, I.addEventListener("sessionstart", et), I.addEventListener("sessionend", cn), this.render = function(T, k) {
15603
15603
  if (k !== void 0 && k.isCamera !== !0) {
15604
15604
  console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
15605
15605
  return;
15606
15606
  }
15607
15607
  if (M === !0)
15608
15608
  return;
15609
- w.matrixWorldAutoUpdate === !0 && w.updateMatrixWorld(), k.parent === null && k.matrixWorldAutoUpdate === !0 && k.updateMatrixWorld(), I.enabled === !0 && I.isPresenting === !0 && (I.cameraAutoUpdate === !0 && I.updateCamera(k), k = I.getCamera()), w.isScene === !0 && w.onBeforeRender(v, w, k, T), m = le.get(w, y.length), m.init(), y.push(m), Te.multiplyMatrices(k.projectionMatrix, k.matrixWorldInverse), oe.setFromProjectionMatrix(Te), ge = this.localClippingEnabled, me = Ee.init(this.clippingPlanes, ge), _ = ie.get(w, g.length), _.init(), g.push(_), Ja(w, k, 0, v.sortObjects), _.finish(), v.sortObjects === !0 && _.sort(V, K), this.info.render.frame++, me === !0 && Ee.beginShadows();
15609
+ T.matrixWorldAutoUpdate === !0 && T.updateMatrixWorld(), k.parent === null && k.matrixWorldAutoUpdate === !0 && k.updateMatrixWorld(), I.enabled === !0 && I.isPresenting === !0 && (I.cameraAutoUpdate === !0 && I.updateCamera(k), k = I.getCamera()), T.isScene === !0 && T.onBeforeRender(v, T, k, w), m = le.get(T, y.length), m.init(), y.push(m), we.multiplyMatrices(k.projectionMatrix, k.matrixWorldInverse), oe.setFromProjectionMatrix(we), ge = this.localClippingEnabled, me = Ee.init(this.clippingPlanes, ge), _ = ie.get(T, g.length), _.init(), g.push(_), Ja(T, k, 0, v.sortObjects), _.finish(), v.sortObjects === !0 && _.sort(V, K), this.info.render.frame++, me === !0 && Ee.beginShadows();
15610
15610
  const j = m.state.shadowsArray;
15611
- if (ce.render(j, w, k), me === !0 && Ee.endShadows(), this.info.autoReset === !0 && this.info.reset(), X.render(_, w), m.setupLights(v._useLegacyLights), k.isArrayCamera) {
15611
+ if (ce.render(j, T, k), me === !0 && Ee.endShadows(), this.info.autoReset === !0 && this.info.reset(), X.render(_, T), m.setupLights(v._useLegacyLights), k.isArrayCamera) {
15612
15612
  const G = k.cameras;
15613
15613
  for (let Y = 0, Me = G.length; Y < Me; Y++) {
15614
15614
  const Re = G[Y];
15615
- Qa(_, w, Re, Re.viewport);
15615
+ Qa(_, T, Re, Re.viewport);
15616
15616
  }
15617
15617
  } else
15618
- Qa(_, w, k);
15619
- T !== null && (Se.updateMultisampleRenderTarget(T), Se.updateRenderTargetMipmap(T)), w.isScene === !0 && w.onAfterRender(v, w, k), ve.resetDefaultState(), O = -1, x = null, y.pop(), y.length > 0 ? m = y[y.length - 1] : m = null, g.pop(), g.length > 0 ? _ = g[g.length - 1] : _ = null;
15618
+ Qa(_, T, k);
15619
+ w !== null && (Se.updateMultisampleRenderTarget(w), Se.updateRenderTargetMipmap(w)), T.isScene === !0 && T.onAfterRender(v, T, k), ve.resetDefaultState(), O = -1, x = null, y.pop(), y.length > 0 ? m = y[y.length - 1] : m = null, g.pop(), g.length > 0 ? _ = g[g.length - 1] : _ = null;
15620
15620
  };
15621
- function Ja(w, k, j, G) {
15622
- if (w.visible === !1)
15621
+ function Ja(T, k, j, G) {
15622
+ if (T.visible === !1)
15623
15623
  return;
15624
- if (w.layers.test(k.layers)) {
15625
- if (w.isGroup)
15626
- j = w.renderOrder;
15627
- else if (w.isLOD)
15628
- w.autoUpdate === !0 && w.update(k);
15629
- else if (w.isLight)
15630
- m.pushLight(w), w.castShadow && m.pushShadow(w);
15631
- else if (w.isSprite) {
15632
- if (!w.frustumCulled || oe.intersectsSprite(w)) {
15633
- G && Ve.setFromMatrixPosition(w.matrixWorld).applyMatrix4(Te);
15634
- const Re = S.update(w), Ie = w.material;
15635
- Ie.visible && _.push(w, Re, Ie, j, Ve.z, null);
15624
+ if (T.layers.test(k.layers)) {
15625
+ if (T.isGroup)
15626
+ j = T.renderOrder;
15627
+ else if (T.isLOD)
15628
+ T.autoUpdate === !0 && T.update(k);
15629
+ else if (T.isLight)
15630
+ m.pushLight(T), T.castShadow && m.pushShadow(T);
15631
+ else if (T.isSprite) {
15632
+ if (!T.frustumCulled || oe.intersectsSprite(T)) {
15633
+ G && Ve.setFromMatrixPosition(T.matrixWorld).applyMatrix4(we);
15634
+ const Re = S.update(T), Ie = T.material;
15635
+ Ie.visible && _.push(T, Re, Ie, j, Ve.z, null);
15636
15636
  }
15637
- } else if ((w.isMesh || w.isLine || w.isPoints) && (!w.frustumCulled || oe.intersectsObject(w))) {
15638
- const Re = S.update(w), Ie = w.material;
15639
- if (G && (w.boundingSphere !== void 0 ? (w.boundingSphere === null && w.computeBoundingSphere(), Ve.copy(w.boundingSphere.center)) : (Re.boundingSphere === null && Re.computeBoundingSphere(), Ve.copy(Re.boundingSphere.center)), Ve.applyMatrix4(w.matrixWorld).applyMatrix4(Te)), Array.isArray(Ie)) {
15637
+ } else if ((T.isMesh || T.isLine || T.isPoints) && (!T.frustumCulled || oe.intersectsObject(T))) {
15638
+ const Re = S.update(T), Ie = T.material;
15639
+ if (G && (T.boundingSphere !== void 0 ? (T.boundingSphere === null && T.computeBoundingSphere(), Ve.copy(T.boundingSphere.center)) : (Re.boundingSphere === null && Re.computeBoundingSphere(), Ve.copy(Re.boundingSphere.center)), Ve.applyMatrix4(T.matrixWorld).applyMatrix4(we)), Array.isArray(Ie)) {
15640
15640
  const Ue = Re.groups;
15641
15641
  for (let ke = 0, Pe = Ue.length; ke < Pe; ke++) {
15642
15642
  const Oe = Ue[ke], ot = Ie[Oe.materialIndex];
15643
- ot && ot.visible && _.push(w, Re, ot, j, Ve.z, Oe);
15643
+ ot && ot.visible && _.push(T, Re, ot, j, Ve.z, Oe);
15644
15644
  }
15645
15645
  } else
15646
- Ie.visible && _.push(w, Re, Ie, j, Ve.z, null);
15646
+ Ie.visible && _.push(T, Re, Ie, j, Ve.z, null);
15647
15647
  }
15648
15648
  }
15649
- const Me = w.children;
15649
+ const Me = T.children;
15650
15650
  for (let Re = 0, Ie = Me.length; Re < Ie; Re++)
15651
15651
  Ja(Me[Re], k, j, G);
15652
15652
  }
15653
- function Qa(w, k, j, G) {
15654
- const Y = w.opaque, Me = w.transmissive, Re = w.transparent;
15653
+ function Qa(T, k, j, G) {
15654
+ const Y = T.opaque, Me = T.transmissive, Re = T.transparent;
15655
15655
  m.setupLightsView(j), me === !0 && Ee.setGlobalState(v.clippingPlanes, j), Me.length > 0 && gf(Y, Me, k, j), G && ne.viewport(E.copy(G)), Y.length > 0 && Or(Y, k, j), Me.length > 0 && Or(Me, k, j), Re.length > 0 && Or(Re, k, j), ne.buffers.depth.setTest(!0), ne.buffers.depth.setMask(!0), ne.buffers.color.setMask(!0), ne.setPolygonOffset(!1);
15656
15656
  }
15657
- function gf(w, k, j, G) {
15657
+ function gf(T, k, j, G) {
15658
15658
  const Y = ae.isWebGL2;
15659
15659
  Ae === null && (Ae = new di(1, 1, {
15660
15660
  generateMipmaps: !0,
15661
15661
  type: J.has("EXT_color_buffer_half_float") ? Sr : $n,
15662
15662
  minFilter: yr,
15663
15663
  samples: Y ? 4 : 0
15664
- })), v.getDrawingBufferSize(we), Y ? Ae.setSize(we.x, we.y) : Ae.setSize(Is(we.x), Is(we.y));
15664
+ })), v.getDrawingBufferSize(Te), Y ? Ae.setSize(Te.x, Te.y) : Ae.setSize(Is(Te.x), Is(Te.y));
15665
15665
  const Me = v.getRenderTarget();
15666
15666
  v.setRenderTarget(Ae), v.getClearColor(N), U = v.getClearAlpha(), U < 1 && v.setClearColor(16777215, 0.5), v.clear();
15667
15667
  const Re = v.toneMapping;
15668
- v.toneMapping = Xn, Or(w, j, G), Se.updateMultisampleRenderTarget(Ae), Se.updateRenderTargetMipmap(Ae);
15668
+ v.toneMapping = Xn, Or(T, j, G), Se.updateMultisampleRenderTarget(Ae), Se.updateRenderTargetMipmap(Ae);
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;
@@ -15676,60 +15676,60 @@ class Lh {
15676
15676
  }
15677
15677
  Ie === !0 && (Se.updateMultisampleRenderTarget(Ae), Se.updateRenderTargetMipmap(Ae)), v.setRenderTarget(Me), v.setClearColor(N, U), v.toneMapping = Re;
15678
15678
  }
15679
- function Or(w, k, j) {
15679
+ function Or(T, k, j) {
15680
15680
  const G = k.isScene === !0 ? k.overrideMaterial : null;
15681
- for (let Y = 0, Me = w.length; Y < Me; Y++) {
15682
- const Re = w[Y], Ie = Re.object, Ue = Re.geometry, ke = G === null ? Re.material : G, Pe = Re.group;
15681
+ for (let Y = 0, Me = T.length; Y < Me; Y++) {
15682
+ const Re = T[Y], Ie = Re.object, Ue = Re.geometry, ke = G === null ? Re.material : G, Pe = Re.group;
15683
15683
  Ie.layers.test(j.layers) && el(Ie, k, j, Ue, ke, Pe);
15684
15684
  }
15685
15685
  }
15686
- function el(w, k, j, G, Y, Me) {
15687
- w.onBeforeRender(v, k, j, G, Y, Me), w.modelViewMatrix.multiplyMatrices(j.matrixWorldInverse, w.matrixWorld), w.normalMatrix.getNormalMatrix(w.modelViewMatrix), Y.onBeforeRender(v, k, j, G, w, Me), Y.transparent === !0 && Y.side === Cn && Y.forceSinglePass === !1 ? (Y.side = Ot, Y.needsUpdate = !0, v.renderBufferDirect(j, k, G, Y, w, Me), Y.side = jn, Y.needsUpdate = !0, v.renderBufferDirect(j, k, G, Y, w, Me), Y.side = Cn) : v.renderBufferDirect(j, k, G, Y, w, Me), w.onAfterRender(v, k, j, G, Y, Me);
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);
15688
15688
  }
15689
- function Fr(w, k, j) {
15689
+ function Fr(T, k, j) {
15690
15690
  k.isScene !== !0 && (k = Ze);
15691
- const G = ye.get(w), Y = m.state.lights, Me = m.state.shadowsArray, Re = Y.state.version, Ie = W.getParameters(w, Y.state, Me, k, j), Ue = W.getProgramCacheKey(Ie);
15691
+ const G = ye.get(T), Y = m.state.lights, Me = m.state.shadowsArray, Re = Y.state.version, Ie = W.getParameters(T, Y.state, Me, k, j), Ue = W.getProgramCacheKey(Ie);
15692
15692
  let ke = G.programs;
15693
- G.environment = w.isMeshStandardMaterial ? k.environment : null, G.fog = k.fog, G.envMap = (w.isMeshStandardMaterial ? ze : Le).get(w.envMap || G.environment), ke === void 0 && (w.addEventListener("dispose", fe), ke = /* @__PURE__ */ new Map(), G.programs = ke);
15693
+ G.environment = T.isMeshStandardMaterial ? k.environment : null, G.fog = k.fog, G.envMap = (T.isMeshStandardMaterial ? ze : Le).get(T.envMap || G.environment), ke === void 0 && (T.addEventListener("dispose", fe), ke = /* @__PURE__ */ new Map(), G.programs = ke);
15694
15694
  let Pe = ke.get(Ue);
15695
15695
  if (Pe !== void 0) {
15696
15696
  if (G.currentProgram === Pe && G.lightsStateVersion === Re)
15697
- return tl(w, Ie), Pe;
15697
+ return tl(T, Ie), Pe;
15698
15698
  } else
15699
- Ie.uniforms = W.getUniforms(w), w.onBuild(j, Ie, v), w.onBeforeCompile(Ie, v), Pe = W.acquireProgram(Ie, Ue), ke.set(Ue, Pe), G.uniforms = Ie.uniforms;
15699
+ Ie.uniforms = W.getUniforms(T), T.onBuild(j, Ie, v), T.onBeforeCompile(Ie, v), Pe = W.acquireProgram(Ie, Ue), ke.set(Ue, Pe), G.uniforms = Ie.uniforms;
15700
15700
  const Oe = G.uniforms;
15701
- (!w.isShaderMaterial && !w.isRawShaderMaterial || w.clipping === !0) && (Oe.clippingPlanes = Ee.uniform), tl(w, Ie), G.needsLights = xf(w), G.lightsStateVersion = Re, G.needsLights && (Oe.ambientLightColor.value = Y.state.ambient, Oe.lightProbe.value = Y.state.probe, Oe.directionalLights.value = Y.state.directional, Oe.directionalLightShadows.value = Y.state.directionalShadow, Oe.spotLights.value = Y.state.spot, Oe.spotLightShadows.value = Y.state.spotShadow, Oe.rectAreaLights.value = Y.state.rectArea, Oe.ltc_1.value = Y.state.rectAreaLTC1, Oe.ltc_2.value = Y.state.rectAreaLTC2, Oe.pointLights.value = Y.state.point, Oe.pointLightShadows.value = Y.state.pointShadow, Oe.hemisphereLights.value = Y.state.hemi, Oe.directionalShadowMap.value = Y.state.directionalShadowMap, Oe.directionalShadowMatrix.value = Y.state.directionalShadowMatrix, Oe.spotShadowMap.value = Y.state.spotShadowMap, Oe.spotLightMatrix.value = Y.state.spotLightMatrix, Oe.spotLightMap.value = Y.state.spotLightMap, Oe.pointShadowMap.value = Y.state.pointShadowMap, Oe.pointShadowMatrix.value = Y.state.pointShadowMatrix);
15701
+ (!T.isShaderMaterial && !T.isRawShaderMaterial || T.clipping === !0) && (Oe.clippingPlanes = Ee.uniform), tl(T, Ie), G.needsLights = xf(T), G.lightsStateVersion = Re, G.needsLights && (Oe.ambientLightColor.value = Y.state.ambient, Oe.lightProbe.value = Y.state.probe, Oe.directionalLights.value = Y.state.directional, Oe.directionalLightShadows.value = Y.state.directionalShadow, Oe.spotLights.value = Y.state.spot, Oe.spotLightShadows.value = Y.state.spotShadow, Oe.rectAreaLights.value = Y.state.rectArea, Oe.ltc_1.value = Y.state.rectAreaLTC1, Oe.ltc_2.value = Y.state.rectAreaLTC2, Oe.pointLights.value = Y.state.point, Oe.pointLightShadows.value = Y.state.pointShadow, Oe.hemisphereLights.value = Y.state.hemi, Oe.directionalShadowMap.value = Y.state.directionalShadowMap, Oe.directionalShadowMatrix.value = Y.state.directionalShadowMatrix, Oe.spotShadowMap.value = Y.state.spotShadowMap, Oe.spotLightMatrix.value = Y.state.spotLightMatrix, Oe.spotLightMap.value = Y.state.spotLightMap, Oe.pointShadowMap.value = Y.state.pointShadowMap, Oe.pointShadowMatrix.value = Y.state.pointShadowMatrix);
15702
15702
  const ot = Pe.getUniforms(), ct = Ss.seqWithValue(ot.seq, Oe);
15703
15703
  return G.currentProgram = Pe, G.uniformsList = ct, Pe;
15704
15704
  }
15705
- function tl(w, k) {
15706
- const j = ye.get(w);
15705
+ function tl(T, k) {
15706
+ const j = ye.get(T);
15707
15707
  j.outputColorSpace = k.outputColorSpace, j.instancing = k.instancing, j.instancingColor = k.instancingColor, j.skinning = k.skinning, j.morphTargets = k.morphTargets, j.morphNormals = k.morphNormals, j.morphColors = k.morphColors, j.morphTargetsCount = k.morphTargetsCount, j.numClippingPlanes = k.numClippingPlanes, j.numIntersection = k.numClipIntersection, j.vertexAlphas = k.vertexAlphas, j.vertexTangents = k.vertexTangents, j.toneMapping = k.toneMapping;
15708
15708
  }
15709
- function _f(w, k, j, G, Y) {
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 = T === null ? v.outputColorSpace : T.isXRRenderTarget === !0 ? T.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 : 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;
15712
15712
  let Wt = Xn;
15713
- G.toneMapped && (T === null || T.isXRRenderTarget === !0) && (Wt = v.toneMapping);
15713
+ G.toneMapped && (w === null || w.isXRRenderTarget === !0) && (Wt = v.toneMapping);
15714
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;
15715
- if (me === !0 && (ge === !0 || w !== x)) {
15716
- const Bt = w === x && G.id === O;
15717
- Ee.setState(G, w, Bt);
15715
+ if (me === !0 && (ge === !0 || T !== x)) {
15716
+ const Bt = T === x && G.id === O;
15717
+ Ee.setState(G, T, Bt);
15718
15718
  }
15719
15719
  let dt = !1;
15720
15720
  G.version === Ge.__version ? (Ge.needsLights && Ge.lightsStateVersion !== Qs.state.version || Ge.outputColorSpace !== Ie || Y.isInstancedMesh && Ge.instancing === !1 || !Y.isInstancedMesh && Ge.instancing === !0 || Y.isSkinnedMesh && Ge.skinning === !1 || !Y.isSkinnedMesh && Ge.skinning === !0 || Y.isInstancedMesh && Ge.instancingColor === !0 && Y.instanceColor === null || Y.isInstancedMesh && Ge.instancingColor === !1 && Y.instanceColor !== null || Ge.envMap !== Ue || G.fog === !0 && Ge.fog !== Me || Ge.numClippingPlanes !== void 0 && (Ge.numClippingPlanes !== Ee.numPlanes || Ge.numIntersection !== Ee.numIntersection) || Ge.vertexAlphas !== ke || Ge.vertexTangents !== Pe || Ge.morphTargets !== Oe || Ge.morphNormals !== ot || Ge.morphColors !== ct || Ge.toneMapping !== Wt || ae.isWebGL2 === !0 && Ge.morphTargetsCount !== ft) && (dt = !0) : (dt = !0, Ge.__version = G.version);
15721
15721
  let Zn = Ge.currentProgram;
15722
15722
  dt === !0 && (Zn = Fr(G, k, Y));
15723
- let nl = !1, tr = !1, eo = !1;
15723
+ let nl = !1, er = !1, eo = !1;
15724
15724
  const Rt = Zn.getUniforms(), Jn = Ge.uniforms;
15725
- if (ne.useProgram(Zn.program) && (nl = !0, tr = !0, eo = !0), G.id !== O && (O = G.id, tr = !0), nl || x !== w) {
15726
- Rt.setValue(L, "projectionMatrix", w.projectionMatrix), Rt.setValue(L, "viewMatrix", w.matrixWorldInverse);
15725
+ if (ne.useProgram(Zn.program) && (nl = !0, er = !0, eo = !0), G.id !== O && (O = G.id, er = !0), nl || x !== T) {
15726
+ Rt.setValue(L, "projectionMatrix", T.projectionMatrix), Rt.setValue(L, "viewMatrix", T.matrixWorldInverse);
15727
15727
  const Bt = Rt.map.cameraPosition;
15728
- Bt !== void 0 && Bt.setValue(L, Ve.setFromMatrixPosition(w.matrixWorld)), ae.logarithmicDepthBuffer && Rt.setValue(
15728
+ Bt !== void 0 && Bt.setValue(L, Ve.setFromMatrixPosition(T.matrixWorld)), ae.logarithmicDepthBuffer && Rt.setValue(
15729
15729
  L,
15730
15730
  "logDepthBufFC",
15731
- 2 / (Math.log(w.far + 1) / Math.LN2)
15732
- ), (G.isMeshPhongMaterial || G.isMeshToonMaterial || G.isMeshLambertMaterial || G.isMeshBasicMaterial || G.isMeshStandardMaterial || G.isShaderMaterial) && Rt.setValue(L, "isOrthographic", w.isOrthographicCamera === !0), x !== w && (x = w, tr = !0, eo = !0);
15731
+ 2 / (Math.log(T.far + 1) / Math.LN2)
15732
+ ), (G.isMeshPhongMaterial || G.isMeshToonMaterial || G.isMeshLambertMaterial || G.isMeshBasicMaterial || G.isMeshStandardMaterial || G.isShaderMaterial) && Rt.setValue(L, "isOrthographic", T.isOrthographicCamera === !0), x !== T && (x = T, er = !0, eo = !0);
15733
15733
  }
15734
15734
  if (Y.isSkinnedMesh) {
15735
15735
  Rt.setOptional(L, Y, "bindMatrix"), Rt.setOptional(L, Y, "bindMatrixInverse");
@@ -15737,7 +15737,7 @@ class Lh {
15737
15737
  Bt && (ae.floatVertexTextures ? (Bt.boneTexture === null && Bt.computeBoneTexture(), Rt.setValue(L, "boneTexture", Bt.boneTexture, Se), Rt.setValue(L, "boneTextureSize", Bt.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
15738
15738
  }
15739
15739
  const to = j.morphAttributes;
15740
- if ((to.position !== void 0 || to.normal !== void 0 || to.color !== void 0 && ae.isWebGL2 === !0) && P.update(Y, j, Zn), (tr || Ge.receiveShadow !== Y.receiveShadow) && (Ge.receiveShadow = Y.receiveShadow, Rt.setValue(L, "receiveShadow", Y.receiveShadow)), G.isMeshGouraudMaterial && G.envMap !== null && (Jn.envMap.value = Ue, Jn.flipEnvMap.value = Ue.isCubeTexture && Ue.isRenderTargetTexture === !1 ? -1 : 1), tr && (Rt.setValue(L, "toneMappingExposure", v.toneMappingExposure), Ge.needsLights && vf(Jn, eo), Me && G.fog === !0 && se.refreshFogUniforms(Jn, Me), se.refreshMaterialUniforms(Jn, G, H, z, Ae), Ss.upload(L, Ge.uniformsList, Jn, Se)), G.isShaderMaterial && G.uniformsNeedUpdate === !0 && (Ss.upload(L, Ge.uniformsList, Jn, Se), G.uniformsNeedUpdate = !1), G.isSpriteMaterial && Rt.setValue(L, "center", Y.center), Rt.setValue(L, "modelViewMatrix", Y.modelViewMatrix), Rt.setValue(L, "normalMatrix", Y.normalMatrix), Rt.setValue(L, "modelMatrix", Y.matrixWorld), G.isShaderMaterial || G.isRawShaderMaterial) {
15740
+ if ((to.position !== void 0 || to.normal !== void 0 || to.color !== void 0 && ae.isWebGL2 === !0) && P.update(Y, j, Zn), (er || Ge.receiveShadow !== Y.receiveShadow) && (Ge.receiveShadow = Y.receiveShadow, Rt.setValue(L, "receiveShadow", Y.receiveShadow)), G.isMeshGouraudMaterial && G.envMap !== null && (Jn.envMap.value = Ue, Jn.flipEnvMap.value = Ue.isCubeTexture && Ue.isRenderTargetTexture === !1 ? -1 : 1), er && (Rt.setValue(L, "toneMappingExposure", v.toneMappingExposure), Ge.needsLights && vf(Jn, eo), Me && G.fog === !0 && se.refreshFogUniforms(Jn, Me), se.refreshMaterialUniforms(Jn, G, H, z, Ae), Ss.upload(L, Ge.uniformsList, Jn, Se)), G.isShaderMaterial && G.uniformsNeedUpdate === !0 && (Ss.upload(L, Ge.uniformsList, Jn, Se), G.uniformsNeedUpdate = !1), G.isSpriteMaterial && Rt.setValue(L, "center", Y.center), Rt.setValue(L, "modelViewMatrix", Y.modelViewMatrix), Rt.setValue(L, "normalMatrix", Y.normalMatrix), Rt.setValue(L, "modelMatrix", Y.matrixWorld), G.isShaderMaterial || G.isRawShaderMaterial) {
15741
15741
  const Bt = G.uniformsGroups;
15742
15742
  for (let no = 0, yf = Bt.length; no < yf; no++)
15743
15743
  if (ae.isWebGL2) {
@@ -15748,55 +15748,55 @@ class Lh {
15748
15748
  }
15749
15749
  return Zn;
15750
15750
  }
15751
- function vf(w, k) {
15752
- w.ambientLightColor.needsUpdate = k, w.lightProbe.needsUpdate = k, w.directionalLights.needsUpdate = k, w.directionalLightShadows.needsUpdate = k, w.pointLights.needsUpdate = k, w.pointLightShadows.needsUpdate = k, w.spotLights.needsUpdate = k, w.spotLightShadows.needsUpdate = k, w.rectAreaLights.needsUpdate = k, w.hemisphereLights.needsUpdate = k;
15751
+ function vf(T, k) {
15752
+ T.ambientLightColor.needsUpdate = k, T.lightProbe.needsUpdate = k, T.directionalLights.needsUpdate = k, T.directionalLightShadows.needsUpdate = k, T.pointLights.needsUpdate = k, T.pointLightShadows.needsUpdate = k, T.spotLights.needsUpdate = k, T.spotLightShadows.needsUpdate = k, T.rectAreaLights.needsUpdate = k, T.hemisphereLights.needsUpdate = k;
15753
15753
  }
15754
- function xf(w) {
15755
- return w.isMeshLambertMaterial || w.isMeshToonMaterial || w.isMeshPhongMaterial || w.isMeshStandardMaterial || w.isShadowMaterial || w.isShaderMaterial && w.lights === !0;
15754
+ function xf(T) {
15755
+ return T.isMeshLambertMaterial || T.isMeshToonMaterial || T.isMeshPhongMaterial || T.isMeshStandardMaterial || T.isShadowMaterial || T.isShaderMaterial && T.lights === !0;
15756
15756
  }
15757
15757
  this.getActiveCubeFace = function() {
15758
15758
  return b;
15759
15759
  }, this.getActiveMipmapLevel = function() {
15760
15760
  return R;
15761
15761
  }, this.getRenderTarget = function() {
15762
- return T;
15763
- }, this.setRenderTargetTextures = function(w, k, j) {
15764
- ye.get(w.texture).__webglTexture = k, ye.get(w.depthTexture).__webglTexture = j;
15765
- const G = ye.get(w);
15762
+ return w;
15763
+ }, this.setRenderTargetTextures = function(T, k, j) {
15764
+ ye.get(T.texture).__webglTexture = k, ye.get(T.depthTexture).__webglTexture = j;
15765
+ const G = ye.get(T);
15766
15766
  G.__hasExternalTextures = !0, G.__hasExternalTextures && (G.__autoAllocateDepthBuffer = j === void 0, G.__autoAllocateDepthBuffer || J.has("WEBGL_multisampled_render_to_texture") === !0 && (console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"), G.__useRenderToTexture = !1));
15767
- }, this.setRenderTargetFramebuffer = function(w, k) {
15768
- const j = ye.get(w);
15767
+ }, this.setRenderTargetFramebuffer = function(T, k) {
15768
+ const j = ye.get(T);
15769
15769
  j.__webglFramebuffer = k, j.__useDefaultFramebuffer = k === void 0;
15770
- }, this.setRenderTarget = function(w, k = 0, j = 0) {
15771
- T = w, b = k, R = j;
15770
+ }, this.setRenderTarget = function(T, k = 0, j = 0) {
15771
+ w = T, b = k, R = j;
15772
15772
  let G = !0, Y = null, Me = !1, Re = !1;
15773
- if (w) {
15774
- const Ue = ye.get(w);
15775
- Ue.__useDefaultFramebuffer !== void 0 ? (ne.bindFramebuffer(L.FRAMEBUFFER, null), G = !1) : Ue.__webglFramebuffer === void 0 ? Se.setupRenderTarget(w) : Ue.__hasExternalTextures && Se.rebindTextures(w, ye.get(w.texture).__webglTexture, ye.get(w.depthTexture).__webglTexture);
15776
- const ke = w.texture;
15773
+ if (T) {
15774
+ const Ue = ye.get(T);
15775
+ Ue.__useDefaultFramebuffer !== void 0 ? (ne.bindFramebuffer(L.FRAMEBUFFER, null), G = !1) : Ue.__webglFramebuffer === void 0 ? Se.setupRenderTarget(T) : Ue.__hasExternalTextures && Se.rebindTextures(T, ye.get(T.texture).__webglTexture, ye.get(T.depthTexture).__webglTexture);
15776
+ const ke = T.texture;
15777
15777
  (ke.isData3DTexture || ke.isDataArrayTexture || ke.isCompressedArrayTexture) && (Re = !0);
15778
- const Pe = ye.get(w).__webglFramebuffer;
15779
- w.isWebGLCubeRenderTarget ? (Array.isArray(Pe[k]) ? Y = Pe[k][j] : Y = Pe[k], Me = !0) : ae.isWebGL2 && w.samples > 0 && Se.useMultisampledRTT(w) === !1 ? Y = ye.get(w).__webglMultisampledFramebuffer : Array.isArray(Pe) ? Y = Pe[j] : Y = Pe, E.copy(w.viewport), F.copy(w.scissor), ee = w.scissorTest;
15778
+ const Pe = ye.get(T).__webglFramebuffer;
15779
+ T.isWebGLCubeRenderTarget ? (Array.isArray(Pe[k]) ? Y = Pe[k][j] : Y = Pe[k], Me = !0) : ae.isWebGL2 && T.samples > 0 && Se.useMultisampledRTT(T) === !1 ? Y = ye.get(T).__webglMultisampledFramebuffer : Array.isArray(Pe) ? Y = Pe[j] : Y = Pe, E.copy(T.viewport), F.copy(T.scissor), ee = T.scissorTest;
15780
15780
  } else
15781
15781
  E.copy(Q).multiplyScalar(H).floor(), F.copy(B).multiplyScalar(H).floor(), ee = q;
15782
- if (ne.bindFramebuffer(L.FRAMEBUFFER, Y) && ae.drawBuffers && G && ne.drawBuffers(w, Y), ne.viewport(E), ne.scissor(F), ne.setScissorTest(ee), Me) {
15783
- const Ue = ye.get(w.texture);
15782
+ if (ne.bindFramebuffer(L.FRAMEBUFFER, Y) && ae.drawBuffers && G && ne.drawBuffers(T, Y), ne.viewport(E), ne.scissor(F), ne.setScissorTest(ee), Me) {
15783
+ const Ue = ye.get(T.texture);
15784
15784
  L.framebufferTexture2D(L.FRAMEBUFFER, L.COLOR_ATTACHMENT0, L.TEXTURE_CUBE_MAP_POSITIVE_X + k, Ue.__webglTexture, j);
15785
15785
  } else if (Re) {
15786
- const Ue = ye.get(w.texture), ke = k || 0;
15786
+ const Ue = ye.get(T.texture), ke = k || 0;
15787
15787
  L.framebufferTextureLayer(L.FRAMEBUFFER, L.COLOR_ATTACHMENT0, Ue.__webglTexture, j || 0, ke);
15788
15788
  }
15789
15789
  O = -1;
15790
- }, this.readRenderTargetPixels = function(w, k, j, G, Y, Me, Re) {
15791
- if (!(w && w.isWebGLRenderTarget)) {
15790
+ }, this.readRenderTargetPixels = function(T, k, j, G, Y, Me, Re) {
15791
+ if (!(T && T.isWebGLRenderTarget)) {
15792
15792
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
15793
15793
  return;
15794
15794
  }
15795
- let Ie = ye.get(w).__webglFramebuffer;
15796
- if (w.isWebGLCubeRenderTarget && Re !== void 0 && (Ie = Ie[Re]), Ie) {
15795
+ let Ie = ye.get(T).__webglFramebuffer;
15796
+ if (T.isWebGLCubeRenderTarget && Re !== void 0 && (Ie = Ie[Re]), Ie) {
15797
15797
  ne.bindFramebuffer(L.FRAMEBUFFER, Ie);
15798
15798
  try {
15799
- const Ue = w.texture, ke = Ue.format, Pe = Ue.type;
15799
+ const Ue = T.texture, ke = Ue.format, Pe = Ue.type;
15800
15800
  if (ke !== rn && pe.convert(ke) !== L.getParameter(L.IMPLEMENTATION_COLOR_READ_FORMAT)) {
15801
15801
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
15802
15802
  return;
@@ -15808,24 +15808,24 @@ class Lh {
15808
15808
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
15809
15809
  return;
15810
15810
  }
15811
- k >= 0 && k <= w.width - G && j >= 0 && j <= w.height - Y && L.readPixels(k, j, G, Y, pe.convert(ke), pe.convert(Pe), Me);
15811
+ k >= 0 && k <= T.width - G && j >= 0 && j <= T.height - Y && L.readPixels(k, j, G, Y, pe.convert(ke), pe.convert(Pe), Me);
15812
15812
  } finally {
15813
- const Ue = T !== null ? ye.get(T).__webglFramebuffer : null;
15813
+ const Ue = w !== null ? ye.get(w).__webglFramebuffer : null;
15814
15814
  ne.bindFramebuffer(L.FRAMEBUFFER, Ue);
15815
15815
  }
15816
15816
  }
15817
- }, this.copyFramebufferToTexture = function(w, k, j = 0) {
15817
+ }, this.copyFramebufferToTexture = function(T, k, j = 0) {
15818
15818
  const G = Math.pow(2, -j), Y = Math.floor(k.image.width * G), Me = Math.floor(k.image.height * G);
15819
- Se.setTexture2D(k, 0), L.copyTexSubImage2D(L.TEXTURE_2D, j, 0, 0, w.x, w.y, Y, Me), ne.unbindTexture();
15820
- }, this.copyTextureToTexture = function(w, k, j, G = 0) {
15819
+ Se.setTexture2D(k, 0), L.copyTexSubImage2D(L.TEXTURE_2D, j, 0, 0, T.x, T.y, Y, Me), ne.unbindTexture();
15820
+ }, this.copyTextureToTexture = function(T, k, j, G = 0) {
15821
15821
  const Y = k.image.width, Me = k.image.height, Re = pe.convert(j.format), Ie = pe.convert(j.type);
15822
- Se.setTexture2D(j, 0), L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL, j.flipY), L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL, j.premultiplyAlpha), L.pixelStorei(L.UNPACK_ALIGNMENT, j.unpackAlignment), k.isDataTexture ? L.texSubImage2D(L.TEXTURE_2D, G, w.x, w.y, Y, Me, Re, Ie, k.image.data) : k.isCompressedTexture ? L.compressedTexSubImage2D(L.TEXTURE_2D, G, w.x, w.y, k.mipmaps[0].width, k.mipmaps[0].height, Re, k.mipmaps[0].data) : L.texSubImage2D(L.TEXTURE_2D, G, w.x, w.y, Re, Ie, k.image), G === 0 && j.generateMipmaps && L.generateMipmap(L.TEXTURE_2D), ne.unbindTexture();
15823
- }, this.copyTextureToTexture3D = function(w, k, j, G, Y = 0) {
15822
+ Se.setTexture2D(j, 0), L.pixelStorei(L.UNPACK_FLIP_Y_WEBGL, j.flipY), L.pixelStorei(L.UNPACK_PREMULTIPLY_ALPHA_WEBGL, j.premultiplyAlpha), L.pixelStorei(L.UNPACK_ALIGNMENT, j.unpackAlignment), k.isDataTexture ? L.texSubImage2D(L.TEXTURE_2D, G, T.x, T.y, Y, Me, Re, Ie, k.image.data) : k.isCompressedTexture ? L.compressedTexSubImage2D(L.TEXTURE_2D, G, T.x, T.y, k.mipmaps[0].width, k.mipmaps[0].height, Re, k.mipmaps[0].data) : L.texSubImage2D(L.TEXTURE_2D, G, T.x, T.y, Re, Ie, k.image), G === 0 && j.generateMipmaps && L.generateMipmap(L.TEXTURE_2D), ne.unbindTexture();
15823
+ }, this.copyTextureToTexture3D = function(T, k, j, G, Y = 0) {
15824
15824
  if (v.isWebGL1Renderer) {
15825
15825
  console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");
15826
15826
  return;
15827
15827
  }
15828
- const Me = w.max.x - w.min.x + 1, Re = w.max.y - w.min.y + 1, Ie = w.max.z - w.min.z + 1, Ue = pe.convert(G.format), ke = pe.convert(G.type);
15828
+ const Me = T.max.x - T.min.x + 1, Re = T.max.y - T.min.y + 1, Ie = T.max.z - T.min.z + 1, Ue = pe.convert(G.format), ke = pe.convert(G.type);
15829
15829
  let Pe;
15830
15830
  if (G.isData3DTexture)
15831
15831
  Se.setTexture3D(G, 0), Pe = L.TEXTURE_3D;
@@ -15837,11 +15837,11 @@ class Lh {
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
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, w.min.x), L.pixelStorei(L.UNPACK_SKIP_ROWS, w.min.y), L.pixelStorei(L.UNPACK_SKIP_IMAGES, w.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();
15841
- }, this.initTexture = function(w) {
15842
- w.isCubeTexture ? Se.setTextureCube(w, 0) : w.isData3DTexture ? Se.setTexture3D(w, 0) : w.isDataArrayTexture || w.isCompressedArrayTexture ? Se.setTexture2DArray(w, 0) : Se.setTexture2D(w, 0), ne.unbindTexture();
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();
15841
+ }, this.initTexture = function(T) {
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() {
15844
- b = 0, R = 0, T = null, ne.reset(), ve.reset();
15844
+ b = 0, R = 0, w = null, ne.reset(), ve.reset();
15845
15845
  }, typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
15846
15846
  }
15847
15847
  get coordinateSystem() {
@@ -16281,7 +16281,7 @@ function Qx(n, e) {
16281
16281
  function ey(n, e) {
16282
16282
  return n * n * e;
16283
16283
  }
16284
- function gr(n, e, t, i) {
16284
+ function mr(n, e, t, i) {
16285
16285
  return Jx(n, e) + Qx(n, t) + ey(n, i);
16286
16286
  }
16287
16287
  function ty(n, e) {
@@ -16298,7 +16298,7 @@ function iy(n, e) {
16298
16298
  function ry(n, e) {
16299
16299
  return n * n * n * e;
16300
16300
  }
16301
- function _r(n, e, t, i, r) {
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
16304
  class Ph extends vn {
@@ -16308,8 +16308,8 @@ class Ph extends vn {
16308
16308
  getPoint(e, t = new ue()) {
16309
16309
  const i = t, r = this.v0, s = this.v1, a = this.v2, o = this.v3;
16310
16310
  return i.set(
16311
- _r(e, r.x, s.x, a.x, o.x),
16312
- _r(e, r.y, s.y, a.y, o.y)
16311
+ gr(e, r.x, s.x, a.x, o.x),
16312
+ gr(e, r.y, s.y, a.y, o.y)
16313
16313
  ), i;
16314
16314
  }
16315
16315
  copy(e) {
@@ -16330,9 +16330,9 @@ class sy extends vn {
16330
16330
  getPoint(e, t = new D()) {
16331
16331
  const i = t, r = this.v0, s = this.v1, a = this.v2, o = this.v3;
16332
16332
  return i.set(
16333
- _r(e, r.x, s.x, a.x, o.x),
16334
- _r(e, r.y, s.y, a.y, o.y),
16335
- _r(e, r.z, s.z, a.z, o.z)
16333
+ gr(e, r.x, s.x, a.x, o.x),
16334
+ gr(e, r.y, s.y, a.y, o.y),
16335
+ gr(e, r.z, s.z, a.z, o.z)
16336
16336
  ), i;
16337
16337
  }
16338
16338
  copy(e) {
@@ -16411,8 +16411,8 @@ class Dh extends vn {
16411
16411
  getPoint(e, t = new ue()) {
16412
16412
  const i = t, r = this.v0, s = this.v1, a = this.v2;
16413
16413
  return i.set(
16414
- gr(e, r.x, s.x, a.x),
16415
- gr(e, r.y, s.y, a.y)
16414
+ mr(e, r.x, s.x, a.x),
16415
+ mr(e, r.y, s.y, a.y)
16416
16416
  ), i;
16417
16417
  }
16418
16418
  copy(e) {
@@ -16433,9 +16433,9 @@ class ay extends vn {
16433
16433
  getPoint(e, t = new D()) {
16434
16434
  const i = t, r = this.v0, s = this.v1, a = this.v2;
16435
16435
  return i.set(
16436
- gr(e, r.x, s.x, a.x),
16437
- gr(e, r.y, s.y, a.y),
16438
- gr(e, r.z, s.z, a.z)
16436
+ mr(e, r.x, s.x, a.x),
16437
+ mr(e, r.y, s.y, a.y),
16438
+ mr(e, r.z, s.z, a.z)
16439
16439
  ), i;
16440
16440
  }
16441
16441
  copy(e) {
@@ -16734,13 +16734,13 @@ const cy = {
16734
16734
  };
16735
16735
  function Oh(n, e, t, i, r) {
16736
16736
  let s, a;
16737
- if (r === wy(n, e, t, i) > 0)
16737
+ if (r === Ty(n, e, t, i) > 0)
16738
16738
  for (s = e; s < t; s += i)
16739
16739
  a = Yc(s, n[s], n[s + 1], a);
16740
16740
  else
16741
16741
  for (s = t - i; s >= e; s -= i)
16742
16742
  a = Yc(s, n[s], n[s + 1], a);
16743
- return a && $s(a, a.next) && (wr(a), a = a.next), a;
16743
+ return a && $s(a, a.next) && (Tr(a), a = a.next), a;
16744
16744
  }
16745
16745
  function mi(n, e) {
16746
16746
  if (!n)
@@ -16749,7 +16749,7 @@ function mi(n, e) {
16749
16749
  let t = n, i;
16750
16750
  do
16751
16751
  if (i = !1, !t.steiner && ($s(t, t.next) || st(t.prev, t, t.next) === 0)) {
16752
- if (wr(t), t = e = t.prev, t === t.next)
16752
+ if (Tr(t), t = e = t.prev, t === t.next)
16753
16753
  break;
16754
16754
  i = !0;
16755
16755
  } else
@@ -16764,7 +16764,7 @@ function Er(n, e, t, i, r, s, a) {
16764
16764
  let o = n, l, c;
16765
16765
  for (; n.prev !== n.next; ) {
16766
16766
  if (l = n.prev, c = n.next, s ? hy(n, i, r, s) : uy(n)) {
16767
- e.push(l.i / t | 0), e.push(n.i / t | 0), e.push(c.i / t | 0), wr(n), n = c.next, o = c.next;
16767
+ e.push(l.i / t | 0), e.push(n.i / t | 0), e.push(c.i / t | 0), Tr(n), n = c.next, o = c.next;
16768
16768
  continue;
16769
16769
  }
16770
16770
  if (n = c, n === o) {
@@ -16813,7 +16813,7 @@ function fy(n, e, t) {
16813
16813
  let i = n;
16814
16814
  do {
16815
16815
  const r = i.prev, s = i.next.next;
16816
- !$s(r, s) && Fh(r, i, i.next, s) && br(r, s) && br(s, r) && (e.push(r.i / t | 0), e.push(i.i / t | 0), e.push(s.i / t | 0), wr(i), wr(i.next), i = n = s), i = i.next;
16816
+ !$s(r, s) && Fh(r, i, i.next, s) && br(r, s) && br(s, r) && (e.push(r.i / t | 0), e.push(i.i / t | 0), e.push(s.i / t | 0), Tr(i), Tr(i.next), i = n = s), i = i.next;
16817
16817
  } while (i !== n);
16818
16818
  return mi(i);
16819
16819
  }
@@ -16959,19 +16959,19 @@ function Yc(n, e, t, i) {
16959
16959
  const r = new ua(n, e, t);
16960
16960
  return i ? (r.next = i.next, r.prev = i, i.next.prev = r, i.next = r) : (r.prev = r, r.next = r), r;
16961
16961
  }
16962
- function wr(n) {
16962
+ function Tr(n) {
16963
16963
  n.next.prev = n.prev, n.prev.next = n.next, n.prevZ && (n.prevZ.nextZ = n.nextZ), n.nextZ && (n.nextZ.prevZ = n.prevZ);
16964
16964
  }
16965
16965
  function ua(n, e, t) {
16966
16966
  this.i = n, this.x = e, this.y = t, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
16967
16967
  }
16968
- function wy(n, e, t, i) {
16968
+ function Ty(n, e, t, i) {
16969
16969
  let r = 0;
16970
16970
  for (let s = e, a = t - i; s < t; s += i)
16971
16971
  r += (n[a] - n[s]) * (n[s + 1] + n[a + 1]), a = s;
16972
16972
  return r;
16973
16973
  }
16974
- class vr {
16974
+ class _r {
16975
16975
  // calculate area of the contour polygon
16976
16976
  static area(e) {
16977
16977
  const t = e.length;
@@ -16981,7 +16981,7 @@ class vr {
16981
16981
  return i * 0.5;
16982
16982
  }
16983
16983
  static isClockWise(e) {
16984
- return vr.area(e) < 0;
16984
+ return _r.area(e) < 0;
16985
16985
  }
16986
16986
  static triangulateShape(e, t) {
16987
16987
  const i = [], r = [], s = [];
@@ -17019,20 +17019,20 @@ class ka extends _n {
17019
17019
  function a(o) {
17020
17020
  const l = [], c = t.curveSegments !== void 0 ? t.curveSegments : 12, u = t.steps !== void 0 ? t.steps : 1, h = t.depth !== void 0 ? t.depth : 1;
17021
17021
  let f = t.bevelEnabled !== void 0 ? t.bevelEnabled : !0, d = t.bevelThickness !== void 0 ? t.bevelThickness : 0.2, p = t.bevelSize !== void 0 ? t.bevelSize : d - 0.1, _ = t.bevelOffset !== void 0 ? t.bevelOffset : 0, m = t.bevelSegments !== void 0 ? t.bevelSegments : 3;
17022
- const g = t.extrudePath, y = t.UVGenerator !== void 0 ? t.UVGenerator : Ty;
17023
- let v, M = !1, b, R, T, O;
17024
- g && (v = g.getSpacedPoints(u), M = !0, f = !1, b = g.computeFrenetFrames(u, !1), R = new D(), T = new D(), O = new D()), f || (m = 0, d = 0, p = 0, _ = 0);
17022
+ const g = t.extrudePath, y = t.UVGenerator !== void 0 ? t.UVGenerator : wy;
17023
+ let v, M = !1, b, R, w, O;
17024
+ g && (v = g.getSpacedPoints(u), M = !0, f = !1, b = g.computeFrenetFrames(u, !1), R = new D(), w = new D(), O = new D()), f || (m = 0, d = 0, p = 0, _ = 0);
17025
17025
  const x = o.extractPoints(c);
17026
17026
  let E = x.shape;
17027
17027
  const F = x.holes;
17028
- if (!vr.isClockWise(E)) {
17028
+ if (!_r.isClockWise(E)) {
17029
17029
  E = E.reverse();
17030
17030
  for (let L = 0, he = F.length; L < he; L++) {
17031
17031
  const J = F[L];
17032
- vr.isClockWise(J) && (F[L] = J.reverse());
17032
+ _r.isClockWise(J) && (F[L] = J.reverse());
17033
17033
  }
17034
17034
  }
17035
- const N = vr.triangulateShape(E, F), U = E;
17035
+ const N = _r.triangulateShape(E, F), U = E;
17036
17036
  for (let L = 0, he = F.length; L < he; L++) {
17037
17037
  const J = F[L];
17038
17038
  E = E.concat(J);
@@ -17073,39 +17073,39 @@ class ka extends _n {
17073
17073
  const he = L / m, J = d * Math.cos(he * Math.PI / 2), ae = p * Math.sin(he * Math.PI / 2) + _;
17074
17074
  for (let ne = 0, be = U.length; ne < be; ne++) {
17075
17075
  const ye = C(U[ne], K[ne], ae);
17076
- Te(ye.x, ye.y, -J);
17076
+ we(ye.x, ye.y, -J);
17077
17077
  }
17078
17078
  for (let ne = 0, be = F.length; ne < be; ne++) {
17079
17079
  const ye = F[ne];
17080
17080
  B = Q[ne];
17081
17081
  for (let Se = 0, Le = ye.length; Se < Le; Se++) {
17082
17082
  const ze = C(ye[Se], B[Se], ae);
17083
- Te(ze.x, ze.y, -J);
17083
+ we(ze.x, ze.y, -J);
17084
17084
  }
17085
17085
  }
17086
17086
  }
17087
17087
  const oe = p + _;
17088
17088
  for (let L = 0; L < z; L++) {
17089
17089
  const he = f ? C(E[L], q[L], oe) : E[L];
17090
- M ? (T.copy(b.normals[0]).multiplyScalar(he.x), R.copy(b.binormals[0]).multiplyScalar(he.y), O.copy(v[0]).add(T).add(R), Te(O.x, O.y, O.z)) : Te(he.x, he.y, 0);
17090
+ M ? (w.copy(b.normals[0]).multiplyScalar(he.x), R.copy(b.binormals[0]).multiplyScalar(he.y), O.copy(v[0]).add(w).add(R), we(O.x, O.y, O.z)) : we(he.x, he.y, 0);
17091
17091
  }
17092
17092
  for (let L = 1; L <= u; L++)
17093
17093
  for (let he = 0; he < z; he++) {
17094
17094
  const J = f ? C(E[he], q[he], oe) : E[he];
17095
- M ? (T.copy(b.normals[L]).multiplyScalar(J.x), R.copy(b.binormals[L]).multiplyScalar(J.y), O.copy(v[L]).add(T).add(R), Te(O.x, O.y, O.z)) : Te(J.x, J.y, h / u * L);
17095
+ M ? (w.copy(b.normals[L]).multiplyScalar(J.x), R.copy(b.binormals[L]).multiplyScalar(J.y), O.copy(v[L]).add(w).add(R), we(O.x, O.y, O.z)) : we(J.x, J.y, h / u * L);
17096
17096
  }
17097
17097
  for (let L = m - 1; L >= 0; L--) {
17098
17098
  const he = L / m, J = d * Math.cos(he * Math.PI / 2), ae = p * Math.sin(he * Math.PI / 2) + _;
17099
17099
  for (let ne = 0, be = U.length; ne < be; ne++) {
17100
17100
  const ye = C(U[ne], K[ne], ae);
17101
- Te(ye.x, ye.y, h + J);
17101
+ we(ye.x, ye.y, h + J);
17102
17102
  }
17103
17103
  for (let ne = 0, be = F.length; ne < be; ne++) {
17104
17104
  const ye = F[ne];
17105
17105
  B = Q[ne];
17106
17106
  for (let Se = 0, Le = ye.length; Se < Le; Se++) {
17107
17107
  const ze = C(ye[Se], B[Se], ae);
17108
- M ? Te(ze.x, ze.y + v[u - 1].y, v[u - 1].x + J) : Te(ze.x, ze.y, h + J);
17108
+ M ? we(ze.x, ze.y + v[u - 1].y, v[u - 1].x + J) : we(ze.x, ze.y, h + J);
17109
17109
  }
17110
17110
  }
17111
17111
  }
@@ -17116,21 +17116,21 @@ class ka extends _n {
17116
17116
  let he = 0, J = z * he;
17117
17117
  for (let ae = 0; ae < H; ae++) {
17118
17118
  const ne = N[ae];
17119
- we(ne[2] + J, ne[1] + J, ne[0] + J);
17119
+ Te(ne[2] + J, ne[1] + J, ne[0] + J);
17120
17120
  }
17121
17121
  he = u + m * 2, J = z * he;
17122
17122
  for (let ae = 0; ae < H; ae++) {
17123
17123
  const ne = N[ae];
17124
- we(ne[0] + J, ne[1] + J, ne[2] + J);
17124
+ Te(ne[0] + J, ne[1] + J, ne[2] + J);
17125
17125
  }
17126
17126
  } else {
17127
17127
  for (let he = 0; he < H; he++) {
17128
17128
  const J = N[he];
17129
- we(J[2], J[1], J[0]);
17129
+ Te(J[2], J[1], J[0]);
17130
17130
  }
17131
17131
  for (let he = 0; he < H; he++) {
17132
17132
  const J = N[he];
17133
- we(J[0] + z * u, J[1] + z * u, J[2] + z * u);
17133
+ Te(J[0] + z * u, J[1] + z * u, J[2] + z * u);
17134
17134
  }
17135
17135
  }
17136
17136
  i.addGroup(L, r.length / 3 - L, 0);
@@ -17157,10 +17157,10 @@ class ka extends _n {
17157
17157
  }
17158
17158
  }
17159
17159
  }
17160
- function Te(L, he, J) {
17160
+ function we(L, he, J) {
17161
17161
  l.push(L), l.push(he), l.push(J);
17162
17162
  }
17163
- function we(L, he, J) {
17163
+ function Te(L, he, J) {
17164
17164
  Ze(L), Ze(he), Ze(J);
17165
17165
  const ae = r.length / 3, ne = y.generateTopUV(i, r, ae - 3, ae - 2, ae - 1);
17166
17166
  Ce(ne[0]), Ce(ne[1]), Ce(ne[2]);
@@ -17195,7 +17195,7 @@ class ka extends _n {
17195
17195
  return r !== void 0 && (e.options.extrudePath = new Uh[r.type]().fromJSON(r)), new ka(i, e.options);
17196
17196
  }
17197
17197
  }
17198
- const Ty = {
17198
+ const wy = {
17199
17199
  generateTopUV: function(n, e, t, i, r) {
17200
17200
  const s = e[t * 3], a = e[t * 3 + 1], o = e[i * 3], l = e[i * 3 + 1], c = e[r * 3], u = e[r * 3 + 1];
17201
17201
  return [
@@ -17266,7 +17266,7 @@ function Jc(n, e, t) {
17266
17266
  const i = `${n.x},${n.y},${n.z}-${e.x},${e.y},${e.z}`, r = `${e.x},${e.y},${e.z}-${n.x},${n.y},${n.z}`;
17267
17267
  return t.has(i) === !0 || t.has(r) === !0 ? !1 : (t.add(i), t.add(r), !0);
17268
17268
  }
17269
- class Ry extends Ji {
17269
+ class Ry extends Zi {
17270
17270
  constructor(e) {
17271
17271
  super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new je(16777215), this.specular = new je(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new je(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = dh, this.normalScale = new ue(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ca, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
17272
17272
  }
@@ -17342,7 +17342,7 @@ class Py {
17342
17342
  return this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
17343
17343
  }
17344
17344
  }
17345
- const tu = /* @__PURE__ */ new it(), or = /* @__PURE__ */ new D(), Bo = /* @__PURE__ */ new D();
17345
+ const tu = /* @__PURE__ */ new it(), sr = /* @__PURE__ */ new D(), Bo = /* @__PURE__ */ new D();
17346
17346
  class Dy extends Py {
17347
17347
  constructor() {
17348
17348
  super(new Vt(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new ue(4, 2), this._viewportCount = 6, this._viewports = [
@@ -17388,7 +17388,7 @@ class Dy extends Py {
17388
17388
  }
17389
17389
  updateMatrices(e, t = 0) {
17390
17390
  const i = this.camera, r = this.matrix, s = e.distance || i.far;
17391
- s !== i.far && (i.far = s, i.updateProjectionMatrix()), or.setFromMatrixPosition(e.matrixWorld), i.position.copy(or), Bo.copy(i.position), Bo.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Bo), i.updateMatrixWorld(), r.makeTranslation(-or.x, -or.y, -or.z), tu.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(tu);
17391
+ s !== i.far && (i.far = s, i.updateProjectionMatrix()), sr.setFromMatrixPosition(e.matrixWorld), i.position.copy(sr), Bo.copy(i.position), Bo.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Bo), i.updateMatrixWorld(), r.makeTranslation(-sr.x, -sr.y, -sr.z), tu.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(tu);
17392
17392
  }
17393
17393
  }
17394
17394
  class Iy extends Ly {
@@ -17607,7 +17607,7 @@ class By extends gi {
17607
17607
  let c = 1;
17608
17608
  const u = new D(), h = new ue(), f = new ue(), d = new ue(), p = new ue(), _ = new ue(), m = new ue(), g = new ue(), y = new ue(), v = new ue(), M = new D(), b = new ue();
17609
17609
  let R = !1;
17610
- const T = [], O = {};
17610
+ const w = [], O = {};
17611
17611
  function x(P) {
17612
17612
  return P !== null ? 2 * Math.PI / 60 * i.autoRotateSpeed * P : 2 * Math.PI / 60 / 60 * i.autoRotateSpeed;
17613
17613
  }
@@ -17682,7 +17682,7 @@ class By extends gi {
17682
17682
  function Ae(P) {
17683
17683
  V(P), P.deltaY < 0 ? H(E()) : P.deltaY > 0 && z(E()), i.update();
17684
17684
  }
17685
- function Te(P) {
17685
+ function we(P) {
17686
17686
  let te = !1;
17687
17687
  switch (P.code) {
17688
17688
  case i.keys.UP:
@@ -17700,34 +17700,34 @@ class By extends gi {
17700
17700
  }
17701
17701
  te && (P.preventDefault(), i.update());
17702
17702
  }
17703
- function we() {
17704
- if (T.length === 1)
17705
- h.set(T[0].pageX, T[0].pageY);
17703
+ function Te() {
17704
+ if (w.length === 1)
17705
+ h.set(w[0].pageX, w[0].pageY);
17706
17706
  else {
17707
- const P = 0.5 * (T[0].pageX + T[1].pageX), te = 0.5 * (T[0].pageY + T[1].pageY);
17707
+ const P = 0.5 * (w[0].pageX + w[1].pageX), te = 0.5 * (w[0].pageY + w[1].pageY);
17708
17708
  h.set(P, te);
17709
17709
  }
17710
17710
  }
17711
17711
  function Ve() {
17712
- if (T.length === 1)
17713
- p.set(T[0].pageX, T[0].pageY);
17712
+ if (w.length === 1)
17713
+ p.set(w[0].pageX, w[0].pageY);
17714
17714
  else {
17715
- const P = 0.5 * (T[0].pageX + T[1].pageX), te = 0.5 * (T[0].pageY + T[1].pageY);
17715
+ const P = 0.5 * (w[0].pageX + w[1].pageX), te = 0.5 * (w[0].pageY + w[1].pageY);
17716
17716
  p.set(P, te);
17717
17717
  }
17718
17718
  }
17719
17719
  function Ze() {
17720
- const P = T[0].pageX - T[1].pageX, te = T[0].pageY - T[1].pageY, xe = Math.sqrt(P * P + te * te);
17720
+ const P = w[0].pageX - w[1].pageX, te = w[0].pageY - w[1].pageY, xe = Math.sqrt(P * P + te * te);
17721
17721
  g.set(0, xe);
17722
17722
  }
17723
17723
  function Ce() {
17724
17724
  i.enableZoom && Ze(), i.enablePan && Ve();
17725
17725
  }
17726
17726
  function L() {
17727
- i.enableZoom && Ze(), i.enableRotate && we();
17727
+ i.enableZoom && Ze(), i.enableRotate && Te();
17728
17728
  }
17729
17729
  function he(P) {
17730
- if (T.length == 1)
17730
+ if (w.length == 1)
17731
17731
  f.set(P.pageX, P.pageY);
17732
17732
  else {
17733
17733
  const xe = X(P), pe = 0.5 * (P.pageX + xe.x), ve = 0.5 * (P.pageY + xe.y);
@@ -17738,7 +17738,7 @@ class By extends gi {
17738
17738
  F(2 * Math.PI * d.x / te.clientHeight), ee(2 * Math.PI * d.y / te.clientHeight), h.copy(f);
17739
17739
  }
17740
17740
  function J(P) {
17741
- if (T.length === 1)
17741
+ if (w.length === 1)
17742
17742
  _.set(P.pageX, P.pageY);
17743
17743
  else {
17744
17744
  const te = X(P), xe = 0.5 * (P.pageX + te.x), pe = 0.5 * (P.pageY + te.y);
@@ -17757,13 +17757,13 @@ class By extends gi {
17757
17757
  i.enableZoom && ae(P), i.enableRotate && he(P);
17758
17758
  }
17759
17759
  function ye(P) {
17760
- i.enabled !== !1 && (T.length === 0 && (i.domElement.setPointerCapture(P.pointerId), i.domElement.addEventListener("pointermove", Se), i.domElement.addEventListener("pointerup", Le)), le(P), P.pointerType === "touch" ? W(P) : ze(P));
17760
+ i.enabled !== !1 && (w.length === 0 && (i.domElement.setPointerCapture(P.pointerId), i.domElement.addEventListener("pointermove", Se), i.domElement.addEventListener("pointerup", Le)), le(P), P.pointerType === "touch" ? W(P) : ze(P));
17761
17761
  }
17762
17762
  function Se(P) {
17763
17763
  i.enabled !== !1 && (P.pointerType === "touch" ? se(P) : tt(P));
17764
17764
  }
17765
17765
  function Le(P) {
17766
- Ee(P), T.length === 0 && (i.domElement.releasePointerCapture(P.pointerId), i.domElement.removeEventListener("pointermove", Se), i.domElement.removeEventListener("pointerup", Le)), i.dispatchEvent(ou), s = r.NONE;
17766
+ Ee(P), w.length === 0 && (i.domElement.releasePointerCapture(P.pointerId), i.domElement.removeEventListener("pointermove", Se), i.domElement.removeEventListener("pointerup", Le)), i.dispatchEvent(ou), s = r.NONE;
17767
17767
  }
17768
17768
  function ze(P) {
17769
17769
  let te;
@@ -17836,16 +17836,16 @@ class By extends gi {
17836
17836
  i.enabled === !1 || i.enableZoom === !1 || s !== r.NONE || (P.preventDefault(), i.dispatchEvent(zo), Ae(P), i.dispatchEvent(ou));
17837
17837
  }
17838
17838
  function S(P) {
17839
- i.enabled === !1 || i.enablePan === !1 || Te(P);
17839
+ i.enabled === !1 || i.enablePan === !1 || we(P);
17840
17840
  }
17841
17841
  function W(P) {
17842
- switch (ce(P), T.length) {
17842
+ switch (ce(P), w.length) {
17843
17843
  case 1:
17844
17844
  switch (i.touches.ONE) {
17845
17845
  case _i.ROTATE:
17846
17846
  if (i.enableRotate === !1)
17847
17847
  return;
17848
- we(), s = r.TOUCH_ROTATE;
17848
+ Te(), s = r.TOUCH_ROTATE;
17849
17849
  break;
17850
17850
  case _i.PAN:
17851
17851
  if (i.enablePan === !1)
@@ -17907,13 +17907,13 @@ class By extends gi {
17907
17907
  i.enabled !== !1 && P.preventDefault();
17908
17908
  }
17909
17909
  function le(P) {
17910
- T.push(P);
17910
+ w.push(P);
17911
17911
  }
17912
17912
  function Ee(P) {
17913
17913
  delete O[P.pointerId];
17914
- for (let te = 0; te < T.length; te++)
17915
- if (T[te].pointerId == P.pointerId) {
17916
- T.splice(te, 1);
17914
+ for (let te = 0; te < w.length; te++)
17915
+ if (w[te].pointerId == P.pointerId) {
17916
+ w.splice(te, 1);
17917
17917
  return;
17918
17918
  }
17919
17919
  }
@@ -17922,7 +17922,7 @@ class By extends gi {
17922
17922
  te === void 0 && (te = new ue(), O[P.pointerId] = te), te.set(P.pageX, P.pageY);
17923
17923
  }
17924
17924
  function X(P) {
17925
- const te = P.pointerId === T[0].pointerId ? T[1] : T[0];
17925
+ const te = P.pointerId === w[0].pointerId ? w[1] : w[0];
17926
17926
  return O[te.pointerId];
17927
17927
  }
17928
17928
  i.domElement.addEventListener("contextmenu", ie), i.domElement.addEventListener("pointerdown", ye), i.domElement.addEventListener("pointercancel", Le), i.domElement.addEventListener("wheel", A, { passive: !1 }), this.update();
@@ -18730,7 +18730,7 @@ function* Xy(n) {
18730
18730
  function kh(n) {
18731
18731
  return Array.from(Xy(n));
18732
18732
  }
18733
- var Qe = 1e-6, $y = 1e-12, Xe = Math.PI, Nt = Xe / 2, _u = Xe / 4, Kt = Xe * 2, Gt = 180 / Xe, mt = Xe / 180, lt = Math.abs, Gh = Math.atan, Tr = Math.atan2, ut = Math.cos, qy = Math.exp, jy = Math.log, ht = Math.sin, Yy = Math.sign || function(n) {
18733
+ var Qe = 1e-6, $y = 1e-12, Xe = Math.PI, Nt = Xe / 2, _u = Xe / 4, Kt = Xe * 2, Gt = 180 / Xe, mt = Xe / 180, lt = Math.abs, Gh = Math.atan, wr = Math.atan2, ut = Math.cos, qy = Math.exp, jy = Math.log, ht = Math.sin, Yy = Math.sign || function(n) {
18734
18734
  return n > 0 ? 1 : n < 0 ? -1 : 0;
18735
18735
  }, qs = Math.sqrt, Ky = Math.tan;
18736
18736
  function Zy(n) {
@@ -18739,7 +18739,7 @@ function Zy(n) {
18739
18739
  function Ar(n) {
18740
18740
  return n > 1 ? Nt : n < -1 ? -Nt : Math.asin(n);
18741
18741
  }
18742
- function ur() {
18742
+ function cr() {
18743
18743
  }
18744
18744
  function Ns(n, e) {
18745
18745
  n && xu.hasOwnProperty(n.type) && xu[n.type](n, e);
@@ -18798,9 +18798,9 @@ function Jy(n, e) {
18798
18798
  n && vu.hasOwnProperty(n.type) ? vu[n.type](n, e) : Ns(n, e);
18799
18799
  }
18800
18800
  function pa(n) {
18801
- return [Tr(n[1], n[0]), Ar(n[2])];
18801
+ return [wr(n[1], n[0]), Ar(n[2])];
18802
18802
  }
18803
- function ji(n) {
18803
+ function qi(n) {
18804
18804
  var e = n[0], t = n[1], i = ut(t);
18805
18805
  return [i * ut(e), i * ht(e), ht(t)];
18806
18806
  }
@@ -18849,14 +18849,14 @@ function Eu(n, e) {
18849
18849
  function a(o, l) {
18850
18850
  var c = ut(l), u = ut(o) * c, h = ht(o) * c, f = ht(l), d = f * t + u * i;
18851
18851
  return [
18852
- Tr(h * r - d * s, u * t - f * i),
18852
+ wr(h * r - d * s, u * t - f * i),
18853
18853
  Ar(d * r + h * s)
18854
18854
  ];
18855
18855
  }
18856
18856
  return a.invert = function(o, l) {
18857
18857
  var c = ut(l), u = ut(o) * c, h = ht(o) * c, f = ht(l), d = f * r - h * s;
18858
18858
  return [
18859
- Tr(h * r + f * s, u * t + d * i),
18859
+ wr(h * r + f * s, u * t + d * i),
18860
18860
  Ar(d * t - u * i)
18861
18861
  ];
18862
18862
  }, a;
@@ -18879,7 +18879,7 @@ function eS(n, e, t, i, r, s) {
18879
18879
  }
18880
18880
  }
18881
18881
  function bu(n, e) {
18882
- e = ji(e), e[0] -= n, ma(e);
18882
+ e = qi(e), e[0] -= n, ma(e);
18883
18883
  var t = Zy(-e[1]);
18884
18884
  return ((-e[2] < 0 ? -t : t) + Kt - Qe) % Kt;
18885
18885
  }
@@ -18892,7 +18892,7 @@ function Wh() {
18892
18892
  lineStart: function() {
18893
18893
  n.push(e = []);
18894
18894
  },
18895
- lineEnd: ur,
18895
+ lineEnd: cr,
18896
18896
  rejoin: function() {
18897
18897
  n.length > 1 && n.push(n.pop().concat(n.shift()));
18898
18898
  },
@@ -18925,7 +18925,7 @@ function Xh(n, e, t, i, r) {
18925
18925
  s.push(y = new vs(m, p, null, !0)), a.push(y.o = new vs(m, null, y, !1)), s.push(y = new vs(g, p, null, !1)), a.push(y.o = new vs(g, null, y, !0));
18926
18926
  }
18927
18927
  }), !!s.length) {
18928
- for (a.sort(e), wu(s), wu(a), o = 0, l = a.length; o < l; ++o)
18928
+ for (a.sort(e), Tu(s), Tu(a), o = 0, l = a.length; o < l; ++o)
18929
18929
  a[o].e = t = !t;
18930
18930
  for (var c = s[0], u, h; ; ) {
18931
18931
  for (var f = c, d = !0; f.v; )
@@ -18954,7 +18954,7 @@ function Xh(n, e, t, i, r) {
18954
18954
  }
18955
18955
  }
18956
18956
  }
18957
- function wu(n) {
18957
+ function Tu(n) {
18958
18958
  if (e = n.length) {
18959
18959
  for (var e, t = 0, i = n[0], r; ++t < e; )
18960
18960
  i.n = r = n[t], r.p = i, i = r;
@@ -18969,10 +18969,10 @@ function tS(n, e) {
18969
18969
  r === 1 ? i = Nt + Qe : r === -1 && (i = -Nt - Qe);
18970
18970
  for (var c = 0, u = n.length; c < u; ++c)
18971
18971
  if (f = (h = n[c]).length)
18972
- for (var h, f, d = h[f - 1], p = Wo(d), _ = d[1] / 2 + _u, m = ht(_), g = ut(_), y = 0; y < f; ++y, p = M, m = R, g = T, d = v) {
18973
- var v = h[y], M = Wo(v), b = v[1] / 2 + _u, R = ht(b), T = ut(b), O = M - p, x = O >= 0 ? 1 : -1, E = x * O, F = E > Xe, ee = m * R;
18974
- if (l.add(Tr(ee * x * ht(E), g * T + ee * ut(E))), a += F ? O + x * Kt : O, F ^ p >= t ^ M >= t) {
18975
- var N = Os(ji(d), ji(v));
18972
+ for (var h, f, d = h[f - 1], p = Wo(d), _ = d[1] / 2 + _u, m = ht(_), g = ut(_), y = 0; y < f; ++y, p = M, m = R, g = w, d = v) {
18973
+ var v = h[y], M = Wo(v), b = v[1] / 2 + _u, R = ht(b), w = ut(b), O = M - p, x = O >= 0 ? 1 : -1, E = x * O, F = E > Xe, ee = m * R;
18974
+ if (l.add(wr(ee * x * ht(E), g * w + ee * ut(E))), a += F ? O + x * Kt : O, F ^ p >= t ^ M >= t) {
18975
+ var N = Os(qi(d), qi(v));
18976
18976
  ma(N);
18977
18977
  var U = Os(s, N);
18978
18978
  ma(U);
@@ -19020,8 +19020,8 @@ function $h(n, e, t, i) {
19020
19020
  }
19021
19021
  function v() {
19022
19022
  g(h[0][0], h[0][1]), o.lineEnd();
19023
- var M = o.clean(), b = a.result(), R, T = b.length, O, x, E;
19024
- if (h.pop(), c.push(h), h = null, !!T) {
19023
+ var M = o.clean(), b = a.result(), R, w = b.length, O, x, E;
19024
+ if (h.pop(), c.push(h), h = null, !!w) {
19025
19025
  if (M & 1) {
19026
19026
  if (x = b[0], (O = x.length - 1) > 0) {
19027
19027
  for (l || (r.polygonStart(), l = !0), r.lineStart(), R = 0; R < O; ++R)
@@ -19030,7 +19030,7 @@ function $h(n, e, t, i) {
19030
19030
  }
19031
19031
  return;
19032
19032
  }
19033
- T > 1 && M & 2 && b.push(b.pop().concat(b.shift())), u.push(b.filter(nS));
19033
+ w > 1 && M & 2 && b.push(b.pop().concat(b.shift())), u.push(b.filter(nS));
19034
19034
  }
19035
19035
  }
19036
19036
  return f;
@@ -19042,7 +19042,7 @@ function nS(n) {
19042
19042
  function iS(n, e) {
19043
19043
  return ((n = n.x)[0] < 0 ? n[1] - Nt - Qe : Nt - n[1]) - ((e = e.x)[0] < 0 ? e[1] - Nt - Qe : Nt - e[1]);
19044
19044
  }
19045
- const Tu = $h(
19045
+ const wu = $h(
19046
19046
  function() {
19047
19047
  return !0;
19048
19048
  },
@@ -19117,22 +19117,22 @@ function aS(n) {
19117
19117
  };
19118
19118
  }
19119
19119
  function l(u, h, f) {
19120
- var d = ji(u), p = ji(h), _ = [1, 0, 0], m = Os(d, p), g = gs(m, m), y = m[0], v = g - y * y;
19120
+ var d = qi(u), p = qi(h), _ = [1, 0, 0], m = Os(d, p), g = gs(m, m), y = m[0], v = g - y * y;
19121
19121
  if (!v)
19122
19122
  return !f && u;
19123
- var M = e * g / v, b = -e * y / v, R = Os(_, m), T = _s(_, M), O = _s(m, b);
19124
- Vo(T, O);
19125
- var x = R, E = gs(T, x), F = gs(x, x), ee = E * E - F * (gs(T, T) - 1);
19123
+ var M = e * g / v, b = -e * y / v, R = Os(_, m), w = _s(_, M), O = _s(m, b);
19124
+ Vo(w, O);
19125
+ var x = R, E = gs(w, x), F = gs(x, x), ee = E * E - F * (gs(w, w) - 1);
19126
19126
  if (!(ee < 0)) {
19127
19127
  var N = qs(ee), U = _s(x, (-E - N) / F);
19128
- if (Vo(U, T), U = pa(U), !f)
19128
+ if (Vo(U, w), U = pa(U), !f)
19129
19129
  return U;
19130
19130
  var C = u[0], z = h[0], H = u[1], V = h[1], K;
19131
19131
  z < C && (K = C, C = z, z = K);
19132
19132
  var Q = z - C, B = lt(Q - Xe) < Qe, q = B || Q < Qe;
19133
19133
  if (!B && V < H && (K = H, H = V, V = K), q ? B ? H + V > 0 ^ U[1] < (lt(U[0] - C) < Qe ? H : V) : H <= U[1] && U[1] <= V : Q > Xe ^ (C <= U[0] && U[0] <= z)) {
19134
19134
  var oe = _s(x, (-E + N) / F);
19135
- return Vo(oe, T), [U, pa(oe)];
19135
+ return Vo(oe, w), [U, pa(oe)];
19136
19136
  }
19137
19137
  }
19138
19138
  }
@@ -19190,7 +19190,7 @@ function lS(n, e, t, i, r, s) {
19190
19190
  }
19191
19191
  }
19192
19192
  }
19193
- var hr = 1e9, xs = -hr;
19193
+ var ur = 1e9, xs = -ur;
19194
19194
  function cS(n, e, t, i) {
19195
19195
  function r(c, u) {
19196
19196
  return n <= c && c <= t && e <= u && u <= i;
@@ -19215,7 +19215,7 @@ function cS(n, e, t, i) {
19215
19215
  return h !== f ? h - f : h === 0 ? u[1] - c[1] : h === 1 ? c[0] - u[0] : h === 2 ? c[1] - u[1] : u[0] - c[0];
19216
19216
  }
19217
19217
  return function(c) {
19218
- var u = c, h = Wh(), f, d, p, _, m, g, y, v, M, b, R, T = {
19218
+ var u = c, h = Wh(), f, d, p, _, m, g, y, v, M, b, R, w = {
19219
19219
  point: O,
19220
19220
  lineStart: ee,
19221
19221
  lineEnd: N,
@@ -19239,10 +19239,10 @@ function cS(n, e, t, i) {
19239
19239
  (z || H) && (c.polygonStart(), z && (c.lineStart(), s(null, null, 1, c), c.lineEnd()), H && Xh(f, o, C, s, c), c.polygonEnd()), u = c, f = d = p = null;
19240
19240
  }
19241
19241
  function ee() {
19242
- T.point = U, d && d.push(p = []), b = !0, M = !1, y = v = NaN;
19242
+ w.point = U, d && d.push(p = []), b = !0, M = !1, y = v = NaN;
19243
19243
  }
19244
19244
  function N() {
19245
- f && (U(_, m), g && M && h.rejoin(), f.push(h.result())), T.point = O, M && u.lineEnd();
19245
+ f && (U(_, m), g && M && h.rejoin(), f.push(h.result())), w.point = O, M && u.lineEnd();
19246
19246
  }
19247
19247
  function U(C, z) {
19248
19248
  var H = r(C, z);
@@ -19251,28 +19251,28 @@ function cS(n, e, t, i) {
19251
19251
  else if (H && M)
19252
19252
  u.point(C, z);
19253
19253
  else {
19254
- var V = [y = Math.max(xs, Math.min(hr, y)), v = Math.max(xs, Math.min(hr, v))], K = [C = Math.max(xs, Math.min(hr, C)), z = Math.max(xs, Math.min(hr, z))];
19254
+ var V = [y = Math.max(xs, Math.min(ur, y)), v = Math.max(xs, Math.min(ur, v))], K = [C = Math.max(xs, Math.min(ur, C)), z = Math.max(xs, Math.min(ur, z))];
19255
19255
  lS(V, K, n, e, t, i) ? (M || (u.lineStart(), u.point(V[0], V[1])), u.point(K[0], K[1]), H || u.lineEnd(), R = !1) : H && (u.lineStart(), u.point(C, z), R = !1);
19256
19256
  }
19257
19257
  y = C, v = z, M = H;
19258
19258
  }
19259
- return T;
19259
+ return w;
19260
19260
  };
19261
19261
  }
19262
19262
  const Au = (n) => n;
19263
- var Yi = 1 / 0, Fs = Yi, Cr = -Yi, Bs = Cr, uS = {
19263
+ var ji = 1 / 0, Fs = ji, Cr = -ji, Bs = Cr, uS = {
19264
19264
  point: hS,
19265
- lineStart: ur,
19266
- lineEnd: ur,
19267
- polygonStart: ur,
19268
- polygonEnd: ur,
19265
+ lineStart: cr,
19266
+ lineEnd: cr,
19267
+ polygonStart: cr,
19268
+ polygonEnd: cr,
19269
19269
  result: function() {
19270
- var n = [[Yi, Fs], [Cr, Bs]];
19271
- return Cr = Bs = -(Fs = Yi = 1 / 0), n;
19270
+ var n = [[ji, Fs], [Cr, Bs]];
19271
+ return Cr = Bs = -(Fs = ji = 1 / 0), n;
19272
19272
  }
19273
19273
  };
19274
19274
  function hS(n, e) {
19275
- n < Yi && (Yi = n), n > Cr && (Cr = n), e < Fs && (Fs = e), e > Bs && (Bs = e);
19275
+ n < ji && (ji = n), n > Cr && (Cr = n), e < Fs && (Fs = e), e > Bs && (Bs = e);
19276
19276
  }
19277
19277
  const Cu = uS;
19278
19278
  function Va(n) {
@@ -19346,8 +19346,8 @@ function _S(n, e) {
19346
19346
  function t(i, r, s, a, o, l, c, u, h, f, d, p, _, m) {
19347
19347
  var g = c - i, y = u - r, v = g * g + y * y;
19348
19348
  if (v > 4 * e && _--) {
19349
- var M = a + f, b = o + d, R = l + p, T = qs(M * M + b * b + R * R), O = Ar(R /= T), x = lt(lt(R) - 1) < Qe || lt(s - h) < Qe ? (s + h) / 2 : Tr(b, M), E = n(x, O), F = E[0], ee = E[1], N = F - i, U = ee - r, C = y * N - g * U;
19350
- (C * C / v > e || lt((g * N + y * U) / v - 0.5) > 0.3 || a * f + o * d + l * p < mS) && (t(i, r, s, a, o, l, F, ee, x, M /= T, b /= T, R, _, m), m.point(F, ee), t(F, ee, x, M, b, R, c, u, h, f, d, p, _, m));
19349
+ var M = a + f, b = o + d, R = l + p, w = qs(M * M + b * b + R * R), O = Ar(R /= w), x = lt(lt(R) - 1) < Qe || lt(s - h) < Qe ? (s + h) / 2 : wr(b, M), E = n(x, O), F = E[0], ee = E[1], N = F - i, U = ee - r, C = y * N - g * U;
19350
+ (C * C / v > e || lt((g * N + y * U) / v - 0.5) > 0.3 || a * f + o * d + l * p < mS) && (t(i, r, s, a, o, l, F, ee, x, M /= w, b /= w, R, _, m), m.point(F, ee), t(F, ee, x, M, b, R, c, u, h, f, d, p, _, m));
19351
19351
  }
19352
19352
  }
19353
19353
  return function(i) {
@@ -19369,19 +19369,19 @@ function _S(n, e) {
19369
19369
  h = NaN, m.point = v, i.lineStart();
19370
19370
  }
19371
19371
  function v(O, x) {
19372
- var E = ji([O, x]), F = n(O, x);
19372
+ var E = qi([O, x]), F = n(O, x);
19373
19373
  t(h, f, u, d, p, _, h = F[0], f = F[1], u = O, d = E[0], p = E[1], _ = E[2], Ru, i), i.point(h, f);
19374
19374
  }
19375
19375
  function M() {
19376
19376
  m.point = g, i.lineEnd();
19377
19377
  }
19378
19378
  function b() {
19379
- y(), m.point = R, m.lineEnd = T;
19379
+ y(), m.point = R, m.lineEnd = w;
19380
19380
  }
19381
19381
  function R(O, x) {
19382
19382
  v(r = O, x), s = h, a = f, o = d, l = p, c = _, m.point = v;
19383
19383
  }
19384
- function T() {
19384
+ function w() {
19385
19385
  t(h, f, u, d, p, _, s, a, r, o, l, c, Ru, i), m.lineEnd = M, M();
19386
19386
  }
19387
19387
  return m;
@@ -19425,7 +19425,7 @@ function SS(n) {
19425
19425
  })();
19426
19426
  }
19427
19427
  function MS(n) {
19428
- var e, t = 150, i = 480, r = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, h = 0, f = 1, d = 1, p = null, _ = Tu, m = null, g, y, v, M = Au, b = 0.5, R, T, O, x, E;
19428
+ var e, t = 150, i = 480, r = 250, s = 0, a = 0, o = 0, l = 0, c = 0, u, h = 0, f = 1, d = 1, p = null, _ = wu, m = null, g, y, v, M = Au, b = 0.5, R, w, O, x, E;
19429
19429
  function F(C) {
19430
19430
  return O(C[0] * mt, C[1] * mt);
19431
19431
  }
@@ -19439,7 +19439,7 @@ function MS(n) {
19439
19439
  }, F.postclip = function(C) {
19440
19440
  return arguments.length ? (M = C, m = g = y = v = null, U()) : M;
19441
19441
  }, F.clipAngle = function(C) {
19442
- return arguments.length ? (_ = +C ? aS(p = C * mt) : (p = null, Tu), U()) : p * Gt;
19442
+ return arguments.length ? (_ = +C ? aS(p = C * mt) : (p = null, wu), U()) : p * Gt;
19443
19443
  }, F.clipExtent = function(C) {
19444
19444
  return arguments.length ? (M = C == null ? (m = g = y = v = null, Au) : cS(m = +C[0][0], g = +C[0][1], y = +C[1][0], v = +C[1][1]), U()) : m == null ? null : [[m, g], [y, v]];
19445
19445
  }, F.scale = function(C) {
@@ -19457,7 +19457,7 @@ function MS(n) {
19457
19457
  }, F.reflectY = function(C) {
19458
19458
  return arguments.length ? (d = C ? -1 : 1, N()) : d < 0;
19459
19459
  }, F.precision = function(C) {
19460
- return arguments.length ? (R = Lu(T, b = C * C), U()) : qs(b);
19460
+ return arguments.length ? (R = Lu(w, b = C * C), U()) : qs(b);
19461
19461
  }, F.fitExtent = function(C, z) {
19462
19462
  return qh(F, C, z);
19463
19463
  }, F.fitSize = function(C, z) {
@@ -19469,7 +19469,7 @@ function MS(n) {
19469
19469
  };
19470
19470
  function N() {
19471
19471
  var C = Pu(t, 0, 0, f, d, h).apply(null, e(s, a)), z = Pu(t, i - C[0], r - C[1], f, d, h);
19472
- return u = Vh(o, l, c), T = ga(e, z), O = ga(u, T), R = Lu(T, b), U();
19472
+ return u = Vh(o, l, c), w = ga(e, z), O = ga(u, w), R = Lu(w, b), U();
19473
19473
  }
19474
19474
  function U() {
19475
19475
  return x = E = null, F;
@@ -19504,16 +19504,16 @@ function ES(n) {
19504
19504
  }
19505
19505
  return u();
19506
19506
  }
19507
- function fr(n, e, t) {
19507
+ function hr(n, e, t) {
19508
19508
  this.k = n, this.x = e, this.y = t;
19509
19509
  }
19510
- fr.prototype = {
19511
- constructor: fr,
19510
+ hr.prototype = {
19511
+ constructor: hr,
19512
19512
  scale: function(n) {
19513
- return n === 1 ? this : new fr(this.k * n, this.x, this.y);
19513
+ return n === 1 ? this : new hr(this.k * n, this.x, this.y);
19514
19514
  },
19515
19515
  translate: function(n, e) {
19516
- return n === 0 & e === 0 ? this : new fr(this.k, this.x + this.k * n, this.y + this.k * e);
19516
+ return n === 0 & e === 0 ? this : new hr(this.k, this.x + this.k * n, this.y + this.k * e);
19517
19517
  },
19518
19518
  apply: function(n) {
19519
19519
  return [n[0] * this.k + this.x, n[1] * this.k + this.y];
@@ -19543,7 +19543,7 @@ fr.prototype = {
19543
19543
  return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
19544
19544
  }
19545
19545
  };
19546
- fr.prototype;
19546
+ hr.prototype;
19547
19547
  function jh(n, e) {
19548
19548
  return function() {
19549
19549
  return n.apply(e, arguments);
@@ -19552,12 +19552,12 @@ 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: er } = Array, Rr = Ys("undefined");
19556
- function wS(n) {
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");
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
19559
  const Yh = xn("ArrayBuffer");
19560
- function TS(n) {
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;
19563
19563
  }
@@ -19575,7 +19575,7 @@ function Ur(n, e, { allOwnKeys: t = !1 } = {}) {
19575
19575
  if (n === null || typeof n == "undefined")
19576
19576
  return;
19577
19577
  let i, r;
19578
- if (typeof n != "object" && (n = [n]), er(n))
19578
+ if (typeof n != "object" && (n = [n]), Qi(n))
19579
19579
  for (i = 0, r = n.length; i < r; i++)
19580
19580
  e.call(null, n[i], i, n);
19581
19581
  else {
@@ -19598,7 +19598,7 @@ const Jh = (() => typeof globalThis != "undefined" ? globalThis : typeof self !=
19598
19598
  function xa() {
19599
19599
  const { caseless: n } = Qh(this) && this || {}, e = {}, t = (i, r) => {
19600
19600
  const s = n && Zh(e, r) || r;
19601
- Es(e[s]) && Es(i) ? e[s] = xa(e[s], i) : Es(i) ? e[s] = xa({}, i) : er(i) ? e[s] = i.slice() : e[s] = i;
19601
+ Es(e[s]) && Es(i) ? e[s] = xa(e[s], i) : Es(i) ? e[s] = xa({}, i) : Qi(i) ? e[s] = i.slice() : e[s] = i;
19602
19602
  };
19603
19603
  for (let i = 0, r = arguments.length; i < r; i++)
19604
19604
  arguments[i] && Ur(arguments[i], t);
@@ -19628,7 +19628,7 @@ const FS = (n, e, t, { allOwnKeys: i } = {}) => (Ur(e, (r, s) => {
19628
19628
  }, GS = (n) => {
19629
19629
  if (!n)
19630
19630
  return null;
19631
- if (er(n))
19631
+ if (Qi(n))
19632
19632
  return n;
19633
19633
  let e = n.length;
19634
19634
  if (!Kh(e))
@@ -19682,7 +19682,7 @@ const FS = (n, e, t, { allOwnKeys: i } = {}) => (Ur(e, (r, s) => {
19682
19682
  t[s] = !0;
19683
19683
  });
19684
19684
  };
19685
- return er(n) ? i(n) : i(String(n).split(e)), t;
19685
+ return Qi(n) ? i(n) : i(String(n).split(e)), t;
19686
19686
  }, ZS = () => {
19687
19687
  }, JS = (n, e) => (n = +n, Number.isFinite(n) ? n : e), Xo = "abcdefghijklmnopqrstuvwxyz", Uu = "0123456789", tf = {
19688
19688
  DIGIT: Uu,
@@ -19705,7 +19705,7 @@ const tM = (n) => {
19705
19705
  return;
19706
19706
  if (!("toJSON" in i)) {
19707
19707
  e[r] = i;
19708
- const s = er(i) ? [] : {};
19708
+ const s = Qi(i) ? [] : {};
19709
19709
  return Ur(i, (a, o) => {
19710
19710
  const l = t(a, r + 1);
19711
19711
  !Rr(l) && (s[o] = l);
@@ -19716,11 +19716,11 @@ const tM = (n) => {
19716
19716
  };
19717
19717
  return t(n, 0);
19718
19718
  }, nM = xn("AsyncFunction"), iM = (n) => n && (Ks(n) || Yt(n)) && Yt(n.then) && Yt(n.catch), Z = {
19719
- isArray: er,
19719
+ isArray: Qi,
19720
19720
  isArrayBuffer: Yh,
19721
- isBuffer: wS,
19721
+ isBuffer: TS,
19722
19722
  isFormData: US,
19723
- isArrayBufferView: TS,
19723
+ isArrayBufferView: wS,
19724
19724
  isString: AS,
19725
19725
  isNumber: Kh,
19726
19726
  isBoolean: CS,
@@ -20151,7 +20151,7 @@ const Ya = ja, vM = Z.toObjectSet([
20151
20151
  r = a.indexOf(":"), t = a.substring(0, r).trim().toLowerCase(), i = a.substring(r + 1).trim(), !(!t || e[t] && vM[t]) && (t === "set-cookie" ? e[t] ? e[t].push(i) : e[t] = [i] : e[t] = e[t] ? e[t] + ", " + i : i);
20152
20152
  }), e;
20153
20153
  }, Bu = Symbol("internals");
20154
- function ar(n) {
20154
+ function or(n) {
20155
20155
  return n && String(n).trim().toLowerCase();
20156
20156
  }
20157
20157
  function bs(n) {
@@ -20196,7 +20196,7 @@ class Js {
20196
20196
  set(e, t, i) {
20197
20197
  const r = this;
20198
20198
  function s(o, l, c) {
20199
- const u = ar(l);
20199
+ const u = or(l);
20200
20200
  if (!u)
20201
20201
  throw new Error("header name must be a non-empty string");
20202
20202
  const h = Z.findKey(r, u);
@@ -20206,7 +20206,7 @@ class Js {
20206
20206
  return Z.isPlainObject(e) || e instanceof this.constructor ? a(e, t) : Z.isString(e) && (e = e.trim()) && !SM(e) ? a(xM(e), t) : e != null && s(t, e, i), this;
20207
20207
  }
20208
20208
  get(e, t) {
20209
- if (e = ar(e), e) {
20209
+ if (e = or(e), e) {
20210
20210
  const i = Z.findKey(this, e);
20211
20211
  if (i) {
20212
20212
  const r = this[i];
@@ -20223,7 +20223,7 @@ class Js {
20223
20223
  }
20224
20224
  }
20225
20225
  has(e, t) {
20226
- if (e = ar(e), e) {
20226
+ if (e = or(e), e) {
20227
20227
  const i = Z.findKey(this, e);
20228
20228
  return !!(i && this[i] !== void 0 && (!t || $o(this, this[i], i, t)));
20229
20229
  }
@@ -20233,7 +20233,7 @@ class Js {
20233
20233
  const i = this;
20234
20234
  let r = !1;
20235
20235
  function s(a) {
20236
- if (a = ar(a), a) {
20236
+ if (a = or(a), a) {
20237
20237
  const o = Z.findKey(i, a);
20238
20238
  o && (!t || $o(i, i[o], o, t)) && (delete i[o], r = !0);
20239
20239
  }
@@ -20292,7 +20292,7 @@ class Js {
20292
20292
  accessors: {}
20293
20293
  }).accessors, r = this.prototype;
20294
20294
  function s(a) {
20295
- const o = ar(a);
20295
+ const o = or(a);
20296
20296
  i[o] || (EM(r, a), i[o] = !0);
20297
20297
  }
20298
20298
  return Z.isArray(e) ? e.forEach(s) : s(e), this;
@@ -20336,7 +20336,7 @@ function bM(n, e, t) {
20336
20336
  t
20337
20337
  ));
20338
20338
  }
20339
- const wM = sn.isStandardBrowserEnv ? (
20339
+ const TM = sn.isStandardBrowserEnv ? (
20340
20340
  // Standard browser envs support document.cookie
20341
20341
  function() {
20342
20342
  return {
@@ -20367,14 +20367,14 @@ const wM = sn.isStandardBrowserEnv ? (
20367
20367
  };
20368
20368
  }()
20369
20369
  );
20370
- function TM(n) {
20370
+ function wM(n) {
20371
20371
  return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(n);
20372
20372
  }
20373
20373
  function AM(n, e) {
20374
20374
  return e ? n.replace(/\/+$/, "") + "/" + e.replace(/^\/+/, "") : n;
20375
20375
  }
20376
20376
  function hf(n, e) {
20377
- return n && !TM(e) ? AM(n, e) : e;
20377
+ return n && !wM(e) ? AM(n, e) : e;
20378
20378
  }
20379
20379
  const CM = sn.isStandardBrowserEnv ? (
20380
20380
  // Standard browser envs have full support of the APIs needed to test
@@ -20497,7 +20497,7 @@ const PM = typeof XMLHttpRequest != "undefined", DM = PM && function(n) {
20497
20497
  c
20498
20498
  )), c = null;
20499
20499
  }, sn.isStandardBrowserEnv) {
20500
- const d = (n.withCredentials || CM(u)) && n.xsrfCookieName && wM.read(n.xsrfCookieName);
20500
+ const d = (n.withCredentials || CM(u)) && n.xsrfCookieName && TM.read(n.xsrfCookieName);
20501
20501
  d && s.set(n.xsrfHeaderName, d);
20502
20502
  }
20503
20503
  r === void 0 && s.setContentType(null), "setRequestHeader" in c && Z.forEach(s.toJSON(), function(p, _) {
@@ -20512,11 +20512,11 @@ const PM = typeof XMLHttpRequest != "undefined", DM = PM && function(n) {
20512
20512
  }
20513
20513
  c.send(r || null);
20514
20514
  });
20515
- }, ws = {
20515
+ }, Ts = {
20516
20516
  http: rM,
20517
20517
  xhr: DM
20518
20518
  };
20519
- Z.forEach(ws, (n, e) => {
20519
+ Z.forEach(Ts, (n, e) => {
20520
20520
  if (n) {
20521
20521
  try {
20522
20522
  Object.defineProperty(n, "name", { value: e });
@@ -20530,20 +20530,20 @@ const ff = {
20530
20530
  n = Z.isArray(n) ? n : [n];
20531
20531
  const { length: e } = n;
20532
20532
  let t, i;
20533
- for (let r = 0; r < e && (t = n[r], !(i = Z.isString(t) ? ws[t.toLowerCase()] : t)); r++)
20533
+ for (let r = 0; r < e && (t = n[r], !(i = Z.isString(t) ? Ts[t.toLowerCase()] : t)); r++)
20534
20534
  ;
20535
20535
  if (!i)
20536
20536
  throw i === !1 ? new $e(
20537
20537
  `Adapter ${t} is not supported by the environment`,
20538
20538
  "ERR_NOT_SUPPORT"
20539
20539
  ) : new Error(
20540
- Z.hasOwnProp(ws, t) ? `Adapter '${t}' is not available in the build` : `Unknown adapter '${t}'`
20540
+ Z.hasOwnProp(Ts, t) ? `Adapter '${t}' is not available in the build` : `Unknown adapter '${t}'`
20541
20541
  );
20542
20542
  if (!Z.isFunction(i))
20543
20543
  throw new TypeError("adapter is not a function");
20544
20544
  return i;
20545
20545
  },
20546
- adapters: ws
20546
+ adapters: Ts
20547
20547
  };
20548
20548
  function jo(n) {
20549
20549
  if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
@@ -20568,7 +20568,7 @@ function Hu(n) {
20568
20568
  });
20569
20569
  }
20570
20570
  const ku = (n) => n instanceof Dn ? n.toJSON() : n;
20571
- function Ki(n, e) {
20571
+ function Yi(n, e) {
20572
20572
  e = e || {};
20573
20573
  const t = {};
20574
20574
  function i(c, u, h) {
@@ -20695,7 +20695,7 @@ class zs {
20695
20695
  * @returns {Promise} The Promise to be fulfilled
20696
20696
  */
20697
20697
  request(e, t) {
20698
- typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ki(this.defaults, t);
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
20701
  silentJSONParsing: Fn.transitional(Fn.boolean),
@@ -20754,14 +20754,14 @@ class zs {
20754
20754
  return u;
20755
20755
  }
20756
20756
  getUri(e) {
20757
- e = Ki(this.defaults, e);
20757
+ e = Yi(this.defaults, e);
20758
20758
  const t = hf(e.baseURL, e.url);
20759
20759
  return af(t, e.params, e.paramsSerializer);
20760
20760
  }
20761
20761
  }
20762
20762
  Z.forEach(["delete", "get", "head", "options"], function(e) {
20763
20763
  zs.prototype[e] = function(t, i) {
20764
- return this.request(Ki(i || {}, {
20764
+ return this.request(Yi(i || {}, {
20765
20765
  method: e,
20766
20766
  url: t,
20767
20767
  data: (i || {}).data
@@ -20771,7 +20771,7 @@ Z.forEach(["delete", "get", "head", "options"], function(e) {
20771
20771
  Z.forEach(["post", "put", "patch"], function(e) {
20772
20772
  function t(i) {
20773
20773
  return function(s, a, o) {
20774
- return this.request(Ki(o || {}, {
20774
+ return this.request(Yi(o || {}, {
20775
20775
  method: e,
20776
20776
  headers: i ? {
20777
20777
  "Content-Type": "multipart/form-data"
@@ -20783,7 +20783,7 @@ Z.forEach(["post", "put", "patch"], function(e) {
20783
20783
  }
20784
20784
  zs.prototype[e] = t(), zs.prototype[e + "Form"] = t(!0);
20785
20785
  });
20786
- const Ts = zs;
20786
+ const ws = zs;
20787
20787
  class Za {
20788
20788
  constructor(e) {
20789
20789
  if (typeof e != "function")
@@ -20931,13 +20931,13 @@ Object.entries(Ma).forEach(([n, e]) => {
20931
20931
  });
20932
20932
  const FM = Ma;
20933
20933
  function pf(n) {
20934
- const e = new Ts(n), t = jh(Ts.prototype.request, e);
20935
- return Z.extend(t, Ts.prototype, e, { allOwnKeys: !0 }), Z.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(r) {
20936
- return pf(Ki(n, r));
20934
+ const e = new ws(n), t = jh(ws.prototype.request, e);
20935
+ return Z.extend(t, ws.prototype, e, { allOwnKeys: !0 }), Z.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(r) {
20936
+ return pf(Yi(n, r));
20937
20937
  }, t;
20938
20938
  }
20939
20939
  const gt = pf(Ya);
20940
- gt.Axios = Ts;
20940
+ gt.Axios = ws;
20941
20941
  gt.CanceledError = Nr;
20942
20942
  gt.CancelToken = UM;
20943
20943
  gt.isCancel = uf;
@@ -20950,7 +20950,7 @@ gt.all = function(e) {
20950
20950
  };
20951
20951
  gt.spread = NM;
20952
20952
  gt.isAxiosError = OM;
20953
- gt.mergeConfig = Ki;
20953
+ gt.mergeConfig = Yi;
20954
20954
  gt.AxiosHeaders = Dn;
20955
20955
  gt.formToJSON = (n) => cf(Z.isHTMLForm(n) ? new FormData(n) : n);
20956
20956
  gt.getAdapter = ff.getAdapter;
@@ -20995,7 +20995,7 @@ class HM {
20995
20995
  return e.forEach((t) => this.track(t)), e;
20996
20996
  if ((e.dispose || e instanceof at) && this.data.add(e), e instanceof at)
20997
20997
  this.track(e.geometry), this.track(e.material), this.track(e.children);
20998
- else if (e instanceof Ji) {
20998
+ else if (e instanceof Zi) {
20999
20999
  for (const t of Object.values(e))
21000
21000
  t instanceof It && this.track(t);
21001
21001
  if (e.uniforms) {
@@ -21017,8 +21017,8 @@ class HM {
21017
21017
  this.data.clear();
21018
21018
  }
21019
21019
  }
21020
- let Bi = new HM();
21021
- const ys = Bi.track.bind(Bi), kM = bf.extend({
21020
+ let vr = new HM();
21021
+ const ys = vr.track.bind(vr), kM = bf.extend({
21022
21022
  props: {
21023
21023
  adcode: {
21024
21024
  // 地图code
@@ -21050,7 +21050,7 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21050
21050
  },
21051
21051
  // 缩放
21052
21052
  scale() {
21053
- return 30 * this.mapScale;
21053
+ return 30 * this.mapScale * this.sizeScale;
21054
21054
  },
21055
21055
  // 手动缩放
21056
21056
  mouseScale() {
@@ -21115,12 +21115,14 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21115
21115
  loading: !0,
21116
21116
  baseScale: 0,
21117
21117
  wheelScale: 0,
21118
+ sizeScale: 0,
21118
21119
  centroidMapList: { 1e5: [104, 37.5] },
21119
- baseRem: 1
21120
+ baseRem: 1,
21121
+ scaleTimer: null
21120
21122
  };
21121
21123
  },
21122
21124
  mounted() {
21123
- Bi.dispose(), this.getData(), this.canvasDom = this.$refs.canvas, this.size = { width: this.$el.offsetWidth, height: this.$el.offsetHeight }, this.viewObserver = new ResizeObserver(this.updateViewSize), this.viewObserver.observe(this.$el), this.create();
21125
+ vr.dispose(), this.getData(), this.canvasDom = this.$refs.canvas, this.size = { width: this.$el.offsetWidth, height: this.$el.offsetHeight }, this.viewObserver = new ResizeObserver(this.updateViewSize), this.viewObserver.observe(this.$el), this.create();
21124
21126
  },
21125
21127
  methods: {
21126
21128
  // 获取地图数据
@@ -21128,23 +21130,26 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21128
21130
  this.code && (this.loading = !0, mf(this.code).then((n) => {
21129
21131
  this.mapScale = Math.max(n.scale * 0.8, 1), this.mapData = n;
21130
21132
  let e = De({}, this.centroidMapList);
21131
- if (n.features.forEach((t) => {
21132
- e[t.adcode] = t.centroid || t.center;
21133
- }), !this.centroidMapList[this.code]) {
21134
- let t = [], i = [];
21135
- this.mapData.features.forEach((r) => {
21136
- r.geometry.type === "MultiPolygon" ? r.geometry.coordinates.forEach((s) => {
21137
- s.forEach((a) => {
21138
- a.forEach((o) => {
21139
- t.push(o[0]), i.push(o[1]);
21133
+ n.features.forEach((r) => {
21134
+ e[r.adcode] = r.centroid || r.center;
21135
+ });
21136
+ let t = [], i = [];
21137
+ if (!this.centroidMapList[this.code] || !this.sizeScale) {
21138
+ this.mapData.features.forEach((a) => {
21139
+ a.geometry.type === "MultiPolygon" ? a.geometry.coordinates.forEach((o) => {
21140
+ o.forEach((l) => {
21141
+ l.forEach((c) => {
21142
+ t.push(c[0]), i.push(c[1]);
21140
21143
  });
21141
21144
  });
21142
- }) : r.geometry.type === "Polygon" && r.geometry.coordinates.forEach((s) => {
21143
- s.forEach((a) => {
21144
- t.push(a[0]), i.push(a[1]);
21145
+ }) : a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((o) => {
21146
+ o.forEach((l) => {
21147
+ t.push(l[0]), i.push(l[1]);
21145
21148
  });
21146
21149
  });
21147
- }), e[this.code] = [(Math.max(...t) - Math.min(...t)) / 2 + Math.min(...t), (Math.max(...i) - Math.min(...i)) / 2 + Math.min(...i)];
21150
+ });
21151
+ const r = Math.max(...t) - Math.min(...t), s = Math.max(...i) - Math.min(...i);
21152
+ e[this.code] || (e[this.code] = [r / 2 + Math.min(...t), s / 2 + Math.min(...i)]), this.sizeScale || (this.sizeScale = 1 / (this.$el.offsetWidth / this.$el.offsetHeight / (r / s)) + (this.code === 1e5 ? 0.2 : 0));
21148
21153
  }
21149
21154
  this.centroidMapList = De({}, e), this.renderMap(), this.loading = !1, this.controller && this.controller.reset();
21150
21155
  }));
@@ -21154,7 +21159,7 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21154
21159
  this.canvasDom && (this.canvasDom.style.position = "absolute"), this.baseRem = Math.max(window.outerWidth / 1920, 1), this.size = {
21155
21160
  width: this.$el.offsetWidth,
21156
21161
  height: this.$el.offsetHeight
21157
- }, this.canvasDom && (this.canvasDom.style.position = ""), this.controller && this.controller.reset(), this.camera && (this.camera.aspect = this.size.width / this.size.height, this.camera.updateProjectionMatrix(), this.renderer.setSize(this.size.width, this.size.height), this.infoRender.setSize(this.size.width, this.size.height), Bi.dispose(), this.renderMap());
21162
+ }, this.canvasDom && (this.canvasDom.style.position = ""), this.controller && this.controller.reset(), this.camera && (this.camera.aspect = this.size.width / this.size.height, this.camera.updateProjectionMatrix(), this.renderer.setSize(this.size.width, this.size.height), this.infoRender.setSize(this.size.width, this.size.height), this.renderMap());
21158
21163
  },
21159
21164
  // 创建地图
21160
21165
  create() {
@@ -21165,13 +21170,13 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21165
21170
  },
21166
21171
  // 绘制地图
21167
21172
  renderMap() {
21168
- if (this.loading || !this.scene) {
21173
+ if (this.loading || !this.scene || !this.centroid) {
21169
21174
  setTimeout(() => {
21170
21175
  this.renderMap();
21171
21176
  }, 200);
21172
21177
  return;
21173
21178
  }
21174
- Bi.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);
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);
21175
21180
  const n = ys(new at());
21176
21181
  n.name = "map";
21177
21182
  const e = Du().center(this.centroid).scale(this.scale).translate([0, 0]), { blockList: t, infoData: i } = this.drawItemArea(e);
@@ -21179,7 +21184,7 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21179
21184
  const r = this.drawActiveTag(i, e);
21180
21185
  r.length && this.circleMesh.add(...r), this.scene.add(this.circleMesh);
21181
21186
  const s = ys(new Iy(16777215, 3e3));
21182
- s.position.set(0, 8, 20), this.scene.add(s), this.loading = !1, this.animate();
21187
+ s.position.set(0, 8, 20), this.scene.add(s), this.loading = !1, this.drawTips(), this.animate();
21183
21188
  },
21184
21189
  // 绘制地图区域
21185
21190
  drawItemArea(n) {
@@ -21243,21 +21248,21 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21243
21248
  this.infoRender = new zy(), this.infoRender.setSize(this.size.width, this.size.height), this.infoRender.domElement.style.position = "absolute", this.infoRender.domElement.style.top = "0", this.$refs.tag.appendChild(this.infoRender.domElement);
21244
21249
  },
21245
21250
  // 绘制线条
21246
- drawLine(n, e, t, i, r = 1) {
21247
- let s = [];
21248
- for (let c = 0; c < n.length; c++) {
21249
- const u = n[c];
21250
- s.push(u.x, u.y, u.z);
21251
+ drawLine(n, e, t, i) {
21252
+ let r = [];
21253
+ for (let l = 0; l < n.length; l++) {
21254
+ const c = n[l];
21255
+ r.push(c.x, c.y, c.z);
21251
21256
  }
21252
- const a = new Hh();
21253
- a.setPositions(s);
21254
- const o = new Ga({
21257
+ const s = new Hh();
21258
+ s.setPositions(r);
21259
+ const a = new Ga({
21255
21260
  color: e,
21256
- linewidth: 0.1 * r,
21261
+ linewidth: 0.08 * this.mouseScale,
21257
21262
  worldUnits: !0,
21258
21263
  alphaToCoverage: !0
21259
- }), l = new Vy(a, o);
21260
- return l.name = i || "line", l.computeLineDistances(), t && (l.userData = De({}, t)), l;
21264
+ }), o = new Vy(s, a);
21265
+ return o.name = i || "line", o.computeLineDistances(), t && (o.userData = De({}, t)), o;
21261
21266
  },
21262
21267
  // 绘制小弹窗
21263
21268
  drawTips() {
@@ -21309,10 +21314,10 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21309
21314
  M.name = "tips", M.userData = o.userData, M.position.set(c[0] + h[0], -c[1] + h[1], 1.2), M.renderOrder = 200, M.element.addEventListener("pointerdown", this.handleTipsItemClick);
21310
21315
  let b = [];
21311
21316
  b.push(new D(c[0], -c[1], 1)), b.push(new D(c[0] + u[0], -c[1] + u[1] + 0.1, 1)), b.push(new D(c[0] + h[0], -c[1] + h[1] + 0.1, 1));
21312
- const R = this.drawLine(b, "#ffda57", null, null, this.mouseScale);
21317
+ const R = this.drawLine(b, "#ffda57");
21313
21318
  this.tipsMesh.add(d), this.tipsMesh.add(M), this.tipsMesh.add(R);
21314
- const T = (x = (O = this.scene.children.find((E) => E.name === "map")) == null ? void 0 : O.children.find((E) => E.name === l.adcode)) == null ? void 0 : x.children;
21315
- T == null || T.forEach((E) => {
21319
+ const w = (x = (O = this.scene.children.find((E) => E.name === "map")) == null ? void 0 : O.children.find((E) => E.name === l.adcode)) == null ? void 0 : x.children;
21320
+ w == null || w.forEach((E) => {
21316
21321
  E.name === l.adcode && this.activeMesh.push(E);
21317
21322
  }), this.activeMesh.forEach((E) => {
21318
21323
  switch (E.type) {
@@ -21353,14 +21358,14 @@ const ys = Bi.track.bind(Bi), kM = bf.extend({
21353
21358
  },
21354
21359
  // 滚轮事件
21355
21360
  handleMouseWheel() {
21356
- this.wheelScale = this.controller.getDistance(), this.animate();
21361
+ this.wheelScale = this.controller.getDistance(), this.animate(), clearTimeout(this.scaleTimer), this.scaleTimer = setTimeout(() => this.renderMap(), 1e3);
21357
21362
  },
21358
21363
  animate() {
21359
21364
  this.renderer && (this.renderer.render(this.scene, this.camera), this.infoRender.render(this.scene, this.camera));
21360
21365
  }
21361
21366
  },
21362
21367
  beforeDestroy() {
21363
- Bi.dispose();
21368
+ vr.dispose();
21364
21369
  }
21365
21370
  });
21366
21371
  var GM = function() {
@@ -21375,13 +21380,13 @@ var GM = function() {
21375
21380
  })]);
21376
21381
  }, VM = [];
21377
21382
  const Wu = {};
21378
- var WM = /* @__PURE__ */ wt(
21383
+ var WM = /* @__PURE__ */ Tt(
21379
21384
  kM,
21380
21385
  GM,
21381
21386
  VM,
21382
21387
  !1,
21383
21388
  XM,
21384
- "8054cab2",
21389
+ "0ea61248",
21385
21390
  null,
21386
21391
  null
21387
21392
  );