ss-component-new 1.1.237 → 1.1.239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-DI6hm2O5.cjs → array-D-J_e91G.cjs} +1 -1
- package/dist/{array-XiW93OPp.js → array-DAwa7XAV.js} +8 -8
- package/dist/{cloneDeep-DD6IIacv.js → cloneDeep-BcK4cO7a.js} +1 -1
- package/dist/{cloneDeep-CJYxvbkp.cjs → cloneDeep-kbsGGN_Q.cjs} +1 -1
- package/dist/{index-BfFcoIcW.js → index-3g7rW5vQ.js} +1 -1
- package/dist/{index-ItBGckSL.cjs → index-5JXCiHw3.cjs} +1 -1
- package/dist/{index-BxOh6BEJ.js → index-8hwiS85r.js} +5 -5
- package/dist/{index-Ya4rFbSY.cjs → index-B2KK3HzA.cjs} +1 -1
- package/dist/{index-DRxCMsAf.js → index-B66Qf5rw.js} +6 -6
- package/dist/{index-C0dpqsuW.js → index-B9K0EIpS.js} +5 -5
- package/dist/{index-DkotFjz2.js → index-BAWROpdj.js} +1 -1
- package/dist/{index-C4DMm-9q.cjs → index-BFPZALXc.cjs} +1 -1
- package/dist/{index-DhHo9ub3.js → index-BMrHnCTf.js} +4 -4
- package/dist/{index-Bs4dpkna.cjs → index-BOzSvFJA.cjs} +1 -1
- package/dist/{index-BYxKXFVW.cjs → index-BUga6nNK.cjs} +1 -1
- package/dist/{index-D5HzgxVF.cjs → index-BZHxtM--.cjs} +1 -1
- package/dist/{index-DIBaD8Dz.js → index-B_VMMfxb.js} +3 -3
- package/dist/{index-D0S1Fwnn.cjs → index-BdiQsOpb.cjs} +1 -1
- package/dist/index-Be4n2ecn.js +906 -0
- package/dist/{index-CnbFplgw.cjs → index-BhOckTgC.cjs} +1 -1
- package/dist/{index-BOcg5OyD.js → index-Bkc0R0j5.js} +89 -93
- package/dist/{index-CbTnDm6Y.js → index-BoA0FuEi.js} +7 -7
- package/dist/{index-xzKwlwN1.cjs → index-C3UTqVyv.cjs} +11 -11
- package/dist/{index-BoGW0rHI.js → index-C7Y_BQCw.js} +7 -7
- package/dist/{index-DrDjMudp.js → index-C8nLtJQB.js} +6 -6
- package/dist/{index-C6r0D7bs.js → index-CG01yKU1.js} +367 -353
- package/dist/{index-lSUKeup-.cjs → index-CK7nt4bL.cjs} +1 -1
- package/dist/{index-CJCpFXP6.cjs → index-CQ0bJWFx.cjs} +1 -1
- package/dist/{index-DSx-_9X6.cjs → index-CWsALJ8f.cjs} +1 -1
- package/dist/{index-BaXDQtLf.cjs → index-Cbj_oJPC.cjs} +1 -1
- package/dist/{index-Qvf8lEEi.js → index-CgxSbKBz.js} +4 -4
- package/dist/{index-C2Yo86eF.js → index-CiTgFX9o.js} +7 -7
- package/dist/{index-Dzd-BSIy.cjs → index-CoH0G-uS.cjs} +1 -1
- package/dist/{index-BvPVHCZ9.cjs → index-CrSVdnus.cjs} +1 -1
- package/dist/{index-CRFv3mU8.js → index-CrdlZPHq.js} +4 -4
- package/dist/{index-Cu4Nrk6I.js → index-D-auhS5f.js} +3 -3
- package/dist/{index-CqvUtrx4.cjs → index-D0FNjq6G.cjs} +1 -1
- package/dist/{index-XfC1YU_R.cjs → index-D0hUHQHn.cjs} +1 -1
- package/dist/{index-BjgJwjU0.js → index-DRcuI2gm.js} +4 -4
- package/dist/{index-BP6-wpOt.js → index-DX3jtjLG.js} +3 -3
- package/dist/{index-4oU6C2JI.js → index-DcymGmWj.js} +1 -1
- package/dist/{index-pdOAGERi.cjs → index-DqLOgQsT.cjs} +1 -1
- package/dist/{index-BRtYsist.js → index-DreX5xyP.js} +5 -5
- package/dist/{index-Gd5o0mO3.js → index-Du-s_IGe.js} +1 -1
- package/dist/{index-DBbaEqVU.cjs → index-DxzvUr7M.cjs} +1 -1
- package/dist/{index-Bg25SwqX.cjs → index-FX9zIOBz.cjs} +1 -1
- package/dist/{index-BR4fdQ1R.js → index-FaQ9vBep.js} +4 -4
- package/dist/{index-rKrFVhox.cjs → index-Gc1epwAE.cjs} +1 -1
- package/dist/{index-CCJsj4V5.cjs → index-GlyYi8eO.cjs} +1 -1
- package/dist/{index-DI7LyQuc.js → index-NdocPiqA.js} +9 -9
- package/dist/{index-DMKQK1ps.js → index-P_6AmAJ6.js} +1 -1
- package/dist/{index-_PQG-wQ3.cjs → index-V9D4K_Sf.cjs} +1 -1
- package/dist/index-VVRul53o.cjs +1 -0
- package/dist/{index-BTwMwAiQ.cjs → index-bC_377mt.cjs} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-DUR36an7.cjs → index.vue_vue_type_script_setup_true_lang-7hOFb1P0.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CRHsd8hz.js → index.vue_vue_type_script_setup_true_lang-DVmAEsPP.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-DawuGbvY.cjs → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-DI887Xui.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_11cfc8a8_lang-CND-nizm.js → index.vue_vue_type_style_index_0_scoped_11a5120d_lang-Rrc8X2Wa.js} +6 -6
- package/dist/index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-CMvvh_Fa.js +612 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_aefda2d8_lang-Df3FKHF1.cjs +1 -0
- package/dist/{login-5hYAfzY7.cjs → login-C0pHH-1V.cjs} +1 -1
- package/dist/{login-C8oHBbmr.js → login-CbLjVnvi.js} +2 -2
- package/dist/{main-B6KpGooi.js → main-DLdZKJUK.js} +6 -6
- package/dist/{main-BrPLM7nL.cjs → main-wtI2yJ--.cjs} +1 -1
- package/dist/{menu-G9lGQLbm.js → menu-CAlO6ojx.js} +4 -4
- package/dist/{menu-BCqnRbPI.cjs → menu-LlBjM6b8.cjs} +3 -3
- package/dist/{modelComp-DWhwoJ78.cjs → modelComp-Af3CYJjb.cjs} +1 -1
- package/dist/{modelComp-CYG_7mmb.js → modelComp-D9gZ6ZkE.js} +1 -1
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-BeiMmjtu.js +0 -913
- package/dist/index-Ctlqzbp7.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C0YpKhME.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4d31b674_lang-C6BHHnmI.js +0 -563
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ref as st, watch as Ei, nextTick as
|
|
2
|
-
import { p as
|
|
3
|
-
import { u as Tl } from "./modelComp-
|
|
4
|
-
import { a2 as
|
|
5
|
-
import { s as bl, d as
|
|
6
|
-
import { U as Ya, g as ja, h as Ka, j as Za, S as ns, k as
|
|
1
|
+
import { ref as st, watch as Ei, nextTick as Sc, resolveComponent as xl, createBlock as Aa, openBlock as Ht, withCtx as en, createElementVNode as Yt, renderSlot as Va, onMounted as wa, createElementBlock as mn, createCommentVNode as Ml, Fragment as Sl, renderList as yl, normalizeStyle as El, toDisplayString as Dr, createVNode as Pn, unref as yc, onBeforeUnmount as Ec, createSlots as Tc } from "vue";
|
|
2
|
+
import { p as Yi, c as fn, g as jn, u as kr, d as bc } from "./index-Du-s_IGe.js";
|
|
3
|
+
import { u as Tl } from "./modelComp-D9gZ6ZkE.js";
|
|
4
|
+
import { a2 as Ac, S as Ga, a3 as wc, i as Wa, a4 as Xa, a5 as Rc } from "./index-C7Y_BQCw.js";
|
|
5
|
+
import { s as bl, d as Cc, a as qa } from "./index-Bkc0R0j5.js";
|
|
6
|
+
import { U as Ya, g as ja, h as Ka, j as Za, S as ns, k as Pc, c as Ie } from "./cloneDeep-BcK4cO7a.js";
|
|
7
7
|
import { _ as Ra } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
|
-
import { s as Gi, d as Al, u as
|
|
9
|
-
import { d as $a } from "./index-
|
|
8
|
+
import { s as Gi, d as Al, u as wl } from "./menu-CAlO6ojx.js";
|
|
9
|
+
import { d as $a } from "./index-P_6AmAJ6.js";
|
|
10
10
|
var Dc = "__lodash_hash_undefined__";
|
|
11
11
|
function Lc(i) {
|
|
12
12
|
return this.__data__.set(i, Dc), this;
|
|
@@ -16,7 +16,7 @@ function Uc(i) {
|
|
|
16
16
|
}
|
|
17
17
|
function Hr(i) {
|
|
18
18
|
var e = -1, t = i == null ? 0 : i.length;
|
|
19
|
-
for (this.__data__ = new
|
|
19
|
+
for (this.__data__ = new Ac(); ++e < t; )
|
|
20
20
|
this.add(i[e]);
|
|
21
21
|
}
|
|
22
22
|
Hr.prototype.add = Hr.prototype.push = Lc;
|
|
@@ -31,7 +31,7 @@ function Nc(i, e) {
|
|
|
31
31
|
return i.has(e);
|
|
32
32
|
}
|
|
33
33
|
var Fc = 1, Oc = 2;
|
|
34
|
-
function
|
|
34
|
+
function Rl(i, e, t, n, r, s) {
|
|
35
35
|
var a = t & Fc, o = i.length, l = e.length;
|
|
36
36
|
if (o != l && !(a && l > o))
|
|
37
37
|
return !1;
|
|
@@ -88,7 +88,7 @@ function Qc(i, e, t, n, r, s, a) {
|
|
|
88
88
|
case Vc:
|
|
89
89
|
case Gc:
|
|
90
90
|
case qc:
|
|
91
|
-
return
|
|
91
|
+
return wc(+i, +e);
|
|
92
92
|
case Wc:
|
|
93
93
|
return i.name == e.name && i.message == e.message;
|
|
94
94
|
case Yc:
|
|
@@ -104,7 +104,7 @@ function Qc(i, e, t, n, r, s, a) {
|
|
|
104
104
|
if (c)
|
|
105
105
|
return c == e;
|
|
106
106
|
n |= Hc, a.set(i, e);
|
|
107
|
-
var h =
|
|
107
|
+
var h = Rl(o(i), o(e), n, r, s, a);
|
|
108
108
|
return a.delete(i), h;
|
|
109
109
|
case Zc:
|
|
110
110
|
if (is)
|
|
@@ -144,18 +144,18 @@ function ih(i, e, t, n, r, s) {
|
|
|
144
144
|
}
|
|
145
145
|
return s.delete(i), s.delete(e), v;
|
|
146
146
|
}
|
|
147
|
-
var rh = 1, Qa = "[object Arguments]", eo = "[object Array]",
|
|
147
|
+
var rh = 1, Qa = "[object Arguments]", eo = "[object Array]", ir = "[object Object]", sh = Object.prototype, to = sh.hasOwnProperty;
|
|
148
148
|
function ah(i, e, t, n, r, s) {
|
|
149
149
|
var a = Wa(i), o = Wa(e), l = a ? eo : Ka(i), c = o ? eo : Ka(e);
|
|
150
|
-
l = l == Qa ?
|
|
151
|
-
var h = l ==
|
|
150
|
+
l = l == Qa ? ir : l, c = c == Qa ? ir : c;
|
|
151
|
+
var h = l == ir, u = c == ir, d = l == c;
|
|
152
152
|
if (d && Za(i)) {
|
|
153
153
|
if (!Za(e))
|
|
154
154
|
return !1;
|
|
155
155
|
a = !0, h = !1;
|
|
156
156
|
}
|
|
157
157
|
if (d && !h)
|
|
158
|
-
return s || (s = new ns()), a ||
|
|
158
|
+
return s || (s = new ns()), a || Pc(i) ? Rl(i, e, t, n, r, s) : Qc(i, e, l, t, n, r, s);
|
|
159
159
|
if (!(t & rh)) {
|
|
160
160
|
var p = h && to.call(i, "__wrapped__"), _ = u && to.call(e, "__wrapped__");
|
|
161
161
|
if (p || _) {
|
|
@@ -165,11 +165,11 @@ function ah(i, e, t, n, r, s) {
|
|
|
165
165
|
}
|
|
166
166
|
return d ? (s || (s = new ns()), ih(i, e, t, n, r, s)) : !1;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
return i === e ? !0 : i == null || e == null || !Xa(i) && !Xa(e) ? i !== i && e !== e : ah(i, e, t, n,
|
|
168
|
+
function Cl(i, e, t, n, r) {
|
|
169
|
+
return i === e ? !0 : i == null || e == null || !Xa(i) && !Xa(e) ? i !== i && e !== e : ah(i, e, t, n, Cl, r);
|
|
170
170
|
}
|
|
171
171
|
function oh(i, e) {
|
|
172
|
-
return
|
|
172
|
+
return Cl(i, e);
|
|
173
173
|
}
|
|
174
174
|
const lh = {
|
|
175
175
|
__name: "index",
|
|
@@ -198,7 +198,7 @@ const lh = {
|
|
|
198
198
|
), Ei(
|
|
199
199
|
() => r.value,
|
|
200
200
|
() => {
|
|
201
|
-
|
|
201
|
+
Sc(() => {
|
|
202
202
|
var s, a;
|
|
203
203
|
(a = (s = t.value) == null ? void 0 : s.updatePopper) == null || a.call(s);
|
|
204
204
|
});
|
|
@@ -334,7 +334,7 @@ const lh = {
|
|
|
334
334
|
class: "extra-content",
|
|
335
335
|
style: El({ background: (_ == null ? void 0 : _.background) ?? "var(--ssComponent-primary-color)", color: "var(--system-bg)" }),
|
|
336
336
|
onClick: (m) => o(_ == null ? void 0 : _.label)
|
|
337
|
-
},
|
|
337
|
+
}, Dr(_ == null ? void 0 : _.label), 13, fh)
|
|
338
338
|
]))), 128))
|
|
339
339
|
])) : Ml("", !0),
|
|
340
340
|
Yt("div", dh, [
|
|
@@ -353,7 +353,7 @@ const lh = {
|
|
|
353
353
|
class: "button-style",
|
|
354
354
|
onClick: u[0] || (u[0] = (_) => r.value = !r.value)
|
|
355
355
|
}, [
|
|
356
|
-
Pn(
|
|
356
|
+
Pn(yc(Rc), { color: "var(--ssComponent-black)" })
|
|
357
357
|
])
|
|
358
358
|
]),
|
|
359
359
|
_: 1
|
|
@@ -385,8 +385,8 @@ const lh = {
|
|
|
385
385
|
* Copyright 2010-2025 Three.js Authors
|
|
386
386
|
* SPDX-License-Identifier: MIT
|
|
387
387
|
*/
|
|
388
|
-
const Ca = "177", xi = { ROTATE: 0, DOLLY: 1, PAN: 2 },
|
|
389
|
-
class
|
|
388
|
+
const Ca = "177", xi = { ROTATE: 0, DOLLY: 1, PAN: 2 }, _i = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, gh = 0, io = 1, vh = 2, Pl = 1, xh = 2, dn = 3, xn = 0, Dt = 1, pn = 2, Ln = 0, Mi = 1, ro = 2, so = 3, ao = 4, Mh = 5, Wn = 100, Sh = 101, yh = 102, Eh = 103, Th = 104, bh = 200, Ah = 201, wh = 202, Rh = 203, zs = 204, ks = 205, Ch = 206, Ph = 207, Dh = 208, Lh = 209, Uh = 210, Ih = 211, Nh = 212, Fh = 213, Oh = 214, Hs = 0, Vs = 1, Gs = 2, Ti = 3, Ws = 4, Xs = 5, qs = 6, Ys = 7, Pa = 0, Bh = 1, zh = 2, Un = 0, kh = 1, Hh = 2, Vh = 3, Gh = 4, Wh = 5, Xh = 6, qh = 7, Dl = 300, bi = 301, Ai = 302, js = 303, Ks = 304, $r = 306, Wr = 1e3, qn = 1001, Zs = 1002, Zt = 1003, Yh = 1004, rr = 1005, tn = 1006, rs = 1007, Yn = 1008, rn = 1009, Ll = 1010, Ul = 1011, ji = 1012, Da = 1013, Kn = 1014, _n = 1015, Qi = 1016, La = 1017, Ua = 1018, Ki = 1020, Il = 35902, Nl = 1021, Fl = 1022, jt = 1023, Zi = 1026, $i = 1027, Ol = 1028, Ia = 1029, Bl = 1030, Na = 1031, Fa = 1033, Lr = 33776, Ur = 33777, Ir = 33778, Nr = 33779, $s = 35840, Js = 35841, Qs = 35842, ea = 35843, ta = 36196, na = 37492, ia = 37496, ra = 37808, sa = 37809, aa = 37810, oa = 37811, la = 37812, ca = 37813, ha = 37814, ua = 37815, fa = 37816, da = 37817, pa = 37818, ma = 37819, _a = 37820, ga = 37821, Fr = 36492, va = 36494, xa = 36495, zl = 36283, Ma = 36284, Sa = 36285, ya = 36286, jh = 3200, Kh = 3201, kl = 0, Zh = 1, Dn = "", Mt = "srgb", wi = "srgb-linear", Xr = "linear", nt = "srgb", ni = 7680, oo = 519, $h = 512, Jh = 513, Qh = 514, Hl = 515, eu = 516, tu = 517, nu = 518, iu = 519, lo = 35044, co = "300 es", gn = 2e3, qr = 2001;
|
|
389
|
+
class Jn {
|
|
390
390
|
/**
|
|
391
391
|
* Adds the given event listener to the given event type.
|
|
392
392
|
*
|
|
@@ -443,7 +443,7 @@ class $n {
|
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
445
|
const yt = ["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"], Or = Math.PI / 180, Ea = 180 / Math.PI;
|
|
446
|
-
function
|
|
446
|
+
function er() {
|
|
447
447
|
const i = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0;
|
|
448
448
|
return (yt[i & 255] + yt[i >> 8 & 255] + yt[i >> 16 & 255] + yt[i >> 24 & 255] + "-" + yt[e & 255] + yt[e >> 8 & 255] + "-" + yt[e >> 16 & 15 | 64] + yt[e >> 24 & 255] + "-" + yt[t & 63 | 128] + yt[t >> 8 & 255] + "-" + yt[t >> 16 & 255] + yt[t >> 24 & 255] + yt[n & 255] + yt[n >> 8 & 255] + yt[n >> 16 & 255] + yt[n >> 24 & 255]).toLowerCase();
|
|
449
449
|
}
|
|
@@ -1038,7 +1038,7 @@ class Ge {
|
|
|
1038
1038
|
yield this.x, yield this.y;
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
class
|
|
1041
|
+
class Zn {
|
|
1042
1042
|
/**
|
|
1043
1043
|
* Constructs a new quaternion.
|
|
1044
1044
|
*
|
|
@@ -2247,7 +2247,7 @@ class N {
|
|
|
2247
2247
|
yield this.x, yield this.y, yield this.z;
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
|
-
const as = /* @__PURE__ */ new N(), ho = /* @__PURE__ */ new
|
|
2250
|
+
const as = /* @__PURE__ */ new N(), ho = /* @__PURE__ */ new Zn();
|
|
2251
2251
|
class Xe {
|
|
2252
2252
|
/**
|
|
2253
2253
|
* Constructs a new 3x3 matrix. The arguments are supposed to be
|
|
@@ -2619,16 +2619,16 @@ class Xe {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
const os = /* @__PURE__ */ new Xe();
|
|
2622
|
-
function
|
|
2622
|
+
function Vl(i) {
|
|
2623
2623
|
for (let e = i.length - 1; e >= 0; --e)
|
|
2624
2624
|
if (i[e] >= 65535) return !0;
|
|
2625
2625
|
return !1;
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function Ji(i) {
|
|
2628
2628
|
return document.createElementNS("http://www.w3.org/1999/xhtml", i);
|
|
2629
2629
|
}
|
|
2630
2630
|
function au() {
|
|
2631
|
-
const i =
|
|
2631
|
+
const i = Ji("canvas");
|
|
2632
2632
|
return i.style.display = "block", i;
|
|
2633
2633
|
}
|
|
2634
2634
|
const uo = {};
|
|
@@ -2772,7 +2772,7 @@ function vn(i) {
|
|
|
2772
2772
|
function yi(i) {
|
|
2773
2773
|
return i < 31308e-7 ? i * 12.92 : 1.055 * Math.pow(i, 0.41666) - 0.055;
|
|
2774
2774
|
}
|
|
2775
|
-
let
|
|
2775
|
+
let ii;
|
|
2776
2776
|
class uu {
|
|
2777
2777
|
/**
|
|
2778
2778
|
* Returns a data URI containing a representation of the given image.
|
|
@@ -2788,9 +2788,9 @@ class uu {
|
|
|
2788
2788
|
if (e instanceof HTMLCanvasElement)
|
|
2789
2789
|
n = e;
|
|
2790
2790
|
else {
|
|
2791
|
-
|
|
2792
|
-
const r =
|
|
2793
|
-
e instanceof ImageData ? r.putImageData(e, 0, 0) : r.drawImage(e, 0, 0, e.width, e.height), n =
|
|
2791
|
+
ii === void 0 && (ii = Ji("canvas")), ii.width = e.width, ii.height = e.height;
|
|
2792
|
+
const r = ii.getContext("2d");
|
|
2793
|
+
e instanceof ImageData ? r.putImageData(e, 0, 0) : r.drawImage(e, 0, 0, e.width, e.height), n = ii;
|
|
2794
2794
|
}
|
|
2795
2795
|
return n.toDataURL(t);
|
|
2796
2796
|
}
|
|
@@ -2802,7 +2802,7 @@ class uu {
|
|
|
2802
2802
|
*/
|
|
2803
2803
|
static sRGBToLinear(e) {
|
|
2804
2804
|
if (typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap) {
|
|
2805
|
-
const t =
|
|
2805
|
+
const t = Ji("canvas");
|
|
2806
2806
|
t.width = e.width, t.height = e.height;
|
|
2807
2807
|
const n = t.getContext("2d");
|
|
2808
2808
|
n.drawImage(e, 0, 0, e.width, e.height);
|
|
@@ -2831,7 +2831,7 @@ class Oa {
|
|
|
2831
2831
|
* @param {any} [data=null] - The data definition of a texture.
|
|
2832
2832
|
*/
|
|
2833
2833
|
constructor(e = null) {
|
|
2834
|
-
this.isSource = !0, Object.defineProperty(this, "id", { value: fu++ }), this.uuid =
|
|
2834
|
+
this.isSource = !0, Object.defineProperty(this, "id", { value: fu++ }), this.uuid = er(), this.data = e, this.dataReady = !0, this.version = 0;
|
|
2835
2835
|
}
|
|
2836
2836
|
getSize(e) {
|
|
2837
2837
|
const t = this.data;
|
|
@@ -2887,7 +2887,7 @@ function ls(i) {
|
|
|
2887
2887
|
}
|
|
2888
2888
|
let du = 0;
|
|
2889
2889
|
const cs = /* @__PURE__ */ new N();
|
|
2890
|
-
class wt extends
|
|
2890
|
+
class wt extends Jn {
|
|
2891
2891
|
/**
|
|
2892
2892
|
* Constructs a new texture.
|
|
2893
2893
|
*
|
|
@@ -2903,7 +2903,7 @@ class wt extends $n {
|
|
|
2903
2903
|
* @param {string} [colorSpace=NoColorSpace] - The color space.
|
|
2904
2904
|
*/
|
|
2905
2905
|
constructor(e = wt.DEFAULT_IMAGE, t = wt.DEFAULT_MAPPING, n = qn, r = qn, s = tn, a = Yn, o = jt, l = rn, c = wt.DEFAULT_ANISOTROPY, h = Dn) {
|
|
2906
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: du++ }), this.uuid =
|
|
2906
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: du++ }), this.uuid = er(), this.name = "", this.source = new Oa(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = r, this.magFilter = s, 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 Xe(), 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;
|
|
2907
2907
|
}
|
|
2908
2908
|
/**
|
|
2909
2909
|
* The width of the texture in pixels.
|
|
@@ -3049,7 +3049,7 @@ class wt extends $n {
|
|
|
3049
3049
|
* @return {Vector2} The transformed uv vector.
|
|
3050
3050
|
*/
|
|
3051
3051
|
transformUv(e) {
|
|
3052
|
-
if (this.mapping !==
|
|
3052
|
+
if (this.mapping !== Dl) return e;
|
|
3053
3053
|
if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
|
|
3054
3054
|
switch (this.wrapS) {
|
|
3055
3055
|
case Wr:
|
|
@@ -3101,7 +3101,7 @@ class wt extends $n {
|
|
|
3101
3101
|
}
|
|
3102
3102
|
}
|
|
3103
3103
|
wt.DEFAULT_IMAGE = null;
|
|
3104
|
-
wt.DEFAULT_MAPPING =
|
|
3104
|
+
wt.DEFAULT_MAPPING = Dl;
|
|
3105
3105
|
wt.DEFAULT_ANISOTROPY = 1;
|
|
3106
3106
|
class ut {
|
|
3107
3107
|
/**
|
|
@@ -3648,7 +3648,7 @@ class ut {
|
|
|
3648
3648
|
yield this.x, yield this.y, yield this.z, yield this.w;
|
|
3649
3649
|
}
|
|
3650
3650
|
}
|
|
3651
|
-
class pu extends
|
|
3651
|
+
class pu extends Jn {
|
|
3652
3652
|
/**
|
|
3653
3653
|
* Render target options.
|
|
3654
3654
|
*
|
|
@@ -3789,7 +3789,7 @@ class pu extends $n {
|
|
|
3789
3789
|
this.dispatchEvent({ type: "dispose" });
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
|
-
class
|
|
3792
|
+
class $n extends pu {
|
|
3793
3793
|
/**
|
|
3794
3794
|
* Constructs a new 3D render target.
|
|
3795
3795
|
*
|
|
@@ -3801,7 +3801,7 @@ class Zn extends pu {
|
|
|
3801
3801
|
super(e, t, n), this.isWebGLRenderTarget = !0;
|
|
3802
3802
|
}
|
|
3803
3803
|
}
|
|
3804
|
-
class
|
|
3804
|
+
class Gl extends wt {
|
|
3805
3805
|
/**
|
|
3806
3806
|
* Constructs a new data array texture.
|
|
3807
3807
|
*
|
|
@@ -4035,7 +4035,7 @@ class Pi {
|
|
|
4035
4035
|
for (let a = 0, o = s.count; a < o; a++)
|
|
4036
4036
|
e.isMesh === !0 ? e.getVertexPosition(a, Gt) : Gt.fromBufferAttribute(s, a), Gt.applyMatrix4(e.matrixWorld), this.expandByPoint(Gt);
|
|
4037
4037
|
else
|
|
4038
|
-
e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(),
|
|
4038
|
+
e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(), sr.copy(e.boundingBox)) : (n.boundingBox === null && n.computeBoundingBox(), sr.copy(n.boundingBox)), sr.applyMatrix4(e.matrixWorld), this.union(sr);
|
|
4039
4039
|
}
|
|
4040
4040
|
const r = e.children;
|
|
4041
4041
|
for (let s = 0, a = r.length; s < a; s++)
|
|
@@ -4112,7 +4112,7 @@ class Pi {
|
|
|
4112
4112
|
intersectsTriangle(e) {
|
|
4113
4113
|
if (this.isEmpty())
|
|
4114
4114
|
return !1;
|
|
4115
|
-
this.getCenter(Bi),
|
|
4115
|
+
this.getCenter(Bi), ar.subVectors(this.max, Bi), ri.subVectors(e.a, Bi), si.subVectors(e.b, Bi), ai.subVectors(e.c, Bi), yn.subVectors(si, ri), En.subVectors(ai, si), On.subVectors(ri, ai);
|
|
4116
4116
|
let t = [
|
|
4117
4117
|
0,
|
|
4118
4118
|
-yn.z,
|
|
@@ -4142,7 +4142,7 @@ class Pi {
|
|
|
4142
4142
|
On.x,
|
|
4143
4143
|
0
|
|
4144
4144
|
];
|
|
4145
|
-
return !hs(t,
|
|
4145
|
+
return !hs(t, ri, si, ai, ar) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !hs(t, ri, si, ai, ar)) ? !1 : (or.crossVectors(yn, En), t = [or.x, or.y, or.z], hs(t, ri, si, ai, ar));
|
|
4146
4146
|
}
|
|
4147
4147
|
/**
|
|
4148
4148
|
* Clamps the given point within the bounds of this box.
|
|
@@ -4254,7 +4254,7 @@ const an = [
|
|
|
4254
4254
|
/* @__PURE__ */ new N(),
|
|
4255
4255
|
/* @__PURE__ */ new N(),
|
|
4256
4256
|
/* @__PURE__ */ new N()
|
|
4257
|
-
], Gt = /* @__PURE__ */ new N(),
|
|
4257
|
+
], Gt = /* @__PURE__ */ new N(), sr = /* @__PURE__ */ new Pi(), ri = /* @__PURE__ */ new N(), si = /* @__PURE__ */ new N(), ai = /* @__PURE__ */ new N(), yn = /* @__PURE__ */ new N(), En = /* @__PURE__ */ new N(), On = /* @__PURE__ */ new N(), Bi = /* @__PURE__ */ new N(), ar = /* @__PURE__ */ new N(), or = /* @__PURE__ */ new N(), Bn = /* @__PURE__ */ new N();
|
|
4258
4258
|
function hs(i, e, t, n, r) {
|
|
4259
4259
|
for (let s = 0, a = i.length - 3; s <= a; s += 3) {
|
|
4260
4260
|
Bn.fromArray(i, s);
|
|
@@ -4265,7 +4265,7 @@ function hs(i, e, t, n, r) {
|
|
|
4265
4265
|
return !0;
|
|
4266
4266
|
}
|
|
4267
4267
|
const _u = /* @__PURE__ */ new Pi(), zi = /* @__PURE__ */ new N(), us = /* @__PURE__ */ new N();
|
|
4268
|
-
class
|
|
4268
|
+
class tr {
|
|
4269
4269
|
/**
|
|
4270
4270
|
* Constructs a new sphere.
|
|
4271
4271
|
*
|
|
@@ -4484,7 +4484,7 @@ class er {
|
|
|
4484
4484
|
return this.radius = e.radius, this.center.fromArray(e.center), this;
|
|
4485
4485
|
}
|
|
4486
4486
|
}
|
|
4487
|
-
const on = /* @__PURE__ */ new N(), fs = /* @__PURE__ */ new N(),
|
|
4487
|
+
const on = /* @__PURE__ */ new N(), fs = /* @__PURE__ */ new N(), lr = /* @__PURE__ */ new N(), Tn = /* @__PURE__ */ new N(), ds = /* @__PURE__ */ new N(), cr = /* @__PURE__ */ new N(), ps = /* @__PURE__ */ new N();
|
|
4488
4488
|
class Jr {
|
|
4489
4489
|
/**
|
|
4490
4490
|
* Constructs a new ray.
|
|
@@ -4583,8 +4583,8 @@ class Jr {
|
|
|
4583
4583
|
* @return {number} The squared distance.
|
|
4584
4584
|
*/
|
|
4585
4585
|
distanceSqToSegment(e, t, n, r) {
|
|
4586
|
-
fs.copy(e).add(t).multiplyScalar(0.5),
|
|
4587
|
-
const s = e.distanceTo(t) * 0.5, a = -this.direction.dot(
|
|
4586
|
+
fs.copy(e).add(t).multiplyScalar(0.5), lr.copy(t).sub(e).normalize(), Tn.copy(this.origin).sub(fs);
|
|
4587
|
+
const s = e.distanceTo(t) * 0.5, a = -this.direction.dot(lr), o = Tn.dot(this.direction), l = -Tn.dot(lr), c = Tn.lengthSq(), h = Math.abs(1 - a * a);
|
|
4588
4588
|
let u, d, p, _;
|
|
4589
4589
|
if (h > 0)
|
|
4590
4590
|
if (u = a * l - o, d = a * o - l, _ = s * h, u >= 0)
|
|
@@ -4600,7 +4600,7 @@ class Jr {
|
|
|
4600
4600
|
d <= -_ ? (u = Math.max(0, -(-a * s + o)), d = u > 0 ? -s : Math.min(Math.max(-s, -l), s), p = -u * u + d * (d + 2 * l) + c) : d <= _ ? (u = 0, d = Math.min(Math.max(-s, -l), s), p = d * (d + 2 * l) + c) : (u = Math.max(0, -(a * s + o)), d = u > 0 ? s : Math.min(Math.max(-s, -l), s), p = -u * u + d * (d + 2 * l) + c);
|
|
4601
4601
|
else
|
|
4602
4602
|
d = a > 0 ? -s : s, u = Math.max(0, -(a * d + o)), p = -u * u + d * (d + 2 * l) + c;
|
|
4603
|
-
return n && n.copy(this.origin).addScaledVector(this.direction, u), r && r.copy(fs).addScaledVector(
|
|
4603
|
+
return n && n.copy(this.origin).addScaledVector(this.direction, u), r && r.copy(fs).addScaledVector(lr, d), p;
|
|
4604
4604
|
}
|
|
4605
4605
|
/**
|
|
4606
4606
|
* Intersects this ray with the given sphere, returning the intersection
|
|
@@ -4696,7 +4696,7 @@ class Jr {
|
|
|
4696
4696
|
* @return {?Vector3} The intersection point.
|
|
4697
4697
|
*/
|
|
4698
4698
|
intersectTriangle(e, t, n, r, s) {
|
|
4699
|
-
ds.subVectors(t, e),
|
|
4699
|
+
ds.subVectors(t, e), cr.subVectors(n, e), ps.crossVectors(ds, cr);
|
|
4700
4700
|
let a = this.direction.dot(ps), o;
|
|
4701
4701
|
if (a > 0) {
|
|
4702
4702
|
if (r) return null;
|
|
@@ -4706,7 +4706,7 @@ class Jr {
|
|
|
4706
4706
|
else
|
|
4707
4707
|
return null;
|
|
4708
4708
|
Tn.subVectors(this.origin, e);
|
|
4709
|
-
const l = o * this.direction.dot(
|
|
4709
|
+
const l = o * this.direction.dot(cr.crossVectors(Tn, cr));
|
|
4710
4710
|
if (l < 0)
|
|
4711
4711
|
return null;
|
|
4712
4712
|
const c = o * this.direction.dot(ds.cross(Tn));
|
|
@@ -4941,7 +4941,7 @@ class lt {
|
|
|
4941
4941
|
* @return {Matrix4} A reference to this matrix.
|
|
4942
4942
|
*/
|
|
4943
4943
|
extractRotation(e) {
|
|
4944
|
-
const t = this.elements, n = e.elements, r = 1 /
|
|
4944
|
+
const t = this.elements, n = e.elements, r = 1 / oi.setFromMatrixColumn(e, 0).length(), s = 1 / oi.setFromMatrixColumn(e, 1).length(), a = 1 / oi.setFromMatrixColumn(e, 2).length();
|
|
4945
4945
|
return t[0] = n[0] * r, t[1] = n[1] * r, t[2] = n[2] * r, t[3] = 0, t[4] = n[4] * s, t[5] = n[5] * s, t[6] = n[6] * s, t[7] = 0, t[8] = n[8] * a, t[9] = n[9] * a, t[10] = n[10] * a, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
|
|
4946
4946
|
}
|
|
4947
4947
|
/**
|
|
@@ -4999,7 +4999,7 @@ class lt {
|
|
|
4999
4999
|
*/
|
|
5000
5000
|
lookAt(e, t, n) {
|
|
5001
5001
|
const r = this.elements;
|
|
5002
|
-
return Ut.subVectors(e, t), Ut.lengthSq() === 0 && (Ut.z = 1), Ut.normalize(), bn.crossVectors(n, Ut), bn.lengthSq() === 0 && (Math.abs(n.z) === 1 ? Ut.x += 1e-4 : Ut.z += 1e-4, Ut.normalize(), bn.crossVectors(n, Ut)), bn.normalize(),
|
|
5002
|
+
return Ut.subVectors(e, t), Ut.lengthSq() === 0 && (Ut.z = 1), Ut.normalize(), bn.crossVectors(n, Ut), bn.lengthSq() === 0 && (Math.abs(n.z) === 1 ? Ut.x += 1e-4 : Ut.z += 1e-4, Ut.normalize(), bn.crossVectors(n, Ut)), bn.normalize(), hr.crossVectors(Ut, bn), r[0] = bn.x, r[4] = hr.x, r[8] = Ut.x, r[1] = bn.y, r[5] = hr.y, r[9] = Ut.y, r[2] = bn.z, r[6] = hr.z, r[10] = Ut.z, this;
|
|
5003
5003
|
}
|
|
5004
5004
|
/**
|
|
5005
5005
|
* Post-multiplies this matrix by the given 4x4 matrix.
|
|
@@ -5355,8 +5355,8 @@ class lt {
|
|
|
5355
5355
|
*/
|
|
5356
5356
|
decompose(e, t, n) {
|
|
5357
5357
|
const r = this.elements;
|
|
5358
|
-
let s =
|
|
5359
|
-
const a =
|
|
5358
|
+
let s = oi.set(r[0], r[1], r[2]).length();
|
|
5359
|
+
const a = oi.set(r[4], r[5], r[6]).length(), o = oi.set(r[8], r[9], r[10]).length();
|
|
5360
5360
|
this.determinant() < 0 && (s = -s), e.x = r[12], e.y = r[13], e.z = r[14], Wt.copy(this);
|
|
5361
5361
|
const c = 1 / s, h = 1 / a, u = 1 / o;
|
|
5362
5362
|
return Wt.elements[0] *= c, Wt.elements[1] *= c, Wt.elements[2] *= c, Wt.elements[4] *= h, Wt.elements[5] *= h, Wt.elements[6] *= h, Wt.elements[8] *= u, Wt.elements[9] *= u, Wt.elements[10] *= u, t.setFromRotationMatrix(Wt), n.x = s, n.y = a, n.z = o, this;
|
|
@@ -5446,7 +5446,7 @@ class lt {
|
|
|
5446
5446
|
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;
|
|
5447
5447
|
}
|
|
5448
5448
|
}
|
|
5449
|
-
const
|
|
5449
|
+
const oi = /* @__PURE__ */ new N(), Wt = /* @__PURE__ */ new lt(), gu = /* @__PURE__ */ new N(0, 0, 0), vu = /* @__PURE__ */ new N(1, 1, 1), bn = /* @__PURE__ */ new N(), hr = /* @__PURE__ */ new N(), Ut = /* @__PURE__ */ new N(), mo = /* @__PURE__ */ new lt(), _o = /* @__PURE__ */ new Zn();
|
|
5450
5450
|
class sn {
|
|
5451
5451
|
/**
|
|
5452
5452
|
* Constructs a new euler instance.
|
|
@@ -5645,7 +5645,7 @@ class sn {
|
|
|
5645
5645
|
}
|
|
5646
5646
|
}
|
|
5647
5647
|
sn.DEFAULT_ORDER = "XYZ";
|
|
5648
|
-
class
|
|
5648
|
+
class Wl {
|
|
5649
5649
|
/**
|
|
5650
5650
|
* Constructs a new layers instance, with membership
|
|
5651
5651
|
* initially set to layer `0`.
|
|
@@ -5718,14 +5718,14 @@ class Gl {
|
|
|
5718
5718
|
}
|
|
5719
5719
|
}
|
|
5720
5720
|
let xu = 0;
|
|
5721
|
-
const go = /* @__PURE__ */ new N(),
|
|
5722
|
-
class vt extends
|
|
5721
|
+
const go = /* @__PURE__ */ new N(), li = /* @__PURE__ */ new Zn(), ln = /* @__PURE__ */ new lt(), ur = /* @__PURE__ */ new N(), ki = /* @__PURE__ */ new N(), Mu = /* @__PURE__ */ new N(), Su = /* @__PURE__ */ new Zn(), vo = /* @__PURE__ */ new N(1, 0, 0), xo = /* @__PURE__ */ new N(0, 1, 0), Mo = /* @__PURE__ */ new N(0, 0, 1), So = { type: "added" }, yu = { type: "removed" }, ci = { type: "childadded", child: null }, ms = { type: "childremoved", child: null };
|
|
5722
|
+
class vt extends Jn {
|
|
5723
5723
|
/**
|
|
5724
5724
|
* Constructs a new 3D object.
|
|
5725
5725
|
*/
|
|
5726
5726
|
constructor() {
|
|
5727
|
-
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: xu++ }), this.uuid =
|
|
5728
|
-
const e = new N(), t = new sn(), n = new
|
|
5727
|
+
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: xu++ }), this.uuid = er(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = vt.DEFAULT_UP.clone();
|
|
5728
|
+
const e = new N(), t = new sn(), n = new Zn(), r = new N(1, 1, 1);
|
|
5729
5729
|
function s() {
|
|
5730
5730
|
n.setFromEuler(t, !1);
|
|
5731
5731
|
}
|
|
@@ -5798,7 +5798,7 @@ class vt extends $n {
|
|
|
5798
5798
|
normalMatrix: {
|
|
5799
5799
|
value: new Xe()
|
|
5800
5800
|
}
|
|
5801
|
-
}), this.matrix = new lt(), this.matrixWorld = new lt(), this.matrixAutoUpdate = vt.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = vt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new
|
|
5801
|
+
}), this.matrix = new lt(), this.matrixWorld = new lt(), this.matrixAutoUpdate = vt.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = vt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Wl(), 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 = {};
|
|
5802
5802
|
}
|
|
5803
5803
|
/**
|
|
5804
5804
|
* A callback that is executed immediately before a 3D object is rendered to a shadow map.
|
|
@@ -5910,7 +5910,7 @@ class vt extends $n {
|
|
|
5910
5910
|
* @return {Object3D} A reference to this instance.
|
|
5911
5911
|
*/
|
|
5912
5912
|
rotateOnAxis(e, t) {
|
|
5913
|
-
return
|
|
5913
|
+
return li.setFromAxisAngle(e, t), this.quaternion.multiply(li), this;
|
|
5914
5914
|
}
|
|
5915
5915
|
/**
|
|
5916
5916
|
* Rotates the 3D object along an axis in world space.
|
|
@@ -5920,7 +5920,7 @@ class vt extends $n {
|
|
|
5920
5920
|
* @return {Object3D} A reference to this instance.
|
|
5921
5921
|
*/
|
|
5922
5922
|
rotateOnWorldAxis(e, t) {
|
|
5923
|
-
return
|
|
5923
|
+
return li.setFromAxisAngle(e, t), this.quaternion.premultiply(li), this;
|
|
5924
5924
|
}
|
|
5925
5925
|
/**
|
|
5926
5926
|
* Rotates the 3D object around its X axis in local space.
|
|
@@ -6014,9 +6014,9 @@ class vt extends $n {
|
|
|
6014
6014
|
* @param {number} [z] - The z coordinate in world space.
|
|
6015
6015
|
*/
|
|
6016
6016
|
lookAt(e, t, n) {
|
|
6017
|
-
e.isVector3 ?
|
|
6017
|
+
e.isVector3 ? ur.copy(e) : ur.set(e, t, n);
|
|
6018
6018
|
const r = this.parent;
|
|
6019
|
-
this.updateWorldMatrix(!0, !1), ki.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? ln.lookAt(ki,
|
|
6019
|
+
this.updateWorldMatrix(!0, !1), ki.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? ln.lookAt(ki, ur, this.up) : ln.lookAt(ur, ki, this.up), this.quaternion.setFromRotationMatrix(ln), r && (ln.extractRotation(r.matrixWorld), li.setFromRotationMatrix(ln), this.quaternion.premultiply(li.invert()));
|
|
6020
6020
|
}
|
|
6021
6021
|
/**
|
|
6022
6022
|
* Adds the given 3D object as a child to this 3D object. An arbitrary number of
|
|
@@ -6034,7 +6034,7 @@ class vt extends $n {
|
|
|
6034
6034
|
this.add(arguments[t]);
|
|
6035
6035
|
return this;
|
|
6036
6036
|
}
|
|
6037
|
-
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(So),
|
|
6037
|
+
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(So), ci.child = e, this.dispatchEvent(ci), ci.child = null) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", e), this);
|
|
6038
6038
|
}
|
|
6039
6039
|
/**
|
|
6040
6040
|
* Removes the given 3D object as child from this 3D object.
|
|
@@ -6085,7 +6085,7 @@ class vt extends $n {
|
|
|
6085
6085
|
* @return {Object3D} A reference to this instance.
|
|
6086
6086
|
*/
|
|
6087
6087
|
attach(e) {
|
|
6088
|
-
return this.updateWorldMatrix(!0, !1), ln.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), ln.multiply(e.parent.matrixWorld)), e.applyMatrix4(ln), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(So),
|
|
6088
|
+
return this.updateWorldMatrix(!0, !1), ln.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), ln.multiply(e.parent.matrixWorld)), e.applyMatrix4(ln), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(So), ci.child = e, this.dispatchEvent(ci), ci.child = null, this;
|
|
6089
6089
|
}
|
|
6090
6090
|
/**
|
|
6091
6091
|
* Searches through the 3D object and its children, starting with the 3D object
|
|
@@ -6376,7 +6376,7 @@ class vt extends $n {
|
|
|
6376
6376
|
vt.DEFAULT_UP = /* @__PURE__ */ new N(0, 1, 0);
|
|
6377
6377
|
vt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
6378
6378
|
vt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
6379
|
-
const Xt = /* @__PURE__ */ new N(), cn = /* @__PURE__ */ new N(), _s = /* @__PURE__ */ new N(), hn = /* @__PURE__ */ new N(),
|
|
6379
|
+
const Xt = /* @__PURE__ */ new N(), cn = /* @__PURE__ */ new N(), _s = /* @__PURE__ */ new N(), hn = /* @__PURE__ */ new N(), hi = /* @__PURE__ */ new N(), ui = /* @__PURE__ */ new N(), yo = /* @__PURE__ */ new N(), gs = /* @__PURE__ */ new N(), vs = /* @__PURE__ */ new N(), xs = /* @__PURE__ */ new N(), Ms = /* @__PURE__ */ new ut(), Ss = /* @__PURE__ */ new ut(), ys = /* @__PURE__ */ new ut();
|
|
6380
6380
|
class qt {
|
|
6381
6381
|
/**
|
|
6382
6382
|
* Constructs a new triangle.
|
|
@@ -6629,29 +6629,29 @@ class qt {
|
|
|
6629
6629
|
closestPointToPoint(e, t) {
|
|
6630
6630
|
const n = this.a, r = this.b, s = this.c;
|
|
6631
6631
|
let a, o;
|
|
6632
|
-
|
|
6633
|
-
const l =
|
|
6632
|
+
hi.subVectors(r, n), ui.subVectors(s, n), gs.subVectors(e, n);
|
|
6633
|
+
const l = hi.dot(gs), c = ui.dot(gs);
|
|
6634
6634
|
if (l <= 0 && c <= 0)
|
|
6635
6635
|
return t.copy(n);
|
|
6636
6636
|
vs.subVectors(e, r);
|
|
6637
|
-
const h =
|
|
6637
|
+
const h = hi.dot(vs), u = ui.dot(vs);
|
|
6638
6638
|
if (h >= 0 && u <= h)
|
|
6639
6639
|
return t.copy(r);
|
|
6640
6640
|
const d = l * u - h * c;
|
|
6641
6641
|
if (d <= 0 && l >= 0 && h <= 0)
|
|
6642
|
-
return a = l / (l - h), t.copy(n).addScaledVector(
|
|
6642
|
+
return a = l / (l - h), t.copy(n).addScaledVector(hi, a);
|
|
6643
6643
|
xs.subVectors(e, s);
|
|
6644
|
-
const p =
|
|
6644
|
+
const p = hi.dot(xs), _ = ui.dot(xs);
|
|
6645
6645
|
if (_ >= 0 && p <= _)
|
|
6646
6646
|
return t.copy(s);
|
|
6647
6647
|
const v = p * c - l * _;
|
|
6648
6648
|
if (v <= 0 && c >= 0 && _ <= 0)
|
|
6649
|
-
return o = c / (c - _), t.copy(n).addScaledVector(
|
|
6649
|
+
return o = c / (c - _), t.copy(n).addScaledVector(ui, o);
|
|
6650
6650
|
const m = h * _ - p * u;
|
|
6651
6651
|
if (m <= 0 && u - h >= 0 && p - _ >= 0)
|
|
6652
6652
|
return yo.subVectors(s, r), o = (u - h) / (u - h + (p - _)), t.copy(r).addScaledVector(yo, o);
|
|
6653
6653
|
const f = 1 / (m + v + d);
|
|
6654
|
-
return a = v * f, o = d * f, t.copy(n).addScaledVector(
|
|
6654
|
+
return a = v * f, o = d * f, t.copy(n).addScaledVector(hi, a).addScaledVector(ui, o);
|
|
6655
6655
|
}
|
|
6656
6656
|
/**
|
|
6657
6657
|
* Returns `true` if this triangle is equal with the given one.
|
|
@@ -6663,7 +6663,7 @@ class qt {
|
|
|
6663
6663
|
return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);
|
|
6664
6664
|
}
|
|
6665
6665
|
}
|
|
6666
|
-
const
|
|
6666
|
+
const Xl = {
|
|
6667
6667
|
aliceblue: 15792383,
|
|
6668
6668
|
antiquewhite: 16444375,
|
|
6669
6669
|
aqua: 65535,
|
|
@@ -6812,7 +6812,7 @@ const Wl = {
|
|
|
6812
6812
|
whitesmoke: 16119285,
|
|
6813
6813
|
yellow: 16776960,
|
|
6814
6814
|
yellowgreen: 10145074
|
|
6815
|
-
}, An = { h: 0, s: 0, l: 0 },
|
|
6815
|
+
}, An = { h: 0, s: 0, l: 0 }, fr = { h: 0, s: 0, l: 0 };
|
|
6816
6816
|
function Es(i, e, t) {
|
|
6817
6817
|
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? i + (e - i) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? i + (e - i) * 6 * (2 / 3 - t) : i;
|
|
6818
6818
|
}
|
|
@@ -6976,7 +6976,7 @@ class je {
|
|
|
6976
6976
|
* @return {Color} A reference to this color.
|
|
6977
6977
|
*/
|
|
6978
6978
|
setColorName(e, t = Mt) {
|
|
6979
|
-
const n =
|
|
6979
|
+
const n = Xl[e.toLowerCase()];
|
|
6980
6980
|
return n !== void 0 ? this.setHex(n, t) : console.warn("THREE.Color: Unknown color " + e), this;
|
|
6981
6981
|
}
|
|
6982
6982
|
/**
|
|
@@ -7208,8 +7208,8 @@ class je {
|
|
|
7208
7208
|
* @return {Color} A reference to this color.
|
|
7209
7209
|
*/
|
|
7210
7210
|
lerpHSL(e, t) {
|
|
7211
|
-
this.getHSL(An), e.getHSL(
|
|
7212
|
-
const n = ss(An.h,
|
|
7211
|
+
this.getHSL(An), e.getHSL(fr);
|
|
7212
|
+
const n = ss(An.h, fr.h, t), r = ss(An.s, fr.s, t), s = ss(An.l, fr.l, t);
|
|
7213
7213
|
return this.setHSL(n, r, s), this;
|
|
7214
7214
|
}
|
|
7215
7215
|
/**
|
|
@@ -7285,14 +7285,14 @@ class je {
|
|
|
7285
7285
|
}
|
|
7286
7286
|
}
|
|
7287
7287
|
const Et = /* @__PURE__ */ new je();
|
|
7288
|
-
je.NAMES =
|
|
7288
|
+
je.NAMES = Xl;
|
|
7289
7289
|
let Eu = 0;
|
|
7290
|
-
class Mn extends
|
|
7290
|
+
class Mn extends Jn {
|
|
7291
7291
|
/**
|
|
7292
7292
|
* Constructs a new material.
|
|
7293
7293
|
*/
|
|
7294
7294
|
constructor() {
|
|
7295
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Eu++ }), this.uuid =
|
|
7295
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Eu++ }), this.uuid = er(), this.name = "", this.type = "Material", this.blending = Mi, this.side = xn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = zs, this.blendDst = ks, this.blendEquation = Wn, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new je(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Ti, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = oo, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ni, this.stencilZFail = ni, this.stencilZPass = ni, 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;
|
|
7296
7296
|
}
|
|
7297
7297
|
/**
|
|
7298
7298
|
* Sets the alpha value to be used when running an alpha test. The material
|
|
@@ -7391,7 +7391,7 @@ class Mn extends $n {
|
|
|
7391
7391
|
generator: "Material.toJSON"
|
|
7392
7392
|
}
|
|
7393
7393
|
};
|
|
7394
|
-
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 !== Mi && (n.blending = this.blending), this.side !== xn && (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 !== zs && (n.blendSrc = this.blendSrc), this.blendDst !== ks && (n.blendDst = this.blendDst), this.blendEquation !== Wn && (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 !== Ti && (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 !== oo && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !==
|
|
7394
|
+
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 !== Mi && (n.blending = this.blending), this.side !== xn && (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 !== zs && (n.blendSrc = this.blendSrc), this.blendDst !== ks && (n.blendDst = this.blendDst), this.blendEquation !== Wn && (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 !== Ti && (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 !== oo && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== ni && (n.stencilFail = this.stencilFail), this.stencilZFail !== ni && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== ni && (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);
|
|
7395
7395
|
function r(s) {
|
|
7396
7396
|
const a = [];
|
|
7397
7397
|
for (const o in s) {
|
|
@@ -7453,7 +7453,7 @@ class Mn extends $n {
|
|
|
7453
7453
|
e === !0 && this.version++;
|
|
7454
7454
|
}
|
|
7455
7455
|
}
|
|
7456
|
-
class
|
|
7456
|
+
class ql extends Mn {
|
|
7457
7457
|
/**
|
|
7458
7458
|
* Constructs a new mesh basic material.
|
|
7459
7459
|
*
|
|
@@ -7470,7 +7470,7 @@ class Xl extends Mn {
|
|
|
7470
7470
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
|
|
7471
7471
|
}
|
|
7472
7472
|
}
|
|
7473
|
-
const dt = /* @__PURE__ */ new N(),
|
|
7473
|
+
const dt = /* @__PURE__ */ new N(), dr = /* @__PURE__ */ new Ge();
|
|
7474
7474
|
let Tu = 0;
|
|
7475
7475
|
class nn {
|
|
7476
7476
|
/**
|
|
@@ -7570,7 +7570,7 @@ class nn {
|
|
|
7570
7570
|
applyMatrix3(e) {
|
|
7571
7571
|
if (this.itemSize === 2)
|
|
7572
7572
|
for (let t = 0, n = this.count; t < n; t++)
|
|
7573
|
-
|
|
7573
|
+
dr.fromBufferAttribute(this, t), dr.applyMatrix3(e), this.setXY(t, dr.x, dr.y);
|
|
7574
7574
|
else if (this.itemSize === 3)
|
|
7575
7575
|
for (let t = 0, n = this.count; t < n; t++)
|
|
7576
7576
|
dt.fromBufferAttribute(this, t), dt.applyMatrix3(e), this.setXYZ(t, dt.x, dt.y, dt.z);
|
|
@@ -7794,7 +7794,7 @@ class nn {
|
|
|
7794
7794
|
return this.name !== "" && (e.name = this.name), this.usage !== lo && (e.usage = this.usage), e;
|
|
7795
7795
|
}
|
|
7796
7796
|
}
|
|
7797
|
-
class
|
|
7797
|
+
class Yl extends nn {
|
|
7798
7798
|
/**
|
|
7799
7799
|
* Constructs a new buffer attribute.
|
|
7800
7800
|
*
|
|
@@ -7806,7 +7806,7 @@ class ql extends nn {
|
|
|
7806
7806
|
super(new Uint16Array(e), t, n);
|
|
7807
7807
|
}
|
|
7808
7808
|
}
|
|
7809
|
-
class
|
|
7809
|
+
class jl extends nn {
|
|
7810
7810
|
/**
|
|
7811
7811
|
* Constructs a new buffer attribute.
|
|
7812
7812
|
*
|
|
@@ -7831,13 +7831,13 @@ class At extends nn {
|
|
|
7831
7831
|
}
|
|
7832
7832
|
}
|
|
7833
7833
|
let bu = 0;
|
|
7834
|
-
const Bt = /* @__PURE__ */ new lt(), Ts = /* @__PURE__ */ new vt(),
|
|
7835
|
-
class $t extends
|
|
7834
|
+
const Bt = /* @__PURE__ */ new lt(), Ts = /* @__PURE__ */ new vt(), fi = /* @__PURE__ */ new N(), It = /* @__PURE__ */ new Pi(), Hi = /* @__PURE__ */ new Pi(), gt = /* @__PURE__ */ new N();
|
|
7835
|
+
class $t extends Jn {
|
|
7836
7836
|
/**
|
|
7837
7837
|
* Constructs a new geometry.
|
|
7838
7838
|
*/
|
|
7839
7839
|
constructor() {
|
|
7840
|
-
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: bu++ }), this.uuid =
|
|
7840
|
+
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: bu++ }), this.uuid = er(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
7841
7841
|
}
|
|
7842
7842
|
/**
|
|
7843
7843
|
* Returns the index of this geometry.
|
|
@@ -7854,7 +7854,7 @@ class $t extends $n {
|
|
|
7854
7854
|
* @return {BufferGeometry} A reference to this instance.
|
|
7855
7855
|
*/
|
|
7856
7856
|
setIndex(e) {
|
|
7857
|
-
return Array.isArray(e) ? this.index = new (
|
|
7857
|
+
return Array.isArray(e) ? this.index = new (Vl(e) ? jl : Yl)(e, 1) : this.index = e, this;
|
|
7858
7858
|
}
|
|
7859
7859
|
/**
|
|
7860
7860
|
* Sets the given indirect attribute to this geometry.
|
|
@@ -8044,7 +8044,7 @@ class $t extends $n {
|
|
|
8044
8044
|
* @return {BufferGeometry} A reference to this instance.
|
|
8045
8045
|
*/
|
|
8046
8046
|
center() {
|
|
8047
|
-
return this.computeBoundingBox(), this.boundingBox.getCenter(
|
|
8047
|
+
return this.computeBoundingBox(), this.boundingBox.getCenter(fi).negate(), this.translate(fi.x, fi.y, fi.z), this;
|
|
8048
8048
|
}
|
|
8049
8049
|
/**
|
|
8050
8050
|
* Defines a geometry by creating a `position` attribute based on the given array of points. The array
|
|
@@ -8107,7 +8107,7 @@ class $t extends $n {
|
|
|
8107
8107
|
* You may need to recompute the bounding sphere if the geometry vertices are modified.
|
|
8108
8108
|
*/
|
|
8109
8109
|
computeBoundingSphere() {
|
|
8110
|
-
this.boundingSphere === null && (this.boundingSphere = new
|
|
8110
|
+
this.boundingSphere === null && (this.boundingSphere = new tr());
|
|
8111
8111
|
const e = this.attributes.position, t = this.morphAttributes.position;
|
|
8112
8112
|
if (e && e.isGLBufferAttribute) {
|
|
8113
8113
|
console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new N(), 1 / 0);
|
|
@@ -8128,7 +8128,7 @@ class $t extends $n {
|
|
|
8128
8128
|
for (let s = 0, a = t.length; s < a; s++) {
|
|
8129
8129
|
const o = t[s], l = this.morphTargetsRelative;
|
|
8130
8130
|
for (let c = 0, h = o.count; c < h; c++)
|
|
8131
|
-
gt.fromBufferAttribute(o, c), l && (
|
|
8131
|
+
gt.fromBufferAttribute(o, c), l && (fi.fromBufferAttribute(e, c), gt.add(fi)), r = Math.max(r, n.distanceToSquared(gt));
|
|
8132
8132
|
}
|
|
8133
8133
|
this.boundingSphere.radius = Math.sqrt(r), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
|
|
8134
8134
|
}
|
|
@@ -8361,7 +8361,7 @@ class $t extends $n {
|
|
|
8361
8361
|
this.dispatchEvent({ type: "dispose" });
|
|
8362
8362
|
}
|
|
8363
8363
|
}
|
|
8364
|
-
const Eo = /* @__PURE__ */ new lt(), zn = /* @__PURE__ */ new Jr(),
|
|
8364
|
+
const Eo = /* @__PURE__ */ new lt(), zn = /* @__PURE__ */ new Jr(), pr = /* @__PURE__ */ new tr(), To = /* @__PURE__ */ new N(), mr = /* @__PURE__ */ new N(), _r = /* @__PURE__ */ new N(), gr = /* @__PURE__ */ new N(), bs = /* @__PURE__ */ new N(), vr = /* @__PURE__ */ new N(), bo = /* @__PURE__ */ new N(), xr = /* @__PURE__ */ new N();
|
|
8365
8365
|
class Kt extends vt {
|
|
8366
8366
|
/**
|
|
8367
8367
|
* Constructs a new mesh.
|
|
@@ -8369,7 +8369,7 @@ class Kt extends vt {
|
|
|
8369
8369
|
* @param {BufferGeometry} [geometry] - The mesh geometry.
|
|
8370
8370
|
* @param {Material|Array<Material>} [material] - The mesh material.
|
|
8371
8371
|
*/
|
|
8372
|
-
constructor(e = new $t(), t = new
|
|
8372
|
+
constructor(e = new $t(), t = new ql()) {
|
|
8373
8373
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
|
|
8374
8374
|
}
|
|
8375
8375
|
copy(e, t) {
|
|
@@ -8405,12 +8405,12 @@ class Kt extends vt {
|
|
|
8405
8405
|
t.fromBufferAttribute(r, e);
|
|
8406
8406
|
const o = this.morphTargetInfluences;
|
|
8407
8407
|
if (s && o) {
|
|
8408
|
-
|
|
8408
|
+
vr.set(0, 0, 0);
|
|
8409
8409
|
for (let l = 0, c = s.length; l < c; l++) {
|
|
8410
8410
|
const h = o[l], u = s[l];
|
|
8411
|
-
h !== 0 && (bs.fromBufferAttribute(u, e), a ?
|
|
8411
|
+
h !== 0 && (bs.fromBufferAttribute(u, e), a ? vr.addScaledVector(bs, h) : vr.addScaledVector(bs.sub(t), h));
|
|
8412
8412
|
}
|
|
8413
|
-
t.add(
|
|
8413
|
+
t.add(vr);
|
|
8414
8414
|
}
|
|
8415
8415
|
return t;
|
|
8416
8416
|
}
|
|
@@ -8422,7 +8422,7 @@ class Kt extends vt {
|
|
|
8422
8422
|
*/
|
|
8423
8423
|
raycast(e, t) {
|
|
8424
8424
|
const n = this.geometry, r = this.material, s = this.matrixWorld;
|
|
8425
|
-
r !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(),
|
|
8425
|
+
r !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), pr.copy(n.boundingSphere), pr.applyMatrix4(s), zn.copy(e.ray).recast(e.near), !(pr.containsPoint(zn.origin) === !1 && (zn.intersectSphere(pr, To) === null || zn.origin.distanceToSquared(To) > (e.far - e.near) ** 2)) && (Eo.copy(s).invert(), zn.copy(e.ray).applyMatrix4(Eo), !(n.boundingBox !== null && zn.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, zn)));
|
|
8426
8426
|
}
|
|
8427
8427
|
_computeIntersections(e, t, n) {
|
|
8428
8428
|
let r;
|
|
@@ -8433,14 +8433,14 @@ class Kt extends vt {
|
|
|
8433
8433
|
const m = d[_], f = a[m.materialIndex], b = Math.max(m.start, p.start), E = Math.min(o.count, Math.min(m.start + m.count, p.start + p.count));
|
|
8434
8434
|
for (let S = b, D = E; S < D; S += 3) {
|
|
8435
8435
|
const R = o.getX(S), C = o.getX(S + 1), L = o.getX(S + 2);
|
|
8436
|
-
r =
|
|
8436
|
+
r = Mr(this, f, e, n, c, h, u, R, C, L), r && (r.faceIndex = Math.floor(S / 3), r.face.materialIndex = m.materialIndex, t.push(r));
|
|
8437
8437
|
}
|
|
8438
8438
|
}
|
|
8439
8439
|
else {
|
|
8440
8440
|
const _ = Math.max(0, p.start), v = Math.min(o.count, p.start + p.count);
|
|
8441
8441
|
for (let m = _, f = v; m < f; m += 3) {
|
|
8442
8442
|
const b = o.getX(m), E = o.getX(m + 1), S = o.getX(m + 2);
|
|
8443
|
-
r =
|
|
8443
|
+
r = Mr(this, a, e, n, c, h, u, b, E, S), r && (r.faceIndex = Math.floor(m / 3), t.push(r));
|
|
8444
8444
|
}
|
|
8445
8445
|
}
|
|
8446
8446
|
else if (l !== void 0)
|
|
@@ -8449,14 +8449,14 @@ class Kt extends vt {
|
|
|
8449
8449
|
const m = d[_], f = a[m.materialIndex], b = Math.max(m.start, p.start), E = Math.min(l.count, Math.min(m.start + m.count, p.start + p.count));
|
|
8450
8450
|
for (let S = b, D = E; S < D; S += 3) {
|
|
8451
8451
|
const R = S, C = S + 1, L = S + 2;
|
|
8452
|
-
r =
|
|
8452
|
+
r = Mr(this, f, e, n, c, h, u, R, C, L), r && (r.faceIndex = Math.floor(S / 3), r.face.materialIndex = m.materialIndex, t.push(r));
|
|
8453
8453
|
}
|
|
8454
8454
|
}
|
|
8455
8455
|
else {
|
|
8456
8456
|
const _ = Math.max(0, p.start), v = Math.min(l.count, p.start + p.count);
|
|
8457
8457
|
for (let m = _, f = v; m < f; m += 3) {
|
|
8458
8458
|
const b = m, E = m + 1, S = m + 2;
|
|
8459
|
-
r =
|
|
8459
|
+
r = Mr(this, a, e, n, c, h, u, b, E, S), r && (r.faceIndex = Math.floor(m / 3), t.push(r));
|
|
8460
8460
|
}
|
|
8461
8461
|
}
|
|
8462
8462
|
}
|
|
@@ -8464,20 +8464,20 @@ class Kt extends vt {
|
|
|
8464
8464
|
function Au(i, e, t, n, r, s, a, o) {
|
|
8465
8465
|
let l;
|
|
8466
8466
|
if (e.side === Dt ? l = n.intersectTriangle(a, s, r, !0, o) : l = n.intersectTriangle(r, s, a, e.side === xn, o), l === null) return null;
|
|
8467
|
-
|
|
8468
|
-
const c = t.ray.origin.distanceTo(
|
|
8467
|
+
xr.copy(o), xr.applyMatrix4(i.matrixWorld);
|
|
8468
|
+
const c = t.ray.origin.distanceTo(xr);
|
|
8469
8469
|
return c < t.near || c > t.far ? null : {
|
|
8470
8470
|
distance: c,
|
|
8471
|
-
point:
|
|
8471
|
+
point: xr.clone(),
|
|
8472
8472
|
object: i
|
|
8473
8473
|
};
|
|
8474
8474
|
}
|
|
8475
|
-
function
|
|
8476
|
-
i.getVertexPosition(o,
|
|
8477
|
-
const h = Au(i, e, t, n,
|
|
8475
|
+
function Mr(i, e, t, n, r, s, a, o, l, c) {
|
|
8476
|
+
i.getVertexPosition(o, mr), i.getVertexPosition(l, _r), i.getVertexPosition(c, gr);
|
|
8477
|
+
const h = Au(i, e, t, n, mr, _r, gr, bo);
|
|
8478
8478
|
if (h) {
|
|
8479
8479
|
const u = new N();
|
|
8480
|
-
qt.getBarycoord(bo,
|
|
8480
|
+
qt.getBarycoord(bo, mr, _r, gr, u), r && (h.uv = qt.getInterpolatedAttribute(r, o, l, c, u, new Ge())), s && (h.uv1 = qt.getInterpolatedAttribute(s, o, l, c, u, new Ge())), a && (h.normal = qt.getInterpolatedAttribute(a, o, l, c, u, new N()), h.normal.dot(n.direction) > 0 && h.normal.multiplyScalar(-1));
|
|
8481
8481
|
const d = {
|
|
8482
8482
|
a: o,
|
|
8483
8483
|
b: l,
|
|
@@ -8485,11 +8485,11 @@ function xr(i, e, t, n, r, s, a, o, l, c) {
|
|
|
8485
8485
|
normal: new N(),
|
|
8486
8486
|
materialIndex: 0
|
|
8487
8487
|
};
|
|
8488
|
-
qt.getNormal(
|
|
8488
|
+
qt.getNormal(mr, _r, gr, d.normal), h.face = d, h.barycoord = u;
|
|
8489
8489
|
}
|
|
8490
8490
|
return h;
|
|
8491
8491
|
}
|
|
8492
|
-
class
|
|
8492
|
+
class nr extends $t {
|
|
8493
8493
|
/**
|
|
8494
8494
|
* Constructs a new box geometry.
|
|
8495
8495
|
*
|
|
@@ -8544,7 +8544,7 @@ class tr extends $t {
|
|
|
8544
8544
|
* @return {BoxGeometry} A new instance.
|
|
8545
8545
|
*/
|
|
8546
8546
|
static fromJSON(e) {
|
|
8547
|
-
return new
|
|
8547
|
+
return new nr(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);
|
|
8548
8548
|
}
|
|
8549
8549
|
}
|
|
8550
8550
|
function Ri(i) {
|
|
@@ -8573,7 +8573,7 @@ function wu(i) {
|
|
|
8573
8573
|
e.push(i[t].clone());
|
|
8574
8574
|
return e;
|
|
8575
8575
|
}
|
|
8576
|
-
function
|
|
8576
|
+
function Kl(i) {
|
|
8577
8577
|
const e = i.getRenderTarget();
|
|
8578
8578
|
return e === null ? i.outputColorSpace : e.isXRRenderTarget === !0 ? e.texture.colorSpace : Je.workingColorSpace;
|
|
8579
8579
|
}
|
|
@@ -8645,7 +8645,7 @@ class In extends Mn {
|
|
|
8645
8645
|
return Object.keys(n).length > 0 && (t.extensions = n), t;
|
|
8646
8646
|
}
|
|
8647
8647
|
}
|
|
8648
|
-
class
|
|
8648
|
+
class Zl extends vt {
|
|
8649
8649
|
/**
|
|
8650
8650
|
* Constructs a new camera.
|
|
8651
8651
|
*/
|
|
@@ -8678,7 +8678,7 @@ class Kl extends vt {
|
|
|
8678
8678
|
}
|
|
8679
8679
|
}
|
|
8680
8680
|
const wn = /* @__PURE__ */ new N(), Ao = /* @__PURE__ */ new Ge(), wo = /* @__PURE__ */ new Ge();
|
|
8681
|
-
class kt extends
|
|
8681
|
+
class kt extends Zl {
|
|
8682
8682
|
/**
|
|
8683
8683
|
* Constructs a new perspective camera.
|
|
8684
8684
|
*
|
|
@@ -8844,7 +8844,7 @@ class kt extends Kl {
|
|
|
8844
8844
|
return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;
|
|
8845
8845
|
}
|
|
8846
8846
|
}
|
|
8847
|
-
const
|
|
8847
|
+
const di = -90, pi = 1;
|
|
8848
8848
|
class Du extends vt {
|
|
8849
8849
|
/**
|
|
8850
8850
|
* Constructs a new cube camera.
|
|
@@ -8855,17 +8855,17 @@ class Du extends vt {
|
|
|
8855
8855
|
*/
|
|
8856
8856
|
constructor(e, t, n) {
|
|
8857
8857
|
super(), this.type = "CubeCamera", this.renderTarget = n, this.coordinateSystem = null, this.activeMipmapLevel = 0;
|
|
8858
|
-
const r = new kt(
|
|
8858
|
+
const r = new kt(di, pi, e, t);
|
|
8859
8859
|
r.layers = this.layers, this.add(r);
|
|
8860
|
-
const s = new kt(
|
|
8860
|
+
const s = new kt(di, pi, e, t);
|
|
8861
8861
|
s.layers = this.layers, this.add(s);
|
|
8862
|
-
const a = new kt(
|
|
8862
|
+
const a = new kt(di, pi, e, t);
|
|
8863
8863
|
a.layers = this.layers, this.add(a);
|
|
8864
|
-
const o = new kt(
|
|
8864
|
+
const o = new kt(di, pi, e, t);
|
|
8865
8865
|
o.layers = this.layers, this.add(o);
|
|
8866
|
-
const l = new kt(
|
|
8866
|
+
const l = new kt(di, pi, e, t);
|
|
8867
8867
|
l.layers = this.layers, this.add(l);
|
|
8868
|
-
const c = new kt(
|
|
8868
|
+
const c = new kt(di, pi, e, t);
|
|
8869
8869
|
c.layers = this.layers, this.add(c);
|
|
8870
8870
|
}
|
|
8871
8871
|
/**
|
|
@@ -8900,7 +8900,7 @@ class Du extends vt {
|
|
|
8900
8900
|
n.texture.generateMipmaps = !1, e.setRenderTarget(n, 0, r), e.render(t, s), e.setRenderTarget(n, 1, r), e.render(t, a), e.setRenderTarget(n, 2, r), e.render(t, o), e.setRenderTarget(n, 3, r), e.render(t, l), e.setRenderTarget(n, 4, r), e.render(t, c), n.texture.generateMipmaps = v, e.setRenderTarget(n, 5, r), e.render(t, h), e.setRenderTarget(u, d, p), e.xr.enabled = _, n.texture.needsPMREMUpdate = !0;
|
|
8901
8901
|
}
|
|
8902
8902
|
}
|
|
8903
|
-
class
|
|
8903
|
+
class $l extends wt {
|
|
8904
8904
|
/**
|
|
8905
8905
|
* Constructs a new cube texture.
|
|
8906
8906
|
*
|
|
@@ -8930,7 +8930,7 @@ class Zl extends wt {
|
|
|
8930
8930
|
this.image = e;
|
|
8931
8931
|
}
|
|
8932
8932
|
}
|
|
8933
|
-
class Lu extends
|
|
8933
|
+
class Lu extends $n {
|
|
8934
8934
|
/**
|
|
8935
8935
|
* Constructs a new cube render target.
|
|
8936
8936
|
*
|
|
@@ -8940,7 +8940,7 @@ class Lu extends Zn {
|
|
|
8940
8940
|
constructor(e = 1, t = {}) {
|
|
8941
8941
|
super(e, e, t), this.isWebGLCubeRenderTarget = !0;
|
|
8942
8942
|
const n = { width: e, height: e, depth: 1 }, r = [n, n, n, n, n, n];
|
|
8943
|
-
this.texture = new
|
|
8943
|
+
this.texture = new $l(r), this._setTextureOptions(t), this.texture.isRenderTargetTexture = !0;
|
|
8944
8944
|
}
|
|
8945
8945
|
/**
|
|
8946
8946
|
* Converts the given equirectangular texture to a cube map.
|
|
@@ -8998,7 +8998,7 @@ class Lu extends Zn {
|
|
|
8998
8998
|
}
|
|
8999
8999
|
`
|
|
9000
9000
|
)
|
|
9001
|
-
}, r = new
|
|
9001
|
+
}, r = new nr(5, 5, 5), s = new In({
|
|
9002
9002
|
name: "CubemapFromEquirect",
|
|
9003
9003
|
uniforms: Ri(n.uniforms),
|
|
9004
9004
|
vertexShader: n.vertexShader,
|
|
@@ -9374,7 +9374,7 @@ class Cn {
|
|
|
9374
9374
|
return new this.constructor().copy(this);
|
|
9375
9375
|
}
|
|
9376
9376
|
}
|
|
9377
|
-
const kn = /* @__PURE__ */ new
|
|
9377
|
+
const kn = /* @__PURE__ */ new tr(), Sr = /* @__PURE__ */ new N();
|
|
9378
9378
|
class Ba {
|
|
9379
9379
|
/**
|
|
9380
9380
|
* Constructs a new frustum.
|
|
@@ -9482,7 +9482,7 @@ class Ba {
|
|
|
9482
9482
|
const t = this.planes;
|
|
9483
9483
|
for (let n = 0; n < 6; n++) {
|
|
9484
9484
|
const r = t[n];
|
|
9485
|
-
if (
|
|
9485
|
+
if (Sr.x = r.normal.x > 0 ? e.max.x : e.min.x, Sr.y = r.normal.y > 0 ? e.max.y : e.min.y, Sr.z = r.normal.z > 0 ? e.max.z : e.min.z, r.distanceToPoint(Sr) < 0)
|
|
9486
9486
|
return !1;
|
|
9487
9487
|
}
|
|
9488
9488
|
return !0;
|
|
@@ -9526,7 +9526,7 @@ class Br extends Mn {
|
|
|
9526
9526
|
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;
|
|
9527
9527
|
}
|
|
9528
9528
|
}
|
|
9529
|
-
const Yr = /* @__PURE__ */ new N(), jr = /* @__PURE__ */ new N(), Ro = /* @__PURE__ */ new lt(), Vi = /* @__PURE__ */ new Jr(),
|
|
9529
|
+
const Yr = /* @__PURE__ */ new N(), jr = /* @__PURE__ */ new N(), Ro = /* @__PURE__ */ new lt(), Vi = /* @__PURE__ */ new Jr(), yr = /* @__PURE__ */ new tr(), Rs = /* @__PURE__ */ new N(), Co = /* @__PURE__ */ new N();
|
|
9530
9530
|
class Ou extends vt {
|
|
9531
9531
|
/**
|
|
9532
9532
|
* Constructs a new line.
|
|
@@ -9566,27 +9566,27 @@ class Ou extends vt {
|
|
|
9566
9566
|
*/
|
|
9567
9567
|
raycast(e, t) {
|
|
9568
9568
|
const n = this.geometry, r = this.matrixWorld, s = e.params.Line.threshold, a = n.drawRange;
|
|
9569
|
-
if (n.boundingSphere === null && n.computeBoundingSphere(),
|
|
9569
|
+
if (n.boundingSphere === null && n.computeBoundingSphere(), yr.copy(n.boundingSphere), yr.applyMatrix4(r), yr.radius += s, e.ray.intersectsSphere(yr) === !1) return;
|
|
9570
9570
|
Ro.copy(r).invert(), Vi.copy(e.ray).applyMatrix4(Ro);
|
|
9571
9571
|
const o = s / ((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;
|
|
9572
9572
|
if (h !== null) {
|
|
9573
9573
|
const p = Math.max(0, a.start), _ = Math.min(h.count, a.start + a.count);
|
|
9574
9574
|
for (let v = p, m = _ - 1; v < m; v += c) {
|
|
9575
|
-
const f = h.getX(v), b = h.getX(v + 1), E =
|
|
9575
|
+
const f = h.getX(v), b = h.getX(v + 1), E = Er(this, e, Vi, l, f, b, v);
|
|
9576
9576
|
E && t.push(E);
|
|
9577
9577
|
}
|
|
9578
9578
|
if (this.isLineLoop) {
|
|
9579
|
-
const v = h.getX(_ - 1), m = h.getX(p), f =
|
|
9579
|
+
const v = h.getX(_ - 1), m = h.getX(p), f = Er(this, e, Vi, l, v, m, _ - 1);
|
|
9580
9580
|
f && t.push(f);
|
|
9581
9581
|
}
|
|
9582
9582
|
} else {
|
|
9583
9583
|
const p = Math.max(0, a.start), _ = Math.min(d.count, a.start + a.count);
|
|
9584
9584
|
for (let v = p, m = _ - 1; v < m; v += c) {
|
|
9585
|
-
const f =
|
|
9585
|
+
const f = Er(this, e, Vi, l, v, v + 1, v);
|
|
9586
9586
|
f && t.push(f);
|
|
9587
9587
|
}
|
|
9588
9588
|
if (this.isLineLoop) {
|
|
9589
|
-
const v =
|
|
9589
|
+
const v = Er(this, e, Vi, l, _ - 1, p, _ - 1);
|
|
9590
9590
|
v && t.push(v);
|
|
9591
9591
|
}
|
|
9592
9592
|
}
|
|
@@ -9609,7 +9609,7 @@ class Ou extends vt {
|
|
|
9609
9609
|
}
|
|
9610
9610
|
}
|
|
9611
9611
|
}
|
|
9612
|
-
function
|
|
9612
|
+
function Er(i, e, t, n, r, s, a) {
|
|
9613
9613
|
const o = i.geometry.attributes.position;
|
|
9614
9614
|
if (Yr.fromBufferAttribute(o, r), jr.fromBufferAttribute(o, s), t.distanceSqToSegment(Yr, jr, Rs, Co) > n) return;
|
|
9615
9615
|
Rs.applyMatrix4(i.matrixWorld);
|
|
@@ -9667,7 +9667,7 @@ class Xi extends Mn {
|
|
|
9667
9667
|
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;
|
|
9668
9668
|
}
|
|
9669
9669
|
}
|
|
9670
|
-
const Uo = /* @__PURE__ */ new lt(), Ta = /* @__PURE__ */ new Jr(),
|
|
9670
|
+
const Uo = /* @__PURE__ */ new lt(), Ta = /* @__PURE__ */ new Jr(), Tr = /* @__PURE__ */ new tr(), br = /* @__PURE__ */ new N();
|
|
9671
9671
|
class Cs extends vt {
|
|
9672
9672
|
/**
|
|
9673
9673
|
* Constructs a new point cloud.
|
|
@@ -9689,19 +9689,19 @@ class Cs extends vt {
|
|
|
9689
9689
|
*/
|
|
9690
9690
|
raycast(e, t) {
|
|
9691
9691
|
const n = this.geometry, r = this.matrixWorld, s = e.params.Points.threshold, a = n.drawRange;
|
|
9692
|
-
if (n.boundingSphere === null && n.computeBoundingSphere(),
|
|
9692
|
+
if (n.boundingSphere === null && n.computeBoundingSphere(), Tr.copy(n.boundingSphere), Tr.applyMatrix4(r), Tr.radius += s, e.ray.intersectsSphere(Tr) === !1) return;
|
|
9693
9693
|
Uo.copy(r).invert(), Ta.copy(e.ray).applyMatrix4(Uo);
|
|
9694
9694
|
const o = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), l = o * o, c = n.index, u = n.attributes.position;
|
|
9695
9695
|
if (c !== null) {
|
|
9696
9696
|
const d = Math.max(0, a.start), p = Math.min(c.count, a.start + a.count);
|
|
9697
9697
|
for (let _ = d, v = p; _ < v; _++) {
|
|
9698
9698
|
const m = c.getX(_);
|
|
9699
|
-
|
|
9699
|
+
br.fromBufferAttribute(u, m), Io(br, m, l, r, e, t, this);
|
|
9700
9700
|
}
|
|
9701
9701
|
} else {
|
|
9702
9702
|
const d = Math.max(0, a.start), p = Math.min(u.count, a.start + a.count);
|
|
9703
9703
|
for (let _ = d, v = p; _ < v; _++)
|
|
9704
|
-
|
|
9704
|
+
br.fromBufferAttribute(u, _), Io(br, _, l, r, e, t, this);
|
|
9705
9705
|
}
|
|
9706
9706
|
}
|
|
9707
9707
|
/**
|
|
@@ -9741,7 +9741,7 @@ function Io(i, e, t, n, r, s, a) {
|
|
|
9741
9741
|
});
|
|
9742
9742
|
}
|
|
9743
9743
|
}
|
|
9744
|
-
class
|
|
9744
|
+
class Jl extends wt {
|
|
9745
9745
|
/**
|
|
9746
9746
|
* Constructs a new depth texture.
|
|
9747
9747
|
*
|
|
@@ -9757,8 +9757,8 @@ class $l extends wt {
|
|
|
9757
9757
|
* @param {number} [format=DepthFormat] - The texture format.
|
|
9758
9758
|
* @param {number} [depth=1] - The depth of the texture.
|
|
9759
9759
|
*/
|
|
9760
|
-
constructor(e, t, n =
|
|
9761
|
-
if (h !==
|
|
9760
|
+
constructor(e, t, n = Kn, r, s, a, o = Zt, l = Zt, c, h = Zi, u = 1) {
|
|
9761
|
+
if (h !== Zi && h !== $i)
|
|
9762
9762
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
9763
9763
|
const d = { width: e, height: t, depth: u };
|
|
9764
9764
|
super(d, r, s, a, o, l, h, n, c), this.isDepthTexture = !0, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
|
|
@@ -9816,7 +9816,7 @@ class Qr extends $t {
|
|
|
9816
9816
|
return new Qr(e.width, e.height, e.widthSegments, e.heightSegments);
|
|
9817
9817
|
}
|
|
9818
9818
|
}
|
|
9819
|
-
class
|
|
9819
|
+
class Ql extends Mn {
|
|
9820
9820
|
/**
|
|
9821
9821
|
* Constructs a new mesh phong material.
|
|
9822
9822
|
*
|
|
@@ -9827,7 +9827,7 @@ class Jl extends Mn {
|
|
|
9827
9827
|
* by {@link Color#set}.
|
|
9828
9828
|
*/
|
|
9829
9829
|
constructor(e) {
|
|
9830
|
-
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new je(16777215), this.specular = new je(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new je(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType =
|
|
9830
|
+
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new je(16777215), this.specular = new je(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new je(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = kl, this.normalScale = new Ge(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new sn(), this.combine = Pa, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
9831
9831
|
}
|
|
9832
9832
|
copy(e) {
|
|
9833
9833
|
return super.copy(e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
@@ -9960,7 +9960,7 @@ class ku {
|
|
|
9960
9960
|
};
|
|
9961
9961
|
}
|
|
9962
9962
|
}
|
|
9963
|
-
const
|
|
9963
|
+
const ec = /* @__PURE__ */ new ku();
|
|
9964
9964
|
class Di {
|
|
9965
9965
|
/**
|
|
9966
9966
|
* Constructs a new loader.
|
|
@@ -9968,7 +9968,7 @@ class Di {
|
|
|
9968
9968
|
* @param {LoadingManager} [manager] - The loading manager.
|
|
9969
9969
|
*/
|
|
9970
9970
|
constructor(e) {
|
|
9971
|
-
this.manager = e !== void 0 ? e :
|
|
9971
|
+
this.manager = e !== void 0 ? e : ec, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
|
|
9972
9972
|
}
|
|
9973
9973
|
/**
|
|
9974
9974
|
* This method needs to be implemented by all concrete loaders. It holds the
|
|
@@ -10060,7 +10060,7 @@ class Hu extends Error {
|
|
|
10060
10060
|
super(e), this.response = t;
|
|
10061
10061
|
}
|
|
10062
10062
|
}
|
|
10063
|
-
class
|
|
10063
|
+
class tc extends Di {
|
|
10064
10064
|
/**
|
|
10065
10065
|
* Constructs a new file loader.
|
|
10066
10066
|
*
|
|
@@ -10221,7 +10221,7 @@ class Vu extends Di {
|
|
|
10221
10221
|
return s.manager.itemStart(e), setTimeout(function() {
|
|
10222
10222
|
t && t(a), s.manager.itemEnd(e);
|
|
10223
10223
|
}, 0), a;
|
|
10224
|
-
const o =
|
|
10224
|
+
const o = Ji("img");
|
|
10225
10225
|
function l() {
|
|
10226
10226
|
h(), Kr.add(e, this), t && t(this), s.manager.itemEnd(e);
|
|
10227
10227
|
}
|
|
@@ -10262,7 +10262,7 @@ class Gu extends Di {
|
|
|
10262
10262
|
}, n, r), s;
|
|
10263
10263
|
}
|
|
10264
10264
|
}
|
|
10265
|
-
class
|
|
10265
|
+
class nc extends vt {
|
|
10266
10266
|
/**
|
|
10267
10267
|
* Constructs a new light.
|
|
10268
10268
|
*
|
|
@@ -10393,7 +10393,7 @@ class Wu {
|
|
|
10393
10393
|
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;
|
|
10394
10394
|
}
|
|
10395
10395
|
}
|
|
10396
|
-
class
|
|
10396
|
+
class ic extends Zl {
|
|
10397
10397
|
/**
|
|
10398
10398
|
* Constructs a new orthographic camera.
|
|
10399
10399
|
*
|
|
@@ -10462,10 +10462,10 @@ class Xu extends Wu {
|
|
|
10462
10462
|
* Constructs a new directional light shadow.
|
|
10463
10463
|
*/
|
|
10464
10464
|
constructor() {
|
|
10465
|
-
super(new
|
|
10465
|
+
super(new ic(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
|
|
10466
10466
|
}
|
|
10467
10467
|
}
|
|
10468
|
-
class qu extends
|
|
10468
|
+
class qu extends nc {
|
|
10469
10469
|
/**
|
|
10470
10470
|
* Constructs a new directional light.
|
|
10471
10471
|
*
|
|
@@ -10482,7 +10482,7 @@ class qu extends tc {
|
|
|
10482
10482
|
return super.copy(e), this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
|
|
10483
10483
|
}
|
|
10484
10484
|
}
|
|
10485
|
-
class Yu extends
|
|
10485
|
+
class Yu extends nc {
|
|
10486
10486
|
/**
|
|
10487
10487
|
* Constructs a new ambient light.
|
|
10488
10488
|
*
|
|
@@ -10597,7 +10597,7 @@ class Oo {
|
|
|
10597
10597
|
return new this.constructor().copy(this);
|
|
10598
10598
|
}
|
|
10599
10599
|
}
|
|
10600
|
-
class Zu extends
|
|
10600
|
+
class Zu extends Jn {
|
|
10601
10601
|
/**
|
|
10602
10602
|
* Constructs a new controls instance.
|
|
10603
10603
|
*
|
|
@@ -10644,17 +10644,17 @@ function Bo(i, e, t, n) {
|
|
|
10644
10644
|
const r = $u(n);
|
|
10645
10645
|
switch (t) {
|
|
10646
10646
|
// https://registry.khronos.org/OpenGL-Refpages/es3.0/html/glTexImage2D.xhtml
|
|
10647
|
-
case
|
|
10647
|
+
case Nl:
|
|
10648
10648
|
return i * e;
|
|
10649
|
-
case
|
|
10649
|
+
case Ol:
|
|
10650
10650
|
return i * e / r.components * r.byteLength;
|
|
10651
10651
|
case Ia:
|
|
10652
10652
|
return i * e / r.components * r.byteLength;
|
|
10653
|
-
case
|
|
10653
|
+
case Bl:
|
|
10654
10654
|
return i * e * 2 / r.components * r.byteLength;
|
|
10655
10655
|
case Na:
|
|
10656
10656
|
return i * e * 2 / r.components * r.byteLength;
|
|
10657
|
-
case
|
|
10657
|
+
case Fl:
|
|
10658
10658
|
return i * e * 3 / r.components * r.byteLength;
|
|
10659
10659
|
case jt:
|
|
10660
10660
|
return i * e * 4 / r.components * r.byteLength;
|
|
@@ -10715,7 +10715,7 @@ function Bo(i, e, t, n) {
|
|
|
10715
10715
|
case xa:
|
|
10716
10716
|
return Math.ceil(i / 4) * Math.ceil(e / 4) * 16;
|
|
10717
10717
|
// https://registry.khronos.org/webgl/extensions/EXT_texture_compression_rgtc/
|
|
10718
|
-
case
|
|
10718
|
+
case zl:
|
|
10719
10719
|
case Ma:
|
|
10720
10720
|
return Math.ceil(i / 4) * Math.ceil(e / 4) * 8;
|
|
10721
10721
|
case Sa:
|
|
@@ -10729,20 +10729,20 @@ function Bo(i, e, t, n) {
|
|
|
10729
10729
|
function $u(i) {
|
|
10730
10730
|
switch (i) {
|
|
10731
10731
|
case rn:
|
|
10732
|
-
case Dl:
|
|
10733
|
-
return { byteLength: 1, components: 1 };
|
|
10734
|
-
case Yi:
|
|
10735
10732
|
case Ll:
|
|
10736
|
-
|
|
10733
|
+
return { byteLength: 1, components: 1 };
|
|
10734
|
+
case ji:
|
|
10735
|
+
case Ul:
|
|
10736
|
+
case Qi:
|
|
10737
10737
|
return { byteLength: 2, components: 1 };
|
|
10738
10738
|
case La:
|
|
10739
10739
|
case Ua:
|
|
10740
10740
|
return { byteLength: 2, components: 4 };
|
|
10741
|
-
case
|
|
10741
|
+
case Kn:
|
|
10742
10742
|
case Da:
|
|
10743
10743
|
case _n:
|
|
10744
10744
|
return { byteLength: 4, components: 1 };
|
|
10745
|
-
case
|
|
10745
|
+
case Il:
|
|
10746
10746
|
return { byteLength: 4, components: 3 };
|
|
10747
10747
|
}
|
|
10748
10748
|
throw new Error(`Unknown texture type ${i}.`);
|
|
@@ -10756,7 +10756,7 @@ typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple insta
|
|
|
10756
10756
|
* Copyright 2010-2025 Three.js Authors
|
|
10757
10757
|
* SPDX-License-Identifier: MIT
|
|
10758
10758
|
*/
|
|
10759
|
-
function
|
|
10759
|
+
function rc() {
|
|
10760
10760
|
let i = null, e = !1, t = null, n = null;
|
|
10761
10761
|
function r(s, a) {
|
|
10762
10762
|
t(s, a), n = i.requestAnimationFrame(r);
|
|
@@ -14978,7 +14978,7 @@ Qt.physical = {
|
|
|
14978
14978
|
vertexShader: qe.meshphysical_vert,
|
|
14979
14979
|
fragmentShader: qe.meshphysical_frag
|
|
14980
14980
|
};
|
|
14981
|
-
const
|
|
14981
|
+
const Ar = { r: 0, b: 0, g: 0 }, Hn = /* @__PURE__ */ new sn(), Up = /* @__PURE__ */ new lt();
|
|
14982
14982
|
function Ip(i, e, t, n, r, s, a) {
|
|
14983
14983
|
const o = new je(0);
|
|
14984
14984
|
let l = s === !0 ? 0 : 1, c, h, u = null, d = 0, p = null;
|
|
@@ -14996,7 +14996,7 @@ function Ip(i, e, t, n, r, s, a) {
|
|
|
14996
14996
|
function m(E, S) {
|
|
14997
14997
|
const D = _(S);
|
|
14998
14998
|
D && (D.isCubeTexture || D.mapping === $r) ? (h === void 0 && (h = new Kt(
|
|
14999
|
-
new
|
|
14999
|
+
new nr(1, 1, 1),
|
|
15000
15000
|
new In({
|
|
15001
15001
|
name: "BackgroundCubeMaterial",
|
|
15002
15002
|
uniforms: Ri(Qt.backgroundCube.uniforms),
|
|
@@ -15034,7 +15034,7 @@ function Ip(i, e, t, n, r, s, a) {
|
|
|
15034
15034
|
}), r.update(c)), c.material.uniforms.t2D.value = D, c.material.uniforms.backgroundIntensity.value = S.backgroundIntensity, c.material.toneMapped = Je.getTransfer(D.colorSpace) !== nt, D.matrixAutoUpdate === !0 && D.updateMatrix(), c.material.uniforms.uvTransform.value.copy(D.matrix), (u !== D || d !== D.version || p !== i.toneMapping) && (c.material.needsUpdate = !0, u = D, d = D.version, p = i.toneMapping), c.layers.enableAll(), E.unshift(c, c.geometry, c.material, 0, 0, null));
|
|
15035
15035
|
}
|
|
15036
15036
|
function f(E, S) {
|
|
15037
|
-
E.getRGB(
|
|
15037
|
+
E.getRGB(Ar, Kl(i)), n.buffers.color.setClear(Ar.r, Ar.g, Ar.b, S, a);
|
|
15038
15038
|
}
|
|
15039
15039
|
function b() {
|
|
15040
15040
|
h !== void 0 && (h.geometry.dispose(), h.material.dispose(), h = void 0), c !== void 0 && (c.geometry.dispose(), c.material.dispose(), c = void 0);
|
|
@@ -15320,7 +15320,7 @@ function Op(i, e, t, n) {
|
|
|
15320
15320
|
return !(C !== jt && n.convert(C) !== i.getParameter(i.IMPLEMENTATION_COLOR_READ_FORMAT));
|
|
15321
15321
|
}
|
|
15322
15322
|
function o(C) {
|
|
15323
|
-
const L = C ===
|
|
15323
|
+
const L = C === Qi && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
|
|
15324
15324
|
return !(C !== rn && n.convert(C) !== i.getParameter(i.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
|
|
15325
15325
|
C !== _n && !L);
|
|
15326
15326
|
}
|
|
@@ -15441,15 +15441,15 @@ function zp(i) {
|
|
|
15441
15441
|
dispose: s
|
|
15442
15442
|
};
|
|
15443
15443
|
}
|
|
15444
|
-
const
|
|
15444
|
+
const gi = 4, zo = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Xn = 20, Ds = /* @__PURE__ */ new ic(), ko = /* @__PURE__ */ new je();
|
|
15445
15445
|
let Ls = null, Us = 0, Is = 0, Ns = !1;
|
|
15446
|
-
const Gn = (1 + Math.sqrt(5)) / 2,
|
|
15447
|
-
/* @__PURE__ */ new N(-Gn,
|
|
15448
|
-
/* @__PURE__ */ new N(Gn,
|
|
15449
|
-
/* @__PURE__ */ new N(-
|
|
15450
|
-
/* @__PURE__ */ new N(
|
|
15451
|
-
/* @__PURE__ */ new N(0, Gn, -
|
|
15452
|
-
/* @__PURE__ */ new N(0, Gn,
|
|
15446
|
+
const Gn = (1 + Math.sqrt(5)) / 2, mi = 1 / Gn, Ho = [
|
|
15447
|
+
/* @__PURE__ */ new N(-Gn, mi, 0),
|
|
15448
|
+
/* @__PURE__ */ new N(Gn, mi, 0),
|
|
15449
|
+
/* @__PURE__ */ new N(-mi, 0, Gn),
|
|
15450
|
+
/* @__PURE__ */ new N(mi, 0, Gn),
|
|
15451
|
+
/* @__PURE__ */ new N(0, Gn, -mi),
|
|
15452
|
+
/* @__PURE__ */ new N(0, Gn, mi),
|
|
15453
15453
|
/* @__PURE__ */ new N(-1, 1, -1),
|
|
15454
15454
|
/* @__PURE__ */ new N(1, 1, -1),
|
|
15455
15455
|
/* @__PURE__ */ new N(-1, 1, 1),
|
|
@@ -15544,7 +15544,7 @@ class Vo {
|
|
|
15544
15544
|
this._lodPlanes[e].dispose();
|
|
15545
15545
|
}
|
|
15546
15546
|
_cleanup(e) {
|
|
15547
|
-
this._renderer.setRenderTarget(Ls, Us, Is), this._renderer.xr.enabled = Ns, e.scissorTest = !1,
|
|
15547
|
+
this._renderer.setRenderTarget(Ls, Us, Is), this._renderer.xr.enabled = Ns, e.scissorTest = !1, wr(e, 0, 0, e.width, e.height);
|
|
15548
15548
|
}
|
|
15549
15549
|
_fromTexture(e, t) {
|
|
15550
15550
|
e.mapping === bi || e.mapping === Ai ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Ls = this._renderer.getRenderTarget(), Us = this._renderer.getActiveCubeFace(), Is = this._renderer.getActiveMipmapLevel(), Ns = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
|
|
@@ -15556,7 +15556,7 @@ class Vo {
|
|
|
15556
15556
|
magFilter: tn,
|
|
15557
15557
|
minFilter: tn,
|
|
15558
15558
|
generateMipmaps: !1,
|
|
15559
|
-
type:
|
|
15559
|
+
type: Qi,
|
|
15560
15560
|
format: jt,
|
|
15561
15561
|
colorSpace: wi,
|
|
15562
15562
|
depthBuffer: !1
|
|
@@ -15575,12 +15575,12 @@ class Vo {
|
|
|
15575
15575
|
_sceneToCubeUV(e, t, n, r, s) {
|
|
15576
15576
|
const l = new kt(90, 1, t, n), c = [1, -1, 1, 1, 1, 1], h = [1, 1, 1, -1, -1, -1], u = this._renderer, d = u.autoClear, p = u.toneMapping;
|
|
15577
15577
|
u.getClearColor(ko), u.toneMapping = Un, u.autoClear = !1;
|
|
15578
|
-
const _ = new
|
|
15578
|
+
const _ = new ql({
|
|
15579
15579
|
name: "PMREM.Background",
|
|
15580
15580
|
side: Dt,
|
|
15581
15581
|
depthWrite: !1,
|
|
15582
15582
|
depthTest: !1
|
|
15583
|
-
}), v = new Kt(new
|
|
15583
|
+
}), v = new Kt(new nr(), _);
|
|
15584
15584
|
let m = !1;
|
|
15585
15585
|
const f = e.background;
|
|
15586
15586
|
f ? f.isColor && (_.color.copy(f), e.background = null, m = !0) : (_.color.copy(ko), m = !0);
|
|
@@ -15588,7 +15588,7 @@ class Vo {
|
|
|
15588
15588
|
const E = b % 3;
|
|
15589
15589
|
E === 0 ? (l.up.set(0, c[b], 0), l.position.set(s.x, s.y, s.z), l.lookAt(s.x + h[b], s.y, s.z)) : E === 1 ? (l.up.set(0, 0, c[b]), l.position.set(s.x, s.y, s.z), l.lookAt(s.x, s.y + h[b], s.z)) : (l.up.set(0, c[b], 0), l.position.set(s.x, s.y, s.z), l.lookAt(s.x, s.y, s.z + h[b]));
|
|
15590
15590
|
const S = this._cubeSize;
|
|
15591
|
-
|
|
15591
|
+
wr(r, E * S, b > 2 ? S : 0, S, S), u.setRenderTarget(r), m && u.render(v, l), u.render(e, l);
|
|
15592
15592
|
}
|
|
15593
15593
|
v.geometry.dispose(), v.material.dispose(), u.toneMapping = p, u.autoClear = d, e.background = f;
|
|
15594
15594
|
}
|
|
@@ -15598,7 +15598,7 @@ class Vo {
|
|
|
15598
15598
|
const s = r ? this._cubemapMaterial : this._equirectMaterial, a = new Kt(this._lodPlanes[0], s), o = s.uniforms;
|
|
15599
15599
|
o.envMap.value = e;
|
|
15600
15600
|
const l = this._cubeSize;
|
|
15601
|
-
|
|
15601
|
+
wr(t, 0, 0, 3 * l, 2 * l), n.setRenderTarget(t), n.render(a, Ds);
|
|
15602
15602
|
}
|
|
15603
15603
|
_applyPMREM(e) {
|
|
15604
15604
|
const t = this._renderer, n = t.autoClear;
|
|
@@ -15662,19 +15662,19 @@ class Vo {
|
|
|
15662
15662
|
d.envMap.value = e.texture, d.samples.value = m, d.weights.value = f, d.latitudinal.value = a === "latitudinal", o && (d.poleAxis.value = o);
|
|
15663
15663
|
const { _lodMax: E } = this;
|
|
15664
15664
|
d.dTheta.value = _, d.mipInt.value = E - n;
|
|
15665
|
-
const S = this._sizeLods[r], D = 3 * S * (r > E -
|
|
15666
|
-
|
|
15665
|
+
const S = this._sizeLods[r], D = 3 * S * (r > E - gi ? r - E + gi : 0), R = 4 * (this._cubeSize - S);
|
|
15666
|
+
wr(t, D, R, 3 * S, 2 * S), l.setRenderTarget(t), l.render(u, Ds);
|
|
15667
15667
|
}
|
|
15668
15668
|
}
|
|
15669
15669
|
function Hp(i) {
|
|
15670
15670
|
const e = [], t = [], n = [];
|
|
15671
15671
|
let r = i;
|
|
15672
|
-
const s = i -
|
|
15672
|
+
const s = i - gi + 1 + zo.length;
|
|
15673
15673
|
for (let a = 0; a < s; a++) {
|
|
15674
15674
|
const o = Math.pow(2, r);
|
|
15675
15675
|
t.push(o);
|
|
15676
15676
|
let l = 1 / o;
|
|
15677
|
-
a > i -
|
|
15677
|
+
a > i - gi ? l = zo[a - i + gi - 1] : a === 0 && (l = 0), n.push(l);
|
|
15678
15678
|
const c = 1 / (o - 2), h = -c, u = 1 + c, d = [h, h, u, h, u, u, h, h, u, u, h, u], p = 6, _ = 6, v = 3, m = 2, f = 1, b = new Float32Array(v * _ * p), E = new Float32Array(m * _ * p), S = new Float32Array(f * _ * p);
|
|
15679
15679
|
for (let R = 0; R < p; R++) {
|
|
15680
15680
|
const C = R % 3 * 2 / 3 - 1, L = R > 2 ? 0 : -1, y = [
|
|
@@ -15702,15 +15702,15 @@ function Hp(i) {
|
|
|
15702
15702
|
S.set(x, f * _ * R);
|
|
15703
15703
|
}
|
|
15704
15704
|
const D = new $t();
|
|
15705
|
-
D.setAttribute("position", new nn(b, v)), D.setAttribute("uv", new nn(E, m)), D.setAttribute("faceIndex", new nn(S, f)), e.push(D), r >
|
|
15705
|
+
D.setAttribute("position", new nn(b, v)), D.setAttribute("uv", new nn(E, m)), D.setAttribute("faceIndex", new nn(S, f)), e.push(D), r > gi && r--;
|
|
15706
15706
|
}
|
|
15707
15707
|
return { lodPlanes: e, sizeLods: t, sigmas: n };
|
|
15708
15708
|
}
|
|
15709
15709
|
function Go(i, e, t) {
|
|
15710
|
-
const n = new
|
|
15710
|
+
const n = new $n(i, e, t);
|
|
15711
15711
|
return n.texture.mapping = $r, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
|
|
15712
15712
|
}
|
|
15713
|
-
function
|
|
15713
|
+
function wr(i, e, t, n, r) {
|
|
15714
15714
|
i.viewport.set(e, t, n, r), i.scissor.set(e, t, n, r);
|
|
15715
15715
|
}
|
|
15716
15716
|
function Vp(i, e, t) {
|
|
@@ -16047,7 +16047,7 @@ function Xp(i, e, t, n) {
|
|
|
16047
16047
|
}
|
|
16048
16048
|
} else
|
|
16049
16049
|
return;
|
|
16050
|
-
const m = new (
|
|
16050
|
+
const m = new (Vl(d) ? jl : Yl)(d, 1);
|
|
16051
16051
|
m.version = v;
|
|
16052
16052
|
const f = s.get(u);
|
|
16053
16053
|
f && e.remove(f), s.set(u, m);
|
|
@@ -16166,7 +16166,7 @@ function jp(i, e, t) {
|
|
|
16166
16166
|
p === !0 && (E = 1), _ === !0 && (E = 2), v === !0 && (E = 3);
|
|
16167
16167
|
let S = o.attributes.position.count * E, D = 1;
|
|
16168
16168
|
S > e.maxTextureSize && (D = Math.ceil(S / e.maxTextureSize), S = e.maxTextureSize);
|
|
16169
|
-
const R = new Float32Array(S * D * 4 * u), C = new
|
|
16169
|
+
const R = new Float32Array(S * D * 4 * u), C = new Gl(R, S, D, u);
|
|
16170
16170
|
C.type = _n, C.needsUpdate = !0;
|
|
16171
16171
|
const L = E * 4;
|
|
16172
16172
|
for (let x = 0; x < u; x++) {
|
|
@@ -16219,7 +16219,7 @@ function Kp(i, e, t, n) {
|
|
|
16219
16219
|
dispose: a
|
|
16220
16220
|
};
|
|
16221
16221
|
}
|
|
16222
|
-
const
|
|
16222
|
+
const sc = /* @__PURE__ */ new wt(), qo = /* @__PURE__ */ new Jl(1, 1), ac = /* @__PURE__ */ new Gl(), oc = /* @__PURE__ */ new mu(), lc = /* @__PURE__ */ new $l(), Yo = [], jo = [], Ko = new Float32Array(16), Zo = new Float32Array(9), $o = new Float32Array(4);
|
|
16223
16223
|
function Li(i, e, t) {
|
|
16224
16224
|
const n = i[0];
|
|
16225
16225
|
if (n <= 0 || n > 0) return i;
|
|
@@ -16378,19 +16378,19 @@ function um(i, e, t) {
|
|
|
16378
16378
|
const n = this.cache, r = t.allocateTextureUnit();
|
|
16379
16379
|
n[0] !== r && (i.uniform1i(this.addr, r), n[0] = r);
|
|
16380
16380
|
let s;
|
|
16381
|
-
this.type === i.SAMPLER_2D_SHADOW ? (qo.compareFunction =
|
|
16381
|
+
this.type === i.SAMPLER_2D_SHADOW ? (qo.compareFunction = Hl, s = qo) : s = sc, t.setTexture2D(e || s, r);
|
|
16382
16382
|
}
|
|
16383
16383
|
function fm(i, e, t) {
|
|
16384
16384
|
const n = this.cache, r = t.allocateTextureUnit();
|
|
16385
|
-
n[0] !== r && (i.uniform1i(this.addr, r), n[0] = r), t.setTexture3D(e ||
|
|
16385
|
+
n[0] !== r && (i.uniform1i(this.addr, r), n[0] = r), t.setTexture3D(e || oc, r);
|
|
16386
16386
|
}
|
|
16387
16387
|
function dm(i, e, t) {
|
|
16388
16388
|
const n = this.cache, r = t.allocateTextureUnit();
|
|
16389
|
-
n[0] !== r && (i.uniform1i(this.addr, r), n[0] = r), t.setTextureCube(e ||
|
|
16389
|
+
n[0] !== r && (i.uniform1i(this.addr, r), n[0] = r), t.setTextureCube(e || lc, r);
|
|
16390
16390
|
}
|
|
16391
16391
|
function pm(i, e, t) {
|
|
16392
16392
|
const n = this.cache, r = t.allocateTextureUnit();
|
|
16393
|
-
n[0] !== r && (i.uniform1i(this.addr, r), n[0] = r), t.setTexture2DArray(e ||
|
|
16393
|
+
n[0] !== r && (i.uniform1i(this.addr, r), n[0] = r), t.setTexture2DArray(e || ac, r);
|
|
16394
16394
|
}
|
|
16395
16395
|
function mm(i) {
|
|
16396
16396
|
switch (i) {
|
|
@@ -16532,25 +16532,25 @@ function Dm(i, e, t) {
|
|
|
16532
16532
|
const n = this.cache, r = e.length, s = es(t, r);
|
|
16533
16533
|
mt(n, s) || (i.uniform1iv(this.addr, s), _t(n, s));
|
|
16534
16534
|
for (let a = 0; a !== r; ++a)
|
|
16535
|
-
t.setTexture2D(e[a] ||
|
|
16535
|
+
t.setTexture2D(e[a] || sc, s[a]);
|
|
16536
16536
|
}
|
|
16537
16537
|
function Lm(i, e, t) {
|
|
16538
16538
|
const n = this.cache, r = e.length, s = es(t, r);
|
|
16539
16539
|
mt(n, s) || (i.uniform1iv(this.addr, s), _t(n, s));
|
|
16540
16540
|
for (let a = 0; a !== r; ++a)
|
|
16541
|
-
t.setTexture3D(e[a] ||
|
|
16541
|
+
t.setTexture3D(e[a] || oc, s[a]);
|
|
16542
16542
|
}
|
|
16543
16543
|
function Um(i, e, t) {
|
|
16544
16544
|
const n = this.cache, r = e.length, s = es(t, r);
|
|
16545
16545
|
mt(n, s) || (i.uniform1iv(this.addr, s), _t(n, s));
|
|
16546
16546
|
for (let a = 0; a !== r; ++a)
|
|
16547
|
-
t.setTextureCube(e[a] ||
|
|
16547
|
+
t.setTextureCube(e[a] || lc, s[a]);
|
|
16548
16548
|
}
|
|
16549
16549
|
function Im(i, e, t) {
|
|
16550
16550
|
const n = this.cache, r = e.length, s = es(t, r);
|
|
16551
16551
|
mt(n, s) || (i.uniform1iv(this.addr, s), _t(n, s));
|
|
16552
16552
|
for (let a = 0; a !== r; ++a)
|
|
16553
|
-
t.setTexture2DArray(e[a] ||
|
|
16553
|
+
t.setTexture2DArray(e[a] || ac, s[a]);
|
|
16554
16554
|
}
|
|
16555
16555
|
function Nm(i) {
|
|
16556
16556
|
switch (i) {
|
|
@@ -16791,10 +16791,10 @@ function Xm(i, e) {
|
|
|
16791
16791
|
}
|
|
16792
16792
|
return "vec3 " + i + "( vec3 color ) { return " + t + "ToneMapping( color ); }";
|
|
16793
16793
|
}
|
|
16794
|
-
const
|
|
16794
|
+
const Rr = /* @__PURE__ */ new N();
|
|
16795
16795
|
function qm() {
|
|
16796
|
-
Je.getLuminanceCoefficients(
|
|
16797
|
-
const i =
|
|
16796
|
+
Je.getLuminanceCoefficients(Rr);
|
|
16797
|
+
const i = Rr.x.toFixed(4), e = Rr.y.toFixed(4), t = Rr.z.toFixed(4);
|
|
16798
16798
|
return [
|
|
16799
16799
|
"float luminance( const in vec3 rgb ) {",
|
|
16800
16800
|
` const vec3 weights = vec3( ${i}, ${e}, ${t} );`,
|
|
@@ -16894,7 +16894,7 @@ function sl(i) {
|
|
|
16894
16894
|
}
|
|
16895
16895
|
function t_(i) {
|
|
16896
16896
|
let e = "SHADOWMAP_TYPE_BASIC";
|
|
16897
|
-
return i.shadowMapType ===
|
|
16897
|
+
return i.shadowMapType === Pl ? e = "SHADOWMAP_TYPE_PCF" : i.shadowMapType === xh ? e = "SHADOWMAP_TYPE_PCF_SOFT" : i.shadowMapType === dn && (e = "SHADOWMAP_TYPE_VSM"), e;
|
|
16898
16898
|
}
|
|
16899
16899
|
function n_(i) {
|
|
16900
16900
|
let e = "ENVMAP_TYPE_CUBE";
|
|
@@ -17296,7 +17296,7 @@ class c_ {
|
|
|
17296
17296
|
}
|
|
17297
17297
|
}
|
|
17298
17298
|
function h_(i, e, t, n, r, s, a) {
|
|
17299
|
-
const o = new
|
|
17299
|
+
const o = new Wl(), l = new l_(), c = /* @__PURE__ */ new Set(), h = [], u = r.logarithmicDepthBuffer, d = r.vertexTextures;
|
|
17300
17300
|
let p = r.precision;
|
|
17301
17301
|
const _ = {
|
|
17302
17302
|
MeshDepthMaterial: "depth",
|
|
@@ -17365,7 +17365,7 @@ function h_(i, e, t, n, r, s, a) {
|
|
|
17365
17365
|
displacementMap: d && fe,
|
|
17366
17366
|
emissiveMap: Oe,
|
|
17367
17367
|
normalMapObjectSpace: Ee && y.normalMapType === Zh,
|
|
17368
|
-
normalMapTangentSpace: Ee && y.normalMapType ===
|
|
17368
|
+
normalMapTangentSpace: Ee && y.normalMapType === kl,
|
|
17369
17369
|
metalnessMap: Ce,
|
|
17370
17370
|
roughnessMap: Be,
|
|
17371
17371
|
anisotropy: at,
|
|
@@ -17937,7 +17937,7 @@ function y_(i, e, t) {
|
|
|
17937
17937
|
)
|
|
17938
17938
|
);
|
|
17939
17939
|
const v = new Kt(_, d), m = this;
|
|
17940
|
-
this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type =
|
|
17940
|
+
this.enabled = !1, this.autoUpdate = !0, this.needsUpdate = !1, this.type = Pl;
|
|
17941
17941
|
let f = this.type;
|
|
17942
17942
|
this.render = function(R, C, L) {
|
|
17943
17943
|
if (m.enabled === !1 || m.autoUpdate === !1 && m.needsUpdate === !1 || R.length === 0) return;
|
|
@@ -17955,7 +17955,7 @@ function y_(i, e, t) {
|
|
|
17955
17955
|
const de = V.getFrameExtents();
|
|
17956
17956
|
if (r.multiply(de), s.copy(V.mapSize), (r.x > h || r.y > h) && (r.x > h && (s.x = Math.floor(h / de.x), r.x = s.x * de.x, V.mapSize.x = s.x), r.y > h && (s.y = Math.floor(h / de.y), r.y = s.y * de.y, V.mapSize.y = s.y)), V.map === null || H === !0 || q === !0) {
|
|
17957
17957
|
const se = this.type !== dn ? { minFilter: Zt, magFilter: Zt } : {};
|
|
17958
|
-
V.map !== null && V.map.dispose(), V.map = new
|
|
17958
|
+
V.map !== null && V.map.dispose(), V.map = new $n(r.x, r.y, se), V.map.texture.name = ie.name + ".shadowMap", V.camera.updateProjectionMatrix();
|
|
17959
17959
|
}
|
|
17960
17960
|
i.setRenderTarget(V.map), i.clear();
|
|
17961
17961
|
const xe = V.getViewportCount();
|
|
@@ -17974,7 +17974,7 @@ function y_(i, e, t) {
|
|
|
17974
17974
|
};
|
|
17975
17975
|
function b(R, C) {
|
|
17976
17976
|
const L = e.update(v);
|
|
17977
|
-
d.defines.VSM_SAMPLES !== R.blurSamples && (d.defines.VSM_SAMPLES = R.blurSamples, p.defines.VSM_SAMPLES = R.blurSamples, d.needsUpdate = !0, p.needsUpdate = !0), R.mapPass === null && (R.mapPass = new
|
|
17977
|
+
d.defines.VSM_SAMPLES !== R.blurSamples && (d.defines.VSM_SAMPLES = R.blurSamples, p.defines.VSM_SAMPLES = R.blurSamples, d.needsUpdate = !0, p.needsUpdate = !0), R.mapPass === null && (R.mapPass = new $n(r.x, r.y)), d.uniforms.shadow_pass.value = R.map.texture, d.uniforms.resolution.value = R.mapSize, d.uniforms.radius.value = R.radius, i.setRenderTarget(R.mapPass), i.clear(), i.renderBufferDirect(C, null, L, d, v, null), p.uniforms.shadow_pass.value = R.mapPass.texture, p.uniforms.resolution.value = R.mapSize, p.uniforms.radius.value = R.radius, i.setRenderTarget(R.map), i.clear(), i.renderBufferDirect(C, null, L, p, v, null);
|
|
17978
17978
|
}
|
|
17979
17979
|
function E(R, C, L, y) {
|
|
17980
17980
|
let x = null;
|
|
@@ -18435,7 +18435,7 @@ function b_(i, e, t, n, r, s, a) {
|
|
|
18435
18435
|
return p ? (
|
|
18436
18436
|
// eslint-disable-next-line compat/compat
|
|
18437
18437
|
new OffscreenCanvas(T, g)
|
|
18438
|
-
) :
|
|
18438
|
+
) : Ji("canvas");
|
|
18439
18439
|
}
|
|
18440
18440
|
function v(T, g, F) {
|
|
18441
18441
|
let G = 1;
|
|
@@ -18473,7 +18473,7 @@ function b_(i, e, t, n, r, s, a) {
|
|
|
18473
18473
|
}
|
|
18474
18474
|
function S(T, g) {
|
|
18475
18475
|
let F;
|
|
18476
|
-
return T ? g === null || g ===
|
|
18476
|
+
return T ? g === null || g === Kn || g === Ki ? F = i.DEPTH24_STENCIL8 : g === _n ? F = i.DEPTH32F_STENCIL8 : g === ji && (F = i.DEPTH24_STENCIL8, console.warn("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : g === null || g === Kn || g === Ki ? F = i.DEPTH_COMPONENT24 : g === _n ? F = i.DEPTH_COMPONENT32F : g === ji && (F = i.DEPTH_COMPONENT16), F;
|
|
18477
18477
|
}
|
|
18478
18478
|
function D(T, g) {
|
|
18479
18479
|
return m(T) === !0 || T.isFramebufferTexture && T.minFilter !== Zt && T.minFilter !== tn ? Math.log2(Math.max(g.width, g.height)) + 1 : T.mipmaps !== void 0 && T.mipmaps.length > 0 ? T.mipmaps.length : T.isCompressedTexture && Array.isArray(T.image) ? g.mipmaps.length : 1;
|
|
@@ -18587,7 +18587,7 @@ function b_(i, e, t, n, r, s, a) {
|
|
|
18587
18587
|
}, xe = {
|
|
18588
18588
|
[Zt]: i.NEAREST,
|
|
18589
18589
|
[Yh]: i.NEAREST_MIPMAP_NEAREST,
|
|
18590
|
-
[
|
|
18590
|
+
[rr]: i.NEAREST_MIPMAP_LINEAR,
|
|
18591
18591
|
[tn]: i.LINEAR,
|
|
18592
18592
|
[rs]: i.LINEAR_MIPMAP_NEAREST,
|
|
18593
18593
|
[Yn]: i.LINEAR_MIPMAP_LINEAR
|
|
@@ -18595,15 +18595,15 @@ function b_(i, e, t, n, r, s, a) {
|
|
|
18595
18595
|
[$h]: i.NEVER,
|
|
18596
18596
|
[iu]: i.ALWAYS,
|
|
18597
18597
|
[Jh]: i.LESS,
|
|
18598
|
-
[
|
|
18598
|
+
[Hl]: i.LEQUAL,
|
|
18599
18599
|
[Qh]: i.EQUAL,
|
|
18600
18600
|
[nu]: i.GEQUAL,
|
|
18601
18601
|
[eu]: i.GREATER,
|
|
18602
18602
|
[tu]: i.NOTEQUAL
|
|
18603
18603
|
};
|
|
18604
18604
|
function ke(T, g) {
|
|
18605
|
-
if (g.type === _n && e.has("OES_texture_float_linear") === !1 && (g.magFilter === tn || g.magFilter === rs || g.magFilter ===
|
|
18606
|
-
if (g.magFilter === Zt || g.minFilter !==
|
|
18605
|
+
if (g.type === _n && e.has("OES_texture_float_linear") === !1 && (g.magFilter === tn || g.magFilter === rs || g.magFilter === rr || g.magFilter === Yn || g.minFilter === tn || g.minFilter === rs || g.minFilter === rr || g.minFilter === Yn) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), i.texParameteri(T, i.TEXTURE_WRAP_S, de[g.wrapS]), i.texParameteri(T, i.TEXTURE_WRAP_T, de[g.wrapT]), (T === i.TEXTURE_3D || T === i.TEXTURE_2D_ARRAY) && i.texParameteri(T, i.TEXTURE_WRAP_R, de[g.wrapR]), i.texParameteri(T, i.TEXTURE_MAG_FILTER, xe[g.magFilter]), i.texParameteri(T, i.TEXTURE_MIN_FILTER, xe[g.minFilter]), g.compareFunction && (i.texParameteri(T, i.TEXTURE_COMPARE_MODE, i.COMPARE_REF_TO_TEXTURE), i.texParameteri(T, i.TEXTURE_COMPARE_FUNC, se[g.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
|
|
18606
|
+
if (g.magFilter === Zt || g.minFilter !== rr && g.minFilter !== Yn || g.type === _n && e.has("OES_texture_float_linear") === !1) return;
|
|
18607
18607
|
if (g.anisotropy > 1 || n.get(g).__currentAnisotropy) {
|
|
18608
18608
|
const F = e.get("EXT_texture_filter_anisotropic");
|
|
18609
18609
|
i.texParameterf(T, F.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(g.anisotropy, r.getMaxAnisotropy())), n.get(g).__currentAnisotropy = g.anisotropy;
|
|
@@ -18672,7 +18672,7 @@ function b_(i, e, t, n, r, s, a) {
|
|
|
18672
18672
|
let he;
|
|
18673
18673
|
const Ne = g.mipmaps, w = g.isVideoTexture !== !0, le = Ae.__version === void 0 || Z === !0, $ = X.dataReady, ve = D(g, ee);
|
|
18674
18674
|
if (g.isDepthTexture)
|
|
18675
|
-
De = S(g.format ===
|
|
18675
|
+
De = S(g.format === $i, g.type), le && (w ? t.texStorage2D(i.TEXTURE_2D, 1, De, ee.width, ee.height) : t.texImage2D(i.TEXTURE_2D, 0, De, ee.width, ee.height, 0, Me, Le, null));
|
|
18676
18676
|
else if (g.isDataTexture)
|
|
18677
18677
|
if (Ne.length > 0) {
|
|
18678
18678
|
w && le && t.texStorage2D(i.TEXTURE_2D, ve, De, Ne[0].width, Ne[0].height);
|
|
@@ -18838,9 +18838,9 @@ function b_(i, e, t, n, r, s, a) {
|
|
|
18838
18838
|
const G = n.get(g.depthTexture);
|
|
18839
18839
|
G.__renderTarget = g, (!G.__webglTexture || g.depthTexture.image.width !== g.width || g.depthTexture.image.height !== g.height) && (g.depthTexture.image.width = g.width, g.depthTexture.image.height = g.height, g.depthTexture.needsUpdate = !0), ne(g.depthTexture, 0);
|
|
18840
18840
|
const Z = G.__webglTexture, X = fe(g);
|
|
18841
|
-
if (g.depthTexture.format ===
|
|
18841
|
+
if (g.depthTexture.format === Zi)
|
|
18842
18842
|
Oe(g) ? o.framebufferTexture2DMultisampleEXT(i.FRAMEBUFFER, i.DEPTH_ATTACHMENT, i.TEXTURE_2D, Z, 0, X) : i.framebufferTexture2D(i.FRAMEBUFFER, i.DEPTH_ATTACHMENT, i.TEXTURE_2D, Z, 0);
|
|
18843
|
-
else if (g.depthTexture.format ===
|
|
18843
|
+
else if (g.depthTexture.format === $i)
|
|
18844
18844
|
Oe(g) ? o.framebufferTexture2DMultisampleEXT(i.FRAMEBUFFER, i.DEPTH_STENCIL_ATTACHMENT, i.TEXTURE_2D, Z, 0, X) : i.framebufferTexture2D(i.FRAMEBUFFER, i.DEPTH_STENCIL_ATTACHMENT, i.TEXTURE_2D, Z, 0);
|
|
18845
18845
|
else
|
|
18846
18846
|
throw new Error("Unknown depthTexture format");
|
|
@@ -19018,22 +19018,22 @@ function A_(i, e) {
|
|
|
19018
19018
|
if (n === rn) return i.UNSIGNED_BYTE;
|
|
19019
19019
|
if (n === La) return i.UNSIGNED_SHORT_4_4_4_4;
|
|
19020
19020
|
if (n === Ua) return i.UNSIGNED_SHORT_5_5_5_1;
|
|
19021
|
-
if (n ===
|
|
19022
|
-
if (n ===
|
|
19023
|
-
if (n ===
|
|
19024
|
-
if (n ===
|
|
19021
|
+
if (n === Il) return i.UNSIGNED_INT_5_9_9_9_REV;
|
|
19022
|
+
if (n === Ll) return i.BYTE;
|
|
19023
|
+
if (n === Ul) return i.SHORT;
|
|
19024
|
+
if (n === ji) return i.UNSIGNED_SHORT;
|
|
19025
19025
|
if (n === Da) return i.INT;
|
|
19026
|
-
if (n ===
|
|
19026
|
+
if (n === Kn) return i.UNSIGNED_INT;
|
|
19027
19027
|
if (n === _n) return i.FLOAT;
|
|
19028
|
-
if (n ===
|
|
19029
|
-
if (n ===
|
|
19030
|
-
if (n ===
|
|
19028
|
+
if (n === Qi) return i.HALF_FLOAT;
|
|
19029
|
+
if (n === Nl) return i.ALPHA;
|
|
19030
|
+
if (n === Fl) return i.RGB;
|
|
19031
19031
|
if (n === jt) return i.RGBA;
|
|
19032
|
-
if (n ===
|
|
19033
|
-
if (n ===
|
|
19034
|
-
if (n ===
|
|
19032
|
+
if (n === Zi) return i.DEPTH_COMPONENT;
|
|
19033
|
+
if (n === $i) return i.DEPTH_STENCIL;
|
|
19034
|
+
if (n === Ol) return i.RED;
|
|
19035
19035
|
if (n === Ia) return i.RED_INTEGER;
|
|
19036
|
-
if (n ===
|
|
19036
|
+
if (n === Bl) return i.RG;
|
|
19037
19037
|
if (n === Na) return i.RG_INTEGER;
|
|
19038
19038
|
if (n === Fa) return i.RGBA_INTEGER;
|
|
19039
19039
|
if (n === Lr || n === Ur || n === Ir || n === Nr)
|
|
@@ -19091,7 +19091,7 @@ function A_(i, e) {
|
|
|
19091
19091
|
if (n === xa) return s.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT;
|
|
19092
19092
|
} else
|
|
19093
19093
|
return null;
|
|
19094
|
-
if (n ===
|
|
19094
|
+
if (n === zl || n === Ma || n === Sa || n === ya)
|
|
19095
19095
|
if (s = e.get("EXT_texture_compression_rgtc"), s !== null) {
|
|
19096
19096
|
if (n === Fr) return s.COMPRESSED_RED_RGTC1_EXT;
|
|
19097
19097
|
if (n === Ma) return s.COMPRESSED_SIGNED_RED_RGTC1_EXT;
|
|
@@ -19099,7 +19099,7 @@ function A_(i, e) {
|
|
|
19099
19099
|
if (n === ya) return s.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT;
|
|
19100
19100
|
} else
|
|
19101
19101
|
return null;
|
|
19102
|
-
return n ===
|
|
19102
|
+
return n === Ki ? i.UNSIGNED_INT_24_8 : i[n] !== void 0 ? i[n] : null;
|
|
19103
19103
|
}
|
|
19104
19104
|
return { convert: t };
|
|
19105
19105
|
}
|
|
@@ -19184,7 +19184,7 @@ class C_ {
|
|
|
19184
19184
|
return this.texture;
|
|
19185
19185
|
}
|
|
19186
19186
|
}
|
|
19187
|
-
class P_ extends
|
|
19187
|
+
class P_ extends Jn {
|
|
19188
19188
|
/**
|
|
19189
19189
|
* Constructs a new WebGL renderer.
|
|
19190
19190
|
*
|
|
@@ -19250,19 +19250,19 @@ class P_ extends $n {
|
|
|
19250
19250
|
if (r = Y, r !== null) {
|
|
19251
19251
|
if (f = e.getRenderTarget(), r.addEventListener("select", H), r.addEventListener("selectstart", H), r.addEventListener("selectend", H), r.addEventListener("squeeze", H), r.addEventListener("squeezestart", H), r.addEventListener("squeezeend", H), r.addEventListener("end", q), r.addEventListener("inputsourceschange", ne), m.xrCompatible !== !0 && await t.makeXRCompatible(), R = e.getPixelRatio(), e.getSize(D), typeof XRWebGLBinding < "u" && "createProjectionLayer" in XRWebGLBinding.prototype) {
|
|
19252
19252
|
let Re = null, ge = null, k = null;
|
|
19253
|
-
m.depth && (k = m.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, Re = m.stencil ?
|
|
19253
|
+
m.depth && (k = m.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, Re = m.stencil ? $i : Zi, ge = m.stencil ? Ki : Kn);
|
|
19254
19254
|
const ae = {
|
|
19255
19255
|
colorFormat: t.RGBA8,
|
|
19256
19256
|
depthFormat: k,
|
|
19257
19257
|
scaleFactor: s
|
|
19258
19258
|
};
|
|
19259
|
-
u = new XRWebGLBinding(r, t), d = u.createProjectionLayer(ae), r.updateRenderState({ layers: [d] }), e.setPixelRatio(1), e.setSize(d.textureWidth, d.textureHeight, !1), b = new
|
|
19259
|
+
u = new XRWebGLBinding(r, t), d = u.createProjectionLayer(ae), r.updateRenderState({ layers: [d] }), e.setPixelRatio(1), e.setSize(d.textureWidth, d.textureHeight, !1), b = new $n(
|
|
19260
19260
|
d.textureWidth,
|
|
19261
19261
|
d.textureHeight,
|
|
19262
19262
|
{
|
|
19263
19263
|
format: jt,
|
|
19264
19264
|
type: rn,
|
|
19265
|
-
depthTexture: new
|
|
19265
|
+
depthTexture: new Jl(d.textureWidth, d.textureHeight, ge, void 0, void 0, void 0, void 0, void 0, void 0, Re),
|
|
19266
19266
|
stencilBuffer: m.stencil,
|
|
19267
19267
|
colorSpace: e.outputColorSpace,
|
|
19268
19268
|
samples: m.antialias ? 4 : 0,
|
|
@@ -19278,7 +19278,7 @@ class P_ extends $n {
|
|
|
19278
19278
|
stencil: m.stencil,
|
|
19279
19279
|
framebufferScaleFactor: s
|
|
19280
19280
|
};
|
|
19281
|
-
p = new XRWebGLLayer(r, t, Re), r.updateRenderState({ baseLayer: p }), e.setPixelRatio(1), e.setSize(p.framebufferWidth, p.framebufferHeight, !1), b = new
|
|
19281
|
+
p = new XRWebGLLayer(r, t, Re), r.updateRenderState({ baseLayer: p }), e.setPixelRatio(1), e.setSize(p.framebufferWidth, p.framebufferHeight, !1), b = new $n(
|
|
19282
19282
|
p.framebufferWidth,
|
|
19283
19283
|
p.framebufferHeight,
|
|
19284
19284
|
{
|
|
@@ -19399,7 +19399,7 @@ class P_ extends $n {
|
|
|
19399
19399
|
}
|
|
19400
19400
|
se && se(Y, ce), ce.detectedPlanes && n.dispatchEvent({ type: "planesdetected", data: ce }), _ = null;
|
|
19401
19401
|
}
|
|
19402
|
-
const Ye = new
|
|
19402
|
+
const Ye = new rc();
|
|
19403
19403
|
Ye.setAnimationLoop(ke), this.setAnimationLoop = function(Y) {
|
|
19404
19404
|
se = Y;
|
|
19405
19405
|
}, this.dispose = function() {
|
|
@@ -19412,7 +19412,7 @@ function L_(i, e) {
|
|
|
19412
19412
|
m.matrixAutoUpdate === !0 && m.updateMatrix(), f.value.copy(m.matrix);
|
|
19413
19413
|
}
|
|
19414
19414
|
function n(m, f) {
|
|
19415
|
-
f.color.getRGB(m.fogColor.value,
|
|
19415
|
+
f.color.getRGB(m.fogColor.value, Kl(i)), f.isFog ? (m.fogNear.value = f.near, m.fogFar.value = f.far) : f.isFogExp2 && (m.fogDensity.value = f.density);
|
|
19416
19416
|
}
|
|
19417
19417
|
function r(m, f, b, E, S) {
|
|
19418
19418
|
f.isMeshBasicMaterial || f.isMeshLambertMaterial ? s(m, f) : f.isMeshToonMaterial ? (s(m, f), u(m, f)) : f.isMeshPhongMaterial ? (s(m, f), h(m, f)) : f.isMeshStandardMaterial ? (s(m, f), d(m, f), f.isMeshPhysicalMaterial && p(m, f, S)) : f.isMeshMatcapMaterial ? (s(m, f), _(m, f)) : f.isMeshDepthMaterial ? s(m, f) : f.isMeshDistanceMaterial ? (s(m, f), v(m, f)) : f.isMeshNormalMaterial ? s(m, f) : f.isLineBasicMaterial ? (a(m, f), f.isLineDashedMaterial && o(m, f)) : f.isPointsMaterial ? l(m, f, b, E) : f.isSpriteMaterial ? c(m, f) : f.isShadowMaterial ? (m.color.value.copy(f.color), m.opacity.value = f.opacity) : f.isShaderMaterial && (f.uniformsNeedUpdate = !1);
|
|
@@ -19712,7 +19712,7 @@ class I_ {
|
|
|
19712
19712
|
I = oe === Fa || oe === Na || oe === Ia;
|
|
19713
19713
|
}
|
|
19714
19714
|
if (I) {
|
|
19715
|
-
const oe = L.texture.type, _e = oe === rn || oe ===
|
|
19715
|
+
const oe = L.texture.type, _e = oe === rn || oe === Kn || oe === ji || oe === Ki || oe === La || oe === Ua, be = ee.getClearColor(), ye = ee.getClearAlpha(), Fe = be.r, ze = be.g, Pe = be.b;
|
|
19716
19716
|
_e ? (_[0] = Fe, _[1] = ze, _[2] = Pe, _[3] = ye, A.clearBufferuiv(A.COLOR, 0, _)) : (v[0] = Fe, v[1] = ze, v[2] = Pe, v[3] = ye, A.clearBufferiv(A.COLOR, 0, v));
|
|
19717
19717
|
} else
|
|
19718
19718
|
z |= A.COLOR_BUFFER_BIT;
|
|
@@ -19753,7 +19753,7 @@ class I_ {
|
|
|
19753
19753
|
}
|
|
19754
19754
|
this.renderBufferDirect = function(M, U, B, z, I, oe) {
|
|
19755
19755
|
U === null && (U = Se);
|
|
19756
|
-
const _e = I.isMesh && I.matrixWorld.determinant() < 0, be =
|
|
19756
|
+
const _e = I.isMesh && I.matrixWorld.determinant() < 0, be = mc(M, U, B, z, I);
|
|
19757
19757
|
fe.setMaterial(z, _e);
|
|
19758
19758
|
let ye = B.index, Fe = 1;
|
|
19759
19759
|
if (z.wireframe === !0) {
|
|
@@ -19779,9 +19779,9 @@ class I_ {
|
|
|
19779
19779
|
else if (Ve.get("WEBGL_multi_draw"))
|
|
19780
19780
|
Qe.renderMultiDraw(I._multiDrawStarts, I._multiDrawCounts, I._multiDrawCount);
|
|
19781
19781
|
else {
|
|
19782
|
-
const Ue = I._multiDrawStarts, xt = I._multiDrawCounts, et = I._multiDrawCount, Vt = ye ? g.get(ye).bytesPerElement : 1,
|
|
19782
|
+
const Ue = I._multiDrawStarts, xt = I._multiDrawCounts, et = I._multiDrawCount, Vt = ye ? g.get(ye).bytesPerElement : 1, ti = Ce.get(z).currentProgram.getUniforms();
|
|
19783
19783
|
for (let Lt = 0; Lt < et; Lt++)
|
|
19784
|
-
|
|
19784
|
+
ti.setValue(A, "_gl_DrawID", Lt), Qe.render(Ue[Lt] / Vt, xt[Lt]);
|
|
19785
19785
|
}
|
|
19786
19786
|
else if (I.isInstancedMesh)
|
|
19787
19787
|
Qe.renderInstances($e, ct, I.count);
|
|
@@ -19839,7 +19839,7 @@ class I_ {
|
|
|
19839
19839
|
function Ui() {
|
|
19840
19840
|
Jt.start();
|
|
19841
19841
|
}
|
|
19842
|
-
const Jt = new
|
|
19842
|
+
const Jt = new rc();
|
|
19843
19843
|
Jt.setAnimationLoop(ft), typeof self < "u" && Jt.setContext(self), this.setAnimationLoop = function(M) {
|
|
19844
19844
|
rt = M, $.setAnimationLoop(M), M === null ? Jt.stop() : Jt.start();
|
|
19845
19845
|
}, $.addEventListener("sessionstart", Nt), $.addEventListener("sessionend", Ui), this.render = function(M, U) {
|
|
@@ -19850,9 +19850,9 @@ class I_ {
|
|
|
19850
19850
|
if (D === !0) return;
|
|
19851
19851
|
if (M.matrixWorldAutoUpdate === !0 && M.updateMatrixWorld(), U.parent === null && U.matrixWorldAutoUpdate === !0 && U.updateMatrixWorld(), $.enabled === !0 && $.isPresenting === !0 && ($.cameraAutoUpdate === !0 && $.updateCamera(U), U = $.getCamera()), M.isScene === !0 && M.onBeforeRender(S, M, U, L), f = ue.get(M, E.length), f.init(U), E.push(f), k.multiplyMatrices(U.projectionMatrix, U.matrixWorldInverse), Y.setFromProjectionMatrix(k), Re = this.localClippingEnabled, ce = Te.init(this.clippingPlanes, Re), m = Ae.get(M, b.length), m.init(), b.push(m), $.enabled === !0 && $.isPresenting === !0) {
|
|
19852
19852
|
const oe = S.xr.getDepthSensingMesh();
|
|
19853
|
-
oe !== null &&
|
|
19853
|
+
oe !== null && Qn(oe, U, -1 / 0, S.sortObjects);
|
|
19854
19854
|
}
|
|
19855
|
-
|
|
19855
|
+
Qn(M, U, 0, S.sortObjects), m.finish(), S.sortObjects === !0 && m.sort(de, xe), pe = $.enabled === !1 || $.isPresenting === !1 || $.hasDepthSensing() === !1, pe && ee.addToRenderList(m, M), this.info.render.frame++, ce === !0 && Te.beginShadows();
|
|
19856
19856
|
const B = f.state.shadowsArray;
|
|
19857
19857
|
we.render(B, M, U), ce === !0 && Te.endShadows(), this.info.autoReset === !0 && this.info.reset();
|
|
19858
19858
|
const z = m.opaque, I = m.transmissive;
|
|
@@ -19872,7 +19872,7 @@ class I_ {
|
|
|
19872
19872
|
I.length > 0 && Ni(z, I, M, U), pe && ee.render(M), Ii(m, M, U);
|
|
19873
19873
|
L !== null && C === 0 && (Be.updateMultisampleRenderTarget(L), Be.updateRenderTargetMipmap(L)), M.isScene === !0 && M.onAfterRender(S, M, U), Ne.resetDefaultState(), y = -1, x = null, E.pop(), E.length > 0 ? (f = E[E.length - 1], ce === !0 && Te.setGlobalState(S.clippingPlanes, f.state.camera)) : f = null, b.pop(), b.length > 0 ? m = b[b.length - 1] : m = null;
|
|
19874
19874
|
};
|
|
19875
|
-
function
|
|
19875
|
+
function Qn(M, U, B, z) {
|
|
19876
19876
|
if (M.visible === !1) return;
|
|
19877
19877
|
if (M.layers.test(U.layers)) {
|
|
19878
19878
|
if (M.isGroup)
|
|
@@ -19900,7 +19900,7 @@ class I_ {
|
|
|
19900
19900
|
}
|
|
19901
19901
|
const oe = M.children;
|
|
19902
19902
|
for (let _e = 0, be = oe.length; _e < be; _e++)
|
|
19903
|
-
|
|
19903
|
+
Qn(oe[_e], U, B, z);
|
|
19904
19904
|
}
|
|
19905
19905
|
function Ii(M, U, B, z) {
|
|
19906
19906
|
const I = M.opaque, oe = M.transmissive, _e = M.transparent;
|
|
@@ -19909,9 +19909,9 @@ class I_ {
|
|
|
19909
19909
|
function Ni(M, U, B, z) {
|
|
19910
19910
|
if ((B.isScene === !0 ? B.overrideMaterial : null) !== null)
|
|
19911
19911
|
return;
|
|
19912
|
-
f.state.transmissionRenderTarget[z.id] === void 0 && (f.state.transmissionRenderTarget[z.id] = new
|
|
19912
|
+
f.state.transmissionRenderTarget[z.id] === void 0 && (f.state.transmissionRenderTarget[z.id] = new $n(1, 1, {
|
|
19913
19913
|
generateMipmaps: !0,
|
|
19914
|
-
type: Ve.has("EXT_color_buffer_half_float") || Ve.has("EXT_color_buffer_float") ?
|
|
19914
|
+
type: Ve.has("EXT_color_buffer_half_float") || Ve.has("EXT_color_buffer_float") ? Qi : rn,
|
|
19915
19915
|
minFilter: Yn,
|
|
19916
19916
|
samples: 4,
|
|
19917
19917
|
stencilBuffer: s,
|
|
@@ -19932,7 +19932,7 @@ class I_ {
|
|
|
19932
19932
|
const tt = U[Pe], ct = tt.object, ht = tt.geometry, Qe = tt.material, Ue = tt.group;
|
|
19933
19933
|
if (Qe.side === pn && ct.layers.test(z.layers)) {
|
|
19934
19934
|
const xt = Qe.side;
|
|
19935
|
-
Qe.side = Dt, Qe.needsUpdate = !0,
|
|
19935
|
+
Qe.side = Dt, Qe.needsUpdate = !0, ei(ct, B, z, ht, Qe, Ue), Qe.side = xt, Qe.needsUpdate = !0, ze = !0;
|
|
19936
19936
|
}
|
|
19937
19937
|
}
|
|
19938
19938
|
ze === !0 && (Be.updateMultisampleRenderTarget(oe), Be.updateRenderTargetMipmap(oe));
|
|
@@ -19944,10 +19944,10 @@ class I_ {
|
|
|
19944
19944
|
for (let I = 0, oe = M.length; I < oe; I++) {
|
|
19945
19945
|
const _e = M[I], be = _e.object, ye = _e.geometry, Fe = _e.group;
|
|
19946
19946
|
let ze = _e.material;
|
|
19947
|
-
ze.allowOverride === !0 && z !== null && (ze = z), be.layers.test(B.layers) &&
|
|
19947
|
+
ze.allowOverride === !0 && z !== null && (ze = z), be.layers.test(B.layers) && ei(be, U, B, ye, ze, Fe);
|
|
19948
19948
|
}
|
|
19949
19949
|
}
|
|
19950
|
-
function
|
|
19950
|
+
function ei(M, U, B, z, I, oe) {
|
|
19951
19951
|
M.onBeforeRender(S, U, B, z, I, oe), M.modelViewMatrix.multiplyMatrices(B.matrixWorldInverse, M.matrixWorld), M.normalMatrix.getNormalMatrix(M.modelViewMatrix), I.onBeforeRender(S, U, B, z, M, oe), I.transparent === !0 && I.side === pn && I.forceSinglePass === !1 ? (I.side = Dt, I.needsUpdate = !0, S.renderBufferDirect(B, U, z, I, M, oe), I.side = xn, I.needsUpdate = !0, S.renderBufferDirect(B, U, z, I, M, oe), I.side = pn) : S.renderBufferDirect(B, U, z, I, M, oe), M.onAfterRender(S, U, B, z, I, oe);
|
|
19952
19952
|
}
|
|
19953
19953
|
function St(M, U, B) {
|
|
@@ -19962,7 +19962,7 @@ class I_ {
|
|
|
19962
19962
|
} else
|
|
19963
19963
|
be.uniforms = Z.getUniforms(M), M.onBeforeCompile(be, S), ze = Z.acquireProgram(be, ye), Fe.set(ye, ze), z.uniforms = be.uniforms;
|
|
19964
19964
|
const Pe = z.uniforms;
|
|
19965
|
-
return (!M.isShaderMaterial && !M.isRawShaderMaterial || M.clipping === !0) && (Pe.clippingPlanes = Te.uniform), Ha(M, be), z.needsLights =
|
|
19965
|
+
return (!M.isShaderMaterial && !M.isRawShaderMaterial || M.clipping === !0) && (Pe.clippingPlanes = Te.uniform), Ha(M, be), z.needsLights = gc(M), z.lightsStateVersion = _e, z.needsLights && (Pe.ambientLightColor.value = I.state.ambient, Pe.lightProbe.value = I.state.probe, Pe.directionalLights.value = I.state.directional, Pe.directionalLightShadows.value = I.state.directionalShadow, Pe.spotLights.value = I.state.spot, Pe.spotLightShadows.value = I.state.spotShadow, Pe.rectAreaLights.value = I.state.rectArea, Pe.ltc_1.value = I.state.rectAreaLTC1, Pe.ltc_2.value = I.state.rectAreaLTC2, Pe.pointLights.value = I.state.point, Pe.pointLightShadows.value = I.state.pointShadow, Pe.hemisphereLights.value = I.state.hemi, Pe.directionalShadowMap.value = I.state.directionalShadowMap, Pe.directionalShadowMatrix.value = I.state.directionalShadowMatrix, Pe.spotShadowMap.value = I.state.spotShadowMap, Pe.spotLightMatrix.value = I.state.spotLightMatrix, Pe.spotLightMap.value = I.state.spotLightMap, Pe.pointShadowMap.value = I.state.pointShadowMap, Pe.pointShadowMatrix.value = I.state.pointShadowMatrix), z.currentProgram = ze, z.uniformsList = null, ze;
|
|
19966
19966
|
}
|
|
19967
19967
|
function Sn(M) {
|
|
19968
19968
|
if (M.uniformsList === null) {
|
|
@@ -19975,7 +19975,7 @@ class I_ {
|
|
|
19975
19975
|
const B = Ce.get(M);
|
|
19976
19976
|
B.outputColorSpace = U.outputColorSpace, B.batching = U.batching, B.batchingColor = U.batchingColor, B.instancing = U.instancing, B.instancingColor = U.instancingColor, B.instancingMorph = U.instancingMorph, B.skinning = U.skinning, B.morphTargets = U.morphTargets, B.morphNormals = U.morphNormals, B.morphColors = U.morphColors, B.morphTargetsCount = U.morphTargetsCount, B.numClippingPlanes = U.numClippingPlanes, B.numIntersection = U.numClipIntersection, B.vertexAlphas = U.vertexAlphas, B.vertexTangents = U.vertexTangents, B.toneMapping = U.toneMapping;
|
|
19977
19977
|
}
|
|
19978
|
-
function
|
|
19978
|
+
function mc(M, U, B, z, I) {
|
|
19979
19979
|
U.isScene !== !0 && (U = Se), Be.resetTextureUnits();
|
|
19980
19980
|
const oe = U.fog, _e = z.isMeshStandardMaterial ? U.environment : null, be = L === null ? S.outputColorSpace : L.isXRRenderTarget === !0 ? L.texture.colorSpace : wi, ye = (z.isMeshStandardMaterial ? T : at).get(z.envMap || _e), Fe = z.vertexColors === !0 && !!B.attributes.color && B.attributes.color.itemSize === 4, ze = !!B.attributes.tangent && (!!z.normalMap || z.anisotropy > 0), Pe = !!B.morphAttributes.position, $e = !!B.morphAttributes.normal, tt = !!B.morphAttributes.color;
|
|
19981
19981
|
let ct = Un;
|
|
@@ -19989,9 +19989,9 @@ class I_ {
|
|
|
19989
19989
|
z.version === Ue.__version ? (Ue.needsLights && Ue.lightsStateVersion !== xt.state.version || Ue.outputColorSpace !== be || I.isBatchedMesh && Ue.batching === !1 || !I.isBatchedMesh && Ue.batching === !0 || I.isBatchedMesh && Ue.batchingColor === !0 && I.colorTexture === null || I.isBatchedMesh && Ue.batchingColor === !1 && I.colorTexture !== null || I.isInstancedMesh && Ue.instancing === !1 || !I.isInstancedMesh && Ue.instancing === !0 || I.isSkinnedMesh && Ue.skinning === !1 || !I.isSkinnedMesh && Ue.skinning === !0 || I.isInstancedMesh && Ue.instancingColor === !0 && I.instanceColor === null || I.isInstancedMesh && Ue.instancingColor === !1 && I.instanceColor !== null || I.isInstancedMesh && Ue.instancingMorph === !0 && I.morphTexture === null || I.isInstancedMesh && Ue.instancingMorph === !1 && I.morphTexture !== null || Ue.envMap !== ye || z.fog === !0 && Ue.fog !== oe || Ue.numClippingPlanes !== void 0 && (Ue.numClippingPlanes !== Te.numPlanes || Ue.numIntersection !== Te.numIntersection) || Ue.vertexAlphas !== Fe || Ue.vertexTangents !== ze || Ue.morphTargets !== Pe || Ue.morphNormals !== $e || Ue.morphColors !== tt || Ue.toneMapping !== ct || Ue.morphTargetsCount !== Qe) && (et = !0) : (et = !0, Ue.__version = z.version);
|
|
19990
19990
|
let Vt = Ue.currentProgram;
|
|
19991
19991
|
et === !0 && (Vt = St(z, U, I));
|
|
19992
|
-
let
|
|
19992
|
+
let ti = !1, Lt = !1, Fi = !1;
|
|
19993
19993
|
const ot = Vt.getUniforms(), Ft = Ue.uniforms;
|
|
19994
|
-
if (fe.useProgram(Vt.program) && (
|
|
19994
|
+
if (fe.useProgram(Vt.program) && (ti = !0, Lt = !0, Fi = !0), z.id !== y && (y = z.id, Lt = !0), ti || x !== M) {
|
|
19995
19995
|
fe.buffers.depth.getReversed() ? (ge.copy(M.projectionMatrix), lu(ge), cu(ge), ot.setValue(A, "projectionMatrix", ge)) : ot.setValue(A, "projectionMatrix", M.projectionMatrix), ot.setValue(A, "viewMatrix", M.matrixWorldInverse);
|
|
19996
19996
|
const Rt = ot.map.cameraPosition;
|
|
19997
19997
|
Rt !== void 0 && Rt.setValue(A, ae.setFromMatrixPosition(M.matrixWorld)), Ee.logarithmicDepthBuffer && ot.setValue(
|
|
@@ -20007,7 +20007,7 @@ class I_ {
|
|
|
20007
20007
|
}
|
|
20008
20008
|
I.isBatchedMesh && (ot.setOptional(A, I, "batchingTexture"), ot.setValue(A, "batchingTexture", I._matricesTexture, Be), ot.setOptional(A, I, "batchingIdTexture"), ot.setValue(A, "batchingIdTexture", I._indirectTexture, Be), ot.setOptional(A, I, "batchingColorTexture"), I._colorsTexture !== null && ot.setValue(A, "batchingColorTexture", I._colorsTexture, Be));
|
|
20009
20009
|
const Ot = B.morphAttributes;
|
|
20010
|
-
if ((Ot.position !== void 0 || Ot.normal !== void 0 || Ot.color !== void 0) && Me.update(I, B, Vt), (Lt || Ue.receiveShadow !== I.receiveShadow) && (Ue.receiveShadow = I.receiveShadow, ot.setValue(A, "receiveShadow", I.receiveShadow)), z.isMeshGouraudMaterial && z.envMap !== null && (Ft.envMap.value = ye, Ft.flipEnvMap.value = ye.isCubeTexture && ye.isRenderTargetTexture === !1 ? -1 : 1), z.isMeshStandardMaterial && z.envMap === null && U.environment !== null && (Ft.envMapIntensity.value = U.environmentIntensity), Lt && (ot.setValue(A, "toneMappingExposure", S.toneMappingExposure), Ue.needsLights &&
|
|
20010
|
+
if ((Ot.position !== void 0 || Ot.normal !== void 0 || Ot.color !== void 0) && Me.update(I, B, Vt), (Lt || Ue.receiveShadow !== I.receiveShadow) && (Ue.receiveShadow = I.receiveShadow, ot.setValue(A, "receiveShadow", I.receiveShadow)), z.isMeshGouraudMaterial && z.envMap !== null && (Ft.envMap.value = ye, Ft.flipEnvMap.value = ye.isCubeTexture && ye.isRenderTargetTexture === !1 ? -1 : 1), z.isMeshStandardMaterial && z.envMap === null && U.environment !== null && (Ft.envMapIntensity.value = U.environmentIntensity), Lt && (ot.setValue(A, "toneMappingExposure", S.toneMappingExposure), Ue.needsLights && _c(Ft, Fi), oe && z.fog === !0 && X.refreshFogUniforms(Ft, oe), X.refreshMaterialUniforms(Ft, z, V, ie, f.state.transmissionRenderTarget[M.id]), zr.upload(A, Sn(Ue), Ft, Be)), z.isShaderMaterial && z.uniformsNeedUpdate === !0 && (zr.upload(A, Sn(Ue), Ft, Be), z.uniformsNeedUpdate = !1), z.isSpriteMaterial && ot.setValue(A, "center", I.center), ot.setValue(A, "modelViewMatrix", I.modelViewMatrix), ot.setValue(A, "normalMatrix", I.normalMatrix), ot.setValue(A, "modelMatrix", I.matrixWorld), z.isShaderMaterial || z.isRawShaderMaterial) {
|
|
20011
20011
|
const Tt = z.uniformsGroups;
|
|
20012
20012
|
for (let Rt = 0, ts = Tt.length; Rt < ts; Rt++) {
|
|
20013
20013
|
const Fn = Tt[Rt];
|
|
@@ -20016,10 +20016,10 @@ class I_ {
|
|
|
20016
20016
|
}
|
|
20017
20017
|
return Vt;
|
|
20018
20018
|
}
|
|
20019
|
-
function
|
|
20019
|
+
function _c(M, U) {
|
|
20020
20020
|
M.ambientLightColor.needsUpdate = U, M.lightProbe.needsUpdate = U, M.directionalLights.needsUpdate = U, M.directionalLightShadows.needsUpdate = U, M.pointLights.needsUpdate = U, M.pointLightShadows.needsUpdate = U, M.spotLights.needsUpdate = U, M.spotLightShadows.needsUpdate = U, M.rectAreaLights.needsUpdate = U, M.hemisphereLights.needsUpdate = U;
|
|
20021
20021
|
}
|
|
20022
|
-
function
|
|
20022
|
+
function gc(M) {
|
|
20023
20023
|
return M.isMeshLambertMaterial || M.isMeshToonMaterial || M.isMeshPhongMaterial || M.isMeshStandardMaterial || M.isShadowMaterial || M.isShaderMaterial && M.lights === !0;
|
|
20024
20024
|
}
|
|
20025
20025
|
this.getActiveCubeFace = function() {
|
|
@@ -20035,7 +20035,7 @@ class I_ {
|
|
|
20035
20035
|
const B = Ce.get(M);
|
|
20036
20036
|
B.__webglFramebuffer = U, B.__useDefaultFramebuffer = U === void 0;
|
|
20037
20037
|
};
|
|
20038
|
-
const
|
|
20038
|
+
const vc = A.createFramebuffer();
|
|
20039
20039
|
this.setRenderTarget = function(M, U = 0, B = 0) {
|
|
20040
20040
|
L = M, R = U, C = B;
|
|
20041
20041
|
let z = !0, I = null, oe = !1, _e = !1;
|
|
@@ -20061,7 +20061,7 @@ class I_ {
|
|
|
20061
20061
|
M.isWebGLCubeRenderTarget ? (Array.isArray(ze[U]) ? I = ze[U][B] : I = ze[U], oe = !0) : M.samples > 0 && Be.useMultisampledRTT(M) === !1 ? I = Ce.get(M).__webglMultisampledFramebuffer : Array.isArray(ze) ? I = ze[B] : I = ze, P.copy(M.viewport), O.copy(M.scissor), H = M.scissorTest;
|
|
20062
20062
|
} else
|
|
20063
20063
|
P.copy(se).multiplyScalar(V).floor(), O.copy(ke).multiplyScalar(V).floor(), H = Ye;
|
|
20064
|
-
if (B !== 0 && (I =
|
|
20064
|
+
if (B !== 0 && (I = vc), fe.bindFramebuffer(A.FRAMEBUFFER, I) && z && fe.drawBuffers(M, I), fe.viewport(P), fe.scissor(O), fe.setScissorTest(H), oe) {
|
|
20065
20065
|
const ye = Ce.get(M.texture);
|
|
20066
20066
|
A.framebufferTexture2D(A.FRAMEBUFFER, A.COLOR_ATTACHMENT0, A.TEXTURE_CUBE_MAP_POSITIVE_X + U, ye.__webglTexture, B);
|
|
20067
20067
|
} else if (_e) {
|
|
@@ -20120,7 +20120,7 @@ class I_ {
|
|
|
20120
20120
|
const z = Math.pow(2, -B), I = Math.floor(M.image.width * z), oe = Math.floor(M.image.height * z), _e = U !== null ? U.x : 0, be = U !== null ? U.y : 0;
|
|
20121
20121
|
Be.setTexture2D(M, 0), A.copyTexSubImage2D(A.TEXTURE_2D, B, 0, 0, _e, be, I, oe), fe.unbindTexture();
|
|
20122
20122
|
};
|
|
20123
|
-
const
|
|
20123
|
+
const xc = A.createFramebuffer(), Mc = A.createFramebuffer();
|
|
20124
20124
|
this.copyTextureToTexture = function(M, U, B = null, z = null, I = 0, oe = null) {
|
|
20125
20125
|
oe === null && (I !== 0 ? (Si("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), oe = I, I = 0) : oe = 0);
|
|
20126
20126
|
let _e, be, ye, Fe, ze, Pe, $e, tt, ct;
|
|
@@ -20135,7 +20135,7 @@ class I_ {
|
|
|
20135
20135
|
const Qe = he.convert(U.format), Ue = he.convert(U.type);
|
|
20136
20136
|
let xt;
|
|
20137
20137
|
U.isData3DTexture ? (Be.setTexture3D(U, 0), xt = A.TEXTURE_3D) : U.isDataArrayTexture || U.isCompressedArrayTexture ? (Be.setTexture2DArray(U, 0), xt = A.TEXTURE_2D_ARRAY) : (Be.setTexture2D(U, 0), xt = A.TEXTURE_2D), A.pixelStorei(A.UNPACK_FLIP_Y_WEBGL, U.flipY), A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL, U.premultiplyAlpha), A.pixelStorei(A.UNPACK_ALIGNMENT, U.unpackAlignment);
|
|
20138
|
-
const et = A.getParameter(A.UNPACK_ROW_LENGTH), Vt = A.getParameter(A.UNPACK_IMAGE_HEIGHT),
|
|
20138
|
+
const et = A.getParameter(A.UNPACK_ROW_LENGTH), Vt = A.getParameter(A.UNPACK_IMAGE_HEIGHT), ti = A.getParameter(A.UNPACK_SKIP_PIXELS), Lt = A.getParameter(A.UNPACK_SKIP_ROWS), Fi = A.getParameter(A.UNPACK_SKIP_IMAGES);
|
|
20139
20139
|
A.pixelStorei(A.UNPACK_ROW_LENGTH, ht.width), A.pixelStorei(A.UNPACK_IMAGE_HEIGHT, ht.height), A.pixelStorei(A.UNPACK_SKIP_PIXELS, Fe), A.pixelStorei(A.UNPACK_SKIP_ROWS, ze), A.pixelStorei(A.UNPACK_SKIP_IMAGES, Pe);
|
|
20140
20140
|
const ot = M.isDataArrayTexture || M.isData3DTexture, Ft = U.isDataArrayTexture || U.isData3DTexture;
|
|
20141
20141
|
if (M.isDepthTexture) {
|
|
@@ -20146,13 +20146,13 @@ class I_ {
|
|
|
20146
20146
|
fe.bindFramebuffer(A.READ_FRAMEBUFFER, null), fe.bindFramebuffer(A.DRAW_FRAMEBUFFER, null);
|
|
20147
20147
|
} else if (I !== 0 || M.isRenderTargetTexture || Ce.has(M)) {
|
|
20148
20148
|
const Ot = Ce.get(M), Tt = Ce.get(U);
|
|
20149
|
-
fe.bindFramebuffer(A.READ_FRAMEBUFFER,
|
|
20149
|
+
fe.bindFramebuffer(A.READ_FRAMEBUFFER, xc), fe.bindFramebuffer(A.DRAW_FRAMEBUFFER, Mc);
|
|
20150
20150
|
for (let Rt = 0; Rt < ye; Rt++)
|
|
20151
20151
|
ot ? A.framebufferTextureLayer(A.READ_FRAMEBUFFER, A.COLOR_ATTACHMENT0, Ot.__webglTexture, I, Pe + Rt) : A.framebufferTexture2D(A.READ_FRAMEBUFFER, A.COLOR_ATTACHMENT0, A.TEXTURE_2D, Ot.__webglTexture, I), Ft ? A.framebufferTextureLayer(A.DRAW_FRAMEBUFFER, A.COLOR_ATTACHMENT0, Tt.__webglTexture, oe, ct + Rt) : A.framebufferTexture2D(A.DRAW_FRAMEBUFFER, A.COLOR_ATTACHMENT0, A.TEXTURE_2D, Tt.__webglTexture, oe), I !== 0 ? A.blitFramebuffer(Fe, ze, _e, be, $e, tt, _e, be, A.COLOR_BUFFER_BIT, A.NEAREST) : Ft ? A.copyTexSubImage3D(xt, oe, $e, tt, ct + Rt, Fe, ze, _e, be) : A.copyTexSubImage2D(xt, oe, $e, tt, Fe, ze, _e, be);
|
|
20152
20152
|
fe.bindFramebuffer(A.READ_FRAMEBUFFER, null), fe.bindFramebuffer(A.DRAW_FRAMEBUFFER, null);
|
|
20153
20153
|
} else
|
|
20154
20154
|
Ft ? M.isDataTexture || M.isData3DTexture ? A.texSubImage3D(xt, oe, $e, tt, ct, _e, be, ye, Qe, Ue, ht.data) : U.isCompressedArrayTexture ? A.compressedTexSubImage3D(xt, oe, $e, tt, ct, _e, be, ye, Qe, ht.data) : A.texSubImage3D(xt, oe, $e, tt, ct, _e, be, ye, Qe, Ue, ht) : M.isDataTexture ? A.texSubImage2D(A.TEXTURE_2D, oe, $e, tt, _e, be, Qe, Ue, ht.data) : M.isCompressedTexture ? A.compressedTexSubImage2D(A.TEXTURE_2D, oe, $e, tt, ht.width, ht.height, Qe, ht.data) : A.texSubImage2D(A.TEXTURE_2D, oe, $e, tt, _e, be, Qe, Ue, ht);
|
|
20155
|
-
A.pixelStorei(A.UNPACK_ROW_LENGTH, et), A.pixelStorei(A.UNPACK_IMAGE_HEIGHT, Vt), A.pixelStorei(A.UNPACK_SKIP_PIXELS,
|
|
20155
|
+
A.pixelStorei(A.UNPACK_ROW_LENGTH, et), A.pixelStorei(A.UNPACK_IMAGE_HEIGHT, Vt), A.pixelStorei(A.UNPACK_SKIP_PIXELS, ti), A.pixelStorei(A.UNPACK_SKIP_ROWS, Lt), A.pixelStorei(A.UNPACK_SKIP_IMAGES, Fi), oe === 0 && U.generateMipmaps && A.generateMipmap(xt), fe.unbindTexture();
|
|
20156
20156
|
}, this.copyTextureToTexture3D = function(M, U, B = null, z = null, I = 0) {
|
|
20157
20157
|
return Si('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Use "copyTextureToTexture" instead.'), this.copyTextureToTexture(M, U, B, z, I);
|
|
20158
20158
|
}, this.initRenderTarget = function(M) {
|
|
@@ -20190,7 +20190,7 @@ class I_ {
|
|
|
20190
20190
|
t.drawingBufferColorSpace = Je._getDrawingBufferColorSpace(e), t.unpackColorSpace = Je._getUnpackColorSpace();
|
|
20191
20191
|
}
|
|
20192
20192
|
}
|
|
20193
|
-
const N_ = /^[og]\s*(.+)?/, F_ = /^mtllib /, O_ = /^usemtl /, B_ = /^usemap /, cl = /\s+/, hl = new N(), Os = new N(), ul = new N(), fl = new N(), zt = new N(),
|
|
20193
|
+
const N_ = /^[og]\s*(.+)?/, F_ = /^mtllib /, O_ = /^usemtl /, B_ = /^usemap /, cl = /\s+/, hl = new N(), Os = new N(), ul = new N(), fl = new N(), zt = new N(), Cr = new je();
|
|
20194
20194
|
function z_() {
|
|
20195
20195
|
const i = {
|
|
20196
20196
|
objects: [],
|
|
@@ -20370,7 +20370,7 @@ class k_ extends Di {
|
|
|
20370
20370
|
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
20371
20371
|
*/
|
|
20372
20372
|
load(e, t, n, r) {
|
|
20373
|
-
const s = this, a = new
|
|
20373
|
+
const s = this, a = new tc(this.manager);
|
|
20374
20374
|
a.setPath(this.path), a.setRequestHeader(this.requestHeader), a.setWithCredentials(this.withCredentials), a.load(e, function(o) {
|
|
20375
20375
|
try {
|
|
20376
20376
|
t(s.parse(o));
|
|
@@ -20416,12 +20416,12 @@ class k_ extends Di {
|
|
|
20416
20416
|
parseFloat(u[1]),
|
|
20417
20417
|
parseFloat(u[2]),
|
|
20418
20418
|
parseFloat(u[3])
|
|
20419
|
-
), u.length >= 7 ? (
|
|
20419
|
+
), u.length >= 7 ? (Cr.setRGB(
|
|
20420
20420
|
parseFloat(u[4]),
|
|
20421
20421
|
parseFloat(u[5]),
|
|
20422
20422
|
parseFloat(u[6]),
|
|
20423
20423
|
Mt
|
|
20424
|
-
), t.colors.push(
|
|
20424
|
+
), t.colors.push(Cr.r, Cr.g, Cr.b)) : t.colors.push(void 0, void 0, void 0);
|
|
20425
20425
|
break;
|
|
20426
20426
|
case "vn":
|
|
20427
20427
|
t.normals.push(
|
|
@@ -20520,7 +20520,7 @@ class k_ extends Di {
|
|
|
20520
20520
|
Mn.prototype.copy.call(C, R), C.color.copy(R.color), C.map = R.map, R = C;
|
|
20521
20521
|
}
|
|
20522
20522
|
}
|
|
20523
|
-
R === void 0 && (d ? R = new Br() : p ? R = new Xi({ size: 1, sizeAttenuation: !1 }) : R = new
|
|
20523
|
+
R === void 0 && (d ? R = new Br() : p ? R = new Xi({ size: 1, sizeAttenuation: !1 }) : R = new Ql(), R.name = S.name, R.flatShading = !S.smooth, R.vertexColors = _, t.materials[D] = R), m.push(R);
|
|
20524
20524
|
}
|
|
20525
20525
|
let f;
|
|
20526
20526
|
if (m.length > 1) {
|
|
@@ -20556,7 +20556,7 @@ class H_ extends Di {
|
|
|
20556
20556
|
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
20557
20557
|
*/
|
|
20558
20558
|
load(e, t, n, r) {
|
|
20559
|
-
const s = this, a = this.path === "" ? ju.extractUrlBase(e) : this.path, o = new
|
|
20559
|
+
const s = this, a = this.path === "" ? ju.extractUrlBase(e) : this.path, o = new tc(this.manager);
|
|
20560
20560
|
o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(e, function(l) {
|
|
20561
20561
|
try {
|
|
20562
20562
|
t(s.parse(l, a));
|
|
@@ -20717,7 +20717,7 @@ class V_ {
|
|
|
20717
20717
|
break;
|
|
20718
20718
|
}
|
|
20719
20719
|
}
|
|
20720
|
-
return this.materials[e] = new
|
|
20720
|
+
return this.materials[e] = new Ql(r), this.materials[e];
|
|
20721
20721
|
}
|
|
20722
20722
|
getTextureParams(e, t) {
|
|
20723
20723
|
const n = {
|
|
@@ -20728,14 +20728,14 @@ class V_ {
|
|
|
20728
20728
|
return s = r.indexOf("-bm"), s >= 0 && (t.bumpScale = parseFloat(r[s + 1]), r.splice(s, 2)), s = r.indexOf("-mm"), s >= 0 && (t.displacementBias = parseFloat(r[s + 1]), t.displacementScale = parseFloat(r[s + 2]), r.splice(s, 3)), s = r.indexOf("-s"), s >= 0 && (n.scale.set(parseFloat(r[s + 1]), parseFloat(r[s + 2])), r.splice(s, 4)), s = r.indexOf("-o"), s >= 0 && (n.offset.set(parseFloat(r[s + 1]), parseFloat(r[s + 2])), r.splice(s, 4)), n.url = r.join(" ").trim(), n;
|
|
20729
20729
|
}
|
|
20730
20730
|
loadTexture(e, t, n, r, s) {
|
|
20731
|
-
const a = this.manager !== void 0 ? this.manager :
|
|
20731
|
+
const a = this.manager !== void 0 ? this.manager : ec;
|
|
20732
20732
|
let o = a.getHandler(e);
|
|
20733
20733
|
o === null && (o = new Gu(a)), o.setCrossOrigin && o.setCrossOrigin(this.crossOrigin);
|
|
20734
20734
|
const l = o.load(e, n, r, s);
|
|
20735
20735
|
return t !== void 0 && (l.mapping = t), l;
|
|
20736
20736
|
}
|
|
20737
20737
|
}
|
|
20738
|
-
const dl = { type: "change" }, ka = { type: "start" },
|
|
20738
|
+
const dl = { type: "change" }, ka = { type: "start" }, cc = { type: "end" }, Pr = new Jr(), pl = new Cn(), G_ = Math.cos(70 * su.DEG2RAD), pt = new N(), Pt = 2 * Math.PI, it = {
|
|
20739
20739
|
NONE: -1,
|
|
20740
20740
|
ROTATE: 0,
|
|
20741
20741
|
DOLLY: 1,
|
|
@@ -20753,7 +20753,7 @@ class W_ extends Zu {
|
|
|
20753
20753
|
* @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
|
|
20754
20754
|
*/
|
|
20755
20755
|
constructor(e, t = null) {
|
|
20756
|
-
super(e, t), this.state = it.NONE, this.target = new N(), this.cursor = new N(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: xi.ROTATE, MIDDLE: xi.DOLLY, RIGHT: xi.PAN }, this.touches = { ONE:
|
|
20756
|
+
super(e, t), this.state = it.NONE, this.target = new N(), this.cursor = new N(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: xi.ROTATE, MIDDLE: xi.DOLLY, RIGHT: xi.PAN }, this.touches = { ONE: _i.ROTATE, TWO: _i.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new N(), this._lastQuaternion = new Zn(), this._lastTargetPosition = new N(), this._quat = new Zn().setFromUnitVectors(e.up, new N(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Oo(), this._sphericalDelta = new Oo(), this._scale = 1, this._panOffset = new N(), this._rotateStart = new Ge(), this._rotateEnd = new Ge(), this._rotateDelta = new Ge(), this._panStart = new Ge(), this._panEnd = new Ge(), this._panDelta = new Ge(), this._dollyStart = new Ge(), this._dollyEnd = new Ge(), this._dollyDelta = new Ge(), this._dollyDirection = new N(), this._mouse = new Ge(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = q_.bind(this), this._onPointerDown = X_.bind(this), this._onPointerUp = Y_.bind(this), this._onContextMenu = eg.bind(this), this._onMouseWheel = Z_.bind(this), this._onKeyDown = $_.bind(this), this._onTouchStart = J_.bind(this), this._onTouchMove = Q_.bind(this), this._onMouseDown = j_.bind(this), this._onMouseMove = K_.bind(this), this._interceptControlDown = tg.bind(this), this._interceptControlUp = ng.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
20757
20757
|
}
|
|
20758
20758
|
connect(e) {
|
|
20759
20759
|
super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
@@ -20844,7 +20844,7 @@ class W_ extends Zu {
|
|
|
20844
20844
|
c.unproject(this.object), this.object.position.sub(c).add(o), this.object.updateMatrixWorld(), a = pt.length();
|
|
20845
20845
|
} else
|
|
20846
20846
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
|
20847
|
-
a !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(a).add(this.object.position) : (
|
|
20847
|
+
a !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(a).add(this.object.position) : (Pr.origin.copy(this.object.position), Pr.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(Pr.direction)) < G_ ? this.object.lookAt(this.target) : (pl.setFromNormalAndCoplanarPoint(this.object.up, this.target), Pr.intersectPlane(pl, this.target))));
|
|
20848
20848
|
} else if (this.object.isOrthographicCamera) {
|
|
20849
20849
|
const a = this.object.zoom;
|
|
20850
20850
|
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), a !== this.object.zoom && (this.object.updateProjectionMatrix(), s = !0);
|
|
@@ -21050,7 +21050,7 @@ function q_(i) {
|
|
|
21050
21050
|
function Y_(i) {
|
|
21051
21051
|
switch (this._removePointer(i), this._pointers.length) {
|
|
21052
21052
|
case 0:
|
|
21053
|
-
this.domElement.releasePointerCapture(i.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(
|
|
21053
|
+
this.domElement.releasePointerCapture(i.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(cc), this.state = it.NONE;
|
|
21054
21054
|
break;
|
|
21055
21055
|
case 1:
|
|
21056
21056
|
const e = this._pointers[0], t = this._pointerPositions[e];
|
|
@@ -21118,7 +21118,7 @@ function K_(i) {
|
|
|
21118
21118
|
}
|
|
21119
21119
|
}
|
|
21120
21120
|
function Z_(i) {
|
|
21121
|
-
this.enabled === !1 || this.enableZoom === !1 || this.state !== it.NONE || (i.preventDefault(), this.dispatchEvent(ka), this._handleMouseWheel(this._customWheelEvent(i)), this.dispatchEvent(
|
|
21121
|
+
this.enabled === !1 || this.enableZoom === !1 || this.state !== it.NONE || (i.preventDefault(), this.dispatchEvent(ka), this._handleMouseWheel(this._customWheelEvent(i)), this.dispatchEvent(cc));
|
|
21122
21122
|
}
|
|
21123
21123
|
function $_(i) {
|
|
21124
21124
|
this.enabled !== !1 && this._handleKeyDown(i);
|
|
@@ -21127,11 +21127,11 @@ function J_(i) {
|
|
|
21127
21127
|
switch (this._trackPointer(i), this._pointers.length) {
|
|
21128
21128
|
case 1:
|
|
21129
21129
|
switch (this.touches.ONE) {
|
|
21130
|
-
case
|
|
21130
|
+
case _i.ROTATE:
|
|
21131
21131
|
if (this.enableRotate === !1) return;
|
|
21132
21132
|
this._handleTouchStartRotate(i), this.state = it.TOUCH_ROTATE;
|
|
21133
21133
|
break;
|
|
21134
|
-
case
|
|
21134
|
+
case _i.PAN:
|
|
21135
21135
|
if (this.enablePan === !1) return;
|
|
21136
21136
|
this._handleTouchStartPan(i), this.state = it.TOUCH_PAN;
|
|
21137
21137
|
break;
|
|
@@ -21141,11 +21141,11 @@ function J_(i) {
|
|
|
21141
21141
|
break;
|
|
21142
21142
|
case 2:
|
|
21143
21143
|
switch (this.touches.TWO) {
|
|
21144
|
-
case
|
|
21144
|
+
case _i.DOLLY_PAN:
|
|
21145
21145
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
21146
21146
|
this._handleTouchStartDollyPan(i), this.state = it.TOUCH_DOLLY_PAN;
|
|
21147
21147
|
break;
|
|
21148
|
-
case
|
|
21148
|
+
case _i.DOLLY_ROTATE:
|
|
21149
21149
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
21150
21150
|
this._handleTouchStartDollyRotate(i), this.state = it.TOUCH_DOLLY_ROTATE;
|
|
21151
21151
|
break;
|
|
@@ -21195,7 +21195,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21195
21195
|
isShow: Boolean
|
|
21196
21196
|
},
|
|
21197
21197
|
setup(i) {
|
|
21198
|
-
const e = st(null), t = i, n = Tl(
|
|
21198
|
+
const e = st(null), t = i, n = Tl(Yi), { nodeDev: r } = Gi(n);
|
|
21199
21199
|
let s, a, o, l, c;
|
|
21200
21200
|
const h = async () => {
|
|
21201
21201
|
s = new Iu(), s.background = new je(15790320), a = new kt(
|
|
@@ -21262,7 +21262,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21262
21262
|
}, 100);
|
|
21263
21263
|
},
|
|
21264
21264
|
{ deep: !0, immediate: !0 }
|
|
21265
|
-
),
|
|
21265
|
+
), Ec(() => {
|
|
21266
21266
|
window.removeEventListener("resize", p), o && o.dispose(), l && l.dispose();
|
|
21267
21267
|
}), (_, v) => (Ht(), mn("div", ig, [
|
|
21268
21268
|
Yt("div", {
|
|
@@ -21302,25 +21302,25 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21302
21302
|
this.selectTitle = i;
|
|
21303
21303
|
}
|
|
21304
21304
|
}
|
|
21305
|
-
}),
|
|
21305
|
+
}), hc = (i, e) => {
|
|
21306
21306
|
let t = i, n = e;
|
|
21307
21307
|
return Array.isArray(t) && (t = t == null ? void 0 : t.map((r, s) => {
|
|
21308
21308
|
if (Array.isArray(r)) {
|
|
21309
21309
|
let a = {};
|
|
21310
21310
|
return r = r == null ? void 0 : r.forEach((o, l) => {
|
|
21311
21311
|
var c;
|
|
21312
|
-
(c = n == null ? void 0 : n[l]) != null && c.prop ? a[n[l].prop] = o : Array.isArray(o) && (a.children =
|
|
21312
|
+
(c = n == null ? void 0 : n[l]) != null && c.prop ? a[n[l].prop] = o : Array.isArray(o) && (a.children = hc(o, n));
|
|
21313
21313
|
}), Object.assign(a, { id: s });
|
|
21314
21314
|
} else
|
|
21315
21315
|
return r;
|
|
21316
21316
|
})), t;
|
|
21317
|
-
},
|
|
21317
|
+
}, uc = (i, e, t) => {
|
|
21318
21318
|
let n = i, r = e;
|
|
21319
21319
|
return n = n == null ? void 0 : n.map((s, a) => {
|
|
21320
21320
|
var o, l;
|
|
21321
21321
|
return !Array.isArray(s) || !((o = r == null ? void 0 : r[a]) != null && o.label) && !t || (s.unshift(((l = r == null ? void 0 : r[a]) == null ? void 0 : l.label) ?? ""), s.some((c) => Array.isArray(c)) && (s = s == null ? void 0 : s.map((c) => {
|
|
21322
21322
|
var h;
|
|
21323
|
-
return Array.isArray(c) && (c =
|
|
21323
|
+
return Array.isArray(c) && (c = uc(c, (h = r == null ? void 0 : r[a]) == null ? void 0 : h.children, t)), c;
|
|
21324
21324
|
}))), s;
|
|
21325
21325
|
}), n;
|
|
21326
21326
|
}, lg = (i, e, t) => {
|
|
@@ -21332,11 +21332,11 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21332
21332
|
}
|
|
21333
21333
|
}, cg = (i, e, t) => {
|
|
21334
21334
|
let n = i, r = e;
|
|
21335
|
-
return (r == null ? void 0 : r.length) === 0 ? n = n == null ? void 0 : n.filter((s) => s.id !== t) : n = n == null ? void 0 : n.map((s) => (s.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), s =
|
|
21336
|
-
},
|
|
21335
|
+
return (r == null ? void 0 : r.length) === 0 ? n = n == null ? void 0 : n.filter((s) => s.id !== t) : n = n == null ? void 0 : n.map((s) => (s.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), s = fc(s, r, t)), s)), n;
|
|
21336
|
+
}, fc = (i, e, t) => {
|
|
21337
21337
|
var s, a;
|
|
21338
21338
|
let n = i, r = e;
|
|
21339
|
-
return (r == null ? void 0 : r.length) === 0 ? n.children = (s = n.children) == null ? void 0 : s.filter((o) => o.id !== t) : n.children = (a = n.children) == null ? void 0 : a.map((o) => (o.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), o =
|
|
21339
|
+
return (r == null ? void 0 : r.length) === 0 ? n.children = (s = n.children) == null ? void 0 : s.filter((o) => o.id !== t) : n.children = (a = n.children) == null ? void 0 : a.map((o) => (o.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), o = fc(o, r, t)), o)), n;
|
|
21340
21340
|
}, hg = (i, e, t) => {
|
|
21341
21341
|
if (e === "")
|
|
21342
21342
|
return t;
|
|
@@ -21346,12 +21346,12 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21346
21346
|
}
|
|
21347
21347
|
}, ug = (i, e, t) => {
|
|
21348
21348
|
let n = i, r = e;
|
|
21349
|
-
return (r == null ? void 0 : r.length) === 0 ? n = t : n = n == null ? void 0 : n.map((s) => (s.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), s =
|
|
21350
|
-
},
|
|
21349
|
+
return (r == null ? void 0 : r.length) === 0 ? n = t : n = n == null ? void 0 : n.map((s) => (s.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), s = dc(s, r, t)), s)), n;
|
|
21350
|
+
}, dc = (i, e, t) => {
|
|
21351
21351
|
var s;
|
|
21352
21352
|
let n = i, r = e;
|
|
21353
|
-
return (r == null ? void 0 : r.length) === 0 ? n.children = t : n.children = (s = n.children) == null ? void 0 : s.map((a) => (a.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), a =
|
|
21354
|
-
},
|
|
21353
|
+
return (r == null ? void 0 : r.length) === 0 ? n.children = t : n.children = (s = n.children) == null ? void 0 : s.map((a) => (a.id.toString() === (r == null ? void 0 : r[0]) && (r == null || r.shift(), a = dc(a, r, t)), a)), n;
|
|
21354
|
+
}, pc = (i, e) => i == null ? void 0 : i.map((n) => {
|
|
21355
21355
|
var r, s, a, o, l, c;
|
|
21356
21356
|
if (Array.isArray(n) ? n = n : n = [n], (r = n == null ? void 0 : n.filter((h) => !(h != null && h.id))) != null && r.every((h) => typeof h != "object" || h === null))
|
|
21357
21357
|
return n;
|
|
@@ -21372,7 +21372,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21372
21372
|
}
|
|
21373
21373
|
return h;
|
|
21374
21374
|
}
|
|
21375
|
-
}),
|
|
21375
|
+
}), Fg = (i) => {
|
|
21376
21376
|
try {
|
|
21377
21377
|
return JSON.parse(i), !0;
|
|
21378
21378
|
} catch {
|
|
@@ -21404,7 +21404,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21404
21404
|
return c[e[l]] = o, c;
|
|
21405
21405
|
})) == null ? void 0 : a.filter((o) => o), s;
|
|
21406
21406
|
}), n;
|
|
21407
|
-
},
|
|
21407
|
+
}, Og = (i, e) => {
|
|
21408
21408
|
var a, o;
|
|
21409
21409
|
const t = Ie(i), n = (a = t == null ? void 0 : t.find((l) => (l == null ? void 0 : l.key) === "header")) == null ? void 0 : a.contents, r = (o = t == null ? void 0 : t.find((l) => (l == null ? void 0 : l.key) === "tableContents")) == null ? void 0 : o.contents;
|
|
21410
21410
|
return fg(r, Ci(n).slice(0, Ci(n).length - 1), e);
|
|
@@ -21531,7 +21531,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21531
21531
|
}) : [i].forEach((n, r) => {
|
|
21532
21532
|
t[e[r]] = n;
|
|
21533
21533
|
}), t;
|
|
21534
|
-
},
|
|
21534
|
+
}, Bg = async (i) => {
|
|
21535
21535
|
let e = [];
|
|
21536
21536
|
i == null || i.forEach((t) => {
|
|
21537
21537
|
var n;
|
|
@@ -21573,7 +21573,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21573
21573
|
tableData: Zr(E, (x = Ci((y = (L = (C = Rn(Ie(h))) == null ? void 0 : C.compData) == null ? void 0 : L.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : y.contents)) == null ? void 0 : x.filter((O) => O !== "操作"))
|
|
21574
21574
|
}
|
|
21575
21575
|
}));
|
|
21576
|
-
const R = await ((P = (await
|
|
21576
|
+
const R = await ((P = (await jn({
|
|
21577
21577
|
key: {
|
|
21578
21578
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
21579
21579
|
pageKey: t.name,
|
|
@@ -21656,7 +21656,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21656
21656
|
tableData: Zr(f, (L = Ci((C = (R = (D = Rn(Ie(l))) == null ? void 0 : D.compData) == null ? void 0 : R.find((x) => (x == null ? void 0 : x.key) === "header")) == null ? void 0 : C.contents)) == null ? void 0 : L.filter((x) => x !== "操作"))
|
|
21657
21657
|
}
|
|
21658
21658
|
}));
|
|
21659
|
-
const S = await ((y = (await
|
|
21659
|
+
const S = await ((y = (await jn({
|
|
21660
21660
|
key: {
|
|
21661
21661
|
parentTable: f,
|
|
21662
21662
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -21710,28 +21710,28 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21710
21710
|
});
|
|
21711
21711
|
});
|
|
21712
21712
|
}), await Promise.all(e);
|
|
21713
|
-
}, vg = (i) => {
|
|
21713
|
+
}, vg = wl(Yi), xg = (i) => {
|
|
21714
21714
|
var t;
|
|
21715
21715
|
const e = Array.isArray(i) ? i == null ? void 0 : i[0] : {};
|
|
21716
21716
|
return (t = e == null ? void 0 : e.contents) == null ? void 0 : t.map((n) => ({
|
|
21717
21717
|
...n[0],
|
|
21718
21718
|
...n[1]
|
|
21719
21719
|
}));
|
|
21720
|
-
},
|
|
21720
|
+
}, Mg = async (i, e, t = "", n) => {
|
|
21721
21721
|
var u, d, p, _, v, m;
|
|
21722
|
-
const r = await
|
|
21722
|
+
const r = await jn({
|
|
21723
21723
|
key: {
|
|
21724
21724
|
pageKey: i,
|
|
21725
21725
|
systemKey: e,
|
|
21726
21726
|
parentTable: t
|
|
21727
21727
|
}
|
|
21728
|
-
}), s = await
|
|
21728
|
+
}), s = await jn({
|
|
21729
21729
|
key: {
|
|
21730
21730
|
pageKey: i,
|
|
21731
21731
|
systemKey: e,
|
|
21732
21732
|
type: "structureMethod"
|
|
21733
21733
|
}
|
|
21734
|
-
}), a = (u = r.data.result) == null ? void 0 : u.map((f) => f.id), o = a == null ? void 0 : a.map((f) =>
|
|
21734
|
+
}), a = (u = r.data.result) == null ? void 0 : u.map((f) => f.id), o = a == null ? void 0 : a.map((f) => jn({
|
|
21735
21735
|
key: {
|
|
21736
21736
|
pageKey: i,
|
|
21737
21737
|
systemKey: e,
|
|
@@ -21758,7 +21758,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21758
21758
|
if (E && (E != null && E.find((C) => (C == null ? void 0 : C.key) === "header")) && E.push({
|
|
21759
21759
|
key: "tableContents",
|
|
21760
21760
|
// contents: getTableContents(currentTableContents?.find((v: any) => v?.key === t.id)?.contents, newCompData?.find((s: any) => s?.key === "header")?.contents)
|
|
21761
|
-
contents: n === "/系统管理/用户管理" ?
|
|
21761
|
+
contents: n === "/系统管理/用户管理" ? xg(c) : pc((S = c == null ? void 0 : c.find((C) => (C == null ? void 0 : C.key) === f.id)) == null ? void 0 : S.contents, (D = E == null ? void 0 : E.find((C) => (C == null ? void 0 : C.key) === "header")) == null ? void 0 : D.contents)
|
|
21762
21762
|
}), b.compData = E, b.id = f.id, ((R = f.key) == null ? void 0 : R.type) !== "method")
|
|
21763
21763
|
h.push(b);
|
|
21764
21764
|
else {
|
|
@@ -21774,11 +21774,11 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21774
21774
|
name: "",
|
|
21775
21775
|
compData: (m = (v = s.data.result) == null ? void 0 : v.map((f) => f.value.pageData)) == null ? void 0 : m.filter((f) => Object.values(f).length > 0)
|
|
21776
21776
|
}), h;
|
|
21777
|
-
},
|
|
21778
|
-
await
|
|
21777
|
+
}, zg = async (i) => {
|
|
21778
|
+
await bc({
|
|
21779
21779
|
id: i
|
|
21780
21780
|
});
|
|
21781
|
-
},
|
|
21781
|
+
}, kg = async (i, e, t, n, r, s) => {
|
|
21782
21782
|
var a;
|
|
21783
21783
|
await fn({
|
|
21784
21784
|
key: {
|
|
@@ -21791,7 +21791,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21791
21791
|
tableData: Zr(r, (a = Ci(s)) == null ? void 0 : a.filter((o) => o !== "操作"))
|
|
21792
21792
|
}
|
|
21793
21793
|
});
|
|
21794
|
-
},
|
|
21794
|
+
}, Hg = async (i, e, t, n, r, s, a) => {
|
|
21795
21795
|
var o;
|
|
21796
21796
|
await kr({
|
|
21797
21797
|
key: {
|
|
@@ -21805,20 +21805,33 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21805
21805
|
},
|
|
21806
21806
|
id: n
|
|
21807
21807
|
});
|
|
21808
|
-
},
|
|
21808
|
+
}, Vg = async (i, e) => {
|
|
21809
21809
|
await kr({
|
|
21810
21810
|
value: {
|
|
21811
21811
|
pageData: e
|
|
21812
21812
|
},
|
|
21813
21813
|
id: i
|
|
21814
21814
|
});
|
|
21815
|
-
},
|
|
21815
|
+
}, Sg = async (i, e) => await jn({
|
|
21816
21816
|
key: i,
|
|
21817
21817
|
valueLikes: e
|
|
21818
|
-
}),
|
|
21818
|
+
}), Gg = async () => {
|
|
21819
|
+
var i, e, t, n, r, s, a, o, l;
|
|
21820
|
+
try {
|
|
21821
|
+
const c = await jn({
|
|
21822
|
+
key: {
|
|
21823
|
+
systemKey: sessionStorage.getItem("systemKey"),
|
|
21824
|
+
layer: "superAdmin"
|
|
21825
|
+
}
|
|
21826
|
+
});
|
|
21827
|
+
((i = c == null ? void 0 : c.data) == null ? void 0 : i.code) === 200 && (vg.setPlatform(((r = (n = (t = (e = c == null ? void 0 : c.data) == null ? void 0 : e.result) == null ? void 0 : t[0]) == null ? void 0 : n.key) == null ? void 0 : r.type) === "制造系统" ? "client" : "browser"), (l = (o = (a = (s = c == null ? void 0 : c.data) == null ? void 0 : s.result) == null ? void 0 : a[0]) == null ? void 0 : o.key) == null || l.type);
|
|
21828
|
+
} catch (c) {
|
|
21829
|
+
return Promise.reject(c);
|
|
21830
|
+
}
|
|
21831
|
+
}, yg = { class: "table-content" }, Eg = ["onClick"], Tg = { class: "form-content" }, bg = {
|
|
21819
21832
|
key: 0,
|
|
21820
21833
|
class: "dialog-footer"
|
|
21821
|
-
},
|
|
21834
|
+
}, Ag = {
|
|
21822
21835
|
__name: "index",
|
|
21823
21836
|
props: {
|
|
21824
21837
|
itemData: {
|
|
@@ -21838,11 +21851,11 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21838
21851
|
},
|
|
21839
21852
|
emits: ["change", "contentChange", "onButtonClick", "contentClick", "pageChange"],
|
|
21840
21853
|
setup(i, { emit: e }) {
|
|
21841
|
-
const t = i, n = e, r = st([]), s =
|
|
21854
|
+
const t = i, n = e, r = st([]), s = wl(), { activeMenuPath: a } = Gi(s), o = Tl(Yi), { extraContents: l } = Gi(o), c = st([]), h = st(!1), u = st("");
|
|
21842
21855
|
st();
|
|
21843
21856
|
const d = st(!0), p = st(0), _ = st(!1), v = st(""), m = st(!1), f = st({
|
|
21844
21857
|
label: "查看三维模型"
|
|
21845
|
-
}), b = st([]), E = st(!1), S = st([]), D = st([]), R = st(), C = st(), L = ag(
|
|
21858
|
+
}), b = st([]), E = st(!1), S = st([]), D = st([]), R = st(), C = st(), L = ag(Yi), y = st(), x = og(Yi), { selectIndex: P, selectMenu: O, selectTitle: H } = Gi(x), { selectString: q } = Gi(L), ne = st(720), W = () => {
|
|
21846
21859
|
m.value = !1;
|
|
21847
21860
|
}, ie = (k, ae) => {
|
|
21848
21861
|
if (Object.values(ae).length !== 0)
|
|
@@ -21884,7 +21897,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21884
21897
|
let ae = {};
|
|
21885
21898
|
for (let Ee in k)
|
|
21886
21899
|
k[Ee] !== "" && (ae["tableData." + Ee] = k[Ee]);
|
|
21887
|
-
const te = await
|
|
21900
|
+
const te = await Sg({
|
|
21888
21901
|
type: "data",
|
|
21889
21902
|
tableId: t == null ? void 0 : t.index,
|
|
21890
21903
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
@@ -21896,10 +21909,10 @@ const ig = { class: "content-show" }, rg = {
|
|
|
21896
21909
|
id: Ee.id
|
|
21897
21910
|
}), fe.push((Oe = Ee == null ? void 0 : Ee.value) == null ? void 0 : Oe.tableData), fe;
|
|
21898
21911
|
});
|
|
21899
|
-
c.value = V(
|
|
21912
|
+
c.value = V(pc(Se, (Ve = (He = Ie(r.value)) == null ? void 0 : He.map((Ee) => Ee.label)) == null ? void 0 : Ve.filter((Ee) => Ee !== "操作")));
|
|
21900
21913
|
}, xe = async (k) => {
|
|
21901
21914
|
var te, Se, pe, K, A, He, Ve;
|
|
21902
|
-
let ae = await
|
|
21915
|
+
let ae = await Mg(a.value, sessionStorage.getItem("systemKey"), k.id);
|
|
21903
21916
|
if (ae = ae == null ? void 0 : ae.filter((Ee) => Ee.comp !== "methodButton"), ae && ae.length > 0) {
|
|
21904
21917
|
const Ee = !Array.isArray(H.value) && ((te = H.value) == null ? void 0 : te.key) !== "main" ? [] : H.value;
|
|
21905
21918
|
Ee.push({
|
|
@@ -22046,7 +22059,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22046
22059
|
return J;
|
|
22047
22060
|
}));
|
|
22048
22061
|
const re = !!((Le = r.value) != null && Le.find((J) => J.prop === "index"));
|
|
22049
|
-
ve =
|
|
22062
|
+
ve = uc(Ie(ve), He == null ? void 0 : He.contents, re);
|
|
22050
22063
|
const j = [];
|
|
22051
22064
|
ve == null || ve.forEach((J, Q) => {
|
|
22052
22065
|
var Ke;
|
|
@@ -22054,17 +22067,17 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22054
22067
|
if (Array.isArray(J)) {
|
|
22055
22068
|
let rt = [];
|
|
22056
22069
|
J == null || J.filter((ft) => !(ft != null && ft.id)).forEach((ft, Nt) => {
|
|
22057
|
-
var Ui, Jt,
|
|
22070
|
+
var Ui, Jt, Qn, Ii, Ni, Nn;
|
|
22058
22071
|
if ((Ui = le == null ? void 0 : le[Nt]) != null && Ui.prop && !Array.isArray(ft)) {
|
|
22059
|
-
let
|
|
22060
|
-
|
|
22072
|
+
let ei = {};
|
|
22073
|
+
ei[le[Nt].column] = ft, l != null && l.value && ((Jt = l == null ? void 0 : l.value) == null ? void 0 : Jt.length) > 0 && ((Qn = l == null ? void 0 : l.value) != null && Qn.find((St) => JSON.stringify(St == null ? void 0 : St[0]) === JSON.stringify(ei))) && (rt = (Ii = l == null ? void 0 : l.value) == null ? void 0 : Ii.find((St) => JSON.stringify(St == null ? void 0 : St[0]) === JSON.stringify(ei))), rt && rt.length > 0 ? We[le[Nt].prop] = rt != null && rt.find((St) => {
|
|
22061
22074
|
var Sn;
|
|
22062
22075
|
return ((Sn = Object.keys(St)) == null ? void 0 : Sn[0]) === le[Nt].column;
|
|
22063
22076
|
}) ? (Ni = rt == null ? void 0 : rt.find((St) => {
|
|
22064
22077
|
var Sn;
|
|
22065
22078
|
return ((Sn = Object.keys(St)) == null ? void 0 : Sn[0]) === le[Nt].column;
|
|
22066
22079
|
})) == null ? void 0 : Ni[le[Nt].column] : ft : We[le[Nt].prop] = ft;
|
|
22067
|
-
} else Array.isArray(ft) && ((Nn = le[Nt]) != null && Nn.prop ? We[le[Nt].prop] = ft : We.children =
|
|
22080
|
+
} else Array.isArray(ft) && ((Nn = le[Nt]) != null && Nn.prop ? We[le[Nt].prop] = ft : We.children = hc(ft, le));
|
|
22068
22081
|
});
|
|
22069
22082
|
} else
|
|
22070
22083
|
We = J;
|
|
@@ -22077,8 +22090,8 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22077
22090
|
{ deep: !0, immediate: !0 }
|
|
22078
22091
|
), (k, ae) => {
|
|
22079
22092
|
var te;
|
|
22080
|
-
return Ht(), mn("div",
|
|
22081
|
-
(Ht(), Aa(
|
|
22093
|
+
return Ht(), mn("div", yg, [
|
|
22094
|
+
(Ht(), Aa(Cc, {
|
|
22082
22095
|
columns: r.value,
|
|
22083
22096
|
key: r.value,
|
|
22084
22097
|
tableData: c.value,
|
|
@@ -22089,7 +22102,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22089
22102
|
extraButton: S.value,
|
|
22090
22103
|
onButtonClick: ae[1] || (ae[1] = (Se) => Ye(Se, "")),
|
|
22091
22104
|
onContentClick: ke
|
|
22092
|
-
},
|
|
22105
|
+
}, Tc({
|
|
22093
22106
|
headerButton: en((Se) => [
|
|
22094
22107
|
Pn(_h, {
|
|
22095
22108
|
buttons: Se.buttons,
|
|
@@ -22108,7 +22121,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22108
22121
|
style: El({ color: pe == null ? void 0 : pe.textColor }),
|
|
22109
22122
|
class: "extra-button-label",
|
|
22110
22123
|
onClick: (A) => Ye(pe == null ? void 0 : pe.label, Se)
|
|
22111
|
-
},
|
|
22124
|
+
}, Dr(pe == null ? void 0 : pe.label), 13, Eg)
|
|
22112
22125
|
]))), 128))
|
|
22113
22126
|
]),
|
|
22114
22127
|
key: "0"
|
|
@@ -22121,7 +22134,7 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22121
22134
|
onBeforeDestroy: W
|
|
22122
22135
|
}, {
|
|
22123
22136
|
default: en(() => [
|
|
22124
|
-
Yt("div",
|
|
22137
|
+
Yt("div", Tg, [
|
|
22125
22138
|
Pn(bl, {
|
|
22126
22139
|
rowContents: D.value,
|
|
22127
22140
|
isEnableWrap: !1,
|
|
@@ -22131,15 +22144,15 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22131
22144
|
])
|
|
22132
22145
|
]),
|
|
22133
22146
|
footer: en(() => [
|
|
22134
|
-
E.value ? (Ht(), mn("div",
|
|
22147
|
+
E.value ? (Ht(), mn("div", bg, [
|
|
22135
22148
|
Yt("div", {
|
|
22136
22149
|
onClick: ae[2] || (ae[2] = (Se) => m.value = !1),
|
|
22137
22150
|
class: "cancel-button"
|
|
22138
|
-
},
|
|
22151
|
+
}, Dr("取消")),
|
|
22139
22152
|
Yt("div", {
|
|
22140
22153
|
class: "ok-button",
|
|
22141
22154
|
onClick: Re
|
|
22142
|
-
},
|
|
22155
|
+
}, Dr("确认"))
|
|
22143
22156
|
])) : Ml("", !0)
|
|
22144
22157
|
]),
|
|
22145
22158
|
_: 1
|
|
@@ -22157,21 +22170,22 @@ const ig = { class: "content-show" }, rg = {
|
|
|
22157
22170
|
]);
|
|
22158
22171
|
};
|
|
22159
22172
|
}
|
|
22160
|
-
},
|
|
22173
|
+
}, Wg = /* @__PURE__ */ Ra(Ag, [["__scopeId", "data-v-3b0f751b"]]);
|
|
22161
22174
|
export {
|
|
22162
|
-
|
|
22175
|
+
Fg as I,
|
|
22163
22176
|
og as a,
|
|
22164
22177
|
vl as b,
|
|
22165
22178
|
Rn as c,
|
|
22166
22179
|
_l as d,
|
|
22167
|
-
|
|
22168
|
-
|
|
22169
|
-
|
|
22170
|
-
|
|
22171
|
-
|
|
22172
|
-
|
|
22173
|
-
|
|
22174
|
-
|
|
22180
|
+
Bg as e,
|
|
22181
|
+
Vg as f,
|
|
22182
|
+
Mg as g,
|
|
22183
|
+
zg as h,
|
|
22184
|
+
kg as i,
|
|
22185
|
+
Hg as j,
|
|
22186
|
+
Gg as l,
|
|
22187
|
+
Og as m,
|
|
22188
|
+
Wg as s,
|
|
22175
22189
|
sg as t,
|
|
22176
22190
|
ag as u
|
|
22177
22191
|
};
|