@needle-tools/engine 3.6.13 → 3.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/needle-engine.js +592 -589
- package/dist/needle-engine.light.js +576 -573
- package/dist/needle-engine.light.min.js +54 -54
- package/dist/needle-engine.light.umd.cjs +44 -44
- package/dist/needle-engine.min.js +55 -55
- package/dist/needle-engine.umd.cjs +45 -45
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.d.ts +1 -0
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +5 -1
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/codegen/register_types.js +2 -2
- package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +8 -1
package/dist/needle-engine.js
CHANGED
|
@@ -123,9 +123,9 @@ function Yp(i) {
|
|
|
123
123
|
}
|
|
124
124
|
const Id = aA("debugresolveurl"), g2 = "rel:";
|
|
125
125
|
function jCA(i, A) {
|
|
126
|
-
return
|
|
126
|
+
return mr(i, A);
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function mr(i, A) {
|
|
129
129
|
if (A === void 0)
|
|
130
130
|
return Id && console.warn("getPath: uri is undefined, returning uri", A), A;
|
|
131
131
|
if (A.startsWith("./"))
|
|
@@ -500,7 +500,7 @@ function d2(i, A) {
|
|
|
500
500
|
* Copyright 2010-2022 Three.js Authors
|
|
501
501
|
* SPDX-License-Identifier: MIT
|
|
502
502
|
*/
|
|
503
|
-
const aa = "147dev", Ya = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ta = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, oq = 0, D0 = 1, Cq = 2, u2 = 3, D2 = 0, aG = 1, rG = 2, LB = 3, zg = 0, vi = 1, Ut = 2, Vt = 0, Ks = 1,
|
|
503
|
+
const aa = "147dev", Ya = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ta = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, oq = 0, D0 = 1, Cq = 2, u2 = 3, D2 = 0, aG = 1, rG = 2, LB = 3, zg = 0, vi = 1, Ut = 2, Vt = 0, Ks = 1, ur = 2, p0 = 3, f0 = 4, sq = 5, za = 100, nq = 101, aq = 102, w0 = 103, y0 = 104, rq = 200, Bq = 201, Qq = 202, Eq = 203, BG = 204, QG = 205, cq = 206, hq = 207, lq = 208, dq = 209, uq = 210, EG = 0, Tp = 1, Ch = 2, sQ = 3, nQ = 4, Hp = 5, _p = 6, jh = 7, zh = 0, Dq = 1, pq = 2, Vg = 0, sh = 1, cG = 2, fq = 3, hG = 4, wq = 5, Op = 300, Aa = 301, ea = 302, lo = 303, aQ = 304, FQ = 306, dI = 1e3, eg = 1001, xs = 1002, $e = 1003, rQ = 1004, p2 = 1004, BQ = 1005, f2 = 1005, qe = 1006, Zh = 1007, w2 = 1007, iC = 1008, y2 = 1008, pt = 1009, yq = 1010, Sq = 1011, lG = 1012, kq = 1013, ks = 1014, ki = 1015, xi = 1016, Gq = 1017, Mq = 1018, Pn = 1020, mq = 1021, Rq = 1022, qt = 1023, Pp = 1024, Uq = 1025, Wn = 1026, ta = 1027, xn = 1028, Fq = 1029, ir = 1030, Nq = 1031, Kq = 1033, yc = 33776, bu = 33777, Lu = 33778, Sc = 33779, UD = 35840, S0 = 35841, FD = 35842, k0 = 35843, dG = 36196, ND = 37492, KD = 37496, JD = 37808, G0 = 37809, M0 = 37810, m0 = 37811, R0 = 37812, U0 = 37813, F0 = 37814, N0 = 37815, K0 = 37816, J0 = 37817, q0 = 37818, b0 = 37819, L0 = 37820, v0 = 37821, qD = 36492, nh = 2200, uG = 2201, Jq = 2202, Dr = 2300, Ys = 2301, vu = 2302, gr = 2400, Ir = 2401, ah = 2402, Wp = 2500, DG = 2501, S2 = 0, qq = 1, pG = 2, li = 3e3, De = 3001, cg = 3200, Vp = 3201, ra = 0, bq = 1, Lq = "", Oo = "srgb", QQ = "srgb-linear", vq = 0, kc = 7680, xq = 7681, Yq = 7682, Tq = 7683, Hq = 34055, _q = 34056, Oq = 5386, Pq = 512, Wq = 513, Vq = 514, jq = 515, zq = 516, Zq = 517, Xq = 518, fG = 519, rh = 35044, kg = 35048, k2 = 35040, G2 = 35045, M2 = 35049, m2 = 35041, R2 = 35046, U2 = 35050, F2 = 35042, N2 = "100", x0 = "300 es", bD = 1035;
|
|
504
504
|
class Pi {
|
|
505
505
|
addEventListener(A, e) {
|
|
506
506
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -537,7 +537,7 @@ class Pi {
|
|
|
537
537
|
}
|
|
538
538
|
const ug = ["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"];
|
|
539
539
|
let sU = 1234567;
|
|
540
|
-
const
|
|
540
|
+
const Qr = Math.PI / 180, EQ = 180 / Math.PI;
|
|
541
541
|
function KI() {
|
|
542
542
|
const i = Math.random() * 4294967295 | 0, A = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0;
|
|
543
543
|
return (ug[i & 255] + ug[i >> 8 & 255] + ug[i >> 16 & 255] + ug[i >> 24 & 255] + "-" + ug[A & 255] + ug[A >> 8 & 255] + "-" + ug[A >> 16 & 15 | 64] + ug[A >> 24 & 255] + "-" + ug[e & 63 | 128] + ug[e >> 8 & 255] + "-" + ug[e >> 16 & 255] + ug[e >> 24 & 255] + ug[t & 255] + ug[t >> 8 & 255] + ug[t >> 16 & 255] + ug[t >> 24 & 255]).toLowerCase();
|
|
@@ -584,7 +584,7 @@ function H2(i) {
|
|
|
584
584
|
return A = Math.imul(A ^ A >>> 15, A | 1), A ^= A + Math.imul(A ^ A >>> 7, A | 61), ((A ^ A >>> 14) >>> 0) / 4294967296;
|
|
585
585
|
}
|
|
586
586
|
function _2(i) {
|
|
587
|
-
return i *
|
|
587
|
+
return i * Qr;
|
|
588
588
|
}
|
|
589
589
|
function O2(i) {
|
|
590
590
|
return i * EQ;
|
|
@@ -657,7 +657,7 @@ function kt(i, A) {
|
|
|
657
657
|
}
|
|
658
658
|
var jg = /* @__PURE__ */ Object.freeze({
|
|
659
659
|
__proto__: null,
|
|
660
|
-
DEG2RAD:
|
|
660
|
+
DEG2RAD: Qr,
|
|
661
661
|
RAD2DEG: EQ,
|
|
662
662
|
generateUUID: KI,
|
|
663
663
|
clamp: Ei,
|
|
@@ -1069,14 +1069,14 @@ function vB(i, A) {
|
|
|
1069
1069
|
function Bh(i) {
|
|
1070
1070
|
return document.createElementNS("http://www.w3.org/1999/xhtml", i);
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Er(i) {
|
|
1073
1073
|
return i < 0.04045 ? i * 0.0773993808 : Math.pow(i * 0.9478672986 + 0.0521327014, 2.4);
|
|
1074
1074
|
}
|
|
1075
1075
|
function xu(i) {
|
|
1076
1076
|
return i < 31308e-7 ? i * 12.92 : 1.055 * Math.pow(i, 0.41666) - 0.055;
|
|
1077
1077
|
}
|
|
1078
1078
|
const oy = {
|
|
1079
|
-
[Oo]: { [QQ]:
|
|
1079
|
+
[Oo]: { [QQ]: Er },
|
|
1080
1080
|
[QQ]: { [Oo]: xu }
|
|
1081
1081
|
}, wg = {
|
|
1082
1082
|
legacyMode: !0,
|
|
@@ -1326,7 +1326,7 @@ class wA {
|
|
|
1326
1326
|
return this.r = A.r, this.g = A.g, this.b = A.b, this;
|
|
1327
1327
|
}
|
|
1328
1328
|
copySRGBToLinear(A) {
|
|
1329
|
-
return this.r =
|
|
1329
|
+
return this.r = Er(A.r), this.g = Er(A.g), this.b = Er(A.b), this;
|
|
1330
1330
|
}
|
|
1331
1331
|
copyLinearToSRGB(A) {
|
|
1332
1332
|
return this.r = xu(A.r), this.g = xu(A.g), this.b = xu(A.b), this;
|
|
@@ -1425,7 +1425,7 @@ class wA {
|
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
wA.NAMES = eb;
|
|
1428
|
-
let
|
|
1428
|
+
let $r;
|
|
1429
1429
|
class yG {
|
|
1430
1430
|
static getDataURL(A) {
|
|
1431
1431
|
if (/^data:/i.test(A.src) || typeof HTMLCanvasElement > "u")
|
|
@@ -1434,9 +1434,9 @@ class yG {
|
|
|
1434
1434
|
if (A instanceof HTMLCanvasElement)
|
|
1435
1435
|
e = A;
|
|
1436
1436
|
else {
|
|
1437
|
-
|
|
1438
|
-
const t =
|
|
1439
|
-
A instanceof ImageData ? t.putImageData(A, 0, 0) : t.drawImage(A, 0, 0, A.width, A.height), e =
|
|
1437
|
+
$r === void 0 && ($r = Bh("canvas")), $r.width = A.width, $r.height = A.height;
|
|
1438
|
+
const t = $r.getContext("2d");
|
|
1439
|
+
A instanceof ImageData ? t.putImageData(A, 0, 0) : t.drawImage(A, 0, 0, A.width, A.height), e = $r;
|
|
1440
1440
|
}
|
|
1441
1441
|
return e.width > 2048 || e.height > 2048 ? (console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons", A), e.toDataURL("image/jpeg", 0.6)) : e.toDataURL("image/png");
|
|
1442
1442
|
}
|
|
@@ -1448,12 +1448,12 @@ class yG {
|
|
|
1448
1448
|
t.drawImage(A, 0, 0, A.width, A.height);
|
|
1449
1449
|
const g = t.getImageData(0, 0, A.width, A.height), I = g.data;
|
|
1450
1450
|
for (let o = 0; o < I.length; o++)
|
|
1451
|
-
I[o] =
|
|
1451
|
+
I[o] = Er(I[o] / 255) * 255;
|
|
1452
1452
|
return t.putImageData(g, 0, 0), e;
|
|
1453
1453
|
} else if (A.data) {
|
|
1454
1454
|
const e = A.data.slice(0);
|
|
1455
1455
|
for (let t = 0; t < e.length; t++)
|
|
1456
|
-
e instanceof Uint8Array || e instanceof Uint8ClampedArray ? e[t] = Math.floor(
|
|
1456
|
+
e instanceof Uint8Array || e instanceof Uint8ClampedArray ? e[t] = Math.floor(Er(e[t] / 255) * 255) : e[t] = Er(e[t]);
|
|
1457
1457
|
return {
|
|
1458
1458
|
data: e,
|
|
1459
1459
|
width: A.width,
|
|
@@ -2433,7 +2433,7 @@ class Rg {
|
|
|
2433
2433
|
intersectsTriangle(A) {
|
|
2434
2434
|
if (this.isEmpty())
|
|
2435
2435
|
return !1;
|
|
2436
|
-
this.getCenter(NE), sd.subVectors(this.max, NE),
|
|
2436
|
+
this.getCenter(NE), sd.subVectors(this.max, NE), AB.subVectors(A.a, NE), eB.subVectors(A.b, NE), tB.subVectors(A.c, NE), rn.subVectors(eB, AB), Bn.subVectors(tB, eB), ma.subVectors(AB, tB);
|
|
2437
2437
|
let e = [
|
|
2438
2438
|
0,
|
|
2439
2439
|
-rn.z,
|
|
@@ -2463,7 +2463,7 @@ class Rg {
|
|
|
2463
2463
|
ma.x,
|
|
2464
2464
|
0
|
|
2465
2465
|
];
|
|
2466
|
-
return !ry(e,
|
|
2466
|
+
return !ry(e, AB, eB, tB, sd) || (e = [1, 0, 0, 0, 1, 0, 0, 0, 1], !ry(e, AB, eB, tB, sd)) ? !1 : (nd.crossVectors(rn, Bn), e = [nd.x, nd.y, nd.z], ry(e, AB, eB, tB, sd));
|
|
2467
2467
|
}
|
|
2468
2468
|
clampPoint(A, e) {
|
|
2469
2469
|
return e.copy(A).clamp(this.min, this.max);
|
|
@@ -2499,7 +2499,7 @@ const $C = [
|
|
|
2499
2499
|
/* @__PURE__ */ new S(),
|
|
2500
2500
|
/* @__PURE__ */ new S(),
|
|
2501
2501
|
/* @__PURE__ */ new S()
|
|
2502
|
-
], Ma = /* @__PURE__ */ new S(), ay = /* @__PURE__ */ new Rg(),
|
|
2502
|
+
], Ma = /* @__PURE__ */ new S(), ay = /* @__PURE__ */ new Rg(), AB = /* @__PURE__ */ new S(), eB = /* @__PURE__ */ new S(), tB = /* @__PURE__ */ new S(), rn = /* @__PURE__ */ new S(), Bn = /* @__PURE__ */ new S(), ma = /* @__PURE__ */ new S(), NE = /* @__PURE__ */ new S(), sd = /* @__PURE__ */ new S(), nd = /* @__PURE__ */ new S(), Ra = /* @__PURE__ */ new S();
|
|
2503
2503
|
function ry(i, A, e, t, g) {
|
|
2504
2504
|
for (let I = 0, o = i.length - 3; I <= o; I += 3) {
|
|
2505
2505
|
Ra.fromArray(i, I);
|
|
@@ -2802,7 +2802,7 @@ class NA {
|
|
|
2802
2802
|
), this;
|
|
2803
2803
|
}
|
|
2804
2804
|
extractRotation(A) {
|
|
2805
|
-
const e = this.elements, t = A.elements, g = 1 /
|
|
2805
|
+
const e = this.elements, t = A.elements, g = 1 / iB.setFromMatrixColumn(A, 0).length(), I = 1 / iB.setFromMatrixColumn(A, 1).length(), o = 1 / iB.setFromMatrixColumn(A, 2).length();
|
|
2806
2806
|
return e[0] = t[0] * g, e[1] = t[1] * g, e[2] = t[2] * g, e[3] = 0, e[4] = t[4] * I, e[5] = t[5] * I, e[6] = t[6] * I, e[7] = 0, e[8] = t[8] * o, e[9] = t[9] * o, e[10] = t[10] * o, e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, this;
|
|
2807
2807
|
}
|
|
2808
2808
|
makeRotationFromEuler(A) {
|
|
@@ -3027,8 +3027,8 @@ class NA {
|
|
|
3027
3027
|
}
|
|
3028
3028
|
decompose(A, e, t) {
|
|
3029
3029
|
const g = this.elements;
|
|
3030
|
-
let I =
|
|
3031
|
-
const o =
|
|
3030
|
+
let I = iB.set(g[0], g[1], g[2]).length();
|
|
3031
|
+
const o = iB.set(g[4], g[5], g[6]).length(), C = iB.set(g[8], g[9], g[10]).length();
|
|
3032
3032
|
this.determinant() < 0 && (I = -I), A.x = g[12], A.y = g[13], A.z = g[14], Jo.copy(this);
|
|
3033
3033
|
const n = 1 / I, a = 1 / o, B = 1 / C;
|
|
3034
3034
|
return Jo.elements[0] *= n, Jo.elements[1] *= n, Jo.elements[2] *= n, Jo.elements[4] *= a, Jo.elements[5] *= a, Jo.elements[6] *= a, Jo.elements[8] *= B, Jo.elements[9] *= B, Jo.elements[10] *= B, e.setFromRotationMatrix(Jo), t.x = I, t.y = o, t.z = C, this;
|
|
@@ -3058,7 +3058,7 @@ class NA {
|
|
|
3058
3058
|
return A[e] = t[0], A[e + 1] = t[1], A[e + 2] = t[2], A[e + 3] = t[3], A[e + 4] = t[4], A[e + 5] = t[5], A[e + 6] = t[6], A[e + 7] = t[7], A[e + 8] = t[8], A[e + 9] = t[9], A[e + 10] = t[10], A[e + 11] = t[11], A[e + 12] = t[12], A[e + 13] = t[13], A[e + 14] = t[14], A[e + 15] = t[15], A;
|
|
3059
3059
|
}
|
|
3060
3060
|
}
|
|
3061
|
-
const
|
|
3061
|
+
const iB = /* @__PURE__ */ new S(), Jo = /* @__PURE__ */ new NA(), $2 = /* @__PURE__ */ new S(0, 0, 0), A_ = /* @__PURE__ */ new S(1, 1, 1), En = /* @__PURE__ */ new S(), Bd = /* @__PURE__ */ new S(), wI = /* @__PURE__ */ new S(), aU = /* @__PURE__ */ new NA(), rU = /* @__PURE__ */ new kA();
|
|
3062
3062
|
class Mi {
|
|
3063
3063
|
constructor(A = 0, e = 0, t = 0, g = Mi.DefaultOrder) {
|
|
3064
3064
|
this.isEuler = !0, this._x = A, this._y = e, this._z = t, this._order = g;
|
|
@@ -3185,7 +3185,7 @@ class fo {
|
|
|
3185
3185
|
}
|
|
3186
3186
|
}
|
|
3187
3187
|
let e_ = 0;
|
|
3188
|
-
const BU = /* @__PURE__ */ new S(),
|
|
3188
|
+
const BU = /* @__PURE__ */ new S(), gB = /* @__PURE__ */ new kA(), es = /* @__PURE__ */ new NA(), Qd = /* @__PURE__ */ new S(), JE = /* @__PURE__ */ new S(), t_ = /* @__PURE__ */ new S(), i_ = /* @__PURE__ */ new kA(), QU = /* @__PURE__ */ new S(1, 0, 0), EU = /* @__PURE__ */ new S(0, 1, 0), cU = /* @__PURE__ */ new S(0, 0, 1), g_ = { type: "added" }, hU = { type: "removed" };
|
|
3189
3189
|
class UA extends Pi {
|
|
3190
3190
|
constructor() {
|
|
3191
3191
|
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: e_++ }), this.uuid = KI(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = UA.DefaultUp.clone();
|
|
@@ -3248,10 +3248,10 @@ class UA extends Pi {
|
|
|
3248
3248
|
this.quaternion.copy(A);
|
|
3249
3249
|
}
|
|
3250
3250
|
rotateOnAxis(A, e) {
|
|
3251
|
-
return
|
|
3251
|
+
return gB.setFromAxisAngle(A, e), this.quaternion.multiply(gB), this;
|
|
3252
3252
|
}
|
|
3253
3253
|
rotateOnWorldAxis(A, e) {
|
|
3254
|
-
return
|
|
3254
|
+
return gB.setFromAxisAngle(A, e), this.quaternion.premultiply(gB), this;
|
|
3255
3255
|
}
|
|
3256
3256
|
rotateX(A) {
|
|
3257
3257
|
return this.rotateOnAxis(QU, A);
|
|
@@ -3283,7 +3283,7 @@ class UA extends Pi {
|
|
|
3283
3283
|
lookAt(A, e, t) {
|
|
3284
3284
|
A.isVector3 ? Qd.copy(A) : Qd.set(A, e, t);
|
|
3285
3285
|
const g = this.parent;
|
|
3286
|
-
this.updateWorldMatrix(!0, !1), JE.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? es.lookAt(JE, Qd, this.up) : es.lookAt(Qd, JE, this.up), this.quaternion.setFromRotationMatrix(es), g && (es.extractRotation(g.matrixWorld),
|
|
3286
|
+
this.updateWorldMatrix(!0, !1), JE.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? es.lookAt(JE, Qd, this.up) : es.lookAt(Qd, JE, this.up), this.quaternion.setFromRotationMatrix(es), g && (es.extractRotation(g.matrixWorld), gB.setFromRotationMatrix(es), this.quaternion.premultiply(gB.invert()));
|
|
3287
3287
|
}
|
|
3288
3288
|
add(A) {
|
|
3289
3289
|
if (arguments.length > 1) {
|
|
@@ -3472,7 +3472,7 @@ class UA extends Pi {
|
|
|
3472
3472
|
UA.DefaultUp = /* @__PURE__ */ new S(0, 1, 0);
|
|
3473
3473
|
UA.DefaultMatrixAutoUpdate = !0;
|
|
3474
3474
|
UA.DefaultMatrixWorldAutoUpdate = !0;
|
|
3475
|
-
const qo = /* @__PURE__ */ new S(), ts = /* @__PURE__ */ new S(), hy = /* @__PURE__ */ new S(), is = /* @__PURE__ */ new S(),
|
|
3475
|
+
const qo = /* @__PURE__ */ new S(), ts = /* @__PURE__ */ new S(), hy = /* @__PURE__ */ new S(), is = /* @__PURE__ */ new S(), IB = /* @__PURE__ */ new S(), oB = /* @__PURE__ */ new S(), lU = /* @__PURE__ */ new S(), ly = /* @__PURE__ */ new S(), dy = /* @__PURE__ */ new S(), uy = /* @__PURE__ */ new S();
|
|
3476
3476
|
class RI {
|
|
3477
3477
|
constructor(A = new S(), e = new S(), t = new S()) {
|
|
3478
3478
|
this.a = A, this.b = e, this.c = t;
|
|
@@ -3546,29 +3546,29 @@ class RI {
|
|
|
3546
3546
|
closestPointToPoint(A, e) {
|
|
3547
3547
|
const t = this.a, g = this.b, I = this.c;
|
|
3548
3548
|
let o, C;
|
|
3549
|
-
|
|
3550
|
-
const s =
|
|
3549
|
+
IB.subVectors(g, t), oB.subVectors(I, t), ly.subVectors(A, t);
|
|
3550
|
+
const s = IB.dot(ly), n = oB.dot(ly);
|
|
3551
3551
|
if (s <= 0 && n <= 0)
|
|
3552
3552
|
return e.copy(t);
|
|
3553
3553
|
dy.subVectors(A, g);
|
|
3554
|
-
const a =
|
|
3554
|
+
const a = IB.dot(dy), B = oB.dot(dy);
|
|
3555
3555
|
if (a >= 0 && B <= a)
|
|
3556
3556
|
return e.copy(g);
|
|
3557
3557
|
const Q = s * B - a * n;
|
|
3558
3558
|
if (Q <= 0 && s >= 0 && a <= 0)
|
|
3559
|
-
return o = s / (s - a), e.copy(t).addScaledVector(
|
|
3559
|
+
return o = s / (s - a), e.copy(t).addScaledVector(IB, o);
|
|
3560
3560
|
uy.subVectors(A, I);
|
|
3561
|
-
const E =
|
|
3561
|
+
const E = IB.dot(uy), c = oB.dot(uy);
|
|
3562
3562
|
if (c >= 0 && E <= c)
|
|
3563
3563
|
return e.copy(I);
|
|
3564
3564
|
const h = E * n - s * c;
|
|
3565
3565
|
if (h <= 0 && n >= 0 && c <= 0)
|
|
3566
|
-
return C = n / (n - c), e.copy(t).addScaledVector(
|
|
3566
|
+
return C = n / (n - c), e.copy(t).addScaledVector(oB, C);
|
|
3567
3567
|
const l = a * c - E * B;
|
|
3568
3568
|
if (l <= 0 && B - a >= 0 && E - c >= 0)
|
|
3569
3569
|
return lU.subVectors(I, g), C = (B - a) / (B - a + (E - c)), e.copy(g).addScaledVector(lU, C);
|
|
3570
3570
|
const d = 1 / (l + h + Q);
|
|
3571
|
-
return o = h * d, C = Q * d, e.copy(t).addScaledVector(
|
|
3571
|
+
return o = h * d, C = Q * d, e.copy(t).addScaledVector(IB, o).addScaledVector(oB, C);
|
|
3572
3572
|
}
|
|
3573
3573
|
equals(A) {
|
|
3574
3574
|
return A.a.equals(this.a) && A.b.equals(this.b) && A.c.equals(this.c);
|
|
@@ -3577,7 +3577,7 @@ class RI {
|
|
|
3577
3577
|
let I_ = 0;
|
|
3578
3578
|
class Ke extends Pi {
|
|
3579
3579
|
constructor() {
|
|
3580
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: I_++ }), this.uuid = KI(), this.name = "", this.type = "Material", this.blending = Ks, this.side = zg, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = BG, this.blendDst = QG, this.blendEquation =
|
|
3580
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: I_++ }), this.uuid = KI(), this.name = "", this.type = "Material", this.blending = Ks, this.side = zg, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = BG, this.blendDst = QG, this.blendEquation = za, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = sQ, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = fG, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = kc, this.stencilZFail = kc, this.stencilZPass = kc, 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.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3581
3581
|
}
|
|
3582
3582
|
get alphaTest() {
|
|
3583
3583
|
return this._alphaTest;
|
|
@@ -3839,7 +3839,7 @@ class B_ extends Ce {
|
|
|
3839
3839
|
}
|
|
3840
3840
|
}
|
|
3841
3841
|
let Q_ = 0;
|
|
3842
|
-
const jI = /* @__PURE__ */ new NA(), Dy = /* @__PURE__ */ new UA(),
|
|
3842
|
+
const jI = /* @__PURE__ */ new NA(), Dy = /* @__PURE__ */ new UA(), CB = /* @__PURE__ */ new S(), yI = /* @__PURE__ */ new Rg(), qE = /* @__PURE__ */ new Rg(), zi = /* @__PURE__ */ new S();
|
|
3843
3843
|
class de extends Pi {
|
|
3844
3844
|
constructor() {
|
|
3845
3845
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Q_++ }), this.uuid = KI(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
@@ -3908,7 +3908,7 @@ class de extends Pi {
|
|
|
3908
3908
|
return Dy.lookAt(A), Dy.updateMatrix(), this.applyMatrix4(Dy.matrix), this;
|
|
3909
3909
|
}
|
|
3910
3910
|
center() {
|
|
3911
|
-
return this.computeBoundingBox(), this.boundingBox.getCenter(
|
|
3911
|
+
return this.computeBoundingBox(), this.boundingBox.getCenter(CB).negate(), this.translate(CB.x, CB.y, CB.z), this;
|
|
3912
3912
|
}
|
|
3913
3913
|
setFromPoints(A) {
|
|
3914
3914
|
const e = [];
|
|
@@ -3960,7 +3960,7 @@ class de extends Pi {
|
|
|
3960
3960
|
for (let I = 0, o = e.length; I < o; I++) {
|
|
3961
3961
|
const C = e[I], s = this.morphTargetsRelative;
|
|
3962
3962
|
for (let n = 0, a = C.count; n < a; n++)
|
|
3963
|
-
zi.fromBufferAttribute(C, n), s && (
|
|
3963
|
+
zi.fromBufferAttribute(C, n), s && (CB.fromBufferAttribute(A, n), zi.add(CB)), g = Math.max(g, t.distanceToSquared(zi));
|
|
3964
3964
|
}
|
|
3965
3965
|
this.boundingSphere.radius = Math.sqrt(g), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
|
|
3966
3966
|
}
|
|
@@ -4155,7 +4155,7 @@ class de extends Pi {
|
|
|
4155
4155
|
this.dispatchEvent({ type: "dispose" });
|
|
4156
4156
|
}
|
|
4157
4157
|
}
|
|
4158
|
-
const dU = /* @__PURE__ */ new NA(),
|
|
4158
|
+
const dU = /* @__PURE__ */ new NA(), sB = /* @__PURE__ */ new $s(), py = /* @__PURE__ */ new gC(), cn = /* @__PURE__ */ new S(), hn = /* @__PURE__ */ new S(), ln = /* @__PURE__ */ new S(), fy = /* @__PURE__ */ new S(), wy = /* @__PURE__ */ new S(), yy = /* @__PURE__ */ new S(), cd = /* @__PURE__ */ new S(), hd = /* @__PURE__ */ new S(), ld = /* @__PURE__ */ new S(), dd = /* @__PURE__ */ new P(), ud = /* @__PURE__ */ new P(), Dd = /* @__PURE__ */ new P(), Sy = /* @__PURE__ */ new S(), pd = /* @__PURE__ */ new S();
|
|
4159
4159
|
class DA extends UA {
|
|
4160
4160
|
constructor(A = new de(), e = new wt()) {
|
|
4161
4161
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
@@ -4178,7 +4178,7 @@ class DA extends UA {
|
|
|
4178
4178
|
}
|
|
4179
4179
|
raycast(A, e) {
|
|
4180
4180
|
const t = this.geometry, g = this.material, I = this.matrixWorld;
|
|
4181
|
-
if (g === void 0 || (t.boundingSphere === null && t.computeBoundingSphere(), py.copy(t.boundingSphere), py.applyMatrix4(I), A.ray.intersectsSphere(py) === !1) || (dU.copy(I).invert(),
|
|
4181
|
+
if (g === void 0 || (t.boundingSphere === null && t.computeBoundingSphere(), py.copy(t.boundingSphere), py.applyMatrix4(I), A.ray.intersectsSphere(py) === !1) || (dU.copy(I).invert(), sB.copy(A.ray).applyMatrix4(dU), t.boundingBox !== null && sB.intersectsBox(t.boundingBox) === !1))
|
|
4182
4182
|
return;
|
|
4183
4183
|
let o;
|
|
4184
4184
|
const C = t.index, s = t.attributes.position, n = t.morphAttributes.position, a = t.morphTargetsRelative, B = t.attributes.uv, Q = t.attributes.uv2, E = t.groups, c = t.drawRange;
|
|
@@ -4188,14 +4188,14 @@ class DA extends UA {
|
|
|
4188
4188
|
const d = E[h], p = g[d.materialIndex], u = Math.max(d.start, c.start), D = Math.min(C.count, Math.min(d.start + d.count, c.start + c.count));
|
|
4189
4189
|
for (let y = u, k = D; y < k; y += 3) {
|
|
4190
4190
|
const R = C.getX(y), f = C.getX(y + 1), M = C.getX(y + 2);
|
|
4191
|
-
o = fd(this, p, A,
|
|
4191
|
+
o = fd(this, p, A, sB, s, n, a, B, Q, R, f, M), o && (o.faceIndex = Math.floor(y / 3), o.face.materialIndex = d.materialIndex, e.push(o));
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
4194
|
else {
|
|
4195
4195
|
const h = Math.max(0, c.start), l = Math.min(C.count, c.start + c.count);
|
|
4196
4196
|
for (let d = h, p = l; d < p; d += 3) {
|
|
4197
4197
|
const u = C.getX(d), D = C.getX(d + 1), y = C.getX(d + 2);
|
|
4198
|
-
o = fd(this, g, A,
|
|
4198
|
+
o = fd(this, g, A, sB, s, n, a, B, Q, u, D, y), o && (o.faceIndex = Math.floor(d / 3), e.push(o));
|
|
4199
4199
|
}
|
|
4200
4200
|
}
|
|
4201
4201
|
else if (s !== void 0)
|
|
@@ -4204,14 +4204,14 @@ class DA extends UA {
|
|
|
4204
4204
|
const d = E[h], p = g[d.materialIndex], u = Math.max(d.start, c.start), D = Math.min(s.count, Math.min(d.start + d.count, c.start + c.count));
|
|
4205
4205
|
for (let y = u, k = D; y < k; y += 3) {
|
|
4206
4206
|
const R = y, f = y + 1, M = y + 2;
|
|
4207
|
-
o = fd(this, p, A,
|
|
4207
|
+
o = fd(this, p, A, sB, s, n, a, B, Q, R, f, M), o && (o.faceIndex = Math.floor(y / 3), o.face.materialIndex = d.materialIndex, e.push(o));
|
|
4208
4208
|
}
|
|
4209
4209
|
}
|
|
4210
4210
|
else {
|
|
4211
4211
|
const h = Math.max(0, c.start), l = Math.min(s.count, c.start + c.count);
|
|
4212
4212
|
for (let d = h, p = l; d < p; d += 3) {
|
|
4213
4213
|
const u = d, D = d + 1, y = d + 2;
|
|
4214
|
-
o = fd(this, g, A,
|
|
4214
|
+
o = fd(this, g, A, sB, s, n, a, B, Q, u, D, y), o && (o.faceIndex = Math.floor(d / 3), e.push(o));
|
|
4215
4215
|
}
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
@@ -4384,7 +4384,7 @@ class be extends Ke {
|
|
|
4384
4384
|
return Object.keys(t).length > 0 && (e.extensions = t), e;
|
|
4385
4385
|
}
|
|
4386
4386
|
}
|
|
4387
|
-
let
|
|
4387
|
+
let Rr = class extends UA {
|
|
4388
4388
|
constructor() {
|
|
4389
4389
|
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new NA(), this.projectionMatrix = new NA(), this.projectionMatrixInverse = new NA();
|
|
4390
4390
|
}
|
|
@@ -4406,7 +4406,7 @@ let mr = class extends UA {
|
|
|
4406
4406
|
return new this.constructor().copy(this);
|
|
4407
4407
|
}
|
|
4408
4408
|
};
|
|
4409
|
-
class gt extends
|
|
4409
|
+
class gt extends Rr {
|
|
4410
4410
|
constructor(A = 50, e = 1, t = 0.1, g = 2e3) {
|
|
4411
4411
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = A, this.zoom = 1, this.near = t, this.far = g, this.focus = 10, this.aspect = e, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
4412
4412
|
}
|
|
@@ -4429,12 +4429,12 @@ class gt extends mr {
|
|
|
4429
4429
|
* Calculates the focal length from the current .fov and .filmGauge.
|
|
4430
4430
|
*/
|
|
4431
4431
|
getFocalLength() {
|
|
4432
|
-
const A = Math.tan(
|
|
4432
|
+
const A = Math.tan(Qr * 0.5 * this.fov);
|
|
4433
4433
|
return 0.5 * this.getFilmHeight() / A;
|
|
4434
4434
|
}
|
|
4435
4435
|
getEffectiveFOV() {
|
|
4436
4436
|
return EQ * 2 * Math.atan(
|
|
4437
|
-
Math.tan(
|
|
4437
|
+
Math.tan(Qr * 0.5 * this.fov) / this.zoom
|
|
4438
4438
|
);
|
|
4439
4439
|
}
|
|
4440
4440
|
getFilmWidth() {
|
|
@@ -4494,7 +4494,7 @@ class gt extends mr {
|
|
|
4494
4494
|
}
|
|
4495
4495
|
updateProjectionMatrix() {
|
|
4496
4496
|
const A = this.near;
|
|
4497
|
-
let e = A * Math.tan(
|
|
4497
|
+
let e = A * Math.tan(Qr * 0.5 * this.fov) / this.zoom, t = 2 * e, g = this.aspect * t, I = -0.5 * g;
|
|
4498
4498
|
const o = this.view;
|
|
4499
4499
|
if (this.view !== null && this.view.enabled) {
|
|
4500
4500
|
const s = o.fullWidth, n = o.fullHeight;
|
|
@@ -4508,21 +4508,21 @@ class gt extends mr {
|
|
|
4508
4508
|
return e.object.fov = this.fov, e.object.zoom = this.zoom, e.object.near = this.near, e.object.far = this.far, e.object.focus = this.focus, e.object.aspect = this.aspect, this.view !== null && (e.object.view = Object.assign({}, this.view)), e.object.filmGauge = this.filmGauge, e.object.filmOffset = this.filmOffset, e;
|
|
4509
4509
|
}
|
|
4510
4510
|
}
|
|
4511
|
-
const
|
|
4511
|
+
const nB = -90, aB = 1;
|
|
4512
4512
|
class MG extends UA {
|
|
4513
4513
|
constructor(A, e, t) {
|
|
4514
4514
|
super(), this.type = "CubeCamera", this.renderTarget = t;
|
|
4515
|
-
const g = new gt(
|
|
4515
|
+
const g = new gt(nB, aB, A, e);
|
|
4516
4516
|
g.layers = this.layers, g.up.set(0, 1, 0), g.lookAt(1, 0, 0), this.add(g);
|
|
4517
|
-
const I = new gt(
|
|
4517
|
+
const I = new gt(nB, aB, A, e);
|
|
4518
4518
|
I.layers = this.layers, I.up.set(0, 1, 0), I.lookAt(-1, 0, 0), this.add(I);
|
|
4519
|
-
const o = new gt(
|
|
4519
|
+
const o = new gt(nB, aB, A, e);
|
|
4520
4520
|
o.layers = this.layers, o.up.set(0, 0, -1), o.lookAt(0, 1, 0), this.add(o);
|
|
4521
|
-
const C = new gt(
|
|
4521
|
+
const C = new gt(nB, aB, A, e);
|
|
4522
4522
|
C.layers = this.layers, C.up.set(0, 0, 1), C.lookAt(0, -1, 0), this.add(C);
|
|
4523
|
-
const s = new gt(
|
|
4523
|
+
const s = new gt(nB, aB, A, e);
|
|
4524
4524
|
s.layers = this.layers, s.up.set(0, 1, 0), s.lookAt(0, 0, 1), this.add(s);
|
|
4525
|
-
const n = new gt(
|
|
4525
|
+
const n = new gt(nB, aB, A, e);
|
|
4526
4526
|
n.layers = this.layers, n.up.set(0, 1, 0), n.lookAt(0, 0, -1), this.add(n);
|
|
4527
4527
|
}
|
|
4528
4528
|
update(A, e) {
|
|
@@ -4689,7 +4689,7 @@ class Qo {
|
|
|
4689
4689
|
return new this.constructor().copy(this);
|
|
4690
4690
|
}
|
|
4691
4691
|
}
|
|
4692
|
-
const
|
|
4692
|
+
const rB = /* @__PURE__ */ new gC(), wd = /* @__PURE__ */ new S();
|
|
4693
4693
|
class zp {
|
|
4694
4694
|
constructor(A = new Qo(), e = new Qo(), t = new Qo(), g = new Qo(), I = new Qo(), o = new Qo()) {
|
|
4695
4695
|
this.planes = [A, e, t, g, I, o];
|
|
@@ -4710,10 +4710,10 @@ class zp {
|
|
|
4710
4710
|
}
|
|
4711
4711
|
intersectsObject(A) {
|
|
4712
4712
|
const e = A.geometry;
|
|
4713
|
-
return e.boundingSphere === null && e.computeBoundingSphere(),
|
|
4713
|
+
return e.boundingSphere === null && e.computeBoundingSphere(), rB.copy(e.boundingSphere).applyMatrix4(A.matrixWorld), this.intersectsSphere(rB);
|
|
4714
4714
|
}
|
|
4715
4715
|
intersectsSprite(A) {
|
|
4716
|
-
return
|
|
4716
|
+
return rB.center.set(0, 0, 0), rB.radius = 0.7071067811865476, rB.applyMatrix4(A.matrixWorld), this.intersectsSphere(rB);
|
|
4717
4717
|
}
|
|
4718
4718
|
intersectsSphere(A) {
|
|
4719
4719
|
const e = this.planes, t = A.center, g = -A.radius;
|
|
@@ -8755,7 +8755,7 @@ function g1(i) {
|
|
|
8755
8755
|
dispose: I
|
|
8756
8756
|
};
|
|
8757
8757
|
}
|
|
8758
|
-
class
|
|
8758
|
+
class Ur extends Rr {
|
|
8759
8759
|
constructor(A = -1, e = 1, t = 1, g = -1, I = 0.1, o = 2e3) {
|
|
8760
8760
|
super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = A, this.right = e, this.top = t, this.bottom = g, this.near = I, this.far = o, this.updateProjectionMatrix();
|
|
8761
8761
|
}
|
|
@@ -8790,19 +8790,19 @@ class Rr extends mr {
|
|
|
8790
8790
|
return e.object.zoom = this.zoom, e.object.left = this.left, e.object.right = this.right, e.object.top = this.top, e.object.bottom = this.bottom, e.object.near = this.near, e.object.far = this.far, this.view !== null && (e.object.view = Object.assign({}, this.view)), e;
|
|
8791
8791
|
}
|
|
8792
8792
|
}
|
|
8793
|
-
const xB = 4, uU = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582],
|
|
8793
|
+
const xB = 4, uU = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Za = 20, Gy = /* @__PURE__ */ new Ur(), DU = /* @__PURE__ */ new wA();
|
|
8794
8794
|
let My = null;
|
|
8795
|
-
const Ha = (1 + Math.sqrt(5)) / 2,
|
|
8795
|
+
const Ha = (1 + Math.sqrt(5)) / 2, BB = 1 / Ha, pU = [
|
|
8796
8796
|
/* @__PURE__ */ new S(1, 1, 1),
|
|
8797
8797
|
/* @__PURE__ */ new S(-1, 1, 1),
|
|
8798
8798
|
/* @__PURE__ */ new S(1, 1, -1),
|
|
8799
8799
|
/* @__PURE__ */ new S(-1, 1, -1),
|
|
8800
|
-
/* @__PURE__ */ new S(0, Ha,
|
|
8801
|
-
/* @__PURE__ */ new S(0, Ha, -
|
|
8802
|
-
/* @__PURE__ */ new S(
|
|
8803
|
-
/* @__PURE__ */ new S(-
|
|
8804
|
-
/* @__PURE__ */ new S(Ha,
|
|
8805
|
-
/* @__PURE__ */ new S(-Ha,
|
|
8800
|
+
/* @__PURE__ */ new S(0, Ha, BB),
|
|
8801
|
+
/* @__PURE__ */ new S(0, Ha, -BB),
|
|
8802
|
+
/* @__PURE__ */ new S(BB, 0, Ha),
|
|
8803
|
+
/* @__PURE__ */ new S(-BB, 0, Ha),
|
|
8804
|
+
/* @__PURE__ */ new S(Ha, BB, 0),
|
|
8805
|
+
/* @__PURE__ */ new S(-Ha, BB, 0)
|
|
8806
8806
|
];
|
|
8807
8807
|
class T0 {
|
|
8808
8808
|
constructor(A) {
|
|
@@ -8965,11 +8965,11 @@ class T0 {
|
|
|
8965
8965
|
o !== "latitudinal" && o !== "longitudinal" && console.error(
|
|
8966
8966
|
"blur direction must be either latitudinal or longitudinal!"
|
|
8967
8967
|
);
|
|
8968
|
-
const a = 3, B = new DA(this._lodPlanes[g], n), Q = n.uniforms, E = this._sizeLods[t] - 1, c = isFinite(I) ? Math.PI / (2 * E) : 2 * Math.PI / (2 *
|
|
8969
|
-
l >
|
|
8968
|
+
const a = 3, B = new DA(this._lodPlanes[g], n), Q = n.uniforms, E = this._sizeLods[t] - 1, c = isFinite(I) ? Math.PI / (2 * E) : 2 * Math.PI / (2 * Za - 1), h = I / c, l = isFinite(I) ? 1 + Math.floor(a * h) : Za;
|
|
8969
|
+
l > Za && console.warn(`sigmaRadians, ${I}, is too large and will clip, as it requested ${l} samples when the maximum is set to ${Za}`);
|
|
8970
8970
|
const d = [];
|
|
8971
8971
|
let p = 0;
|
|
8972
|
-
for (let R = 0; R <
|
|
8972
|
+
for (let R = 0; R < Za; ++R) {
|
|
8973
8973
|
const f = R / h, M = Math.exp(-f * f / 2);
|
|
8974
8974
|
d.push(M), R === 0 ? p += M : R < l && (p += 2 * M);
|
|
8975
8975
|
}
|
|
@@ -9030,11 +9030,11 @@ function Sd(i, A, e, t, g) {
|
|
|
9030
9030
|
i.viewport.set(A, e, t, g), i.scissor.set(A, e, t, g);
|
|
9031
9031
|
}
|
|
9032
9032
|
function I1(i, A, e) {
|
|
9033
|
-
const t = new Float32Array(
|
|
9033
|
+
const t = new Float32Array(Za), g = new S(0, 1, 0);
|
|
9034
9034
|
return new be({
|
|
9035
9035
|
name: "SphericalGaussianBlur",
|
|
9036
9036
|
defines: {
|
|
9037
|
-
n:
|
|
9037
|
+
n: Za,
|
|
9038
9038
|
CUBEUV_TEXEL_WIDTH: 1 / A,
|
|
9039
9039
|
CUBEUV_TEXEL_HEIGHT: 1 / e,
|
|
9040
9040
|
CUBEUV_MAX_MIP: `${i}.0`
|
|
@@ -11336,7 +11336,7 @@ function v3(i, A, e) {
|
|
|
11336
11336
|
return l !== V ? (i.useProgram(V), l = V, !0) : !1;
|
|
11337
11337
|
}
|
|
11338
11338
|
const dA = {
|
|
11339
|
-
[
|
|
11339
|
+
[za]: 32774,
|
|
11340
11340
|
[nq]: 32778,
|
|
11341
11341
|
[aq]: 32779
|
|
11342
11342
|
};
|
|
@@ -11366,12 +11366,12 @@ function v3(i, A, e) {
|
|
|
11366
11366
|
}
|
|
11367
11367
|
if (d === !1 && (xA(3042), d = !0), V !== sq) {
|
|
11368
11368
|
if (V !== p || ji !== M) {
|
|
11369
|
-
if ((u !==
|
|
11369
|
+
if ((u !== za || k !== za) && (i.blendEquation(32774), u = za, k = za), ji)
|
|
11370
11370
|
switch (V) {
|
|
11371
11371
|
case Ks:
|
|
11372
11372
|
i.blendFuncSeparate(1, 771, 1, 771);
|
|
11373
11373
|
break;
|
|
11374
|
-
case
|
|
11374
|
+
case ur:
|
|
11375
11375
|
i.blendFunc(1, 1);
|
|
11376
11376
|
break;
|
|
11377
11377
|
case p0:
|
|
@@ -11389,7 +11389,7 @@ function v3(i, A, e) {
|
|
|
11389
11389
|
case Ks:
|
|
11390
11390
|
i.blendFuncSeparate(770, 771, 1, 771);
|
|
11391
11391
|
break;
|
|
11392
|
-
case
|
|
11392
|
+
case ur:
|
|
11393
11393
|
i.blendFunc(770, 1);
|
|
11394
11394
|
break;
|
|
11395
11395
|
case p0:
|
|
@@ -12066,7 +12066,7 @@ function sb(i, A, e) {
|
|
|
12066
12066
|
return 6403;
|
|
12067
12067
|
if (I === Fq)
|
|
12068
12068
|
return 36244;
|
|
12069
|
-
if (I ===
|
|
12069
|
+
if (I === ir)
|
|
12070
12070
|
return 33319;
|
|
12071
12071
|
if (I === Nq)
|
|
12072
12072
|
return 33320;
|
|
@@ -12967,7 +12967,7 @@ function KQ(i = {}) {
|
|
|
12967
12967
|
Re && (jA.floatVertexTextures ? (Re.boneTexture === null && Re.computeBoneTexture(), ze.setValue(W, "boneTexture", Re.boneTexture, lA), ze.setValue(W, "boneTextureSize", Re.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
|
|
12968
12968
|
}
|
|
12969
12969
|
const lt = IA.morphAttributes;
|
|
12970
|
-
if ((lt.position !== void 0 || lt.normal !== void 0 || lt.color !== void 0 && jA.isWebGL2 === !0) && qA.update(pA, IA, iA, ie), (Je || LA.receiveShadow !== pA.receiveShadow) && (LA.receiveShadow = pA.receiveShadow, ze.setValue(W, "receiveShadow", pA.receiveShadow)), iA.isMeshGouraudMaterial && iA.envMap !== null && (Ii.envMap.value = j, Ii.flipEnvMap.value = j.isCubeTexture && j.isRenderTargetTexture === !1 ? -1 : 1), Je && (ze.setValue(W, "toneMappingExposure", h.toneMappingExposure), LA.needsLights &&
|
|
12970
|
+
if ((lt.position !== void 0 || lt.normal !== void 0 || lt.color !== void 0 && jA.isWebGL2 === !0) && qA.update(pA, IA, iA, ie), (Je || LA.receiveShadow !== pA.receiveShadow) && (LA.receiveShadow = pA.receiveShadow, ze.setValue(W, "receiveShadow", pA.receiveShadow)), iA.isMeshGouraudMaterial && iA.envMap !== null && (Ii.envMap.value = j, Ii.flipEnvMap.value = j.isCubeTexture && j.isRenderTargetTexture === !1 ? -1 : 1), Je && (ze.setValue(W, "toneMappingExposure", h.toneMappingExposure), LA.needsLights && Xr(Ii, Mt), G && iA.fog === !0 && We.refreshFogUniforms(Ii, G), We.refreshMaterialUniforms(Ii, iA, J, U, EA), Yu.upload(W, LA.uniformsList, Ii, lA)), iA.isShaderMaterial && iA.uniformsNeedUpdate === !0 && (Yu.upload(W, LA.uniformsList, Ii, lA), iA.uniformsNeedUpdate = !1), iA.isSpriteMaterial && ze.setValue(W, "center", pA.center), ze.setValue(W, "modelViewMatrix", pA.modelViewMatrix), ze.setValue(W, "normalMatrix", pA.normalMatrix), ze.setValue(W, "modelMatrix", pA.matrixWorld), iA.isShaderMaterial || iA.isRawShaderMaterial) {
|
|
12971
12971
|
const Re = iA.uniformsGroups;
|
|
12972
12972
|
for (let Ht = 0, II = Re.length; Ht < II; Ht++)
|
|
12973
12973
|
if (jA.isWebGL2) {
|
|
@@ -12978,7 +12978,7 @@ function KQ(i = {}) {
|
|
|
12978
12978
|
}
|
|
12979
12979
|
return ie;
|
|
12980
12980
|
}
|
|
12981
|
-
function
|
|
12981
|
+
function Xr(L, oA) {
|
|
12982
12982
|
L.ambientLightColor.needsUpdate = oA, L.lightProbe.needsUpdate = oA, L.directionalLights.needsUpdate = oA, L.directionalLightShadows.needsUpdate = oA, L.pointLights.needsUpdate = oA, L.pointLightShadows.needsUpdate = oA, L.spotLights.needsUpdate = oA, L.spotLightShadows.needsUpdate = oA, L.rectAreaLights.needsUpdate = oA, L.hemisphereLights.needsUpdate = oA;
|
|
12983
12983
|
}
|
|
12984
12984
|
function Ay(L) {
|
|
@@ -13280,12 +13280,12 @@ class FG extends Ke {
|
|
|
13280
13280
|
return super.copy(A), this.color.copy(A.color), this.map = A.map, this.alphaMap = A.alphaMap, this.rotation = A.rotation, this.sizeAttenuation = A.sizeAttenuation, this.fog = A.fog, this;
|
|
13281
13281
|
}
|
|
13282
13282
|
}
|
|
13283
|
-
let
|
|
13284
|
-
const bE = /* @__PURE__ */ new S(),
|
|
13283
|
+
let QB;
|
|
13284
|
+
const bE = /* @__PURE__ */ new S(), EB = /* @__PURE__ */ new S(), cB = /* @__PURE__ */ new S(), hB = /* @__PURE__ */ new P(), LE = /* @__PURE__ */ new P(), Bb = /* @__PURE__ */ new NA(), kd = /* @__PURE__ */ new S(), vE = /* @__PURE__ */ new S(), Gd = /* @__PURE__ */ new S(), YU = /* @__PURE__ */ new P(), Uy = /* @__PURE__ */ new P(), TU = /* @__PURE__ */ new P();
|
|
13285
13285
|
let Qb = class extends UA {
|
|
13286
13286
|
constructor(A) {
|
|
13287
|
-
if (super(), this.isSprite = !0, this.type = "Sprite",
|
|
13288
|
-
|
|
13287
|
+
if (super(), this.isSprite = !0, this.type = "Sprite", QB === void 0) {
|
|
13288
|
+
QB = new de();
|
|
13289
13289
|
const e = new Float32Array([
|
|
13290
13290
|
-0.5,
|
|
13291
13291
|
-0.5,
|
|
@@ -13308,19 +13308,19 @@ let Qb = class extends UA {
|
|
|
13308
13308
|
0,
|
|
13309
13309
|
1
|
|
13310
13310
|
]), t = new el(e, 5);
|
|
13311
|
-
|
|
13311
|
+
QB.setIndex([0, 1, 2, 0, 2, 3]), QB.setAttribute("position", new Ts(t, 3, 0, !1)), QB.setAttribute("uv", new Ts(t, 2, 3, !1));
|
|
13312
13312
|
}
|
|
13313
|
-
this.geometry =
|
|
13313
|
+
this.geometry = QB, this.material = A !== void 0 ? A : new FG(), this.center = new P(0.5, 0.5);
|
|
13314
13314
|
}
|
|
13315
13315
|
raycast(A, e) {
|
|
13316
|
-
A.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),
|
|
13316
|
+
A.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), EB.setFromMatrixScale(this.matrixWorld), Bb.copy(A.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(A.camera.matrixWorldInverse, this.matrixWorld), cB.setFromMatrixPosition(this.modelViewMatrix), A.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && EB.multiplyScalar(-cB.z);
|
|
13317
13317
|
const t = this.material.rotation;
|
|
13318
13318
|
let g, I;
|
|
13319
13319
|
t !== 0 && (I = Math.cos(t), g = Math.sin(t));
|
|
13320
13320
|
const o = this.center;
|
|
13321
|
-
Md(kd.set(-0.5, -0.5, 0),
|
|
13321
|
+
Md(kd.set(-0.5, -0.5, 0), cB, o, EB, g, I), Md(vE.set(0.5, -0.5, 0), cB, o, EB, g, I), Md(Gd.set(0.5, 0.5, 0), cB, o, EB, g, I), YU.set(0, 0), Uy.set(1, 0), TU.set(1, 1);
|
|
13322
13322
|
let C = A.ray.intersectTriangle(kd, vE, Gd, !1, bE);
|
|
13323
|
-
if (C === null && (Md(vE.set(-0.5, 0.5, 0),
|
|
13323
|
+
if (C === null && (Md(vE.set(-0.5, 0.5, 0), cB, o, EB, g, I), Uy.set(0, 1), C = A.ray.intersectTriangle(kd, Gd, vE, !1, bE), C === null))
|
|
13324
13324
|
return;
|
|
13325
13325
|
const s = A.ray.origin.distanceTo(bE);
|
|
13326
13326
|
s < A.near || s > A.far || e.push({
|
|
@@ -13336,7 +13336,7 @@ let Qb = class extends UA {
|
|
|
13336
13336
|
}
|
|
13337
13337
|
};
|
|
13338
13338
|
function Md(i, A, e, t, g, I) {
|
|
13339
|
-
|
|
13339
|
+
hB.subVectors(i, e).addScalar(0.5).multiply(t), g !== void 0 ? (LE.x = I * hB.x - g * hB.y, LE.y = g * hB.x + I * hB.y) : LE.copy(hB), i.copy(A), i.x += LE.x, i.y += LE.y, i.applyMatrix4(Bb);
|
|
13340
13340
|
}
|
|
13341
13341
|
const md = /* @__PURE__ */ new S(), HU = /* @__PURE__ */ new S();
|
|
13342
13342
|
let NG = class extends UA {
|
|
@@ -14887,7 +14887,7 @@ class TG extends de {
|
|
|
14887
14887
|
geometry: A,
|
|
14888
14888
|
thresholdAngle: e
|
|
14889
14889
|
}, A !== null) {
|
|
14890
|
-
const g = Math.pow(10, 4), I = Math.cos(
|
|
14890
|
+
const g = Math.pow(10, 4), I = Math.cos(Qr * e), o = A.getIndex(), C = A.getAttribute("position"), s = o ? o.count : C.count, n = [0, 0, 0], a = ["a", "b", "c"], B = new Array(3), Q = {}, E = [];
|
|
14891
14891
|
for (let c = 0; c < s; c += 3) {
|
|
14892
14892
|
o ? (n[0] = o.getX(c), n[1] = o.getX(c + 1), n[2] = o.getX(c + 2)) : (n[0] = c, n[1] = c + 1, n[2] = c + 2);
|
|
14893
14893
|
const { a: h, b: l, c: d } = bd;
|
|
@@ -14910,7 +14910,7 @@ class TG extends de {
|
|
|
14910
14910
|
}
|
|
14911
14911
|
}
|
|
14912
14912
|
}
|
|
14913
|
-
class
|
|
14913
|
+
class cr extends Qh {
|
|
14914
14914
|
constructor(A) {
|
|
14915
14915
|
super(A), this.uuid = KI(), this.type = "Shape", this.holes = [];
|
|
14916
14916
|
}
|
|
@@ -14980,7 +14980,7 @@ function fb(i, A, e, t, g) {
|
|
|
14980
14980
|
o = IF(I, i[I], i[I + 1], o);
|
|
14981
14981
|
return o && of(o, o.next) && (hh(o), o = o.next), o;
|
|
14982
14982
|
}
|
|
14983
|
-
function
|
|
14983
|
+
function pr(i, A) {
|
|
14984
14984
|
if (!i)
|
|
14985
14985
|
return i;
|
|
14986
14986
|
A || (A = i);
|
|
@@ -15006,7 +15006,7 @@ function Eh(i, A, e, t, g, I, o) {
|
|
|
15006
15006
|
continue;
|
|
15007
15007
|
}
|
|
15008
15008
|
if (i = n, i === C) {
|
|
15009
|
-
o ? o === 1 ? (i = o4(
|
|
15009
|
+
o ? o === 1 ? (i = o4(pr(i), A, e), Eh(i, A, e, t, g, I, 2)) : o === 2 && C4(i, A, e, t, g, I) : Eh(pr(i), A, e, t, g, I, 1);
|
|
15010
15010
|
break;
|
|
15011
15011
|
}
|
|
15012
15012
|
}
|
|
@@ -15053,7 +15053,7 @@ function o4(i, A, e) {
|
|
|
15053
15053
|
const g = t.prev, I = t.next.next;
|
|
15054
15054
|
!of(g, I) && wb(g, t, t.next, I) && ch(g, I) && ch(I, g) && (A.push(g.i / e | 0), A.push(t.i / e | 0), A.push(I.i / e | 0), hh(t), hh(t.next), t = i = I), t = t.next;
|
|
15055
15055
|
} while (t !== i);
|
|
15056
|
-
return
|
|
15056
|
+
return pr(t);
|
|
15057
15057
|
}
|
|
15058
15058
|
function C4(i, A, e, t, g, I) {
|
|
15059
15059
|
let o = i;
|
|
@@ -15062,7 +15062,7 @@ function C4(i, A, e, t, g, I) {
|
|
|
15062
15062
|
for (; C !== o.prev; ) {
|
|
15063
15063
|
if (o.i !== C.i && h4(o, C)) {
|
|
15064
15064
|
let s = yb(o, C);
|
|
15065
|
-
o =
|
|
15065
|
+
o = pr(o, o.next), s = pr(s, s.next), Eh(o, A, e, t, g, I, 0), Eh(s, A, e, t, g, I, 0);
|
|
15066
15066
|
return;
|
|
15067
15067
|
}
|
|
15068
15068
|
C = C.next;
|
|
@@ -15087,7 +15087,7 @@ function a4(i, A) {
|
|
|
15087
15087
|
if (!e)
|
|
15088
15088
|
return A;
|
|
15089
15089
|
const t = yb(e, i);
|
|
15090
|
-
return
|
|
15090
|
+
return pr(t, t.next), pr(e, e.next);
|
|
15091
15091
|
}
|
|
15092
15092
|
function r4(i, A) {
|
|
15093
15093
|
let e = A, t = -1 / 0, g;
|
|
@@ -15243,7 +15243,7 @@ function CF(i, A) {
|
|
|
15243
15243
|
i.push(A[e].x), i.push(A[e].y);
|
|
15244
15244
|
}
|
|
15245
15245
|
class Cl extends de {
|
|
15246
|
-
constructor(A = new
|
|
15246
|
+
constructor(A = new cr([new P(0.5, 0.5), new P(-0.5, 0.5), new P(-0.5, -0.5), new P(0.5, -0.5)]), e = {}) {
|
|
15247
15247
|
super(), this.type = "ExtrudeGeometry", this.parameters = {
|
|
15248
15248
|
shapes: A,
|
|
15249
15249
|
options: e
|
|
@@ -15664,7 +15664,7 @@ class vQ extends de {
|
|
|
15664
15664
|
}
|
|
15665
15665
|
}
|
|
15666
15666
|
class sl extends de {
|
|
15667
|
-
constructor(A = new
|
|
15667
|
+
constructor(A = new cr([new P(0, 0.5), new P(-0.5, -0.5), new P(0.5, -0.5)]), e = 12) {
|
|
15668
15668
|
super(), this.type = "ShapeGeometry", this.parameters = {
|
|
15669
15669
|
shapes: A,
|
|
15670
15670
|
curveSegments: e
|
|
@@ -16087,7 +16087,7 @@ class Rb extends di {
|
|
|
16087
16087
|
function ao(i, A, e) {
|
|
16088
16088
|
return OG(i) ? new i.constructor(i.subarray(A, e !== void 0 ? e : i.length)) : i.slice(A, e);
|
|
16089
16089
|
}
|
|
16090
|
-
function
|
|
16090
|
+
function or(i, A, e) {
|
|
16091
16091
|
return !i || // let 'undefined' and 'null' pass
|
|
16092
16092
|
!e && i.constructor === A ? i : typeof A.BYTES_PER_ELEMENT == "number" ? new A(i) : Array.prototype.slice.call(i);
|
|
16093
16093
|
}
|
|
@@ -16147,7 +16147,7 @@ function w4(i, A, e, t, g = 30) {
|
|
|
16147
16147
|
Q.push(n.values[E * a + h]);
|
|
16148
16148
|
}
|
|
16149
16149
|
}
|
|
16150
|
-
B.length !== 0 && (n.times =
|
|
16150
|
+
B.length !== 0 && (n.times = or(B, n.times.constructor), n.values = or(Q, n.values.constructor), o.push(n));
|
|
16151
16151
|
}
|
|
16152
16152
|
I.tracks = o;
|
|
16153
16153
|
let C = 1 / 0;
|
|
@@ -16212,7 +16212,7 @@ function y4(i, A = 0, e = i, t = 30) {
|
|
|
16212
16212
|
var S4 = /* @__PURE__ */ Object.freeze({
|
|
16213
16213
|
__proto__: null,
|
|
16214
16214
|
arraySlice: ao,
|
|
16215
|
-
convertArray:
|
|
16215
|
+
convertArray: or,
|
|
16216
16216
|
isTypedArray: OG,
|
|
16217
16217
|
getKeyframeOrder: Ub,
|
|
16218
16218
|
sortedArray: W0,
|
|
@@ -16295,8 +16295,8 @@ class xQ {
|
|
|
16295
16295
|
class Fb extends xQ {
|
|
16296
16296
|
constructor(A, e, t, g) {
|
|
16297
16297
|
super(A, e, t, g), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
|
|
16298
|
-
endingStart:
|
|
16299
|
-
endingEnd:
|
|
16298
|
+
endingStart: gr,
|
|
16299
|
+
endingEnd: gr
|
|
16300
16300
|
};
|
|
16301
16301
|
}
|
|
16302
16302
|
intervalChanged_(A, e, t) {
|
|
@@ -16304,7 +16304,7 @@ class Fb extends xQ {
|
|
|
16304
16304
|
let I = A - 2, o = A + 1, C = g[I], s = g[o];
|
|
16305
16305
|
if (C === void 0)
|
|
16306
16306
|
switch (this.getSettings_().endingStart) {
|
|
16307
|
-
case
|
|
16307
|
+
case Ir:
|
|
16308
16308
|
I = A, C = 2 * e - t;
|
|
16309
16309
|
break;
|
|
16310
16310
|
case ah:
|
|
@@ -16315,7 +16315,7 @@ class Fb extends xQ {
|
|
|
16315
16315
|
}
|
|
16316
16316
|
if (s === void 0)
|
|
16317
16317
|
switch (this.getSettings_().endingEnd) {
|
|
16318
|
-
case
|
|
16318
|
+
case Ir:
|
|
16319
16319
|
o = A, s = 2 * t - e;
|
|
16320
16320
|
break;
|
|
16321
16321
|
case ah:
|
|
@@ -16359,7 +16359,7 @@ class xI {
|
|
|
16359
16359
|
throw new Error("THREE.KeyframeTrack: track name is undefined");
|
|
16360
16360
|
if (e === void 0 || e.length === 0)
|
|
16361
16361
|
throw new Error("THREE.KeyframeTrack: no keyframes in track named " + A);
|
|
16362
|
-
this.name = A, this.times =
|
|
16362
|
+
this.name = A, this.times = or(e, this.TimeBufferType), this.values = or(t, this.ValueBufferType), this.setInterpolation(g || this.DefaultInterpolation);
|
|
16363
16363
|
}
|
|
16364
16364
|
// Serialization (in static context, because of constructor invocation
|
|
16365
16365
|
// and automatic invocation of .toJSON):
|
|
@@ -16371,8 +16371,8 @@ class xI {
|
|
|
16371
16371
|
else {
|
|
16372
16372
|
t = {
|
|
16373
16373
|
name: A.name,
|
|
16374
|
-
times:
|
|
16375
|
-
values:
|
|
16374
|
+
times: or(A.times, Array),
|
|
16375
|
+
values: or(A.values, Array)
|
|
16376
16376
|
};
|
|
16377
16377
|
const g = A.getInterpolation();
|
|
16378
16378
|
g !== A.DefaultInterpolation && (t.interpolation = g);
|
|
@@ -16391,7 +16391,7 @@ class xI {
|
|
|
16391
16391
|
setInterpolation(A) {
|
|
16392
16392
|
let e;
|
|
16393
16393
|
switch (A) {
|
|
16394
|
-
case
|
|
16394
|
+
case Dr:
|
|
16395
16395
|
e = this.InterpolantFactoryMethodDiscrete;
|
|
16396
16396
|
break;
|
|
16397
16397
|
case Ys:
|
|
@@ -16415,7 +16415,7 @@ class xI {
|
|
|
16415
16415
|
getInterpolation() {
|
|
16416
16416
|
switch (this.createInterpolant) {
|
|
16417
16417
|
case this.InterpolantFactoryMethodDiscrete:
|
|
16418
|
-
return
|
|
16418
|
+
return Dr;
|
|
16419
16419
|
case this.InterpolantFactoryMethodLinear:
|
|
16420
16420
|
return Ys;
|
|
16421
16421
|
case this.InterpolantFactoryMethodSmooth:
|
|
@@ -16536,13 +16536,13 @@ class xI {
|
|
|
16536
16536
|
xI.prototype.TimeBufferType = Float32Array;
|
|
16537
16537
|
xI.prototype.ValueBufferType = Float32Array;
|
|
16538
16538
|
xI.prototype.DefaultInterpolation = Ys;
|
|
16539
|
-
class
|
|
16539
|
+
class Fr extends xI {
|
|
16540
16540
|
}
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16541
|
+
Fr.prototype.ValueTypeName = "bool";
|
|
16542
|
+
Fr.prototype.ValueBufferType = Array;
|
|
16543
|
+
Fr.prototype.DefaultInterpolation = Dr;
|
|
16544
|
+
Fr.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
16545
|
+
Fr.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
16546
16546
|
class Bl extends xI {
|
|
16547
16547
|
}
|
|
16548
16548
|
Bl.prototype.ValueTypeName = "color";
|
|
@@ -16569,13 +16569,13 @@ class TC extends xI {
|
|
|
16569
16569
|
TC.prototype.ValueTypeName = "quaternion";
|
|
16570
16570
|
TC.prototype.DefaultInterpolation = Ys;
|
|
16571
16571
|
TC.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
16572
|
-
class
|
|
16572
|
+
class Nr extends xI {
|
|
16573
16573
|
}
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16574
|
+
Nr.prototype.ValueTypeName = "string";
|
|
16575
|
+
Nr.prototype.ValueBufferType = Array;
|
|
16576
|
+
Nr.prototype.DefaultInterpolation = Dr;
|
|
16577
|
+
Nr.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
16578
|
+
Nr.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
16579
16579
|
class ga extends xI {
|
|
16580
16580
|
}
|
|
16581
16581
|
ga.prototype.ValueTypeName = "vector";
|
|
@@ -16758,9 +16758,9 @@ function k4(i) {
|
|
|
16758
16758
|
return TC;
|
|
16759
16759
|
case "bool":
|
|
16760
16760
|
case "boolean":
|
|
16761
|
-
return Ur;
|
|
16762
|
-
case "string":
|
|
16763
16761
|
return Fr;
|
|
16762
|
+
case "string":
|
|
16763
|
+
return Nr;
|
|
16764
16764
|
}
|
|
16765
16765
|
throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + i);
|
|
16766
16766
|
}
|
|
@@ -16774,7 +16774,7 @@ function G4(i) {
|
|
|
16774
16774
|
}
|
|
16775
16775
|
return A.parse !== void 0 ? A.parse(i) : new A(i.name, i.times, i.values, i.interpolation);
|
|
16776
16776
|
}
|
|
16777
|
-
const
|
|
16777
|
+
const fr = {
|
|
16778
16778
|
enabled: !1,
|
|
16779
16779
|
files: {},
|
|
16780
16780
|
add: function(i, A) {
|
|
@@ -16864,7 +16864,7 @@ class Yi extends Ng {
|
|
|
16864
16864
|
}
|
|
16865
16865
|
load(A, e, t, g) {
|
|
16866
16866
|
A === void 0 && (A = ""), this.path !== void 0 && (A = this.path + A), A = this.manager.resolveURL(A);
|
|
16867
|
-
const I =
|
|
16867
|
+
const I = fr.get(A);
|
|
16868
16868
|
if (I !== void 0)
|
|
16869
16869
|
return this.manager.itemStart(A), setTimeout(() => {
|
|
16870
16870
|
e && e(I), this.manager.itemEnd(A);
|
|
@@ -16935,7 +16935,7 @@ class Yi extends Ng {
|
|
|
16935
16935
|
}
|
|
16936
16936
|
}
|
|
16937
16937
|
}).then((n) => {
|
|
16938
|
-
|
|
16938
|
+
fr.add(A, n);
|
|
16939
16939
|
const a = gs[A];
|
|
16940
16940
|
delete gs[A];
|
|
16941
16941
|
for (let B = 0, Q = a.length; B < Q; B++) {
|
|
@@ -17032,14 +17032,14 @@ class lh extends Ng {
|
|
|
17032
17032
|
}
|
|
17033
17033
|
load(A, e, t, g) {
|
|
17034
17034
|
this.path !== void 0 && (A = this.path + A), A = this.manager.resolveURL(A);
|
|
17035
|
-
const I = this, o =
|
|
17035
|
+
const I = this, o = fr.get(A);
|
|
17036
17036
|
if (o !== void 0)
|
|
17037
17037
|
return I.manager.itemStart(A), setTimeout(function() {
|
|
17038
17038
|
e && e(o), I.manager.itemEnd(A);
|
|
17039
17039
|
}, 0), o;
|
|
17040
17040
|
const C = Bh("img");
|
|
17041
17041
|
function s() {
|
|
17042
|
-
a(),
|
|
17042
|
+
a(), fr.add(A, this), e && e(this), I.manager.itemEnd(A);
|
|
17043
17043
|
}
|
|
17044
17044
|
function n(B) {
|
|
17045
17045
|
a(), g && g(B), I.manager.itemError(A), I.manager.itemEnd(A);
|
|
@@ -17264,7 +17264,7 @@ class af extends Ba {
|
|
|
17264
17264
|
}
|
|
17265
17265
|
class K4 extends zG {
|
|
17266
17266
|
constructor() {
|
|
17267
|
-
super(new
|
|
17267
|
+
super(new Ur(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
|
|
17268
17268
|
}
|
|
17269
17269
|
}
|
|
17270
17270
|
class rf extends Ba {
|
|
@@ -17650,7 +17650,7 @@ class J4 extends Ng {
|
|
|
17650
17650
|
const e = {};
|
|
17651
17651
|
if (A !== void 0)
|
|
17652
17652
|
for (let t = 0, g = A.length; t < g; t++) {
|
|
17653
|
-
const I = new
|
|
17653
|
+
const I = new cr().fromJSON(A[t]);
|
|
17654
17654
|
e[I.uuid] = I;
|
|
17655
17655
|
}
|
|
17656
17656
|
return e;
|
|
@@ -17826,7 +17826,7 @@ class J4 extends Ng {
|
|
|
17826
17826
|
o = new gt(A.fov, A.aspect, A.near, A.far), A.focus !== void 0 && (o.focus = A.focus), A.zoom !== void 0 && (o.zoom = A.zoom), A.filmGauge !== void 0 && (o.filmGauge = A.filmGauge), A.filmOffset !== void 0 && (o.filmOffset = A.filmOffset), A.view !== void 0 && (o.view = Object.assign({}, A.view));
|
|
17827
17827
|
break;
|
|
17828
17828
|
case "OrthographicCamera":
|
|
17829
|
-
o = new
|
|
17829
|
+
o = new Ur(A.left, A.right, A.top, A.bottom, A.near, A.far), A.zoom !== void 0 && (o.zoom = A.zoom), A.view !== void 0 && (o.view = Object.assign({}, A.view));
|
|
17830
17830
|
break;
|
|
17831
17831
|
case "AmbientLight":
|
|
17832
17832
|
o = new ZG(A.color, A.intensity);
|
|
@@ -17947,7 +17947,7 @@ class Lb extends Ng {
|
|
|
17947
17947
|
}
|
|
17948
17948
|
load(A, e, t, g) {
|
|
17949
17949
|
A === void 0 && (A = ""), this.path !== void 0 && (A = this.path + A), A = this.manager.resolveURL(A);
|
|
17950
|
-
const I = this, o =
|
|
17950
|
+
const I = this, o = fr.get(A);
|
|
17951
17951
|
if (o !== void 0)
|
|
17952
17952
|
return I.manager.itemStart(A), setTimeout(function() {
|
|
17953
17953
|
e && e(o), I.manager.itemEnd(A);
|
|
@@ -17958,7 +17958,7 @@ class Lb extends Ng {
|
|
|
17958
17958
|
}).then(function(s) {
|
|
17959
17959
|
return createImageBitmap(s, Object.assign(I.options, { colorSpaceConversion: "none" }));
|
|
17960
17960
|
}).then(function(s) {
|
|
17961
|
-
|
|
17961
|
+
fr.add(A, s), e && e(s), I.manager.itemEnd(A);
|
|
17962
17962
|
}).catch(function(s) {
|
|
17963
17963
|
g && g(s), I.manager.itemError(A), I.manager.itemEnd(A);
|
|
17964
17964
|
}), I.manager.itemStart(A);
|
|
@@ -18022,7 +18022,7 @@ class v4 {
|
|
|
18022
18022
|
const e = this._cache;
|
|
18023
18023
|
if (e.focus !== A.focus || e.fov !== A.fov || e.aspect !== A.aspect * this.aspect || e.near !== A.near || e.far !== A.far || e.zoom !== A.zoom || e.eyeSep !== this.eyeSep) {
|
|
18024
18024
|
e.focus = A.focus, e.fov = A.fov, e.aspect = A.aspect * this.aspect, e.near = A.near, e.far = A.far, e.zoom = A.zoom, e.eyeSep = this.eyeSep, Ua.copy(A.projectionMatrix);
|
|
18025
|
-
const g = e.eyeSep / 2, I = g * e.near / e.focus, o = e.near * Math.tan(
|
|
18025
|
+
const g = e.eyeSep / 2, I = g * e.near / e.focus, o = e.near * Math.tan(Qr * e.fov * 0.5) / e.zoom;
|
|
18026
18026
|
let C, s;
|
|
18027
18027
|
hF.elements[12] = -g, cF.elements[12] = g, C = -o * e.aspect + I, s = o * e.aspect + I, Ua.elements[0] = 2 * e.near / (s - C), Ua.elements[8] = (s + C) / (s - C), this.cameraL.projectionMatrix.copy(Ua), C = -o * e.aspect - I, s = o * e.aspect - I, Ua.elements[0] = 2 * e.near / (s - C), Ua.elements[8] = (s + C) / (s - C), this.cameraR.projectionMatrix.copy(Ua);
|
|
18028
18028
|
}
|
|
@@ -18805,8 +18805,8 @@ class X4 {
|
|
|
18805
18805
|
constructor(A, e, t = null, g = e.blendMode) {
|
|
18806
18806
|
this._mixer = A, this._clip = e, this._localRoot = t, this.blendMode = g;
|
|
18807
18807
|
const I = e.tracks, o = I.length, C = new Array(o), s = {
|
|
18808
|
-
endingStart:
|
|
18809
|
-
endingEnd:
|
|
18808
|
+
endingStart: gr,
|
|
18809
|
+
endingEnd: gr
|
|
18810
18810
|
};
|
|
18811
18811
|
for (let n = 0; n !== o; ++n) {
|
|
18812
18812
|
const a = I[n].createInterpolant(null);
|
|
@@ -19015,7 +19015,7 @@ class X4 {
|
|
|
19015
19015
|
}
|
|
19016
19016
|
_setEndings(A, e, t) {
|
|
19017
19017
|
const g = this._interpolantSettings;
|
|
19018
|
-
t ? (g.endingStart =
|
|
19018
|
+
t ? (g.endingStart = Ir, g.endingEnd = Ir) : (A ? g.endingStart = this.zeroSlopeAtStart ? Ir : gr : g.endingStart = ah, e ? g.endingEnd = this.zeroSlopeAtEnd ? Ir : gr : g.endingEnd = ah);
|
|
19019
19019
|
}
|
|
19020
19020
|
_scheduleFading(A, e, t) {
|
|
19021
19021
|
const g = this._mixer, I = g.time;
|
|
@@ -19764,7 +19764,7 @@ class _b extends UA {
|
|
|
19764
19764
|
this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), kF.setFromMatrixPosition(this.light.matrixWorld), Hd.setFromMatrixPosition(this.light.target.matrixWorld), GF.subVectors(Hd, kF), this.lightPlane.lookAt(Hd), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(Hd), this.targetLine.scale.z = GF.length();
|
|
19765
19765
|
}
|
|
19766
19766
|
}
|
|
19767
|
-
const _d = /* @__PURE__ */ new S(), Zt = /* @__PURE__ */ new
|
|
19767
|
+
const _d = /* @__PURE__ */ new S(), Zt = /* @__PURE__ */ new Rr();
|
|
19768
19768
|
class Ob extends TI {
|
|
19769
19769
|
constructor(A) {
|
|
19770
19770
|
const e = new de(), t = new di({ color: 16777215, vertexColors: !0, toneMapped: !1 }), g = [], I = [], o = {};
|
|
@@ -19956,7 +19956,7 @@ class E8 {
|
|
|
19956
19956
|
function e(d) {
|
|
19957
19957
|
const p = [];
|
|
19958
19958
|
for (let u = 0, D = d.length; u < D; u++) {
|
|
19959
|
-
const y = d[u], k = new
|
|
19959
|
+
const y = d[u], k = new cr();
|
|
19960
19960
|
k.curves = y.curves, p.push(k);
|
|
19961
19961
|
}
|
|
19962
19962
|
return p;
|
|
@@ -19995,14 +19995,14 @@ class E8 {
|
|
|
19995
19995
|
let o, C, s;
|
|
19996
19996
|
const n = [];
|
|
19997
19997
|
if (I.length === 1)
|
|
19998
|
-
return C = I[0], s = new
|
|
19998
|
+
return C = I[0], s = new cr(), s.curves = C.curves, n.push(s), n;
|
|
19999
19999
|
let a = !g(I[0].getPoints());
|
|
20000
20000
|
a = A ? !a : a;
|
|
20001
20001
|
const B = [], Q = [];
|
|
20002
20002
|
let E = [], c = 0, h;
|
|
20003
20003
|
Q[c] = void 0, E[c] = [];
|
|
20004
20004
|
for (let d = 0, p = I.length; d < p; d++)
|
|
20005
|
-
C = I[d], h = C.getPoints(), o = g(h), o = A ? !o : o, o ? (!a && Q[c] && c++, Q[c] = { s: new
|
|
20005
|
+
C = I[d], h = C.getPoints(), o = g(h), o = A ? !o : o, o ? (!a && Q[c] && c++, Q[c] = { s: new cr(), p: h }, Q[c].s.curves = C.curves, a && c++, E[c] = []) : E[c].push({ h: C, p: h[0] });
|
|
20006
20006
|
if (!Q[0])
|
|
20007
20007
|
return e(I);
|
|
20008
20008
|
if (Q.length > 1) {
|
|
@@ -20073,7 +20073,7 @@ function l8(i) {
|
|
|
20073
20073
|
const A = i >> 10;
|
|
20074
20074
|
return us.uint32View[0] = us.mantissaTable[us.offsetTable[A] + (i & 1023)] + us.exponentTable[A], us.floatView[0];
|
|
20075
20075
|
}
|
|
20076
|
-
var
|
|
20076
|
+
var Cr = /* @__PURE__ */ Object.freeze({
|
|
20077
20077
|
__proto__: null,
|
|
20078
20078
|
toHalfFloat: h8,
|
|
20079
20079
|
fromHalfFloat: l8
|
|
@@ -20198,10 +20198,10 @@ typeof window < "u" && (window.__THREE__ ? console.warn("WARNING: Multiple insta
|
|
|
20198
20198
|
const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20199
20199
|
__proto__: null,
|
|
20200
20200
|
ACESFilmicToneMapping: hG,
|
|
20201
|
-
AddEquation:
|
|
20201
|
+
AddEquation: za,
|
|
20202
20202
|
AddOperation: pq,
|
|
20203
20203
|
AdditiveAnimationBlendMode: DG,
|
|
20204
|
-
AdditiveBlending:
|
|
20204
|
+
AdditiveBlending: ur,
|
|
20205
20205
|
AlphaFormat: mq,
|
|
20206
20206
|
AlwaysDepth: Tp,
|
|
20207
20207
|
AlwaysStencilFunc: fG,
|
|
@@ -20225,7 +20225,7 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20225
20225
|
BasicDepthPacking: cg,
|
|
20226
20226
|
BasicShadowMap: D2,
|
|
20227
20227
|
Bone: tl,
|
|
20228
|
-
BooleanKeyframeTrack:
|
|
20228
|
+
BooleanKeyframeTrack: Fr,
|
|
20229
20229
|
Box2: I8,
|
|
20230
20230
|
Box3: Rg,
|
|
20231
20231
|
Box3Helper: z0,
|
|
@@ -20236,8 +20236,8 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20236
20236
|
BufferGeometry: de,
|
|
20237
20237
|
BufferGeometryLoader: bb,
|
|
20238
20238
|
ByteType: yq,
|
|
20239
|
-
Cache:
|
|
20240
|
-
Camera:
|
|
20239
|
+
Cache: fr,
|
|
20240
|
+
Camera: Rr,
|
|
20241
20241
|
CameraHelper: Ob,
|
|
20242
20242
|
CanvasTexture: hb,
|
|
20243
20243
|
CapsuleBufferGeometry: w8,
|
|
@@ -20282,7 +20282,7 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20282
20282
|
DataTexture2DArray: D8,
|
|
20283
20283
|
DataTexture3D: p8,
|
|
20284
20284
|
DataTextureLoader: VG,
|
|
20285
|
-
DataUtils:
|
|
20285
|
+
DataUtils: Cr,
|
|
20286
20286
|
DecrementStencilOp: Tq,
|
|
20287
20287
|
DecrementWrapStencilOp: _q,
|
|
20288
20288
|
DefaultLoadingManager: Jb,
|
|
@@ -20352,7 +20352,7 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20352
20352
|
InterleavedBuffer: el,
|
|
20353
20353
|
InterleavedBufferAttribute: Ts,
|
|
20354
20354
|
Interpolant: xQ,
|
|
20355
|
-
InterpolateDiscrete:
|
|
20355
|
+
InterpolateDiscrete: Dr,
|
|
20356
20356
|
InterpolateLinear: Ys,
|
|
20357
20357
|
InterpolateSmooth: vu,
|
|
20358
20358
|
InvertStencilOp: Oq,
|
|
@@ -20441,7 +20441,7 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20441
20441
|
OneMinusDstColorFactor: dq,
|
|
20442
20442
|
OneMinusSrcAlphaFactor: QG,
|
|
20443
20443
|
OneMinusSrcColorFactor: Eq,
|
|
20444
|
-
OrthographicCamera:
|
|
20444
|
+
OrthographicCamera: Ur,
|
|
20445
20445
|
PCFShadowMap: aG,
|
|
20446
20446
|
PCFSoftShadowMap: rG,
|
|
20447
20447
|
PMREMGenerator: T0,
|
|
@@ -20497,7 +20497,7 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20497
20497
|
RGB_PVRTC_2BPPV1_Format: S0,
|
|
20498
20498
|
RGB_PVRTC_4BPPV1_Format: UD,
|
|
20499
20499
|
RGB_S3TC_DXT1_Format: yc,
|
|
20500
|
-
RGFormat:
|
|
20500
|
+
RGFormat: ir,
|
|
20501
20501
|
RGIntegerFormat: Nq,
|
|
20502
20502
|
RawShaderMaterial: Cf,
|
|
20503
20503
|
Ray: $s,
|
|
@@ -20517,7 +20517,7 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20517
20517
|
ShaderLib: mI,
|
|
20518
20518
|
ShaderMaterial: be,
|
|
20519
20519
|
ShadowMaterial: HG,
|
|
20520
|
-
Shape:
|
|
20520
|
+
Shape: cr,
|
|
20521
20521
|
ShapeBufferGeometry: J8,
|
|
20522
20522
|
ShapeGeometry: sl,
|
|
20523
20523
|
ShapePath: E8,
|
|
@@ -20547,7 +20547,7 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20547
20547
|
StreamCopyUsage: F2,
|
|
20548
20548
|
StreamDrawUsage: k2,
|
|
20549
20549
|
StreamReadUsage: m2,
|
|
20550
|
-
StringKeyframeTrack:
|
|
20550
|
+
StringKeyframeTrack: Nr,
|
|
20551
20551
|
SubtractEquation: nq,
|
|
20552
20552
|
SubtractiveBlending: p0,
|
|
20553
20553
|
TOUCH: Ta,
|
|
@@ -20598,9 +20598,9 @@ const Y8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
20598
20598
|
WebGLUtils: sb,
|
|
20599
20599
|
WireframeGeometry: Sb,
|
|
20600
20600
|
WrapAroundEnding: ah,
|
|
20601
|
-
ZeroCurvatureEnding:
|
|
20601
|
+
ZeroCurvatureEnding: gr,
|
|
20602
20602
|
ZeroFactor: rq,
|
|
20603
|
-
ZeroSlopeEnding:
|
|
20603
|
+
ZeroSlopeEnding: Ir,
|
|
20604
20604
|
ZeroStencilOp: vq,
|
|
20605
20605
|
_SRGBAFormat: bD,
|
|
20606
20606
|
sRGBEncoding: De
|
|
@@ -21146,7 +21146,7 @@ function tk(i, A, e, t, g) {
|
|
|
21146
21146
|
if (!a.$serializedTypes && o.prototype.$serializedTypes && (a.$serializedTypes = o.prototype.$serializedTypes), a.$serializedTypes && ek(a, i, e), g && o !== void 0)
|
|
21147
21147
|
try {
|
|
21148
21148
|
const B = new o();
|
|
21149
|
-
mg && console.log("Create concrete instance for persistent asset", g, "instance:", B),
|
|
21149
|
+
mg && console.log("Create concrete instance for persistent asset", g, "instance:", B), wr(B, g), g.__concreteInstance = B, g = B;
|
|
21150
21150
|
} catch (B) {
|
|
21151
21151
|
console.error("Error creating instance or creating values on instance", B, g, o);
|
|
21152
21152
|
}
|
|
@@ -21185,7 +21185,7 @@ function nW(i) {
|
|
|
21185
21185
|
return Tu;
|
|
21186
21186
|
}
|
|
21187
21187
|
const ik = Symbol("assigned component properties");
|
|
21188
|
-
function
|
|
21188
|
+
function wr(i, A, e) {
|
|
21189
21189
|
var g;
|
|
21190
21190
|
if (A == null || i == null)
|
|
21191
21191
|
return;
|
|
@@ -21661,7 +21661,7 @@ class BW extends EventTarget {
|
|
|
21661
21661
|
try {
|
|
21662
21662
|
Ye.Current = this.context;
|
|
21663
21663
|
const I = new Event(e);
|
|
21664
|
-
|
|
21664
|
+
wr(I, t), this.dispatchEvent(I);
|
|
21665
21665
|
} finally {
|
|
21666
21666
|
Ye.Current = g;
|
|
21667
21667
|
}
|
|
@@ -21734,7 +21734,7 @@ function dh(i, A, e, t) {
|
|
|
21734
21734
|
const g = IM.get();
|
|
21735
21735
|
g.set(A, e, t), mi(i, g);
|
|
21736
21736
|
}
|
|
21737
|
-
const TD = new vs(() => new kA(), 100),
|
|
21737
|
+
const TD = new vs(() => new kA(), 100), hr = new kA(), _y = new kA();
|
|
21738
21738
|
function ig(i, A = null) {
|
|
21739
21739
|
if (!i)
|
|
21740
21740
|
return TD.get().identity();
|
|
@@ -21744,14 +21744,14 @@ function ig(i, A = null) {
|
|
|
21744
21744
|
function YI(i, A) {
|
|
21745
21745
|
if (!i)
|
|
21746
21746
|
return;
|
|
21747
|
-
A !==
|
|
21748
|
-
const e =
|
|
21747
|
+
A !== hr && hr.copy(A);
|
|
21748
|
+
const e = hr, t = i == null ? void 0 : i.parent;
|
|
21749
21749
|
t == null || t.getWorldQuaternion(_y), _y.invert();
|
|
21750
21750
|
const g = _y.multiply(e);
|
|
21751
21751
|
i.quaternion.set(g.x, g.y, g.z, g.w);
|
|
21752
21752
|
}
|
|
21753
21753
|
function hW(i, A, e, t, g) {
|
|
21754
|
-
|
|
21754
|
+
hr.set(A, e, t, g), YI(i, hr);
|
|
21755
21755
|
}
|
|
21756
21756
|
const lW = new vs(() => new S(), 100), dW = new S();
|
|
21757
21757
|
function Gg(i, A = null) {
|
|
@@ -21792,7 +21792,7 @@ function yW(i, A) {
|
|
|
21792
21792
|
CM(i, A.x, A.y, A.z, !0);
|
|
21793
21793
|
}
|
|
21794
21794
|
function CM(i, A, e, t, g = !0) {
|
|
21795
|
-
g && (A = ee.toRadians(A), e = ee.toRadians(e), t = ee.toRadians(t)), qF.set(A, e, t),
|
|
21795
|
+
g && (A = ee.toRadians(A), e = ee.toRadians(e), t = ee.toRadians(t)), qF.set(A, e, t), hr.setFromEuler(qF), YI(i, hr);
|
|
21796
21796
|
}
|
|
21797
21797
|
function gk(i, A = !0) {
|
|
21798
21798
|
i && (A ? function e(t) {
|
|
@@ -22282,7 +22282,7 @@ var sM = {};
|
|
|
22282
22282
|
var wf = {};
|
|
22283
22283
|
Object.defineProperty(wf, "__esModule", { value: !0 });
|
|
22284
22284
|
wf.WebsocketBuilder = void 0;
|
|
22285
|
-
var
|
|
22285
|
+
var lB = sM, bW = (
|
|
22286
22286
|
/** @class */
|
|
22287
22287
|
function() {
|
|
22288
22288
|
function i(A) {
|
|
@@ -22306,21 +22306,21 @@ var hB = sM, bW = (
|
|
|
22306
22306
|
return this.onRetryListeners.push({ listener: A, options: e }), this;
|
|
22307
22307
|
}, i.prototype.build = function() {
|
|
22308
22308
|
var A = this;
|
|
22309
|
-
return this.ws !== null ? this.ws : (this.ws = new
|
|
22309
|
+
return this.ws !== null ? this.ws : (this.ws = new lB.Websocket(this.url, this.protocols, this.buffer, this.backoff), this.onOpenListeners.forEach(function(e) {
|
|
22310
22310
|
var t;
|
|
22311
|
-
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(
|
|
22311
|
+
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(lB.WebsocketEvents.open, e.listener, e.options);
|
|
22312
22312
|
}), this.onCloseListeners.forEach(function(e) {
|
|
22313
22313
|
var t;
|
|
22314
|
-
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(
|
|
22314
|
+
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(lB.WebsocketEvents.close, e.listener, e.options);
|
|
22315
22315
|
}), this.onErrorListeners.forEach(function(e) {
|
|
22316
22316
|
var t;
|
|
22317
|
-
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(
|
|
22317
|
+
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(lB.WebsocketEvents.error, e.listener, e.options);
|
|
22318
22318
|
}), this.onMessageListeners.forEach(function(e) {
|
|
22319
22319
|
var t;
|
|
22320
|
-
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(
|
|
22320
|
+
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(lB.WebsocketEvents.message, e.listener, e.options);
|
|
22321
22321
|
}), this.onRetryListeners.forEach(function(e) {
|
|
22322
22322
|
var t;
|
|
22323
|
-
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(
|
|
22323
|
+
return (t = A.ws) === null || t === void 0 ? void 0 : t.addEventListener(lB.WebsocketEvents.retry, e.listener, e.options);
|
|
22324
22324
|
}), this.ws);
|
|
22325
22325
|
}, i;
|
|
22326
22326
|
}()
|
|
@@ -28377,7 +28377,7 @@ VL('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"]
|
|
|
28377
28377
|
VL('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
28378
28378
|
const cM = NEEDLE_ENGINE_VERSION, WL = "undefined";
|
|
28379
28379
|
PL && console.log(`Engine version: ${cM} (generator: ${WL})`);
|
|
28380
|
-
const jn = "needle_isActiveInHierarchy",
|
|
28380
|
+
const jn = "needle_isActiveInHierarchy", mB = "builtin_components", Wu = "needle_editor_guid";
|
|
28381
28381
|
function VL(i) {
|
|
28382
28382
|
try {
|
|
28383
28383
|
(0, eval)(i);
|
|
@@ -29047,7 +29047,7 @@ function Ot(i) {
|
|
|
29047
29047
|
else if (i instanceof DA)
|
|
29048
29048
|
Ot(i.geometry), Ot(i.material), Ot(i.customDepthMaterial), Ot(i.customDistanceMaterial), i.geometry = null, i.material = null;
|
|
29049
29049
|
else if (i instanceof de) {
|
|
29050
|
-
|
|
29050
|
+
dB(i);
|
|
29051
29051
|
for (const e of Object.keys(i.attributes)) {
|
|
29052
29052
|
const t = i.attributes[e];
|
|
29053
29053
|
Ot(t);
|
|
@@ -29058,7 +29058,7 @@ function Ot(i) {
|
|
|
29058
29058
|
for (const e of i)
|
|
29059
29059
|
e && Ot(e);
|
|
29060
29060
|
else if (i instanceof Ke) {
|
|
29061
|
-
|
|
29061
|
+
dB(i);
|
|
29062
29062
|
for (const t of Object.keys(i)) {
|
|
29063
29063
|
const g = i[t];
|
|
29064
29064
|
g instanceof Te && (Ot(g), i[t] = null);
|
|
@@ -29070,10 +29070,10 @@ function Ot(i) {
|
|
|
29070
29070
|
g instanceof Te ? (Ot(g), e[t] = null) : g instanceof SA && (Ot(g.value), g.value = null);
|
|
29071
29071
|
}
|
|
29072
29072
|
} else
|
|
29073
|
-
i instanceof Te ? (
|
|
29073
|
+
i instanceof Te ? (dB(i), dB(i.source), ((A = i.source) == null ? void 0 : A.data) instanceof ImageBitmap && dB(i.source.data)) : i instanceof qQ ? (dB(i.boneTexture), i.boneTexture = null) : i instanceof tl || !(i instanceof UA) && Fc && console.warn("Unknown object type", i);
|
|
29074
29074
|
}
|
|
29075
29075
|
}
|
|
29076
|
-
function
|
|
29076
|
+
function dB(i) {
|
|
29077
29077
|
i && ((Fc || ij() || Uc) && console.warn("🧨 FREE", i), i instanceof ImageBitmap ? i.close() : i instanceof Ms ? i.data = null : i.dispose());
|
|
29078
29078
|
}
|
|
29079
29079
|
function Ij(i) {
|
|
@@ -29267,7 +29267,7 @@ function cv(i, A, e, t, g, I) {
|
|
|
29267
29267
|
s.userData.components = Q;
|
|
29268
29268
|
for (let E = 0; E < B.length; E++) {
|
|
29269
29269
|
const c = B[E], h = new c.constructor();
|
|
29270
|
-
|
|
29270
|
+
wr(h, c), c[Wu] !== void 0 && (h[Wu] = c[Wu]), Q.push(h), h.gameObject = s, t.push(h), Gf.dispatchComponentLifecycleEvent(kf.Added, h);
|
|
29271
29271
|
}
|
|
29272
29272
|
}
|
|
29273
29273
|
e && (e.position = void 0, e.rotation = void 0, e.scale = void 0, e.parent = void 0);
|
|
@@ -29693,7 +29693,7 @@ function QI(i, A) {
|
|
|
29693
29693
|
function HB(i, A, e) {
|
|
29694
29694
|
return i * (A - e) - A;
|
|
29695
29695
|
}
|
|
29696
|
-
function
|
|
29696
|
+
function sr(i, A, e) {
|
|
29697
29697
|
return Math.min(Math.max((i + A) / (A - e), 0), 1);
|
|
29698
29698
|
}
|
|
29699
29699
|
var Sj = `#include <common>
|
|
@@ -29806,7 +29806,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
|
|
|
29806
29806
|
return -HB(this.focusDistance, this.near, this.far);
|
|
29807
29807
|
}
|
|
29808
29808
|
set worldFocusDistance(i) {
|
|
29809
|
-
this.focusDistance =
|
|
29809
|
+
this.focusDistance = sr(-i, this.near, this.far);
|
|
29810
29810
|
}
|
|
29811
29811
|
/**
|
|
29812
29812
|
* Returns the focus distance.
|
|
@@ -29858,7 +29858,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
|
|
|
29858
29858
|
return -HB(this.focusRange, this.near, this.far);
|
|
29859
29859
|
}
|
|
29860
29860
|
set worldFocusRange(i) {
|
|
29861
|
-
this.focusRange =
|
|
29861
|
+
this.focusRange = sr(-i, this.near, this.far);
|
|
29862
29862
|
}
|
|
29863
29863
|
/**
|
|
29864
29864
|
* Returns the focal length.
|
|
@@ -29969,7 +29969,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
|
|
|
29969
29969
|
DISABLED: 0,
|
|
29970
29970
|
DEPTH: 1,
|
|
29971
29971
|
CUSTOM: 2
|
|
29972
|
-
},
|
|
29972
|
+
}, RB = {
|
|
29973
29973
|
LOW: 0,
|
|
29974
29974
|
MEDIUM: 1,
|
|
29975
29975
|
HIGH: 2,
|
|
@@ -32334,7 +32334,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
|
|
|
32334
32334
|
return -HB(this.distanceThreshold, this.near, this.far);
|
|
32335
32335
|
}
|
|
32336
32336
|
set worldDistanceThreshold(i) {
|
|
32337
|
-
this.distanceThreshold =
|
|
32337
|
+
this.distanceThreshold = sr(-i, this.near, this.far);
|
|
32338
32338
|
}
|
|
32339
32339
|
/**
|
|
32340
32340
|
* The occlusion distance falloff. Range: [0.0, 1.0].
|
|
@@ -32356,7 +32356,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
|
|
|
32356
32356
|
return -HB(this.distanceFalloff, this.near, this.far);
|
|
32357
32357
|
}
|
|
32358
32358
|
set worldDistanceFalloff(i) {
|
|
32359
|
-
this.distanceFalloff =
|
|
32359
|
+
this.distanceFalloff = sr(-i, this.near, this.far);
|
|
32360
32360
|
}
|
|
32361
32361
|
/**
|
|
32362
32362
|
* Sets the occlusion distance cutoff.
|
|
@@ -32394,7 +32394,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
|
|
|
32394
32394
|
return -HB(this.proximityThreshold, this.near, this.far);
|
|
32395
32395
|
}
|
|
32396
32396
|
set worldProximityThreshold(i) {
|
|
32397
|
-
this.proximityThreshold =
|
|
32397
|
+
this.proximityThreshold = sr(-i, this.near, this.far);
|
|
32398
32398
|
}
|
|
32399
32399
|
/**
|
|
32400
32400
|
* The occlusion proximity falloff. Range: [0.0, 1.0].
|
|
@@ -32416,7 +32416,7 @@ ao=clamp(1.0-pow(1.0-ao,abs(intensity)),0.0,1.0);
|
|
|
32416
32416
|
return -HB(this.proximityFalloff, this.near, this.far);
|
|
32417
32417
|
}
|
|
32418
32418
|
set worldProximityFalloff(i) {
|
|
32419
|
-
this.proximityFalloff =
|
|
32419
|
+
this.proximityFalloff = sr(-i, this.near, this.far);
|
|
32420
32420
|
}
|
|
32421
32421
|
/**
|
|
32422
32422
|
* Sets the occlusion proximity cutoff.
|
|
@@ -32628,7 +32628,7 @@ uniform float radius;varying vec2 vUv;varying vec2 vUv0;varying vec2 vUv1;varyin
|
|
|
32628
32628
|
setSize(i, A) {
|
|
32629
32629
|
this.uniforms.texelSize.value.set(1 / i, 1 / A);
|
|
32630
32630
|
}
|
|
32631
|
-
}, sz = new
|
|
32631
|
+
}, sz = new Rr(), Dn = null;
|
|
32632
32632
|
function nz() {
|
|
32633
32633
|
if (Dn === null) {
|
|
32634
32634
|
const i = new Float32Array([-1, -1, 0, 3, -1, 0, -1, 3, 0]), A = new Float32Array([0, 0, 2, 0, 0, 2]);
|
|
@@ -36014,7 +36014,7 @@ uniform lowp sampler2D nearCoCBuffer;uniform float scale;void mainImage(const in
|
|
|
36014
36014
|
*/
|
|
36015
36015
|
calculateFocusDistance(i) {
|
|
36016
36016
|
const A = this.camera, e = A.position.distanceTo(i);
|
|
36017
|
-
return
|
|
36017
|
+
return sr(-e, A.near, A.far);
|
|
36018
36018
|
}
|
|
36019
36019
|
/**
|
|
36020
36020
|
* Sets the depth texture.
|
|
@@ -36069,7 +36069,7 @@ function CZ(i, A, e) {
|
|
|
36069
36069
|
const t = /* @__PURE__ */ new Map([
|
|
36070
36070
|
[Pp, 1],
|
|
36071
36071
|
[xn, 1],
|
|
36072
|
-
[
|
|
36072
|
+
[ir, 2],
|
|
36073
36073
|
[qt, 4]
|
|
36074
36074
|
]);
|
|
36075
36075
|
let g;
|
|
@@ -36398,7 +36398,7 @@ var Uv = class extends GM {
|
|
|
36398
36398
|
*/
|
|
36399
36399
|
constructor({
|
|
36400
36400
|
blendFunction: i = xe.SRC,
|
|
36401
|
-
preset: A =
|
|
36401
|
+
preset: A = RB.MEDIUM,
|
|
36402
36402
|
edgeDetectionMode: e = wM.COLOR,
|
|
36403
36403
|
predicationMode: t = Gj.DISABLED
|
|
36404
36404
|
} = {}) {
|
|
@@ -36527,16 +36527,16 @@ var Uv = class extends GM {
|
|
|
36527
36527
|
applyPreset(i) {
|
|
36528
36528
|
const A = this.edgeDetectionMaterial, e = this.weightsMaterial;
|
|
36529
36529
|
switch (i) {
|
|
36530
|
-
case
|
|
36530
|
+
case RB.LOW:
|
|
36531
36531
|
A.edgeDetectionThreshold = 0.15, e.orthogonalSearchSteps = 4, e.diagonalDetection = !1, e.cornerDetection = !1;
|
|
36532
36532
|
break;
|
|
36533
|
-
case
|
|
36533
|
+
case RB.MEDIUM:
|
|
36534
36534
|
A.edgeDetectionThreshold = 0.1, e.orthogonalSearchSteps = 8, e.diagonalDetection = !1, e.cornerDetection = !1;
|
|
36535
36535
|
break;
|
|
36536
|
-
case
|
|
36536
|
+
case RB.HIGH:
|
|
36537
36537
|
A.edgeDetectionThreshold = 0.1, e.orthogonalSearchSteps = 16, e.diagonalSearchSteps = 8, e.cornerRounding = 25, e.diagonalDetection = !0, e.cornerDetection = !0;
|
|
36538
36538
|
break;
|
|
36539
|
-
case
|
|
36539
|
+
case RB.ULTRA:
|
|
36540
36540
|
A.edgeDetectionThreshold = 0.05, e.orthogonalSearchSteps = 32, e.diagonalSearchSteps = 16, e.cornerRounding = 25, e.diagonalDetection = !0, e.cornerDetection = !0;
|
|
36541
36541
|
break;
|
|
36542
36542
|
}
|
|
@@ -37721,7 +37721,7 @@ const AS = Symbol("assetReference"), jB = class {
|
|
|
37721
37721
|
this._url = A, this._hash = e, A.includes("?v=") ? this._hashedUri = A : this._hashedUri = e ? A + "?v=" + e : A, t !== null && (this.asset = t), HV(this._url, this.onResolvePrefab.bind(this));
|
|
37722
37722
|
}
|
|
37723
37723
|
static getOrCreate(A, e, t) {
|
|
37724
|
-
const g =
|
|
37724
|
+
const g = mr(A, e);
|
|
37725
37725
|
fn && console.log("GetOrCreate Addressable from", A, e, "FinalPath=", g);
|
|
37726
37726
|
const I = t.addressables, o = I.findAssetReference(g);
|
|
37727
37727
|
if (o)
|
|
@@ -37913,7 +37913,7 @@ class qZ extends Qa {
|
|
|
37913
37913
|
}
|
|
37914
37914
|
onDeserialize(A, e) {
|
|
37915
37915
|
if (typeof A == "string") {
|
|
37916
|
-
const t =
|
|
37916
|
+
const t = mr(e.gltfId, A);
|
|
37917
37917
|
return qc.getOrCreate(t);
|
|
37918
37918
|
}
|
|
37919
37919
|
}
|
|
@@ -38292,7 +38292,7 @@ class OZ {
|
|
|
38292
38292
|
(t == null ? void 0 : t.viewDevice) === e && (HZ && console.log("REMOVE", A), t.removed = !0, this.playerViews.delete(A));
|
|
38293
38293
|
}
|
|
38294
38294
|
}
|
|
38295
|
-
const
|
|
38295
|
+
const uB = aA("debugcontext"), PZ = aA("stats"), WZ = aA("debugactive"), VZ = aA("debugframerate"), jZ = aA("debugcoroutine"), GsA = {};
|
|
38296
38296
|
class MsA {
|
|
38297
38297
|
constructor(A) {
|
|
38298
38298
|
r(this, "name");
|
|
@@ -38664,7 +38664,7 @@ const si = class {
|
|
|
38664
38664
|
if (!t)
|
|
38665
38665
|
return !1;
|
|
38666
38666
|
if (this.internalOnUpdateVisible(), !this.renderer)
|
|
38667
|
-
return
|
|
38667
|
+
return uB && console.warn("Context has no renderer (perhaps it was disconnected?", this.domElement.isConnected), !1;
|
|
38668
38668
|
!this.isManagedExternally && !this.domElement.shadowRoot && this.domElement.prepend(this.renderer.domElement), si.Current = this, si.Current = this;
|
|
38669
38669
|
for (let o = 0; o < this.new_scripts.length; o++) {
|
|
38670
38670
|
const C = this.new_scripts[o];
|
|
@@ -38695,7 +38695,7 @@ const si = class {
|
|
|
38695
38695
|
const o = new Jf(this.scene, this.mainCamera);
|
|
38696
38696
|
this.renderer.setSize(this.domWidth, this.domHeight), this.composer.addPass(o), this.composer.setSize(this.domWidth, this.domHeight);
|
|
38697
38697
|
}
|
|
38698
|
-
return this._sizeChanged = !0, this._stats && (this._stats.showPanel(1), this.domElement.appendChild(this._stats.dom)),
|
|
38698
|
+
return this._sizeChanged = !0, this._stats && (this._stats.showPanel(1), this.domElement.appendChild(this._stats.dom)), uB && gk(this.scene, !0), this.targetFrameRate === void 0 ? (uB && console.warn("No target framerate set, using default", si.DefaultTargetFrameRate), this.targetFrameRate = si._defaultTargetFramerate) : uB && console.log("Target framerate set to", this.targetFrameRate), this._isCreating = !1, this.restartRenderLoop(), this._dispatchReadyAfterFrame = !0, Pt.dispatchCallback(Pg.ContextCreated, this, { files: g });
|
|
38699
38699
|
}
|
|
38700
38700
|
/** Sets the animation loop.
|
|
38701
38701
|
* Can not be done while creating the context or when disposed
|
|
@@ -38709,11 +38709,11 @@ const si = class {
|
|
|
38709
38709
|
return this.renderer.setAnimationLoop(A), !0;
|
|
38710
38710
|
}
|
|
38711
38711
|
render(A, e) {
|
|
38712
|
-
if (Zg() ||
|
|
38712
|
+
if (Zg() || uB || lj())
|
|
38713
38713
|
try {
|
|
38714
38714
|
this.internalRender(A, e);
|
|
38715
38715
|
} catch (t) {
|
|
38716
|
-
(Zg() ||
|
|
38716
|
+
(Zg() || uB) && t instanceof Error && Bg("Exception during render-loop.<br/>See console for details.", UC.Error), console.error(t), console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null), this.domElement.dispatchEvent(new CustomEvent("error", { detail: t }));
|
|
38717
38717
|
}
|
|
38718
38718
|
else
|
|
38719
38719
|
this.internalRender(A, e);
|
|
@@ -38877,7 +38877,7 @@ const si = class {
|
|
|
38877
38877
|
};
|
|
38878
38878
|
let Ye = si;
|
|
38879
38879
|
r(Ye, "_defaultTargetFramerate", { value: 60 });
|
|
38880
|
-
const zZ = aA("debugaroverlay"),
|
|
38880
|
+
const zZ = aA("debugaroverlay"), Xa = "ar", qN = "quit-ar";
|
|
38881
38881
|
class ZZ {
|
|
38882
38882
|
constructor() {
|
|
38883
38883
|
r(this, "arContainer", null);
|
|
@@ -38895,7 +38895,7 @@ class ZZ {
|
|
|
38895
38895
|
this.onRequestedEndAR();
|
|
38896
38896
|
}
|
|
38897
38897
|
onBegin(A, e, t) {
|
|
38898
|
-
this.currentSession = t, this.arContainer = e, A.domElement.querySelectorAll(`.${
|
|
38898
|
+
this.currentSession = t, this.arContainer = e, A.domElement.querySelectorAll(`.${Xa}`).forEach((o) => {
|
|
38899
38899
|
var C;
|
|
38900
38900
|
o && o !== this.arContainer && (this._reparentedObjects.push({ el: o, previousParent: o.parentElement }), (C = this.arContainer) == null || C.appendChild(o));
|
|
38901
38901
|
});
|
|
@@ -38927,20 +38927,20 @@ class ZZ {
|
|
|
38927
38927
|
}, 10);
|
|
38928
38928
|
}
|
|
38929
38929
|
findOrCreateARContainer(A) {
|
|
38930
|
-
if (A.classList.contains(
|
|
38930
|
+
if (A.classList.contains(Xa))
|
|
38931
38931
|
return A;
|
|
38932
38932
|
if (A.children)
|
|
38933
38933
|
for (let g = 0; g < A.children.length; g++) {
|
|
38934
38934
|
const I = A.children[g];
|
|
38935
|
-
if (!(!I || !I.classList) && I.classList.contains(
|
|
38935
|
+
if (!(!I || !I.classList) && I.classList.contains(Xa))
|
|
38936
38936
|
return I;
|
|
38937
38937
|
}
|
|
38938
|
-
const e = document.getElementsByClassName(
|
|
38938
|
+
const e = document.getElementsByClassName(Xa);
|
|
38939
38939
|
if (e && e.length > 0)
|
|
38940
38940
|
return e[0];
|
|
38941
38941
|
zZ && console.log("No overlay container found in document - generating new ony");
|
|
38942
38942
|
const t = document.createElement("div");
|
|
38943
|
-
return t.classList.add(
|
|
38943
|
+
return t.classList.add(Xa), t.style.position = "absolute", t.style.width = "100%", t.style.height = "100%", t.style.display = "flex", t.style.visibility = "visible", A.appendChild(t);
|
|
38944
38944
|
}
|
|
38945
38945
|
onRequestedEndAR() {
|
|
38946
38946
|
if (this.currentSession) {
|
|
@@ -39138,7 +39138,7 @@ class eA extends UA {
|
|
|
39138
39138
|
}
|
|
39139
39139
|
}
|
|
39140
39140
|
var ei;
|
|
39141
|
-
let
|
|
39141
|
+
let Kr = (ei = class {
|
|
39142
39142
|
/** @internal */
|
|
39143
39143
|
constructor() {
|
|
39144
39144
|
r(this, "__context");
|
|
@@ -39358,12 +39358,12 @@ let Nr = (ei = class {
|
|
|
39358
39358
|
}, // TODO move this to threeutils
|
|
39359
39359
|
// we need a copy for modifying the values to local space
|
|
39360
39360
|
r(ei, "_worldPositionBuffer", new S()), r(ei, "_worldQuaternionBuffer", new kA()), r(ei, "_worldEulerBuffer", new Mi()), r(ei, "_tempQuaternionBuffer2", new kA()), r(ei, "_forward", new S()), r(ei, "_right", new S()), r(ei, "_up", new S()), ei);
|
|
39361
|
-
class mA extends
|
|
39361
|
+
class mA extends Kr {
|
|
39362
39362
|
}
|
|
39363
39363
|
const XZ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
39364
39364
|
__proto__: null,
|
|
39365
39365
|
Behaviour: mA,
|
|
39366
|
-
Component:
|
|
39366
|
+
Component: Kr,
|
|
39367
39367
|
GameObject: eA
|
|
39368
39368
|
}, Symbol.toStringTag, { value: "Module" })), $Z = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 160 187.74"><defs><linearGradient id="a" x1="89.64" y1="184.81" x2="90.48" y2="21.85" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#62d399"/><stop offset=".51" stop-color="#acd842"/><stop offset=".9" stop-color="#d7db0a"/></linearGradient><linearGradient id="b" x1="69.68" y1="178.9" x2="68.08" y2="16.77" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#0ba398"/><stop offset=".5" stop-color="#4ca352"/><stop offset="1" stop-color="#76a30a"/></linearGradient><linearGradient id="c" x1="36.6" y1="152.17" x2="34.7" y2="84.19" gradientUnits="userSpaceOnUse"><stop offset=".19" stop-color="#36a382"/><stop offset=".54" stop-color="#49a459"/><stop offset="1" stop-color="#76a30b"/></linearGradient><linearGradient id="d" x1="15.82" y1="153.24" x2="18" y2="90.86" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#267880"/><stop offset=".51" stop-color="#457a5c"/><stop offset="1" stop-color="#717516"/></linearGradient><linearGradient id="e" x1="135.08" y1="135.43" x2="148.93" y2="63.47" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#b0d939"/><stop offset="1" stop-color="#eadb04"/></linearGradient><linearGradient id="f" x1="-4163.25" y1="2285.12" x2="-4160.81" y2="2215.34" gradientTransform="rotate(20 4088.49 13316.712)" gradientUnits="userSpaceOnUse"><stop offset=".17" stop-color="#74af52"/><stop offset=".48" stop-color="#99be32"/><stop offset="1" stop-color="#c0c40a"/></linearGradient><symbol id="g" viewBox="0 0 160 187.74"><path style="fill:url(#a)" d="M79.32 36.98v150.76L95 174.54l6.59-156.31-22.27 18.75z"/><path style="fill:url(#b)" d="M79.32 36.98 57.05 18.23l6.59 156.31 15.68 13.2V36.98z"/><path style="fill:url(#c)" d="m25.19 104.83 8.63 49.04 12.5-14.95-2.46-56.42-18.67 22.33z"/><path style="fill:url(#d)" d="M25.19 104.83 0 90.24l16.97 53.86 16.85 9.77-8.63-49.04z"/><path style="fill:#9c3" d="M43.86 82.5 18.69 67.98 0 90.24l25.18 14.59L43.86 82.5z"/><path style="fill:url(#e)" d="m134.82 78.69-9.97 56.5 15.58-9.04L160 64.1l-25.18 14.59z"/><path style="fill:url(#f)" d="m134.82 78.69-18.68-22.33-2.86 65 11.57 13.83 9.97-56.5z"/><path style="fill:#ffe113" d="m160 64.1-18.69-22.26-25.17 14.52 18.67 22.33L160 64.1z"/><path style="fill:#f3e600" d="M101.59 18.23 79.32 0 57.05 18.23l22.27 18.75 22.27-18.75z"/></symbol></defs><use width="160" height="187.74" xlink:href="#g"/></svg>', A5 = new Blob([$Z], { type: "image/svg+xml;charset=utf-8" }), e5 = URL.createObjectURL(A5), Hv = e5, Rs = aA("debuglicense");
|
|
39369
39369
|
let dQ = "basic";
|
|
@@ -39605,7 +39605,7 @@ async function n5() {
|
|
|
39605
39605
|
Rs && console.log("Failed to send non-commercial usage message to analytics backend", i);
|
|
39606
39606
|
}
|
|
39607
39607
|
}
|
|
39608
|
-
const
|
|
39608
|
+
const $a = aA("debugloading"), _E = aA("debugloadingrendering");
|
|
39609
39609
|
class msA {
|
|
39610
39610
|
constructor() {
|
|
39611
39611
|
r(this, "className");
|
|
@@ -39614,9 +39614,9 @@ class msA {
|
|
|
39614
39614
|
}
|
|
39615
39615
|
let OE = 0, LN;
|
|
39616
39616
|
function Pv(i) {
|
|
39617
|
-
|
|
39617
|
+
$a && console.log(i.progress.loaded.toFixed(0) + "/" + i.progress.total.toFixed(0), i);
|
|
39618
39618
|
const A = i.count, e = i.progress.total;
|
|
39619
|
-
e === 0 || e === void 0 ? (LN !== i.name && (OE = 0), LN = i.name, OE += (1 - OE) * 1e-3,
|
|
39619
|
+
e === 0 || e === void 0 ? (LN !== i.name && (OE = 0), LN = i.name, OE += (1 - OE) * 1e-3, $a && AC("Loading " + i.name + " did not report total size")) : OE = i.progress.loaded / e;
|
|
39620
39620
|
const t = i.index / A + OE / A;
|
|
39621
39621
|
return ee.clamp01(t);
|
|
39622
39622
|
}
|
|
@@ -39642,12 +39642,12 @@ const Jp = class {
|
|
|
39642
39642
|
}
|
|
39643
39643
|
onLoadingBegin(A) {
|
|
39644
39644
|
const e = this._element.shadowRoot || this._element;
|
|
39645
|
-
if (
|
|
39645
|
+
if ($a && console.warn("Begin Loading"), !this._loadingElement) {
|
|
39646
39646
|
for (let t = 0; t < e.children.length; t++) {
|
|
39647
39647
|
const g = e.children[t];
|
|
39648
39648
|
if (g.classList.contains(Jp.LoadingContainerClassName)) {
|
|
39649
39649
|
if (!this._allowCustomLoadingElement) {
|
|
39650
|
-
|
|
39650
|
+
$a && console.warn("Remove custom loading container"), e.removeChild(g);
|
|
39651
39651
|
continue;
|
|
39652
39652
|
}
|
|
39653
39653
|
this._loadingElement = this.createLoadingElement(g);
|
|
@@ -39665,7 +39665,7 @@ const Jp = class {
|
|
|
39665
39665
|
typeof A == "number" ? t = A : ("index" in A && (t = Pv(A)), !e && "name" in A && this.setMessage("loading " + A.name)), this.loadingProgress = t, e && this.setMessage(e), this.updateDisplay();
|
|
39666
39666
|
}
|
|
39667
39667
|
onLoadingFinished() {
|
|
39668
|
-
|
|
39668
|
+
$a && console.warn("Finished Loading"), _E || (this.loadingProgress = 1, this.onDoneLoading());
|
|
39669
39669
|
}
|
|
39670
39670
|
setMessage(A) {
|
|
39671
39671
|
this._messageContainer && (this._messageContainer.innerText = A);
|
|
@@ -39679,7 +39679,7 @@ const Jp = class {
|
|
|
39679
39679
|
}, A);
|
|
39680
39680
|
}
|
|
39681
39681
|
onDoneLoading() {
|
|
39682
|
-
this._loadingElement && (
|
|
39682
|
+
this._loadingElement && ($a && console.log("Hiding loading element"), this._loadingElement.style.display = "none", this._loadingElement.remove()), this._progressLoop && clearInterval(this._progressLoop), this._progressLoop = null;
|
|
39683
39683
|
}
|
|
39684
39684
|
updateDisplay() {
|
|
39685
39685
|
const A = this._progress, e = (A * 100).toFixed(0) + "%";
|
|
@@ -39687,7 +39687,7 @@ const Jp = class {
|
|
|
39687
39687
|
}
|
|
39688
39688
|
createLoadingElement(A) {
|
|
39689
39689
|
var B, Q;
|
|
39690
|
-
|
|
39690
|
+
$a && !A && console.log("Creating loading element"), this._loadingElement = A || document.createElement("div");
|
|
39691
39691
|
const e = this._element.getAttribute("loading-style"), t = Lc();
|
|
39692
39692
|
if (!A && (this._loadingElement.style.position = "absolute", this._loadingElement.style.width = "100%", this._loadingElement.style.height = "100%", this._loadingElement.style.left = "0", this._loadingElement.style.top = "0", e === "light" ? this._loadingElement.style.backgroundColor = "#ddd" : this._loadingElement.style.backgroundColor = "#222", this._loadingElement.style.display = "flex", this._loadingElement.style.alignItems = "center", this._loadingElement.style.justifyContent = "center", this._loadingElement.style.zIndex = Number.MAX_SAFE_INTEGER.toString(), this._loadingElement.style.flexDirection = "column", this._loadingElement.style.pointerEvents = "none", this._loadingElement.style.color = "white", e === "light" ? this._loadingElement.style.color = "rgba(0,0,0,.8)" : this._loadingElement.style.color = "rgba(255,255,255,.5)", t && this._element)) {
|
|
39693
39693
|
const E = this._element.getAttribute("loading-background-color");
|
|
@@ -40365,10 +40365,10 @@ const YN = {
|
|
|
40365
40365
|
[Xv]: qt,
|
|
40366
40366
|
[jv]: qt,
|
|
40367
40367
|
[FM]: qt,
|
|
40368
|
-
[Ax]:
|
|
40369
|
-
[Zv]:
|
|
40370
|
-
[Vv]:
|
|
40371
|
-
[UM]:
|
|
40368
|
+
[Ax]: ir,
|
|
40369
|
+
[Zv]: ir,
|
|
40370
|
+
[Vv]: ir,
|
|
40371
|
+
[UM]: ir,
|
|
40372
40372
|
[$v]: xn,
|
|
40373
40373
|
[zv]: xn,
|
|
40374
40374
|
[RM]: xn,
|
|
@@ -41452,7 +41452,7 @@ const so = {
|
|
|
41452
41452
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
41453
41453
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
41454
41454
|
LINEAR: Ys,
|
|
41455
|
-
STEP:
|
|
41455
|
+
STEP: Dr
|
|
41456
41456
|
}, rS = {
|
|
41457
41457
|
OPAQUE: "OPAQUE",
|
|
41458
41458
|
MASK: "MASK",
|
|
@@ -42052,7 +42052,7 @@ class z5 {
|
|
|
42052
42052
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
42053
42053
|
return;
|
|
42054
42054
|
}
|
|
42055
|
-
return t.type === "perspective" ? e = new gt(jg.radToDeg(g.yfov), g.aspectRatio || 1, g.znear || 1, g.zfar || 2e6) : t.type === "orthographic" && (e = new
|
|
42055
|
+
return t.type === "perspective" ? e = new gt(jg.radToDeg(g.yfov), g.aspectRatio || 1, g.znear || 1, g.zfar || 2e6) : t.type === "orthographic" && (e = new Ur(-g.xmag, g.xmag, g.ymag, -g.ymag, g.znear, g.zfar)), t.name && (e.name = this.createUniqueName(t.name)), Nn(e, t), Promise.resolve(e);
|
|
42056
42056
|
}
|
|
42057
42057
|
/**
|
|
42058
42058
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -42343,7 +42343,7 @@ function $N(i, A) {
|
|
|
42343
42343
|
return I.setIndex(g), I;
|
|
42344
42344
|
}
|
|
42345
42345
|
var Cx = /* @__PURE__ */ ((i) => (i[i.INT = 5124] = "INT", i[i.FLOAT = 5126] = "FLOAT", i[i.FLOAT_VEC2 = 35664] = "FLOAT_VEC2", i[i.FLOAT_VEC3 = 35665] = "FLOAT_VEC3", i[i.FLOAT_VEC4 = 35666] = "FLOAT_VEC4", i[i.INT_VEC2 = 35667] = "INT_VEC2", i[i.INT_VEC3 = 35668] = "INT_VEC3", i[i.INT_VEC4 = 35669] = "INT_VEC4", i[i.BOOL = 35670] = "BOOL", i[i.BOOL_VEC2 = 35671] = "BOOL_VEC2", i[i.BOOL_VEC3 = 35672] = "BOOL_VEC3", i[i.BOOL_VEC4 = 35673] = "BOOL_VEC4", i[i.FLOAT_MAT2 = 35674] = "FLOAT_MAT2", i[i.FLOAT_MAT3 = 35675] = "FLOAT_MAT3", i[i.FLOAT_MAT4 = 35676] = "FLOAT_MAT4", i[i.SAMPLER_2D = 35678] = "SAMPLER_2D", i[i.SAMPLER_3D = 35680] = "SAMPLER_3D", i[i.SAMPLER_CUBE = 35681] = "SAMPLER_CUBE", i[i.UNKNOWN = 0] = "UNKNOWN", i))(Cx || {});
|
|
42346
|
-
const hs = aA("debugcustomshader"),
|
|
42346
|
+
const hs = aA("debugcustomshader"), DB = "NEEDLE_techniques_webgl";
|
|
42347
42347
|
class X5 {
|
|
42348
42348
|
constructor() {
|
|
42349
42349
|
r(this, "objectToWorldMatrix", new NA());
|
|
@@ -42451,18 +42451,18 @@ class $5 {
|
|
|
42451
42451
|
this.parser = A, this.identifier = e;
|
|
42452
42452
|
}
|
|
42453
42453
|
get name() {
|
|
42454
|
-
return
|
|
42454
|
+
return DB;
|
|
42455
42455
|
}
|
|
42456
42456
|
loadMaterial(A) {
|
|
42457
42457
|
const e = this.parser.json.materials[A];
|
|
42458
42458
|
if (!e)
|
|
42459
42459
|
return hs && console.log(A, this.parser.json.materials), null;
|
|
42460
|
-
if (!e.extensions || !e.extensions[
|
|
42460
|
+
if (!e.extensions || !e.extensions[DB])
|
|
42461
42461
|
return hs && console.log("material " + A + " does not use NEEDLE_techniques_webgl"), null;
|
|
42462
|
-
const t = e.extensions[
|
|
42462
|
+
const t = e.extensions[DB].technique;
|
|
42463
42463
|
if (t < 0)
|
|
42464
42464
|
return null;
|
|
42465
|
-
const g = this.parser.json.extensions[
|
|
42465
|
+
const g = this.parser.json.extensions[DB];
|
|
42466
42466
|
if (!g)
|
|
42467
42467
|
return null;
|
|
42468
42468
|
hs && console.log(g);
|
|
@@ -42509,8 +42509,8 @@ class $5 {
|
|
|
42509
42509
|
}
|
|
42510
42510
|
}
|
|
42511
42511
|
let E = !1;
|
|
42512
|
-
if (e.extensions && e.extensions[
|
|
42513
|
-
const D = e.extensions[
|
|
42512
|
+
if (e.extensions && e.extensions[DB]) {
|
|
42513
|
+
const D = e.extensions[DB];
|
|
42514
42514
|
if (D.technique === t) {
|
|
42515
42515
|
hs && console.log(e.name, "Material Properties", D);
|
|
42516
42516
|
for (const y in D.values) {
|
|
@@ -42622,7 +42622,7 @@ class e9 {
|
|
|
42622
42622
|
r(this, HCA);
|
|
42623
42623
|
}
|
|
42624
42624
|
}
|
|
42625
|
-
HCA =
|
|
42625
|
+
HCA = mB;
|
|
42626
42626
|
class t9 {
|
|
42627
42627
|
constructor(A, e, t) {
|
|
42628
42628
|
r(this, "node");
|
|
@@ -42696,7 +42696,7 @@ class nx {
|
|
|
42696
42696
|
const Q = JC().writeBuiltinComponentData(B, this.context);
|
|
42697
42697
|
Q !== null && a.push(Q);
|
|
42698
42698
|
}
|
|
42699
|
-
a.length > 0 && (n[
|
|
42699
|
+
a.length > 0 && (n[mB] = a, yn && console.log("DID WRITE", I, "nodeIndex", C, a));
|
|
42700
42700
|
}
|
|
42701
42701
|
}
|
|
42702
42702
|
// -------------------------------------
|
|
@@ -42740,7 +42740,7 @@ class nx {
|
|
|
42740
42740
|
async createComponents(A, e) {
|
|
42741
42741
|
if (!e)
|
|
42742
42742
|
return;
|
|
42743
|
-
const t = e[
|
|
42743
|
+
const t = e[mB];
|
|
42744
42744
|
if (t) {
|
|
42745
42745
|
const g = new Array();
|
|
42746
42746
|
yn && console.log(A.name, t);
|
|
@@ -42749,7 +42749,7 @@ class nx {
|
|
|
42749
42749
|
yn && console.log("Serialized data", JSON.parse(JSON.stringify(o))), o && this.parser && g.push(
|
|
42750
42750
|
gM(this.parser, o).catch((C) => console.error(`Error while resolving references (see console for details)
|
|
42751
42751
|
`, C, A, o))
|
|
42752
|
-
), A.userData = A.userData || {}, A.userData[
|
|
42752
|
+
), A.userData = A.userData || {}, A.userData[mB] = A.userData[mB] || [], A.userData[mB].push(o);
|
|
42753
42753
|
}
|
|
42754
42754
|
await Promise.all(g).catch((I) => {
|
|
42755
42755
|
console.error("Error while loading components", I);
|
|
@@ -43034,7 +43034,7 @@ var cx = /* @__PURE__ */ Do(Vs, 9, 0), hx = /* @__PURE__ */ Do(Vs, 9, 1), lx = /
|
|
|
43034
43034
|
e <<= A & 7;
|
|
43035
43035
|
var t = A / 8 | 0;
|
|
43036
43036
|
i[t] |= e, i[t + 1] |= e >>> 8;
|
|
43037
|
-
},
|
|
43037
|
+
}, UB = function(i, A, e) {
|
|
43038
43038
|
e <<= A & 7;
|
|
43039
43039
|
var t = A / 8 | 0;
|
|
43040
43040
|
i[t] |= e, i[t + 1] |= e >>> 8, i[t + 2] |= e >>> 16;
|
|
@@ -43104,7 +43104,7 @@ var cx = /* @__PURE__ */ Do(Vs, 9, 0), hx = /* @__PURE__ */ Do(Vs, 9, 1), lx = /
|
|
|
43104
43104
|
I = 1, g = i[C];
|
|
43105
43105
|
}
|
|
43106
43106
|
return [e.subarray(0, t), A];
|
|
43107
|
-
},
|
|
43107
|
+
}, FB = function(i, A) {
|
|
43108
43108
|
for (var e = 0, t = 0; t < A.length; ++t)
|
|
43109
43109
|
e += i[t] * A[t];
|
|
43110
43110
|
return e;
|
|
@@ -43122,7 +43122,7 @@ var cx = /* @__PURE__ */ Do(Vs, 9, 0), hx = /* @__PURE__ */ Do(Vs, 9, 1), lx = /
|
|
|
43122
43122
|
R[y[f] & 31]++;
|
|
43123
43123
|
for (var M = gD(R, 7), U = M[0], J = M[1], T = 19; T > 4 && !U[fh[T - 1]]; --T)
|
|
43124
43124
|
;
|
|
43125
|
-
var Y = n + 5 << 3, b =
|
|
43125
|
+
var Y = n + 5 << 3, b = FB(g, Vs) + FB(I, uQ) + o, _ = FB(g, Q) + FB(I, h) + o + 14 + 3 * T + FB(R, U) + (2 * R[16] + 3 * R[17] + 7 * R[18]);
|
|
43126
43126
|
if (Y <= b && Y <= _)
|
|
43127
43127
|
return vc(A, a, i.subarray(s, s + n));
|
|
43128
43128
|
var AA, $, X, cA;
|
|
@@ -43143,12 +43143,12 @@ var cx = /* @__PURE__ */ Do(Vs, 9, 0), hx = /* @__PURE__ */ Do(Vs, 9, 1), lx = /
|
|
|
43143
43143
|
for (var f = 0; f < C; ++f)
|
|
43144
43144
|
if (t[f] > 255) {
|
|
43145
43145
|
var rA = t[f] >>> 18 & 31;
|
|
43146
|
-
|
|
43146
|
+
UB(A, a, AA[rA + 257]), a += $[rA + 257], rA > 7 && (lC(A, a, t[f] >>> 23 & 31), a += VQ[rA]);
|
|
43147
43147
|
var GA = t[f] & 31;
|
|
43148
|
-
|
|
43148
|
+
UB(A, a, X[GA]), a += cA[GA], GA > 3 && (UB(A, a, t[f] >>> 5 & 8191), a += jQ[GA]);
|
|
43149
43149
|
} else
|
|
43150
|
-
|
|
43151
|
-
return
|
|
43150
|
+
UB(A, a, AA[t[f]]), a += $[t[f]];
|
|
43151
|
+
return UB(A, a, AA[256]), a + $[256];
|
|
43152
43152
|
}, ux = /* @__PURE__ */ new Ws([65540, 131080, 131088, 131104, 262176, 1048704, 1048832, 2114560, 2117632]), Us = /* @__PURE__ */ new At(0), Dx = function(i, A, e, t, g, I) {
|
|
43153
43153
|
var o = i.length, C = new At(t + o + 5 * (1 + Math.ceil(o / 7e3)) + g), s = C.subarray(t, C.length - g), n = 0;
|
|
43154
43154
|
if (!A || o < 8)
|
|
@@ -43232,7 +43232,7 @@ var cx = /* @__PURE__ */ Do(Vs, 9, 0), hx = /* @__PURE__ */ Do(Vs, 9, 1), lx = /
|
|
|
43232
43232
|
return i %= 65521, A %= 65521, (i & 255) << 24 | i >>> 8 << 16 | (A & 255) << 8 | A >>> 8;
|
|
43233
43233
|
}
|
|
43234
43234
|
};
|
|
43235
|
-
},
|
|
43235
|
+
}, Jr = function(i, A, e, t, g) {
|
|
43236
43236
|
return Dx(i, A.level == null ? 6 : A.level, A.mem == null ? Math.ceil(Math.max(8, Math.min(13, Math.log(i.length))) * 1.5) : 12 + A.mem, e, t, !g);
|
|
43237
43237
|
}, fl = function(i, A) {
|
|
43238
43238
|
var e = {};
|
|
@@ -43279,7 +43279,7 @@ var cx = /* @__PURE__ */ Do(Vs, 9, 0), hx = /* @__PURE__ */ Do(Vs, 9, 1), lx = /
|
|
|
43279
43279
|
}, ZQ = function() {
|
|
43280
43280
|
return [At, tg, Ws, VQ, jQ, fh, NM, Ex, hx, dx, wh, Do, tD, to, iD, Dl, po, pl, eE, Ea, JM];
|
|
43281
43281
|
}, XQ = function() {
|
|
43282
|
-
return [At, tg, Ws, VQ, jQ, fh, ZD, Gk, cx, Vs, lx, uQ, wh, ux, Us, Do, lC,
|
|
43282
|
+
return [At, tg, Ws, VQ, jQ, fh, ZD, Gk, cx, Vs, lx, uQ, wh, ux, Us, Do, lC, UB, gD, XD, Mk, FB, vc, mk, Dl, po, Dx, Jr, wl, Ea];
|
|
43283
43283
|
}, wx = function() {
|
|
43284
43284
|
return [qM, LM, Qt, zQ, px];
|
|
43285
43285
|
}, yx = function() {
|
|
@@ -43364,7 +43364,7 @@ var qC = /* @__PURE__ */ function() {
|
|
|
43364
43364
|
!e && typeof A == "function" && (e = A, A = {}), this.ondata = e, this.o = A || {};
|
|
43365
43365
|
}
|
|
43366
43366
|
return i.prototype.p = function(A, e) {
|
|
43367
|
-
this.ondata(
|
|
43367
|
+
this.ondata(Jr(A, this.o, 0, 0, !e), e);
|
|
43368
43368
|
}, i.prototype.push = function(A, e) {
|
|
43369
43369
|
if (this.d)
|
|
43370
43370
|
throw "stream finished";
|
|
@@ -43396,7 +43396,7 @@ function Rx(i, A, e) {
|
|
|
43396
43396
|
}, 0, e);
|
|
43397
43397
|
}
|
|
43398
43398
|
function wl(i, A) {
|
|
43399
|
-
return
|
|
43399
|
+
return Jr(i, A || {}, 0, 0);
|
|
43400
43400
|
}
|
|
43401
43401
|
var cI = /* @__PURE__ */ function() {
|
|
43402
43402
|
function i(A) {
|
|
@@ -43450,7 +43450,7 @@ var $D = /* @__PURE__ */ function() {
|
|
|
43450
43450
|
qC.prototype.push.call(this, A, e);
|
|
43451
43451
|
}, i.prototype.p = function(A, e) {
|
|
43452
43452
|
this.c.p(A), this.l += A.length;
|
|
43453
|
-
var t =
|
|
43453
|
+
var t = Jr(A, this.o, this.v && LM(this.o), e && 8, !e);
|
|
43454
43454
|
this.v && (qM(t, this.o), this.v = 0), e && (Qt(t, t.length - 8, this.c.d()), Qt(t, t.length - 4, this.l)), this.ondata(t, e);
|
|
43455
43455
|
}, i;
|
|
43456
43456
|
}(), tK = /* @__PURE__ */ function() {
|
|
@@ -43485,7 +43485,7 @@ function Ap(i, A) {
|
|
|
43485
43485
|
A || (A = {});
|
|
43486
43486
|
var e = zQ(), t = i.length;
|
|
43487
43487
|
e.p(i);
|
|
43488
|
-
var g =
|
|
43488
|
+
var g = Jr(i, A, LM(A), 8), I = g.length;
|
|
43489
43489
|
return qM(g, A), Qt(g, I - 8, e.d()), Qt(g, I - 4, t), g;
|
|
43490
43490
|
}
|
|
43491
43491
|
var ep = /* @__PURE__ */ function() {
|
|
@@ -43545,7 +43545,7 @@ var Rk = /* @__PURE__ */ function() {
|
|
|
43545
43545
|
qC.prototype.push.call(this, A, e);
|
|
43546
43546
|
}, i.prototype.p = function(A, e) {
|
|
43547
43547
|
this.c.p(A);
|
|
43548
|
-
var t =
|
|
43548
|
+
var t = Jr(A, this.o, this.v && 2, e && 4, !e);
|
|
43549
43549
|
this.v && (vM(t, this.o), this.v = 0), e && Qt(t, t.length - 4, this.c.d()), this.ondata(t, e);
|
|
43550
43550
|
}, i;
|
|
43551
43551
|
}(), I9 = /* @__PURE__ */ function() {
|
|
@@ -43580,7 +43580,7 @@ function Uk(i, A) {
|
|
|
43580
43580
|
A || (A = {});
|
|
43581
43581
|
var e = KM();
|
|
43582
43582
|
e.p(i);
|
|
43583
|
-
var t =
|
|
43583
|
+
var t = Jr(i, A, 2, 4);
|
|
43584
43584
|
return vM(t, A), Qt(t, t.length - 4, e.d()), t;
|
|
43585
43585
|
}
|
|
43586
43586
|
var ip = /* @__PURE__ */ function() {
|
|
@@ -44569,7 +44569,7 @@ class Nk extends VG {
|
|
|
44569
44569
|
}
|
|
44570
44570
|
function Le(G, F, x) {
|
|
44571
44571
|
for (let j = 0; j < 64; ++j)
|
|
44572
|
-
F[x + j] =
|
|
44572
|
+
F[x + j] = Cr.toHalfFloat(v(G[j]));
|
|
44573
44573
|
}
|
|
44574
44574
|
function v(G) {
|
|
44575
44575
|
return G <= 1 ? Math.sign(G) * Math.pow(Math.abs(G), 2.2) : Math.sign(G) * Math.pow(M, Math.abs(G) - 1);
|
|
@@ -44797,7 +44797,7 @@ class Nk extends VG {
|
|
|
44797
44797
|
return F.value += 4, x;
|
|
44798
44798
|
}
|
|
44799
44799
|
function V(G, F) {
|
|
44800
|
-
return
|
|
44800
|
+
return Cr.toHalfFloat(Ue(G, F));
|
|
44801
44801
|
}
|
|
44802
44802
|
function z(G) {
|
|
44803
44803
|
const F = (G & 31744) >> 10, x = G & 1023;
|
|
@@ -45001,10 +45001,10 @@ class Nk extends VG {
|
|
|
45001
45001
|
}
|
|
45002
45002
|
return tA.bytesPerLine = tA.width * tA.inputSize * tA.channels, tA.outputChannels == 4 ? (tA.format = qt, tA.encoding = li) : (tA.format = xn, tA.encoding = li), tA;
|
|
45003
45003
|
}
|
|
45004
|
-
const
|
|
45004
|
+
const Xr = new DataView(A), Ay = new Uint8Array(A), L = { value: 0 }, oA = id(Xr, A, L), IA = $w(oA, Xr, Ay, L, this.type), iA = { value: 0 }, pA = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
|
|
45005
45005
|
for (let G = 0; G < IA.height / IA.scanlineBlockSize; G++) {
|
|
45006
|
-
const F = WA(
|
|
45007
|
-
IA.size = WA(
|
|
45006
|
+
const F = WA(Xr, L);
|
|
45007
|
+
IA.size = WA(Xr, L), IA.lines = F + IA.scanlineBlockSize > IA.height ? IA.height - F : IA.scanlineBlockSize;
|
|
45008
45008
|
const j = IA.size < IA.lines * IA.bytesPerLine ? IA.uncompress(IA) : K(IA);
|
|
45009
45009
|
L.value += IA.size;
|
|
45010
45010
|
for (let sA = 0; sA < IA.scanlineBlockSize; sA++) {
|
|
@@ -45205,7 +45205,7 @@ const ES = aA("debugstencil");
|
|
|
45205
45205
|
function y9(i, A) {
|
|
45206
45206
|
return (i & 1 << A.layer) != 0;
|
|
45207
45207
|
}
|
|
45208
|
-
const S9 = Symbol("stencils"),
|
|
45208
|
+
const S9 = Symbol("stencils"), er = class {
|
|
45209
45209
|
constructor(A, e) {
|
|
45210
45210
|
r(this, "parser");
|
|
45211
45211
|
r(this, "source");
|
|
@@ -45215,9 +45215,9 @@ const S9 = Symbol("stencils"), Ar = class {
|
|
|
45215
45215
|
if (!A)
|
|
45216
45216
|
return;
|
|
45217
45217
|
const e = A.sourceId;
|
|
45218
|
-
if (ES && console.log(e,
|
|
45218
|
+
if (ES && console.log(e, er.stencils), !e)
|
|
45219
45219
|
return;
|
|
45220
|
-
const t =
|
|
45220
|
+
const t = er.stencils[e];
|
|
45221
45221
|
if (t)
|
|
45222
45222
|
for (let g = t.length - 1; g >= 0; g--) {
|
|
45223
45223
|
const I = t[g];
|
|
@@ -45244,14 +45244,14 @@ const S9 = Symbol("stencils"), Ar = class {
|
|
|
45244
45244
|
if (g && Array.isArray(g))
|
|
45245
45245
|
for (const I of g) {
|
|
45246
45246
|
const o = { ...I };
|
|
45247
|
-
o.compareFunc = k9(o.compareFunc), o.passOp = cS(o.passOp), o.failOp = cS(o.failOp), o.zFailOp = cS(o.zFailOp),
|
|
45247
|
+
o.compareFunc = k9(o.compareFunc), o.passOp = cS(o.passOp), o.failOp = cS(o.failOp), o.zFailOp = cS(o.zFailOp), er.stencils[this.source] || (er.stencils[this.source] = []), er.stencils[this.source].push(o);
|
|
45248
45248
|
}
|
|
45249
45249
|
}
|
|
45250
45250
|
}
|
|
45251
45251
|
return null;
|
|
45252
45252
|
}
|
|
45253
45253
|
};
|
|
45254
|
-
let xc =
|
|
45254
|
+
let xc = er;
|
|
45255
45255
|
r(xc, "stencils", {});
|
|
45256
45256
|
function cS(i) {
|
|
45257
45257
|
switch (i) {
|
|
@@ -45355,7 +45355,7 @@ const Ah = class {
|
|
|
45355
45355
|
let s;
|
|
45356
45356
|
if (I.source && I.source[lS] && (s = I.source[lS]), s || (s = Ah.cache.get(C)), s) {
|
|
45357
45357
|
Ji && console.log(C, s.uri, s.guid);
|
|
45358
|
-
const n =
|
|
45358
|
+
const n = mr(e, s.uri);
|
|
45359
45359
|
if (n.endsWith(".glb") || n.endsWith(".gltf")) {
|
|
45360
45360
|
if (!s.guid)
|
|
45361
45361
|
return console.warn("missing pointer for glb/gltf texture", s), null;
|
|
@@ -45764,8 +45764,8 @@ const aK = Symbol("previous-visibility"), zB = class extends Ct {
|
|
|
45764
45764
|
zB._userSet.clear();
|
|
45765
45765
|
}
|
|
45766
45766
|
};
|
|
45767
|
-
let
|
|
45768
|
-
r(
|
|
45767
|
+
let lr = zB;
|
|
45768
|
+
r(lr, "_userSet", /* @__PURE__ */ new Set());
|
|
45769
45769
|
class F9 extends Qa {
|
|
45770
45770
|
constructor() {
|
|
45771
45771
|
super([wA, Ft]);
|
|
@@ -45810,7 +45810,7 @@ class N9 extends Qa {
|
|
|
45810
45810
|
const K9 = new N9();
|
|
45811
45811
|
class J9 extends Qa {
|
|
45812
45812
|
constructor() {
|
|
45813
|
-
super([
|
|
45813
|
+
super([Kr, mA]);
|
|
45814
45814
|
}
|
|
45815
45815
|
onSerialize(A, e) {
|
|
45816
45816
|
if (A != null && A.guid)
|
|
@@ -45914,13 +45914,13 @@ class b9 extends Qa {
|
|
|
45914
45914
|
const vsA = new b9();
|
|
45915
45915
|
class L9 extends Qa {
|
|
45916
45916
|
constructor() {
|
|
45917
|
-
super([
|
|
45917
|
+
super([lr, Ct]);
|
|
45918
45918
|
}
|
|
45919
45919
|
onSerialize(A, e) {
|
|
45920
45920
|
}
|
|
45921
45921
|
onDeserialize(A, e) {
|
|
45922
|
-
if (A instanceof Te && e.type ===
|
|
45923
|
-
const t = A, g = new
|
|
45922
|
+
if (A instanceof Te && e.type === lr) {
|
|
45923
|
+
const t = A, g = new lr(t.image.width, t.image.height);
|
|
45924
45924
|
return g.texture = t, g;
|
|
45925
45925
|
}
|
|
45926
45926
|
}
|
|
@@ -45935,7 +45935,7 @@ class v9 extends Qa {
|
|
|
45935
45935
|
}
|
|
45936
45936
|
onDeserialize(A, e) {
|
|
45937
45937
|
if (typeof A == "string" && A.length > 0)
|
|
45938
|
-
return
|
|
45938
|
+
return mr(e.gltfId, A);
|
|
45939
45939
|
}
|
|
45940
45940
|
}
|
|
45941
45941
|
new v9();
|
|
@@ -46088,7 +46088,7 @@ var H9 = Object.defineProperty, _9 = Object.getOwnPropertyDescriptor, Px = (i, A
|
|
|
46088
46088
|
(o = i[I]) && (g = (t ? o(A, e, g) : o(g)) || g);
|
|
46089
46089
|
return t && g && H9(A, e, g), g;
|
|
46090
46090
|
};
|
|
46091
|
-
const
|
|
46091
|
+
const Ar = aA("debugreflectionprobe"), EK = aA("noreflectionprobe"), O9 = Symbol("reflectionProbeKey"), P9 = Symbol("original material");
|
|
46092
46092
|
var Nu;
|
|
46093
46093
|
const ss = (Nu = class extends mA {
|
|
46094
46094
|
constructor() {
|
|
@@ -46111,10 +46111,10 @@ const ss = (Nu = class extends mA {
|
|
|
46111
46111
|
if (o.gameObject === g)
|
|
46112
46112
|
return o;
|
|
46113
46113
|
} else if (o.isInBox(A, void 0))
|
|
46114
|
-
return
|
|
46114
|
+
return Ar && console.log("Found reflection probe", A.name, o.name), o;
|
|
46115
46115
|
}
|
|
46116
46116
|
}
|
|
46117
|
-
return
|
|
46117
|
+
return Ar && console.debug("Did not find reflection probe", A.name, t, A), null;
|
|
46118
46118
|
}
|
|
46119
46119
|
set texture(A) {
|
|
46120
46120
|
if (A && !(A instanceof Te)) {
|
|
@@ -46131,7 +46131,7 @@ const ss = (Nu = class extends mA {
|
|
|
46131
46131
|
return (t = this._boxHelper) == null ? void 0 : t.isInBox(A, e);
|
|
46132
46132
|
}
|
|
46133
46133
|
awake() {
|
|
46134
|
-
this._boxHelper = this.gameObject.addNewComponent(Vo), this._boxHelper.updateBox(!0),
|
|
46134
|
+
this._boxHelper = this.gameObject.addNewComponent(Vo), this._boxHelper.updateBox(!0), Ar && this._boxHelper.showHelper(5592320, !0), this.texture && (this.texture.mapping = lo, this.texture.encoding = De, this.texture.needsUpdate = !0);
|
|
46135
46135
|
}
|
|
46136
46136
|
onDestroy() {
|
|
46137
46137
|
const A = ss._probes.get(this.context);
|
|
@@ -46152,7 +46152,7 @@ const ss = (Nu = class extends mA {
|
|
|
46152
46152
|
continue;
|
|
46153
46153
|
let o = e[g], C = I === (o == null ? void 0 : o.copy), s = !o || o.material.uuid !== I.uuid || o.copy.version !== I.version;
|
|
46154
46154
|
if (!C && s) {
|
|
46155
|
-
if (
|
|
46155
|
+
if (Ar) {
|
|
46156
46156
|
let B = "";
|
|
46157
46157
|
o ? o.material !== I ? B = "reference changed; cached instance?: " + C : o.copy.version !== I.version && (B = "version changed") : B = "not cached", console.warn("Cloning material", I.name, I.version, "Reason:", B, `
|
|
46158
46158
|
`, I.uuid, `
|
|
@@ -46163,7 +46163,7 @@ const ss = (Nu = class extends mA {
|
|
|
46163
46163
|
a.version = I.version, o ? (o.copy = a, o.material = I) : (o = {
|
|
46164
46164
|
material: I,
|
|
46165
46165
|
copy: a
|
|
46166
|
-
}, e.push(o)), a[O9] = this, a[P9] = I,
|
|
46166
|
+
}, e.push(o)), a[O9] = this, a[P9] = I, Ar && console.log("Set reflection", A.name, A.guid);
|
|
46167
46167
|
}
|
|
46168
46168
|
const n = o == null ? void 0 : o.copy;
|
|
46169
46169
|
n.envMap = this.texture, A.sharedMaterials[g] = n;
|
|
@@ -46409,7 +46409,7 @@ const Zx = class extends mA {
|
|
|
46409
46409
|
this.enabled || this.setVisibility(!1);
|
|
46410
46410
|
}
|
|
46411
46411
|
awake() {
|
|
46412
|
-
if (Vx && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor &&
|
|
46412
|
+
if (Vx && console.log("Renderer ", this.name, this), this.clearInstancingState(), this.probeAnchor && Ar && this.probeAnchor.add(new TQ(0.2)), this._reflectionProbe = null, this.isMultiMaterialObject(this.gameObject)) {
|
|
46413
46413
|
for (const A of this.gameObject.children)
|
|
46414
46414
|
this.context.addBeforeRenderListener(A, this.onBeforeRenderThree.bind(this)), A.layers.mask = this.gameObject.layers.mask;
|
|
46415
46415
|
if (this.renderOrder !== void 0) {
|
|
@@ -46458,7 +46458,7 @@ const Zx = class extends mA {
|
|
|
46458
46458
|
}
|
|
46459
46459
|
}
|
|
46460
46460
|
} else
|
|
46461
|
-
|
|
46461
|
+
Ar && console.warn("Lightmap not found", this.sourceId, this.lightmapIndex);
|
|
46462
46462
|
}
|
|
46463
46463
|
}
|
|
46464
46464
|
clearInstancingState() {
|
|
@@ -46740,7 +46740,7 @@ r(ID, "nullMatrix", new NA());
|
|
|
46740
46740
|
function VM(i) {
|
|
46741
46741
|
return i = i.replace(/[^a-zA-Z0-9_]/g, ""), i.match(/^[a-zA-Z_]/) || (i = "_" + i), i;
|
|
46742
46742
|
}
|
|
46743
|
-
const
|
|
46743
|
+
const tr = class {
|
|
46744
46744
|
constructor(A, e, t, g = null, I = null, o = null) {
|
|
46745
46745
|
r(this, "uuid");
|
|
46746
46746
|
r(this, "name");
|
|
@@ -46761,11 +46761,11 @@ const er = class {
|
|
|
46761
46761
|
this._isDynamic = A;
|
|
46762
46762
|
}
|
|
46763
46763
|
static createEmptyParent(A) {
|
|
46764
|
-
const e = new
|
|
46764
|
+
const e = new tr(jg.generateUUID(), A.name + "_empty_" + tr.USDObject_export_id++, A.matrix);
|
|
46765
46765
|
return A.parent.add(e), e.add(A), e.isDynamic = !0, A.matrix = new NA().identity(), e;
|
|
46766
46766
|
}
|
|
46767
46767
|
static createEmpty() {
|
|
46768
|
-
const A = new
|
|
46768
|
+
const A = new tr(jg.generateUUID(), "Empty_" + tr.USDObject_export_id++, new NA());
|
|
46769
46769
|
return A.isDynamic = !0, A;
|
|
46770
46770
|
}
|
|
46771
46771
|
is(A) {
|
|
@@ -46775,7 +46775,7 @@ const er = class {
|
|
|
46775
46775
|
return !this.geometry;
|
|
46776
46776
|
}
|
|
46777
46777
|
clone() {
|
|
46778
|
-
const A = new
|
|
46778
|
+
const A = new tr(jg.generateUUID(), this.name, this.matrix, this.geometry, this.material);
|
|
46779
46779
|
return A.isDynamic = this.isDynamic, A;
|
|
46780
46780
|
}
|
|
46781
46781
|
getPath() {
|
|
@@ -46805,7 +46805,7 @@ const er = class {
|
|
|
46805
46805
|
t && t.forEach((g) => g(A, e));
|
|
46806
46806
|
}
|
|
46807
46807
|
};
|
|
46808
|
-
let zo =
|
|
46808
|
+
let zo = tr;
|
|
46809
46809
|
r(zo, "USDObject_export_id", 0);
|
|
46810
46810
|
class $x extends zo {
|
|
46811
46811
|
constructor() {
|
|
@@ -46864,7 +46864,7 @@ class $x extends zo {
|
|
|
46864
46864
|
`;
|
|
46865
46865
|
}
|
|
46866
46866
|
}
|
|
46867
|
-
const
|
|
46867
|
+
const pB = `
|
|
46868
46868
|
`;
|
|
46869
46869
|
class iX {
|
|
46870
46870
|
constructor() {
|
|
@@ -46876,19 +46876,19 @@ class iX {
|
|
|
46876
46876
|
this.str = "", this.indent = 0;
|
|
46877
46877
|
}
|
|
46878
46878
|
beginBlock(A) {
|
|
46879
|
-
A = this.applyIndent(A), this.str += A, this.str +=
|
|
46879
|
+
A = this.applyIndent(A), this.str += A, this.str += pB, this.str += this.applyIndent("{"), this.str += pB, this.indent += 1;
|
|
46880
46880
|
}
|
|
46881
46881
|
closeBlock() {
|
|
46882
|
-
this.indent -= 1, this.str += this.applyIndent("}") +
|
|
46882
|
+
this.indent -= 1, this.str += this.applyIndent("}") + pB;
|
|
46883
46883
|
}
|
|
46884
46884
|
beginArray(A) {
|
|
46885
|
-
A = this.applyIndent(A + " = ["), this.str += A, this.str +=
|
|
46885
|
+
A = this.applyIndent(A + " = ["), this.str += A, this.str += pB, this.indent += 1;
|
|
46886
46886
|
}
|
|
46887
46887
|
closeArray() {
|
|
46888
|
-
this.indent -= 1, this.str += this.applyIndent("]") +
|
|
46888
|
+
this.indent -= 1, this.str += this.applyIndent("]") + pB;
|
|
46889
46889
|
}
|
|
46890
46890
|
appendLine(A = "") {
|
|
46891
|
-
A = this.applyIndent(A), this.str += A, this.str +=
|
|
46891
|
+
A = this.applyIndent(A), this.str += A, this.str += pB;
|
|
46892
46892
|
}
|
|
46893
46893
|
toString() {
|
|
46894
46894
|
return this.str;
|
|
@@ -46975,7 +46975,7 @@ function AY(i, A, e) {
|
|
|
46975
46975
|
if (o && !o.enabled && (g = void 0, I = void 0), i instanceof DA && I && (I instanceof Hs || I instanceof wt) && !(i instanceof JQ)) {
|
|
46976
46976
|
const C = iu(i);
|
|
46977
46977
|
t = new zo(i.uuid, C, i.matrix, g, I);
|
|
46978
|
-
} else if (i instanceof
|
|
46978
|
+
} else if (i instanceof Rr) {
|
|
46979
46979
|
const C = iu(i);
|
|
46980
46980
|
t = new zo(i.uuid, C, i.matrix, void 0, void 0, i);
|
|
46981
46981
|
} else {
|
|
@@ -47395,7 +47395,7 @@ class LI {
|
|
|
47395
47395
|
return t.tokenId = "ProximityToCamera", t.distance = e, t;
|
|
47396
47396
|
}
|
|
47397
47397
|
}
|
|
47398
|
-
class
|
|
47398
|
+
class nr {
|
|
47399
47399
|
constructor(A, e) {
|
|
47400
47400
|
r(this, "id");
|
|
47401
47401
|
r(this, "actions");
|
|
@@ -47432,7 +47432,7 @@ class sr {
|
|
|
47432
47432
|
e.closeBlock();
|
|
47433
47433
|
}
|
|
47434
47434
|
}
|
|
47435
|
-
r(
|
|
47435
|
+
r(nr, "global_id", 0);
|
|
47436
47436
|
var jM = /* @__PURE__ */ ((i) => (i[i.pop = 0] = "pop", i[i.blink = 1] = "blink", i[i.bounce = 2] = "bounce", i[i.flip = 3] = "flip", i[i.float = 4] = "float", i[i.jiggle = 5] = "jiggle", i[i.pulse = 6] = "pulse", i[i.spin = 7] = "spin", i))(jM || {}), bk = /* @__PURE__ */ ((i) => (i.Relative = "relative", i.Absolute = "absolute", i))(bk || {});
|
|
47437
47437
|
const qp = class {
|
|
47438
47438
|
constructor(A, e) {
|
|
@@ -47468,7 +47468,7 @@ const qp = class {
|
|
|
47468
47468
|
};
|
|
47469
47469
|
let Bo = qp;
|
|
47470
47470
|
r(Bo, "global_id", 0);
|
|
47471
|
-
let _B = class
|
|
47471
|
+
let _B = class NB {
|
|
47472
47472
|
constructor(A, e, t) {
|
|
47473
47473
|
r(this, "x", 0);
|
|
47474
47474
|
r(this, "y", 0);
|
|
@@ -47476,28 +47476,28 @@ let _B = class FB {
|
|
|
47476
47476
|
this.x = A, this.y = e, this.z = t;
|
|
47477
47477
|
}
|
|
47478
47478
|
static get up() {
|
|
47479
|
-
return new
|
|
47479
|
+
return new NB(0, 1, 0);
|
|
47480
47480
|
}
|
|
47481
47481
|
static get right() {
|
|
47482
|
-
return new
|
|
47482
|
+
return new NB(1, 0, 0);
|
|
47483
47483
|
}
|
|
47484
47484
|
static get forward() {
|
|
47485
|
-
return new
|
|
47485
|
+
return new NB(0, 0, 1);
|
|
47486
47486
|
}
|
|
47487
47487
|
static get back() {
|
|
47488
|
-
return new
|
|
47488
|
+
return new NB(0, 0, -1);
|
|
47489
47489
|
}
|
|
47490
47490
|
static get zero() {
|
|
47491
|
-
return new
|
|
47491
|
+
return new NB(0, 0, 0);
|
|
47492
47492
|
}
|
|
47493
47493
|
};
|
|
47494
47494
|
var IY = /* @__PURE__ */ ((i) => (i.Play = "play", i.Pause = "pause", i.Stop = "stop", i))(IY || {}), Lk = /* @__PURE__ */ ((i) => (i.Spatial = "spatial", i.NonSpatial = "nonSpatial", i.Ambient = "ambient", i))(Lk || {});
|
|
47495
47495
|
class Et {
|
|
47496
47496
|
static sequence(...A) {
|
|
47497
|
-
return new
|
|
47497
|
+
return new nr("group_" + nr.getId(), A).makeSequence();
|
|
47498
47498
|
}
|
|
47499
47499
|
static parallel(...A) {
|
|
47500
|
-
return new
|
|
47500
|
+
return new nr("group_" + nr.getId(), A).makeParallel();
|
|
47501
47501
|
}
|
|
47502
47502
|
static fadeAction(A, e, t) {
|
|
47503
47503
|
const g = new Bo(A);
|
|
@@ -48403,7 +48403,7 @@ class pQ {
|
|
|
48403
48403
|
if (!(s != null && s.typeName))
|
|
48404
48404
|
continue;
|
|
48405
48405
|
const n = H.get(s.typeName), a = new n();
|
|
48406
|
-
a.isStateMachineBehaviour && (a._context = this.context ?? void 0,
|
|
48406
|
+
a.isStateMachineBehaviour && (a._context = this.context ?? void 0, wr(a, s.properties), s.instance = a), BC && console.log("Created animator controller behaviour", C.name, s.typeName, s.properties, a);
|
|
48407
48407
|
}
|
|
48408
48408
|
}
|
|
48409
48409
|
}
|
|
@@ -49714,7 +49714,7 @@ var TX = Object.defineProperty, HX = Object.getOwnPropertyDescriptor, rY = (i, A
|
|
|
49714
49714
|
(o = i[I]) && (g = (t ? o(A, e, g) : o(g)) || g);
|
|
49715
49715
|
return t && g && TX(A, e, g), g;
|
|
49716
49716
|
};
|
|
49717
|
-
class
|
|
49717
|
+
class qr extends mA {
|
|
49718
49718
|
constructor() {
|
|
49719
49719
|
super(...arguments);
|
|
49720
49720
|
r(this, "webAR", null);
|
|
@@ -49786,10 +49786,10 @@ class Jr extends mA {
|
|
|
49786
49786
|
}
|
|
49787
49787
|
rY([
|
|
49788
49788
|
w()
|
|
49789
|
-
],
|
|
49789
|
+
], qr.prototype, "invertForward", 2);
|
|
49790
49790
|
rY([
|
|
49791
49791
|
w()
|
|
49792
|
-
],
|
|
49792
|
+
], qr.prototype, "arScale", 1);
|
|
49793
49793
|
const _X = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/generic-hand/";
|
|
49794
49794
|
class OX {
|
|
49795
49795
|
constructor(A, e, t, g, I = null) {
|
|
@@ -49872,7 +49872,7 @@ class VX extends UA {
|
|
|
49872
49872
|
this.intersectBoxObject(A) ? A.onPress() : A.onClear(), A.isPressed() && A.whilePressed();
|
|
49873
49873
|
}
|
|
49874
49874
|
}
|
|
49875
|
-
const jX = 0.05, kK = 0.02, Cu = 0.01, GK = 0.02, MK = 1,
|
|
49875
|
+
const jX = 0.05, kK = 0.02, Cu = 0.01, GK = 0.02, MK = 1, fB = 0.4, zX = 2e-3, jE = 0.01, su = 3e-3, mK = 0.035, yt = 16, ZI = 12, yS = 110, ZX = new S(0, 1, 0), XX = new S(0, 0, 1), $X = 0.02, A6 = 1.5;
|
|
49876
49876
|
class e6 extends UA {
|
|
49877
49877
|
constructor(A, e) {
|
|
49878
49878
|
super(), this.hand = A, this.controller = e, this.motionController = null, this.envMap = null, this.mesh = null, this.pointerGeometry = null, this.pointerMesh = null, this.pointerObject = null, this.pinched = !1, this.attached = !1, this.cursorObject = null, this.raycaster = null, A.addEventListener("connected", (t) => {
|
|
@@ -49959,9 +49959,9 @@ class e6 extends UA {
|
|
|
49959
49959
|
yt * ZI
|
|
49960
49960
|
);
|
|
49961
49961
|
const C = new wt();
|
|
49962
|
-
C.transparent = !0, C.opacity =
|
|
49962
|
+
C.transparent = !0, C.opacity = fB, this.pointerGeometry.setIndex(g), this.pointerMesh = new DA(this.pointerGeometry, C), this.pointerMesh.position.set(0, 0, -1 * jE), this.pointerObject = new UA(), this.pointerObject.add(this.pointerMesh), this.raycaster = new YQ();
|
|
49963
49963
|
const s = new HI($X, 10, 10), n = new wt();
|
|
49964
|
-
n.transparent = !0, n.opacity =
|
|
49964
|
+
n.transparent = !0, n.opacity = fB, this.cursorObject = new DA(s, n), this.pointerObject.add(this.cursorObject), this.add(this.pointerObject), this.pointerObject.layers.mask = this.layers.mask, this.pointerMesh.layers.mask = this.layers.mask;
|
|
49965
49965
|
}
|
|
49966
49966
|
_updateRaycaster() {
|
|
49967
49967
|
if (this.raycaster) {
|
|
@@ -49975,14 +49975,14 @@ class e6 extends UA {
|
|
|
49975
49975
|
this.pointerObject.position.copy(g), this.pointerObject.quaternion.copy(this.controller.quaternion), this.pinched = t <= kK;
|
|
49976
49976
|
const I = (t - Cu) / (jX - Cu), o = (t - Cu) / (kK - Cu);
|
|
49977
49977
|
if (I > 1)
|
|
49978
|
-
this._updatePointerVertices(jE), this.pointerMesh.position.set(0, 0, -1 * jE), this.pointerMesh.material.opacity =
|
|
49978
|
+
this._updatePointerVertices(jE), this.pointerMesh.position.set(0, 0, -1 * jE), this.pointerMesh.material.opacity = fB;
|
|
49979
49979
|
else if (I > 0) {
|
|
49980
49980
|
const C = (jE - su) * I + su;
|
|
49981
49981
|
this._updatePointerVertices(C), o < 1 ? (this.pointerMesh.position.set(
|
|
49982
49982
|
0,
|
|
49983
49983
|
0,
|
|
49984
49984
|
-1 * C - (1 - o) * GK
|
|
49985
|
-
), this.pointerMesh.material.opacity =
|
|
49985
|
+
), this.pointerMesh.material.opacity = fB + (1 - o) * (MK - fB)) : (this.pointerMesh.position.set(0, 0, -1 * C), this.pointerMesh.material.opacity = fB);
|
|
49986
49986
|
} else
|
|
49987
49987
|
this._updatePointerVertices(su), this.pointerMesh.position.set(
|
|
49988
49988
|
0,
|
|
@@ -50448,7 +50448,7 @@ class Am {
|
|
|
50448
50448
|
return A;
|
|
50449
50449
|
}
|
|
50450
50450
|
}
|
|
50451
|
-
const
|
|
50451
|
+
const KB = aA("debugflags");
|
|
50452
50452
|
var Li = /* @__PURE__ */ ((i) => (i[i.Never = 0] = "Never", i[i.Browser = 1] = "Browser", i[i.AR = 2] = "AR", i[i.VR = 4] = "VR", i[i.FirstPerson = 8] = "FirstPerson", i[i.ThirdPerson = 16] = "ThirdPerson", i[i.All = 4294967295] = "All", i))(Li || {});
|
|
50453
50453
|
const tU = class {
|
|
50454
50454
|
constructor() {
|
|
@@ -50458,7 +50458,7 @@ const tU = class {
|
|
|
50458
50458
|
return (this.Mask & A) !== 0;
|
|
50459
50459
|
}
|
|
50460
50460
|
Set(A) {
|
|
50461
|
-
|
|
50461
|
+
KB && console.warn("Set XR flag state to", A), this.Mask = A, Mg.Apply();
|
|
50462
50462
|
}
|
|
50463
50463
|
Enable(A) {
|
|
50464
50464
|
this.Mask |= A, Mg.Apply();
|
|
@@ -50503,13 +50503,13 @@ const dC = class extends mA {
|
|
|
50503
50503
|
UpdateVisible(e = null) {
|
|
50504
50504
|
let t;
|
|
50505
50505
|
const g = e;
|
|
50506
|
-
g && typeof g == "number" && (console.assert(typeof g == "number", "XRFlag.UpdateVisible: state must be a number", g),
|
|
50506
|
+
g && typeof g == "number" && (console.assert(typeof g == "number", "XRFlag.UpdateVisible: state must be a number", g), KB && console.log(g), dC.buffer.Mask = g, e = dC.buffer);
|
|
50507
50507
|
const I = e;
|
|
50508
|
-
if (I ? (
|
|
50508
|
+
if (I ? (KB && console.warn(this.name, "use passed in mask", I.Mask, this.visibleIn), t = I.Has(this.visibleIn)) : (KB && console.log(this.name, "use global mask"), Zo.Global.Has(this.visibleIn)), t !== void 0)
|
|
50509
50509
|
if (t)
|
|
50510
|
-
|
|
50510
|
+
KB && console.log(this.name, "is visible", this.gameObject.uuid), eA.setActive(this.gameObject, !0);
|
|
50511
50511
|
else {
|
|
50512
|
-
if (
|
|
50512
|
+
if (KB && console.log(this.name, "is not visible", this.gameObject.uuid), !this.gameObject.visible)
|
|
50513
50513
|
return;
|
|
50514
50514
|
this.gameObject.visible = !1;
|
|
50515
50515
|
}
|
|
@@ -51207,7 +51207,7 @@ function EY(i, A, e = !0) {
|
|
|
51207
51207
|
const C = fs.endSyncedTransformModel(QC);
|
|
51208
51208
|
return QC.finish(C, Gh), QC.asUint8Array();
|
|
51209
51209
|
}
|
|
51210
|
-
class
|
|
51210
|
+
class yr extends mA {
|
|
51211
51211
|
constructor() {
|
|
51212
51212
|
super(...arguments);
|
|
51213
51213
|
// public autoOwnership: boolean = true;
|
|
@@ -51365,7 +51365,7 @@ $o.d(Ri, {
|
|
|
51365
51365
|
),
|
|
51366
51366
|
zV: () => (
|
|
51367
51367
|
/* reexport */
|
|
51368
|
-
|
|
51368
|
+
Sr
|
|
51369
51369
|
),
|
|
51370
51370
|
HS: () => (
|
|
51371
51371
|
/* reexport */
|
|
@@ -51373,7 +51373,7 @@ $o.d(Ri, {
|
|
|
51373
51373
|
),
|
|
51374
51374
|
Ec: () => (
|
|
51375
51375
|
/* reexport */
|
|
51376
|
-
|
|
51376
|
+
br
|
|
51377
51377
|
),
|
|
51378
51378
|
gF: () => (
|
|
51379
51379
|
/* reexport */
|
|
@@ -51628,7 +51628,7 @@ class D6 extends ht {
|
|
|
51628
51628
|
return this._value;
|
|
51629
51629
|
}
|
|
51630
51630
|
}
|
|
51631
|
-
class
|
|
51631
|
+
class br extends ht {
|
|
51632
51632
|
/**
|
|
51633
51633
|
*
|
|
51634
51634
|
* @param {string} propertyId
|
|
@@ -51666,7 +51666,7 @@ class qr extends ht {
|
|
|
51666
51666
|
return this._value === "inherit" ? this._notInheritedValue : this._value;
|
|
51667
51667
|
}
|
|
51668
51668
|
}
|
|
51669
|
-
class p6 extends
|
|
51669
|
+
class p6 extends br {
|
|
51670
51670
|
constructor() {
|
|
51671
51671
|
super("offset", "inherit", !1);
|
|
51672
51672
|
}
|
|
@@ -51675,7 +51675,7 @@ class p6 extends qr {
|
|
|
51675
51675
|
super.update(A, e), A._parent._value !== null && (A.position.z = this._notInheritedValue);
|
|
51676
51676
|
}
|
|
51677
51677
|
}
|
|
51678
|
-
class f6 extends
|
|
51678
|
+
class f6 extends br {
|
|
51679
51679
|
constructor() {
|
|
51680
51680
|
super("fontSmooth", "inherit", !0), this._needsUpdate = !1, this.isValid = y6, this.output = this._outputValue;
|
|
51681
51681
|
}
|
|
@@ -52019,7 +52019,7 @@ class FK extends ht {
|
|
|
52019
52019
|
return this._value;
|
|
52020
52020
|
}
|
|
52021
52021
|
}
|
|
52022
|
-
class NK extends
|
|
52022
|
+
class NK extends br {
|
|
52023
52023
|
/**
|
|
52024
52024
|
*
|
|
52025
52025
|
* @param {string} propertyId
|
|
@@ -54000,7 +54000,7 @@ class q7 extends ml {
|
|
|
54000
54000
|
* @returns {string|null}
|
|
54001
54001
|
*/
|
|
54002
54002
|
_getFallbackCharacter(A) {
|
|
54003
|
-
return
|
|
54003
|
+
return Sr.missingCharacter(this, A);
|
|
54004
54004
|
}
|
|
54005
54005
|
/**
|
|
54006
54006
|
*
|
|
@@ -54190,7 +54190,7 @@ const P7 = {
|
|
|
54190
54190
|
prepare: Y7,
|
|
54191
54191
|
setMissingCharacterHandler: _7,
|
|
54192
54192
|
missingCharacter: O7
|
|
54193
|
-
},
|
|
54193
|
+
}, Sr = P7;
|
|
54194
54194
|
class RY extends Yt {
|
|
54195
54195
|
constructor() {
|
|
54196
54196
|
super("fontFamily", "inherit", !0);
|
|
@@ -54205,7 +54205,7 @@ class RY extends Yt {
|
|
|
54205
54205
|
this._value = this._input;
|
|
54206
54206
|
else if (this._input !== "inherit")
|
|
54207
54207
|
if (typeof this._input == "string") {
|
|
54208
|
-
const e =
|
|
54208
|
+
const e = Sr.getFontFamily(this._input);
|
|
54209
54209
|
e ? this._value = e : console.warn(`(.style) fontFamily, the font '${this._input}' is not registered. Aborted.`);
|
|
54210
54210
|
} else
|
|
54211
54211
|
console.warn("(.style) fontFamily requires a registered fontFamily instance, or the id of a registered fontFamily."), console.warn("If you want to set a specific font, please use .font property instead.");
|
|
@@ -54259,7 +54259,7 @@ class KY extends ht {
|
|
|
54259
54259
|
super("segments", 1, !1);
|
|
54260
54260
|
}
|
|
54261
54261
|
}
|
|
54262
|
-
class z7 extends
|
|
54262
|
+
class z7 extends br {
|
|
54263
54263
|
constructor() {
|
|
54264
54264
|
super("invertAlpha", "inherit");
|
|
54265
54265
|
}
|
|
@@ -54273,7 +54273,7 @@ const Z7 = ["normal", "none", "inherit"];
|
|
|
54273
54273
|
function X7(i) {
|
|
54274
54274
|
return Z7.indexOf(i) === -1 ? (console.warn(`(.style) fontKerning value '${i}' is not valid. Aborted`), !1) : !0;
|
|
54275
54275
|
}
|
|
54276
|
-
class ru extends
|
|
54276
|
+
class ru extends br {
|
|
54277
54277
|
/**
|
|
54278
54278
|
*
|
|
54279
54279
|
* @param {string} propertyId
|
|
@@ -54282,7 +54282,7 @@ class ru extends qr {
|
|
|
54282
54282
|
super(A, "inherit", !0);
|
|
54283
54283
|
}
|
|
54284
54284
|
}
|
|
54285
|
-
class KK extends
|
|
54285
|
+
class KK extends br {
|
|
54286
54286
|
/**
|
|
54287
54287
|
*
|
|
54288
54288
|
* @param {string} propertyId
|
|
@@ -54463,7 +54463,7 @@ var LY = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Eo = /(?:\s|\/\/.*|\/\
|
|
|
54463
54463
|
}, JK = Array.isArray || function(i) {
|
|
54464
54464
|
return C$.call(i) === "[object Array]";
|
|
54465
54465
|
};
|
|
54466
|
-
function
|
|
54466
|
+
function ar(i) {
|
|
54467
54467
|
return new RegExp("^(?:" + i.replace(/ /g, "|") + ")$");
|
|
54468
54468
|
}
|
|
54469
54469
|
function oa(i) {
|
|
@@ -54606,11 +54606,11 @@ function um(i, A) {
|
|
|
54606
54606
|
return gE | (i ? hm : 0) | (A ? YY : 0);
|
|
54607
54607
|
}
|
|
54608
54608
|
var np = 0, Dm = 1, bs = 2, OY = 3, PY = 4, WY = 5, gg = function(A, e, t) {
|
|
54609
|
-
this.options = A = n$(A), this.sourceFile = A.sourceFile, this.keywords =
|
|
54609
|
+
this.options = A = n$(A), this.sourceFile = A.sourceFile, this.keywords = ar(e$[A.ecmaVersion >= 6 ? 6 : A.sourceType === "module" ? "5module" : 5]);
|
|
54610
54610
|
var g = "";
|
|
54611
|
-
A.allowReserved !== !0 && (g = kS[A.ecmaVersion >= 6 ? 6 : A.ecmaVersion === 5 ? 5 : 3], A.sourceType === "module" && (g += " await")), this.reservedWords =
|
|
54611
|
+
A.allowReserved !== !0 && (g = kS[A.ecmaVersion >= 6 ? 6 : A.ecmaVersion === 5 ? 5 : 3], A.sourceType === "module" && (g += " await")), this.reservedWords = ar(g);
|
|
54612
54612
|
var I = (g ? g + " " : "") + kS.strict;
|
|
54613
|
-
this.reservedWordsStrict =
|
|
54613
|
+
this.reservedWordsStrict = ar(I), this.reservedWordsStrictBind = ar(I + " " + kS.strictBind), this.input = String(e), this.containsEsc = !1, t ? (this.pos = t, this.lineStart = this.input.lastIndexOf(`
|
|
54614
54614
|
`, t - 1) + 1, this.curLine = this.input.slice(0, this.lineStart).split(Go).length) : (this.pos = this.lineStart = 0, this.curLine = 1), this.type = N.eof, this.value = null, this.start = this.end = this.pos, this.startLoc = this.endLoc = this.curPosition(), this.lastTokEndLoc = this.lastTokStartLoc = null, this.lastTokStart = this.lastTokEnd = this.pos, this.context = this.initialContext(), this.exprAllowed = !0, this.inModule = A.sourceType === "module", this.strict = this.inModule || this.strictDirective(this.pos), this.potentialArrowAt = -1, this.potentialArrowInForAwait = !1, this.yieldPos = this.awaitPos = this.awaitIdentPos = 0, this.labels = [], this.undefinedExports = /* @__PURE__ */ Object.create(null), this.pos === 0 && A.allowHashBang && this.input.slice(0, 2) === "#!" && this.skipLineComment(2), this.scopeStack = [], this.enterScope(Rh), this.regexpState = null, this.privateNameStack = [];
|
|
54615
54615
|
}, OC = { inFunction: { configurable: !0 }, inGenerator: { configurable: !0 }, inAsync: { configurable: !0 }, canAwait: { configurable: !0 }, allowSuper: { configurable: !0 }, allowDirectSuper: { configurable: !0 }, treatFunctionsAsVar: { configurable: !0 }, allowNewDotTarget: { configurable: !0 }, inClassStaticBlock: { configurable: !0 } };
|
|
54616
54616
|
gg.prototype.parse = function() {
|
|
@@ -55946,10 +55946,10 @@ var ZY = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control
|
|
|
55946
55946
|
}, IT = {};
|
|
55947
55947
|
function p$(i) {
|
|
55948
55948
|
var A = IT[i] = {
|
|
55949
|
-
binary:
|
|
55949
|
+
binary: ar(d$[i] + " " + bK),
|
|
55950
55950
|
nonBinary: {
|
|
55951
|
-
General_Category:
|
|
55952
|
-
Script:
|
|
55951
|
+
General_Category: ar(bK),
|
|
55952
|
+
Script: ar(D$[i])
|
|
55953
55953
|
}
|
|
55954
55954
|
};
|
|
55955
55955
|
A.nonBinary.Script_Extensions = A.nonBinary.Script, A.nonBinary.gc = A.nonBinary.General_Category, A.nonBinary.sc = A.nonBinary.Script, A.nonBinary.scx = A.nonBinary.Script_Extensions;
|
|
@@ -57206,10 +57206,10 @@ class Nl extends $A.Object3D {
|
|
|
57206
57206
|
set(e) {
|
|
57207
57207
|
if (e.fontTexture && (console.warn("ThreeMeshUI::set( {fontTexture} ) is deprecated. Please use fontLibrary to register font families and variants."), e.fontFamily)) {
|
|
57208
57208
|
const t = e.fontFamily.pages ? e.fontFamily.info.face : e.fontFamily;
|
|
57209
|
-
let g =
|
|
57209
|
+
let g = Sr.getFontFamily(t);
|
|
57210
57210
|
if (!g) {
|
|
57211
57211
|
const I = e.fontStyle ? e.fontStyle : "normal", o = e.fontWeight ? e.fontWeight : "400";
|
|
57212
|
-
g =
|
|
57212
|
+
g = Sr.addFontFamily(t).addVariant(o, I, e.fontFamily, e.fontTexture);
|
|
57213
57213
|
}
|
|
57214
57214
|
e.fontFamily = g, delete e.fontTexture;
|
|
57215
57215
|
}
|
|
@@ -59138,7 +59138,7 @@ class wT extends RY {
|
|
|
59138
59138
|
if (e === "inherit" && (e = this.getInheritedInput(A)), e instanceof Yf)
|
|
59139
59139
|
this._value = e, A._font._needsUpdate = !0;
|
|
59140
59140
|
else if (typeof e == "string") {
|
|
59141
|
-
const t =
|
|
59141
|
+
const t = Sr.getFontFamily(e);
|
|
59142
59142
|
t ? (this._value = t, A._font._needsUpdate = !0) : console.warn(`(.style) fontFamily, the font '${e}' is not registered. Aborted.`);
|
|
59143
59143
|
} else
|
|
59144
59144
|
console.warn("(.style) fontFamily requires a registered fontFamily instance, or the id of a registered fontFamily."), console.warn("If you want to set a specific font, please use .font property instead.");
|
|
@@ -60117,7 +60117,7 @@ const NT = () => Bp.update(), KT = {
|
|
|
60117
60117
|
InlineBlock: Kh,
|
|
60118
60118
|
// Keyboard : KeyboardElement,
|
|
60119
60119
|
MeshUIBaseElement: Nl,
|
|
60120
|
-
FontLibrary:
|
|
60120
|
+
FontLibrary: Sr,
|
|
60121
60121
|
update: NT,
|
|
60122
60122
|
MSDFFontMaterialUtils: ro,
|
|
60123
60123
|
ShaderChunkUI: ET,
|
|
@@ -60335,7 +60335,7 @@ const $i = class extends mA {
|
|
|
60335
60335
|
const C = e.context;
|
|
60336
60336
|
o.controller = C.renderer.xr.getController(t), o.controllerGrip = C.renderer.xr.getControllerGrip(t), o.controllerModel = this.Factory.createControllerModel(o.controller), o.controllerGrip.add(o.controllerModel), o.hand = C.renderer.xr.getHand(t);
|
|
60337
60337
|
const s = new WQ();
|
|
60338
|
-
ul(s, C), o.webXR.handModelPath && o.webXR.handModelPath !== "" ? s.setPath(
|
|
60338
|
+
ul(s, C), o.webXR.handModelPath && o.webXR.handModelPath !== "" ? s.setPath(mr(e.sourceId, o.webXR.handModelPath)) : s.setPath("https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/generic-hand/");
|
|
60339
60339
|
const n = new VX(o.hand, s);
|
|
60340
60340
|
return o.hand.add(n), o.hand.traverse((a) => a.layers.set(2)), o.handPointerModel = new e6(o.hand, o.controller), o.controller.addEventListener("connected", (a) => {
|
|
60341
60341
|
o.setControllerLayers(o.controllerModel, 2), o.setControllerLayers(o.controllerGrip, 2), o.setControllerLayers(o.hand, 2), setTimeout(() => {
|
|
@@ -60718,7 +60718,7 @@ const Yg = class {
|
|
|
60718
60718
|
else
|
|
60719
60719
|
return cc && console.warn("Prevented taking object that is not interactable", e), null;
|
|
60720
60720
|
let o = e;
|
|
60721
|
-
const C = eA.getComponentInParent(e,
|
|
60721
|
+
const C = eA.getComponentInParent(e, yr);
|
|
60722
60722
|
C && (C.requestOwnership(), o = C.gameObject);
|
|
60723
60723
|
for (const n of this.Current)
|
|
60724
60724
|
if (n.selected === o)
|
|
@@ -61195,8 +61195,8 @@ async function MeA() {
|
|
|
61195
61195
|
let nD = !1, aD = !1;
|
|
61196
61196
|
GeA().then((i) => nD = i);
|
|
61197
61197
|
MeA().then((i) => aD = i);
|
|
61198
|
-
var Jt = /* @__PURE__ */ ((i) => (i.XRStarted = "xrStarted", i.XRStopped = "xrStopped", i.XRUpdate = "xrUpdate", i.RequestVRSession = "requestVRSession", i.ModifyAROptions = "modify-ar-options", i))(Jt || {}),
|
|
61199
|
-
const qi = (
|
|
61198
|
+
var Jt = /* @__PURE__ */ ((i) => (i.XRStarted = "xrStarted", i.XRStopped = "xrStopped", i.XRUpdate = "xrUpdate", i.RequestVRSession = "requestVRSession", i.ModifyAROptions = "modify-ar-options", i))(Jt || {}), MB;
|
|
61199
|
+
const qi = (MB = class extends mA {
|
|
61200
61200
|
constructor() {
|
|
61201
61201
|
super(...arguments);
|
|
61202
61202
|
r(this, "enableVR", !0);
|
|
@@ -61437,7 +61437,7 @@ const qi = (GB = class extends mA {
|
|
|
61437
61437
|
});
|
|
61438
61438
|
}, 1e3);
|
|
61439
61439
|
}
|
|
61440
|
-
}, r(
|
|
61440
|
+
}, r(MB, "_isInXr", !1), r(MB, "events", new Pi()), r(MB, "_optionalFeatures_VR", ["local-floor", "bounded-floor", "hand-tracking", "high-fixed-foveation-level", "layers"]), r(MB, "_optionalFeatures_AR", ["anchors", "local-floor", "hand-tracking", "layers"]), MB);
|
|
61441
61441
|
let Ge = qi;
|
|
61442
61442
|
CE([
|
|
61443
61443
|
w()
|
|
@@ -61496,7 +61496,7 @@ const ZB = class {
|
|
|
61496
61496
|
const t = (o = navigator.userAgent) != null && o.includes("OculusBrowser") ? Hc.PhysicalDevice : Hc.Touch, g = t === Hc.Touch ? 4 : 2;
|
|
61497
61497
|
for (let a = 0; a < g; a++)
|
|
61498
61498
|
ai.Create(this.webxr, a, this.webxr.gameObject, t);
|
|
61499
|
-
(!this.sessionRoot || this.sessionRoot.destroyed || !this.sessionRoot.activeAndEnabled) && (this.sessionRoot = eA.findObjectOfType(
|
|
61499
|
+
(!this.sessionRoot || this.sessionRoot.destroyed || !this.sessionRoot.activeAndEnabled) && (this.sessionRoot = eA.findObjectOfType(qr, e)), this.previousBackground = e.scene.background, this.previousEnvironment = e.scene.environment, e.scene.background = null, A.requestReferenceSpace("viewer").then((a) => {
|
|
61500
61500
|
var B, Q;
|
|
61501
61501
|
(Q = (B = A.requestHitTestSource) == null ? void 0 : B.call(A, { space: a })) == null || Q.then((E) => {
|
|
61502
61502
|
this.hitTestSource = E;
|
|
@@ -62030,7 +62030,7 @@ class Da extends mA {
|
|
|
62030
62030
|
const g = this.targetElement ?? this.context.domElement, I = t == null ? void 0 : t.quaternion.clone();
|
|
62031
62031
|
this._controls = new qX(t, g), t == null || t.quaternion.copy(I), NS === void 0 && (NS = { ...this._controls.keys });
|
|
62032
62032
|
}
|
|
62033
|
-
this._controls && (Qu && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, UQ() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), (t == null ? void 0 : t.type) === "PerspectiveCamera" ? Qu || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : Qu || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = eA.getComponent(this.gameObject,
|
|
62033
|
+
this._controls && (Qu && (this.enablePan = !0, this.enableZoom = !0, this.middleClickToFocus = !0, UQ() && (this.doubleClickToFocus = !0)), this._controls.addEventListener("start", this.onControlsChangeStarted), (t == null ? void 0 : t.type) === "PerspectiveCamera" ? Qu || (this._controls.minDistance = this.minZoom, this._controls.maxDistance = this.maxZoom) : Qu || (this._controls.minZoom = this.minZoom, this._controls.maxZoom = this.maxZoom), this._startedListeningToKeyEvents || (this._startedListeningToKeyEvents = !0, this._controls.listenToKeyEvents(window.document.body))), this._syncedTransform = eA.getComponent(this.gameObject, yr) ?? void 0;
|
|
62034
62034
|
}
|
|
62035
62035
|
onDisable() {
|
|
62036
62036
|
var e;
|
|
@@ -62285,7 +62285,7 @@ const dc = (Ku = class extends mA {
|
|
|
62285
62285
|
e = new gt(this.fieldOfView, window.innerWidth / window.innerHeight, this._nearClipPlane, this._farClipPlane), this.fieldOfView && (e.fov = this.fieldOfView), this.gameObject.add(e);
|
|
62286
62286
|
else {
|
|
62287
62287
|
const t = this.orthographicSize * 100;
|
|
62288
|
-
e = new
|
|
62288
|
+
e = new Ur(window.innerWidth / -t, window.innerWidth / t, window.innerHeight / t, window.innerHeight / -t, this._nearClipPlane, this._farClipPlane), this.gameObject.add(e);
|
|
62289
62289
|
}
|
|
62290
62290
|
this._cam = e, this._cam.layers.mask = this._cullingMask, this.tag == "MainCamera" && this.context.setCurrentCamera(this);
|
|
62291
62291
|
}
|
|
@@ -62372,7 +62372,7 @@ Mo([
|
|
|
62372
62372
|
w(Ft)
|
|
62373
62373
|
], jt.prototype, "backgroundColor", 1);
|
|
62374
62374
|
Mo([
|
|
62375
|
-
w(
|
|
62375
|
+
w(lr)
|
|
62376
62376
|
], jt.prototype, "targetTexture", 1);
|
|
62377
62377
|
class LeA {
|
|
62378
62378
|
constructor(A) {
|
|
@@ -62846,7 +62846,7 @@ const XE = aA("debugtimeline"), Lp = class extends mA {
|
|
|
62846
62846
|
};
|
|
62847
62847
|
let Xn = Lp;
|
|
62848
62848
|
r(Xn, "createTrackFunctions", {});
|
|
62849
|
-
const
|
|
62849
|
+
const dr = aA("debugtimeline");
|
|
62850
62850
|
class zf {
|
|
62851
62851
|
constructor() {
|
|
62852
62852
|
r(this, "director");
|
|
@@ -62907,12 +62907,12 @@ class TeA {
|
|
|
62907
62907
|
const e = A.getClip();
|
|
62908
62908
|
this.clip = e;
|
|
62909
62909
|
const t = A.getRoot(), g = t.name + ".position", I = t.name + ".quaternion";
|
|
62910
|
-
|
|
62910
|
+
dr && console.log(e.name, e.tracks, g);
|
|
62911
62911
|
for (const o of e.tracks)
|
|
62912
62912
|
if (!(o.times.length <= 0)) {
|
|
62913
62913
|
if (o.name.endsWith(g))
|
|
62914
|
-
this.rootStartPosition = new S().fromArray(o.values, 0), this.rootEndPosition = new S().fromArray(o.values, o.values.length - 3), this.rootPositionOffset = this.rootEndPosition.clone().sub(this.rootStartPosition),
|
|
62915
|
-
else if (o.name.endsWith(I) && (this.rootStartQuaternion = new kA().fromArray(o.values, 0), this.rootEndQuaternion = new kA().fromArray(o.values, o.values.length - 4), this.rootQuaternionOffset = this.rootEndQuaternion.clone().multiply(this.rootStartQuaternion),
|
|
62914
|
+
this.rootStartPosition = new S().fromArray(o.values, 0), this.rootEndPosition = new S().fromArray(o.values, o.values.length - 3), this.rootPositionOffset = this.rootEndPosition.clone().sub(this.rootStartPosition), dr && console.log(this.rootPositionOffset);
|
|
62915
|
+
else if (o.name.endsWith(I) && (this.rootStartQuaternion = new kA().fromArray(o.values, 0), this.rootEndQuaternion = new kA().fromArray(o.values, o.values.length - 4), this.rootQuaternionOffset = this.rootEndQuaternion.clone().multiply(this.rootStartQuaternion), dr)) {
|
|
62916
62916
|
const C = new Mi().setFromQuaternion(this.rootQuaternionOffset);
|
|
62917
62917
|
console.log("ROT", C);
|
|
62918
62918
|
}
|
|
@@ -62966,13 +62966,13 @@ class qm extends zf {
|
|
|
62966
62966
|
if (s) {
|
|
62967
62967
|
if (!n) {
|
|
62968
62968
|
const p = t.tracks[0].name.substring(0, c) + ".quaternion";
|
|
62969
|
-
|
|
62969
|
+
dr && console.warn("Create quaternion track", l, d);
|
|
62970
62970
|
const u = d.quaternion, D = new TC(p, [0, t.duration], [u.x, u.y, u.z, u.w, u.x, u.y, u.z, u.w]);
|
|
62971
62971
|
t.tracks.push(D), this.createRotationInterpolant(t, e, D);
|
|
62972
62972
|
}
|
|
62973
62973
|
} else {
|
|
62974
62974
|
const p = h + ".position";
|
|
62975
|
-
|
|
62975
|
+
dr && console.warn("Create position track", l, d);
|
|
62976
62976
|
const u = d.position, D = new ga(p, [0, t.duration], [u.x, u.y, u.z, u.x, u.y, u.z]);
|
|
62977
62977
|
t.tracks.push(D), this.createPositionInterpolant(t, e, D);
|
|
62978
62978
|
}
|
|
@@ -62980,7 +62980,7 @@ class qm extends zf {
|
|
|
62980
62980
|
}
|
|
62981
62981
|
bind() {
|
|
62982
62982
|
if (!this._didBind) {
|
|
62983
|
-
this._didBind = !0,
|
|
62983
|
+
this._didBind = !0, dr && console.log(this.models), this.mixer ? this.target = this.mixer.getRoot() : console.warn("No mixer was assigned to animation track");
|
|
62984
62984
|
for (const e of this.actions) {
|
|
62985
62985
|
const t = new TeA(e);
|
|
62986
62986
|
this._actionOffsets.push(t);
|
|
@@ -63090,7 +63090,7 @@ const HeA = aA("mutetimeline"), XB = class extends zf {
|
|
|
63090
63090
|
}
|
|
63091
63091
|
getAudioFilePath(e) {
|
|
63092
63092
|
const t = this.director.sourceId;
|
|
63093
|
-
return
|
|
63093
|
+
return mr(t, e);
|
|
63094
63094
|
}
|
|
63095
63095
|
onAllowAudioChanged(e) {
|
|
63096
63096
|
for (let t = 0; t < this.models.length; t++) {
|
|
@@ -63182,7 +63182,7 @@ const HeA = aA("mutetimeline"), XB = class extends zf {
|
|
|
63182
63182
|
C && t.setBuffer(C);
|
|
63183
63183
|
}), o;
|
|
63184
63184
|
}
|
|
63185
|
-
|
|
63185
|
+
dr && console.warn("LOAD audio track", g, this.director.sourceId);
|
|
63186
63186
|
const I = new Promise((o, C) => {
|
|
63187
63187
|
this._audioLoader.load(
|
|
63188
63188
|
g,
|
|
@@ -63339,7 +63339,7 @@ var PeA = Object.defineProperty, WeA = Object.getOwnPropertyDescriptor, VeA = (i
|
|
|
63339
63339
|
return t && g && PeA(A, e, g), g;
|
|
63340
63340
|
};
|
|
63341
63341
|
const jeA = aA("debugpost");
|
|
63342
|
-
class tI extends
|
|
63342
|
+
class tI extends Kr {
|
|
63343
63343
|
constructor(e = void 0) {
|
|
63344
63344
|
super();
|
|
63345
63345
|
r(this, "active", !0);
|
|
@@ -63457,7 +63457,7 @@ class Xf extends tI {
|
|
|
63457
63457
|
}
|
|
63458
63458
|
onCreateEffect() {
|
|
63459
63459
|
const e = new QZ({
|
|
63460
|
-
preset:
|
|
63460
|
+
preset: RB.HIGH,
|
|
63461
63461
|
edgeDetectionMode: wM.DEPTH
|
|
63462
63462
|
});
|
|
63463
63463
|
return this.preset.onValueChanged = (t) => {
|
|
@@ -63956,7 +63956,7 @@ class iw extends In {
|
|
|
63956
63956
|
nC([
|
|
63957
63957
|
w()
|
|
63958
63958
|
], iw.prototype, "convex", 2);
|
|
63959
|
-
class
|
|
63959
|
+
class kr extends In {
|
|
63960
63960
|
constructor() {
|
|
63961
63961
|
super(...arguments);
|
|
63962
63962
|
r(this, "center", new S(0, 0, 0));
|
|
@@ -63970,13 +63970,13 @@ class Sr extends In {
|
|
|
63970
63970
|
}
|
|
63971
63971
|
nC([
|
|
63972
63972
|
w(S)
|
|
63973
|
-
],
|
|
63973
|
+
], kr.prototype, "center", 2);
|
|
63974
63974
|
nC([
|
|
63975
63975
|
w()
|
|
63976
|
-
],
|
|
63976
|
+
], kr.prototype, "radius", 2);
|
|
63977
63977
|
nC([
|
|
63978
63978
|
w()
|
|
63979
|
-
],
|
|
63979
|
+
], kr.prototype, "height", 2);
|
|
63980
63980
|
function Hm(i) {
|
|
63981
63981
|
const A = i[ws];
|
|
63982
63982
|
return A || (i.parent ? Hm(i.parent) : null);
|
|
@@ -63992,7 +63992,7 @@ function hp(i, A) {
|
|
|
63992
63992
|
for (const t of i.children)
|
|
63993
63993
|
hp(t, A);
|
|
63994
63994
|
}
|
|
63995
|
-
function
|
|
63995
|
+
function JB(i, A, e) {
|
|
63996
63996
|
i[A] === void 0 && console.warn("Field", A, "is undefined on", i);
|
|
63997
63997
|
const t = Proxy.revocable(i[A], {
|
|
63998
63998
|
// get(target, prop, receiver) {
|
|
@@ -64022,7 +64022,7 @@ function ltA(i, A, e = yo.OnBeforeRender) {
|
|
|
64022
64022
|
const s = i.startCoroutine(C(), e);
|
|
64023
64023
|
I[g] = s;
|
|
64024
64024
|
}
|
|
64025
|
-
var dtA = Object.defineProperty, utA = Object.getOwnPropertyDescriptor,
|
|
64025
|
+
var dtA = Object.defineProperty, utA = Object.getOwnPropertyDescriptor, Lr = (i, A, e, t) => {
|
|
64026
64026
|
for (var g = t > 1 ? void 0 : t ? utA(A, e) : A, I = i.length - 1, o; I >= 0; I--)
|
|
64027
64027
|
(o = i[I]) && (g = (t ? o(A, e, g) : o(g)) || g);
|
|
64028
64028
|
return t && g && dtA(A, e, g), g;
|
|
@@ -64106,15 +64106,15 @@ const bo = new S(), $E = new NA(), Eu = new kA(), WT = class extends LC {
|
|
|
64106
64106
|
return this.sizeDelta.y;
|
|
64107
64107
|
}
|
|
64108
64108
|
awake() {
|
|
64109
|
-
super.awake(), this._anchoredPosition || (this._anchoredPosition = new P()), this.lastMatrix = new NA(), this.rectBlock = new UA(), this.rectBlock.name = this.name, this._initialPosition = this.gameObject.position.clone(), this._initialPosition.z = 0, this.onApplyTransform("RectTransform awake"),
|
|
64109
|
+
super.awake(), this._anchoredPosition || (this._anchoredPosition = new P()), this.lastMatrix = new NA(), this.rectBlock = new UA(), this.rectBlock.name = this.name, this._initialPosition = this.gameObject.position.clone(), this._initialPosition.z = 0, this.onApplyTransform("RectTransform awake"), JB(this, "_anchoredPosition", () => {
|
|
64110
64110
|
this.markDirty();
|
|
64111
|
-
}),
|
|
64111
|
+
}), JB(this, "sizeDelta", () => {
|
|
64112
64112
|
this.markDirty();
|
|
64113
|
-
}),
|
|
64113
|
+
}), JB(this, "pivot", () => {
|
|
64114
64114
|
this.markDirty();
|
|
64115
|
-
}),
|
|
64115
|
+
}), JB(this, "anchorMin", () => {
|
|
64116
64116
|
this.markDirty();
|
|
64117
|
-
}),
|
|
64117
|
+
}), JB(this, "anchorMax", () => {
|
|
64118
64118
|
this.markDirty();
|
|
64119
64119
|
});
|
|
64120
64120
|
}
|
|
@@ -64225,25 +64225,25 @@ const bo = new S(), $E = new NA(), Eu = new kA(), WT = class extends LC {
|
|
|
64225
64225
|
}
|
|
64226
64226
|
};
|
|
64227
64227
|
let $g = WT;
|
|
64228
|
-
|
|
64228
|
+
Lr([
|
|
64229
64229
|
w(P)
|
|
64230
64230
|
], $g.prototype, "anchoredPosition", 1);
|
|
64231
|
-
|
|
64231
|
+
Lr([
|
|
64232
64232
|
w(P)
|
|
64233
64233
|
], $g.prototype, "sizeDelta", 2);
|
|
64234
|
-
|
|
64234
|
+
Lr([
|
|
64235
64235
|
w(P)
|
|
64236
64236
|
], $g.prototype, "pivot", 2);
|
|
64237
|
-
|
|
64237
|
+
Lr([
|
|
64238
64238
|
w(P)
|
|
64239
64239
|
], $g.prototype, "anchorMin", 2);
|
|
64240
|
-
|
|
64240
|
+
Lr([
|
|
64241
64241
|
w(P)
|
|
64242
64242
|
], $g.prototype, "anchorMax", 2);
|
|
64243
|
-
|
|
64243
|
+
Lr([
|
|
64244
64244
|
w(P)
|
|
64245
64245
|
], $g.prototype, "offsetMin", 2);
|
|
64246
|
-
|
|
64246
|
+
Lr([
|
|
64247
64247
|
w(P)
|
|
64248
64248
|
], $g.prototype, "offsetMax", 2);
|
|
64249
64249
|
class DtA extends JT {
|
|
@@ -64385,7 +64385,7 @@ const BD = (a0 = class extends LC {
|
|
|
64385
64385
|
this.makePanel(), this.uiObject && this.uiObject.set(A);
|
|
64386
64386
|
}
|
|
64387
64387
|
awake() {
|
|
64388
|
-
super.awake(), this.makePanel(),
|
|
64388
|
+
super.awake(), this.makePanel(), JB(this, "_color", () => ltA(this, this.onColorChanged));
|
|
64389
64389
|
}
|
|
64390
64390
|
onEnable() {
|
|
64391
64391
|
var A;
|
|
@@ -64534,8 +64534,8 @@ var GtA = Object.defineProperty, MtA = Object.getOwnPropertyDescriptor, _I = (i,
|
|
|
64534
64534
|
(o = i[I]) && (g = (t ? o(A, e, g) : o(g)) || g);
|
|
64535
64535
|
return t && g && GtA(A, e, g), g;
|
|
64536
64536
|
};
|
|
64537
|
-
const
|
|
64538
|
-
class
|
|
64537
|
+
const wB = aA("debugbutton");
|
|
64538
|
+
class vr {
|
|
64539
64539
|
constructor() {
|
|
64540
64540
|
r(this, "colorMultiplier");
|
|
64541
64541
|
r(this, "disabledColor");
|
|
@@ -64548,25 +64548,25 @@ class Lr {
|
|
|
64548
64548
|
}
|
|
64549
64549
|
_I([
|
|
64550
64550
|
w()
|
|
64551
|
-
],
|
|
64551
|
+
], vr.prototype, "colorMultiplier", 2);
|
|
64552
64552
|
_I([
|
|
64553
64553
|
w(Ft)
|
|
64554
|
-
],
|
|
64554
|
+
], vr.prototype, "disabledColor", 2);
|
|
64555
64555
|
_I([
|
|
64556
64556
|
w()
|
|
64557
|
-
],
|
|
64557
|
+
], vr.prototype, "fadeDuration", 2);
|
|
64558
64558
|
_I([
|
|
64559
64559
|
w(Ft)
|
|
64560
|
-
],
|
|
64560
|
+
], vr.prototype, "highlightedColor", 2);
|
|
64561
64561
|
_I([
|
|
64562
64562
|
w(Ft)
|
|
64563
|
-
],
|
|
64563
|
+
], vr.prototype, "normalColor", 2);
|
|
64564
64564
|
_I([
|
|
64565
64565
|
w(Ft)
|
|
64566
|
-
],
|
|
64566
|
+
], vr.prototype, "pressedColor", 2);
|
|
64567
64567
|
_I([
|
|
64568
64568
|
w(Ft)
|
|
64569
|
-
],
|
|
64569
|
+
], vr.prototype, "selectedColor", 2);
|
|
64570
64570
|
class pa extends mA {
|
|
64571
64571
|
constructor() {
|
|
64572
64572
|
super(...arguments);
|
|
@@ -64583,23 +64583,23 @@ class pa extends mA {
|
|
|
64583
64583
|
}
|
|
64584
64584
|
onPointerEnter(e) {
|
|
64585
64585
|
var t, g;
|
|
64586
|
-
|
|
64586
|
+
wB && console.log("Button Enter", (t = this.animationTriggers) == null ? void 0 : t.highlightedTrigger, this.animator), this._isHovered = !0, this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.highlightedTrigger) : this.transition === 1 && this.colors && ((g = this._image) == null || g.setState("hovered")), this.context.input.setCursorPointer());
|
|
64587
64587
|
}
|
|
64588
64588
|
onPointerExit() {
|
|
64589
64589
|
var e, t;
|
|
64590
|
-
|
|
64590
|
+
wB && console.log("Button Exit", (e = this.animationTriggers) == null ? void 0 : e.highlightedTrigger, this.animator), this._isHovered = !1, this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && ((t = this._image) == null || t.setState("normal")), this.context.input.setCursorNormal());
|
|
64591
64591
|
}
|
|
64592
64592
|
onPointerDown(e) {
|
|
64593
64593
|
var t, g;
|
|
64594
|
-
|
|
64594
|
+
wB && console.log("Button Down", (t = this.animationTriggers) == null ? void 0 : t.highlightedTrigger, this.animator), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this.animationTriggers.pressedTrigger) : this.transition === 1 && this.colors && ((g = this._image) == null || g.setState("pressed")));
|
|
64595
64595
|
}
|
|
64596
64596
|
onPointerUp(e) {
|
|
64597
64597
|
var t, g;
|
|
64598
|
-
|
|
64598
|
+
wB && console.warn("Button Up", (t = this.animationTriggers) == null ? void 0 : t.highlightedTrigger, this.animator, this._isHovered), this.interactable && (this.transition == 3 && this.animationTriggers && this.animator ? this.animator.setTrigger(this._isHovered ? this.animationTriggers.highlightedTrigger : this.animationTriggers.normalTrigger) : this.transition === 1 && this.colors && ((g = this._image) == null || g.setState(this._isHovered ? "hovered" : "normal")));
|
|
64599
64599
|
}
|
|
64600
64600
|
onPointerClick(e) {
|
|
64601
64601
|
var t;
|
|
64602
|
-
this.interactable && (
|
|
64602
|
+
this.interactable && (wB && (console.warn("Button Click", this.onClick), Bg("CLICKED button " + this.name + " at " + this.context.time.frameCount)), (t = this.onClick) == null || t.invoke());
|
|
64603
64603
|
}
|
|
64604
64604
|
set interactable(e) {
|
|
64605
64605
|
this._interactable = e, this._image && (this._image.setInteractable(e), e ? this._image.setState("normal") : this._image.setState("disabled"));
|
|
@@ -64611,7 +64611,7 @@ class pa extends mA {
|
|
|
64611
64611
|
this.interactable = e;
|
|
64612
64612
|
}
|
|
64613
64613
|
awake() {
|
|
64614
|
-
super.awake(),
|
|
64614
|
+
super.awake(), wB && console.log(this), this._isInit = !1, this.init();
|
|
64615
64615
|
}
|
|
64616
64616
|
start() {
|
|
64617
64617
|
var e;
|
|
@@ -64700,7 +64700,7 @@ var mtA = Object.defineProperty, RtA = Object.getOwnPropertyDescriptor, Ui = (i,
|
|
|
64700
64700
|
return t && g && mtA(A, e, g), g;
|
|
64701
64701
|
};
|
|
64702
64702
|
const VK = aA("debuguilayout");
|
|
64703
|
-
class
|
|
64703
|
+
class xr {
|
|
64704
64704
|
constructor() {
|
|
64705
64705
|
r(this, "left", 0);
|
|
64706
64706
|
r(this, "right", 0);
|
|
@@ -64716,16 +64716,16 @@ class vr {
|
|
|
64716
64716
|
}
|
|
64717
64717
|
Ui([
|
|
64718
64718
|
w()
|
|
64719
|
-
],
|
|
64719
|
+
], xr.prototype, "left", 2);
|
|
64720
64720
|
Ui([
|
|
64721
64721
|
w()
|
|
64722
|
-
],
|
|
64722
|
+
], xr.prototype, "right", 2);
|
|
64723
64723
|
Ui([
|
|
64724
64724
|
w()
|
|
64725
|
-
],
|
|
64725
|
+
], xr.prototype, "top", 2);
|
|
64726
64726
|
Ui([
|
|
64727
64727
|
w()
|
|
64728
|
-
],
|
|
64728
|
+
], xr.prototype, "bottom", 2);
|
|
64729
64729
|
class OI extends mA {
|
|
64730
64730
|
constructor() {
|
|
64731
64731
|
super(...arguments);
|
|
@@ -64787,7 +64787,7 @@ Ui([
|
|
|
64787
64787
|
w()
|
|
64788
64788
|
], OI.prototype, "spacing", 2);
|
|
64789
64789
|
Ui([
|
|
64790
|
-
w(
|
|
64790
|
+
w(xr)
|
|
64791
64791
|
], OI.prototype, "padding", 2);
|
|
64792
64792
|
Ui([
|
|
64793
64793
|
w()
|
|
@@ -65215,14 +65215,14 @@ Tt([
|
|
|
65215
65215
|
w()
|
|
65216
65216
|
], rE.prototype, "relativeMotion", 2);
|
|
65217
65217
|
var r0;
|
|
65218
|
-
const
|
|
65218
|
+
const Wa = (r0 = class extends mA {
|
|
65219
65219
|
constructor() {
|
|
65220
65220
|
super(...arguments);
|
|
65221
65221
|
r(this, "materialToSwitch");
|
|
65222
65222
|
r(this, "variantMaterial");
|
|
65223
65223
|
r(this, "_objectsWithThisMaterial", []);
|
|
65224
65224
|
r(this, "selfModel");
|
|
65225
|
-
r(this, "targetModels"
|
|
65225
|
+
r(this, "targetModels");
|
|
65226
65226
|
}
|
|
65227
65227
|
awake() {
|
|
65228
65228
|
if (this.variantMaterial && this.materialToSwitch) {
|
|
@@ -65236,13 +65236,16 @@ const JB = (r0 = class extends mA {
|
|
|
65236
65236
|
for (const A of this._objectsWithThisMaterial)
|
|
65237
65237
|
A.sharedMaterial = this.variantMaterial;
|
|
65238
65238
|
}
|
|
65239
|
+
beforeCreateDocument(A, e) {
|
|
65240
|
+
this.targetModels = [], Wa._materialTriggersPerId = {};
|
|
65241
|
+
}
|
|
65239
65242
|
createBehaviours(A, e, t) {
|
|
65240
|
-
this._objectsWithThisMaterial.find((I) => I.gameObject.uuid === e.uuid) && this.targetModels.push(e), this.gameObject.uuid === e.uuid && (this.selfModel = e, this.materialToSwitch && (
|
|
65243
|
+
this._objectsWithThisMaterial.find((I) => I.gameObject.uuid === e.uuid) && this.targetModels.push(e), this.gameObject.uuid === e.uuid && (this.selfModel = e, this.materialToSwitch && (Wa._materialTriggersPerId[this.materialToSwitch.uuid] || (Wa._materialTriggersPerId[this.materialToSwitch.uuid] = []), Wa._materialTriggersPerId[this.materialToSwitch.uuid].push(this)));
|
|
65241
65244
|
}
|
|
65242
65245
|
afterCreateDocument(A, e) {
|
|
65243
65246
|
if (!this.materialToSwitch)
|
|
65244
65247
|
return;
|
|
65245
|
-
const t =
|
|
65248
|
+
const t = Wa._materialTriggersPerId[this.materialToSwitch.uuid];
|
|
65246
65249
|
if (t) {
|
|
65247
65250
|
const g = {};
|
|
65248
65251
|
for (const o of t) {
|
|
@@ -65256,7 +65259,7 @@ const JB = (r0 = class extends mA {
|
|
|
65256
65259
|
o.createAndAttachBehaviors(A, g[o.selfModel.uuid], I);
|
|
65257
65260
|
}
|
|
65258
65261
|
}
|
|
65259
|
-
delete
|
|
65262
|
+
delete Wa._materialTriggersPerId[this.materialToSwitch.uuid];
|
|
65260
65263
|
}
|
|
65261
65264
|
createAndAttachBehaviors(A, e, t) {
|
|
65262
65265
|
const g = [], I = [];
|
|
@@ -65293,7 +65296,7 @@ const JB = (r0 = class extends mA {
|
|
|
65293
65296
|
return A;
|
|
65294
65297
|
}
|
|
65295
65298
|
}, r(r0, "_materialTriggersPerId", {}), r0);
|
|
65296
|
-
let ow =
|
|
65299
|
+
let ow = Wa;
|
|
65297
65300
|
Tt([
|
|
65298
65301
|
w(Ke)
|
|
65299
65302
|
], ow.prototype, "materialToSwitch", 2);
|
|
@@ -65513,22 +65516,22 @@ const qB = (B0 = class extends mA {
|
|
|
65513
65516
|
}
|
|
65514
65517
|
}
|
|
65515
65518
|
}, r(B0, "animationActions", []), B0);
|
|
65516
|
-
let
|
|
65519
|
+
let Yr = qB;
|
|
65517
65520
|
Tt([
|
|
65518
65521
|
w(UA)
|
|
65519
|
-
],
|
|
65522
|
+
], Yr.prototype, "target", 2);
|
|
65520
65523
|
Tt([
|
|
65521
65524
|
w(DI)
|
|
65522
|
-
],
|
|
65525
|
+
], Yr.prototype, "animator", 2);
|
|
65523
65526
|
Tt([
|
|
65524
65527
|
w()
|
|
65525
|
-
],
|
|
65528
|
+
], Yr.prototype, "stateName", 2);
|
|
65526
65529
|
Tt([
|
|
65527
65530
|
w()
|
|
65528
|
-
],
|
|
65531
|
+
], Yr.prototype, "stateNameAfterPlaying", 2);
|
|
65529
65532
|
Tt([
|
|
65530
65533
|
w()
|
|
65531
|
-
],
|
|
65534
|
+
], Yr.prototype, "loopAfterPlaying", 2);
|
|
65532
65535
|
class Ol extends mA {
|
|
65533
65536
|
constructor() {
|
|
65534
65537
|
super(...arguments);
|
|
@@ -65595,8 +65598,8 @@ class BE extends mA {
|
|
|
65595
65598
|
return this._rigidbody ? this._rigidbody : (this._rigidbody = this.gameObject.getComponent(ii), this._rigidbody || (this._rigidbody = this.gameObject.addNewComponent(ii)), this.rigidbody);
|
|
65596
65599
|
}
|
|
65597
65600
|
onEnable() {
|
|
65598
|
-
let e = this.rigidbody, t = this.gameObject.getComponent(
|
|
65599
|
-
t || (t = this.gameObject.addNewComponent(
|
|
65601
|
+
let e = this.rigidbody, t = this.gameObject.getComponent(kr);
|
|
65602
|
+
t || (t = this.gameObject.addNewComponent(kr)), t.center.copy(this.center), t.radius = this.radius, t.height = this.height, this.gameObject.rotation.x = 0, this.gameObject.rotation.z = 0, e.lockRotationX = !0, e.lockRotationY = !0, e.lockRotationZ = !0;
|
|
65600
65603
|
}
|
|
65601
65604
|
move(e) {
|
|
65602
65605
|
this.gameObject.position.add(e);
|
|
@@ -65725,7 +65728,7 @@ var TtA = Object.defineProperty, HtA = Object.getOwnPropertyDescriptor, aw = (i,
|
|
|
65725
65728
|
(o = i[I]) && (g = (t ? o(A, e, g) : o(g)) || g);
|
|
65726
65729
|
return t && g && TtA(A, e, g), g;
|
|
65727
65730
|
};
|
|
65728
|
-
class
|
|
65731
|
+
class Tr extends tI {
|
|
65729
65732
|
constructor() {
|
|
65730
65733
|
super(...arguments);
|
|
65731
65734
|
r(this, "postExposure");
|
|
@@ -65773,17 +65776,17 @@ class Yr extends tI {
|
|
|
65773
65776
|
}
|
|
65774
65777
|
aw([
|
|
65775
65778
|
w(me)
|
|
65776
|
-
],
|
|
65779
|
+
], Tr.prototype, "postExposure", 2);
|
|
65777
65780
|
aw([
|
|
65778
65781
|
w(me)
|
|
65779
|
-
],
|
|
65782
|
+
], Tr.prototype, "contrast", 2);
|
|
65780
65783
|
aw([
|
|
65781
65784
|
w(me)
|
|
65782
|
-
],
|
|
65785
|
+
], Tr.prototype, "hueShift", 2);
|
|
65783
65786
|
aw([
|
|
65784
65787
|
w(me)
|
|
65785
|
-
],
|
|
65786
|
-
sC("ColorAdjustments",
|
|
65788
|
+
], Tr.prototype, "saturation", 2);
|
|
65789
|
+
sC("ColorAdjustments", Tr);
|
|
65787
65790
|
const _tA = (Math.sqrt(5) - 1) / 4, og = (5 - Math.sqrt(5)) / 20, hu = (i) => Math.floor(i) | 0, lu = /* @__PURE__ */ new Float64Array([
|
|
65788
65791
|
0,
|
|
65789
65792
|
1,
|
|
@@ -65979,7 +65982,7 @@ var WtA = Object.defineProperty, VtA = Object.getOwnPropertyDescriptor, Z = (i,
|
|
|
65979
65982
|
};
|
|
65980
65983
|
const du = aA("debugparticles");
|
|
65981
65984
|
var ys = /* @__PURE__ */ ((i) => (i[i.Billboard = 0] = "Billboard", i[i.Stretch = 1] = "Stretch", i[i.HorizontalBillboard = 2] = "HorizontalBillboard", i[i.VerticalBillboard = 3] = "VerticalBillboard", i[i.Mesh = 4] = "Mesh", i))(ys || {});
|
|
65982
|
-
class
|
|
65985
|
+
class Hr {
|
|
65983
65986
|
constructor() {
|
|
65984
65987
|
r(this, "alphaKeys");
|
|
65985
65988
|
r(this, "colorKeys");
|
|
@@ -66014,10 +66017,10 @@ class Tr {
|
|
|
66014
66017
|
}
|
|
66015
66018
|
Z([
|
|
66016
66019
|
w()
|
|
66017
|
-
],
|
|
66020
|
+
], Hr.prototype, "alphaKeys", 2);
|
|
66018
66021
|
Z([
|
|
66019
66022
|
w()
|
|
66020
|
-
],
|
|
66023
|
+
], Hr.prototype, "colorKeys", 2);
|
|
66021
66024
|
var rw = /* @__PURE__ */ ((i) => (i[i.Local = 0] = "Local", i[i.World = 1] = "World", i[i.Custom = 2] = "Custom", i))(rw || {}), tH = /* @__PURE__ */ ((i) => (i[i.Sphere = 0] = "Sphere", i[i.SphereShell = 1] = "SphereShell", i[i.Hemisphere = 2] = "Hemisphere", i[i.HemisphereShell = 3] = "HemisphereShell", i[i.Cone = 4] = "Cone", i[i.Box = 5] = "Box", i[i.Mesh = 6] = "Mesh", i[i.ConeShell = 7] = "ConeShell", i[i.ConeVolume = 8] = "ConeVolume", i[i.ConeVolumeShell = 9] = "ConeVolumeShell", i[i.Circle = 10] = "Circle", i[i.CircleEdge = 11] = "CircleEdge", i[i.SingleSidedEdge = 12] = "SingleSidedEdge", i[i.MeshRenderer = 13] = "MeshRenderer", i[i.SkinnedMeshRenderer = 14] = "SkinnedMeshRenderer", i[i.BoxShell = 15] = "BoxShell", i[i.BoxEdge = 16] = "BoxEdge", i[i.Donut = 17] = "Donut", i[i.Rectangle = 18] = "Rectangle", i[i.Sprite = 19] = "Sprite", i[i.SpriteRenderer = 20] = "SpriteRenderer", i))(tH || {});
|
|
66022
66025
|
class re {
|
|
66023
66026
|
constructor() {
|
|
@@ -66134,13 +66137,13 @@ Z([
|
|
|
66134
66137
|
w(Ft)
|
|
66135
66138
|
], PI.prototype, "colorMax", 2);
|
|
66136
66139
|
Z([
|
|
66137
|
-
w(
|
|
66140
|
+
w(Hr)
|
|
66138
66141
|
], PI.prototype, "gradient", 2);
|
|
66139
66142
|
Z([
|
|
66140
|
-
w(
|
|
66143
|
+
w(Hr)
|
|
66141
66144
|
], PI.prototype, "gradientMin", 2);
|
|
66142
66145
|
Z([
|
|
66143
|
-
w(
|
|
66146
|
+
w(Hr)
|
|
66144
66147
|
], PI.prototype, "gradientMax", 2);
|
|
66145
66148
|
class Kg {
|
|
66146
66149
|
constructor() {
|
|
@@ -66323,7 +66326,7 @@ class Bw {
|
|
|
66323
66326
|
Z([
|
|
66324
66327
|
w(PI)
|
|
66325
66328
|
], Bw.prototype, "color", 2);
|
|
66326
|
-
class
|
|
66329
|
+
class _r {
|
|
66327
66330
|
constructor() {
|
|
66328
66331
|
r(this, "enabled");
|
|
66329
66332
|
r(this, "separateAxes");
|
|
@@ -66352,16 +66355,16 @@ class Hr {
|
|
|
66352
66355
|
}
|
|
66353
66356
|
Z([
|
|
66354
66357
|
w(re)
|
|
66355
|
-
],
|
|
66358
|
+
], _r.prototype, "size", 2);
|
|
66356
66359
|
Z([
|
|
66357
66360
|
w(re)
|
|
66358
|
-
],
|
|
66361
|
+
], _r.prototype, "x", 2);
|
|
66359
66362
|
Z([
|
|
66360
66363
|
w(re)
|
|
66361
|
-
],
|
|
66364
|
+
], _r.prototype, "y", 2);
|
|
66362
66365
|
Z([
|
|
66363
66366
|
w(re)
|
|
66364
|
-
],
|
|
66367
|
+
], _r.prototype, "z", 2);
|
|
66365
66368
|
var qu;
|
|
66366
66369
|
const uc = (qu = class {
|
|
66367
66370
|
constructor() {
|
|
@@ -67140,7 +67143,7 @@ Z([
|
|
|
67140
67143
|
Z([
|
|
67141
67144
|
w()
|
|
67142
67145
|
], Wi.prototype, "space", 2);
|
|
67143
|
-
class
|
|
67146
|
+
class Or {
|
|
67144
67147
|
constructor() {
|
|
67145
67148
|
r(this, "enabled");
|
|
67146
67149
|
r(this, "curve");
|
|
@@ -67170,16 +67173,16 @@ class _r {
|
|
|
67170
67173
|
}
|
|
67171
67174
|
Z([
|
|
67172
67175
|
w()
|
|
67173
|
-
],
|
|
67176
|
+
], Or.prototype, "enabled", 2);
|
|
67174
67177
|
Z([
|
|
67175
67178
|
w(re)
|
|
67176
|
-
],
|
|
67179
|
+
], Or.prototype, "curve", 2);
|
|
67177
67180
|
Z([
|
|
67178
67181
|
w()
|
|
67179
|
-
],
|
|
67182
|
+
], Or.prototype, "curveMultiplier", 2);
|
|
67180
67183
|
Z([
|
|
67181
67184
|
w()
|
|
67182
|
-
],
|
|
67185
|
+
], Or.prototype, "mode", 2);
|
|
67183
67186
|
class pI {
|
|
67184
67187
|
constructor() {
|
|
67185
67188
|
r(this, "enabled");
|
|
@@ -67618,7 +67621,7 @@ class bS {
|
|
|
67618
67621
|
this.tag = A, this.previousValues = e;
|
|
67619
67622
|
}
|
|
67620
67623
|
}
|
|
67621
|
-
class
|
|
67624
|
+
class rr {
|
|
67622
67625
|
constructor(A) {
|
|
67623
67626
|
r(this, "id");
|
|
67624
67627
|
r(this, "content", "");
|
|
@@ -67655,14 +67658,14 @@ class ar {
|
|
|
67655
67658
|
e.appendLine(`string[] font = [ ${t} ]`), e.appendLine(`double pointSize = ${this.pointSize}`), typeof this.width == "number" && e.appendLine(`double width = ${this.width}`), typeof this.height == "number" && e.appendLine(`double height = ${this.height}`), typeof this.depth == "number" && e.appendLine(`double depth = ${this.depth}`), this.wrapMode && e.appendLine(`token wrapMode = "${this.wrapMode}"`), this.horizontalAlignment && e.appendLine(`token horizontalAlignment = "${this.horizontalAlignment}"`), this.verticalAlignment && e.appendLine(`token verticalAlignment = "${this.verticalAlignment}"`), this.material !== void 0 && e.appendLine(`rel material:binding = </Materials/Material_${this.material.id}>`), e.closeBlock();
|
|
67656
67659
|
}
|
|
67657
67660
|
}
|
|
67658
|
-
r(
|
|
67661
|
+
r(rr, "global_id", 0);
|
|
67659
67662
|
class Wm {
|
|
67660
67663
|
static singleLine(A, e, t) {
|
|
67661
|
-
const g = new
|
|
67664
|
+
const g = new rr("text_" + rr.getId());
|
|
67662
67665
|
return g.content = A, e && (g.pointSize = e), t && (g.depth = t), g;
|
|
67663
67666
|
}
|
|
67664
67667
|
static multiLine(A, e, t, g, I, o) {
|
|
67665
|
-
const C = new
|
|
67668
|
+
const C = new rr("text_" + rr.getId());
|
|
67666
67669
|
return C.content = A, C.width = e, C.height = t, C.horizontalAlignment = g, C.verticalAlignment = I, o !== void 0 && (C.wrapMode = o), C;
|
|
67667
67670
|
}
|
|
67668
67671
|
}
|
|
@@ -67743,7 +67746,7 @@ var eiA = Object.defineProperty, tiA = Object.getOwnPropertyDescriptor, WI = (i,
|
|
|
67743
67746
|
return t && g && eiA(A, e, g), g;
|
|
67744
67747
|
};
|
|
67745
67748
|
const Lo = aA("debugusdz");
|
|
67746
|
-
class
|
|
67749
|
+
class Pr {
|
|
67747
67750
|
constructor() {
|
|
67748
67751
|
r(this, "callToAction");
|
|
67749
67752
|
r(this, "checkoutTitle");
|
|
@@ -67753,16 +67756,16 @@ class Or {
|
|
|
67753
67756
|
}
|
|
67754
67757
|
WI([
|
|
67755
67758
|
w()
|
|
67756
|
-
],
|
|
67759
|
+
], Pr.prototype, "callToAction", 2);
|
|
67757
67760
|
WI([
|
|
67758
67761
|
w()
|
|
67759
|
-
],
|
|
67762
|
+
], Pr.prototype, "checkoutTitle", 2);
|
|
67760
67763
|
WI([
|
|
67761
67764
|
w()
|
|
67762
|
-
],
|
|
67765
|
+
], Pr.prototype, "checkoutSubtitle", 2);
|
|
67763
67766
|
WI([
|
|
67764
67767
|
w()
|
|
67765
|
-
],
|
|
67768
|
+
], Pr.prototype, "callToActionURL", 2);
|
|
67766
67769
|
class Ro extends mA {
|
|
67767
67770
|
constructor() {
|
|
67768
67771
|
super(...arguments);
|
|
@@ -67801,7 +67804,7 @@ class Ro extends mA {
|
|
|
67801
67804
|
onEnable() {
|
|
67802
67805
|
var g;
|
|
67803
67806
|
const e = mD(), t = Jn();
|
|
67804
|
-
(Lo || e && t) && ((Lo || this.allowCreateQuicklookButton) && this.addQuicklookButton(), this.webARSessionRoot = eA.findObjectOfType(
|
|
67807
|
+
(Lo || e && t) && ((Lo || this.allowCreateQuicklookButton) && this.addQuicklookButton(), this.webARSessionRoot = eA.findObjectOfType(qr) ?? void 0, this.lastCallback = this.quicklookCallback.bind(this), this.link = jtA(this.context), this.link.addEventListener("message", this.lastCallback)), Lo && Bg("USDZ Exporter enabled: " + this.name), (g = document.getElementById("open-in-ar")) == null || g.addEventListener("click", this.onClickedOpenInARElement);
|
|
67805
67808
|
}
|
|
67806
67809
|
onDisable() {
|
|
67807
67810
|
var g, I;
|
|
@@ -67908,7 +67911,7 @@ WI([
|
|
|
67908
67911
|
w(URL)
|
|
67909
67912
|
], Ro.prototype, "customUsdzFile", 2);
|
|
67910
67913
|
WI([
|
|
67911
|
-
w(
|
|
67914
|
+
w(Pr)
|
|
67912
67915
|
], Ro.prototype, "customBranding", 2);
|
|
67913
67916
|
WI([
|
|
67914
67917
|
w()
|
|
@@ -67943,7 +67946,7 @@ class iH extends mA {
|
|
|
67943
67946
|
}
|
|
67944
67947
|
}
|
|
67945
67948
|
}
|
|
67946
|
-
var iiA = Object.defineProperty, giA = Object.getOwnPropertyDescriptor,
|
|
67949
|
+
var iiA = Object.defineProperty, giA = Object.getOwnPropertyDescriptor, Wr = (i, A, e, t) => {
|
|
67947
67950
|
for (var g = t > 1 ? void 0 : t ? giA(A, e) : A, I = i.length - 1, o; I >= 0; I--)
|
|
67948
67951
|
(o = i[I]) && (g = (t ? o(A, e, g) : o(g)) || g);
|
|
67949
67952
|
return t && g && iiA(A, e, g), g;
|
|
@@ -67994,25 +67997,25 @@ class WC extends tI {
|
|
|
67994
67997
|
unapply() {
|
|
67995
67998
|
}
|
|
67996
67999
|
}
|
|
67997
|
-
|
|
68000
|
+
Wr([
|
|
67998
68001
|
w()
|
|
67999
68002
|
], WC.prototype, "mode", 2);
|
|
68000
|
-
|
|
68003
|
+
Wr([
|
|
68001
68004
|
w(me)
|
|
68002
68005
|
], WC.prototype, "focusDistance", 2);
|
|
68003
|
-
|
|
68006
|
+
Wr([
|
|
68004
68007
|
w(me)
|
|
68005
68008
|
], WC.prototype, "focalLength", 2);
|
|
68006
|
-
|
|
68009
|
+
Wr([
|
|
68007
68010
|
w(me)
|
|
68008
68011
|
], WC.prototype, "aperture", 2);
|
|
68009
|
-
|
|
68012
|
+
Wr([
|
|
68010
68013
|
w(me)
|
|
68011
68014
|
], WC.prototype, "gaussianMaxRadius", 2);
|
|
68012
|
-
|
|
68015
|
+
Wr([
|
|
68013
68016
|
w(me)
|
|
68014
68017
|
], WC.prototype, "resolutionScale", 2);
|
|
68015
|
-
|
|
68018
|
+
Wr([
|
|
68016
68019
|
w(me)
|
|
68017
68020
|
], WC.prototype, "bokehScale", 2);
|
|
68018
68021
|
sC("DepthOfField", WC);
|
|
@@ -68146,7 +68149,7 @@ const Qs = class extends Gl {
|
|
|
68146
68149
|
if (this._activePointerId = e.pointerId, !I.attached)
|
|
68147
68150
|
return;
|
|
68148
68151
|
I.attached, g = I.attached, this._isDragging = !0, this._dragHelper.setSelected(g, this.context), this.orbit && (this.orbit.enabled = !1);
|
|
68149
|
-
const o = eA.getComponentInChildren(g,
|
|
68152
|
+
const o = eA.getComponentInChildren(g, yr);
|
|
68150
68153
|
o && (o.fastMode = !0, o == null || o.requestOwnership()), this._marker = eA.addNewComponent(g, Ml), this._draggingRigidbodies.length = 0;
|
|
68151
68154
|
const C = eA.getComponentsInChildren(g, ii);
|
|
68152
68155
|
C && this._draggingRigidbodies.push(...C);
|
|
@@ -68168,7 +68171,7 @@ const Qs = class extends Gl {
|
|
|
68168
68171
|
this._draggingRigidbodies.length = 0;
|
|
68169
68172
|
const t = this._dragHelper.selected;
|
|
68170
68173
|
if (this._dragHelper.setSelected(null, this.context), this.orbit && (this.orbit.enabled = !0), e != null && e.object) {
|
|
68171
|
-
const I = eA.getComponentInChildren(e.object,
|
|
68174
|
+
const I = eA.getComponentInChildren(e.object, yr);
|
|
68172
68175
|
I && (I.fastMode = !1);
|
|
68173
68176
|
}
|
|
68174
68177
|
this._marker && this._marker.destroy();
|
|
@@ -68178,8 +68181,8 @@ const Qs = class extends Gl {
|
|
|
68178
68181
|
eA.invokeOnChildren(t, g("onDragEnd"));
|
|
68179
68182
|
}
|
|
68180
68183
|
};
|
|
68181
|
-
let
|
|
68182
|
-
r(
|
|
68184
|
+
let Br = Qs;
|
|
68185
|
+
r(Br, "_active", 0), r(Br, "lastHovered");
|
|
68183
68186
|
const iU = class {
|
|
68184
68187
|
constructor(A) {
|
|
68185
68188
|
r(this, "_selected", null);
|
|
@@ -68574,7 +68577,7 @@ class cE extends Gl {
|
|
|
68574
68577
|
}
|
|
68575
68578
|
this.object.visible = !1, this._startPosition = ((t = this.object.position) == null ? void 0 : t.clone()) ?? new S(0, 0, 0), this._startQuaternion = ((g = this.object.quaternion) == null ? void 0 : g.clone()) ?? new kA(0, 0, 0, 1);
|
|
68576
68579
|
}
|
|
68577
|
-
const e = eA.getComponentInParent(this.gameObject,
|
|
68580
|
+
const e = eA.getComponentInParent(this.gameObject, Br);
|
|
68578
68581
|
e ? e.addDragEventListener(IH.SelectStart, (I, o) => {
|
|
68579
68582
|
if (this._currentCount >= this.limitCount) {
|
|
68580
68583
|
o.attached = null;
|
|
@@ -68955,9 +68958,9 @@ gR([
|
|
|
68955
68958
|
gR([
|
|
68956
68959
|
w(wA)
|
|
68957
68960
|
], Pl.prototype, "color", 1);
|
|
68958
|
-
let LS, vS,
|
|
68961
|
+
let LS, vS, yB, fu;
|
|
68959
68962
|
function xS(i, A, e) {
|
|
68960
|
-
vS || (vS = new Ig(2, 2, 1, 1)),
|
|
68963
|
+
vS || (vS = new Ig(2, 2, 1, 1)), yB || (yB = new be({
|
|
68961
68964
|
uniforms: { blitTexture: new SA(i) },
|
|
68962
68965
|
vertexShader: `
|
|
68963
68966
|
varying vec2 vUv;
|
|
@@ -68983,7 +68986,7 @@ function xS(i, A, e) {
|
|
|
68983
68986
|
gl_FragColor = texture2D( blitTexture, vUv);
|
|
68984
68987
|
#endif
|
|
68985
68988
|
}`
|
|
68986
|
-
})),
|
|
68989
|
+
})), yB.uniforms.blitTexture.value = i, yB.defines.IS_SRGB = i.encoding == De, yB.needsUpdate = !0, fu || (fu = new DA(vS, yB), fu.frustrumCulled = !1);
|
|
68987
68990
|
const t = new gt(), g = new uI();
|
|
68988
68991
|
g.add(fu), e || (LS || (LS = new KQ({ antialias: !1 })), e = LS), e.setSize(Math.min(i.image.width, A), Math.min(i.image.height, A)), e.clear(), e.render(g, t);
|
|
68989
68992
|
const I = new Te(e.domElement);
|
|
@@ -69687,7 +69690,7 @@ class LiA {
|
|
|
69687
69690
|
let c = n.values.length / n.times.length;
|
|
69688
69691
|
Q === XK.morphTargetInfluences && (c /= B.morphTargetInfluences.length);
|
|
69689
69692
|
let h;
|
|
69690
|
-
n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline === !0 ? (h = "CUBICSPLINE", c /= 3) : n.getInterpolation() ===
|
|
69693
|
+
n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline === !0 ? (h = "CUBICSPLINE", c /= 3) : n.getInterpolation() === Dr ? h = "STEP" : h = "LINEAR", C.push({
|
|
69691
69694
|
input: this.processAccessor(new Ce(n.times, E)),
|
|
69692
69695
|
output: this.processAccessor(new Ce(n.values, c)),
|
|
69693
69696
|
interpolation: h
|
|
@@ -70553,7 +70556,7 @@ var $iA = Object.defineProperty, AgA = Object.getOwnPropertyDescriptor, VC = (i,
|
|
|
70553
70556
|
function TS(i) {
|
|
70554
70557
|
return i * Math.PI / 180;
|
|
70555
70558
|
}
|
|
70556
|
-
const iJ = 300,
|
|
70559
|
+
const iJ = 300, SB = aA("debuglights");
|
|
70557
70560
|
class VI extends mA {
|
|
70558
70561
|
constructor() {
|
|
70559
70562
|
super(...arguments);
|
|
@@ -70674,16 +70677,16 @@ class VI extends mA {
|
|
|
70674
70677
|
// this.intensity = this._intensity;
|
|
70675
70678
|
// }
|
|
70676
70679
|
awake() {
|
|
70677
|
-
this.color = new wA(this.color ?? 16777215),
|
|
70680
|
+
this.color = new wA(this.color ?? 16777215), SB && console.log(this.name, this);
|
|
70678
70681
|
}
|
|
70679
70682
|
onEnable() {
|
|
70680
|
-
|
|
70683
|
+
SB && console.log("ENABLE LIGHT", this.name), this.createLight(), !this.isBaked && (this.light && (this.light.visible = !0, this.light.intensity = this._intensity, this.selfIsLight || this.light.parent !== this.gameObject && this.gameObject.add(this.light)), this.type === 1 && this.startCoroutine(this.updateMainLightRoutine(), yo.LateUpdate), this._webXRStartedListener = Ge.addEventListener(Jt.XRStarted, this.onWebXRStarted.bind(this)), this._webXREndedListener = Ge.addEventListener(Jt.XRStopped, this.onWebXREnded.bind(this)));
|
|
70681
70684
|
}
|
|
70682
70685
|
onDisable() {
|
|
70683
|
-
|
|
70686
|
+
SB && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1), Ge.removeEventListener(Jt.XRStarted, this._webXRStartedListener), Ge.removeEventListener(Jt.XRStopped, this._webXREndedListener);
|
|
70684
70687
|
}
|
|
70685
70688
|
onWebXRStarted() {
|
|
70686
|
-
this._webARRoot = eA.getComponentInParent(this.gameObject,
|
|
70689
|
+
this._webARRoot = eA.getComponentInParent(this.gameObject, qr) ?? void 0;
|
|
70687
70690
|
}
|
|
70688
70691
|
// private *_updateLightIntensityInARRoutine() {
|
|
70689
70692
|
// while (this.context.isInAR) {
|
|
@@ -70706,7 +70709,7 @@ class VI extends mA {
|
|
|
70706
70709
|
switch (this.type) {
|
|
70707
70710
|
case 1:
|
|
70708
70711
|
const t = new rf(this.color, this.intensity * Math.PI);
|
|
70709
|
-
if (t.position.set(0, 0, -iJ * 0.5).applyQuaternion(this.gameObject.quaternion), this.gameObject.add(t.target), dh(t.target, 0, 0, 0), this.light = t, this.gameObject.position.set(0, 0, 0), this.gameObject.rotation.set(0, 0, 0),
|
|
70712
|
+
if (t.position.set(0, 0, -iJ * 0.5).applyQuaternion(this.gameObject.quaternion), this.gameObject.add(t.target), dh(t.target, 0, 0, 0), this.light = t, this.gameObject.position.set(0, 0, 0), this.gameObject.rotation.set(0, 0, 0), SB) {
|
|
70710
70713
|
const C = new _b(this.light, 0.2, this.color);
|
|
70711
70714
|
this.context.scene.add(C);
|
|
70712
70715
|
}
|
|
@@ -70723,7 +70726,7 @@ class VI extends mA {
|
|
|
70723
70726
|
break;
|
|
70724
70727
|
}
|
|
70725
70728
|
if (this.light) {
|
|
70726
|
-
this._intensity >= 0 ? this.light.intensity = this._intensity : this._intensity = this.light.intensity, this.shadows !== 0 ? this.light.castShadow = !0 : this.light.castShadow = !1, this._shadowResolution !== void 0 && this._shadowResolution > 4 ? (this.light.shadow.mapSize.width = this._shadowResolution, this.light.shadow.mapSize.height = this._shadowResolution) : (this.light.shadow.mapSize.width = 2048, this.light.shadow.mapSize.height = 2048),
|
|
70729
|
+
this._intensity >= 0 ? this.light.intensity = this._intensity : this._intensity = this.light.intensity, this.shadows !== 0 ? this.light.castShadow = !0 : this.light.castShadow = !1, this._shadowResolution !== void 0 && this._shadowResolution > 4 ? (this.light.shadow.mapSize.width = this._shadowResolution, this.light.shadow.mapSize.height = this._shadowResolution) : (this.light.shadow.mapSize.width = 2048, this.light.shadow.mapSize.height = 2048), SB && console.log("Override shadow bias?", this._overrideShadowBiasSettings, this.shadowBias, this.shadowNormalBias), this.light.shadow.bias = this.shadowBias, this.light.shadow.normalBias = this.shadowNormalBias, this.updateShadowSoftHard();
|
|
70727
70730
|
const t = this.light.shadow.camera;
|
|
70728
70731
|
if (t.near = this.shadowNearPlane, this._shadowDistance !== void 0 && typeof this._shadowDistance == "number" ? t.far = this._shadowDistance : t.far = iJ * Math.abs(this.gameObject.scale.z), this.gameObject.scale.set(1, 1, 1), this.shadowWidth !== void 0)
|
|
70729
70732
|
t.left = -this.shadowWidth / 2, t.right = this.shadowWidth / 2;
|
|
@@ -70737,7 +70740,7 @@ class VI extends mA {
|
|
|
70737
70740
|
const g = this.gameObject.scale.y;
|
|
70738
70741
|
t.top *= g, t.bottom *= g;
|
|
70739
70742
|
}
|
|
70740
|
-
this.light.shadow.needsUpdate = !0,
|
|
70743
|
+
this.light.shadow.needsUpdate = !0, SB && this.context.scene.add(new Ob(t)), this.isBaked ? this.light.removeFromParent() : e || this.gameObject.add(this.light);
|
|
70741
70744
|
}
|
|
70742
70745
|
}
|
|
70743
70746
|
*updateMainLightRoutine() {
|
|
@@ -73469,7 +73472,7 @@ var PgA = /* @__PURE__ */ function(i) {
|
|
|
73469
73472
|
fragmentShader: RJ,
|
|
73470
73473
|
transparent: this.settings.transparent,
|
|
73471
73474
|
depthWrite: !this.settings.transparent,
|
|
73472
|
-
blending: this.settings.blending ||
|
|
73475
|
+
blending: this.settings.blending || ur,
|
|
73473
73476
|
side: n
|
|
73474
73477
|
});
|
|
73475
73478
|
} else if (this.settings.renderMode === ue.StretchedBillBoard)
|
|
@@ -73480,7 +73483,7 @@ var PgA = /* @__PURE__ */ function(i) {
|
|
|
73480
73483
|
fragmentShader: RJ,
|
|
73481
73484
|
transparent: this.settings.transparent,
|
|
73482
73485
|
depthWrite: !this.settings.transparent,
|
|
73483
|
-
blending: this.settings.blending ||
|
|
73486
|
+
blending: this.settings.blending || ur
|
|
73484
73487
|
});
|
|
73485
73488
|
else
|
|
73486
73489
|
throw new Error("render mode unavailable");
|
|
@@ -73707,7 +73710,7 @@ var jgA = /* @__PURE__ */ function(i) {
|
|
|
73707
73710
|
transparent: this.settings.transparent,
|
|
73708
73711
|
depthWrite: !this.settings.transparent,
|
|
73709
73712
|
side: Ut,
|
|
73710
|
-
blending: this.settings.blending ||
|
|
73713
|
+
blending: this.settings.blending || ur
|
|
73711
73714
|
});
|
|
73712
73715
|
else
|
|
73713
73716
|
throw new Error("render mode unavailable");
|
|
@@ -74324,7 +74327,7 @@ const ED = class extends mA {
|
|
|
74324
74327
|
const t = A[e];
|
|
74325
74328
|
if (!(t instanceof lp)) {
|
|
74326
74329
|
const g = new lp();
|
|
74327
|
-
|
|
74330
|
+
wr(g, t), A[e] = g;
|
|
74328
74331
|
}
|
|
74329
74332
|
}
|
|
74330
74333
|
this._bursts = A;
|
|
@@ -74335,7 +74338,7 @@ const ED = class extends mA {
|
|
|
74335
74338
|
const t = A[e];
|
|
74336
74339
|
if (!(t instanceof pp)) {
|
|
74337
74340
|
const g = new pp();
|
|
74338
|
-
|
|
74341
|
+
wr(g, t), A[e] = g;
|
|
74339
74342
|
}
|
|
74340
74343
|
}
|
|
74341
74344
|
_c && A.length > 0 && console.log("SubEmitters: ", A, this), this._subEmitterSystems = A;
|
|
@@ -74435,7 +74438,7 @@ Ni([
|
|
|
74435
74438
|
w(Cn)
|
|
74436
74439
|
], Oi.prototype, "emission", 2);
|
|
74437
74440
|
Ni([
|
|
74438
|
-
w(
|
|
74441
|
+
w(_r)
|
|
74439
74442
|
], Oi.prototype, "sizeOverLifetime", 2);
|
|
74440
74443
|
Ni([
|
|
74441
74444
|
w(Fi)
|
|
@@ -74453,7 +74456,7 @@ Ni([
|
|
|
74453
74456
|
w(Wi)
|
|
74454
74457
|
], Oi.prototype, "limitVelocityOverLifetime", 2);
|
|
74455
74458
|
Ni([
|
|
74456
|
-
w(
|
|
74459
|
+
w(Or)
|
|
74457
74460
|
], Oi.prototype, "inheritVelocity", 2);
|
|
74458
74461
|
Ni([
|
|
74459
74462
|
w(QE)
|
|
@@ -74854,7 +74857,7 @@ class bJ extends VG {
|
|
|
74854
74857
|
y[k + 0] = u[D + 0] * f, y[k + 1] = u[D + 1] * f, y[k + 2] = u[D + 2] * f, y[k + 3] = 1;
|
|
74855
74858
|
}, l = function(u, D, y, k) {
|
|
74856
74859
|
const R = u[D + 3], f = Math.pow(2, R - 128) / 255;
|
|
74857
|
-
y[k + 0] =
|
|
74860
|
+
y[k + 0] = Cr.toHalfFloat(Math.min(u[D + 0] * f, 65504)), y[k + 1] = Cr.toHalfFloat(Math.min(u[D + 1] * f, 65504)), y[k + 2] = Cr.toHalfFloat(Math.min(u[D + 2] * f, 65504)), y[k + 3] = Cr.toHalfFloat(1);
|
|
74858
74861
|
}, d = new Uint8Array(A);
|
|
74859
74862
|
d.pos = 0;
|
|
74860
74863
|
const p = E(d);
|
|
@@ -76576,7 +76579,7 @@ Zl.setAttribute("uv", new Ce(new Float32Array([
|
|
|
76576
76579
|
Zl.boundingSphere = new gC();
|
|
76577
76580
|
Zl.computeBoundingSphere = function() {
|
|
76578
76581
|
};
|
|
76579
|
-
const PIA = new
|
|
76582
|
+
const PIA = new Ur();
|
|
76580
76583
|
class Gu {
|
|
76581
76584
|
constructor(A) {
|
|
76582
76585
|
this._mesh = new DA(Zl, A), this._mesh.frustumCulled = !1;
|
|
@@ -77322,7 +77325,7 @@ class ZIA extends dg {
|
|
|
77322
77325
|
}
|
|
77323
77326
|
}
|
|
77324
77327
|
Uint8Array.from(atob(yH), (i) => i.charCodeAt(0));
|
|
77325
|
-
var XIA = Object.defineProperty, $IA = Object.getOwnPropertyDescriptor,
|
|
77328
|
+
var XIA = Object.defineProperty, $IA = Object.getOwnPropertyDescriptor, Vr = (i, A, e, t) => {
|
|
77326
77329
|
for (var g = t > 1 ? void 0 : t ? $IA(A, e) : A, I = i.length - 1, o; I >= 0; I--)
|
|
77327
77330
|
(o = i[I]) && (g = (t ? o(A, e, g) : o(g)) || g);
|
|
77328
77331
|
return t && g && XIA(A, e, g), g;
|
|
@@ -77365,27 +77368,27 @@ class zC extends tI {
|
|
|
77365
77368
|
return I.push(t), I;
|
|
77366
77369
|
}
|
|
77367
77370
|
}
|
|
77368
|
-
|
|
77371
|
+
Vr([
|
|
77369
77372
|
ko(),
|
|
77370
77373
|
w()
|
|
77371
77374
|
], zC.prototype, "gammaCorrection", 2);
|
|
77372
|
-
|
|
77375
|
+
Vr([
|
|
77373
77376
|
w(me)
|
|
77374
77377
|
], zC.prototype, "intensity", 2);
|
|
77375
|
-
|
|
77378
|
+
Vr([
|
|
77376
77379
|
w(me)
|
|
77377
77380
|
], zC.prototype, "falloff", 2);
|
|
77378
|
-
|
|
77381
|
+
Vr([
|
|
77379
77382
|
w(me)
|
|
77380
77383
|
], zC.prototype, "aoRadius", 2);
|
|
77381
|
-
|
|
77384
|
+
Vr([
|
|
77382
77385
|
ko(),
|
|
77383
77386
|
w()
|
|
77384
77387
|
], zC.prototype, "screenspaceRadius", 2);
|
|
77385
|
-
|
|
77388
|
+
Vr([
|
|
77386
77389
|
w(me)
|
|
77387
77390
|
], zC.prototype, "color", 2);
|
|
77388
|
-
|
|
77391
|
+
Vr([
|
|
77389
77392
|
ko(),
|
|
77390
77393
|
w()
|
|
77391
77394
|
], zC.prototype, "quality", 2);
|
|
@@ -77423,7 +77426,7 @@ class yw extends mA {
|
|
|
77423
77426
|
const e = eA.getComponent(this.gameObject, ti);
|
|
77424
77427
|
if (e) {
|
|
77425
77428
|
const t = e.sharedMaterial;
|
|
77426
|
-
t.blending =
|
|
77429
|
+
t.blending = ur, this.applyMaterialOptions(t), t.onBeforeCompile = (g) => {
|
|
77427
77430
|
g.fragmentShader = g.fragmentShader.replace(
|
|
77428
77431
|
"vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;",
|
|
77429
77432
|
`vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
|
|
@@ -77507,19 +77510,19 @@ const GH = (E0 = class extends mA {
|
|
|
77507
77510
|
}
|
|
77508
77511
|
}
|
|
77509
77512
|
}, r(E0, "_invertForward", new kA().setFromAxisAngle(new S(0, 1, 0), Math.PI)), E0);
|
|
77510
|
-
let
|
|
77513
|
+
let jr = GH;
|
|
77511
77514
|
Sw([
|
|
77512
77515
|
w(UA)
|
|
77513
|
-
],
|
|
77516
|
+
], jr.prototype, "target", 2);
|
|
77514
77517
|
Sw([
|
|
77515
77518
|
w()
|
|
77516
|
-
],
|
|
77519
|
+
], jr.prototype, "followFactor", 2);
|
|
77517
77520
|
Sw([
|
|
77518
77521
|
w()
|
|
77519
|
-
],
|
|
77522
|
+
], jr.prototype, "rotateFactor", 2);
|
|
77520
77523
|
Sw([
|
|
77521
77524
|
w()
|
|
77522
|
-
],
|
|
77525
|
+
], jr.prototype, "positionAxes", 2);
|
|
77523
77526
|
class goA extends DA {
|
|
77524
77527
|
constructor(A) {
|
|
77525
77528
|
const e = new IoA(A), t = new Ig(e.image.width * 1e-3, e.image.height * 1e-3), g = new wt({ map: e, toneMapped: !1, transparent: !0 });
|
|
@@ -77679,7 +77682,7 @@ function ooA(i, A, e, t) {
|
|
|
77679
77682
|
}
|
|
77680
77683
|
o(i);
|
|
77681
77684
|
}
|
|
77682
|
-
const dD = new P(),
|
|
77685
|
+
const dD = new P(), kB = { type: "", data: dD };
|
|
77683
77686
|
class CoA extends ho {
|
|
77684
77687
|
constructor(A, e) {
|
|
77685
77688
|
super();
|
|
@@ -77691,7 +77694,7 @@ class CoA extends ho {
|
|
|
77691
77694
|
const c = g.intersectObjects(t.children, !1);
|
|
77692
77695
|
if (c.length > 0) {
|
|
77693
77696
|
const h = c[0], l = h.object, d = h.uv;
|
|
77694
|
-
|
|
77697
|
+
kB.type = Q.type, kB.data.set(d.x, 1 - d.y), l.dispatchEvent(kB);
|
|
77695
77698
|
}
|
|
77696
77699
|
}
|
|
77697
77700
|
o.addEventListener("pointerdown", C), o.addEventListener("pointerup", C), o.addEventListener("pointermove", C), o.addEventListener("mousedown", C), o.addEventListener("mouseup", C), o.addEventListener("mousemove", C), o.addEventListener("click", C);
|
|
@@ -77707,7 +77710,7 @@ class CoA extends ho {
|
|
|
77707
77710
|
const c = g.intersectObjects(t.children, !1);
|
|
77708
77711
|
if (c.length > 0) {
|
|
77709
77712
|
const h = c[0], l = h.object, d = h.uv;
|
|
77710
|
-
|
|
77713
|
+
kB.type = s[Q.type], kB.data.set(d.x, 1 - d.y), l.dispatchEvent(kB);
|
|
77711
77714
|
}
|
|
77712
77715
|
}
|
|
77713
77716
|
const a = A.xr.getController(0);
|
|
@@ -78035,7 +78038,7 @@ class EoA {
|
|
|
78035
78038
|
this.spectator.stopSpectating();
|
|
78036
78039
|
return;
|
|
78037
78040
|
}
|
|
78038
|
-
e !== this.currentObject && (this.currentObject = e, this.view = A, this.follow || (this.follow = eA.addNewComponent(this.cam.gameObject,
|
|
78041
|
+
e !== this.currentObject && (this.currentObject = e, this.view = A, this.follow || (this.follow = eA.addNewComponent(this.cam.gameObject, jr)), this.target || (this.target = new UA()), e.add(this.target), this.follow.enabled = !0, this.follow.target = this.target, UI && console.log("FOLLOW", e), this.context.isInXR ? this.context.removeCamera(this.cam) : this.context.setCurrentCamera(this.cam));
|
|
78039
78042
|
}
|
|
78040
78043
|
disable() {
|
|
78041
78044
|
UI && console.log("STOP FOLLOW", this.currentObject), this.view = void 0, this.currentObject = void 0, this.context.removeCamera(this.cam), this.follow && (this.follow.enabled = !1);
|
|
@@ -78531,7 +78534,7 @@ var GoA = Object.defineProperty, MoA = Object.getOwnPropertyDescriptor, Ad = (i,
|
|
|
78531
78534
|
return t && g && GoA(A, e, g), g;
|
|
78532
78535
|
};
|
|
78533
78536
|
const ZS = "view", XS = aA("debugsyncedroom");
|
|
78534
|
-
class
|
|
78537
|
+
class zr extends mA {
|
|
78535
78538
|
constructor() {
|
|
78536
78539
|
super(...arguments);
|
|
78537
78540
|
r(this, "roomName");
|
|
@@ -78604,19 +78607,19 @@ class jr extends mA {
|
|
|
78604
78607
|
}
|
|
78605
78608
|
Ad([
|
|
78606
78609
|
w()
|
|
78607
|
-
],
|
|
78610
|
+
], zr.prototype, "roomName", 2);
|
|
78608
78611
|
Ad([
|
|
78609
78612
|
w()
|
|
78610
|
-
],
|
|
78613
|
+
], zr.prototype, "urlParameterName", 2);
|
|
78611
78614
|
Ad([
|
|
78612
78615
|
w()
|
|
78613
|
-
],
|
|
78616
|
+
], zr.prototype, "joinRandomRoom", 2);
|
|
78614
78617
|
Ad([
|
|
78615
78618
|
w()
|
|
78616
|
-
],
|
|
78619
|
+
], zr.prototype, "requireRoomParameter", 2);
|
|
78617
78620
|
Ad([
|
|
78618
78621
|
w()
|
|
78619
|
-
],
|
|
78622
|
+
], zr.prototype, "autoRejoin", 2);
|
|
78620
78623
|
function moA() {
|
|
78621
78624
|
const i = aA("testwindowcount") || 0;
|
|
78622
78625
|
i && i > 0 && RoA(i);
|
|
@@ -78971,7 +78974,7 @@ function A0(i, A, e) {
|
|
|
78971
78974
|
return t[g];
|
|
78972
78975
|
return !1;
|
|
78973
78976
|
}
|
|
78974
|
-
const Mu = new Mi(), St = new S(0, 1, 0), PJ = new S(0, 0, 0), WJ = new NA(), mu = new kA(), DD = new kA(), hC = new S(), VJ = new NA(), pc = new S(1, 0, 0),
|
|
78977
|
+
const Mu = new Mi(), St = new S(0, 1, 0), PJ = new S(0, 0, 0), WJ = new NA(), mu = new kA(), DD = new kA(), hC = new S(), VJ = new NA(), pc = new S(1, 0, 0), Va = new S(0, 1, 0), fc = new S(0, 0, 1), Ru = new S(), tc = new S(), ic = new S();
|
|
78975
78978
|
class ToA extends UA {
|
|
78976
78979
|
constructor() {
|
|
78977
78980
|
super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
|
|
@@ -79221,10 +79224,10 @@ class ToA extends UA {
|
|
|
79221
79224
|
o.visible = !0, o.rotation.set(0, 0, 0), o.position.copy(this.worldPosition);
|
|
79222
79225
|
let C;
|
|
79223
79226
|
if (this.camera.isOrthographicCamera ? C = (this.camera.top - this.camera.bottom) / this.camera.zoom : C = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), o.scale.set(1, 1, 1).multiplyScalar(C * this.size / 4), o.tag === "helper") {
|
|
79224
|
-
o.visible = !1, o.name === "AXIS" ? (o.position.copy(this.worldPositionStart), o.visible = !!this.axis, this.axis === "X" && (vt.setFromEuler(Mu.set(0, 0, 0)), o.quaternion.copy(t).multiply(vt), Math.abs(St.copy(pc).applyQuaternion(t).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (vt.setFromEuler(Mu.set(0, 0, Math.PI / 2)), o.quaternion.copy(t).multiply(vt), Math.abs(St.copy(
|
|
79227
|
+
o.visible = !1, o.name === "AXIS" ? (o.position.copy(this.worldPositionStart), o.visible = !!this.axis, this.axis === "X" && (vt.setFromEuler(Mu.set(0, 0, 0)), o.quaternion.copy(t).multiply(vt), Math.abs(St.copy(pc).applyQuaternion(t).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Y" && (vt.setFromEuler(Mu.set(0, 0, Math.PI / 2)), o.quaternion.copy(t).multiply(vt), Math.abs(St.copy(Va).applyQuaternion(t).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "Z" && (vt.setFromEuler(Mu.set(0, Math.PI / 2, 0)), o.quaternion.copy(t).multiply(vt), Math.abs(St.copy(fc).applyQuaternion(t).dot(this.eye)) > 0.9 && (o.visible = !1)), this.axis === "XYZE" && (vt.setFromEuler(Mu.set(0, Math.PI / 2, 0)), St.copy(this.rotationAxis), o.quaternion.setFromRotationMatrix(WJ.lookAt(PJ, St, Va)), o.quaternion.multiply(vt), o.visible = this.dragging), this.axis === "E" && (o.visible = !1)) : o.name === "START" ? (o.position.copy(this.worldPositionStart), o.visible = this.dragging) : o.name === "END" ? (o.position.copy(this.worldPosition), o.visible = this.dragging) : o.name === "DELTA" ? (o.position.copy(this.worldPositionStart), o.quaternion.copy(this.worldQuaternionStart), aI.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), aI.applyQuaternion(this.worldQuaternionStart.clone().invert()), o.scale.copy(aI), o.visible = this.dragging) : (o.quaternion.copy(t), this.dragging ? o.position.copy(this.worldPositionStart) : o.position.copy(this.worldPosition), this.axis && (o.visible = this.axis.search(o.name) !== -1));
|
|
79225
79228
|
continue;
|
|
79226
79229
|
}
|
|
79227
|
-
o.quaternion.copy(t), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(St.copy(pc).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(St.copy(
|
|
79230
|
+
o.quaternion.copy(t), this.mode === "translate" || this.mode === "scale" ? (o.name === "X" && Math.abs(St.copy(pc).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Y" && Math.abs(St.copy(Va).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "Z" && Math.abs(St.copy(fc).applyQuaternion(t).dot(this.eye)) > 0.99 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XY" && Math.abs(St.copy(fc).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "YZ" && Math.abs(St.copy(pc).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1), o.name === "XZ" && Math.abs(St.copy(Va).applyQuaternion(t).dot(this.eye)) < 0.2 && (o.scale.set(1e-10, 1e-10, 1e-10), o.visible = !1)) : this.mode === "rotate" && (mu.copy(t), St.copy(this.eye).applyQuaternion(vt.copy(t).invert()), o.name.search("E") !== -1 && o.quaternion.setFromRotationMatrix(WJ.lookAt(this.eye, PJ, Va)), o.name === "X" && (vt.setFromAxisAngle(pc, Math.atan2(-St.y, St.z)), vt.multiplyQuaternions(mu, vt), o.quaternion.copy(vt)), o.name === "Y" && (vt.setFromAxisAngle(Va, Math.atan2(St.x, St.z)), vt.multiplyQuaternions(mu, vt), o.quaternion.copy(vt)), o.name === "Z" && (vt.setFromAxisAngle(fc, Math.atan2(St.y, St.x)), vt.multiplyQuaternions(mu, vt), o.quaternion.copy(vt))), o.visible = o.visible && (o.name.indexOf("X") === -1 || this.showX), o.visible = o.visible && (o.name.indexOf("Y") === -1 || this.showY), o.visible = o.visible && (o.name.indexOf("Z") === -1 || this.showZ), o.visible = o.visible && (o.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), o.material._color = o.material._color || o.material.color.clone(), o.material._opacity = o.material._opacity || o.material.opacity, o.material.color.copy(o.material._color), o.material.opacity = o.material._opacity, this.enabled && this.axis && (o.name === this.axis || this.axis.split("").some(function(s) {
|
|
79228
79231
|
return o.name === s;
|
|
79229
79232
|
})) && (o.material.color.setHex(16776960), o.material.opacity = 1);
|
|
79230
79233
|
}
|
|
@@ -79240,7 +79243,7 @@ class HoA extends DA {
|
|
|
79240
79243
|
}
|
|
79241
79244
|
updateMatrixWorld(A) {
|
|
79242
79245
|
let e = this.space;
|
|
79243
|
-
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (e = "local"), Ru.copy(pc).applyQuaternion(e === "local" ? this.worldQuaternion : DD), tc.copy(
|
|
79246
|
+
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (e = "local"), Ru.copy(pc).applyQuaternion(e === "local" ? this.worldQuaternion : DD), tc.copy(Va).applyQuaternion(e === "local" ? this.worldQuaternion : DD), ic.copy(fc).applyQuaternion(e === "local" ? this.worldQuaternion : DD), St.copy(tc), this.mode) {
|
|
79244
79247
|
case "translate":
|
|
79245
79248
|
case "scale":
|
|
79246
79249
|
switch (this.axis) {
|
|
@@ -79316,7 +79319,7 @@ class SE extends mA {
|
|
|
79316
79319
|
onControlChangedEvent(e) {
|
|
79317
79320
|
const t = this.orbit;
|
|
79318
79321
|
if (t && (t.enabled = !e.value), e.value) {
|
|
79319
|
-
const g = eA.getComponentInParent(this.gameObject,
|
|
79322
|
+
const g = eA.getComponentInParent(this.gameObject, yr);
|
|
79320
79323
|
g && g.requestOwnership();
|
|
79321
79324
|
}
|
|
79322
79325
|
}
|
|
@@ -79556,7 +79559,7 @@ class dR extends mA {
|
|
|
79556
79559
|
r(this, "forceTextureInitialization", function() {
|
|
79557
79560
|
const e = new wt(), t = new Ig(), g = new uI();
|
|
79558
79561
|
g.add(new DA(t, e));
|
|
79559
|
-
const I = new
|
|
79562
|
+
const I = new Rr();
|
|
79560
79563
|
return function(C, s) {
|
|
79561
79564
|
e.map = s, C.render(g, I);
|
|
79562
79565
|
};
|
|
@@ -80131,25 +80134,25 @@ const sCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80131
80134
|
Camera: jt,
|
|
80132
80135
|
Canvas: AI,
|
|
80133
80136
|
CanvasGroup: Yl,
|
|
80134
|
-
CapsuleCollider:
|
|
80137
|
+
CapsuleCollider: kr,
|
|
80135
80138
|
ChangeMaterialOnClick: ow,
|
|
80136
80139
|
ChangeTransformOnClick: rE,
|
|
80137
80140
|
CharacterController: BE,
|
|
80138
80141
|
CharacterControllerInput: wa,
|
|
80139
80142
|
ChromaticAberration: nw,
|
|
80140
80143
|
Collider: In,
|
|
80141
|
-
ColorAdjustments:
|
|
80144
|
+
ColorAdjustments: Tr,
|
|
80142
80145
|
ColorBySpeedModule: QE,
|
|
80143
80146
|
ColorOverLifetimeModule: Bw,
|
|
80144
|
-
Component:
|
|
80147
|
+
Component: Kr,
|
|
80145
80148
|
ControlTrackHandler: bm,
|
|
80146
|
-
CustomBranding:
|
|
80149
|
+
CustomBranding: Pr,
|
|
80147
80150
|
Deletable: iH,
|
|
80148
80151
|
DeleteBox: jm,
|
|
80149
80152
|
DepthOfField: WC,
|
|
80150
80153
|
DeviceFlag: zm,
|
|
80151
80154
|
DocumentExtension: gH,
|
|
80152
|
-
DragControls:
|
|
80155
|
+
DragControls: Br,
|
|
80153
80156
|
DropListener: Qw,
|
|
80154
80157
|
Duplicatable: cE,
|
|
80155
80158
|
EmissionModule: Cn,
|
|
@@ -80164,18 +80167,18 @@ const sCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80164
80167
|
Fog: Pl,
|
|
80165
80168
|
GltfExport: bn,
|
|
80166
80169
|
GltfExportBox: aH,
|
|
80167
|
-
Gradient:
|
|
80170
|
+
Gradient: Hr,
|
|
80168
80171
|
Graphic: aE,
|
|
80169
80172
|
GraphicRaycaster: LT,
|
|
80170
80173
|
GridHelper: Wl,
|
|
80171
80174
|
GridLayoutGroup: XT,
|
|
80172
80175
|
GroundProjectedEnv: hE,
|
|
80173
|
-
GroupActionModel:
|
|
80176
|
+
GroupActionModel: nr,
|
|
80174
80177
|
HideOnStart: AH,
|
|
80175
80178
|
HingeJoint: cw,
|
|
80176
80179
|
HorizontalLayoutGroup: ZT,
|
|
80177
80180
|
Image: xl,
|
|
80178
|
-
InheritVelocityModule:
|
|
80181
|
+
InheritVelocityModule: Or,
|
|
80179
80182
|
InputField: lE,
|
|
80180
80183
|
Interactable: Gl,
|
|
80181
80184
|
LODGroup: dw,
|
|
@@ -80199,13 +80202,13 @@ const sCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80199
80202
|
OpenURL: jl,
|
|
80200
80203
|
OrbitControls: Da,
|
|
80201
80204
|
Outline: vl,
|
|
80202
|
-
Padding:
|
|
80205
|
+
Padding: xr,
|
|
80203
80206
|
ParticleBurst: lp,
|
|
80204
80207
|
ParticleSubEmitter: aR,
|
|
80205
80208
|
ParticleSystem: Oi,
|
|
80206
80209
|
ParticleSystemRenderer: ya,
|
|
80207
80210
|
PixelationEffect: pw,
|
|
80208
|
-
PlayAnimationOnClick:
|
|
80211
|
+
PlayAnimationOnClick: Yr,
|
|
80209
80212
|
PlayAudioOnClick: _l,
|
|
80210
80213
|
PlayableDirector: Xn,
|
|
80211
80214
|
PlayerColor: kQ,
|
|
@@ -80239,9 +80242,9 @@ const sCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80239
80242
|
SignalTrackHandler: cp,
|
|
80240
80243
|
Size: OT,
|
|
80241
80244
|
SizeBySpeedModule: pI,
|
|
80242
|
-
SizeOverLifetimeModule:
|
|
80245
|
+
SizeOverLifetimeModule: _r,
|
|
80243
80246
|
SkinnedMeshRenderer: Xx,
|
|
80244
|
-
SmoothFollow:
|
|
80247
|
+
SmoothFollow: jr,
|
|
80245
80248
|
SpatialHtml: MH,
|
|
80246
80249
|
SpatialTrigger: kw,
|
|
80247
80250
|
SpatialTriggerReceiver: Ls,
|
|
@@ -80253,8 +80256,8 @@ const sCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80253
80256
|
SpriteSheet: Gw,
|
|
80254
80257
|
SubEmitterSystem: pp,
|
|
80255
80258
|
SyncedCamera: cR,
|
|
80256
|
-
SyncedRoom:
|
|
80257
|
-
SyncedTransform:
|
|
80259
|
+
SyncedRoom: zr,
|
|
80260
|
+
SyncedTransform: yr,
|
|
80258
80261
|
TapGestureTrigger: eH,
|
|
80259
80262
|
TeleportTarget: Fm,
|
|
80260
80263
|
TestRunner: mH,
|
|
@@ -80273,7 +80276,7 @@ const sCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80273
80276
|
UIRaycastUtils: Jh,
|
|
80274
80277
|
UIRootComponent: Wf,
|
|
80275
80278
|
USDZExporter: Ro,
|
|
80276
|
-
USDZText:
|
|
80279
|
+
USDZText: rr,
|
|
80277
80280
|
UsageMarker: Ml,
|
|
80278
80281
|
VRUserState: GC,
|
|
80279
80282
|
VariantAction: oY,
|
|
@@ -80288,7 +80291,7 @@ const sCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
80288
80291
|
VolumeProfile: Zf,
|
|
80289
80292
|
WebAR: gQ,
|
|
80290
80293
|
WebARCameraBackground: dR,
|
|
80291
|
-
WebARSessionRoot:
|
|
80294
|
+
WebARSessionRoot: qr,
|
|
80292
80295
|
WebXR: Ge,
|
|
80293
80296
|
WebXRAvatar: Ns,
|
|
80294
80297
|
WebXRController: ai,
|
|
@@ -80367,7 +80370,7 @@ const ng = (nc = class extends mA {
|
|
|
80367
80370
|
if (A instanceof UA) {
|
|
80368
80371
|
const e = eA.getComponentInParent(A, ng);
|
|
80369
80372
|
return (e == null ? void 0 : e.isLocalPlayer) ?? !1;
|
|
80370
|
-
} else if (A instanceof
|
|
80373
|
+
} else if (A instanceof Kr) {
|
|
80371
80374
|
const e = eA.getComponentInParent(A.gameObject, ng);
|
|
80372
80375
|
return (e == null ? void 0 : e.isLocalPlayer) ?? !1;
|
|
80373
80376
|
}
|
|
@@ -80490,25 +80493,25 @@ H.add("CallInfo", kh);
|
|
|
80490
80493
|
H.add("Camera", jt);
|
|
80491
80494
|
H.add("Canvas", AI);
|
|
80492
80495
|
H.add("CanvasGroup", Yl);
|
|
80493
|
-
H.add("CapsuleCollider",
|
|
80496
|
+
H.add("CapsuleCollider", kr);
|
|
80494
80497
|
H.add("ChangeMaterialOnClick", ow);
|
|
80495
80498
|
H.add("ChangeTransformOnClick", rE);
|
|
80496
80499
|
H.add("CharacterController", BE);
|
|
80497
80500
|
H.add("CharacterControllerInput", wa);
|
|
80498
80501
|
H.add("ChromaticAberration", nw);
|
|
80499
80502
|
H.add("Collider", In);
|
|
80500
|
-
H.add("ColorAdjustments",
|
|
80503
|
+
H.add("ColorAdjustments", Tr);
|
|
80501
80504
|
H.add("ColorBySpeedModule", QE);
|
|
80502
80505
|
H.add("ColorOverLifetimeModule", Bw);
|
|
80503
|
-
H.add("Component",
|
|
80506
|
+
H.add("Component", Kr);
|
|
80504
80507
|
H.add("ControlTrackHandler", bm);
|
|
80505
|
-
H.add("CustomBranding",
|
|
80508
|
+
H.add("CustomBranding", Pr);
|
|
80506
80509
|
H.add("Deletable", iH);
|
|
80507
80510
|
H.add("DeleteBox", jm);
|
|
80508
80511
|
H.add("DepthOfField", WC);
|
|
80509
80512
|
H.add("DeviceFlag", zm);
|
|
80510
80513
|
H.add("DocumentExtension", gH);
|
|
80511
|
-
H.add("DragControls",
|
|
80514
|
+
H.add("DragControls", Br);
|
|
80512
80515
|
H.add("DropListener", Qw);
|
|
80513
80516
|
H.add("Duplicatable", cE);
|
|
80514
80517
|
H.add("EmissionModule", Cn);
|
|
@@ -80523,18 +80526,18 @@ H.add("FlyControls", sH);
|
|
|
80523
80526
|
H.add("Fog", Pl);
|
|
80524
80527
|
H.add("GltfExport", bn);
|
|
80525
80528
|
H.add("GltfExportBox", aH);
|
|
80526
|
-
H.add("Gradient",
|
|
80529
|
+
H.add("Gradient", Hr);
|
|
80527
80530
|
H.add("Graphic", aE);
|
|
80528
80531
|
H.add("GraphicRaycaster", LT);
|
|
80529
80532
|
H.add("GridHelper", Wl);
|
|
80530
80533
|
H.add("GridLayoutGroup", XT);
|
|
80531
80534
|
H.add("GroundProjectedEnv", hE);
|
|
80532
|
-
H.add("GroupActionModel",
|
|
80535
|
+
H.add("GroupActionModel", nr);
|
|
80533
80536
|
H.add("HideOnStart", AH);
|
|
80534
80537
|
H.add("HingeJoint", cw);
|
|
80535
80538
|
H.add("HorizontalLayoutGroup", ZT);
|
|
80536
80539
|
H.add("Image", xl);
|
|
80537
|
-
H.add("InheritVelocityModule",
|
|
80540
|
+
H.add("InheritVelocityModule", Or);
|
|
80538
80541
|
H.add("InputField", lE);
|
|
80539
80542
|
H.add("Interactable", Gl);
|
|
80540
80543
|
H.add("Light", VI);
|
|
@@ -80558,14 +80561,14 @@ H.add("OffsetConstraint", DE);
|
|
|
80558
80561
|
H.add("OpenURL", jl);
|
|
80559
80562
|
H.add("OrbitControls", Da);
|
|
80560
80563
|
H.add("Outline", vl);
|
|
80561
|
-
H.add("Padding",
|
|
80564
|
+
H.add("Padding", xr);
|
|
80562
80565
|
H.add("ParticleBurst", lp);
|
|
80563
80566
|
H.add("ParticleSubEmitter", aR);
|
|
80564
80567
|
H.add("ParticleSystem", Oi);
|
|
80565
80568
|
H.add("ParticleSystemRenderer", ya);
|
|
80566
80569
|
H.add("PixelationEffect", pw);
|
|
80567
80570
|
H.add("PlayableDirector", Xn);
|
|
80568
|
-
H.add("PlayAnimationOnClick",
|
|
80571
|
+
H.add("PlayAnimationOnClick", Yr);
|
|
80569
80572
|
H.add("PlayAudioOnClick", _l);
|
|
80570
80573
|
H.add("PlayerColor", kQ);
|
|
80571
80574
|
H.add("PlayerState", Vc);
|
|
@@ -80601,9 +80604,9 @@ H.add("SignalReceiverEvent", Jl);
|
|
|
80601
80604
|
H.add("SignalTrackHandler", cp);
|
|
80602
80605
|
H.add("Size", OT);
|
|
80603
80606
|
H.add("SizeBySpeedModule", pI);
|
|
80604
|
-
H.add("SizeOverLifetimeModule",
|
|
80607
|
+
H.add("SizeOverLifetimeModule", _r);
|
|
80605
80608
|
H.add("SkinnedMeshRenderer", Xx);
|
|
80606
|
-
H.add("SmoothFollow",
|
|
80609
|
+
H.add("SmoothFollow", jr);
|
|
80607
80610
|
H.add("SpatialHtml", MH);
|
|
80608
80611
|
H.add("SpatialTrigger", kw);
|
|
80609
80612
|
H.add("SpatialTriggerReceiver", Ls);
|
|
@@ -80615,8 +80618,8 @@ H.add("SpriteRenderer", nn);
|
|
|
80615
80618
|
H.add("SpriteSheet", Gw);
|
|
80616
80619
|
H.add("SubEmitterSystem", pp);
|
|
80617
80620
|
H.add("SyncedCamera", cR);
|
|
80618
|
-
H.add("SyncedRoom",
|
|
80619
|
-
H.add("SyncedTransform",
|
|
80621
|
+
H.add("SyncedRoom", zr);
|
|
80622
|
+
H.add("SyncedTransform", yr);
|
|
80620
80623
|
H.add("TapGestureTrigger", eH);
|
|
80621
80624
|
H.add("TeleportTarget", Fm);
|
|
80622
80625
|
H.add("TestRunner", mH);
|
|
@@ -80636,7 +80639,7 @@ H.add("UIRaycastUtils", Jh);
|
|
|
80636
80639
|
H.add("UIRootComponent", Wf);
|
|
80637
80640
|
H.add("UsageMarker", Ml);
|
|
80638
80641
|
H.add("USDZExporter", Ro);
|
|
80639
|
-
H.add("USDZText",
|
|
80642
|
+
H.add("USDZText", rr);
|
|
80640
80643
|
H.add("VariantAction", oY);
|
|
80641
80644
|
H.add("VelocityOverLifetimeModule", gi);
|
|
80642
80645
|
H.add("VerticalLayoutGroup", zT);
|
|
@@ -80650,7 +80653,7 @@ H.add("VolumeProfile", Zf);
|
|
|
80650
80653
|
H.add("VRUserState", GC);
|
|
80651
80654
|
H.add("WebAR", gQ);
|
|
80652
80655
|
H.add("WebARCameraBackground", dR);
|
|
80653
|
-
H.add("WebARSessionRoot",
|
|
80656
|
+
H.add("WebARSessionRoot", qr);
|
|
80654
80657
|
H.add("WebXR", Ge);
|
|
80655
80658
|
H.add("WebXRAvatar", Ns);
|
|
80656
80659
|
H.add("WebXRController", ai);
|
|
@@ -80734,7 +80737,7 @@ async function oG(i, A, e, t) {
|
|
|
80734
80737
|
const C = H.get(o.name);
|
|
80735
80738
|
if (C != null) {
|
|
80736
80739
|
const s = new C();
|
|
80737
|
-
s.sourceId = i.gltfId,
|
|
80740
|
+
s.sourceId = i.gltfId, wr(s, o, i.implementationInformation), "guid" in o && (s[Wu] = o.guid), OQ(A, s, !1), e.push({ instance: s, compData: o, obj: A }), s.isCamera && i.context && i.context.mainCamera === null && s.tag === "MainCamera" && i.context.setCurrentCamera(s);
|
|
80738
80741
|
} else
|
|
80739
80742
|
bH && console.debug("unknown component: " + o.name), gc.includes(o.name) || gc.push(o.name);
|
|
80740
80743
|
} catch (C) {
|
|
@@ -80857,7 +80860,7 @@ function ZsA(i, A = null) {
|
|
|
80857
80860
|
return null;
|
|
80858
80861
|
}
|
|
80859
80862
|
Tv(LH);
|
|
80860
|
-
const fg = aA("debugwebcomponent"), zJ = "needle-engine", YH = "vr", TH = "desktop", wCA = [
|
|
80863
|
+
const fg = aA("debugwebcomponent"), zJ = "needle-engine", YH = "vr", TH = "desktop", wCA = [Xa, YH, TH], Ic = "ar-session-active", oc = "desktop-session-active", yCA = [
|
|
80861
80864
|
"hash",
|
|
80862
80865
|
"src",
|
|
80863
80866
|
"camera-controls",
|
|
@@ -81099,7 +81102,7 @@ class HH extends HTMLElement {
|
|
|
81099
81102
|
onSetupAR() {
|
|
81100
81103
|
this.classList.add(Ic), this.classList.remove(oc);
|
|
81101
81104
|
const e = this.getAROverlayContainer();
|
|
81102
|
-
e && (e.classList.add(Ic), e.classList.remove(oc)), this.foreachHtmlElement((t) => this.setupElementsForMode(t,
|
|
81105
|
+
e && (e.classList.add(Ic), e.classList.remove(oc)), this.foreachHtmlElement((t) => this.setupElementsForMode(t, Xa));
|
|
81103
81106
|
}
|
|
81104
81107
|
onSetupVR() {
|
|
81105
81108
|
this.classList.remove(Ic), this.classList.remove(oc), this.foreachHtmlElement((e) => this.setupElementsForMode(e, YH));
|
|
@@ -83252,7 +83255,7 @@ class _e {
|
|
|
83252
83255
|
A.x = e.x, A.y = e.y, A.z = e.z, A.w = e.w;
|
|
83253
83256
|
}
|
|
83254
83257
|
}
|
|
83255
|
-
var Og, Si, Up, rI,
|
|
83258
|
+
var Og, Si, Up, rI, Gr, Xe, MQ, _n, Hh, _h, Fp, Np;
|
|
83256
83259
|
(function(i) {
|
|
83257
83260
|
i[i.Dynamic = 0] = "Dynamic", i[i.Fixed = 1] = "Fixed", i[i.KinematicPositionBased = 2] = "KinematicPositionBased", i[i.KinematicVelocityBased = 3] = "KinematicVelocityBased";
|
|
83258
83261
|
})(Og || (Og = {}));
|
|
@@ -84062,20 +84065,20 @@ class HR {
|
|
|
84062
84065
|
return CA.fromRaw(this.raw.solver_contact_tangent_velocity(A));
|
|
84063
84066
|
}
|
|
84064
84067
|
}
|
|
84065
|
-
class
|
|
84068
|
+
class Mr {
|
|
84066
84069
|
constructor(A, e, t, g, I) {
|
|
84067
84070
|
this.distance = A, this.point1 = e, this.point2 = t, this.normal1 = g, this.normal2 = I;
|
|
84068
84071
|
}
|
|
84069
84072
|
static fromRaw(A) {
|
|
84070
84073
|
if (!A)
|
|
84071
84074
|
return null;
|
|
84072
|
-
const e = new
|
|
84075
|
+
const e = new Mr(A.distance(), CA.fromRaw(A.point1()), CA.fromRaw(A.point2()), CA.fromRaw(A.normal1()), CA.fromRaw(A.normal2()));
|
|
84073
84076
|
return A.free(), e;
|
|
84074
84077
|
}
|
|
84075
84078
|
}
|
|
84076
84079
|
(function(i) {
|
|
84077
84080
|
i[i.Vertex = 0] = "Vertex", i[i.Edge = 1] = "Edge", i[i.Face = 2] = "Face", i[i.Unknown = 3] = "Unknown";
|
|
84078
|
-
})(
|
|
84081
|
+
})(Gr || (Gr = {}));
|
|
84079
84082
|
class ME {
|
|
84080
84083
|
constructor(A, e) {
|
|
84081
84084
|
this.point = A, this.isInside = e;
|
|
@@ -84089,7 +84092,7 @@ class ME {
|
|
|
84089
84092
|
}
|
|
84090
84093
|
class mQ {
|
|
84091
84094
|
constructor(A, e, t, g, I) {
|
|
84092
|
-
this.featureType =
|
|
84095
|
+
this.featureType = Gr.Unknown, this.featureId = void 0, this.collider = A, this.point = e, this.isInside = t, I !== void 0 && (this.featureId = I), g !== void 0 && (this.featureType = g);
|
|
84093
84096
|
}
|
|
84094
84097
|
static fromRaw(A, e) {
|
|
84095
84098
|
if (!e)
|
|
@@ -84108,7 +84111,7 @@ class _R {
|
|
|
84108
84111
|
}
|
|
84109
84112
|
class mE {
|
|
84110
84113
|
constructor(A, e, t, g) {
|
|
84111
|
-
this.featureType =
|
|
84114
|
+
this.featureType = Gr.Unknown, this.featureId = void 0, this.toi = A, this.normal = e, g !== void 0 && (this.featureId = g), t !== void 0 && (this.featureType = t);
|
|
84112
84115
|
}
|
|
84113
84116
|
static fromRaw(A) {
|
|
84114
84117
|
if (!A)
|
|
@@ -84119,7 +84122,7 @@ class mE {
|
|
|
84119
84122
|
}
|
|
84120
84123
|
class RQ {
|
|
84121
84124
|
constructor(A, e, t, g, I) {
|
|
84122
|
-
this.featureType =
|
|
84125
|
+
this.featureType = Gr.Unknown, this.featureId = void 0, this.collider = A, this.toi = e, this.normal = t, I !== void 0 && (this.featureId = I), g !== void 0 && (this.featureType = g);
|
|
84123
84126
|
}
|
|
84124
84127
|
static fromRaw(A, e) {
|
|
84125
84128
|
if (!e)
|
|
@@ -84139,18 +84142,18 @@ class ed {
|
|
|
84139
84142
|
return e.free(), t;
|
|
84140
84143
|
}
|
|
84141
84144
|
}
|
|
84142
|
-
class
|
|
84145
|
+
class Zr {
|
|
84143
84146
|
constructor(A, e, t, g, I) {
|
|
84144
84147
|
this.toi = A, this.witness1 = e, this.witness2 = t, this.normal1 = g, this.normal2 = I;
|
|
84145
84148
|
}
|
|
84146
84149
|
static fromRaw(A, e) {
|
|
84147
84150
|
if (!e)
|
|
84148
84151
|
return null;
|
|
84149
|
-
const t = new
|
|
84152
|
+
const t = new Zr(e.toi(), CA.fromRaw(e.witness1()), CA.fromRaw(e.witness2()), CA.fromRaw(e.normal1()), CA.fromRaw(e.normal2()));
|
|
84150
84153
|
return e.free(), t;
|
|
84151
84154
|
}
|
|
84152
84155
|
}
|
|
84153
|
-
class RE extends
|
|
84156
|
+
class RE extends Zr {
|
|
84154
84157
|
constructor(A, e, t, g, I, o) {
|
|
84155
84158
|
super(e, t, g, I, o), this.collider = A;
|
|
84156
84159
|
}
|
|
@@ -84204,7 +84207,7 @@ class Vi {
|
|
|
84204
84207
|
}
|
|
84205
84208
|
}
|
|
84206
84209
|
castShape(A, e, t, g, I, o, C, s) {
|
|
84207
|
-
let n = CA.intoRaw(A), a = _e.intoRaw(e), B = CA.intoRaw(t), Q = CA.intoRaw(I), E = _e.intoRaw(o), c = CA.intoRaw(C), h = this.intoRaw(), l = g.intoRaw(), d =
|
|
84210
|
+
let n = CA.intoRaw(A), a = _e.intoRaw(e), B = CA.intoRaw(t), Q = CA.intoRaw(I), E = _e.intoRaw(o), c = CA.intoRaw(C), h = this.intoRaw(), l = g.intoRaw(), d = Zr.fromRaw(null, h.castShape(n, a, B, l, Q, E, c, s));
|
|
84208
84211
|
return n.free(), a.free(), B.free(), Q.free(), E.free(), c.free(), h.free(), l.free(), d;
|
|
84209
84212
|
}
|
|
84210
84213
|
intersectsShape(A, e, t, g, I) {
|
|
@@ -84212,7 +84215,7 @@ class Vi {
|
|
|
84212
84215
|
return o.free(), C.free(), s.free(), n.free(), a.free(), B.free(), Q;
|
|
84213
84216
|
}
|
|
84214
84217
|
contactShape(A, e, t, g, I, o) {
|
|
84215
|
-
let C = CA.intoRaw(A), s = _e.intoRaw(e), n = CA.intoRaw(g), a = _e.intoRaw(I), B = this.intoRaw(), Q = t.intoRaw(), E =
|
|
84218
|
+
let C = CA.intoRaw(A), s = _e.intoRaw(e), n = CA.intoRaw(g), a = _e.intoRaw(I), B = this.intoRaw(), Q = t.intoRaw(), E = Mr.fromRaw(B.contactShape(C, s, Q, n, a, o));
|
|
84216
84219
|
return C.free(), s.free(), n.free(), a.free(), B.free(), Q.free(), E;
|
|
84217
84220
|
}
|
|
84218
84221
|
containsPoint(A, e, t) {
|
|
@@ -84547,7 +84550,7 @@ class Vh {
|
|
|
84547
84550
|
return t.free(), g.free(), I;
|
|
84548
84551
|
}
|
|
84549
84552
|
castShape(A, e, t, g, I, o) {
|
|
84550
|
-
let C = CA.intoRaw(A), s = CA.intoRaw(t), n = _e.intoRaw(g), a = CA.intoRaw(I), B = e.intoRaw(), Q =
|
|
84553
|
+
let C = CA.intoRaw(A), s = CA.intoRaw(t), n = _e.intoRaw(g), a = CA.intoRaw(I), B = e.intoRaw(), Q = Zr.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, C, B, s, n, a, o));
|
|
84551
84554
|
return C.free(), s.free(), n.free(), a.free(), B.free(), Q;
|
|
84552
84555
|
}
|
|
84553
84556
|
castCollider(A, e, t, g) {
|
|
@@ -84559,11 +84562,11 @@ class Vh {
|
|
|
84559
84562
|
return g.free(), I.free(), o.free(), C;
|
|
84560
84563
|
}
|
|
84561
84564
|
contactShape(A, e, t, g) {
|
|
84562
|
-
let I = CA.intoRaw(e), o = _e.intoRaw(t), C = A.intoRaw(), s =
|
|
84565
|
+
let I = CA.intoRaw(e), o = _e.intoRaw(t), C = A.intoRaw(), s = Mr.fromRaw(this.colliderSet.raw.coContactShape(this.handle, C, I, o, g));
|
|
84563
84566
|
return I.free(), o.free(), C.free(), s;
|
|
84564
84567
|
}
|
|
84565
84568
|
contactCollider(A, e) {
|
|
84566
|
-
return
|
|
84569
|
+
return Mr.fromRaw(this.colliderSet.raw.coContactCollider(this.handle, A.handle, e));
|
|
84567
84570
|
}
|
|
84568
84571
|
castRay(A, e, t) {
|
|
84569
84572
|
let g = CA.intoRaw(A.origin), I = CA.intoRaw(A.dir), o = this.colliderSet.raw.coCastRay(this.handle, g, I, e, t);
|
|
@@ -85088,8 +85091,8 @@ for (var FCA = { byteLength: function(i) {
|
|
|
85088
85091
|
for (var A, e = i.length, t = e % 3, g = [], I = 16383, o = 0, C = e - t; o < C; o += I)
|
|
85089
85092
|
g.push(JCA(i, o, o + I > C ? C : o + I));
|
|
85090
85093
|
return t === 1 ? (A = i[e - 1], g.push(yC[A >> 2] + yC[A << 4 & 63] + "==")) : t === 2 && (A = (i[e - 2] << 8) + i[e - 1], g.push(yC[A >> 10] + yC[A >> 4 & 63] + yC[A << 2 & 63] + "=")), g.join("");
|
|
85091
|
-
} }, yC = [], Io = [], NCA = typeof Uint8Array < "u" ? Uint8Array : Array, g0 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
85092
|
-
yC[
|
|
85094
|
+
} }, yC = [], Io = [], NCA = typeof Uint8Array < "u" ? Uint8Array : Array, g0 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", GB = 0, KCA = g0.length; GB < KCA; ++GB)
|
|
85095
|
+
yC[GB] = g0[GB], Io[g0.charCodeAt(GB)] = GB;
|
|
85093
85096
|
function Aq(i) {
|
|
85094
85097
|
var A = i.length;
|
|
85095
85098
|
if (A % 4 > 0)
|
|
@@ -85135,8 +85138,8 @@ var qCA = Object.freeze({ __proto__: null, version: jH, Vector3: kR, VectorOps:
|
|
|
85135
85138
|
}, Collider: Vh, get MassPropsMode() {
|
|
85136
85139
|
return _n;
|
|
85137
85140
|
}, ColliderDesc: Rt, ColliderSet: OR, get FeatureType() {
|
|
85138
|
-
return
|
|
85139
|
-
}, Ray: _R, RayIntersection: mE, RayColliderIntersection: RQ, RayColliderToi: ed, PointProjection: ME, PointColliderProjection: mQ, ShapeTOI:
|
|
85141
|
+
return Gr;
|
|
85142
|
+
}, Ray: _R, RayIntersection: mE, RayColliderIntersection: RQ, RayColliderToi: ed, PointProjection: ME, PointColliderProjection: mQ, ShapeTOI: Zr, ShapeColliderTOI: RE, ShapeContact: Mr, World: UE, PhysicsPipeline: PR, SerializationPipeline: Kp, get ActiveEvents() {
|
|
85140
85143
|
return _h;
|
|
85141
85144
|
}, TempContactForceEvent: zR, EventQueue: ZR, get ActiveHooks() {
|
|
85142
85145
|
return Fp;
|
|
@@ -85174,7 +85177,7 @@ const bCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
85174
85177
|
DebugRenderPipeline: jR,
|
|
85175
85178
|
EventQueue: ZR,
|
|
85176
85179
|
get FeatureType() {
|
|
85177
|
-
return
|
|
85180
|
+
return Gr;
|
|
85178
85181
|
},
|
|
85179
85182
|
FixedImpulseJoint: mR,
|
|
85180
85183
|
FixedMultibodyJoint: KR,
|
|
@@ -85229,8 +85232,8 @@ const bCA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
85229
85232
|
SerializationPipeline: Kp,
|
|
85230
85233
|
Shape: Vi,
|
|
85231
85234
|
ShapeColliderTOI: RE,
|
|
85232
|
-
ShapeContact:
|
|
85233
|
-
ShapeTOI:
|
|
85235
|
+
ShapeContact: Mr,
|
|
85236
|
+
ShapeTOI: Zr,
|
|
85234
85237
|
get ShapeType() {
|
|
85235
85238
|
return Xe;
|
|
85236
85239
|
},
|
|
@@ -85256,7 +85259,7 @@ let os;
|
|
|
85256
85259
|
globalThis.true = globalThis.true !== void 0 ? globalThis.true : !0;
|
|
85257
85260
|
yg && console.log("Use Rapier", !0, globalThis.true);
|
|
85258
85261
|
Pt.registerCallback(Pg.ContextCreationStart, (i) => {
|
|
85259
|
-
yg && console.log("Register rapier physics backend"), i.context.physics.engine = new
|
|
85262
|
+
yg && console.log("Register rapier physics backend"), i.context.physics.engine = new ja(), i.context.physics.engine.initialize(i.context);
|
|
85260
85263
|
});
|
|
85261
85264
|
const gh = class {
|
|
85262
85265
|
constructor() {
|
|
@@ -85715,8 +85718,8 @@ const gh = class {
|
|
|
85715
85718
|
g.elements[0] = 1, g.elements[5] = 1, g.elements[10] = 1, I.elements[0] = 1, I.elements[5] = 1, I.elements[10] = 1, t.copy(I).premultiply(g.invert()).invert();
|
|
85716
85719
|
}
|
|
85717
85720
|
};
|
|
85718
|
-
let
|
|
85719
|
-
r(
|
|
85721
|
+
let ja = gh;
|
|
85722
|
+
r(ja, "_didLoadPhysicsEngine", !1), r(ja, "_matricesBuffer", []), r(ja, "centerConnectionPos", { x: 0, y: 0, z: 0 }), r(ja, "centerConnectionRot", { x: 0, y: 0, z: 0, w: 1 });
|
|
85720
85723
|
class xCA {
|
|
85721
85724
|
constructor(A, e) {
|
|
85722
85725
|
r(this, "world");
|
|
@@ -86022,7 +86025,7 @@ export {
|
|
|
86022
86025
|
jt as Camera,
|
|
86023
86026
|
AI as Canvas,
|
|
86024
86027
|
Yl as CanvasGroup,
|
|
86025
|
-
|
|
86028
|
+
kr as CapsuleCollider,
|
|
86026
86029
|
ow as ChangeMaterialOnClick,
|
|
86027
86030
|
rE as ChangeTransformOnClick,
|
|
86028
86031
|
BE as CharacterController,
|
|
@@ -86034,10 +86037,10 @@ export {
|
|
|
86034
86037
|
In as Collider,
|
|
86035
86038
|
mCA as Collision,
|
|
86036
86039
|
em as CollisionDetectionMode,
|
|
86037
|
-
|
|
86040
|
+
Tr as ColorAdjustments,
|
|
86038
86041
|
QE as ColorBySpeedModule,
|
|
86039
86042
|
Bw as ColorOverLifetimeModule,
|
|
86040
|
-
|
|
86043
|
+
Kr as Component,
|
|
86041
86044
|
kf as ComponentEvents,
|
|
86042
86045
|
Gf as ComponentLifecycleEvents,
|
|
86043
86046
|
wV as ConnectionEvents,
|
|
@@ -86049,7 +86052,7 @@ export {
|
|
|
86049
86052
|
bm as ControlTrackHandler,
|
|
86050
86053
|
Kn as ControllerEvents,
|
|
86051
86054
|
Hc as ControllerType,
|
|
86052
|
-
|
|
86055
|
+
Pr as CustomBranding,
|
|
86053
86056
|
eo as CustomShader,
|
|
86054
86057
|
dk as DefaultReflectionMode,
|
|
86055
86058
|
iH as Deletable,
|
|
@@ -86057,7 +86060,7 @@ export {
|
|
|
86057
86060
|
WC as DepthOfField,
|
|
86058
86061
|
zm as DeviceFlag,
|
|
86059
86062
|
gH as DocumentExtension,
|
|
86060
|
-
|
|
86063
|
+
Br as DragControls,
|
|
86061
86064
|
Qw as DropListener,
|
|
86062
86065
|
cE as Duplicatable,
|
|
86063
86066
|
hS as EXTENSION_NAME,
|
|
@@ -86082,14 +86085,14 @@ export {
|
|
|
86082
86085
|
aH as GltfExportBox,
|
|
86083
86086
|
oQ as GltfLoadEvent,
|
|
86084
86087
|
uCA as GltfLoadEventType,
|
|
86085
|
-
|
|
86088
|
+
Hr as Gradient,
|
|
86086
86089
|
aE as Graphic,
|
|
86087
86090
|
LT as GraphicRaycaster,
|
|
86088
86091
|
go as Graphics,
|
|
86089
86092
|
Wl as GridHelper,
|
|
86090
86093
|
XT as GridLayoutGroup,
|
|
86091
86094
|
hE as GroundProjectedEnv,
|
|
86092
|
-
|
|
86095
|
+
nr as GroupActionModel,
|
|
86093
86096
|
nj as HideFlags,
|
|
86094
86097
|
AH as HideOnStart,
|
|
86095
86098
|
cw as HingeJoint,
|
|
@@ -86098,7 +86101,7 @@ export {
|
|
|
86098
86101
|
xl as Image,
|
|
86099
86102
|
qc as ImageReference,
|
|
86100
86103
|
qZ as ImageReferenceSerializer,
|
|
86101
|
-
|
|
86104
|
+
Or as InheritVelocityModule,
|
|
86102
86105
|
BW as Input,
|
|
86103
86106
|
cs as InputEvents,
|
|
86104
86107
|
lE as InputField,
|
|
@@ -86145,7 +86148,7 @@ export {
|
|
|
86145
86148
|
vl as Outline,
|
|
86146
86149
|
yV as OwnershipEvent,
|
|
86147
86150
|
EM as OwnershipModel,
|
|
86148
|
-
|
|
86151
|
+
xr as Padding,
|
|
86149
86152
|
lp as ParticleBurst,
|
|
86150
86153
|
aR as ParticleSubEmitter,
|
|
86151
86154
|
Oi as ParticleSystem,
|
|
@@ -86153,7 +86156,7 @@ export {
|
|
|
86153
86156
|
RW as Physics,
|
|
86154
86157
|
ns as PhysicsMaterialCombine,
|
|
86155
86158
|
pw as PixelationEffect,
|
|
86156
|
-
|
|
86159
|
+
Yr as PlayAnimationOnClick,
|
|
86157
86160
|
_l as PlayAudioOnClick,
|
|
86158
86161
|
Xn as PlayableDirector,
|
|
86159
86162
|
kQ as PlayerColor,
|
|
@@ -86171,7 +86174,7 @@ export {
|
|
|
86171
86174
|
pH as PrimitiveType,
|
|
86172
86175
|
M9 as ProgressiveLoadingInfo,
|
|
86173
86176
|
Ft as RGBAColor,
|
|
86174
|
-
|
|
86177
|
+
ja as RapierPhysics,
|
|
86175
86178
|
Om as RawImage,
|
|
86176
86179
|
HC as RaycastOptions,
|
|
86177
86180
|
Kl as Raycaster,
|
|
@@ -86180,7 +86183,7 @@ export {
|
|
|
86180
86183
|
Sl as ReflectionProbe,
|
|
86181
86184
|
zM as RegisteredAnimationInfo,
|
|
86182
86185
|
Ca as RemoteSkybox,
|
|
86183
|
-
|
|
86186
|
+
lr as RenderTexture,
|
|
86184
86187
|
L9 as RenderTextureSerializer,
|
|
86185
86188
|
ti as Renderer,
|
|
86186
86189
|
bZ as RendererData,
|
|
@@ -86205,9 +86208,9 @@ export {
|
|
|
86205
86208
|
cp as SignalTrackHandler,
|
|
86206
86209
|
OT as Size,
|
|
86207
86210
|
pI as SizeBySpeedModule,
|
|
86208
|
-
|
|
86211
|
+
_r as SizeOverLifetimeModule,
|
|
86209
86212
|
Xx as SkinnedMeshRenderer,
|
|
86210
|
-
|
|
86213
|
+
jr as SmoothFollow,
|
|
86211
86214
|
MH as SpatialHtml,
|
|
86212
86215
|
kw as SpatialTrigger,
|
|
86213
86216
|
Ls as SpatialTriggerReceiver,
|
|
@@ -86222,8 +86225,8 @@ export {
|
|
|
86222
86225
|
YsA as StateMachineBehaviour,
|
|
86223
86226
|
pp as SubEmitterSystem,
|
|
86224
86227
|
cR as SyncedCamera,
|
|
86225
|
-
|
|
86226
|
-
|
|
86228
|
+
zr as SyncedRoom,
|
|
86229
|
+
yr as SyncedTransform,
|
|
86227
86230
|
eH as TapGestureTrigger,
|
|
86228
86231
|
Fm as TeleportTarget,
|
|
86229
86232
|
mH as TestRunner,
|
|
@@ -86247,7 +86250,7 @@ export {
|
|
|
86247
86250
|
Wf as UIRootComponent,
|
|
86248
86251
|
zo as USDObject,
|
|
86249
86252
|
Ro as USDZExporter,
|
|
86250
|
-
|
|
86253
|
+
rr as USDZText,
|
|
86251
86254
|
FN as Upload_Result,
|
|
86252
86255
|
v9 as UriSerializer,
|
|
86253
86256
|
Ml as UsageMarker,
|
|
@@ -86270,7 +86273,7 @@ export {
|
|
|
86270
86273
|
oh as Watch,
|
|
86271
86274
|
gQ as WebAR,
|
|
86272
86275
|
dR as WebARCameraBackground,
|
|
86273
|
-
|
|
86276
|
+
qr as WebARSessionRoot,
|
|
86274
86277
|
Ge as WebXR,
|
|
86275
86278
|
Ns as WebXRAvatar,
|
|
86276
86279
|
ai as WebXRController,
|
|
@@ -86303,7 +86306,7 @@ export {
|
|
|
86303
86306
|
BiA as beginListenFileSpawn,
|
|
86304
86307
|
YV as beginListenInstantiate,
|
|
86305
86308
|
GsA as build_scene_functions,
|
|
86306
|
-
|
|
86309
|
+
mB as builtinComponentKeyName,
|
|
86307
86310
|
Pv as calculateProgress01,
|
|
86308
86311
|
LsA as colorSerializer,
|
|
86309
86312
|
uS as componentSerializer,
|
|
@@ -86403,7 +86406,7 @@ export {
|
|
|
86403
86406
|
bsA as removeCustomExtension,
|
|
86404
86407
|
zsA as removeGltfLoadEventListener,
|
|
86405
86408
|
psA as removePatch,
|
|
86406
|
-
|
|
86409
|
+
mr as resolveUrl,
|
|
86407
86410
|
i2 as sanitizeString,
|
|
86408
86411
|
inA as screenshot,
|
|
86409
86412
|
LV as sendDestroyed,
|