ss-component-new 1.1.593 → 1.1.595

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.
Files changed (42) hide show
  1. package/dist/{index-DhBhJWsX.js → index--x1v2tVg.js} +1 -1
  2. package/dist/{index-BSLLZL_Z.cjs → index-B4LVTE2a.cjs} +37 -37
  3. package/dist/{index-BrNZ6SJz.js → index-B8CqF9dV.js} +4 -4
  4. package/dist/{index-B-Wj8Fp-.cjs → index-BA2jgTGT.cjs} +1 -1
  5. package/dist/{index-CfkBrtB5.cjs → index-BEhahmXR.cjs} +1 -1
  6. package/dist/{index-D-VZWLpB.js → index-BNRTUsQy.js} +1 -1
  7. package/dist/index-BYIt5bNH.cjs +1 -0
  8. package/dist/{index-BtAaX4CF.js → index-B_wxih7J.js} +1 -1
  9. package/dist/{index-Ck9C82pQ.js → index-Bb1N38wE.js} +7 -7
  10. package/dist/{index-C6WJJSJN.cjs → index-Bn_QEmCm.cjs} +1 -1
  11. package/dist/{index-BEBZO2Xj.cjs → index-Boa9Jb6y.cjs} +1 -1
  12. package/dist/{index-CqFbq0Sk.js → index-CGjO9Rfc.js} +4 -4
  13. package/dist/{index-BGtOcXVg.cjs → index-CWYl8R8Z.cjs} +1 -1
  14. package/dist/{index-SqYyqtY7.cjs → index-CaYc-fdU.cjs} +1 -1
  15. package/dist/{index-D-GfvBb0.js → index-CjrWmm5T.js} +679 -659
  16. package/dist/{index-CFqiQp_G.js → index-DbfXZuSO.js} +1 -1
  17. package/dist/{index-3DI-7A9U.cjs → index-Dl_vrtf5.cjs} +1 -1
  18. package/dist/{index-D0JsHny0.cjs → index-DnfA7Rxr.cjs} +1 -1
  19. package/dist/{index-CFEUrpsL.cjs → index-Dsnvzj37.cjs} +1 -1
  20. package/dist/{index-DYUxG3lJ.js → index-DulzcrfM.js} +1 -1
  21. package/dist/{index-D7CFeFSq.js → index-QCZigjx6.js} +1 -1
  22. package/dist/{index-DHw_VNML.js → index-ROm5ioP3.js} +2 -2
  23. package/dist/index-jNlKGITs.js +4369 -0
  24. package/dist/{index-DOZk8RhQ.js → index-kBwJORKQ.js} +7 -7
  25. package/dist/{index-DR7P93x_.cjs → index-pPqGNFo4.cjs} +1 -1
  26. package/dist/{index-DYwNxKAj.cjs → index-thv0_1C7.cjs} +1 -1
  27. package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-BS45gOQM.js → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-DztskrHi.js} +1 -1
  28. package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CoETU3Hy.cjs → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-ooefAkbS.cjs} +1 -1
  29. package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DzgbjLo-.cjs → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-CUaHvGT0.cjs} +8 -8
  30. package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-uk_Jwi07.js → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-DrVsYebD.js} +2858 -2852
  31. package/dist/{main--AedcqcX.cjs → main-BcnpB9rQ.cjs} +1 -1
  32. package/dist/{main-B3AvU1Qk.js → main-Bv6-X84h.js} +2 -2
  33. package/dist/ss-component.cjs +1 -1
  34. package/dist/ss-component.css +1 -1
  35. package/dist/ss-component.js +4 -4
  36. package/dist/ss-component2.cjs +1 -1
  37. package/dist/ss-component2.js +7 -7
  38. package/dist/{threeModel-yIL96b5N.cjs → threeModel-DQIGp3UU.cjs} +1 -1
  39. package/dist/{threeModel-WNFRijN4.js → threeModel-WeRc8TWE.js} +1 -1
  40. package/package.json +1 -1
  41. package/dist/index-B8aHJcgZ.js +0 -4310
  42. package/dist/index-kuVn7V0L.cjs +0 -1
@@ -1,9 +1,9 @@
1
- import { ref as St, watch as Ps, nextTick as Pd, resolveComponent as rr, createBlock as ar, openBlock as Sn, withCtx as en, createElementVNode as En, renderSlot as mc, onMounted as kl, createElementBlock as fi, normalizeClass as Dd, toDisplayString as Xi, createCommentVNode as fa, Fragment as Cu, renderList as Ru, normalizeStyle as Lu, createVNode as pn, unref as Pu, defineComponent as Id, createSlots as Ud, createTextVNode as Sr } from "vue";
2
- import { c1 as Nd, bW as gc, m as Fd, c2 as _c, c3 as vc, c4 as yc, F as xc, S as qa, G as Od, r as Mc, n as bc, c5 as zd, c as Qe, d as ja, s as Cs, p as Rs, bR as Vl, g as zn, bM as Sa, f as Bd, bL as Du, u as Iu, bP as kd, bO as Sc, bi as Vd } from "./menu-Qw1eGtzq.js";
3
- import { e as Ea, d as Uu, j as Hd, s as Ec, k as Gd } from "./index-CdV-dIPz.js";
1
+ import { ref as St, watch as Ps, nextTick as Dd, resolveComponent as rr, createBlock as ar, openBlock as Sn, withCtx as en, createElementVNode as En, renderSlot as gc, onMounted as Vl, createElementBlock as fi, normalizeClass as Id, toDisplayString as Xi, createCommentVNode as fa, Fragment as Cu, renderList as Ru, normalizeStyle as Lu, createVNode as pn, unref as Pu, defineComponent as Ud, createSlots as Nd, createTextVNode as Sr } from "vue";
2
+ import { c1 as Fd, bW as _c, m as Od, c2 as vc, c3 as yc, c4 as xc, F as Mc, S as qa, G as zd, r as bc, n as Sc, c5 as Bd, c as Je, d as ja, s as Cs, p as Rs, bR as Hl, g as zn, bM as Sa, f as kd, bL as Du, u as Iu, bP as Vd, bO as Ec, bi as Hd } from "./menu-Qw1eGtzq.js";
3
+ import { e as Ea, d as Uu, j as Gd, s as Ac, k as Wd } from "./index-CdV-dIPz.js";
4
4
  import { u as Nu } from "./modelComp-y7HaQuVQ.js";
5
- import { a as Ds, h as Ac, i as Wd, j as Xd, k as qd, l as jd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js";
6
- import { _ as Hl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ import { a as Ds, l as Fu, h as wc, i as Xd, j as qd, k as jd } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CfEICeD4.js";
6
+ import { _ as Gl } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  var Yd = "__lodash_hash_undefined__";
8
8
  function $d(s) {
9
9
  return this.__data__.set(s, Yd), this;
@@ -13,7 +13,7 @@ function Jd(s) {
13
13
  }
14
14
  function Aa(s) {
15
15
  var e = -1, t = s == null ? 0 : s.length;
16
- for (this.__data__ = new Nd(); ++e < t; )
16
+ for (this.__data__ = new Fd(); ++e < t; )
17
17
  this.add(s[e]);
18
18
  }
19
19
  Aa.prototype.add = Aa.prototype.push = $d;
@@ -28,7 +28,7 @@ function Zd(s, e) {
28
28
  return s.has(e);
29
29
  }
30
30
  var Qd = 1, ef = 2;
31
- function Fu(s, e, t, n, i, r) {
31
+ function Ou(s, e, t, n, i, r) {
32
32
  var a = t & Qd, o = s.length, l = e.length;
33
33
  if (o != l && !(a && l > o))
34
34
  return !1;
@@ -73,7 +73,7 @@ function nf(s) {
73
73
  t[++e] = n;
74
74
  }), t;
75
75
  }
76
- var sf = 1, rf = 2, af = "[object Boolean]", of = "[object Date]", lf = "[object Error]", cf = "[object Map]", hf = "[object Number]", uf = "[object RegExp]", df = "[object Set]", ff = "[object String]", pf = "[object Symbol]", mf = "[object ArrayBuffer]", gf = "[object DataView]", wc = gc ? gc.prototype : void 0, Ya = wc ? wc.valueOf : void 0;
76
+ var sf = 1, rf = 2, af = "[object Boolean]", of = "[object Date]", lf = "[object Error]", cf = "[object Map]", hf = "[object Number]", uf = "[object RegExp]", df = "[object Set]", ff = "[object String]", pf = "[object Symbol]", mf = "[object ArrayBuffer]", gf = "[object DataView]", Tc = _c ? _c.prototype : void 0, Ya = Tc ? Tc.valueOf : void 0;
77
77
  function _f(s, e, t, n, i, r, a) {
78
78
  switch (t) {
79
79
  case gf:
@@ -81,11 +81,11 @@ function _f(s, e, t, n, i, r, a) {
81
81
  return !1;
82
82
  s = s.buffer, e = e.buffer;
83
83
  case mf:
84
- return !(s.byteLength != e.byteLength || !r(new _c(s), new _c(e)));
84
+ return !(s.byteLength != e.byteLength || !r(new vc(s), new vc(e)));
85
85
  case af:
86
86
  case of:
87
87
  case hf:
88
- return Fd(+s, +e);
88
+ return Od(+s, +e);
89
89
  case lf:
90
90
  return s.name == e.name && s.message == e.message;
91
91
  case uf:
@@ -101,7 +101,7 @@ function _f(s, e, t, n, i, r, a) {
101
101
  if (c)
102
102
  return c == e;
103
103
  n |= rf, a.set(s, e);
104
- var h = Fu(o(s), o(e), n, i, r, a);
104
+ var h = Ou(o(s), o(e), n, i, r, a);
105
105
  return a.delete(s), h;
106
106
  case pf:
107
107
  if (Ya)
@@ -111,7 +111,7 @@ function _f(s, e, t, n, i, r, a) {
111
111
  }
112
112
  var vf = 1, yf = Object.prototype, xf = yf.hasOwnProperty;
113
113
  function Mf(s, e, t, n, i, r) {
114
- var a = t & vf, o = vc(s), l = o.length, c = vc(e), h = c.length;
114
+ var a = t & vf, o = yc(s), l = o.length, c = yc(e), h = c.length;
115
115
  if (l != h && !a)
116
116
  return !1;
117
117
  for (var u = l; u--; ) {
@@ -141,20 +141,20 @@ function Mf(s, e, t, n, i, r) {
141
141
  }
142
142
  return r.delete(s), r.delete(e), _;
143
143
  }
144
- var bf = 1, Tc = "[object Arguments]", Cc = "[object Array]", Er = "[object Object]", Sf = Object.prototype, Rc = Sf.hasOwnProperty;
144
+ var bf = 1, Cc = "[object Arguments]", Rc = "[object Array]", Er = "[object Object]", Sf = Object.prototype, Lc = Sf.hasOwnProperty;
145
145
  function Ef(s, e, t, n, i, r) {
146
- var a = Mc(s), o = Mc(e), l = a ? Cc : yc(s), c = o ? Cc : yc(e);
147
- l = l == Tc ? Er : l, c = c == Tc ? Er : c;
146
+ var a = bc(s), o = bc(e), l = a ? Rc : xc(s), c = o ? Rc : xc(e);
147
+ l = l == Cc ? Er : l, c = c == Cc ? Er : c;
148
148
  var h = l == Er, u = c == Er, d = l == c;
149
- if (d && xc(s)) {
150
- if (!xc(e))
149
+ if (d && Mc(s)) {
150
+ if (!Mc(e))
151
151
  return !1;
152
152
  a = !0, h = !1;
153
153
  }
154
154
  if (d && !h)
155
- return r || (r = new qa()), a || Od(s) ? Fu(s, e, t, n, i, r) : _f(s, e, l, t, n, i, r);
155
+ return r || (r = new qa()), a || zd(s) ? Ou(s, e, t, n, i, r) : _f(s, e, l, t, n, i, r);
156
156
  if (!(t & bf)) {
157
- var f = h && Rc.call(s, "__wrapped__"), m = u && Rc.call(e, "__wrapped__");
157
+ var f = h && Lc.call(s, "__wrapped__"), m = u && Lc.call(e, "__wrapped__");
158
158
  if (f || m) {
159
159
  var _ = f ? s.value() : s, g = m ? e.value() : e;
160
160
  return r || (r = new qa()), i(_, g, t, n, r);
@@ -162,11 +162,11 @@ function Ef(s, e, t, n, i, r) {
162
162
  }
163
163
  return d ? (r || (r = new qa()), Mf(s, e, t, n, i, r)) : !1;
164
164
  }
165
- function Ou(s, e, t, n, i) {
166
- return s === e ? !0 : s == null || e == null || !bc(s) && !bc(e) ? s !== s && e !== e : Ef(s, e, t, n, Ou, i);
165
+ function zu(s, e, t, n, i) {
166
+ return s === e ? !0 : s == null || e == null || !Sc(s) && !Sc(e) ? s !== s && e !== e : Ef(s, e, t, n, zu, i);
167
167
  }
168
168
  function Af(s, e) {
169
- return Ou(s, e);
169
+ return zu(s, e);
170
170
  }
171
171
  const wf = {
172
172
  __name: "index",
@@ -195,7 +195,7 @@ const wf = {
195
195
  ), Ps(
196
196
  () => i.value,
197
197
  () => {
198
- Pd(() => {
198
+ Dd(() => {
199
199
  var r, a;
200
200
  (a = (r = t.value) == null ? void 0 : r.updatePopper) == null || a.call(r);
201
201
  });
@@ -213,7 +213,7 @@ const wf = {
213
213
  }, {
214
214
  reference: en(() => [
215
215
  En("div", null, [
216
- mc(r.$slots, "reference", {
216
+ gc(r.$slots, "reference", {
217
217
  ref_key: "referenceRef",
218
218
  ref: i
219
219
  })
@@ -221,7 +221,7 @@ const wf = {
221
221
  ]),
222
222
  default: en(() => [
223
223
  En("div", null, [
224
- mc(r.$slots, "content")
224
+ gc(r.$slots, "content")
225
225
  ])
226
226
  ]),
227
227
  _: 3
@@ -254,7 +254,7 @@ const wf = {
254
254
  t("buttonClick", h);
255
255
  }, l = (h) => {
256
256
  var u, d;
257
- r.value = (d = (u = Ds(Qe(h))) == null ? void 0 : u.filter((f) => (f == null ? void 0 : f.label) !== "" && (f == null ? void 0 : f.label) !== "操作")) == null ? void 0 : d.map((f) => ({
257
+ r.value = (d = (u = Ds(Je(h))) == null ? void 0 : u.filter((f) => (f == null ? void 0 : f.label) !== "" && (f == null ? void 0 : f.label) !== "操作")) == null ? void 0 : d.map((f) => ({
258
258
  label: (f == null ? void 0 : f.label) ?? "",
259
259
  value: "",
260
260
  name: (f == null ? void 0 : f.label) ?? "",
@@ -263,7 +263,7 @@ const wf = {
263
263
  }, c = (h) => {
264
264
  (h == null ? void 0 : h.buttonName) === "确认" && t("filter", h == null ? void 0 : h.content), i.value = !1;
265
265
  };
266
- return kl(() => {
266
+ return Vl(() => {
267
267
  l(n.columns);
268
268
  }), Ps(
269
269
  () => n.columns,
@@ -276,7 +276,7 @@ const wf = {
276
276
  const d = rr("el-tooltip");
277
277
  return Sn(), fi("div", Tf, [
278
278
  En("div", {
279
- class: Dd(s.compName ? "table-name-wrap" : "")
279
+ class: Id(s.compName ? "table-name-wrap" : "")
280
280
  }, Xi(s.compName), 3),
281
281
  En("div", Cf, [
282
282
  n != null && n.buttons && ((f = n == null ? void 0 : n.buttons) == null ? void 0 : f.length) > 0 ? (Sn(), fi("div", Rf, [
@@ -307,7 +307,7 @@ const wf = {
307
307
  class: "button-style",
308
308
  onClick: u[0] || (u[0] = (m) => i.value = !i.value)
309
309
  }, [
310
- pn(Pu(zd), { color: "var(--ssComponent-black)" })
310
+ pn(Pu(Bd), { color: "var(--ssComponent-black)" })
311
311
  ])
312
312
  ]),
313
313
  _: 1
@@ -334,13 +334,13 @@ const wf = {
334
334
  ]);
335
335
  };
336
336
  }
337
- }, Uf = /* @__PURE__ */ Hl(If, [["__scopeId", "data-v-74058ccc"]]);
337
+ }, Uf = /* @__PURE__ */ Gl(If, [["__scopeId", "data-v-74058ccc"]]);
338
338
  /**
339
339
  * @license
340
340
  * Copyright 2010-2025 Three.js Authors
341
341
  * SPDX-License-Identifier: MIT
342
342
  */
343
- const Gl = "177", _v = { ROTATE: 0, DOLLY: 1, PAN: 2 }, vv = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Nf = 0, Lc = 1, Ff = 2, zu = 1, Of = 2, di = 3, qn = 0, xn = 1, yn = 2, Ri = 0, Is = 1, Pc = 2, Dc = 3, Ic = 4, zf = 5, qi = 100, Bf = 101, kf = 102, Vf = 103, Hf = 104, Gf = 200, Wf = 201, Xf = 202, qf = 203, Go = 204, Wo = 205, jf = 206, Yf = 207, $f = 208, Jf = 209, Kf = 210, Zf = 211, Qf = 212, ep = 213, tp = 214, Xo = 0, qo = 1, jo = 2, Fs = 3, Yo = 4, $o = 5, Jo = 6, Ko = 7, Fa = 0, np = 1, ip = 2, Li = 0, sp = 1, rp = 2, ap = 3, op = 4, lp = 5, cp = 6, hp = 7, Uc = "attached", up = "detached", Bu = 300, Os = 301, zs = 302, Zo = 303, Qo = 304, Oa = 306, Zn = 1e3, Wn = 1001, el = 1002, Dn = 1003, dp = 1004, Ar = 1005, Pn = 1006, $a = 1007, pi = 1008, ni = 1009, ku = 1010, Vu = 1011, dr = 1012, Wl = 1013, Ji = 1014, Qn = 1015, vr = 1016, Xl = 1017, ql = 1018, fr = 1020, Hu = 35902, Gu = 1021, Wu = 1022, On = 1023, pr = 1026, mr = 1027, Xu = 1028, jl = 1029, qu = 1030, Yl = 1031, $l = 1033, pa = 33776, ma = 33777, ga = 33778, _a = 33779, tl = 35840, nl = 35841, il = 35842, sl = 35843, rl = 36196, al = 37492, ol = 37496, ll = 37808, cl = 37809, hl = 37810, ul = 37811, dl = 37812, fl = 37813, pl = 37814, ml = 37815, gl = 37816, _l = 37817, vl = 37818, yl = 37819, xl = 37820, Ml = 37821, va = 36492, bl = 36494, Sl = 36495, ju = 36283, El = 36284, Al = 36285, wl = 36286, wa = 2300, Tl = 2301, Ja = 2302, Nc = 2400, Fc = 2401, Oc = 2402, fp = 2500, pp = 3200, mp = 3201, za = 0, gp = 1, Ci = "", Ct = "srgb", Bs = "srgb-linear", Ta = "linear", Ut = "srgb", os = 7680, zc = 519, _p = 512, vp = 513, yp = 514, Yu = 515, xp = 516, Mp = 517, bp = 518, Sp = 519, Cl = 35044, Bc = "300 es", mi = 2e3, Ca = 2001;
343
+ const Wl = "177", _v = { ROTATE: 0, DOLLY: 1, PAN: 2 }, vv = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Nf = 0, Pc = 1, Ff = 2, Bu = 1, Of = 2, di = 3, qn = 0, xn = 1, yn = 2, Ri = 0, Is = 1, Dc = 2, Ic = 3, Uc = 4, zf = 5, qi = 100, Bf = 101, kf = 102, Vf = 103, Hf = 104, Gf = 200, Wf = 201, Xf = 202, qf = 203, Go = 204, Wo = 205, jf = 206, Yf = 207, $f = 208, Jf = 209, Kf = 210, Zf = 211, Qf = 212, ep = 213, tp = 214, Xo = 0, qo = 1, jo = 2, Fs = 3, Yo = 4, $o = 5, Jo = 6, Ko = 7, Fa = 0, np = 1, ip = 2, Li = 0, sp = 1, rp = 2, ap = 3, op = 4, lp = 5, cp = 6, hp = 7, Nc = "attached", up = "detached", ku = 300, Os = 301, zs = 302, Zo = 303, Qo = 304, Oa = 306, Zn = 1e3, Wn = 1001, el = 1002, Dn = 1003, dp = 1004, Ar = 1005, Pn = 1006, $a = 1007, pi = 1008, ni = 1009, Vu = 1010, Hu = 1011, dr = 1012, Xl = 1013, Ji = 1014, Qn = 1015, vr = 1016, ql = 1017, jl = 1018, fr = 1020, Gu = 35902, Wu = 1021, Xu = 1022, On = 1023, pr = 1026, mr = 1027, qu = 1028, Yl = 1029, ju = 1030, $l = 1031, Jl = 1033, pa = 33776, ma = 33777, ga = 33778, _a = 33779, tl = 35840, nl = 35841, il = 35842, sl = 35843, rl = 36196, al = 37492, ol = 37496, ll = 37808, cl = 37809, hl = 37810, ul = 37811, dl = 37812, fl = 37813, pl = 37814, ml = 37815, gl = 37816, _l = 37817, vl = 37818, yl = 37819, xl = 37820, Ml = 37821, va = 36492, bl = 36494, Sl = 36495, Yu = 36283, El = 36284, Al = 36285, wl = 36286, wa = 2300, Tl = 2301, Ja = 2302, Fc = 2400, Oc = 2401, zc = 2402, fp = 2500, pp = 3200, mp = 3201, za = 0, gp = 1, Ci = "", Ct = "srgb", Bs = "srgb-linear", Ta = "linear", Ut = "srgb", os = 7680, Bc = 519, _p = 512, vp = 513, yp = 514, $u = 515, xp = 516, Mp = 517, bp = 518, Sp = 519, Cl = 35044, kc = "300 es", mi = 2e3, Ca = 2001;
344
344
  class Zi {
345
345
  /**
346
346
  * Adds the given event listener to the given event type.
@@ -398,7 +398,7 @@ class Zi {
398
398
  }
399
399
  }
400
400
  const dn = ["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"];
401
- let kc = 1234567;
401
+ let Vc = 1234567;
402
402
  const or = Math.PI / 180, ks = 180 / Math.PI;
403
403
  function Xn() {
404
404
  const s = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
@@ -407,7 +407,7 @@ function Xn() {
407
407
  function _t(s, e, t) {
408
408
  return Math.max(e, Math.min(t, s));
409
409
  }
410
- function Jl(s, e) {
410
+ function Kl(s, e) {
411
411
  return (s % e + e) % e;
412
412
  }
413
413
  function Ep(s, e, t, n, i) {
@@ -423,7 +423,7 @@ function wp(s, e, t, n) {
423
423
  return lr(s, e, 1 - Math.exp(-t * n));
424
424
  }
425
425
  function Tp(s, e = 1) {
426
- return e - Math.abs(Jl(s, e * 2) - e);
426
+ return e - Math.abs(Kl(s, e * 2) - e);
427
427
  }
428
428
  function Cp(s, e, t) {
429
429
  return s <= e ? 0 : s >= t ? 1 : (s = (s - e) / (t - e), s * s * (3 - 2 * s));
@@ -441,8 +441,8 @@ function Dp(s) {
441
441
  return s * (0.5 - Math.random());
442
442
  }
443
443
  function Ip(s) {
444
- s !== void 0 && (kc = s);
445
- let e = kc += 1831565813;
444
+ s !== void 0 && (Vc = s);
445
+ let e = Vc += 1831565813;
446
446
  return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
447
447
  }
448
448
  function Up(s) {
@@ -558,7 +558,7 @@ const Ts = {
558
558
  * @param {number} m - The second parameter.
559
559
  * @return {number} The Euclidean modulo.
560
560
  */
561
- euclideanModulo: Jl,
561
+ euclideanModulo: Kl,
562
562
  /**
563
563
  * Performs a linear mapping from range `<a1, a2>` to range `<b1, b2>`
564
564
  * for the given value.
@@ -1975,7 +1975,7 @@ class F {
1975
1975
  * @return {Vector3} A reference to this vector.
1976
1976
  */
1977
1977
  applyEuler(e) {
1978
- return this.applyQuaternion(Vc.setFromEuler(e));
1978
+ return this.applyQuaternion(Hc.setFromEuler(e));
1979
1979
  }
1980
1980
  /**
1981
1981
  * Applies a rotation specified by an axis and an angle to this vector.
@@ -1985,7 +1985,7 @@ class F {
1985
1985
  * @return {Vector3} A reference to this vector.
1986
1986
  */
1987
1987
  applyAxisAngle(e, t) {
1988
- return this.applyQuaternion(Vc.setFromAxisAngle(e, t));
1988
+ return this.applyQuaternion(Hc.setFromAxisAngle(e, t));
1989
1989
  }
1990
1990
  /**
1991
1991
  * Multiplies this vector with the given 3x3 matrix.
@@ -2517,7 +2517,7 @@ class F {
2517
2517
  yield this.x, yield this.y, yield this.z;
2518
2518
  }
2519
2519
  }
2520
- const Ka = /* @__PURE__ */ new F(), Vc = /* @__PURE__ */ new Bn();
2520
+ const Ka = /* @__PURE__ */ new F(), Hc = /* @__PURE__ */ new Bn();
2521
2521
  class gt {
2522
2522
  /**
2523
2523
  * Constructs a new 3x3 matrix. The arguments are supposed to be
@@ -2889,7 +2889,7 @@ class gt {
2889
2889
  }
2890
2890
  }
2891
2891
  const Za = /* @__PURE__ */ new gt();
2892
- function $u(s) {
2892
+ function Ju(s) {
2893
2893
  for (let e = s.length - 1; e >= 0; --e)
2894
2894
  if (s[e] >= 65535) return !0;
2895
2895
  return !1;
@@ -2901,9 +2901,9 @@ function kp() {
2901
2901
  const s = gr("canvas");
2902
2902
  return s.style.display = "block", s;
2903
2903
  }
2904
- const Hc = {};
2904
+ const Gc = {};
2905
2905
  function Us(s) {
2906
- s in Hc || (Hc[s] = !0, console.warn(s));
2906
+ s in Gc || (Gc[s] = !0, console.warn(s));
2907
2907
  }
2908
2908
  function Vp(s, e, t) {
2909
2909
  return new Promise(function(n, i) {
@@ -2930,7 +2930,7 @@ function Gp(s) {
2930
2930
  const e = s.elements;
2931
2931
  e[11] === -1 ? (e[10] = -e[10] - 1, e[14] = -e[14]) : (e[10] = -e[10], e[14] = -e[14] + 1);
2932
2932
  }
2933
- const Gc = /* @__PURE__ */ new gt().set(
2933
+ const Wc = /* @__PURE__ */ new gt().set(
2934
2934
  0.4123908,
2935
2935
  0.3575843,
2936
2936
  0.1804808,
@@ -2940,7 +2940,7 @@ const Gc = /* @__PURE__ */ new gt().set(
2940
2940
  0.0193308,
2941
2941
  0.1191948,
2942
2942
  0.9505322
2943
- ), Wc = /* @__PURE__ */ new gt().set(
2943
+ ), Xc = /* @__PURE__ */ new gt().set(
2944
2944
  3.2409699,
2945
2945
  -1.5373832,
2946
2946
  -0.4986108,
@@ -3018,8 +3018,8 @@ function Wp() {
3018
3018
  primaries: e,
3019
3019
  whitePoint: n,
3020
3020
  transfer: Ta,
3021
- toXYZ: Gc,
3022
- fromXYZ: Wc,
3021
+ toXYZ: Wc,
3022
+ fromXYZ: Xc,
3023
3023
  luminanceCoefficients: t,
3024
3024
  workingColorSpaceConfig: { unpackColorSpace: Ct },
3025
3025
  outputColorSpaceConfig: { drawingBufferColorSpace: Ct }
@@ -3028,8 +3028,8 @@ function Wp() {
3028
3028
  primaries: e,
3029
3029
  whitePoint: n,
3030
3030
  transfer: Ut,
3031
- toXYZ: Gc,
3032
- fromXYZ: Wc,
3031
+ toXYZ: Wc,
3032
+ fromXYZ: Xc,
3033
3033
  luminanceCoefficients: t,
3034
3034
  outputColorSpaceConfig: { drawingBufferColorSpace: Ct }
3035
3035
  }
@@ -3094,7 +3094,7 @@ class Xp {
3094
3094
  }
3095
3095
  }
3096
3096
  let qp = 0;
3097
- class Kl {
3097
+ class Zl {
3098
3098
  /**
3099
3099
  * Constructs a new video texture.
3100
3100
  *
@@ -3173,7 +3173,7 @@ class cn extends Zi {
3173
3173
  * @param {string} [colorSpace=NoColorSpace] - The color space.
3174
3174
  */
3175
3175
  constructor(e = cn.DEFAULT_IMAGE, t = cn.DEFAULT_MAPPING, n = Wn, i = Wn, r = Pn, a = pi, o = On, l = ni, c = cn.DEFAULT_ANISOTROPY, h = Ci) {
3176
- super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: jp++ }), this.uuid = Xn(), this.name = "", this.source = new Kl(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = r, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new Ge(0, 0), this.repeat = new Ge(1, 1), this.center = new Ge(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new gt(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0;
3176
+ super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: jp++ }), this.uuid = Xn(), this.name = "", this.source = new Zl(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = r, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new Ge(0, 0), this.repeat = new Ge(1, 1), this.center = new Ge(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new gt(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0;
3177
3177
  }
3178
3178
  /**
3179
3179
  * The width of the texture in pixels.
@@ -3319,7 +3319,7 @@ class cn extends Zi {
3319
3319
  * @return {Vector2} The transformed uv vector.
3320
3320
  */
3321
3321
  transformUv(e) {
3322
- if (this.mapping !== Bu) return e;
3322
+ if (this.mapping !== ku) return e;
3323
3323
  if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
3324
3324
  switch (this.wrapS) {
3325
3325
  case Zn:
@@ -3371,7 +3371,7 @@ class cn extends Zi {
3371
3371
  }
3372
3372
  }
3373
3373
  cn.DEFAULT_IMAGE = null;
3374
- cn.DEFAULT_MAPPING = Bu;
3374
+ cn.DEFAULT_MAPPING = ku;
3375
3375
  cn.DEFAULT_ANISOTROPY = 1;
3376
3376
  class xt {
3377
3377
  /**
@@ -4045,7 +4045,7 @@ class Yp extends Zi {
4045
4045
  for (let t = 0, n = e.textures.length; t < n; t++) {
4046
4046
  this.textures[t] = e.textures[t].clone(), this.textures[t].isRenderTargetTexture = !0, this.textures[t].renderTarget = this;
4047
4047
  const i = Object.assign({}, e.textures[t].image);
4048
- this.textures[t].source = new Kl(i);
4048
+ this.textures[t].source = new Zl(i);
4049
4049
  }
4050
4050
  return this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, this.resolveDepthBuffer = e.resolveDepthBuffer, this.resolveStencilBuffer = e.resolveStencilBuffer, e.depthTexture !== null && (this.depthTexture = e.depthTexture.clone()), this.samples = e.samples, this;
4051
4051
  }
@@ -4071,7 +4071,7 @@ class Ki extends Yp {
4071
4071
  super(e, t, n), this.isWebGLRenderTarget = !0;
4072
4072
  }
4073
4073
  }
4074
- class Ju extends cn {
4074
+ class Ku extends cn {
4075
4075
  /**
4076
4076
  * Constructs a new data array texture.
4077
4077
  *
@@ -5716,7 +5716,7 @@ class lt {
5716
5716
  return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
5717
5717
  }
5718
5718
  }
5719
- const ds = /* @__PURE__ */ new F(), Vn = /* @__PURE__ */ new lt(), Kp = /* @__PURE__ */ new F(0, 0, 0), Zp = /* @__PURE__ */ new F(1, 1, 1), Ei = /* @__PURE__ */ new F(), Pr = /* @__PURE__ */ new F(), Cn = /* @__PURE__ */ new F(), Xc = /* @__PURE__ */ new lt(), qc = /* @__PURE__ */ new Bn();
5719
+ const ds = /* @__PURE__ */ new F(), Vn = /* @__PURE__ */ new lt(), Kp = /* @__PURE__ */ new F(0, 0, 0), Zp = /* @__PURE__ */ new F(1, 1, 1), Ei = /* @__PURE__ */ new F(), Pr = /* @__PURE__ */ new F(), Cn = /* @__PURE__ */ new F(), qc = /* @__PURE__ */ new lt(), jc = /* @__PURE__ */ new Bn();
5720
5720
  class wn {
5721
5721
  /**
5722
5722
  * Constructs a new euler instance.
@@ -5849,7 +5849,7 @@ class wn {
5849
5849
  * @return {Euler} A reference to this Euler instance.
5850
5850
  */
5851
5851
  setFromQuaternion(e, t, n) {
5852
- return Xc.makeRotationFromQuaternion(e), this.setFromRotationMatrix(Xc, t, n);
5852
+ return qc.makeRotationFromQuaternion(e), this.setFromRotationMatrix(qc, t, n);
5853
5853
  }
5854
5854
  /**
5855
5855
  * Sets the angles of this Euler instance from the given vector.
@@ -5872,7 +5872,7 @@ class wn {
5872
5872
  * @return {Euler} A reference to this Euler instance.
5873
5873
  */
5874
5874
  reorder(e) {
5875
- return qc.setFromEuler(this), this.setFromQuaternion(qc, e);
5875
+ return jc.setFromEuler(this), this.setFromQuaternion(jc, e);
5876
5876
  }
5877
5877
  /**
5878
5878
  * Returns `true` if this Euler instance is equal with the given one.
@@ -5915,7 +5915,7 @@ class wn {
5915
5915
  }
5916
5916
  }
5917
5917
  wn.DEFAULT_ORDER = "XYZ";
5918
- class Zl {
5918
+ class Ql {
5919
5919
  /**
5920
5920
  * Constructs a new layers instance, with membership
5921
5921
  * initially set to layer `0`.
@@ -5988,7 +5988,7 @@ class Zl {
5988
5988
  }
5989
5989
  }
5990
5990
  let Qp = 0;
5991
- const jc = /* @__PURE__ */ new F(), fs = /* @__PURE__ */ new Bn(), li = /* @__PURE__ */ new lt(), Dr = /* @__PURE__ */ new F(), Js = /* @__PURE__ */ new F(), e0 = /* @__PURE__ */ new F(), t0 = /* @__PURE__ */ new Bn(), Yc = /* @__PURE__ */ new F(1, 0, 0), $c = /* @__PURE__ */ new F(0, 1, 0), Jc = /* @__PURE__ */ new F(0, 0, 1), Kc = { type: "added" }, n0 = { type: "removed" }, ps = { type: "childadded", child: null }, ao = { type: "childremoved", child: null };
5991
+ const Yc = /* @__PURE__ */ new F(), fs = /* @__PURE__ */ new Bn(), li = /* @__PURE__ */ new lt(), Dr = /* @__PURE__ */ new F(), Js = /* @__PURE__ */ new F(), e0 = /* @__PURE__ */ new F(), t0 = /* @__PURE__ */ new Bn(), $c = /* @__PURE__ */ new F(1, 0, 0), Jc = /* @__PURE__ */ new F(0, 1, 0), Kc = /* @__PURE__ */ new F(0, 0, 1), Zc = { type: "added" }, n0 = { type: "removed" }, ps = { type: "childadded", child: null }, ao = { type: "childremoved", child: null };
5992
5992
  class Nt extends Zi {
5993
5993
  /**
5994
5994
  * Constructs a new 3D object.
@@ -6068,7 +6068,7 @@ class Nt extends Zi {
6068
6068
  normalMatrix: {
6069
6069
  value: new gt()
6070
6070
  }
6071
- }), this.matrix = new lt(), this.matrixWorld = new lt(), this.matrixAutoUpdate = Nt.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Zl(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.userData = {};
6071
+ }), this.matrix = new lt(), this.matrixWorld = new lt(), this.matrixAutoUpdate = Nt.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Ql(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.userData = {};
6072
6072
  }
6073
6073
  /**
6074
6074
  * A callback that is executed immediately before a 3D object is rendered to a shadow map.
@@ -6199,7 +6199,7 @@ class Nt extends Zi {
6199
6199
  * @return {Object3D} A reference to this instance.
6200
6200
  */
6201
6201
  rotateX(e) {
6202
- return this.rotateOnAxis(Yc, e);
6202
+ return this.rotateOnAxis($c, e);
6203
6203
  }
6204
6204
  /**
6205
6205
  * Rotates the 3D object around its Y axis in local space.
@@ -6208,7 +6208,7 @@ class Nt extends Zi {
6208
6208
  * @return {Object3D} A reference to this instance.
6209
6209
  */
6210
6210
  rotateY(e) {
6211
- return this.rotateOnAxis($c, e);
6211
+ return this.rotateOnAxis(Jc, e);
6212
6212
  }
6213
6213
  /**
6214
6214
  * Rotates the 3D object around its Z axis in local space.
@@ -6217,7 +6217,7 @@ class Nt extends Zi {
6217
6217
  * @return {Object3D} A reference to this instance.
6218
6218
  */
6219
6219
  rotateZ(e) {
6220
- return this.rotateOnAxis(Jc, e);
6220
+ return this.rotateOnAxis(Kc, e);
6221
6221
  }
6222
6222
  /**
6223
6223
  * Translate the 3D object by a distance along the given axis in local space.
@@ -6227,7 +6227,7 @@ class Nt extends Zi {
6227
6227
  * @return {Object3D} A reference to this instance.
6228
6228
  */
6229
6229
  translateOnAxis(e, t) {
6230
- return jc.copy(e).applyQuaternion(this.quaternion), this.position.add(jc.multiplyScalar(t)), this;
6230
+ return Yc.copy(e).applyQuaternion(this.quaternion), this.position.add(Yc.multiplyScalar(t)), this;
6231
6231
  }
6232
6232
  /**
6233
6233
  * Translate the 3D object by a distance along its X-axis in local space.
@@ -6236,7 +6236,7 @@ class Nt extends Zi {
6236
6236
  * @return {Object3D} A reference to this instance.
6237
6237
  */
6238
6238
  translateX(e) {
6239
- return this.translateOnAxis(Yc, e);
6239
+ return this.translateOnAxis($c, e);
6240
6240
  }
6241
6241
  /**
6242
6242
  * Translate the 3D object by a distance along its Y-axis in local space.
@@ -6245,7 +6245,7 @@ class Nt extends Zi {
6245
6245
  * @return {Object3D} A reference to this instance.
6246
6246
  */
6247
6247
  translateY(e) {
6248
- return this.translateOnAxis($c, e);
6248
+ return this.translateOnAxis(Jc, e);
6249
6249
  }
6250
6250
  /**
6251
6251
  * Translate the 3D object by a distance along its Z-axis in local space.
@@ -6254,7 +6254,7 @@ class Nt extends Zi {
6254
6254
  * @return {Object3D} A reference to this instance.
6255
6255
  */
6256
6256
  translateZ(e) {
6257
- return this.translateOnAxis(Jc, e);
6257
+ return this.translateOnAxis(Kc, e);
6258
6258
  }
6259
6259
  /**
6260
6260
  * Converts the given vector from this 3D object's local space to world space.
@@ -6304,7 +6304,7 @@ class Nt extends Zi {
6304
6304
  this.add(arguments[t]);
6305
6305
  return this;
6306
6306
  }
6307
- return e === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(Kc), ps.child = e, this.dispatchEvent(ps), ps.child = null) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", e), this);
6307
+ return e === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(Zc), ps.child = e, this.dispatchEvent(ps), ps.child = null) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", e), this);
6308
6308
  }
6309
6309
  /**
6310
6310
  * Removes the given 3D object as child from this 3D object.
@@ -6355,7 +6355,7 @@ class Nt extends Zi {
6355
6355
  * @return {Object3D} A reference to this instance.
6356
6356
  */
6357
6357
  attach(e) {
6358
- return this.updateWorldMatrix(!0, !1), li.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), li.multiply(e.parent.matrixWorld)), e.applyMatrix4(li), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Kc), ps.child = e, this.dispatchEvent(ps), ps.child = null, this;
6358
+ return this.updateWorldMatrix(!0, !1), li.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), li.multiply(e.parent.matrixWorld)), e.applyMatrix4(li), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Zc), ps.child = e, this.dispatchEvent(ps), ps.child = null, this;
6359
6359
  }
6360
6360
  /**
6361
6361
  * Searches through the 3D object and its children, starting with the 3D object
@@ -6646,7 +6646,7 @@ class Nt extends Zi {
6646
6646
  Nt.DEFAULT_UP = /* @__PURE__ */ new F(0, 1, 0);
6647
6647
  Nt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
6648
6648
  Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
6649
- const Hn = /* @__PURE__ */ new F(), ci = /* @__PURE__ */ new F(), oo = /* @__PURE__ */ new F(), hi = /* @__PURE__ */ new F(), ms = /* @__PURE__ */ new F(), gs = /* @__PURE__ */ new F(), Zc = /* @__PURE__ */ new F(), lo = /* @__PURE__ */ new F(), co = /* @__PURE__ */ new F(), ho = /* @__PURE__ */ new F(), uo = /* @__PURE__ */ new xt(), fo = /* @__PURE__ */ new xt(), po = /* @__PURE__ */ new xt();
6649
+ const Hn = /* @__PURE__ */ new F(), ci = /* @__PURE__ */ new F(), oo = /* @__PURE__ */ new F(), hi = /* @__PURE__ */ new F(), ms = /* @__PURE__ */ new F(), gs = /* @__PURE__ */ new F(), Qc = /* @__PURE__ */ new F(), lo = /* @__PURE__ */ new F(), co = /* @__PURE__ */ new F(), ho = /* @__PURE__ */ new F(), uo = /* @__PURE__ */ new xt(), fo = /* @__PURE__ */ new xt(), po = /* @__PURE__ */ new xt();
6650
6650
  class Fn {
6651
6651
  /**
6652
6652
  * Constructs a new triangle.
@@ -6919,7 +6919,7 @@ class Fn {
6919
6919
  return o = c / (c - m), t.copy(n).addScaledVector(gs, o);
6920
6920
  const g = h * m - f * u;
6921
6921
  if (g <= 0 && u - h >= 0 && f - m >= 0)
6922
- return Zc.subVectors(r, i), o = (u - h) / (u - h + (f - m)), t.copy(i).addScaledVector(Zc, o);
6922
+ return Qc.subVectors(r, i), o = (u - h) / (u - h + (f - m)), t.copy(i).addScaledVector(Qc, o);
6923
6923
  const p = 1 / (g + _ + d);
6924
6924
  return a = _ * p, o = d * p, t.copy(n).addScaledVector(ms, a).addScaledVector(gs, o);
6925
6925
  }
@@ -6933,7 +6933,7 @@ class Fn {
6933
6933
  return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
6934
6934
  }
6935
6935
  }
6936
- const Ku = {
6936
+ const Zu = {
6937
6937
  aliceblue: 15792383,
6938
6938
  antiquewhite: 16444375,
6939
6939
  aqua: 65535,
@@ -7159,7 +7159,7 @@ class rt {
7159
7159
  * @return {Color} A reference to this color.
7160
7160
  */
7161
7161
  setHSL(e, t, n, i = yt.workingColorSpace) {
7162
- if (e = Jl(e, 1), t = _t(t, 0, 1), n = _t(n, 0, 1), t === 0)
7162
+ if (e = Kl(e, 1), t = _t(t, 0, 1), n = _t(n, 0, 1), t === 0)
7163
7163
  this.r = this.g = this.b = n;
7164
7164
  else {
7165
7165
  const r = n <= 0.5 ? n * (1 + t) : n + t - n * t, a = 2 * n - r;
@@ -7246,7 +7246,7 @@ class rt {
7246
7246
  * @return {Color} A reference to this color.
7247
7247
  */
7248
7248
  setColorName(e, t = Ct) {
7249
- const n = Ku[e.toLowerCase()];
7249
+ const n = Zu[e.toLowerCase()];
7250
7250
  return n !== void 0 ? this.setHex(n, t) : console.warn("THREE.Color: Unknown color " + e), this;
7251
7251
  }
7252
7252
  /**
@@ -7555,14 +7555,14 @@ class rt {
7555
7555
  }
7556
7556
  }
7557
7557
  const fn = /* @__PURE__ */ new rt();
7558
- rt.NAMES = Ku;
7558
+ rt.NAMES = Zu;
7559
7559
  let i0 = 0;
7560
7560
  class In extends Zi {
7561
7561
  /**
7562
7562
  * Constructs a new material.
7563
7563
  */
7564
7564
  constructor() {
7565
- super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: i0++ }), this.uuid = Xn(), this.name = "", this.type = "Material", this.blending = Is, this.side = qn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Go, this.blendDst = Wo, this.blendEquation = qi, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new rt(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Fs, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = zc, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = os, this.stencilZFail = os, this.stencilZPass = os, 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.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7565
+ super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: i0++ }), this.uuid = Xn(), this.name = "", this.type = "Material", this.blending = Is, this.side = qn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Go, this.blendDst = Wo, this.blendEquation = qi, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new rt(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Fs, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Bc, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = os, this.stencilZFail = os, this.stencilZPass = os, 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.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
7566
7566
  }
7567
7567
  /**
7568
7568
  * Sets the alpha value to be used when running an alpha test. The material
@@ -7661,7 +7661,7 @@ class In extends Zi {
7661
7661
  generator: "Material.toJSON"
7662
7662
  }
7663
7663
  };
7664
- n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== Is && (n.blending = this.blending), this.side !== qn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Go && (n.blendSrc = this.blendSrc), this.blendDst !== Wo && (n.blendDst = this.blendDst), this.blendEquation !== qi && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Fs && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== zc && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== os && (n.stencilFail = this.stencilFail), this.stencilZFail !== os && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== os && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7664
+ n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== Is && (n.blending = this.blending), this.side !== qn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Go && (n.blendSrc = this.blendSrc), this.blendDst !== Wo && (n.blendDst = this.blendDst), this.blendEquation !== qi && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== Fs && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Bc && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== os && (n.stencilFail = this.stencilFail), this.stencilZFail !== os && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== os && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
7665
7665
  function i(r) {
7666
7666
  const a = [];
7667
7667
  for (const o in r) {
@@ -8064,7 +8064,7 @@ class Gt {
8064
8064
  return this.name !== "" && (e.name = this.name), this.usage !== Cl && (e.usage = this.usage), e;
8065
8065
  }
8066
8066
  }
8067
- class Zu extends Gt {
8067
+ class Qu extends Gt {
8068
8068
  /**
8069
8069
  * Constructs a new buffer attribute.
8070
8070
  *
@@ -8088,7 +8088,7 @@ class r0 extends Gt {
8088
8088
  super(new Int32Array(e), t, n);
8089
8089
  }
8090
8090
  }
8091
- class Qu extends Gt {
8091
+ class ed extends Gt {
8092
8092
  /**
8093
8093
  * Constructs a new buffer attribute.
8094
8094
  *
@@ -8136,7 +8136,7 @@ class Bt extends Zi {
8136
8136
  * @return {BufferGeometry} A reference to this instance.
8137
8137
  */
8138
8138
  setIndex(e) {
8139
- return Array.isArray(e) ? this.index = new ($u(e) ? Qu : Zu)(e, 1) : this.index = e, this;
8139
+ return Array.isArray(e) ? this.index = new (Ju(e) ? ed : Qu)(e, 1) : this.index = e, this;
8140
8140
  }
8141
8141
  /**
8142
8142
  * Sets the given indirect attribute to this geometry.
@@ -8643,7 +8643,7 @@ class Bt extends Zi {
8643
8643
  this.dispatchEvent({ type: "dispose" });
8644
8644
  }
8645
8645
  }
8646
- const Qc = /* @__PURE__ */ new lt(), Oi = /* @__PURE__ */ new yr(), Nr = /* @__PURE__ */ new yi(), eh = /* @__PURE__ */ new F(), Fr = /* @__PURE__ */ new F(), Or = /* @__PURE__ */ new F(), zr = /* @__PURE__ */ new F(), _o = /* @__PURE__ */ new F(), Br = /* @__PURE__ */ new F(), th = /* @__PURE__ */ new F(), kr = /* @__PURE__ */ new F();
8646
+ const eh = /* @__PURE__ */ new lt(), Oi = /* @__PURE__ */ new yr(), Nr = /* @__PURE__ */ new yi(), th = /* @__PURE__ */ new F(), Fr = /* @__PURE__ */ new F(), Or = /* @__PURE__ */ new F(), zr = /* @__PURE__ */ new F(), _o = /* @__PURE__ */ new F(), Br = /* @__PURE__ */ new F(), nh = /* @__PURE__ */ new F(), kr = /* @__PURE__ */ new F();
8647
8647
  class Rt extends Nt {
8648
8648
  /**
8649
8649
  * Constructs a new mesh.
@@ -8704,7 +8704,7 @@ class Rt extends Nt {
8704
8704
  */
8705
8705
  raycast(e, t) {
8706
8706
  const n = this.geometry, i = this.material, r = this.matrixWorld;
8707
- i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Nr.copy(n.boundingSphere), Nr.applyMatrix4(r), Oi.copy(e.ray).recast(e.near), !(Nr.containsPoint(Oi.origin) === !1 && (Oi.intersectSphere(Nr, eh) === null || Oi.origin.distanceToSquared(eh) > (e.far - e.near) ** 2)) && (Qc.copy(r).invert(), Oi.copy(e.ray).applyMatrix4(Qc), !(n.boundingBox !== null && Oi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, Oi)));
8707
+ i !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), Nr.copy(n.boundingSphere), Nr.applyMatrix4(r), Oi.copy(e.ray).recast(e.near), !(Nr.containsPoint(Oi.origin) === !1 && (Oi.intersectSphere(Nr, th) === null || Oi.origin.distanceToSquared(th) > (e.far - e.near) ** 2)) && (eh.copy(r).invert(), Oi.copy(e.ray).applyMatrix4(eh), !(n.boundingBox !== null && Oi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, Oi)));
8708
8708
  }
8709
8709
  _computeIntersections(e, t, n) {
8710
8710
  let i;
@@ -8756,10 +8756,10 @@ function o0(s, e, t, n, i, r, a, o) {
8756
8756
  }
8757
8757
  function Vr(s, e, t, n, i, r, a, o, l, c) {
8758
8758
  s.getVertexPosition(o, Fr), s.getVertexPosition(l, Or), s.getVertexPosition(c, zr);
8759
- const h = o0(s, e, t, n, Fr, Or, zr, th);
8759
+ const h = o0(s, e, t, n, Fr, Or, zr, nh);
8760
8760
  if (h) {
8761
8761
  const u = new F();
8762
- Fn.getBarycoord(th, Fr, Or, zr, u), i && (h.uv = Fn.getInterpolatedAttribute(i, o, l, c, u, new Ge())), r && (h.uv1 = Fn.getInterpolatedAttribute(r, o, l, c, u, new Ge())), a && (h.normal = Fn.getInterpolatedAttribute(a, o, l, c, u, new F()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
8762
+ Fn.getBarycoord(nh, Fr, Or, zr, u), i && (h.uv = Fn.getInterpolatedAttribute(i, o, l, c, u, new Ge())), r && (h.uv1 = Fn.getInterpolatedAttribute(r, o, l, c, u, new Ge())), a && (h.normal = Fn.getInterpolatedAttribute(a, o, l, c, u, new F()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
8763
8763
  const d = {
8764
8764
  a: o,
8765
8765
  b: l,
@@ -8855,11 +8855,11 @@ function l0(s) {
8855
8855
  e.push(s[t].clone());
8856
8856
  return e;
8857
8857
  }
8858
- function ed(s) {
8858
+ function td(s) {
8859
8859
  const e = s.getRenderTarget();
8860
8860
  return e === null ? s.outputColorSpace : e.isXRRenderTarget === !0 ? e.texture.colorSpace : yt.workingColorSpace;
8861
8861
  }
8862
- const Ql = { clone: Vs, merge: vn };
8862
+ const ec = { clone: Vs, merge: vn };
8863
8863
  var c0 = `void main() {
8864
8864
  gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
8865
8865
  }`, h0 = `void main() {
@@ -8927,7 +8927,7 @@ class _i extends In {
8927
8927
  return Object.keys(n).length > 0 && (t.extensions = n), t;
8928
8928
  }
8929
8929
  }
8930
- class td extends Nt {
8930
+ class nd extends Nt {
8931
8931
  /**
8932
8932
  * Constructs a new camera.
8933
8933
  */
@@ -8959,8 +8959,8 @@ class td extends Nt {
8959
8959
  return new this.constructor().copy(this);
8960
8960
  }
8961
8961
  }
8962
- const wi = /* @__PURE__ */ new F(), nh = /* @__PURE__ */ new Ge(), ih = /* @__PURE__ */ new Ge();
8963
- class mn extends td {
8962
+ const wi = /* @__PURE__ */ new F(), ih = /* @__PURE__ */ new Ge(), sh = /* @__PURE__ */ new Ge();
8963
+ class mn extends nd {
8964
8964
  /**
8965
8965
  * Constructs a new perspective camera.
8966
8966
  *
@@ -9044,7 +9044,7 @@ class mn extends td {
9044
9044
  * @returns {Vector2} The view size.
9045
9045
  */
9046
9046
  getViewSize(e, t) {
9047
- return this.getViewBounds(e, nh, ih), t.subVectors(ih, nh);
9047
+ return this.getViewBounds(e, ih, sh), t.subVectors(sh, ih);
9048
9048
  }
9049
9049
  /**
9050
9050
  * Sets an offset in a larger frustum. This is useful for multi-window or
@@ -9182,7 +9182,7 @@ class u0 extends Nt {
9182
9182
  n.texture.generateMipmaps = !1, e.setRenderTarget(n, 0, i), e.render(t, r), e.setRenderTarget(n, 1, i), e.render(t, a), e.setRenderTarget(n, 2, i), e.render(t, o), e.setRenderTarget(n, 3, i), e.render(t, l), e.setRenderTarget(n, 4, i), e.render(t, c), n.texture.generateMipmaps = _, e.setRenderTarget(n, 5, i), e.render(t, h), e.setRenderTarget(u, d, f), e.xr.enabled = m, n.texture.needsPMREMUpdate = !0;
9183
9183
  }
9184
9184
  }
9185
- class nd extends cn {
9185
+ class id extends cn {
9186
9186
  /**
9187
9187
  * Constructs a new cube texture.
9188
9188
  *
@@ -9222,7 +9222,7 @@ class d0 extends Ki {
9222
9222
  constructor(e = 1, t = {}) {
9223
9223
  super(e, e, t), this.isWebGLCubeRenderTarget = !0;
9224
9224
  const n = { width: e, height: e, depth: 1 }, i = [n, n, n, n, n, n];
9225
- this.texture = new nd(i), this._setTextureOptions(t), this.texture.isRenderTargetTexture = !0;
9225
+ this.texture = new id(i), this._setTextureOptions(t), this.texture.isRenderTargetTexture = !0;
9226
9226
  }
9227
9227
  /**
9228
9228
  * Converts the given equirectangular texture to a cube map.
@@ -9430,7 +9430,7 @@ class vo {
9430
9430
  return e.joints[t.jointName];
9431
9431
  }
9432
9432
  }
9433
- class id extends Nt {
9433
+ class sd extends Nt {
9434
9434
  /**
9435
9435
  * Constructs a new scene.
9436
9436
  */
@@ -9445,7 +9445,7 @@ class id extends Nt {
9445
9445
  return this.fog !== null && (t.object.fog = this.fog.toJSON()), this.backgroundBlurriness > 0 && (t.object.backgroundBlurriness = this.backgroundBlurriness), this.backgroundIntensity !== 1 && (t.object.backgroundIntensity = this.backgroundIntensity), t.object.backgroundRotation = this.backgroundRotation.toArray(), this.environmentIntensity !== 1 && (t.object.environmentIntensity = this.environmentIntensity), t.object.environmentRotation = this.environmentRotation.toArray(), t;
9446
9446
  }
9447
9447
  }
9448
- class sd {
9448
+ class rd {
9449
9449
  /**
9450
9450
  * Constructs a new interleaved buffer.
9451
9451
  *
@@ -9855,8 +9855,8 @@ class Ba extends In {
9855
9855
  }
9856
9856
  }
9857
9857
  let xs;
9858
- const Zs = /* @__PURE__ */ new F(), Ms = /* @__PURE__ */ new F(), bs = /* @__PURE__ */ new F(), Ss = /* @__PURE__ */ new Ge(), Qs = /* @__PURE__ */ new Ge(), rd = /* @__PURE__ */ new lt(), Hr = /* @__PURE__ */ new F(), er = /* @__PURE__ */ new F(), Gr = /* @__PURE__ */ new F(), sh = /* @__PURE__ */ new Ge(), yo = /* @__PURE__ */ new Ge(), rh = /* @__PURE__ */ new Ge();
9859
- class ec extends Nt {
9858
+ const Zs = /* @__PURE__ */ new F(), Ms = /* @__PURE__ */ new F(), bs = /* @__PURE__ */ new F(), Ss = /* @__PURE__ */ new Ge(), Qs = /* @__PURE__ */ new Ge(), ad = /* @__PURE__ */ new lt(), Hr = /* @__PURE__ */ new F(), er = /* @__PURE__ */ new F(), Gr = /* @__PURE__ */ new F(), rh = /* @__PURE__ */ new Ge(), yo = /* @__PURE__ */ new Ge(), ah = /* @__PURE__ */ new Ge();
9859
+ class tc extends Nt {
9860
9860
  /**
9861
9861
  * Constructs a new sprite.
9862
9862
  *
@@ -9886,7 +9886,7 @@ class ec extends Nt {
9886
9886
  0,
9887
9887
  0,
9888
9888
  1
9889
- ]), n = new sd(t, 5);
9889
+ ]), n = new rd(t, 5);
9890
9890
  xs.setIndex([0, 1, 2, 0, 2, 3]), xs.setAttribute("position", new ti(n, 3, 0, !1)), xs.setAttribute("uv", new ti(n, 2, 3, !1));
9891
9891
  }
9892
9892
  this.geometry = xs, this.material = e, this.center = new Ge(0.5, 0.5), this.count = 1;
@@ -9898,12 +9898,12 @@ class ec extends Nt {
9898
9898
  * @param {Array<Object>} intersects - The target array that holds the intersection points.
9899
9899
  */
9900
9900
  raycast(e, t) {
9901
- e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Ms.setFromMatrixScale(this.matrixWorld), rd.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), bs.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Ms.multiplyScalar(-bs.z);
9901
+ e.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Ms.setFromMatrixScale(this.matrixWorld), ad.copy(e.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(e.camera.matrixWorldInverse, this.matrixWorld), bs.setFromMatrixPosition(this.modelViewMatrix), e.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Ms.multiplyScalar(-bs.z);
9902
9902
  const n = this.material.rotation;
9903
9903
  let i, r;
9904
9904
  n !== 0 && (r = Math.cos(n), i = Math.sin(n));
9905
9905
  const a = this.center;
9906
- Wr(Hr.set(-0.5, -0.5, 0), bs, a, Ms, i, r), Wr(er.set(0.5, -0.5, 0), bs, a, Ms, i, r), Wr(Gr.set(0.5, 0.5, 0), bs, a, Ms, i, r), sh.set(0, 0), yo.set(1, 0), rh.set(1, 1);
9906
+ Wr(Hr.set(-0.5, -0.5, 0), bs, a, Ms, i, r), Wr(er.set(0.5, -0.5, 0), bs, a, Ms, i, r), Wr(Gr.set(0.5, 0.5, 0), bs, a, Ms, i, r), rh.set(0, 0), yo.set(1, 0), ah.set(1, 1);
9907
9907
  let o = e.ray.intersectTriangle(Hr, er, Gr, !1, Zs);
9908
9908
  if (o === null && (Wr(er.set(-0.5, 0.5, 0), bs, a, Ms, i, r), yo.set(0, 1), o = e.ray.intersectTriangle(Hr, Gr, er, !1, Zs), o === null))
9909
9909
  return;
@@ -9911,7 +9911,7 @@ class ec extends Nt {
9911
9911
  l < e.near || l > e.far || t.push({
9912
9912
  distance: l,
9913
9913
  point: Zs.clone(),
9914
- uv: Fn.getInterpolation(Zs, Hr, er, Gr, sh, yo, rh, new Ge()),
9914
+ uv: Fn.getInterpolation(Zs, Hr, er, Gr, rh, yo, ah, new Ge()),
9915
9915
  face: null,
9916
9916
  object: this
9917
9917
  });
@@ -9921,9 +9921,9 @@ class ec extends Nt {
9921
9921
  }
9922
9922
  }
9923
9923
  function Wr(s, e, t, n, i, r) {
9924
- Ss.subVectors(s, t).addScalar(0.5).multiply(n), i !== void 0 ? (Qs.x = r * Ss.x - i * Ss.y, Qs.y = i * Ss.x + r * Ss.y) : Qs.copy(Ss), s.copy(e), s.x += Qs.x, s.y += Qs.y, s.applyMatrix4(rd);
9924
+ Ss.subVectors(s, t).addScalar(0.5).multiply(n), i !== void 0 ? (Qs.x = r * Ss.x - i * Ss.y, Qs.y = i * Ss.x + r * Ss.y) : Qs.copy(Ss), s.copy(e), s.x += Qs.x, s.y += Qs.y, s.applyMatrix4(ad);
9925
9925
  }
9926
- const Xr = /* @__PURE__ */ new F(), ah = /* @__PURE__ */ new F();
9926
+ const Xr = /* @__PURE__ */ new F(), oh = /* @__PURE__ */ new F();
9927
9927
  class p0 extends Nt {
9928
9928
  /**
9929
9929
  * Constructs a new LOD.
@@ -10034,8 +10034,8 @@ class p0 extends Nt {
10034
10034
  update(e) {
10035
10035
  const t = this.levels;
10036
10036
  if (t.length > 1) {
10037
- Xr.setFromMatrixPosition(e.matrixWorld), ah.setFromMatrixPosition(this.matrixWorld);
10038
- const n = Xr.distanceTo(ah) / e.zoom;
10037
+ Xr.setFromMatrixPosition(e.matrixWorld), oh.setFromMatrixPosition(this.matrixWorld);
10038
+ const n = Xr.distanceTo(oh) / e.zoom;
10039
10039
  t[0].object.visible = !0;
10040
10040
  let i, r;
10041
10041
  for (i = 1, r = t.length; i < r; i++) {
@@ -10064,7 +10064,7 @@ class p0 extends Nt {
10064
10064
  return t;
10065
10065
  }
10066
10066
  }
10067
- const oh = /* @__PURE__ */ new F(), lh = /* @__PURE__ */ new xt(), ch = /* @__PURE__ */ new xt(), m0 = /* @__PURE__ */ new F(), hh = /* @__PURE__ */ new lt(), qr = /* @__PURE__ */ new F(), xo = /* @__PURE__ */ new yi(), uh = /* @__PURE__ */ new lt(), Mo = /* @__PURE__ */ new yr();
10067
+ const lh = /* @__PURE__ */ new F(), ch = /* @__PURE__ */ new xt(), hh = /* @__PURE__ */ new xt(), m0 = /* @__PURE__ */ new F(), uh = /* @__PURE__ */ new lt(), qr = /* @__PURE__ */ new F(), xo = /* @__PURE__ */ new yi(), dh = /* @__PURE__ */ new lt(), Mo = /* @__PURE__ */ new yr();
10068
10068
  class g0 extends Rt {
10069
10069
  /**
10070
10070
  * Constructs a new skinned mesh.
@@ -10073,7 +10073,7 @@ class g0 extends Rt {
10073
10073
  * @param {Material|Array<Material>} [material] - The mesh material.
10074
10074
  */
10075
10075
  constructor(e, t) {
10076
- super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Uc, this.bindMatrix = new lt(), this.bindMatrixInverse = new lt(), this.boundingBox = null, this.boundingSphere = null;
10076
+ super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Nc, this.bindMatrix = new lt(), this.bindMatrixInverse = new lt(), this.boundingBox = null, this.boundingSphere = null;
10077
10077
  }
10078
10078
  /**
10079
10079
  * Computes the bounding box of the skinned mesh, and updates {@link SkinnedMesh#boundingBox}.
@@ -10106,7 +10106,7 @@ class g0 extends Rt {
10106
10106
  }
10107
10107
  raycast(e, t) {
10108
10108
  const n = this.material, i = this.matrixWorld;
10109
- n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), xo.copy(this.boundingSphere), xo.applyMatrix4(i), e.ray.intersectsSphere(xo) !== !1 && (uh.copy(i).invert(), Mo.copy(e.ray).applyMatrix4(uh), !(this.boundingBox !== null && Mo.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Mo)));
10109
+ n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), xo.copy(this.boundingSphere), xo.applyMatrix4(i), e.ray.intersectsSphere(xo) !== !1 && (dh.copy(i).invert(), Mo.copy(e.ray).applyMatrix4(dh), !(this.boundingBox !== null && Mo.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Mo)));
10110
10110
  }
10111
10111
  getVertexPosition(e, t) {
10112
10112
  return super.getVertexPosition(e, t), this.applyBoneTransform(e, t), t;
@@ -10140,7 +10140,7 @@ class g0 extends Rt {
10140
10140
  }
10141
10141
  }
10142
10142
  updateMatrixWorld(e) {
10143
- super.updateMatrixWorld(e), this.bindMode === Uc ? this.bindMatrixInverse.copy(this.matrixWorld).invert() : this.bindMode === up ? this.bindMatrixInverse.copy(this.bindMatrix).invert() : console.warn("THREE.SkinnedMesh: Unrecognized bindMode: " + this.bindMode);
10143
+ super.updateMatrixWorld(e), this.bindMode === Nc ? this.bindMatrixInverse.copy(this.matrixWorld).invert() : this.bindMode === up ? this.bindMatrixInverse.copy(this.bindMatrix).invert() : console.warn("THREE.SkinnedMesh: Unrecognized bindMode: " + this.bindMode);
10144
10144
  }
10145
10145
  /**
10146
10146
  * Applies the bone transform associated with the given index to the given
@@ -10153,18 +10153,18 @@ class g0 extends Rt {
10153
10153
  */
10154
10154
  applyBoneTransform(e, t) {
10155
10155
  const n = this.skeleton, i = this.geometry;
10156
- lh.fromBufferAttribute(i.attributes.skinIndex, e), ch.fromBufferAttribute(i.attributes.skinWeight, e), oh.copy(t).applyMatrix4(this.bindMatrix), t.set(0, 0, 0);
10156
+ ch.fromBufferAttribute(i.attributes.skinIndex, e), hh.fromBufferAttribute(i.attributes.skinWeight, e), lh.copy(t).applyMatrix4(this.bindMatrix), t.set(0, 0, 0);
10157
10157
  for (let r = 0; r < 4; r++) {
10158
- const a = ch.getComponent(r);
10158
+ const a = hh.getComponent(r);
10159
10159
  if (a !== 0) {
10160
- const o = lh.getComponent(r);
10161
- hh.multiplyMatrices(n.bones[o].matrixWorld, n.boneInverses[o]), t.addScaledVector(m0.copy(oh).applyMatrix4(hh), a);
10160
+ const o = ch.getComponent(r);
10161
+ uh.multiplyMatrices(n.bones[o].matrixWorld, n.boneInverses[o]), t.addScaledVector(m0.copy(lh).applyMatrix4(uh), a);
10162
10162
  }
10163
10163
  }
10164
10164
  return t.applyMatrix4(this.bindMatrixInverse);
10165
10165
  }
10166
10166
  }
10167
- class ad extends Nt {
10167
+ class od extends Nt {
10168
10168
  /**
10169
10169
  * Constructs a new bone.
10170
10170
  */
@@ -10172,7 +10172,7 @@ class ad extends Nt {
10172
10172
  super(), this.isBone = !0, this.type = "Bone";
10173
10173
  }
10174
10174
  }
10175
- class od extends cn {
10175
+ class ld extends cn {
10176
10176
  /**
10177
10177
  * Constructs a new data texture.
10178
10178
  *
@@ -10193,8 +10193,8 @@ class od extends cn {
10193
10193
  super(null, a, o, l, c, h, i, r, u, d), this.isDataTexture = !0, this.image = { data: e, width: t, height: n }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
10194
10194
  }
10195
10195
  }
10196
- const dh = /* @__PURE__ */ new lt(), _0 = /* @__PURE__ */ new lt();
10197
- class tc {
10196
+ const fh = /* @__PURE__ */ new lt(), _0 = /* @__PURE__ */ new lt();
10197
+ class nc {
10198
10198
  /**
10199
10199
  * Constructs a new skeleton.
10200
10200
  *
@@ -10251,7 +10251,7 @@ class tc {
10251
10251
  const e = this.bones, t = this.boneInverses, n = this.boneMatrices, i = this.boneTexture;
10252
10252
  for (let r = 0, a = e.length; r < a; r++) {
10253
10253
  const o = e[r] ? e[r].matrixWorld : _0;
10254
- dh.multiplyMatrices(o, t[r]), dh.toArray(n, r * 16);
10254
+ fh.multiplyMatrices(o, t[r]), fh.toArray(n, r * 16);
10255
10255
  }
10256
10256
  i !== null && (i.needsUpdate = !0);
10257
10257
  }
@@ -10261,7 +10261,7 @@ class tc {
10261
10261
  * @return {Skeleton} A clone of this instance.
10262
10262
  */
10263
10263
  clone() {
10264
- return new tc(this.bones, this.boneInverses);
10264
+ return new nc(this.bones, this.boneInverses);
10265
10265
  }
10266
10266
  /**
10267
10267
  * Computes a data texture for passing bone data to the vertex shader.
@@ -10273,7 +10273,7 @@ class tc {
10273
10273
  e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
10274
10274
  const t = new Float32Array(e * e * 4);
10275
10275
  t.set(this.boneMatrices);
10276
- const n = new od(t, e, e, On, Qn);
10276
+ const n = new ld(t, e, e, On, Qn);
10277
10277
  return n.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = n, this;
10278
10278
  }
10279
10279
  /**
@@ -10309,7 +10309,7 @@ class tc {
10309
10309
  for (let n = 0, i = e.bones.length; n < i; n++) {
10310
10310
  const r = e.bones[n];
10311
10311
  let a = t[r];
10312
- a === void 0 && (console.warn("THREE.Skeleton: No bone found with UUID:", r), a = new ad()), this.bones.push(a), this.boneInverses.push(new lt().fromArray(e.boneInverses[n]));
10312
+ a === void 0 && (console.warn("THREE.Skeleton: No bone found with UUID:", r), a = new od()), this.bones.push(a), this.boneInverses.push(new lt().fromArray(e.boneInverses[n]));
10313
10313
  }
10314
10314
  return this.init(), this;
10315
10315
  }
@@ -10552,7 +10552,7 @@ class Gi {
10552
10552
  }
10553
10553
  }
10554
10554
  const zi = /* @__PURE__ */ new yi(), jr = /* @__PURE__ */ new F();
10555
- class nc {
10555
+ class ic {
10556
10556
  /**
10557
10557
  * Constructs a new frustum.
10558
10558
  *
@@ -10703,8 +10703,8 @@ class Pi extends In {
10703
10703
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
10704
10704
  }
10705
10705
  }
10706
- const Ra = /* @__PURE__ */ new F(), La = /* @__PURE__ */ new F(), fh = /* @__PURE__ */ new lt(), tr = /* @__PURE__ */ new yr(), Yr = /* @__PURE__ */ new yi(), So = /* @__PURE__ */ new F(), ph = /* @__PURE__ */ new F();
10707
- class ic extends Nt {
10706
+ const Ra = /* @__PURE__ */ new F(), La = /* @__PURE__ */ new F(), ph = /* @__PURE__ */ new lt(), tr = /* @__PURE__ */ new yr(), Yr = /* @__PURE__ */ new yi(), So = /* @__PURE__ */ new F(), mh = /* @__PURE__ */ new F();
10707
+ class sc extends Nt {
10708
10708
  /**
10709
10709
  * Constructs a new line.
10710
10710
  *
@@ -10744,7 +10744,7 @@ class ic extends Nt {
10744
10744
  raycast(e, t) {
10745
10745
  const n = this.geometry, i = this.matrixWorld, r = e.params.Line.threshold, a = n.drawRange;
10746
10746
  if (n.boundingSphere === null && n.computeBoundingSphere(), Yr.copy(n.boundingSphere), Yr.applyMatrix4(i), Yr.radius += r, e.ray.intersectsSphere(Yr) === !1) return;
10747
- fh.copy(i).invert(), tr.copy(e.ray).applyMatrix4(fh);
10747
+ ph.copy(i).invert(), tr.copy(e.ray).applyMatrix4(ph);
10748
10748
  const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = this.isLineSegments ? 2 : 1, h = n.index, d = n.attributes.position;
10749
10749
  if (h !== null) {
10750
10750
  const f = Math.max(0, a.start), m = Math.min(h.count, a.start + a.count);
@@ -10788,7 +10788,7 @@ class ic extends Nt {
10788
10788
  }
10789
10789
  function $r(s, e, t, n, i, r, a) {
10790
10790
  const o = s.geometry.attributes.position;
10791
- if (Ra.fromBufferAttribute(o, i), La.fromBufferAttribute(o, r), t.distanceSqToSegment(Ra, La, So, ph) > n) return;
10791
+ if (Ra.fromBufferAttribute(o, i), La.fromBufferAttribute(o, r), t.distanceSqToSegment(Ra, La, So, mh) > n) return;
10792
10792
  So.applyMatrix4(s.matrixWorld);
10793
10793
  const c = e.ray.origin.distanceTo(So);
10794
10794
  if (!(c < e.near || c > e.far))
@@ -10796,7 +10796,7 @@ function $r(s, e, t, n, i, r, a) {
10796
10796
  distance: c,
10797
10797
  // What do we want? intersection point on the ray or on the segment??
10798
10798
  // point: raycaster.ray.at( distance ),
10799
- point: ph.clone().applyMatrix4(s.matrixWorld),
10799
+ point: mh.clone().applyMatrix4(s.matrixWorld),
10800
10800
  index: a,
10801
10801
  face: null,
10802
10802
  faceIndex: null,
@@ -10804,8 +10804,8 @@ function $r(s, e, t, n, i, r, a) {
10804
10804
  object: s
10805
10805
  };
10806
10806
  }
10807
- const mh = /* @__PURE__ */ new F(), gh = /* @__PURE__ */ new F();
10808
- class Pa extends ic {
10807
+ const gh = /* @__PURE__ */ new F(), _h = /* @__PURE__ */ new F();
10808
+ class Pa extends sc {
10809
10809
  /**
10810
10810
  * Constructs a new line segments.
10811
10811
  *
@@ -10820,7 +10820,7 @@ class Pa extends ic {
10820
10820
  if (e.index === null) {
10821
10821
  const t = e.attributes.position, n = [];
10822
10822
  for (let i = 0, r = t.count; i < r; i += 2)
10823
- mh.fromBufferAttribute(t, i), gh.fromBufferAttribute(t, i + 1), n[i] = i === 0 ? 0 : n[i - 1], n[i + 1] = n[i] + mh.distanceTo(gh);
10823
+ gh.fromBufferAttribute(t, i), _h.fromBufferAttribute(t, i + 1), n[i] = i === 0 ? 0 : n[i - 1], n[i + 1] = n[i] + gh.distanceTo(_h);
10824
10824
  e.setAttribute("lineDistance", new pt(n, 1));
10825
10825
  } else
10826
10826
  console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
@@ -10844,7 +10844,7 @@ class Yi extends In {
10844
10844
  return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
10845
10845
  }
10846
10846
  }
10847
- const _h = /* @__PURE__ */ new lt(), Rl = /* @__PURE__ */ new yr(), Jr = /* @__PURE__ */ new yi(), Kr = /* @__PURE__ */ new F();
10847
+ const vh = /* @__PURE__ */ new lt(), Rl = /* @__PURE__ */ new yr(), Jr = /* @__PURE__ */ new yi(), Kr = /* @__PURE__ */ new F();
10848
10848
  class cr extends Nt {
10849
10849
  /**
10850
10850
  * Constructs a new point cloud.
@@ -10867,18 +10867,18 @@ class cr extends Nt {
10867
10867
  raycast(e, t) {
10868
10868
  const n = this.geometry, i = this.matrixWorld, r = e.params.Points.threshold, a = n.drawRange;
10869
10869
  if (n.boundingSphere === null && n.computeBoundingSphere(), Jr.copy(n.boundingSphere), Jr.applyMatrix4(i), Jr.radius += r, e.ray.intersectsSphere(Jr) === !1) return;
10870
- _h.copy(i).invert(), Rl.copy(e.ray).applyMatrix4(_h);
10870
+ vh.copy(i).invert(), Rl.copy(e.ray).applyMatrix4(vh);
10871
10871
  const o = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = n.index, u = n.attributes.position;
10872
10872
  if (c !== null) {
10873
10873
  const d = Math.max(0, a.start), f = Math.min(c.count, a.start + a.count);
10874
10874
  for (let m = d, _ = f; m < _; m++) {
10875
10875
  const g = c.getX(m);
10876
- Kr.fromBufferAttribute(u, g), vh(Kr, g, l, i, e, t, this);
10876
+ Kr.fromBufferAttribute(u, g), yh(Kr, g, l, i, e, t, this);
10877
10877
  }
10878
10878
  } else {
10879
10879
  const d = Math.max(0, a.start), f = Math.min(u.count, a.start + a.count);
10880
10880
  for (let m = d, _ = f; m < _; m++)
10881
- Kr.fromBufferAttribute(u, m), vh(Kr, m, l, i, e, t, this);
10881
+ Kr.fromBufferAttribute(u, m), yh(Kr, m, l, i, e, t, this);
10882
10882
  }
10883
10883
  }
10884
10884
  /**
@@ -10899,7 +10899,7 @@ class cr extends Nt {
10899
10899
  }
10900
10900
  }
10901
10901
  }
10902
- function vh(s, e, t, n, i, r, a) {
10902
+ function yh(s, e, t, n, i, r, a) {
10903
10903
  const o = Rl.distanceSqToPoint(s);
10904
10904
  if (o < t) {
10905
10905
  const l = new F();
@@ -10936,7 +10936,7 @@ class x0 extends cn {
10936
10936
  super(e, t, n, i, r, a, o, l, c), this.isCanvasTexture = !0, this.needsUpdate = !0;
10937
10937
  }
10938
10938
  }
10939
- class ld extends cn {
10939
+ class cd extends cn {
10940
10940
  /**
10941
10941
  * Constructs a new depth texture.
10942
10942
  *
@@ -10959,14 +10959,14 @@ class ld extends cn {
10959
10959
  super(d, i, r, a, o, l, h, n, c), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
10960
10960
  }
10961
10961
  copy(e) {
10962
- return super.copy(e), this.source = new Kl(Object.assign({}, e.image)), this.compareFunction = e.compareFunction, this;
10962
+ return super.copy(e), this.source = new Zl(Object.assign({}, e.image)), this.compareFunction = e.compareFunction, this;
10963
10963
  }
10964
10964
  toJSON(e) {
10965
10965
  const t = super.toJSON(e);
10966
10966
  return this.compareFunction !== null && (t.compareFunction = this.compareFunction), t;
10967
10967
  }
10968
10968
  }
10969
- class sc extends Bt {
10969
+ class rc extends Bt {
10970
10970
  /**
10971
10971
  * Constructs a new cylinder geometry.
10972
10972
  *
@@ -11046,7 +11046,7 @@ class sc extends Bt {
11046
11046
  * @return {CylinderGeometry} A new instance.
11047
11047
  */
11048
11048
  static fromJSON(e) {
11049
- return new sc(e.radiusTop, e.radiusBottom, e.height, e.radialSegments, e.heightSegments, e.openEnded, e.thetaStart, e.thetaLength);
11049
+ return new rc(e.radiusTop, e.radiusBottom, e.height, e.radialSegments, e.heightSegments, e.openEnded, e.thetaStart, e.thetaLength);
11050
11050
  }
11051
11051
  }
11052
11052
  class xi {
@@ -11283,7 +11283,7 @@ class xi {
11283
11283
  return this.arcLengthDivisions = e.arcLengthDivisions, this;
11284
11284
  }
11285
11285
  }
11286
- class cd extends xi {
11286
+ class hd extends xi {
11287
11287
  /**
11288
11288
  * Constructs a new ellipse curve.
11289
11289
  *
@@ -11332,7 +11332,7 @@ class cd extends xi {
11332
11332
  return super.fromJSON(e), this.aX = e.aX, this.aY = e.aY, this.xRadius = e.xRadius, this.yRadius = e.yRadius, this.aStartAngle = e.aStartAngle, this.aEndAngle = e.aEndAngle, this.aClockwise = e.aClockwise, this.aRotation = e.aRotation, this;
11333
11333
  }
11334
11334
  }
11335
- class M0 extends cd {
11335
+ class M0 extends hd {
11336
11336
  /**
11337
11337
  * Constructs a new arc curve.
11338
11338
  *
@@ -11347,7 +11347,7 @@ class M0 extends cd {
11347
11347
  super(e, t, n, n, i, r, a), this.isArcCurve = !0, this.type = "ArcCurve";
11348
11348
  }
11349
11349
  }
11350
- function rc() {
11350
+ function ac() {
11351
11351
  let s = 0, e = 0, t = 0, n = 0;
11352
11352
  function i(r, a, o, l) {
11353
11353
  s = r, e = o, t = -3 * r + 3 * a - 2 * o - l, n = 2 * r - 2 * a + o + l;
@@ -11366,7 +11366,7 @@ function rc() {
11366
11366
  }
11367
11367
  };
11368
11368
  }
11369
- const Zr = /* @__PURE__ */ new F(), Eo = /* @__PURE__ */ new rc(), Ao = /* @__PURE__ */ new rc(), wo = /* @__PURE__ */ new rc();
11369
+ const Zr = /* @__PURE__ */ new F(), Eo = /* @__PURE__ */ new ac(), Ao = /* @__PURE__ */ new ac(), wo = /* @__PURE__ */ new ac();
11370
11370
  class b0 extends xi {
11371
11371
  /**
11372
11372
  * Constructs a new Catmull-Rom curve.
@@ -11430,7 +11430,7 @@ class b0 extends xi {
11430
11430
  return this.closed = e.closed, this.curveType = e.curveType, this.tension = e.tension, this;
11431
11431
  }
11432
11432
  }
11433
- function yh(s, e, t, n, i) {
11433
+ function xh(s, e, t, n, i) {
11434
11434
  const r = (n - e) * 0.5, a = (i - t) * 0.5, o = s * s, l = s * o;
11435
11435
  return (2 * t - 2 * n + r + a) * l + (-3 * t + 3 * n - 2 * r - a) * o + r * s + t;
11436
11436
  }
@@ -11659,7 +11659,7 @@ class U0 extends xi {
11659
11659
  return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
11660
11660
  }
11661
11661
  }
11662
- class hd extends xi {
11662
+ class ud extends xi {
11663
11663
  /**
11664
11664
  * Constructs a new Quadratic Bezier curve.
11665
11665
  *
@@ -11715,8 +11715,8 @@ class N0 extends xi {
11715
11715
  getPoint(e, t = new Ge()) {
11716
11716
  const n = t, i = this.points, r = (i.length - 1) * e, a = Math.floor(r), o = r - a, l = i[a === 0 ? a : a - 1], c = i[a], h = i[a > i.length - 2 ? i.length - 1 : a + 1], u = i[a > i.length - 3 ? i.length - 1 : a + 2];
11717
11717
  return n.set(
11718
- yh(o, l.x, c.x, h.x, u.x),
11719
- yh(o, l.y, c.y, h.y, u.y)
11718
+ xh(o, l.x, c.x, h.x, u.x),
11719
+ xh(o, l.y, c.y, h.y, u.y)
11720
11720
  ), n;
11721
11721
  }
11722
11722
  copy(e) {
@@ -11751,11 +11751,11 @@ var F0 = /* @__PURE__ */ Object.freeze({
11751
11751
  CatmullRomCurve3: b0,
11752
11752
  CubicBezierCurve: L0,
11753
11753
  CubicBezierCurve3: P0,
11754
- EllipseCurve: cd,
11754
+ EllipseCurve: hd,
11755
11755
  LineCurve: D0,
11756
11756
  LineCurve3: I0,
11757
11757
  QuadraticBezierCurve: U0,
11758
- QuadraticBezierCurve3: hd,
11758
+ QuadraticBezierCurve3: ud,
11759
11759
  SplineCurve: N0
11760
11760
  });
11761
11761
  class ka extends Bt {
@@ -11859,7 +11859,7 @@ class Va extends Bt {
11859
11859
  return new Va(e.radius, e.widthSegments, e.heightSegments, e.phiStart, e.phiLength, e.thetaStart, e.thetaLength);
11860
11860
  }
11861
11861
  }
11862
- class ud extends Bt {
11862
+ class dd extends Bt {
11863
11863
  /**
11864
11864
  * Constructs a new tube geometry.
11865
11865
  *
@@ -11869,7 +11869,7 @@ class ud extends Bt {
11869
11869
  * @param {number} [radialSegments=8] - The number of segments that make up the cross-section.
11870
11870
  * @param {boolean} [closed=false] - Whether the tube is closed or not.
11871
11871
  */
11872
- constructor(e = new hd(new F(-1, -1, 0), new F(-1, 1, 0), new F(1, 1, 0)), t = 64, n = 1, i = 8, r = !1) {
11872
+ constructor(e = new ud(new F(-1, -1, 0), new F(-1, 1, 0), new F(1, 1, 0)), t = 64, n = 1, i = 8, r = !1) {
11873
11873
  super(), this.type = "TubeGeometry", this.parameters = {
11874
11874
  path: e,
11875
11875
  tubularSegments: t,
@@ -11924,7 +11924,7 @@ class ud extends Bt {
11924
11924
  * @return {TubeGeometry} A new instance.
11925
11925
  */
11926
11926
  static fromJSON(e) {
11927
- return new ud(
11927
+ return new dd(
11928
11928
  new F0[e.path.type]().fromJSON(e.path),
11929
11929
  e.tubularSegments,
11930
11930
  e.radius,
@@ -11953,7 +11953,7 @@ class O0 extends Bt {
11953
11953
  for (let m = d, _ = d + f; m < _; m += 3)
11954
11954
  for (let g = 0; g < 3; g++) {
11955
11955
  const p = o.getX(m + g), S = o.getX(m + (g + 1) % 3);
11956
- i.fromBufferAttribute(a, p), r.fromBufferAttribute(a, S), xh(i, r, n) === !0 && (t.push(i.x, i.y, i.z), t.push(r.x, r.y, r.z));
11956
+ i.fromBufferAttribute(a, p), r.fromBufferAttribute(a, S), Mh(i, r, n) === !0 && (t.push(i.x, i.y, i.z), t.push(r.x, r.y, r.z));
11957
11957
  }
11958
11958
  }
11959
11959
  } else {
@@ -11961,7 +11961,7 @@ class O0 extends Bt {
11961
11961
  for (let o = 0, l = a.count / 3; o < l; o++)
11962
11962
  for (let c = 0; c < 3; c++) {
11963
11963
  const h = 3 * o + c, u = 3 * o + (c + 1) % 3;
11964
- i.fromBufferAttribute(a, h), r.fromBufferAttribute(a, u), xh(i, r, n) === !0 && (t.push(i.x, i.y, i.z), t.push(r.x, r.y, r.z));
11964
+ i.fromBufferAttribute(a, h), r.fromBufferAttribute(a, u), Mh(i, r, n) === !0 && (t.push(i.x, i.y, i.z), t.push(r.x, r.y, r.z));
11965
11965
  }
11966
11966
  }
11967
11967
  this.setAttribute("position", new pt(t, 3));
@@ -11971,7 +11971,7 @@ class O0 extends Bt {
11971
11971
  return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
11972
11972
  }
11973
11973
  }
11974
- function xh(s, e, t) {
11974
+ function Mh(s, e, t) {
11975
11975
  const n = `${s.x},${s.y},${s.z}-${e.x},${e.y},${e.z}`, i = `${e.x},${e.y},${e.z}-${s.x},${s.y},${s.z}`;
11976
11976
  return t.has(n) === !0 || t.has(i) === !0 ? !1 : (t.add(n), t.add(i), !0);
11977
11977
  }
@@ -12091,7 +12091,7 @@ function G0(s) {
12091
12091
  for (let i = 0; i !== t; ++i) n[i] = i;
12092
12092
  return n.sort(e), n;
12093
12093
  }
12094
- function Mh(s, e, t) {
12094
+ function bh(s, e, t) {
12095
12095
  const n = s.length, i = new s.constructor(n);
12096
12096
  for (let r = 0, a = 0; a !== n; ++r) {
12097
12097
  const o = t[r] * e;
@@ -12100,7 +12100,7 @@ function Mh(s, e, t) {
12100
12100
  }
12101
12101
  return i;
12102
12102
  }
12103
- function dd(s, e, t, n) {
12103
+ function fd(s, e, t, n) {
12104
12104
  let i = 1, r = s[0];
12105
12105
  for (; r !== void 0 && r[n] === void 0; )
12106
12106
  r = s[i++];
@@ -12240,8 +12240,8 @@ class W0 extends Ha {
12240
12240
  */
12241
12241
  constructor(e, t, n, i) {
12242
12242
  super(e, t, n, i), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
12243
- endingStart: Nc,
12244
- endingEnd: Nc
12243
+ endingStart: Fc,
12244
+ endingEnd: Fc
12245
12245
  };
12246
12246
  }
12247
12247
  intervalChanged_(e, t, n) {
@@ -12249,10 +12249,10 @@ class W0 extends Ha {
12249
12249
  let r = e - 2, a = e + 1, o = i[r], l = i[a];
12250
12250
  if (o === void 0)
12251
12251
  switch (this.getSettings_().endingStart) {
12252
- case Fc:
12252
+ case Oc:
12253
12253
  r = e, o = 2 * t - n;
12254
12254
  break;
12255
- case Oc:
12255
+ case zc:
12256
12256
  r = i.length - 2, o = t + i[r] - i[r + 1];
12257
12257
  break;
12258
12258
  default:
@@ -12260,10 +12260,10 @@ class W0 extends Ha {
12260
12260
  }
12261
12261
  if (l === void 0)
12262
12262
  switch (this.getSettings_().endingEnd) {
12263
- case Fc:
12263
+ case Oc:
12264
12264
  a = e, l = 2 * n - t;
12265
12265
  break;
12266
- case Oc:
12266
+ case zc:
12267
12267
  a = 1, l = n + i[1] - i[0];
12268
12268
  break;
12269
12269
  default:
@@ -12598,7 +12598,7 @@ Ws.prototype.ValueBufferType = Array;
12598
12598
  Ws.prototype.DefaultInterpolation = wa;
12599
12599
  Ws.prototype.InterpolantFactoryMethodLinear = void 0;
12600
12600
  Ws.prototype.InterpolantFactoryMethodSmooth = void 0;
12601
- class fd extends Yn {
12601
+ class pd extends Yn {
12602
12602
  /**
12603
12603
  * Constructs a new color keyframe track.
12604
12604
  *
@@ -12611,7 +12611,7 @@ class fd extends Yn {
12611
12611
  super(e, t, n, i);
12612
12612
  }
12613
12613
  }
12614
- fd.prototype.ValueTypeName = "color";
12614
+ pd.prototype.ValueTypeName = "color";
12615
12615
  class Da extends Yn {
12616
12616
  /**
12617
12617
  * Constructs a new number keyframe track.
@@ -12705,7 +12705,7 @@ class Hs extends Yn {
12705
12705
  }
12706
12706
  }
12707
12707
  Hs.prototype.ValueTypeName = "vector";
12708
- class bh {
12708
+ class Sh {
12709
12709
  /**
12710
12710
  * Constructs a new animation clip.
12711
12711
  *
@@ -12780,7 +12780,7 @@ class bh {
12780
12780
  (o + 1) % r
12781
12781
  ), c.push(0, 1, 0);
12782
12782
  const h = G0(l);
12783
- l = Mh(l, 1, h), c = Mh(c, 1, h), !i && l[0] === 0 && (l.push(r), c.push(c[0])), a.push(
12783
+ l = bh(l, 1, h), c = bh(c, 1, h), !i && l[0] === 0 && (l.push(r), c.push(c[0])), a.push(
12784
12784
  new Da(
12785
12785
  ".morphTargetInfluences[" + t[o].name + "]",
12786
12786
  l,
@@ -12854,7 +12854,7 @@ class bh {
12854
12854
  const n = function(u, d, f, m, _) {
12855
12855
  if (f.length !== 0) {
12856
12856
  const g = [], p = [];
12857
- dd(f, g, p, m), g.length !== 0 && _.push(new u(d, g, p));
12857
+ fd(f, g, p, m), g.length !== 0 && _.push(new u(d, g, p));
12858
12858
  }
12859
12859
  }, i = [], r = e.name || "default", a = e.fps || 30, o = e.blendMode;
12860
12860
  let l = e.length || -1;
@@ -12984,7 +12984,7 @@ function Y0(s) {
12984
12984
  case "vector4":
12985
12985
  return Hs;
12986
12986
  case "color":
12987
- return fd;
12987
+ return pd;
12988
12988
  case "quaternion":
12989
12989
  return xr;
12990
12990
  case "bool":
@@ -13001,7 +13001,7 @@ function $0(s) {
13001
13001
  const e = Y0(s.type);
13002
13002
  if (s.times === void 0) {
13003
13003
  const t = [], n = [];
13004
- dd(s.keys, t, n, "value"), s.times = t, s.values = n;
13004
+ fd(s.keys, t, n, "value"), s.times = t, s.values = n;
13005
13005
  }
13006
13006
  return e.parse !== void 0 ? e.parse(s) : new e(s.name, s.times, s.values, s.interpolation);
13007
13007
  }
@@ -13098,7 +13098,7 @@ class J0 {
13098
13098
  };
13099
13099
  }
13100
13100
  }
13101
- const ac = /* @__PURE__ */ new J0();
13101
+ const oc = /* @__PURE__ */ new J0();
13102
13102
  class jn {
13103
13103
  /**
13104
13104
  * Constructs a new loader.
@@ -13106,7 +13106,7 @@ class jn {
13106
13106
  * @param {LoadingManager} [manager] - The loading manager.
13107
13107
  */
13108
13108
  constructor(e) {
13109
- this.manager = e !== void 0 ? e : ac, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
13109
+ this.manager = e !== void 0 ? e : oc, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
13110
13110
  }
13111
13111
  /**
13112
13112
  * This method needs to be implemented by all concrete loaders. It holds the
@@ -13394,7 +13394,7 @@ class Q0 extends jn {
13394
13394
  * @return {DataTexture} The data texture.
13395
13395
  */
13396
13396
  load(e, t, n, i) {
13397
- const r = this, a = new od(), o = new qs(this.manager);
13397
+ const r = this, a = new ld(), o = new qs(this.manager);
13398
13398
  return o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setPath(this.path), o.setWithCredentials(r.withCredentials), o.load(e, function(l) {
13399
13399
  let c;
13400
13400
  try {
@@ -13411,7 +13411,7 @@ class Q0 extends jn {
13411
13411
  }, n, i), a;
13412
13412
  }
13413
13413
  }
13414
- class oc extends jn {
13414
+ class lc extends jn {
13415
13415
  /**
13416
13416
  * Constructs a new texture loader.
13417
13417
  *
@@ -13478,15 +13478,15 @@ class xv extends Mr {
13478
13478
  return super.copy(e, t), this.groundColor.copy(e.groundColor), this;
13479
13479
  }
13480
13480
  }
13481
- const To = /* @__PURE__ */ new lt(), Sh = /* @__PURE__ */ new F(), Eh = /* @__PURE__ */ new F();
13482
- class lc {
13481
+ const To = /* @__PURE__ */ new lt(), Eh = /* @__PURE__ */ new F(), Ah = /* @__PURE__ */ new F();
13482
+ class cc {
13483
13483
  /**
13484
13484
  * Constructs a new light shadow.
13485
13485
  *
13486
13486
  * @param {Camera} camera - The light's view of the world.
13487
13487
  */
13488
13488
  constructor(e) {
13489
- this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new Ge(512, 512), this.mapType = ni, this.map = null, this.mapPass = null, this.matrix = new lt(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new nc(), this._frameExtents = new Ge(1, 1), this._viewportCount = 1, this._viewports = [
13489
+ this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new Ge(512, 512), this.mapType = ni, this.map = null, this.mapPass = null, this.matrix = new lt(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new ic(), this._frameExtents = new Ge(1, 1), this._viewportCount = 1, this._viewports = [
13490
13490
  new xt(0, 0, 1, 1)
13491
13491
  ];
13492
13492
  }
@@ -13514,7 +13514,7 @@ class lc {
13514
13514
  */
13515
13515
  updateMatrices(e) {
13516
13516
  const t = this.camera, n = this.matrix;
13517
- Sh.setFromMatrixPosition(e.matrixWorld), t.position.copy(Sh), Eh.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(Eh), t.updateMatrixWorld(), To.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(To), n.set(
13517
+ Eh.setFromMatrixPosition(e.matrixWorld), t.position.copy(Eh), Ah.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(Ah), t.updateMatrixWorld(), To.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(To), n.set(
13518
13518
  0.5,
13519
13519
  0,
13520
13520
  0,
@@ -13585,7 +13585,7 @@ class lc {
13585
13585
  return this.intensity !== 1 && (e.intensity = this.intensity), 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;
13586
13586
  }
13587
13587
  }
13588
- class em extends lc {
13588
+ class em extends cc {
13589
13589
  /**
13590
13590
  * Constructs a new spot light shadow.
13591
13591
  */
@@ -13633,8 +13633,8 @@ class tm extends Mr {
13633
13633
  return super.copy(e, t), this.distance = e.distance, this.angle = e.angle, this.penumbra = e.penumbra, this.decay = e.decay, this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
13634
13634
  }
13635
13635
  }
13636
- const Ah = /* @__PURE__ */ new lt(), nr = /* @__PURE__ */ new F(), Co = /* @__PURE__ */ new F();
13637
- class nm extends lc {
13636
+ const wh = /* @__PURE__ */ new lt(), nr = /* @__PURE__ */ new F(), Co = /* @__PURE__ */ new F();
13637
+ class nm extends cc {
13638
13638
  /**
13639
13639
  * Constructs a new point light shadow.
13640
13640
  */
@@ -13688,7 +13688,7 @@ class nm extends lc {
13688
13688
  */
13689
13689
  updateMatrices(e, t = 0) {
13690
13690
  const n = this.camera, i = this.matrix, r = e.distance || n.far;
13691
- r !== n.far && (n.far = r, n.updateProjectionMatrix()), nr.setFromMatrixPosition(e.matrixWorld), n.position.copy(nr), Co.copy(n.position), Co.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(Co), n.updateMatrixWorld(), i.makeTranslation(-nr.x, -nr.y, -nr.z), Ah.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Ah);
13691
+ r !== n.far && (n.far = r, n.updateProjectionMatrix()), nr.setFromMatrixPosition(e.matrixWorld), n.position.copy(nr), Co.copy(n.position), Co.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(Co), n.updateMatrixWorld(), i.makeTranslation(-nr.x, -nr.y, -nr.z), wh.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(wh);
13692
13692
  }
13693
13693
  }
13694
13694
  class im extends Mr {
@@ -13722,7 +13722,7 @@ class im extends Mr {
13722
13722
  return super.copy(e, t), this.distance = e.distance, this.decay = e.decay, this.shadow = e.shadow.clone(), this;
13723
13723
  }
13724
13724
  }
13725
- class Ga extends td {
13725
+ class Ga extends nd {
13726
13726
  /**
13727
13727
  * Constructs a new orthographic camera.
13728
13728
  *
@@ -13786,7 +13786,7 @@ class Ga extends td {
13786
13786
  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;
13787
13787
  }
13788
13788
  }
13789
- class sm extends lc {
13789
+ class sm extends cc {
13790
13790
  /**
13791
13791
  * Constructs a new directional light shadow.
13792
13792
  */
@@ -13822,7 +13822,7 @@ class am extends Mr {
13822
13822
  super(e, t), this.isAmbientLight = !0, this.type = "AmbientLight";
13823
13823
  }
13824
13824
  }
13825
- class cc {
13825
+ class hc {
13826
13826
  /**
13827
13827
  * Extracts the base URL from the given URL.
13828
13828
  *
@@ -13886,7 +13886,7 @@ class cm {
13886
13886
  * called by the class.
13887
13887
  */
13888
13888
  start() {
13889
- this.startTime = wh(), this.oldTime = this.startTime, this.elapsedTime = 0, this.running = !0;
13889
+ this.startTime = Th(), this.oldTime = this.startTime, this.elapsedTime = 0, this.running = !0;
13890
13890
  }
13891
13891
  /**
13892
13892
  * Stops the clock.
@@ -13912,16 +13912,16 @@ class cm {
13912
13912
  if (this.autoStart && !this.running)
13913
13913
  return this.start(), 0;
13914
13914
  if (this.running) {
13915
- const t = wh();
13915
+ const t = Th();
13916
13916
  e = (t - this.oldTime) / 1e3, this.oldTime = t, this.elapsedTime += e;
13917
13917
  }
13918
13918
  return e;
13919
13919
  }
13920
13920
  }
13921
- function wh() {
13921
+ function Th() {
13922
13922
  return performance.now();
13923
13923
  }
13924
- class Ll extends sd {
13924
+ class Ll extends rd {
13925
13925
  /**
13926
13926
  * Constructs a new instanced interleaved buffer.
13927
13927
  *
@@ -13944,7 +13944,7 @@ class Ll extends sd {
13944
13944
  return t.isInstancedInterleavedBuffer = !0, t.meshPerAttribute = this.meshPerAttribute, t;
13945
13945
  }
13946
13946
  }
13947
- const Th = /* @__PURE__ */ new lt();
13947
+ const Ch = /* @__PURE__ */ new lt();
13948
13948
  class hm {
13949
13949
  /**
13950
13950
  * Constructs a new raycaster.
@@ -13955,7 +13955,7 @@ class hm {
13955
13955
  * @param {number} [far=Infinity] - All results returned are closer than far. Far can't be lower than near.
13956
13956
  */
13957
13957
  constructor(e, t, n = 0, i = 1 / 0) {
13958
- this.ray = new yr(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new Zl(), this.params = {
13958
+ this.ray = new yr(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new Ql(), this.params = {
13959
13959
  Mesh: {},
13960
13960
  Line: { threshold: 1 },
13961
13961
  LOD: {},
@@ -13989,7 +13989,7 @@ class hm {
13989
13989
  * @return {Raycaster} A reference to this raycaster.
13990
13990
  */
13991
13991
  setFromXRController(e) {
13992
- return Th.identity().extractRotation(e.matrixWorld), this.ray.origin.setFromMatrixPosition(e.matrixWorld), this.ray.direction.set(0, 0, -1).applyMatrix4(Th), this;
13992
+ return Ch.identity().extractRotation(e.matrixWorld), this.ray.origin.setFromMatrixPosition(e.matrixWorld), this.ray.direction.set(0, 0, -1).applyMatrix4(Ch), this;
13993
13993
  }
13994
13994
  /**
13995
13995
  * The intersection point of a raycaster intersection test.
@@ -14027,7 +14027,7 @@ class hm {
14027
14027
  * @return {Array<Raycaster~Intersection>} An array holding the intersection points.
14028
14028
  */
14029
14029
  intersectObject(e, t = !0, n = []) {
14030
- return Pl(e, this, n, t), n.sort(Ch), n;
14030
+ return Pl(e, this, n, t), n.sort(Rh), n;
14031
14031
  }
14032
14032
  /**
14033
14033
  * Checks all intersection between the ray and the objects with or without
@@ -14042,10 +14042,10 @@ class hm {
14042
14042
  intersectObjects(e, t = !0, n = []) {
14043
14043
  for (let i = 0, r = e.length; i < r; i++)
14044
14044
  Pl(e[i], this, n, t);
14045
- return n.sort(Ch), n;
14045
+ return n.sort(Rh), n;
14046
14046
  }
14047
14047
  }
14048
- function Ch(s, e) {
14048
+ function Rh(s, e) {
14049
14049
  return s.distance - e.distance;
14050
14050
  }
14051
14051
  function Pl(s, e, t, n) {
@@ -14126,7 +14126,7 @@ class um {
14126
14126
  return new this.constructor().copy(this);
14127
14127
  }
14128
14128
  }
14129
- const Rh = /* @__PURE__ */ new F(), ea = /* @__PURE__ */ new F();
14129
+ const Lh = /* @__PURE__ */ new F(), ea = /* @__PURE__ */ new F();
14130
14130
  class dm {
14131
14131
  /**
14132
14132
  * Constructs a new line segment.
@@ -14208,9 +14208,9 @@ class dm {
14208
14208
  * @return {number} The point parameter.
14209
14209
  */
14210
14210
  closestPointToPointParameter(e, t) {
14211
- Rh.subVectors(e, this.start), ea.subVectors(this.end, this.start);
14211
+ Lh.subVectors(e, this.start), ea.subVectors(this.end, this.start);
14212
14212
  const n = ea.dot(ea);
14213
- let r = ea.dot(Rh) / n;
14213
+ let r = ea.dot(Lh) / n;
14214
14214
  return t && (r = _t(r, 0, 1)), r;
14215
14215
  }
14216
14216
  /**
@@ -14325,25 +14325,25 @@ class bv extends Zi {
14325
14325
  update() {
14326
14326
  }
14327
14327
  }
14328
- function Lh(s, e, t, n) {
14328
+ function Ph(s, e, t, n) {
14329
14329
  const i = fm(n);
14330
14330
  switch (t) {
14331
14331
  // https://registry.khronos.org/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml
14332
- case Gu:
14332
+ case Wu:
14333
14333
  return s * e;
14334
- case Xu:
14334
+ case qu:
14335
14335
  return s * e / i.components * i.byteLength;
14336
- case jl:
14336
+ case Yl:
14337
14337
  return s * e / i.components * i.byteLength;
14338
- case qu:
14338
+ case ju:
14339
14339
  return s * e * 2 / i.components * i.byteLength;
14340
- case Yl:
14340
+ case $l:
14341
14341
  return s * e * 2 / i.components * i.byteLength;
14342
- case Wu:
14342
+ case Xu:
14343
14343
  return s * e * 3 / i.components * i.byteLength;
14344
14344
  case On:
14345
14345
  return s * e * 4 / i.components * i.byteLength;
14346
- case $l:
14346
+ case Jl:
14347
14347
  return s * e * 4 / i.components * i.byteLength;
14348
14348
  // https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_s3tc_srgb/
14349
14349
  case pa:
@@ -14400,7 +14400,7 @@ function Lh(s, e, t, n) {
14400
14400
  case Sl:
14401
14401
  return Math.ceil(s / 4) * Math.ceil(e / 4) * 16;
14402
14402
  // https://registry.khronos.org/webgl/extensions/EXT_texture_compression_rgtc/
14403
- case ju:
14403
+ case Yu:
14404
14404
  case El:
14405
14405
  return Math.ceil(s / 4) * Math.ceil(e / 4) * 8;
14406
14406
  case Al:
@@ -14414,34 +14414,34 @@ function Lh(s, e, t, n) {
14414
14414
  function fm(s) {
14415
14415
  switch (s) {
14416
14416
  case ni:
14417
- case ku:
14417
+ case Vu:
14418
14418
  return { byteLength: 1, components: 1 };
14419
14419
  case dr:
14420
- case Vu:
14420
+ case Hu:
14421
14421
  case vr:
14422
14422
  return { byteLength: 2, components: 1 };
14423
- case Xl:
14424
14423
  case ql:
14424
+ case jl:
14425
14425
  return { byteLength: 2, components: 4 };
14426
14426
  case Ji:
14427
- case Wl:
14427
+ case Xl:
14428
14428
  case Qn:
14429
14429
  return { byteLength: 4, components: 1 };
14430
- case Hu:
14430
+ case Gu:
14431
14431
  return { byteLength: 4, components: 3 };
14432
14432
  }
14433
14433
  throw new Error(`Unknown texture type ${s}.`);
14434
14434
  }
14435
14435
  typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: {
14436
- revision: Gl
14436
+ revision: Wl
14437
14437
  } }));
14438
- typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = Gl);
14438
+ typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = Wl);
14439
14439
  /**
14440
14440
  * @license
14441
14441
  * Copyright 2010-2025 Three.js Authors
14442
14442
  * SPDX-License-Identifier: MIT
14443
14443
  */
14444
- function pd() {
14444
+ function md() {
14445
14445
  let s = null, e = !1, t = null, n = null;
14446
14446
  function i(r, a) {
14447
14447
  t(r, a), n = s.requestAnimationFrame(i);
@@ -18719,7 +18719,7 @@ function $2(s, e, t, n, i, r, a) {
18719
18719
  }), i.update(c)), c.material.uniforms.t2D.value = U, c.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, c.material.toneMapped = yt.getTransfer(U.colorSpace) !== Ut, U.matrixAutoUpdate === !0 && U.updateMatrix(), c.material.uniforms.uvTransform.value.copy(U.matrix), (u !== U || d !== U.version || f !== s.toneMapping) && (c.material.needsUpdate = !0, u = U, d = U.version, f = s.toneMapping), c.layers.enableAll(), E.unshift(c, c.geometry, c.material, 0, 0, null));
18720
18720
  }
18721
18721
  function p(E, v) {
18722
- E.getRGB(ta, ed(s)), n.buffers.color.setClear(ta.r, ta.g, ta.b, v, a);
18722
+ E.getRGB(ta, td(s)), n.buffers.color.setClear(ta.r, ta.g, ta.b, v, a);
18723
18723
  }
18724
18724
  function S() {
18725
18725
  h !== void 0 && (h.geometry.dispose(), h.material.dispose(), h = void 0), c !== void 0 && (c.geometry.dispose(), c.material.dispose(), c = void 0);
@@ -18841,7 +18841,7 @@ function J2(s, e) {
18841
18841
  if (he === void 0 && (Z === "instanceMatrix" && x.instanceMatrix && (he = x.instanceMatrix), Z === "instanceColor" && x.instanceColor && (he = x.instanceColor)), he !== void 0) {
18842
18842
  const _e = he.normalized, oe = he.itemSize, Re = e.get(he);
18843
18843
  if (Re === void 0) continue;
18844
- const Ae = Re.buffer, Y = Re.type, ie = Re.bytesPerElement, re = Y === s.INT || Y === s.UNSIGNED_INT || he.gpuType === Wl;
18844
+ const Ae = Re.buffer, Y = Re.type, ie = Re.bytesPerElement, re = Y === s.INT || Y === s.UNSIGNED_INT || he.gpuType === Xl;
18845
18845
  if (he.isInterleavedBufferAttribute) {
18846
18846
  const ae = he.data, be = ae.stride, me = he.offset;
18847
18847
  if (ae.isInstancedInterleavedBuffer) {
@@ -19126,9 +19126,9 @@ function eg(s) {
19126
19126
  dispose: r
19127
19127
  };
19128
19128
  }
19129
- const Ls = 4, Ph = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ji = 20, Ro = /* @__PURE__ */ new Ga(), Dh = /* @__PURE__ */ new rt();
19129
+ const Ls = 4, Dh = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ji = 20, Ro = /* @__PURE__ */ new Ga(), Ih = /* @__PURE__ */ new rt();
19130
19130
  let Lo = null, Po = 0, Do = 0, Io = !1;
19131
- const Wi = (1 + Math.sqrt(5)) / 2, Es = 1 / Wi, Ih = [
19131
+ const Wi = (1 + Math.sqrt(5)) / 2, Es = 1 / Wi, Uh = [
19132
19132
  /* @__PURE__ */ new F(-Wi, Es, 0),
19133
19133
  /* @__PURE__ */ new F(Wi, Es, 0),
19134
19134
  /* @__PURE__ */ new F(-Es, 0, Wi),
@@ -19140,7 +19140,7 @@ const Wi = (1 + Math.sqrt(5)) / 2, Es = 1 / Wi, Ih = [
19140
19140
  /* @__PURE__ */ new F(-1, 1, 1),
19141
19141
  /* @__PURE__ */ new F(1, 1, 1)
19142
19142
  ], tg = /* @__PURE__ */ new F();
19143
- class Uh {
19143
+ class Nh {
19144
19144
  /**
19145
19145
  * Constructs a new PMREM generator.
19146
19146
  *
@@ -19202,14 +19202,14 @@ class Uh {
19202
19202
  * your texture's network fetch for increased concurrency.
19203
19203
  */
19204
19204
  compileCubemapShader() {
19205
- this._cubemapMaterial === null && (this._cubemapMaterial = Oh(), this._compileMaterial(this._cubemapMaterial));
19205
+ this._cubemapMaterial === null && (this._cubemapMaterial = zh(), this._compileMaterial(this._cubemapMaterial));
19206
19206
  }
19207
19207
  /**
19208
19208
  * Pre-compiles the equirectangular shader. You can get faster start-up by invoking this method during
19209
19209
  * your texture's network fetch for increased concurrency.
19210
19210
  */
19211
19211
  compileEquirectangularShader() {
19212
- this._equirectMaterial === null && (this._equirectMaterial = Fh(), this._compileMaterial(this._equirectMaterial));
19212
+ this._equirectMaterial === null && (this._equirectMaterial = Oh(), this._compileMaterial(this._equirectMaterial));
19213
19213
  }
19214
19214
  /**
19215
19215
  * Disposes of the PMREMGenerator's internal memory. Note that PMREMGenerator is a static class,
@@ -19245,9 +19245,9 @@ class Uh {
19245
19245
  format: On,
19246
19246
  colorSpace: Bs,
19247
19247
  depthBuffer: !1
19248
- }, i = Nh(e, t, n);
19248
+ }, i = Fh(e, t, n);
19249
19249
  if (this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== e || this._pingPongRenderTarget.height !== t) {
19250
- this._pingPongRenderTarget !== null && this._dispose(), this._pingPongRenderTarget = Nh(e, t, n);
19250
+ this._pingPongRenderTarget !== null && this._dispose(), this._pingPongRenderTarget = Fh(e, t, n);
19251
19251
  const { _lodMax: r } = this;
19252
19252
  ({ sizeLods: this._sizeLods, lodPlanes: this._lodPlanes, sigmas: this._sigmas } = ng(r)), this._blurMaterial = ig(r, e, t);
19253
19253
  }
@@ -19259,7 +19259,7 @@ class Uh {
19259
19259
  }
19260
19260
  _sceneToCubeUV(e, t, n, i, r) {
19261
19261
  const l = new mn(90, 1, t, n), c = [1, -1, 1, 1, 1, 1], h = [1, 1, 1, -1, -1, -1], u = this._renderer, d = u.autoClear, f = u.toneMapping;
19262
- u.getClearColor(Dh), u.toneMapping = Li, u.autoClear = !1;
19262
+ u.getClearColor(Ih), u.toneMapping = Li, u.autoClear = !1;
19263
19263
  const m = new Di({
19264
19264
  name: "PMREM.Background",
19265
19265
  side: xn,
@@ -19268,7 +19268,7 @@ class Uh {
19268
19268
  }), _ = new Rt(new Qi(), m);
19269
19269
  let g = !1;
19270
19270
  const p = e.background;
19271
- p ? p.isColor && (m.color.copy(p), e.background = null, g = !0) : (m.color.copy(Dh), g = !0);
19271
+ p ? p.isColor && (m.color.copy(p), e.background = null, g = !0) : (m.color.copy(Ih), g = !0);
19272
19272
  for (let S = 0; S < 6; S++) {
19273
19273
  const E = S % 3;
19274
19274
  E === 0 ? (l.up.set(0, c[S], 0), l.position.set(r.x, r.y, r.z), l.lookAt(r.x + h[S], r.y, r.z)) : E === 1 ? (l.up.set(0, 0, c[S]), l.position.set(r.x, r.y, r.z), l.lookAt(r.x, r.y + h[S], r.z)) : (l.up.set(0, c[S], 0), l.position.set(r.x, r.y, r.z), l.lookAt(r.x, r.y, r.z + h[S]));
@@ -19279,7 +19279,7 @@ class Uh {
19279
19279
  }
19280
19280
  _textureToCubeUV(e, t) {
19281
19281
  const n = this._renderer, i = e.mapping === Os || e.mapping === zs;
19282
- i ? (this._cubemapMaterial === null && (this._cubemapMaterial = Oh()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = Fh());
19282
+ i ? (this._cubemapMaterial === null && (this._cubemapMaterial = zh()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = Oh());
19283
19283
  const r = i ? this._cubemapMaterial : this._equirectMaterial, a = new Rt(this._lodPlanes[0], r), o = r.uniforms;
19284
19284
  o.envMap.value = e;
19285
19285
  const l = this._cubeSize;
@@ -19290,7 +19290,7 @@ class Uh {
19290
19290
  t.autoClear = !1;
19291
19291
  const i = this._lodPlanes.length;
19292
19292
  for (let r = 1; r < i; r++) {
19293
- const a = Math.sqrt(this._sigmas[r] * this._sigmas[r] - this._sigmas[r - 1] * this._sigmas[r - 1]), o = Ih[(i - r - 1) % Ih.length];
19293
+ const a = Math.sqrt(this._sigmas[r] * this._sigmas[r] - this._sigmas[r - 1] * this._sigmas[r - 1]), o = Uh[(i - r - 1) % Uh.length];
19294
19294
  this._blur(e, r - 1, r, a, o);
19295
19295
  }
19296
19296
  t.autoClear = n;
@@ -19354,12 +19354,12 @@ class Uh {
19354
19354
  function ng(s) {
19355
19355
  const e = [], t = [], n = [];
19356
19356
  let i = s;
19357
- const r = s - Ls + 1 + Ph.length;
19357
+ const r = s - Ls + 1 + Dh.length;
19358
19358
  for (let a = 0; a < r; a++) {
19359
19359
  const o = Math.pow(2, i);
19360
19360
  t.push(o);
19361
19361
  let l = 1 / o;
19362
- a > s - Ls ? l = Ph[a - s + Ls - 1] : a === 0 && (l = 0), n.push(l);
19362
+ a > s - Ls ? l = Dh[a - s + Ls - 1] : a === 0 && (l = 0), n.push(l);
19363
19363
  const c = 1 / (o - 2), h = -c, u = 1 + c, d = [h, h, u, h, u, u, h, h, u, u, h, u], f = 6, m = 6, _ = 3, g = 2, p = 1, S = new Float32Array(_ * m * f), E = new Float32Array(g * m * f), v = new Float32Array(p * m * f);
19364
19364
  for (let C = 0; C < f; C++) {
19365
19365
  const T = C % 3 * 2 / 3 - 1, D = C > 2 ? 0 : -1, b = [
@@ -19391,7 +19391,7 @@ function ng(s) {
19391
19391
  }
19392
19392
  return { lodPlanes: e, sizeLods: t, sigmas: n };
19393
19393
  }
19394
- function Nh(s, e, t) {
19394
+ function Fh(s, e, t) {
19395
19395
  const n = new Ki(s, e, t);
19396
19396
  return n.texture.mapping = Oa, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
19397
19397
  }
@@ -19417,7 +19417,7 @@ function ig(s, e, t) {
19417
19417
  mipInt: { value: 0 },
19418
19418
  poleAxis: { value: i }
19419
19419
  },
19420
- vertexShader: hc(),
19420
+ vertexShader: uc(),
19421
19421
  fragmentShader: (
19422
19422
  /* glsl */
19423
19423
  `
@@ -19487,13 +19487,13 @@ function ig(s, e, t) {
19487
19487
  depthWrite: !1
19488
19488
  });
19489
19489
  }
19490
- function Fh() {
19490
+ function Oh() {
19491
19491
  return new _i({
19492
19492
  name: "EquirectangularToCubeUV",
19493
19493
  uniforms: {
19494
19494
  envMap: { value: null }
19495
19495
  },
19496
- vertexShader: hc(),
19496
+ vertexShader: uc(),
19497
19497
  fragmentShader: (
19498
19498
  /* glsl */
19499
19499
  `
@@ -19522,14 +19522,14 @@ function Fh() {
19522
19522
  depthWrite: !1
19523
19523
  });
19524
19524
  }
19525
- function Oh() {
19525
+ function zh() {
19526
19526
  return new _i({
19527
19527
  name: "CubemapToCubeUV",
19528
19528
  uniforms: {
19529
19529
  envMap: { value: null },
19530
19530
  flipEnvMap: { value: -1 }
19531
19531
  },
19532
- vertexShader: hc(),
19532
+ vertexShader: uc(),
19533
19533
  fragmentShader: (
19534
19534
  /* glsl */
19535
19535
  `
@@ -19555,7 +19555,7 @@ function Oh() {
19555
19555
  depthWrite: !1
19556
19556
  });
19557
19557
  }
19558
- function hc() {
19558
+ function uc() {
19559
19559
  return (
19560
19560
  /* glsl */
19561
19561
  `
@@ -19625,12 +19625,12 @@ function sg(s) {
19625
19625
  let u = e.get(o);
19626
19626
  const d = u !== void 0 ? u.texture.pmremVersion : 0;
19627
19627
  if (o.isRenderTargetTexture && o.pmremVersion !== d)
19628
- return t === null && (t = new Uh(s)), u = c ? t.fromEquirectangular(o, u) : t.fromCubemap(o, u), u.texture.pmremVersion = o.pmremVersion, e.set(o, u), u.texture;
19628
+ return t === null && (t = new Nh(s)), u = c ? t.fromEquirectangular(o, u) : t.fromCubemap(o, u), u.texture.pmremVersion = o.pmremVersion, e.set(o, u), u.texture;
19629
19629
  if (u !== void 0)
19630
19630
  return u.texture;
19631
19631
  {
19632
19632
  const f = o.image;
19633
- return c && f && f.height > 0 || h && f && i(f) ? (t === null && (t = new Uh(s)), u = c ? t.fromEquirectangular(o) : t.fromCubemap(o), u.texture.pmremVersion = o.pmremVersion, e.set(o, u), o.addEventListener("dispose", r), u.texture) : null;
19633
+ return c && f && f.height > 0 || h && f && i(f) ? (t === null && (t = new Nh(s)), u = c ? t.fromEquirectangular(o) : t.fromCubemap(o), u.texture.pmremVersion = o.pmremVersion, e.set(o, u), o.addEventListener("dispose", r), u.texture) : null;
19634
19634
  }
19635
19635
  }
19636
19636
  }
@@ -19732,7 +19732,7 @@ function ag(s, e, t, n) {
19732
19732
  }
19733
19733
  } else
19734
19734
  return;
19735
- const g = new ($u(d) ? Qu : Zu)(d, 1);
19735
+ const g = new (Ju(d) ? ed : Qu)(d, 1);
19736
19736
  g.version = _;
19737
19737
  const p = r.get(u);
19738
19738
  p && e.remove(p), r.set(u, g);
@@ -19851,7 +19851,7 @@ function cg(s, e, t) {
19851
19851
  f === !0 && (E = 1), m === !0 && (E = 2), _ === !0 && (E = 3);
19852
19852
  let v = o.attributes.position.count * E, U = 1;
19853
19853
  v > e.maxTextureSize && (U = Math.ceil(v / e.maxTextureSize), v = e.maxTextureSize);
19854
- const C = new Float32Array(v * U * 4 * u), T = new Ju(C, v, U, u);
19854
+ const C = new Float32Array(v * U * 4 * u), T = new Ku(C, v, U, u);
19855
19855
  T.type = Qn, T.needsUpdate = !0;
19856
19856
  const D = E * 4;
19857
19857
  for (let x = 0; x < u; x++) {
@@ -19904,13 +19904,13 @@ function hg(s, e, t, n) {
19904
19904
  dispose: a
19905
19905
  };
19906
19906
  }
19907
- const md = /* @__PURE__ */ new cn(), zh = /* @__PURE__ */ new ld(1, 1), gd = /* @__PURE__ */ new Ju(), _d = /* @__PURE__ */ new $p(), vd = /* @__PURE__ */ new nd(), Bh = [], kh = [], Vh = new Float32Array(16), Hh = new Float32Array(9), Gh = new Float32Array(4);
19907
+ const gd = /* @__PURE__ */ new cn(), Bh = /* @__PURE__ */ new cd(1, 1), _d = /* @__PURE__ */ new Ku(), vd = /* @__PURE__ */ new $p(), yd = /* @__PURE__ */ new id(), kh = [], Vh = [], Hh = new Float32Array(16), Gh = new Float32Array(9), Wh = new Float32Array(4);
19908
19908
  function js(s, e, t) {
19909
19909
  const n = s[0];
19910
19910
  if (n <= 0 || n > 0) return s;
19911
19911
  const i = e * t;
19912
- let r = Bh[i];
19913
- if (r === void 0 && (r = new Float32Array(i), Bh[i] = r), e !== 0) {
19912
+ let r = kh[i];
19913
+ if (r === void 0 && (r = new Float32Array(i), kh[i] = r), e !== 0) {
19914
19914
  n.toArray(r, 0);
19915
19915
  for (let a = 1, o = 0; a !== e; ++a)
19916
19916
  o += t, s[a].toArray(r, o);
@@ -19928,8 +19928,8 @@ function Kt(s, e) {
19928
19928
  s[t] = e[t];
19929
19929
  }
19930
19930
  function Wa(s, e) {
19931
- let t = kh[e];
19932
- t === void 0 && (t = new Int32Array(e), kh[e] = t);
19931
+ let t = Vh[e];
19932
+ t === void 0 && (t = new Int32Array(e), Vh[e] = t);
19933
19933
  for (let n = 0; n !== e; ++n)
19934
19934
  t[n] = s.allocateTextureUnit();
19935
19935
  return t;
@@ -19974,7 +19974,7 @@ function mg(s, e) {
19974
19974
  s.uniformMatrix2fv(this.addr, !1, e), Kt(t, e);
19975
19975
  } else {
19976
19976
  if (Jt(t, n)) return;
19977
- Gh.set(n), s.uniformMatrix2fv(this.addr, !1, Gh), Kt(t, n);
19977
+ Wh.set(n), s.uniformMatrix2fv(this.addr, !1, Wh), Kt(t, n);
19978
19978
  }
19979
19979
  }
19980
19980
  function gg(s, e) {
@@ -19984,7 +19984,7 @@ function gg(s, e) {
19984
19984
  s.uniformMatrix3fv(this.addr, !1, e), Kt(t, e);
19985
19985
  } else {
19986
19986
  if (Jt(t, n)) return;
19987
- Hh.set(n), s.uniformMatrix3fv(this.addr, !1, Hh), Kt(t, n);
19987
+ Gh.set(n), s.uniformMatrix3fv(this.addr, !1, Gh), Kt(t, n);
19988
19988
  }
19989
19989
  }
19990
19990
  function _g(s, e) {
@@ -19994,7 +19994,7 @@ function _g(s, e) {
19994
19994
  s.uniformMatrix4fv(this.addr, !1, e), Kt(t, e);
19995
19995
  } else {
19996
19996
  if (Jt(t, n)) return;
19997
- Vh.set(n), s.uniformMatrix4fv(this.addr, !1, Vh), Kt(t, n);
19997
+ Hh.set(n), s.uniformMatrix4fv(this.addr, !1, Hh), Kt(t, n);
19998
19998
  }
19999
19999
  }
20000
20000
  function vg(s, e) {
@@ -20063,19 +20063,19 @@ function wg(s, e, t) {
20063
20063
  const n = this.cache, i = t.allocateTextureUnit();
20064
20064
  n[0] !== i && (s.uniform1i(this.addr, i), n[0] = i);
20065
20065
  let r;
20066
- this.type === s.SAMPLER_2D_SHADOW ? (zh.compareFunction = Yu, r = zh) : r = md, t.setTexture2D(e || r, i);
20066
+ this.type === s.SAMPLER_2D_SHADOW ? (Bh.compareFunction = $u, r = Bh) : r = gd, t.setTexture2D(e || r, i);
20067
20067
  }
20068
20068
  function Tg(s, e, t) {
20069
20069
  const n = this.cache, i = t.allocateTextureUnit();
20070
- n[0] !== i && (s.uniform1i(this.addr, i), n[0] = i), t.setTexture3D(e || _d, i);
20070
+ n[0] !== i && (s.uniform1i(this.addr, i), n[0] = i), t.setTexture3D(e || vd, i);
20071
20071
  }
20072
20072
  function Cg(s, e, t) {
20073
20073
  const n = this.cache, i = t.allocateTextureUnit();
20074
- n[0] !== i && (s.uniform1i(this.addr, i), n[0] = i), t.setTextureCube(e || vd, i);
20074
+ n[0] !== i && (s.uniform1i(this.addr, i), n[0] = i), t.setTextureCube(e || yd, i);
20075
20075
  }
20076
20076
  function Rg(s, e, t) {
20077
20077
  const n = this.cache, i = t.allocateTextureUnit();
20078
- n[0] !== i && (s.uniform1i(this.addr, i), n[0] = i), t.setTexture2DArray(e || gd, i);
20078
+ n[0] !== i && (s.uniform1i(this.addr, i), n[0] = i), t.setTexture2DArray(e || _d, i);
20079
20079
  }
20080
20080
  function Lg(s) {
20081
20081
  switch (s) {
@@ -20217,25 +20217,25 @@ function qg(s, e, t) {
20217
20217
  const n = this.cache, i = e.length, r = Wa(t, i);
20218
20218
  Jt(n, r) || (s.uniform1iv(this.addr, r), Kt(n, r));
20219
20219
  for (let a = 0; a !== i; ++a)
20220
- t.setTexture2D(e[a] || md, r[a]);
20220
+ t.setTexture2D(e[a] || gd, r[a]);
20221
20221
  }
20222
20222
  function jg(s, e, t) {
20223
20223
  const n = this.cache, i = e.length, r = Wa(t, i);
20224
20224
  Jt(n, r) || (s.uniform1iv(this.addr, r), Kt(n, r));
20225
20225
  for (let a = 0; a !== i; ++a)
20226
- t.setTexture3D(e[a] || _d, r[a]);
20226
+ t.setTexture3D(e[a] || vd, r[a]);
20227
20227
  }
20228
20228
  function Yg(s, e, t) {
20229
20229
  const n = this.cache, i = e.length, r = Wa(t, i);
20230
20230
  Jt(n, r) || (s.uniform1iv(this.addr, r), Kt(n, r));
20231
20231
  for (let a = 0; a !== i; ++a)
20232
- t.setTextureCube(e[a] || vd, r[a]);
20232
+ t.setTextureCube(e[a] || yd, r[a]);
20233
20233
  }
20234
20234
  function $g(s, e, t) {
20235
20235
  const n = this.cache, i = e.length, r = Wa(t, i);
20236
20236
  Jt(n, r) || (s.uniform1iv(this.addr, r), Kt(n, r));
20237
20237
  for (let a = 0; a !== i; ++a)
20238
- t.setTexture2DArray(e[a] || gd, r[a]);
20238
+ t.setTexture2DArray(e[a] || _d, r[a]);
20239
20239
  }
20240
20240
  function Jg(s) {
20241
20241
  switch (s) {
@@ -20345,7 +20345,7 @@ class Qg {
20345
20345
  }
20346
20346
  }
20347
20347
  const Uo = /(\w+)(\])?(\[|\.)?/g;
20348
- function Wh(s, e) {
20348
+ function Xh(s, e) {
20349
20349
  s.seq.push(e), s.map[e.id] = e;
20350
20350
  }
20351
20351
  function e3(s, e, t) {
@@ -20355,11 +20355,11 @@ function e3(s, e, t) {
20355
20355
  let o = r[1];
20356
20356
  const l = r[2] === "]", c = r[3];
20357
20357
  if (l && (o = o | 0), c === void 0 || c === "[" && a + 2 === i) {
20358
- Wh(t, c === void 0 ? new Kg(o, s, e) : new Zg(o, s, e));
20358
+ Xh(t, c === void 0 ? new Kg(o, s, e) : new Zg(o, s, e));
20359
20359
  break;
20360
20360
  } else {
20361
20361
  let u = t.map[o];
20362
- u === void 0 && (u = new Qg(o), Wh(t, u)), t = u;
20362
+ u === void 0 && (u = new Qg(o), Xh(t, u)), t = u;
20363
20363
  }
20364
20364
  }
20365
20365
  }
@@ -20395,7 +20395,7 @@ class ya {
20395
20395
  return n;
20396
20396
  }
20397
20397
  }
20398
- function Xh(s, e, t) {
20398
+ function qh(s, e, t) {
20399
20399
  const n = s.createShader(e);
20400
20400
  return s.shaderSource(n, t), s.compileShader(n), n;
20401
20401
  }
@@ -20411,10 +20411,10 @@ function i3(s, e) {
20411
20411
  return n.join(`
20412
20412
  `);
20413
20413
  }
20414
- const qh = /* @__PURE__ */ new gt();
20414
+ const jh = /* @__PURE__ */ new gt();
20415
20415
  function s3(s) {
20416
- yt._getMatrix(qh, yt.workingColorSpace, s);
20417
- const e = `mat3( ${qh.elements.map((t) => t.toFixed(4))} )`;
20416
+ yt._getMatrix(jh, yt.workingColorSpace, s);
20417
+ const e = `mat3( ${jh.elements.map((t) => t.toFixed(4))} )`;
20418
20418
  switch (yt.getTransfer(s)) {
20419
20419
  case Ta:
20420
20420
  return [e, "LinearTransferOETF"];
@@ -20424,7 +20424,7 @@ function s3(s) {
20424
20424
  return console.warn("THREE.WebGLProgram: Unsupported color space: ", s), [e, "LinearTransferOETF"];
20425
20425
  }
20426
20426
  }
20427
- function jh(s, e, t) {
20427
+ function Yh(s, e, t) {
20428
20428
  const n = s.getShaderParameter(e, s.COMPILE_STATUS), i = s.getShaderInfoLog(e).trim();
20429
20429
  if (n && i === "") return "";
20430
20430
  const r = /ERROR: 0:(\d+)/.exec(i);
@@ -20520,11 +20520,11 @@ function h3(s, e) {
20520
20520
  function sr(s) {
20521
20521
  return s !== "";
20522
20522
  }
20523
- function Yh(s, e) {
20523
+ function $h(s, e) {
20524
20524
  const t = e.numSpotLightShadows + e.numSpotLightMaps - e.numSpotLightShadowsWithMaps;
20525
20525
  return s.replace(/NUM_DIR_LIGHTS/g, e.numDirLights).replace(/NUM_SPOT_LIGHTS/g, e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g, e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g, t).replace(/NUM_RECT_AREA_LIGHTS/g, e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g, e.numPointLights).replace(/NUM_HEMI_LIGHTS/g, e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g, e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g, e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g, e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g, e.numPointLightShadows);
20526
20526
  }
20527
- function $h(s, e) {
20527
+ function Jh(s, e) {
20528
20528
  return s.replace(/NUM_CLIPPING_PLANES/g, e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, e.numClippingPlanes - e.numClipIntersection);
20529
20529
  }
20530
20530
  const u3 = /^[ \t]*#include +<([\w\d./]+)>/gm;
@@ -20544,7 +20544,7 @@ function f3(s, e) {
20544
20544
  return Dl(t);
20545
20545
  }
20546
20546
  const p3 = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
20547
- function Jh(s) {
20547
+ function Kh(s) {
20548
20548
  return s.replace(p3, m3);
20549
20549
  }
20550
20550
  function m3(s, e, t, n) {
@@ -20553,7 +20553,7 @@ function m3(s, e, t, n) {
20553
20553
  i += n.replace(/\[\s*i\s*\]/g, "[ " + r + " ]").replace(/UNROLLED_LOOP_INDEX/g, r);
20554
20554
  return i;
20555
20555
  }
20556
- function Kh(s) {
20556
+ function Zh(s) {
20557
20557
  let e = `precision ${s.precision} float;
20558
20558
  precision ${s.precision} int;
20559
20559
  precision ${s.precision} sampler2D;
@@ -20579,7 +20579,7 @@ function Kh(s) {
20579
20579
  }
20580
20580
  function g3(s) {
20581
20581
  let e = "SHADOWMAP_TYPE_BASIC";
20582
- return s.shadowMapType === zu ? e = "SHADOWMAP_TYPE_PCF" : s.shadowMapType === Of ? e = "SHADOWMAP_TYPE_PCF_SOFT" : s.shadowMapType === di && (e = "SHADOWMAP_TYPE_VSM"), e;
20582
+ return s.shadowMapType === Bu ? e = "SHADOWMAP_TYPE_PCF" : s.shadowMapType === Of ? e = "SHADOWMAP_TYPE_PCF_SOFT" : s.shadowMapType === di && (e = "SHADOWMAP_TYPE_VSM"), e;
20583
20583
  }
20584
20584
  function _3(s) {
20585
20585
  let e = "ENVMAP_TYPE_CUBE";
@@ -20646,7 +20646,7 @@ function M3(s, e, t, n) {
20646
20646
  ].filter(sr).join(`
20647
20647
  `), p.length > 0 && (p += `
20648
20648
  `)) : (g = [
20649
- Kh(t),
20649
+ Zh(t),
20650
20650
  "#define SHADER_TYPE " + t.shaderType,
20651
20651
  "#define SHADER_NAME " + t.shaderName,
20652
20652
  m,
@@ -20779,7 +20779,7 @@ function M3(s, e, t, n) {
20779
20779
  `
20780
20780
  ].filter(sr).join(`
20781
20781
  `), p = [
20782
- Kh(t),
20782
+ Zh(t),
20783
20783
  "#define SHADER_TYPE " + t.shaderType,
20784
20784
  "#define SHADER_NAME " + t.shaderName,
20785
20785
  m,
@@ -20862,7 +20862,7 @@ function M3(s, e, t, n) {
20862
20862
  `
20863
20863
  `
20864
20864
  ].filter(sr).join(`
20865
- `)), a = Dl(a), a = Yh(a, t), a = $h(a, t), o = Dl(o), o = Yh(o, t), o = $h(o, t), a = Jh(a), o = Jh(o), t.isRawShaderMaterial !== !0 && (S = `#version 300 es
20865
+ `)), a = Dl(a), a = $h(a, t), a = Jh(a, t), o = Dl(o), o = $h(o, t), o = Jh(o, t), a = Kh(a), o = Kh(o), t.isRawShaderMaterial !== !0 && (S = `#version 300 es
20866
20866
  `, g = [
20867
20867
  f,
20868
20868
  "#define attribute in",
@@ -20872,8 +20872,8 @@ function M3(s, e, t, n) {
20872
20872
  `) + `
20873
20873
  ` + g, p = [
20874
20874
  "#define varying in",
20875
- t.glslVersion === Bc ? "" : "layout(location = 0) out highp vec4 pc_fragColor;",
20876
- t.glslVersion === Bc ? "" : "#define gl_FragColor pc_fragColor",
20875
+ t.glslVersion === kc ? "" : "layout(location = 0) out highp vec4 pc_fragColor;",
20876
+ t.glslVersion === kc ? "" : "#define gl_FragColor pc_fragColor",
20877
20877
  "#define gl_FragDepthEXT gl_FragDepth",
20878
20878
  "#define texture2D texture",
20879
20879
  "#define textureCube texture",
@@ -20887,7 +20887,7 @@ function M3(s, e, t, n) {
20887
20887
  ].join(`
20888
20888
  `) + `
20889
20889
  ` + p);
20890
- const E = S + g + a, v = S + p + o, U = Xh(i, i.VERTEX_SHADER, E), C = Xh(i, i.FRAGMENT_SHADER, v);
20890
+ const E = S + g + a, v = S + p + o, U = qh(i, i.VERTEX_SHADER, E), C = qh(i, i.FRAGMENT_SHADER, v);
20891
20891
  i.attachShader(_, U), i.attachShader(_, C), t.index0AttributeName !== void 0 ? i.bindAttribLocation(_, 0, t.index0AttributeName) : t.morphTargets === !0 && i.bindAttribLocation(_, 0, "position"), i.linkProgram(_);
20892
20892
  function T(R) {
20893
20893
  if (s.debug.checkShaderErrors) {
@@ -20897,7 +20897,7 @@ function M3(s, e, t, n) {
20897
20897
  if (Q = !1, typeof s.debug.onShaderError == "function")
20898
20898
  s.debug.onShaderError(i, _, U, C);
20899
20899
  else {
20900
- const Z = jh(i, U, "vertex"), q = jh(i, C, "fragment");
20900
+ const Z = Yh(i, U, "vertex"), q = Yh(i, C, "fragment");
20901
20901
  console.error(
20902
20902
  "THREE.WebGLProgram: Shader Error " + i.getError() + " - VALIDATE_STATUS " + i.getProgramParameter(_, i.VALIDATE_STATUS) + `
20903
20903
 
@@ -20981,7 +20981,7 @@ class E3 {
20981
20981
  }
20982
20982
  }
20983
20983
  function A3(s, e, t, n, i, r, a) {
20984
- const o = new Zl(), l = new S3(), c = /* @__PURE__ */ new Set(), h = [], u = i.logarithmicDepthBuffer, d = i.vertexTextures;
20984
+ const o = new Ql(), l = new S3(), c = /* @__PURE__ */ new Set(), h = [], u = i.logarithmicDepthBuffer, d = i.vertexTextures;
20985
20985
  let f = i.precision;
20986
20986
  const m = {
20987
20987
  MeshDepthMaterial: "depth",
@@ -21015,7 +21015,7 @@ function A3(s, e, t, n, i, r, a) {
21015
21015
  Ae = ft.vertexShader, Y = ft.fragmentShader;
21016
21016
  } else
21017
21017
  Ae = b.vertexShader, Y = b.fragmentShader, l.update(b), ie = l.getVertexShaderID(b), re = l.getFragmentShaderID(b);
21018
- const ae = s.getRenderTarget(), be = s.state.buffers.depth.getReversed(), me = V.isInstancedMesh === !0, Ee = V.isBatchedMesh === !0, ze = !!b.map, et = !!b.matcap, Ke = !!Z, O = !!b.aoMap, Mt = !!b.lightMap, $ = !!b.bumpMap, de = !!b.normalMap, ee = !!b.displacementMap, Me = !!b.emissiveMap, ce = !!b.metalnessMap, le = !!b.roughnessMap, Ie = b.anisotropy > 0, N = b.clearcoat > 0, A = b.dispersion > 0, G = b.iridescence > 0, z = b.sheen > 0, se = b.transmission > 0, te = Ie && !!b.anisotropyMap, we = N && !!b.clearcoatMap, Se = N && !!b.clearcoatNormalMap, Oe = N && !!b.clearcoatRoughnessMap, Be = G && !!b.iridescenceMap, fe = G && !!b.iridescenceThicknessMap, Ce = z && !!b.sheenColorMap, Ye = z && !!b.sheenRoughnessMap, tt = !!b.specularMap, Le = !!b.specularColorMap, ot = !!b.specularIntensityMap, H = se && !!b.transmissionMap, Ue = se && !!b.thicknessMap, ge = !!b.gradientMap, ke = !!b.alphaMap, ye = b.alphaTest > 0, pe = !!b.alphaHash, We = !!b.extensions;
21018
+ const ae = s.getRenderTarget(), be = s.state.buffers.depth.getReversed(), me = V.isInstancedMesh === !0, Ee = V.isBatchedMesh === !0, ze = !!b.map, et = !!b.matcap, Ze = !!Z, O = !!b.aoMap, Mt = !!b.lightMap, $ = !!b.bumpMap, de = !!b.normalMap, ee = !!b.displacementMap, Me = !!b.emissiveMap, ce = !!b.metalnessMap, le = !!b.roughnessMap, Ie = b.anisotropy > 0, N = b.clearcoat > 0, A = b.dispersion > 0, G = b.iridescence > 0, z = b.sheen > 0, se = b.transmission > 0, te = Ie && !!b.anisotropyMap, we = N && !!b.clearcoatMap, Se = N && !!b.clearcoatNormalMap, Oe = N && !!b.clearcoatRoughnessMap, Be = G && !!b.iridescenceMap, fe = G && !!b.iridescenceThicknessMap, Ce = z && !!b.sheenColorMap, Ye = z && !!b.sheenRoughnessMap, tt = !!b.specularMap, Le = !!b.specularColorMap, ot = !!b.specularIntensityMap, H = se && !!b.transmissionMap, Ue = se && !!b.thicknessMap, ge = !!b.gradientMap, ke = !!b.alphaMap, ye = b.alphaTest > 0, pe = !!b.alphaHash, We = !!b.extensions;
21019
21019
  let ct = Li;
21020
21020
  b.toneMapped && (ae === null || ae.isXRRenderTarget === !0) && (ct = s.toneMapping);
21021
21021
  const Lt = {
@@ -21040,8 +21040,8 @@ function A3(s, e, t, n, i, r, a) {
21040
21040
  alphaToCoverage: !!b.alphaToCoverage,
21041
21041
  map: ze,
21042
21042
  matcap: et,
21043
- envMap: Ke,
21044
- envMapMode: Ke && Z.mapping,
21043
+ envMap: Ze,
21044
+ envMapMode: Ze && Z.mapping,
21045
21045
  envMapCubeUVHeight: q,
21046
21046
  aoMap: O,
21047
21047
  lightMap: Mt,
@@ -21170,7 +21170,7 @@ function A3(s, e, t, n, i, r, a) {
21170
21170
  let R;
21171
21171
  if (x) {
21172
21172
  const B = An[x];
21173
- R = Ql.clone(B.uniforms);
21173
+ R = ec.clone(B.uniforms);
21174
21174
  } else
21175
21175
  R = b.uniforms;
21176
21176
  return R;
@@ -21239,10 +21239,10 @@ function w3() {
21239
21239
  function T3(s, e) {
21240
21240
  return s.groupOrder !== e.groupOrder ? s.groupOrder - e.groupOrder : s.renderOrder !== e.renderOrder ? s.renderOrder - e.renderOrder : s.material.id !== e.material.id ? s.material.id - e.material.id : s.z !== e.z ? s.z - e.z : s.id - e.id;
21241
21241
  }
21242
- function Zh(s, e) {
21242
+ function Qh(s, e) {
21243
21243
  return s.groupOrder !== e.groupOrder ? s.groupOrder - e.groupOrder : s.renderOrder !== e.renderOrder ? s.renderOrder - e.renderOrder : s.z !== e.z ? e.z - s.z : s.id - e.id;
21244
21244
  }
21245
- function Qh() {
21245
+ function eu() {
21246
21246
  const s = [];
21247
21247
  let e = 0;
21248
21248
  const t = [], n = [], i = [];
@@ -21271,7 +21271,7 @@ function Qh() {
21271
21271
  f.transmission > 0 ? n.unshift(p) : f.transparent === !0 ? i.unshift(p) : t.unshift(p);
21272
21272
  }
21273
21273
  function c(u, d) {
21274
- t.length > 1 && t.sort(u || T3), n.length > 1 && n.sort(d || Zh), i.length > 1 && i.sort(d || Zh);
21274
+ t.length > 1 && t.sort(u || T3), n.length > 1 && n.sort(d || Qh), i.length > 1 && i.sort(d || Qh);
21275
21275
  }
21276
21276
  function h() {
21277
21277
  for (let u = e, d = s.length; u < d; u++) {
@@ -21296,7 +21296,7 @@ function C3() {
21296
21296
  function e(n, i) {
21297
21297
  const r = s.get(n);
21298
21298
  let a;
21299
- return r === void 0 ? (a = new Qh(), s.set(n, [a])) : i >= r.length ? (a = new Qh(), r.push(a)) : a = r[i], a;
21299
+ return r === void 0 ? (a = new eu(), s.set(n, [a])) : i >= r.length ? (a = new eu(), r.push(a)) : a = r[i], a;
21300
21300
  }
21301
21301
  function t() {
21302
21302
  s = /* @__PURE__ */ new WeakMap();
@@ -21521,7 +21521,7 @@ function I3(s) {
21521
21521
  state: n
21522
21522
  };
21523
21523
  }
21524
- function eu(s) {
21524
+ function tu(s) {
21525
21525
  const e = new I3(s), t = [], n = [];
21526
21526
  function i(h) {
21527
21527
  c.camera = h, t.length = 0, n.length = 0;
@@ -21559,7 +21559,7 @@ function U3(s) {
21559
21559
  function t(i, r = 0) {
21560
21560
  const a = e.get(i);
21561
21561
  let o;
21562
- return a === void 0 ? (o = new eu(s), e.set(i, [o])) : r >= a.length ? (o = new eu(s), a.push(o)) : o = a[r], o;
21562
+ return a === void 0 ? (o = new tu(s), e.set(i, [o])) : r >= a.length ? (o = new tu(s), a.push(o)) : o = a[r], o;
21563
21563
  }
21564
21564
  function n() {
21565
21565
  e = /* @__PURE__ */ new WeakMap();
@@ -21599,7 +21599,7 @@ void main() {
21599
21599
  gl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );
21600
21600
  }`;
21601
21601
  function O3(s, e, t) {
21602
- let n = new nc();
21602
+ let n = new ic();
21603
21603
  const i = new Ge(), r = new Ge(), a = new xt(), o = new k0({ depthPacking: mp }), l = new V0(), c = {}, h = t.maxTextureSize, u = { [qn]: xn, [xn]: qn, [yn]: yn }, d = new _i({
21604
21604
  defines: {
21605
21605
  VSM_SAMPLES: 8
@@ -21622,7 +21622,7 @@ function O3(s, e, t) {
21622
21622
  )
21623
21623
  );
21624
21624
  const _ = new Rt(m, d), g = this;
21625
- this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = zu;
21625
+ this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = Bu;
21626
21626
  let p = this.type;
21627
21627
  this.render = function(C, T, D) {
21628
21628
  if (g.enabled === !1 || g.autoUpdate === !1 && g.needsUpdate === !1 || C.length === 0) return;
@@ -21847,7 +21847,7 @@ function B3(s, e) {
21847
21847
  return pe;
21848
21848
  }
21849
21849
  const re = {};
21850
- re[s.TEXTURE_2D] = ie(s.TEXTURE_2D, s.TEXTURE_2D, 1), re[s.TEXTURE_CUBE_MAP] = ie(s.TEXTURE_CUBE_MAP, s.TEXTURE_CUBE_MAP_POSITIVE_X, 6), re[s.TEXTURE_2D_ARRAY] = ie(s.TEXTURE_2D_ARRAY, s.TEXTURE_2D_ARRAY, 1, 1), re[s.TEXTURE_3D] = ie(s.TEXTURE_3D, s.TEXTURE_3D, 1, 1), r.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), ae(s.DEPTH_TEST), a.setFunc(Fs), $(!1), de(Lc), ae(s.CULL_FACE), O(Ri);
21850
+ re[s.TEXTURE_2D] = ie(s.TEXTURE_2D, s.TEXTURE_2D, 1), re[s.TEXTURE_CUBE_MAP] = ie(s.TEXTURE_CUBE_MAP, s.TEXTURE_CUBE_MAP_POSITIVE_X, 6), re[s.TEXTURE_2D_ARRAY] = ie(s.TEXTURE_2D_ARRAY, s.TEXTURE_2D_ARRAY, 1, 1), re[s.TEXTURE_3D] = ie(s.TEXTURE_3D, s.TEXTURE_3D, 1, 1), r.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), ae(s.DEPTH_TEST), a.setFunc(Fs), $(!1), de(Pc), ae(s.CULL_FACE), O(Ri);
21851
21851
  function ae(H) {
21852
21852
  h[H] !== !0 && (s.enable(H), h[H] = !0);
21853
21853
  }
@@ -21880,7 +21880,7 @@ function B3(s, e) {
21880
21880
  [kf]: s.FUNC_REVERSE_SUBTRACT
21881
21881
  };
21882
21882
  et[Vf] = s.MIN, et[Hf] = s.MAX;
21883
- const Ke = {
21883
+ const Ze = {
21884
21884
  [Gf]: s.ZERO,
21885
21885
  [Wf]: s.ONE,
21886
21886
  [Xf]: s.SRC_COLOR,
@@ -21909,13 +21909,13 @@ function B3(s, e) {
21909
21909
  case Is:
21910
21910
  s.blendFuncSeparate(s.ONE, s.ONE_MINUS_SRC_ALPHA, s.ONE, s.ONE_MINUS_SRC_ALPHA);
21911
21911
  break;
21912
- case Pc:
21912
+ case Dc:
21913
21913
  s.blendFunc(s.ONE, s.ONE);
21914
21914
  break;
21915
- case Dc:
21915
+ case Ic:
21916
21916
  s.blendFuncSeparate(s.ZERO, s.ONE_MINUS_SRC_COLOR, s.ZERO, s.ONE);
21917
21917
  break;
21918
- case Ic:
21918
+ case Uc:
21919
21919
  s.blendFuncSeparate(s.ZERO, s.SRC_COLOR, s.ZERO, s.SRC_ALPHA);
21920
21920
  break;
21921
21921
  default:
@@ -21927,13 +21927,13 @@ function B3(s, e) {
21927
21927
  case Is:
21928
21928
  s.blendFuncSeparate(s.SRC_ALPHA, s.ONE_MINUS_SRC_ALPHA, s.ONE, s.ONE_MINUS_SRC_ALPHA);
21929
21929
  break;
21930
- case Pc:
21930
+ case Dc:
21931
21931
  s.blendFunc(s.SRC_ALPHA, s.ONE);
21932
21932
  break;
21933
- case Dc:
21933
+ case Ic:
21934
21934
  s.blendFuncSeparate(s.ZERO, s.ONE_MINUS_SRC_COLOR, s.ZERO, s.ONE);
21935
21935
  break;
21936
- case Ic:
21936
+ case Uc:
21937
21937
  s.blendFunc(s.ZERO, s.SRC_COLOR);
21938
21938
  break;
21939
21939
  default:
@@ -21944,7 +21944,7 @@ function B3(s, e) {
21944
21944
  }
21945
21945
  return;
21946
21946
  }
21947
- ye = ye || Ue, pe = pe || ge, We = We || ke, (Ue !== p || ye !== v) && (s.blendEquationSeparate(et[Ue], et[ye]), p = Ue, v = ye), (ge !== S || ke !== E || pe !== U || We !== C) && (s.blendFuncSeparate(Ke[ge], Ke[ke], Ke[pe], Ke[We]), S = ge, E = ke, U = pe, C = We), (ct.equals(T) === !1 || Lt !== D) && (s.blendColor(ct.r, ct.g, ct.b, Lt), T.copy(ct), D = Lt), g = H, b = !1;
21947
+ ye = ye || Ue, pe = pe || ge, We = We || ke, (Ue !== p || ye !== v) && (s.blendEquationSeparate(et[Ue], et[ye]), p = Ue, v = ye), (ge !== S || ke !== E || pe !== U || We !== C) && (s.blendFuncSeparate(Ze[ge], Ze[ke], Ze[pe], Ze[We]), S = ge, E = ke, U = pe, C = We), (ct.equals(T) === !1 || Lt !== D) && (s.blendColor(ct.r, ct.g, ct.b, Lt), T.copy(ct), D = Lt), g = H, b = !1;
21948
21948
  }
21949
21949
  function Mt(H, Ue) {
21950
21950
  H.side === yn ? be(s.CULL_FACE) : ae(s.CULL_FACE);
@@ -21957,7 +21957,7 @@ function B3(s, e) {
21957
21957
  x !== H && (H ? s.frontFace(s.CW) : s.frontFace(s.CCW), x = H);
21958
21958
  }
21959
21959
  function de(H) {
21960
- H !== Nf ? (ae(s.CULL_FACE), H !== R && (H === Lc ? s.cullFace(s.BACK) : H === Ff ? s.cullFace(s.FRONT) : s.cullFace(s.FRONT_AND_BACK))) : be(s.CULL_FACE), R = H;
21960
+ H !== Nf ? (ae(s.CULL_FACE), H !== R && (H === Pc ? s.cullFace(s.BACK) : H === Ff ? s.cullFace(s.FRONT) : s.cullFace(s.FRONT_AND_BACK))) : be(s.CULL_FACE), R = H;
21961
21961
  }
21962
21962
  function ee(H) {
21963
21963
  H !== B && (k && s.lineWidth(H), B = H);
@@ -22280,7 +22280,7 @@ function k3(s, e, t, n, i, r, a) {
22280
22280
  [_p]: s.NEVER,
22281
22281
  [Sp]: s.ALWAYS,
22282
22282
  [vp]: s.LESS,
22283
- [Yu]: s.LEQUAL,
22283
+ [$u]: s.LEQUAL,
22284
22284
  [yp]: s.EQUAL,
22285
22285
  [bp]: s.GEQUAL,
22286
22286
  [xp]: s.GREATER,
@@ -22375,7 +22375,7 @@ function k3(s, e, t, n, i, r, a) {
22375
22375
  if (H) {
22376
22376
  if (ge)
22377
22377
  if (A.layerUpdates.size > 0) {
22378
- const We = Lh(Le.width, Le.height, A.format, A.type);
22378
+ const We = Ph(Le.width, Le.height, A.format, A.type);
22379
22379
  for (const ct of A.layerUpdates) {
22380
22380
  const Lt = Le.data.subarray(
22381
22381
  ct * We / Le.data.BYTES_PER_ELEMENT,
@@ -22401,7 +22401,7 @@ function k3(s, e, t, n, i, r, a) {
22401
22401
  if (H) {
22402
22402
  if (Ue && t.texStorage3D(s.TEXTURE_2D_ARRAY, ke, tt, fe.width, fe.height, fe.depth), ge)
22403
22403
  if (A.layerUpdates.size > 0) {
22404
- const ye = Lh(fe.width, fe.height, A.format, A.type);
22404
+ const ye = Ph(fe.width, fe.height, A.format, A.type);
22405
22405
  for (const pe of A.layerUpdates) {
22406
22406
  const We = fe.data.subarray(
22407
22407
  pe * ye / fe.data.BYTES_PER_ELEMENT,
@@ -22570,7 +22570,7 @@ function k3(s, e, t, n, i, r, a) {
22570
22570
  const z = n.get(N);
22571
22571
  A !== void 0 && be(z.__webglFramebuffer, N, N.texture, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, 0), G !== void 0 && ze(N);
22572
22572
  }
22573
- function Ke(N) {
22573
+ function Ze(N) {
22574
22574
  const A = N.texture, G = n.get(N), z = n.get(A);
22575
22575
  N.addEventListener("dispose", T);
22576
22576
  const se = N.textures, te = N.isWebGLCubeRenderTarget === !0, we = se.length > 1;
@@ -22694,33 +22694,33 @@ function k3(s, e, t, n, i, r, a) {
22694
22694
  function Ie(N) {
22695
22695
  return typeof HTMLImageElement < "u" && N instanceof HTMLImageElement ? (c.width = N.naturalWidth || N.width, c.height = N.naturalHeight || N.height) : typeof VideoFrame < "u" && N instanceof VideoFrame ? (c.width = N.displayWidth, c.height = N.displayHeight) : (c.width = N.width, c.height = N.height), c;
22696
22696
  }
22697
- this.allocateTextureUnit = V, this.resetTextureUnits = B, this.setTexture2D = Q, this.setTexture2DArray = k, this.setTexture3D = Z, this.setTextureCube = q, this.rebindTextures = et, this.setupRenderTarget = Ke, this.updateRenderTargetMipmap = O, this.updateMultisampleRenderTarget = de, this.setupDepthRenderbuffer = ze, this.setupFrameBufferTexture = be, this.useMultisampledRTT = Me;
22697
+ this.allocateTextureUnit = V, this.resetTextureUnits = B, this.setTexture2D = Q, this.setTexture2DArray = k, this.setTexture3D = Z, this.setTextureCube = q, this.rebindTextures = et, this.setupRenderTarget = Ze, this.updateRenderTargetMipmap = O, this.updateMultisampleRenderTarget = de, this.setupDepthRenderbuffer = ze, this.setupFrameBufferTexture = be, this.useMultisampledRTT = Me;
22698
22698
  }
22699
22699
  function V3(s, e) {
22700
22700
  function t(n, i = Ci) {
22701
22701
  let r;
22702
22702
  const a = yt.getTransfer(i);
22703
22703
  if (n === ni) return s.UNSIGNED_BYTE;
22704
- if (n === Xl) return s.UNSIGNED_SHORT_4_4_4_4;
22705
- if (n === ql) return s.UNSIGNED_SHORT_5_5_5_1;
22706
- if (n === Hu) return s.UNSIGNED_INT_5_9_9_9_REV;
22707
- if (n === ku) return s.BYTE;
22708
- if (n === Vu) return s.SHORT;
22704
+ if (n === ql) return s.UNSIGNED_SHORT_4_4_4_4;
22705
+ if (n === jl) return s.UNSIGNED_SHORT_5_5_5_1;
22706
+ if (n === Gu) return s.UNSIGNED_INT_5_9_9_9_REV;
22707
+ if (n === Vu) return s.BYTE;
22708
+ if (n === Hu) return s.SHORT;
22709
22709
  if (n === dr) return s.UNSIGNED_SHORT;
22710
- if (n === Wl) return s.INT;
22710
+ if (n === Xl) return s.INT;
22711
22711
  if (n === Ji) return s.UNSIGNED_INT;
22712
22712
  if (n === Qn) return s.FLOAT;
22713
22713
  if (n === vr) return s.HALF_FLOAT;
22714
- if (n === Gu) return s.ALPHA;
22715
- if (n === Wu) return s.RGB;
22714
+ if (n === Wu) return s.ALPHA;
22715
+ if (n === Xu) return s.RGB;
22716
22716
  if (n === On) return s.RGBA;
22717
22717
  if (n === pr) return s.DEPTH_COMPONENT;
22718
22718
  if (n === mr) return s.DEPTH_STENCIL;
22719
- if (n === Xu) return s.RED;
22720
- if (n === jl) return s.RED_INTEGER;
22721
- if (n === qu) return s.RG;
22722
- if (n === Yl) return s.RG_INTEGER;
22723
- if (n === $l) return s.RGBA_INTEGER;
22719
+ if (n === qu) return s.RED;
22720
+ if (n === Yl) return s.RED_INTEGER;
22721
+ if (n === ju) return s.RG;
22722
+ if (n === $l) return s.RG_INTEGER;
22723
+ if (n === Jl) return s.RGBA_INTEGER;
22724
22724
  if (n === pa || n === ma || n === ga || n === _a)
22725
22725
  if (a === Ut)
22726
22726
  if (r = e.get("WEBGL_compressed_texture_s3tc_srgb"), r !== null) {
@@ -22776,7 +22776,7 @@ function V3(s, e) {
22776
22776
  if (n === Sl) return r.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
22777
22777
  } else
22778
22778
  return null;
22779
- if (n === ju || n === El || n === Al || n === wl)
22779
+ if (n === Yu || n === El || n === Al || n === wl)
22780
22780
  if (r = e.get("EXT_texture_compression_rgtc"), r !== null) {
22781
22781
  if (n === va) return r.COMPRESSED_RED_RGTC1_EXT;
22782
22782
  if (n === El) return r.COMPRESSED_SIGNED_RED_RGTC1_EXT;
@@ -22947,7 +22947,7 @@ class X3 extends Zi {
22947
22947
  {
22948
22948
  format: On,
22949
22949
  type: ni,
22950
- depthTexture: new ld(d.textureWidth, d.textureHeight, ae, void 0, void 0, void 0, void 0, void 0, void 0, re),
22950
+ depthTexture: new cd(d.textureWidth, d.textureHeight, ae, void 0, void 0, void 0, void 0, void 0, void 0, re),
22951
22951
  stencilBuffer: g.stencil,
22952
22952
  colorSpace: e.outputColorSpace,
22953
22953
  samples: g.antialias ? 4 : 0,
@@ -23010,11 +23010,11 @@ class X3 extends Zi {
23010
23010
  const k = new F(), Z = new F();
23011
23011
  function q(Y, ie, re) {
23012
23012
  k.setFromMatrixPosition(ie.matrixWorld), Z.setFromMatrixPosition(re.matrixWorld);
23013
- const ae = k.distanceTo(Z), be = ie.projectionMatrix.elements, me = re.projectionMatrix.elements, Ee = be[14] / (be[10] - 1), ze = be[14] / (be[10] + 1), et = (be[9] + 1) / be[5], Ke = (be[9] - 1) / be[5], O = (be[8] - 1) / be[0], Mt = (me[8] + 1) / me[0], $ = Ee * O, de = Ee * Mt, ee = ae / (-O + Mt), Me = ee * -O;
23013
+ const ae = k.distanceTo(Z), be = ie.projectionMatrix.elements, me = re.projectionMatrix.elements, Ee = be[14] / (be[10] - 1), ze = be[14] / (be[10] + 1), et = (be[9] + 1) / be[5], Ze = (be[9] - 1) / be[5], O = (be[8] - 1) / be[0], Mt = (me[8] + 1) / me[0], $ = Ee * O, de = Ee * Mt, ee = ae / (-O + Mt), Me = ee * -O;
23014
23014
  if (ie.matrixWorld.decompose(Y.position, Y.quaternion, Y.scale), Y.translateX(Me), Y.translateZ(ee), Y.matrixWorld.compose(Y.position, Y.quaternion, Y.scale), Y.matrixWorldInverse.copy(Y.matrixWorld).invert(), be[10] === -1)
23015
23015
  Y.projectionMatrix.copy(ie.projectionMatrix), Y.projectionMatrixInverse.copy(ie.projectionMatrixInverse);
23016
23016
  else {
23017
- const ce = Ee + ee, le = ze + ee, Ie = $ - Me, N = de + (ae - Me), A = et * ze / le * ce, G = Ke * ze / le * ce;
23017
+ const ce = Ee + ee, le = ze + ee, Ie = $ - Me, N = de + (ae - Me), A = et * ze / le * ce, G = Ze * ze / le * ce;
23018
23018
  Y.projectionMatrix.makePerspective(Ie, N, A, G, ce, le), Y.projectionMatrixInverse.copy(Y.projectionMatrix).invert();
23019
23019
  }
23020
23020
  }
@@ -23069,8 +23069,8 @@ class X3 extends Zi {
23069
23069
  O.depthStencilTexture
23070
23070
  ), e.setRenderTarget(S));
23071
23071
  }
23072
- let Ke = b[Ee];
23073
- Ke === void 0 && (Ke = new mn(), Ke.layers.enable(Ee), Ke.viewport = new xt(), b[Ee] = Ke), Ke.matrix.fromArray(ze.transform.matrix), Ke.matrix.decompose(Ke.position, Ke.quaternion, Ke.scale), Ke.projectionMatrix.fromArray(ze.projectionMatrix), Ke.projectionMatrixInverse.copy(Ke.projectionMatrix).invert(), Ke.viewport.set(et.x, et.y, et.width, et.height), Ee === 0 && (x.matrix.copy(Ke.matrix), x.matrix.decompose(x.position, x.quaternion, x.scale)), ae === !0 && x.cameras.push(Ke);
23072
+ let Ze = b[Ee];
23073
+ Ze === void 0 && (Ze = new mn(), Ze.layers.enable(Ee), Ze.viewport = new xt(), b[Ee] = Ze), Ze.matrix.fromArray(ze.transform.matrix), Ze.matrix.decompose(Ze.position, Ze.quaternion, Ze.scale), Ze.projectionMatrix.fromArray(ze.projectionMatrix), Ze.projectionMatrixInverse.copy(Ze.projectionMatrix).invert(), Ze.viewport.set(et.x, et.y, et.width, et.height), Ee === 0 && (x.matrix.copy(Ze.matrix), x.matrix.decompose(x.position, x.quaternion, x.scale)), ae === !0 && x.cameras.push(Ze);
23074
23074
  }
23075
23075
  const be = i.enabledFeatures;
23076
23076
  if (be && be.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && u) {
@@ -23084,7 +23084,7 @@ class X3 extends Zi {
23084
23084
  }
23085
23085
  oe && oe(Y, ie), ie.detectedPlanes && n.dispatchEvent({ type: "planesdetected", data: ie }), m = null;
23086
23086
  }
23087
- const Ae = new pd();
23087
+ const Ae = new md();
23088
23088
  Ae.setAnimationLoop(Re), this.setAnimationLoop = function(Y) {
23089
23089
  oe = Y;
23090
23090
  }, this.dispose = function() {
@@ -23097,7 +23097,7 @@ function j3(s, e) {
23097
23097
  g.matrixAutoUpdate === !0 && g.updateMatrix(), p.value.copy(g.matrix);
23098
23098
  }
23099
23099
  function n(g, p) {
23100
- p.color.getRGB(g.fogColor.value, ed(s)), p.isFog ? (g.fogNear.value = p.near, g.fogFar.value = p.far) : p.isFogExp2 && (g.fogDensity.value = p.density);
23100
+ p.color.getRGB(g.fogColor.value, td(s)), p.isFog ? (g.fogNear.value = p.near, g.fogFar.value = p.far) : p.isFogExp2 && (g.fogDensity.value = p.density);
23101
23101
  }
23102
23102
  function i(g, p, S, E, v) {
23103
23103
  p.isMeshBasicMaterial || p.isMeshLambertMaterial ? r(g, p) : p.isMeshToonMaterial ? (r(g, p), u(g, p)) : p.isMeshPhongMaterial ? (r(g, p), h(g, p)) : p.isMeshStandardMaterial ? (r(g, p), d(g, p), p.isMeshPhysicalMaterial && f(g, p, v)) : p.isMeshMatcapMaterial ? (r(g, p), m(g, p)) : p.isMeshDepthMaterial ? r(g, p) : p.isMeshDistanceMaterial ? (r(g, p), _(g, p)) : p.isMeshNormalMaterial ? r(g, p) : p.isLineBasicMaterial ? (a(g, p), p.isLineDashedMaterial && o(g, p)) : p.isPointsMaterial ? l(g, p, S, E) : p.isSpriteMaterial ? c(g, p) : p.isShadowMaterial ? (g.color.value.copy(p.color), g.opacity.value = p.opacity) : p.isShaderMaterial && (p.uniformsNeedUpdate = !1);
@@ -23300,11 +23300,11 @@ class Sv {
23300
23300
  let Q = 0, k = t.width, Z = t.height, q = 1, he = null, _e = null;
23301
23301
  const oe = new xt(0, 0, k, Z), Re = new xt(0, 0, k, Z);
23302
23302
  let Ae = !1;
23303
- const Y = new nc();
23303
+ const Y = new ic();
23304
23304
  let ie = !1, re = !1;
23305
23305
  const ae = new lt(), be = new lt(), me = new F(), Ee = new xt(), ze = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
23306
23306
  let et = !1;
23307
- function Ke() {
23307
+ function Ze() {
23308
23308
  return D === null ? q : 1;
23309
23309
  }
23310
23310
  let O = n;
@@ -23322,7 +23322,7 @@ class Sv {
23322
23322
  powerPreference: h,
23323
23323
  failIfMajorPerformanceCaveat: u
23324
23324
  };
23325
- if ("setAttribute" in t && t.setAttribute("data-engine", `three.js r${Gl}`), t.addEventListener("webglcontextlost", ke, !1), t.addEventListener("webglcontextrestored", ye, !1), t.addEventListener("webglcontextcreationerror", pe, !1), O === null) {
23325
+ if ("setAttribute" in t && t.setAttribute("data-engine", `three.js r${Wl}`), t.addEventListener("webglcontextlost", ke, !1), t.addEventListener("webglcontextrestored", ye, !1), t.addEventListener("webglcontextcreationerror", pe, !1), O === null) {
23326
23326
  const X = "webgl2";
23327
23327
  if (O = Mt(X, L), O === null)
23328
23328
  throw Mt(X) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context.");
@@ -23394,11 +23394,11 @@ class Sv {
23394
23394
  let j = !1;
23395
23395
  if (D !== null) {
23396
23396
  const xe = D.texture.format;
23397
- j = xe === $l || xe === Yl || xe === jl;
23397
+ j = xe === Jl || xe === $l || xe === Yl;
23398
23398
  }
23399
23399
  if (j) {
23400
- const xe = D.texture.type, Ne = xe === ni || xe === Ji || xe === dr || xe === fr || xe === Xl || xe === ql, qe = fe.getClearColor(), Ve = fe.getClearAlpha(), ht = qe.r, ut = qe.g, Ze = qe.b;
23401
- Ne ? (m[0] = ht, m[1] = ut, m[2] = Ze, m[3] = Ve, O.clearBufferuiv(O.COLOR, 0, m)) : (_[0] = ht, _[1] = ut, _[2] = Ze, _[3] = Ve, O.clearBufferiv(O.COLOR, 0, _));
23400
+ const xe = D.texture.type, Ne = xe === ni || xe === Ji || xe === dr || xe === fr || xe === ql || xe === jl, qe = fe.getClearColor(), Ve = fe.getClearAlpha(), ht = qe.r, ut = qe.g, Qe = qe.b;
23401
+ Ne ? (m[0] = ht, m[1] = ut, m[2] = Qe, m[3] = Ve, O.clearBufferuiv(O.COLOR, 0, m)) : (_[0] = ht, _[1] = ut, _[2] = Qe, _[3] = Ve, O.clearBufferiv(O.COLOR, 0, _));
23402
23402
  } else
23403
23403
  K |= O.COLOR_BUFFER_BIT;
23404
23404
  }
@@ -23445,18 +23445,18 @@ class Sv {
23445
23445
  if (Ve = G.getWireframeAttribute(J), Ve === void 0) return;
23446
23446
  ht = 2;
23447
23447
  }
23448
- const ut = J.drawRange, Ze = J.attributes.position;
23448
+ const ut = J.drawRange, Qe = J.attributes.position;
23449
23449
  let mt = ut.start * ht, Tt = (ut.start + ut.count) * ht;
23450
- xe !== null && (mt = Math.max(mt, xe.start * ht), Tt = Math.min(Tt, (xe.start + xe.count) * ht)), Ve !== null ? (mt = Math.max(mt, 0), Tt = Math.min(Tt, Ve.count)) : Ze != null && (mt = Math.max(mt, 0), Tt = Math.min(Tt, Ze.count));
23450
+ xe !== null && (mt = Math.max(mt, xe.start * ht), Tt = Math.min(Tt, (xe.start + xe.count) * ht)), Ve !== null ? (mt = Math.max(mt, 0), Tt = Math.min(Tt, Ve.count)) : Qe != null && (mt = Math.max(mt, 0), Tt = Math.min(Tt, Qe.count));
23451
23451
  const Ot = Tt - mt;
23452
23452
  if (Ot < 0 || Ot === 1 / 0) return;
23453
23453
  ot.setup(j, K, qe, J, Ve);
23454
23454
  let kt, bt = Ye;
23455
23455
  if (Ve !== null && (kt = A.get(Ve), bt = tt, bt.setIndex(kt)), j.isMesh)
23456
- K.wireframe === !0 ? (ee.setLineWidth(K.wireframeLinewidth * Ke()), bt.setMode(O.LINES)) : bt.setMode(O.TRIANGLES);
23456
+ K.wireframe === !0 ? (ee.setLineWidth(K.wireframeLinewidth * Ze()), bt.setMode(O.LINES)) : bt.setMode(O.TRIANGLES);
23457
23457
  else if (j.isLine) {
23458
23458
  let st = K.linewidth;
23459
- st === void 0 && (st = 1), ee.setLineWidth(st * Ke()), j.isLineSegments ? bt.setMode(O.LINES) : j.isLineLoop ? bt.setMode(O.LINE_LOOP) : bt.setMode(O.LINE_STRIP);
23459
+ st === void 0 && (st = 1), ee.setLineWidth(st * Ze()), j.isLineSegments ? bt.setMode(O.LINES) : j.isLineLoop ? bt.setMode(O.LINE_LOOP) : bt.setMode(O.LINE_STRIP);
23460
23460
  } else j.isPoints ? bt.setMode(O.POINTS) : j.isSprite && bt.setMode(O.TRIANGLES);
23461
23461
  if (j.isBatchedMesh)
23462
23462
  if (j._multiDrawInstances !== null)
@@ -23524,7 +23524,7 @@ class Sv {
23524
23524
  function jt() {
23525
23525
  nn.start();
23526
23526
  }
23527
- const nn = new pd();
23527
+ const nn = new md();
23528
23528
  nn.setAnimationLoop(Xe), typeof self < "u" && nn.setContext(self), this.setAnimationLoop = function(L) {
23529
23529
  tn = L, ge.setAnimationLoop(L), L === null ? nn.stop() : nn.start();
23530
23530
  }, ge.addEventListener("sessionstart", Zt), ge.addEventListener("sessionend", jt), this.render = function(L, X) {
@@ -23577,8 +23577,8 @@ class Sv {
23577
23577
  if (K && (L.boundingSphere !== void 0 ? (L.boundingSphere === null && L.computeBoundingSphere(), Ee.copy(L.boundingSphere.center)) : (Ne.boundingSphere === null && Ne.computeBoundingSphere(), Ee.copy(Ne.boundingSphere.center)), Ee.applyMatrix4(L.matrixWorld).applyMatrix4(be)), Array.isArray(qe)) {
23578
23578
  const Ve = Ne.groups;
23579
23579
  for (let ht = 0, ut = Ve.length; ht < ut; ht++) {
23580
- const Ze = Ve[ht], mt = qe[Ze.materialIndex];
23581
- mt && mt.visible && g.push(L, Ne, mt, J, Ee.z, Ze);
23580
+ const Qe = Ve[ht], mt = qe[Qe.materialIndex];
23581
+ mt && mt.visible && g.push(L, Ne, mt, J, Ee.z, Qe);
23582
23582
  }
23583
23583
  } else qe.visible && g.push(L, Ne, qe, J, Ee.z, null);
23584
23584
  }
@@ -23613,8 +23613,8 @@ class Sv {
23613
23613
  const ht = K.viewport;
23614
23614
  if (K.viewport !== void 0 && (K.viewport = void 0), p.setupLightsView(K), ie === !0 && Oe.setGlobalState(v.clippingPlanes, K), Te(L, J, K), le.updateMultisampleRenderTarget(xe), le.updateRenderTargetMipmap(xe), $.has("WEBGL_multisampled_render_to_texture") === !1) {
23615
23615
  let ut = !1;
23616
- for (let Ze = 0, mt = X.length; Ze < mt; Ze++) {
23617
- const Tt = X[Ze], Ot = Tt.object, kt = Tt.geometry, bt = Tt.material, st = Tt.group;
23616
+ for (let Qe = 0, mt = X.length; Qe < mt; Qe++) {
23617
+ const Tt = X[Qe], Ot = Tt.object, kt = Tt.geometry, bt = Tt.material, st = Tt.group;
23618
23618
  if (bt.side === yn && Ot.layers.test(K.layers)) {
23619
23619
  const Yt = bt.side;
23620
23620
  bt.side = xn, bt.needsUpdate = !0, Ht(Ot, J, K, kt, bt, st), bt.side = Yt, bt.needsUpdate = !0, ut = !0;
@@ -23646,8 +23646,8 @@ class Sv {
23646
23646
  return hn(L, qe), ut;
23647
23647
  } else
23648
23648
  qe.uniforms = se.getUniforms(L), L.onBeforeCompile(qe, v), ut = se.acquireProgram(qe, Ve), ht.set(Ve, ut), K.uniforms = qe.uniforms;
23649
- const Ze = K.uniforms;
23650
- return (!L.isShaderMaterial && !L.isRawShaderMaterial || L.clipping === !0) && (Ze.clippingPlanes = Oe.uniform), hn(L, qe), K.needsLights = ts(L), K.lightsStateVersion = Ne, K.needsLights && (Ze.ambientLightColor.value = j.state.ambient, Ze.lightProbe.value = j.state.probe, Ze.directionalLights.value = j.state.directional, Ze.directionalLightShadows.value = j.state.directionalShadow, Ze.spotLights.value = j.state.spot, Ze.spotLightShadows.value = j.state.spotShadow, Ze.rectAreaLights.value = j.state.rectArea, Ze.ltc_1.value = j.state.rectAreaLTC1, Ze.ltc_2.value = j.state.rectAreaLTC2, Ze.pointLights.value = j.state.point, Ze.pointLightShadows.value = j.state.pointShadow, Ze.hemisphereLights.value = j.state.hemi, Ze.directionalShadowMap.value = j.state.directionalShadowMap, Ze.directionalShadowMatrix.value = j.state.directionalShadowMatrix, Ze.spotShadowMap.value = j.state.spotShadowMap, Ze.spotLightMatrix.value = j.state.spotLightMatrix, Ze.spotLightMap.value = j.state.spotLightMap, Ze.pointShadowMap.value = j.state.pointShadowMap, Ze.pointShadowMatrix.value = j.state.pointShadowMatrix), K.currentProgram = ut, K.uniformsList = null, ut;
23649
+ const Qe = K.uniforms;
23650
+ return (!L.isShaderMaterial && !L.isRawShaderMaterial || L.clipping === !0) && (Qe.clippingPlanes = Oe.uniform), hn(L, qe), K.needsLights = ts(L), K.lightsStateVersion = Ne, K.needsLights && (Qe.ambientLightColor.value = j.state.ambient, Qe.lightProbe.value = j.state.probe, Qe.directionalLights.value = j.state.directional, Qe.directionalLightShadows.value = j.state.directionalShadow, Qe.spotLights.value = j.state.spot, Qe.spotLightShadows.value = j.state.spotShadow, Qe.rectAreaLights.value = j.state.rectArea, Qe.ltc_1.value = j.state.rectAreaLTC1, Qe.ltc_2.value = j.state.rectAreaLTC2, Qe.pointLights.value = j.state.point, Qe.pointLightShadows.value = j.state.pointShadow, Qe.hemisphereLights.value = j.state.hemi, Qe.directionalShadowMap.value = j.state.directionalShadowMap, Qe.directionalShadowMatrix.value = j.state.directionalShadowMatrix, Qe.spotShadowMap.value = j.state.spotShadowMap, Qe.spotLightMatrix.value = j.state.spotLightMatrix, Qe.spotLightMap.value = j.state.spotLightMap, Qe.pointShadowMap.value = j.state.pointShadowMap, Qe.pointShadowMatrix.value = j.state.pointShadowMatrix), K.currentProgram = ut, K.uniformsList = null, ut;
23651
23651
  }
23652
23652
  function Wt(L) {
23653
23653
  if (L.uniformsList === null) {
@@ -23662,7 +23662,7 @@ class Sv {
23662
23662
  }
23663
23663
  function Tn(L, X, J, K, j) {
23664
23664
  X.isScene !== !0 && (X = ze), le.resetTextureUnits();
23665
- const xe = X.fog, Ne = K.isMeshStandardMaterial ? X.environment : null, qe = D === null ? v.outputColorSpace : D.isXRRenderTarget === !0 ? D.texture.colorSpace : Bs, Ve = (K.isMeshStandardMaterial ? N : Ie).get(K.envMap || Ne), ht = K.vertexColors === !0 && !!J.attributes.color && J.attributes.color.itemSize === 4, ut = !!J.attributes.tangent && (!!K.normalMap || K.anisotropy > 0), Ze = !!J.morphAttributes.position, mt = !!J.morphAttributes.normal, Tt = !!J.morphAttributes.color;
23665
+ const xe = X.fog, Ne = K.isMeshStandardMaterial ? X.environment : null, qe = D === null ? v.outputColorSpace : D.isXRRenderTarget === !0 ? D.texture.colorSpace : Bs, Ve = (K.isMeshStandardMaterial ? N : Ie).get(K.envMap || Ne), ht = K.vertexColors === !0 && !!J.attributes.color && J.attributes.color.itemSize === 4, ut = !!J.attributes.tangent && (!!K.normalMap || K.anisotropy > 0), Qe = !!J.morphAttributes.position, mt = !!J.morphAttributes.normal, Tt = !!J.morphAttributes.color;
23666
23666
  let Ot = Li;
23667
23667
  K.toneMapped && (D === null || D.isXRRenderTarget === !0) && (Ot = v.toneMapping);
23668
23668
  const kt = J.morphAttributes.position || J.morphAttributes.normal || J.morphAttributes.color, bt = kt !== void 0 ? kt.length : 0, st = ce.get(K), Yt = p.state.lights;
@@ -23671,7 +23671,7 @@ class Sv {
23671
23671
  Oe.setState(K, L, Xt);
23672
23672
  }
23673
23673
  let Et = !1;
23674
- K.version === st.__version ? (st.needsLights && st.lightsStateVersion !== Yt.state.version || st.outputColorSpace !== qe || j.isBatchedMesh && st.batching === !1 || !j.isBatchedMesh && st.batching === !0 || j.isBatchedMesh && st.batchingColor === !0 && j.colorTexture === null || j.isBatchedMesh && st.batchingColor === !1 && j.colorTexture !== null || j.isInstancedMesh && st.instancing === !1 || !j.isInstancedMesh && st.instancing === !0 || j.isSkinnedMesh && st.skinning === !1 || !j.isSkinnedMesh && st.skinning === !0 || j.isInstancedMesh && st.instancingColor === !0 && j.instanceColor === null || j.isInstancedMesh && st.instancingColor === !1 && j.instanceColor !== null || j.isInstancedMesh && st.instancingMorph === !0 && j.morphTexture === null || j.isInstancedMesh && st.instancingMorph === !1 && j.morphTexture !== null || st.envMap !== Ve || K.fog === !0 && st.fog !== xe || st.numClippingPlanes !== void 0 && (st.numClippingPlanes !== Oe.numPlanes || st.numIntersection !== Oe.numIntersection) || st.vertexAlphas !== ht || st.vertexTangents !== ut || st.morphTargets !== Ze || st.morphNormals !== mt || st.morphColors !== Tt || st.toneMapping !== Ot || st.morphTargetsCount !== bt) && (Et = !0) : (Et = !0, st.__version = K.version);
23674
+ K.version === st.__version ? (st.needsLights && st.lightsStateVersion !== Yt.state.version || st.outputColorSpace !== qe || j.isBatchedMesh && st.batching === !1 || !j.isBatchedMesh && st.batching === !0 || j.isBatchedMesh && st.batchingColor === !0 && j.colorTexture === null || j.isBatchedMesh && st.batchingColor === !1 && j.colorTexture !== null || j.isInstancedMesh && st.instancing === !1 || !j.isInstancedMesh && st.instancing === !0 || j.isSkinnedMesh && st.skinning === !1 || !j.isSkinnedMesh && st.skinning === !0 || j.isInstancedMesh && st.instancingColor === !0 && j.instanceColor === null || j.isInstancedMesh && st.instancingColor === !1 && j.instanceColor !== null || j.isInstancedMesh && st.instancingMorph === !0 && j.morphTexture === null || j.isInstancedMesh && st.instancingMorph === !1 && j.morphTexture !== null || st.envMap !== Ve || K.fog === !0 && st.fog !== xe || st.numClippingPlanes !== void 0 && (st.numClippingPlanes !== Oe.numPlanes || st.numIntersection !== Oe.numIntersection) || st.vertexAlphas !== ht || st.vertexTangents !== ut || st.morphTargets !== Qe || st.morphNormals !== mt || st.morphColors !== Tt || st.toneMapping !== Ot || st.morphTargetsCount !== bt) && (Et = !0) : (Et = !0, st.__version = K.version);
23675
23675
  let Mn = st.currentProgram;
23676
23676
  Et === !0 && (Mn = sn(K, X, j));
23677
23677
  let zt = !1, rn = !1, Ui = !1;
@@ -23733,9 +23733,9 @@ class Sv {
23733
23733
  else if (Ve.__hasExternalTextures)
23734
23734
  le.rebindTextures(L, ce.get(L.texture).__webglTexture, ce.get(L.depthTexture).__webglTexture);
23735
23735
  else if (L.depthBuffer) {
23736
- const Ze = L.depthTexture;
23737
- if (Ve.__boundDepthTexture !== Ze) {
23738
- if (Ze !== null && ce.has(Ze) && (L.width !== Ze.image.width || L.height !== Ze.image.height))
23736
+ const Qe = L.depthTexture;
23737
+ if (Ve.__boundDepthTexture !== Qe) {
23738
+ if (Qe !== null && ce.has(Qe) && (L.width !== Qe.image.width || L.height !== Qe.image.height))
23739
23739
  throw new Error("WebGLRenderTarget: Attached DepthTexture is initialized to the incorrect size.");
23740
23740
  le.setupDepthRenderbuffer(L);
23741
23741
  }
@@ -23766,16 +23766,16 @@ class Sv {
23766
23766
  if (L.isWebGLCubeRenderTarget && Ne !== void 0 && (Ve = Ve[Ne]), Ve) {
23767
23767
  ee.bindFramebuffer(O.FRAMEBUFFER, Ve);
23768
23768
  try {
23769
- const ht = L.textures[qe], ut = ht.format, Ze = ht.type;
23769
+ const ht = L.textures[qe], ut = ht.format, Qe = ht.type;
23770
23770
  if (!de.textureFormatReadable(ut)) {
23771
23771
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
23772
23772
  return;
23773
23773
  }
23774
- if (!de.textureTypeReadable(Ze)) {
23774
+ if (!de.textureTypeReadable(Qe)) {
23775
23775
  console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
23776
23776
  return;
23777
23777
  }
23778
- X >= 0 && X <= L.width - K && J >= 0 && J <= L.height - j && (L.textures.length > 1 && O.readBuffer(O.COLOR_ATTACHMENT0 + qe), O.readPixels(X, J, K, j, Le.convert(ut), Le.convert(Ze), xe));
23778
+ X >= 0 && X <= L.width - K && J >= 0 && J <= L.height - j && (L.textures.length > 1 && O.readBuffer(O.COLOR_ATTACHMENT0 + qe), O.readPixels(X, J, K, j, Le.convert(ut), Le.convert(Qe), xe));
23779
23779
  } finally {
23780
23780
  const ht = D !== null ? ce.get(D).__webglFramebuffer : null;
23781
23781
  ee.bindFramebuffer(O.FRAMEBUFFER, ht);
@@ -23788,13 +23788,13 @@ class Sv {
23788
23788
  if (L.isWebGLCubeRenderTarget && Ne !== void 0 && (Ve = Ve[Ne]), Ve)
23789
23789
  if (X >= 0 && X <= L.width - K && J >= 0 && J <= L.height - j) {
23790
23790
  ee.bindFramebuffer(O.FRAMEBUFFER, Ve);
23791
- const ht = L.textures[qe], ut = ht.format, Ze = ht.type;
23791
+ const ht = L.textures[qe], ut = ht.format, Qe = ht.type;
23792
23792
  if (!de.textureFormatReadable(ut))
23793
23793
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");
23794
- if (!de.textureTypeReadable(Ze))
23794
+ if (!de.textureTypeReadable(Qe))
23795
23795
  throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
23796
23796
  const mt = O.createBuffer();
23797
- O.bindBuffer(O.PIXEL_PACK_BUFFER, mt), O.bufferData(O.PIXEL_PACK_BUFFER, xe.byteLength, O.STREAM_READ), L.textures.length > 1 && O.readBuffer(O.COLOR_ATTACHMENT0 + qe), O.readPixels(X, J, K, j, Le.convert(ut), Le.convert(Ze), 0);
23797
+ O.bindBuffer(O.PIXEL_PACK_BUFFER, mt), O.bufferData(O.PIXEL_PACK_BUFFER, xe.byteLength, O.STREAM_READ), L.textures.length > 1 && O.readBuffer(O.COLOR_ATTACHMENT0 + qe), O.readPixels(X, J, K, j, Le.convert(ut), Le.convert(Qe), 0);
23798
23798
  const Tt = D !== null ? ce.get(D).__webglFramebuffer : null;
23799
23799
  ee.bindFramebuffer(O.FRAMEBUFFER, Tt);
23800
23800
  const Ot = O.fenceSync(O.SYNC_GPU_COMMANDS_COMPLETE, 0);
@@ -23808,32 +23808,32 @@ class Sv {
23808
23808
  const is = O.createFramebuffer(), ss = O.createFramebuffer();
23809
23809
  this.copyTextureToTexture = function(L, X, J = null, K = null, j = 0, xe = null) {
23810
23810
  xe === null && (j !== 0 ? (Us("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), xe = j, j = 0) : xe = 0);
23811
- let Ne, qe, Ve, ht, ut, Ze, mt, Tt, Ot;
23811
+ let Ne, qe, Ve, ht, ut, Qe, mt, Tt, Ot;
23812
23812
  const kt = L.isCompressedTexture ? L.mipmaps[xe] : L.image;
23813
23813
  if (J !== null)
23814
- Ne = J.max.x - J.min.x, qe = J.max.y - J.min.y, Ve = J.isBox3 ? J.max.z - J.min.z : 1, ht = J.min.x, ut = J.min.y, Ze = J.isBox3 ? J.min.z : 0;
23814
+ Ne = J.max.x - J.min.x, qe = J.max.y - J.min.y, Ve = J.isBox3 ? J.max.z - J.min.z : 1, ht = J.min.x, ut = J.min.y, Qe = J.isBox3 ? J.min.z : 0;
23815
23815
  else {
23816
23816
  const un = Math.pow(2, -j);
23817
- Ne = Math.floor(kt.width * un), qe = Math.floor(kt.height * un), L.isDataArrayTexture ? Ve = kt.depth : L.isData3DTexture ? Ve = Math.floor(kt.depth * un) : Ve = 1, ht = 0, ut = 0, Ze = 0;
23817
+ Ne = Math.floor(kt.width * un), qe = Math.floor(kt.height * un), L.isDataArrayTexture ? Ve = kt.depth : L.isData3DTexture ? Ve = Math.floor(kt.depth * un) : Ve = 1, ht = 0, ut = 0, Qe = 0;
23818
23818
  }
23819
23819
  K !== null ? (mt = K.x, Tt = K.y, Ot = K.z) : (mt = 0, Tt = 0, Ot = 0);
23820
23820
  const bt = Le.convert(X.format), st = Le.convert(X.type);
23821
23821
  let Yt;
23822
23822
  X.isData3DTexture ? (le.setTexture3D(X, 0), Yt = O.TEXTURE_3D) : X.isDataArrayTexture || X.isCompressedArrayTexture ? (le.setTexture2DArray(X, 0), Yt = O.TEXTURE_2D_ARRAY) : (le.setTexture2D(X, 0), Yt = O.TEXTURE_2D), O.pixelStorei(O.UNPACK_FLIP_Y_WEBGL, X.flipY), O.pixelStorei(O.UNPACK_PREMULTIPLY_ALPHA_WEBGL, X.premultiplyAlpha), O.pixelStorei(O.UNPACK_ALIGNMENT, X.unpackAlignment);
23823
23823
  const Et = O.getParameter(O.UNPACK_ROW_LENGTH), Mn = O.getParameter(O.UNPACK_IMAGE_HEIGHT), zt = O.getParameter(O.UNPACK_SKIP_PIXELS), rn = O.getParameter(O.UNPACK_SKIP_ROWS), Ui = O.getParameter(O.UNPACK_SKIP_IMAGES);
23824
- O.pixelStorei(O.UNPACK_ROW_LENGTH, kt.width), O.pixelStorei(O.UNPACK_IMAGE_HEIGHT, kt.height), O.pixelStorei(O.UNPACK_SKIP_PIXELS, ht), O.pixelStorei(O.UNPACK_SKIP_ROWS, ut), O.pixelStorei(O.UNPACK_SKIP_IMAGES, Ze);
23824
+ O.pixelStorei(O.UNPACK_ROW_LENGTH, kt.width), O.pixelStorei(O.UNPACK_IMAGE_HEIGHT, kt.height), O.pixelStorei(O.UNPACK_SKIP_PIXELS, ht), O.pixelStorei(O.UNPACK_SKIP_ROWS, ut), O.pixelStorei(O.UNPACK_SKIP_IMAGES, Qe);
23825
23825
  const Ft = L.isDataArrayTexture || L.isData3DTexture, gn = X.isDataArrayTexture || X.isData3DTexture;
23826
23826
  if (L.isDepthTexture) {
23827
23827
  const un = ce.get(L), Xt = ce.get(X), $t = ce.get(un.__renderTarget), rs = ce.get(Xt.__renderTarget);
23828
23828
  ee.bindFramebuffer(O.READ_FRAMEBUFFER, $t.__webglFramebuffer), ee.bindFramebuffer(O.DRAW_FRAMEBUFFER, rs.__webglFramebuffer);
23829
23829
  for (let si = 0; si < Ve; si++)
23830
- Ft && (O.framebufferTextureLayer(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, ce.get(L).__webglTexture, j, Ze + si), O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER, O.COLOR_ATTACHMENT0, ce.get(X).__webglTexture, xe, Ot + si)), O.blitFramebuffer(ht, ut, Ne, qe, mt, Tt, Ne, qe, O.DEPTH_BUFFER_BIT, O.NEAREST);
23830
+ Ft && (O.framebufferTextureLayer(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, ce.get(L).__webglTexture, j, Qe + si), O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER, O.COLOR_ATTACHMENT0, ce.get(X).__webglTexture, xe, Ot + si)), O.blitFramebuffer(ht, ut, Ne, qe, mt, Tt, Ne, qe, O.DEPTH_BUFFER_BIT, O.NEAREST);
23831
23831
  ee.bindFramebuffer(O.READ_FRAMEBUFFER, null), ee.bindFramebuffer(O.DRAW_FRAMEBUFFER, null);
23832
23832
  } else if (j !== 0 || L.isRenderTargetTexture || ce.has(L)) {
23833
23833
  const un = ce.get(L), Xt = ce.get(X);
23834
23834
  ee.bindFramebuffer(O.READ_FRAMEBUFFER, is), ee.bindFramebuffer(O.DRAW_FRAMEBUFFER, ss);
23835
23835
  for (let $t = 0; $t < Ve; $t++)
23836
- Ft ? O.framebufferTextureLayer(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, un.__webglTexture, j, Ze + $t) : O.framebufferTexture2D(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, O.TEXTURE_2D, un.__webglTexture, j), gn ? O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER, O.COLOR_ATTACHMENT0, Xt.__webglTexture, xe, Ot + $t) : O.framebufferTexture2D(O.DRAW_FRAMEBUFFER, O.COLOR_ATTACHMENT0, O.TEXTURE_2D, Xt.__webglTexture, xe), j !== 0 ? O.blitFramebuffer(ht, ut, Ne, qe, mt, Tt, Ne, qe, O.COLOR_BUFFER_BIT, O.NEAREST) : gn ? O.copyTexSubImage3D(Yt, xe, mt, Tt, Ot + $t, ht, ut, Ne, qe) : O.copyTexSubImage2D(Yt, xe, mt, Tt, ht, ut, Ne, qe);
23836
+ Ft ? O.framebufferTextureLayer(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, un.__webglTexture, j, Qe + $t) : O.framebufferTexture2D(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, O.TEXTURE_2D, un.__webglTexture, j), gn ? O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER, O.COLOR_ATTACHMENT0, Xt.__webglTexture, xe, Ot + $t) : O.framebufferTexture2D(O.DRAW_FRAMEBUFFER, O.COLOR_ATTACHMENT0, O.TEXTURE_2D, Xt.__webglTexture, xe), j !== 0 ? O.blitFramebuffer(ht, ut, Ne, qe, mt, Tt, Ne, qe, O.COLOR_BUFFER_BIT, O.NEAREST) : gn ? O.copyTexSubImage3D(Yt, xe, mt, Tt, Ot + $t, ht, ut, Ne, qe) : O.copyTexSubImage2D(Yt, xe, mt, Tt, ht, ut, Ne, qe);
23837
23837
  ee.bindFramebuffer(O.READ_FRAMEBUFFER, null), ee.bindFramebuffer(O.DRAW_FRAMEBUFFER, null);
23838
23838
  } else
23839
23839
  gn ? L.isDataTexture || L.isData3DTexture ? O.texSubImage3D(Yt, xe, mt, Tt, Ot, Ne, qe, Ve, bt, st, kt.data) : X.isCompressedArrayTexture ? O.compressedTexSubImage3D(Yt, xe, mt, Tt, Ot, Ne, qe, Ve, bt, kt.data) : O.texSubImage3D(Yt, xe, mt, Tt, Ot, Ne, qe, Ve, bt, st, kt) : L.isDataTexture ? O.texSubImage2D(O.TEXTURE_2D, xe, mt, Tt, Ne, qe, bt, st, kt.data) : L.isCompressedTexture ? O.compressedTexSubImage2D(O.TEXTURE_2D, xe, mt, Tt, kt.width, kt.height, bt, kt.data) : O.texSubImage2D(O.TEXTURE_2D, xe, mt, Tt, Ne, qe, bt, st, kt);
@@ -23876,7 +23876,7 @@ class Sv {
23876
23876
  }
23877
23877
  }
23878
23878
  var $3 = Object.defineProperty, J3 = (s, e, t) => e in s ? $3(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Pt = (s, e, t) => J3(s, typeof e != "symbol" ? e + "" : e, t);
23879
- const yd = (s, e) => {
23879
+ const xd = (s, e) => {
23880
23880
  const [t, n] = e.split("-");
23881
23881
  return Object.assign(s.style, {
23882
23882
  left: n === "left" ? "0" : n === "center" ? "50%" : "",
@@ -23901,7 +23901,7 @@ const yd = (s, e) => {
23901
23901
  width: `${e}px`,
23902
23902
  margin: `${a}px ${l}px ${c}px ${o}px`,
23903
23903
  borderRadius: "100%"
23904
- }), yd(r, s), n && (r.id = n), i && (r.className = i), r;
23904
+ }), xd(r, s), n && (r.id = n), i && (r.className = i), r;
23905
23905
  }, Z3 = (s) => {
23906
23906
  const e = typeof s == "string" ? document.querySelector(s) : s;
23907
23907
  if (!e) throw Error("Invalid DOM element");
@@ -23914,32 +23914,32 @@ const Q3 = [
23914
23914
  ["x", 0, 3],
23915
23915
  ["y", 1, 4],
23916
23916
  ["z", 2, 5]
23917
- ], tu = /* @__PURE__ */ new F();
23918
- function nu({ isSphere: s }, e, t) {
23919
- s && (tu.set(0, 0, 1).applyQuaternion(t.quaternion), Q3.forEach(([n, i, r]) => {
23920
- const a = tu[n];
23917
+ ], nu = /* @__PURE__ */ new F();
23918
+ function iu({ isSphere: s }, e, t) {
23919
+ s && (nu.set(0, 0, 1).applyQuaternion(t.quaternion), Q3.forEach(([n, i, r]) => {
23920
+ const a = nu[n];
23921
23921
  let o = e[i], l = o.userData.opacity;
23922
23922
  o.material.opacity = Il(a >= 0 ? l : l / 2, 0, 1), o = e[r], l = o.userData.opacity, o.material.opacity = Il(a >= 0 ? l / 2 : l, 0, 1);
23923
23923
  }));
23924
23924
  }
23925
- const e_ = (s, e, t = 10) => Math.abs(s.clientX - e.x) < t && Math.abs(s.clientY - e.y) < t, iu = /* @__PURE__ */ new hm(), su = /* @__PURE__ */ new Ge(), ru = (s, e, t, n) => {
23926
- su.set(
23925
+ const e_ = (s, e, t = 10) => Math.abs(s.clientX - e.x) < t && Math.abs(s.clientY - e.y) < t, su = /* @__PURE__ */ new hm(), ru = /* @__PURE__ */ new Ge(), au = (s, e, t, n) => {
23926
+ ru.set(
23927
23927
  (s.clientX - e.left) / e.width * 2 - 1,
23928
23928
  -((s.clientY - e.top) / e.height) * 2 + 1
23929
- ), iu.setFromCamera(su, t);
23930
- const i = iu.intersectObjects(
23929
+ ), su.setFromCamera(ru, t);
23930
+ const i = su.intersectObjects(
23931
23931
  n,
23932
23932
  !1
23933
23933
  ), r = i.length ? i[0] : null;
23934
23934
  return !r || !r.object.visible ? null : r;
23935
- }, No = 1e-6, t_ = 2 * Math.PI, xd = ["x", "y", "z"], _r = [...xd, "nx", "ny", "nz"], n_ = ["x", "z", "y", "nx", "nz", "ny"], i_ = ["z", "x", "y", "nz", "nx", "ny"], Ul = "Right", xa = "Top", Nl = "Front", Fl = "Left", Ma = "Bottom", Ol = "Back", s_ = [
23935
+ }, No = 1e-6, t_ = 2 * Math.PI, Md = ["x", "y", "z"], _r = [...Md, "nx", "ny", "nz"], n_ = ["x", "z", "y", "nx", "nz", "ny"], i_ = ["z", "x", "y", "nz", "nx", "ny"], Ul = "Right", xa = "Top", Nl = "Front", Fl = "Left", Ma = "Bottom", Ol = "Back", s_ = [
23936
23936
  Ul,
23937
23937
  xa,
23938
23938
  Nl,
23939
23939
  Fl,
23940
23940
  Ma,
23941
23941
  Ol
23942
- ].map((s) => s.toLocaleLowerCase()), Md = 1.3, au = (s, e = !0) => {
23942
+ ].map((s) => s.toLocaleLowerCase()), bd = 1.3, ou = (s, e = !0) => {
23943
23943
  const { material: t, userData: n } = s, { color: i, opacity: r } = e ? n.hover : n;
23944
23944
  t.color.set(i), t.opacity = r;
23945
23945
  }, Vi = (s) => JSON.parse(JSON.stringify(s)), r_ = (s) => {
@@ -24059,7 +24059,7 @@ const e_ = (s, e, t = 10) => Math.abs(s.clientX - e.x) < t && Math.abs(s.clientY
24059
24059
  label: t ? "" : r ? Ma : a ? Fl : Ol
24060
24060
  }
24061
24061
  };
24062
- return zl(s, u), xd.forEach(
24062
+ return zl(s, u), Md.forEach(
24063
24063
  (d) => zl(
24064
24064
  s[`n${d}`],
24065
24065
  Vi(s[d])
@@ -24164,14 +24164,14 @@ const a_ = (s, e = 2) => {
24164
24164
  function C(T, D, b, x, R) {
24165
24165
  T.font = f, T.textAlign = "center", T.textBaseline = "middle", T.fillStyle = R, T.fillText(x, D, b + (i ? m : 0));
24166
24166
  }
24167
- }, o_ = (s, e) => s.offset.x = (e ? 0.5 : 0) + s.userData.offsetX, uc = (s, e) => {
24167
+ }, o_ = (s, e) => s.offset.x = (e ? 0.5 : 0) + s.userData.offsetX, dc = (s, e) => {
24168
24168
  const {
24169
24169
  offset: t,
24170
24170
  userData: { offsetY: n, cellHeight: i }
24171
24171
  } = s;
24172
24172
  t.y = 1 - (e + 1) * i + n;
24173
24173
  };
24174
- function dc(s, e, t = 2, n = 2) {
24174
+ function fc(s, e, t = 2, n = 2) {
24175
24175
  const i = t / 2 - s, r = n / 2 - s, a = s / t, o = (t - s) / t, l = s / n, c = (n - s) / n, h = [i, r, 0, -i, r, 0, -i, -r, 0, i, -r, 0], u = [o, c, a, c, a, l, o, l], d = [
24176
24176
  3 * (e + 1) + 3,
24177
24177
  3 * (e + 1) + 4,
@@ -24200,16 +24200,16 @@ function dc(s, e, t = 2, n = 2) {
24200
24200
  ).setAttribute("uv", new Gt(new Float32Array(u), 2));
24201
24201
  }
24202
24202
  const l_ = (s, e) => {
24203
- const t = new F(), { isSphere: n, radius: i, smoothness: r } = s, a = dc(i, r);
24203
+ const t = new F(), { isSphere: n, radius: i, smoothness: r } = s, a = fc(i, r);
24204
24204
  return _r.map((o, l) => {
24205
24205
  const c = l < 3, h = _r[l], u = l ? e.clone() : e;
24206
- uc(u, l);
24206
+ dc(u, l);
24207
24207
  const { enabled: d, scale: f, opacity: m, hover: _ } = s[h], g = {
24208
24208
  map: u,
24209
24209
  opacity: m,
24210
24210
  transparent: !0
24211
- }, p = n ? new ec(new Ba(g)) : new Rt(a, new Di(g)), S = c ? h : h[1];
24212
- return p.position[S] = (c ? 1 : -1) * (n ? Md : 1), n || p.lookAt(t.copy(p.position).multiplyScalar(1.7)), p.scale.setScalar(f), p.renderOrder = 1, p.visible = d, p.userData = {
24211
+ }, p = n ? new tc(new Ba(g)) : new Rt(a, new Di(g)), S = c ? h : h[1];
24212
+ return p.position[S] = (c ? 1 : -1) * (n ? bd : 1), n || p.lookAt(t.copy(p.position).multiplyScalar(1.7)), p.scale.setScalar(f), p.renderOrder = 1, p.visible = d, p.userData = {
24213
24213
  scale: f,
24214
24214
  opacity: m,
24215
24215
  hover: _
@@ -24218,7 +24218,7 @@ const l_ = (s, e) => {
24218
24218
  }, c_ = (s, e) => {
24219
24219
  const { isSphere: t, corners: n } = s;
24220
24220
  if (!n.enabled) return [];
24221
- const { color: i, opacity: r, scale: a, radius: o, smoothness: l, hover: c } = n, h = t ? null : dc(o, l), u = {
24221
+ const { color: i, opacity: r, scale: a, radius: o, smoothness: l, hover: c } = n, h = t ? null : fc(o, l), u = {
24222
24222
  transparent: !0,
24223
24223
  opacity: r
24224
24224
  }, d = [
@@ -24250,10 +24250,10 @@ const l_ = (s, e) => {
24250
24250
  return Array(d.length / 3).fill(0).map((m, _) => {
24251
24251
  if (t) {
24252
24252
  const S = e.clone();
24253
- uc(S, 6), u.map = S;
24253
+ dc(S, 6), u.map = S;
24254
24254
  } else
24255
24255
  u.color = i;
24256
- const g = t ? new ec(new Ba(u)) : new Rt(h, new Di(u)), p = _ * 3;
24256
+ const g = t ? new tc(new Ba(u)) : new Rt(h, new Di(u)), p = _ * 3;
24257
24257
  return g.position.set(d[p], d[p + 1], d[p + 2]), t && g.position.normalize().multiplyScalar(1.7), g.scale.setScalar(a), g.lookAt(f.copy(g.position).multiplyScalar(2)), g.renderOrder = 1, g.userData = {
24258
24258
  color: i,
24259
24259
  opacity: r,
@@ -24264,7 +24264,7 @@ const l_ = (s, e) => {
24264
24264
  }, h_ = (s, e, t) => {
24265
24265
  const { isSphere: n, edges: i } = s;
24266
24266
  if (!i.enabled) return [];
24267
- const { color: r, opacity: a, scale: o, hover: l, radius: c, smoothness: h } = i, u = n ? null : dc(c, h, 1.2, 0.25), d = {
24267
+ const { color: r, opacity: a, scale: o, hover: l, radius: c, smoothness: h } = i, u = n ? null : fc(c, h, 1.2, 0.25), d = {
24268
24268
  transparent: !0,
24269
24269
  opacity: a
24270
24270
  }, f = [
@@ -24308,10 +24308,10 @@ const l_ = (s, e) => {
24308
24308
  return Array(f.length / 3).fill(0).map((g, p) => {
24309
24309
  if (n) {
24310
24310
  const v = e.clone();
24311
- uc(v, t), d.map = v;
24311
+ dc(v, t), d.map = v;
24312
24312
  } else
24313
24313
  d.color = r;
24314
- const S = n ? new ec(new Ba(d)) : new Rt(u, new Di(d)), E = p * 3;
24314
+ const S = n ? new tc(new Ba(d)) : new Rt(u, new Di(d)), E = p * 3;
24315
24315
  return S.position.set(f[E], f[E + 1], f[E + 2]), n && S.position.normalize().multiplyScalar(1.7), S.scale.setScalar(o), S.up.copy(_), S.lookAt(m.copy(S.position).multiplyScalar(2)), !n && !S.position.y && (S.rotation.z = Math.PI / 2), S.renderOrder = 1, S.userData = {
24316
24316
  color: r,
24317
24317
  opacity: a,
@@ -24365,7 +24365,7 @@ function u_(s, e = !1) {
24365
24365
  l.setIndex(u);
24366
24366
  }
24367
24367
  for (const h in r) {
24368
- const u = ou(r[h]);
24368
+ const u = lu(r[h]);
24369
24369
  if (!u)
24370
24370
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the " + h + " attribute."), null;
24371
24371
  l.setAttribute(h, u);
@@ -24378,7 +24378,7 @@ function u_(s, e = !1) {
24378
24378
  const f = [];
24379
24379
  for (let _ = 0; _ < a[h].length; ++_)
24380
24380
  f.push(a[h][_][d]);
24381
- const m = ou(f);
24381
+ const m = lu(f);
24382
24382
  if (!m)
24383
24383
  return console.error("THREE.BufferGeometryUtils: .mergeGeometries() failed while trying to merge the " + h + " morphAttribute."), null;
24384
24384
  l.morphAttributes[h].push(m);
@@ -24386,7 +24386,7 @@ function u_(s, e = !1) {
24386
24386
  }
24387
24387
  return l;
24388
24388
  }
24389
- function ou(s) {
24389
+ function lu(s) {
24390
24390
  let e, t, n, i = -1, r = 0;
24391
24391
  for (let c = 0; c < s.length; ++c) {
24392
24392
  const h = s[c];
@@ -24450,8 +24450,8 @@ const d_ = (s, e) => {
24450
24450
  opacity: r,
24451
24451
  hover: a
24452
24452
  }, o;
24453
- }, lu = new vi(), sa = new F();
24454
- class bd extends om {
24453
+ }, cu = new vi(), sa = new F();
24454
+ class Sd extends om {
24455
24455
  constructor() {
24456
24456
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
24457
24457
  const e = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], t = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], n = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
@@ -24489,7 +24489,7 @@ class bd extends om {
24489
24489
  computeBoundingBox() {
24490
24490
  this.boundingBox === null && (this.boundingBox = new vi());
24491
24491
  const e = this.attributes.instanceStart, t = this.attributes.instanceEnd;
24492
- e !== void 0 && t !== void 0 && (this.boundingBox.setFromBufferAttribute(e), lu.setFromBufferAttribute(t), this.boundingBox.union(lu));
24492
+ e !== void 0 && t !== void 0 && (this.boundingBox.setFromBufferAttribute(e), cu.setFromBufferAttribute(t), this.boundingBox.union(cu));
24493
24493
  }
24494
24494
  computeBoundingSphere() {
24495
24495
  this.boundingSphere === null && (this.boundingSphere = new yi()), this.boundingBox === null && this.computeBoundingBox();
@@ -24520,7 +24520,7 @@ De.line = {
24520
24520
  // todo FIX - maybe change to totalSize
24521
24521
  };
24522
24522
  An.line = {
24523
- uniforms: Ql.merge([
24523
+ uniforms: ec.merge([
24524
24524
  De.common,
24525
24525
  De.fog,
24526
24526
  De.line
@@ -24904,11 +24904,11 @@ An.line = {
24904
24904
  `
24905
24905
  )
24906
24906
  };
24907
- class fc extends _i {
24907
+ class pc extends _i {
24908
24908
  constructor(e) {
24909
24909
  super({
24910
24910
  type: "LineMaterial",
24911
- uniforms: Ql.clone(An.line.uniforms),
24911
+ uniforms: ec.clone(An.line.uniforms),
24912
24912
  vertexShader: An.line.vertexShader,
24913
24913
  fragmentShader: An.line.fragmentShader,
24914
24914
  clipping: !0
@@ -24982,9 +24982,9 @@ class fc extends _i {
24982
24982
  this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
24983
24983
  }
24984
24984
  }
24985
- const Fo = new xt(), cu = new F(), hu = new F(), an = new xt(), on = new xt(), $n = new xt(), Oo = new F(), zo = new lt(), ln = new dm(), uu = new F(), ra = new vi(), aa = new yi(), Jn = new xt();
24985
+ const Fo = new xt(), hu = new F(), uu = new F(), an = new xt(), on = new xt(), $n = new xt(), Oo = new F(), zo = new lt(), ln = new dm(), du = new F(), ra = new vi(), aa = new yi(), Jn = new xt();
24986
24986
  let Kn, $i;
24987
- function du(s, e, t) {
24987
+ function fu(s, e, t) {
24988
24988
  return Jn.set(0, 0, -e, 1).applyMatrix4(s.projectionMatrix), Jn.multiplyScalar(1 / Jn.w), Jn.x = $i / t.width, Jn.y = $i / t.height, Jn.applyMatrix4(s.projectionMatrixInverse), Jn.multiplyScalar(1 / Jn.w), Math.abs(Math.max(Jn.x, Jn.y));
24989
24989
  }
24990
24990
  function f_(s, e) {
@@ -25019,8 +25019,8 @@ function p_(s, e, t) {
25019
25019
  }
25020
25020
  an.applyMatrix4(n), on.applyMatrix4(n), an.multiplyScalar(1 / an.w), on.multiplyScalar(1 / on.w), an.x *= i.x / 2, an.y *= i.y / 2, on.x *= i.x / 2, on.y *= i.y / 2, ln.start.copy(an), ln.start.z = 0, ln.end.copy(on), ln.end.z = 0;
25021
25021
  const f = ln.closestPointToPointParameter(Oo, !0);
25022
- ln.at(f, uu);
25023
- const m = Ts.lerp(an.z, on.z, f), _ = m >= -1 && m <= 1, g = Oo.distanceTo(uu) < $i * 0.5;
25022
+ ln.at(f, du);
25023
+ const m = Ts.lerp(an.z, on.z, f), _ = m >= -1 && m <= 1, g = Oo.distanceTo(du) < $i * 0.5;
25024
25024
  if (_ && g) {
25025
25025
  ln.start.fromBufferAttribute(o, u), ln.end.fromBufferAttribute(l, u), ln.start.applyMatrix4(r), ln.end.applyMatrix4(r);
25026
25026
  const p = new F(), S = new F();
@@ -25038,14 +25038,14 @@ function p_(s, e, t) {
25038
25038
  }
25039
25039
  }
25040
25040
  class m_ extends Rt {
25041
- constructor(e = new bd(), t = new fc({ color: Math.random() * 16777215 })) {
25041
+ constructor(e = new Sd(), t = new pc({ color: Math.random() * 16777215 })) {
25042
25042
  super(e, t), this.isLineSegments2 = !0, this.type = "LineSegments2";
25043
25043
  }
25044
25044
  // for backwards-compatibility, but could be a method of LineSegmentsGeometry...
25045
25045
  computeLineDistances() {
25046
25046
  const e = this.geometry, t = e.attributes.instanceStart, n = e.attributes.instanceEnd, i = new Float32Array(2 * t.count);
25047
25047
  for (let a = 0, o = 0, l = t.count; a < l; a++, o += 2)
25048
- cu.fromBufferAttribute(t, a), hu.fromBufferAttribute(n, a), i[o] = o === 0 ? 0 : i[o - 1], i[o + 1] = i[o] + cu.distanceTo(hu);
25048
+ hu.fromBufferAttribute(t, a), uu.fromBufferAttribute(n, a), i[o] = o === 0 ? 0 : i[o - 1], i[o + 1] = i[o] + hu.distanceTo(uu);
25049
25049
  const r = new Ll(i, 2, 1);
25050
25050
  return e.setAttribute("instanceDistanceStart", new ti(r, 1, 0)), e.setAttribute("instanceDistanceEnd", new ti(r, 1, 1)), this;
25051
25051
  }
@@ -25061,7 +25061,7 @@ class m_ extends Rt {
25061
25061
  c = $i * 0.5;
25062
25062
  else {
25063
25063
  const u = Math.max(i.near, aa.distanceToPoint(Kn.origin));
25064
- c = du(i, u, l.resolution);
25064
+ c = fu(i, u, l.resolution);
25065
25065
  }
25066
25066
  if (aa.radius += c, Kn.intersectsSphere(aa) === !1)
25067
25067
  return;
@@ -25071,7 +25071,7 @@ class m_ extends Rt {
25071
25071
  h = $i * 0.5;
25072
25072
  else {
25073
25073
  const u = Math.max(i.near, ra.distanceToPoint(Kn.origin));
25074
- h = du(i, u, l.resolution);
25074
+ h = fu(i, u, l.resolution);
25075
25075
  }
25076
25076
  ra.expandByScalar(h), Kn.intersectsBox(ra) !== !1 && (n ? f_(this, t) : p_(this, i, t));
25077
25077
  }
@@ -25080,7 +25080,7 @@ class m_ extends Rt {
25080
25080
  t && t.resolution && (e.getViewport(Fo), this.material.uniforms.resolution.value.set(Fo.z, Fo.w));
25081
25081
  }
25082
25082
  }
25083
- class Sd extends bd {
25083
+ class Ed extends Sd {
25084
25084
  constructor() {
25085
25085
  super(), this.isLineGeometry = !0, this.type = "LineGeometry";
25086
25086
  }
@@ -25108,7 +25108,7 @@ class Sd extends bd {
25108
25108
  }
25109
25109
  }
25110
25110
  class g_ extends m_ {
25111
- constructor(e = new Sd(), t = new fc({ color: Math.random() * 16777215 })) {
25111
+ constructor(e = new Ed(), t = new pc({ color: Math.random() * 16777215 })) {
25112
25112
  super(e, t), this.isLine2 = !0, this.type = "Line2";
25113
25113
  }
25114
25114
  }
@@ -25117,7 +25117,7 @@ const __ = (s) => {
25117
25117
  if (_r.forEach((o, l) => {
25118
25118
  const { enabled: c, line: h, scale: u, color: d } = s[o];
25119
25119
  if (!c || !h) return;
25120
- const f = l < 3 ? 1 : -1, m = (i ? Md - u / 2 : 0.975) * f;
25120
+ const f = l < 3 ? 1 : -1, m = (i ? bd - u / 2 : 0.975) * f;
25121
25121
  t.push(
25122
25122
  o.includes("x") ? m : 0,
25123
25123
  o.includes("y") ? m : 0,
@@ -25129,7 +25129,7 @@ const __ = (s) => {
25129
25129
  const _ = e.set(d).toArray();
25130
25130
  n.push(..._, ..._);
25131
25131
  }), !t.length) return null;
25132
- const r = new Sd().setPositions(t).setColors(n), a = new fc({
25132
+ const r = new Ed().setPositions(t).setColors(n), a = new pc({
25133
25133
  linewidth: s.lineWidth,
25134
25134
  vertexColors: !0,
25135
25135
  resolution: new Ge(window.innerWidth, window.innerHeight)
@@ -25143,7 +25143,7 @@ const __ = (s) => {
25143
25143
  }, ir = (s, e = !0) => {
25144
25144
  const { material: t, userData: n } = s, { opacity: i, color: r, scale: a } = e ? n.hover : n;
25145
25145
  s.scale.setScalar(a), t.opacity = i, t.map ? o_(t.map, e) : t.color.set(r);
25146
- }, As = /* @__PURE__ */ new lt(), fu = /* @__PURE__ */ new um(), y_ = /* @__PURE__ */ new Ge(), Hi = /* @__PURE__ */ new F(), pu = /* @__PURE__ */ new xt();
25146
+ }, As = /* @__PURE__ */ new lt(), pu = /* @__PURE__ */ new um(), y_ = /* @__PURE__ */ new Ge(), Hi = /* @__PURE__ */ new F(), mu = /* @__PURE__ */ new xt();
25147
25147
  class Ev extends Nt {
25148
25148
  /**
25149
25149
  * Creates a new ViewportGizmo instance.
@@ -25238,7 +25238,7 @@ class Ev extends Nt {
25238
25238
  * @param options.AXIS.hover.border.color - Hover border color
25239
25239
  */
25240
25240
  constructor(e, t, n = {}) {
25241
- super(), Pt(this, "enabled", !0), Pt(this, "camera"), Pt(this, "renderer"), Pt(this, "options"), Pt(this, "target", new F()), Pt(this, "animated", !0), Pt(this, "speed", 1), Pt(this, "animating", !1), Pt(this, "_options"), Pt(this, "_intersections"), Pt(this, "_background", null), Pt(this, "_viewport", [0, 0, 0, 0]), Pt(this, "_originalViewport", [0, 0, 0, 0]), Pt(this, "_originalScissor", [0, 0, 0, 0]), Pt(this, "_scene"), Pt(this, "_camera"), Pt(this, "_container"), Pt(this, "_domElement"), Pt(this, "_domRect"), Pt(this, "_dragging", !1), Pt(this, "_distance", 0), Pt(this, "_clock", new cm()), Pt(this, "_targetQuaternion", new Bn()), Pt(this, "_quaternionStart", new Bn()), Pt(this, "_quaternionEnd", new Bn()), Pt(this, "_pointerStart", new Ge()), Pt(this, "_focus", null), Pt(this, "_placement"), Pt(this, "_controls"), Pt(this, "_controlsListeners"), this.camera = e, this.renderer = t, this._scene = new id().add(this), this.set(n);
25241
+ super(), Pt(this, "enabled", !0), Pt(this, "camera"), Pt(this, "renderer"), Pt(this, "options"), Pt(this, "target", new F()), Pt(this, "animated", !0), Pt(this, "speed", 1), Pt(this, "animating", !1), Pt(this, "_options"), Pt(this, "_intersections"), Pt(this, "_background", null), Pt(this, "_viewport", [0, 0, 0, 0]), Pt(this, "_originalViewport", [0, 0, 0, 0]), Pt(this, "_originalScissor", [0, 0, 0, 0]), Pt(this, "_scene"), Pt(this, "_camera"), Pt(this, "_container"), Pt(this, "_domElement"), Pt(this, "_domRect"), Pt(this, "_dragging", !1), Pt(this, "_distance", 0), Pt(this, "_clock", new cm()), Pt(this, "_targetQuaternion", new Bn()), Pt(this, "_quaternionStart", new Bn()), Pt(this, "_quaternionEnd", new Bn()), Pt(this, "_pointerStart", new Ge()), Pt(this, "_focus", null), Pt(this, "_placement"), Pt(this, "_controls"), Pt(this, "_controlsListeners"), this.camera = e, this.renderer = t, this._scene = new sd().add(this), this.set(n);
25242
25242
  }
25243
25243
  /** Gets the current placement of the gizmo relative to its container. */
25244
25244
  get placement() {
@@ -25250,7 +25250,7 @@ class Ev extends Nt {
25250
25250
  * @param placement - The new placement position
25251
25251
  */
25252
25252
  set placement(e) {
25253
- this._placement = yd(this._domElement, e), this.domUpdate();
25253
+ this._placement = xd(this._domElement, e), this.domUpdate();
25254
25254
  }
25255
25255
  /**
25256
25256
  * Regenerates the gizmo with the new options.
@@ -25295,7 +25295,7 @@ class Ev extends Nt {
25295
25295
  e.domElement.clientHeight - (t.top - n.top + t.height),
25296
25296
  t.width,
25297
25297
  t.height
25298
- ), e.getViewport(pu).toArray(this._originalViewport), e.getScissorTest() && e.getScissor(pu).toArray(this._originalScissor), this;
25298
+ ), e.getViewport(mu).toArray(this._originalViewport), e.getScissorTest() && e.getScissor(mu).toArray(this._originalScissor), this;
25299
25299
  }
25300
25300
  /**
25301
25301
  * Updates the gizmo's orientation to match the current camera orientation.
@@ -25353,7 +25353,7 @@ class Ev extends Nt {
25353
25353
  * @param fromCamera - Whether to update based on camera orientation (true) or internal state (false)
25354
25354
  */
25355
25355
  _updateOrientation(e = !0) {
25356
- e && (this.quaternion.copy(this.camera.quaternion).invert(), this.updateMatrixWorld()), nu(this._options, this._intersections, this.camera);
25356
+ e && (this.quaternion.copy(this.camera.quaternion).invert(), this.updateMatrixWorld()), iu(this._options, this._intersections, this.camera);
25357
25357
  }
25358
25358
  /**
25359
25359
  * Handles the animation of camera position and orientation changes.
@@ -25395,7 +25395,7 @@ class Ev extends Nt {
25395
25395
  }
25396
25396
  const c = y_.set(l.clientX, l.clientY).sub(this._pointerStart).multiplyScalar(1 / this._domRect.width * Math.PI), h = this.coordinateConversion(
25397
25397
  Hi.subVectors(this.camera.position, this.target)
25398
- ), u = fu.setFromVector3(h);
25398
+ ), u = pu.setFromVector3(h);
25399
25399
  u.theta = a - c.x, u.phi = Il(
25400
25400
  o - c.y,
25401
25401
  No,
@@ -25412,7 +25412,7 @@ class Ev extends Nt {
25412
25412
  e.preventDefault(), this._pointerStart.set(e.clientX, e.clientY);
25413
25413
  const i = this.coordinateConversion(
25414
25414
  Hi.subVectors(this.camera.position, this.target)
25415
- ), r = fu.setFromVector3(i), a = r.theta, o = r.phi;
25415
+ ), r = pu.setFromVector3(i), a = r.theta, o = r.phi;
25416
25416
  this._distance = r.radius, document.addEventListener("pointermove", t, !1), document.addEventListener("pointerup", n, !1), this.dispatchEvent({ type: "start" });
25417
25417
  }
25418
25418
  /**
@@ -25434,7 +25434,7 @@ class Ev extends Nt {
25434
25434
  * @param e - The pointer event
25435
25435
  */
25436
25436
  _onPointerMove(e) {
25437
- !this.enabled || this._dragging || (this._background && au(this._background, !0), this._handleHover(e));
25437
+ !this.enabled || this._dragging || (this._background && ou(this._background, !0), this._handleHover(e));
25438
25438
  }
25439
25439
  /**
25440
25440
  * Handles pointer leave events to reset hover states.
@@ -25442,7 +25442,7 @@ class Ev extends Nt {
25442
25442
  * @private
25443
25443
  */
25444
25444
  _onPointerLeave() {
25445
- !this.enabled || this._dragging || (this._background && au(this._background, !1), this._focus && ir(this._focus, !1), this._domElement.style.cursor = "");
25445
+ !this.enabled || this._dragging || (this._background && ou(this._background, !1), this._focus && ir(this._focus, !1), this._domElement.style.cursor = "");
25446
25446
  }
25447
25447
  /**
25448
25448
  * Handles click events for axis selection.
@@ -25451,7 +25451,7 @@ class Ev extends Nt {
25451
25451
  * @param e - The pointer event
25452
25452
  */
25453
25453
  _handleClick(e) {
25454
- const t = ru(
25454
+ const t = au(
25455
25455
  e,
25456
25456
  this._domRect,
25457
25457
  this._camera,
@@ -25466,16 +25466,16 @@ class Ev extends Nt {
25466
25466
  * @param e - The pointer event
25467
25467
  */
25468
25468
  _handleHover(e) {
25469
- const t = ru(
25469
+ const t = au(
25470
25470
  e,
25471
25471
  this._domRect,
25472
25472
  this._camera,
25473
25473
  this._intersections
25474
25474
  ), n = (t == null ? void 0 : t.object) || null;
25475
- this._focus !== n && (this._domElement.style.cursor = n ? "pointer" : "", this._focus && ir(this._focus, !1), (this._focus = n) ? ir(n, !0) : nu(this._options, this._intersections, this.camera));
25475
+ this._focus !== n && (this._domElement.style.cursor = n ? "pointer" : "", this._focus && ir(this._focus, !1), (this._focus = n) ? ir(n, !0) : iu(this._options, this._intersections, this.camera));
25476
25476
  }
25477
25477
  }
25478
- const x_ = /^[og]\s*(.+)?/, M_ = /^mtllib /, b_ = /^usemtl /, S_ = /^usemap /, mu = /\s+/, gu = new F(), Bo = new F(), _u = new F(), vu = new F(), Nn = new F(), oa = new rt();
25478
+ const x_ = /^[og]\s*(.+)?/, M_ = /^mtllib /, b_ = /^usemtl /, S_ = /^usemap /, gu = /\s+/, _u = new F(), Bo = new F(), vu = new F(), yu = new F(), Nn = new F(), oa = new rt();
25479
25479
  function E_() {
25480
25480
  const s = {
25481
25481
  objects: [],
@@ -25585,7 +25585,7 @@ function E_() {
25585
25585
  },
25586
25586
  addFaceNormal: function(e, t, n) {
25587
25587
  const i = this.vertices, r = this.object.geometry.normals;
25588
- gu.fromArray(i, e), Bo.fromArray(i, t), _u.fromArray(i, n), Nn.subVectors(_u, Bo), vu.subVectors(gu, Bo), Nn.cross(vu), Nn.normalize(), r.push(Nn.x, Nn.y, Nn.z), r.push(Nn.x, Nn.y, Nn.z), r.push(Nn.x, Nn.y, Nn.z);
25588
+ _u.fromArray(i, e), Bo.fromArray(i, t), vu.fromArray(i, n), Nn.subVectors(vu, Bo), yu.subVectors(_u, Bo), Nn.cross(yu), Nn.normalize(), r.push(Nn.x, Nn.y, Nn.z), r.push(Nn.x, Nn.y, Nn.z), r.push(Nn.x, Nn.y, Nn.z);
25589
25589
  },
25590
25590
  addColor: function(e, t, n) {
25591
25591
  const i = this.colors, r = this.object.geometry.colors;
@@ -25694,7 +25694,7 @@ class ko extends jn {
25694
25694
  const h = c.charAt(0);
25695
25695
  if (h !== "#")
25696
25696
  if (h === "v") {
25697
- const u = c.split(mu);
25697
+ const u = c.split(gu);
25698
25698
  switch (u[0]) {
25699
25699
  case "v":
25700
25700
  t.vertices.push(
@@ -25723,7 +25723,7 @@ class ko extends jn {
25723
25723
  break;
25724
25724
  }
25725
25725
  } else if (h === "f") {
25726
- const d = c.slice(1).trim().split(mu), f = [];
25726
+ const d = c.slice(1).trim().split(gu), f = [];
25727
25727
  for (let _ = 0, g = d.length; _ < g; _++) {
25728
25728
  const p = d[_];
25729
25729
  if (p.length > 0) {
@@ -25841,7 +25841,7 @@ class Vo extends jn {
25841
25841
  * @param {onErrorCallback} onError - Executed when errors occur.
25842
25842
  */
25843
25843
  load(e, t, n, i) {
25844
- const r = this, a = this.path === "" ? cc.extractUrlBase(e) : this.path, o = new qs(this.manager);
25844
+ const r = this, a = this.path === "" ? hc.extractUrlBase(e) : this.path, o = new qs(this.manager);
25845
25845
  o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(e, function(l) {
25846
25846
  try {
25847
25847
  t(r.parse(l, a));
@@ -26013,9 +26013,9 @@ class A_ {
26013
26013
  return r = i.indexOf("-bm"), r >= 0 && (t.bumpScale = parseFloat(i[r + 1]), i.splice(r, 2)), r = i.indexOf("-mm"), r >= 0 && (t.displacementBias = parseFloat(i[r + 1]), t.displacementScale = parseFloat(i[r + 2]), i.splice(r, 3)), r = i.indexOf("-s"), r >= 0 && (n.scale.set(parseFloat(i[r + 1]), parseFloat(i[r + 2])), i.splice(r, 4)), r = i.indexOf("-o"), r >= 0 && (n.offset.set(parseFloat(i[r + 1]), parseFloat(i[r + 2])), i.splice(r, 4)), n.url = i.join(" ").trim(), n;
26014
26014
  }
26015
26015
  loadTexture(e, t, n, i, r) {
26016
- const a = this.manager !== void 0 ? this.manager : ac;
26016
+ const a = this.manager !== void 0 ? this.manager : oc;
26017
26017
  let o = a.getHandler(e);
26018
- o === null && (o = new oc(a)), o.setCrossOrigin && o.setCrossOrigin(this.crossOrigin);
26018
+ o === null && (o = new lc(a)), o.setCrossOrigin && o.setCrossOrigin(this.crossOrigin);
26019
26019
  const l = o.load(e, n, i, r);
26020
26020
  return t !== void 0 && (l.mapping = t), l;
26021
26021
  }
@@ -26304,7 +26304,7 @@ class w_ extends jn {
26304
26304
  return o.length > 0 && (d.vertexColors = !0), new cr(u, d);
26305
26305
  }
26306
26306
  }
26307
- class yu extends Q0 {
26307
+ class xu extends Q0 {
26308
26308
  /**
26309
26309
  * Constructs a new TGA loader.
26310
26310
  *
@@ -26537,7 +26537,7 @@ class T_ extends jn {
26537
26537
  * @param {onErrorCallback} onError - Executed when errors occur.
26538
26538
  */
26539
26539
  load(e, t, n, i) {
26540
- const r = this, a = r.path === "" ? cc.extractUrlBase(e) : r.path, o = new qs(r.manager);
26540
+ const r = this, a = r.path === "" ? hc.extractUrlBase(e) : r.path, o = new qs(r.manager);
26541
26541
  o.setPath(r.path), o.setRequestHeader(r.requestHeader), o.setWithCredentials(r.withCredentials), o.load(e, function(l) {
26542
26542
  try {
26543
26543
  t(r.parse(l, a));
@@ -26689,7 +26689,7 @@ class T_ extends jn {
26689
26689
  const y = [], P = M.channels, w = M.samplers, I = M.sources;
26690
26690
  for (const ne in P)
26691
26691
  if (P.hasOwnProperty(ne)) {
26692
- const ue = P[ne], He = w[ue.sampler], Pe = He.inputs.INPUT, Fe = He.inputs.OUTPUT, Je = I[Pe], ve = I[Fe], $e = U(ue, Je, ve);
26692
+ const ue = P[ne], He = w[ue.sampler], Pe = He.inputs.INPUT, Fe = He.inputs.OUTPUT, Ke = I[Pe], ve = I[Fe], $e = U(ue, Ke, ve);
26693
26693
  x($e, y);
26694
26694
  }
26695
26695
  return y;
@@ -26699,11 +26699,11 @@ class T_ extends jn {
26699
26699
  }
26700
26700
  function U(M, y, P) {
26701
26701
  const w = dt.nodes[M.id], I = mt(w.id), ne = w.transforms[M.sid], ue = w.matrix.clone().transpose();
26702
- let He, Pe, Fe, Je, ve, $e;
26702
+ let He, Pe, Fe, Ke, ve, $e;
26703
26703
  const je = {};
26704
26704
  switch (ne) {
26705
26705
  case "matrix":
26706
- for (Fe = 0, Je = y.array.length; Fe < Je; Fe++)
26706
+ for (Fe = 0, Ke = y.array.length; Fe < Ke; Fe++)
26707
26707
  if (He = y.array[Fe], Pe = Fe * P.stride, je[He] === void 0 && (je[He] = {}), M.arraySyntax === !0) {
26708
26708
  const Vt = P.array[Pe], Dt = M.indices[0] + 4 * M.indices[1];
26709
26709
  je[He][Dt] = Vt;
@@ -26743,7 +26743,7 @@ class T_ extends jn {
26743
26743
  function x(M, y) {
26744
26744
  const P = M.keyframes, w = M.name, I = [], ne = [], ue = [], He = [];
26745
26745
  for (let Pe = 0, Fe = P.length; Pe < Fe; Pe++) {
26746
- const Je = P[Pe], ve = Je.time, $e = Je.value;
26746
+ const Ke = P[Pe], ve = Ke.time, $e = Ke.value;
26747
26747
  X.fromArray($e).transpose(), X.decompose(T, b, D), I.push(ve), ne.push(T.x, T.y, T.z), ue.push(b.x, b.y, b.z, b.w), He.push(D.x, D.y, D.z);
26748
26748
  }
26749
26749
  return ne.length > 0 && y.push(new Hs(w + ".position", I, ne)), ue.length > 0 && y.push(new xr(w + ".quaternion", I, ue)), He.length > 0 && y.push(new Hs(w + ".scale", I, He)), y;
@@ -26823,7 +26823,7 @@ class T_ extends jn {
26823
26823
  for (let Pe = 0, Fe = He.length; Pe < Fe; Pe++)
26824
26824
  y.push(He[Pe]);
26825
26825
  }
26826
- return new bh(P, w, y);
26826
+ return new Sh(P, w, y);
26827
26827
  }
26828
26828
  function q(M) {
26829
26829
  return _(dt.clips[M], Z);
@@ -26925,7 +26925,7 @@ class T_ extends jn {
26925
26925
  array: [],
26926
26926
  stride: 4
26927
26927
  }
26928
- }, w = M.sources, I = M.vertexWeights, ne = I.vcount, ue = I.v, He = I.inputs.JOINT.offset, Pe = I.inputs.WEIGHT.offset, Fe = M.sources[M.joints.inputs.JOINT], Je = M.sources[M.joints.inputs.INV_BIND_MATRIX], ve = w[I.inputs.WEIGHT.id].array;
26928
+ }, w = M.sources, I = M.vertexWeights, ne = I.vcount, ue = I.v, He = I.inputs.JOINT.offset, Pe = I.inputs.WEIGHT.offset, Fe = M.sources[M.joints.inputs.JOINT], Ke = M.sources[M.joints.inputs.INV_BIND_MATRIX], ve = w[I.inputs.WEIGHT.id].array;
26929
26929
  let $e = 0, je, at, nt;
26930
26930
  for (je = 0, nt = ne.length; je < nt; je++) {
26931
26931
  const Dt = ne[je], At = [];
@@ -26939,7 +26939,7 @@ class T_ extends jn {
26939
26939
  }
26940
26940
  }
26941
26941
  for (M.bindShapeMatrix ? P.bindMatrix = new lt().fromArray(M.bindShapeMatrix).transpose() : P.bindMatrix = new lt().identity(), je = 0, nt = Fe.array.length; je < nt; je++) {
26942
- const Dt = Fe.array[je], At = new lt().fromArray(Je.array, je * Je.stride).transpose();
26942
+ const Dt = Fe.array[je], At = new lt().fromArray(Ke.array, je * Ke.stride).transpose();
26943
26943
  P.joints.push({ name: Dt, boneInverse: At });
26944
26944
  }
26945
26945
  return P;
@@ -27008,7 +27008,7 @@ class T_ extends jn {
27008
27008
  y.surfaces[P] = et(ne);
27009
27009
  break;
27010
27010
  case "sampler2D":
27011
- y.samplers[P] = Ke(ne);
27011
+ y.samplers[P] = Ze(ne);
27012
27012
  break;
27013
27013
  }
27014
27014
  }
@@ -27026,7 +27026,7 @@ class T_ extends jn {
27026
27026
  }
27027
27027
  return y;
27028
27028
  }
27029
- function Ke(M) {
27029
+ function Ze(M) {
27030
27030
  const y = {};
27031
27031
  for (let P = 0, w = M.childNodes.length; P < w; P++) {
27032
27032
  const I = M.childNodes[P];
@@ -27240,10 +27240,10 @@ class T_ extends jn {
27240
27240
  }
27241
27241
  w.name = M.name || "";
27242
27242
  function I(Pe, Fe = null) {
27243
- const Je = y.profile.samplers[Pe.id];
27243
+ const Ke = y.profile.samplers[Pe.id];
27244
27244
  let ve = null;
27245
- if (Je !== void 0) {
27246
- const $e = y.profile.surfaces[Je.source];
27245
+ if (Ke !== void 0) {
27246
+ const $e = y.profile.surfaces[Ke.source];
27247
27247
  ve = be($e.init_from);
27248
27248
  } else
27249
27249
  console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."), ve = be(Pe.id);
@@ -27321,13 +27321,13 @@ class T_ extends jn {
27321
27321
  if (P.extra !== void 0 && P.extra.technique !== void 0) {
27322
27322
  const Pe = P.extra.technique;
27323
27323
  for (const Fe in Pe) {
27324
- const Je = Pe[Fe];
27324
+ const Ke = Pe[Fe];
27325
27325
  switch (Fe) {
27326
27326
  case "double_sided":
27327
- w.side = Je === 1 ? yn : qn;
27327
+ w.side = Ke === 1 ? yn : qn;
27328
27328
  break;
27329
27329
  case "bump":
27330
- w.normalMap = I(Je.texture), w.normalScale = new Ge(1, 1);
27330
+ w.normalMap = I(Ke.texture), w.normalScale = new Ge(1, 1);
27331
27331
  break;
27332
27332
  }
27333
27333
  }
@@ -27616,7 +27616,7 @@ class T_ extends jn {
27616
27616
  return y;
27617
27617
  }
27618
27618
  function Lt(M, y, P) {
27619
- const w = {}, I = { array: [], stride: 0 }, ne = { array: [], stride: 0 }, ue = { array: [], stride: 0 }, He = { array: [], stride: 0 }, Pe = { array: [], stride: 0 }, Fe = { array: [], stride: 4 }, Je = { array: [], stride: 4 }, ve = new Bt(), $e = [];
27619
+ const w = {}, I = { array: [], stride: 0 }, ne = { array: [], stride: 0 }, ue = { array: [], stride: 0 }, He = { array: [], stride: 0 }, Pe = { array: [], stride: 0 }, Fe = { array: [], stride: 4 }, Ke = { array: [], stride: 4 }, ve = new Bt(), $e = [];
27620
27620
  let je = 0;
27621
27621
  for (let at = 0; at < M.length; at++) {
27622
27622
  const nt = M[at], Vt = nt.inputs;
@@ -27658,9 +27658,9 @@ class T_ extends jn {
27658
27658
  switch (ri) {
27659
27659
  case "POSITION":
27660
27660
  const as = I.array.length;
27661
- if (ft(nt, y[bn], wt.offset, I.array), I.stride = y[bn].stride, y.skinWeights && y.skinIndices && (ft(nt, y.skinIndices, wt.offset, Fe.array), ft(nt, y.skinWeights, wt.offset, Je.array)), nt.hasUV === !1 && M.uvsNeedsFix === !0) {
27662
- const Ld = (I.array.length - as) / I.stride;
27663
- for (let pc = 0; pc < Ld; pc++)
27661
+ if (ft(nt, y[bn], wt.offset, I.array), I.stride = y[bn].stride, y.skinWeights && y.skinIndices && (ft(nt, y.skinIndices, wt.offset, Fe.array), ft(nt, y.skinWeights, wt.offset, Ke.array)), nt.hasUV === !1 && M.uvsNeedsFix === !0) {
27662
+ const Pd = (I.array.length - as) / I.stride;
27663
+ for (let mc = 0; mc < Pd; mc++)
27664
27664
  ue.array.push(0, 0);
27665
27665
  }
27666
27666
  break;
@@ -27696,17 +27696,17 @@ class T_ extends jn {
27696
27696
  }
27697
27697
  }
27698
27698
  }
27699
- return I.array.length > 0 && ve.setAttribute("position", new pt(I.array, I.stride)), ne.array.length > 0 && ve.setAttribute("normal", new pt(ne.array, ne.stride)), Pe.array.length > 0 && ve.setAttribute("color", new pt(Pe.array, Pe.stride)), ue.array.length > 0 && ve.setAttribute("uv", new pt(ue.array, ue.stride)), He.array.length > 0 && ve.setAttribute("uv1", new pt(He.array, He.stride)), Fe.array.length > 0 && ve.setAttribute("skinIndex", new pt(Fe.array, Fe.stride)), Je.array.length > 0 && ve.setAttribute("skinWeight", new pt(Je.array, Je.stride)), w.data = ve, w.type = M[0].type, w.materialKeys = $e, w;
27699
+ return I.array.length > 0 && ve.setAttribute("position", new pt(I.array, I.stride)), ne.array.length > 0 && ve.setAttribute("normal", new pt(ne.array, ne.stride)), Pe.array.length > 0 && ve.setAttribute("color", new pt(Pe.array, Pe.stride)), ue.array.length > 0 && ve.setAttribute("uv", new pt(ue.array, ue.stride)), He.array.length > 0 && ve.setAttribute("uv1", new pt(He.array, He.stride)), Fe.array.length > 0 && ve.setAttribute("skinIndex", new pt(Fe.array, Fe.stride)), Ke.array.length > 0 && ve.setAttribute("skinWeight", new pt(Ke.array, Ke.stride)), w.data = ve, w.type = M[0].type, w.materialKeys = $e, w;
27700
27700
  }
27701
27701
  function ft(M, y, P, w, I = !1) {
27702
27702
  const ne = M.p, ue = M.stride, He = M.vcount;
27703
27703
  function Pe(ve) {
27704
- let $e = ne[ve + P] * Je;
27705
- const je = $e + Je;
27704
+ let $e = ne[ve + P] * Ke;
27705
+ const je = $e + Ke;
27706
27706
  for (; $e < je; $e++)
27707
27707
  w.push(Fe[$e]);
27708
27708
  if (I) {
27709
- const at = w.length - Je - 1;
27709
+ const at = w.length - Ke - 1;
27710
27710
  Xt.setRGB(
27711
27711
  w[at + 0],
27712
27712
  w[at + 1],
@@ -27715,7 +27715,7 @@ class T_ extends jn {
27715
27715
  ), w[at + 0] = Xt.r, w[at + 1] = Xt.g, w[at + 2] = Xt.b;
27716
27716
  }
27717
27717
  }
27718
- const Fe = y.array, Je = y.stride;
27718
+ const Fe = y.array, Ke = y.stride;
27719
27719
  if (M.vcount !== void 0) {
27720
27720
  let ve = 0;
27721
27721
  for (let $e = 0, je = He.length; $e < je; $e++) {
@@ -27967,17 +27967,17 @@ class T_ extends jn {
27967
27967
  const M = Object.keys(dt.kinematicsModels)[0], y = Object.keys(dt.kinematicsScenes)[0], P = Object.keys(dt.visualScenes)[0];
27968
27968
  if (M === void 0 || y === void 0) return;
27969
27969
  const w = jt(M), I = ns(y), ne = bt(P), ue = I.bindJointAxis, He = {};
27970
- for (let Je = 0, ve = ue.length; Je < ve; Je++) {
27971
- const $e = ue[Je], je = zt.querySelector('[sid="' + $e.target + '"]');
27970
+ for (let Ke = 0, ve = ue.length; Ke < ve; Ke++) {
27971
+ const $e = ue[Ke], je = zt.querySelector('[sid="' + $e.target + '"]');
27972
27972
  if (je) {
27973
27973
  const at = je.parentElement;
27974
27974
  Pe($e.jointIndex, at);
27975
27975
  }
27976
27976
  }
27977
- function Pe(Je, ve) {
27978
- const $e = ve.getAttribute("name"), je = w.joints[Je];
27977
+ function Pe(Ke, ve) {
27978
+ const $e = ve.getAttribute("name"), je = w.joints[Ke];
27979
27979
  ne.traverse(function(at) {
27980
- at.name === $e && (He[Je] = {
27980
+ at.name === $e && (He[Ke] = {
27981
27981
  object: at,
27982
27982
  transforms: ss(ve),
27983
27983
  joint: je,
@@ -27988,26 +27988,26 @@ class T_ extends jn {
27988
27988
  const Fe = new lt();
27989
27989
  rs = {
27990
27990
  joints: w && w.joints,
27991
- getJointValue: function(Je) {
27992
- const ve = He[Je];
27991
+ getJointValue: function(Ke) {
27992
+ const ve = He[Ke];
27993
27993
  if (ve)
27994
27994
  return ve.position;
27995
- console.warn("THREE.ColladaLoader: Joint " + Je + " doesn't exist.");
27995
+ console.warn("THREE.ColladaLoader: Joint " + Ke + " doesn't exist.");
27996
27996
  },
27997
- setJointValue: function(Je, ve) {
27998
- const $e = He[Je];
27997
+ setJointValue: function(Ke, ve) {
27998
+ const $e = He[Ke];
27999
27999
  if ($e) {
28000
28000
  const je = $e.joint;
28001
28001
  if (ve > je.limits.max || ve < je.limits.min)
28002
- console.warn("THREE.ColladaLoader: Joint " + Je + " value " + ve + " outside of limits (min: " + je.limits.min + ", max: " + je.limits.max + ").");
28002
+ console.warn("THREE.ColladaLoader: Joint " + Ke + " value " + ve + " outside of limits (min: " + je.limits.min + ", max: " + je.limits.max + ").");
28003
28003
  else if (je.static)
28004
- console.warn("THREE.ColladaLoader: Joint " + Je + " is static.");
28004
+ console.warn("THREE.ColladaLoader: Joint " + Ke + " is static.");
28005
28005
  else {
28006
28006
  const at = $e.object, nt = je.axis, Vt = $e.transforms;
28007
28007
  X.identity();
28008
28008
  for (let Dt = 0; Dt < Vt.length; Dt++) {
28009
28009
  const At = Vt[Dt];
28010
- if (At.sid && At.sid.indexOf(Je) !== -1)
28010
+ if (At.sid && At.sid.indexOf(Ke) !== -1)
28011
28011
  switch (je.type) {
28012
28012
  case "revolute":
28013
28013
  X.multiply(Fe.makeRotationAxis(nt, Ts.degToRad(ve)));
@@ -28035,10 +28035,10 @@ class T_ extends jn {
28035
28035
  break;
28036
28036
  }
28037
28037
  }
28038
- at.matrix.copy(X), at.matrix.decompose(at.position, at.quaternion, at.scale), He[Je].position = ve;
28038
+ at.matrix.copy(X), at.matrix.decompose(at.position, at.quaternion, at.scale), He[Ke].position = ve;
28039
28039
  }
28040
28040
  } else
28041
- console.log("THREE.ColladaLoader: " + Je + " does not exist.");
28041
+ console.log("THREE.ColladaLoader: " + Ke + " does not exist.");
28042
28042
  }
28043
28043
  };
28044
28044
  }
@@ -28146,7 +28146,7 @@ class T_ extends jn {
28146
28146
  console.log(w);
28147
28147
  }
28148
28148
  }
28149
- return Ze(y.id) ? console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.", y.id) : dt.nodes[y.id] = y, y;
28149
+ return Qe(y.id) ? console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.", y.id) : dt.nodes[y.id] = y, y;
28150
28150
  }
28151
28151
  function j(M) {
28152
28152
  const y = {
@@ -28176,9 +28176,9 @@ class T_ extends jn {
28176
28176
  let I, ne, ue;
28177
28177
  for (I = 0; I < M.length; I++) {
28178
28178
  const Fe = M[I];
28179
- let Je;
28180
- if (Ze(Fe))
28181
- Je = mt(Fe), Ne(Je, y, P);
28179
+ let Ke;
28180
+ if (Qe(Fe))
28181
+ Ke = mt(Fe), Ne(Ke, y, P);
28182
28182
  else if (kt(Fe)) {
28183
28183
  const $e = dt.visualScenes[Fe].children;
28184
28184
  for (let je = 0; je < $e.length; je++) {
@@ -28202,7 +28202,7 @@ class T_ extends jn {
28202
28202
  const He = [], Pe = [];
28203
28203
  for (I = 0; I < w.length; I++)
28204
28204
  ue = w[I], He.push(ue.bone), Pe.push(ue.boneInverse);
28205
- return new tc(He, Pe);
28205
+ return new nc(He, Pe);
28206
28206
  }
28207
28207
  function Ne(M, y, P) {
28208
28208
  M.traverse(function(w) {
@@ -28245,15 +28245,15 @@ class T_ extends jn {
28245
28245
  }
28246
28246
  for (let ve = 0, $e = Fe.length; ve < $e; ve++)
28247
28247
  y.push(mt(Fe[ve]).clone());
28248
- let Je;
28248
+ let Ke;
28249
28249
  if (w.length === 0 && y.length === 1)
28250
- Je = y[0];
28250
+ Ke = y[0];
28251
28251
  else {
28252
- Je = I === "JOINT" ? new ad() : new ei();
28252
+ Ke = I === "JOINT" ? new od() : new ei();
28253
28253
  for (let ve = 0; ve < y.length; ve++)
28254
- Je.add(y[ve]);
28254
+ Ke.add(y[ve]);
28255
28255
  }
28256
- return Je.name = I === "JOINT" ? M.sid : M.name, Je.matrix.copy(P), Je.matrix.decompose(Je.position, Je.quaternion, Je.scale), Je;
28256
+ return Ke.name = I === "JOINT" ? M.sid : M.name, Ke.matrix.copy(P), Ke.matrix.decompose(Ke.position, Ke.quaternion, Ke.scale), Ke;
28257
28257
  }
28258
28258
  const Ve = new Di({
28259
28259
  name: jn.DEFAULT_MATERIAL_NAME,
@@ -28272,7 +28272,7 @@ class T_ extends jn {
28272
28272
  for (const w in M) {
28273
28273
  const I = M[w], ne = ht(I.materialKeys, y);
28274
28274
  if (ne.length === 0 && (w === "lines" || w === "linestrips" ? ne.push(new Pi()) : ne.push(new Ln())), w === "lines" || w === "linestrips")
28275
- for (let Fe = 0, Je = ne.length; Fe < Je; Fe++) {
28275
+ for (let Fe = 0, Ke = ne.length; Fe < Ke; Fe++) {
28276
28276
  const ve = ne[Fe];
28277
28277
  if (ve.isMeshPhongMaterial === !0 || ve.isMeshLambertMaterial === !0) {
28278
28278
  const $e = new Pi();
@@ -28286,7 +28286,7 @@ class T_ extends jn {
28286
28286
  Pe = new Pa(I.data, He);
28287
28287
  break;
28288
28288
  case "linestrips":
28289
- Pe = new ic(I.data, He);
28289
+ Pe = new sc(I.data, He);
28290
28290
  break;
28291
28291
  case "triangles":
28292
28292
  case "polylist":
@@ -28297,7 +28297,7 @@ class T_ extends jn {
28297
28297
  }
28298
28298
  return P;
28299
28299
  }
28300
- function Ze(M) {
28300
+ function Qe(M) {
28301
28301
  return dt.nodes[M] !== void 0;
28302
28302
  }
28303
28303
  function mt(M) {
@@ -28344,7 +28344,7 @@ class T_ extends jn {
28344
28344
  for (let I = 0, ne = w.length; I < ne; I++)
28345
28345
  y.push(w[I]);
28346
28346
  }
28347
- $t.push(new bh("default", -1, y));
28347
+ $t.push(new Sh("default", -1, y));
28348
28348
  }
28349
28349
  } else
28350
28350
  for (const y in M)
@@ -28361,7 +28361,7 @@ class T_ extends jn {
28361
28361
  return y.trim();
28362
28362
  }
28363
28363
  if (e.length === 0)
28364
- return { scene: new id() };
28364
+ return { scene: new sd() };
28365
28365
  const Mn = new DOMParser().parseFromString(e, "application/xml"), zt = n(Mn, "COLLADA")[0], rn = Mn.getElementsByTagName("parsererror")[0];
28366
28366
  if (rn !== void 0) {
28367
28367
  const M = n(rn, "div")[0];
@@ -28371,10 +28371,10 @@ class T_ extends jn {
28371
28371
  }
28372
28372
  const Ui = zt.getAttribute("version");
28373
28373
  console.debug("THREE.ColladaLoader: File version", Ui);
28374
- const Ft = h(n(zt, "asset")[0]), gn = new oc(this.manager);
28374
+ const Ft = h(n(zt, "asset")[0]), gn = new lc(this.manager);
28375
28375
  gn.setPath(this.resourcePath || t).setCrossOrigin(this.crossOrigin);
28376
28376
  let un;
28377
- yu && (un = new yu(this.manager), un.setPath(this.resourcePath || t));
28377
+ xu && (un = new xu(this.manager), un.setPath(this.resourcePath || t));
28378
28378
  const Xt = new rt(), $t = [];
28379
28379
  let rs = {}, si = 0;
28380
28380
  const dt = {
@@ -28405,7 +28405,7 @@ class T_ extends jn {
28405
28405
  };
28406
28406
  }
28407
28407
  }
28408
- const xu = new F(), C_ = new wn(), la = new lt(), Ti = new lt(), ca = new Bn(), ha = new F(1, 1, 1), ua = new F();
28408
+ const Mu = new F(), C_ = new wn(), la = new lt(), Ti = new lt(), ca = new Bn(), ha = new F(1, 1, 1), ua = new F();
28409
28409
  class Xa extends Nt {
28410
28410
  constructor(...e) {
28411
28411
  super(...e), this.urdfNode = null, this.urdfName = "";
@@ -28424,12 +28424,12 @@ class L_ extends Xa {
28424
28424
  super(...e), this.isURDFVisual = !0, this.type = "URDFVisual";
28425
28425
  }
28426
28426
  }
28427
- class Ed extends Xa {
28427
+ class Ad extends Xa {
28428
28428
  constructor(...e) {
28429
28429
  super(...e), this.isURDFLink = !0, this.type = "URDFLink";
28430
28430
  }
28431
28431
  }
28432
- class Ad extends Xa {
28432
+ class wd extends Xa {
28433
28433
  get jointType() {
28434
28434
  return this._jointType;
28435
28435
  }
@@ -28482,7 +28482,7 @@ class Ad extends Xa {
28482
28482
  }
28483
28483
  case "prismatic": {
28484
28484
  let n = e[0];
28485
- return n == null || n === this.jointValue[0] ? t : (this.ignoreLimits || (n = Math.min(this.limit.upper, n), n = Math.max(this.limit.lower, n)), this.position.copy(this.origPosition), xu.copy(this.axis).applyEuler(this.rotation), this.position.addScaledVector(xu, n), this.jointValue[0] !== n ? (this.jointValue[0] = n, this.matrixWorldNeedsUpdate = !0, !0) : t);
28485
+ return n == null || n === this.jointValue[0] ? t : (this.ignoreLimits || (n = Math.min(this.limit.upper, n), n = Math.max(this.limit.lower, n)), this.position.copy(this.origPosition), Mu.copy(this.axis).applyEuler(this.rotation), this.position.addScaledVector(Mu, n), this.jointValue[0] !== n ? (this.jointValue[0] = n, this.matrixWorldNeedsUpdate = !0, !0) : t);
28486
28486
  }
28487
28487
  case "floating":
28488
28488
  return this.jointValue.every((n, i) => e[i] === n || e[i] === null) ? t : (this.jointValue[0] = e[0] !== null ? e[0] : this.jointValue[0], this.jointValue[1] = e[1] !== null ? e[1] : this.jointValue[1], this.jointValue[2] = e[2] !== null ? e[2] : this.jointValue[2], this.jointValue[3] = e[3] !== null ? e[3] : this.jointValue[3], this.jointValue[4] = e[4] !== null ? e[4] : this.jointValue[4], this.jointValue[5] = e[5] !== null ? e[5] : this.jointValue[5], Ti.compose(this.origPosition, this.origQuaternion, ha), ca.setFromEuler(
@@ -28499,7 +28499,7 @@ class Ad extends Xa {
28499
28499
  return t;
28500
28500
  }
28501
28501
  }
28502
- class Mu extends Ad {
28502
+ class bu extends wd {
28503
28503
  constructor(...e) {
28504
28504
  super(...e), this.type = "URDFMimicJoint", this.mimicJoint = null, this.offset = 0, this.multiplier = 1;
28505
28505
  }
@@ -28512,7 +28512,7 @@ class Mu extends Ad {
28512
28512
  return super.copy(e, t), this.mimicJoint = e.mimicJoint, this.offset = e.offset, this.multiplier = e.multiplier, this;
28513
28513
  }
28514
28514
  }
28515
- class P_ extends Ed {
28515
+ class P_ extends Ad {
28516
28516
  constructor(...e) {
28517
28517
  super(...e), this.isURDFRobot = !0, this.urdfNode = null, this.urdfRobotNode = null, this.robotName = null, this.links = null, this.joints = null, this.colliders = null, this.visual = null, this.frames = null;
28518
28518
  }
@@ -28545,16 +28545,16 @@ class P_ extends Ed {
28545
28545
  return t;
28546
28546
  }
28547
28547
  }
28548
- const Ho = new Bn(), bu = new wn();
28548
+ const Ho = new Bn(), Su = new wn();
28549
28549
  function ws(s) {
28550
28550
  return s ? s.trim().split(/\s+/g).map((e) => parseFloat(e)) : [0, 0, 0];
28551
28551
  }
28552
- function Su(s, e, t = !1) {
28553
- t || s.rotation.set(0, 0, 0), bu.set(e[0], e[1], e[2], "ZYX"), Ho.setFromEuler(bu), Ho.multiply(s.quaternion), s.quaternion.copy(Ho);
28552
+ function Eu(s, e, t = !1) {
28553
+ t || s.rotation.set(0, 0, 0), Su.set(e[0], e[1], e[2], "ZYX"), Ho.setFromEuler(Su), Ho.multiply(s.quaternion), s.quaternion.copy(Ho);
28554
28554
  }
28555
28555
  class D_ {
28556
28556
  constructor(e) {
28557
- this.manager = e || ac, this.loadMeshCb = this.defaultMeshLoader.bind(this), this.parseVisual = !0, this.parseCollision = !1, this.packages = "", this.workingPath = "", this.fetchOptions = {};
28557
+ this.manager = e || oc, this.loadMeshCb = this.defaultMeshLoader.bind(this), this.parseVisual = !0, this.parseCollision = !1, this.packages = "", this.workingPath = "", this.fetchOptions = {};
28558
28558
  }
28559
28559
  /* Public API */
28560
28560
  loadAsync(e) {
@@ -28565,7 +28565,7 @@ class D_ {
28565
28565
  // urdf: The path to the URDF within the package OR absolute
28566
28566
  // onComplete: Callback that is passed the model once loaded
28567
28567
  load(e, t, n, i) {
28568
- const r = this.manager, a = cc.extractUrlBase(e), o = this.manager.resolveURL(e);
28568
+ const r = this.manager, a = hc.extractUrlBase(e), o = this.manager.resolveURL(e);
28569
28569
  r.itemStart(o), fetch(o, this.fetchOptions).then((l) => {
28570
28570
  if (l.ok)
28571
28571
  return n && n(null), l.text();
@@ -28612,7 +28612,7 @@ class D_ {
28612
28612
  }), T.joints = c, T.links = l, T.colliders = b, T.visual = D;
28613
28613
  const x = Object.values(c);
28614
28614
  return x.forEach((R) => {
28615
- R instanceof Mu && c[R.mimicJoint].mimicJoints.push(R);
28615
+ R instanceof bu && c[R.mimicJoint].mimicJoints.push(R);
28616
28616
  }), x.forEach((R) => {
28617
28617
  const B = /* @__PURE__ */ new Set(), V = (W) => {
28618
28618
  if (B.has(W))
@@ -28633,12 +28633,12 @@ class D_ {
28633
28633
  const E = [...S.children], v = S.getAttribute("type");
28634
28634
  let U;
28635
28635
  const C = E.find((B) => B.nodeName.toLowerCase() === "mimic");
28636
- C ? (U = new Mu(), U.mimicJoint = C.getAttribute("joint"), U.multiplier = parseFloat(C.getAttribute("multiplier") || 1), U.offset = parseFloat(C.getAttribute("offset") || 0)) : U = new Ad(), U.urdfNode = S, U.name = S.getAttribute("name"), U.urdfName = U.name, U.jointType = v;
28636
+ C ? (U = new bu(), U.mimicJoint = C.getAttribute("joint"), U.multiplier = parseFloat(C.getAttribute("multiplier") || 1), U.offset = parseFloat(C.getAttribute("offset") || 0)) : U = new wd(), U.urdfNode = S, U.name = S.getAttribute("name"), U.urdfName = U.name, U.jointType = v;
28637
28637
  let T = null, D = null, b = [0, 0, 0], x = [0, 0, 0];
28638
28638
  E.forEach((B) => {
28639
28639
  const V = B.nodeName.toLowerCase();
28640
28640
  V === "origin" ? (b = ws(B.getAttribute("xyz")), x = ws(B.getAttribute("rpy"))) : V === "child" ? D = l[B.getAttribute("link")] : V === "parent" ? T = l[B.getAttribute("link")] : V === "limit" && (U.limit.lower = parseFloat(B.getAttribute("lower") || U.limit.lower), U.limit.upper = parseFloat(B.getAttribute("upper") || U.limit.upper));
28641
- }), T.add(U), U.add(D), Su(U, x), U.position.set(b[0], b[1], b[2]);
28641
+ }), T.add(U), U.add(D), Eu(U, x), U.position.set(b[0], b[1], b[2]);
28642
28642
  const R = E.filter((B) => B.nodeName.toLowerCase() === "axis")[0];
28643
28643
  if (R) {
28644
28644
  const B = R.getAttribute("xyz").split(/\s+/g).map((V) => parseFloat(V));
@@ -28647,7 +28647,7 @@ class D_ {
28647
28647
  return U;
28648
28648
  }
28649
28649
  function _(S, E, v, U = null) {
28650
- U === null && (U = new Ed());
28650
+ U === null && (U = new Ad());
28651
28651
  const C = [...S.children];
28652
28652
  return U.name = S.getAttribute("name"), U.urdfName = U.name, U.urdfNode = S, r && C.filter((D) => D.nodeName.toLowerCase() === "visual").forEach((D) => {
28653
28653
  const b = p(D, h);
@@ -28673,7 +28673,7 @@ class D_ {
28673
28673
  } else if (C === "texture") {
28674
28674
  const T = U.getAttribute("filename");
28675
28675
  if (T) {
28676
- const D = new oc(o), b = u(T);
28676
+ const D = new lc(o), b = u(T);
28677
28677
  v.map = D.load(b), v.map.colorSpace = Ct;
28678
28678
  }
28679
28679
  }
@@ -28717,13 +28717,13 @@ class D_ {
28717
28717
  B.scale.set(V, V, V), D.add(B);
28718
28718
  } else if (R === "cylinder") {
28719
28719
  const B = new Rt();
28720
- B.geometry = new sc(1, 1, 1, 30), B.material = C;
28720
+ B.geometry = new rc(1, 1, 1, 30), B.material = C;
28721
28721
  const V = parseFloat(b.children[0].getAttribute("radius")) || 0, W = parseFloat(b.children[0].getAttribute("length")) || 0;
28722
28722
  B.scale.set(V, W, V), B.rotation.set(Math.PI / 2, 0, 0), D.add(B);
28723
28723
  }
28724
28724
  } else if (x === "origin") {
28725
28725
  const R = ws(b.getAttribute("xyz")), B = ws(b.getAttribute("rpy"));
28726
- D.position.set(R[0], R[1], R[2]), D.rotation.set(0, 0, 0), Su(D, B);
28726
+ D.position.set(R[0], R[1], R[2]), D.rotation.set(0, 0, 0), Eu(D, B);
28727
28727
  }
28728
28728
  }), D;
28729
28729
  }
@@ -28738,7 +28738,7 @@ class D_ {
28738
28738
  No loader available`);
28739
28739
  }
28740
28740
  }
28741
- const I_ = Nu(Rs), { systemPath: Eu } = Cs(I_), da = St();
28741
+ const I_ = Nu(Rs), { systemPath: Au } = Cs(I_), da = St();
28742
28742
  function Av(s, e, t, n, i) {
28743
28743
  const r = async (d) => {
28744
28744
  try {
@@ -28849,8 +28849,8 @@ function Av(s, e, t, n, i) {
28849
28849
  x: parseFloat(O[1]),
28850
28850
  y: parseFloat(O[2]),
28851
28851
  z: parseFloat(O[3])
28852
- })), et = new Bt(), Ke = ze.flatMap((O) => [O.x, O.y, O.z]);
28853
- if (et.setAttribute("position", new pt(Ke, 3)), p === ".txt") {
28852
+ })), et = new Bt(), Ze = ze.flatMap((O) => [O.x, O.y, O.z]);
28853
+ if (et.setAttribute("position", new pt(Ze, 3)), p === ".txt") {
28854
28854
  const O = new Yi({
28855
28855
  color: "#5B5C99",
28856
28856
  size: 1,
@@ -28862,15 +28862,15 @@ function Av(s, e, t, n, i) {
28862
28862
  color: "#5B5C99",
28863
28863
  linewidth: 100
28864
28864
  });
28865
- g = new ic(et, O);
28865
+ g = new sc(et, O);
28866
28866
  }
28867
28867
  } else if (p === ".obj") {
28868
28868
  const me = new ko();
28869
28869
  if (m && m.length > 0) {
28870
28870
  const Ee = new Vo();
28871
28871
  for (const ze of m) {
28872
- const et = await ze.text(), Ke = Ee.parse(et);
28873
- Ke.preload(), me.setMaterials(Ke);
28872
+ const et = await ze.text(), Ze = Ee.parse(et);
28873
+ Ze.preload(), me.setMaterials(Ze);
28874
28874
  break;
28875
28875
  }
28876
28876
  }
@@ -28903,12 +28903,12 @@ function Av(s, e, t, n, i) {
28903
28903
  "Mach_Spindle_0.STL": "rgb(145,145,145)"
28904
28904
  }, b = new ei(), x = T.map((me) => new Promise((Ee, ze) => {
28905
28905
  new ba().load(
28906
- Eu.value === "" ? `/model/${me}` : `${Eu.value}\\${me}`,
28907
- (Ke) => {
28906
+ Au.value === "" ? `/model/${me}` : `${Au.value}\\${me}`,
28907
+ (Ze) => {
28908
28908
  const O = new Ln({
28909
28909
  color: D[me] || "#B3B3D4",
28910
28910
  side: yn
28911
- }), Mt = new Rt(Ke, O);
28911
+ }), Mt = new Rt(Ze, O);
28912
28912
  Ee(Mt);
28913
28913
  },
28914
28914
  void 0,
@@ -28941,7 +28941,7 @@ function Av(s, e, t, n, i) {
28941
28941
  }
28942
28942
  }), et = new Blob([ze.data], {
28943
28943
  type: "application/octet-stream;charset=UTF-8"
28944
- }), Ke = await new Promise((Mt, $) => {
28944
+ }), Ze = await new Promise((Mt, $) => {
28945
28945
  const de = URL.createObjectURL(Ee);
28946
28946
  R.load(
28947
28947
  de,
@@ -28968,7 +28968,7 @@ function Av(s, e, t, n, i) {
28968
28968
  $
28969
28969
  );
28970
28970
  });
28971
- B.add(Ke), B.add(O), g = B;
28971
+ B.add(Ze), B.add(O), g = B;
28972
28972
  } catch (me) {
28973
28973
  throw console.error("PCD文件加载失败:", me), new Error("无法加载PCD文件");
28974
28974
  }
@@ -29030,35 +29030,35 @@ function Av(s, e, t, n, i) {
29030
29030
  const $ = he.get(et);
29031
29031
  return new Rt($, oe());
29032
29032
  }
29033
- const Ke = await me.arrayBuffer();
29034
- let Mt = new ba(ze).parse(Ke);
29033
+ const Ze = await me.arrayBuffer();
29034
+ let Mt = new ba(ze).parse(Ze);
29035
29035
  return Mt = Re(Mt), he.set(et, Mt), new Rt(Mt, oe());
29036
29036
  }, Y = async (me, Ee, ze) => {
29037
29037
  const et = `obj_${Ee}`;
29038
29038
  if (Z.has(et))
29039
29039
  return Z.get(et).clone();
29040
- const Ke = await me.text(), O = new ko(ze), Mt = Ee.replace(".obj", ".mtl");
29040
+ const Ze = await me.text(), O = new ko(ze), Mt = Ee.replace(".obj", ".mtl");
29041
29041
  try {
29042
29042
  const ee = await (await _e(Mt)).text(), ce = new Vo(ze).parse(ee);
29043
29043
  ce.preload(), O.setMaterials(ce);
29044
29044
  } catch {
29045
29045
  console.warn(`MTL文件加载失败,使用默认材质: ${Mt}`);
29046
29046
  }
29047
- const $ = O.parse(Ke);
29047
+ const $ = O.parse(Ze);
29048
29048
  return $.traverse((de) => {
29049
29049
  de.isMesh && (de.geometry = Re(de.geometry), de.castShadow = !0, de.receiveShadow = !0, de.renderOrder = 1);
29050
29050
  }), Z.set(et, $), $;
29051
29051
  }, ie = (me, Ee) => {
29052
29052
  const ze = new p0();
29053
29053
  if (ze.addLevel(me, 0), me.geometry) {
29054
- const et = me.geometry.clone(), Ke = new Rt(et, me.material);
29055
- ze.addLevel(Ke, 50);
29054
+ const et = me.geometry.clone(), Ze = new Rt(et, me.material);
29055
+ ze.addLevel(Ze, 50);
29056
29056
  }
29057
29057
  return ze;
29058
29058
  };
29059
29059
  let re = 0, ae = 0;
29060
29060
  const be = [];
29061
- W.loadMeshCb = async (me, Ee, ze, et, Ke) => {
29061
+ W.loadMeshCb = async (me, Ee, ze, et, Ze) => {
29062
29062
  const O = me.split("/").pop(), Mt = ze || (() => {
29063
29063
  });
29064
29064
  re++;
@@ -29182,7 +29182,7 @@ window._iconfont_svg_string_4634042 = '<svg><symbol id="icon-lookAround" viewBox
29182
29182
  c();
29183
29183
  }
29184
29184
  })(window);
29185
- const U_ = Vl("formToTableComp", {
29185
+ const U_ = Hl("formToTableComp", {
29186
29186
  state: () => ({
29187
29187
  selectArray: [],
29188
29188
  selectString: ""
@@ -29195,11 +29195,11 @@ const U_ = Vl("formToTableComp", {
29195
29195
  this.selectString = s;
29196
29196
  }
29197
29197
  }
29198
- }), N_ = { class: "calculator-content" }, F_ = { class: "calculator-child" }, O_ = { class: "calculator-child" }, z_ = /* @__PURE__ */ Id({
29198
+ }), N_ = { class: "calculator-content" }, F_ = { class: "calculator-child" }, O_ = { class: "calculator-child" }, z_ = /* @__PURE__ */ Ud({
29199
29199
  __name: "calculator",
29200
29200
  setup(s) {
29201
29201
  const e = St(), t = St();
29202
- return kl(() => {
29202
+ return Vl(() => {
29203
29203
  e.value = [
29204
29204
  {
29205
29205
  type: "Upload",
@@ -29229,7 +29229,7 @@ const U_ = Vl("formToTableComp", {
29229
29229
  ])
29230
29230
  ]));
29231
29231
  }
29232
- }), B_ = /* @__PURE__ */ Hl(z_, [["__scopeId", "data-v-73db0fe7"]]), k_ = Vl("unit", {
29232
+ }), B_ = /* @__PURE__ */ Gl(z_, [["__scopeId", "data-v-73db0fe7"]]), k_ = Hl("unit", {
29233
29233
  state: () => ({
29234
29234
  selectIndex: "",
29235
29235
  selectMenu: "",
@@ -29246,25 +29246,25 @@ const U_ = Vl("formToTableComp", {
29246
29246
  this.selectTitle = s;
29247
29247
  }
29248
29248
  }
29249
- }), wd = (s, e) => {
29249
+ }), Td = (s, e) => {
29250
29250
  let t = s, n = e;
29251
29251
  return Array.isArray(t) && (t = t == null ? void 0 : t.map((i, r) => {
29252
29252
  if (Array.isArray(i)) {
29253
29253
  let a = {};
29254
29254
  return i = i == null ? void 0 : i.forEach((o, l) => {
29255
29255
  var c;
29256
- (c = n == null ? void 0 : n[l]) != null && c.prop ? a[n[l].prop] = o : Array.isArray(o) && (a.children = wd(o, n));
29256
+ (c = n == null ? void 0 : n[l]) != null && c.prop ? a[n[l].prop] = o : Array.isArray(o) && (a.children = Td(o, n));
29257
29257
  }), Object.assign(a, { id: r });
29258
29258
  } else
29259
29259
  return i;
29260
29260
  })), t;
29261
- }, Td = (s, e, t) => {
29261
+ }, Cd = (s, e, t) => {
29262
29262
  let n = s, i = e;
29263
29263
  return n = n == null ? void 0 : n.map((r, a) => {
29264
29264
  var o, l;
29265
29265
  return !Array.isArray(r) || !((o = i == null ? void 0 : i[a]) != null && o.label) && !t || (r.unshift(((l = i == null ? void 0 : i[a]) == null ? void 0 : l.label) ?? ""), r.some((c) => Array.isArray(c)) && (r = r == null ? void 0 : r.map((c) => {
29266
29266
  var h;
29267
- return Array.isArray(c) && (c = Td(c, (h = i == null ? void 0 : i[a]) == null ? void 0 : h.children, t)), c;
29267
+ return Array.isArray(c) && (c = Cd(c, (h = i == null ? void 0 : i[a]) == null ? void 0 : h.children, t)), c;
29268
29268
  }))), r;
29269
29269
  }), n;
29270
29270
  }, V_ = (s, e, t) => {
@@ -29276,11 +29276,11 @@ const U_ = Vl("formToTableComp", {
29276
29276
  }
29277
29277
  }, H_ = (s, e, t) => {
29278
29278
  let n = s, i = e;
29279
- return (i == null ? void 0 : i.length) === 0 ? n = n == null ? void 0 : n.filter((r) => r.id !== t) : n = n == null ? void 0 : n.map((r) => (r.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), r = Cd(r, i, t)), r)), n;
29280
- }, Cd = (s, e, t) => {
29279
+ return (i == null ? void 0 : i.length) === 0 ? n = n == null ? void 0 : n.filter((r) => r.id !== t) : n = n == null ? void 0 : n.map((r) => (r.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), r = Rd(r, i, t)), r)), n;
29280
+ }, Rd = (s, e, t) => {
29281
29281
  var r, a;
29282
29282
  let n = s, i = e;
29283
- return (i == null ? void 0 : i.length) === 0 ? n.children = (r = n.children) == null ? void 0 : r.filter((o) => o.id !== t) : n.children = (a = n.children) == null ? void 0 : a.map((o) => (o.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), o = Cd(o, i, t)), o)), n;
29283
+ return (i == null ? void 0 : i.length) === 0 ? n.children = (r = n.children) == null ? void 0 : r.filter((o) => o.id !== t) : n.children = (a = n.children) == null ? void 0 : a.map((o) => (o.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), o = Rd(o, i, t)), o)), n;
29284
29284
  }, G_ = (s, e, t) => {
29285
29285
  if (e === "")
29286
29286
  return t;
@@ -29290,11 +29290,11 @@ const U_ = Vl("formToTableComp", {
29290
29290
  }
29291
29291
  }, W_ = (s, e, t) => {
29292
29292
  let n = s, i = e;
29293
- return (i == null ? void 0 : i.length) === 0 ? n = t : n = n == null ? void 0 : n.map((r) => (r.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), r = Rd(r, i, t)), r)), n;
29294
- }, Rd = (s, e, t) => {
29293
+ return (i == null ? void 0 : i.length) === 0 ? n = t : n = n == null ? void 0 : n.map((r) => (r.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), r = Ld(r, i, t)), r)), n;
29294
+ }, Ld = (s, e, t) => {
29295
29295
  var r;
29296
29296
  let n = s, i = e;
29297
- return (i == null ? void 0 : i.length) === 0 ? n.children = t : n.children = (r = n.children) == null ? void 0 : r.map((a) => (a.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), a = Rd(a, i, t)), a)), n;
29297
+ return (i == null ? void 0 : i.length) === 0 ? n.children = t : n.children = (r = n.children) == null ? void 0 : r.map((a) => (a.id.toString() === (i == null ? void 0 : i[0]) && (i == null || i.shift(), a = Ld(a, i, t)), a)), n;
29298
29298
  }, Ua = (s, e) => s == null ? void 0 : s.map((n) => {
29299
29299
  var i, r, a, o, l, c;
29300
29300
  if (Array.isArray(n) ? n = n : n = [n], (i = n == null ? void 0 : n.filter((h) => !(h != null && h.id) || typeof (h == null ? void 0 : h.id) == "string")) != null && i.every((h) => typeof h != "object" || h === null))
@@ -29305,12 +29305,12 @@ const U_ = Vl("formToTableComp", {
29305
29305
  let h = [];
29306
29306
  if (h.push(n == null ? void 0 : n.find((u) => (u == null ? void 0 : u.id) && typeof (u == null ? void 0 : u.id) == "number")), Array.isArray(e == null ? void 0 : e[0])) {
29307
29307
  const u = (a = n == null ? void 0 : n.filter((d) => !(d != null && d.id) || typeof (d == null ? void 0 : d.id) == "string")) == null ? void 0 : a[0];
29308
- (o = Ds(Qe(e == null ? void 0 : e[0]))) == null || o.forEach((d) => {
29308
+ (o = Ds(Je(e == null ? void 0 : e[0]))) == null || o.forEach((d) => {
29309
29309
  h.push(u == null ? void 0 : u[(d == null ? void 0 : d.prop) ?? (d == null ? void 0 : d.label) ?? d]);
29310
29310
  });
29311
29311
  } else {
29312
29312
  const u = (l = n == null ? void 0 : n.filter((d) => !(d != null && d.id) || typeof (d == null ? void 0 : d.id) == "string")) == null ? void 0 : l[0];
29313
- (c = Ds(Qe(e))) == null || c.forEach((d) => {
29313
+ (c = Ds(Je(e))) == null || c.forEach((d) => {
29314
29314
  h.push(u == null ? void 0 : u[(d == null ? void 0 : d.prop) ?? (d == null ? void 0 : d.label) ?? d]);
29315
29315
  });
29316
29316
  }
@@ -29322,7 +29322,7 @@ const U_ = Vl("formToTableComp", {
29322
29322
  } catch {
29323
29323
  return !1;
29324
29324
  }
29325
- }, Au = (s, e) => Af(s, e), Gs = (s) => {
29325
+ }, wu = (s, e) => Af(s, e), Gs = (s) => {
29326
29326
  let e = [];
29327
29327
  function t(i) {
29328
29328
  Array.isArray(i) && (i == null || i.forEach((r) => {
@@ -29339,7 +29339,7 @@ const U_ = Vl("formToTableComp", {
29339
29339
  return t(s), e;
29340
29340
  }, X_ = (s, e, t) => {
29341
29341
  var i;
29342
- let n = (i = Qe(s)) == null ? void 0 : i.map((r) => (r = r.filter((a) => !(a != null && a.id)), r));
29342
+ let n = (i = Je(s)) == null ? void 0 : i.map((r) => (r = r.filter((a) => !(a != null && a.id)), r));
29343
29343
  return n = n == null ? void 0 : n.map((r) => {
29344
29344
  var a;
29345
29345
  return r = (a = r.map((o, l) => {
@@ -29350,7 +29350,7 @@ const U_ = Vl("formToTableComp", {
29350
29350
  }), n;
29351
29351
  }, Tv = (s, e) => {
29352
29352
  var a, o;
29353
- const t = Qe(s), n = (a = t == null ? void 0 : t.find((l) => (l == null ? void 0 : l.key) === "header")) == null ? void 0 : a.contents, i = (o = t == null ? void 0 : t.find((l) => (l == null ? void 0 : l.key) === "tableContents")) == null ? void 0 : o.contents;
29353
+ const t = Je(s), n = (a = t == null ? void 0 : t.find((l) => (l == null ? void 0 : l.key) === "header")) == null ? void 0 : a.contents, i = (o = t == null ? void 0 : t.find((l) => (l == null ? void 0 : l.key) === "tableContents")) == null ? void 0 : o.contents;
29354
29354
  return X_(i, Gs(n).slice(0, Gs(n).length - 1), e);
29355
29355
  }, Cv = (s) => {
29356
29356
  let e = {};
@@ -29360,7 +29360,7 @@ const U_ = Vl("formToTableComp", {
29360
29360
  }, Rv = (s) => {
29361
29361
  var t;
29362
29362
  let e = [];
29363
- return (t = Qe(s)) == null || t.forEach((n) => {
29363
+ return (t = Je(s)) == null || t.forEach((n) => {
29364
29364
  let i = {};
29365
29365
  n == null || n.forEach((r) => {
29366
29366
  i[Object.keys(r)[0]] = Object.values(r)[0];
@@ -29381,7 +29381,7 @@ const U_ = Vl("formToTableComp", {
29381
29381
  systemKey: sessionStorage.getItem("systemKey")
29382
29382
  }
29383
29383
  })).data.result) == null ? void 0 : c.map((h) => h == null ? void 0 : h.id);
29384
- r && (r == null ? void 0 : r.length) > 0 && await Bd({
29384
+ r && (r == null ? void 0 : r.length) > 0 && await kd({
29385
29385
  ids: r
29386
29386
  });
29387
29387
  let a = [];
@@ -29406,7 +29406,7 @@ const U_ = Vl("formToTableComp", {
29406
29406
  });
29407
29407
  }, j_ = (s, e) => {
29408
29408
  var r;
29409
- let t = Qe(s), n = !1, i = Object.keys(e);
29409
+ let t = Je(s), n = !1, i = Object.keys(e);
29410
29410
  return (r = t.compData) == null || r.forEach((a) => {
29411
29411
  var o;
29412
29412
  Array.isArray(a == null ? void 0 : a.contents) && ((o = a == null ? void 0 : a.contents) == null || o.forEach((l) => {
@@ -29415,13 +29415,13 @@ const U_ = Vl("formToTableComp", {
29415
29415
  }), n;
29416
29416
  }, Pv = (s, e) => {
29417
29417
  var i;
29418
- let t = Qe(s);
29419
- return j_(Qe(t), e) && (t.compData = (i = t.compData) == null ? void 0 : i.map((r) => {
29418
+ let t = Je(s);
29419
+ return j_(Je(t), e) && (t.compData = (i = t.compData) == null ? void 0 : i.map((r) => {
29420
29420
  var a;
29421
29421
  return (r == null ? void 0 : r.key) === "formContent" && (r.contents = (a = r == null ? void 0 : r.contents) == null ? void 0 : a.map((o) => (Object.keys(e).includes(o.key) && (o.value = e[o.key]), o))), r;
29422
29422
  })), t;
29423
29423
  }, Dv = (s) => {
29424
- let e = Qe(s);
29424
+ let e = Je(s);
29425
29425
  return e == null || e.forEach((t) => {
29426
29426
  let n = {};
29427
29427
  for (let i in t)
@@ -29457,13 +29457,32 @@ const U_ = Vl("formToTableComp", {
29457
29457
  return (t == null ? void 0 : t.comp) === "Form" ? n = await Y_(t) : (t == null ? void 0 : t.comp) === "Table" && (n = await q_((i = t == null ? void 0 : t.compData) == null ? void 0 : i.find((o) => (o == null ? void 0 : o.key) === "tableContents"), (a = (r = t == null ? void 0 : t.compData) == null ? void 0 : r.find((o) => (o == null ? void 0 : o.key) === "header")) == null ? void 0 : a.contents)), n;
29458
29458
  });
29459
29459
  await Promise.all(e);
29460
- }, Nv = (s) => {
29460
+ }, Nv = async (s) => {
29461
+ var t, n, i, r;
29462
+ let e = "";
29463
+ if ((n = (t = Je(s)) == null ? void 0 : t.split("/")) == null || n.forEach((a, o) => {
29464
+ var l, c;
29465
+ o !== ((c = (l = Je(s)) == null ? void 0 : l.split("/")) == null ? void 0 : c.length) - 1 && (e = e === "" ? e + a : e + "/" + a);
29466
+ }), e !== "") {
29467
+ let a = "";
29468
+ const o = await kl(e, sessionStorage.getItem("systemKey"), "");
29469
+ (r = (i = o == null ? void 0 : o[0]) == null ? void 0 : i.compData) == null || r.forEach((l) => {
29470
+ var c;
29471
+ (l == null ? void 0 : l.key) === "tableContents" && ((c = l == null ? void 0 : l.contents) == null || c.forEach((h, u) => {
29472
+ if (u === 0) {
29473
+ let d = h == null ? void 0 : h.filter((f) => !(f != null && f.id));
29474
+ a = e + "/" + (d == null ? void 0 : d[0]);
29475
+ }
29476
+ }));
29477
+ }), await Fu(a, s);
29478
+ }
29479
+ }, Fv = (s) => {
29461
29480
  var i, r, a, o;
29462
29481
  const e = s;
29463
29482
  let t = [];
29464
29483
  e.compData = (i = e.compData) == null ? void 0 : i.filter((l) => (l == null ? void 0 : l.key) !== "tableContents" && (l == null ? void 0 : l.key) !== "tableIndex");
29465
- const n = (a = (r = Qe(e.compData)) == null ? void 0 : r.find((l) => (l == null ? void 0 : l.key) === "tableIndexColumn")) == null ? void 0 : a.contents;
29466
- return (o = Qe(e.compData)) == null || o.forEach((l) => {
29484
+ const n = (a = (r = Je(e.compData)) == null ? void 0 : r.find((l) => (l == null ? void 0 : l.key) === "tableIndexColumn")) == null ? void 0 : a.contents;
29485
+ return (o = Je(e.compData)) == null || o.forEach((l) => {
29467
29486
  if ((l == null ? void 0 : l.key) !== "tableIndexColumn" && (l == null ? void 0 : l.key) !== "header")
29468
29487
  t.push(l);
29469
29488
  else if ((l == null ? void 0 : l.key) === "header") {
@@ -29474,7 +29493,7 @@ const U_ = Vl("formToTableComp", {
29474
29493
  });
29475
29494
  }
29476
29495
  }), e.compData = t, e;
29477
- }, Fv = (s) => {
29496
+ }, Ov = (s) => {
29478
29497
  var r, a, o, l, c;
29479
29498
  const e = (r = s.compData) == null ? void 0 : r.filter((h) => (h == null ? void 0 : h.key) === "tableContents" || (h == null ? void 0 : h.key) === "tableIndex"), t = (o = (a = e == null ? void 0 : e.find((h) => (h == null ? void 0 : h.key) === "tableIndex")) == null ? void 0 : a.contents) == null ? void 0 : o.map((h) => h.label), n = (l = e == null ? void 0 : e.find((h) => (h == null ? void 0 : h.key) === "tableContents")) == null ? void 0 : l.contents;
29480
29499
  let i = [];
@@ -29520,16 +29539,16 @@ const U_ = Vl("formToTableComp", {
29520
29539
  function n(i, r, a = 1) {
29521
29540
  var l;
29522
29541
  if (!i || i.length === 0) return;
29523
- const o = (l = Qe(r)) == null ? void 0 : l.map((c) => c == null ? void 0 : c.filter((h) => !Array.isArray(h)));
29524
- return o != null && o.find((c) => Au(c, i == null ? void 0 : i.key)) ? (r == null || r.forEach((c) => {
29525
- !n(i, c.find((u) => Array.isArray(u))) && Au(c.filter((u) => !Array.isArray(u)), i == null ? void 0 : i.key) && (t = {
29542
+ const o = (l = Je(r)) == null ? void 0 : l.map((c) => c == null ? void 0 : c.filter((h) => !Array.isArray(h)));
29543
+ return o != null && o.find((c) => wu(c, i == null ? void 0 : i.key)) ? (r == null || r.forEach((c) => {
29544
+ !n(i, c.find((u) => Array.isArray(u))) && wu(c.filter((u) => !Array.isArray(u)), i == null ? void 0 : i.key) && (t = {
29526
29545
  type: a,
29527
29546
  contents: c.filter((u) => !Array.isArray(u))
29528
29547
  });
29529
29548
  }), !0) : !1;
29530
29549
  }
29531
29550
  return n(s, e, 0), t;
29532
- }, wu = (s, e) => {
29551
+ }, Tu = (s, e) => {
29533
29552
  function t(n, i) {
29534
29553
  return !n || n.length === 0 || n == null ? void 0 : n.map((a, o) => {
29535
29554
  var c, h;
@@ -29538,7 +29557,7 @@ const U_ = Vl("formToTableComp", {
29538
29557
  });
29539
29558
  }
29540
29559
  return t(s, e);
29541
- }, Ov = (s) => {
29560
+ }, zv = (s) => {
29542
29561
  var t, n, i, r, a, o, l, c, h, u, d, f, m, _, g, p, S, E, v, U, C, T, D, b, x;
29543
29562
  const e = s;
29544
29563
  if ((s == null ? void 0 : s.comp) === "Table") {
@@ -29549,7 +29568,7 @@ const U_ = Vl("formToTableComp", {
29549
29568
  }), [e]) : [e];
29550
29569
  {
29551
29570
  let R = [];
29552
- const B = e.compData, V = (m = Qe(B)) == null ? void 0 : m.find((oe) => (oe == null ? void 0 : oe.key) === "tableIndexColumn"), W = (_ = Qe(B)) == null ? void 0 : _.find((oe) => (oe == null ? void 0 : oe.key) === "extraButton"), Q = (g = Qe(B)) == null ? void 0 : g.find((oe) => (oe == null ? void 0 : oe.key) === "rowButton"), k = Z_((S = (p = Qe(B)) == null ? void 0 : p.find((oe) => (oe == null ? void 0 : oe.key) === "header")) == null ? void 0 : S.contents), Z = (E = Qe(B)) == null ? void 0 : E.find((oe) => (oe == null ? void 0 : oe.key) === "tableIndex"), q = K_((U = (v = Qe(B)) == null ? void 0 : v.find((oe) => (oe == null ? void 0 : oe.key) === "tableContents")) == null ? void 0 : U.contents), he = wu((T = (C = Qe(B)) == null ? void 0 : C.find((oe) => (oe == null ? void 0 : oe.key) === "tableContents")) == null ? void 0 : T.contents, Z == null ? void 0 : Z.contents), _e = J_(wu((b = (D = Qe(B)) == null ? void 0 : D.find((oe) => (oe == null ? void 0 : oe.key) === "tableContents")) == null ? void 0 : b.contents, Z == null ? void 0 : Z.contents));
29571
+ const B = e.compData, V = (m = Je(B)) == null ? void 0 : m.find((oe) => (oe == null ? void 0 : oe.key) === "tableIndexColumn"), W = (_ = Je(B)) == null ? void 0 : _.find((oe) => (oe == null ? void 0 : oe.key) === "extraButton"), Q = (g = Je(B)) == null ? void 0 : g.find((oe) => (oe == null ? void 0 : oe.key) === "rowButton"), k = Z_((S = (p = Je(B)) == null ? void 0 : p.find((oe) => (oe == null ? void 0 : oe.key) === "header")) == null ? void 0 : S.contents), Z = (E = Je(B)) == null ? void 0 : E.find((oe) => (oe == null ? void 0 : oe.key) === "tableIndex"), q = K_((U = (v = Je(B)) == null ? void 0 : v.find((oe) => (oe == null ? void 0 : oe.key) === "tableContents")) == null ? void 0 : U.contents), he = Tu((T = (C = Je(B)) == null ? void 0 : C.find((oe) => (oe == null ? void 0 : oe.key) === "tableContents")) == null ? void 0 : T.contents, Z == null ? void 0 : Z.contents), _e = J_(Tu((b = (D = Je(B)) == null ? void 0 : D.find((oe) => (oe == null ? void 0 : oe.key) === "tableContents")) == null ? void 0 : b.contents, Z == null ? void 0 : Z.contents));
29553
29572
  if (Z)
29554
29573
  return (x = $_(Z.contents)) == null || x.forEach((oe, Re) => {
29555
29574
  var Y;
@@ -29580,15 +29599,15 @@ const U_ = Vl("formToTableComp", {
29580
29599
  }) : [s].forEach((n, i) => {
29581
29600
  t[e[i]] = n;
29582
29601
  }), t;
29583
- }, zv = (s) => {
29602
+ }, Bv = (s) => {
29584
29603
  var t, n;
29585
29604
  let e = "";
29586
- return (n = (t = Qe(s)) == null ? void 0 : t.split("/")) == null || n.forEach((i, r) => {
29605
+ return (n = (t = Je(s)) == null ? void 0 : t.split("/")) == null || n.forEach((i, r) => {
29587
29606
  var a, o;
29588
- r < ((o = (a = Qe(s)) == null ? void 0 : a.split("/")) == null ? void 0 : o.length) - 1 && (e = e === "" ? e + i : e + "/" + i);
29607
+ r < ((o = (a = Je(s)) == null ? void 0 : a.split("/")) == null ? void 0 : o.length) - 1 && (e = e === "" ? e + i : e + "/" + i);
29589
29608
  }), e;
29590
- }, Bv = async (s) => {
29591
- const e = Qe(s);
29609
+ }, kv = async (s) => {
29610
+ const e = Je(s);
29592
29611
  let t = [], n = [];
29593
29612
  e == null || e.forEach((i) => {
29594
29613
  !(n != null && n.find((r) => (r == null ? void 0 : r.parentKey) === (i == null ? void 0 : i.parentKey))) && (i == null ? void 0 : i.parentKey) !== "" && n.push(i);
@@ -29612,7 +29631,7 @@ const U_ = Vl("formToTableComp", {
29612
29631
  }, Bl = Iu(Rs), { activeMenuPath: ev } = Cs(Bl), tv = async (s, e) => {
29613
29632
  var c, h, u, d, f, m, _, g, p, S, E, v, U, C, T, D;
29614
29633
  const t = (h = (c = s == null ? void 0 : s.find((b) => (b == null ? void 0 : b.key) === "header")) == null ? void 0 : c.contents) == null ? void 0 : h.find((b) => b == null ? void 0 : b.columnPath);
29615
- let n = (d = (u = Qe(t == null ? void 0 : t.columnPath)) == null ? void 0 : u.split("[")) == null ? void 0 : d[0], i = (p = (g = (_ = (m = (f = Qe(t == null ? void 0 : t.columnPath)) == null ? void 0 : f.split("[")) == null ? void 0 : m[1]) == null ? void 0 : _.split("]")) == null ? void 0 : g[0]) == null ? void 0 : p.replaceAll("'", ""), r = [];
29634
+ let n = (d = (u = Je(t == null ? void 0 : t.columnPath)) == null ? void 0 : u.split("[")) == null ? void 0 : d[0], i = (p = (g = (_ = (m = (f = Je(t == null ? void 0 : t.columnPath)) == null ? void 0 : f.split("[")) == null ? void 0 : m[1]) == null ? void 0 : _.split("]")) == null ? void 0 : g[0]) == null ? void 0 : p.replaceAll("'", ""), r = [];
29616
29635
  const a = await zn({
29617
29636
  key: {
29618
29637
  pageKey: n,
@@ -29640,7 +29659,7 @@ const U_ = Vl("formToTableComp", {
29640
29659
  const b = await ((D = (T = a == null ? void 0 : a.data) == null ? void 0 : T.result) == null ? void 0 : D.map(async (x) => {
29641
29660
  var R, B, V, W, Q, k, Z, q, he, _e, oe, Re, Ae, Y, ie;
29642
29661
  if (((B = (R = x == null ? void 0 : x.value) == null ? void 0 : R.pageData) == null ? void 0 : B.name) === i) {
29643
- r = Qe((W = (V = x == null ? void 0 : x.value) == null ? void 0 : V.pageData) == null ? void 0 : W.compData);
29662
+ r = Je((W = (V = x == null ? void 0 : x.value) == null ? void 0 : V.pageData) == null ? void 0 : W.compData);
29644
29663
  const re = await zn({
29645
29664
  key: {
29646
29665
  pageKey: n,
@@ -29649,14 +29668,14 @@ const U_ = Vl("formToTableComp", {
29649
29668
  type: "data"
29650
29669
  }
29651
29670
  }), ae = (k = (Q = re == null ? void 0 : re.data) == null ? void 0 : Q.result) == null ? void 0 : k.map((ze) => {
29652
- var Ke;
29671
+ var Ze;
29653
29672
  let et = [];
29654
29673
  return et.push({
29655
29674
  id: ze == null ? void 0 : ze.id
29656
- }), et.push((Ke = ze == null ? void 0 : ze.value) == null ? void 0 : Ke.tableData), et;
29675
+ }), et.push((Ze = ze == null ? void 0 : ze.value) == null ? void 0 : Ze.tableData), et;
29657
29676
  });
29658
29677
  let be = Ua(l, (_e = (he = (q = (Z = x == null ? void 0 : x.value) == null ? void 0 : Z.pageData) == null ? void 0 : q.compData) == null ? void 0 : he.find((ze) => (ze == null ? void 0 : ze.key) === "header")) == null ? void 0 : _e.contents), me = !1;
29659
- me = ((oe = Qe(be)) == null ? void 0 : oe.map((ze) => ze.slice(1))).every((ze) => ze.every((et) => et === void 0)), me ? r.push({
29678
+ me = ((oe = Je(be)) == null ? void 0 : oe.map((ze) => ze.slice(1))).every((ze) => ze.every((et) => et === void 0)), me ? r.push({
29660
29679
  key: "tableContents",
29661
29680
  contents: Ua(ae, (ie = (Y = (Ae = (Re = x == null ? void 0 : x.value) == null ? void 0 : Re.pageData) == null ? void 0 : Ae.compData) == null ? void 0 : Y.find((ze) => (ze == null ? void 0 : ze.key) === "header")) == null ? void 0 : ie.contents)
29662
29681
  }) : r.push({
@@ -29668,7 +29687,7 @@ const U_ = Vl("formToTableComp", {
29668
29687
  await Promise.all(b);
29669
29688
  }
29670
29689
  return r;
29671
- }, Tu = async (s, e, t = "", n = !1, i) => {
29690
+ }, kl = async (s, e, t = "", n = !1, i) => {
29672
29691
  var f, m, _, g, p, S, E;
29673
29692
  let r;
29674
29693
  r = await zn({
@@ -29711,14 +29730,14 @@ const U_ = Vl("formToTableComp", {
29711
29730
  const d = await ((_ = r.data.result) == null ? void 0 : _.map(async (v) => {
29712
29731
  var D, b, x, R, B, V;
29713
29732
  const U = v.value.pageData, C = v == null ? void 0 : v.id;
29714
- let T = (D = Qe(U.compData)) == null ? void 0 : D.filter((W) => (W == null ? void 0 : W.key) !== "tableContents");
29733
+ let T = (D = Je(U.compData)) == null ? void 0 : D.filter((W) => (W == null ? void 0 : W.key) !== "tableContents");
29715
29734
  if (T && (T != null && T.find((W) => (W == null ? void 0 : W.key) === "header")) && ((x = (b = T == null ? void 0 : T.find((W) => (W == null ? void 0 : W.key) === "header")) == null ? void 0 : b.contents) != null && x.every((W) => !(W != null && W.columnPath))) ? T.push({
29716
29735
  key: "tableContents",
29717
29736
  // contents: getTableContents(currentTableContents?.find((v: any) => v?.key === t.id)?.contents, newCompData?.find((s: any) => s?.key === "header")?.contents)
29718
29737
  // contents: menuPath === '/系统管理/用户管理' ? formatUserPageData(currentTableContents) : getTableContents(currentTableContents?.find((v: any) => v?.key === t.id)?.contents, newCompData?.find((s: any) => s?.key === "header")?.contents)
29719
29738
  // todo 内置权限控制处理
29720
29739
  contents: Ua((R = h == null ? void 0 : h.find((W) => (W == null ? void 0 : W.key) === v.id)) == null ? void 0 : R.contents, (B = T == null ? void 0 : T.find((W) => (W == null ? void 0 : W.key) === "header")) == null ? void 0 : B.contents)
29721
- }) : T && (T != null && T.find((W) => (W == null ? void 0 : W.key) === "header")) && (T = await tv(Qe(T), C)), U.compData = T, U.id = v.id, ((V = v.key) == null ? void 0 : V.type) !== "method")
29740
+ }) : T && (T != null && T.find((W) => (W == null ? void 0 : W.key) === "header")) && (T = await tv(Je(T), C)), U.compData = T, U.id = v.id, ((V = v.key) == null ? void 0 : V.type) !== "method")
29722
29741
  u.push(U);
29723
29742
  else {
29724
29743
  let W;
@@ -29734,11 +29753,11 @@ const U_ = Vl("formToTableComp", {
29734
29753
  name: "",
29735
29754
  compData: (E = (S = a.data.result) == null ? void 0 : S.map((v) => v.value.pageData)) == null ? void 0 : E.filter((v) => Object.values(v).length > 0)
29736
29755
  }), u = u.sort((v, U) => v.id - U.id), u;
29737
- }, kv = async (s) => {
29738
- await kd({
29756
+ }, Vv = async (s) => {
29757
+ await Vd({
29739
29758
  id: s
29740
29759
  });
29741
- }, Vv = async (s, e, t, n, i, r, a) => {
29760
+ }, Hv = async (s, e, t, n, i, r, a) => {
29742
29761
  var l, c, h, u, d, f, m, _, g, p, S, E, v;
29743
29762
  const o = ((c = (l = a == null ? void 0 : a.content) == null ? void 0 : l[0]) == null ? void 0 : c.id) ?? "";
29744
29763
  if (o !== "" && ((h = a == null ? void 0 : a.content) == null ? void 0 : h.length) > 1) {
@@ -29746,7 +29765,7 @@ const U_ = Vl("formToTableComp", {
29746
29765
  id: o
29747
29766
  });
29748
29767
  let C = ((m = (f = (d = (u = U == null ? void 0 : U.data) == null ? void 0 : u.result) == null ? void 0 : d[0]) == null ? void 0 : f.key) == null ? void 0 : m.tableId) ?? "", T = ((S = (p = (g = (_ = U == null ? void 0 : U.data) == null ? void 0 : _.result) == null ? void 0 : g[0]) == null ? void 0 : p.key) == null ? void 0 : S.pageKey) ?? "";
29749
- await Sc({
29768
+ await Ec({
29750
29769
  key: {
29751
29770
  type: s,
29752
29771
  pageKey: T,
@@ -29758,7 +29777,7 @@ const U_ = Vl("formToTableComp", {
29758
29777
  }
29759
29778
  });
29760
29779
  } else
29761
- await Sc({
29780
+ await Ec({
29762
29781
  key: {
29763
29782
  type: s,
29764
29783
  pageKey: e,
@@ -29769,7 +29788,7 @@ const U_ = Vl("formToTableComp", {
29769
29788
  tableData: Na(i, (v = Gs(r)) == null ? void 0 : v.filter((U) => U !== "操作"))
29770
29789
  }
29771
29790
  });
29772
- }, Hv = async (s, e, t, n, i, r, a) => {
29791
+ }, Gv = async (s, e, t, n, i, r, a) => {
29773
29792
  var h, u, d, f, m, _, g, p, S, E;
29774
29793
  const o = await zn({
29775
29794
  id: n
@@ -29798,7 +29817,7 @@ const U_ = Vl("formToTableComp", {
29798
29817
  },
29799
29818
  id: n
29800
29819
  });
29801
- }, Gv = async (s, e) => {
29820
+ }, Wv = async (s, e) => {
29802
29821
  await Sa({
29803
29822
  value: {
29804
29823
  pageData: e
@@ -29808,7 +29827,7 @@ const U_ = Vl("formToTableComp", {
29808
29827
  }, nv = async (s, e) => await zn({
29809
29828
  key: s,
29810
29829
  valueLikes: e
29811
- }), Wv = async () => {
29830
+ }), Xv = async () => {
29812
29831
  var s, e, t, n, i, r, a, o, l;
29813
29832
  try {
29814
29833
  const c = await zn({
@@ -29821,7 +29840,7 @@ const U_ = Vl("formToTableComp", {
29821
29840
  } catch (c) {
29822
29841
  return Promise.reject(c);
29823
29842
  }
29824
- }, iv = Vl("modelTableComp", {
29843
+ }, iv = Hl("modelTableComp", {
29825
29844
  state: () => ({
29826
29845
  tableIndex: 0,
29827
29846
  tableShowThree: ""
@@ -29926,27 +29945,27 @@ const U_ = Vl("formToTableComp", {
29926
29945
  tableId: t == null ? void 0 : t.index,
29927
29946
  systemKey: sessionStorage.getItem("systemKey"),
29928
29947
  pageKey: l.value
29929
- }, de), Me = (Ie = (le = (ce = Qe(ee)) == null ? void 0 : ce.data) == null ? void 0 : le.result) == null ? void 0 : Ie.map((G) => {
29948
+ }, de), Me = (Ie = (le = (ce = Je(ee)) == null ? void 0 : ce.data) == null ? void 0 : le.result) == null ? void 0 : Ie.map((G) => {
29930
29949
  var se;
29931
29950
  let z = [];
29932
29951
  return z.push({
29933
29952
  id: G.id
29934
29953
  }), z.push((se = G == null ? void 0 : G.value) == null ? void 0 : se.tableData), z;
29935
29954
  });
29936
- d.value = Y(Ua(Me, (A = (N = Qe(i.value)) == null ? void 0 : N.map((G) => G.label)) == null ? void 0 : A.filter((G) => G !== "操作")));
29955
+ d.value = Y(Ua(Me, (A = (N = Je(i.value)) == null ? void 0 : N.map((G) => G.label)) == null ? void 0 : A.filter((G) => G !== "操作")));
29937
29956
  }, re = async ($) => {
29938
29957
  var Me, ce, le, Ie, N, A, G, z, se, te;
29939
- const de = (Me = Qe(i.value)) == null ? void 0 : Me.filter((we) => we == null ? void 0 : we.isRoute);
29958
+ const de = (Me = Je(i.value)) == null ? void 0 : Me.filter((we) => we == null ? void 0 : we.isRoute);
29940
29959
  if ((de == null ? void 0 : de.length) > 0) {
29941
- let we = (ce = de == null ? void 0 : de[0]) == null ? void 0 : ce.prop, Se = l.value + "/" + ($ == null ? void 0 : $[we]), Oe = l.value, Be = await Tu(Se, sessionStorage.getItem("systemKey"), "");
29960
+ let we = (ce = de == null ? void 0 : de[0]) == null ? void 0 : ce.prop, Se = l.value + "/" + ($ == null ? void 0 : $[we]), Oe = l.value, Be = await kl(Se, sessionStorage.getItem("systemKey"), "");
29942
29961
  if ((Be == null ? void 0 : Be.length) > 0)
29943
29962
  h.setRouteToChildPath(Oe), o.setActiveMenuPath(Se);
29944
29963
  else {
29945
- const fe = await qd(t == null ? void 0 : t.index);
29946
- fe && (Se = l.value + "/" + (fe == null ? void 0 : fe[(le = de == null ? void 0 : de[0]) == null ? void 0 : le.label]), await jd(Se, l.value + "/" + ($ == null ? void 0 : $[we])), h.setRouteToChildPath(Oe), o.setActiveMenuPath(l.value + "/" + ($ == null ? void 0 : $[we])));
29964
+ const fe = await jd(t == null ? void 0 : t.index);
29965
+ fe && (Se = l.value + "/" + (fe == null ? void 0 : fe[(le = de == null ? void 0 : de[0]) == null ? void 0 : le.label]), await Fu(Se, l.value + "/" + ($ == null ? void 0 : $[we])), h.setRouteToChildPath(Oe), o.setActiveMenuPath(l.value + "/" + ($ == null ? void 0 : $[we])));
29947
29966
  }
29948
29967
  }
29949
- let ee = await Tu(l.value, sessionStorage.getItem("systemKey"), $.id);
29968
+ let ee = await kl(l.value, sessionStorage.getItem("systemKey"), $.id);
29950
29969
  if (ee = ee == null ? void 0 : ee.filter((we) => we.comp !== "methodButton"), ee && ee.length > 0) {
29951
29970
  const we = !Array.isArray(q.value) && ((Ie = q.value) == null ? void 0 : Ie.key) !== "main" ? [] : q.value;
29952
29971
  we.push({
@@ -29956,12 +29975,12 @@ const U_ = Vl("formToTableComp", {
29956
29975
  }
29957
29976
  }, ae = ($) => {
29958
29977
  var de;
29959
- (de = Qe(t.itemData)) == null || de.map((ee) => ((ee == null ? void 0 : ee.key) === "tableContents" && (ee.contents = $), ee));
29978
+ (de = Je(t.itemData)) == null || de.map((ee) => ((ee == null ? void 0 : ee.key) === "tableContents" && (ee.contents = $), ee));
29960
29979
  }, be = async ($, de, ee, Me) => {
29961
29980
  var ce;
29962
29981
  if ((Me == null ? void 0 : Me.data) === "查看" && ($ != null && $.every((le) => (le == null ? void 0 : le.url) && (le == null ? void 0 : le.name)))) {
29963
- let le = Qe($);
29964
- le = await ((ce = Qe(le)) == null ? void 0 : ce.map(async (N) => {
29982
+ let le = Je($);
29983
+ le = await ((ce = Je(le)) == null ? void 0 : ce.map(async (N) => {
29965
29984
  var z, se, te, we;
29966
29985
  const A = await Uu({
29967
29986
  url: N == null ? void 0 : N.url
@@ -30010,7 +30029,7 @@ const U_ = Vl("formToTableComp", {
30010
30029
  }, et = ($, de, ee) => {
30011
30030
  var Me, ce, le;
30012
30031
  if (f.value = "", D.value = !0, m.value = !0, n("onButtonClick", $, de), $ === "删除") {
30013
- d.value = (Me = Qe(d.value)) == null ? void 0 : Me.filter((N) => (N == null ? void 0 : N.id) !== (de == null ? void 0 : de.id));
30032
+ d.value = (Me = Je(d.value)) == null ? void 0 : Me.filter((N) => (N == null ? void 0 : N.id) !== (de == null ? void 0 : de.id));
30014
30033
  const Ie = V_(W.value, Z.value, de == null ? void 0 : de.id);
30015
30034
  ae(Ie), n("change", {
30016
30035
  content: d.value,
@@ -30021,11 +30040,11 @@ const U_ = Vl("formToTableComp", {
30021
30040
  column: i.value
30022
30041
  });
30023
30042
  } else if ($ === "新增")
30024
- p.value = "新增", Ke(""), S.value = !0;
30043
+ p.value = "新增", Ze(""), S.value = !0;
30025
30044
  else if ($ === "编辑")
30026
- p.value = "编辑", Ke(de), S.value = !0;
30045
+ p.value = "编辑", Ze(de), S.value = !0;
30027
30046
  else if ($ === "查看")
30028
- p.value = "查看", Ke(de), D.value = !1, m.value = !1, S.value = !0;
30047
+ p.value = "查看", Ze(de), D.value = !1, m.value = !1, S.value = !0;
30029
30048
  else if ($ === "查看三维模型") {
30030
30049
  const Ie = {};
30031
30050
  for (let A in de)
@@ -30033,13 +30052,13 @@ const U_ = Vl("formToTableComp", {
30033
30052
  let N = (ce = Object.values(Ie)) == null ? void 0 : ce[1];
30034
30053
  c.setTableShowThree(N);
30035
30054
  } else ((le = ee == null ? void 0 : ee.extra) == null ? void 0 : le.type) === "modelExample" && (p.value = $, v.value = !0);
30036
- }, Ke = ($) => {
30055
+ }, Ze = ($) => {
30037
30056
  var ce, le, Ie, N, A, G;
30038
30057
  const de = [];
30039
30058
  let ee = [];
30040
30059
  for (let z in $)
30041
30060
  Array.isArray($ == null ? void 0 : $[z]) && ee.push(z);
30042
- (le = Ds((ce = Qe(i.value)) == null ? void 0 : ce.filter((z) => (z == null ? void 0 : z.label) !== "操作"))) == null || le.forEach((z, se) => {
30061
+ (le = Ds((ce = Je(i.value)) == null ? void 0 : ce.filter((z) => (z == null ? void 0 : z.label) !== "操作"))) == null || le.forEach((z, se) => {
30043
30062
  var te;
30044
30063
  ee.find((we) => we === (z == null ? void 0 : z.prop)) || (z != null && z.formType && ((te = z == null ? void 0 : z.formType) == null ? void 0 : te.toUpperCase()) === "SELECT" ? de.push({
30045
30064
  label: (z == null ? void 0 : z.label) ?? "",
@@ -30067,19 +30086,19 @@ const U_ = Vl("formToTableComp", {
30067
30086
  isFormColHidden: z == null ? void 0 : z.isFormColHidden
30068
30087
  }));
30069
30088
  }), $ === "" || !$ || (f.value = $ == null ? void 0 : $.id);
30070
- let Me = Ds((Ie = Qe(i.value)) == null ? void 0 : Ie.filter((z) => (z == null ? void 0 : z.label) !== "操作"));
30071
- C.value && ((N = C.value) == null ? void 0 : N.length) > 0 && (C.value = (A = Qe(C).value) == null ? void 0 : A.map((z) => {
30089
+ let Me = Ds((Ie = Je(i.value)) == null ? void 0 : Ie.filter((z) => (z == null ? void 0 : z.label) !== "操作"));
30090
+ C.value && ((N = C.value) == null ? void 0 : N.length) > 0 && (C.value = (A = Je(C).value) == null ? void 0 : A.map((z) => {
30072
30091
  var te;
30073
30092
  let se = (te = Me == null ? void 0 : Me.find((we) => (we == null ? void 0 : we.label) === (z == null ? void 0 : z.label))) == null ? void 0 : te.prop;
30074
30093
  return se && (z.value = $[se]), z;
30075
- })), x.value = C.value && ((G = C.value) == null ? void 0 : G.length) > 0 ? Xd(C.value) : de;
30094
+ })), x.value = C.value && ((G = C.value) == null ? void 0 : G.length) > 0 ? qd(C.value) : de;
30076
30095
  };
30077
- kl(() => {
30096
+ Vl(() => {
30078
30097
  U.value = window.innerWidth - 240 * 2;
30079
30098
  });
30080
30099
  const O = () => {
30081
30100
  var ce;
30082
- let $ = Ds((ce = Qe(i.value)) == null ? void 0 : ce.filter((le) => (le == null ? void 0 : le.label) !== "操作")), de, ee = Qe(d.value);
30101
+ let $ = Ds((ce = Je(i.value)) == null ? void 0 : ce.filter((le) => (le == null ? void 0 : le.label) !== "操作")), de, ee = Je(d.value);
30083
30102
  f.value === "" ? (_.value++, ee.push(Object.assign(B.value, { id: _.value })), de = Object.assign(B.value, { id: _.value })) : ee = ee == null ? void 0 : ee.map((le) => {
30084
30103
  var Ie;
30085
30104
  if ((le == null ? void 0 : le.id) === f.value) {
@@ -30107,17 +30126,17 @@ const U_ = Vl("formToTableComp", {
30107
30126
  () => [t.itemData, he.value, k.value, Z.value, u == null ? void 0 : u.value],
30108
30127
  () => {
30109
30128
  var A, G, z, se, te, we, Se, Oe, Be, fe, Ce, Ye, tt, Le, ot, H, Ue, ge, ke, ye, pe, We, ct, Lt, ft, tn;
30110
- const $ = (A = Qe(t.itemData)) == null ? void 0 : A.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "header");
30111
- (G = Qe(t.itemData)) == null || G.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableIndexColumn")[0];
30112
- const de = (z = Qe(t.itemData)) == null ? void 0 : z.find((Xe) => (Xe == null ? void 0 : Xe.key) === "page"), ee = (se = Qe(t.itemData)) == null ? void 0 : se.find((Xe) => (Xe == null ? void 0 : Xe.key) === "rowButton"), Me = (te = Qe(t.itemData)) == null ? void 0 : te.find((Xe) => (Xe == null ? void 0 : Xe.key) === "extraButton"), ce = (we = Qe(t.itemData)) == null ? void 0 : we.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableContents"), le = (Se = Qe(t.itemData)) == null ? void 0 : Se.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableIndex");
30113
- C.value = (fe = (Be = (Oe = Qe(t.itemData)) == null ? void 0 : Oe.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableToForm")) == null ? void 0 : Be[0]) == null ? void 0 : fe.contents, g.value = (de == null ? void 0 : de.contents) ?? !1;
30129
+ const $ = (A = Je(t.itemData)) == null ? void 0 : A.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "header");
30130
+ (G = Je(t.itemData)) == null || G.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableIndexColumn")[0];
30131
+ const de = (z = Je(t.itemData)) == null ? void 0 : z.find((Xe) => (Xe == null ? void 0 : Xe.key) === "page"), ee = (se = Je(t.itemData)) == null ? void 0 : se.find((Xe) => (Xe == null ? void 0 : Xe.key) === "rowButton"), Me = (te = Je(t.itemData)) == null ? void 0 : te.find((Xe) => (Xe == null ? void 0 : Xe.key) === "extraButton"), ce = (we = Je(t.itemData)) == null ? void 0 : we.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableContents"), le = (Se = Je(t.itemData)) == null ? void 0 : Se.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableIndex");
30132
+ C.value = (fe = (Be = (Oe = Je(t.itemData)) == null ? void 0 : Oe.filter((Xe) => (Xe == null ? void 0 : Xe.key) === "tableToForm")) == null ? void 0 : Be[0]) == null ? void 0 : fe.contents, g.value = (de == null ? void 0 : de.contents) ?? !1;
30114
30133
  let Ie = [];
30115
30134
  he.value === "" ? Ie = $ == null ? void 0 : $[0] : Ie = ($ == null ? void 0 : $.find((Xe) => (Xe == null ? void 0 : Xe.selectLabel) === "(" + he.value + ")")) ?? ($ == null ? void 0 : $.find((Xe) => !(Xe != null && Xe.selectLabel)));
30116
30135
  let N = [];
30117
30136
  if (he.value === "" ? N = le == null ? void 0 : le[0] : N = (le == null ? void 0 : le.find((Xe) => (Xe == null ? void 0 : Xe.selectLabel) === "(" + he.value + ")")) ?? (le == null ? void 0 : le.find((Xe) => !(Xe != null && Xe.selectLabel))), ((Ce = Ie == null ? void 0 : Ie.contents) == null ? void 0 : Ce.length) > 0) {
30118
30137
  let Xe = [];
30119
30138
  if (Ie != null && Ie.contents.some((it) => Array.isArray(it) && (it == null ? void 0 : it.find((Te) => Te.children))))
30120
- Z.value === "" ? Xe = (tt = (Ye = Ac(Qe(Ie == null ? void 0 : Ie.contents))) == null ? void 0 : Ye[0]) == null ? void 0 : tt.filter((it) => !Array.isArray(it)) : (Z.value.split("-"), Xe = (Le = Ac(Qe(Ie == null ? void 0 : Ie.contents))) == null ? void 0 : Le[0]);
30139
+ Z.value === "" ? Xe = (tt = (Ye = wc(Je(Ie == null ? void 0 : Ie.contents))) == null ? void 0 : Ye[0]) == null ? void 0 : tt.filter((it) => !Array.isArray(it)) : (Z.value.split("-"), Xe = (Le = wc(Je(Ie == null ? void 0 : Ie.contents))) == null ? void 0 : Le[0]);
30121
30140
  else {
30122
30141
  const it = Ie != null && Ie.contents.some((Te) => Array.isArray(Te)) ? (ot = Ie == null ? void 0 : Ie.contents) == null ? void 0 : ot[0] : Ie == null ? void 0 : Ie.contents;
30123
30142
  it == null || it.forEach((Te, Ht) => {
@@ -30148,15 +30167,15 @@ const U_ = Vl("formToTableComp", {
30148
30167
  });
30149
30168
  }
30150
30169
  i.value = Xe;
30151
- let Zt = (Ue = (H = Wd(Qe(i.value))) == null ? void 0 : H.filter((it) => (it == null ? void 0 : it.type) !== "operate")) == null ? void 0 : Ue.map((it, Te) => ({
30170
+ let Zt = (Ue = (H = Xd(Je(i.value))) == null ? void 0 : H.filter((it) => (it == null ? void 0 : it.type) !== "operate")) == null ? void 0 : Ue.map((it, Te) => ({
30152
30171
  prop: (it == null ? void 0 : it.prop) ?? "a" + Te,
30153
30172
  column: it.label
30154
30173
  }));
30155
30174
  R.value = Zt;
30156
30175
  let jt = [];
30157
30176
  he.value === "" ? jt = ce == null ? void 0 : ce[0] : jt = (ce == null ? void 0 : ce.find((it) => (it == null ? void 0 : it.selectLabel) === "(" + he.value + ")")) ?? (ce == null ? void 0 : ce.find((it) => !(it != null && it.selectLabel)));
30158
- let nn = Array.isArray((ge = jt == null ? void 0 : jt.contents) == null ? void 0 : ge[0]) && ((ke = jt == null ? void 0 : jt.contents) != null && ke[0].every((it) => Array.isArray(it))) ? (ye = Qe(jt == null ? void 0 : jt.contents)) == null ? void 0 : ye[0] : Qe(jt == null ? void 0 : jt.contents);
30159
- N != null && N.contents && ((pe = N == null ? void 0 : N.contents) == null ? void 0 : pe.length) !== 0 && (nn = (We = Qe(nn)) == null ? void 0 : We.map((it, Te) => {
30177
+ let nn = Array.isArray((ge = jt == null ? void 0 : jt.contents) == null ? void 0 : ge[0]) && ((ke = jt == null ? void 0 : jt.contents) != null && ke[0].every((it) => Array.isArray(it))) ? (ye = Je(jt == null ? void 0 : jt.contents)) == null ? void 0 : ye[0] : Je(jt == null ? void 0 : jt.contents);
30178
+ N != null && N.contents && ((pe = N == null ? void 0 : N.contents) == null ? void 0 : pe.length) !== 0 && (nn = (We = Je(nn)) == null ? void 0 : We.map((it, Te) => {
30160
30179
  if (!Array.isArray(it)) {
30161
30180
  let Ht = {};
30162
30181
  for (let sn in it)
@@ -30166,7 +30185,7 @@ const U_ = Vl("formToTableComp", {
30166
30185
  return it;
30167
30186
  }));
30168
30187
  const Ii = !!((ct = i.value) != null && ct.find((it) => it.prop === "index"));
30169
- nn = Td(Qe(nn), N == null ? void 0 : N.contents, Ii);
30188
+ nn = Cd(Je(nn), N == null ? void 0 : N.contents, Ii);
30170
30189
  const ii = [];
30171
30190
  nn == null || nn.forEach((it, Te) => {
30172
30191
  var sn;
@@ -30184,7 +30203,7 @@ const U_ = Vl("formToTableComp", {
30184
30203
  var K;
30185
30204
  return ((K = Object.keys(J)) == null ? void 0 : K[0]) === Zt[Tn].column;
30186
30205
  })) == null ? void 0 : ss[Zt[Tn].column] : hn : Ht[Zt[Tn].prop] = hn;
30187
- } else Array.isArray(hn) && ((L = Zt[Tn]) != null && L.prop ? Ht[Zt[Tn].prop] = hn : Ht.children = wd(hn, Zt));
30206
+ } else Array.isArray(hn) && ((L = Zt[Tn]) != null && L.prop ? Ht[Zt[Tn].prop] = hn : Ht.children = Td(hn, Zt));
30188
30207
  });
30189
30208
  } else
30190
30209
  Ht = it;
@@ -30196,12 +30215,12 @@ const U_ = Vl("formToTableComp", {
30196
30215
  },
30197
30216
  { deep: !0, immediate: !0 }
30198
30217
  ), Ps(() => t == null ? void 0 : t.operatingForm, ($) => {
30199
- $ != null && $.form && (Ke($ == null ? void 0 : $.form), p.value = $ == null ? void 0 : $.dialogTitle, D.value = !0, S.value = !0);
30218
+ $ != null && $.form && (Ze($ == null ? void 0 : $.form), p.value = $ == null ? void 0 : $.dialogTitle, D.value = !0, S.value = !0);
30200
30219
  }, { immediate: !0, deep: !0 }), ($, de) => {
30201
30220
  var le;
30202
30221
  const ee = rr("el-icon"), Me = rr("el-popover"), ce = rr("el-button");
30203
30222
  return Sn(), fi("div", sv, [
30204
- (Sn(), ar(Hd, {
30223
+ (Sn(), ar(Gd, {
30205
30224
  columns: i.value,
30206
30225
  key: i.value,
30207
30226
  tableData: d.value,
@@ -30212,7 +30231,7 @@ const U_ = Vl("formToTableComp", {
30212
30231
  extraButton: b.value,
30213
30232
  onContentClick: be,
30214
30233
  onRowClick: Ee
30215
- }, Ud({
30234
+ }, Nd({
30216
30235
  headerButton: en((Ie) => [
30217
30236
  s.showHeader ? (Sn(), ar(Uf, {
30218
30237
  key: 0,
@@ -30237,7 +30256,7 @@ const U_ = Vl("formToTableComp", {
30237
30256
  reference: en(() => [
30238
30257
  pn(ee, null, {
30239
30258
  default: en(() => [
30240
- pn(Pu(Vd))
30259
+ pn(Pu(Hd))
30241
30260
  ]),
30242
30261
  _: 1
30243
30262
  })
@@ -30262,7 +30281,7 @@ const U_ = Vl("formToTableComp", {
30262
30281
  key: "0"
30263
30282
  } : void 0
30264
30283
  ]), 1032, ["columns", "tableData", "isShowPagination", "extraButton"])),
30265
- pn(Ec, {
30284
+ pn(Ac, {
30266
30285
  title: p.value,
30267
30286
  visible: S.value,
30268
30287
  width: _e.value,
@@ -30306,7 +30325,7 @@ const U_ = Vl("formToTableComp", {
30306
30325
  ]),
30307
30326
  _: 1
30308
30327
  }, 8, ["title", "visible", "width"]),
30309
- pn(Ec, {
30328
+ pn(Ac, {
30310
30329
  title: p.value,
30311
30330
  visible: v.value,
30312
30331
  width: U.value,
@@ -30343,7 +30362,7 @@ const U_ = Vl("formToTableComp", {
30343
30362
  ]),
30344
30363
  _: 1
30345
30364
  }, 8, ["title", "visible", "width"]),
30346
- r.value ? (Sn(), ar(Gd, {
30365
+ r.value ? (Sn(), ar(Wd, {
30347
30366
  key: 0,
30348
30367
  fileDataList: a.value,
30349
30368
  onDestroy: me
@@ -30351,71 +30370,72 @@ const U_ = Vl("formToTableComp", {
30351
30370
  ]);
30352
30371
  };
30353
30372
  }
30354
- }, Xv = /* @__PURE__ */ Hl(hv, [["__scopeId", "data-v-c1156fac"]]);
30373
+ }, qv = /* @__PURE__ */ Gl(hv, [["__scopeId", "data-v-c1156fac"]]);
30355
30374
  export {
30356
- Rt as $,
30357
- Dv as A,
30358
- Pv as B,
30359
- Xv as C,
30360
- bv as D,
30361
- um as E,
30362
- Ge as F,
30363
- Ts as G,
30364
- vi as H,
30375
+ yv as $,
30376
+ Iv as A,
30377
+ Dv as B,
30378
+ Pv as C,
30379
+ qv as D,
30380
+ bv as E,
30381
+ um as F,
30382
+ Ge as G,
30383
+ Ts as H,
30365
30384
  wv as I,
30366
- id as J,
30367
- rt as K,
30368
- mn as L,
30385
+ vi as J,
30386
+ sd as K,
30387
+ rt as L,
30369
30388
  _v as M,
30370
- Of as N,
30371
- op as O,
30389
+ mn as N,
30390
+ Of as O,
30372
30391
  Gi as P,
30373
30392
  Bn as Q,
30374
30393
  yr as R,
30375
30394
  Aa as S,
30376
30395
  vv as T,
30377
- Ct as U,
30396
+ op as U,
30378
30397
  F as V,
30379
30398
  Sv as W,
30380
- Ev as X,
30381
- Mv as Y,
30382
- ka as Z,
30383
- yv as _,
30399
+ Ct as X,
30400
+ Ev as Y,
30401
+ Mv as Z,
30402
+ ka as _,
30384
30403
  iv as a,
30385
- am as a0,
30386
- rm as a1,
30387
- xv as a2,
30388
- im as a3,
30389
- Ln as a4,
30390
- yn as a5,
30391
- wn as a6,
30392
- lt as a7,
30393
- b0 as a8,
30394
- ud as a9,
30395
- Av as aa,
30404
+ Rt as a0,
30405
+ am as a1,
30406
+ rm as a2,
30407
+ xv as a3,
30408
+ im as a4,
30409
+ Ln as a5,
30410
+ yn as a6,
30411
+ wn as a7,
30412
+ lt as a8,
30413
+ b0 as a9,
30414
+ dd as aa,
30415
+ Av as ab,
30396
30416
  Na as b,
30397
- Ou as c,
30417
+ zu as c,
30398
30418
  Zd as d,
30399
- zv as e,
30400
- Nv as f,
30401
- Tu as g,
30402
- Fv as h,
30419
+ Bv as e,
30420
+ Fv as f,
30421
+ kl as g,
30422
+ Ov as h,
30403
30423
  Af as i,
30404
30424
  Gs as j,
30405
- Bv as k,
30406
- Wv as l,
30407
- Gv as m,
30408
- kv as n,
30409
- Vv as o,
30410
- Hv as p,
30425
+ kv as k,
30426
+ Xv as l,
30427
+ Wv as m,
30428
+ Vv as n,
30429
+ Hv as o,
30430
+ Gv as p,
30411
30431
  U_ as q,
30412
30432
  Tv as r,
30413
30433
  nf as s,
30414
- Ov as t,
30434
+ zv as t,
30415
30435
  k_ as u,
30416
30436
  Cv as v,
30417
30437
  Rv as w,
30418
30438
  Uv as x,
30419
- Lv as y,
30420
- Iv as z
30439
+ Nv as y,
30440
+ Lv as z
30421
30441
  };