@yschindel/ara3d-webgl 1.3.8 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ara3d-webgl.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var $ = (r, e, t) => (l0(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
|
6
6
|
* Copyright 2010-2025 Three.js Authors
|
|
7
7
|
* SPDX-License-Identifier: MIT
|
|
8
8
|
*/
|
|
9
|
-
const Oc = "182", h0 = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, u0 = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Np = 0,
|
|
9
|
+
const Oc = "182", h0 = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, u0 = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Np = 0, Lh = 1, Up = 2, f0 = 3, d0 = 0, js = 1, Bp = 2, $r = 3, jn = 0, on = 1, Mn = 2, Kn = 0, hr = 1, Nh = 2, Uh = 3, Bh = 4, Op = 5, Mi = 100, Fp = 101, zp = 102, kp = 103, Vp = 104, Hp = 200, Gp = 201, Wp = 202, qp = 203, Ha = 204, Ga = 205, Xp = 206, Zp = 207, Yp = 208, Qp = 209, Kp = 210, jp = 211, Jp = 212, $p = 213, em = 214, Wa = 0, qa = 1, Xa = 2, mr = 3, Za = 4, Ya = 5, Qa = 6, Ka = 7, xo = 0, tm = 1, nm = 2, Tn = 0, fu = 1, du = 2, pu = 3, mu = 4, gu = 5, _u = 6, vu = 7, Oh = "attached", im = "detached", Fc = 300, Jn = 301, Ri = 302, ao = 303, co = 304, xs = 306, Pi = 1e3, nn = 1001, ss = 1002, Tt = 1003, zc = 1004, p0 = 1004, sr = 1005, m0 = 1005, mt = 1006, ts = 1007, g0 = 1007, En = 1008, _0 = 1008, un = 1009, yu = 1010, xu = 1011, os = 1012, kc = 1013, Cn = 1014, rn = 1015, $n = 1016, Vc = 1017, Hc = 1018, as = 1020, Au = 35902, bu = 35899, wu = 1021, Su = 1022, sn = 1023, ei = 1026, Ei = 1027, Gc = 1028, Ao = 1029, gr = 1030, Wc = 1031, v0 = 1032, qc = 1033, Js = 33776, $s = 33777, eo = 33778, to = 33779, ja = 35840, Ja = 35841, $a = 35842, ec = 35843, tc = 36196, nc = 37492, ic = 37496, rc = 37488, sc = 37489, oc = 37490, ac = 37491, cc = 37808, lc = 37809, hc = 37810, uc = 37811, fc = 37812, dc = 37813, pc = 37814, mc = 37815, gc = 37816, _c = 37817, vc = 37818, yc = 37819, xc = 37820, Ac = 37821, bc = 36492, wc = 36494, Sc = 36495, Mc = 36283, Ec = 36284, Tc = 36285, Cc = 36286, rm = 2200, sm = 2201, om = 2202, cs = 2300, ls = 2301, Ua = 2302, or = 2400, ar = 2401, lo = 2402, Xc = 2500, Mu = 2501, am = 0, Eu = 1, Ic = 2, cm = 3200, y0 = 3201, x0 = 3202, A0 = 3203, Ni = 0, lm = 1, li = "", Mt = "srgb", qt = "srgb-linear", ho = "linear", ut = "srgb", b0 = "", w0 = "rg", S0 = "ga", M0 = 0, tr = 7680, E0 = 7681, T0 = 7682, C0 = 7683, I0 = 34055, R0 = 34056, P0 = 5386, D0 = 512, L0 = 513, N0 = 514, U0 = 515, B0 = 516, O0 = 517, F0 = 518, Fh = 519, hm = 512, um = 513, fm = 514, Zc = 515, dm = 516, pm = 517, Yc = 518, mm = 519, hs = 35044, z0 = 35048, k0 = 35040, V0 = 35045, H0 = 35049, G0 = 35041, W0 = 35046, q0 = 35050, X0 = 35042, Z0 = "100", zh = "300 es", vn = 2e3, us = 2001, Y0 = {
|
|
10
10
|
COMPUTE: "compute",
|
|
11
11
|
RENDER: "render"
|
|
12
12
|
}, Q0 = {
|
|
@@ -874,10 +874,10 @@ class U {
|
|
|
874
874
|
return this.copy(e).multiplyScalar(n);
|
|
875
875
|
}
|
|
876
876
|
projectOnPlane(e) {
|
|
877
|
-
return
|
|
877
|
+
return Bl.copy(this).projectOnVector(e), this.sub(Bl);
|
|
878
878
|
}
|
|
879
879
|
reflect(e) {
|
|
880
|
-
return this.sub(
|
|
880
|
+
return this.sub(Bl.copy(e).multiplyScalar(2 * this.dot(e)));
|
|
881
881
|
}
|
|
882
882
|
angleTo(e) {
|
|
883
883
|
const t = Math.sqrt(this.lengthSq() * e.lengthSq());
|
|
@@ -952,7 +952,7 @@ class U {
|
|
|
952
952
|
yield this.x, yield this.y, yield this.z;
|
|
953
953
|
}
|
|
954
954
|
}
|
|
955
|
-
const
|
|
955
|
+
const Bl = /* @__PURE__ */ new U(), Cf = /* @__PURE__ */ new wt();
|
|
956
956
|
class et {
|
|
957
957
|
constructor(e, t, n, i, s, o, a, c, l) {
|
|
958
958
|
et.prototype.isMatrix3 = !0, this.elements = [
|
|
@@ -1057,13 +1057,13 @@ class et {
|
|
|
1057
1057
|
), this;
|
|
1058
1058
|
}
|
|
1059
1059
|
scale(e, t) {
|
|
1060
|
-
return this.premultiply(
|
|
1060
|
+
return this.premultiply(Ol.makeScale(e, t)), this;
|
|
1061
1061
|
}
|
|
1062
1062
|
rotate(e) {
|
|
1063
|
-
return this.premultiply(
|
|
1063
|
+
return this.premultiply(Ol.makeRotation(-e)), this;
|
|
1064
1064
|
}
|
|
1065
1065
|
translate(e, t) {
|
|
1066
|
-
return this.premultiply(
|
|
1066
|
+
return this.premultiply(Ol.makeTranslation(e, t)), this;
|
|
1067
1067
|
}
|
|
1068
1068
|
makeTranslation(e, t) {
|
|
1069
1069
|
return e.isVector2 ? this.set(
|
|
@@ -1135,7 +1135,7 @@ class et {
|
|
|
1135
1135
|
return new this.constructor().fromArray(this.elements);
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
const
|
|
1138
|
+
const Ol = /* @__PURE__ */ new et(), If = /* @__PURE__ */ new et().set(
|
|
1139
1139
|
0.4123908,
|
|
1140
1140
|
0.3575843,
|
|
1141
1141
|
0.1804808,
|
|
@@ -1209,17 +1209,17 @@ function __() {
|
|
|
1209
1209
|
toXYZ: If,
|
|
1210
1210
|
fromXYZ: Rf,
|
|
1211
1211
|
luminanceCoefficients: t,
|
|
1212
|
-
workingColorSpaceConfig: { unpackColorSpace:
|
|
1213
|
-
outputColorSpaceConfig: { drawingBufferColorSpace:
|
|
1212
|
+
workingColorSpaceConfig: { unpackColorSpace: Mt },
|
|
1213
|
+
outputColorSpaceConfig: { drawingBufferColorSpace: Mt }
|
|
1214
1214
|
},
|
|
1215
|
-
[
|
|
1215
|
+
[Mt]: {
|
|
1216
1216
|
primaries: e,
|
|
1217
1217
|
whitePoint: n,
|
|
1218
1218
|
transfer: ut,
|
|
1219
1219
|
toXYZ: If,
|
|
1220
1220
|
fromXYZ: Rf,
|
|
1221
1221
|
luminanceCoefficients: t,
|
|
1222
|
-
outputColorSpaceConfig: { drawingBufferColorSpace:
|
|
1222
|
+
outputColorSpaceConfig: { drawingBufferColorSpace: Mt }
|
|
1223
1223
|
}
|
|
1224
1224
|
}), r;
|
|
1225
1225
|
}
|
|
@@ -1293,15 +1293,15 @@ class Ti {
|
|
|
1293
1293
|
if (Array.isArray(i)) {
|
|
1294
1294
|
s = [];
|
|
1295
1295
|
for (let o = 0, a = i.length; o < a; o++)
|
|
1296
|
-
i[o].isDataTexture ? s.push(
|
|
1296
|
+
i[o].isDataTexture ? s.push(Fl(i[o].image)) : s.push(Fl(i[o]));
|
|
1297
1297
|
} else
|
|
1298
|
-
s =
|
|
1298
|
+
s = Fl(i);
|
|
1299
1299
|
n.url = s;
|
|
1300
1300
|
}
|
|
1301
1301
|
return t || (e.images[this.uuid] = n), n;
|
|
1302
1302
|
}
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function Fl(r) {
|
|
1305
1305
|
return typeof HTMLImageElement < "u" && r instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && r instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && r instanceof ImageBitmap ? ym.getDataURL(r) : r.data ? {
|
|
1306
1306
|
data: Array.from(r.data),
|
|
1307
1307
|
width: r.width,
|
|
@@ -1310,19 +1310,19 @@ function zl(r) {
|
|
|
1310
1310
|
} : (Te("Texture: Unable to serialize Texture."), {});
|
|
1311
1311
|
}
|
|
1312
1312
|
let y_ = 0;
|
|
1313
|
-
const
|
|
1313
|
+
const zl = /* @__PURE__ */ new U();
|
|
1314
1314
|
class At extends ti {
|
|
1315
1315
|
constructor(e = At.DEFAULT_IMAGE, t = At.DEFAULT_MAPPING, n = nn, i = nn, s = mt, o = En, a = sn, c = un, l = At.DEFAULT_ANISOTROPY, h = li) {
|
|
1316
1316
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: y_++ }), this.uuid = yn(), this.name = "", this.source = new Ti(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = s, this.minFilter = o, this.anisotropy = l, this.format = a, this.internalFormat = null, this.type = c, this.offset = new he(0, 0), this.repeat = new he(1, 1), this.center = new he(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new et(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0;
|
|
1317
1317
|
}
|
|
1318
1318
|
get width() {
|
|
1319
|
-
return this.source.getSize(
|
|
1319
|
+
return this.source.getSize(zl).x;
|
|
1320
1320
|
}
|
|
1321
1321
|
get height() {
|
|
1322
|
-
return this.source.getSize(
|
|
1322
|
+
return this.source.getSize(zl).y;
|
|
1323
1323
|
}
|
|
1324
1324
|
get depth() {
|
|
1325
|
-
return this.source.getSize(
|
|
1325
|
+
return this.source.getSize(zl).z;
|
|
1326
1326
|
}
|
|
1327
1327
|
get image() {
|
|
1328
1328
|
return this.source.data;
|
|
@@ -1398,7 +1398,7 @@ class At extends ti {
|
|
|
1398
1398
|
this.dispatchEvent({ type: "dispose" });
|
|
1399
1399
|
}
|
|
1400
1400
|
transformUv(e) {
|
|
1401
|
-
if (this.mapping !==
|
|
1401
|
+
if (this.mapping !== Fc)
|
|
1402
1402
|
return e;
|
|
1403
1403
|
if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
|
|
1404
1404
|
switch (this.wrapS) {
|
|
@@ -1434,7 +1434,7 @@ class At extends ti {
|
|
|
1434
1434
|
}
|
|
1435
1435
|
}
|
|
1436
1436
|
At.DEFAULT_IMAGE = null;
|
|
1437
|
-
At.DEFAULT_MAPPING =
|
|
1437
|
+
At.DEFAULT_MAPPING = Fc;
|
|
1438
1438
|
At.DEFAULT_ANISOTROPY = 1;
|
|
1439
1439
|
class _t {
|
|
1440
1440
|
constructor(e = 0, t = 0, n = 0, i = 1) {
|
|
@@ -1718,9 +1718,9 @@ class xn extends Cu {
|
|
|
1718
1718
|
super(e, t, n), this.isWebGLRenderTarget = !0;
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
|
-
class
|
|
1721
|
+
class Qc extends At {
|
|
1722
1722
|
constructor(e = null, t = 1, n = 1, i = 1) {
|
|
1723
|
-
super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter =
|
|
1723
|
+
super(null), this.isDataArrayTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Tt, this.minFilter = Tt, this.wrapR = nn, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.layerUpdates = /* @__PURE__ */ new Set();
|
|
1724
1724
|
}
|
|
1725
1725
|
addLayerUpdate(e) {
|
|
1726
1726
|
this.layerUpdates.add(e);
|
|
@@ -1731,17 +1731,17 @@ class Kc extends At {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
class x_ extends xn {
|
|
1733
1733
|
constructor(e = 1, t = 1, n = 1, i = {}) {
|
|
1734
|
-
super(e, t, i), this.isWebGLArrayRenderTarget = !0, this.depth = n, this.texture = new
|
|
1734
|
+
super(e, t, i), this.isWebGLArrayRenderTarget = !0, this.depth = n, this.texture = new Qc(null, e, t, n), this._setTextureOptions(i), this.texture.isRenderTargetTexture = !0;
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
class
|
|
1737
|
+
class Kc extends At {
|
|
1738
1738
|
constructor(e = null, t = 1, n = 1, i = 1) {
|
|
1739
|
-
super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter =
|
|
1739
|
+
super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: n, depth: i }, this.magFilter = Tt, this.minFilter = Tt, this.wrapR = nn, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
1742
|
class A_ extends xn {
|
|
1743
1743
|
constructor(e = 1, t = 1, n = 1, i = {}) {
|
|
1744
|
-
super(e, t, i), this.isWebGL3DRenderTarget = !0, this.depth = n, this.texture = new
|
|
1744
|
+
super(e, t, i), this.isWebGL3DRenderTarget = !0, this.depth = n, this.texture = new Kc(null, e, t, n), this._setTextureOptions(i), this.texture.isRenderTargetTexture = !0;
|
|
1745
1745
|
}
|
|
1746
1746
|
}
|
|
1747
1747
|
class Gt {
|
|
@@ -1754,13 +1754,13 @@ class Gt {
|
|
|
1754
1754
|
setFromArray(e) {
|
|
1755
1755
|
this.makeEmpty();
|
|
1756
1756
|
for (let t = 0, n = e.length; t < n; t += 3)
|
|
1757
|
-
this.expandByPoint(
|
|
1757
|
+
this.expandByPoint(Ln.fromArray(e, t));
|
|
1758
1758
|
return this;
|
|
1759
1759
|
}
|
|
1760
1760
|
setFromBufferAttribute(e) {
|
|
1761
1761
|
this.makeEmpty();
|
|
1762
1762
|
for (let t = 0, n = e.count; t < n; t++)
|
|
1763
|
-
this.expandByPoint(
|
|
1763
|
+
this.expandByPoint(Ln.fromBufferAttribute(e, t));
|
|
1764
1764
|
return this;
|
|
1765
1765
|
}
|
|
1766
1766
|
setFromPoints(e) {
|
|
@@ -1770,7 +1770,7 @@ class Gt {
|
|
|
1770
1770
|
return this;
|
|
1771
1771
|
}
|
|
1772
1772
|
setFromCenterAndSize(e, t) {
|
|
1773
|
-
const n =
|
|
1773
|
+
const n = Ln.copy(t).multiplyScalar(0.5);
|
|
1774
1774
|
return this.min.copy(e).sub(n), this.max.copy(e).add(n), this;
|
|
1775
1775
|
}
|
|
1776
1776
|
setFromObject(e, t = !1) {
|
|
@@ -1810,7 +1810,7 @@ class Gt {
|
|
|
1810
1810
|
const s = n.getAttribute("position");
|
|
1811
1811
|
if (t === !0 && s !== void 0 && e.isInstancedMesh !== !0)
|
|
1812
1812
|
for (let o = 0, a = s.count; o < a; o++)
|
|
1813
|
-
e.isMesh === !0 ? e.getVertexPosition(o,
|
|
1813
|
+
e.isMesh === !0 ? e.getVertexPosition(o, Ln) : Ln.fromBufferAttribute(s, o), Ln.applyMatrix4(e.matrixWorld), this.expandByPoint(Ln);
|
|
1814
1814
|
else
|
|
1815
1815
|
e.boundingBox !== void 0 ? (e.boundingBox === null && e.computeBoundingBox(), Fo.copy(e.boundingBox)) : (n.boundingBox === null && n.computeBoundingBox(), Fo.copy(n.boundingBox)), Fo.applyMatrix4(e.matrixWorld), this.union(Fo);
|
|
1816
1816
|
}
|
|
@@ -1836,7 +1836,7 @@ class Gt {
|
|
|
1836
1836
|
return e.max.x >= this.min.x && e.min.x <= this.max.x && e.max.y >= this.min.y && e.min.y <= this.max.y && e.max.z >= this.min.z && e.min.z <= this.max.z;
|
|
1837
1837
|
}
|
|
1838
1838
|
intersectsSphere(e) {
|
|
1839
|
-
return this.clampPoint(e.center,
|
|
1839
|
+
return this.clampPoint(e.center, Ln), Ln.distanceToSquared(e.center) <= e.radius * e.radius;
|
|
1840
1840
|
}
|
|
1841
1841
|
intersectsPlane(e) {
|
|
1842
1842
|
let t, n;
|
|
@@ -1875,16 +1875,16 @@ class Gt {
|
|
|
1875
1875
|
zi.x,
|
|
1876
1876
|
0
|
|
1877
1877
|
];
|
|
1878
|
-
return !
|
|
1878
|
+
return !kl(t, Pr, Dr, Lr, zo) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !kl(t, Pr, Dr, Lr, zo)) ? !1 : (ko.crossVectors(mi, gi), t = [ko.x, ko.y, ko.z], kl(t, Pr, Dr, Lr, zo));
|
|
1879
1879
|
}
|
|
1880
1880
|
clampPoint(e, t) {
|
|
1881
1881
|
return t.copy(e).clamp(this.min, this.max);
|
|
1882
1882
|
}
|
|
1883
1883
|
distanceToPoint(e) {
|
|
1884
|
-
return this.clampPoint(e,
|
|
1884
|
+
return this.clampPoint(e, Ln).distanceTo(e);
|
|
1885
1885
|
}
|
|
1886
1886
|
getBoundingSphere(e) {
|
|
1887
|
-
return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(
|
|
1887
|
+
return this.isEmpty() ? e.makeEmpty() : (this.getCenter(e.center), e.radius = this.getSize(Ln).length() * 0.5), e;
|
|
1888
1888
|
}
|
|
1889
1889
|
intersect(e) {
|
|
1890
1890
|
return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;
|
|
@@ -1920,8 +1920,8 @@ const ii = [
|
|
|
1920
1920
|
/* @__PURE__ */ new U(),
|
|
1921
1921
|
/* @__PURE__ */ new U(),
|
|
1922
1922
|
/* @__PURE__ */ new U()
|
|
1923
|
-
],
|
|
1924
|
-
function
|
|
1923
|
+
], Ln = /* @__PURE__ */ new U(), Fo = /* @__PURE__ */ new Gt(), Pr = /* @__PURE__ */ new U(), Dr = /* @__PURE__ */ new U(), Lr = /* @__PURE__ */ new U(), mi = /* @__PURE__ */ new U(), gi = /* @__PURE__ */ new U(), zi = /* @__PURE__ */ new U(), Ps = /* @__PURE__ */ new U(), zo = /* @__PURE__ */ new U(), ko = /* @__PURE__ */ new U(), ki = /* @__PURE__ */ new U();
|
|
1924
|
+
function kl(r, e, t, n, i) {
|
|
1925
1925
|
for (let s = 0, o = r.length - 3; s <= o; s += 3) {
|
|
1926
1926
|
ki.fromArray(r, s);
|
|
1927
1927
|
const a = i.x * Math.abs(ki.x) + i.y * Math.abs(ki.y) + i.z * Math.abs(ki.z), c = e.dot(ki), l = t.dot(ki), h = n.dot(ki);
|
|
@@ -1930,7 +1930,7 @@ function Vl(r, e, t, n, i) {
|
|
|
1930
1930
|
}
|
|
1931
1931
|
return !0;
|
|
1932
1932
|
}
|
|
1933
|
-
const b_ = /* @__PURE__ */ new Gt(), Ds = /* @__PURE__ */ new U(),
|
|
1933
|
+
const b_ = /* @__PURE__ */ new Gt(), Ds = /* @__PURE__ */ new U(), Vl = /* @__PURE__ */ new U();
|
|
1934
1934
|
class Lt {
|
|
1935
1935
|
constructor(e = new U(), t = -1) {
|
|
1936
1936
|
this.isSphere = !0, this.center = e, this.radius = t;
|
|
@@ -1996,7 +1996,7 @@ class Lt {
|
|
|
1996
1996
|
return this;
|
|
1997
1997
|
}
|
|
1998
1998
|
union(e) {
|
|
1999
|
-
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (
|
|
1999
|
+
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (Vl.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(Ds.copy(e.center).add(Vl)), this.expandByPoint(Ds.copy(e.center).sub(Vl))), this);
|
|
2000
2000
|
}
|
|
2001
2001
|
equals(e) {
|
|
2002
2002
|
return e.center.equals(this.center) && e.radius === this.radius;
|
|
@@ -2014,7 +2014,7 @@ class Lt {
|
|
|
2014
2014
|
return this.radius = e.radius, this.center.fromArray(e.center), this;
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
|
-
const ri = /* @__PURE__ */ new U(),
|
|
2017
|
+
const ri = /* @__PURE__ */ new U(), Hl = /* @__PURE__ */ new U(), Vo = /* @__PURE__ */ new U(), _i = /* @__PURE__ */ new U(), Gl = /* @__PURE__ */ new U(), Ho = /* @__PURE__ */ new U(), Wl = /* @__PURE__ */ new U();
|
|
2018
2018
|
class As {
|
|
2019
2019
|
constructor(e = new U(), t = new U(0, 0, -1)) {
|
|
2020
2020
|
this.origin = e, this.direction = t;
|
|
@@ -2047,7 +2047,7 @@ class As {
|
|
|
2047
2047
|
return t < 0 ? this.origin.distanceToSquared(e) : (ri.copy(this.origin).addScaledVector(this.direction, t), ri.distanceToSquared(e));
|
|
2048
2048
|
}
|
|
2049
2049
|
distanceSqToSegment(e, t, n, i) {
|
|
2050
|
-
|
|
2050
|
+
Hl.copy(e).add(t).multiplyScalar(0.5), Vo.copy(t).sub(e).normalize(), _i.copy(this.origin).sub(Hl);
|
|
2051
2051
|
const s = e.distanceTo(t) * 0.5, o = -this.direction.dot(Vo), a = _i.dot(this.direction), c = -_i.dot(Vo), l = _i.lengthSq(), h = Math.abs(1 - o * o);
|
|
2052
2052
|
let u, f, d, g;
|
|
2053
2053
|
if (h > 0)
|
|
@@ -2064,7 +2064,7 @@ class As {
|
|
|
2064
2064
|
f <= -g ? (u = Math.max(0, -(-o * s + a)), f = u > 0 ? -s : Math.min(Math.max(-s, -c), s), d = -u * u + f * (f + 2 * c) + l) : f <= g ? (u = 0, f = Math.min(Math.max(-s, -c), s), d = f * (f + 2 * c) + l) : (u = Math.max(0, -(o * s + a)), f = u > 0 ? s : Math.min(Math.max(-s, -c), s), d = -u * u + f * (f + 2 * c) + l);
|
|
2065
2065
|
else
|
|
2066
2066
|
f = o > 0 ? -s : s, u = Math.max(0, -(o * f + a)), d = -u * u + f * (f + 2 * c) + l;
|
|
2067
|
-
return n && n.copy(this.origin).addScaledVector(this.direction, u), i && i.copy(
|
|
2067
|
+
return n && n.copy(this.origin).addScaledVector(this.direction, u), i && i.copy(Hl).addScaledVector(Vo, f), d;
|
|
2068
2068
|
}
|
|
2069
2069
|
intersectSphere(e, t) {
|
|
2070
2070
|
ri.subVectors(e.center, this.origin);
|
|
@@ -2101,8 +2101,8 @@ class As {
|
|
|
2101
2101
|
return this.intersectBox(e, ri) !== null;
|
|
2102
2102
|
}
|
|
2103
2103
|
intersectTriangle(e, t, n, i, s) {
|
|
2104
|
-
|
|
2105
|
-
let o = this.direction.dot(
|
|
2104
|
+
Gl.subVectors(t, e), Ho.subVectors(n, e), Wl.crossVectors(Gl, Ho);
|
|
2105
|
+
let o = this.direction.dot(Wl), a;
|
|
2106
2106
|
if (o > 0) {
|
|
2107
2107
|
if (i)
|
|
2108
2108
|
return null;
|
|
@@ -2115,10 +2115,10 @@ class As {
|
|
|
2115
2115
|
const c = a * this.direction.dot(Ho.crossVectors(_i, Ho));
|
|
2116
2116
|
if (c < 0)
|
|
2117
2117
|
return null;
|
|
2118
|
-
const l = a * this.direction.dot(
|
|
2118
|
+
const l = a * this.direction.dot(Gl.cross(_i));
|
|
2119
2119
|
if (l < 0 || c + l > o)
|
|
2120
2120
|
return null;
|
|
2121
|
-
const h = -a * _i.dot(
|
|
2121
|
+
const h = -a * _i.dot(Wl);
|
|
2122
2122
|
return h < 0 ? null : this.at(h / o, s);
|
|
2123
2123
|
}
|
|
2124
2124
|
applyMatrix4(e) {
|
|
@@ -2480,9 +2480,9 @@ class qe {
|
|
|
2480
2480
|
return n.set(1, 1, 1), t.identity(), this;
|
|
2481
2481
|
let s = Nr.set(i[0], i[1], i[2]).length();
|
|
2482
2482
|
const o = Nr.set(i[4], i[5], i[6]).length(), a = Nr.set(i[8], i[9], i[10]).length();
|
|
2483
|
-
this.determinant() < 0 && (s = -s),
|
|
2483
|
+
this.determinant() < 0 && (s = -s), Nn.copy(this);
|
|
2484
2484
|
const l = 1 / s, h = 1 / o, u = 1 / a;
|
|
2485
|
-
return
|
|
2485
|
+
return Nn.elements[0] *= l, Nn.elements[1] *= l, Nn.elements[2] *= l, Nn.elements[4] *= h, Nn.elements[5] *= h, Nn.elements[6] *= h, Nn.elements[8] *= u, Nn.elements[9] *= u, Nn.elements[10] *= u, t.setFromRotationMatrix(Nn), n.x = s, n.y = o, n.z = a, this;
|
|
2486
2486
|
}
|
|
2487
2487
|
makePerspective(e, t, n, i, s, o, a = vn, c = !1) {
|
|
2488
2488
|
const l = this.elements, h = 2 * s / (t - e), u = 2 * s / (n - i), f = (t + e) / (t - e), d = (n + i) / (n - i);
|
|
@@ -2527,7 +2527,7 @@ class qe {
|
|
|
2527
2527
|
return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
const Nr = /* @__PURE__ */ new U(),
|
|
2530
|
+
const Nr = /* @__PURE__ */ new U(), Nn = /* @__PURE__ */ new qe(), w_ = /* @__PURE__ */ new U(0, 0, 0), S_ = /* @__PURE__ */ new U(1, 1, 1), vi = /* @__PURE__ */ new U(), Go = /* @__PURE__ */ new U(), gn = /* @__PURE__ */ new U(), Pf = /* @__PURE__ */ new qe(), Df = /* @__PURE__ */ new wt();
|
|
2531
2531
|
class Xt {
|
|
2532
2532
|
constructor(e = 0, t = 0, n = 0, i = Xt.DEFAULT_ORDER) {
|
|
2533
2533
|
this.isEuler = !0, this._x = e, this._y = t, this._z = n, this._order = i;
|
|
@@ -2619,7 +2619,7 @@ class Xt {
|
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
2621
2621
|
Xt.DEFAULT_ORDER = "XYZ";
|
|
2622
|
-
class
|
|
2622
|
+
class jc {
|
|
2623
2623
|
constructor() {
|
|
2624
2624
|
this.mask = 1;
|
|
2625
2625
|
}
|
|
@@ -2649,7 +2649,7 @@ class Jc {
|
|
|
2649
2649
|
}
|
|
2650
2650
|
}
|
|
2651
2651
|
let M_ = 0;
|
|
2652
|
-
const Lf = /* @__PURE__ */ new U(), Ur = /* @__PURE__ */ new wt(), si = /* @__PURE__ */ new qe(), Wo = /* @__PURE__ */ new U(), Ls = /* @__PURE__ */ new U(), E_ = /* @__PURE__ */ new U(), T_ = /* @__PURE__ */ new wt(), Nf = /* @__PURE__ */ new U(1, 0, 0), Uf = /* @__PURE__ */ new U(0, 1, 0), Bf = /* @__PURE__ */ new U(0, 0, 1), Of = { type: "added" }, C_ = { type: "removed" }, Br = { type: "childadded", child: null },
|
|
2652
|
+
const Lf = /* @__PURE__ */ new U(), Ur = /* @__PURE__ */ new wt(), si = /* @__PURE__ */ new qe(), Wo = /* @__PURE__ */ new U(), Ls = /* @__PURE__ */ new U(), E_ = /* @__PURE__ */ new U(), T_ = /* @__PURE__ */ new wt(), Nf = /* @__PURE__ */ new U(1, 0, 0), Uf = /* @__PURE__ */ new U(0, 1, 0), Bf = /* @__PURE__ */ new U(0, 0, 1), Of = { type: "added" }, C_ = { type: "removed" }, Br = { type: "childadded", child: null }, ql = { type: "childremoved", child: null };
|
|
2653
2653
|
class ct extends ti {
|
|
2654
2654
|
constructor() {
|
|
2655
2655
|
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: M_++ }), this.uuid = yn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = ct.DEFAULT_UP.clone();
|
|
@@ -2687,7 +2687,7 @@ class ct extends ti {
|
|
|
2687
2687
|
normalMatrix: {
|
|
2688
2688
|
value: new et()
|
|
2689
2689
|
}
|
|
2690
|
-
}), this.matrix = new qe(), this.matrixWorld = new qe(), this.matrixAutoUpdate = ct.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = ct.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new
|
|
2690
|
+
}), this.matrix = new qe(), this.matrixWorld = new qe(), this.matrixAutoUpdate = ct.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = ct.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new jc(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.userData = {};
|
|
2691
2691
|
}
|
|
2692
2692
|
onBeforeShadow() {
|
|
2693
2693
|
}
|
|
@@ -2768,7 +2768,7 @@ class ct extends ti {
|
|
|
2768
2768
|
return this;
|
|
2769
2769
|
}
|
|
2770
2770
|
const t = this.children.indexOf(e);
|
|
2771
|
-
return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(C_),
|
|
2771
|
+
return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(C_), ql.child = e, this.dispatchEvent(ql), ql.child = null), this;
|
|
2772
2772
|
}
|
|
2773
2773
|
removeFromParent() {
|
|
2774
2774
|
const e = this.parent;
|
|
@@ -2943,19 +2943,19 @@ class ct extends ti {
|
|
|
2943
2943
|
ct.DEFAULT_UP = /* @__PURE__ */ new U(0, 1, 0);
|
|
2944
2944
|
ct.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
2945
2945
|
ct.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
2946
|
-
const
|
|
2946
|
+
const Un = /* @__PURE__ */ new U(), oi = /* @__PURE__ */ new U(), Xl = /* @__PURE__ */ new U(), ai = /* @__PURE__ */ new U(), Or = /* @__PURE__ */ new U(), Fr = /* @__PURE__ */ new U(), Ff = /* @__PURE__ */ new U(), Zl = /* @__PURE__ */ new U(), Yl = /* @__PURE__ */ new U(), Ql = /* @__PURE__ */ new U(), Kl = /* @__PURE__ */ new _t(), jl = /* @__PURE__ */ new _t(), Jl = /* @__PURE__ */ new _t();
|
|
2947
2947
|
class fn {
|
|
2948
2948
|
constructor(e = new U(), t = new U(), n = new U()) {
|
|
2949
2949
|
this.a = e, this.b = t, this.c = n;
|
|
2950
2950
|
}
|
|
2951
2951
|
static getNormal(e, t, n, i) {
|
|
2952
|
-
i.subVectors(n, t),
|
|
2952
|
+
i.subVectors(n, t), Un.subVectors(e, t), i.cross(Un);
|
|
2953
2953
|
const s = i.lengthSq();
|
|
2954
2954
|
return s > 0 ? i.multiplyScalar(1 / Math.sqrt(s)) : i.set(0, 0, 0);
|
|
2955
2955
|
}
|
|
2956
2956
|
static getBarycoord(e, t, n, i, s) {
|
|
2957
|
-
|
|
2958
|
-
const o =
|
|
2957
|
+
Un.subVectors(i, t), oi.subVectors(n, t), Xl.subVectors(e, t);
|
|
2958
|
+
const o = Un.dot(Un), a = Un.dot(oi), c = Un.dot(Xl), l = oi.dot(oi), h = oi.dot(Xl), u = o * l - a * a;
|
|
2959
2959
|
if (u === 0)
|
|
2960
2960
|
return s.set(0, 0, 0), null;
|
|
2961
2961
|
const f = 1 / u, d = (l * c - a * h) * f, g = (o * h - a * c) * f;
|
|
@@ -2968,10 +2968,10 @@ class fn {
|
|
|
2968
2968
|
return this.getBarycoord(e, t, n, i, ai) === null ? (c.x = 0, c.y = 0, "z" in c && (c.z = 0), "w" in c && (c.w = 0), null) : (c.setScalar(0), c.addScaledVector(s, ai.x), c.addScaledVector(o, ai.y), c.addScaledVector(a, ai.z), c);
|
|
2969
2969
|
}
|
|
2970
2970
|
static getInterpolatedAttribute(e, t, n, i, s, o) {
|
|
2971
|
-
return
|
|
2971
|
+
return Kl.setScalar(0), jl.setScalar(0), Jl.setScalar(0), Kl.fromBufferAttribute(e, t), jl.fromBufferAttribute(e, n), Jl.fromBufferAttribute(e, i), o.setScalar(0), o.addScaledVector(Kl, s.x), o.addScaledVector(jl, s.y), o.addScaledVector(Jl, s.z), o;
|
|
2972
2972
|
}
|
|
2973
2973
|
static isFrontFacing(e, t, n, i) {
|
|
2974
|
-
return
|
|
2974
|
+
return Un.subVectors(n, t), oi.subVectors(e, t), Un.cross(oi).dot(i) < 0;
|
|
2975
2975
|
}
|
|
2976
2976
|
set(e, t, n) {
|
|
2977
2977
|
return this.a.copy(e), this.b.copy(t), this.c.copy(n), this;
|
|
@@ -2989,7 +2989,7 @@ class fn {
|
|
|
2989
2989
|
return this.a.copy(e.a), this.b.copy(e.b), this.c.copy(e.c), this;
|
|
2990
2990
|
}
|
|
2991
2991
|
getArea() {
|
|
2992
|
-
return
|
|
2992
|
+
return Un.subVectors(this.c, this.b), oi.subVectors(this.a, this.b), Un.cross(oi).length() * 0.5;
|
|
2993
2993
|
}
|
|
2994
2994
|
getMidpoint(e) {
|
|
2995
2995
|
return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
|
|
@@ -3018,19 +3018,19 @@ class fn {
|
|
|
3018
3018
|
closestPointToPoint(e, t) {
|
|
3019
3019
|
const n = this.a, i = this.b, s = this.c;
|
|
3020
3020
|
let o, a;
|
|
3021
|
-
Or.subVectors(i, n), Fr.subVectors(s, n),
|
|
3022
|
-
const c = Or.dot(
|
|
3021
|
+
Or.subVectors(i, n), Fr.subVectors(s, n), Zl.subVectors(e, n);
|
|
3022
|
+
const c = Or.dot(Zl), l = Fr.dot(Zl);
|
|
3023
3023
|
if (c <= 0 && l <= 0)
|
|
3024
3024
|
return t.copy(n);
|
|
3025
|
-
|
|
3026
|
-
const h = Or.dot(
|
|
3025
|
+
Yl.subVectors(e, i);
|
|
3026
|
+
const h = Or.dot(Yl), u = Fr.dot(Yl);
|
|
3027
3027
|
if (h >= 0 && u <= h)
|
|
3028
3028
|
return t.copy(i);
|
|
3029
3029
|
const f = c * u - h * l;
|
|
3030
3030
|
if (f <= 0 && c >= 0 && h <= 0)
|
|
3031
3031
|
return o = c / (c - h), t.copy(n).addScaledVector(Or, o);
|
|
3032
|
-
|
|
3033
|
-
const d = Or.dot(
|
|
3032
|
+
Ql.subVectors(e, s);
|
|
3033
|
+
const d = Or.dot(Ql), g = Fr.dot(Ql);
|
|
3034
3034
|
if (g >= 0 && d <= g)
|
|
3035
3035
|
return t.copy(s);
|
|
3036
3036
|
const _ = d * l - c * g;
|
|
@@ -3196,7 +3196,7 @@ const xm = {
|
|
|
3196
3196
|
yellow: 16776960,
|
|
3197
3197
|
yellowgreen: 10145074
|
|
3198
3198
|
}, yi = { h: 0, s: 0, l: 0 }, qo = { h: 0, s: 0, l: 0 };
|
|
3199
|
-
function
|
|
3199
|
+
function $l(r, e, t) {
|
|
3200
3200
|
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? r + (e - r) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? r + (e - r) * 6 * (2 / 3 - t) : r;
|
|
3201
3201
|
}
|
|
3202
3202
|
class Ae {
|
|
@@ -3214,7 +3214,7 @@ class Ae {
|
|
|
3214
3214
|
setScalar(e) {
|
|
3215
3215
|
return this.r = e, this.g = e, this.b = e, this;
|
|
3216
3216
|
}
|
|
3217
|
-
setHex(e, t =
|
|
3217
|
+
setHex(e, t = Mt) {
|
|
3218
3218
|
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, st.colorSpaceToWorking(this, t), this;
|
|
3219
3219
|
}
|
|
3220
3220
|
setRGB(e, t, n, i = st.workingColorSpace) {
|
|
@@ -3225,11 +3225,11 @@ class Ae {
|
|
|
3225
3225
|
this.r = this.g = this.b = n;
|
|
3226
3226
|
else {
|
|
3227
3227
|
const s = n <= 0.5 ? n * (1 + t) : n + t - n * t, o = 2 * n - s;
|
|
3228
|
-
this.r =
|
|
3228
|
+
this.r = $l(o, s, e + 1 / 3), this.g = $l(o, s, e), this.b = $l(o, s, e - 1 / 3);
|
|
3229
3229
|
}
|
|
3230
3230
|
return st.colorSpaceToWorking(this, i), this;
|
|
3231
3231
|
}
|
|
3232
|
-
setStyle(e, t =
|
|
3232
|
+
setStyle(e, t = Mt) {
|
|
3233
3233
|
function n(s) {
|
|
3234
3234
|
s !== void 0 && parseFloat(s) < 1 && Te("Color: Alpha component of " + e + " will be ignored.");
|
|
3235
3235
|
}
|
|
@@ -3284,7 +3284,7 @@ class Ae {
|
|
|
3284
3284
|
return this.setColorName(e, t);
|
|
3285
3285
|
return this;
|
|
3286
3286
|
}
|
|
3287
|
-
setColorName(e, t =
|
|
3287
|
+
setColorName(e, t = Mt) {
|
|
3288
3288
|
const n = xm[e.toLowerCase()];
|
|
3289
3289
|
return n !== void 0 ? this.setHex(n, t) : Te("Color: Unknown color " + e), this;
|
|
3290
3290
|
}
|
|
@@ -3306,10 +3306,10 @@ class Ae {
|
|
|
3306
3306
|
convertLinearToSRGB() {
|
|
3307
3307
|
return this.copyLinearToSRGB(this), this;
|
|
3308
3308
|
}
|
|
3309
|
-
getHex(e =
|
|
3309
|
+
getHex(e = Mt) {
|
|
3310
3310
|
return st.workingToColorSpace(Yt.copy(this), e), Math.round(Qe(Yt.r * 255, 0, 255)) * 65536 + Math.round(Qe(Yt.g * 255, 0, 255)) * 256 + Math.round(Qe(Yt.b * 255, 0, 255));
|
|
3311
3311
|
}
|
|
3312
|
-
getHexString(e =
|
|
3312
|
+
getHexString(e = Mt) {
|
|
3313
3313
|
return ("000000" + this.getHex(e).toString(16)).slice(-6);
|
|
3314
3314
|
}
|
|
3315
3315
|
getHSL(e, t = st.workingColorSpace) {
|
|
@@ -3339,10 +3339,10 @@ class Ae {
|
|
|
3339
3339
|
getRGB(e, t = st.workingColorSpace) {
|
|
3340
3340
|
return st.workingToColorSpace(Yt.copy(this), t), e.r = Yt.r, e.g = Yt.g, e.b = Yt.b, e;
|
|
3341
3341
|
}
|
|
3342
|
-
getStyle(e =
|
|
3342
|
+
getStyle(e = Mt) {
|
|
3343
3343
|
st.workingToColorSpace(Yt.copy(this), e);
|
|
3344
3344
|
const t = Yt.r, n = Yt.g, i = Yt.b;
|
|
3345
|
-
return e !==
|
|
3345
|
+
return e !== Mt ? `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(i * 255)})`;
|
|
3346
3346
|
}
|
|
3347
3347
|
offsetHSL(e, t, n) {
|
|
3348
3348
|
return this.getHSL(yi), this.setHSL(yi.h + e, yi.s + t, yi.l + n);
|
|
@@ -3407,7 +3407,7 @@ Ae.NAMES = xm;
|
|
|
3407
3407
|
let I_ = 0;
|
|
3408
3408
|
class zt extends ti {
|
|
3409
3409
|
constructor() {
|
|
3410
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: I_++ }), this.uuid = yn(), this.name = "", this.type = "Material", this.blending = hr, this.side = jn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Ha, this.blendDst = Ga, this.blendEquation = Mi, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ae(0, 0, 0), this.blendAlpha = 0, this.depthFunc = mr, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc =
|
|
3410
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: I_++ }), this.uuid = yn(), this.name = "", this.type = "Material", this.blending = hr, this.side = jn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = Ha, this.blendDst = Ga, this.blendEquation = Mi, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ae(0, 0, 0), this.blendAlpha = 0, this.depthFunc = mr, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Fh, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = tr, this.stencilZFail = tr, this.stencilZPass = tr, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3411
3411
|
}
|
|
3412
3412
|
get alphaTest() {
|
|
3413
3413
|
return this._alphaTest;
|
|
@@ -3451,7 +3451,7 @@ class zt extends ti {
|
|
|
3451
3451
|
generator: "Material.toJSON"
|
|
3452
3452
|
}
|
|
3453
3453
|
};
|
|
3454
|
-
n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== hr && (n.blending = this.blending), this.side !== jn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Ha && (n.blendSrc = this.blendSrc), this.blendDst !== Ga && (n.blendDst = this.blendDst), this.blendEquation !== Mi && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== mr && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !==
|
|
3454
|
+
n.uuid = this.uuid, n.type = this.type, this.name !== "" && (n.name = this.name), this.color && this.color.isColor && (n.color = this.color.getHex()), this.roughness !== void 0 && (n.roughness = this.roughness), this.metalness !== void 0 && (n.metalness = this.metalness), this.sheen !== void 0 && (n.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (n.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (n.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (n.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (n.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (n.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (n.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (n.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (n.shininess = this.shininess), this.clearcoat !== void 0 && (n.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (n.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (n.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (n.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (n.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, n.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (n.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (n.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (n.dispersion = this.dispersion), this.iridescence !== void 0 && (n.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (n.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (n.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (n.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (n.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (n.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (n.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (n.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (n.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (n.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (n.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (n.lightMap = this.lightMap.toJSON(e).uuid, n.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (n.aoMap = this.aoMap.toJSON(e).uuid, n.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (n.bumpMap = this.bumpMap.toJSON(e).uuid, n.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (n.normalMap = this.normalMap.toJSON(e).uuid, n.normalMapType = this.normalMapType, n.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (n.displacementMap = this.displacementMap.toJSON(e).uuid, n.displacementScale = this.displacementScale, n.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (n.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (n.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (n.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (n.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (n.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (n.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (n.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (n.combine = this.combine)), this.envMapRotation !== void 0 && (n.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (n.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (n.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (n.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (n.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (n.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (n.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (n.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (n.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (n.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (n.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (n.size = this.size), this.shadowSide !== null && (n.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (n.sizeAttenuation = this.sizeAttenuation), this.blending !== hr && (n.blending = this.blending), this.side !== jn && (n.side = this.side), this.vertexColors === !0 && (n.vertexColors = !0), this.opacity < 1 && (n.opacity = this.opacity), this.transparent === !0 && (n.transparent = !0), this.blendSrc !== Ha && (n.blendSrc = this.blendSrc), this.blendDst !== Ga && (n.blendDst = this.blendDst), this.blendEquation !== Mi && (n.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (n.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (n.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (n.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (n.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (n.blendAlpha = this.blendAlpha), this.depthFunc !== mr && (n.depthFunc = this.depthFunc), this.depthTest === !1 && (n.depthTest = this.depthTest), this.depthWrite === !1 && (n.depthWrite = this.depthWrite), this.colorWrite === !1 && (n.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (n.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Fh && (n.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (n.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (n.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== tr && (n.stencilFail = this.stencilFail), this.stencilZFail !== tr && (n.stencilZFail = this.stencilZFail), this.stencilZPass !== tr && (n.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (n.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (n.rotation = this.rotation), this.polygonOffset === !0 && (n.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (n.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (n.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (n.linewidth = this.linewidth), this.dashSize !== void 0 && (n.dashSize = this.dashSize), this.gapSize !== void 0 && (n.gapSize = this.gapSize), this.scale !== void 0 && (n.scale = this.scale), this.dithering === !0 && (n.dithering = !0), this.alphaTest > 0 && (n.alphaTest = this.alphaTest), this.alphaHash === !0 && (n.alphaHash = !0), this.alphaToCoverage === !0 && (n.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (n.premultipliedAlpha = !0), this.forceSinglePass === !0 && (n.forceSinglePass = !0), this.allowOverride === !1 && (n.allowOverride = !1), this.wireframe === !0 && (n.wireframe = !0), this.wireframeLinewidth > 1 && (n.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (n.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (n.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (n.flatShading = !0), this.visible === !1 && (n.visible = !1), this.toneMapped === !1 && (n.toneMapped = !1), this.fog === !1 && (n.fog = !1), Object.keys(this.userData).length > 0 && (n.userData = this.userData);
|
|
3455
3455
|
function i(s) {
|
|
3456
3456
|
const o = [];
|
|
3457
3457
|
for (const a in s) {
|
|
@@ -3751,7 +3751,7 @@ class Fe extends at {
|
|
|
3751
3751
|
}
|
|
3752
3752
|
}
|
|
3753
3753
|
let z_ = 0;
|
|
3754
|
-
const wn = /* @__PURE__ */ new qe(),
|
|
3754
|
+
const wn = /* @__PURE__ */ new qe(), eh = /* @__PURE__ */ new ct(), zr = /* @__PURE__ */ new U(), _n = /* @__PURE__ */ new Gt(), Ns = /* @__PURE__ */ new Gt(), Ht = /* @__PURE__ */ new U();
|
|
3755
3755
|
class Je extends ti {
|
|
3756
3756
|
constructor() {
|
|
3757
3757
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: z_++ }), this.uuid = yn(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
@@ -3823,7 +3823,7 @@ class Je extends ti {
|
|
|
3823
3823
|
return wn.makeScale(e, t, n), this.applyMatrix4(wn), this;
|
|
3824
3824
|
}
|
|
3825
3825
|
lookAt(e) {
|
|
3826
|
-
return
|
|
3826
|
+
return eh.lookAt(e), eh.updateMatrix(), this.applyMatrix4(eh.matrix), this;
|
|
3827
3827
|
}
|
|
3828
3828
|
center() {
|
|
3829
3829
|
return this.computeBoundingBox(), this.boundingBox.getCenter(zr).negate(), this.translate(zr.x, zr.y, zr.z), this;
|
|
@@ -4077,7 +4077,7 @@ class Je extends ti {
|
|
|
4077
4077
|
this.dispatchEvent({ type: "dispose" });
|
|
4078
4078
|
}
|
|
4079
4079
|
}
|
|
4080
|
-
const zf = /* @__PURE__ */ new qe(), Vi = /* @__PURE__ */ new As(), Zo = /* @__PURE__ */ new Lt(), kf = /* @__PURE__ */ new U(), Yo = /* @__PURE__ */ new U(), Qo = /* @__PURE__ */ new U(), Ko = /* @__PURE__ */ new U(),
|
|
4080
|
+
const zf = /* @__PURE__ */ new qe(), Vi = /* @__PURE__ */ new As(), Zo = /* @__PURE__ */ new Lt(), kf = /* @__PURE__ */ new U(), Yo = /* @__PURE__ */ new U(), Qo = /* @__PURE__ */ new U(), Ko = /* @__PURE__ */ new U(), th = /* @__PURE__ */ new U(), jo = /* @__PURE__ */ new U(), Vf = /* @__PURE__ */ new U(), Jo = /* @__PURE__ */ new U();
|
|
4081
4081
|
class St extends ct {
|
|
4082
4082
|
constructor(e = new Je(), t = new dn()) {
|
|
4083
4083
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
|
|
@@ -4106,7 +4106,7 @@ class St extends ct {
|
|
|
4106
4106
|
jo.set(0, 0, 0);
|
|
4107
4107
|
for (let c = 0, l = s.length; c < l; c++) {
|
|
4108
4108
|
const h = a[c], u = s[c];
|
|
4109
|
-
h !== 0 && (
|
|
4109
|
+
h !== 0 && (th.fromBufferAttribute(u, e), o ? jo.addScaledVector(th, h) : jo.addScaledVector(th.sub(t), h));
|
|
4110
4110
|
}
|
|
4111
4111
|
t.add(jo);
|
|
4112
4112
|
}
|
|
@@ -4259,7 +4259,7 @@ var H_ = `void main() {
|
|
|
4259
4259
|
}`, G_ = `void main() {
|
|
4260
4260
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
4261
4261
|
}`;
|
|
4262
|
-
class
|
|
4262
|
+
class In extends zt {
|
|
4263
4263
|
constructor(e) {
|
|
4264
4264
|
super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = H_, this.fragmentShader = G_, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
|
|
4265
4265
|
clipCullDistance: !1,
|
|
@@ -4310,7 +4310,7 @@ class Cn extends zt {
|
|
|
4310
4310
|
return Object.keys(n).length > 0 && (t.extensions = n), t;
|
|
4311
4311
|
}
|
|
4312
4312
|
}
|
|
4313
|
-
class
|
|
4313
|
+
class Jc extends ct {
|
|
4314
4314
|
constructor() {
|
|
4315
4315
|
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new qe(), this.projectionMatrix = new qe(), this.projectionMatrixInverse = new qe(), this.coordinateSystem = vn, this._reversedDepth = !1;
|
|
4316
4316
|
}
|
|
@@ -4334,7 +4334,7 @@ class $c extends ct {
|
|
|
4334
4334
|
}
|
|
4335
4335
|
}
|
|
4336
4336
|
const xi = /* @__PURE__ */ new U(), Hf = /* @__PURE__ */ new he(), Gf = /* @__PURE__ */ new he();
|
|
4337
|
-
class Ft extends
|
|
4337
|
+
class Ft extends Jc {
|
|
4338
4338
|
constructor(e = 50, t = 1, n = 0.1, i = 2e3) {
|
|
4339
4339
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = n, this.far = i, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
4340
4340
|
}
|
|
@@ -4496,7 +4496,7 @@ class Pu extends xn {
|
|
|
4496
4496
|
|
|
4497
4497
|
}
|
|
4498
4498
|
`
|
|
4499
|
-
}, i = new wr(5, 5, 5), s = new
|
|
4499
|
+
}, i = new wr(5, 5, 5), s = new In({
|
|
4500
4500
|
name: "CubemapFromEquirect",
|
|
4501
4501
|
uniforms: ps(n.uniforms),
|
|
4502
4502
|
vertexShader: n.vertexShader,
|
|
@@ -4583,12 +4583,12 @@ class Ba {
|
|
|
4583
4583
|
return e.joints[t.jointName];
|
|
4584
4584
|
}
|
|
4585
4585
|
}
|
|
4586
|
-
class
|
|
4586
|
+
class $c {
|
|
4587
4587
|
constructor(e, t = 25e-5) {
|
|
4588
4588
|
this.isFogExp2 = !0, this.name = "", this.color = new Ae(e), this.density = t;
|
|
4589
4589
|
}
|
|
4590
4590
|
clone() {
|
|
4591
|
-
return new
|
|
4591
|
+
return new $c(this.color, this.density);
|
|
4592
4592
|
}
|
|
4593
4593
|
toJSON() {
|
|
4594
4594
|
return {
|
|
@@ -4599,12 +4599,12 @@ class el {
|
|
|
4599
4599
|
};
|
|
4600
4600
|
}
|
|
4601
4601
|
}
|
|
4602
|
-
class
|
|
4602
|
+
class el {
|
|
4603
4603
|
constructor(e, t = 1, n = 1e3) {
|
|
4604
4604
|
this.isFog = !0, this.name = "", this.color = new Ae(e), this.near = t, this.far = n;
|
|
4605
4605
|
}
|
|
4606
4606
|
clone() {
|
|
4607
|
-
return new
|
|
4607
|
+
return new el(this.color, this.near, this.far);
|
|
4608
4608
|
}
|
|
4609
4609
|
toJSON() {
|
|
4610
4610
|
return {
|
|
@@ -4795,7 +4795,7 @@ class Lu extends zt {
|
|
|
4795
4795
|
}
|
|
4796
4796
|
}
|
|
4797
4797
|
let Hr;
|
|
4798
|
-
const Us = /* @__PURE__ */ new U(), Gr = /* @__PURE__ */ new U(), Wr = /* @__PURE__ */ new U(), qr = /* @__PURE__ */ new he(), Bs = /* @__PURE__ */ new he(), Sm = /* @__PURE__ */ new qe(), ea = /* @__PURE__ */ new U(), Os = /* @__PURE__ */ new U(), ta = /* @__PURE__ */ new U(), Wf = /* @__PURE__ */ new he(),
|
|
4798
|
+
const Us = /* @__PURE__ */ new U(), Gr = /* @__PURE__ */ new U(), Wr = /* @__PURE__ */ new U(), qr = /* @__PURE__ */ new he(), Bs = /* @__PURE__ */ new he(), Sm = /* @__PURE__ */ new qe(), ea = /* @__PURE__ */ new U(), Os = /* @__PURE__ */ new U(), ta = /* @__PURE__ */ new U(), Wf = /* @__PURE__ */ new he(), nh = /* @__PURE__ */ new he(), qf = /* @__PURE__ */ new he();
|
|
4799
4799
|
class Mm extends ct {
|
|
4800
4800
|
constructor(e = new Lu()) {
|
|
4801
4801
|
if (super(), this.isSprite = !0, this.type = "Sprite", Hr === void 0) {
|
|
@@ -4832,15 +4832,15 @@ class Mm extends ct {
|
|
|
4832
4832
|
let i, s;
|
|
4833
4833
|
n !== 0 && (s = Math.cos(n), i = Math.sin(n));
|
|
4834
4834
|
const o = this.center;
|
|
4835
|
-
na(ea.set(-0.5, -0.5, 0), Wr, o, Gr, i, s), na(Os.set(0.5, -0.5, 0), Wr, o, Gr, i, s), na(ta.set(0.5, 0.5, 0), Wr, o, Gr, i, s), Wf.set(0, 0),
|
|
4835
|
+
na(ea.set(-0.5, -0.5, 0), Wr, o, Gr, i, s), na(Os.set(0.5, -0.5, 0), Wr, o, Gr, i, s), na(ta.set(0.5, 0.5, 0), Wr, o, Gr, i, s), Wf.set(0, 0), nh.set(1, 0), qf.set(1, 1);
|
|
4836
4836
|
let a = e.ray.intersectTriangle(ea, Os, ta, !1, Us);
|
|
4837
|
-
if (a === null && (na(Os.set(-0.5, 0.5, 0), Wr, o, Gr, i, s),
|
|
4837
|
+
if (a === null && (na(Os.set(-0.5, 0.5, 0), Wr, o, Gr, i, s), nh.set(0, 1), a = e.ray.intersectTriangle(ea, ta, Os, !1, Us), a === null))
|
|
4838
4838
|
return;
|
|
4839
4839
|
const c = e.ray.origin.distanceTo(Us);
|
|
4840
4840
|
c < e.near || c > e.far || t.push({
|
|
4841
4841
|
distance: c,
|
|
4842
4842
|
point: Us.clone(),
|
|
4843
|
-
uv: fn.getInterpolation(Us, ea, Os, ta, Wf,
|
|
4843
|
+
uv: fn.getInterpolation(Us, ea, Os, ta, Wf, nh, qf, new he()),
|
|
4844
4844
|
face: null,
|
|
4845
4845
|
object: this
|
|
4846
4846
|
});
|
|
@@ -4944,10 +4944,10 @@ class Em extends ct {
|
|
|
4944
4944
|
return t;
|
|
4945
4945
|
}
|
|
4946
4946
|
}
|
|
4947
|
-
const Zf = /* @__PURE__ */ new U(), Yf = /* @__PURE__ */ new _t(), Qf = /* @__PURE__ */ new _t(), q_ = /* @__PURE__ */ new U(), Kf = /* @__PURE__ */ new qe(), ra = /* @__PURE__ */ new U(),
|
|
4947
|
+
const Zf = /* @__PURE__ */ new U(), Yf = /* @__PURE__ */ new _t(), Qf = /* @__PURE__ */ new _t(), q_ = /* @__PURE__ */ new U(), Kf = /* @__PURE__ */ new qe(), ra = /* @__PURE__ */ new U(), ih = /* @__PURE__ */ new Lt(), jf = /* @__PURE__ */ new qe(), rh = /* @__PURE__ */ new As();
|
|
4948
4948
|
class Nu extends St {
|
|
4949
4949
|
constructor(e, t) {
|
|
4950
|
-
super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode =
|
|
4950
|
+
super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Oh, this.bindMatrix = new qe(), this.bindMatrixInverse = new qe(), this.boundingBox = null, this.boundingSphere = null;
|
|
4951
4951
|
}
|
|
4952
4952
|
computeBoundingBox() {
|
|
4953
4953
|
const e = this.geometry;
|
|
@@ -4968,7 +4968,7 @@ class Nu extends St {
|
|
|
4968
4968
|
}
|
|
4969
4969
|
raycast(e, t) {
|
|
4970
4970
|
const n = this.material, i = this.matrixWorld;
|
|
4971
|
-
n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(),
|
|
4971
|
+
n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), ih.copy(this.boundingSphere), ih.applyMatrix4(i), e.ray.intersectsSphere(ih) !== !1 && (jf.copy(i).invert(), rh.copy(e.ray).applyMatrix4(jf), !(this.boundingBox !== null && rh.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, rh)));
|
|
4972
4972
|
}
|
|
4973
4973
|
getVertexPosition(e, t) {
|
|
4974
4974
|
return super.getVertexPosition(e, t), this.applyBoneTransform(e, t), t;
|
|
@@ -4988,7 +4988,7 @@ class Nu extends St {
|
|
|
4988
4988
|
}
|
|
4989
4989
|
}
|
|
4990
4990
|
updateMatrixWorld(e) {
|
|
4991
|
-
super.updateMatrixWorld(e), this.bindMode ===
|
|
4991
|
+
super.updateMatrixWorld(e), this.bindMode === Oh ? this.bindMatrixInverse.copy(this.matrixWorld).invert() : this.bindMode === im ? this.bindMatrixInverse.copy(this.bindMatrix).invert() : Te("SkinnedMesh: Unrecognized bindMode: " + this.bindMode);
|
|
4992
4992
|
}
|
|
4993
4993
|
applyBoneTransform(e, t) {
|
|
4994
4994
|
const n = this.skeleton, i = this.geometry;
|
|
@@ -5003,13 +5003,13 @@ class Nu extends St {
|
|
|
5003
5003
|
return t.applyMatrix4(this.bindMatrixInverse);
|
|
5004
5004
|
}
|
|
5005
5005
|
}
|
|
5006
|
-
class
|
|
5006
|
+
class tl extends ct {
|
|
5007
5007
|
constructor() {
|
|
5008
5008
|
super(), this.isBone = !0, this.type = "Bone";
|
|
5009
5009
|
}
|
|
5010
5010
|
}
|
|
5011
5011
|
class zn extends At {
|
|
5012
|
-
constructor(e = null, t = 1, n = 1, i, s, o, a, c, l =
|
|
5012
|
+
constructor(e = null, t = 1, n = 1, i, s, o, a, c, l = Tt, h = Tt, u, f) {
|
|
5013
5013
|
super(null, o, a, c, l, h, i, s, u, f), this.isDataTexture = !0, this.image = { data: e, width: t, height: n }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
5014
5014
|
}
|
|
5015
5015
|
}
|
|
@@ -5079,7 +5079,7 @@ class wo {
|
|
|
5079
5079
|
for (let n = 0, i = e.bones.length; n < i; n++) {
|
|
5080
5080
|
const s = e.bones[n];
|
|
5081
5081
|
let o = t[s];
|
|
5082
|
-
o === void 0 && (Te("Skeleton: No bone found with UUID:", s), o = new
|
|
5082
|
+
o === void 0 && (Te("Skeleton: No bone found with UUID:", s), o = new tl()), this.bones.push(o), this.boneInverses.push(new qe().fromArray(e.boneInverses[n]));
|
|
5083
5083
|
}
|
|
5084
5084
|
return this.init(), this;
|
|
5085
5085
|
}
|
|
@@ -5117,7 +5117,7 @@ class _r extends at {
|
|
|
5117
5117
|
}
|
|
5118
5118
|
}
|
|
5119
5119
|
const Xr = /* @__PURE__ */ new qe(), $f = /* @__PURE__ */ new qe(), sa = [], ed = /* @__PURE__ */ new Gt(), Z_ = /* @__PURE__ */ new qe(), Fs = /* @__PURE__ */ new St(), zs = /* @__PURE__ */ new Lt();
|
|
5120
|
-
class
|
|
5120
|
+
class nl extends St {
|
|
5121
5121
|
constructor(e, t, n) {
|
|
5122
5122
|
super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new _r(new Float32Array(n * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = n, this.boundingBox = null, this.boundingSphere = null;
|
|
5123
5123
|
for (let i = 0; i < n; i++)
|
|
@@ -5169,7 +5169,7 @@ class il extends St {
|
|
|
5169
5169
|
}
|
|
5170
5170
|
setMorphAt(e, t) {
|
|
5171
5171
|
const n = t.morphTargetInfluences, i = n.length + 1;
|
|
5172
|
-
this.morphTexture === null && (this.morphTexture = new zn(new Float32Array(i * this.count), i, this.count,
|
|
5172
|
+
this.morphTexture === null && (this.morphTexture = new zn(new Float32Array(i * this.count), i, this.count, Gc, rn));
|
|
5173
5173
|
const s = this.morphTexture.source.data.data;
|
|
5174
5174
|
let o = 0;
|
|
5175
5175
|
for (let l = 0; l < n.length; l++)
|
|
@@ -5183,7 +5183,7 @@ class il extends St {
|
|
|
5183
5183
|
this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null);
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
|
-
const
|
|
5186
|
+
const sh = /* @__PURE__ */ new U(), Y_ = /* @__PURE__ */ new U(), Q_ = /* @__PURE__ */ new et();
|
|
5187
5187
|
class wi {
|
|
5188
5188
|
constructor(e = new U(1, 0, 0), t = 0) {
|
|
5189
5189
|
this.isPlane = !0, this.normal = e, this.constant = t;
|
|
@@ -5198,7 +5198,7 @@ class wi {
|
|
|
5198
5198
|
return this.normal.copy(e), this.constant = -t.dot(this.normal), this;
|
|
5199
5199
|
}
|
|
5200
5200
|
setFromCoplanarPoints(e, t, n) {
|
|
5201
|
-
const i =
|
|
5201
|
+
const i = sh.subVectors(n, t).cross(Y_.subVectors(e, t)).normalize();
|
|
5202
5202
|
return this.setFromNormalAndCoplanarPoint(i, e), this;
|
|
5203
5203
|
}
|
|
5204
5204
|
copy(e) {
|
|
@@ -5221,7 +5221,7 @@ class wi {
|
|
|
5221
5221
|
return t.copy(e).addScaledVector(this.normal, -this.distanceToPoint(e));
|
|
5222
5222
|
}
|
|
5223
5223
|
intersectLine(e, t) {
|
|
5224
|
-
const n = e.delta(
|
|
5224
|
+
const n = e.delta(sh), i = this.normal.dot(n);
|
|
5225
5225
|
if (i === 0)
|
|
5226
5226
|
return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
|
|
5227
5227
|
const s = -(e.start.dot(this.normal) + this.constant) / i;
|
|
@@ -5241,7 +5241,7 @@ class wi {
|
|
|
5241
5241
|
return e.copy(this.normal).multiplyScalar(-this.constant);
|
|
5242
5242
|
}
|
|
5243
5243
|
applyMatrix4(e, t) {
|
|
5244
|
-
const n = t || Q_.getNormalMatrix(e), i = this.coplanarPoint(
|
|
5244
|
+
const n = t || Q_.getNormalMatrix(e), i = this.coplanarPoint(sh).applyMatrix4(e), s = this.normal.applyMatrix3(n).normalize();
|
|
5245
5245
|
return this.constant = -i.dot(s), this;
|
|
5246
5246
|
}
|
|
5247
5247
|
translate(e) {
|
|
@@ -5323,7 +5323,7 @@ class ws {
|
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
5325
|
const Gn = /* @__PURE__ */ new qe(), Wn = /* @__PURE__ */ new ws();
|
|
5326
|
-
class
|
|
5326
|
+
class il {
|
|
5327
5327
|
constructor() {
|
|
5328
5328
|
this.coordinateSystem = vn;
|
|
5329
5329
|
}
|
|
@@ -5413,10 +5413,10 @@ class rl {
|
|
|
5413
5413
|
return !1;
|
|
5414
5414
|
}
|
|
5415
5415
|
clone() {
|
|
5416
|
-
return new
|
|
5416
|
+
return new il();
|
|
5417
5417
|
}
|
|
5418
5418
|
}
|
|
5419
|
-
function
|
|
5419
|
+
function oh(r, e) {
|
|
5420
5420
|
return r - e;
|
|
5421
5421
|
}
|
|
5422
5422
|
function j_(r, e) {
|
|
@@ -5444,7 +5444,7 @@ class $_ {
|
|
|
5444
5444
|
this.list.length = 0, this.index = 0;
|
|
5445
5445
|
}
|
|
5446
5446
|
}
|
|
5447
|
-
const ln = /* @__PURE__ */ new qe(), ev = /* @__PURE__ */ new Ae(1, 1, 1), td = /* @__PURE__ */ new ws(), tv = /* @__PURE__ */ new
|
|
5447
|
+
const ln = /* @__PURE__ */ new qe(), ev = /* @__PURE__ */ new Ae(1, 1, 1), td = /* @__PURE__ */ new ws(), tv = /* @__PURE__ */ new il(), aa = /* @__PURE__ */ new Gt(), Gi = /* @__PURE__ */ new Lt(), ks = /* @__PURE__ */ new U(), nd = /* @__PURE__ */ new U(), nv = /* @__PURE__ */ new U(), ah = /* @__PURE__ */ new $_(), Qt = /* @__PURE__ */ new St(), ca = [];
|
|
5448
5448
|
function iv(r, e, t = 0) {
|
|
5449
5449
|
const n = e.itemSize;
|
|
5450
5450
|
if (r.isInterleavedBufferAttribute || r.array.constructor !== e.array.constructor) {
|
|
@@ -5491,7 +5491,7 @@ class Tm extends St {
|
|
|
5491
5491
|
_initIndirectTexture() {
|
|
5492
5492
|
let e = Math.sqrt(this._maxInstanceCount);
|
|
5493
5493
|
e = Math.ceil(e);
|
|
5494
|
-
const t = new Uint32Array(e * e), n = new zn(t, e, e, Ao,
|
|
5494
|
+
const t = new Uint32Array(e * e), n = new zn(t, e, e, Ao, Cn);
|
|
5495
5495
|
this._indirectTexture = n;
|
|
5496
5496
|
}
|
|
5497
5497
|
_initColorsTexture() {
|
|
@@ -5570,7 +5570,7 @@ class Tm extends St {
|
|
|
5570
5570
|
geometryIndex: e
|
|
5571
5571
|
};
|
|
5572
5572
|
let i = null;
|
|
5573
|
-
this._availableInstanceIds.length > 0 ? (this._availableInstanceIds.sort(
|
|
5573
|
+
this._availableInstanceIds.length > 0 ? (this._availableInstanceIds.sort(oh), i = this._availableInstanceIds.shift(), this._instanceInfo[i] = n) : (i = this._instanceInfo.length, this._instanceInfo.push(n));
|
|
5574
5574
|
const s = this._matricesTexture;
|
|
5575
5575
|
ln.identity().toArray(s.image.data, i * 16), s.needsUpdate = !0;
|
|
5576
5576
|
const o = this._colorsTexture;
|
|
@@ -5596,7 +5596,7 @@ class Tm extends St {
|
|
|
5596
5596
|
if (o !== null && (i.indexStart = this._nextIndexStart, i.reservedIndexCount = n === -1 ? o.count : n), i.indexStart !== -1 && i.indexStart + i.reservedIndexCount > this._maxIndexCount || i.vertexStart + i.reservedVertexCount > this._maxVertexCount)
|
|
5597
5597
|
throw new Error("THREE.BatchedMesh: Reserved space request exceeds the maximum buffer size.");
|
|
5598
5598
|
let c;
|
|
5599
|
-
return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(
|
|
5599
|
+
return this._availableGeometryIds.length > 0 ? (this._availableGeometryIds.sort(oh), c = this._availableGeometryIds.shift(), s[c] = i) : (c = this._geometryCount, this._geometryCount++, s.push(i)), this.setGeometryAt(c, e), this._nextIndexStart = i.indexStart + i.reservedIndexCount, this._nextVertexStart = i.vertexStart + i.reservedVertexCount, c;
|
|
5600
5600
|
}
|
|
5601
5601
|
setGeometryAt(e, t) {
|
|
5602
5602
|
if (e >= this._geometryCount)
|
|
@@ -5733,7 +5733,7 @@ class Tm extends St {
|
|
|
5733
5733
|
}
|
|
5734
5734
|
setInstanceCount(e) {
|
|
5735
5735
|
const t = this._availableInstanceIds, n = this._instanceInfo;
|
|
5736
|
-
for (t.sort(
|
|
5736
|
+
for (t.sort(oh); t[t.length - 1] === n.length - 1; )
|
|
5737
5737
|
n.pop(), t.pop();
|
|
5738
5738
|
if (e < n.length)
|
|
5739
5739
|
throw new Error(`BatchedMesh: Instance ids outside the range ${e} are being used. Cannot shrink instance count.`);
|
|
@@ -5800,16 +5800,16 @@ class Tm extends St {
|
|
|
5800
5800
|
let E = !1;
|
|
5801
5801
|
if (f && (E = !_.intersectsSphere(Gi, n)), !E) {
|
|
5802
5802
|
const I = u[A], D = nv.subVectors(Gi.center, ks).dot(nd);
|
|
5803
|
-
|
|
5803
|
+
ah.push(I.start, I.count, D, y);
|
|
5804
5804
|
}
|
|
5805
5805
|
}
|
|
5806
|
-
const p =
|
|
5806
|
+
const p = ah.list, v = this.customSort;
|
|
5807
5807
|
v === null ? p.sort(s.transparent ? J_ : j_) : v.call(this, p, n);
|
|
5808
5808
|
for (let y = 0, x = p.length; y < x; y++) {
|
|
5809
5809
|
const A = p[y];
|
|
5810
5810
|
l[m] = A.start * a, h[m] = A.count, g[m] = A.index, m++;
|
|
5811
5811
|
}
|
|
5812
|
-
|
|
5812
|
+
ah.reset();
|
|
5813
5813
|
} else
|
|
5814
5814
|
for (let p = 0, v = c.length; p < v; p++)
|
|
5815
5815
|
if (c[p].visible && c[p].active) {
|
|
@@ -5834,7 +5834,7 @@ class Wt extends zt {
|
|
|
5834
5834
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
|
|
5835
5835
|
}
|
|
5836
5836
|
}
|
|
5837
|
-
const Pc = /* @__PURE__ */ new U(), Dc = /* @__PURE__ */ new U(), id = /* @__PURE__ */ new qe(), Vs = /* @__PURE__ */ new As(), la = /* @__PURE__ */ new Lt(),
|
|
5837
|
+
const Pc = /* @__PURE__ */ new U(), Dc = /* @__PURE__ */ new U(), id = /* @__PURE__ */ new qe(), Vs = /* @__PURE__ */ new As(), la = /* @__PURE__ */ new Lt(), ch = /* @__PURE__ */ new U(), rd = /* @__PURE__ */ new U();
|
|
5838
5838
|
class pi extends ct {
|
|
5839
5839
|
constructor(e = new Je(), t = new Wt()) {
|
|
5840
5840
|
super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
|
|
@@ -5897,10 +5897,10 @@ class pi extends ct {
|
|
|
5897
5897
|
}
|
|
5898
5898
|
function ha(r, e, t, n, i, s, o) {
|
|
5899
5899
|
const a = r.geometry.attributes.position;
|
|
5900
|
-
if (Pc.fromBufferAttribute(a, i), Dc.fromBufferAttribute(a, s), t.distanceSqToSegment(Pc, Dc,
|
|
5900
|
+
if (Pc.fromBufferAttribute(a, i), Dc.fromBufferAttribute(a, s), t.distanceSqToSegment(Pc, Dc, ch, rd) > n)
|
|
5901
5901
|
return;
|
|
5902
|
-
|
|
5903
|
-
const l = e.ray.origin.distanceTo(
|
|
5902
|
+
ch.applyMatrix4(r.matrixWorld);
|
|
5903
|
+
const l = e.ray.origin.distanceTo(ch);
|
|
5904
5904
|
if (!(l < e.near || l > e.far))
|
|
5905
5905
|
return {
|
|
5906
5906
|
distance: l,
|
|
@@ -5913,7 +5913,7 @@ function ha(r, e, t, n, i, s, o) {
|
|
|
5913
5913
|
};
|
|
5914
5914
|
}
|
|
5915
5915
|
const sd = /* @__PURE__ */ new U(), od = /* @__PURE__ */ new U();
|
|
5916
|
-
class
|
|
5916
|
+
class Rn extends pi {
|
|
5917
5917
|
constructor(e, t) {
|
|
5918
5918
|
super(e, t), this.isLineSegments = !0, this.type = "LineSegments";
|
|
5919
5919
|
}
|
|
@@ -5934,7 +5934,7 @@ class Uu extends pi {
|
|
|
5934
5934
|
super(e, t), this.isLineLoop = !0, this.type = "LineLoop";
|
|
5935
5935
|
}
|
|
5936
5936
|
}
|
|
5937
|
-
class
|
|
5937
|
+
class rl extends zt {
|
|
5938
5938
|
constructor(e) {
|
|
5939
5939
|
super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new Ae(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(e);
|
|
5940
5940
|
}
|
|
@@ -5942,9 +5942,9 @@ class sl extends zt {
|
|
|
5942
5942
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
5943
5943
|
}
|
|
5944
5944
|
}
|
|
5945
|
-
const ad = /* @__PURE__ */ new qe(),
|
|
5945
|
+
const ad = /* @__PURE__ */ new qe(), kh = /* @__PURE__ */ new As(), ua = /* @__PURE__ */ new Lt(), fa = /* @__PURE__ */ new U();
|
|
5946
5946
|
class Bu extends ct {
|
|
5947
|
-
constructor(e = new Je(), t = new
|
|
5947
|
+
constructor(e = new Je(), t = new rl()) {
|
|
5948
5948
|
super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
|
|
5949
5949
|
}
|
|
5950
5950
|
copy(e, t) {
|
|
@@ -5954,7 +5954,7 @@ class Bu extends ct {
|
|
|
5954
5954
|
const n = this.geometry, i = this.matrixWorld, s = e.params.Points.threshold, o = n.drawRange;
|
|
5955
5955
|
if (n.boundingSphere === null && n.computeBoundingSphere(), ua.copy(n.boundingSphere), ua.applyMatrix4(i), ua.radius += s, e.ray.intersectsSphere(ua) === !1)
|
|
5956
5956
|
return;
|
|
5957
|
-
ad.copy(i).invert(),
|
|
5957
|
+
ad.copy(i).invert(), kh.copy(e.ray).applyMatrix4(ad);
|
|
5958
5958
|
const a = s / ((this.scale.x + this.scale.y + this.scale.z) / 3), c = a * a, l = n.index, u = n.attributes.position;
|
|
5959
5959
|
if (l !== null) {
|
|
5960
5960
|
const f = Math.max(0, o.start), d = Math.min(l.count, o.start + o.count);
|
|
@@ -5983,10 +5983,10 @@ class Bu extends ct {
|
|
|
5983
5983
|
}
|
|
5984
5984
|
}
|
|
5985
5985
|
function cd(r, e, t, n, i, s, o) {
|
|
5986
|
-
const a =
|
|
5986
|
+
const a = kh.distanceSqToPoint(r);
|
|
5987
5987
|
if (a < t) {
|
|
5988
5988
|
const c = new U();
|
|
5989
|
-
|
|
5989
|
+
kh.closestPointToPoint(r, c), c.applyMatrix4(n);
|
|
5990
5990
|
const l = i.ray.origin.distanceTo(c);
|
|
5991
5991
|
if (l < i.near || l > i.far)
|
|
5992
5992
|
return;
|
|
@@ -6037,15 +6037,15 @@ class rv extends Cm {
|
|
|
6037
6037
|
}
|
|
6038
6038
|
class sv extends At {
|
|
6039
6039
|
constructor(e, t) {
|
|
6040
|
-
super({ width: e, height: t }), this.isFramebufferTexture = !0, this.magFilter =
|
|
6040
|
+
super({ width: e, height: t }), this.isFramebufferTexture = !0, this.magFilter = Tt, this.minFilter = Tt, this.generateMipmaps = !1, this.needsUpdate = !0;
|
|
6041
6041
|
}
|
|
6042
6042
|
}
|
|
6043
|
-
class
|
|
6043
|
+
class sl extends At {
|
|
6044
6044
|
constructor(e, t, n, i, s, o, a, c, l, h, u, f) {
|
|
6045
6045
|
super(null, o, a, c, l, h, i, s, u, f), this.isCompressedTexture = !0, this.image = { width: t, height: n }, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1;
|
|
6046
6046
|
}
|
|
6047
6047
|
}
|
|
6048
|
-
class ov extends
|
|
6048
|
+
class ov extends sl {
|
|
6049
6049
|
constructor(e, t, n, i, s, o) {
|
|
6050
6050
|
super(e, t, n, s, o), this.isCompressedArrayTexture = !0, this.image.depth = i, this.wrapR = nn, this.layerUpdates = /* @__PURE__ */ new Set();
|
|
6051
6051
|
}
|
|
@@ -6056,7 +6056,7 @@ class ov extends ol {
|
|
|
6056
6056
|
this.layerUpdates.clear();
|
|
6057
6057
|
}
|
|
6058
6058
|
}
|
|
6059
|
-
class av extends
|
|
6059
|
+
class av extends sl {
|
|
6060
6060
|
constructor(e, t, n) {
|
|
6061
6061
|
super(void 0, e[0].width, e[0].height, t, n, Jn), this.isCompressedCubeTexture = !0, this.isCubeTexture = !0, this.image = e;
|
|
6062
6062
|
}
|
|
@@ -6067,7 +6067,7 @@ class cv extends At {
|
|
|
6067
6067
|
}
|
|
6068
6068
|
}
|
|
6069
6069
|
class ms extends At {
|
|
6070
|
-
constructor(e, t, n =
|
|
6070
|
+
constructor(e, t, n = Cn, i, s, o, a = Tt, c = Tt, l, h = ei, u = 1) {
|
|
6071
6071
|
if (h !== ei && h !== Ei)
|
|
6072
6072
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
6073
6073
|
const f = { width: e, height: t, depth: u };
|
|
@@ -6082,7 +6082,7 @@ class ms extends At {
|
|
|
6082
6082
|
}
|
|
6083
6083
|
}
|
|
6084
6084
|
class Im extends ms {
|
|
6085
|
-
constructor(e, t =
|
|
6085
|
+
constructor(e, t = Cn, n = Jn, i, s, o = Tt, a = Tt, c, l = ei) {
|
|
6086
6086
|
const h = { width: e, height: e, depth: 1 }, u = [h, h, h, h, h, h];
|
|
6087
6087
|
super(e, e, t, n, i, s, o, a, c, l), this.image = u, this.isCubeDepthTexture = !0, this.isCubeTexture = !0;
|
|
6088
6088
|
}
|
|
@@ -6101,7 +6101,7 @@ class Ou extends At {
|
|
|
6101
6101
|
return super.copy(e), this.sourceTexture = e.sourceTexture, this;
|
|
6102
6102
|
}
|
|
6103
6103
|
}
|
|
6104
|
-
class
|
|
6104
|
+
class ol extends Je {
|
|
6105
6105
|
constructor(e = 1, t = 1, n = 4, i = 8, s = 1) {
|
|
6106
6106
|
super(), this.type = "CapsuleGeometry", this.parameters = {
|
|
6107
6107
|
radius: e,
|
|
@@ -6148,10 +6148,10 @@ class al extends Je {
|
|
|
6148
6148
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
6149
6149
|
}
|
|
6150
6150
|
static fromJSON(e) {
|
|
6151
|
-
return new
|
|
6151
|
+
return new ol(e.radius, e.height, e.capSegments, e.radialSegments, e.heightSegments);
|
|
6152
6152
|
}
|
|
6153
6153
|
}
|
|
6154
|
-
class
|
|
6154
|
+
class al extends Je {
|
|
6155
6155
|
constructor(e = 1, t = 32, n = 0, i = Math.PI * 2) {
|
|
6156
6156
|
super(), this.type = "CircleGeometry", this.parameters = {
|
|
6157
6157
|
radius: e,
|
|
@@ -6173,7 +6173,7 @@ class cl extends Je {
|
|
|
6173
6173
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
6174
6174
|
}
|
|
6175
6175
|
static fromJSON(e) {
|
|
6176
|
-
return new
|
|
6176
|
+
return new al(e.radius, e.segments, e.thetaStart, e.thetaLength);
|
|
6177
6177
|
}
|
|
6178
6178
|
}
|
|
6179
6179
|
class So extends Je {
|
|
@@ -6336,7 +6336,7 @@ class Ui extends Je {
|
|
|
6336
6336
|
return new Ui(e.vertices, e.indices, e.radius, e.detail);
|
|
6337
6337
|
}
|
|
6338
6338
|
}
|
|
6339
|
-
class
|
|
6339
|
+
class cl extends Ui {
|
|
6340
6340
|
constructor(e = 1, t = 0) {
|
|
6341
6341
|
const n = (1 + Math.sqrt(5)) / 2, i = 1 / n, s = [
|
|
6342
6342
|
-1,
|
|
@@ -6515,10 +6515,10 @@ class ll extends Ui {
|
|
|
6515
6515
|
};
|
|
6516
6516
|
}
|
|
6517
6517
|
static fromJSON(e) {
|
|
6518
|
-
return new
|
|
6518
|
+
return new cl(e.radius, e.detail);
|
|
6519
6519
|
}
|
|
6520
6520
|
}
|
|
6521
|
-
const da = /* @__PURE__ */ new U(), pa = /* @__PURE__ */ new U(),
|
|
6521
|
+
const da = /* @__PURE__ */ new U(), pa = /* @__PURE__ */ new U(), lh = /* @__PURE__ */ new U(), ma = /* @__PURE__ */ new fn();
|
|
6522
6522
|
class Rm extends Je {
|
|
6523
6523
|
constructor(e = null, t = 1) {
|
|
6524
6524
|
if (super(), this.type = "EdgesGeometry", this.parameters = {
|
|
@@ -6529,13 +6529,13 @@ class Rm extends Je {
|
|
|
6529
6529
|
for (let g = 0; g < c; g += 3) {
|
|
6530
6530
|
o ? (l[0] = o.getX(g), l[1] = o.getX(g + 1), l[2] = o.getX(g + 2)) : (l[0] = g, l[1] = g + 1, l[2] = g + 2);
|
|
6531
6531
|
const { a: _, b: m, c: p } = ma;
|
|
6532
|
-
if (_.fromBufferAttribute(a, l[0]), m.fromBufferAttribute(a, l[1]), p.fromBufferAttribute(a, l[2]), ma.getNormal(
|
|
6532
|
+
if (_.fromBufferAttribute(a, l[0]), m.fromBufferAttribute(a, l[1]), p.fromBufferAttribute(a, l[2]), ma.getNormal(lh), u[0] = `${Math.round(_.x * i)},${Math.round(_.y * i)},${Math.round(_.z * i)}`, u[1] = `${Math.round(m.x * i)},${Math.round(m.y * i)},${Math.round(m.z * i)}`, u[2] = `${Math.round(p.x * i)},${Math.round(p.y * i)},${Math.round(p.z * i)}`, !(u[0] === u[1] || u[1] === u[2] || u[2] === u[0]))
|
|
6533
6533
|
for (let v = 0; v < 3; v++) {
|
|
6534
6534
|
const y = (v + 1) % 3, x = u[v], A = u[y], E = ma[h[v]], I = ma[h[y]], D = `${x}_${A}`, b = `${A}_${x}`;
|
|
6535
|
-
b in f && f[b] ? (
|
|
6535
|
+
b in f && f[b] ? (lh.dot(f[b].normal) <= s && (d.push(E.x, E.y, E.z), d.push(I.x, I.y, I.z)), f[b] = null) : D in f || (f[D] = {
|
|
6536
6536
|
index0: l[v],
|
|
6537
6537
|
index1: l[y],
|
|
6538
|
-
normal:
|
|
6538
|
+
normal: lh.clone()
|
|
6539
6539
|
});
|
|
6540
6540
|
}
|
|
6541
6541
|
}
|
|
@@ -6673,7 +6673,7 @@ class Vn {
|
|
|
6673
6673
|
return this.arcLengthDivisions = e.arcLengthDivisions, this;
|
|
6674
6674
|
}
|
|
6675
6675
|
}
|
|
6676
|
-
class
|
|
6676
|
+
class ll extends Vn {
|
|
6677
6677
|
constructor(e = 0, t = 0, n = 1, i = 1, s = 0, o = Math.PI * 2, a = !1, c = 0) {
|
|
6678
6678
|
super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = e, this.aY = t, this.xRadius = n, this.yRadius = i, this.aStartAngle = s, this.aEndAngle = o, this.aClockwise = a, this.aRotation = c;
|
|
6679
6679
|
}
|
|
@@ -6705,7 +6705,7 @@ class hl extends Vn {
|
|
|
6705
6705
|
return super.fromJSON(e), this.aX = e.aX, this.aY = e.aY, this.xRadius = e.xRadius, this.yRadius = e.yRadius, this.aStartAngle = e.aStartAngle, this.aEndAngle = e.aEndAngle, this.aClockwise = e.aClockwise, this.aRotation = e.aRotation, this;
|
|
6706
6706
|
}
|
|
6707
6707
|
}
|
|
6708
|
-
class Pm extends
|
|
6708
|
+
class Pm extends ll {
|
|
6709
6709
|
constructor(e, t, n, i, s, o) {
|
|
6710
6710
|
super(e, t, n, n, i, s, o), this.isArcCurve = !0, this.type = "ArcCurve";
|
|
6711
6711
|
}
|
|
@@ -6729,7 +6729,7 @@ function Fu() {
|
|
|
6729
6729
|
}
|
|
6730
6730
|
};
|
|
6731
6731
|
}
|
|
6732
|
-
const ga = /* @__PURE__ */ new U(),
|
|
6732
|
+
const ga = /* @__PURE__ */ new U(), hh = /* @__PURE__ */ new Fu(), uh = /* @__PURE__ */ new Fu(), fh = /* @__PURE__ */ new Fu();
|
|
6733
6733
|
class Dm extends Vn {
|
|
6734
6734
|
constructor(e = [], t = !1, n = "centripetal", i = 0.5) {
|
|
6735
6735
|
super(), this.isCatmullRomCurve3 = !0, this.type = "CatmullRomCurve3", this.points = e, this.closed = t, this.curveType = n, this.tension = i;
|
|
@@ -6744,13 +6744,13 @@ class Dm extends Vn {
|
|
|
6744
6744
|
if (this.closed || a + 2 < s ? h = i[(a + 2) % s] : (ga.subVectors(i[s - 1], i[s - 2]).add(i[s - 1]), h = ga), this.curveType === "centripetal" || this.curveType === "chordal") {
|
|
6745
6745
|
const d = this.curveType === "chordal" ? 0.5 : 0.25;
|
|
6746
6746
|
let g = Math.pow(l.distanceToSquared(u), d), _ = Math.pow(u.distanceToSquared(f), d), m = Math.pow(f.distanceToSquared(h), d);
|
|
6747
|
-
_ < 1e-4 && (_ = 1), g < 1e-4 && (g = _), m < 1e-4 && (m = _),
|
|
6747
|
+
_ < 1e-4 && (_ = 1), g < 1e-4 && (g = _), m < 1e-4 && (m = _), hh.initNonuniformCatmullRom(l.x, u.x, f.x, h.x, g, _, m), uh.initNonuniformCatmullRom(l.y, u.y, f.y, h.y, g, _, m), fh.initNonuniformCatmullRom(l.z, u.z, f.z, h.z, g, _, m);
|
|
6748
6748
|
} else
|
|
6749
|
-
this.curveType === "catmullrom" && (
|
|
6749
|
+
this.curveType === "catmullrom" && (hh.initCatmullRom(l.x, u.x, f.x, h.x, this.tension), uh.initCatmullRom(l.y, u.y, f.y, h.y, this.tension), fh.initCatmullRom(l.z, u.z, f.z, h.z, this.tension));
|
|
6750
6750
|
return n.set(
|
|
6751
|
+
hh.calc(c),
|
|
6751
6752
|
uh.calc(c),
|
|
6752
|
-
fh.calc(c)
|
|
6753
|
-
dh.calc(c)
|
|
6753
|
+
fh.calc(c)
|
|
6754
6754
|
), n;
|
|
6755
6755
|
}
|
|
6756
6756
|
copy(e) {
|
|
@@ -7002,7 +7002,7 @@ var Lc = /* @__PURE__ */ Object.freeze({
|
|
|
7002
7002
|
CatmullRomCurve3: Dm,
|
|
7003
7003
|
CubicBezierCurve: zu,
|
|
7004
7004
|
CubicBezierCurve3: Lm,
|
|
7005
|
-
EllipseCurve:
|
|
7005
|
+
EllipseCurve: ll,
|
|
7006
7006
|
LineCurve: ku,
|
|
7007
7007
|
LineCurve3: Nm,
|
|
7008
7008
|
QuadraticBezierCurve: Vu,
|
|
@@ -7153,7 +7153,7 @@ class Nc extends Um {
|
|
|
7153
7153
|
return this.absellipse(e + l, t + h, n, i, s, o, a, c), this;
|
|
7154
7154
|
}
|
|
7155
7155
|
absellipse(e, t, n, i, s, o, a, c) {
|
|
7156
|
-
const l = new
|
|
7156
|
+
const l = new ll(e, t, n, i, s, o, a, c);
|
|
7157
7157
|
if (this.curves.length > 0) {
|
|
7158
7158
|
const u = l.getPoint(0);
|
|
7159
7159
|
u.equals(this.currentPoint) || this.lineTo(u.x, u.y);
|
|
@@ -7249,7 +7249,7 @@ function vr(r, e) {
|
|
|
7249
7249
|
e || (e = r);
|
|
7250
7250
|
let t = r, n;
|
|
7251
7251
|
do
|
|
7252
|
-
if (n = !1, !t.steiner && (gs(t, t.next) ||
|
|
7252
|
+
if (n = !1, !t.steiner && (gs(t, t.next) || Et(t.prev, t, t.next) === 0)) {
|
|
7253
7253
|
if (go(t), t = e = t.prev, t === t.next)
|
|
7254
7254
|
break;
|
|
7255
7255
|
n = !0;
|
|
@@ -7277,12 +7277,12 @@ function po(r, e, t, n, i, s, o) {
|
|
|
7277
7277
|
}
|
|
7278
7278
|
function _v(r) {
|
|
7279
7279
|
const e = r.prev, t = r, n = r.next;
|
|
7280
|
-
if (
|
|
7280
|
+
if (Et(e, t, n) >= 0)
|
|
7281
7281
|
return !1;
|
|
7282
7282
|
const i = e.x, s = t.x, o = n.x, a = e.y, c = t.y, l = n.y, h = Math.min(i, s, o), u = Math.min(a, c, l), f = Math.max(i, s, o), d = Math.max(a, c, l);
|
|
7283
7283
|
let g = n.next;
|
|
7284
7284
|
for (; g !== e; ) {
|
|
7285
|
-
if (g.x >= h && g.x <= f && g.y >= u && g.y <= d && Xs(i, a, s, c, o, l, g.x, g.y) &&
|
|
7285
|
+
if (g.x >= h && g.x <= f && g.y >= u && g.y <= d && Xs(i, a, s, c, o, l, g.x, g.y) && Et(g.prev, g, g.next) >= 0)
|
|
7286
7286
|
return !1;
|
|
7287
7287
|
g = g.next;
|
|
7288
7288
|
}
|
|
@@ -7290,22 +7290,22 @@ function _v(r) {
|
|
|
7290
7290
|
}
|
|
7291
7291
|
function vv(r, e, t, n) {
|
|
7292
7292
|
const i = r.prev, s = r, o = r.next;
|
|
7293
|
-
if (
|
|
7293
|
+
if (Et(i, s, o) >= 0)
|
|
7294
7294
|
return !1;
|
|
7295
|
-
const a = i.x, c = s.x, l = o.x, h = i.y, u = s.y, f = o.y, d = Math.min(a, c, l), g = Math.min(h, u, f), _ = Math.max(a, c, l), m = Math.max(h, u, f), p =
|
|
7295
|
+
const a = i.x, c = s.x, l = o.x, h = i.y, u = s.y, f = o.y, d = Math.min(a, c, l), g = Math.min(h, u, f), _ = Math.max(a, c, l), m = Math.max(h, u, f), p = Vh(d, g, e, t, n), v = Vh(_, m, e, t, n);
|
|
7296
7296
|
let y = r.prevZ, x = r.nextZ;
|
|
7297
7297
|
for (; y && y.z >= p && x && x.z <= v; ) {
|
|
7298
|
-
if (y.x >= d && y.x <= _ && y.y >= g && y.y <= m && y !== i && y !== o && Xs(a, h, c, u, l, f, y.x, y.y) &&
|
|
7298
|
+
if (y.x >= d && y.x <= _ && y.y >= g && y.y <= m && y !== i && y !== o && Xs(a, h, c, u, l, f, y.x, y.y) && Et(y.prev, y, y.next) >= 0 || (y = y.prevZ, x.x >= d && x.x <= _ && x.y >= g && x.y <= m && x !== i && x !== o && Xs(a, h, c, u, l, f, x.x, x.y) && Et(x.prev, x, x.next) >= 0))
|
|
7299
7299
|
return !1;
|
|
7300
7300
|
x = x.nextZ;
|
|
7301
7301
|
}
|
|
7302
7302
|
for (; y && y.z >= p; ) {
|
|
7303
|
-
if (y.x >= d && y.x <= _ && y.y >= g && y.y <= m && y !== i && y !== o && Xs(a, h, c, u, l, f, y.x, y.y) &&
|
|
7303
|
+
if (y.x >= d && y.x <= _ && y.y >= g && y.y <= m && y !== i && y !== o && Xs(a, h, c, u, l, f, y.x, y.y) && Et(y.prev, y, y.next) >= 0)
|
|
7304
7304
|
return !1;
|
|
7305
7305
|
y = y.prevZ;
|
|
7306
7306
|
}
|
|
7307
7307
|
for (; x && x.z <= v; ) {
|
|
7308
|
-
if (x.x >= d && x.x <= _ && x.y >= g && x.y <= m && x !== i && x !== o && Xs(a, h, c, u, l, f, x.x, x.y) &&
|
|
7308
|
+
if (x.x >= d && x.x <= _ && x.y >= g && x.y <= m && x !== i && x !== o && Xs(a, h, c, u, l, f, x.x, x.y) && Et(x.prev, x, x.next) >= 0)
|
|
7309
7309
|
return !1;
|
|
7310
7310
|
x = x.nextZ;
|
|
7311
7311
|
}
|
|
@@ -7391,12 +7391,12 @@ function Sv(r, e) {
|
|
|
7391
7391
|
return o;
|
|
7392
7392
|
}
|
|
7393
7393
|
function Mv(r, e) {
|
|
7394
|
-
return
|
|
7394
|
+
return Et(r.prev, r, e.prev) < 0 && Et(e.next, r, r.next) < 0;
|
|
7395
7395
|
}
|
|
7396
7396
|
function Ev(r, e, t, n) {
|
|
7397
7397
|
let i = r;
|
|
7398
7398
|
do
|
|
7399
|
-
i.z === 0 && (i.z =
|
|
7399
|
+
i.z === 0 && (i.z = Vh(i.x, i.y, e, t, n)), i.prevZ = i.prev, i.nextZ = i.next, i = i.next;
|
|
7400
7400
|
while (i !== r);
|
|
7401
7401
|
i.prevZ.nextZ = null, i.prevZ = null, Tv(i);
|
|
7402
7402
|
}
|
|
@@ -7420,7 +7420,7 @@ function Tv(r) {
|
|
|
7420
7420
|
} while (e > 1);
|
|
7421
7421
|
return r;
|
|
7422
7422
|
}
|
|
7423
|
-
function
|
|
7423
|
+
function Vh(r, e, t, n, i) {
|
|
7424
7424
|
return r = (r - t) * i | 0, e = (e - n) * i | 0, r = (r | r << 8) & 16711935, r = (r | r << 4) & 252645135, r = (r | r << 2) & 858993459, r = (r | r << 1) & 1431655765, e = (e | e << 8) & 16711935, e = (e | e << 4) & 252645135, e = (e | e << 2) & 858993459, e = (e | e << 1) & 1431655765, r | e << 1;
|
|
7425
7425
|
}
|
|
7426
7426
|
function Cv(r) {
|
|
@@ -7437,16 +7437,16 @@ function Xs(r, e, t, n, i, s, o, a) {
|
|
|
7437
7437
|
return !(r === o && e === a) && Om(r, e, t, n, i, s, o, a);
|
|
7438
7438
|
}
|
|
7439
7439
|
function Iv(r, e) {
|
|
7440
|
-
return r.next.i !== e.i && r.prev.i !== e.i && !Rv(r, e) && (mo(r, e) && mo(e, r) && Pv(r, e) && (
|
|
7440
|
+
return r.next.i !== e.i && r.prev.i !== e.i && !Rv(r, e) && (mo(r, e) && mo(e, r) && Pv(r, e) && (Et(r.prev, r, e.prev) || Et(r, e.prev, e)) || gs(r, e) && Et(r.prev, r, r.next) > 0 && Et(e.prev, e, e.next) > 0);
|
|
7441
7441
|
}
|
|
7442
|
-
function
|
|
7442
|
+
function Et(r, e, t) {
|
|
7443
7443
|
return (e.y - r.y) * (t.x - e.x) - (e.x - r.x) * (t.y - e.y);
|
|
7444
7444
|
}
|
|
7445
7445
|
function gs(r, e) {
|
|
7446
7446
|
return r.x === e.x && r.y === e.y;
|
|
7447
7447
|
}
|
|
7448
7448
|
function Fm(r, e, t, n) {
|
|
7449
|
-
const i = va(
|
|
7449
|
+
const i = va(Et(r, e, t)), s = va(Et(r, e, n)), o = va(Et(t, n, r)), a = va(Et(t, n, e));
|
|
7450
7450
|
return !!(i !== s && o !== a || i === 0 && _a(r, t, e) || s === 0 && _a(r, n, e) || o === 0 && _a(t, r, n) || a === 0 && _a(t, e, n));
|
|
7451
7451
|
}
|
|
7452
7452
|
function _a(r, e, t) {
|
|
@@ -7465,7 +7465,7 @@ function Rv(r, e) {
|
|
|
7465
7465
|
return !1;
|
|
7466
7466
|
}
|
|
7467
7467
|
function mo(r, e) {
|
|
7468
|
-
return
|
|
7468
|
+
return Et(r.prev, r, r.next) < 0 ? Et(r, e, r.next) >= 0 && Et(r, r.prev, e) >= 0 : Et(r, e, r.prev) < 0 || Et(r, r.next, e) < 0;
|
|
7469
7469
|
}
|
|
7470
7470
|
function Pv(r, e) {
|
|
7471
7471
|
let t = r, n = !1;
|
|
@@ -7476,17 +7476,17 @@ function Pv(r, e) {
|
|
|
7476
7476
|
return n;
|
|
7477
7477
|
}
|
|
7478
7478
|
function zm(r, e) {
|
|
7479
|
-
const t =
|
|
7479
|
+
const t = Hh(r.i, r.x, r.y), n = Hh(e.i, e.x, e.y), i = r.next, s = e.prev;
|
|
7480
7480
|
return r.next = e, e.prev = r, t.next = i, i.prev = t, n.next = t, t.prev = n, s.next = n, n.prev = s, n;
|
|
7481
7481
|
}
|
|
7482
7482
|
function hd(r, e, t, n) {
|
|
7483
|
-
const i =
|
|
7483
|
+
const i = Hh(r, e, t);
|
|
7484
7484
|
return n ? (i.next = n.next, i.prev = n, n.next.prev = i, n.next = i) : (i.prev = i, i.next = i), i;
|
|
7485
7485
|
}
|
|
7486
7486
|
function go(r) {
|
|
7487
7487
|
r.next.prev = r.prev, r.prev.next = r.next, r.prevZ && (r.prevZ.nextZ = r.nextZ), r.nextZ && (r.nextZ.prevZ = r.prevZ);
|
|
7488
7488
|
}
|
|
7489
|
-
function
|
|
7489
|
+
function Hh(r, e, t) {
|
|
7490
7490
|
return {
|
|
7491
7491
|
i: r,
|
|
7492
7492
|
x: e,
|
|
@@ -7510,7 +7510,7 @@ class Lv {
|
|
|
7510
7510
|
return gv(e, t, n);
|
|
7511
7511
|
}
|
|
7512
7512
|
}
|
|
7513
|
-
class
|
|
7513
|
+
class Fn {
|
|
7514
7514
|
static area(e) {
|
|
7515
7515
|
const t = e.length;
|
|
7516
7516
|
let n = 0;
|
|
@@ -7519,7 +7519,7 @@ class On {
|
|
|
7519
7519
|
return n * 0.5;
|
|
7520
7520
|
}
|
|
7521
7521
|
static isClockWise(e) {
|
|
7522
|
-
return
|
|
7522
|
+
return Fn.area(e) < 0;
|
|
7523
7523
|
}
|
|
7524
7524
|
static triangulateShape(e, t) {
|
|
7525
7525
|
const n = [], i = [], s = [];
|
|
@@ -7542,7 +7542,7 @@ function fd(r, e) {
|
|
|
7542
7542
|
for (let t = 0; t < e.length; t++)
|
|
7543
7543
|
r.push(e[t].x), r.push(e[t].y);
|
|
7544
7544
|
}
|
|
7545
|
-
class
|
|
7545
|
+
class hl extends Je {
|
|
7546
7546
|
constructor(e = new fr([new he(0.5, 0.5), new he(-0.5, 0.5), new he(-0.5, -0.5), new he(0.5, -0.5)]), t = {}) {
|
|
7547
7547
|
super(), this.type = "ExtrudeGeometry", this.parameters = {
|
|
7548
7548
|
shapes: e,
|
|
@@ -7568,11 +7568,11 @@ class ul extends Je {
|
|
|
7568
7568
|
const b = a.extractPoints(l);
|
|
7569
7569
|
let C = b.shape;
|
|
7570
7570
|
const B = b.holes;
|
|
7571
|
-
if (!
|
|
7571
|
+
if (!Fn.isClockWise(C)) {
|
|
7572
7572
|
C = C.reverse();
|
|
7573
7573
|
for (let w = 0, q = B.length; w < q; w++) {
|
|
7574
7574
|
const k = B[w];
|
|
7575
|
-
|
|
7575
|
+
Fn.isClockWise(k) && (B[w] = k.reverse());
|
|
7576
7576
|
}
|
|
7577
7577
|
}
|
|
7578
7578
|
function O(w) {
|
|
@@ -7632,7 +7632,7 @@ class ul extends Je {
|
|
|
7632
7632
|
}
|
|
7633
7633
|
let ge;
|
|
7634
7634
|
if (m === 0)
|
|
7635
|
-
ge =
|
|
7635
|
+
ge = Fn.triangulateShape(z, B);
|
|
7636
7636
|
else {
|
|
7637
7637
|
const w = [], q = [];
|
|
7638
7638
|
for (let k = 0; k < m; k++) {
|
|
@@ -7652,7 +7652,7 @@ class ul extends Je {
|
|
|
7652
7652
|
N === 0 && q.push(P);
|
|
7653
7653
|
}
|
|
7654
7654
|
}
|
|
7655
|
-
ge =
|
|
7655
|
+
ge = Fn.triangulateShape(w, q);
|
|
7656
7656
|
}
|
|
7657
7657
|
const _e = ge.length, de = g + _;
|
|
7658
7658
|
for (let w = 0; w < H; w++) {
|
|
@@ -7762,7 +7762,7 @@ class ul extends Je {
|
|
|
7762
7762
|
n.push(a);
|
|
7763
7763
|
}
|
|
7764
7764
|
const i = e.options.extrudePath;
|
|
7765
|
-
return i !== void 0 && (e.options.extrudePath = new Lc[i.type]().fromJSON(i)), new
|
|
7765
|
+
return i !== void 0 && (e.options.extrudePath = new Lc[i.type]().fromJSON(i)), new hl(n, e.options);
|
|
7766
7766
|
}
|
|
7767
7767
|
}
|
|
7768
7768
|
const Nv = {
|
|
@@ -7799,7 +7799,7 @@ function Uv(r, e, t) {
|
|
|
7799
7799
|
t.shapes.push(r.uuid);
|
|
7800
7800
|
return t.options = Object.assign({}, e), e.extrudePath !== void 0 && (t.options.extrudePath = e.extrudePath.toJSON()), t;
|
|
7801
7801
|
}
|
|
7802
|
-
class
|
|
7802
|
+
class ul extends Ui {
|
|
7803
7803
|
constructor(e = 1, t = 0) {
|
|
7804
7804
|
const n = (1 + Math.sqrt(5)) / 2, i = [
|
|
7805
7805
|
-1,
|
|
@@ -7906,10 +7906,10 @@ class fl extends Ui {
|
|
|
7906
7906
|
};
|
|
7907
7907
|
}
|
|
7908
7908
|
static fromJSON(e) {
|
|
7909
|
-
return new
|
|
7909
|
+
return new ul(e.radius, e.detail);
|
|
7910
7910
|
}
|
|
7911
7911
|
}
|
|
7912
|
-
class
|
|
7912
|
+
class fl extends Je {
|
|
7913
7913
|
constructor(e = [new he(0, -0.5), new he(0.5, 0), new he(0, 0.5)], t = 12, n = 0, i = Math.PI * 2) {
|
|
7914
7914
|
super(), this.type = "LatheGeometry", this.parameters = {
|
|
7915
7915
|
points: e,
|
|
@@ -7949,7 +7949,7 @@ class dl extends Je {
|
|
|
7949
7949
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
7950
7950
|
}
|
|
7951
7951
|
static fromJSON(e) {
|
|
7952
|
-
return new
|
|
7952
|
+
return new fl(e.points, e.segments, e.phiStart, e.phiLength);
|
|
7953
7953
|
}
|
|
7954
7954
|
}
|
|
7955
7955
|
class Eo extends Ui {
|
|
@@ -8038,7 +8038,7 @@ class Sr extends Je {
|
|
|
8038
8038
|
return new Sr(e.width, e.height, e.widthSegments, e.heightSegments);
|
|
8039
8039
|
}
|
|
8040
8040
|
}
|
|
8041
|
-
class
|
|
8041
|
+
class dl extends Je {
|
|
8042
8042
|
constructor(e = 0.5, t = 1, n = 32, i = 1, s = 0, o = Math.PI * 2) {
|
|
8043
8043
|
super(), this.type = "RingGeometry", this.parameters = {
|
|
8044
8044
|
innerRadius: e,
|
|
@@ -8071,10 +8071,10 @@ class pl extends Je {
|
|
|
8071
8071
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
8072
8072
|
}
|
|
8073
8073
|
static fromJSON(e) {
|
|
8074
|
-
return new
|
|
8074
|
+
return new dl(e.innerRadius, e.outerRadius, e.thetaSegments, e.phiSegments, e.thetaStart, e.thetaLength);
|
|
8075
8075
|
}
|
|
8076
8076
|
}
|
|
8077
|
-
class
|
|
8077
|
+
class pl extends Je {
|
|
8078
8078
|
constructor(e = new fr([new he(0, 0.5), new he(-0.5, -0.5), new he(0.5, -0.5)]), t = 12) {
|
|
8079
8079
|
super(), this.type = "ShapeGeometry", this.parameters = {
|
|
8080
8080
|
shapes: e,
|
|
@@ -8092,12 +8092,12 @@ class ml extends Je {
|
|
|
8092
8092
|
const u = i.length / 3, f = h.extractPoints(t);
|
|
8093
8093
|
let d = f.shape;
|
|
8094
8094
|
const g = f.holes;
|
|
8095
|
-
|
|
8095
|
+
Fn.isClockWise(d) === !1 && (d = d.reverse());
|
|
8096
8096
|
for (let m = 0, p = g.length; m < p; m++) {
|
|
8097
8097
|
const v = g[m];
|
|
8098
|
-
|
|
8098
|
+
Fn.isClockWise(v) === !0 && (g[m] = v.reverse());
|
|
8099
8099
|
}
|
|
8100
|
-
const _ =
|
|
8100
|
+
const _ = Fn.triangulateShape(d, g);
|
|
8101
8101
|
for (let m = 0, p = g.length; m < p; m++) {
|
|
8102
8102
|
const v = g[m];
|
|
8103
8103
|
d = d.concat(v);
|
|
@@ -8125,7 +8125,7 @@ class ml extends Je {
|
|
|
8125
8125
|
const o = t[e.shapes[i]];
|
|
8126
8126
|
n.push(o);
|
|
8127
8127
|
}
|
|
8128
|
-
return new
|
|
8128
|
+
return new pl(n, e.curveSegments);
|
|
8129
8129
|
}
|
|
8130
8130
|
}
|
|
8131
8131
|
function Bv(r, e) {
|
|
@@ -8176,7 +8176,7 @@ class Ss extends Je {
|
|
|
8176
8176
|
return new Ss(e.radius, e.widthSegments, e.heightSegments, e.phiStart, e.phiLength, e.thetaStart, e.thetaLength);
|
|
8177
8177
|
}
|
|
8178
8178
|
}
|
|
8179
|
-
class
|
|
8179
|
+
class ml extends Ui {
|
|
8180
8180
|
constructor(e = 1, t = 0) {
|
|
8181
8181
|
const n = [
|
|
8182
8182
|
1,
|
|
@@ -8211,10 +8211,10 @@ class gl extends Ui {
|
|
|
8211
8211
|
};
|
|
8212
8212
|
}
|
|
8213
8213
|
static fromJSON(e) {
|
|
8214
|
-
return new
|
|
8214
|
+
return new ml(e.radius, e.detail);
|
|
8215
8215
|
}
|
|
8216
8216
|
}
|
|
8217
|
-
class
|
|
8217
|
+
class gl extends Je {
|
|
8218
8218
|
constructor(e = 1, t = 0.4, n = 12, i = 48, s = Math.PI * 2) {
|
|
8219
8219
|
super(), this.type = "TorusGeometry", this.parameters = {
|
|
8220
8220
|
radius: e,
|
|
@@ -8240,10 +8240,10 @@ class _l extends Je {
|
|
|
8240
8240
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
8241
8241
|
}
|
|
8242
8242
|
static fromJSON(e) {
|
|
8243
|
-
return new
|
|
8243
|
+
return new gl(e.radius, e.tube, e.radialSegments, e.tubularSegments, e.arc);
|
|
8244
8244
|
}
|
|
8245
8245
|
}
|
|
8246
|
-
class
|
|
8246
|
+
class _l extends Je {
|
|
8247
8247
|
constructor(e = 1, t = 0.4, n = 64, i = 8, s = 2, o = 3) {
|
|
8248
8248
|
super(), this.type = "TorusKnotGeometry", this.parameters = {
|
|
8249
8249
|
radius: e,
|
|
@@ -8277,10 +8277,10 @@ class vl extends Je {
|
|
|
8277
8277
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
8278
8278
|
}
|
|
8279
8279
|
static fromJSON(e) {
|
|
8280
|
-
return new
|
|
8280
|
+
return new _l(e.radius, e.tube, e.tubularSegments, e.radialSegments, e.p, e.q);
|
|
8281
8281
|
}
|
|
8282
8282
|
}
|
|
8283
|
-
class
|
|
8283
|
+
class vl extends Je {
|
|
8284
8284
|
constructor(e = new Hu(new U(-1, -1, 0), new U(-1, 1, 0), new U(1, 1, 0)), t = 64, n = 1, i = 8, s = !1) {
|
|
8285
8285
|
super(), this.type = "TubeGeometry", this.parameters = {
|
|
8286
8286
|
path: e,
|
|
@@ -8329,7 +8329,7 @@ class yl extends Je {
|
|
|
8329
8329
|
return e.path = this.parameters.path.toJSON(), e;
|
|
8330
8330
|
}
|
|
8331
8331
|
static fromJSON(e) {
|
|
8332
|
-
return new
|
|
8332
|
+
return new vl(
|
|
8333
8333
|
new Lc[e.path.type]().fromJSON(e.path),
|
|
8334
8334
|
e.tubularSegments,
|
|
8335
8335
|
e.radius,
|
|
@@ -8378,25 +8378,25 @@ function dd(r, e, t) {
|
|
|
8378
8378
|
var pd = /* @__PURE__ */ Object.freeze({
|
|
8379
8379
|
__proto__: null,
|
|
8380
8380
|
BoxGeometry: wr,
|
|
8381
|
-
CapsuleGeometry:
|
|
8382
|
-
CircleGeometry:
|
|
8381
|
+
CapsuleGeometry: ol,
|
|
8382
|
+
CircleGeometry: al,
|
|
8383
8383
|
ConeGeometry: Mo,
|
|
8384
8384
|
CylinderGeometry: So,
|
|
8385
|
-
DodecahedronGeometry:
|
|
8385
|
+
DodecahedronGeometry: cl,
|
|
8386
8386
|
EdgesGeometry: Rm,
|
|
8387
|
-
ExtrudeGeometry:
|
|
8388
|
-
IcosahedronGeometry:
|
|
8389
|
-
LatheGeometry:
|
|
8387
|
+
ExtrudeGeometry: hl,
|
|
8388
|
+
IcosahedronGeometry: ul,
|
|
8389
|
+
LatheGeometry: fl,
|
|
8390
8390
|
OctahedronGeometry: Eo,
|
|
8391
8391
|
PlaneGeometry: Sr,
|
|
8392
8392
|
PolyhedronGeometry: Ui,
|
|
8393
|
-
RingGeometry:
|
|
8394
|
-
ShapeGeometry:
|
|
8393
|
+
RingGeometry: dl,
|
|
8394
|
+
ShapeGeometry: pl,
|
|
8395
8395
|
SphereGeometry: Ss,
|
|
8396
|
-
TetrahedronGeometry:
|
|
8397
|
-
TorusGeometry:
|
|
8398
|
-
TorusKnotGeometry:
|
|
8399
|
-
TubeGeometry:
|
|
8396
|
+
TetrahedronGeometry: ml,
|
|
8397
|
+
TorusGeometry: gl,
|
|
8398
|
+
TorusKnotGeometry: _l,
|
|
8399
|
+
TubeGeometry: vl,
|
|
8400
8400
|
WireframeGeometry: Wu
|
|
8401
8401
|
});
|
|
8402
8402
|
class km extends zt {
|
|
@@ -8407,7 +8407,7 @@ class km extends zt {
|
|
|
8407
8407
|
return super.copy(e), this.color.copy(e.color), this.fog = e.fog, this;
|
|
8408
8408
|
}
|
|
8409
8409
|
}
|
|
8410
|
-
class qu extends
|
|
8410
|
+
class qu extends In {
|
|
8411
8411
|
constructor(e) {
|
|
8412
8412
|
super(e), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
|
|
8413
8413
|
}
|
|
@@ -8420,7 +8420,7 @@ class Ms extends zt {
|
|
|
8420
8420
|
return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
8421
8421
|
}
|
|
8422
8422
|
}
|
|
8423
|
-
class
|
|
8423
|
+
class Pn extends Ms {
|
|
8424
8424
|
constructor(e) {
|
|
8425
8425
|
super(), this.isMeshPhysicalMaterial = !0, this.defines = {
|
|
8426
8426
|
STANDARD: "",
|
|
@@ -8553,7 +8553,7 @@ function Zm(r) {
|
|
|
8553
8553
|
n[i] = i;
|
|
8554
8554
|
return n.sort(e), n;
|
|
8555
8555
|
}
|
|
8556
|
-
function
|
|
8556
|
+
function Gh(r, e, t) {
|
|
8557
8557
|
const n = r.length, i = new r.constructor(n);
|
|
8558
8558
|
for (let s = 0, o = 0; o !== n; ++s) {
|
|
8559
8559
|
const a = t[s] * e;
|
|
@@ -8670,7 +8670,7 @@ class zv {
|
|
|
8670
8670
|
return Zm(e);
|
|
8671
8671
|
}
|
|
8672
8672
|
static sortedArray(e, t, n) {
|
|
8673
|
-
return
|
|
8673
|
+
return Gh(e, t, n);
|
|
8674
8674
|
}
|
|
8675
8675
|
static flattenJSON(e, t, n, i) {
|
|
8676
8676
|
Yu(e, t, n, i);
|
|
@@ -8814,7 +8814,7 @@ class Qm extends Es {
|
|
|
8814
8814
|
return this.copySampleValue_(e - 1);
|
|
8815
8815
|
}
|
|
8816
8816
|
}
|
|
8817
|
-
class
|
|
8817
|
+
class Dn {
|
|
8818
8818
|
constructor(e, t, n, i) {
|
|
8819
8819
|
if (e === void 0)
|
|
8820
8820
|
throw new Error("THREE.KeyframeTrack: track name is undefined");
|
|
@@ -8985,11 +8985,11 @@ class Pn {
|
|
|
8985
8985
|
return i.createInterpolant = this.createInterpolant, i;
|
|
8986
8986
|
}
|
|
8987
8987
|
}
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
class Mr extends
|
|
8988
|
+
Dn.prototype.ValueTypeName = "";
|
|
8989
|
+
Dn.prototype.TimeBufferType = Float32Array;
|
|
8990
|
+
Dn.prototype.ValueBufferType = Float32Array;
|
|
8991
|
+
Dn.prototype.DefaultInterpolation = ls;
|
|
8992
|
+
class Mr extends Dn {
|
|
8993
8993
|
constructor(e, t, n) {
|
|
8994
8994
|
super(e, t, n);
|
|
8995
8995
|
}
|
|
@@ -8999,13 +8999,13 @@ Mr.prototype.ValueBufferType = Array;
|
|
|
8999
8999
|
Mr.prototype.DefaultInterpolation = cs;
|
|
9000
9000
|
Mr.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
9001
9001
|
Mr.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
9002
|
-
class Ku extends
|
|
9002
|
+
class Ku extends Dn {
|
|
9003
9003
|
constructor(e, t, n, i) {
|
|
9004
9004
|
super(e, t, n, i);
|
|
9005
9005
|
}
|
|
9006
9006
|
}
|
|
9007
9007
|
Ku.prototype.ValueTypeName = "color";
|
|
9008
|
-
class yr extends
|
|
9008
|
+
class yr extends Dn {
|
|
9009
9009
|
constructor(e, t, n, i) {
|
|
9010
9010
|
super(e, t, n, i);
|
|
9011
9011
|
}
|
|
@@ -9023,7 +9023,7 @@ class Km extends Es {
|
|
|
9023
9023
|
return s;
|
|
9024
9024
|
}
|
|
9025
9025
|
}
|
|
9026
|
-
class xr extends
|
|
9026
|
+
class xr extends Dn {
|
|
9027
9027
|
constructor(e, t, n, i) {
|
|
9028
9028
|
super(e, t, n, i);
|
|
9029
9029
|
}
|
|
@@ -9033,7 +9033,7 @@ class xr extends Pn {
|
|
|
9033
9033
|
}
|
|
9034
9034
|
xr.prototype.ValueTypeName = "quaternion";
|
|
9035
9035
|
xr.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
9036
|
-
class Er extends
|
|
9036
|
+
class Er extends Dn {
|
|
9037
9037
|
constructor(e, t, n) {
|
|
9038
9038
|
super(e, t, n);
|
|
9039
9039
|
}
|
|
@@ -9043,14 +9043,14 @@ Er.prototype.ValueBufferType = Array;
|
|
|
9043
9043
|
Er.prototype.DefaultInterpolation = cs;
|
|
9044
9044
|
Er.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
9045
9045
|
Er.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
9046
|
-
class Ar extends
|
|
9046
|
+
class Ar extends Dn {
|
|
9047
9047
|
constructor(e, t, n, i) {
|
|
9048
9048
|
super(e, t, n, i);
|
|
9049
9049
|
}
|
|
9050
9050
|
}
|
|
9051
9051
|
Ar.prototype.ValueTypeName = "vector";
|
|
9052
9052
|
class _s {
|
|
9053
|
-
constructor(e = "", t = -1, n = [], i =
|
|
9053
|
+
constructor(e = "", t = -1, n = [], i = Xc) {
|
|
9054
9054
|
this.name = e, this.tracks = n, this.duration = t, this.blendMode = i, this.uuid = yn(), this.userData = {}, this.duration < 0 && this.resetDuration();
|
|
9055
9055
|
}
|
|
9056
9056
|
static parse(e) {
|
|
@@ -9070,7 +9070,7 @@ class _s {
|
|
|
9070
9070
|
userData: JSON.stringify(e.userData)
|
|
9071
9071
|
};
|
|
9072
9072
|
for (let s = 0, o = n.length; s !== o; ++s)
|
|
9073
|
-
t.push(
|
|
9073
|
+
t.push(Dn.toJSON(n[s]));
|
|
9074
9074
|
return i;
|
|
9075
9075
|
}
|
|
9076
9076
|
static CreateFromMorphTargetSequence(e, t, n, i) {
|
|
@@ -9083,7 +9083,7 @@ class _s {
|
|
|
9083
9083
|
(a + 1) % s
|
|
9084
9084
|
), l.push(0, 1, 0);
|
|
9085
9085
|
const h = Zm(c);
|
|
9086
|
-
c =
|
|
9086
|
+
c = Gh(c, 1, h), l = Gh(l, 1, h), !i && c[0] === 0 && (c.push(s), l.push(l[0])), o.push(
|
|
9087
9087
|
new yr(
|
|
9088
9088
|
".morphTargetInfluences[" + t[a].name + "]",
|
|
9089
9089
|
c,
|
|
@@ -9476,7 +9476,7 @@ class Wv extends jt {
|
|
|
9476
9476
|
super(e);
|
|
9477
9477
|
}
|
|
9478
9478
|
load(e, t, n, i) {
|
|
9479
|
-
const s = this, o = [], a = new
|
|
9479
|
+
const s = this, o = [], a = new sl(), c = new An(this.manager);
|
|
9480
9480
|
c.setPath(this.path), c.setResponseType("arraybuffer"), c.setRequestHeader(this.requestHeader), c.setWithCredentials(s.withCredentials);
|
|
9481
9481
|
let l = 0;
|
|
9482
9482
|
function h(u) {
|
|
@@ -9561,7 +9561,7 @@ class qv extends jt {
|
|
|
9561
9561
|
}
|
|
9562
9562
|
load(e, t, n, i) {
|
|
9563
9563
|
const s = new bo();
|
|
9564
|
-
s.colorSpace =
|
|
9564
|
+
s.colorSpace = Mt;
|
|
9565
9565
|
const o = new _o(this.manager);
|
|
9566
9566
|
o.setCrossOrigin(this.crossOrigin), o.setPath(this.path);
|
|
9567
9567
|
let a = 0;
|
|
@@ -9635,7 +9635,7 @@ class $u extends Bi {
|
|
|
9635
9635
|
return t.object.groundColor = this.groundColor.getHex(), t;
|
|
9636
9636
|
}
|
|
9637
9637
|
}
|
|
9638
|
-
const
|
|
9638
|
+
const dh = /* @__PURE__ */ new qe(), md = /* @__PURE__ */ new U(), gd = /* @__PURE__ */ new U();
|
|
9639
9639
|
class ef {
|
|
9640
9640
|
constructor(e) {
|
|
9641
9641
|
this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new he(512, 512), this.mapType = un, this.map = null, this.mapPass = null, this.matrix = new qe(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new ws(), this._frameExtents = new he(1, 1), this._viewportCount = 1, this._viewports = [
|
|
@@ -9650,7 +9650,7 @@ class ef {
|
|
|
9650
9650
|
}
|
|
9651
9651
|
updateMatrices(e) {
|
|
9652
9652
|
const t = this.camera, n = this.matrix;
|
|
9653
|
-
md.setFromMatrixPosition(e.matrixWorld), t.position.copy(md), gd.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(gd), t.updateMatrixWorld(),
|
|
9653
|
+
md.setFromMatrixPosition(e.matrixWorld), t.position.copy(md), gd.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(gd), t.updateMatrixWorld(), dh.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(dh, t.coordinateSystem, t.reversedDepth), t.reversedDepth ? n.set(
|
|
9654
9654
|
0.5,
|
|
9655
9655
|
0,
|
|
9656
9656
|
0,
|
|
@@ -9684,7 +9684,7 @@ class ef {
|
|
|
9684
9684
|
0,
|
|
9685
9685
|
0,
|
|
9686
9686
|
1
|
|
9687
|
-
), n.multiply(
|
|
9687
|
+
), n.multiply(dh);
|
|
9688
9688
|
}
|
|
9689
9689
|
getViewport(e) {
|
|
9690
9690
|
return this._viewports[e];
|
|
@@ -9765,7 +9765,7 @@ class nf extends Bi {
|
|
|
9765
9765
|
return t.object.distance = this.distance, t.object.decay = this.decay, t.object.shadow = this.shadow.toJSON(), t;
|
|
9766
9766
|
}
|
|
9767
9767
|
}
|
|
9768
|
-
class Tr extends
|
|
9768
|
+
class Tr extends Jc {
|
|
9769
9769
|
constructor(e = -1, t = 1, n = 1, i = -1, s = 0.1, o = 2e3) {
|
|
9770
9770
|
super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = n, this.bottom = i, this.near = s, this.far = o, this.updateProjectionMatrix();
|
|
9771
9771
|
}
|
|
@@ -9805,7 +9805,7 @@ class Qv extends ef {
|
|
|
9805
9805
|
super(new Tr(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
|
|
9806
9806
|
}
|
|
9807
9807
|
}
|
|
9808
|
-
class
|
|
9808
|
+
class yl extends Bi {
|
|
9809
9809
|
constructor(e, t) {
|
|
9810
9810
|
super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(ct.DEFAULT_UP), this.updateMatrix(), this.target = new ct(), this.shadow = new Qv();
|
|
9811
9811
|
}
|
|
@@ -9928,7 +9928,7 @@ class $m extends Bi {
|
|
|
9928
9928
|
return t.object.sh = this.sh.toArray(), t;
|
|
9929
9929
|
}
|
|
9930
9930
|
}
|
|
9931
|
-
class
|
|
9931
|
+
class xl extends jt {
|
|
9932
9932
|
constructor(e) {
|
|
9933
9933
|
super(e), this.textures = {};
|
|
9934
9934
|
}
|
|
@@ -9990,16 +9990,16 @@ class Al extends jt {
|
|
|
9990
9990
|
return this.textures = e, this;
|
|
9991
9991
|
}
|
|
9992
9992
|
createMaterialFromType(e) {
|
|
9993
|
-
return
|
|
9993
|
+
return xl.createMaterialFromType(e);
|
|
9994
9994
|
}
|
|
9995
9995
|
static createMaterialFromType(e) {
|
|
9996
9996
|
const t = {
|
|
9997
9997
|
ShadowMaterial: km,
|
|
9998
9998
|
SpriteMaterial: Lu,
|
|
9999
9999
|
RawShaderMaterial: qu,
|
|
10000
|
-
ShaderMaterial:
|
|
10001
|
-
PointsMaterial:
|
|
10002
|
-
MeshPhysicalMaterial:
|
|
10000
|
+
ShaderMaterial: In,
|
|
10001
|
+
PointsMaterial: rl,
|
|
10002
|
+
MeshPhysicalMaterial: Pn,
|
|
10003
10003
|
MeshStandardMaterial: Ms,
|
|
10004
10004
|
MeshPhongMaterial: Vm,
|
|
10005
10005
|
MeshToonMaterial: Hm,
|
|
@@ -10208,7 +10208,7 @@ class Kv extends jt {
|
|
|
10208
10208
|
parseMaterials(e, t) {
|
|
10209
10209
|
const n = {}, i = {};
|
|
10210
10210
|
if (e !== void 0) {
|
|
10211
|
-
const s = new
|
|
10211
|
+
const s = new xl();
|
|
10212
10212
|
s.setTextures(t);
|
|
10213
10213
|
for (let o = 0, a = e.length; o < a; o++) {
|
|
10214
10214
|
const c = e[o];
|
|
@@ -10339,7 +10339,7 @@ class Kv extends jt {
|
|
|
10339
10339
|
let h, u;
|
|
10340
10340
|
switch (e.type) {
|
|
10341
10341
|
case "Scene":
|
|
10342
|
-
o = new Du(), e.background !== void 0 && (Number.isInteger(e.background) ? o.background = new Ae(e.background) : o.background = l(e.background)), e.environment !== void 0 && (o.environment = l(e.environment)), e.fog !== void 0 && (e.fog.type === "Fog" ? o.fog = new
|
|
10342
|
+
o = new Du(), e.background !== void 0 && (Number.isInteger(e.background) ? o.background = new Ae(e.background) : o.background = l(e.background)), e.environment !== void 0 && (o.environment = l(e.environment)), e.fog !== void 0 && (e.fog.type === "Fog" ? o.fog = new el(e.fog.color, e.fog.near, e.fog.far) : e.fog.type === "FogExp2" && (o.fog = new $c(e.fog.color, e.fog.density)), e.fog.name !== "" && (o.fog.name = e.fog.name)), e.backgroundBlurriness !== void 0 && (o.backgroundBlurriness = e.backgroundBlurriness), e.backgroundIntensity !== void 0 && (o.backgroundIntensity = e.backgroundIntensity), e.backgroundRotation !== void 0 && o.backgroundRotation.fromArray(e.backgroundRotation), e.environmentIntensity !== void 0 && (o.environmentIntensity = e.environmentIntensity), e.environmentRotation !== void 0 && o.environmentRotation.fromArray(e.environmentRotation);
|
|
10343
10343
|
break;
|
|
10344
10344
|
case "PerspectiveCamera":
|
|
10345
10345
|
o = new Ft(e.fov, e.aspect, e.near, e.far), e.focus !== void 0 && (o.focus = e.focus), e.zoom !== void 0 && (o.zoom = e.zoom), e.filmGauge !== void 0 && (o.filmGauge = e.filmGauge), e.filmOffset !== void 0 && (o.filmOffset = e.filmOffset), e.view !== void 0 && (o.view = Object.assign({}, e.view));
|
|
@@ -10351,7 +10351,7 @@ class Kv extends jt {
|
|
|
10351
10351
|
o = new rf(e.color, e.intensity);
|
|
10352
10352
|
break;
|
|
10353
10353
|
case "DirectionalLight":
|
|
10354
|
-
o = new
|
|
10354
|
+
o = new yl(e.color, e.intensity), o.target = e.target || "";
|
|
10355
10355
|
break;
|
|
10356
10356
|
case "PointLight":
|
|
10357
10357
|
o = new nf(e.color, e.intensity, e.distance, e.decay);
|
|
@@ -10378,7 +10378,7 @@ class Kv extends jt {
|
|
|
10378
10378
|
case "InstancedMesh":
|
|
10379
10379
|
h = a(e.geometry), u = c(e.material);
|
|
10380
10380
|
const d = e.count, g = e.instanceMatrix, _ = e.instanceColor;
|
|
10381
|
-
o = new
|
|
10381
|
+
o = new nl(h, u, d), o.instanceMatrix = new _r(new Float32Array(g.array), 16), _ !== void 0 && (o.instanceColor = new _r(new Float32Array(_.array), _.itemSize));
|
|
10382
10382
|
break;
|
|
10383
10383
|
case "BatchedMesh":
|
|
10384
10384
|
h = a(e.geometry), u = c(e.material), o = new Tm(e.maxInstanceCount, e.maxVertexCount, e.maxIndexCount, u), o.geometry = h, o.perObjectFrustumCulled = e.perObjectFrustumCulled, o.sortObjects = e.sortObjects, o._drawRanges = e.drawRanges, o._reservedRanges = e.reservedRanges, o._geometryInfo = e.geometryInfo.map((m) => {
|
|
@@ -10400,7 +10400,7 @@ class Kv extends jt {
|
|
|
10400
10400
|
o = new Uu(a(e.geometry), c(e.material));
|
|
10401
10401
|
break;
|
|
10402
10402
|
case "LineSegments":
|
|
10403
|
-
o = new
|
|
10403
|
+
o = new Rn(a(e.geometry), c(e.material));
|
|
10404
10404
|
break;
|
|
10405
10405
|
case "PointCloud":
|
|
10406
10406
|
case "Points":
|
|
@@ -10413,7 +10413,7 @@ class Kv extends jt {
|
|
|
10413
10413
|
o = new Yn();
|
|
10414
10414
|
break;
|
|
10415
10415
|
case "Bone":
|
|
10416
|
-
o = new
|
|
10416
|
+
o = new tl();
|
|
10417
10417
|
break;
|
|
10418
10418
|
default:
|
|
10419
10419
|
o = new ct();
|
|
@@ -10458,7 +10458,7 @@ class Kv extends jt {
|
|
|
10458
10458
|
}
|
|
10459
10459
|
}
|
|
10460
10460
|
const jv = {
|
|
10461
|
-
UVMapping:
|
|
10461
|
+
UVMapping: Fc,
|
|
10462
10462
|
CubeReflectionMapping: Jn,
|
|
10463
10463
|
CubeRefractionMapping: Ri,
|
|
10464
10464
|
EquirectangularReflectionMapping: ao,
|
|
@@ -10469,13 +10469,13 @@ const jv = {
|
|
|
10469
10469
|
ClampToEdgeWrapping: nn,
|
|
10470
10470
|
MirroredRepeatWrapping: ss
|
|
10471
10471
|
}, vd = {
|
|
10472
|
-
NearestFilter:
|
|
10473
|
-
NearestMipmapNearestFilter:
|
|
10472
|
+
NearestFilter: Tt,
|
|
10473
|
+
NearestMipmapNearestFilter: zc,
|
|
10474
10474
|
NearestMipmapLinearFilter: sr,
|
|
10475
10475
|
LinearFilter: mt,
|
|
10476
10476
|
LinearMipmapNearestFilter: ts,
|
|
10477
10477
|
LinearMipmapLinearFilter: En
|
|
10478
|
-
},
|
|
10478
|
+
}, ph = /* @__PURE__ */ new WeakMap();
|
|
10479
10479
|
class ng extends jt {
|
|
10480
10480
|
constructor(e) {
|
|
10481
10481
|
super(e), this.isImageBitmapLoader = !0, typeof createImageBitmap > "u" && Te("ImageBitmapLoader: createImageBitmap() not supported."), typeof fetch > "u" && Te("ImageBitmapLoader: fetch() not supported."), this.options = { premultiplyAlpha: "none" }, this._abortController = new AbortController();
|
|
@@ -10489,8 +10489,8 @@ class ng extends jt {
|
|
|
10489
10489
|
if (o !== void 0) {
|
|
10490
10490
|
if (s.manager.itemStart(e), o.then) {
|
|
10491
10491
|
o.then((l) => {
|
|
10492
|
-
if (
|
|
10493
|
-
i && i(
|
|
10492
|
+
if (ph.has(o) === !0)
|
|
10493
|
+
i && i(ph.get(o)), s.manager.itemError(e), s.manager.itemEnd(e);
|
|
10494
10494
|
else
|
|
10495
10495
|
return t && t(l), s.manager.itemEnd(e), l;
|
|
10496
10496
|
});
|
|
@@ -10509,7 +10509,7 @@ class ng extends jt {
|
|
|
10509
10509
|
}).then(function(l) {
|
|
10510
10510
|
return Qn.add(`image-bitmap:${e}`, l), t && t(l), s.manager.itemEnd(e), l;
|
|
10511
10511
|
}).catch(function(l) {
|
|
10512
|
-
i && i(l),
|
|
10512
|
+
i && i(l), ph.set(c, l), Qn.remove(`image-bitmap:${e}`), s.manager.itemError(e), s.manager.itemEnd(e);
|
|
10513
10513
|
});
|
|
10514
10514
|
Qn.add(`image-bitmap:${e}`, c), s.manager.itemStart(e);
|
|
10515
10515
|
}
|
|
@@ -10576,7 +10576,7 @@ class ig extends Ft {
|
|
|
10576
10576
|
super(), this.isArrayCamera = !0, this.isMultiViewCamera = !1, this.cameras = e;
|
|
10577
10577
|
}
|
|
10578
10578
|
}
|
|
10579
|
-
class
|
|
10579
|
+
class Al {
|
|
10580
10580
|
constructor(e = !0) {
|
|
10581
10581
|
this.autoStart = e, this.startTime = 0, this.oldTime = 0, this.elapsedTime = 0, this.running = !1;
|
|
10582
10582
|
}
|
|
@@ -10600,10 +10600,10 @@ class bl {
|
|
|
10600
10600
|
return e;
|
|
10601
10601
|
}
|
|
10602
10602
|
}
|
|
10603
|
-
const Xi = /* @__PURE__ */ new U(),
|
|
10603
|
+
const Xi = /* @__PURE__ */ new U(), mh = /* @__PURE__ */ new wt(), ey = /* @__PURE__ */ new U(), Zi = /* @__PURE__ */ new U(), Yi = /* @__PURE__ */ new U();
|
|
10604
10604
|
class ty extends ct {
|
|
10605
10605
|
constructor() {
|
|
10606
|
-
super(), this.type = "AudioListener", this.context = of.getContext(), this.gain = this.context.createGain(), this.gain.connect(this.context.destination), this.filter = null, this.timeDelta = 0, this._clock = new
|
|
10606
|
+
super(), this.type = "AudioListener", this.context = of.getContext(), this.gain = this.context.createGain(), this.gain.connect(this.context.destination), this.filter = null, this.timeDelta = 0, this._clock = new Al();
|
|
10607
10607
|
}
|
|
10608
10608
|
getInput() {
|
|
10609
10609
|
return this.gain;
|
|
@@ -10626,7 +10626,7 @@ class ty extends ct {
|
|
|
10626
10626
|
updateMatrixWorld(e) {
|
|
10627
10627
|
super.updateMatrixWorld(e);
|
|
10628
10628
|
const t = this.context.listener;
|
|
10629
|
-
if (this.timeDelta = this._clock.getDelta(), this.matrixWorld.decompose(Xi,
|
|
10629
|
+
if (this.timeDelta = this._clock.getDelta(), this.matrixWorld.decompose(Xi, mh, ey), Zi.set(0, 0, -1).applyQuaternion(mh), Yi.set(0, 1, 0).applyQuaternion(mh), t.positionX) {
|
|
10630
10630
|
const n = this.context.currentTime + this.timeDelta;
|
|
10631
10631
|
t.positionX.linearRampToValueAtTime(Xi.x, n), t.positionY.linearRampToValueAtTime(Xi.y, n), t.positionZ.linearRampToValueAtTime(Xi.z, n), t.forwardX.linearRampToValueAtTime(Zi.x, n), t.forwardY.linearRampToValueAtTime(Zi.y, n), t.forwardZ.linearRampToValueAtTime(Zi.z, n), t.upX.linearRampToValueAtTime(Yi.x, n), t.upY.linearRampToValueAtTime(Yi.y, n), t.upZ.linearRampToValueAtTime(Yi.z, n);
|
|
10632
10632
|
} else
|
|
@@ -11441,7 +11441,7 @@ class og {
|
|
|
11441
11441
|
for (let h = 0, u = c.length; h !== u; ++h)
|
|
11442
11442
|
c[h].evaluate(o), l[h].accumulateAdditive(a);
|
|
11443
11443
|
break;
|
|
11444
|
-
case
|
|
11444
|
+
case Xc:
|
|
11445
11445
|
default:
|
|
11446
11446
|
for (let h = 0, u = c.length; h !== u; ++h)
|
|
11447
11447
|
c[h].evaluate(o), l[h].accumulate(i, a);
|
|
@@ -11700,7 +11700,7 @@ class gy extends ti {
|
|
|
11700
11700
|
let o = typeof e == "string" ? _s.findByName(i, e) : e;
|
|
11701
11701
|
const a = o !== null ? o.uuid : e, c = this._actionsByClip[a];
|
|
11702
11702
|
let l = null;
|
|
11703
|
-
if (n === void 0 && (o !== null ? n = o.blendMode : n =
|
|
11703
|
+
if (n === void 0 && (o !== null ? n = o.blendMode : n = Xc), c !== void 0) {
|
|
11704
11704
|
const u = c.actionByRoot[s];
|
|
11705
11705
|
if (u !== void 0 && u.blendMode === n)
|
|
11706
11706
|
return u;
|
|
@@ -11773,7 +11773,7 @@ class gy extends ti {
|
|
|
11773
11773
|
}
|
|
11774
11774
|
class _y extends Cu {
|
|
11775
11775
|
constructor(e = 1, t = 1, n = 1, i = {}) {
|
|
11776
|
-
super(e, t, i), this.isRenderTarget3D = !0, this.depth = n, this.texture = new
|
|
11776
|
+
super(e, t, i), this.isRenderTarget3D = !0, this.depth = n, this.texture = new Kc(null, e, t, n), this._setTextureOptions(i), this.texture.isRenderTargetTexture = !0;
|
|
11777
11777
|
}
|
|
11778
11778
|
}
|
|
11779
11779
|
class lf {
|
|
@@ -11859,7 +11859,7 @@ class Ay {
|
|
|
11859
11859
|
const bd = /* @__PURE__ */ new qe();
|
|
11860
11860
|
class by {
|
|
11861
11861
|
constructor(e, t, n = 0, i = 1 / 0) {
|
|
11862
|
-
this.ray = new As(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new
|
|
11862
|
+
this.ray = new As(e, t), this.near = n, this.far = i, this.camera = null, this.layers = new jc(), this.params = {
|
|
11863
11863
|
Mesh: {},
|
|
11864
11864
|
Line: { threshold: 1 },
|
|
11865
11865
|
LOD: {},
|
|
@@ -11877,23 +11877,23 @@ class by {
|
|
|
11877
11877
|
return bd.identity().extractRotation(e.matrixWorld), this.ray.origin.setFromMatrixPosition(e.matrixWorld), this.ray.direction.set(0, 0, -1).applyMatrix4(bd), this;
|
|
11878
11878
|
}
|
|
11879
11879
|
intersectObject(e, t = !0, n = []) {
|
|
11880
|
-
return
|
|
11880
|
+
return Wh(e, this, n, t), n.sort(wd), n;
|
|
11881
11881
|
}
|
|
11882
11882
|
intersectObjects(e, t = !0, n = []) {
|
|
11883
11883
|
for (let i = 0, s = e.length; i < s; i++)
|
|
11884
|
-
|
|
11884
|
+
Wh(e[i], this, n, t);
|
|
11885
11885
|
return n.sort(wd), n;
|
|
11886
11886
|
}
|
|
11887
11887
|
}
|
|
11888
11888
|
function wd(r, e) {
|
|
11889
11889
|
return r.distance - e.distance;
|
|
11890
11890
|
}
|
|
11891
|
-
function
|
|
11891
|
+
function Wh(r, e, t, n) {
|
|
11892
11892
|
let i = !0;
|
|
11893
11893
|
if (r.layers.test(e.layers) && r.raycast(e, t) === !1 && (i = !1), i === !0 && n === !0) {
|
|
11894
11894
|
const s = r.children;
|
|
11895
11895
|
for (let o = 0, a = s.length; o < a; o++)
|
|
11896
|
-
|
|
11896
|
+
Wh(s[o], e, t, !0);
|
|
11897
11897
|
}
|
|
11898
11898
|
}
|
|
11899
11899
|
class wy {
|
|
@@ -12080,7 +12080,7 @@ class Ty {
|
|
|
12080
12080
|
return e.min.equals(this.min) && e.max.equals(this.max);
|
|
12081
12081
|
}
|
|
12082
12082
|
}
|
|
12083
|
-
const Md = /* @__PURE__ */ new U(), xa = /* @__PURE__ */ new U(), Yr = /* @__PURE__ */ new U(), Qr = /* @__PURE__ */ new U(),
|
|
12083
|
+
const Md = /* @__PURE__ */ new U(), xa = /* @__PURE__ */ new U(), Yr = /* @__PURE__ */ new U(), Qr = /* @__PURE__ */ new U(), gh = /* @__PURE__ */ new U(), Cy = /* @__PURE__ */ new U(), Iy = /* @__PURE__ */ new U();
|
|
12084
12084
|
class Ry {
|
|
12085
12085
|
constructor(e = new U(), t = new U()) {
|
|
12086
12086
|
this.start = e, this.end = t;
|
|
@@ -12120,14 +12120,14 @@ class Ry {
|
|
|
12120
12120
|
const i = 10000000000000001e-32;
|
|
12121
12121
|
let s, o;
|
|
12122
12122
|
const a = this.start, c = e.start, l = this.end, h = e.end;
|
|
12123
|
-
Yr.subVectors(l, a), Qr.subVectors(h, c),
|
|
12124
|
-
const u = Yr.dot(Yr), f = Qr.dot(Qr), d = Qr.dot(
|
|
12123
|
+
Yr.subVectors(l, a), Qr.subVectors(h, c), gh.subVectors(a, c);
|
|
12124
|
+
const u = Yr.dot(Yr), f = Qr.dot(Qr), d = Qr.dot(gh);
|
|
12125
12125
|
if (u <= i && f <= i)
|
|
12126
12126
|
return t.copy(a), n.copy(c), t.sub(n), t.dot(t);
|
|
12127
12127
|
if (u <= i)
|
|
12128
12128
|
s = 0, o = d / f, o = Qe(o, 0, 1);
|
|
12129
12129
|
else {
|
|
12130
|
-
const g = Yr.dot(
|
|
12130
|
+
const g = Yr.dot(gh);
|
|
12131
12131
|
if (f <= i)
|
|
12132
12132
|
o = 0, s = Qe(-g / u, 0, 1);
|
|
12133
12133
|
else {
|
|
@@ -12196,7 +12196,7 @@ class Py extends ct {
|
|
|
12196
12196
|
}
|
|
12197
12197
|
n.setAttribute("position", new Fe(i, 3));
|
|
12198
12198
|
const s = new Wt({ fog: !1, toneMapped: !1 });
|
|
12199
|
-
this.cone = new
|
|
12199
|
+
this.cone = new Rn(n, s), this.add(this.cone), this.update();
|
|
12200
12200
|
}
|
|
12201
12201
|
dispose() {
|
|
12202
12202
|
this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
@@ -12207,8 +12207,8 @@ class Py extends ct {
|
|
|
12207
12207
|
this.cone.scale.set(t, t, e), Ed.setFromMatrixPosition(this.light.target.matrixWorld), this.cone.lookAt(Ed), this.color !== void 0 ? this.cone.material.color.set(this.color) : this.cone.material.color.copy(this.light.color);
|
|
12208
12208
|
}
|
|
12209
12209
|
}
|
|
12210
|
-
const Ai = /* @__PURE__ */ new U(), Aa = /* @__PURE__ */ new qe(),
|
|
12211
|
-
class Dy extends
|
|
12210
|
+
const Ai = /* @__PURE__ */ new U(), Aa = /* @__PURE__ */ new qe(), _h = /* @__PURE__ */ new qe();
|
|
12211
|
+
class Dy extends Rn {
|
|
12212
12212
|
constructor(e) {
|
|
12213
12213
|
const t = ag(e), n = new Je(), i = [], s = [];
|
|
12214
12214
|
for (let l = 0; l < t.length; l++) {
|
|
@@ -12223,10 +12223,10 @@ class Dy extends In {
|
|
|
12223
12223
|
}
|
|
12224
12224
|
updateMatrixWorld(e) {
|
|
12225
12225
|
const t = this.bones, n = this.geometry, i = n.getAttribute("position");
|
|
12226
|
-
|
|
12226
|
+
_h.copy(this.root.matrixWorld).invert();
|
|
12227
12227
|
for (let s = 0, o = 0; s < t.length; s++) {
|
|
12228
12228
|
const a = t[s];
|
|
12229
|
-
a.parent && a.parent.isBone && (Aa.multiplyMatrices(
|
|
12229
|
+
a.parent && a.parent.isBone && (Aa.multiplyMatrices(_h, a.matrixWorld), Ai.setFromMatrixPosition(Aa), i.setXYZ(o, Ai.x, Ai.y, Ai.z), Aa.multiplyMatrices(_h, a.parent.matrixWorld), Ai.setFromMatrixPosition(Aa), i.setXYZ(o + 1, Ai.x, Ai.y, Ai.z), o += 2);
|
|
12230
12230
|
}
|
|
12231
12231
|
n.getAttribute("position").needsUpdate = !0, super.updateMatrixWorld(e);
|
|
12232
12232
|
}
|
|
@@ -12287,7 +12287,7 @@ class Uy extends ct {
|
|
|
12287
12287
|
this.light.updateWorldMatrix(!0, !1), e.lookAt(Ny.setFromMatrixPosition(this.light.matrixWorld).negate());
|
|
12288
12288
|
}
|
|
12289
12289
|
}
|
|
12290
|
-
class By extends
|
|
12290
|
+
class By extends Rn {
|
|
12291
12291
|
constructor(e = 10, t = 10, n = 4473924, i = 8947848) {
|
|
12292
12292
|
n = new Ae(n), i = new Ae(i);
|
|
12293
12293
|
const s = t / 2, o = e / t, a = e / 2, c = [], l = [];
|
|
@@ -12305,7 +12305,7 @@ class By extends In {
|
|
|
12305
12305
|
this.geometry.dispose(), this.material.dispose();
|
|
12306
12306
|
}
|
|
12307
12307
|
}
|
|
12308
|
-
class Oy extends
|
|
12308
|
+
class Oy extends Rn {
|
|
12309
12309
|
constructor(e = 10, t = 16, n = 8, i = 64, s = 4473924, o = 8947848) {
|
|
12310
12310
|
s = new Ae(s), o = new Ae(o);
|
|
12311
12311
|
const a = [], c = [];
|
|
@@ -12364,8 +12364,8 @@ class Fy extends ct {
|
|
|
12364
12364
|
this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), Id.setFromMatrixPosition(this.light.matrixWorld), ba.setFromMatrixPosition(this.light.target.matrixWorld), Rd.subVectors(ba, Id), this.lightPlane.lookAt(ba), 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(ba), this.targetLine.scale.z = Rd.length();
|
|
12365
12365
|
}
|
|
12366
12366
|
}
|
|
12367
|
-
const wa = /* @__PURE__ */ new U(),
|
|
12368
|
-
class zy extends
|
|
12367
|
+
const wa = /* @__PURE__ */ new U(), Rt = /* @__PURE__ */ new Jc();
|
|
12368
|
+
class zy extends Rn {
|
|
12369
12369
|
constructor(e) {
|
|
12370
12370
|
const t = new Je(), n = new Wt({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], s = [], o = {};
|
|
12371
12371
|
a("n1", "n2"), a("n2", "n4"), a("n4", "n3"), a("n3", "n1"), a("f1", "f2"), a("f2", "f4"), a("f4", "f3"), a("f3", "f1"), a("n1", "f1"), a("n2", "f2"), a("n3", "f3"), a("n4", "f4"), a("p", "n1"), a("p", "n2"), a("p", "n3"), a("p", "n4"), a("u1", "u2"), a("u2", "u3"), a("u3", "u1"), a("c", "t"), a("p", "c"), a("cn1", "cn2"), a("cn3", "cn4"), a("cf1", "cf2"), a("cf3", "cf4");
|
|
@@ -12386,7 +12386,7 @@ class zy extends In {
|
|
|
12386
12386
|
update() {
|
|
12387
12387
|
const e = this.geometry, t = this.pointMap, n = 1, i = 1;
|
|
12388
12388
|
let s, o;
|
|
12389
|
-
if (
|
|
12389
|
+
if (Rt.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), this.camera.reversedDepth === !0)
|
|
12390
12390
|
s = 1, o = 0;
|
|
12391
12391
|
else if (this.camera.coordinateSystem === vn)
|
|
12392
12392
|
s = -1, o = 1;
|
|
@@ -12394,7 +12394,7 @@ class zy extends In {
|
|
|
12394
12394
|
s = 0, o = 1;
|
|
12395
12395
|
else
|
|
12396
12396
|
throw new Error("THREE.CameraHelper.update(): Invalid coordinate system: " + this.camera.coordinateSystem);
|
|
12397
|
-
Pt("c", t, e,
|
|
12397
|
+
Pt("c", t, e, Rt, 0, 0, s), Pt("t", t, e, Rt, 0, 0, o), Pt("n1", t, e, Rt, -n, -i, s), Pt("n2", t, e, Rt, n, -i, s), Pt("n3", t, e, Rt, -n, i, s), Pt("n4", t, e, Rt, n, i, s), Pt("f1", t, e, Rt, -n, -i, o), Pt("f2", t, e, Rt, n, -i, o), Pt("f3", t, e, Rt, -n, i, o), Pt("f4", t, e, Rt, n, i, o), Pt("u1", t, e, Rt, n * 0.7, i * 1.1, s), Pt("u2", t, e, Rt, -n * 0.7, i * 1.1, s), Pt("u3", t, e, Rt, 0, i * 2, s), Pt("cf1", t, e, Rt, -n, 0, o), Pt("cf2", t, e, Rt, n, 0, o), Pt("cf3", t, e, Rt, 0, -i, o), Pt("cf4", t, e, Rt, 0, i, o), Pt("cn1", t, e, Rt, -n, 0, s), Pt("cn2", t, e, Rt, n, 0, s), Pt("cn3", t, e, Rt, 0, -i, s), Pt("cn4", t, e, Rt, 0, i, s), e.getAttribute("position").needsUpdate = !0;
|
|
12398
12398
|
}
|
|
12399
12399
|
dispose() {
|
|
12400
12400
|
this.geometry.dispose(), this.material.dispose();
|
|
@@ -12410,7 +12410,7 @@ function Pt(r, e, t, n, i, s, o) {
|
|
|
12410
12410
|
}
|
|
12411
12411
|
}
|
|
12412
12412
|
const Sa = /* @__PURE__ */ new Gt();
|
|
12413
|
-
class ky extends
|
|
12413
|
+
class ky extends Rn {
|
|
12414
12414
|
constructor(e, t = 16776960) {
|
|
12415
12415
|
const n = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = new Float32Array(8 * 3), s = new Je();
|
|
12416
12416
|
s.setIndex(new at(n, 1)), s.setAttribute("position", new at(i, 3)), super(s, new Wt({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
|
|
@@ -12431,7 +12431,7 @@ class ky extends In {
|
|
|
12431
12431
|
this.geometry.dispose(), this.material.dispose();
|
|
12432
12432
|
}
|
|
12433
12433
|
}
|
|
12434
|
-
class Vy extends
|
|
12434
|
+
class Vy extends Rn {
|
|
12435
12435
|
constructor(e, t = 16776960) {
|
|
12436
12436
|
const n = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], s = new Je();
|
|
12437
12437
|
s.setIndex(new at(n, 1)), s.setAttribute("position", new Fe(i, 3)), super(s, new Wt({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
|
|
@@ -12459,10 +12459,10 @@ class Hy extends pi {
|
|
|
12459
12459
|
}
|
|
12460
12460
|
}
|
|
12461
12461
|
const Pd = /* @__PURE__ */ new U();
|
|
12462
|
-
let Ma,
|
|
12462
|
+
let Ma, vh;
|
|
12463
12463
|
class Gy extends ct {
|
|
12464
12464
|
constructor(e = new U(0, 0, 1), t = new U(0, 0, 0), n = 1, i = 16776960, s = n * 0.2, o = s * 0.2) {
|
|
12465
|
-
super(), this.type = "ArrowHelper", Ma === void 0 && (Ma = new Je(), Ma.setAttribute("position", new Fe([0, 0, 0, 0, 1, 0], 3)),
|
|
12465
|
+
super(), this.type = "ArrowHelper", Ma === void 0 && (Ma = new Je(), Ma.setAttribute("position", new Fe([0, 0, 0, 0, 1, 0], 3)), vh = new Mo(0.5, 1, 5, 1), vh.translate(0, -0.5, 0)), this.position.copy(t), this.line = new pi(Ma, new Wt({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new St(vh, new dn({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(n, s, o);
|
|
12466
12466
|
}
|
|
12467
12467
|
setDirection(e) {
|
|
12468
12468
|
if (e.y > 0.99999)
|
|
@@ -12488,7 +12488,7 @@ class Gy extends ct {
|
|
|
12488
12488
|
this.line.geometry.dispose(), this.line.material.dispose(), this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
12489
12489
|
}
|
|
12490
12490
|
}
|
|
12491
|
-
class Wy extends
|
|
12491
|
+
class Wy extends Rn {
|
|
12492
12492
|
constructor(e = 1) {
|
|
12493
12493
|
const t = [
|
|
12494
12494
|
0,
|
|
@@ -12597,7 +12597,7 @@ class qy {
|
|
|
12597
12597
|
}
|
|
12598
12598
|
return x;
|
|
12599
12599
|
}
|
|
12600
|
-
const i =
|
|
12600
|
+
const i = Fn.isClockWise, s = this.subPaths;
|
|
12601
12601
|
if (s.length === 0)
|
|
12602
12602
|
return [];
|
|
12603
12603
|
let o, a, c;
|
|
@@ -12667,24 +12667,24 @@ function Yy(r, e) {
|
|
|
12667
12667
|
function Qy(r) {
|
|
12668
12668
|
return r.repeat.x = 1, r.repeat.y = 1, r.offset.x = 0, r.offset.y = 0, r;
|
|
12669
12669
|
}
|
|
12670
|
-
function
|
|
12670
|
+
function qh(r, e, t, n) {
|
|
12671
12671
|
const i = Ky(n);
|
|
12672
12672
|
switch (t) {
|
|
12673
12673
|
case wu:
|
|
12674
12674
|
return r * e;
|
|
12675
|
-
case
|
|
12675
|
+
case Gc:
|
|
12676
12676
|
return r * e / i.components * i.byteLength;
|
|
12677
12677
|
case Ao:
|
|
12678
12678
|
return r * e / i.components * i.byteLength;
|
|
12679
12679
|
case gr:
|
|
12680
12680
|
return r * e * 2 / i.components * i.byteLength;
|
|
12681
|
-
case
|
|
12681
|
+
case Wc:
|
|
12682
12682
|
return r * e * 2 / i.components * i.byteLength;
|
|
12683
12683
|
case Su:
|
|
12684
12684
|
return r * e * 3 / i.components * i.byteLength;
|
|
12685
12685
|
case sn:
|
|
12686
12686
|
return r * e * 4 / i.components * i.byteLength;
|
|
12687
|
-
case
|
|
12687
|
+
case qc:
|
|
12688
12688
|
return r * e * 4 / i.components * i.byteLength;
|
|
12689
12689
|
case Js:
|
|
12690
12690
|
case $s:
|
|
@@ -12759,11 +12759,11 @@ function Ky(r) {
|
|
|
12759
12759
|
case xu:
|
|
12760
12760
|
case $n:
|
|
12761
12761
|
return { byteLength: 2, components: 1 };
|
|
12762
|
+
case Vc:
|
|
12762
12763
|
case Hc:
|
|
12763
|
-
case Gc:
|
|
12764
12764
|
return { byteLength: 2, components: 4 };
|
|
12765
|
-
case
|
|
12766
|
-
case
|
|
12765
|
+
case Cn:
|
|
12766
|
+
case kc:
|
|
12767
12767
|
case rn:
|
|
12768
12768
|
return { byteLength: 4, components: 1 };
|
|
12769
12769
|
case Au:
|
|
@@ -12783,7 +12783,7 @@ class jy {
|
|
|
12783
12783
|
return Qy(e);
|
|
12784
12784
|
}
|
|
12785
12785
|
static getByteLength(e, t, n, i) {
|
|
12786
|
-
return
|
|
12786
|
+
return qh(e, t, n, i);
|
|
12787
12787
|
}
|
|
12788
12788
|
}
|
|
12789
12789
|
typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: {
|
|
@@ -16778,7 +16778,7 @@ void main() {
|
|
|
16778
16778
|
alphaMapTransform: { value: /* @__PURE__ */ new et() },
|
|
16779
16779
|
alphaTest: { value: 0 }
|
|
16780
16780
|
}
|
|
16781
|
-
},
|
|
16781
|
+
}, On = {
|
|
16782
16782
|
basic: {
|
|
16783
16783
|
uniforms: /* @__PURE__ */ en([
|
|
16784
16784
|
Ie.common,
|
|
@@ -17002,9 +17002,9 @@ void main() {
|
|
|
17002
17002
|
fragmentShader: it.shadow_frag
|
|
17003
17003
|
}
|
|
17004
17004
|
};
|
|
17005
|
-
|
|
17005
|
+
On.physical = {
|
|
17006
17006
|
uniforms: /* @__PURE__ */ en([
|
|
17007
|
-
|
|
17007
|
+
On.standard.uniforms,
|
|
17008
17008
|
{
|
|
17009
17009
|
clearcoat: { value: 0 },
|
|
17010
17010
|
clearcoatMap: { value: null },
|
|
@@ -17074,11 +17074,11 @@ function L1(r, e, t, n, i, s, o) {
|
|
|
17074
17074
|
const A = g(x);
|
|
17075
17075
|
A && (A.isCubeTexture || A.mapping === xs) ? (h === void 0 && (h = new St(
|
|
17076
17076
|
new wr(1, 1, 1),
|
|
17077
|
-
new
|
|
17077
|
+
new In({
|
|
17078
17078
|
name: "BackgroundCubeMaterial",
|
|
17079
|
-
uniforms: ps(
|
|
17080
|
-
vertexShader:
|
|
17081
|
-
fragmentShader:
|
|
17079
|
+
uniforms: ps(On.backgroundCube.uniforms),
|
|
17080
|
+
vertexShader: On.backgroundCube.vertexShader,
|
|
17081
|
+
fragmentShader: On.backgroundCube.fragmentShader,
|
|
17082
17082
|
side: on,
|
|
17083
17083
|
depthTest: !1,
|
|
17084
17084
|
depthWrite: !1,
|
|
@@ -17093,11 +17093,11 @@ function L1(r, e, t, n, i, s, o) {
|
|
|
17093
17093
|
}
|
|
17094
17094
|
}), i.update(h)), ji.copy(x.backgroundRotation), ji.x *= -1, ji.y *= -1, ji.z *= -1, A.isCubeTexture && A.isRenderTargetTexture === !1 && (ji.y *= -1, ji.z *= -1), h.material.uniforms.envMap.value = A, h.material.uniforms.flipEnvMap.value = A.isCubeTexture && A.isRenderTargetTexture === !1 ? -1 : 1, h.material.uniforms.backgroundBlurriness.value = x.backgroundBlurriness, h.material.uniforms.backgroundIntensity.value = x.backgroundIntensity, h.material.uniforms.backgroundRotation.value.setFromMatrix4(D1.makeRotationFromEuler(ji)), h.material.toneMapped = st.getTransfer(A.colorSpace) !== ut, (u !== A || f !== A.version || d !== r.toneMapping) && (h.material.needsUpdate = !0, u = A, f = A.version, d = r.toneMapping), h.layers.enableAll(), y.unshift(h, h.geometry, h.material, 0, 0, null)) : A && A.isTexture && (l === void 0 && (l = new St(
|
|
17095
17095
|
new Sr(2, 2),
|
|
17096
|
-
new
|
|
17096
|
+
new In({
|
|
17097
17097
|
name: "BackgroundMaterial",
|
|
17098
|
-
uniforms: ps(
|
|
17099
|
-
vertexShader:
|
|
17100
|
-
fragmentShader:
|
|
17098
|
+
uniforms: ps(On.background.uniforms),
|
|
17099
|
+
vertexShader: On.background.vertexShader,
|
|
17100
|
+
fragmentShader: On.background.fragmentShader,
|
|
17101
17101
|
side: jn,
|
|
17102
17102
|
depthTest: !1,
|
|
17103
17103
|
depthWrite: !1,
|
|
@@ -17234,7 +17234,7 @@ function N1(r, e) {
|
|
|
17234
17234
|
const le = J.normalized, W = J.itemSize, Z = e.get(J);
|
|
17235
17235
|
if (Z === void 0)
|
|
17236
17236
|
continue;
|
|
17237
|
-
const ge = Z.buffer, _e = Z.type, de = Z.bytesPerElement, oe = _e === r.INT || _e === r.UNSIGNED_INT || J.gpuType ===
|
|
17237
|
+
const ge = Z.buffer, _e = Z.type, de = Z.bytesPerElement, oe = _e === r.INT || _e === r.UNSIGNED_INT || J.gpuType === kc;
|
|
17238
17238
|
if (J.isInterleavedBufferAttribute) {
|
|
17239
17239
|
const ee = J.data, pe = ee.stride, ye = J.offset;
|
|
17240
17240
|
if (ee.isInstancedInterleavedBuffer) {
|
|
@@ -17521,9 +17521,9 @@ function F1(r) {
|
|
|
17521
17521
|
};
|
|
17522
17522
|
}
|
|
17523
17523
|
const Ci = 4, Dd = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ir = 20, z1 = 256, Hs = /* @__PURE__ */ new Tr(), Ld = /* @__PURE__ */ new Ae();
|
|
17524
|
-
let
|
|
17524
|
+
let yh = null, xh = 0, Ah = 0, bh = !1;
|
|
17525
17525
|
const k1 = /* @__PURE__ */ new U();
|
|
17526
|
-
class
|
|
17526
|
+
class Xh {
|
|
17527
17527
|
constructor(e) {
|
|
17528
17528
|
this._renderer = e, this._pingPongRenderTarget = null, this._lodMax = 0, this._cubeSize = 0, this._sizeLods = [], this._sigmas = [], this._lodMeshes = [], this._backgroundBox = null, this._cubemapMaterial = null, this._equirectMaterial = null, this._blurMaterial = null, this._ggxMaterial = null;
|
|
17529
17529
|
}
|
|
@@ -17532,7 +17532,7 @@ class Zh {
|
|
|
17532
17532
|
size: o = 256,
|
|
17533
17533
|
position: a = k1
|
|
17534
17534
|
} = s;
|
|
17535
|
-
|
|
17535
|
+
yh = this._renderer.getRenderTarget(), xh = this._renderer.getActiveCubeFace(), Ah = this._renderer.getActiveMipmapLevel(), bh = this._renderer.xr.enabled, this._renderer.xr.enabled = !1, this._setSize(o);
|
|
17536
17536
|
const c = this._allocateTargets();
|
|
17537
17537
|
return c.depthBuffer = !0, this._sceneToCubeUV(e, n, i, c, a), t > 0 && this._blur(c, 0, 0, t), this._applyPMREM(c), this._cleanup(c), c;
|
|
17538
17538
|
}
|
|
@@ -17560,10 +17560,10 @@ class Zh {
|
|
|
17560
17560
|
this._lodMeshes[e].geometry.dispose();
|
|
17561
17561
|
}
|
|
17562
17562
|
_cleanup(e) {
|
|
17563
|
-
this._renderer.setRenderTarget(xh, Ah
|
|
17563
|
+
this._renderer.setRenderTarget(yh, xh, Ah), this._renderer.xr.enabled = bh, e.scissorTest = !1, Kr(e, 0, 0, e.width, e.height);
|
|
17564
17564
|
}
|
|
17565
17565
|
_fromTexture(e, t) {
|
|
17566
|
-
e.mapping === Jn || e.mapping === Ri ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4),
|
|
17566
|
+
e.mapping === Jn || e.mapping === Ri ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), yh = this._renderer.getRenderTarget(), xh = this._renderer.getActiveCubeFace(), Ah = this._renderer.getActiveMipmapLevel(), bh = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
|
|
17567
17567
|
const n = t || this._allocateTargets();
|
|
17568
17568
|
return this._textureToCubeUV(e, n), this._applyPMREM(n), this._cleanup(n), n;
|
|
17569
17569
|
}
|
|
@@ -17590,7 +17590,7 @@ class Zh {
|
|
|
17590
17590
|
}
|
|
17591
17591
|
_sceneToCubeUV(e, t, n, i, s) {
|
|
17592
17592
|
const c = new Ft(90, 1, t, n), l = [1, -1, 1, 1, 1, 1], h = [1, 1, 1, -1, -1, -1], u = this._renderer, f = u.autoClear, d = u.toneMapping;
|
|
17593
|
-
u.getClearColor(Ld), u.toneMapping =
|
|
17593
|
+
u.getClearColor(Ld), u.toneMapping = Tn, u.autoClear = !1, u.state.buffers.depth.getReversed() && (u.setRenderTarget(i), u.clearDepth(), u.setRenderTarget(null)), this._backgroundBox === null && (this._backgroundBox = new St(
|
|
17594
17594
|
new wr(),
|
|
17595
17595
|
new dn({
|
|
17596
17596
|
name: "PMREM.Background",
|
|
@@ -17727,7 +17727,7 @@ function Kr(r, e, t, n, i) {
|
|
|
17727
17727
|
r.viewport.set(e, t, n, i), r.scissor.set(e, t, n, i);
|
|
17728
17728
|
}
|
|
17729
17729
|
function H1(r, e, t) {
|
|
17730
|
-
return new
|
|
17730
|
+
return new In({
|
|
17731
17731
|
name: "PMREMGGXConvolution",
|
|
17732
17732
|
defines: {
|
|
17733
17733
|
GGX_SAMPLES: z1,
|
|
@@ -17740,7 +17740,7 @@ function H1(r, e, t) {
|
|
|
17740
17740
|
roughness: { value: 0 },
|
|
17741
17741
|
mipInt: { value: 0 }
|
|
17742
17742
|
},
|
|
17743
|
-
vertexShader:
|
|
17743
|
+
vertexShader: bl(),
|
|
17744
17744
|
fragmentShader: `
|
|
17745
17745
|
|
|
17746
17746
|
precision highp float;
|
|
@@ -17857,7 +17857,7 @@ function H1(r, e, t) {
|
|
|
17857
17857
|
}
|
|
17858
17858
|
function G1(r, e, t) {
|
|
17859
17859
|
const n = new Float32Array(ir), i = new U(0, 1, 0);
|
|
17860
|
-
return new
|
|
17860
|
+
return new In({
|
|
17861
17861
|
name: "SphericalGaussianBlur",
|
|
17862
17862
|
defines: {
|
|
17863
17863
|
n: ir,
|
|
@@ -17874,7 +17874,7 @@ function G1(r, e, t) {
|
|
|
17874
17874
|
mipInt: { value: 0 },
|
|
17875
17875
|
poleAxis: { value: i }
|
|
17876
17876
|
},
|
|
17877
|
-
vertexShader:
|
|
17877
|
+
vertexShader: bl(),
|
|
17878
17878
|
fragmentShader: `
|
|
17879
17879
|
|
|
17880
17880
|
precision mediump float;
|
|
@@ -17942,12 +17942,12 @@ function G1(r, e, t) {
|
|
|
17942
17942
|
});
|
|
17943
17943
|
}
|
|
17944
17944
|
function Ud() {
|
|
17945
|
-
return new
|
|
17945
|
+
return new In({
|
|
17946
17946
|
name: "EquirectangularToCubeUV",
|
|
17947
17947
|
uniforms: {
|
|
17948
17948
|
envMap: { value: null }
|
|
17949
17949
|
},
|
|
17950
|
-
vertexShader:
|
|
17950
|
+
vertexShader: bl(),
|
|
17951
17951
|
fragmentShader: `
|
|
17952
17952
|
|
|
17953
17953
|
precision mediump float;
|
|
@@ -17974,13 +17974,13 @@ function Ud() {
|
|
|
17974
17974
|
});
|
|
17975
17975
|
}
|
|
17976
17976
|
function Bd() {
|
|
17977
|
-
return new
|
|
17977
|
+
return new In({
|
|
17978
17978
|
name: "CubemapToCubeUV",
|
|
17979
17979
|
uniforms: {
|
|
17980
17980
|
envMap: { value: null },
|
|
17981
17981
|
flipEnvMap: { value: -1 }
|
|
17982
17982
|
},
|
|
17983
|
-
vertexShader:
|
|
17983
|
+
vertexShader: bl(),
|
|
17984
17984
|
fragmentShader: `
|
|
17985
17985
|
|
|
17986
17986
|
precision mediump float;
|
|
@@ -18003,7 +18003,7 @@ function Bd() {
|
|
|
18003
18003
|
depthWrite: !1
|
|
18004
18004
|
});
|
|
18005
18005
|
}
|
|
18006
|
-
function
|
|
18006
|
+
function bl() {
|
|
18007
18007
|
return `
|
|
18008
18008
|
|
|
18009
18009
|
precision mediump float;
|
|
@@ -18070,12 +18070,12 @@ function W1(r) {
|
|
|
18070
18070
|
let u = e.get(a);
|
|
18071
18071
|
const f = u !== void 0 ? u.texture.pmremVersion : 0;
|
|
18072
18072
|
if (a.isRenderTargetTexture && a.pmremVersion !== f)
|
|
18073
|
-
return t === null && (t = new
|
|
18073
|
+
return t === null && (t = new Xh(r)), u = l ? t.fromEquirectangular(a, u) : t.fromCubemap(a, u), u.texture.pmremVersion = a.pmremVersion, e.set(a, u), u.texture;
|
|
18074
18074
|
if (u !== void 0)
|
|
18075
18075
|
return u.texture;
|
|
18076
18076
|
{
|
|
18077
18077
|
const d = a.image;
|
|
18078
|
-
return l && d && d.height > 0 || h && d && i(d) ? (t === null && (t = new
|
|
18078
|
+
return l && d && d.height > 0 || h && d && i(d) ? (t === null && (t = new Xh(r)), u = l ? t.fromEquirectangular(a) : t.fromCubemap(a), u.texture.pmremVersion = a.pmremVersion, e.set(a, u), a.addEventListener("dispose", s), u.texture) : null;
|
|
18079
18079
|
}
|
|
18080
18080
|
}
|
|
18081
18081
|
}
|
|
@@ -18282,7 +18282,7 @@ function Q1(r, e, t) {
|
|
|
18282
18282
|
d === !0 && (y = 1), g === !0 && (y = 2), _ === !0 && (y = 3);
|
|
18283
18283
|
let x = a.attributes.position.count * y, A = 1;
|
|
18284
18284
|
x > e.maxTextureSize && (A = Math.ceil(x / e.maxTextureSize), x = e.maxTextureSize);
|
|
18285
|
-
const E = new Float32Array(x * A * 4 * u), I = new
|
|
18285
|
+
const E = new Float32Array(x * A * 4 * u), I = new Qc(E, x, A, u);
|
|
18286
18286
|
I.type = rn, I.needsUpdate = !0;
|
|
18287
18287
|
const D = y * 4;
|
|
18288
18288
|
for (let C = 0; C < u; C++) {
|
|
@@ -18336,10 +18336,10 @@ function K1(r, e, t, n) {
|
|
|
18336
18336
|
};
|
|
18337
18337
|
}
|
|
18338
18338
|
const j1 = {
|
|
18339
|
-
[
|
|
18340
|
-
[
|
|
18341
|
-
[
|
|
18342
|
-
[
|
|
18339
|
+
[fu]: "LINEAR_TONE_MAPPING",
|
|
18340
|
+
[du]: "REINHARD_TONE_MAPPING",
|
|
18341
|
+
[pu]: "CINEON_TONE_MAPPING",
|
|
18342
|
+
[mu]: "ACES_FILMIC_TONE_MAPPING",
|
|
18343
18343
|
[_u]: "AGX_TONE_MAPPING",
|
|
18344
18344
|
[vu]: "NEUTRAL_TONE_MAPPING",
|
|
18345
18345
|
[gu]: "CUSTOM_TONE_MAPPING"
|
|
@@ -18425,13 +18425,13 @@ function J1(r, e, t, n, i) {
|
|
|
18425
18425
|
E.setSize && E.setSize(y, x);
|
|
18426
18426
|
}
|
|
18427
18427
|
}, this.begin = function(v, y) {
|
|
18428
|
-
if (d || v.toneMapping ===
|
|
18428
|
+
if (d || v.toneMapping === Tn && m.length === 0)
|
|
18429
18429
|
return !1;
|
|
18430
18430
|
if (_ = y, y !== null) {
|
|
18431
18431
|
const x = y.width, A = y.height;
|
|
18432
18432
|
(s.width !== x || s.height !== A) && this.setSize(x, A);
|
|
18433
18433
|
}
|
|
18434
|
-
return p === !1 && v.setRenderTarget(s), g = v.toneMapping, v.toneMapping =
|
|
18434
|
+
return p === !1 && v.setRenderTarget(s), g = v.toneMapping, v.toneMapping = Tn, !0;
|
|
18435
18435
|
}, this.hasRenderPass = function() {
|
|
18436
18436
|
return p;
|
|
18437
18437
|
}, this.end = function(v, y) {
|
|
@@ -18456,7 +18456,7 @@ function J1(r, e, t, n, i) {
|
|
|
18456
18456
|
s.dispose(), o.dispose(), a.dispose(), c.dispose();
|
|
18457
18457
|
};
|
|
18458
18458
|
}
|
|
18459
|
-
const lg = /* @__PURE__ */ new At(),
|
|
18459
|
+
const lg = /* @__PURE__ */ new At(), Zh = /* @__PURE__ */ new ms(1, 1), hg = /* @__PURE__ */ new Qc(), ug = /* @__PURE__ */ new Kc(), fg = /* @__PURE__ */ new bo(), Od = [], Fd = [], zd = new Float32Array(16), kd = new Float32Array(9), Vd = new Float32Array(4);
|
|
18460
18460
|
function Ts(r, e, t) {
|
|
18461
18461
|
const n = r[0];
|
|
18462
18462
|
if (n <= 0 || n > 0)
|
|
@@ -18482,7 +18482,7 @@ function Vt(r, e) {
|
|
|
18482
18482
|
for (let t = 0, n = e.length; t < n; t++)
|
|
18483
18483
|
r[t] = e[t];
|
|
18484
18484
|
}
|
|
18485
|
-
function
|
|
18485
|
+
function wl(r, e) {
|
|
18486
18486
|
let t = Fd[e];
|
|
18487
18487
|
t === void 0 && (t = new Int32Array(e), Fd[e] = t);
|
|
18488
18488
|
for (let n = 0; n !== e; ++n)
|
|
@@ -18633,7 +18633,7 @@ function pb(r, e, t) {
|
|
|
18633
18633
|
const n = this.cache, i = t.allocateTextureUnit();
|
|
18634
18634
|
n[0] !== i && (r.uniform1i(this.addr, i), n[0] = i);
|
|
18635
18635
|
let s;
|
|
18636
|
-
this.type === r.SAMPLER_2D_SHADOW ? (
|
|
18636
|
+
this.type === r.SAMPLER_2D_SHADOW ? (Zh.compareFunction = t.isReversedDepthBuffer() ? Yc : Zc, s = Zh) : s = lg, t.setTexture2D(e || s, i);
|
|
18637
18637
|
}
|
|
18638
18638
|
function mb(r, e, t) {
|
|
18639
18639
|
const n = this.cache, i = t.allocateTextureUnit();
|
|
@@ -18757,27 +18757,27 @@ function Lb(r, e) {
|
|
|
18757
18757
|
r.uniform4uiv(this.addr, e);
|
|
18758
18758
|
}
|
|
18759
18759
|
function Nb(r, e, t) {
|
|
18760
|
-
const n = this.cache, i = e.length, s =
|
|
18760
|
+
const n = this.cache, i = e.length, s = wl(t, i);
|
|
18761
18761
|
kt(n, s) || (r.uniform1iv(this.addr, s), Vt(n, s));
|
|
18762
18762
|
let o;
|
|
18763
|
-
this.type === r.SAMPLER_2D_SHADOW ? o =
|
|
18763
|
+
this.type === r.SAMPLER_2D_SHADOW ? o = Zh : o = lg;
|
|
18764
18764
|
for (let a = 0; a !== i; ++a)
|
|
18765
18765
|
t.setTexture2D(e[a] || o, s[a]);
|
|
18766
18766
|
}
|
|
18767
18767
|
function Ub(r, e, t) {
|
|
18768
|
-
const n = this.cache, i = e.length, s =
|
|
18768
|
+
const n = this.cache, i = e.length, s = wl(t, i);
|
|
18769
18769
|
kt(n, s) || (r.uniform1iv(this.addr, s), Vt(n, s));
|
|
18770
18770
|
for (let o = 0; o !== i; ++o)
|
|
18771
18771
|
t.setTexture3D(e[o] || ug, s[o]);
|
|
18772
18772
|
}
|
|
18773
18773
|
function Bb(r, e, t) {
|
|
18774
|
-
const n = this.cache, i = e.length, s =
|
|
18774
|
+
const n = this.cache, i = e.length, s = wl(t, i);
|
|
18775
18775
|
kt(n, s) || (r.uniform1iv(this.addr, s), Vt(n, s));
|
|
18776
18776
|
for (let o = 0; o !== i; ++o)
|
|
18777
18777
|
t.setTextureCube(e[o] || fg, s[o]);
|
|
18778
18778
|
}
|
|
18779
18779
|
function Ob(r, e, t) {
|
|
18780
|
-
const n = this.cache, i = e.length, s =
|
|
18780
|
+
const n = this.cache, i = e.length, s = wl(t, i);
|
|
18781
18781
|
kt(n, s) || (r.uniform1iv(this.addr, s), Vt(n, s));
|
|
18782
18782
|
for (let o = 0; o !== i; ++o)
|
|
18783
18783
|
t.setTexture2DArray(e[o] || hg, s[o]);
|
|
@@ -18862,14 +18862,14 @@ class Vb {
|
|
|
18862
18862
|
}
|
|
18863
18863
|
}
|
|
18864
18864
|
}
|
|
18865
|
-
const
|
|
18865
|
+
const wh = /(\w+)(\])?(\[|\.)?/g;
|
|
18866
18866
|
function Hd(r, e) {
|
|
18867
18867
|
r.seq.push(e), r.map[e.id] = e;
|
|
18868
18868
|
}
|
|
18869
18869
|
function Hb(r, e, t) {
|
|
18870
18870
|
const n = r.name, i = n.length;
|
|
18871
|
-
for (
|
|
18872
|
-
const s =
|
|
18871
|
+
for (wh.lastIndex = 0; ; ) {
|
|
18872
|
+
const s = wh.exec(n), o = wh.lastIndex;
|
|
18873
18873
|
let a = s[1];
|
|
18874
18874
|
const c = s[2] === "]", l = s[3];
|
|
18875
18875
|
if (c && (a = a | 0), l === void 0 || l === "[" && o + 2 === i) {
|
|
@@ -18971,10 +18971,10 @@ function Zb(r, e) {
|
|
|
18971
18971
|
`);
|
|
18972
18972
|
}
|
|
18973
18973
|
const Yb = {
|
|
18974
|
-
[
|
|
18975
|
-
[
|
|
18976
|
-
[
|
|
18977
|
-
[
|
|
18974
|
+
[fu]: "Linear",
|
|
18975
|
+
[du]: "Reinhard",
|
|
18976
|
+
[pu]: "Cineon",
|
|
18977
|
+
[mu]: "ACESFilmic",
|
|
18978
18978
|
[_u]: "AgX",
|
|
18979
18979
|
[vu]: "Neutral",
|
|
18980
18980
|
[gu]: "Custom"
|
|
@@ -19035,7 +19035,7 @@ function Zd(r, e) {
|
|
|
19035
19035
|
return r.replace(/NUM_CLIPPING_PLANES/g, e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, e.numClippingPlanes - e.numClipIntersection);
|
|
19036
19036
|
}
|
|
19037
19037
|
const ew = /^[ \t]*#include +<([\w\d./]+)>/gm;
|
|
19038
|
-
function
|
|
19038
|
+
function Yh(r) {
|
|
19039
19039
|
return r.replace(ew, nw);
|
|
19040
19040
|
}
|
|
19041
19041
|
const tw = /* @__PURE__ */ new Map();
|
|
@@ -19048,7 +19048,7 @@ function nw(r, e) {
|
|
|
19048
19048
|
else
|
|
19049
19049
|
throw new Error("Can not resolve #include <" + e + ">");
|
|
19050
19050
|
}
|
|
19051
|
-
return
|
|
19051
|
+
return Yh(t);
|
|
19052
19052
|
}
|
|
19053
19053
|
const iw = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
|
|
19054
19054
|
function Yd(r) {
|
|
@@ -19339,9 +19339,9 @@ function pw(r, e, t, n) {
|
|
|
19339
19339
|
"uniform mat4 viewMatrix;",
|
|
19340
19340
|
"uniform vec3 cameraPosition;",
|
|
19341
19341
|
"uniform bool isOrthographic;",
|
|
19342
|
-
t.toneMapping !==
|
|
19343
|
-
t.toneMapping !==
|
|
19344
|
-
t.toneMapping !==
|
|
19342
|
+
t.toneMapping !== Tn ? "#define TONE_MAPPING" : "",
|
|
19343
|
+
t.toneMapping !== Tn ? it.tonemapping_pars_fragment : "",
|
|
19344
|
+
t.toneMapping !== Tn ? Qb("toneMapping", t.toneMapping) : "",
|
|
19345
19345
|
t.dithering ? "#define DITHERING" : "",
|
|
19346
19346
|
t.opaque ? "#define OPAQUE" : "",
|
|
19347
19347
|
it.colorspace_pars_fragment,
|
|
@@ -19351,7 +19351,7 @@ function pw(r, e, t, n) {
|
|
|
19351
19351
|
`
|
|
19352
19352
|
`
|
|
19353
19353
|
].filter(Zs).join(`
|
|
19354
|
-
`)), o =
|
|
19354
|
+
`)), o = Yh(o), o = Xd(o, t), o = Zd(o, t), a = Yh(a), a = Xd(a, t), a = Zd(a, t), o = Yd(o), a = Yd(a), t.isRawShaderMaterial !== !0 && (v = `#version 300 es
|
|
19355
19355
|
`, m = [
|
|
19356
19356
|
d,
|
|
19357
19357
|
"#define attribute in",
|
|
@@ -19361,8 +19361,8 @@ function pw(r, e, t, n) {
|
|
|
19361
19361
|
`) + `
|
|
19362
19362
|
` + m, p = [
|
|
19363
19363
|
"#define varying in",
|
|
19364
|
-
t.glslVersion ===
|
|
19365
|
-
t.glslVersion ===
|
|
19364
|
+
t.glslVersion === zh ? "" : "layout(location = 0) out highp vec4 pc_fragColor;",
|
|
19365
|
+
t.glslVersion === zh ? "" : "#define gl_FragColor pc_fragColor",
|
|
19366
19366
|
"#define gl_FragDepthEXT gl_FragDepth",
|
|
19367
19367
|
"#define texture2D texture",
|
|
19368
19368
|
"#define textureCube texture",
|
|
@@ -19471,7 +19471,7 @@ class _w {
|
|
|
19471
19471
|
}
|
|
19472
19472
|
}
|
|
19473
19473
|
function vw(r, e, t, n, i, s, o) {
|
|
19474
|
-
const a = new
|
|
19474
|
+
const a = new jc(), c = new gw(), l = /* @__PURE__ */ new Set(), h = [], u = /* @__PURE__ */ new Map(), f = i.logarithmicDepthBuffer;
|
|
19475
19475
|
let d = i.precision;
|
|
19476
19476
|
const g = {
|
|
19477
19477
|
MeshDepthMaterial: "depth",
|
|
@@ -19501,12 +19501,12 @@ function vw(r, e, t, n, i, s, o) {
|
|
|
19501
19501
|
z.morphAttributes.position !== void 0 && (Z = 1), z.morphAttributes.normal !== void 0 && (Z = 2), z.morphAttributes.color !== void 0 && (Z = 3);
|
|
19502
19502
|
let ge, _e, de, oe;
|
|
19503
19503
|
if (J) {
|
|
19504
|
-
const ft =
|
|
19504
|
+
const ft = On[J];
|
|
19505
19505
|
ge = ft.vertexShader, _e = ft.fragmentShader;
|
|
19506
19506
|
} else
|
|
19507
19507
|
ge = b.vertexShader, _e = b.fragmentShader, c.update(b), de = c.getVertexShaderID(b), oe = c.getFragmentShaderID(b);
|
|
19508
19508
|
const ee = r.getRenderTarget(), pe = r.state.buffers.depth.getReversed(), ye = O.isInstancedMesh === !0, xe = O.isBatchedMesh === !0, ze = !!b.map, Ke = !!b.matcap, He = !!H, w = !!b.aoMap, q = !!b.lightMap, k = !!b.bumpMap, N = !!b.normalMap, S = !!b.displacementMap, G = !!b.emissiveMap, K = !!b.metalnessMap, ie = !!b.roughnessMap, V = b.anisotropy > 0, P = b.clearcoat > 0, T = b.dispersion > 0, F = b.iridescence > 0, Q = b.sheen > 0, ce = b.transmission > 0, te = V && !!b.anisotropyMap, Re = P && !!b.clearcoatMap, we = P && !!b.clearcoatNormalMap, Le = P && !!b.clearcoatRoughnessMap, Xe = F && !!b.iridescenceMap, fe = F && !!b.iridescenceThicknessMap, Se = Q && !!b.sheenColorMap, Be = Q && !!b.sheenRoughnessMap, Ue = !!b.specularMap, Me = !!b.specularColorMap, nt = !!b.specularIntensityMap, Y = ce && !!b.transmissionMap, Pe = ce && !!b.thicknessMap, be = !!b.gradientMap, De = !!b.alphaMap, ve = b.alphaTest > 0, me = !!b.alphaHash, Ee = !!b.extensions;
|
|
19509
|
-
let $e =
|
|
19509
|
+
let $e = Tn;
|
|
19510
19510
|
b.toneMapped && (ee === null || ee.isXRRenderTarget === !0) && ($e = r.toneMapping);
|
|
19511
19511
|
const vt = {
|
|
19512
19512
|
shaderID: J,
|
|
@@ -19656,7 +19656,7 @@ function vw(r, e, t, n, i, s, o) {
|
|
|
19656
19656
|
const C = g[b.type];
|
|
19657
19657
|
let B;
|
|
19658
19658
|
if (C) {
|
|
19659
|
-
const R =
|
|
19659
|
+
const R = On[C];
|
|
19660
19660
|
B = bm.clone(R.uniforms);
|
|
19661
19661
|
} else
|
|
19662
19662
|
B = b.uniforms;
|
|
@@ -20093,10 +20093,10 @@ void main() {
|
|
|
20093
20093
|
/* @__PURE__ */ new U(0, 0, -1),
|
|
20094
20094
|
/* @__PURE__ */ new U(0, -1, 0),
|
|
20095
20095
|
/* @__PURE__ */ new U(0, -1, 0)
|
|
20096
|
-
], $d = /* @__PURE__ */ new qe(), Gs = /* @__PURE__ */ new U(),
|
|
20096
|
+
], $d = /* @__PURE__ */ new qe(), Gs = /* @__PURE__ */ new U(), Sh = /* @__PURE__ */ new U();
|
|
20097
20097
|
function Dw(r, e, t) {
|
|
20098
20098
|
let n = new ws();
|
|
20099
|
-
const i = new he(), s = new he(), o = new _t(), a = new Xu(), c = new Zu(), l = {}, h = t.maxTextureSize, u = { [jn]: on, [on]: jn, [Mn]: Mn }, f = new
|
|
20099
|
+
const i = new he(), s = new he(), o = new _t(), a = new Xu(), c = new Zu(), l = {}, h = t.maxTextureSize, u = { [jn]: on, [on]: jn, [Mn]: Mn }, f = new In({
|
|
20100
20100
|
defines: {
|
|
20101
20101
|
VSM_SAMPLES: 8
|
|
20102
20102
|
},
|
|
@@ -20152,11 +20152,11 @@ function Dw(r, e, t) {
|
|
|
20152
20152
|
minFilter: mt,
|
|
20153
20153
|
magFilter: mt,
|
|
20154
20154
|
generateMipmaps: !1
|
|
20155
|
-
}), H.map.texture.name = X.name + ".shadowMap", H.map.depthTexture = new ms(i.x, i.y, rn), H.map.depthTexture.name = X.name + ".shadowMapDepth", H.map.depthTexture.format = ei, H.map.depthTexture.compareFunction = null, H.map.depthTexture.minFilter =
|
|
20155
|
+
}), H.map.texture.name = X.name + ".shadowMap", H.map.depthTexture = new ms(i.x, i.y, rn), H.map.depthTexture.name = X.name + ".shadowMapDepth", H.map.depthTexture.format = ei, H.map.depthTexture.compareFunction = null, H.map.depthTexture.minFilter = Tt, H.map.depthTexture.magFilter = Tt;
|
|
20156
20156
|
} else {
|
|
20157
|
-
X.isPointLight ? (H.map = new Pu(i.x), H.map.depthTexture = new Im(i.x,
|
|
20157
|
+
X.isPointLight ? (H.map = new Pu(i.x), H.map.depthTexture = new Im(i.x, Cn)) : (H.map = new xn(i.x, i.y), H.map.depthTexture = new ms(i.x, i.y, Cn)), H.map.depthTexture.name = X.name + ".shadowMap", H.map.depthTexture.format = ei;
|
|
20158
20158
|
const le = r.state.buffers.depth.getReversed();
|
|
20159
|
-
this.type === js ? (H.map.depthTexture.compareFunction = le ?
|
|
20159
|
+
this.type === js ? (H.map.depthTexture.compareFunction = le ? Yc : Zc, H.map.depthTexture.minFilter = mt, H.map.depthTexture.magFilter = mt) : (H.map.depthTexture.compareFunction = null, H.map.depthTexture.minFilter = Tt, H.map.depthTexture.magFilter = Tt);
|
|
20160
20160
|
}
|
|
20161
20161
|
H.camera.updateProjectionMatrix();
|
|
20162
20162
|
}
|
|
@@ -20176,7 +20176,7 @@ function Dw(r, e, t) {
|
|
|
20176
20176
|
}
|
|
20177
20177
|
if (X.isPointLight) {
|
|
20178
20178
|
const W = H.camera, Z = H.matrix, ge = X.distance || W.far;
|
|
20179
|
-
ge !== W.far && (W.far = ge, W.updateProjectionMatrix()), Gs.setFromMatrixPosition(X.matrixWorld), W.position.copy(Gs),
|
|
20179
|
+
ge !== W.far && (W.far = ge, W.updateProjectionMatrix()), Gs.setFromMatrixPosition(X.matrixWorld), W.position.copy(Gs), Sh.copy(W.position), Sh.add(Rw[le]), W.up.copy(Pw[le]), W.lookAt(Sh), W.updateMatrixWorld(), Z.makeTranslation(-Gs.x, -Gs.y, -Gs.z), $d.multiplyMatrices(W.projectionMatrix, W.matrixWorldInverse), H._frustum.setFromProjectionMatrix($d, W.coordinateSystem, W.reversedDepth);
|
|
20180
20180
|
} else
|
|
20181
20181
|
H.updateMatrices(X);
|
|
20182
20182
|
n = H.getFrustum(), x(I, D, H.camera, X, this.type);
|
|
@@ -20379,7 +20379,7 @@ function Nw(r, e) {
|
|
|
20379
20379
|
return me;
|
|
20380
20380
|
}
|
|
20381
20381
|
const oe = {};
|
|
20382
|
-
oe[r.TEXTURE_2D] = de(r.TEXTURE_2D, r.TEXTURE_2D, 1), oe[r.TEXTURE_CUBE_MAP] = de(r.TEXTURE_CUBE_MAP, r.TEXTURE_CUBE_MAP_POSITIVE_X, 6), oe[r.TEXTURE_2D_ARRAY] = de(r.TEXTURE_2D_ARRAY, r.TEXTURE_2D_ARRAY, 1, 1), oe[r.TEXTURE_3D] = de(r.TEXTURE_3D, r.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), o.setClear(1), a.setClear(0), ee(r.DEPTH_TEST), o.setFunc(mr), k(!1), N(
|
|
20382
|
+
oe[r.TEXTURE_2D] = de(r.TEXTURE_2D, r.TEXTURE_2D, 1), oe[r.TEXTURE_CUBE_MAP] = de(r.TEXTURE_CUBE_MAP, r.TEXTURE_CUBE_MAP_POSITIVE_X, 6), oe[r.TEXTURE_2D_ARRAY] = de(r.TEXTURE_2D_ARRAY, r.TEXTURE_2D_ARRAY, 1, 1), oe[r.TEXTURE_3D] = de(r.TEXTURE_3D, r.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), o.setClear(1), a.setClear(0), ee(r.DEPTH_TEST), o.setFunc(mr), k(!1), N(Lh), ee(r.CULL_FACE), w(Kn);
|
|
20383
20383
|
function ee(Y) {
|
|
20384
20384
|
h[Y] !== !0 && (r.enable(Y), h[Y] = !0);
|
|
20385
20385
|
}
|
|
@@ -20441,13 +20441,13 @@ function Nw(r, e) {
|
|
|
20441
20441
|
case hr:
|
|
20442
20442
|
r.blendFuncSeparate(r.ONE, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA);
|
|
20443
20443
|
break;
|
|
20444
|
-
case
|
|
20444
|
+
case Nh:
|
|
20445
20445
|
r.blendFunc(r.ONE, r.ONE);
|
|
20446
20446
|
break;
|
|
20447
|
-
case
|
|
20447
|
+
case Uh:
|
|
20448
20448
|
r.blendFuncSeparate(r.ZERO, r.ONE_MINUS_SRC_COLOR, r.ZERO, r.ONE);
|
|
20449
20449
|
break;
|
|
20450
|
-
case
|
|
20450
|
+
case Bh:
|
|
20451
20451
|
r.blendFuncSeparate(r.DST_COLOR, r.ONE_MINUS_SRC_ALPHA, r.ZERO, r.ONE);
|
|
20452
20452
|
break;
|
|
20453
20453
|
default:
|
|
@@ -20459,13 +20459,13 @@ function Nw(r, e) {
|
|
|
20459
20459
|
case hr:
|
|
20460
20460
|
r.blendFuncSeparate(r.SRC_ALPHA, r.ONE_MINUS_SRC_ALPHA, r.ONE, r.ONE_MINUS_SRC_ALPHA);
|
|
20461
20461
|
break;
|
|
20462
|
-
case
|
|
20462
|
+
case Nh:
|
|
20463
20463
|
r.blendFuncSeparate(r.SRC_ALPHA, r.ONE, r.ONE, r.ONE);
|
|
20464
20464
|
break;
|
|
20465
|
-
case
|
|
20465
|
+
case Uh:
|
|
20466
20466
|
Ge("WebGLState: SubtractiveBlending requires material.premultipliedAlpha = true");
|
|
20467
20467
|
break;
|
|
20468
|
-
case
|
|
20468
|
+
case Bh:
|
|
20469
20469
|
Ge("WebGLState: MultiplyBlending requires material.premultipliedAlpha = true");
|
|
20470
20470
|
break;
|
|
20471
20471
|
default:
|
|
@@ -20489,7 +20489,7 @@ function Nw(r, e) {
|
|
|
20489
20489
|
C !== Y && (Y ? r.frontFace(r.CW) : r.frontFace(r.CCW), C = Y);
|
|
20490
20490
|
}
|
|
20491
20491
|
function N(Y) {
|
|
20492
|
-
Y !== Np ? (ee(r.CULL_FACE), Y !== B && (Y ===
|
|
20492
|
+
Y !== Np ? (ee(r.CULL_FACE), Y !== B && (Y === Lh ? r.cullFace(r.BACK) : Y === Up ? r.cullFace(r.FRONT) : r.cullFace(r.FRONT_AND_BACK))) : pe(r.CULL_FACE), B = Y;
|
|
20493
20493
|
}
|
|
20494
20494
|
function S(Y) {
|
|
20495
20495
|
Y !== R && (X && r.lineWidth(Y), R = Y);
|
|
@@ -20688,10 +20688,10 @@ function Uw(r, e, t, n, i, s, o) {
|
|
|
20688
20688
|
}
|
|
20689
20689
|
function x(P, T) {
|
|
20690
20690
|
let F;
|
|
20691
|
-
return P ? T === null || T ===
|
|
20691
|
+
return P ? T === null || T === Cn || T === as ? F = r.DEPTH24_STENCIL8 : T === rn ? F = r.DEPTH32F_STENCIL8 : T === os && (F = r.DEPTH24_STENCIL8, Te("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : T === null || T === Cn || T === as ? F = r.DEPTH_COMPONENT24 : T === rn ? F = r.DEPTH_COMPONENT32F : T === os && (F = r.DEPTH_COMPONENT16), F;
|
|
20692
20692
|
}
|
|
20693
20693
|
function A(P, T) {
|
|
20694
|
-
return m(P) === !0 || P.isFramebufferTexture && P.minFilter !==
|
|
20694
|
+
return m(P) === !0 || P.isFramebufferTexture && P.minFilter !== Tt && P.minFilter !== mt ? Math.log2(Math.max(T.width, T.height)) + 1 : P.mipmaps !== void 0 && P.mipmaps.length > 0 ? P.mipmaps.length : P.isCompressedTexture && Array.isArray(P.image) ? T.mipmaps.length : 1;
|
|
20695
20695
|
}
|
|
20696
20696
|
function E(P) {
|
|
20697
20697
|
const T = P.target;
|
|
@@ -20805,8 +20805,8 @@ function Uw(r, e, t, n, i, s, o) {
|
|
|
20805
20805
|
[nn]: r.CLAMP_TO_EDGE,
|
|
20806
20806
|
[ss]: r.MIRRORED_REPEAT
|
|
20807
20807
|
}, le = {
|
|
20808
|
-
[
|
|
20809
|
-
[
|
|
20808
|
+
[Tt]: r.NEAREST,
|
|
20809
|
+
[zc]: r.NEAREST_MIPMAP_NEAREST,
|
|
20810
20810
|
[sr]: r.NEAREST_MIPMAP_LINEAR,
|
|
20811
20811
|
[mt]: r.LINEAR,
|
|
20812
20812
|
[ts]: r.LINEAR_MIPMAP_NEAREST,
|
|
@@ -20815,15 +20815,15 @@ function Uw(r, e, t, n, i, s, o) {
|
|
|
20815
20815
|
[hm]: r.NEVER,
|
|
20816
20816
|
[mm]: r.ALWAYS,
|
|
20817
20817
|
[um]: r.LESS,
|
|
20818
|
-
[
|
|
20818
|
+
[Zc]: r.LEQUAL,
|
|
20819
20819
|
[fm]: r.EQUAL,
|
|
20820
|
-
[
|
|
20820
|
+
[Yc]: r.GEQUAL,
|
|
20821
20821
|
[dm]: r.GREATER,
|
|
20822
20822
|
[pm]: r.NOTEQUAL
|
|
20823
20823
|
};
|
|
20824
20824
|
function Z(P, T) {
|
|
20825
20825
|
if (T.type === rn && e.has("OES_texture_float_linear") === !1 && (T.magFilter === mt || T.magFilter === ts || T.magFilter === sr || T.magFilter === En || T.minFilter === mt || T.minFilter === ts || T.minFilter === sr || T.minFilter === En) && Te("WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(P, r.TEXTURE_WRAP_S, J[T.wrapS]), r.texParameteri(P, r.TEXTURE_WRAP_T, J[T.wrapT]), (P === r.TEXTURE_3D || P === r.TEXTURE_2D_ARRAY) && r.texParameteri(P, r.TEXTURE_WRAP_R, J[T.wrapR]), r.texParameteri(P, r.TEXTURE_MAG_FILTER, le[T.magFilter]), r.texParameteri(P, r.TEXTURE_MIN_FILTER, le[T.minFilter]), T.compareFunction && (r.texParameteri(P, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(P, r.TEXTURE_COMPARE_FUNC, W[T.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
|
|
20826
|
-
if (T.magFilter ===
|
|
20826
|
+
if (T.magFilter === Tt || T.minFilter !== sr && T.minFilter !== En || T.type === rn && e.has("OES_texture_float_linear") === !1)
|
|
20827
20827
|
return;
|
|
20828
20828
|
if (T.anisotropy > 1 || n.get(T).__currentAnisotropy) {
|
|
20829
20829
|
const F = e.get("EXT_texture_filter_anisotropic");
|
|
@@ -20911,7 +20911,7 @@ function Uw(r, e, t, n, i, s, o) {
|
|
|
20911
20911
|
if (Y) {
|
|
20912
20912
|
if (be)
|
|
20913
20913
|
if (T.layerUpdates.size > 0) {
|
|
20914
|
-
const Ee =
|
|
20914
|
+
const Ee = qh(Me.width, Me.height, T.format, T.type);
|
|
20915
20915
|
for (const $e of T.layerUpdates) {
|
|
20916
20916
|
const vt = Me.data.subarray(
|
|
20917
20917
|
$e * Ee / Me.data.BYTES_PER_ELEMENT,
|
|
@@ -20937,7 +20937,7 @@ function Uw(r, e, t, n, i, s, o) {
|
|
|
20937
20937
|
if (Y) {
|
|
20938
20938
|
if (Pe && t.texStorage3D(r.TEXTURE_2D_ARRAY, De, Ue, fe.width, fe.height, fe.depth), be)
|
|
20939
20939
|
if (T.layerUpdates.size > 0) {
|
|
20940
|
-
const ve =
|
|
20940
|
+
const ve = qh(fe.width, fe.height, T.format, T.type);
|
|
20941
20941
|
for (const me of T.layerUpdates) {
|
|
20942
20942
|
const Ee = fe.data.subarray(
|
|
20943
20943
|
me * ve / fe.data.BYTES_PER_ELEMENT,
|
|
@@ -21256,9 +21256,9 @@ function dg(r, e) {
|
|
|
21256
21256
|
const o = st.getTransfer(i);
|
|
21257
21257
|
if (n === un)
|
|
21258
21258
|
return r.UNSIGNED_BYTE;
|
|
21259
|
-
if (n ===
|
|
21259
|
+
if (n === Vc)
|
|
21260
21260
|
return r.UNSIGNED_SHORT_4_4_4_4;
|
|
21261
|
-
if (n ===
|
|
21261
|
+
if (n === Hc)
|
|
21262
21262
|
return r.UNSIGNED_SHORT_5_5_5_1;
|
|
21263
21263
|
if (n === Au)
|
|
21264
21264
|
return r.UNSIGNED_INT_5_9_9_9_REV;
|
|
@@ -21270,9 +21270,9 @@ function dg(r, e) {
|
|
|
21270
21270
|
return r.SHORT;
|
|
21271
21271
|
if (n === os)
|
|
21272
21272
|
return r.UNSIGNED_SHORT;
|
|
21273
|
-
if (n ===
|
|
21273
|
+
if (n === kc)
|
|
21274
21274
|
return r.INT;
|
|
21275
|
-
if (n ===
|
|
21275
|
+
if (n === Cn)
|
|
21276
21276
|
return r.UNSIGNED_INT;
|
|
21277
21277
|
if (n === rn)
|
|
21278
21278
|
return r.FLOAT;
|
|
@@ -21288,15 +21288,15 @@ function dg(r, e) {
|
|
|
21288
21288
|
return r.DEPTH_COMPONENT;
|
|
21289
21289
|
if (n === Ei)
|
|
21290
21290
|
return r.DEPTH_STENCIL;
|
|
21291
|
-
if (n ===
|
|
21291
|
+
if (n === Gc)
|
|
21292
21292
|
return r.RED;
|
|
21293
21293
|
if (n === Ao)
|
|
21294
21294
|
return r.RED_INTEGER;
|
|
21295
21295
|
if (n === gr)
|
|
21296
21296
|
return r.RG;
|
|
21297
|
-
if (n ===
|
|
21297
|
+
if (n === Wc)
|
|
21298
21298
|
return r.RG_INTEGER;
|
|
21299
|
-
if (n ===
|
|
21299
|
+
if (n === qc)
|
|
21300
21300
|
return r.RGBA_INTEGER;
|
|
21301
21301
|
if (n === Js || n === $s || n === eo || n === to)
|
|
21302
21302
|
if (o === ut)
|
|
@@ -21445,7 +21445,7 @@ class Fw {
|
|
|
21445
21445
|
}
|
|
21446
21446
|
getMesh(e) {
|
|
21447
21447
|
if (this.texture !== null && this.mesh === null) {
|
|
21448
|
-
const t = e.cameras[0].viewport, n = new
|
|
21448
|
+
const t = e.cameras[0].viewport, n = new In({
|
|
21449
21449
|
vertexShader: Bw,
|
|
21450
21450
|
fragmentShader: Ow,
|
|
21451
21451
|
uniforms: {
|
|
@@ -21528,7 +21528,7 @@ class zw extends ti {
|
|
|
21528
21528
|
if (i = oe, i !== null) {
|
|
21529
21529
|
if (y = e.getRenderTarget(), i.addEventListener("select", z), i.addEventListener("selectstart", z), i.addEventListener("selectend", z), i.addEventListener("squeeze", z), i.addEventListener("squeezestart", z), i.addEventListener("squeezeend", z), i.addEventListener("end", X), i.addEventListener("inputsourceschange", H), v.xrCompatible !== !0 && await t.makeXRCompatible(), D = e.getPixelRatio(), e.getSize(I), _ && "createProjectionLayer" in XRWebGLBinding.prototype) {
|
|
21530
21530
|
let pe = null, ye = null, xe = null;
|
|
21531
|
-
v.depth && (xe = v.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, pe = v.stencil ? Ei : ei, ye = v.stencil ? as :
|
|
21531
|
+
v.depth && (xe = v.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, pe = v.stencil ? Ei : ei, ye = v.stencil ? as : Cn);
|
|
21532
21532
|
const ze = {
|
|
21533
21533
|
colorFormat: t.RGBA8,
|
|
21534
21534
|
depthFormat: xe,
|
|
@@ -22398,16 +22398,16 @@ class pg {
|
|
|
22398
22398
|
} else
|
|
22399
22399
|
g = o;
|
|
22400
22400
|
const _ = d, m = /* @__PURE__ */ new Set([
|
|
22401
|
-
Xc,
|
|
22402
22401
|
qc,
|
|
22402
|
+
Wc,
|
|
22403
22403
|
Ao
|
|
22404
22404
|
]), p = /* @__PURE__ */ new Set([
|
|
22405
22405
|
un,
|
|
22406
|
-
|
|
22406
|
+
Cn,
|
|
22407
22407
|
os,
|
|
22408
22408
|
as,
|
|
22409
|
-
|
|
22410
|
-
|
|
22409
|
+
Vc,
|
|
22410
|
+
Hc
|
|
22411
22411
|
]), v = new Uint32Array(4), y = new Int32Array(4);
|
|
22412
22412
|
let x = null, A = null;
|
|
22413
22413
|
const E = [], I = [];
|
|
@@ -22415,10 +22415,10 @@ class pg {
|
|
|
22415
22415
|
this.domElement = t, this.debug = {
|
|
22416
22416
|
checkShaderErrors: !0,
|
|
22417
22417
|
onShaderError: null
|
|
22418
|
-
}, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.toneMapping =
|
|
22418
|
+
}, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.toneMapping = Tn, this.toneMappingExposure = 1, this.transmissionResolutionScale = 1;
|
|
22419
22419
|
const b = this;
|
|
22420
22420
|
let C = !1;
|
|
22421
|
-
this._outputColorSpace =
|
|
22421
|
+
this._outputColorSpace = Mt;
|
|
22422
22422
|
let B = 0, R = 0, O = null, M = -1, z = null;
|
|
22423
22423
|
const X = new _t(), H = new _t();
|
|
22424
22424
|
let re = null;
|
|
@@ -22588,12 +22588,12 @@ class pg {
|
|
|
22588
22588
|
const je = ae.drawRange, Ze = ae.attributes.position;
|
|
22589
22589
|
let rt = je.start * We, pt = (je.start + je.count) * We;
|
|
22590
22590
|
Ce !== null && (rt = Math.max(rt, Ce.start * We), pt = Math.min(pt, (Ce.start + Ce.count) * We)), Ve !== null ? (rt = Math.max(rt, 0), pt = Math.min(pt, Ve.count)) : Ze != null && (rt = Math.max(rt, 0), pt = Math.min(pt, Ze.count));
|
|
22591
|
-
const
|
|
22592
|
-
if (
|
|
22591
|
+
const Ct = pt - rt;
|
|
22592
|
+
if (Ct < 0 || Ct === 1 / 0)
|
|
22593
22593
|
return;
|
|
22594
22594
|
De.setup(ne, se, Ne, ae, Ve);
|
|
22595
|
-
let
|
|
22596
|
-
if (Ve !== null && (
|
|
22595
|
+
let It, gt = Y;
|
|
22596
|
+
if (Ve !== null && (It = te.get(Ve), gt = Pe, gt.setIndex(It)), ne.isMesh)
|
|
22597
22597
|
se.wireframe === !0 ? (V.setLineWidth(se.wireframeLinewidth * N()), gt.setMode(S.LINES)) : gt.setMode(S.TRIANGLES);
|
|
22598
22598
|
else if (ne.isLine) {
|
|
22599
22599
|
let Ye = se.linewidth;
|
|
@@ -22611,12 +22611,12 @@ class pg {
|
|
|
22611
22611
|
Ir.setValue(S, "_gl_DrawID", mn), gt.render(Ye[mn] / pn, dt[mn]);
|
|
22612
22612
|
}
|
|
22613
22613
|
else if (ne.isInstancedMesh)
|
|
22614
|
-
gt.renderInstances(rt,
|
|
22614
|
+
gt.renderInstances(rt, Ct, ne.count);
|
|
22615
22615
|
else if (ae.isInstancedBufferGeometry) {
|
|
22616
22616
|
const Ye = ae._maxInstanceCount !== void 0 ? ae._maxInstanceCount : 1 / 0, dt = Math.min(ae.instanceCount, Ye);
|
|
22617
|
-
gt.renderInstances(rt,
|
|
22617
|
+
gt.renderInstances(rt, Ct, dt);
|
|
22618
22618
|
} else
|
|
22619
|
-
gt.render(rt,
|
|
22619
|
+
gt.render(rt, Ct);
|
|
22620
22620
|
};
|
|
22621
22621
|
function vf(L, j, ae) {
|
|
22622
22622
|
L.transparent === !0 && L.side === Mn && L.forceSinglePass === !1 ? (L.side = on, L.needsUpdate = !0, Oo(L, j, ae), L.side = jn, L.needsUpdate = !0, Oo(L, j, ae), L.side = Mn) : Oo(L, j, ae);
|
|
@@ -22656,9 +22656,9 @@ class pg {
|
|
|
22656
22656
|
K.get("KHR_parallel_shader_compile") !== null ? Ce() : setTimeout(Ce, 10);
|
|
22657
22657
|
});
|
|
22658
22658
|
};
|
|
22659
|
-
let
|
|
22659
|
+
let Ll = null;
|
|
22660
22660
|
function t0(L) {
|
|
22661
|
-
|
|
22661
|
+
Ll && Ll(L);
|
|
22662
22662
|
}
|
|
22663
22663
|
function yf() {
|
|
22664
22664
|
Oi.stop();
|
|
@@ -22668,7 +22668,7 @@ class pg {
|
|
|
22668
22668
|
}
|
|
22669
22669
|
const Oi = new cg();
|
|
22670
22670
|
Oi.setAnimationLoop(t0), typeof self < "u" && Oi.setContext(self), this.setAnimationLoop = function(L) {
|
|
22671
|
-
|
|
22671
|
+
Ll = L, Ee.setAnimationLoop(L), L === null ? Oi.stop() : Oi.start();
|
|
22672
22672
|
}, Ee.addEventListener("sessionstart", yf), Ee.addEventListener("sessionend", xf), this.render = function(L, j) {
|
|
22673
22673
|
if (j !== void 0 && j.isCamera !== !0) {
|
|
22674
22674
|
Ge("WebGLRenderer.render: camera is not an instance of THREE.Camera.");
|
|
@@ -22679,9 +22679,9 @@ class pg {
|
|
|
22679
22679
|
const ae = Ee.enabled === !0 && Ee.isPresenting === !0, se = D !== null && (O === null || ae) && D.begin(b, O);
|
|
22680
22680
|
if (L.matrixWorldAutoUpdate === !0 && L.updateMatrixWorld(), j.parent === null && j.matrixWorldAutoUpdate === !0 && j.updateMatrixWorld(), Ee.enabled === !0 && Ee.isPresenting === !0 && (D === null || D.isCompositing() === !1) && (Ee.cameraAutoUpdate === !0 && Ee.updateCamera(j), j = Ee.getCamera()), L.isScene === !0 && L.onBeforeRender(b, L, j, O), A = Se.get(L, I.length), A.init(j), I.push(A), Ke.multiplyMatrices(j.projectionMatrix, j.matrixWorldInverse), ye.setFromProjectionMatrix(Ke, vn, j.reversedDepth), ze = this.localClippingEnabled, xe = Be.init(this.clippingPlanes, ze), x = fe.get(L, E.length), x.init(), E.push(x), Ee.enabled === !0 && Ee.isPresenting === !0) {
|
|
22681
22681
|
const Oe = b.xr.getDepthSensingMesh();
|
|
22682
|
-
Oe !== null &&
|
|
22682
|
+
Oe !== null && Nl(Oe, j, -1 / 0, b.sortObjects);
|
|
22683
22683
|
}
|
|
22684
|
-
|
|
22684
|
+
Nl(L, j, 0, b.sortObjects), x.finish(), b.sortObjects === !0 && x.sort(_e, de), k = Ee.enabled === !1 || Ee.isPresenting === !1 || Ee.hasDepthSensing() === !1, k && Me.addToRenderList(x, L), this.info.render.frame++, xe === !0 && Be.beginShadows();
|
|
22685
22685
|
const ne = A.state.shadowsArray;
|
|
22686
22686
|
if (Ue.render(ne, L, j), xe === !0 && Be.endShadows(), this.info.autoReset === !0 && this.info.reset(), (se && D.hasRenderPass()) === !1) {
|
|
22687
22687
|
const Oe = x.opaque, Ne = x.transmissive;
|
|
@@ -22702,7 +22702,7 @@ class pg {
|
|
|
22702
22702
|
}
|
|
22703
22703
|
O !== null && R === 0 && (F.updateMultisampleRenderTarget(O), F.updateRenderTargetMipmap(O)), se && D.end(b), L.isScene === !0 && L.onAfterRender(b, L, j), De.resetDefaultState(), M = -1, z = null, I.pop(), I.length > 0 ? (A = I[I.length - 1], xe === !0 && Be.setGlobalState(b.clippingPlanes, A.state.camera)) : A = null, E.pop(), E.length > 0 ? x = E[E.length - 1] : x = null;
|
|
22704
22704
|
};
|
|
22705
|
-
function
|
|
22705
|
+
function Nl(L, j, ae, se) {
|
|
22706
22706
|
if (L.visible === !1)
|
|
22707
22707
|
return;
|
|
22708
22708
|
if (L.layers.test(j.layers)) {
|
|
@@ -22732,7 +22732,7 @@ class pg {
|
|
|
22732
22732
|
}
|
|
22733
22733
|
const Ce = L.children;
|
|
22734
22734
|
for (let Oe = 0, Ne = Ce.length; Oe < Ne; Oe++)
|
|
22735
|
-
|
|
22735
|
+
Nl(Ce[Oe], j, ae, se);
|
|
22736
22736
|
}
|
|
22737
22737
|
function Af(L, j, ae, se) {
|
|
22738
22738
|
const { opaque: ne, transmissive: Ce, transparent: Oe } = L;
|
|
@@ -22759,12 +22759,12 @@ class pg {
|
|
|
22759
22759
|
const Ne = b.getRenderTarget(), Ve = b.getActiveCubeFace(), We = b.getActiveMipmapLevel();
|
|
22760
22760
|
b.setRenderTarget(Ce), b.getClearColor(J), le = b.getClearAlpha(), le < 1 && b.setClearColor(16777215, 0.5), b.clear(), k && Me.render(ae);
|
|
22761
22761
|
const je = b.toneMapping;
|
|
22762
|
-
b.toneMapping =
|
|
22762
|
+
b.toneMapping = Tn;
|
|
22763
22763
|
const Ze = se.viewport;
|
|
22764
22764
|
if (se.viewport !== void 0 && (se.viewport = void 0), A.setupLightsView(se), xe === !0 && Be.setGlobalState(b.clippingPlanes, se), Bo(L, ae, se), F.updateMultisampleRenderTarget(Ce), F.updateRenderTargetMipmap(Ce), K.has("WEBGL_multisampled_render_to_texture") === !1) {
|
|
22765
22765
|
let rt = !1;
|
|
22766
|
-
for (let pt = 0,
|
|
22767
|
-
const
|
|
22766
|
+
for (let pt = 0, Ct = j.length; pt < Ct; pt++) {
|
|
22767
|
+
const It = j[pt], { object: gt, geometry: Ye, material: dt, group: ht } = It;
|
|
22768
22768
|
if (dt.side === Mn && gt.layers.test(se.layers)) {
|
|
22769
22769
|
const pn = dt.side;
|
|
22770
22770
|
dt.side = on, dt.needsUpdate = !0, wf(gt, ae, se, Ye, dt, ht), dt.side = pn, dt.needsUpdate = !0, rt = !0;
|
|
@@ -22813,15 +22813,15 @@ class pg {
|
|
|
22813
22813
|
function n0(L, j, ae, se, ne) {
|
|
22814
22814
|
j.isScene !== !0 && (j = q), F.resetTextureUnits();
|
|
22815
22815
|
const Ce = j.fog, Oe = se.isMeshStandardMaterial ? j.environment : null, Ne = O === null ? b.outputColorSpace : O.isXRRenderTarget === !0 ? O.texture.colorSpace : qt, Ve = (se.isMeshStandardMaterial ? ce : Q).get(se.envMap || Oe), We = se.vertexColors === !0 && !!ae.attributes.color && ae.attributes.color.itemSize === 4, je = !!ae.attributes.tangent && (!!se.normalMap || se.anisotropy > 0), Ze = !!ae.morphAttributes.position, rt = !!ae.morphAttributes.normal, pt = !!ae.morphAttributes.color;
|
|
22816
|
-
let
|
|
22817
|
-
se.toneMapped && (O === null || O.isXRRenderTarget === !0) && (
|
|
22818
|
-
const
|
|
22816
|
+
let Ct = Tn;
|
|
22817
|
+
se.toneMapped && (O === null || O.isXRRenderTarget === !0) && (Ct = b.toneMapping);
|
|
22818
|
+
const It = ae.morphAttributes.position || ae.morphAttributes.normal || ae.morphAttributes.color, gt = It !== void 0 ? It.length : 0, Ye = T.get(se), dt = A.state.lights;
|
|
22819
22819
|
if (xe === !0 && (ze === !0 || L !== z)) {
|
|
22820
22820
|
const Jt = L === z && se.id === M;
|
|
22821
22821
|
Be.setState(se, L, Jt);
|
|
22822
22822
|
}
|
|
22823
22823
|
let ht = !1;
|
|
22824
|
-
se.version === Ye.__version ? (Ye.needsLights && Ye.lightsStateVersion !== dt.state.version || Ye.outputColorSpace !== Ne || ne.isBatchedMesh && Ye.batching === !1 || !ne.isBatchedMesh && Ye.batching === !0 || ne.isBatchedMesh && Ye.batchingColor === !0 && ne.colorTexture === null || ne.isBatchedMesh && Ye.batchingColor === !1 && ne.colorTexture !== null || ne.isInstancedMesh && Ye.instancing === !1 || !ne.isInstancedMesh && Ye.instancing === !0 || ne.isSkinnedMesh && Ye.skinning === !1 || !ne.isSkinnedMesh && Ye.skinning === !0 || ne.isInstancedMesh && Ye.instancingColor === !0 && ne.instanceColor === null || ne.isInstancedMesh && Ye.instancingColor === !1 && ne.instanceColor !== null || ne.isInstancedMesh && Ye.instancingMorph === !0 && ne.morphTexture === null || ne.isInstancedMesh && Ye.instancingMorph === !1 && ne.morphTexture !== null || Ye.envMap !== Ve || se.fog === !0 && Ye.fog !== Ce || Ye.numClippingPlanes !== void 0 && (Ye.numClippingPlanes !== Be.numPlanes || Ye.numIntersection !== Be.numIntersection) || Ye.vertexAlphas !== We || Ye.vertexTangents !== je || Ye.morphTargets !== Ze || Ye.morphNormals !== rt || Ye.morphColors !== pt || Ye.toneMapping !==
|
|
22824
|
+
se.version === Ye.__version ? (Ye.needsLights && Ye.lightsStateVersion !== dt.state.version || Ye.outputColorSpace !== Ne || ne.isBatchedMesh && Ye.batching === !1 || !ne.isBatchedMesh && Ye.batching === !0 || ne.isBatchedMesh && Ye.batchingColor === !0 && ne.colorTexture === null || ne.isBatchedMesh && Ye.batchingColor === !1 && ne.colorTexture !== null || ne.isInstancedMesh && Ye.instancing === !1 || !ne.isInstancedMesh && Ye.instancing === !0 || ne.isSkinnedMesh && Ye.skinning === !1 || !ne.isSkinnedMesh && Ye.skinning === !0 || ne.isInstancedMesh && Ye.instancingColor === !0 && ne.instanceColor === null || ne.isInstancedMesh && Ye.instancingColor === !1 && ne.instanceColor !== null || ne.isInstancedMesh && Ye.instancingMorph === !0 && ne.morphTexture === null || ne.isInstancedMesh && Ye.instancingMorph === !1 && ne.morphTexture !== null || Ye.envMap !== Ve || se.fog === !0 && Ye.fog !== Ce || Ye.numClippingPlanes !== void 0 && (Ye.numClippingPlanes !== Be.numPlanes || Ye.numIntersection !== Be.numIntersection) || Ye.vertexAlphas !== We || Ye.vertexTangents !== je || Ye.morphTargets !== Ze || Ye.morphNormals !== rt || Ye.morphColors !== pt || Ye.toneMapping !== Ct || Ye.morphTargetsCount !== gt) && (ht = !0) : (ht = !0, Ye.__version = se.version);
|
|
22825
22825
|
let pn = Ye.currentProgram;
|
|
22826
22826
|
ht === !0 && (pn = Oo(se, j, ne));
|
|
22827
22827
|
let Ir = !1, mn = !1, Rs = !1;
|
|
@@ -22844,7 +22844,7 @@ class pg {
|
|
|
22844
22844
|
const bn = ae.morphAttributes;
|
|
22845
22845
|
if ((bn.position !== void 0 || bn.normal !== void 0 || bn.color !== void 0) && nt.update(ne, ae, pn), (mn || Ye.receiveShadow !== ne.receiveShadow) && (Ye.receiveShadow = ne.receiveShadow, yt.setValue(S, "receiveShadow", ne.receiveShadow)), se.isMeshGouraudMaterial && se.envMap !== null && (an.envMap.value = Ve, an.flipEnvMap.value = Ve.isCubeTexture && Ve.isRenderTargetTexture === !1 ? -1 : 1), se.isMeshStandardMaterial && se.envMap === null && j.environment !== null && (an.envMapIntensity.value = j.environmentIntensity), an.dfgLUT !== void 0 && (an.dfgLUT.value = Ww()), mn && (yt.setValue(S, "toneMappingExposure", b.toneMappingExposure), Ye.needsLights && i0(an, Rs), Ce && se.fog === !0 && Xe.refreshFogUniforms(an, Ce), Xe.refreshMaterialUniforms(an, se, ge, Z, A.state.transmissionRenderTarget[L.id]), Oa.upload(S, Sf(Ye), an, F)), se.isShaderMaterial && se.uniformsNeedUpdate === !0 && (Oa.upload(S, Sf(Ye), an, F), se.uniformsNeedUpdate = !1), se.isSpriteMaterial && yt.setValue(S, "center", ne.center), yt.setValue(S, "modelViewMatrix", ne.modelViewMatrix), yt.setValue(S, "normalMatrix", ne.normalMatrix), yt.setValue(S, "modelMatrix", ne.matrixWorld), se.isShaderMaterial || se.isRawShaderMaterial) {
|
|
22846
22846
|
const Jt = se.uniformsGroups;
|
|
22847
|
-
for (let cn = 0,
|
|
22847
|
+
for (let cn = 0, Ul = Jt.length; cn < Ul; cn++) {
|
|
22848
22848
|
const Fi = Jt[cn];
|
|
22849
22849
|
ve.update(Fi, pn), ve.bind(Fi, pn);
|
|
22850
22850
|
}
|
|
@@ -22951,8 +22951,8 @@ class pg {
|
|
|
22951
22951
|
S.bindBuffer(S.PIXEL_PACK_BUFFER, rt), S.bufferData(S.PIXEL_PACK_BUFFER, Ce.byteLength, S.STREAM_READ), L.textures.length > 1 && S.readBuffer(S.COLOR_ATTACHMENT0 + Ne), S.readPixels(j, ae, se, ne, be.convert(je), be.convert(Ze), 0);
|
|
22952
22952
|
const pt = O !== null ? T.get(O).__webglFramebuffer : null;
|
|
22953
22953
|
V.bindFramebuffer(S.FRAMEBUFFER, pt);
|
|
22954
|
-
const
|
|
22955
|
-
return S.flush(), await e_(S,
|
|
22954
|
+
const Ct = S.fenceSync(S.SYNC_GPU_COMMANDS_COMPLETE, 0);
|
|
22955
|
+
return S.flush(), await e_(S, Ct, 4), S.bindBuffer(S.PIXEL_PACK_BUFFER, rt), S.getBufferSubData(S.PIXEL_PACK_BUFFER, 0, Ce), S.deleteBuffer(rt), S.deleteSync(Ct), Ce;
|
|
22956
22956
|
} else
|
|
22957
22957
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
|
|
22958
22958
|
}, this.copyFramebufferToTexture = function(L, j = null, ae = 0) {
|
|
@@ -22962,35 +22962,35 @@ class pg {
|
|
|
22962
22962
|
const o0 = S.createFramebuffer(), a0 = S.createFramebuffer();
|
|
22963
22963
|
this.copyTextureToTexture = function(L, j, ae = null, se = null, ne = 0, Ce = null) {
|
|
22964
22964
|
Ce === null && (ne !== 0 ? (fs("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), Ce = ne, ne = 0) : Ce = 0);
|
|
22965
|
-
let Oe, Ne, Ve, We, je, Ze, rt, pt,
|
|
22966
|
-
const
|
|
22965
|
+
let Oe, Ne, Ve, We, je, Ze, rt, pt, Ct;
|
|
22966
|
+
const It = L.isCompressedTexture ? L.mipmaps[Ce] : L.image;
|
|
22967
22967
|
if (ae !== null)
|
|
22968
22968
|
Oe = ae.max.x - ae.min.x, Ne = ae.max.y - ae.min.y, Ve = ae.isBox3 ? ae.max.z - ae.min.z : 1, We = ae.min.x, je = ae.min.y, Ze = ae.isBox3 ? ae.min.z : 0;
|
|
22969
22969
|
else {
|
|
22970
22970
|
const bn = Math.pow(2, -ne);
|
|
22971
|
-
Oe = Math.floor(
|
|
22971
|
+
Oe = Math.floor(It.width * bn), Ne = Math.floor(It.height * bn), L.isDataArrayTexture ? Ve = It.depth : L.isData3DTexture ? Ve = Math.floor(It.depth * bn) : Ve = 1, We = 0, je = 0, Ze = 0;
|
|
22972
22972
|
}
|
|
22973
|
-
se !== null ? (rt = se.x, pt = se.y,
|
|
22973
|
+
se !== null ? (rt = se.x, pt = se.y, Ct = se.z) : (rt = 0, pt = 0, Ct = 0);
|
|
22974
22974
|
const gt = be.convert(j.format), Ye = be.convert(j.type);
|
|
22975
22975
|
let dt;
|
|
22976
22976
|
j.isData3DTexture ? (F.setTexture3D(j, 0), dt = S.TEXTURE_3D) : j.isDataArrayTexture || j.isCompressedArrayTexture ? (F.setTexture2DArray(j, 0), dt = S.TEXTURE_2D_ARRAY) : (F.setTexture2D(j, 0), dt = S.TEXTURE_2D), S.pixelStorei(S.UNPACK_FLIP_Y_WEBGL, j.flipY), S.pixelStorei(S.UNPACK_PREMULTIPLY_ALPHA_WEBGL, j.premultiplyAlpha), S.pixelStorei(S.UNPACK_ALIGNMENT, j.unpackAlignment);
|
|
22977
22977
|
const ht = S.getParameter(S.UNPACK_ROW_LENGTH), pn = S.getParameter(S.UNPACK_IMAGE_HEIGHT), Ir = S.getParameter(S.UNPACK_SKIP_PIXELS), mn = S.getParameter(S.UNPACK_SKIP_ROWS), Rs = S.getParameter(S.UNPACK_SKIP_IMAGES);
|
|
22978
|
-
S.pixelStorei(S.UNPACK_ROW_LENGTH,
|
|
22978
|
+
S.pixelStorei(S.UNPACK_ROW_LENGTH, It.width), S.pixelStorei(S.UNPACK_IMAGE_HEIGHT, It.height), S.pixelStorei(S.UNPACK_SKIP_PIXELS, We), S.pixelStorei(S.UNPACK_SKIP_ROWS, je), S.pixelStorei(S.UNPACK_SKIP_IMAGES, Ze);
|
|
22979
22979
|
const yt = L.isDataArrayTexture || L.isData3DTexture, an = j.isDataArrayTexture || j.isData3DTexture;
|
|
22980
22980
|
if (L.isDepthTexture) {
|
|
22981
|
-
const bn = T.get(L), Jt = T.get(j), cn = T.get(bn.__renderTarget),
|
|
22982
|
-
V.bindFramebuffer(S.READ_FRAMEBUFFER, cn.__webglFramebuffer), V.bindFramebuffer(S.DRAW_FRAMEBUFFER,
|
|
22981
|
+
const bn = T.get(L), Jt = T.get(j), cn = T.get(bn.__renderTarget), Ul = T.get(Jt.__renderTarget);
|
|
22982
|
+
V.bindFramebuffer(S.READ_FRAMEBUFFER, cn.__webglFramebuffer), V.bindFramebuffer(S.DRAW_FRAMEBUFFER, Ul.__webglFramebuffer);
|
|
22983
22983
|
for (let Fi = 0; Fi < Ve; Fi++)
|
|
22984
|
-
yt && (S.framebufferTextureLayer(S.READ_FRAMEBUFFER, S.COLOR_ATTACHMENT0, T.get(L).__webglTexture, ne, Ze + Fi), S.framebufferTextureLayer(S.DRAW_FRAMEBUFFER, S.COLOR_ATTACHMENT0, T.get(j).__webglTexture, Ce,
|
|
22984
|
+
yt && (S.framebufferTextureLayer(S.READ_FRAMEBUFFER, S.COLOR_ATTACHMENT0, T.get(L).__webglTexture, ne, Ze + Fi), S.framebufferTextureLayer(S.DRAW_FRAMEBUFFER, S.COLOR_ATTACHMENT0, T.get(j).__webglTexture, Ce, Ct + Fi)), S.blitFramebuffer(We, je, Oe, Ne, rt, pt, Oe, Ne, S.DEPTH_BUFFER_BIT, S.NEAREST);
|
|
22985
22985
|
V.bindFramebuffer(S.READ_FRAMEBUFFER, null), V.bindFramebuffer(S.DRAW_FRAMEBUFFER, null);
|
|
22986
22986
|
} else if (ne !== 0 || L.isRenderTargetTexture || T.has(L)) {
|
|
22987
22987
|
const bn = T.get(L), Jt = T.get(j);
|
|
22988
22988
|
V.bindFramebuffer(S.READ_FRAMEBUFFER, o0), V.bindFramebuffer(S.DRAW_FRAMEBUFFER, a0);
|
|
22989
22989
|
for (let cn = 0; cn < Ve; cn++)
|
|
22990
|
-
yt ? S.framebufferTextureLayer(S.READ_FRAMEBUFFER, S.COLOR_ATTACHMENT0, bn.__webglTexture, ne, Ze + cn) : S.framebufferTexture2D(S.READ_FRAMEBUFFER, S.COLOR_ATTACHMENT0, S.TEXTURE_2D, bn.__webglTexture, ne), an ? S.framebufferTextureLayer(S.DRAW_FRAMEBUFFER, S.COLOR_ATTACHMENT0, Jt.__webglTexture, Ce,
|
|
22990
|
+
yt ? S.framebufferTextureLayer(S.READ_FRAMEBUFFER, S.COLOR_ATTACHMENT0, bn.__webglTexture, ne, Ze + cn) : S.framebufferTexture2D(S.READ_FRAMEBUFFER, S.COLOR_ATTACHMENT0, S.TEXTURE_2D, bn.__webglTexture, ne), an ? S.framebufferTextureLayer(S.DRAW_FRAMEBUFFER, S.COLOR_ATTACHMENT0, Jt.__webglTexture, Ce, Ct + cn) : S.framebufferTexture2D(S.DRAW_FRAMEBUFFER, S.COLOR_ATTACHMENT0, S.TEXTURE_2D, Jt.__webglTexture, Ce), ne !== 0 ? S.blitFramebuffer(We, je, Oe, Ne, rt, pt, Oe, Ne, S.COLOR_BUFFER_BIT, S.NEAREST) : an ? S.copyTexSubImage3D(dt, Ce, rt, pt, Ct + cn, We, je, Oe, Ne) : S.copyTexSubImage2D(dt, Ce, rt, pt, We, je, Oe, Ne);
|
|
22991
22991
|
V.bindFramebuffer(S.READ_FRAMEBUFFER, null), V.bindFramebuffer(S.DRAW_FRAMEBUFFER, null);
|
|
22992
22992
|
} else
|
|
22993
|
-
an ? L.isDataTexture || L.isData3DTexture ? S.texSubImage3D(dt, Ce, rt, pt,
|
|
22993
|
+
an ? L.isDataTexture || L.isData3DTexture ? S.texSubImage3D(dt, Ce, rt, pt, Ct, Oe, Ne, Ve, gt, Ye, It.data) : j.isCompressedArrayTexture ? S.compressedTexSubImage3D(dt, Ce, rt, pt, Ct, Oe, Ne, Ve, gt, It.data) : S.texSubImage3D(dt, Ce, rt, pt, Ct, Oe, Ne, Ve, gt, Ye, It) : L.isDataTexture ? S.texSubImage2D(S.TEXTURE_2D, Ce, rt, pt, Oe, Ne, gt, Ye, It.data) : L.isCompressedTexture ? S.compressedTexSubImage2D(S.TEXTURE_2D, Ce, rt, pt, It.width, It.height, gt, It.data) : S.texSubImage2D(S.TEXTURE_2D, Ce, rt, pt, Oe, Ne, gt, Ye, It);
|
|
22994
22994
|
S.pixelStorei(S.UNPACK_ROW_LENGTH, ht), S.pixelStorei(S.UNPACK_IMAGE_HEIGHT, pn), S.pixelStorei(S.UNPACK_SKIP_PIXELS, Ir), S.pixelStorei(S.UNPACK_SKIP_ROWS, mn), S.pixelStorei(S.UNPACK_SKIP_IMAGES, Rs), Ce === 0 && j.generateMipmaps && S.generateMipmap(dt), V.unbindTexture();
|
|
22995
22995
|
}, this.initRenderTarget = function(L) {
|
|
22996
22996
|
T.get(L).__webglFramebuffer === void 0 && F.setupRenderTarget(L);
|
|
@@ -23014,10 +23014,10 @@ class pg {
|
|
|
23014
23014
|
}
|
|
23015
23015
|
const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23016
23016
|
__proto__: null,
|
|
23017
|
-
ACESFilmicToneMapping:
|
|
23017
|
+
ACESFilmicToneMapping: mu,
|
|
23018
23018
|
AddEquation: Mi,
|
|
23019
23019
|
AddOperation: nm,
|
|
23020
|
-
AdditiveBlending:
|
|
23020
|
+
AdditiveBlending: Nh,
|
|
23021
23021
|
AgXToneMapping: _u,
|
|
23022
23022
|
AlphaFormat: wu,
|
|
23023
23023
|
AlwaysCompare: mm,
|
|
@@ -23028,7 +23028,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23028
23028
|
BufferAttribute: at,
|
|
23029
23029
|
BufferGeometry: Je,
|
|
23030
23030
|
ByteType: yu,
|
|
23031
|
-
CineonToneMapping:
|
|
23031
|
+
CineonToneMapping: pu,
|
|
23032
23032
|
ClampToEdgeWrapping: nn,
|
|
23033
23033
|
Color: Ae,
|
|
23034
23034
|
ColorManagement: st,
|
|
@@ -23039,13 +23039,13 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23039
23039
|
CubeRefractionMapping: Ri,
|
|
23040
23040
|
CubeTexture: bo,
|
|
23041
23041
|
CubeUVReflectionMapping: xs,
|
|
23042
|
-
CullFaceBack:
|
|
23042
|
+
CullFaceBack: Lh,
|
|
23043
23043
|
CullFaceFront: Up,
|
|
23044
23044
|
CullFaceNone: Np,
|
|
23045
23045
|
CustomBlending: Op,
|
|
23046
23046
|
CustomToneMapping: gu,
|
|
23047
|
-
Data3DTexture:
|
|
23048
|
-
DataArrayTexture:
|
|
23047
|
+
Data3DTexture: Kc,
|
|
23048
|
+
DataArrayTexture: Qc,
|
|
23049
23049
|
DataTexture: zn,
|
|
23050
23050
|
DepthFormat: ei,
|
|
23051
23051
|
DepthStencilFormat: Ei,
|
|
@@ -23064,23 +23064,23 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23064
23064
|
FloatType: rn,
|
|
23065
23065
|
FrontSide: jn,
|
|
23066
23066
|
Frustum: ws,
|
|
23067
|
-
GLSL3:
|
|
23067
|
+
GLSL3: zh,
|
|
23068
23068
|
GreaterCompare: dm,
|
|
23069
23069
|
GreaterDepth: Qa,
|
|
23070
|
-
GreaterEqualCompare:
|
|
23070
|
+
GreaterEqualCompare: Yc,
|
|
23071
23071
|
GreaterEqualDepth: Ya,
|
|
23072
23072
|
HalfFloatType: $n,
|
|
23073
|
-
IntType:
|
|
23074
|
-
Layers:
|
|
23073
|
+
IntType: kc,
|
|
23074
|
+
Layers: jc,
|
|
23075
23075
|
LessCompare: um,
|
|
23076
23076
|
LessDepth: Xa,
|
|
23077
|
-
LessEqualCompare:
|
|
23077
|
+
LessEqualCompare: Zc,
|
|
23078
23078
|
LessEqualDepth: mr,
|
|
23079
23079
|
LinearFilter: mt,
|
|
23080
23080
|
LinearMipmapLinearFilter: En,
|
|
23081
23081
|
LinearMipmapNearestFilter: ts,
|
|
23082
23082
|
LinearSRGBColorSpace: qt,
|
|
23083
|
-
LinearToneMapping:
|
|
23083
|
+
LinearToneMapping: fu,
|
|
23084
23084
|
LinearTransfer: ho,
|
|
23085
23085
|
Matrix3: et,
|
|
23086
23086
|
Matrix4: qe,
|
|
@@ -23092,17 +23092,17 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23092
23092
|
MinEquation: kp,
|
|
23093
23093
|
MirroredRepeatWrapping: ss,
|
|
23094
23094
|
MixOperation: tm,
|
|
23095
|
-
MultiplyBlending:
|
|
23095
|
+
MultiplyBlending: Bh,
|
|
23096
23096
|
MultiplyOperation: xo,
|
|
23097
|
-
NearestFilter:
|
|
23097
|
+
NearestFilter: Tt,
|
|
23098
23098
|
NearestMipmapLinearFilter: sr,
|
|
23099
|
-
NearestMipmapNearestFilter:
|
|
23099
|
+
NearestMipmapNearestFilter: zc,
|
|
23100
23100
|
NeutralToneMapping: vu,
|
|
23101
23101
|
NeverCompare: hm,
|
|
23102
23102
|
NeverDepth: Wa,
|
|
23103
23103
|
NoBlending: Kn,
|
|
23104
23104
|
NoColorSpace: li,
|
|
23105
|
-
NoToneMapping:
|
|
23105
|
+
NoToneMapping: Tn,
|
|
23106
23106
|
NormalBlending: hr,
|
|
23107
23107
|
NotEqualCompare: pm,
|
|
23108
23108
|
NotEqualDepth: Ka,
|
|
@@ -23117,7 +23117,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23117
23117
|
OrthographicCamera: Tr,
|
|
23118
23118
|
PCFShadowMap: js,
|
|
23119
23119
|
PCFSoftShadowMap: Bp,
|
|
23120
|
-
PMREMGenerator:
|
|
23120
|
+
PMREMGenerator: Xh,
|
|
23121
23121
|
PerspectiveCamera: Ft,
|
|
23122
23122
|
Plane: wi,
|
|
23123
23123
|
PlaneGeometry: Sr,
|
|
@@ -23127,7 +23127,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23127
23127
|
REVISION: Oc,
|
|
23128
23128
|
RG11_EAC_Format: oc,
|
|
23129
23129
|
RGBAFormat: sn,
|
|
23130
|
-
RGBAIntegerFormat:
|
|
23130
|
+
RGBAIntegerFormat: qc,
|
|
23131
23131
|
RGBA_ASTC_10x10_Format: yc,
|
|
23132
23132
|
RGBA_ASTC_10x5_Format: gc,
|
|
23133
23133
|
RGBA_ASTC_10x6_Format: _c,
|
|
@@ -23158,28 +23158,28 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23158
23158
|
RGB_PVRTC_4BPPV1_Format: ja,
|
|
23159
23159
|
RGB_S3TC_DXT1_Format: Js,
|
|
23160
23160
|
RGFormat: gr,
|
|
23161
|
-
RGIntegerFormat:
|
|
23161
|
+
RGIntegerFormat: Wc,
|
|
23162
23162
|
RawShaderMaterial: qu,
|
|
23163
|
-
RedFormat:
|
|
23163
|
+
RedFormat: Gc,
|
|
23164
23164
|
RedIntegerFormat: Ao,
|
|
23165
|
-
ReinhardToneMapping:
|
|
23165
|
+
ReinhardToneMapping: du,
|
|
23166
23166
|
RepeatWrapping: Pi,
|
|
23167
23167
|
ReverseSubtractEquation: zp,
|
|
23168
23168
|
SIGNED_R11_EAC_Format: sc,
|
|
23169
23169
|
SIGNED_RED_GREEN_RGTC2_Format: Cc,
|
|
23170
23170
|
SIGNED_RED_RGTC1_Format: Ec,
|
|
23171
23171
|
SIGNED_RG11_EAC_Format: ac,
|
|
23172
|
-
SRGBColorSpace:
|
|
23172
|
+
SRGBColorSpace: Mt,
|
|
23173
23173
|
SRGBTransfer: ut,
|
|
23174
23174
|
ShaderChunk: it,
|
|
23175
|
-
ShaderLib:
|
|
23176
|
-
ShaderMaterial:
|
|
23175
|
+
ShaderLib: On,
|
|
23176
|
+
ShaderMaterial: In,
|
|
23177
23177
|
ShortType: xu,
|
|
23178
23178
|
SrcAlphaFactor: Ha,
|
|
23179
23179
|
SrcAlphaSaturateFactor: Kp,
|
|
23180
23180
|
SrcColorFactor: Wp,
|
|
23181
23181
|
SubtractEquation: Fp,
|
|
23182
|
-
SubtractiveBlending:
|
|
23182
|
+
SubtractiveBlending: Uh,
|
|
23183
23183
|
TangentSpaceNormalMap: Ni,
|
|
23184
23184
|
Texture: At,
|
|
23185
23185
|
Uint16BufferAttribute: Iu,
|
|
@@ -23190,9 +23190,9 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23190
23190
|
UnsignedInt101111Type: bu,
|
|
23191
23191
|
UnsignedInt248Type: as,
|
|
23192
23192
|
UnsignedInt5999Type: Au,
|
|
23193
|
-
UnsignedIntType:
|
|
23194
|
-
UnsignedShort4444Type:
|
|
23195
|
-
UnsignedShort5551Type:
|
|
23193
|
+
UnsignedIntType: Cn,
|
|
23194
|
+
UnsignedShort4444Type: Vc,
|
|
23195
|
+
UnsignedShort5551Type: Hc,
|
|
23196
23196
|
UnsignedShortType: os,
|
|
23197
23197
|
VSMShadowMap: $r,
|
|
23198
23198
|
Vector2: he,
|
|
@@ -23211,7 +23211,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23211
23211
|
warn: Te,
|
|
23212
23212
|
warnOnce: fs,
|
|
23213
23213
|
AdditiveAnimationBlendMode: Mu,
|
|
23214
|
-
AlwaysStencilFunc:
|
|
23214
|
+
AlwaysStencilFunc: Fh,
|
|
23215
23215
|
AmbientLight: rf,
|
|
23216
23216
|
AnimationAction: og,
|
|
23217
23217
|
AnimationClip: _s,
|
|
@@ -23221,7 +23221,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23221
23221
|
AnimationUtils: zv,
|
|
23222
23222
|
ArcCurve: Pm,
|
|
23223
23223
|
ArrowHelper: Gy,
|
|
23224
|
-
AttachedBindMode:
|
|
23224
|
+
AttachedBindMode: Oh,
|
|
23225
23225
|
Audio: rg,
|
|
23226
23226
|
AudioAnalyser: ry,
|
|
23227
23227
|
AudioContext: of,
|
|
@@ -23231,7 +23231,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23231
23231
|
BasicDepthPacking: cm,
|
|
23232
23232
|
BasicShadowMap: d0,
|
|
23233
23233
|
BatchedMesh: Tm,
|
|
23234
|
-
Bone:
|
|
23234
|
+
Bone: tl,
|
|
23235
23235
|
BooleanKeyframeTrack: Mr,
|
|
23236
23236
|
Box2: Ty,
|
|
23237
23237
|
Box3: Gt,
|
|
@@ -23239,17 +23239,17 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23239
23239
|
BoxHelper: ky,
|
|
23240
23240
|
BufferGeometryLoader: tg,
|
|
23241
23241
|
Cache: Qn,
|
|
23242
|
-
Camera:
|
|
23242
|
+
Camera: Jc,
|
|
23243
23243
|
CameraHelper: zy,
|
|
23244
23244
|
CanvasTexture: cv,
|
|
23245
|
-
CapsuleGeometry:
|
|
23245
|
+
CapsuleGeometry: ol,
|
|
23246
23246
|
CatmullRomCurve3: Dm,
|
|
23247
|
-
CircleGeometry:
|
|
23248
|
-
Clock:
|
|
23247
|
+
CircleGeometry: al,
|
|
23248
|
+
Clock: Al,
|
|
23249
23249
|
ColorKeyframeTrack: Ku,
|
|
23250
23250
|
CompressedArrayTexture: ov,
|
|
23251
23251
|
CompressedCubeTexture: av,
|
|
23252
|
-
CompressedTexture:
|
|
23252
|
+
CompressedTexture: sl,
|
|
23253
23253
|
CompressedTextureLoader: Wv,
|
|
23254
23254
|
ConeGeometry: Mo,
|
|
23255
23255
|
Controls: Xy,
|
|
@@ -23269,23 +23269,23 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23269
23269
|
DecrementWrapStencilOp: R0,
|
|
23270
23270
|
DefaultLoadingManager: jm,
|
|
23271
23271
|
DetachedBindMode: im,
|
|
23272
|
-
DirectionalLight:
|
|
23272
|
+
DirectionalLight: yl,
|
|
23273
23273
|
DirectionalLightHelper: Fy,
|
|
23274
23274
|
DiscreteInterpolant: Qm,
|
|
23275
|
-
DodecahedronGeometry:
|
|
23275
|
+
DodecahedronGeometry: cl,
|
|
23276
23276
|
DynamicCopyUsage: q0,
|
|
23277
23277
|
DynamicDrawUsage: z0,
|
|
23278
23278
|
DynamicReadUsage: H0,
|
|
23279
23279
|
EdgesGeometry: Rm,
|
|
23280
|
-
EllipseCurve:
|
|
23280
|
+
EllipseCurve: ll,
|
|
23281
23281
|
EqualStencilFunc: N0,
|
|
23282
|
-
ExtrudeGeometry:
|
|
23282
|
+
ExtrudeGeometry: hl,
|
|
23283
23283
|
FileLoader: An,
|
|
23284
23284
|
Float16BufferAttribute: F_,
|
|
23285
|
-
Fog:
|
|
23286
|
-
FogExp2:
|
|
23285
|
+
Fog: el,
|
|
23286
|
+
FogExp2: $c,
|
|
23287
23287
|
FramebufferTexture: sv,
|
|
23288
|
-
FrustumArray:
|
|
23288
|
+
FrustumArray: il,
|
|
23289
23289
|
GLBufferAttribute: Ay,
|
|
23290
23290
|
GLSL1: Z0,
|
|
23291
23291
|
GreaterEqualStencilFunc: F0,
|
|
@@ -23294,7 +23294,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23294
23294
|
Group: Yn,
|
|
23295
23295
|
HemisphereLight: $u,
|
|
23296
23296
|
HemisphereLightHelper: Uy,
|
|
23297
|
-
IcosahedronGeometry:
|
|
23297
|
+
IcosahedronGeometry: ul,
|
|
23298
23298
|
ImageBitmapLoader: ng,
|
|
23299
23299
|
ImageLoader: _o,
|
|
23300
23300
|
ImageUtils: ym,
|
|
@@ -23303,7 +23303,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23303
23303
|
InstancedBufferAttribute: _r,
|
|
23304
23304
|
InstancedBufferGeometry: eg,
|
|
23305
23305
|
InstancedInterleavedBuffer: xy,
|
|
23306
|
-
InstancedMesh:
|
|
23306
|
+
InstancedMesh: nl,
|
|
23307
23307
|
Int16BufferAttribute: B_,
|
|
23308
23308
|
Int32BufferAttribute: O_,
|
|
23309
23309
|
Int8BufferAttribute: L_,
|
|
@@ -23317,9 +23317,9 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23317
23317
|
InterpolationSamplingType: Q0,
|
|
23318
23318
|
InvertStencilOp: P0,
|
|
23319
23319
|
KeepStencilOp: tr,
|
|
23320
|
-
KeyframeTrack:
|
|
23320
|
+
KeyframeTrack: Dn,
|
|
23321
23321
|
LOD: Em,
|
|
23322
|
-
LatheGeometry:
|
|
23322
|
+
LatheGeometry: fl,
|
|
23323
23323
|
LessEqualStencilFunc: U0,
|
|
23324
23324
|
LessStencilFunc: L0,
|
|
23325
23325
|
Light: Bi,
|
|
@@ -23331,7 +23331,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23331
23331
|
LineCurve3: Nm,
|
|
23332
23332
|
LineDashedMaterial: Xm,
|
|
23333
23333
|
LineLoop: Uu,
|
|
23334
|
-
LineSegments:
|
|
23334
|
+
LineSegments: Rn,
|
|
23335
23335
|
LinearInterpolant: Qu,
|
|
23336
23336
|
LinearMipMapLinearFilter: _0,
|
|
23337
23337
|
LinearMipMapNearestFilter: g0,
|
|
@@ -23343,21 +23343,21 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23343
23343
|
LoopRepeat: sm,
|
|
23344
23344
|
MOUSE: h0,
|
|
23345
23345
|
Material: zt,
|
|
23346
|
-
MaterialLoader:
|
|
23346
|
+
MaterialLoader: xl,
|
|
23347
23347
|
MathUtils: Rc,
|
|
23348
23348
|
Matrix2: hf,
|
|
23349
23349
|
MeshLambertMaterial: Wm,
|
|
23350
23350
|
MeshMatcapMaterial: qm,
|
|
23351
23351
|
MeshNormalMaterial: Gm,
|
|
23352
23352
|
MeshPhongMaterial: Vm,
|
|
23353
|
-
MeshPhysicalMaterial:
|
|
23353
|
+
MeshPhysicalMaterial: Pn,
|
|
23354
23354
|
MeshStandardMaterial: Ms,
|
|
23355
23355
|
MeshToonMaterial: Hm,
|
|
23356
23356
|
NearestMipMapLinearFilter: m0,
|
|
23357
23357
|
NearestMipMapNearestFilter: p0,
|
|
23358
23358
|
NeverStencilFunc: D0,
|
|
23359
23359
|
NoNormalPacking: b0,
|
|
23360
|
-
NormalAnimationBlendMode:
|
|
23360
|
+
NormalAnimationBlendMode: Xc,
|
|
23361
23361
|
NormalGAPacking: S0,
|
|
23362
23362
|
NormalRGPacking: w0,
|
|
23363
23363
|
NotEqualStencilFunc: O0,
|
|
@@ -23370,7 +23370,7 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23370
23370
|
PointLight: nf,
|
|
23371
23371
|
PointLightHelper: Ly,
|
|
23372
23372
|
Points: Bu,
|
|
23373
|
-
PointsMaterial:
|
|
23373
|
+
PointsMaterial: rl,
|
|
23374
23374
|
PolarGridHelper: Oy,
|
|
23375
23375
|
PolyhedronGeometry: Ui,
|
|
23376
23376
|
PositionalAudio: iy,
|
|
@@ -23391,13 +23391,13 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23391
23391
|
RenderTarget: Cu,
|
|
23392
23392
|
RenderTarget3D: _y,
|
|
23393
23393
|
ReplaceStencilOp: E0,
|
|
23394
|
-
RingGeometry:
|
|
23394
|
+
RingGeometry: dl,
|
|
23395
23395
|
Scene: Du,
|
|
23396
23396
|
ShadowMaterial: km,
|
|
23397
23397
|
Shape: fr,
|
|
23398
|
-
ShapeGeometry:
|
|
23398
|
+
ShapeGeometry: pl,
|
|
23399
23399
|
ShapePath: qy,
|
|
23400
|
-
ShapeUtils:
|
|
23400
|
+
ShapeUtils: Fn,
|
|
23401
23401
|
Skeleton: wo,
|
|
23402
23402
|
SkeletonHelper: Dy,
|
|
23403
23403
|
SkinnedMesh: Nu,
|
|
@@ -23420,19 +23420,19 @@ const f2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23420
23420
|
StreamReadUsage: G0,
|
|
23421
23421
|
StringKeyframeTrack: Er,
|
|
23422
23422
|
TOUCH: u0,
|
|
23423
|
-
TetrahedronGeometry:
|
|
23423
|
+
TetrahedronGeometry: ml,
|
|
23424
23424
|
TextureLoader: Ju,
|
|
23425
23425
|
TextureUtils: jy,
|
|
23426
23426
|
Timer: wy,
|
|
23427
23427
|
TimestampQuery: Y0,
|
|
23428
|
-
TorusGeometry:
|
|
23429
|
-
TorusKnotGeometry:
|
|
23428
|
+
TorusGeometry: gl,
|
|
23429
|
+
TorusKnotGeometry: _l,
|
|
23430
23430
|
Triangle: fn,
|
|
23431
23431
|
TriangleFanDrawMode: Ic,
|
|
23432
23432
|
TriangleStripDrawMode: Eu,
|
|
23433
23433
|
TrianglesDrawMode: am,
|
|
23434
|
-
TubeGeometry:
|
|
23435
|
-
UVMapping:
|
|
23434
|
+
TubeGeometry: vl,
|
|
23435
|
+
UVMapping: Fc,
|
|
23436
23436
|
Uint8BufferAttribute: N_,
|
|
23437
23437
|
Uint8ClampedBufferAttribute: U_,
|
|
23438
23438
|
Uniform: lf,
|
|
@@ -23605,8 +23605,9 @@ const tp = {
|
|
|
23605
23605
|
],
|
|
23606
23606
|
rendering: {
|
|
23607
23607
|
onDemand: !0,
|
|
23608
|
-
toneMapping:
|
|
23609
|
-
toneMappingExposure: 1
|
|
23608
|
+
toneMapping: Tn,
|
|
23609
|
+
toneMappingExposure: 1,
|
|
23610
|
+
outputColorSpace: Mt
|
|
23610
23611
|
}
|
|
23611
23612
|
};
|
|
23612
23613
|
function oS(r) {
|
|
@@ -23621,7 +23622,7 @@ function $i(r) {
|
|
|
23621
23622
|
}
|
|
23622
23623
|
return new Ae(1, 1, 1);
|
|
23623
23624
|
}
|
|
23624
|
-
function
|
|
23625
|
+
function Mh(r) {
|
|
23625
23626
|
if (r instanceof U)
|
|
23626
23627
|
return r;
|
|
23627
23628
|
if (r && typeof r == "object" && "x" in r && "y" in r && "z" in r) {
|
|
@@ -23640,9 +23641,9 @@ function aS(r) {
|
|
|
23640
23641
|
return new he();
|
|
23641
23642
|
}
|
|
23642
23643
|
function cS(r) {
|
|
23643
|
-
return r.camera.allowedMovement =
|
|
23644
|
+
return r.camera.allowedMovement = Mh(r.camera.allowedMovement), r.camera.allowedRotation = aS(r.camera.allowedRotation), r.camera.forward = Mh(r.camera.forward), r.camera.gizmo.color = $i(r.camera.gizmo.color), r.background.color !== null && r.background.color !== void 0 && (r.background.color = $i(r.background.color)), r.groundPlane.color = $i(r.groundPlane.color), r.skylight.skyColor = $i(r.skylight.skyColor), r.skylight.groundColor = $i(r.skylight.groundColor), r.ambientLight.color = $i(r.ambientLight.color), r.sunLights = r.sunLights.map((e) => ({
|
|
23644
23645
|
...e,
|
|
23645
|
-
position:
|
|
23646
|
+
position: Mh(e.position),
|
|
23646
23647
|
color: $i(e.color)
|
|
23647
23648
|
})), r;
|
|
23648
23649
|
}
|
|
@@ -23811,9 +23812,9 @@ class _S extends Error {
|
|
|
23811
23812
|
}
|
|
23812
23813
|
}
|
|
23813
23814
|
Ro.DispatchError = _S;
|
|
23814
|
-
var
|
|
23815
|
-
Object.defineProperty(
|
|
23816
|
-
|
|
23815
|
+
var Sl = {};
|
|
23816
|
+
Object.defineProperty(Sl, "__esModule", { value: !0 });
|
|
23817
|
+
Sl.EventListBase = void 0;
|
|
23817
23818
|
class vS {
|
|
23818
23819
|
constructor() {
|
|
23819
23820
|
this._events = {};
|
|
@@ -23826,10 +23827,10 @@ class vS {
|
|
|
23826
23827
|
delete this._events[e];
|
|
23827
23828
|
}
|
|
23828
23829
|
}
|
|
23829
|
-
|
|
23830
|
-
var
|
|
23831
|
-
Object.defineProperty(
|
|
23832
|
-
|
|
23830
|
+
Sl.EventListBase = vS;
|
|
23831
|
+
var Ml = {};
|
|
23832
|
+
Object.defineProperty(Ml, "__esModule", { value: !0 });
|
|
23833
|
+
Ml.HandlingBase = void 0;
|
|
23833
23834
|
class yS {
|
|
23834
23835
|
constructor(e) {
|
|
23835
23836
|
this.events = e;
|
|
@@ -23853,8 +23854,8 @@ class yS {
|
|
|
23853
23854
|
this.unsubscribe(e, t);
|
|
23854
23855
|
}
|
|
23855
23856
|
}
|
|
23856
|
-
|
|
23857
|
-
var
|
|
23857
|
+
Ml.HandlingBase = yS;
|
|
23858
|
+
var El = {}, Po = {};
|
|
23858
23859
|
Object.defineProperty(Po, "__esModule", { value: !0 });
|
|
23859
23860
|
Po.PromiseSubscription = void 0;
|
|
23860
23861
|
class xS {
|
|
@@ -23876,8 +23877,8 @@ class xS {
|
|
|
23876
23877
|
}
|
|
23877
23878
|
}
|
|
23878
23879
|
Po.PromiseSubscription = xS;
|
|
23879
|
-
Object.defineProperty(
|
|
23880
|
-
|
|
23880
|
+
Object.defineProperty(El, "__esModule", { value: !0 });
|
|
23881
|
+
El.PromiseDispatcherBase = void 0;
|
|
23881
23882
|
const AS = Po, bS = Cs, wS = br, SS = Ro;
|
|
23882
23883
|
class MS extends wS.DispatcherBase {
|
|
23883
23884
|
_dispatch(e, t, n) {
|
|
@@ -23895,7 +23896,7 @@ class MS extends wS.DispatcherBase {
|
|
|
23895
23896
|
return e ? null : { propagationStopped: !1 };
|
|
23896
23897
|
}
|
|
23897
23898
|
}
|
|
23898
|
-
|
|
23899
|
+
El.PromiseDispatcherBase = MS;
|
|
23899
23900
|
(function(r) {
|
|
23900
23901
|
/*!
|
|
23901
23902
|
* Strongly Typed Events for TypeScript - Core
|
|
@@ -23920,7 +23921,7 @@ Tl.PromiseDispatcherBase = MS;
|
|
|
23920
23921
|
Object.defineProperty(r, "DispatcherWrapper", { enumerable: !0, get: function() {
|
|
23921
23922
|
return n.DispatcherWrapper;
|
|
23922
23923
|
} });
|
|
23923
|
-
const i =
|
|
23924
|
+
const i = Sl;
|
|
23924
23925
|
Object.defineProperty(r, "EventListBase", { enumerable: !0, get: function() {
|
|
23925
23926
|
return i.EventListBase;
|
|
23926
23927
|
} });
|
|
@@ -23928,11 +23929,11 @@ Tl.PromiseDispatcherBase = MS;
|
|
|
23928
23929
|
Object.defineProperty(r, "EventManagement", { enumerable: !0, get: function() {
|
|
23929
23930
|
return s.EventManagement;
|
|
23930
23931
|
} });
|
|
23931
|
-
const o =
|
|
23932
|
+
const o = Ml;
|
|
23932
23933
|
Object.defineProperty(r, "HandlingBase", { enumerable: !0, get: function() {
|
|
23933
23934
|
return o.HandlingBase;
|
|
23934
23935
|
} });
|
|
23935
|
-
const a =
|
|
23936
|
+
const a = El;
|
|
23936
23937
|
Object.defineProperty(r, "PromiseDispatcherBase", { enumerable: !0, get: function() {
|
|
23937
23938
|
return a.PromiseDispatcherBase;
|
|
23938
23939
|
} });
|
|
@@ -23963,7 +23964,7 @@ class ES extends np.DispatcherBase {
|
|
|
23963
23964
|
}
|
|
23964
23965
|
}
|
|
23965
23966
|
To.SignalDispatcher = ES;
|
|
23966
|
-
var
|
|
23967
|
+
var Tl = {}, Do = {};
|
|
23967
23968
|
Object.defineProperty(Do, "__esModule", { value: !0 });
|
|
23968
23969
|
Do.SignalList = void 0;
|
|
23969
23970
|
const TS = Cr, CS = To;
|
|
@@ -23976,15 +23977,15 @@ class IS extends TS.EventListBase {
|
|
|
23976
23977
|
}
|
|
23977
23978
|
}
|
|
23978
23979
|
Do.SignalList = IS;
|
|
23979
|
-
Object.defineProperty(
|
|
23980
|
-
|
|
23980
|
+
Object.defineProperty(Tl, "__esModule", { value: !0 });
|
|
23981
|
+
Tl.SignalHandlingBase = void 0;
|
|
23981
23982
|
const RS = Cr, PS = Do;
|
|
23982
23983
|
class DS extends RS.HandlingBase {
|
|
23983
23984
|
constructor() {
|
|
23984
23985
|
super(new PS.SignalList());
|
|
23985
23986
|
}
|
|
23986
23987
|
}
|
|
23987
|
-
|
|
23988
|
+
Tl.SignalHandlingBase = DS;
|
|
23988
23989
|
(function(r) {
|
|
23989
23990
|
/*!
|
|
23990
23991
|
* Strongly Typed Events for TypeScript - Promise Signals
|
|
@@ -23999,7 +24000,7 @@ Cl.SignalHandlingBase = DS;
|
|
|
23999
24000
|
Object.defineProperty(r, "SignalDispatcher", { enumerable: !0, get: function() {
|
|
24000
24001
|
return e.SignalDispatcher;
|
|
24001
24002
|
} });
|
|
24002
|
-
const t =
|
|
24003
|
+
const t = Tl;
|
|
24003
24004
|
Object.defineProperty(r, "SignalHandlingBase", { enumerable: !0, get: function() {
|
|
24004
24005
|
return t.SignalHandlingBase;
|
|
24005
24006
|
} });
|
|
@@ -24070,7 +24071,7 @@ class US extends vg {
|
|
|
24070
24071
|
constructor(t, n) {
|
|
24071
24072
|
super(t);
|
|
24072
24073
|
$(this, "_movement");
|
|
24073
|
-
$(this, "_clock", new
|
|
24074
|
+
$(this, "_clock", new Al());
|
|
24074
24075
|
$(this, "onProgress");
|
|
24075
24076
|
$(this, "_duration", 1);
|
|
24076
24077
|
this._movement = n;
|
|
@@ -24754,7 +24755,7 @@ class HS extends ip.DispatcherBase {
|
|
|
24754
24755
|
}
|
|
24755
24756
|
}
|
|
24756
24757
|
Is.SimpleEventDispatcher = HS;
|
|
24757
|
-
var
|
|
24758
|
+
var Cl = {}, Lo = {};
|
|
24758
24759
|
Object.defineProperty(Lo, "__esModule", { value: !0 });
|
|
24759
24760
|
Lo.SimpleEventList = void 0;
|
|
24760
24761
|
const GS = Cr, WS = Is;
|
|
@@ -24767,18 +24768,18 @@ class qS extends GS.EventListBase {
|
|
|
24767
24768
|
}
|
|
24768
24769
|
}
|
|
24769
24770
|
Lo.SimpleEventList = qS;
|
|
24770
|
-
Object.defineProperty(
|
|
24771
|
-
|
|
24771
|
+
Object.defineProperty(Cl, "__esModule", { value: !0 });
|
|
24772
|
+
Cl.SimpleEventHandlingBase = void 0;
|
|
24772
24773
|
const XS = Cr, ZS = Lo;
|
|
24773
24774
|
class YS extends XS.HandlingBase {
|
|
24774
24775
|
constructor() {
|
|
24775
24776
|
super(new ZS.SimpleEventList());
|
|
24776
24777
|
}
|
|
24777
24778
|
}
|
|
24778
|
-
|
|
24779
|
-
var
|
|
24780
|
-
Object.defineProperty(
|
|
24781
|
-
|
|
24779
|
+
Cl.SimpleEventHandlingBase = YS;
|
|
24780
|
+
var Il = {};
|
|
24781
|
+
Object.defineProperty(Il, "__esModule", { value: !0 });
|
|
24782
|
+
Il.NonUniformSimpleEventList = void 0;
|
|
24782
24783
|
const QS = Is;
|
|
24783
24784
|
class KS {
|
|
24784
24785
|
constructor() {
|
|
@@ -24797,18 +24798,18 @@ class KS {
|
|
|
24797
24798
|
return new QS.SimpleEventDispatcher();
|
|
24798
24799
|
}
|
|
24799
24800
|
}
|
|
24800
|
-
|
|
24801
|
+
Il.NonUniformSimpleEventList = KS;
|
|
24801
24802
|
(function(r) {
|
|
24802
24803
|
Object.defineProperty(r, "__esModule", { value: !0 }), r.NonUniformSimpleEventList = r.SimpleEventList = r.SimpleEventHandlingBase = r.SimpleEventDispatcher = void 0;
|
|
24803
24804
|
const e = Is;
|
|
24804
24805
|
Object.defineProperty(r, "SimpleEventDispatcher", { enumerable: !0, get: function() {
|
|
24805
24806
|
return e.SimpleEventDispatcher;
|
|
24806
24807
|
} });
|
|
24807
|
-
const t =
|
|
24808
|
+
const t = Cl;
|
|
24808
24809
|
Object.defineProperty(r, "SimpleEventHandlingBase", { enumerable: !0, get: function() {
|
|
24809
24810
|
return t.SimpleEventHandlingBase;
|
|
24810
24811
|
} });
|
|
24811
|
-
const n =
|
|
24812
|
+
const n = Il;
|
|
24812
24813
|
Object.defineProperty(r, "NonUniformSimpleEventList", { enumerable: !0, get: function() {
|
|
24813
24814
|
return n.NonUniformSimpleEventList;
|
|
24814
24815
|
} });
|
|
@@ -24984,7 +24985,7 @@ class eM {
|
|
|
24984
24985
|
this._groundPlane.applyViewerSettings(e), this.skyLight.color.copy(e.skylight.skyColor), this.skyLight.groundColor.copy(e.skylight.groundColor), this.skyLight.intensity = e.skylight.intensity, this.ambientLight.color.copy(e.ambientLight.color), this.ambientLight.intensity = e.ambientLight.intensity;
|
|
24985
24986
|
const t = e.sunLights.length;
|
|
24986
24987
|
for (let n = 0; n < t; n++) {
|
|
24987
|
-
this.sunLights[n] || (this.sunLights[n] = new
|
|
24988
|
+
this.sunLights[n] || (this.sunLights[n] = new yl());
|
|
24988
24989
|
const i = e.sunLights[n].color, s = e.sunLights[n].position, o = e.sunLights[n].intensity;
|
|
24989
24990
|
i && this.sunLights[n].color.copy(i), s && this.sunLights[n].position.copy(s), o && (this.sunLights[n].intensity = o);
|
|
24990
24991
|
}
|
|
@@ -25091,7 +25092,7 @@ class tM {
|
|
|
25091
25092
|
opacity: this._opacityAlways,
|
|
25092
25093
|
color: this._color,
|
|
25093
25094
|
transparent: !0
|
|
25094
|
-
}), this._gizmos = new
|
|
25095
|
+
}), this._gizmos = new Rn(this._wireframe, [
|
|
25095
25096
|
this._material,
|
|
25096
25097
|
this._materialAlways
|
|
25097
25098
|
]), this._renderer.add(this._gizmos), this.updateScale();
|
|
@@ -25240,7 +25241,7 @@ class iM {
|
|
|
25240
25241
|
}), this.background = i.background.color, this.applyRenderingSettings(i);
|
|
25241
25242
|
}
|
|
25242
25243
|
applyRenderingSettings(e) {
|
|
25243
|
-
this.renderer.toneMapping = e.rendering.toneMapping, this.renderer.toneMappingExposure = e.rendering.toneMappingExposure;
|
|
25244
|
+
this.renderer.outputColorSpace = e.rendering.outputColorSpace, this.renderer.toneMapping = e.rendering.toneMapping, this.renderer.toneMappingExposure = e.rendering.toneMappingExposure;
|
|
25244
25245
|
}
|
|
25245
25246
|
dispose() {
|
|
25246
25247
|
this.clear(), this.renderer.clear(), this.renderer.forceContextLoss(), this.renderer.dispose();
|
|
@@ -25275,7 +25276,7 @@ class p2 {
|
|
|
25275
25276
|
$(this, "gizmoOrbit");
|
|
25276
25277
|
$(this, "running", !1);
|
|
25277
25278
|
$(this, "updateId", null);
|
|
25278
|
-
$(this, "clock", new
|
|
25279
|
+
$(this, "clock", new Al());
|
|
25279
25280
|
$(this, "scene", new Du());
|
|
25280
25281
|
$(this, "animate", () => {
|
|
25281
25282
|
if (!this.running)
|
|
@@ -25545,7 +25546,7 @@ class oM {
|
|
|
25545
25546
|
const u = c.range !== void 0 ? c.range : 0;
|
|
25546
25547
|
switch (c.type) {
|
|
25547
25548
|
case "directional":
|
|
25548
|
-
l = new
|
|
25549
|
+
l = new yl(h), l.target.position.set(0, 0, -1), l.add(l.target);
|
|
25549
25550
|
break;
|
|
25550
25551
|
case "point":
|
|
25551
25552
|
l = new nf(h), l.distance = u;
|
|
@@ -25585,7 +25586,7 @@ class aM {
|
|
|
25585
25586
|
const o = s.baseColorFactor;
|
|
25586
25587
|
e.color.setRGB(o[0], o[1], o[2], qt), e.opacity = o[3];
|
|
25587
25588
|
}
|
|
25588
|
-
s.baseColorTexture !== void 0 && i.push(n.assignTexture(e, "map", s.baseColorTexture,
|
|
25589
|
+
s.baseColorTexture !== void 0 && i.push(n.assignTexture(e, "map", s.baseColorTexture, Mt));
|
|
25589
25590
|
}
|
|
25590
25591
|
return Promise.all(i);
|
|
25591
25592
|
}
|
|
@@ -25608,7 +25609,7 @@ class lM {
|
|
|
25608
25609
|
}
|
|
25609
25610
|
getMaterialType(e) {
|
|
25610
25611
|
const n = this.parser.json.materials[e];
|
|
25611
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25612
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25612
25613
|
}
|
|
25613
25614
|
extendMaterialParams(e, t) {
|
|
25614
25615
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25628,7 +25629,7 @@ class hM {
|
|
|
25628
25629
|
}
|
|
25629
25630
|
getMaterialType(e) {
|
|
25630
25631
|
const n = this.parser.json.materials[e];
|
|
25631
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25632
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25632
25633
|
}
|
|
25633
25634
|
extendMaterialParams(e, t) {
|
|
25634
25635
|
const i = this.parser.json.materials[e];
|
|
@@ -25644,7 +25645,7 @@ class uM {
|
|
|
25644
25645
|
}
|
|
25645
25646
|
getMaterialType(e) {
|
|
25646
25647
|
const n = this.parser.json.materials[e];
|
|
25647
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25648
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25648
25649
|
}
|
|
25649
25650
|
extendMaterialParams(e, t) {
|
|
25650
25651
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25660,7 +25661,7 @@ class fM {
|
|
|
25660
25661
|
}
|
|
25661
25662
|
getMaterialType(e) {
|
|
25662
25663
|
const n = this.parser.json.materials[e];
|
|
25663
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25664
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25664
25665
|
}
|
|
25665
25666
|
extendMaterialParams(e, t) {
|
|
25666
25667
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25673,7 +25674,7 @@ class fM {
|
|
|
25673
25674
|
const a = o.sheenColorFactor;
|
|
25674
25675
|
t.sheenColor.setRGB(a[0], a[1], a[2], qt);
|
|
25675
25676
|
}
|
|
25676
|
-
return o.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = o.sheenRoughnessFactor), o.sheenColorTexture !== void 0 && s.push(n.assignTexture(t, "sheenColorMap", o.sheenColorTexture,
|
|
25677
|
+
return o.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = o.sheenRoughnessFactor), o.sheenColorTexture !== void 0 && s.push(n.assignTexture(t, "sheenColorMap", o.sheenColorTexture, Mt)), o.sheenRoughnessTexture !== void 0 && s.push(n.assignTexture(t, "sheenRoughnessMap", o.sheenRoughnessTexture)), Promise.all(s);
|
|
25677
25678
|
}
|
|
25678
25679
|
}
|
|
25679
25680
|
class dM {
|
|
@@ -25682,7 +25683,7 @@ class dM {
|
|
|
25682
25683
|
}
|
|
25683
25684
|
getMaterialType(e) {
|
|
25684
25685
|
const n = this.parser.json.materials[e];
|
|
25685
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25686
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25686
25687
|
}
|
|
25687
25688
|
extendMaterialParams(e, t) {
|
|
25688
25689
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25698,7 +25699,7 @@ class pM {
|
|
|
25698
25699
|
}
|
|
25699
25700
|
getMaterialType(e) {
|
|
25700
25701
|
const n = this.parser.json.materials[e];
|
|
25701
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25702
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25702
25703
|
}
|
|
25703
25704
|
extendMaterialParams(e, t) {
|
|
25704
25705
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25716,7 +25717,7 @@ class mM {
|
|
|
25716
25717
|
}
|
|
25717
25718
|
getMaterialType(e) {
|
|
25718
25719
|
const n = this.parser.json.materials[e];
|
|
25719
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25720
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25720
25721
|
}
|
|
25721
25722
|
extendMaterialParams(e, t) {
|
|
25722
25723
|
const i = this.parser.json.materials[e];
|
|
@@ -25732,7 +25733,7 @@ class gM {
|
|
|
25732
25733
|
}
|
|
25733
25734
|
getMaterialType(e) {
|
|
25734
25735
|
const n = this.parser.json.materials[e];
|
|
25735
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25736
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25736
25737
|
}
|
|
25737
25738
|
extendMaterialParams(e, t) {
|
|
25738
25739
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25741,7 +25742,7 @@ class gM {
|
|
|
25741
25742
|
const s = [], o = i.extensions[this.name];
|
|
25742
25743
|
t.specularIntensity = o.specularFactor !== void 0 ? o.specularFactor : 1, o.specularTexture !== void 0 && s.push(n.assignTexture(t, "specularIntensityMap", o.specularTexture));
|
|
25743
25744
|
const a = o.specularColorFactor || [1, 1, 1];
|
|
25744
|
-
return t.specularColor = new Ae().setRGB(a[0], a[1], a[2], qt), o.specularColorTexture !== void 0 && s.push(n.assignTexture(t, "specularColorMap", o.specularColorTexture,
|
|
25745
|
+
return t.specularColor = new Ae().setRGB(a[0], a[1], a[2], qt), o.specularColorTexture !== void 0 && s.push(n.assignTexture(t, "specularColorMap", o.specularColorTexture, Mt)), Promise.all(s);
|
|
25745
25746
|
}
|
|
25746
25747
|
}
|
|
25747
25748
|
class _M {
|
|
@@ -25750,7 +25751,7 @@ class _M {
|
|
|
25750
25751
|
}
|
|
25751
25752
|
getMaterialType(e) {
|
|
25752
25753
|
const n = this.parser.json.materials[e];
|
|
25753
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25754
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25754
25755
|
}
|
|
25755
25756
|
extendMaterialParams(e, t) {
|
|
25756
25757
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25766,7 +25767,7 @@ class vM {
|
|
|
25766
25767
|
}
|
|
25767
25768
|
getMaterialType(e) {
|
|
25768
25769
|
const n = this.parser.json.materials[e];
|
|
25769
|
-
return !n.extensions || !n.extensions[this.name] ? null :
|
|
25770
|
+
return !n.extensions || !n.extensions[this.name] ? null : Pn;
|
|
25770
25771
|
}
|
|
25771
25772
|
extendMaterialParams(e, t) {
|
|
25772
25773
|
const n = this.parser, i = n.json.materials[e];
|
|
@@ -25871,7 +25872,7 @@ class wM {
|
|
|
25871
25872
|
return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(e)), Promise.all(a).then((l) => {
|
|
25872
25873
|
const h = l.pop(), u = h.isGroup ? h.children : [h], f = l[0].count, d = [];
|
|
25873
25874
|
for (const g of u) {
|
|
25874
|
-
const _ = new qe(), m = new U(), p = new wt(), v = new U(1, 1, 1), y = new
|
|
25875
|
+
const _ = new qe(), m = new U(), p = new wt(), v = new U(1, 1, 1), y = new nl(g.geometry, g.material, f);
|
|
25875
25876
|
for (let x = 0; x < f; x++)
|
|
25876
25877
|
c.TRANSLATION && m.fromBufferAttribute(c.TRANSLATION, x), c.ROTATION && p.fromBufferAttribute(c.ROTATION, x), c.SCALE && v.fromBufferAttribute(c.SCALE, x), y.setMatrixAt(x, _.compose(m, p, v));
|
|
25877
25878
|
for (const x in c)
|
|
@@ -25927,11 +25928,11 @@ class MM {
|
|
|
25927
25928
|
decodePrimitive(e, t) {
|
|
25928
25929
|
const n = this.json, i = this.dracoLoader, s = e.extensions[this.name].bufferView, o = e.extensions[this.name].attributes, a = {}, c = {}, l = {};
|
|
25929
25930
|
for (const h in o) {
|
|
25930
|
-
const u =
|
|
25931
|
+
const u = Qh[h] || h.toLowerCase();
|
|
25931
25932
|
a[u] = o[h];
|
|
25932
25933
|
}
|
|
25933
25934
|
for (const h in e.attributes) {
|
|
25934
|
-
const u =
|
|
25935
|
+
const u = Qh[h] || h.toLowerCase();
|
|
25935
25936
|
if (o[h] !== void 0) {
|
|
25936
25937
|
const f = n.accessors[e.attributes[h]], d = is[f.componentType];
|
|
25937
25938
|
l[u] = d.name, c[u] = f.normalized === !0;
|
|
@@ -26016,9 +26017,9 @@ const Sn = {
|
|
|
26016
26017
|
5125: Uint32Array,
|
|
26017
26018
|
5126: Float32Array
|
|
26018
26019
|
}, hp = {
|
|
26019
|
-
9728:
|
|
26020
|
+
9728: Tt,
|
|
26020
26021
|
9729: mt,
|
|
26021
|
-
9984:
|
|
26022
|
+
9984: zc,
|
|
26022
26023
|
9985: ts,
|
|
26023
26024
|
9986: sr,
|
|
26024
26025
|
9987: En
|
|
@@ -26026,7 +26027,7 @@ const Sn = {
|
|
|
26026
26027
|
33071: nn,
|
|
26027
26028
|
33648: ss,
|
|
26028
26029
|
10497: Pi
|
|
26029
|
-
},
|
|
26030
|
+
}, Eh = {
|
|
26030
26031
|
SCALAR: 1,
|
|
26031
26032
|
VEC2: 2,
|
|
26032
26033
|
VEC3: 3,
|
|
@@ -26034,7 +26035,7 @@ const Sn = {
|
|
|
26034
26035
|
MAT2: 4,
|
|
26035
26036
|
MAT3: 9,
|
|
26036
26037
|
MAT4: 16
|
|
26037
|
-
},
|
|
26038
|
+
}, Qh = {
|
|
26038
26039
|
POSITION: "position",
|
|
26039
26040
|
NORMAL: "normal",
|
|
26040
26041
|
TANGENT: "tangent",
|
|
@@ -26054,7 +26055,7 @@ const Sn = {
|
|
|
26054
26055
|
CUBICSPLINE: void 0,
|
|
26055
26056
|
LINEAR: ls,
|
|
26056
26057
|
STEP: cs
|
|
26057
|
-
},
|
|
26058
|
+
}, Th = {
|
|
26058
26059
|
OPAQUE: "OPAQUE",
|
|
26059
26060
|
MASK: "MASK",
|
|
26060
26061
|
BLEND: "BLEND"
|
|
@@ -26128,19 +26129,19 @@ function LM(r, e) {
|
|
|
26128
26129
|
function NM(r) {
|
|
26129
26130
|
let e;
|
|
26130
26131
|
const t = r.extensions && r.extensions[ot.KHR_DRACO_MESH_COMPRESSION];
|
|
26131
|
-
if (t ? e = "draco:" + t.bufferView + ":" + t.indices + ":" +
|
|
26132
|
+
if (t ? e = "draco:" + t.bufferView + ":" + t.indices + ":" + Ch(t.attributes) : e = r.indices + ":" + Ch(r.attributes) + ":" + r.mode, r.targets !== void 0)
|
|
26132
26133
|
for (let n = 0, i = r.targets.length; n < i; n++)
|
|
26133
|
-
e += ":" +
|
|
26134
|
+
e += ":" + Ch(r.targets[n]);
|
|
26134
26135
|
return e;
|
|
26135
26136
|
}
|
|
26136
|
-
function
|
|
26137
|
+
function Ch(r) {
|
|
26137
26138
|
let e = "";
|
|
26138
26139
|
const t = Object.keys(r).sort();
|
|
26139
26140
|
for (let n = 0, i = t.length; n < i; n++)
|
|
26140
26141
|
e += t[n] + ":" + r[t[n]] + ";";
|
|
26141
26142
|
return e;
|
|
26142
26143
|
}
|
|
26143
|
-
function
|
|
26144
|
+
function Kh(r) {
|
|
26144
26145
|
switch (r) {
|
|
26145
26146
|
case Int8Array:
|
|
26146
26147
|
return 1 / 127;
|
|
@@ -26347,12 +26348,12 @@ class OM {
|
|
|
26347
26348
|
loadAccessor(e) {
|
|
26348
26349
|
const t = this, n = this.json, i = this.json.accessors[e];
|
|
26349
26350
|
if (i.bufferView === void 0 && i.sparse === void 0) {
|
|
26350
|
-
const o =
|
|
26351
|
+
const o = Eh[i.type], a = is[i.componentType], c = i.normalized === !0, l = new a(i.count * o);
|
|
26351
26352
|
return Promise.resolve(new at(l, o, c));
|
|
26352
26353
|
}
|
|
26353
26354
|
const s = [];
|
|
26354
26355
|
return i.bufferView !== void 0 ? s.push(this.getDependency("bufferView", i.bufferView)) : s.push(null), i.sparse !== void 0 && (s.push(this.getDependency("bufferView", i.sparse.indices.bufferView)), s.push(this.getDependency("bufferView", i.sparse.values.bufferView))), Promise.all(s).then(function(o) {
|
|
26355
|
-
const a = o[0], c =
|
|
26356
|
+
const a = o[0], c = Eh[i.type], l = is[i.componentType], h = l.BYTES_PER_ELEMENT, u = h * c, f = i.byteOffset || 0, d = i.bufferView !== void 0 ? n.bufferViews[i.bufferView].byteStride : void 0, g = i.normalized === !0;
|
|
26356
26357
|
let _, m;
|
|
26357
26358
|
if (d && d !== u) {
|
|
26358
26359
|
const p = Math.floor(f / d), v = "InterleavedBuffer:" + i.bufferView + ":" + i.componentType + ":" + p + ":" + i.count;
|
|
@@ -26361,7 +26362,7 @@ class OM {
|
|
|
26361
26362
|
} else
|
|
26362
26363
|
a === null ? _ = new l(i.count * c) : _ = new l(a, f, i.count * c), m = new at(_, c, g);
|
|
26363
26364
|
if (i.sparse !== void 0) {
|
|
26364
|
-
const p =
|
|
26365
|
+
const p = Eh.SCALAR, v = is[i.sparse.indices.componentType], y = i.sparse.indices.byteOffset || 0, x = i.sparse.values.byteOffset || 0, A = new v(o[1], y, i.sparse.count * p), E = new l(o[2], x, i.sparse.count * c);
|
|
26365
26366
|
a !== null && (m = new at(m.array.slice(), m.itemSize, m.normalized)), m.normalized = !1;
|
|
26366
26367
|
for (let I = 0, D = A.length; I < D; I++) {
|
|
26367
26368
|
const b = A[I];
|
|
@@ -26389,7 +26390,7 @@ class OM {
|
|
|
26389
26390
|
const l = this.loadImageSource(t, n).then(function(h) {
|
|
26390
26391
|
h.flipY = !1, h.name = o.name || a.name || "", h.name === "" && typeof a.uri == "string" && a.uri.startsWith("data:image/") === !1 && (h.name = a.uri);
|
|
26391
26392
|
const f = (s.samplers || {})[o.sampler] || {};
|
|
26392
|
-
return h.magFilter = hp[f.magFilter] || mt, h.minFilter = hp[f.minFilter] || En, h.wrapS = up[f.wrapS] || Pi, h.wrapT = up[f.wrapT] || Pi, h.generateMipmaps = !h.isCompressedTexture && h.minFilter !==
|
|
26393
|
+
return h.magFilter = hp[f.magFilter] || mt, h.minFilter = hp[f.minFilter] || En, h.wrapS = up[f.wrapS] || Pi, h.wrapT = up[f.wrapT] || Pi, h.generateMipmaps = !h.isCompressedTexture && h.minFilter !== Tt && h.minFilter !== mt, i.associations.set(h, { textures: e }), h;
|
|
26393
26394
|
}).catch(function() {
|
|
26394
26395
|
return null;
|
|
26395
26396
|
});
|
|
@@ -26446,7 +26447,7 @@ class OM {
|
|
|
26446
26447
|
if (e.isPoints) {
|
|
26447
26448
|
const a = "PointsMaterial:" + n.uuid;
|
|
26448
26449
|
let c = this.cache.get(a);
|
|
26449
|
-
c || (c = new
|
|
26450
|
+
c || (c = new rl(), zt.prototype.copy.call(c, n), c.color.copy(n.color), c.map = n.map, c.sizeAttenuation = !1, this.cache.add(a, c)), n = c;
|
|
26450
26451
|
} else if (e.isLine) {
|
|
26451
26452
|
const a = "LineBasicMaterial:" + n.uuid;
|
|
26452
26453
|
let c = this.cache.get(a);
|
|
@@ -26476,15 +26477,15 @@ class OM {
|
|
|
26476
26477
|
const f = u.baseColorFactor;
|
|
26477
26478
|
a.color.setRGB(f[0], f[1], f[2], qt), a.opacity = f[3];
|
|
26478
26479
|
}
|
|
26479
|
-
u.baseColorTexture !== void 0 && l.push(t.assignTexture(a, "map", u.baseColorTexture,
|
|
26480
|
+
u.baseColorTexture !== void 0 && l.push(t.assignTexture(a, "map", u.baseColorTexture, Mt)), a.metalness = u.metallicFactor !== void 0 ? u.metallicFactor : 1, a.roughness = u.roughnessFactor !== void 0 ? u.roughnessFactor : 1, u.metallicRoughnessTexture !== void 0 && (l.push(t.assignTexture(a, "metalnessMap", u.metallicRoughnessTexture)), l.push(t.assignTexture(a, "roughnessMap", u.metallicRoughnessTexture))), o = this._invokeOne(function(f) {
|
|
26480
26481
|
return f.getMaterialType && f.getMaterialType(e);
|
|
26481
26482
|
}), l.push(Promise.all(this._invokeAll(function(f) {
|
|
26482
26483
|
return f.extendMaterialParams && f.extendMaterialParams(e, a);
|
|
26483
26484
|
})));
|
|
26484
26485
|
}
|
|
26485
26486
|
s.doubleSided === !0 && (a.side = Mn);
|
|
26486
|
-
const h = s.alphaMode ||
|
|
26487
|
-
if (h ===
|
|
26487
|
+
const h = s.alphaMode || Th.OPAQUE;
|
|
26488
|
+
if (h === Th.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, h === Th.MASK && (a.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5)), s.normalTexture !== void 0 && o !== dn && (l.push(t.assignTexture(a, "normalMap", s.normalTexture)), a.normalScale = new he(1, 1), s.normalTexture.scale !== void 0)) {
|
|
26488
26489
|
const u = s.normalTexture.scale;
|
|
26489
26490
|
a.normalScale.set(u, u);
|
|
26490
26491
|
}
|
|
@@ -26492,7 +26493,7 @@ class OM {
|
|
|
26492
26493
|
const u = s.emissiveFactor;
|
|
26493
26494
|
a.emissive = new Ae().setRGB(u[0], u[1], u[2], qt);
|
|
26494
26495
|
}
|
|
26495
|
-
return s.emissiveTexture !== void 0 && o !== dn && l.push(t.assignTexture(a, "emissiveMap", s.emissiveTexture,
|
|
26496
|
+
return s.emissiveTexture !== void 0 && o !== dn && l.push(t.assignTexture(a, "emissiveMap", s.emissiveTexture, Mt)), Promise.all(l).then(function() {
|
|
26496
26497
|
const u = new o(a);
|
|
26497
26498
|
return s.name && (u.name = s.name), Xn(u, s), t.associations.set(u, { materials: e }), s.extensions && er(i, u, s), u;
|
|
26498
26499
|
});
|
|
@@ -26535,7 +26536,7 @@ class OM {
|
|
|
26535
26536
|
if (m.mode === Sn.TRIANGLES || m.mode === Sn.TRIANGLE_STRIP || m.mode === Sn.TRIANGLE_FAN || m.mode === void 0)
|
|
26536
26537
|
p = s.isSkinnedMesh === !0 ? new Nu(_, v) : new St(_, v), p.isSkinnedMesh === !0 && p.normalizeSkinWeights(), m.mode === Sn.TRIANGLE_STRIP ? p.geometry = cp(p.geometry, Eu) : m.mode === Sn.TRIANGLE_FAN && (p.geometry = cp(p.geometry, Ic));
|
|
26537
26538
|
else if (m.mode === Sn.LINES)
|
|
26538
|
-
p = new
|
|
26539
|
+
p = new Rn(_, v);
|
|
26539
26540
|
else if (m.mode === Sn.LINE_STRIP)
|
|
26540
26541
|
p = new pi(_, v);
|
|
26541
26542
|
else if (m.mode === Sn.LINE_LOOP)
|
|
@@ -26660,7 +26661,7 @@ class OM {
|
|
|
26660
26661
|
a.push(l);
|
|
26661
26662
|
}), this.nodeCache[e] = Promise.all(a).then(function(l) {
|
|
26662
26663
|
let h;
|
|
26663
|
-
if (s.isBone === !0 ? h = new
|
|
26664
|
+
if (s.isBone === !0 ? h = new tl() : l.length > 1 ? h = new Yn() : l.length === 1 ? h = l[0] : h = new ct(), h !== l[0])
|
|
26664
26665
|
for (let u = 0, f = l.length; u < f; u++)
|
|
26665
26666
|
h.add(l[u]);
|
|
26666
26667
|
if (s.name && (h.userData.name = s.name, h.name = o), Xn(h, s), s.extensions && er(n, h, s), s.matrix !== void 0) {
|
|
@@ -26743,7 +26744,7 @@ class OM {
|
|
|
26743
26744
|
_getArrayFromAccessor(e) {
|
|
26744
26745
|
let t = e.array;
|
|
26745
26746
|
if (e.normalized) {
|
|
26746
|
-
const n =
|
|
26747
|
+
const n = Kh(t.constructor), i = new Float32Array(t.length);
|
|
26747
26748
|
for (let s = 0, o = t.length; s < o; s++)
|
|
26748
26749
|
i[s] = t[s] * n;
|
|
26749
26750
|
t = i;
|
|
@@ -26766,7 +26767,7 @@ function FM(r, e, t) {
|
|
|
26766
26767
|
new U(c[0], c[1], c[2]),
|
|
26767
26768
|
new U(l[0], l[1], l[2])
|
|
26768
26769
|
), a.normalized) {
|
|
26769
|
-
const h =
|
|
26770
|
+
const h = Kh(is[a.componentType]);
|
|
26770
26771
|
i.min.multiplyScalar(h), i.max.multiplyScalar(h);
|
|
26771
26772
|
}
|
|
26772
26773
|
} else {
|
|
@@ -26784,7 +26785,7 @@ function FM(r, e, t) {
|
|
|
26784
26785
|
const f = t.json.accessors[u.POSITION], d = f.min, g = f.max;
|
|
26785
26786
|
if (d !== void 0 && g !== void 0) {
|
|
26786
26787
|
if (c.setX(Math.max(Math.abs(d[0]), Math.abs(g[0]))), c.setY(Math.max(Math.abs(d[1]), Math.abs(g[1]))), c.setZ(Math.max(Math.abs(d[2]), Math.abs(g[2]))), f.normalized) {
|
|
26787
|
-
const _ =
|
|
26788
|
+
const _ = Kh(is[f.componentType]);
|
|
26788
26789
|
c.multiplyScalar(_);
|
|
26789
26790
|
}
|
|
26790
26791
|
a.max(c);
|
|
@@ -26806,7 +26807,7 @@ function fp(r, e, t) {
|
|
|
26806
26807
|
});
|
|
26807
26808
|
}
|
|
26808
26809
|
for (const o in n) {
|
|
26809
|
-
const a =
|
|
26810
|
+
const a = Qh[o] || o.toLowerCase();
|
|
26810
26811
|
a in r.attributes || i.push(s(n[o], a));
|
|
26811
26812
|
}
|
|
26812
26813
|
if (e.indices !== void 0 && !r.index) {
|
|
@@ -26819,7 +26820,7 @@ function fp(r, e, t) {
|
|
|
26819
26820
|
return e.targets !== void 0 ? DM(r, e.targets, t) : r;
|
|
26820
26821
|
});
|
|
26821
26822
|
}
|
|
26822
|
-
const
|
|
26823
|
+
const Ih = /* @__PURE__ */ new WeakMap();
|
|
26823
26824
|
class zM extends jt {
|
|
26824
26825
|
constructor(e) {
|
|
26825
26826
|
super(e), this.decoderPath = "", this.decoderConfig = {}, this.decoderBinary = null, this.decoderPending = null, this.workerLimit = 4, this.workerPool = [], this.workerNextTaskID = 1, this.workerSourceURL = "", this.defaultAttributeIDs = {
|
|
@@ -26851,7 +26852,7 @@ class zM extends jt {
|
|
|
26851
26852
|
}
|
|
26852
26853
|
parse(e, t, n = () => {
|
|
26853
26854
|
}) {
|
|
26854
|
-
this.decodeDracoFile(e, t, null, null,
|
|
26855
|
+
this.decodeDracoFile(e, t, null, null, Mt, n).catch(n);
|
|
26855
26856
|
}
|
|
26856
26857
|
decodeDracoFile(e, t, n, i, s = qt, o = () => {
|
|
26857
26858
|
}) {
|
|
@@ -26865,8 +26866,8 @@ class zM extends jt {
|
|
|
26865
26866
|
}
|
|
26866
26867
|
decodeGeometry(e, t) {
|
|
26867
26868
|
const n = JSON.stringify(t);
|
|
26868
|
-
if (
|
|
26869
|
-
const c =
|
|
26869
|
+
if (Ih.has(e)) {
|
|
26870
|
+
const c = Ih.get(e);
|
|
26870
26871
|
if (c.key === n)
|
|
26871
26872
|
return c.promise;
|
|
26872
26873
|
if (e.byteLength === 0)
|
|
@@ -26880,7 +26881,7 @@ class zM extends jt {
|
|
|
26880
26881
|
}))).then((c) => this._createGeometry(c.geometry));
|
|
26881
26882
|
return a.catch(() => !0).then(() => {
|
|
26882
26883
|
i && s && this._releaseTask(i, s);
|
|
26883
|
-
}),
|
|
26884
|
+
}), Ih.set(e, {
|
|
26884
26885
|
key: n,
|
|
26885
26886
|
promise: a
|
|
26886
26887
|
}), a;
|
|
@@ -26902,11 +26903,11 @@ class zM extends jt {
|
|
|
26902
26903
|
return t;
|
|
26903
26904
|
}
|
|
26904
26905
|
_assignVertexColorSpace(e, t) {
|
|
26905
|
-
if (t !==
|
|
26906
|
+
if (t !== Mt)
|
|
26906
26907
|
return;
|
|
26907
26908
|
const n = new Ae();
|
|
26908
26909
|
for (let i = 0, s = e.count; i < s; i++)
|
|
26909
|
-
n.fromBufferAttribute(e, i), st.colorSpaceToWorking(n,
|
|
26910
|
+
n.fromBufferAttribute(e, i), st.colorSpaceToWorking(n, Mt), e.setXYZ(i, n.r, n.g, n.b);
|
|
26910
26911
|
}
|
|
26911
26912
|
_loadLibrary(e, t) {
|
|
26912
26913
|
const n = new An(this.manager);
|
|
@@ -29814,23 +29815,23 @@ const VM = bg.exports, dp = [
|
|
|
29814
29815
|
"ANDOYER",
|
|
29815
29816
|
"KARNEY"
|
|
29816
29817
|
];
|
|
29817
|
-
function
|
|
29818
|
+
function jh(r) {
|
|
29818
29819
|
const e = Ra(r);
|
|
29819
29820
|
if (e.type === 1)
|
|
29820
|
-
return { type: "Point", coordinates:
|
|
29821
|
+
return { type: "Point", coordinates: Jh(r, e) };
|
|
29821
29822
|
if (e.type === 2)
|
|
29822
|
-
return { type: "LineString", coordinates:
|
|
29823
|
+
return { type: "LineString", coordinates: $h(r, e) };
|
|
29823
29824
|
if (e.type === 3)
|
|
29824
29825
|
return { type: "Polygon", coordinates: pp(r, e) };
|
|
29825
29826
|
if (e.type === 4) {
|
|
29826
29827
|
const t = [];
|
|
29827
29828
|
for (let n = 0; n < e.count; n++)
|
|
29828
|
-
t.push(
|
|
29829
|
+
t.push(Jh(r, Ra(r)));
|
|
29829
29830
|
return { type: "MultiPoint", coordinates: t };
|
|
29830
29831
|
} else if (e.type === 5) {
|
|
29831
29832
|
const t = [];
|
|
29832
29833
|
for (let n = 0; n < e.count; n++)
|
|
29833
|
-
t.push(
|
|
29834
|
+
t.push($h(r, Ra(r)));
|
|
29834
29835
|
return { type: "MultiLineString", coordinates: t };
|
|
29835
29836
|
} else if (e.type === 6) {
|
|
29836
29837
|
const t = [];
|
|
@@ -29840,7 +29841,7 @@ function Jh(r) {
|
|
|
29840
29841
|
} else if (e.type === 7) {
|
|
29841
29842
|
const t = [];
|
|
29842
29843
|
for (let n = 0; n < e.count; n++)
|
|
29843
|
-
t.push(
|
|
29844
|
+
t.push(jh(r));
|
|
29844
29845
|
return { type: "GeometryCollection", geometries: t };
|
|
29845
29846
|
} else
|
|
29846
29847
|
throw new Error(`Unsupported geometry type: ${e.type}`);
|
|
@@ -29854,7 +29855,7 @@ function Ra(r) {
|
|
|
29854
29855
|
let a = 2;
|
|
29855
29856
|
return s && a++, s === 3 && a++, { littleEndian: t, type: i, dim: a, count: o };
|
|
29856
29857
|
}
|
|
29857
|
-
function
|
|
29858
|
+
function Jh(r, e) {
|
|
29858
29859
|
const t = [];
|
|
29859
29860
|
for (let n = 0; n < e.dim; n++) {
|
|
29860
29861
|
const i = r.view.getFloat64(r.offset, e.littleEndian);
|
|
@@ -29862,17 +29863,17 @@ function $h(r, e) {
|
|
|
29862
29863
|
}
|
|
29863
29864
|
return t;
|
|
29864
29865
|
}
|
|
29865
|
-
function
|
|
29866
|
+
function $h(r, e) {
|
|
29866
29867
|
const t = [];
|
|
29867
29868
|
for (let n = 0; n < e.count; n++)
|
|
29868
|
-
t.push(
|
|
29869
|
+
t.push(Jh(r, e));
|
|
29869
29870
|
return t;
|
|
29870
29871
|
}
|
|
29871
29872
|
function pp(r, e) {
|
|
29872
29873
|
const { view: t } = r, n = [];
|
|
29873
29874
|
for (let i = 0; i < e.count; i++) {
|
|
29874
29875
|
const s = t.getUint32(r.offset, e.littleEndian);
|
|
29875
|
-
r.offset += 4, n.push(
|
|
29876
|
+
r.offset += 4, n.push($h(r, { ...e, count: s }));
|
|
29876
29877
|
}
|
|
29877
29878
|
return n;
|
|
29878
29879
|
}
|
|
@@ -29893,10 +29894,10 @@ const Sg = new TextDecoder(), Mg = {
|
|
|
29893
29894
|
return r && Sg.decode(r);
|
|
29894
29895
|
},
|
|
29895
29896
|
geometryFromBytes(r) {
|
|
29896
|
-
return r &&
|
|
29897
|
+
return r && jh({ view: new DataView(r.buffer, r.byteOffset, r.byteLength), offset: 0 });
|
|
29897
29898
|
},
|
|
29898
29899
|
geographyFromBytes(r) {
|
|
29899
|
-
return r &&
|
|
29900
|
+
return r && jh({ view: new DataView(r.buffer, r.byteOffset, r.byteLength), offset: 0 });
|
|
29900
29901
|
}
|
|
29901
29902
|
};
|
|
29902
29903
|
function mp(r, e, t, n) {
|
|
@@ -30086,7 +30087,7 @@ function Fa(r, e) {
|
|
|
30086
30087
|
case Kt.I32:
|
|
30087
30088
|
return Lg(r);
|
|
30088
30089
|
case Kt.I64:
|
|
30089
|
-
return
|
|
30090
|
+
return eu(r);
|
|
30090
30091
|
case Kt.DOUBLE: {
|
|
30091
30092
|
const t = r.view.getFloat64(r.offset, !0);
|
|
30092
30093
|
return r.offset += 8, t;
|
|
@@ -30141,7 +30142,7 @@ function Lg(r) {
|
|
|
30141
30142
|
const e = dr(r);
|
|
30142
30143
|
return e >>> 1 ^ -(e & 1);
|
|
30143
30144
|
}
|
|
30144
|
-
function
|
|
30145
|
+
function eu(r) {
|
|
30145
30146
|
const e = KM(r);
|
|
30146
30147
|
return e >> 1n ^ -(e & 1n);
|
|
30147
30148
|
}
|
|
@@ -30287,7 +30288,7 @@ function gp(r, { parsers: e, geoparquet: t = !0 } = {}) {
|
|
|
30287
30288
|
metadata_length: s
|
|
30288
30289
|
};
|
|
30289
30290
|
}
|
|
30290
|
-
function
|
|
30291
|
+
function tu({ schema: r }) {
|
|
30291
30292
|
return Rg(r, [])[0];
|
|
30292
30293
|
}
|
|
30293
30294
|
function eE(r) {
|
|
@@ -30416,13 +30417,13 @@ function Ys(r, e, t = !0) {
|
|
|
30416
30417
|
return typeof i != "object" || i === null || Array.isArray(i) ? fi(s, i, t) : Object.entries(i || {}).every(([o, a]) => o === "$gt" ? s > a : o === "$gte" ? s >= a : o === "$lt" ? s < a : o === "$lte" ? s <= a : o === "$eq" ? fi(s, a, t) : o === "$ne" ? !fi(s, a, t) : o === "$in" ? Array.isArray(a) && a.includes(s) : o === "$nin" ? Array.isArray(a) && !a.includes(s) : o === "$not" ? !Ys({ [n]: s }, { [n]: a }, t) : !0);
|
|
30417
30418
|
});
|
|
30418
30419
|
}
|
|
30419
|
-
function
|
|
30420
|
+
function nu({ rowGroup: r, physicalColumns: e, filter: t, strict: n = !0 }) {
|
|
30420
30421
|
if (!t)
|
|
30421
30422
|
return !1;
|
|
30422
30423
|
if ("$and" in t && Array.isArray(t.$and))
|
|
30423
|
-
return t.$and.some((i) =>
|
|
30424
|
+
return t.$and.some((i) => nu({ rowGroup: r, physicalColumns: e, filter: i, strict: n }));
|
|
30424
30425
|
if ("$or" in t && Array.isArray(t.$or))
|
|
30425
|
-
return t.$or.every((i) =>
|
|
30426
|
+
return t.$or.every((i) => nu({ rowGroup: r, physicalColumns: e, filter: i, strict: n }));
|
|
30426
30427
|
if ("$nor" in t && Array.isArray(t.$nor))
|
|
30427
30428
|
return !1;
|
|
30428
30429
|
for (const [i, s] of Object.entries(t)) {
|
|
@@ -30445,11 +30446,11 @@ const rE = 1 << 21;
|
|
|
30445
30446
|
function sE({ metadata: r, rowStart: e = 0, rowEnd: t = 1 / 0, columns: n, filter: i, filterStrict: s = !0, useOffsetIndex: o = !1 }) {
|
|
30446
30447
|
if (!r)
|
|
30447
30448
|
throw new Error("parquetPlan requires metadata");
|
|
30448
|
-
const a = [], c = [], l = [], h = ZM(
|
|
30449
|
+
const a = [], c = [], l = [], h = ZM(tu(r));
|
|
30449
30450
|
let u = 0;
|
|
30450
30451
|
for (const f of r.row_groups) {
|
|
30451
30452
|
const d = Number(f.num_rows), g = u + d;
|
|
30452
|
-
if (d > 0 && g > e && u < t && !
|
|
30453
|
+
if (d > 0 && g > e && u < t && !nu({ rowGroup: f, physicalColumns: h, filter: i, strict: s })) {
|
|
30453
30454
|
const _ = [];
|
|
30454
30455
|
for (const y of f.columns) {
|
|
30455
30456
|
const x = y.meta_data;
|
|
@@ -30615,11 +30616,11 @@ function zg(r, e) {
|
|
|
30615
30616
|
function yo(r, e, t) {
|
|
30616
30617
|
const n = t instanceof Int32Array, i = dr(r), s = dr(r);
|
|
30617
30618
|
dr(r);
|
|
30618
|
-
let o =
|
|
30619
|
+
let o = eu(r), a = 0;
|
|
30619
30620
|
t[a++] = n ? Number(o) : o;
|
|
30620
30621
|
const c = i / s;
|
|
30621
30622
|
for (; a < e; ) {
|
|
30622
|
-
const l =
|
|
30623
|
+
const l = eu(r), h = new Uint8Array(s);
|
|
30623
30624
|
for (let u = 0; u < s; u++)
|
|
30624
30625
|
h[u] = r.view.getUint8(r.offset++);
|
|
30625
30626
|
for (let u = 0; u < s && a < e; u++) {
|
|
@@ -30657,7 +30658,7 @@ function aE(r, e, t) {
|
|
|
30657
30658
|
n[s] ? (t[s] = new Uint8Array(n[s] + i[s]), t[s].set(t[s - 1].subarray(0, n[s])), t[s].set(o, n[s])) : t[s] = o, r.offset += i[s];
|
|
30658
30659
|
}
|
|
30659
30660
|
}
|
|
30660
|
-
function
|
|
30661
|
+
function Rl(r) {
|
|
30661
30662
|
return 32 - Math.clz32(r);
|
|
30662
30663
|
}
|
|
30663
30664
|
function Li(r, e, t, n) {
|
|
@@ -30766,11 +30767,11 @@ function uE(r, e) {
|
|
|
30766
30767
|
return r.offset += Math.ceil(e / 8), t;
|
|
30767
30768
|
}
|
|
30768
30769
|
function fE(r, e) {
|
|
30769
|
-
const t = (r.view.byteOffset + r.offset) % 4 ? new Int32Array(
|
|
30770
|
+
const t = (r.view.byteOffset + r.offset) % 4 ? new Int32Array(Pl(r.view.buffer, r.view.byteOffset + r.offset, e * 4)) : new Int32Array(r.view.buffer, r.view.byteOffset + r.offset, e);
|
|
30770
30771
|
return r.offset += e * 4, t;
|
|
30771
30772
|
}
|
|
30772
30773
|
function dE(r, e) {
|
|
30773
|
-
const t = (r.view.byteOffset + r.offset) % 8 ? new BigInt64Array(
|
|
30774
|
+
const t = (r.view.byteOffset + r.offset) % 8 ? new BigInt64Array(Pl(r.view.buffer, r.view.byteOffset + r.offset, e * 8)) : new BigInt64Array(r.view.buffer, r.view.byteOffset + r.offset, e);
|
|
30774
30775
|
return r.offset += e * 8, t;
|
|
30775
30776
|
}
|
|
30776
30777
|
function pE(r, e) {
|
|
@@ -30782,11 +30783,11 @@ function pE(r, e) {
|
|
|
30782
30783
|
return r.offset += e * 12, t;
|
|
30783
30784
|
}
|
|
30784
30785
|
function mE(r, e) {
|
|
30785
|
-
const t = (r.view.byteOffset + r.offset) % 4 ? new Float32Array(
|
|
30786
|
+
const t = (r.view.byteOffset + r.offset) % 4 ? new Float32Array(Pl(r.view.buffer, r.view.byteOffset + r.offset, e * 4)) : new Float32Array(r.view.buffer, r.view.byteOffset + r.offset, e);
|
|
30786
30787
|
return r.offset += e * 4, t;
|
|
30787
30788
|
}
|
|
30788
30789
|
function gE(r, e) {
|
|
30789
|
-
const t = (r.view.byteOffset + r.offset) % 8 ? new Float64Array(
|
|
30790
|
+
const t = (r.view.byteOffset + r.offset) % 8 ? new Float64Array(Pl(r.view.buffer, r.view.byteOffset + r.offset, e * 8)) : new Float64Array(r.view.buffer, r.view.byteOffset + r.offset, e);
|
|
30790
30791
|
return r.offset += e * 8, t;
|
|
30791
30792
|
}
|
|
30792
30793
|
function _E(r, e) {
|
|
@@ -30803,7 +30804,7 @@ function vE(r, e, t) {
|
|
|
30803
30804
|
n[i] = new Uint8Array(r.view.buffer, r.view.byteOffset + r.offset, t), r.offset += t;
|
|
30804
30805
|
return n;
|
|
30805
30806
|
}
|
|
30806
|
-
function
|
|
30807
|
+
function Pl(r, e, t) {
|
|
30807
30808
|
const n = new ArrayBuffer(t);
|
|
30808
30809
|
return new Uint8Array(n).set(new Uint8Array(r, e, t)), n;
|
|
30809
30810
|
}
|
|
@@ -30889,7 +30890,7 @@ function bE(r, e, t) {
|
|
|
30889
30890
|
const n = Pg(t);
|
|
30890
30891
|
if (n) {
|
|
30891
30892
|
const i = new Array(e.num_values);
|
|
30892
|
-
return Li(r,
|
|
30893
|
+
return Li(r, Rl(n), i), i;
|
|
30893
30894
|
}
|
|
30894
30895
|
}
|
|
30895
30896
|
return [];
|
|
@@ -30899,13 +30900,13 @@ function wE(r, e, t) {
|
|
|
30899
30900
|
if (!n)
|
|
30900
30901
|
return { definitionLevels: [], numNulls: 0 };
|
|
30901
30902
|
const i = new Array(e.num_values);
|
|
30902
|
-
Li(r,
|
|
30903
|
+
Li(r, Rl(n), i);
|
|
30903
30904
|
let s = e.num_values;
|
|
30904
30905
|
for (const o of i)
|
|
30905
30906
|
o === n && s--;
|
|
30906
30907
|
return s === 0 && (i.length = 0), { definitionLevels: i, numNulls: s };
|
|
30907
30908
|
}
|
|
30908
|
-
function
|
|
30909
|
+
function iu(r, e, t, n) {
|
|
30909
30910
|
let i;
|
|
30910
30911
|
const s = n?.[t];
|
|
30911
30912
|
if (t === "UNCOMPRESSED")
|
|
@@ -30928,7 +30929,7 @@ function SE(r, e, t) {
|
|
|
30928
30929
|
i.offset = h.repetition_levels_byte_length;
|
|
30929
30930
|
const f = EE(i, h, a), d = e.uncompressed_page_size - h.definition_levels_byte_length - h.repetition_levels_byte_length;
|
|
30930
30931
|
let g = r.subarray(i.offset);
|
|
30931
|
-
h.is_compressed !== !1 && (g =
|
|
30932
|
+
h.is_compressed !== !1 && (g = iu(g, d, c, l));
|
|
30932
30933
|
const _ = new DataView(g.buffer, g.byteOffset, g.byteLength), m = { view: _, offset: 0 };
|
|
30933
30934
|
let p;
|
|
30934
30935
|
const v = h.num_values - h.num_nulls;
|
|
@@ -30956,13 +30957,13 @@ function ME(r, e, t) {
|
|
|
30956
30957
|
if (!n)
|
|
30957
30958
|
return [];
|
|
30958
30959
|
const i = new Array(e.num_values);
|
|
30959
|
-
return Li(r,
|
|
30960
|
+
return Li(r, Rl(n), i, e.repetition_levels_byte_length), i;
|
|
30960
30961
|
}
|
|
30961
30962
|
function EE(r, e, t) {
|
|
30962
30963
|
const n = df(t);
|
|
30963
30964
|
if (n) {
|
|
30964
30965
|
const i = new Array(e.num_values);
|
|
30965
|
-
return Li(r,
|
|
30966
|
+
return Li(r, Rl(n), i, e.definition_levels_byte_length), i;
|
|
30966
30967
|
}
|
|
30967
30968
|
}
|
|
30968
30969
|
function xp(r, { groupStart: e, selectStart: t, selectEnd: n }, i, s) {
|
|
@@ -30999,7 +31000,7 @@ function Ap(r, e, t, n, i, s) {
|
|
|
30999
31000
|
throw new Error("parquet data page header is undefined");
|
|
31000
31001
|
if (s > f.num_values && Dg(c))
|
|
31001
31002
|
return new Array(f.num_values);
|
|
31002
|
-
const d =
|
|
31003
|
+
const d = iu(u, Number(e.uncompressed_page_size), l, h), { definitionLevels: g, repetitionLevels: _, dataPage: m } = AE(d, f, t);
|
|
31003
31004
|
let p = mp(m, n, f.encoding, t);
|
|
31004
31005
|
if (_.length || g?.length) {
|
|
31005
31006
|
const v = Array.isArray(i) ? i : [];
|
|
@@ -31021,7 +31022,7 @@ function Ap(r, e, t, n, i, s) {
|
|
|
31021
31022
|
const f = e.dictionary_page_header;
|
|
31022
31023
|
if (!f)
|
|
31023
31024
|
throw new Error("parquet dictionary page header is undefined");
|
|
31024
|
-
const d =
|
|
31025
|
+
const d = iu(
|
|
31025
31026
|
u,
|
|
31026
31027
|
Number(e.uncompressed_page_size),
|
|
31027
31028
|
l,
|
|
@@ -31184,7 +31185,7 @@ async function RE(r) {
|
|
|
31184
31185
|
throw new Error('parquet filter requires rowFormat: "object"');
|
|
31185
31186
|
const l = za(a);
|
|
31186
31187
|
if (l.length) {
|
|
31187
|
-
const m =
|
|
31188
|
+
const m = tu(r.metadata).children.map((v) => v.element.name), p = l.filter((v) => !m.includes(v));
|
|
31188
31189
|
if (p.length)
|
|
31189
31190
|
throw new Error(`parquet filter columns not found: ${p.join(", ")}`);
|
|
31190
31191
|
}
|
|
@@ -31200,7 +31201,7 @@ async function RE(r) {
|
|
|
31200
31201
|
await p;
|
|
31201
31202
|
return;
|
|
31202
31203
|
}
|
|
31203
|
-
const g =
|
|
31204
|
+
const g = tu(r.metadata), _ = d.map((m) => IE(m, g));
|
|
31204
31205
|
if (i)
|
|
31205
31206
|
for (const m of _)
|
|
31206
31207
|
for (const p of m.asyncColumns)
|
|
@@ -31241,7 +31242,7 @@ function PE(r) {
|
|
|
31241
31242
|
const e = sE(r);
|
|
31242
31243
|
return r.file = oE(r.file, e), e.groups.map((t) => CE(r, e, t));
|
|
31243
31244
|
}
|
|
31244
|
-
var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array,
|
|
31245
|
+
var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Dl = Int32Array, Rh = function(r, e, t) {
|
|
31245
31246
|
if (Nt.prototype.slice)
|
|
31246
31247
|
return Nt.prototype.slice.call(r, e, t);
|
|
31247
31248
|
(e == null || e < 0) && (e = 0), (t == null || t > r.length) && (t = r.length);
|
|
@@ -31297,7 +31298,7 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31297
31298
|
d: h,
|
|
31298
31299
|
w: e && e != 1 ? e : _.subarray(12),
|
|
31299
31300
|
e: d,
|
|
31300
|
-
o: new
|
|
31301
|
+
o: new Dl(_.buffer, 0, 3),
|
|
31301
31302
|
u: f,
|
|
31302
31303
|
c: s,
|
|
31303
31304
|
m: Math.min(131072, d)
|
|
@@ -31455,10 +31456,10 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31455
31456
|
73,
|
|
31456
31457
|
2
|
|
31457
31458
|
]), 0, 5)[1], Hg = function(r, e) {
|
|
31458
|
-
for (var t = r.length, n = new
|
|
31459
|
+
for (var t = r.length, n = new Dl(t), i = 0; i < t; ++i)
|
|
31459
31460
|
n[i] = e, e += 1 << r[i];
|
|
31460
31461
|
return n;
|
|
31461
|
-
},
|
|
31462
|
+
}, ru = /* @__PURE__ */ new Nt((/* @__PURE__ */ new Dl([
|
|
31462
31463
|
0,
|
|
31463
31464
|
0,
|
|
31464
31465
|
0,
|
|
@@ -31468,7 +31469,7 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31468
31469
|
134678020,
|
|
31469
31470
|
202050057,
|
|
31470
31471
|
269422093
|
|
31471
|
-
])).buffer, 0, 36), HE = /* @__PURE__ */ Hg(
|
|
31472
|
+
])).buffer, 0, 36), HE = /* @__PURE__ */ Hg(ru, 0), su = /* @__PURE__ */ new Nt((/* @__PURE__ */ new Dl([
|
|
31472
31473
|
0,
|
|
31473
31474
|
0,
|
|
31474
31475
|
0,
|
|
@@ -31483,7 +31484,7 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31483
31484
|
185207048,
|
|
31484
31485
|
252579084,
|
|
31485
31486
|
16
|
|
31486
|
-
])).buffer, 0, 53), GE = /* @__PURE__ */ Hg(
|
|
31487
|
+
])).buffer, 0, 53), GE = /* @__PURE__ */ Hg(su, 3), Ks = function(r, e, t) {
|
|
31487
31488
|
var n = r.length, i = e.length, s = r[n - 1], o = (1 << t.b) - 1, a = -t.b;
|
|
31488
31489
|
s || Ot(0);
|
|
31489
31490
|
for (var c = 0, l = t.b, h = (n << 3) - 8 + pr(s) - l, u = -1; h > a && u < i; ) {
|
|
@@ -31502,7 +31503,7 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31502
31503
|
return i >= r.length ? void 0 : (e.b = i + 1, t ? (so(t, r[i], e.y, e.y += a), t) : so(new Nt(a), r[i]));
|
|
31503
31504
|
if (!(c > r.length)) {
|
|
31504
31505
|
if (o == 0)
|
|
31505
|
-
return e.b = c, t ? (t.set(r.subarray(i, c), e.y), e.y += a, t) :
|
|
31506
|
+
return e.b = c, t ? (t.set(r.subarray(i, c), e.y), e.y += a, t) : Rh(r, i, c);
|
|
31506
31507
|
if (o == 2) {
|
|
31507
31508
|
var l = r[i], h = l & 3, u = l >> 2 & 3, f = l >> 4, d = 0, g = 0;
|
|
31508
31509
|
h < 2 ? u & 1 ? f |= r[++i] << 4 | (u & 2 && r[++i] << 12) : f = l >> 3 : (g = u, u < 2 ? (f |= (r[++i] & 63) << 4, d = r[i] >> 6 | r[++i] << 2) : u == 2 ? (f |= r[++i] << 4 | (r[++i] & 3) << 12, d = r[i] >> 2 | r[++i] << 6) : (f |= r[++i] << 4 | (r[++i] & 63) << 12, d = r[i] >> 6 | r[++i] << 2 | r[++i] << 10)), ++i;
|
|
@@ -31549,10 +31550,10 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31549
31550
|
var le = R.s[H], W = R.n[H], Z = C.s[J], ge = C.n[J], _e = B.s[re], de = B.n[re];
|
|
31550
31551
|
z = (M -= _e) >> 3;
|
|
31551
31552
|
var oe = 1 << _e, ee = oe + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16 | r[z + 3] << 24) >>> (M & 7) & oe - 1);
|
|
31552
|
-
z = (M -=
|
|
31553
|
-
var pe = GE[Z] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 <<
|
|
31554
|
-
z = (M -=
|
|
31555
|
-
var ye = HE[le] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 <<
|
|
31553
|
+
z = (M -= su[Z]) >> 3;
|
|
31554
|
+
var pe = GE[Z] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 << su[Z]) - 1);
|
|
31555
|
+
z = (M -= ru[le]) >> 3;
|
|
31556
|
+
var ye = HE[le] + ((r[z] | r[z + 1] << 8 | r[z + 2] << 16) >> (M & 7) & (1 << ru[le]) - 1);
|
|
31556
31557
|
if (z = (M -= W) >> 3, H = R.t[H] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << W) - 1), z = (M -= ge) >> 3, J = C.t[J] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << ge) - 1), z = (M -= de) >> 3, re = B.t[re] + ((r[z] | r[z + 1] << 8) >> (M & 7) & (1 << de) - 1), ee > 3)
|
|
31557
31558
|
e.o[2] = e.o[1], e.o[1] = e.o[0], e.o[0] = ee -= 3;
|
|
31558
31559
|
else {
|
|
@@ -31579,13 +31580,13 @@ var DE = ArrayBuffer, Nt = Uint8Array, Uc = Uint16Array, LE = Int16Array, Ll = I
|
|
|
31579
31580
|
_[X++] = _[m++];
|
|
31580
31581
|
else
|
|
31581
31582
|
X = _.length;
|
|
31582
|
-
t ? e.y += X : _ =
|
|
31583
|
+
t ? e.y += X : _ = Rh(_, 0, X);
|
|
31583
31584
|
} else if (t) {
|
|
31584
31585
|
if (e.y += f, m)
|
|
31585
31586
|
for (var E = 0; E < f; ++E)
|
|
31586
31587
|
_[E] = _[m + E];
|
|
31587
31588
|
} else
|
|
31588
|
-
m && (_ =
|
|
31589
|
+
m && (_ = Rh(_, m));
|
|
31589
31590
|
return e.b = c, _;
|
|
31590
31591
|
}
|
|
31591
31592
|
Ot(2);
|
|
@@ -31713,7 +31714,7 @@ kn.prototype.readBits = function(r) {
|
|
|
31713
31714
|
const e = this.val_ >>> this.bit_pos_ & JE[r];
|
|
31714
31715
|
return this.bit_pos_ += r, e;
|
|
31715
31716
|
};
|
|
31716
|
-
const $E = 8,
|
|
31717
|
+
const $E = 8, ou = 8, eT = 255, au = 18, tT = new Uint8Array([
|
|
31717
31718
|
1,
|
|
31718
31719
|
2,
|
|
31719
31720
|
3,
|
|
@@ -31839,7 +31840,7 @@ function Bc(r, e, t, n) {
|
|
|
31839
31840
|
break;
|
|
31840
31841
|
}
|
|
31841
31842
|
} else {
|
|
31842
|
-
const a = new Uint8Array(
|
|
31843
|
+
const a = new Uint8Array(au);
|
|
31843
31844
|
let c = 32, l = 0;
|
|
31844
31845
|
const h = [
|
|
31845
31846
|
new xt(2, 0),
|
|
@@ -31859,7 +31860,7 @@ function Bc(r, e, t, n) {
|
|
|
31859
31860
|
new xt(2, 3),
|
|
31860
31861
|
new xt(4, 5)
|
|
31861
31862
|
];
|
|
31862
|
-
for (let u = s; u <
|
|
31863
|
+
for (let u = s; u < au && c > 0; u++) {
|
|
31863
31864
|
const f = tT[u];
|
|
31864
31865
|
let d = 0;
|
|
31865
31866
|
n.fillBitWindow(), d += n.val_ >>> n.bit_pos_ & 15, n.bit_pos_ += h[d].bits;
|
|
@@ -31870,22 +31871,22 @@ function Bc(r, e, t, n) {
|
|
|
31870
31871
|
throw new Error("[ReadHuffmanCode] invalid num_codes or space");
|
|
31871
31872
|
rT(a, r, i, n);
|
|
31872
31873
|
}
|
|
31873
|
-
const o = Wg(e, t,
|
|
31874
|
+
const o = Wg(e, t, ou, i, r);
|
|
31874
31875
|
if (!o)
|
|
31875
31876
|
throw new Error("brotli BuildHuffmanTable failed");
|
|
31876
31877
|
return o;
|
|
31877
31878
|
}
|
|
31878
31879
|
function rs(r, e, t) {
|
|
31879
31880
|
t.fillBitWindow(), e += t.val_ >>> t.bit_pos_ & eT;
|
|
31880
|
-
const n = r[e].bits -
|
|
31881
|
-
return n > 0 && (t.bit_pos_ +=
|
|
31881
|
+
const n = r[e].bits - ou;
|
|
31882
|
+
return n > 0 && (t.bit_pos_ += ou, e += r[e].value, e += t.val_ >>> t.bit_pos_ & (1 << n) - 1), t.bit_pos_ += r[e].bits, r[e].value;
|
|
31882
31883
|
}
|
|
31883
31884
|
function rT(r, e, t, n) {
|
|
31884
31885
|
let i = 0, s = $E, o = 0, a = 0, c = 32768;
|
|
31885
31886
|
const l = [];
|
|
31886
31887
|
for (let h = 0; h < 32; h++)
|
|
31887
31888
|
l.push(new xt(0, 0));
|
|
31888
|
-
for (Wg(l, 0, 5, r,
|
|
31889
|
+
for (Wg(l, 0, 5, r, au); i < e && c > 0; ) {
|
|
31889
31890
|
let h = 0;
|
|
31890
31891
|
n.readMoreInput(), n.fillBitWindow(), h += n.val_ >>> n.bit_pos_ & 31, n.bit_pos_ += l[h].bits;
|
|
31891
31892
|
const u = l[h].value & 255;
|
|
@@ -32098,10 +32099,10 @@ function Zg(r, e) {
|
|
|
32098
32099
|
const { base: Yg, rev: hT } = Zg(qg, 2);
|
|
32099
32100
|
Yg[28] = 258;
|
|
32100
32101
|
hT[258] = 28;
|
|
32101
|
-
const { base: uT } = Zg(Xg, 0),
|
|
32102
|
+
const { base: uT } = Zg(Xg, 0), cu = new Uint16Array(32768);
|
|
32102
32103
|
for (let r = 0; r < 32768; r++) {
|
|
32103
32104
|
let e = (r & 43690) >> 1 | (r & 21845) << 1;
|
|
32104
|
-
e = (e & 52428) >> 2 | (e & 13107) << 2, e = (e & 61680) >> 4 | (e & 3855) << 4,
|
|
32105
|
+
e = (e & 52428) >> 2 | (e & 13107) << 2, e = (e & 61680) >> 4 | (e & 3855) << 4, cu[r] = ((e & 65280) >> 8 | (e & 255) << 8) >> 1;
|
|
32105
32106
|
}
|
|
32106
32107
|
function oo(r, e, t) {
|
|
32107
32108
|
const n = new Uint16Array(e);
|
|
@@ -32119,12 +32120,12 @@ function oo(r, e, t) {
|
|
|
32119
32120
|
const c = a << 4 | r[a], l = e - r[a];
|
|
32120
32121
|
let h = i[r[a] - 1]++ << l;
|
|
32121
32122
|
for (const u = h | (1 << l) - 1; h <= u; h++)
|
|
32122
|
-
s[
|
|
32123
|
+
s[cu[h] >> o] = c;
|
|
32123
32124
|
}
|
|
32124
32125
|
} else {
|
|
32125
32126
|
s = new Uint16Array(r.length);
|
|
32126
32127
|
for (let o = 0; o < r.length; o++)
|
|
32127
|
-
r[o] && (s[o] =
|
|
32128
|
+
r[o] && (s[o] = cu[i[r[o] - 1]++] >> 15 - r[o]);
|
|
32128
32129
|
}
|
|
32129
32130
|
return s;
|
|
32130
32131
|
}
|
|
@@ -32141,7 +32142,7 @@ const Qg = new Uint8Array(32);
|
|
|
32141
32142
|
for (let r = 0; r < 32; r++)
|
|
32142
32143
|
Qg[r] = 5;
|
|
32143
32144
|
const fT = /* @__PURE__ */ oo(Uo, 9, 1), dT = /* @__PURE__ */ oo(Qg, 5, 1);
|
|
32144
|
-
function
|
|
32145
|
+
function Ph(r, e, t, n, i, s, o) {
|
|
32145
32146
|
const a = t * 2, c = t, l = rs(e, t * Si, o);
|
|
32146
32147
|
let h;
|
|
32147
32148
|
l === 0 ? h = i[a + (s[c] & 1)] : l === 1 ? h = i[a + (s[c] - 1 & 1)] + 1 : h = l - 2, h >= r && (h -= r), n[t] = h, i[a + (s[c] & 1)] = h, s[c]++;
|
|
@@ -34097,11 +34098,11 @@ Jg.prototype.write = function(r, e) {
|
|
|
34097
34098
|
return this.buffer.set(r.subarray(0, e), this.pos), this.pos += e, e;
|
|
34098
34099
|
};
|
|
34099
34100
|
const xT = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
|
|
34100
|
-
function
|
|
34101
|
+
function Bn(r, e, t) {
|
|
34101
34102
|
const n = e / 8 | 0;
|
|
34102
34103
|
return (r[n] | r[n + 1] << 8) >> (e & 7) & t;
|
|
34103
34104
|
}
|
|
34104
|
-
function
|
|
34105
|
+
function Dh(r, e) {
|
|
34105
34106
|
const t = e / 8 | 0;
|
|
34106
34107
|
return (r[t] | r[t + 1] << 8 | r[t + 2] << 16) >> (e & 7);
|
|
34107
34108
|
}
|
|
@@ -34136,28 +34137,28 @@ function _f(r, e, t = 0, n = 0) {
|
|
|
34136
34137
|
}
|
|
34137
34138
|
do {
|
|
34138
34139
|
if (!h) {
|
|
34139
|
-
a =
|
|
34140
|
-
const p =
|
|
34140
|
+
a = Bn(r, o, 1);
|
|
34141
|
+
const p = Bn(r, o + 1, 3);
|
|
34141
34142
|
if (o += 3, p)
|
|
34142
34143
|
if (p === 1)
|
|
34143
34144
|
h = fT, u = dT, c = 9, l = 5;
|
|
34144
34145
|
else if (p === 2) {
|
|
34145
|
-
const v =
|
|
34146
|
+
const v = Bn(r, o, 31) + 257, y = Bn(r, o + 10, 15) + 4, x = v + Bn(r, o + 5, 31) + 1;
|
|
34146
34147
|
o += 14;
|
|
34147
34148
|
const A = new Uint8Array(x), E = new Uint8Array(19);
|
|
34148
34149
|
for (let R = 0; R < y; ++R)
|
|
34149
|
-
E[xT[R]] =
|
|
34150
|
+
E[xT[R]] = Bn(r, o + R * 3, 7);
|
|
34150
34151
|
o += y * 3;
|
|
34151
34152
|
const I = Math.max(...E), D = (1 << I) - 1, b = oo(E, I, 1);
|
|
34152
34153
|
for (let R = 0; R < x; ) {
|
|
34153
|
-
const O = b[
|
|
34154
|
+
const O = b[Bn(r, o, D)];
|
|
34154
34155
|
o += O & 15;
|
|
34155
34156
|
const M = O >> 4;
|
|
34156
34157
|
if (M < 16)
|
|
34157
34158
|
A[R++] = M;
|
|
34158
34159
|
else {
|
|
34159
34160
|
let z = 0, X = 0;
|
|
34160
|
-
for (M === 16 ? (X = 3 +
|
|
34161
|
+
for (M === 16 ? (X = 3 + Bn(r, o, 3), o += 2, z = A[R - 1]) : M === 17 ? (X = 3 + Bn(r, o, 7), o += 3) : M === 18 && (X = 11 + Bn(r, o, 127), o += 7); X--; )
|
|
34161
34162
|
A[R++] = z;
|
|
34162
34163
|
}
|
|
34163
34164
|
}
|
|
@@ -34179,7 +34180,7 @@ function _f(r, e, t = 0, n = 0) {
|
|
|
34179
34180
|
const g = (1 << c) - 1, _ = (1 << l) - 1;
|
|
34180
34181
|
let m = o;
|
|
34181
34182
|
for (; ; m = o) {
|
|
34182
|
-
const p = h[
|
|
34183
|
+
const p = h[Dh(r, o) & g], v = p >> 4;
|
|
34183
34184
|
if (o += p & 15, o > f)
|
|
34184
34185
|
throw new Error("unexpected EOF");
|
|
34185
34186
|
if (!p)
|
|
@@ -34193,18 +34194,18 @@ function _f(r, e, t = 0, n = 0) {
|
|
|
34193
34194
|
let y = v - 254;
|
|
34194
34195
|
if (v > 264) {
|
|
34195
34196
|
const D = v - 257, b = qg[D];
|
|
34196
|
-
y =
|
|
34197
|
+
y = Bn(r, o, (1 << b) - 1) + Yg[D], o += b;
|
|
34197
34198
|
}
|
|
34198
34199
|
if (!u)
|
|
34199
34200
|
throw new Error("invalid distance map");
|
|
34200
|
-
const x = u[
|
|
34201
|
+
const x = u[Dh(r, o) & _], A = x >> 4;
|
|
34201
34202
|
if (!x)
|
|
34202
34203
|
throw new Error("invalid distance");
|
|
34203
34204
|
o += x & 15;
|
|
34204
34205
|
let E = uT[A];
|
|
34205
34206
|
if (A > 3) {
|
|
34206
34207
|
const D = Xg[A];
|
|
34207
|
-
E +=
|
|
34208
|
+
E += Dh(r, o) & (1 << D) - 1, o += D;
|
|
34208
34209
|
}
|
|
34209
34210
|
if (o > f)
|
|
34210
34211
|
throw new Error("unexpected EOF");
|
|
@@ -35205,7 +35206,7 @@ function ST() {
|
|
|
35205
35206
|
}
|
|
35206
35207
|
return Na;
|
|
35207
35208
|
}
|
|
35208
|
-
const ke = 0, Ip = 1, MT = 2, ET = 3, TT = 4, CT = 5, IT = 6, RT = 7, PT = 8, $g = 9, Dt = 10, Bt = 11,
|
|
35209
|
+
const ke = 0, Ip = 1, MT = 2, ET = 3, TT = 4, CT = 5, IT = 6, RT = 7, PT = 8, $g = 9, Dt = 10, Bt = 11, lu = 12, DT = 13, LT = 14, NT = 15, UT = 16, BT = 17, OT = 18, FT = 20;
|
|
35209
35210
|
function ue(r, e, t) {
|
|
35210
35211
|
this.prefix = new Uint8Array(r.length), this.transform = e, this.suffix = new Uint8Array(t.length);
|
|
35211
35212
|
for (let n = 0; n < r.length; n++)
|
|
@@ -35217,7 +35218,7 @@ const Va = [
|
|
|
35217
35218
|
new ue("", ke, ""),
|
|
35218
35219
|
new ue("", ke, " "),
|
|
35219
35220
|
new ue(" ", ke, " "),
|
|
35220
|
-
new ue("",
|
|
35221
|
+
new ue("", lu, ""),
|
|
35221
35222
|
new ue("", Dt, " "),
|
|
35222
35223
|
new ue("", ke, " the "),
|
|
35223
35224
|
new ue(" ", ke, ""),
|
|
@@ -35343,7 +35344,7 @@ function Rp(r, e) {
|
|
|
35343
35344
|
}
|
|
35344
35345
|
function kT(r, e, t, n, i) {
|
|
35345
35346
|
const s = ST(), { prefix: o } = Va[i], { suffix: a } = Va[i], c = Va[i].transform;
|
|
35346
|
-
let l = c <
|
|
35347
|
+
let l = c < lu ? 0 : c - (lu - 1);
|
|
35347
35348
|
const h = e;
|
|
35348
35349
|
l > n && (l = n);
|
|
35349
35350
|
let u = 0;
|
|
@@ -35365,7 +35366,7 @@ function kT(r, e, t, n, i) {
|
|
|
35365
35366
|
r[e++] = a[d++];
|
|
35366
35367
|
return e - h;
|
|
35367
35368
|
}
|
|
35368
|
-
const VT = 256, HT = 704, GT = 26, Pp = 6, Dp = 2,
|
|
35369
|
+
const VT = 256, HT = 704, GT = 26, Pp = 6, Dp = 2, hu = 16, WT = new Uint8Array([
|
|
35369
35370
|
3,
|
|
35370
35371
|
2,
|
|
35371
35372
|
1,
|
|
@@ -35491,7 +35492,7 @@ function KT(r, e) {
|
|
|
35491
35492
|
for (let ee = 0; ee < 3; ee++)
|
|
35492
35493
|
I[ee] = Kg(f) + 1, I[ee] >= 2 && (Bc(I[ee] + 2, v, ee * Si, f), Bc(GT, y, ee * Si, f), A[ee] = Da(y, ee * Si, f), b[ee] = 1);
|
|
35493
35494
|
f.readMoreInput();
|
|
35494
|
-
const R = f.readBits(2), O =
|
|
35495
|
+
const R = f.readBits(2), O = hu + (f.readBits(4) << R), M = (1 << R) - 1, z = O + (48 << R), X = new Uint8Array(I[0]);
|
|
35495
35496
|
for (let ee = 0; ee < I[0]; ee++)
|
|
35496
35497
|
f.readMoreInput(), X[ee] = f.readBits(2) << 1;
|
|
35497
35498
|
const [H, re] = Cp(I[0] << Pp, f), [J, le] = Cp(I[2] << Dp, f);
|
|
@@ -35501,7 +35502,7 @@ function KT(r, e) {
|
|
|
35501
35502
|
let W = 0, Z = 0, ge = X[E[0]], _e = La[ge], de = La[ge + 1], oe = h[1].htrees[0];
|
|
35502
35503
|
for (; x > 0; ) {
|
|
35503
35504
|
let ee;
|
|
35504
|
-
f.readMoreInput(), A[1] === 0 && (
|
|
35505
|
+
f.readMoreInput(), A[1] === 0 && (Ph(
|
|
35505
35506
|
I[1],
|
|
35506
35507
|
v,
|
|
35507
35508
|
1,
|
|
@@ -35516,7 +35517,7 @@ function KT(r, e) {
|
|
|
35516
35517
|
const xe = cT[ye] + (pe >> 3 & 7), ze = oT[xe], Ke = ze.offset + f.readBits(ze.nbits), He = lT[ye] + (pe & 7), w = aT[He], q = w.offset + f.readBits(w.nbits);
|
|
35517
35518
|
c = m[t - 1 & _], l = m[t - 2 & _];
|
|
35518
35519
|
for (let S = 0; S < Ke; S++) {
|
|
35519
|
-
f.readMoreInput(), A[0] === 0 && (
|
|
35520
|
+
f.readMoreInput(), A[0] === 0 && (Ph(
|
|
35520
35521
|
I[0],
|
|
35521
35522
|
v,
|
|
35522
35523
|
0,
|
|
@@ -35531,7 +35532,7 @@ function KT(r, e) {
|
|
|
35531
35532
|
if (x -= Ke, x <= 0)
|
|
35532
35533
|
break;
|
|
35533
35534
|
if (ee < 0) {
|
|
35534
|
-
f.readMoreInput(), A[2] === 0 && (
|
|
35535
|
+
f.readMoreInput(), A[2] === 0 && (Ph(
|
|
35535
35536
|
I[2],
|
|
35536
35537
|
v,
|
|
35537
35538
|
2,
|
|
@@ -35582,7 +35583,7 @@ function KT(r, e) {
|
|
|
35582
35583
|
e.write(m, t & _);
|
|
35583
35584
|
}
|
|
35584
35585
|
function jT(r, e, t) {
|
|
35585
|
-
return r <
|
|
35586
|
+
return r < hu ? (t += WT[r], t &= 3, e[t] + qT[r]) : r - hu + 1;
|
|
35586
35587
|
}
|
|
35587
35588
|
function JT(r, e) {
|
|
35588
35589
|
const t = new Uint8Array(e);
|
|
@@ -35594,7 +35595,7 @@ function JT(r, e) {
|
|
|
35594
35595
|
throw new Error("lz4 not hadoop");
|
|
35595
35596
|
if (t.length < s)
|
|
35596
35597
|
throw new Error("lz4 not hadoop");
|
|
35597
|
-
if (
|
|
35598
|
+
if (uu(r.subarray(n, n + o), t, i) !== s)
|
|
35598
35599
|
throw new Error("lz4 not hadoop");
|
|
35599
35600
|
if (n += o, i += s, n === r.length)
|
|
35600
35601
|
return t;
|
|
@@ -35604,15 +35605,15 @@ function JT(r, e) {
|
|
|
35604
35605
|
} catch (n) {
|
|
35605
35606
|
if (n instanceof Error && n.message !== "lz4 not hadoop")
|
|
35606
35607
|
throw n;
|
|
35607
|
-
|
|
35608
|
+
uu(r, t, 0);
|
|
35608
35609
|
}
|
|
35609
35610
|
return t;
|
|
35610
35611
|
}
|
|
35611
35612
|
function $T(r, e) {
|
|
35612
35613
|
const t = new Uint8Array(e);
|
|
35613
|
-
return
|
|
35614
|
+
return uu(r, t, 0), t;
|
|
35614
35615
|
}
|
|
35615
|
-
function
|
|
35616
|
+
function uu(r, e, t) {
|
|
35616
35617
|
let n = t;
|
|
35617
35618
|
for (let i = 0; i < r.length; ) {
|
|
35618
35619
|
const s = r[i++];
|
|
@@ -35786,7 +35787,7 @@ function l2(r, e, t, n, i) {
|
|
|
35786
35787
|
const { meshIndex: a, materialIndex: c, instanceIndices: l } = o, h = l.length;
|
|
35787
35788
|
if (h <= 1)
|
|
35788
35789
|
continue;
|
|
35789
|
-
const u = e[a], f = t[c], d = new
|
|
35790
|
+
const u = e[a], f = t[c], d = new nl(u, f, h);
|
|
35790
35791
|
d.instanceMatrix.setUsage(hs);
|
|
35791
35792
|
for (let g = 0; g < h; g++) {
|
|
35792
35793
|
const _ = l[g], m = r.InstanceTransformIndex[_];
|