iflow-engine 1.5.0 → 1.5.1
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/iflow-engine.es.js +812 -789
- package/dist/iflow-engine.es.js.map +1 -1
- package/dist/iflow-engine.umd.js +33 -33
- package/dist/iflow-engine.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/iflow-engine.es.js
CHANGED
|
@@ -1618,17 +1618,17 @@ class Lg extends Ui {
|
|
|
1618
1618
|
this.activeDialogs.forEach((e) => e.destroy()), this.activeDialogs = [], super.destroy();
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
|
-
const Fa = "181", Cr = { ROTATE: 0, DOLLY: 1, PAN: 2 }, wr = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 },
|
|
1621
|
+
const Fa = "181", Cr = { ROTATE: 0, DOLLY: 1, PAN: 2 }, wr = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Dg = 0, Au = 1, Ig = 2, ym = 1, _m = 2, Ti = 3, jn = 0, cn = 1, Mt = 2, St = 0, Tr = 1, _h = 2, Pu = 3, Ru = 4, Ud = 5, Rn = 100, Ng = 101, Bg = 102, kg = 103, Ug = 104, Ps = 200, Og = 201, zg = 202, Fg = 203, Mh = 204, wh = 205, wl = 206, Hg = 207, Sl = 208, Vg = 209, Gg = 210, Wg = 211, Xg = 212, jg = 213, qg = 214, Sh = 0, Eh = 1, Ch = 2, Lr = 3, Th = 4, Ah = 5, Ph = 6, Rh = 7, Od = 0, Zg = 1, Yg = 2, is = 0, Mm = 1, wm = 2, Sm = 3, Em = 4, Cm = 5, Tm = 6, Am = 7, Lu = "attached", $g = "detached", Pm = 300, Dr = 301, Ir = 302, El = 303, Lh = 304, zl = 306, In = 1e3, Vn = 1001, Cl = 1002, jt = 1003, Rm = 1004, xa = 1005, Bt = 1006, cl = 1007, hi = 1008, ii = 1009, Lm = 1010, Dm = 1011, Pa = 1012, zd = 1013, Ns = 1014, fn = 1015, mn = 1016, Fd = 1017, Hd = 1018, Bs = 1020, Im = 35902, Nm = 35899, Bm = 1021, km = 1022, wn = 1023, Ra = 1026, ks = 1027, Fl = 1028, Vd = 1029, Gd = 1030, Wd = 1031, Xd = 1033, hl = 33776, dl = 33777, ul = 33778, pl = 33779, Dh = 35840, Ih = 35841, Nh = 35842, Bh = 35843, kh = 36196, Uh = 37492, Oh = 37496, zh = 37808, Fh = 37809, Hh = 37810, Vh = 37811, Gh = 37812, Wh = 37813, Xh = 37814, jh = 37815, qh = 37816, Zh = 37817, Yh = 37818, $h = 37819, Kh = 37820, Jh = 37821, Qh = 36492, ed = 36494, td = 36495, nd = 36283, id = 36284, sd = 36285, rd = 36286, La = 2300, Da = 2301, tc = 2302, Du = 2400, Iu = 2401, Nu = 2402, Kg = 2500, Jg = 0, Um = 1, ad = 2, Qg = 3200, ex = 3201, Hl = 0, tx = 1, Ji = "", Dt = "srgb", nn = "srgb-linear", Tl = "linear", ct = "srgb", qs = 7680, Bu = 519, nx = 512, ix = 513, sx = 514, Om = 515, rx = 516, ax = 517, ox = 518, lx = 519, od = 35044, ku = "300 es", di = 2e3, Al = 2001;
|
|
1622
1622
|
function zm(s) {
|
|
1623
1623
|
for (let e = s.length - 1; e >= 0; --e)
|
|
1624
1624
|
if (s[e] >= 65535) return !0;
|
|
1625
1625
|
return !1;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function Ia(s) {
|
|
1628
1628
|
return document.createElementNS("http://www.w3.org/1999/xhtml", s);
|
|
1629
1629
|
}
|
|
1630
1630
|
function cx() {
|
|
1631
|
-
const s =
|
|
1631
|
+
const s = Ia("canvas");
|
|
1632
1632
|
return s.style.display = "block", s;
|
|
1633
1633
|
}
|
|
1634
1634
|
const Uu = {};
|
|
@@ -4303,17 +4303,17 @@ function Tx() {
|
|
|
4303
4303
|
toXYZ: Fu,
|
|
4304
4304
|
fromXYZ: Hu,
|
|
4305
4305
|
luminanceCoefficients: t,
|
|
4306
|
-
workingColorSpaceConfig: { unpackColorSpace:
|
|
4307
|
-
outputColorSpaceConfig: { drawingBufferColorSpace:
|
|
4306
|
+
workingColorSpaceConfig: { unpackColorSpace: Dt },
|
|
4307
|
+
outputColorSpaceConfig: { drawingBufferColorSpace: Dt }
|
|
4308
4308
|
},
|
|
4309
|
-
[
|
|
4309
|
+
[Dt]: {
|
|
4310
4310
|
primaries: e,
|
|
4311
4311
|
whitePoint: n,
|
|
4312
4312
|
transfer: ct,
|
|
4313
4313
|
toXYZ: Fu,
|
|
4314
4314
|
fromXYZ: Hu,
|
|
4315
4315
|
luminanceCoefficients: t,
|
|
4316
|
-
outputColorSpaceConfig: { drawingBufferColorSpace:
|
|
4316
|
+
outputColorSpaceConfig: { drawingBufferColorSpace: Dt }
|
|
4317
4317
|
}
|
|
4318
4318
|
}), s;
|
|
4319
4319
|
}
|
|
@@ -4340,7 +4340,7 @@ class Ax {
|
|
|
4340
4340
|
if (e instanceof HTMLCanvasElement)
|
|
4341
4341
|
n = e;
|
|
4342
4342
|
else {
|
|
4343
|
-
Zs === void 0 && (Zs =
|
|
4343
|
+
Zs === void 0 && (Zs = Ia("canvas")), Zs.width = e.width, Zs.height = e.height;
|
|
4344
4344
|
const i = Zs.getContext("2d");
|
|
4345
4345
|
e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), n = Zs;
|
|
4346
4346
|
}
|
|
@@ -4354,7 +4354,7 @@ class Ax {
|
|
|
4354
4354
|
*/
|
|
4355
4355
|
static sRGBToLinear(e) {
|
|
4356
4356
|
if (typeof HTMLImageElement < "u" && e instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && e instanceof ImageBitmap) {
|
|
4357
|
-
const t =
|
|
4357
|
+
const t = Ia("canvas");
|
|
4358
4358
|
t.width = e.width, t.height = e.height;
|
|
4359
4359
|
const n = t.getContext("2d");
|
|
4360
4360
|
n.drawImage(e, 0, 0, e.width, e.height);
|
|
@@ -4610,7 +4610,7 @@ class Wt extends zs {
|
|
|
4610
4610
|
if (this.mapping !== Pm) return e;
|
|
4611
4611
|
if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
|
|
4612
4612
|
switch (this.wrapS) {
|
|
4613
|
-
case
|
|
4613
|
+
case In:
|
|
4614
4614
|
e.x = e.x - Math.floor(e.x);
|
|
4615
4615
|
break;
|
|
4616
4616
|
case Vn:
|
|
@@ -4622,7 +4622,7 @@ class Wt extends zs {
|
|
|
4622
4622
|
}
|
|
4623
4623
|
if (e.y < 0 || e.y > 1)
|
|
4624
4624
|
switch (this.wrapT) {
|
|
4625
|
-
case
|
|
4625
|
+
case In:
|
|
4626
4626
|
e.y = e.y - Math.floor(e.y);
|
|
4627
4627
|
break;
|
|
4628
4628
|
case Vn:
|
|
@@ -5390,7 +5390,7 @@ class Fm extends Wt {
|
|
|
5390
5390
|
this.layerUpdates.clear();
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
5393
|
-
class
|
|
5393
|
+
class Dx extends Wt {
|
|
5394
5394
|
/**
|
|
5395
5395
|
* Constructs a new data array texture.
|
|
5396
5396
|
*
|
|
@@ -5822,7 +5822,7 @@ function ac(s, e, t, n, i) {
|
|
|
5822
5822
|
}
|
|
5823
5823
|
return !0;
|
|
5824
5824
|
}
|
|
5825
|
-
const
|
|
5825
|
+
const Ix = /* @__PURE__ */ new mt(), Yr = /* @__PURE__ */ new P(), oc = /* @__PURE__ */ new P();
|
|
5826
5826
|
class fi {
|
|
5827
5827
|
/**
|
|
5828
5828
|
* Constructs a new sphere.
|
|
@@ -5855,7 +5855,7 @@ class fi {
|
|
|
5855
5855
|
*/
|
|
5856
5856
|
setFromPoints(e, t) {
|
|
5857
5857
|
const n = this.center;
|
|
5858
|
-
t !== void 0 ? n.copy(t) :
|
|
5858
|
+
t !== void 0 ? n.copy(t) : Ix.setFromPoints(e).getCenter(n);
|
|
5859
5859
|
let i = 0;
|
|
5860
5860
|
for (let r = 0, a = e.length; r < a; r++)
|
|
5861
5861
|
i = Math.max(i, n.distanceToSquared(e[r]));
|
|
@@ -6300,7 +6300,7 @@ class cs {
|
|
|
6300
6300
|
return new this.constructor().copy(this);
|
|
6301
6301
|
}
|
|
6302
6302
|
}
|
|
6303
|
-
class
|
|
6303
|
+
class De {
|
|
6304
6304
|
/**
|
|
6305
6305
|
* Constructs a new 4x4 matrix. The arguments are supposed to be
|
|
6306
6306
|
* in row-major order. If no arguments are provided, the constructor
|
|
@@ -6324,7 +6324,7 @@ class Ie {
|
|
|
6324
6324
|
* @param {number} [n44] - 4-4 matrix element.
|
|
6325
6325
|
*/
|
|
6326
6326
|
constructor(e, t, n, i, r, a, o, l, c, h, d, p, u, g, f, x) {
|
|
6327
|
-
|
|
6327
|
+
De.prototype.isMatrix4 = !0, this.elements = [
|
|
6328
6328
|
1,
|
|
6329
6329
|
0,
|
|
6330
6330
|
0,
|
|
@@ -6400,7 +6400,7 @@ class Ie {
|
|
|
6400
6400
|
* @return {Matrix4} A clone of this instance.
|
|
6401
6401
|
*/
|
|
6402
6402
|
clone() {
|
|
6403
|
-
return new
|
|
6403
|
+
return new De().fromArray(this.elements);
|
|
6404
6404
|
}
|
|
6405
6405
|
/**
|
|
6406
6406
|
* Copies the values of the given matrix to this instance.
|
|
@@ -6586,8 +6586,8 @@ class Ie {
|
|
|
6586
6586
|
* @return {Matrix4} A reference to this matrix.
|
|
6587
6587
|
*/
|
|
6588
6588
|
multiplyMatrices(e, t) {
|
|
6589
|
-
const n = e.elements, i = t.elements, r = this.elements, a = n[0], o = n[4], l = n[8], c = n[12], h = n[1], d = n[5], p = n[9], u = n[13], g = n[2], f = n[6], x = n[10], m = n[14], b = n[3], v = n[7], y = n[11], _ = n[15], M = i[0], T = i[4], R = i[8], w = i[12], E = i[1],
|
|
6590
|
-
return r[0] = a * M + o * E + l * S + c * Z, r[4] = a * T + o *
|
|
6589
|
+
const n = e.elements, i = t.elements, r = this.elements, a = n[0], o = n[4], l = n[8], c = n[12], h = n[1], d = n[5], p = n[9], u = n[13], g = n[2], f = n[6], x = n[10], m = n[14], b = n[3], v = n[7], y = n[11], _ = n[15], M = i[0], T = i[4], R = i[8], w = i[12], E = i[1], D = i[5], A = i[9], B = i[13], S = i[2], U = i[6], H = i[10], G = i[14], Z = i[3], j = i[7], ie = i[11], X = i[15];
|
|
6590
|
+
return r[0] = a * M + o * E + l * S + c * Z, r[4] = a * T + o * D + l * U + c * j, r[8] = a * R + o * A + l * H + c * ie, r[12] = a * w + o * B + l * G + c * X, r[1] = h * M + d * E + p * S + u * Z, r[5] = h * T + d * D + p * U + u * j, r[9] = h * R + d * A + p * H + u * ie, r[13] = h * w + d * B + p * G + u * X, r[2] = g * M + f * E + x * S + m * Z, r[6] = g * T + f * D + x * U + m * j, r[10] = g * R + f * A + x * H + m * ie, r[14] = g * w + f * B + x * G + m * X, r[3] = b * M + v * E + y * S + _ * Z, r[7] = b * T + v * D + y * U + _ * j, r[11] = b * R + v * A + y * H + _ * ie, r[15] = b * w + v * B + y * G + _ * X, this;
|
|
6591
6591
|
}
|
|
6592
6592
|
/**
|
|
6593
6593
|
* Multiplies every component of the matrix by the given scalar.
|
|
@@ -7010,7 +7010,7 @@ class Ie {
|
|
|
7010
7010
|
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;
|
|
7011
7011
|
}
|
|
7012
7012
|
}
|
|
7013
|
-
const Js = /* @__PURE__ */ new P(), Jn = /* @__PURE__ */ new
|
|
7013
|
+
const Js = /* @__PURE__ */ new P(), Jn = /* @__PURE__ */ new De(), Nx = /* @__PURE__ */ new P(0, 0, 0), Bx = /* @__PURE__ */ new P(1, 1, 1), Gi = /* @__PURE__ */ new P(), Qa = /* @__PURE__ */ new P(), An = /* @__PURE__ */ new P(), Vu = /* @__PURE__ */ new De(), Gu = /* @__PURE__ */ new qn();
|
|
7014
7014
|
class Bn {
|
|
7015
7015
|
/**
|
|
7016
7016
|
* Constructs a new euler instance.
|
|
@@ -7282,7 +7282,7 @@ class Zd {
|
|
|
7282
7282
|
}
|
|
7283
7283
|
}
|
|
7284
7284
|
let kx = 0;
|
|
7285
|
-
const Wu = /* @__PURE__ */ new P(), Qs = /* @__PURE__ */ new qn(), bi = /* @__PURE__ */ new
|
|
7285
|
+
const Wu = /* @__PURE__ */ new P(), Qs = /* @__PURE__ */ new qn(), bi = /* @__PURE__ */ new De(), eo = /* @__PURE__ */ new P(), $r = /* @__PURE__ */ new P(), Ux = /* @__PURE__ */ new P(), Ox = /* @__PURE__ */ new qn(), Xu = /* @__PURE__ */ new P(1, 0, 0), ju = /* @__PURE__ */ new P(0, 1, 0), qu = /* @__PURE__ */ new P(0, 0, 1), Zu = { type: "added" }, zx = { type: "removed" }, er = { type: "childadded", child: null }, dc = { type: "childremoved", child: null };
|
|
7286
7286
|
class Et extends zs {
|
|
7287
7287
|
/**
|
|
7288
7288
|
* Constructs a new 3D object.
|
|
@@ -7351,7 +7351,7 @@ class Et extends zs {
|
|
|
7351
7351
|
* @type {Matrix4}
|
|
7352
7352
|
*/
|
|
7353
7353
|
modelViewMatrix: {
|
|
7354
|
-
value: new
|
|
7354
|
+
value: new De()
|
|
7355
7355
|
},
|
|
7356
7356
|
/**
|
|
7357
7357
|
* Represents the object's normal matrix.
|
|
@@ -7362,7 +7362,7 @@ class Et extends zs {
|
|
|
7362
7362
|
normalMatrix: {
|
|
7363
7363
|
value: new Ke()
|
|
7364
7364
|
}
|
|
7365
|
-
}), this.matrix = new
|
|
7365
|
+
}), this.matrix = new De(), this.matrixWorld = new De(), this.matrixAutoUpdate = Et.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = Et.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new Zd(), 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 = {};
|
|
7366
7366
|
}
|
|
7367
7367
|
/**
|
|
7368
7368
|
* A callback that is executed immediately before a 3D object is rendered to a shadow map.
|
|
@@ -8428,7 +8428,7 @@ class Fe {
|
|
|
8428
8428
|
* @param {string} [colorSpace=SRGBColorSpace] - The color space.
|
|
8429
8429
|
* @return {Color} A reference to this color.
|
|
8430
8430
|
*/
|
|
8431
|
-
setHex(e, t =
|
|
8431
|
+
setHex(e, t = Dt) {
|
|
8432
8432
|
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;
|
|
8433
8433
|
}
|
|
8434
8434
|
/**
|
|
@@ -8471,7 +8471,7 @@ class Fe {
|
|
|
8471
8471
|
* @param {string} [colorSpace=SRGBColorSpace] - The color space.
|
|
8472
8472
|
* @return {Color} A reference to this color.
|
|
8473
8473
|
*/
|
|
8474
|
-
setStyle(e, t =
|
|
8474
|
+
setStyle(e, t = Dt) {
|
|
8475
8475
|
function n(r) {
|
|
8476
8476
|
r !== void 0 && parseFloat(r) < 1 && He("Color: Alpha component of " + e + " will be ignored.");
|
|
8477
8477
|
}
|
|
@@ -8539,7 +8539,7 @@ class Fe {
|
|
|
8539
8539
|
* @param {string} [colorSpace=SRGBColorSpace] - The color space.
|
|
8540
8540
|
* @return {Color} A reference to this color.
|
|
8541
8541
|
*/
|
|
8542
|
-
setColorName(e, t =
|
|
8542
|
+
setColorName(e, t = Dt) {
|
|
8543
8543
|
const n = Hm[e.toLowerCase()];
|
|
8544
8544
|
return n !== void 0 ? this.setHex(n, t) : He("Color: Unknown color " + e), this;
|
|
8545
8545
|
}
|
|
@@ -8602,7 +8602,7 @@ class Fe {
|
|
|
8602
8602
|
* @param {string} [colorSpace=SRGBColorSpace] - The color space.
|
|
8603
8603
|
* @return {number} The hexadecimal value.
|
|
8604
8604
|
*/
|
|
8605
|
-
getHex(e =
|
|
8605
|
+
getHex(e = Dt) {
|
|
8606
8606
|
return st.workingToColorSpace(rn.copy(this), e), Math.round(qe(rn.r * 255, 0, 255)) * 65536 + Math.round(qe(rn.g * 255, 0, 255)) * 256 + Math.round(qe(rn.b * 255, 0, 255));
|
|
8607
8607
|
}
|
|
8608
8608
|
/**
|
|
@@ -8611,7 +8611,7 @@ class Fe {
|
|
|
8611
8611
|
* @param {string} [colorSpace=SRGBColorSpace] - The color space.
|
|
8612
8612
|
* @return {string} The hexadecimal value as a string.
|
|
8613
8613
|
*/
|
|
8614
|
-
getHexString(e =
|
|
8614
|
+
getHexString(e = Dt) {
|
|
8615
8615
|
return ("000000" + this.getHex(e).toString(16)).slice(-6);
|
|
8616
8616
|
}
|
|
8617
8617
|
/**
|
|
@@ -8662,10 +8662,10 @@ class Fe {
|
|
|
8662
8662
|
* @param {string} [colorSpace=SRGBColorSpace] - The color space.
|
|
8663
8663
|
* @return {string} The CSS representation of this color.
|
|
8664
8664
|
*/
|
|
8665
|
-
getStyle(e =
|
|
8665
|
+
getStyle(e = Dt) {
|
|
8666
8666
|
st.workingToColorSpace(rn.copy(this), e);
|
|
8667
8667
|
const t = rn.r, n = rn.g, i = rn.b;
|
|
8668
|
-
return e !==
|
|
8668
|
+
return e !== Dt ? `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(i * 255)})`;
|
|
8669
8669
|
}
|
|
8670
8670
|
/**
|
|
8671
8671
|
* Adds the given HSL values to this color's values.
|
|
@@ -8851,7 +8851,7 @@ class Fe {
|
|
|
8851
8851
|
const rn = /* @__PURE__ */ new Fe();
|
|
8852
8852
|
Fe.NAMES = Hm;
|
|
8853
8853
|
let Fx = 0;
|
|
8854
|
-
class
|
|
8854
|
+
class Dn extends zs {
|
|
8855
8855
|
/**
|
|
8856
8856
|
* Constructs a new material.
|
|
8857
8857
|
*/
|
|
@@ -9017,7 +9017,7 @@ class In extends zs {
|
|
|
9017
9017
|
e === !0 && this.version++;
|
|
9018
9018
|
}
|
|
9019
9019
|
}
|
|
9020
|
-
class Vt extends
|
|
9020
|
+
class Vt extends Dn {
|
|
9021
9021
|
/**
|
|
9022
9022
|
* Constructs a new mesh basic material.
|
|
9023
9023
|
*
|
|
@@ -9460,7 +9460,7 @@ class qt extends bt {
|
|
|
9460
9460
|
}
|
|
9461
9461
|
}
|
|
9462
9462
|
let Xx = 0;
|
|
9463
|
-
const Un = /* @__PURE__ */ new
|
|
9463
|
+
const Un = /* @__PURE__ */ new De(), yc = /* @__PURE__ */ new Et(), ir = /* @__PURE__ */ new P(), Pn = /* @__PURE__ */ new mt(), Kr = /* @__PURE__ */ new mt(), $t = /* @__PURE__ */ new P();
|
|
9464
9464
|
class gt extends zs {
|
|
9465
9465
|
/**
|
|
9466
9466
|
* Constructs a new geometry.
|
|
@@ -9783,8 +9783,8 @@ class gt extends zs {
|
|
|
9783
9783
|
const c = new P(), h = new P(), d = new P(), p = new he(), u = new he(), g = new he(), f = new P(), x = new P();
|
|
9784
9784
|
function m(R, w, E) {
|
|
9785
9785
|
c.fromBufferAttribute(n, R), h.fromBufferAttribute(n, w), d.fromBufferAttribute(n, E), p.fromBufferAttribute(r, R), u.fromBufferAttribute(r, w), g.fromBufferAttribute(r, E), h.sub(c), d.sub(c), u.sub(p), g.sub(p);
|
|
9786
|
-
const
|
|
9787
|
-
isFinite(
|
|
9786
|
+
const D = 1 / (u.x * g.y - g.x * u.y);
|
|
9787
|
+
isFinite(D) && (f.copy(h).multiplyScalar(g.y).addScaledVector(d, -u.y).multiplyScalar(D), x.copy(d).multiplyScalar(u.x).addScaledVector(h, -g.x).multiplyScalar(D), o[R].add(f), o[w].add(f), o[E].add(f), l[R].add(x), l[w].add(x), l[E].add(x));
|
|
9788
9788
|
}
|
|
9789
9789
|
let b = this.groups;
|
|
9790
9790
|
b.length === 0 && (b = [{
|
|
@@ -9792,8 +9792,8 @@ class gt extends zs {
|
|
|
9792
9792
|
count: e.count
|
|
9793
9793
|
}]);
|
|
9794
9794
|
for (let R = 0, w = b.length; R < w; ++R) {
|
|
9795
|
-
const E = b[R],
|
|
9796
|
-
for (let B =
|
|
9795
|
+
const E = b[R], D = E.start, A = E.count;
|
|
9796
|
+
for (let B = D, S = D + A; B < S; B += 3)
|
|
9797
9797
|
m(
|
|
9798
9798
|
e.getX(B + 0),
|
|
9799
9799
|
e.getX(B + 1),
|
|
@@ -9805,12 +9805,12 @@ class gt extends zs {
|
|
|
9805
9805
|
_.fromBufferAttribute(i, R), M.copy(_);
|
|
9806
9806
|
const w = o[R];
|
|
9807
9807
|
v.copy(w), v.sub(_.multiplyScalar(_.dot(w))).normalize(), y.crossVectors(M, w);
|
|
9808
|
-
const
|
|
9809
|
-
a.setXYZW(R, v.x, v.y, v.z,
|
|
9808
|
+
const D = y.dot(l[R]) < 0 ? -1 : 1;
|
|
9809
|
+
a.setXYZW(R, v.x, v.y, v.z, D);
|
|
9810
9810
|
}
|
|
9811
9811
|
for (let R = 0, w = b.length; R < w; ++R) {
|
|
9812
|
-
const E = b[R],
|
|
9813
|
-
for (let B =
|
|
9812
|
+
const E = b[R], D = E.start, A = E.count;
|
|
9813
|
+
for (let B = D, S = D + A; B < S; B += 3)
|
|
9814
9814
|
T(e.getX(B + 0)), T(e.getX(B + 1)), T(e.getX(B + 2));
|
|
9815
9815
|
}
|
|
9816
9816
|
}
|
|
@@ -9990,7 +9990,7 @@ class gt extends zs {
|
|
|
9990
9990
|
this.dispatchEvent({ type: "dispose" });
|
|
9991
9991
|
}
|
|
9992
9992
|
}
|
|
9993
|
-
const $u = /* @__PURE__ */ new
|
|
9993
|
+
const $u = /* @__PURE__ */ new De(), gs = /* @__PURE__ */ new cs(), so = /* @__PURE__ */ new fi(), Ku = /* @__PURE__ */ new P(), ro = /* @__PURE__ */ new P(), ao = /* @__PURE__ */ new P(), oo = /* @__PURE__ */ new P(), _c = /* @__PURE__ */ new P(), lo = /* @__PURE__ */ new P(), Ju = /* @__PURE__ */ new P(), co = /* @__PURE__ */ new P();
|
|
9994
9994
|
class at extends Et {
|
|
9995
9995
|
/**
|
|
9996
9996
|
* Constructs a new mesh.
|
|
@@ -10144,11 +10144,11 @@ class rs extends gt {
|
|
|
10144
10144
|
let p = 0, u = 0;
|
|
10145
10145
|
g("z", "y", "x", -1, -1, n, t, e, a, r, 0), g("z", "y", "x", 1, -1, n, t, -e, a, r, 1), g("x", "z", "y", 1, 1, e, n, t, i, a, 2), g("x", "z", "y", 1, -1, e, n, -t, i, a, 3), g("x", "y", "z", 1, -1, e, t, n, i, r, 4), g("x", "y", "z", -1, -1, e, t, -n, i, r, 5), this.setIndex(l), this.setAttribute("position", new qt(c, 3)), this.setAttribute("normal", new qt(h, 3)), this.setAttribute("uv", new qt(d, 2));
|
|
10146
10146
|
function g(f, x, m, b, v, y, _, M, T, R, w) {
|
|
10147
|
-
const E = y / T,
|
|
10147
|
+
const E = y / T, D = _ / R, A = y / 2, B = _ / 2, S = M / 2, U = T + 1, H = R + 1;
|
|
10148
10148
|
let G = 0, Z = 0;
|
|
10149
10149
|
const j = new P();
|
|
10150
10150
|
for (let ie = 0; ie < H; ie++) {
|
|
10151
|
-
const X = ie *
|
|
10151
|
+
const X = ie * D - B;
|
|
10152
10152
|
for (let $ = 0; $ < U; $++) {
|
|
10153
10153
|
const ue = $ * E - A;
|
|
10154
10154
|
j[f] = ue * b, j[x] = X * v, j[m] = S, c.push(j.x, j.y, j.z), j[f] = 0, j[x] = 0, j[m] = M > 0 ? 1 : -1, h.push(j.x, j.y, j.z), d.push($ / T), d.push(1 - ie / R), G += 1;
|
|
@@ -10212,7 +10212,7 @@ var Zx = `void main() {
|
|
|
10212
10212
|
}`, Yx = `void main() {
|
|
10213
10213
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
10214
10214
|
}`;
|
|
10215
|
-
class Nt extends
|
|
10215
|
+
class Nt extends Dn {
|
|
10216
10216
|
/**
|
|
10217
10217
|
* Constructs a new shader material.
|
|
10218
10218
|
*
|
|
@@ -10279,7 +10279,7 @@ class Xm extends Et {
|
|
|
10279
10279
|
* Constructs a new camera.
|
|
10280
10280
|
*/
|
|
10281
10281
|
constructor() {
|
|
10282
|
-
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new
|
|
10282
|
+
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new De(), this.projectionMatrix = new De(), this.projectionMatrixInverse = new De(), this.coordinateSystem = di, this._reversedDepth = !1;
|
|
10283
10283
|
}
|
|
10284
10284
|
/**
|
|
10285
10285
|
* The flag that indicates whether the camera uses a reversed depth buffer.
|
|
@@ -10553,7 +10553,7 @@ class jm extends Wt {
|
|
|
10553
10553
|
* @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
|
|
10554
10554
|
* @param {string} [colorSpace=NoColorSpace] - The color space value.
|
|
10555
10555
|
*/
|
|
10556
|
-
constructor(e = [], t =
|
|
10556
|
+
constructor(e = [], t = Dr, n, i, r, a, o, l, c, h) {
|
|
10557
10557
|
super(e, t, n, i, r, a, o, l, c, h), this.isCubeTexture = !0, this.flipY = !1;
|
|
10558
10558
|
}
|
|
10559
10559
|
/**
|
|
@@ -11193,7 +11193,7 @@ class kr {
|
|
|
11193
11193
|
};
|
|
11194
11194
|
}
|
|
11195
11195
|
}
|
|
11196
|
-
class Zm extends
|
|
11196
|
+
class Zm extends Dn {
|
|
11197
11197
|
/**
|
|
11198
11198
|
* Constructs a new sprite material.
|
|
11199
11199
|
*
|
|
@@ -11211,7 +11211,7 @@ class Zm extends In {
|
|
|
11211
11211
|
}
|
|
11212
11212
|
}
|
|
11213
11213
|
let ar;
|
|
11214
|
-
const Jr = /* @__PURE__ */ new P(), or = /* @__PURE__ */ new P(), lr = /* @__PURE__ */ new P(), cr = /* @__PURE__ */ new he(), Qr = /* @__PURE__ */ new he(), Ym = /* @__PURE__ */ new
|
|
11214
|
+
const Jr = /* @__PURE__ */ new P(), or = /* @__PURE__ */ new P(), lr = /* @__PURE__ */ new P(), cr = /* @__PURE__ */ new he(), Qr = /* @__PURE__ */ new he(), Ym = /* @__PURE__ */ new De(), uo = /* @__PURE__ */ new P(), ea = /* @__PURE__ */ new P(), po = /* @__PURE__ */ new P(), tp = /* @__PURE__ */ new he(), wc = /* @__PURE__ */ new he(), np = /* @__PURE__ */ new he();
|
|
11215
11215
|
class ld extends Et {
|
|
11216
11216
|
/**
|
|
11217
11217
|
* Constructs a new sprite.
|
|
@@ -11279,7 +11279,7 @@ class ld extends Et {
|
|
|
11279
11279
|
function fo(s, e, t, n, i, r) {
|
|
11280
11280
|
cr.subVectors(s, t).addScalar(0.5).multiply(n), i !== void 0 ? (Qr.x = r * cr.x - i * cr.y, Qr.y = i * cr.x + r * cr.y) : Qr.copy(cr), s.copy(e), s.x += Qr.x, s.y += Qr.y, s.applyMatrix4(Ym);
|
|
11281
11281
|
}
|
|
11282
|
-
const ip = /* @__PURE__ */ new P(), sp = /* @__PURE__ */ new tt(), rp = /* @__PURE__ */ new tt(), Qx = /* @__PURE__ */ new P(), ap = /* @__PURE__ */ new
|
|
11282
|
+
const ip = /* @__PURE__ */ new P(), sp = /* @__PURE__ */ new tt(), rp = /* @__PURE__ */ new tt(), Qx = /* @__PURE__ */ new P(), ap = /* @__PURE__ */ new De(), mo = /* @__PURE__ */ new P(), Sc = /* @__PURE__ */ new fi(), op = /* @__PURE__ */ new De(), Ec = /* @__PURE__ */ new cs();
|
|
11283
11283
|
class e1 extends at {
|
|
11284
11284
|
/**
|
|
11285
11285
|
* Constructs a new skinned mesh.
|
|
@@ -11288,7 +11288,7 @@ class e1 extends at {
|
|
|
11288
11288
|
* @param {Material|Array<Material>} [material] - The mesh material.
|
|
11289
11289
|
*/
|
|
11290
11290
|
constructor(e, t) {
|
|
11291
|
-
super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Lu, this.bindMatrix = new
|
|
11291
|
+
super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = Lu, this.bindMatrix = new De(), this.bindMatrixInverse = new De(), this.boundingBox = null, this.boundingSphere = null;
|
|
11292
11292
|
}
|
|
11293
11293
|
/**
|
|
11294
11294
|
* Computes the bounding box of the skinned mesh, and updates {@link SkinnedMesh#boundingBox}.
|
|
@@ -11408,7 +11408,7 @@ class Fs extends Wt {
|
|
|
11408
11408
|
super(null, a, o, l, c, h, i, r, d, p), this.isDataTexture = !0, this.image = { data: e, width: t, height: n }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
11409
11409
|
}
|
|
11410
11410
|
}
|
|
11411
|
-
const lp = /* @__PURE__ */ new
|
|
11411
|
+
const lp = /* @__PURE__ */ new De(), t1 = /* @__PURE__ */ new De();
|
|
11412
11412
|
class $d {
|
|
11413
11413
|
/**
|
|
11414
11414
|
* Constructs a new skeleton.
|
|
@@ -11432,7 +11432,7 @@ class $d {
|
|
|
11432
11432
|
else if (e.length !== t.length) {
|
|
11433
11433
|
He("Skeleton: Number of inverse bone matrices does not match amount of bones."), this.boneInverses = [];
|
|
11434
11434
|
for (let n = 0, i = this.bones.length; n < i; n++)
|
|
11435
|
-
this.boneInverses.push(new
|
|
11435
|
+
this.boneInverses.push(new De());
|
|
11436
11436
|
}
|
|
11437
11437
|
}
|
|
11438
11438
|
/**
|
|
@@ -11442,7 +11442,7 @@ class $d {
|
|
|
11442
11442
|
calculateInverses() {
|
|
11443
11443
|
this.boneInverses.length = 0;
|
|
11444
11444
|
for (let e = 0, t = this.bones.length; e < t; e++) {
|
|
11445
|
-
const n = new
|
|
11445
|
+
const n = new De();
|
|
11446
11446
|
this.bones[e] && n.copy(this.bones[e].matrixWorld).invert(), this.boneInverses.push(n);
|
|
11447
11447
|
}
|
|
11448
11448
|
}
|
|
@@ -11524,7 +11524,7 @@ class $d {
|
|
|
11524
11524
|
for (let n = 0, i = e.bones.length; n < i; n++) {
|
|
11525
11525
|
const r = e.bones[n];
|
|
11526
11526
|
let a = t[r];
|
|
11527
|
-
a === void 0 && (He("Skeleton: No bone found with UUID:", r), a = new $m()), this.bones.push(a), this.boneInverses.push(new
|
|
11527
|
+
a === void 0 && (He("Skeleton: No bone found with UUID:", r), a = new $m()), this.bones.push(a), this.boneInverses.push(new De().fromArray(e.boneInverses[n]));
|
|
11528
11528
|
}
|
|
11529
11529
|
return this.init(), this;
|
|
11530
11530
|
}
|
|
@@ -11575,7 +11575,7 @@ class Rl extends bt {
|
|
|
11575
11575
|
return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
|
|
11576
11576
|
}
|
|
11577
11577
|
}
|
|
11578
|
-
const hr = /* @__PURE__ */ new
|
|
11578
|
+
const hr = /* @__PURE__ */ new De(), cp = /* @__PURE__ */ new De(), go = [], hp = /* @__PURE__ */ new mt(), n1 = /* @__PURE__ */ new De(), ta = /* @__PURE__ */ new at(), na = /* @__PURE__ */ new fi();
|
|
11579
11579
|
class Ot extends at {
|
|
11580
11580
|
/**
|
|
11581
11581
|
* Constructs a new instanced mesh.
|
|
@@ -11704,7 +11704,7 @@ class Ot extends at {
|
|
|
11704
11704
|
}
|
|
11705
11705
|
}
|
|
11706
11706
|
const Cc = /* @__PURE__ */ new P(), i1 = /* @__PURE__ */ new P(), s1 = /* @__PURE__ */ new Ke();
|
|
11707
|
-
class
|
|
11707
|
+
class It {
|
|
11708
11708
|
/**
|
|
11709
11709
|
* Constructs a new plane.
|
|
11710
11710
|
*
|
|
@@ -11926,7 +11926,7 @@ class Kd {
|
|
|
11926
11926
|
* @param {Plane} [p4] - The fifth plane that encloses the frustum.
|
|
11927
11927
|
* @param {Plane} [p5] - The sixth plane that encloses the frustum.
|
|
11928
11928
|
*/
|
|
11929
|
-
constructor(e = new
|
|
11929
|
+
constructor(e = new It(), t = new It(), n = new It(), i = new It(), r = new It(), a = new It()) {
|
|
11930
11930
|
this.planes = [e, t, n, i, r, a];
|
|
11931
11931
|
}
|
|
11932
11932
|
/**
|
|
@@ -12054,7 +12054,7 @@ class Kd {
|
|
|
12054
12054
|
return new this.constructor().copy(this);
|
|
12055
12055
|
}
|
|
12056
12056
|
}
|
|
12057
|
-
class Hs extends
|
|
12057
|
+
class Hs extends Dn {
|
|
12058
12058
|
/**
|
|
12059
12059
|
* Constructs a new line basic material.
|
|
12060
12060
|
*
|
|
@@ -12071,7 +12071,7 @@ class Hs extends In {
|
|
|
12071
12071
|
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;
|
|
12072
12072
|
}
|
|
12073
12073
|
}
|
|
12074
|
-
const Ll = /* @__PURE__ */ new P(),
|
|
12074
|
+
const Ll = /* @__PURE__ */ new P(), Dl = /* @__PURE__ */ new P(), dp = /* @__PURE__ */ new De(), ia = /* @__PURE__ */ new cs(), vo = /* @__PURE__ */ new fi(), Tc = /* @__PURE__ */ new P(), up = /* @__PURE__ */ new P();
|
|
12075
12075
|
class hs extends Et {
|
|
12076
12076
|
/**
|
|
12077
12077
|
* Constructs a new line.
|
|
@@ -12097,7 +12097,7 @@ class hs extends Et {
|
|
|
12097
12097
|
if (e.index === null) {
|
|
12098
12098
|
const t = e.attributes.position, n = [0];
|
|
12099
12099
|
for (let i = 1, r = t.count; i < r; i++)
|
|
12100
|
-
Ll.fromBufferAttribute(t, i - 1),
|
|
12100
|
+
Ll.fromBufferAttribute(t, i - 1), Dl.fromBufferAttribute(t, i), n[i] = n[i - 1], n[i] += Ll.distanceTo(Dl);
|
|
12101
12101
|
e.setAttribute("lineDistance", new qt(n, 1));
|
|
12102
12102
|
} else
|
|
12103
12103
|
He("Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
|
|
@@ -12156,7 +12156,7 @@ class hs extends Et {
|
|
|
12156
12156
|
}
|
|
12157
12157
|
function bo(s, e, t, n, i, r, a) {
|
|
12158
12158
|
const o = s.geometry.attributes.position;
|
|
12159
|
-
if (Ll.fromBufferAttribute(o, i),
|
|
12159
|
+
if (Ll.fromBufferAttribute(o, i), Dl.fromBufferAttribute(o, r), t.distanceSqToSegment(Ll, Dl, Tc, up) > n) return;
|
|
12160
12160
|
Tc.applyMatrix4(s.matrixWorld);
|
|
12161
12161
|
const c = e.ray.origin.distanceTo(Tc);
|
|
12162
12162
|
if (!(c < e.near || c > e.far))
|
|
@@ -12206,7 +12206,7 @@ class a1 extends hs {
|
|
|
12206
12206
|
super(e, t), this.isLineLoop = !0, this.type = "LineLoop";
|
|
12207
12207
|
}
|
|
12208
12208
|
}
|
|
12209
|
-
class Jm extends
|
|
12209
|
+
class Jm extends Dn {
|
|
12210
12210
|
/**
|
|
12211
12211
|
* Constructs a new points material.
|
|
12212
12212
|
*
|
|
@@ -12223,7 +12223,7 @@ class Jm extends In {
|
|
|
12223
12223
|
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;
|
|
12224
12224
|
}
|
|
12225
12225
|
}
|
|
12226
|
-
const mp = /* @__PURE__ */ new
|
|
12226
|
+
const mp = /* @__PURE__ */ new De(), cd = /* @__PURE__ */ new cs(), yo = /* @__PURE__ */ new fi(), _o = /* @__PURE__ */ new P();
|
|
12227
12227
|
class Qm extends Et {
|
|
12228
12228
|
/**
|
|
12229
12229
|
* Constructs a new point cloud.
|
|
@@ -12520,7 +12520,7 @@ class mi {
|
|
|
12520
12520
|
* @return {{tangents: Array<Vector3>, normals: Array<Vector3>, binormals: Array<Vector3>}} The Frenet Frames.
|
|
12521
12521
|
*/
|
|
12522
12522
|
computeFrenetFrames(e, t = !1) {
|
|
12523
|
-
const n = new P(), i = [], r = [], a = [], o = new P(), l = new
|
|
12523
|
+
const n = new P(), i = [], r = [], a = [], o = new P(), l = new De();
|
|
12524
12524
|
for (let u = 0; u <= e; u++) {
|
|
12525
12525
|
const g = u / e;
|
|
12526
12526
|
i[u] = this.getTangentAt(g, new P());
|
|
@@ -13536,7 +13536,7 @@ function C1(s, e, t, n) {
|
|
|
13536
13536
|
const i = [];
|
|
13537
13537
|
for (let r = 0, a = e.length; r < a; r++) {
|
|
13538
13538
|
const o = e[r] * n, l = r < a - 1 ? e[r + 1] * n : s.length, c = a0(s, o, l, n, !1);
|
|
13539
|
-
c === c.next && (c.steiner = !0), i.push(
|
|
13539
|
+
c === c.next && (c.steiner = !0), i.push(I1(c));
|
|
13540
13540
|
}
|
|
13541
13541
|
i.sort(T1);
|
|
13542
13542
|
for (let r = 0; r < i.length; r++)
|
|
@@ -13593,9 +13593,9 @@ function L1(s, e, t, n) {
|
|
|
13593
13593
|
do
|
|
13594
13594
|
i.z === 0 && (i.z = dd(i.x, i.y, e, t, n)), i.prevZ = i.prev, i.nextZ = i.next, i = i.next;
|
|
13595
13595
|
while (i !== s);
|
|
13596
|
-
i.prevZ.nextZ = null, i.prevZ = null,
|
|
13596
|
+
i.prevZ.nextZ = null, i.prevZ = null, D1(i);
|
|
13597
13597
|
}
|
|
13598
|
-
function
|
|
13598
|
+
function D1(s) {
|
|
13599
13599
|
let e, t = 1;
|
|
13600
13600
|
do {
|
|
13601
13601
|
let n = s, i;
|
|
@@ -13618,7 +13618,7 @@ function I1(s) {
|
|
|
13618
13618
|
function dd(s, e, t, n, i) {
|
|
13619
13619
|
return s = (s - t) * i | 0, e = (e - n) * i | 0, s = (s | s << 8) & 16711935, s = (s | s << 4) & 252645135, s = (s | s << 2) & 858993459, s = (s | s << 1) & 1431655765, e = (e | e << 8) & 16711935, e = (e | e << 4) & 252645135, e = (e | e << 2) & 858993459, e = (e | e << 1) & 1431655765, s | e << 1;
|
|
13620
13620
|
}
|
|
13621
|
-
function
|
|
13621
|
+
function I1(s) {
|
|
13622
13622
|
let e = s, t = s;
|
|
13623
13623
|
do
|
|
13624
13624
|
(e.x < t.x || e.x === t.x && e.y < t.y) && (t = e), e = e.next;
|
|
@@ -13799,12 +13799,12 @@ class eu extends gt {
|
|
|
13799
13799
|
m && (v = m.getSpacedPoints(h), y = !0, p = !1, _ = m.computeFrenetFrames(h, !1), M = new P(), T = new P(), R = new P()), p || (x = 0, u = 0, g = 0, f = 0);
|
|
13800
13800
|
const w = o.extractPoints(c);
|
|
13801
13801
|
let E = w.shape;
|
|
13802
|
-
const
|
|
13802
|
+
const D = w.holes;
|
|
13803
13803
|
if (!Sr.isClockWise(E)) {
|
|
13804
13804
|
E = E.reverse();
|
|
13805
|
-
for (let C = 0,
|
|
13806
|
-
const W =
|
|
13807
|
-
Sr.isClockWise(W) && (
|
|
13805
|
+
for (let C = 0, I = D.length; C < I; C++) {
|
|
13806
|
+
const W = D[C];
|
|
13807
|
+
Sr.isClockWise(W) && (D[C] = W.reverse());
|
|
13808
13808
|
}
|
|
13809
13809
|
}
|
|
13810
13810
|
function B(C) {
|
|
@@ -13824,22 +13824,22 @@ class eu extends gt {
|
|
|
13824
13824
|
O = ee;
|
|
13825
13825
|
}
|
|
13826
13826
|
}
|
|
13827
|
-
B(E),
|
|
13828
|
-
const S =
|
|
13827
|
+
B(E), D.forEach(B);
|
|
13828
|
+
const S = D.length, U = E;
|
|
13829
13829
|
for (let C = 0; C < S; C++) {
|
|
13830
|
-
const
|
|
13831
|
-
E = E.concat(
|
|
13830
|
+
const I = D[C];
|
|
13831
|
+
E = E.concat(I);
|
|
13832
13832
|
}
|
|
13833
|
-
function H(C,
|
|
13834
|
-
return
|
|
13833
|
+
function H(C, I, W) {
|
|
13834
|
+
return I || et("ExtrudeGeometry: vec does not exist"), C.clone().addScaledVector(I, W);
|
|
13835
13835
|
}
|
|
13836
13836
|
const G = E.length;
|
|
13837
|
-
function Z(C,
|
|
13837
|
+
function Z(C, I, W) {
|
|
13838
13838
|
let O, k, F;
|
|
13839
|
-
const ee = C.x -
|
|
13839
|
+
const ee = C.x - I.x, J = C.y - I.y, q = W.x - C.x, N = W.y - C.y, L = ee * ee + J * J, V = ee * N - J * q;
|
|
13840
13840
|
if (Math.abs(V) > Number.EPSILON) {
|
|
13841
|
-
const K = Math.sqrt(L), le = Math.sqrt(q * q + N * N), te =
|
|
13842
|
-
O = te + ee *
|
|
13841
|
+
const K = Math.sqrt(L), le = Math.sqrt(q * q + N * N), te = I.x - J / K, Te = I.y + ee / K, ye = W.x - N / le, Re = W.y + q / le, Ie = ((ye - te) * N - (Re - Te) * q) / (ee * N - J * q);
|
|
13842
|
+
O = te + ee * Ie - C.x, k = Te + J * Ie - C.y;
|
|
13843
13843
|
const de = O * O + k * k;
|
|
13844
13844
|
if (de <= 2)
|
|
13845
13845
|
return new he(O, k);
|
|
@@ -13851,12 +13851,12 @@ class eu extends gt {
|
|
|
13851
13851
|
return new he(O / F, k / F);
|
|
13852
13852
|
}
|
|
13853
13853
|
const j = [];
|
|
13854
|
-
for (let C = 0,
|
|
13855
|
-
W ===
|
|
13854
|
+
for (let C = 0, I = U.length, W = I - 1, O = C + 1; C < I; C++, W++, O++)
|
|
13855
|
+
W === I && (W = 0), O === I && (O = 0), j[C] = Z(U[C], U[W], U[O]);
|
|
13856
13856
|
const ie = [];
|
|
13857
13857
|
let X, $ = j.concat();
|
|
13858
|
-
for (let C = 0,
|
|
13859
|
-
const W =
|
|
13858
|
+
for (let C = 0, I = S; C < I; C++) {
|
|
13859
|
+
const W = D[C];
|
|
13860
13860
|
X = [];
|
|
13861
13861
|
for (let O = 0, k = W.length, F = k - 1, ee = O + 1; O < k; O++, F++, ee++)
|
|
13862
13862
|
F === k && (F = 0), ee === k && (ee = 0), X[O] = Z(W[O], W[F], W[ee]);
|
|
@@ -13864,9 +13864,9 @@ class eu extends gt {
|
|
|
13864
13864
|
}
|
|
13865
13865
|
let ue;
|
|
13866
13866
|
if (x === 0)
|
|
13867
|
-
ue = Sr.triangulateShape(U,
|
|
13867
|
+
ue = Sr.triangulateShape(U, D);
|
|
13868
13868
|
else {
|
|
13869
|
-
const C = [],
|
|
13869
|
+
const C = [], I = [];
|
|
13870
13870
|
for (let W = 0; W < x; W++) {
|
|
13871
13871
|
const O = W / x, k = u * Math.cos(O * Math.PI / 2), F = g * Math.sin(O * Math.PI / 2) + f;
|
|
13872
13872
|
for (let ee = 0, J = U.length; ee < J; ee++) {
|
|
@@ -13874,36 +13874,36 @@ class eu extends gt {
|
|
|
13874
13874
|
be(q.x, q.y, -k), O === 0 && C.push(q);
|
|
13875
13875
|
}
|
|
13876
13876
|
for (let ee = 0, J = S; ee < J; ee++) {
|
|
13877
|
-
const q =
|
|
13877
|
+
const q = D[ee];
|
|
13878
13878
|
X = ie[ee];
|
|
13879
13879
|
const N = [];
|
|
13880
13880
|
for (let L = 0, V = q.length; L < V; L++) {
|
|
13881
13881
|
const K = H(q[L], X[L], F);
|
|
13882
13882
|
be(K.x, K.y, -k), O === 0 && N.push(K);
|
|
13883
13883
|
}
|
|
13884
|
-
O === 0 &&
|
|
13884
|
+
O === 0 && I.push(N);
|
|
13885
13885
|
}
|
|
13886
13886
|
}
|
|
13887
|
-
ue = Sr.triangulateShape(C,
|
|
13887
|
+
ue = Sr.triangulateShape(C, I);
|
|
13888
13888
|
}
|
|
13889
13889
|
const pe = ue.length, fe = g + f;
|
|
13890
13890
|
for (let C = 0; C < G; C++) {
|
|
13891
|
-
const
|
|
13892
|
-
y ? (T.copy(_.normals[0]).multiplyScalar(
|
|
13891
|
+
const I = p ? H(E[C], $[C], fe) : E[C];
|
|
13892
|
+
y ? (T.copy(_.normals[0]).multiplyScalar(I.x), M.copy(_.binormals[0]).multiplyScalar(I.y), R.copy(v[0]).add(T).add(M), be(R.x, R.y, R.z)) : be(I.x, I.y, 0);
|
|
13893
13893
|
}
|
|
13894
13894
|
for (let C = 1; C <= h; C++)
|
|
13895
|
-
for (let
|
|
13896
|
-
const W = p ? H(E[
|
|
13895
|
+
for (let I = 0; I < G; I++) {
|
|
13896
|
+
const W = p ? H(E[I], $[I], fe) : E[I];
|
|
13897
13897
|
y ? (T.copy(_.normals[C]).multiplyScalar(W.x), M.copy(_.binormals[C]).multiplyScalar(W.y), R.copy(v[C]).add(T).add(M), be(R.x, R.y, R.z)) : be(W.x, W.y, d / h * C);
|
|
13898
13898
|
}
|
|
13899
13899
|
for (let C = x - 1; C >= 0; C--) {
|
|
13900
|
-
const
|
|
13900
|
+
const I = C / x, W = u * Math.cos(I * Math.PI / 2), O = g * Math.sin(I * Math.PI / 2) + f;
|
|
13901
13901
|
for (let k = 0, F = U.length; k < F; k++) {
|
|
13902
13902
|
const ee = H(U[k], j[k], O);
|
|
13903
13903
|
be(ee.x, ee.y, d + W);
|
|
13904
13904
|
}
|
|
13905
|
-
for (let k = 0, F =
|
|
13906
|
-
const ee =
|
|
13905
|
+
for (let k = 0, F = D.length; k < F; k++) {
|
|
13906
|
+
const ee = D[k];
|
|
13907
13907
|
X = ie[k];
|
|
13908
13908
|
for (let J = 0, q = ee.length; J < q; J++) {
|
|
13909
13909
|
const N = H(ee[J], X[J], O);
|
|
@@ -13915,23 +13915,23 @@ class eu extends gt {
|
|
|
13915
13915
|
function se() {
|
|
13916
13916
|
const C = i.length / 3;
|
|
13917
13917
|
if (p) {
|
|
13918
|
-
let
|
|
13918
|
+
let I = 0, W = G * I;
|
|
13919
13919
|
for (let O = 0; O < pe; O++) {
|
|
13920
13920
|
const k = ue[O];
|
|
13921
13921
|
Se(k[2] + W, k[1] + W, k[0] + W);
|
|
13922
13922
|
}
|
|
13923
|
-
|
|
13923
|
+
I = h + x * 2, W = G * I;
|
|
13924
13924
|
for (let O = 0; O < pe; O++) {
|
|
13925
13925
|
const k = ue[O];
|
|
13926
13926
|
Se(k[0] + W, k[1] + W, k[2] + W);
|
|
13927
13927
|
}
|
|
13928
13928
|
} else {
|
|
13929
|
-
for (let
|
|
13930
|
-
const W = ue[
|
|
13929
|
+
for (let I = 0; I < pe; I++) {
|
|
13930
|
+
const W = ue[I];
|
|
13931
13931
|
Se(W[2], W[1], W[0]);
|
|
13932
13932
|
}
|
|
13933
|
-
for (let
|
|
13934
|
-
const W = ue[
|
|
13933
|
+
for (let I = 0; I < pe; I++) {
|
|
13934
|
+
const W = ue[I];
|
|
13935
13935
|
Se(W[0] + G * h, W[1] + G * h, W[2] + G * h);
|
|
13936
13936
|
}
|
|
13937
13937
|
}
|
|
@@ -13939,36 +13939,36 @@ class eu extends gt {
|
|
|
13939
13939
|
}
|
|
13940
13940
|
function ce() {
|
|
13941
13941
|
const C = i.length / 3;
|
|
13942
|
-
let
|
|
13943
|
-
me(U,
|
|
13944
|
-
for (let W = 0, O =
|
|
13945
|
-
const k =
|
|
13946
|
-
me(k,
|
|
13942
|
+
let I = 0;
|
|
13943
|
+
me(U, I), I += U.length;
|
|
13944
|
+
for (let W = 0, O = D.length; W < O; W++) {
|
|
13945
|
+
const k = D[W];
|
|
13946
|
+
me(k, I), I += k.length;
|
|
13947
13947
|
}
|
|
13948
13948
|
n.addGroup(C, i.length / 3 - C, 1);
|
|
13949
13949
|
}
|
|
13950
|
-
function me(C,
|
|
13950
|
+
function me(C, I) {
|
|
13951
13951
|
let W = C.length;
|
|
13952
13952
|
for (; --W >= 0; ) {
|
|
13953
13953
|
const O = W;
|
|
13954
13954
|
let k = W - 1;
|
|
13955
13955
|
k < 0 && (k = C.length - 1);
|
|
13956
13956
|
for (let F = 0, ee = h + x * 2; F < ee; F++) {
|
|
13957
|
-
const J = G * F, q = G * (F + 1), N =
|
|
13957
|
+
const J = G * F, q = G * (F + 1), N = I + O + J, L = I + k + J, V = I + k + q, K = I + O + q;
|
|
13958
13958
|
Be(N, L, V, K);
|
|
13959
13959
|
}
|
|
13960
13960
|
}
|
|
13961
13961
|
}
|
|
13962
|
-
function be(C,
|
|
13963
|
-
l.push(C), l.push(
|
|
13962
|
+
function be(C, I, W) {
|
|
13963
|
+
l.push(C), l.push(I), l.push(W);
|
|
13964
13964
|
}
|
|
13965
|
-
function Se(C,
|
|
13966
|
-
$e(C), $e(
|
|
13965
|
+
function Se(C, I, W) {
|
|
13966
|
+
$e(C), $e(I), $e(W);
|
|
13967
13967
|
const O = i.length / 3, k = b.generateTopUV(n, i, O - 3, O - 2, O - 1);
|
|
13968
13968
|
ke(k[0]), ke(k[1]), ke(k[2]);
|
|
13969
13969
|
}
|
|
13970
|
-
function Be(C,
|
|
13971
|
-
$e(C), $e(
|
|
13970
|
+
function Be(C, I, W, O) {
|
|
13971
|
+
$e(C), $e(I), $e(O), $e(I), $e(W), $e(O);
|
|
13972
13972
|
const k = i.length / 3, F = b.generateSideWallUV(n, i, k - 6, k - 3, k - 2, k - 1);
|
|
13973
13973
|
ke(F[0]), ke(F[1]), ke(F[3]), ke(F[1]), ke(F[2]), ke(F[3]);
|
|
13974
13974
|
}
|
|
@@ -14154,7 +14154,7 @@ class H1 extends Nt {
|
|
|
14154
14154
|
super(e), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
|
|
14155
14155
|
}
|
|
14156
14156
|
}
|
|
14157
|
-
class as extends
|
|
14157
|
+
class as extends Dn {
|
|
14158
14158
|
/**
|
|
14159
14159
|
* Constructs a new mesh standard material.
|
|
14160
14160
|
*
|
|
@@ -14284,7 +14284,7 @@ class gi extends as {
|
|
|
14284
14284
|
}, this.anisotropy = e.anisotropy, this.anisotropyRotation = e.anisotropyRotation, this.anisotropyMap = e.anisotropyMap, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.dispersion = e.dispersion, this.ior = e.ior, this.iridescence = e.iridescence, this.iridescenceMap = e.iridescenceMap, this.iridescenceIOR = e.iridescenceIOR, this.iridescenceThicknessRange = [...e.iridescenceThicknessRange], this.iridescenceThicknessMap = e.iridescenceThicknessMap, this.sheen = e.sheen, this.sheenColor.copy(e.sheenColor), this.sheenColorMap = e.sheenColorMap, this.sheenRoughness = e.sheenRoughness, this.sheenRoughnessMap = e.sheenRoughnessMap, this.transmission = e.transmission, this.transmissionMap = e.transmissionMap, this.thickness = e.thickness, this.thicknessMap = e.thicknessMap, this.attenuationDistance = e.attenuationDistance, this.attenuationColor.copy(e.attenuationColor), this.specularIntensity = e.specularIntensity, this.specularIntensityMap = e.specularIntensityMap, this.specularColor.copy(e.specularColor), this.specularColorMap = e.specularColorMap, this;
|
|
14285
14285
|
}
|
|
14286
14286
|
}
|
|
14287
|
-
class h0 extends
|
|
14287
|
+
class h0 extends Dn {
|
|
14288
14288
|
/**
|
|
14289
14289
|
* Constructs a new mesh normal material.
|
|
14290
14290
|
*
|
|
@@ -14301,7 +14301,7 @@ class h0 extends In {
|
|
|
14301
14301
|
return super.copy(e), 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.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this;
|
|
14302
14302
|
}
|
|
14303
14303
|
}
|
|
14304
|
-
class V1 extends
|
|
14304
|
+
class V1 extends Dn {
|
|
14305
14305
|
/**
|
|
14306
14306
|
* Constructs a new mesh lambert material.
|
|
14307
14307
|
*
|
|
@@ -14318,7 +14318,7 @@ class V1 extends In {
|
|
|
14318
14318
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
14319
14319
|
}
|
|
14320
14320
|
}
|
|
14321
|
-
class G1 extends
|
|
14321
|
+
class G1 extends Dn {
|
|
14322
14322
|
/**
|
|
14323
14323
|
* Constructs a new mesh depth material.
|
|
14324
14324
|
*
|
|
@@ -14335,7 +14335,7 @@ class G1 extends In {
|
|
|
14335
14335
|
return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
|
|
14336
14336
|
}
|
|
14337
14337
|
}
|
|
14338
|
-
class W1 extends
|
|
14338
|
+
class W1 extends Dn {
|
|
14339
14339
|
/**
|
|
14340
14340
|
* Constructs a new mesh distance material.
|
|
14341
14341
|
*
|
|
@@ -14515,8 +14515,8 @@ class q1 extends Ha {
|
|
|
14515
14515
|
*/
|
|
14516
14516
|
constructor(e, t, n, i) {
|
|
14517
14517
|
super(e, t, n, i), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
|
|
14518
|
-
endingStart:
|
|
14519
|
-
endingEnd:
|
|
14518
|
+
endingStart: Du,
|
|
14519
|
+
endingEnd: Du
|
|
14520
14520
|
};
|
|
14521
14521
|
}
|
|
14522
14522
|
intervalChanged_(e, t, n) {
|
|
@@ -14524,7 +14524,7 @@ class q1 extends Ha {
|
|
|
14524
14524
|
let r = e - 2, a = e + 1, o = i[r], l = i[a];
|
|
14525
14525
|
if (o === void 0)
|
|
14526
14526
|
switch (this.getSettings_().endingStart) {
|
|
14527
|
-
case
|
|
14527
|
+
case Iu:
|
|
14528
14528
|
r = e, o = 2 * t - n;
|
|
14529
14529
|
break;
|
|
14530
14530
|
case Nu:
|
|
@@ -14535,7 +14535,7 @@ class q1 extends Ha {
|
|
|
14535
14535
|
}
|
|
14536
14536
|
if (l === void 0)
|
|
14537
14537
|
switch (this.getSettings_().endingEnd) {
|
|
14538
|
-
case
|
|
14538
|
+
case Iu:
|
|
14539
14539
|
a = e, l = 2 * n - t;
|
|
14540
14540
|
break;
|
|
14541
14541
|
case Nu:
|
|
@@ -14668,7 +14668,7 @@ class si {
|
|
|
14668
14668
|
case La:
|
|
14669
14669
|
t = this.InterpolantFactoryMethodDiscrete;
|
|
14670
14670
|
break;
|
|
14671
|
-
case
|
|
14671
|
+
case Da:
|
|
14672
14672
|
t = this.InterpolantFactoryMethodLinear;
|
|
14673
14673
|
break;
|
|
14674
14674
|
case tc:
|
|
@@ -14696,7 +14696,7 @@ class si {
|
|
|
14696
14696
|
case this.InterpolantFactoryMethodDiscrete:
|
|
14697
14697
|
return La;
|
|
14698
14698
|
case this.InterpolantFactoryMethodLinear:
|
|
14699
|
-
return
|
|
14699
|
+
return Da;
|
|
14700
14700
|
case this.InterpolantFactoryMethodSmooth:
|
|
14701
14701
|
return tc;
|
|
14702
14702
|
}
|
|
@@ -14852,7 +14852,7 @@ class si {
|
|
|
14852
14852
|
si.prototype.ValueTypeName = "";
|
|
14853
14853
|
si.prototype.TimeBufferType = Float32Array;
|
|
14854
14854
|
si.prototype.ValueBufferType = Float32Array;
|
|
14855
|
-
si.prototype.DefaultInterpolation =
|
|
14855
|
+
si.prototype.DefaultInterpolation = Da;
|
|
14856
14856
|
class Vr extends si {
|
|
14857
14857
|
/**
|
|
14858
14858
|
* Constructs a new boolean keyframe track.
|
|
@@ -15282,7 +15282,7 @@ function Q1(s) {
|
|
|
15282
15282
|
}
|
|
15283
15283
|
return e.parse !== void 0 ? e.parse(s) : new e(s.name, s.times, s.values, s.interpolation);
|
|
15284
15284
|
}
|
|
15285
|
-
const
|
|
15285
|
+
const Di = {
|
|
15286
15286
|
/**
|
|
15287
15287
|
* Whether caching is enabled or not.
|
|
15288
15288
|
*
|
|
@@ -15518,7 +15518,7 @@ class Oa extends ds {
|
|
|
15518
15518
|
*/
|
|
15519
15519
|
load(e, t, n, i) {
|
|
15520
15520
|
e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
15521
|
-
const r =
|
|
15521
|
+
const r = Di.get(`file:${e}`);
|
|
15522
15522
|
if (r !== void 0)
|
|
15523
15523
|
return this.manager.itemStart(e), setTimeout(() => {
|
|
15524
15524
|
t && t(r), this.manager.itemEnd(e);
|
|
@@ -15591,7 +15591,7 @@ class Oa extends ds {
|
|
|
15591
15591
|
}
|
|
15592
15592
|
}
|
|
15593
15593
|
}).then((c) => {
|
|
15594
|
-
|
|
15594
|
+
Di.add(`file:${e}`, c);
|
|
15595
15595
|
const h = Mi[e];
|
|
15596
15596
|
delete Mi[e];
|
|
15597
15597
|
for (let d = 0, p = h.length; d < p; d++) {
|
|
@@ -15663,7 +15663,7 @@ class iv extends ds {
|
|
|
15663
15663
|
*/
|
|
15664
15664
|
load(e, t, n, i) {
|
|
15665
15665
|
this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
15666
|
-
const r = this, a =
|
|
15666
|
+
const r = this, a = Di.get(`image:${e}`);
|
|
15667
15667
|
if (a !== void 0) {
|
|
15668
15668
|
if (a.complete === !0)
|
|
15669
15669
|
r.manager.itemStart(e), setTimeout(function() {
|
|
@@ -15675,7 +15675,7 @@ class iv extends ds {
|
|
|
15675
15675
|
}
|
|
15676
15676
|
return a;
|
|
15677
15677
|
}
|
|
15678
|
-
const o =
|
|
15678
|
+
const o = Ia("img");
|
|
15679
15679
|
function l() {
|
|
15680
15680
|
h(), t && t(this);
|
|
15681
15681
|
const d = dr.get(this) || [];
|
|
@@ -15686,7 +15686,7 @@ class iv extends ds {
|
|
|
15686
15686
|
dr.delete(this), r.manager.itemEnd(e);
|
|
15687
15687
|
}
|
|
15688
15688
|
function c(d) {
|
|
15689
|
-
h(), i && i(d),
|
|
15689
|
+
h(), i && i(d), Di.remove(`image:${e}`);
|
|
15690
15690
|
const p = dr.get(this) || [];
|
|
15691
15691
|
for (let u = 0; u < p.length; u++) {
|
|
15692
15692
|
const g = p[u];
|
|
@@ -15697,7 +15697,7 @@ class iv extends ds {
|
|
|
15697
15697
|
function h() {
|
|
15698
15698
|
o.removeEventListener("load", l, !1), o.removeEventListener("error", c, !1);
|
|
15699
15699
|
}
|
|
15700
|
-
return o.addEventListener("load", l, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin),
|
|
15700
|
+
return o.addEventListener("load", l, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin), Di.add(`image:${e}`, o), r.manager.itemStart(e), o.src = e, o;
|
|
15701
15701
|
}
|
|
15702
15702
|
}
|
|
15703
15703
|
class sv extends ds {
|
|
@@ -15791,7 +15791,7 @@ class Gl extends Et {
|
|
|
15791
15791
|
return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, this.groundColor !== void 0 && (t.object.groundColor = this.groundColor.getHex()), this.distance !== void 0 && (t.object.distance = this.distance), this.angle !== void 0 && (t.object.angle = this.angle), this.decay !== void 0 && (t.object.decay = this.decay), this.penumbra !== void 0 && (t.object.penumbra = this.penumbra), this.shadow !== void 0 && (t.object.shadow = this.shadow.toJSON()), this.target !== void 0 && (t.object.target = this.target.uuid), t;
|
|
15792
15792
|
}
|
|
15793
15793
|
}
|
|
15794
|
-
const Lc = /* @__PURE__ */ new
|
|
15794
|
+
const Lc = /* @__PURE__ */ new De(), wp = /* @__PURE__ */ new P(), Sp = /* @__PURE__ */ new P();
|
|
15795
15795
|
class iu {
|
|
15796
15796
|
/**
|
|
15797
15797
|
* Constructs a new light shadow.
|
|
@@ -15799,7 +15799,7 @@ class iu {
|
|
|
15799
15799
|
* @param {Camera} camera - The light's view of the world.
|
|
15800
15800
|
*/
|
|
15801
15801
|
constructor(e) {
|
|
15802
|
-
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 = ii, this.map = null, this.mapPass = null, this.matrix = new
|
|
15802
|
+
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 = ii, this.map = null, this.mapPass = null, this.matrix = new De(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new Kd(), this._frameExtents = new he(1, 1), this._viewportCount = 1, this._viewports = [
|
|
15803
15803
|
new tt(0, 0, 1, 1)
|
|
15804
15804
|
];
|
|
15805
15805
|
}
|
|
@@ -15963,7 +15963,7 @@ class av extends Gl {
|
|
|
15963
15963
|
return super.copy(e, t), this.distance = e.distance, this.angle = e.angle, this.penumbra = e.penumbra, this.decay = e.decay, this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
|
|
15964
15964
|
}
|
|
15965
15965
|
}
|
|
15966
|
-
const Ep = /* @__PURE__ */ new
|
|
15966
|
+
const Ep = /* @__PURE__ */ new De(), sa = /* @__PURE__ */ new P(), Dc = /* @__PURE__ */ new P();
|
|
15967
15967
|
class ov extends iu {
|
|
15968
15968
|
/**
|
|
15969
15969
|
* Constructs a new point light shadow.
|
|
@@ -16018,7 +16018,7 @@ class ov extends iu {
|
|
|
16018
16018
|
*/
|
|
16019
16019
|
updateMatrices(e, t = 0) {
|
|
16020
16020
|
const n = this.camera, i = this.matrix, r = e.distance || n.far;
|
|
16021
|
-
r !== n.far && (n.far = r, n.updateProjectionMatrix()), sa.setFromMatrixPosition(e.matrixWorld), n.position.copy(sa),
|
|
16021
|
+
r !== n.far && (n.far = r, n.updateProjectionMatrix()), sa.setFromMatrixPosition(e.matrixWorld), n.position.copy(sa), Dc.copy(n.position), Dc.add(this._cubeDirections[t]), n.up.copy(this._cubeUps[t]), n.lookAt(Dc), n.updateMatrixWorld(), i.makeTranslation(-sa.x, -sa.y, -sa.z), Ep.multiplyMatrices(n.projectionMatrix, n.matrixWorldInverse), this._frustum.setFromProjectionMatrix(Ep, n.coordinateSystem, n.reversedDepth);
|
|
16022
16022
|
}
|
|
16023
16023
|
}
|
|
16024
16024
|
class lv extends Gl {
|
|
@@ -16124,7 +16124,7 @@ class cv extends iu {
|
|
|
16124
16124
|
super(new Oi(-5, 5, 5, -5, 0.5, 500)), this.isDirectionalLightShadow = !0;
|
|
16125
16125
|
}
|
|
16126
16126
|
}
|
|
16127
|
-
class
|
|
16127
|
+
class Ii extends Gl {
|
|
16128
16128
|
/**
|
|
16129
16129
|
* Constructs a new directional light.
|
|
16130
16130
|
*
|
|
@@ -16141,7 +16141,7 @@ class Di extends Gl {
|
|
|
16141
16141
|
return super.copy(e), this.target = e.target.clone(), this.shadow = e.shadow.clone(), this;
|
|
16142
16142
|
}
|
|
16143
16143
|
}
|
|
16144
|
-
class
|
|
16144
|
+
class Il extends Gl {
|
|
16145
16145
|
/**
|
|
16146
16146
|
* Constructs a new ambient light.
|
|
16147
16147
|
*
|
|
@@ -16176,7 +16176,7 @@ class Ea {
|
|
|
16176
16176
|
return typeof e != "string" || e === "" ? "" : (/^https?:\/\//i.test(t) && /^\//.test(e) && (t = t.replace(/(^https?:\/\/[^\/]+).*/i, "$1")), /^(https?:)?\/\//i.test(e) || /^data:.*,.*$/i.test(e) || /^blob:.*$/i.test(e) ? e : t + e);
|
|
16177
16177
|
}
|
|
16178
16178
|
}
|
|
16179
|
-
const
|
|
16179
|
+
const Ic = /* @__PURE__ */ new WeakMap();
|
|
16180
16180
|
class hv extends ds {
|
|
16181
16181
|
/**
|
|
16182
16182
|
* Constructs a new image bitmap loader.
|
|
@@ -16207,12 +16207,12 @@ class hv extends ds {
|
|
|
16207
16207
|
*/
|
|
16208
16208
|
load(e, t, n, i) {
|
|
16209
16209
|
e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
16210
|
-
const r = this, a =
|
|
16210
|
+
const r = this, a = Di.get(`image-bitmap:${e}`);
|
|
16211
16211
|
if (a !== void 0) {
|
|
16212
16212
|
if (r.manager.itemStart(e), a.then) {
|
|
16213
16213
|
a.then((c) => {
|
|
16214
|
-
if (
|
|
16215
|
-
i && i(
|
|
16214
|
+
if (Ic.has(a) === !0)
|
|
16215
|
+
i && i(Ic.get(a)), r.manager.itemError(e), r.manager.itemEnd(e);
|
|
16216
16216
|
else
|
|
16217
16217
|
return t && t(c), r.manager.itemEnd(e), c;
|
|
16218
16218
|
});
|
|
@@ -16229,11 +16229,11 @@ class hv extends ds {
|
|
|
16229
16229
|
}).then(function(c) {
|
|
16230
16230
|
return createImageBitmap(c, Object.assign(r.options, { colorSpaceConversion: "none" }));
|
|
16231
16231
|
}).then(function(c) {
|
|
16232
|
-
return
|
|
16232
|
+
return Di.add(`image-bitmap:${e}`, c), t && t(c), r.manager.itemEnd(e), c;
|
|
16233
16233
|
}).catch(function(c) {
|
|
16234
|
-
i && i(c),
|
|
16234
|
+
i && i(c), Ic.set(l, c), Di.remove(`image-bitmap:${e}`), r.manager.itemError(e), r.manager.itemEnd(e);
|
|
16235
16235
|
});
|
|
16236
|
-
|
|
16236
|
+
Di.add(`image-bitmap:${e}`, l), r.manager.itemStart(e);
|
|
16237
16237
|
}
|
|
16238
16238
|
/**
|
|
16239
16239
|
* Aborts ongoing fetch requests.
|
|
@@ -16652,7 +16652,7 @@ dt.prototype.SetterByBindingTypeAndVersioning = [
|
|
|
16652
16652
|
dt.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate
|
|
16653
16653
|
]
|
|
16654
16654
|
];
|
|
16655
|
-
const Cp = /* @__PURE__ */ new
|
|
16655
|
+
const Cp = /* @__PURE__ */ new De();
|
|
16656
16656
|
class os {
|
|
16657
16657
|
/**
|
|
16658
16658
|
* Constructs a new raycaster.
|
|
@@ -17060,10 +17060,10 @@ function Pp(s, e, t, n) {
|
|
|
17060
17060
|
case pl:
|
|
17061
17061
|
return Math.floor((s + 3) / 4) * Math.floor((e + 3) / 4) * 16;
|
|
17062
17062
|
// https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_pvrtc/
|
|
17063
|
-
case
|
|
17063
|
+
case Ih:
|
|
17064
17064
|
case Bh:
|
|
17065
17065
|
return Math.max(s, 16) * Math.max(e, 8) / 4;
|
|
17066
|
-
case
|
|
17066
|
+
case Dh:
|
|
17067
17067
|
case Nh:
|
|
17068
17068
|
return Math.max(s, 8) * Math.max(e, 8) / 2;
|
|
17069
17069
|
// https://registry.khronos.org/webgl/extensions/WEBGL_compressed_texture_etc/
|
|
@@ -17124,7 +17124,7 @@ function Sv(s) {
|
|
|
17124
17124
|
case Lm:
|
|
17125
17125
|
return { byteLength: 1, components: 1 };
|
|
17126
17126
|
case Pa:
|
|
17127
|
-
case
|
|
17127
|
+
case Dm:
|
|
17128
17128
|
case mn:
|
|
17129
17129
|
return { byteLength: 2, components: 1 };
|
|
17130
17130
|
case Fd:
|
|
@@ -17134,7 +17134,7 @@ function Sv(s) {
|
|
|
17134
17134
|
case zd:
|
|
17135
17135
|
case fn:
|
|
17136
17136
|
return { byteLength: 4, components: 1 };
|
|
17137
|
-
case
|
|
17137
|
+
case Im:
|
|
17138
17138
|
case Nm:
|
|
17139
17139
|
return { byteLength: 4, components: 3 };
|
|
17140
17140
|
}
|
|
@@ -17311,7 +17311,7 @@ var Cv = `#ifdef USE_ALPHAHASH
|
|
|
17311
17311
|
#endif
|
|
17312
17312
|
#endif`, Lv = `#ifdef USE_ALPHATEST
|
|
17313
17313
|
uniform float alphaTest;
|
|
17314
|
-
#endif`,
|
|
17314
|
+
#endif`, Dv = `#ifdef USE_AOMAP
|
|
17315
17315
|
float ambientOcclusion = ( texture2D( aoMap, vAoMapUv ).r - 1.0 ) * aoMapIntensity + 1.0;
|
|
17316
17316
|
reflectedLight.indirectDiffuse *= ambientOcclusion;
|
|
17317
17317
|
#if defined( USE_CLEARCOAT )
|
|
@@ -17324,7 +17324,7 @@ var Cv = `#ifdef USE_ALPHAHASH
|
|
|
17324
17324
|
float dotNV = saturate( dot( geometryNormal, geometryViewDir ) );
|
|
17325
17325
|
reflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.roughness );
|
|
17326
17326
|
#endif
|
|
17327
|
-
#endif`,
|
|
17327
|
+
#endif`, Iv = `#ifdef USE_AOMAP
|
|
17328
17328
|
uniform sampler2D aoMap;
|
|
17329
17329
|
uniform float aoMapIntensity;
|
|
17330
17330
|
#endif`, Nv = `#ifdef USE_BATCHING
|
|
@@ -18621,13 +18621,13 @@ IncidentLight directLight;
|
|
|
18621
18621
|
#endif`, Lb = `#ifdef USE_LOGARITHMIC_DEPTH_BUFFER
|
|
18622
18622
|
vFragDepth = 1.0 + gl_Position.w;
|
|
18623
18623
|
vIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );
|
|
18624
|
-
#endif`,
|
|
18624
|
+
#endif`, Db = `#ifdef USE_MAP
|
|
18625
18625
|
vec4 sampledDiffuseColor = texture2D( map, vMapUv );
|
|
18626
18626
|
#ifdef DECODE_VIDEO_TEXTURE
|
|
18627
18627
|
sampledDiffuseColor = sRGBTransferEOTF( sampledDiffuseColor );
|
|
18628
18628
|
#endif
|
|
18629
18629
|
diffuseColor *= sampledDiffuseColor;
|
|
18630
|
-
#endif`,
|
|
18630
|
+
#endif`, Ib = `#ifdef USE_MAP
|
|
18631
18631
|
uniform sampler2D map;
|
|
18632
18632
|
#endif`, Nb = `#if defined( USE_MAP ) || defined( USE_ALPHAMAP )
|
|
18633
18633
|
#if defined( USE_POINTS_UV )
|
|
@@ -19843,7 +19843,7 @@ void main() {
|
|
|
19843
19843
|
#include <logdepthbuf_vertex>
|
|
19844
19844
|
#include <clipping_planes_vertex>
|
|
19845
19845
|
vHighPrecisionZW = gl_Position.zw;
|
|
19846
|
-
}`,
|
|
19846
|
+
}`, Dy = `#if DEPTH_PACKING == 3200
|
|
19847
19847
|
uniform float opacity;
|
|
19848
19848
|
#endif
|
|
19849
19849
|
#include <common>
|
|
@@ -19881,7 +19881,7 @@ void main() {
|
|
|
19881
19881
|
#elif DEPTH_PACKING == 3203
|
|
19882
19882
|
gl_FragColor = vec4( packDepthToRG( fragCoordZ ), 0.0, 1.0 );
|
|
19883
19883
|
#endif
|
|
19884
|
-
}`,
|
|
19884
|
+
}`, Iy = `#define DISTANCE
|
|
19885
19885
|
varying vec3 vWorldPosition;
|
|
19886
19886
|
#include <common>
|
|
19887
19887
|
#include <batching_pars_vertex>
|
|
@@ -20815,8 +20815,8 @@ void main() {
|
|
|
20815
20815
|
alphamap_pars_fragment: Pv,
|
|
20816
20816
|
alphatest_fragment: Rv,
|
|
20817
20817
|
alphatest_pars_fragment: Lv,
|
|
20818
|
-
aomap_fragment:
|
|
20819
|
-
aomap_pars_fragment:
|
|
20818
|
+
aomap_fragment: Dv,
|
|
20819
|
+
aomap_pars_fragment: Iv,
|
|
20820
20820
|
batching_pars_vertex: Nv,
|
|
20821
20821
|
batching_vertex: Bv,
|
|
20822
20822
|
begin_vertex: kv,
|
|
@@ -20869,8 +20869,8 @@ void main() {
|
|
|
20869
20869
|
logdepthbuf_pars_fragment: Pb,
|
|
20870
20870
|
logdepthbuf_pars_vertex: Rb,
|
|
20871
20871
|
logdepthbuf_vertex: Lb,
|
|
20872
|
-
map_fragment:
|
|
20873
|
-
map_pars_fragment:
|
|
20872
|
+
map_fragment: Db,
|
|
20873
|
+
map_pars_fragment: Ib,
|
|
20874
20874
|
map_particle_fragment: Nb,
|
|
20875
20875
|
map_particle_pars_fragment: Bb,
|
|
20876
20876
|
metalnessmap_fragment: kb,
|
|
@@ -20923,8 +20923,8 @@ void main() {
|
|
|
20923
20923
|
cube_vert: Py,
|
|
20924
20924
|
cube_frag: Ry,
|
|
20925
20925
|
depth_vert: Ly,
|
|
20926
|
-
depth_frag:
|
|
20927
|
-
distanceRGBA_vert:
|
|
20926
|
+
depth_frag: Dy,
|
|
20927
|
+
distanceRGBA_vert: Iy,
|
|
20928
20928
|
distanceRGBA_frag: Ny,
|
|
20929
20929
|
equirect_vert: By,
|
|
20930
20930
|
equirect_frag: ky,
|
|
@@ -21390,7 +21390,7 @@ ci.physical = {
|
|
|
21390
21390
|
vertexShader: Qe.meshphysical_vert,
|
|
21391
21391
|
fragmentShader: Qe.meshphysical_frag
|
|
21392
21392
|
};
|
|
21393
|
-
const To = { r: 0, b: 0, g: 0 }, vs = /* @__PURE__ */ new Bn(), r2 = /* @__PURE__ */ new
|
|
21393
|
+
const To = { r: 0, b: 0, g: 0 }, vs = /* @__PURE__ */ new Bn(), r2 = /* @__PURE__ */ new De();
|
|
21394
21394
|
function a2(s, e, t, n, i, r, a) {
|
|
21395
21395
|
const o = new Fe(0);
|
|
21396
21396
|
let l = r === !0 ? 0 : 1, c, h, d = null, p = 0, u = null;
|
|
@@ -21472,10 +21472,10 @@ function a2(s, e, t, n, i, r, a) {
|
|
|
21472
21472
|
function o2(s, e) {
|
|
21473
21473
|
const t = s.getParameter(s.MAX_VERTEX_ATTRIBS), n = {}, i = p(null);
|
|
21474
21474
|
let r = i, a = !1;
|
|
21475
|
-
function o(E,
|
|
21475
|
+
function o(E, D, A, B, S) {
|
|
21476
21476
|
let U = !1;
|
|
21477
|
-
const H = d(B, A,
|
|
21478
|
-
r !== H && (r = H, c(r.object)), U = u(E, B, A, S), U && g(E, B, A, S), S !== null && e.update(S, s.ELEMENT_ARRAY_BUFFER), (U || a) && (a = !1, y(E,
|
|
21477
|
+
const H = d(B, A, D);
|
|
21478
|
+
r !== H && (r = H, c(r.object)), U = u(E, B, A, S), U && g(E, B, A, S), S !== null && e.update(S, s.ELEMENT_ARRAY_BUFFER), (U || a) && (a = !1, y(E, D, A, B), S !== null && s.bindBuffer(s.ELEMENT_ARRAY_BUFFER, e.get(S).buffer));
|
|
21479
21479
|
}
|
|
21480
21480
|
function l() {
|
|
21481
21481
|
return s.createVertexArray();
|
|
@@ -21486,25 +21486,25 @@ function o2(s, e) {
|
|
|
21486
21486
|
function h(E) {
|
|
21487
21487
|
return s.deleteVertexArray(E);
|
|
21488
21488
|
}
|
|
21489
|
-
function d(E,
|
|
21489
|
+
function d(E, D, A) {
|
|
21490
21490
|
const B = A.wireframe === !0;
|
|
21491
21491
|
let S = n[E.id];
|
|
21492
21492
|
S === void 0 && (S = {}, n[E.id] = S);
|
|
21493
|
-
let U = S[
|
|
21494
|
-
U === void 0 && (U = {}, S[
|
|
21493
|
+
let U = S[D.id];
|
|
21494
|
+
U === void 0 && (U = {}, S[D.id] = U);
|
|
21495
21495
|
let H = U[B];
|
|
21496
21496
|
return H === void 0 && (H = p(l()), U[B] = H), H;
|
|
21497
21497
|
}
|
|
21498
21498
|
function p(E) {
|
|
21499
|
-
const
|
|
21499
|
+
const D = [], A = [], B = [];
|
|
21500
21500
|
for (let S = 0; S < t; S++)
|
|
21501
|
-
|
|
21501
|
+
D[S] = 0, A[S] = 0, B[S] = 0;
|
|
21502
21502
|
return {
|
|
21503
21503
|
// for backward compatibility on non-VAO support browser
|
|
21504
21504
|
geometry: null,
|
|
21505
21505
|
program: null,
|
|
21506
21506
|
wireframe: !1,
|
|
21507
|
-
newAttributes:
|
|
21507
|
+
newAttributes: D,
|
|
21508
21508
|
enabledAttributes: A,
|
|
21509
21509
|
attributeDivisors: B,
|
|
21510
21510
|
object: E,
|
|
@@ -21512,8 +21512,8 @@ function o2(s, e) {
|
|
|
21512
21512
|
index: null
|
|
21513
21513
|
};
|
|
21514
21514
|
}
|
|
21515
|
-
function u(E,
|
|
21516
|
-
const S = r.attributes, U =
|
|
21515
|
+
function u(E, D, A, B) {
|
|
21516
|
+
const S = r.attributes, U = D.attributes;
|
|
21517
21517
|
let H = 0;
|
|
21518
21518
|
const G = A.getAttributes();
|
|
21519
21519
|
for (const Z in G)
|
|
@@ -21525,8 +21525,8 @@ function o2(s, e) {
|
|
|
21525
21525
|
}
|
|
21526
21526
|
return r.attributesNum !== H || r.index !== B;
|
|
21527
21527
|
}
|
|
21528
|
-
function g(E,
|
|
21529
|
-
const S = {}, U =
|
|
21528
|
+
function g(E, D, A, B) {
|
|
21529
|
+
const S = {}, U = D.attributes;
|
|
21530
21530
|
let H = 0;
|
|
21531
21531
|
const G = A.getAttributes();
|
|
21532
21532
|
for (const Z in G)
|
|
@@ -21540,27 +21540,27 @@ function o2(s, e) {
|
|
|
21540
21540
|
}
|
|
21541
21541
|
function f() {
|
|
21542
21542
|
const E = r.newAttributes;
|
|
21543
|
-
for (let
|
|
21544
|
-
E[
|
|
21543
|
+
for (let D = 0, A = E.length; D < A; D++)
|
|
21544
|
+
E[D] = 0;
|
|
21545
21545
|
}
|
|
21546
21546
|
function x(E) {
|
|
21547
21547
|
m(E, 0);
|
|
21548
21548
|
}
|
|
21549
|
-
function m(E,
|
|
21549
|
+
function m(E, D) {
|
|
21550
21550
|
const A = r.newAttributes, B = r.enabledAttributes, S = r.attributeDivisors;
|
|
21551
|
-
A[E] = 1, B[E] === 0 && (s.enableVertexAttribArray(E), B[E] = 1), S[E] !==
|
|
21551
|
+
A[E] = 1, B[E] === 0 && (s.enableVertexAttribArray(E), B[E] = 1), S[E] !== D && (s.vertexAttribDivisor(E, D), S[E] = D);
|
|
21552
21552
|
}
|
|
21553
21553
|
function b() {
|
|
21554
|
-
const E = r.newAttributes,
|
|
21555
|
-
for (let A = 0, B =
|
|
21556
|
-
|
|
21554
|
+
const E = r.newAttributes, D = r.enabledAttributes;
|
|
21555
|
+
for (let A = 0, B = D.length; A < B; A++)
|
|
21556
|
+
D[A] !== E[A] && (s.disableVertexAttribArray(A), D[A] = 0);
|
|
21557
21557
|
}
|
|
21558
|
-
function v(E,
|
|
21559
|
-
H === !0 ? s.vertexAttribIPointer(E,
|
|
21558
|
+
function v(E, D, A, B, S, U, H) {
|
|
21559
|
+
H === !0 ? s.vertexAttribIPointer(E, D, A, S, U) : s.vertexAttribPointer(E, D, A, B, S, U);
|
|
21560
21560
|
}
|
|
21561
|
-
function y(E,
|
|
21561
|
+
function y(E, D, A, B) {
|
|
21562
21562
|
f();
|
|
21563
|
-
const S = B.attributes, U = A.getAttributes(), H =
|
|
21563
|
+
const S = B.attributes, U = A.getAttributes(), H = D.defaultAttributeValues;
|
|
21564
21564
|
for (const G in U) {
|
|
21565
21565
|
const Z = U[G];
|
|
21566
21566
|
if (Z.location >= 0) {
|
|
@@ -21633,30 +21633,30 @@ function o2(s, e) {
|
|
|
21633
21633
|
function _() {
|
|
21634
21634
|
R();
|
|
21635
21635
|
for (const E in n) {
|
|
21636
|
-
const
|
|
21637
|
-
for (const A in
|
|
21638
|
-
const B =
|
|
21636
|
+
const D = n[E];
|
|
21637
|
+
for (const A in D) {
|
|
21638
|
+
const B = D[A];
|
|
21639
21639
|
for (const S in B)
|
|
21640
21640
|
h(B[S].object), delete B[S];
|
|
21641
|
-
delete
|
|
21641
|
+
delete D[A];
|
|
21642
21642
|
}
|
|
21643
21643
|
delete n[E];
|
|
21644
21644
|
}
|
|
21645
21645
|
}
|
|
21646
21646
|
function M(E) {
|
|
21647
21647
|
if (n[E.id] === void 0) return;
|
|
21648
|
-
const
|
|
21649
|
-
for (const A in
|
|
21650
|
-
const B =
|
|
21648
|
+
const D = n[E.id];
|
|
21649
|
+
for (const A in D) {
|
|
21650
|
+
const B = D[A];
|
|
21651
21651
|
for (const S in B)
|
|
21652
21652
|
h(B[S].object), delete B[S];
|
|
21653
|
-
delete
|
|
21653
|
+
delete D[A];
|
|
21654
21654
|
}
|
|
21655
21655
|
delete n[E.id];
|
|
21656
21656
|
}
|
|
21657
21657
|
function T(E) {
|
|
21658
|
-
for (const
|
|
21659
|
-
const A = n[
|
|
21658
|
+
for (const D in n) {
|
|
21659
|
+
const A = n[D];
|
|
21660
21660
|
if (A[E.id] === void 0) continue;
|
|
21661
21661
|
const B = A[E.id];
|
|
21662
21662
|
for (const S in B)
|
|
@@ -21773,7 +21773,7 @@ function c2(s, e, t, n) {
|
|
|
21773
21773
|
function h2(s) {
|
|
21774
21774
|
const e = this;
|
|
21775
21775
|
let t = null, n = 0, i = !1, r = !1;
|
|
21776
|
-
const a = new
|
|
21776
|
+
const a = new It(), o = new Ke(), l = { value: null, needsUpdate: !1 };
|
|
21777
21777
|
this.uniform = l, this.numPlanes = 0, this.numIntersection = 0, this.init = function(d, p) {
|
|
21778
21778
|
const u = d.length !== 0 || p || // enable state of previous frame - the clipping code has to
|
|
21779
21779
|
// run another frame in order to reset the state:
|
|
@@ -21819,7 +21819,7 @@ function h2(s) {
|
|
|
21819
21819
|
function d2(s) {
|
|
21820
21820
|
let e = /* @__PURE__ */ new WeakMap();
|
|
21821
21821
|
function t(a, o) {
|
|
21822
|
-
return o === El ? a.mapping =
|
|
21822
|
+
return o === El ? a.mapping = Dr : o === Lh && (a.mapping = Ir), a;
|
|
21823
21823
|
}
|
|
21824
21824
|
function n(a) {
|
|
21825
21825
|
if (a && a.isTexture) {
|
|
@@ -21925,7 +21925,7 @@ class md {
|
|
|
21925
21925
|
* your texture's network fetch for increased concurrency.
|
|
21926
21926
|
*/
|
|
21927
21927
|
compileEquirectangularShader() {
|
|
21928
|
-
this._equirectMaterial === null && (this._equirectMaterial =
|
|
21928
|
+
this._equirectMaterial === null && (this._equirectMaterial = Ip(), this._compileMaterial(this._equirectMaterial));
|
|
21929
21929
|
}
|
|
21930
21930
|
/**
|
|
21931
21931
|
* Disposes of the PMREMGenerator's internal memory. Note that PMREMGenerator is a static class,
|
|
@@ -21948,7 +21948,7 @@ class md {
|
|
|
21948
21948
|
this._renderer.setRenderTarget(Bc, kc, Uc), this._renderer.xr.enabled = Oc, e.scissorTest = !1, fr(e, 0, 0, e.width, e.height);
|
|
21949
21949
|
}
|
|
21950
21950
|
_fromTexture(e, t) {
|
|
21951
|
-
e.mapping ===
|
|
21951
|
+
e.mapping === Dr || e.mapping === Ir ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Bc = this._renderer.getRenderTarget(), kc = this._renderer.getActiveCubeFace(), Uc = this._renderer.getActiveMipmapLevel(), Oc = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
|
|
21952
21952
|
const n = t || this._allocateTargets();
|
|
21953
21953
|
return this._textureToCubeUV(e, n), this._applyPMREM(n), this._cleanup(n), n;
|
|
21954
21954
|
}
|
|
@@ -21961,9 +21961,9 @@ class md {
|
|
|
21961
21961
|
format: wn,
|
|
21962
21962
|
colorSpace: nn,
|
|
21963
21963
|
depthBuffer: !1
|
|
21964
|
-
}, i =
|
|
21964
|
+
}, i = Dp(e, t, n);
|
|
21965
21965
|
if (this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== e || this._pingPongRenderTarget.height !== t) {
|
|
21966
|
-
this._pingPongRenderTarget !== null && this._dispose(), this._pingPongRenderTarget =
|
|
21966
|
+
this._pingPongRenderTarget !== null && this._dispose(), this._pingPongRenderTarget = Dp(e, t, n);
|
|
21967
21967
|
const { _lodMax: r } = this;
|
|
21968
21968
|
({ lodMeshes: this._lodMeshes, sizeLods: this._sizeLods, sigmas: this._sigmas } = f2(r)), this._blurMaterial = g2(r, e, t), this._ggxMaterial = m2(r, e, t);
|
|
21969
21969
|
}
|
|
@@ -21997,8 +21997,8 @@ class md {
|
|
|
21997
21997
|
d.toneMapping = u, d.autoClear = p, e.background = b;
|
|
21998
21998
|
}
|
|
21999
21999
|
_textureToCubeUV(e, t) {
|
|
22000
|
-
const n = this._renderer, i = e.mapping ===
|
|
22001
|
-
i ? (this._cubemapMaterial === null && (this._cubemapMaterial = Np()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial =
|
|
22000
|
+
const n = this._renderer, i = e.mapping === Dr || e.mapping === Ir;
|
|
22001
|
+
i ? (this._cubemapMaterial === null && (this._cubemapMaterial = Np()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = Ip());
|
|
22002
22002
|
const r = i ? this._cubemapMaterial : this._equirectMaterial, a = this._lodMeshes[0];
|
|
22003
22003
|
a.material = r;
|
|
22004
22004
|
const o = r.uniforms;
|
|
@@ -22131,7 +22131,7 @@ function f2(s) {
|
|
|
22131
22131
|
}
|
|
22132
22132
|
return { lodMeshes: n, sizeLods: e, sigmas: t };
|
|
22133
22133
|
}
|
|
22134
|
-
function
|
|
22134
|
+
function Dp(s, e, t) {
|
|
22135
22135
|
const n = new Nn(s, e, t);
|
|
22136
22136
|
return n.texture.mapping = zl, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
|
|
22137
22137
|
}
|
|
@@ -22359,7 +22359,7 @@ function g2(s, e, t) {
|
|
|
22359
22359
|
depthWrite: !1
|
|
22360
22360
|
});
|
|
22361
22361
|
}
|
|
22362
|
-
function
|
|
22362
|
+
function Ip() {
|
|
22363
22363
|
return new Nt({
|
|
22364
22364
|
name: "EquirectangularToCubeUV",
|
|
22365
22365
|
uniforms: {
|
|
@@ -22492,7 +22492,7 @@ function x2(s) {
|
|
|
22492
22492
|
let e = /* @__PURE__ */ new WeakMap(), t = null;
|
|
22493
22493
|
function n(o) {
|
|
22494
22494
|
if (o && o.isTexture) {
|
|
22495
|
-
const l = o.mapping, c = l === El || l === Lh, h = l ===
|
|
22495
|
+
const l = o.mapping, c = l === El || l === Lh, h = l === Dr || l === Ir;
|
|
22496
22496
|
if (c || h) {
|
|
22497
22497
|
let d = e.get(o);
|
|
22498
22498
|
const p = d !== void 0 ? d.texture.pmremVersion : 0;
|
|
@@ -22711,10 +22711,10 @@ function M2(s, e, t) {
|
|
|
22711
22711
|
T.type = fn, T.needsUpdate = !0;
|
|
22712
22712
|
const R = v * 4;
|
|
22713
22713
|
for (let E = 0; E < d; E++) {
|
|
22714
|
-
const
|
|
22715
|
-
for (let U = 0; U <
|
|
22714
|
+
const D = x[E], A = m[E], B = b[E], S = y * _ * 4 * E;
|
|
22715
|
+
for (let U = 0; U < D.count; U++) {
|
|
22716
22716
|
const H = U * R;
|
|
22717
|
-
u === !0 && (i.fromBufferAttribute(
|
|
22717
|
+
u === !0 && (i.fromBufferAttribute(D, U), M[S + H + 0] = i.x, M[S + H + 1] = i.y, M[S + H + 2] = i.z, M[S + H + 3] = 0), g === !0 && (i.fromBufferAttribute(A, U), M[S + H + 4] = i.x, M[S + H + 5] = i.y, M[S + H + 6] = i.z, M[S + H + 7] = 0), f === !0 && (i.fromBufferAttribute(B, U), M[S + H + 8] = i.x, M[S + H + 9] = i.y, M[S + H + 10] = i.z, M[S + H + 11] = B.itemSize === 4 ? i.w : 1);
|
|
22718
22718
|
}
|
|
22719
22719
|
}
|
|
22720
22720
|
p = {
|
|
@@ -22760,7 +22760,7 @@ function w2(s, e, t, n) {
|
|
|
22760
22760
|
dispose: a
|
|
22761
22761
|
};
|
|
22762
22762
|
}
|
|
22763
|
-
const m0 = /* @__PURE__ */ new Wt(), Bp = /* @__PURE__ */ new Vl(1, 1), g0 = /* @__PURE__ */ new Fm(), x0 = /* @__PURE__ */ new
|
|
22763
|
+
const m0 = /* @__PURE__ */ new Wt(), Bp = /* @__PURE__ */ new Vl(1, 1), g0 = /* @__PURE__ */ new Fm(), x0 = /* @__PURE__ */ new Dx(), v0 = /* @__PURE__ */ new jm(), kp = [], Up = [], Op = new Float32Array(16), zp = new Float32Array(9), Fp = new Float32Array(4);
|
|
22764
22764
|
function Wr(s, e, t) {
|
|
22765
22765
|
const n = s[0];
|
|
22766
22766
|
if (n <= 0 || n > 0) return s;
|
|
@@ -22857,7 +22857,7 @@ function L2(s, e) {
|
|
|
22857
22857
|
const t = this.cache;
|
|
22858
22858
|
t[0] !== e && (s.uniform1i(this.addr, e), t[0] = e);
|
|
22859
22859
|
}
|
|
22860
|
-
function
|
|
22860
|
+
function D2(s, e) {
|
|
22861
22861
|
const t = this.cache;
|
|
22862
22862
|
if (e.x !== void 0)
|
|
22863
22863
|
(t[0] !== e.x || t[1] !== e.y) && (s.uniform2i(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y);
|
|
@@ -22866,7 +22866,7 @@ function I2(s, e) {
|
|
|
22866
22866
|
s.uniform2iv(this.addr, e), Yt(t, e);
|
|
22867
22867
|
}
|
|
22868
22868
|
}
|
|
22869
|
-
function
|
|
22869
|
+
function I2(s, e) {
|
|
22870
22870
|
const t = this.cache;
|
|
22871
22871
|
if (e.x !== void 0)
|
|
22872
22872
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z) && (s.uniform3i(this.addr, e.x, e.y, e.z), t[0] = e.x, t[1] = e.y, t[2] = e.z);
|
|
@@ -22962,11 +22962,11 @@ function G2(s) {
|
|
|
22962
22962
|
// INT, BOOL
|
|
22963
22963
|
case 35667:
|
|
22964
22964
|
case 35671:
|
|
22965
|
-
return
|
|
22965
|
+
return D2;
|
|
22966
22966
|
// _VEC2
|
|
22967
22967
|
case 35668:
|
|
22968
22968
|
case 35672:
|
|
22969
|
-
return
|
|
22969
|
+
return I2;
|
|
22970
22970
|
// _VEC3
|
|
22971
22971
|
case 35669:
|
|
22972
22972
|
case 35673:
|
|
@@ -23441,8 +23441,8 @@ function R3(s) {
|
|
|
23441
23441
|
let e = "ENVMAP_TYPE_CUBE";
|
|
23442
23442
|
if (s.envMap)
|
|
23443
23443
|
switch (s.envMapMode) {
|
|
23444
|
-
case Ir:
|
|
23445
23444
|
case Dr:
|
|
23445
|
+
case Ir:
|
|
23446
23446
|
e = "ENVMAP_TYPE_CUBE";
|
|
23447
23447
|
break;
|
|
23448
23448
|
case zl:
|
|
@@ -23455,13 +23455,13 @@ function L3(s) {
|
|
|
23455
23455
|
let e = "ENVMAP_MODE_REFLECTION";
|
|
23456
23456
|
if (s.envMap)
|
|
23457
23457
|
switch (s.envMapMode) {
|
|
23458
|
-
case
|
|
23458
|
+
case Ir:
|
|
23459
23459
|
e = "ENVMAP_MODE_REFRACTION";
|
|
23460
23460
|
break;
|
|
23461
23461
|
}
|
|
23462
23462
|
return e;
|
|
23463
23463
|
}
|
|
23464
|
-
function
|
|
23464
|
+
function D3(s) {
|
|
23465
23465
|
let e = "ENVMAP_BLENDING_NONE";
|
|
23466
23466
|
if (s.envMap)
|
|
23467
23467
|
switch (s.combine) {
|
|
@@ -23477,7 +23477,7 @@ function I3(s) {
|
|
|
23477
23477
|
}
|
|
23478
23478
|
return e;
|
|
23479
23479
|
}
|
|
23480
|
-
function
|
|
23480
|
+
function I3(s) {
|
|
23481
23481
|
const e = s.envMapCubeUVHeight;
|
|
23482
23482
|
if (e === null) return null;
|
|
23483
23483
|
const t = Math.log2(e) - 2, n = 1 / e;
|
|
@@ -23486,7 +23486,7 @@ function D3(s) {
|
|
|
23486
23486
|
function N3(s, e, t, n) {
|
|
23487
23487
|
const i = s.getContext(), r = t.defines;
|
|
23488
23488
|
let a = t.vertexShader, o = t.fragmentShader;
|
|
23489
|
-
const l = P3(t), c = R3(t), h = L3(t), d =
|
|
23489
|
+
const l = P3(t), c = R3(t), h = L3(t), d = D3(t), p = I3(t), u = _3(t), g = M3(r), f = i.createProgram();
|
|
23490
23490
|
let x, m, b = t.glslVersion ? "#version " + t.glslVersion + `
|
|
23491
23491
|
` : "";
|
|
23492
23492
|
t.isRawShaderMaterial ? (x = [
|
|
@@ -23745,7 +23745,7 @@ function N3(s, e, t, n) {
|
|
|
23745
23745
|
` + m);
|
|
23746
23746
|
const v = b + x + a, y = b + m + o, _ = Vp(i, i.VERTEX_SHADER, v), M = Vp(i, i.FRAGMENT_SHADER, y);
|
|
23747
23747
|
i.attachShader(f, _), i.attachShader(f, M), t.index0AttributeName !== void 0 ? i.bindAttribLocation(f, 0, t.index0AttributeName) : t.morphTargets === !0 && i.bindAttribLocation(f, 0, "position"), i.linkProgram(f);
|
|
23748
|
-
function T(
|
|
23748
|
+
function T(D) {
|
|
23749
23749
|
if (s.debug.checkShaderErrors) {
|
|
23750
23750
|
const A = i.getProgramInfoLog(f) || "", B = i.getShaderInfoLog(_) || "", S = i.getShaderInfoLog(M) || "", U = A.trim(), H = B.trim(), G = S.trim();
|
|
23751
23751
|
let Z = !0, j = !0;
|
|
@@ -23757,8 +23757,8 @@ function N3(s, e, t, n) {
|
|
|
23757
23757
|
et(
|
|
23758
23758
|
"THREE.WebGLProgram: Shader Error " + i.getError() + " - VALIDATE_STATUS " + i.getProgramParameter(f, i.VALIDATE_STATUS) + `
|
|
23759
23759
|
|
|
23760
|
-
Material Name: ` +
|
|
23761
|
-
Material Type: ` +
|
|
23760
|
+
Material Name: ` + D.name + `
|
|
23761
|
+
Material Type: ` + D.type + `
|
|
23762
23762
|
|
|
23763
23763
|
Program Info Log: ` + U + `
|
|
23764
23764
|
` + ie + `
|
|
@@ -23766,7 +23766,7 @@ Program Info Log: ` + U + `
|
|
|
23766
23766
|
);
|
|
23767
23767
|
}
|
|
23768
23768
|
else U !== "" ? He("WebGLProgram: Program Info Log:", U) : (H === "" || G === "") && (j = !1);
|
|
23769
|
-
j && (
|
|
23769
|
+
j && (D.diagnostics = {
|
|
23770
23770
|
runnable: Z,
|
|
23771
23771
|
programLog: U,
|
|
23772
23772
|
vertexShader: {
|
|
@@ -23859,7 +23859,7 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
23859
23859
|
function f(w) {
|
|
23860
23860
|
return c.add(w), w === 0 ? "uv" : `uv${w}`;
|
|
23861
23861
|
}
|
|
23862
|
-
function x(w, E,
|
|
23862
|
+
function x(w, E, D, A, B) {
|
|
23863
23863
|
const S = A.fog, U = B.geometry, H = w.isMeshStandardMaterial ? A.environment : null, G = (w.isMeshStandardMaterial ? t : e).get(w.envMap || H), Z = G && G.mapping === zl ? G.image.height : null, j = g[w.type];
|
|
23864
23864
|
w.precision !== null && (u = i.getMaxPrecision(w.precision), u !== w.precision && He("WebGLProgram.getParameters:", w.precision, "not supported, using", u, "instead."));
|
|
23865
23865
|
const ie = U.morphAttributes.position || U.morphAttributes.normal || U.morphAttributes.color, X = ie !== void 0 ? ie.length : 0;
|
|
@@ -23871,7 +23871,7 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
23871
23871
|
ue = ut.vertexShader, pe = ut.fragmentShader;
|
|
23872
23872
|
} else
|
|
23873
23873
|
ue = w.vertexShader, pe = w.fragmentShader, l.update(w), fe = l.getVertexShaderID(w), se = l.getFragmentShaderID(w);
|
|
23874
|
-
const ce = s.getRenderTarget(), me = s.state.buffers.depth.getReversed(), be = B.isInstancedMesh === !0, Se = B.isBatchedMesh === !0, Be = !!w.map, $e = !!w.matcap, ke = !!G, C = !!w.aoMap,
|
|
23874
|
+
const ce = s.getRenderTarget(), me = s.state.buffers.depth.getReversed(), be = B.isInstancedMesh === !0, Se = B.isBatchedMesh === !0, Be = !!w.map, $e = !!w.matcap, ke = !!G, C = !!w.aoMap, I = !!w.lightMap, W = !!w.bumpMap, O = !!w.normalMap, k = !!w.displacementMap, F = !!w.emissiveMap, ee = !!w.metalnessMap, J = !!w.roughnessMap, q = w.anisotropy > 0, N = w.clearcoat > 0, L = w.dispersion > 0, V = w.iridescence > 0, K = w.sheen > 0, le = w.transmission > 0, te = q && !!w.anisotropyMap, Te = N && !!w.clearcoatMap, ye = N && !!w.clearcoatNormalMap, Re = N && !!w.clearcoatRoughnessMap, Ie = V && !!w.iridescenceMap, de = V && !!w.iridescenceThicknessMap, _e = K && !!w.sheenColorMap, Ve = K && !!w.sheenRoughnessMap, Ue = !!w.specularMap, Ae = !!w.specularColorMap, Ge = !!w.specularIntensityMap, Y = le && !!w.transmissionMap, Ce = le && !!w.thicknessMap, Me = !!w.gradientMap, we = !!w.alphaMap, ve = w.alphaTest > 0, ge = !!w.alphaHash, Oe = !!w.extensions;
|
|
23875
23875
|
let Ye = is;
|
|
23876
23876
|
w.toneMapped && (ce === null || ce.isXRRenderTarget === !0) && (Ye = s.toneMapping);
|
|
23877
23877
|
const yt = {
|
|
@@ -23900,7 +23900,7 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
23900
23900
|
envMapMode: ke && G.mapping,
|
|
23901
23901
|
envMapCubeUVHeight: Z,
|
|
23902
23902
|
aoMap: C,
|
|
23903
|
-
lightMap:
|
|
23903
|
+
lightMap: I,
|
|
23904
23904
|
bumpMap: W,
|
|
23905
23905
|
normalMap: O,
|
|
23906
23906
|
displacementMap: p && k,
|
|
@@ -23917,7 +23917,7 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
23917
23917
|
clearcoatRoughnessMap: Re,
|
|
23918
23918
|
dispersion: L,
|
|
23919
23919
|
iridescence: V,
|
|
23920
|
-
iridescenceMap:
|
|
23920
|
+
iridescenceMap: Ie,
|
|
23921
23921
|
iridescenceThicknessMap: de,
|
|
23922
23922
|
sheen: K,
|
|
23923
23923
|
sheenColorMap: _e,
|
|
@@ -23937,7 +23937,7 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
23937
23937
|
//
|
|
23938
23938
|
mapUv: Be && f(w.map.channel),
|
|
23939
23939
|
aoMapUv: C && f(w.aoMap.channel),
|
|
23940
|
-
lightMapUv:
|
|
23940
|
+
lightMapUv: I && f(w.lightMap.channel),
|
|
23941
23941
|
bumpMapUv: W && f(w.bumpMap.channel),
|
|
23942
23942
|
normalMapUv: O && f(w.normalMap.channel),
|
|
23943
23943
|
displacementMapUv: k && f(w.displacementMap.channel),
|
|
@@ -23948,7 +23948,7 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
23948
23948
|
clearcoatMapUv: Te && f(w.clearcoatMap.channel),
|
|
23949
23949
|
clearcoatNormalMapUv: ye && f(w.clearcoatNormalMap.channel),
|
|
23950
23950
|
clearcoatRoughnessMapUv: Re && f(w.clearcoatRoughnessMap.channel),
|
|
23951
|
-
iridescenceMapUv:
|
|
23951
|
+
iridescenceMapUv: Ie && f(w.iridescenceMap.channel),
|
|
23952
23952
|
iridescenceThicknessMapUv: de && f(w.iridescenceThicknessMap.channel),
|
|
23953
23953
|
sheenColorMapUv: _e && f(w.sheenColorMap.channel),
|
|
23954
23954
|
sheenRoughnessMapUv: Ve && f(w.sheenRoughnessMap.channel),
|
|
@@ -23990,7 +23990,7 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
23990
23990
|
numClippingPlanes: a.numPlanes,
|
|
23991
23991
|
numClipIntersection: a.numIntersection,
|
|
23992
23992
|
dithering: w.dithering,
|
|
23993
|
-
shadowMapEnabled: s.shadowMap.enabled &&
|
|
23993
|
+
shadowMapEnabled: s.shadowMap.enabled && D.length > 0,
|
|
23994
23994
|
shadowMapType: s.shadowMap.type,
|
|
23995
23995
|
toneMapping: Ye,
|
|
23996
23996
|
decodeVideoTexture: Be && w.map.isVideoTexture === !0 && st.getTransfer(w.map.colorSpace) === ct,
|
|
@@ -24011,8 +24011,8 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
24011
24011
|
function m(w) {
|
|
24012
24012
|
const E = [];
|
|
24013
24013
|
if (w.shaderID ? E.push(w.shaderID) : (E.push(w.customVertexShaderID), E.push(w.customFragmentShaderID)), w.defines !== void 0)
|
|
24014
|
-
for (const
|
|
24015
|
-
E.push(
|
|
24014
|
+
for (const D in w.defines)
|
|
24015
|
+
E.push(D), E.push(w.defines[D]);
|
|
24016
24016
|
return w.isRawShaderMaterial === !1 && (b(E, w), v(E, w), E.push(s.outputColorSpace)), E.push(w.customProgramCacheKey), E.join();
|
|
24017
24017
|
}
|
|
24018
24018
|
function b(w, E) {
|
|
@@ -24023,24 +24023,24 @@ function O3(s, e, t, n, i, r, a) {
|
|
|
24023
24023
|
}
|
|
24024
24024
|
function y(w) {
|
|
24025
24025
|
const E = g[w.type];
|
|
24026
|
-
let
|
|
24026
|
+
let D;
|
|
24027
24027
|
if (E) {
|
|
24028
24028
|
const A = ci[E];
|
|
24029
|
-
|
|
24029
|
+
D = Hn.clone(A.uniforms);
|
|
24030
24030
|
} else
|
|
24031
|
-
|
|
24032
|
-
return
|
|
24031
|
+
D = w.uniforms;
|
|
24032
|
+
return D;
|
|
24033
24033
|
}
|
|
24034
24034
|
function _(w, E) {
|
|
24035
|
-
let
|
|
24035
|
+
let D;
|
|
24036
24036
|
for (let A = 0, B = h.length; A < B; A++) {
|
|
24037
24037
|
const S = h[A];
|
|
24038
24038
|
if (S.cacheKey === E) {
|
|
24039
|
-
|
|
24039
|
+
D = S, ++D.usedTimes;
|
|
24040
24040
|
break;
|
|
24041
24041
|
}
|
|
24042
24042
|
}
|
|
24043
|
-
return
|
|
24043
|
+
return D === void 0 && (D = new N3(s, E, w, r), h.push(D)), D;
|
|
24044
24044
|
}
|
|
24045
24045
|
function M(w) {
|
|
24046
24046
|
if (--w.usedTimes === 0) {
|
|
@@ -24299,49 +24299,49 @@ function j3(s) {
|
|
|
24299
24299
|
numLightProbes: 0
|
|
24300
24300
|
};
|
|
24301
24301
|
for (let c = 0; c < 9; c++) n.probe.push(new P());
|
|
24302
|
-
const i = new P(), r = new
|
|
24302
|
+
const i = new P(), r = new De(), a = new De();
|
|
24303
24303
|
function o(c) {
|
|
24304
24304
|
let h = 0, d = 0, p = 0;
|
|
24305
24305
|
for (let w = 0; w < 9; w++) n.probe[w].set(0, 0, 0);
|
|
24306
24306
|
let u = 0, g = 0, f = 0, x = 0, m = 0, b = 0, v = 0, y = 0, _ = 0, M = 0, T = 0;
|
|
24307
24307
|
c.sort(X3);
|
|
24308
24308
|
for (let w = 0, E = c.length; w < E; w++) {
|
|
24309
|
-
const
|
|
24310
|
-
if (
|
|
24309
|
+
const D = c[w], A = D.color, B = D.intensity, S = D.distance, U = D.shadow && D.shadow.map ? D.shadow.map.texture : null;
|
|
24310
|
+
if (D.isAmbientLight)
|
|
24311
24311
|
h += A.r * B, d += A.g * B, p += A.b * B;
|
|
24312
|
-
else if (
|
|
24312
|
+
else if (D.isLightProbe) {
|
|
24313
24313
|
for (let H = 0; H < 9; H++)
|
|
24314
|
-
n.probe[H].addScaledVector(
|
|
24314
|
+
n.probe[H].addScaledVector(D.sh.coefficients[H], B);
|
|
24315
24315
|
T++;
|
|
24316
|
-
} else if (
|
|
24317
|
-
const H = e.get(
|
|
24318
|
-
if (H.color.copy(
|
|
24319
|
-
const G =
|
|
24320
|
-
Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, n.directionalShadow[u] = Z, n.directionalShadowMap[u] = U, n.directionalShadowMatrix[u] =
|
|
24316
|
+
} else if (D.isDirectionalLight) {
|
|
24317
|
+
const H = e.get(D);
|
|
24318
|
+
if (H.color.copy(D.color).multiplyScalar(D.intensity), D.castShadow) {
|
|
24319
|
+
const G = D.shadow, Z = t.get(D);
|
|
24320
|
+
Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, n.directionalShadow[u] = Z, n.directionalShadowMap[u] = U, n.directionalShadowMatrix[u] = D.shadow.matrix, b++;
|
|
24321
24321
|
}
|
|
24322
24322
|
n.directional[u] = H, u++;
|
|
24323
|
-
} else if (
|
|
24324
|
-
const H = e.get(
|
|
24325
|
-
H.position.setFromMatrixPosition(
|
|
24326
|
-
const G =
|
|
24327
|
-
if (
|
|
24328
|
-
const Z = t.get(
|
|
24323
|
+
} else if (D.isSpotLight) {
|
|
24324
|
+
const H = e.get(D);
|
|
24325
|
+
H.position.setFromMatrixPosition(D.matrixWorld), H.color.copy(A).multiplyScalar(B), H.distance = S, H.coneCos = Math.cos(D.angle), H.penumbraCos = Math.cos(D.angle * (1 - D.penumbra)), H.decay = D.decay, n.spot[f] = H;
|
|
24326
|
+
const G = D.shadow;
|
|
24327
|
+
if (D.map && (n.spotLightMap[_] = D.map, _++, G.updateMatrices(D), D.castShadow && M++), n.spotLightMatrix[f] = G.matrix, D.castShadow) {
|
|
24328
|
+
const Z = t.get(D);
|
|
24329
24329
|
Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, n.spotShadow[f] = Z, n.spotShadowMap[f] = U, y++;
|
|
24330
24330
|
}
|
|
24331
24331
|
f++;
|
|
24332
|
-
} else if (
|
|
24333
|
-
const H = e.get(
|
|
24334
|
-
H.color.copy(A).multiplyScalar(B), H.halfWidth.set(
|
|
24335
|
-
} else if (
|
|
24336
|
-
const H = e.get(
|
|
24337
|
-
if (H.color.copy(
|
|
24338
|
-
const G =
|
|
24339
|
-
Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, Z.shadowCameraNear = G.camera.near, Z.shadowCameraFar = G.camera.far, n.pointShadow[g] = Z, n.pointShadowMap[g] = U, n.pointShadowMatrix[g] =
|
|
24332
|
+
} else if (D.isRectAreaLight) {
|
|
24333
|
+
const H = e.get(D);
|
|
24334
|
+
H.color.copy(A).multiplyScalar(B), H.halfWidth.set(D.width * 0.5, 0, 0), H.halfHeight.set(0, D.height * 0.5, 0), n.rectArea[x] = H, x++;
|
|
24335
|
+
} else if (D.isPointLight) {
|
|
24336
|
+
const H = e.get(D);
|
|
24337
|
+
if (H.color.copy(D.color).multiplyScalar(D.intensity), H.distance = D.distance, H.decay = D.decay, D.castShadow) {
|
|
24338
|
+
const G = D.shadow, Z = t.get(D);
|
|
24339
|
+
Z.shadowIntensity = G.intensity, Z.shadowBias = G.bias, Z.shadowNormalBias = G.normalBias, Z.shadowRadius = G.radius, Z.shadowMapSize = G.mapSize, Z.shadowCameraNear = G.camera.near, Z.shadowCameraFar = G.camera.far, n.pointShadow[g] = Z, n.pointShadowMap[g] = U, n.pointShadowMatrix[g] = D.shadow.matrix, v++;
|
|
24340
24340
|
}
|
|
24341
24341
|
n.point[g] = H, g++;
|
|
24342
|
-
} else if (
|
|
24343
|
-
const H = e.get(
|
|
24344
|
-
H.skyColor.copy(
|
|
24342
|
+
} else if (D.isHemisphereLight) {
|
|
24343
|
+
const H = e.get(D);
|
|
24344
|
+
H.skyColor.copy(D.color).multiplyScalar(B), H.groundColor.copy(D.groundColor).multiplyScalar(B), n.hemi[m] = H, m++;
|
|
24345
24345
|
}
|
|
24346
24346
|
}
|
|
24347
24347
|
x > 0 && (s.has("OES_texture_float_linear") === !0 ? (n.rectAreaLTC1 = Pe.LTC_FLOAT_1, n.rectAreaLTC2 = Pe.LTC_FLOAT_2) : (n.rectAreaLTC1 = Pe.LTC_HALF_1, n.rectAreaLTC2 = Pe.LTC_HALF_2)), n.ambient[0] = h, n.ambient[1] = d, n.ambient[2] = p;
|
|
@@ -24482,7 +24482,7 @@ function $3(s, e, t) {
|
|
|
24482
24482
|
let m = this.type;
|
|
24483
24483
|
this.render = function(M, T, R) {
|
|
24484
24484
|
if (x.enabled === !1 || x.autoUpdate === !1 && x.needsUpdate === !1 || M.length === 0) return;
|
|
24485
|
-
const w = s.getRenderTarget(), E = s.getActiveCubeFace(),
|
|
24485
|
+
const w = s.getRenderTarget(), E = s.getActiveCubeFace(), D = s.getActiveMipmapLevel(), A = s.state;
|
|
24486
24486
|
A.setBlending(St), A.buffers.depth.getReversed() === !0 ? A.buffers.color.setClear(0, 0, 0, 0) : A.buffers.color.setClear(1, 1, 1, 1), A.buffers.depth.setTest(!0), A.setScissorTest(!1);
|
|
24487
24487
|
const B = m !== Ti && this.type === Ti, S = m === Ti && this.type !== Ti;
|
|
24488
24488
|
for (let U = 0, H = M.length; U < H; U++) {
|
|
@@ -24511,7 +24511,7 @@ function $3(s, e, t) {
|
|
|
24511
24511
|
}
|
|
24512
24512
|
Z.isPointLightShadow !== !0 && this.type === Ti && b(Z, R), Z.needsUpdate = !1;
|
|
24513
24513
|
}
|
|
24514
|
-
m = this.type, x.needsUpdate = !1, s.setRenderTarget(w, E,
|
|
24514
|
+
m = this.type, x.needsUpdate = !1, s.setRenderTarget(w, E, D);
|
|
24515
24515
|
};
|
|
24516
24516
|
function b(M, T) {
|
|
24517
24517
|
const R = e.update(f);
|
|
@@ -24519,9 +24519,9 @@ function $3(s, e, t) {
|
|
|
24519
24519
|
}
|
|
24520
24520
|
function v(M, T, R, w) {
|
|
24521
24521
|
let E = null;
|
|
24522
|
-
const
|
|
24523
|
-
if (
|
|
24524
|
-
E =
|
|
24522
|
+
const D = R.isPointLight === !0 ? M.customDistanceMaterial : M.customDepthMaterial;
|
|
24523
|
+
if (D !== void 0)
|
|
24524
|
+
E = D;
|
|
24525
24525
|
else if (E = R.isPointLight === !0 ? l : o, s.localClippingEnabled && T.clipShadows === !0 && Array.isArray(T.clippingPlanes) && T.clippingPlanes.length !== 0 || T.displacementMap && T.displacementScale !== 0 || T.alphaMap && T.alphaTest > 0 || T.map && T.alphaTest > 0 || T.alphaToCoverage === !0) {
|
|
24526
24526
|
const A = E.uuid, B = T.uuid;
|
|
24527
24527
|
let S = c[A];
|
|
@@ -24688,7 +24688,7 @@ function J3(s, e) {
|
|
|
24688
24688
|
};
|
|
24689
24689
|
}
|
|
24690
24690
|
const r = new t(), a = new n(), o = new i(), l = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap();
|
|
24691
|
-
let h = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), u = [], g = null, f = !1, x = null, m = null, b = null, v = null, y = null, _ = null, M = null, T = new Fe(0, 0, 0), R = 0, w = !1, E = null,
|
|
24691
|
+
let h = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), u = [], g = null, f = !1, x = null, m = null, b = null, v = null, y = null, _ = null, M = null, T = new Fe(0, 0, 0), R = 0, w = !1, E = null, D = null, A = null, B = null, S = null;
|
|
24692
24692
|
const U = s.getParameter(s.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
|
|
24693
24693
|
let H = !1, G = 0;
|
|
24694
24694
|
const Z = s.getParameter(s.VERSION);
|
|
@@ -24802,7 +24802,7 @@ function J3(s, e) {
|
|
|
24802
24802
|
}
|
|
24803
24803
|
ve = ve || Ce, ge = ge || Me, Oe = Oe || we, (Ce !== m || ve !== y) && (s.blendEquationSeparate($e[Ce], $e[ve]), m = Ce, y = ve), (Me !== b || we !== v || ge !== _ || Oe !== M) && (s.blendFuncSeparate(ke[Me], ke[we], ke[ge], ke[Oe]), b = Me, v = we, _ = ge, M = Oe), (Ye.equals(T) === !1 || yt !== R) && (s.blendColor(Ye.r, Ye.g, Ye.b, yt), T.copy(Ye), R = yt), x = Y, w = !1;
|
|
24804
24804
|
}
|
|
24805
|
-
function
|
|
24805
|
+
function I(Y, Ce) {
|
|
24806
24806
|
Y.side === Mt ? me(s.CULL_FACE) : ce(s.CULL_FACE);
|
|
24807
24807
|
let Me = Y.side === cn;
|
|
24808
24808
|
Ce && (Me = !Me), W(Me), Y.blending === Tr && Y.transparent === !1 ? C(St) : C(Y.blending, Y.blendEquation, Y.blendSrc, Y.blendDst, Y.blendEquationAlpha, Y.blendSrcAlpha, Y.blendDstAlpha, Y.blendColor, Y.blendAlpha, Y.premultipliedAlpha), a.setFunc(Y.depthFunc), a.setTest(Y.depthTest), a.setMask(Y.depthWrite), r.setMask(Y.colorWrite);
|
|
@@ -24813,7 +24813,7 @@ function J3(s, e) {
|
|
|
24813
24813
|
E !== Y && (Y ? s.frontFace(s.CW) : s.frontFace(s.CCW), E = Y);
|
|
24814
24814
|
}
|
|
24815
24815
|
function O(Y) {
|
|
24816
|
-
Y !==
|
|
24816
|
+
Y !== Dg ? (ce(s.CULL_FACE), Y !== D && (Y === Au ? s.cullFace(s.BACK) : Y === Ig ? s.cullFace(s.FRONT) : s.cullFace(s.FRONT_AND_BACK))) : me(s.CULL_FACE), D = Y;
|
|
24817
24817
|
}
|
|
24818
24818
|
function k(Y) {
|
|
24819
24819
|
Y !== A && (H && s.lineWidth(Y), A = Y);
|
|
@@ -24892,7 +24892,7 @@ function J3(s, e) {
|
|
|
24892
24892
|
Y("WebGLState:", Y);
|
|
24893
24893
|
}
|
|
24894
24894
|
}
|
|
24895
|
-
function
|
|
24895
|
+
function Ie() {
|
|
24896
24896
|
try {
|
|
24897
24897
|
s.texImage2D(...arguments);
|
|
24898
24898
|
} catch (Y) {
|
|
@@ -24923,7 +24923,7 @@ function J3(s, e) {
|
|
|
24923
24923
|
l.get(Ce) !== we && (s.uniformBlockBinding(Ce, we, Y.__bindingPointIndex), l.set(Ce, we));
|
|
24924
24924
|
}
|
|
24925
24925
|
function Ge() {
|
|
24926
|
-
s.disable(s.BLEND), s.disable(s.CULL_FACE), s.disable(s.DEPTH_TEST), s.disable(s.POLYGON_OFFSET_FILL), s.disable(s.SCISSOR_TEST), s.disable(s.STENCIL_TEST), s.disable(s.SAMPLE_ALPHA_TO_COVERAGE), s.blendEquation(s.FUNC_ADD), s.blendFunc(s.ONE, s.ZERO), s.blendFuncSeparate(s.ONE, s.ZERO, s.ONE, s.ZERO), s.blendColor(0, 0, 0, 0), s.colorMask(!0, !0, !0, !0), s.clearColor(0, 0, 0, 0), s.depthMask(!0), s.depthFunc(s.LESS), a.setReversed(!1), s.clearDepth(1), s.stencilMask(4294967295), s.stencilFunc(s.ALWAYS, 0, 4294967295), s.stencilOp(s.KEEP, s.KEEP, s.KEEP), s.clearStencil(0), s.cullFace(s.BACK), s.frontFace(s.CCW), s.polygonOffset(0, 0), s.activeTexture(s.TEXTURE0), s.bindFramebuffer(s.FRAMEBUFFER, null), s.bindFramebuffer(s.DRAW_FRAMEBUFFER, null), s.bindFramebuffer(s.READ_FRAMEBUFFER, null), s.useProgram(null), s.lineWidth(1), s.scissor(0, 0, s.canvas.width, s.canvas.height), s.viewport(0, 0, s.canvas.width, s.canvas.height), h = {}, j = null, ie = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), u = [], g = null, f = !1, x = null, m = null, b = null, v = null, y = null, _ = null, M = null, T = new Fe(0, 0, 0), R = 0, w = !1, E = null,
|
|
24926
|
+
s.disable(s.BLEND), s.disable(s.CULL_FACE), s.disable(s.DEPTH_TEST), s.disable(s.POLYGON_OFFSET_FILL), s.disable(s.SCISSOR_TEST), s.disable(s.STENCIL_TEST), s.disable(s.SAMPLE_ALPHA_TO_COVERAGE), s.blendEquation(s.FUNC_ADD), s.blendFunc(s.ONE, s.ZERO), s.blendFuncSeparate(s.ONE, s.ZERO, s.ONE, s.ZERO), s.blendColor(0, 0, 0, 0), s.colorMask(!0, !0, !0, !0), s.clearColor(0, 0, 0, 0), s.depthMask(!0), s.depthFunc(s.LESS), a.setReversed(!1), s.clearDepth(1), s.stencilMask(4294967295), s.stencilFunc(s.ALWAYS, 0, 4294967295), s.stencilOp(s.KEEP, s.KEEP, s.KEEP), s.clearStencil(0), s.cullFace(s.BACK), s.frontFace(s.CCW), s.polygonOffset(0, 0), s.activeTexture(s.TEXTURE0), s.bindFramebuffer(s.FRAMEBUFFER, null), s.bindFramebuffer(s.DRAW_FRAMEBUFFER, null), s.bindFramebuffer(s.READ_FRAMEBUFFER, null), s.useProgram(null), s.lineWidth(1), s.scissor(0, 0, s.canvas.width, s.canvas.height), s.viewport(0, 0, s.canvas.width, s.canvas.height), h = {}, j = null, ie = {}, d = {}, p = /* @__PURE__ */ new WeakMap(), u = [], g = null, f = !1, x = null, m = null, b = null, v = null, y = null, _ = null, M = null, T = new Fe(0, 0, 0), R = 0, w = !1, E = null, D = null, A = null, B = null, S = null, ue.set(0, 0, s.canvas.width, s.canvas.height), pe.set(0, 0, s.canvas.width, s.canvas.height), r.reset(), a.reset(), o.reset();
|
|
24927
24927
|
}
|
|
24928
24928
|
return {
|
|
24929
24929
|
buffers: {
|
|
@@ -24937,7 +24937,7 @@ function J3(s, e) {
|
|
|
24937
24937
|
drawBuffers: Se,
|
|
24938
24938
|
useProgram: Be,
|
|
24939
24939
|
setBlending: C,
|
|
24940
|
-
setMaterial:
|
|
24940
|
+
setMaterial: I,
|
|
24941
24941
|
setFlipSided: W,
|
|
24942
24942
|
setCullFace: O,
|
|
24943
24943
|
setLineWidth: k,
|
|
@@ -24948,7 +24948,7 @@ function J3(s, e) {
|
|
|
24948
24948
|
unbindTexture: N,
|
|
24949
24949
|
compressedTexImage2D: L,
|
|
24950
24950
|
compressedTexImage3D: V,
|
|
24951
|
-
texImage2D:
|
|
24951
|
+
texImage2D: Ie,
|
|
24952
24952
|
texImage3D: de,
|
|
24953
24953
|
updateUBOMapping: Ue,
|
|
24954
24954
|
uniformBlockBinding: Ae,
|
|
@@ -24976,7 +24976,7 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
24976
24976
|
return u ? (
|
|
24977
24977
|
// eslint-disable-next-line compat/compat
|
|
24978
24978
|
new OffscreenCanvas(N, L)
|
|
24979
|
-
) :
|
|
24979
|
+
) : Ia("canvas");
|
|
24980
24980
|
}
|
|
24981
24981
|
function f(N, L, V) {
|
|
24982
24982
|
let K = 1;
|
|
@@ -25070,13 +25070,13 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25070
25070
|
}
|
|
25071
25071
|
n.remove(N);
|
|
25072
25072
|
}
|
|
25073
|
-
let
|
|
25073
|
+
let D = 0;
|
|
25074
25074
|
function A() {
|
|
25075
|
-
|
|
25075
|
+
D = 0;
|
|
25076
25076
|
}
|
|
25077
25077
|
function B() {
|
|
25078
|
-
const N =
|
|
25079
|
-
return N >= i.maxTextures && He("WebGLTextures: Trying to use " + N + " texture units while this GPU supports only " + i.maxTextures),
|
|
25078
|
+
const N = D;
|
|
25079
|
+
return N >= i.maxTextures && He("WebGLTextures: Trying to use " + N + " texture units while this GPU supports only " + i.maxTextures), D += 1, N;
|
|
25080
25080
|
}
|
|
25081
25081
|
function S(N) {
|
|
25082
25082
|
const L = [];
|
|
@@ -25122,7 +25122,7 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25122
25122
|
t.bindTexture(s.TEXTURE_CUBE_MAP, V.__webglTexture, s.TEXTURE0 + L);
|
|
25123
25123
|
}
|
|
25124
25124
|
const j = {
|
|
25125
|
-
[
|
|
25125
|
+
[In]: s.REPEAT,
|
|
25126
25126
|
[Vn]: s.CLAMP_TO_EDGE,
|
|
25127
25127
|
[Cl]: s.MIRRORED_REPEAT
|
|
25128
25128
|
}, ie = {
|
|
@@ -25186,13 +25186,13 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25186
25186
|
) : (++Te, te[Te] = Ve);
|
|
25187
25187
|
}
|
|
25188
25188
|
te.length = Te + 1;
|
|
25189
|
-
const ye = s.getParameter(s.UNPACK_ROW_LENGTH), Re = s.getParameter(s.UNPACK_SKIP_PIXELS),
|
|
25189
|
+
const ye = s.getParameter(s.UNPACK_ROW_LENGTH), Re = s.getParameter(s.UNPACK_SKIP_PIXELS), Ie = s.getParameter(s.UNPACK_SKIP_ROWS);
|
|
25190
25190
|
s.pixelStorei(s.UNPACK_ROW_LENGTH, L.width);
|
|
25191
25191
|
for (let de = 0, _e = te.length; de < _e; de++) {
|
|
25192
25192
|
const Ve = te[de], Ue = Math.floor(Ve.start / 4), Ae = Math.ceil(Ve.count / 4), Ge = Ue % L.width, Y = Math.floor(Ue / L.width), Ce = Ae, Me = 1;
|
|
25193
25193
|
s.pixelStorei(s.UNPACK_SKIP_PIXELS, Ge), s.pixelStorei(s.UNPACK_SKIP_ROWS, Y), t.texSubImage2D(s.TEXTURE_2D, 0, Ge, Y, Ce, Me, V, K, L.data);
|
|
25194
25194
|
}
|
|
25195
|
-
N.clearUpdateRanges(), s.pixelStorei(s.UNPACK_ROW_LENGTH, ye), s.pixelStorei(s.UNPACK_SKIP_PIXELS, Re), s.pixelStorei(s.UNPACK_SKIP_ROWS,
|
|
25195
|
+
N.clearUpdateRanges(), s.pixelStorei(s.UNPACK_ROW_LENGTH, ye), s.pixelStorei(s.UNPACK_SKIP_PIXELS, Re), s.pixelStorei(s.UNPACK_SKIP_ROWS, Ie);
|
|
25196
25196
|
}
|
|
25197
25197
|
}
|
|
25198
25198
|
function se(N, L, V) {
|
|
@@ -25203,8 +25203,8 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25203
25203
|
const Te = n.get(te);
|
|
25204
25204
|
if (te.version !== Te.__version || le === !0) {
|
|
25205
25205
|
t.activeTexture(s.TEXTURE0 + V);
|
|
25206
|
-
const ye = st.getPrimaries(st.workingColorSpace), Re = L.colorSpace === Ji ? null : st.getPrimaries(L.colorSpace),
|
|
25207
|
-
s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, L.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, L.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, L.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL,
|
|
25206
|
+
const ye = st.getPrimaries(st.workingColorSpace), Re = L.colorSpace === Ji ? null : st.getPrimaries(L.colorSpace), Ie = L.colorSpace === Ji || ye === Re ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
|
|
25207
|
+
s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, L.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, L.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, L.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, Ie);
|
|
25208
25208
|
let de = f(L.image, !1, i.maxTextureSize);
|
|
25209
25209
|
de = J(L, de);
|
|
25210
25210
|
const _e = r.convert(L.format, L.colorSpace), Ve = r.convert(L.type);
|
|
@@ -25310,14 +25310,14 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25310
25310
|
t.activeTexture(s.TEXTURE0 + V);
|
|
25311
25311
|
const Te = st.getPrimaries(st.workingColorSpace), ye = L.colorSpace === Ji ? null : st.getPrimaries(L.colorSpace), Re = L.colorSpace === Ji || Te === ye ? s.NONE : s.BROWSER_DEFAULT_WEBGL;
|
|
25312
25312
|
s.pixelStorei(s.UNPACK_FLIP_Y_WEBGL, L.flipY), s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, L.premultiplyAlpha), s.pixelStorei(s.UNPACK_ALIGNMENT, L.unpackAlignment), s.pixelStorei(s.UNPACK_COLORSPACE_CONVERSION_WEBGL, Re);
|
|
25313
|
-
const
|
|
25313
|
+
const Ie = L.isCompressedTexture || L.image[0].isCompressedTexture, de = L.image[0] && L.image[0].isDataTexture, _e = [];
|
|
25314
25314
|
for (let ge = 0; ge < 6; ge++)
|
|
25315
|
-
!
|
|
25315
|
+
!Ie && !de ? _e[ge] = f(L.image[ge], !0, i.maxCubemapSize) : _e[ge] = de ? L.image[ge].image : L.image[ge], _e[ge] = J(L, _e[ge]);
|
|
25316
25316
|
const Ve = _e[0], Ue = r.convert(L.format, L.colorSpace), Ae = r.convert(L.type), Ge = v(L.internalFormat, Ue, Ae, L.colorSpace), Y = L.isVideoTexture !== !0, Ce = te.__version === void 0 || K === !0, Me = le.dataReady;
|
|
25317
25317
|
let we = _(L, Ve);
|
|
25318
25318
|
$(s.TEXTURE_CUBE_MAP, L);
|
|
25319
25319
|
let ve;
|
|
25320
|
-
if (
|
|
25320
|
+
if (Ie) {
|
|
25321
25321
|
Y && Ce && t.texStorage2D(s.TEXTURE_CUBE_MAP, we, Ge, Ve.width, Ve.height);
|
|
25322
25322
|
for (let ge = 0; ge < 6; ge++) {
|
|
25323
25323
|
ve = _e[ge].mipmaps;
|
|
@@ -25352,8 +25352,8 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25352
25352
|
N.__version = L.version;
|
|
25353
25353
|
}
|
|
25354
25354
|
function me(N, L, V, K, le, te) {
|
|
25355
|
-
const Te = r.convert(V.format, V.colorSpace), ye = r.convert(V.type), Re = v(V.internalFormat, Te, ye, V.colorSpace),
|
|
25356
|
-
if (de.__renderTarget = L, !
|
|
25355
|
+
const Te = r.convert(V.format, V.colorSpace), ye = r.convert(V.type), Re = v(V.internalFormat, Te, ye, V.colorSpace), Ie = n.get(L), de = n.get(V);
|
|
25356
|
+
if (de.__renderTarget = L, !Ie.__hasExternalTextures) {
|
|
25357
25357
|
const _e = Math.max(1, L.width >> te), Ve = Math.max(1, L.height >> te);
|
|
25358
25358
|
le === s.TEXTURE_3D || le === s.TEXTURE_2D_ARRAY ? t.texImage3D(le, te, Re, _e, Ve, L.depth, 0, Te, ye, null) : t.texImage2D(le, te, Re, _e, Ve, 0, Te, ye, null);
|
|
25359
25359
|
}
|
|
@@ -25366,8 +25366,8 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25366
25366
|
} else {
|
|
25367
25367
|
const K = L.textures;
|
|
25368
25368
|
for (let le = 0; le < K.length; le++) {
|
|
25369
|
-
const te = K[le], Te = r.convert(te.format, te.colorSpace), ye = r.convert(te.type), Re = v(te.internalFormat, Te, ye, te.colorSpace),
|
|
25370
|
-
V && F(L) === !1 ? s.renderbufferStorageMultisample(s.RENDERBUFFER,
|
|
25369
|
+
const te = K[le], Te = r.convert(te.format, te.colorSpace), ye = r.convert(te.type), Re = v(te.internalFormat, Te, ye, te.colorSpace), Ie = k(L);
|
|
25370
|
+
V && F(L) === !1 ? s.renderbufferStorageMultisample(s.RENDERBUFFER, Ie, Re, L.width, L.height) : F(L) ? o.renderbufferStorageMultisampleEXT(s.RENDERBUFFER, Ie, Re, L.width, L.height) : s.renderbufferStorage(s.RENDERBUFFER, Re, L.width, L.height);
|
|
25371
25371
|
}
|
|
25372
25372
|
}
|
|
25373
25373
|
s.bindRenderbuffer(s.RENDERBUFFER, null);
|
|
@@ -25448,15 +25448,15 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25448
25448
|
V.__webglFramebuffer = s.createFramebuffer();
|
|
25449
25449
|
if (Te)
|
|
25450
25450
|
for (let ye = 0, Re = le.length; ye < Re; ye++) {
|
|
25451
|
-
const
|
|
25452
|
-
|
|
25451
|
+
const Ie = n.get(le[ye]);
|
|
25452
|
+
Ie.__webglTexture === void 0 && (Ie.__webglTexture = s.createTexture(), a.memory.textures++);
|
|
25453
25453
|
}
|
|
25454
25454
|
if (N.samples > 0 && F(N) === !1) {
|
|
25455
25455
|
V.__webglMultisampledFramebuffer = s.createFramebuffer(), V.__webglColorRenderbuffer = [], t.bindFramebuffer(s.FRAMEBUFFER, V.__webglMultisampledFramebuffer);
|
|
25456
25456
|
for (let ye = 0; ye < le.length; ye++) {
|
|
25457
25457
|
const Re = le[ye];
|
|
25458
25458
|
V.__webglColorRenderbuffer[ye] = s.createRenderbuffer(), s.bindRenderbuffer(s.RENDERBUFFER, V.__webglColorRenderbuffer[ye]);
|
|
25459
|
-
const
|
|
25459
|
+
const Ie = r.convert(Re.format, Re.colorSpace), de = r.convert(Re.type), _e = v(Re.internalFormat, Ie, de, Re.colorSpace, N.isXRRenderTarget === !0), Ve = k(N);
|
|
25460
25460
|
s.renderbufferStorageMultisample(s.RENDERBUFFER, Ve, _e, N.width, N.height), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 + ye, s.RENDERBUFFER, V.__webglColorRenderbuffer[ye]);
|
|
25461
25461
|
}
|
|
25462
25462
|
s.bindRenderbuffer(s.RENDERBUFFER, null), N.depthBuffer && (V.__webglDepthRenderbuffer = s.createRenderbuffer(), be(V.__webglDepthRenderbuffer, N, !0)), t.bindFramebuffer(s.FRAMEBUFFER, null);
|
|
@@ -25473,9 +25473,9 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25473
25473
|
x(L) && m(s.TEXTURE_CUBE_MAP), t.unbindTexture();
|
|
25474
25474
|
} else if (Te) {
|
|
25475
25475
|
for (let ye = 0, Re = le.length; ye < Re; ye++) {
|
|
25476
|
-
const
|
|
25476
|
+
const Ie = le[ye], de = n.get(Ie);
|
|
25477
25477
|
let _e = s.TEXTURE_2D;
|
|
25478
|
-
(N.isWebGL3DRenderTarget || N.isWebGLArrayRenderTarget) && (_e = N.isWebGL3DRenderTarget ? s.TEXTURE_3D : s.TEXTURE_2D_ARRAY), t.bindTexture(_e, de.__webglTexture), $(_e,
|
|
25478
|
+
(N.isWebGL3DRenderTarget || N.isWebGLArrayRenderTarget) && (_e = N.isWebGL3DRenderTarget ? s.TEXTURE_3D : s.TEXTURE_2D_ARRAY), t.bindTexture(_e, de.__webglTexture), $(_e, Ie), me(V.__webglFramebuffer, N, Ie, s.COLOR_ATTACHMENT0 + ye, _e, 0), x(Ie) && m(_e);
|
|
25479
25479
|
}
|
|
25480
25480
|
t.unbindTexture();
|
|
25481
25481
|
} else {
|
|
@@ -25499,7 +25499,7 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25499
25499
|
}
|
|
25500
25500
|
}
|
|
25501
25501
|
}
|
|
25502
|
-
const
|
|
25502
|
+
const I = [], W = [];
|
|
25503
25503
|
function O(N) {
|
|
25504
25504
|
if (N.samples > 0) {
|
|
25505
25505
|
if (F(N) === !1) {
|
|
@@ -25507,24 +25507,24 @@ function Q3(s, e, t, n, i, r, a) {
|
|
|
25507
25507
|
let le = s.COLOR_BUFFER_BIT;
|
|
25508
25508
|
const te = N.stencilBuffer ? s.DEPTH_STENCIL_ATTACHMENT : s.DEPTH_ATTACHMENT, Te = n.get(N), ye = L.length > 1;
|
|
25509
25509
|
if (ye)
|
|
25510
|
-
for (let
|
|
25511
|
-
t.bindFramebuffer(s.FRAMEBUFFER, Te.__webglMultisampledFramebuffer), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 +
|
|
25510
|
+
for (let Ie = 0; Ie < L.length; Ie++)
|
|
25511
|
+
t.bindFramebuffer(s.FRAMEBUFFER, Te.__webglMultisampledFramebuffer), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 + Ie, s.RENDERBUFFER, null), t.bindFramebuffer(s.FRAMEBUFFER, Te.__webglFramebuffer), s.framebufferTexture2D(s.DRAW_FRAMEBUFFER, s.COLOR_ATTACHMENT0 + Ie, s.TEXTURE_2D, null, 0);
|
|
25512
25512
|
t.bindFramebuffer(s.READ_FRAMEBUFFER, Te.__webglMultisampledFramebuffer);
|
|
25513
25513
|
const Re = N.texture.mipmaps;
|
|
25514
25514
|
Re && Re.length > 0 ? t.bindFramebuffer(s.DRAW_FRAMEBUFFER, Te.__webglFramebuffer[0]) : t.bindFramebuffer(s.DRAW_FRAMEBUFFER, Te.__webglFramebuffer);
|
|
25515
|
-
for (let
|
|
25515
|
+
for (let Ie = 0; Ie < L.length; Ie++) {
|
|
25516
25516
|
if (N.resolveDepthBuffer && (N.depthBuffer && (le |= s.DEPTH_BUFFER_BIT), N.stencilBuffer && N.resolveStencilBuffer && (le |= s.STENCIL_BUFFER_BIT)), ye) {
|
|
25517
|
-
s.framebufferRenderbuffer(s.READ_FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.RENDERBUFFER, Te.__webglColorRenderbuffer[
|
|
25518
|
-
const de = n.get(L[
|
|
25517
|
+
s.framebufferRenderbuffer(s.READ_FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.RENDERBUFFER, Te.__webglColorRenderbuffer[Ie]);
|
|
25518
|
+
const de = n.get(L[Ie]).__webglTexture;
|
|
25519
25519
|
s.framebufferTexture2D(s.DRAW_FRAMEBUFFER, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, de, 0);
|
|
25520
25520
|
}
|
|
25521
|
-
s.blitFramebuffer(0, 0, V, K, 0, 0, V, K, le, s.NEAREST), l === !0 && (
|
|
25521
|
+
s.blitFramebuffer(0, 0, V, K, 0, 0, V, K, le, s.NEAREST), l === !0 && (I.length = 0, W.length = 0, I.push(s.COLOR_ATTACHMENT0 + Ie), N.depthBuffer && N.resolveDepthBuffer === !1 && (I.push(te), W.push(te), s.invalidateFramebuffer(s.DRAW_FRAMEBUFFER, W)), s.invalidateFramebuffer(s.READ_FRAMEBUFFER, I));
|
|
25522
25522
|
}
|
|
25523
25523
|
if (t.bindFramebuffer(s.READ_FRAMEBUFFER, null), t.bindFramebuffer(s.DRAW_FRAMEBUFFER, null), ye)
|
|
25524
|
-
for (let
|
|
25525
|
-
t.bindFramebuffer(s.FRAMEBUFFER, Te.__webglMultisampledFramebuffer), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 +
|
|
25526
|
-
const de = n.get(L[
|
|
25527
|
-
t.bindFramebuffer(s.FRAMEBUFFER, Te.__webglFramebuffer), s.framebufferTexture2D(s.DRAW_FRAMEBUFFER, s.COLOR_ATTACHMENT0 +
|
|
25524
|
+
for (let Ie = 0; Ie < L.length; Ie++) {
|
|
25525
|
+
t.bindFramebuffer(s.FRAMEBUFFER, Te.__webglMultisampledFramebuffer), s.framebufferRenderbuffer(s.FRAMEBUFFER, s.COLOR_ATTACHMENT0 + Ie, s.RENDERBUFFER, Te.__webglColorRenderbuffer[Ie]);
|
|
25526
|
+
const de = n.get(L[Ie]).__webglTexture;
|
|
25527
|
+
t.bindFramebuffer(s.FRAMEBUFFER, Te.__webglFramebuffer), s.framebufferTexture2D(s.DRAW_FRAMEBUFFER, s.COLOR_ATTACHMENT0 + Ie, s.TEXTURE_2D, de, 0);
|
|
25528
25528
|
}
|
|
25529
25529
|
t.bindFramebuffer(s.DRAW_FRAMEBUFFER, Te.__webglMultisampledFramebuffer);
|
|
25530
25530
|
} else if (N.depthBuffer && N.resolveDepthBuffer === !1 && l) {
|
|
@@ -25560,10 +25560,10 @@ function e_(s, e) {
|
|
|
25560
25560
|
if (n === ii) return s.UNSIGNED_BYTE;
|
|
25561
25561
|
if (n === Fd) return s.UNSIGNED_SHORT_4_4_4_4;
|
|
25562
25562
|
if (n === Hd) return s.UNSIGNED_SHORT_5_5_5_1;
|
|
25563
|
-
if (n ===
|
|
25563
|
+
if (n === Im) return s.UNSIGNED_INT_5_9_9_9_REV;
|
|
25564
25564
|
if (n === Nm) return s.UNSIGNED_INT_10F_11F_11F_REV;
|
|
25565
25565
|
if (n === Lm) return s.BYTE;
|
|
25566
|
-
if (n ===
|
|
25566
|
+
if (n === Dm) return s.SHORT;
|
|
25567
25567
|
if (n === Pa) return s.UNSIGNED_SHORT;
|
|
25568
25568
|
if (n === zd) return s.INT;
|
|
25569
25569
|
if (n === Ns) return s.UNSIGNED_INT;
|
|
@@ -25595,10 +25595,10 @@ function e_(s, e) {
|
|
|
25595
25595
|
if (n === pl) return r.COMPRESSED_RGBA_S3TC_DXT5_EXT;
|
|
25596
25596
|
} else
|
|
25597
25597
|
return null;
|
|
25598
|
-
if (n ===
|
|
25598
|
+
if (n === Dh || n === Ih || n === Nh || n === Bh)
|
|
25599
25599
|
if (r = e.get("WEBGL_compressed_texture_pvrtc"), r !== null) {
|
|
25600
|
-
if (n ===
|
|
25601
|
-
if (n ===
|
|
25600
|
+
if (n === Dh) return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
|
|
25601
|
+
if (n === Ih) return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
|
|
25602
25602
|
if (n === Nh) return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
|
|
25603
25603
|
if (n === Bh) return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
|
|
25604
25604
|
} else
|
|
@@ -25745,7 +25745,7 @@ class s_ extends zs {
|
|
|
25745
25745
|
w.viewport = new tt();
|
|
25746
25746
|
const E = new an();
|
|
25747
25747
|
E.viewport = new tt();
|
|
25748
|
-
const
|
|
25748
|
+
const D = [w, E], A = new dv();
|
|
25749
25749
|
let B = null, S = null;
|
|
25750
25750
|
this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(se) {
|
|
25751
25751
|
let ce = _[se];
|
|
@@ -25870,11 +25870,11 @@ class s_ extends zs {
|
|
|
25870
25870
|
const Z = new P(), j = new P();
|
|
25871
25871
|
function ie(se, ce, me) {
|
|
25872
25872
|
Z.setFromMatrixPosition(ce.matrixWorld), j.setFromMatrixPosition(me.matrixWorld);
|
|
25873
|
-
const be = Z.distanceTo(j), Se = ce.projectionMatrix.elements, Be = me.projectionMatrix.elements, $e = Se[14] / (Se[10] - 1), ke = Se[14] / (Se[10] + 1), C = (Se[9] + 1) / Se[5],
|
|
25873
|
+
const be = Z.distanceTo(j), Se = ce.projectionMatrix.elements, Be = me.projectionMatrix.elements, $e = Se[14] / (Se[10] - 1), ke = Se[14] / (Se[10] + 1), C = (Se[9] + 1) / Se[5], I = (Se[9] - 1) / Se[5], W = (Se[8] - 1) / Se[0], O = (Be[8] + 1) / Be[0], k = $e * W, F = $e * O, ee = be / (-W + O), J = ee * -W;
|
|
25874
25874
|
if (ce.matrixWorld.decompose(se.position, se.quaternion, se.scale), se.translateX(J), se.translateZ(ee), se.matrixWorld.compose(se.position, se.quaternion, se.scale), se.matrixWorldInverse.copy(se.matrixWorld).invert(), Se[10] === -1)
|
|
25875
25875
|
se.projectionMatrix.copy(ce.projectionMatrix), se.projectionMatrixInverse.copy(ce.projectionMatrixInverse);
|
|
25876
25876
|
else {
|
|
25877
|
-
const q = $e + ee, N = ke + ee, L = k - J, V = F + (be - J), K = C * ke / N * q, le =
|
|
25877
|
+
const q = $e + ee, N = ke + ee, L = k - J, V = F + (be - J), K = C * ke / N * q, le = I * ke / N * q;
|
|
25878
25878
|
se.projectionMatrix.makePerspective(L, V, K, le, q, N), se.projectionMatrixInverse.copy(se.projectionMatrix).invert();
|
|
25879
25879
|
}
|
|
25880
25880
|
}
|
|
@@ -25920,19 +25920,19 @@ class s_ extends zs {
|
|
|
25920
25920
|
me.length !== A.cameras.length && (A.cameras.length = 0, be = !0);
|
|
25921
25921
|
for (let ke = 0; ke < me.length; ke++) {
|
|
25922
25922
|
const C = me[ke];
|
|
25923
|
-
let
|
|
25923
|
+
let I = null;
|
|
25924
25924
|
if (u !== null)
|
|
25925
|
-
|
|
25925
|
+
I = u.getViewport(C);
|
|
25926
25926
|
else {
|
|
25927
25927
|
const O = d.getViewSubImage(p, C);
|
|
25928
|
-
|
|
25928
|
+
I = O.viewport, ke === 0 && (e.setRenderTargetTextures(
|
|
25929
25929
|
y,
|
|
25930
25930
|
O.colorTexture,
|
|
25931
25931
|
O.depthStencilTexture
|
|
25932
25932
|
), e.setRenderTarget(y));
|
|
25933
25933
|
}
|
|
25934
|
-
let W =
|
|
25935
|
-
W === void 0 && (W = new an(), W.layers.enable(ke), W.viewport = new tt(),
|
|
25934
|
+
let W = D[ke];
|
|
25935
|
+
W === void 0 && (W = new an(), W.layers.enable(ke), W.viewport = new tt(), D[ke] = W), W.matrix.fromArray(C.transform.matrix), W.matrix.decompose(W.position, W.quaternion, W.scale), W.projectionMatrix.fromArray(C.projectionMatrix), W.projectionMatrixInverse.copy(W.projectionMatrix).invert(), W.viewport.set(I.x, I.y, I.width, I.height), ke === 0 && (A.matrix.copy(W.matrix), A.matrix.decompose(A.position, A.quaternion, A.scale)), be === !0 && A.cameras.push(W);
|
|
25936
25936
|
}
|
|
25937
25937
|
const Se = i.enabledFeatures;
|
|
25938
25938
|
if (Se && Se.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && f) {
|
|
@@ -25945,10 +25945,10 @@ class s_ extends zs {
|
|
|
25945
25945
|
for (let ke = 0; ke < me.length; ke++) {
|
|
25946
25946
|
const C = me[ke].camera;
|
|
25947
25947
|
if (C) {
|
|
25948
|
-
let
|
|
25949
|
-
|
|
25948
|
+
let I = m[C];
|
|
25949
|
+
I || (I = new e0(), m[C] = I);
|
|
25950
25950
|
const W = d.getCameraImage(C);
|
|
25951
|
-
|
|
25951
|
+
I.sourceTexture = W;
|
|
25952
25952
|
}
|
|
25953
25953
|
}
|
|
25954
25954
|
}
|
|
@@ -25966,7 +25966,7 @@ class s_ extends zs {
|
|
|
25966
25966
|
};
|
|
25967
25967
|
}
|
|
25968
25968
|
}
|
|
25969
|
-
const bs = /* @__PURE__ */ new Bn(), r_ = /* @__PURE__ */ new
|
|
25969
|
+
const bs = /* @__PURE__ */ new Bn(), r_ = /* @__PURE__ */ new De();
|
|
25970
25970
|
function a_(s, e) {
|
|
25971
25971
|
function t(x, m) {
|
|
25972
25972
|
x.matrixAutoUpdate === !0 && x.updateMatrix(), m.value.copy(x.matrix);
|
|
@@ -26051,15 +26051,15 @@ function o_(s, e, t, n) {
|
|
|
26051
26051
|
for (let M = 0, T = y.length; M < T; M++) {
|
|
26052
26052
|
const R = Array.isArray(y[M]) ? y[M] : [y[M]];
|
|
26053
26053
|
for (let w = 0, E = R.length; w < E; w++) {
|
|
26054
|
-
const
|
|
26055
|
-
if (u(
|
|
26056
|
-
const A =
|
|
26054
|
+
const D = R[w];
|
|
26055
|
+
if (u(D, M, w, _) === !0) {
|
|
26056
|
+
const A = D.__offset, B = Array.isArray(D.value) ? D.value : [D.value];
|
|
26057
26057
|
let S = 0;
|
|
26058
26058
|
for (let U = 0; U < B.length; U++) {
|
|
26059
26059
|
const H = B[U], G = f(H);
|
|
26060
|
-
typeof H == "number" || typeof H == "boolean" ? (
|
|
26060
|
+
typeof H == "number" || typeof H == "boolean" ? (D.__data[0] = H, s.bufferSubData(s.UNIFORM_BUFFER, A + S, D.__data)) : H.isMatrix3 ? (D.__data[0] = H.elements[0], D.__data[1] = H.elements[1], D.__data[2] = H.elements[2], D.__data[3] = 0, D.__data[4] = H.elements[3], D.__data[5] = H.elements[4], D.__data[6] = H.elements[5], D.__data[7] = 0, D.__data[8] = H.elements[6], D.__data[9] = H.elements[7], D.__data[10] = H.elements[8], D.__data[11] = 0) : (H.toArray(D.__data, S), S += G.storage / Float32Array.BYTES_PER_ELEMENT);
|
|
26061
26061
|
}
|
|
26062
|
-
s.bufferSubData(s.UNIFORM_BUFFER, A,
|
|
26062
|
+
s.bufferSubData(s.UNIFORM_BUFFER, A, D.__data);
|
|
26063
26063
|
}
|
|
26064
26064
|
}
|
|
26065
26065
|
}
|
|
@@ -26085,7 +26085,7 @@ function o_(s, e, t, n) {
|
|
|
26085
26085
|
const _ = 16;
|
|
26086
26086
|
for (let T = 0, R = v.length; T < R; T++) {
|
|
26087
26087
|
const w = Array.isArray(v[T]) ? v[T] : [v[T]];
|
|
26088
|
-
for (let E = 0,
|
|
26088
|
+
for (let E = 0, D = w.length; E < D; E++) {
|
|
26089
26089
|
const A = w[E], B = Array.isArray(A.value) ? A.value : [A.value];
|
|
26090
26090
|
for (let S = 0, U = B.length; S < U; S++) {
|
|
26091
26091
|
const H = B[S], G = f(H), Z = y % _, j = Z % G.boundary, ie = Z + j;
|
|
@@ -28232,8 +28232,8 @@ class au {
|
|
|
28232
28232
|
}, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.toneMapping = is, this.toneMappingExposure = 1, this.transmissionResolutionScale = 1;
|
|
28233
28233
|
const M = this;
|
|
28234
28234
|
let T = !1;
|
|
28235
|
-
this._outputColorSpace =
|
|
28236
|
-
let R = 0, w = 0, E = null,
|
|
28235
|
+
this._outputColorSpace = Dt;
|
|
28236
|
+
let R = 0, w = 0, E = null, D = -1, A = null;
|
|
28237
28237
|
const B = new tt(), S = new tt();
|
|
28238
28238
|
let U = null;
|
|
28239
28239
|
const H = new Fe(0);
|
|
@@ -28242,12 +28242,12 @@ class au {
|
|
|
28242
28242
|
let fe = !1;
|
|
28243
28243
|
const se = new Kd();
|
|
28244
28244
|
let ce = !1, me = !1;
|
|
28245
|
-
const be = new
|
|
28245
|
+
const be = new De(), Se = new P(), Be = new tt(), $e = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
|
|
28246
28246
|
let ke = !1;
|
|
28247
28247
|
function C() {
|
|
28248
28248
|
return E === null ? ie : 1;
|
|
28249
28249
|
}
|
|
28250
|
-
let
|
|
28250
|
+
let I = n;
|
|
28251
28251
|
function W(z, Q) {
|
|
28252
28252
|
return t.getContext(z, Q);
|
|
28253
28253
|
}
|
|
@@ -28262,24 +28262,24 @@ class au {
|
|
|
28262
28262
|
powerPreference: h,
|
|
28263
28263
|
failIfMajorPerformanceCaveat: d
|
|
28264
28264
|
};
|
|
28265
|
-
if ("setAttribute" in t && t.setAttribute("data-engine", `three.js r${Fa}`), t.addEventListener("webglcontextlost", ve, !1), t.addEventListener("webglcontextrestored", ge, !1), t.addEventListener("webglcontextcreationerror", Oe, !1),
|
|
28265
|
+
if ("setAttribute" in t && t.setAttribute("data-engine", `three.js r${Fa}`), t.addEventListener("webglcontextlost", ve, !1), t.addEventListener("webglcontextrestored", ge, !1), t.addEventListener("webglcontextcreationerror", Oe, !1), I === null) {
|
|
28266
28266
|
const Q = "webgl2";
|
|
28267
|
-
if (
|
|
28267
|
+
if (I = W(Q, z), I === null)
|
|
28268
28268
|
throw W(Q) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context.");
|
|
28269
28269
|
}
|
|
28270
28270
|
} catch (z) {
|
|
28271
28271
|
throw z("WebGLRenderer: " + z.message), z;
|
|
28272
28272
|
}
|
|
28273
|
-
let O, k, F, ee, J, q, N, L, V, K, le, te, Te, ye, Re,
|
|
28273
|
+
let O, k, F, ee, J, q, N, L, V, K, le, te, Te, ye, Re, Ie, de, _e, Ve, Ue, Ae, Ge, Y, Ce;
|
|
28274
28274
|
function Me() {
|
|
28275
|
-
O = new v2(
|
|
28275
|
+
O = new v2(I), O.init(), Ge = new e_(I, O), k = new c2(I, O, e, Ge), F = new J3(I, O), k.reversedDepthBuffer && p && F.buffers.depth.setReversed(!0), ee = new _2(I), J = new z3(), q = new Q3(I, O, F, J, k, Ge, ee), N = new d2(M), L = new x2(M), V = new Ev(I), Y = new o2(I, V), K = new b2(I, V, ee, Y), le = new w2(I, K, V, ee), Ve = new M2(I, k, q), Ie = new h2(J), te = new O3(M, N, L, O, k, Y, Ie), Te = new a_(M, J), ye = new H3(), Re = new q3(O), _e = new a2(M, N, L, F, le, u, l), de = new $3(M, le, k), Ce = new o_(I, ee, k, F), Ue = new l2(I, O, ee), Ae = new y2(I, O, ee), ee.programs = te.programs, M.capabilities = k, M.extensions = O, M.properties = J, M.renderLists = ye, M.shadowMap = de, M.state = F, M.info = ee;
|
|
28276
28276
|
}
|
|
28277
28277
|
Me();
|
|
28278
|
-
const we = new s_(M,
|
|
28278
|
+
const we = new s_(M, I);
|
|
28279
28279
|
this.xr = we, this.getContext = function() {
|
|
28280
|
-
return
|
|
28280
|
+
return I;
|
|
28281
28281
|
}, this.getContextAttributes = function() {
|
|
28282
|
-
return
|
|
28282
|
+
return I.getContextAttributes();
|
|
28283
28283
|
}, this.forceContextLoss = function() {
|
|
28284
28284
|
const z = O.get("WEBGL_lose_context");
|
|
28285
28285
|
z && z.loseContext();
|
|
@@ -28338,11 +28338,11 @@ class au {
|
|
|
28338
28338
|
}
|
|
28339
28339
|
if (ne) {
|
|
28340
28340
|
const Ee = E.texture.type, Le = f.has(Ee), ze = _e.getClearColor(), Ne = _e.getClearAlpha(), je = ze.r, Ze = ze.g, We = ze.b;
|
|
28341
|
-
Le ? (x[0] = je, x[1] = Ze, x[2] = We, x[3] = Ne,
|
|
28341
|
+
Le ? (x[0] = je, x[1] = Ze, x[2] = We, x[3] = Ne, I.clearBufferuiv(I.COLOR, 0, x)) : (m[0] = je, m[1] = Ze, m[2] = We, m[3] = Ne, I.clearBufferiv(I.COLOR, 0, m));
|
|
28342
28342
|
} else
|
|
28343
|
-
oe |=
|
|
28343
|
+
oe |= I.COLOR_BUFFER_BIT;
|
|
28344
28344
|
}
|
|
28345
|
-
Q && (oe |=
|
|
28345
|
+
Q && (oe |= I.DEPTH_BUFFER_BIT), ae && (oe |= I.STENCIL_BUFFER_BIT, this.state.buffers.stencil.setMask(4294967295)), I.clear(oe);
|
|
28346
28346
|
}, this.clearColor = function() {
|
|
28347
28347
|
this.clear(!0, !1, !1);
|
|
28348
28348
|
}, this.clearDepth = function() {
|
|
@@ -28393,11 +28393,11 @@ class au {
|
|
|
28393
28393
|
Y.setup(ne, oe, ze, ae, Ne);
|
|
28394
28394
|
let Rt, xt = Ue;
|
|
28395
28395
|
if (Ne !== null && (Rt = V.get(Ne), xt = Ae, xt.setIndex(Rt)), ne.isMesh)
|
|
28396
|
-
oe.wireframe === !0 ? (F.setLineWidth(oe.wireframeLinewidth * C()), xt.setMode(
|
|
28396
|
+
oe.wireframe === !0 ? (F.setLineWidth(oe.wireframeLinewidth * C()), xt.setMode(I.LINES)) : xt.setMode(I.TRIANGLES);
|
|
28397
28397
|
else if (ne.isLine) {
|
|
28398
28398
|
let Xe = oe.linewidth;
|
|
28399
|
-
Xe === void 0 && (Xe = 1), F.setLineWidth(Xe * C()), ne.isLineSegments ? xt.setMode(
|
|
28400
|
-
} else ne.isPoints ? xt.setMode(
|
|
28399
|
+
Xe === void 0 && (Xe = 1), F.setLineWidth(Xe * C()), ne.isLineSegments ? xt.setMode(I.LINES) : ne.isLineLoop ? xt.setMode(I.LINE_LOOP) : xt.setMode(I.LINE_STRIP);
|
|
28400
|
+
} else ne.isPoints ? xt.setMode(I.POINTS) : ne.isSprite && xt.setMode(I.TRIANGLES);
|
|
28401
28401
|
if (ne.isBatchedMesh)
|
|
28402
28402
|
if (ne._multiDrawInstances !== null)
|
|
28403
28403
|
Na("WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), xt.renderMultiDrawInstances(ne._multiDrawStarts, ne._multiDrawCounts, ne._multiDrawCount, ne._multiDrawInstances);
|
|
@@ -28406,7 +28406,7 @@ class au {
|
|
|
28406
28406
|
else {
|
|
28407
28407
|
const Xe = ne._multiDrawStarts, Ct = ne._multiDrawCounts, ot = ne._multiDrawCount, Cn = Ne ? V.get(Ne).bytesPerElement : 1, js = J.get(oe).currentProgram.getUniforms();
|
|
28408
28408
|
for (let Tn = 0; Tn < ot; Tn++)
|
|
28409
|
-
js.setValue(
|
|
28409
|
+
js.setValue(I, "_gl_DrawID", Tn), xt.render(Xe[Tn] / Cn, Ct[Tn]);
|
|
28410
28410
|
}
|
|
28411
28411
|
else if (ne.isInstancedMesh)
|
|
28412
28412
|
xt.renderInstances(it, Pt, ne.count);
|
|
@@ -28473,13 +28473,13 @@ class au {
|
|
|
28473
28473
|
return;
|
|
28474
28474
|
}
|
|
28475
28475
|
if (T === !0) return;
|
|
28476
|
-
if (z.matrixWorldAutoUpdate === !0 && z.updateMatrixWorld(), Q.parent === null && Q.matrixWorldAutoUpdate === !0 && Q.updateMatrixWorld(), we.enabled === !0 && we.isPresenting === !0 && (we.cameraAutoUpdate === !0 && we.updateCamera(Q), Q = we.getCamera()), z.isScene === !0 && z.onBeforeRender(M, z, Q, E), v = Re.get(z, _.length), v.init(Q), _.push(v), be.multiplyMatrices(Q.projectionMatrix, Q.matrixWorldInverse), se.setFromProjectionMatrix(be, di, Q.reversedDepth), me = this.localClippingEnabled, ce =
|
|
28476
|
+
if (z.matrixWorldAutoUpdate === !0 && z.updateMatrixWorld(), Q.parent === null && Q.matrixWorldAutoUpdate === !0 && Q.updateMatrixWorld(), we.enabled === !0 && we.isPresenting === !0 && (we.cameraAutoUpdate === !0 && we.updateCamera(Q), Q = we.getCamera()), z.isScene === !0 && z.onBeforeRender(M, z, Q, E), v = Re.get(z, _.length), v.init(Q), _.push(v), be.multiplyMatrices(Q.projectionMatrix, Q.matrixWorldInverse), se.setFromProjectionMatrix(be, di, Q.reversedDepth), me = this.localClippingEnabled, ce = Ie.init(this.clippingPlanes, me), b = ye.get(z, y.length), b.init(), y.push(b), we.enabled === !0 && we.isPresenting === !0) {
|
|
28477
28477
|
const Ee = M.xr.getDepthSensingMesh();
|
|
28478
28478
|
Ee !== null && Ql(Ee, Q, -1 / 0, M.sortObjects);
|
|
28479
28479
|
}
|
|
28480
|
-
Ql(z, Q, 0, M.sortObjects), b.finish(), M.sortObjects === !0 && b.sort(X, $), ke = we.enabled === !1 || we.isPresenting === !1 || we.hasDepthSensing() === !1, ke && _e.addToRenderList(b, z), this.info.render.frame++, ce === !0 &&
|
|
28480
|
+
Ql(z, Q, 0, M.sortObjects), b.finish(), M.sortObjects === !0 && b.sort(X, $), ke = we.enabled === !1 || we.isPresenting === !1 || we.hasDepthSensing() === !1, ke && _e.addToRenderList(b, z), this.info.render.frame++, ce === !0 && Ie.beginShadows();
|
|
28481
28481
|
const ae = v.state.shadowsArray;
|
|
28482
|
-
de.render(ae, z, Q), ce === !0 &&
|
|
28482
|
+
de.render(ae, z, Q), ce === !0 && Ie.endShadows(), this.info.autoReset === !0 && this.info.reset();
|
|
28483
28483
|
const oe = b.opaque, ne = b.transmissive;
|
|
28484
28484
|
if (v.setupLights(), Q.isArrayCamera) {
|
|
28485
28485
|
const Ee = Q.cameras;
|
|
@@ -28495,7 +28495,7 @@ class au {
|
|
|
28495
28495
|
}
|
|
28496
28496
|
} else
|
|
28497
28497
|
ne.length > 0 && wu(oe, ne, z, Q), ke && _e.render(z), Mu(b, z, Q);
|
|
28498
|
-
E !== null && w === 0 && (q.updateMultisampleRenderTarget(E), q.updateRenderTargetMipmap(E)), z.isScene === !0 && z.onAfterRender(M, z, Q), Y.resetDefaultState(),
|
|
28498
|
+
E !== null && w === 0 && (q.updateMultisampleRenderTarget(E), q.updateRenderTargetMipmap(E)), z.isScene === !0 && z.onAfterRender(M, z, Q), Y.resetDefaultState(), D = -1, A = null, _.pop(), _.length > 0 ? (v = _[_.length - 1], ce === !0 && Ie.setGlobalState(M.clippingPlanes, v.state.camera)) : v = null, y.pop(), y.length > 0 ? b = y[y.length - 1] : b = null;
|
|
28499
28499
|
};
|
|
28500
28500
|
function Ql(z, Q, ae, oe) {
|
|
28501
28501
|
if (z.visible === !1) return;
|
|
@@ -28529,7 +28529,7 @@ class au {
|
|
|
28529
28529
|
}
|
|
28530
28530
|
function Mu(z, Q, ae, oe) {
|
|
28531
28531
|
const { opaque: ne, transmissive: Ee, transparent: Le } = z;
|
|
28532
|
-
v.setupLightsView(ae), ce === !0 &&
|
|
28532
|
+
v.setupLightsView(ae), ce === !0 && Ie.setGlobalState(M.clippingPlanes, ae), oe && F.viewport(B.copy(oe)), ne.length > 0 && ja(ne, Q, ae), Ee.length > 0 && ja(Ee, Q, ae), Le.length > 0 && ja(Le, Q, ae), F.buffers.depth.setTest(!0), F.buffers.depth.setMask(!0), F.buffers.color.setMask(!0), F.setPolygonOffset(!1);
|
|
28533
28533
|
}
|
|
28534
28534
|
function wu(z, Q, ae, oe) {
|
|
28535
28535
|
if ((ae.isScene === !0 ? ae.overrideMaterial : null) !== null)
|
|
@@ -28551,7 +28551,7 @@ class au {
|
|
|
28551
28551
|
const Ze = M.toneMapping;
|
|
28552
28552
|
M.toneMapping = is;
|
|
28553
28553
|
const We = oe.viewport;
|
|
28554
|
-
if (oe.viewport !== void 0 && (oe.viewport = void 0), v.setupLightsView(oe), ce === !0 &&
|
|
28554
|
+
if (oe.viewport !== void 0 && (oe.viewport = void 0), v.setupLightsView(oe), ce === !0 && Ie.setGlobalState(M.clippingPlanes, oe), ja(z, ae, oe), q.updateMultisampleRenderTarget(Ee), q.updateRenderTargetMipmap(Ee), O.has("WEBGL_multisampled_render_to_texture") === !1) {
|
|
28555
28555
|
let it = !1;
|
|
28556
28556
|
for (let pt = 0, Pt = Q.length; pt < Pt; pt++) {
|
|
28557
28557
|
const Rt = Q[pt], { object: xt, geometry: Xe, material: Ct, group: ot } = Rt;
|
|
@@ -28587,7 +28587,7 @@ class au {
|
|
|
28587
28587
|
} else
|
|
28588
28588
|
ze.uniforms = te.getUniforms(z), z.onBeforeCompile(ze, M), Ze = te.acquireProgram(ze, Ne), je.set(Ne, Ze), oe.uniforms = ze.uniforms;
|
|
28589
28589
|
const We = oe.uniforms;
|
|
28590
|
-
return (!z.isShaderMaterial && !z.isRawShaderMaterial || z.clipping === !0) && (We.clippingPlanes =
|
|
28590
|
+
return (!z.isShaderMaterial && !z.isRawShaderMaterial || z.clipping === !0) && (We.clippingPlanes = Ie.uniform), Cu(z, ze), oe.needsLights = vg(z), oe.lightsStateVersion = Le, oe.needsLights && (We.ambientLightColor.value = ne.state.ambient, We.lightProbe.value = ne.state.probe, We.directionalLights.value = ne.state.directional, We.directionalLightShadows.value = ne.state.directionalShadow, We.spotLights.value = ne.state.spot, We.spotLightShadows.value = ne.state.spotShadow, We.rectAreaLights.value = ne.state.rectArea, We.ltc_1.value = ne.state.rectAreaLTC1, We.ltc_2.value = ne.state.rectAreaLTC2, We.pointLights.value = ne.state.point, We.pointLightShadows.value = ne.state.pointShadow, We.hemisphereLights.value = ne.state.hemi, We.directionalShadowMap.value = ne.state.directionalShadowMap, We.directionalShadowMatrix.value = ne.state.directionalShadowMatrix, We.spotShadowMap.value = ne.state.spotShadowMap, We.spotLightMatrix.value = ne.state.spotLightMatrix, We.spotLightMap.value = ne.state.spotLightMap, We.pointShadowMap.value = ne.state.pointShadowMap, We.pointShadowMatrix.value = ne.state.pointShadowMatrix), oe.currentProgram = Ze, oe.uniformsList = null, Ze;
|
|
28591
28591
|
}
|
|
28592
28592
|
function Eu(z) {
|
|
28593
28593
|
if (z.uniformsList === null) {
|
|
@@ -28607,32 +28607,32 @@ class au {
|
|
|
28607
28607
|
oe.toneMapped && (E === null || E.isXRRenderTarget === !0) && (Pt = M.toneMapping);
|
|
28608
28608
|
const Rt = ae.morphAttributes.position || ae.morphAttributes.normal || ae.morphAttributes.color, xt = Rt !== void 0 ? Rt.length : 0, Xe = J.get(oe), Ct = v.state.lights;
|
|
28609
28609
|
if (ce === !0 && (me === !0 || z !== A)) {
|
|
28610
|
-
const hn = z === A && oe.id ===
|
|
28611
|
-
|
|
28610
|
+
const hn = z === A && oe.id === D;
|
|
28611
|
+
Ie.setState(oe, z, hn);
|
|
28612
28612
|
}
|
|
28613
28613
|
let ot = !1;
|
|
28614
|
-
oe.version === Xe.__version ? (Xe.needsLights && Xe.lightsStateVersion !== Ct.state.version || Xe.outputColorSpace !== ze || ne.isBatchedMesh && Xe.batching === !1 || !ne.isBatchedMesh && Xe.batching === !0 || ne.isBatchedMesh && Xe.batchingColor === !0 && ne.colorTexture === null || ne.isBatchedMesh && Xe.batchingColor === !1 && ne.colorTexture !== null || ne.isInstancedMesh && Xe.instancing === !1 || !ne.isInstancedMesh && Xe.instancing === !0 || ne.isSkinnedMesh && Xe.skinning === !1 || !ne.isSkinnedMesh && Xe.skinning === !0 || ne.isInstancedMesh && Xe.instancingColor === !0 && ne.instanceColor === null || ne.isInstancedMesh && Xe.instancingColor === !1 && ne.instanceColor !== null || ne.isInstancedMesh && Xe.instancingMorph === !0 && ne.morphTexture === null || ne.isInstancedMesh && Xe.instancingMorph === !1 && ne.morphTexture !== null || Xe.envMap !== Ne || oe.fog === !0 && Xe.fog !== Ee || Xe.numClippingPlanes !== void 0 && (Xe.numClippingPlanes !==
|
|
28614
|
+
oe.version === Xe.__version ? (Xe.needsLights && Xe.lightsStateVersion !== Ct.state.version || Xe.outputColorSpace !== ze || ne.isBatchedMesh && Xe.batching === !1 || !ne.isBatchedMesh && Xe.batching === !0 || ne.isBatchedMesh && Xe.batchingColor === !0 && ne.colorTexture === null || ne.isBatchedMesh && Xe.batchingColor === !1 && ne.colorTexture !== null || ne.isInstancedMesh && Xe.instancing === !1 || !ne.isInstancedMesh && Xe.instancing === !0 || ne.isSkinnedMesh && Xe.skinning === !1 || !ne.isSkinnedMesh && Xe.skinning === !0 || ne.isInstancedMesh && Xe.instancingColor === !0 && ne.instanceColor === null || ne.isInstancedMesh && Xe.instancingColor === !1 && ne.instanceColor !== null || ne.isInstancedMesh && Xe.instancingMorph === !0 && ne.morphTexture === null || ne.isInstancedMesh && Xe.instancingMorph === !1 && ne.morphTexture !== null || Xe.envMap !== Ne || oe.fog === !0 && Xe.fog !== Ee || Xe.numClippingPlanes !== void 0 && (Xe.numClippingPlanes !== Ie.numPlanes || Xe.numIntersection !== Ie.numIntersection) || Xe.vertexAlphas !== je || Xe.vertexTangents !== Ze || Xe.morphTargets !== We || Xe.morphNormals !== it || Xe.morphColors !== pt || Xe.toneMapping !== Pt || Xe.morphTargetsCount !== xt) && (ot = !0) : (ot = !0, Xe.__version = oe.version);
|
|
28615
28615
|
let Cn = Xe.currentProgram;
|
|
28616
28616
|
ot === !0 && (Cn = qa(oe, Q, ne));
|
|
28617
28617
|
let js = !1, Tn = !1, qr = !1;
|
|
28618
28618
|
const Tt = Cn.getUniforms(), vn = Xe.uniforms;
|
|
28619
|
-
if (F.useProgram(Cn.program) && (js = !0, Tn = !0, qr = !0), oe.id !==
|
|
28620
|
-
F.buffers.depth.getReversed() && z.reversedDepth !== !0 && (z._reversedDepth = !0, z.updateProjectionMatrix()), Tt.setValue(
|
|
28619
|
+
if (F.useProgram(Cn.program) && (js = !0, Tn = !0, qr = !0), oe.id !== D && (D = oe.id, Tn = !0), js || A !== z) {
|
|
28620
|
+
F.buffers.depth.getReversed() && z.reversedDepth !== !0 && (z._reversedDepth = !0, z.updateProjectionMatrix()), Tt.setValue(I, "projectionMatrix", z.projectionMatrix), Tt.setValue(I, "viewMatrix", z.matrixWorldInverse);
|
|
28621
28621
|
const bn = Tt.map.cameraPosition;
|
|
28622
|
-
bn !== void 0 && bn.setValue(
|
|
28623
|
-
|
|
28622
|
+
bn !== void 0 && bn.setValue(I, Se.setFromMatrixPosition(z.matrixWorld)), k.logarithmicDepthBuffer && Tt.setValue(
|
|
28623
|
+
I,
|
|
28624
28624
|
"logDepthBufFC",
|
|
28625
28625
|
2 / (Math.log(z.far + 1) / Math.LN2)
|
|
28626
|
-
), (oe.isMeshPhongMaterial || oe.isMeshToonMaterial || oe.isMeshLambertMaterial || oe.isMeshBasicMaterial || oe.isMeshStandardMaterial || oe.isShaderMaterial) && Tt.setValue(
|
|
28626
|
+
), (oe.isMeshPhongMaterial || oe.isMeshToonMaterial || oe.isMeshLambertMaterial || oe.isMeshBasicMaterial || oe.isMeshStandardMaterial || oe.isShaderMaterial) && Tt.setValue(I, "isOrthographic", z.isOrthographicCamera === !0), A !== z && (A = z, Tn = !0, qr = !0);
|
|
28627
28627
|
}
|
|
28628
28628
|
if (ne.isSkinnedMesh) {
|
|
28629
|
-
Tt.setOptional(
|
|
28629
|
+
Tt.setOptional(I, ne, "bindMatrix"), Tt.setOptional(I, ne, "bindMatrixInverse");
|
|
28630
28630
|
const hn = ne.skeleton;
|
|
28631
|
-
hn && (hn.boneTexture === null && hn.computeBoneTexture(), Tt.setValue(
|
|
28631
|
+
hn && (hn.boneTexture === null && hn.computeBoneTexture(), Tt.setValue(I, "boneTexture", hn.boneTexture, q));
|
|
28632
28632
|
}
|
|
28633
|
-
ne.isBatchedMesh && (Tt.setOptional(
|
|
28633
|
+
ne.isBatchedMesh && (Tt.setOptional(I, ne, "batchingTexture"), Tt.setValue(I, "batchingTexture", ne._matricesTexture, q), Tt.setOptional(I, ne, "batchingIdTexture"), Tt.setValue(I, "batchingIdTexture", ne._indirectTexture, q), Tt.setOptional(I, ne, "batchingColorTexture"), ne._colorsTexture !== null && Tt.setValue(I, "batchingColorTexture", ne._colorsTexture, q));
|
|
28634
28634
|
const kn = ae.morphAttributes;
|
|
28635
|
-
if ((kn.position !== void 0 || kn.normal !== void 0 || kn.color !== void 0) && Ve.update(ne, ae, Cn), (Tn || Xe.receiveShadow !== ne.receiveShadow) && (Xe.receiveShadow = ne.receiveShadow, Tt.setValue(
|
|
28635
|
+
if ((kn.position !== void 0 || kn.normal !== void 0 || kn.color !== void 0) && Ve.update(ne, ae, Cn), (Tn || Xe.receiveShadow !== ne.receiveShadow) && (Xe.receiveShadow = ne.receiveShadow, Tt.setValue(I, "receiveShadow", ne.receiveShadow)), oe.isMeshGouraudMaterial && oe.envMap !== null && (vn.envMap.value = Ne, vn.flipEnvMap.value = Ne.isCubeTexture && Ne.isRenderTargetTexture === !1 ? -1 : 1), oe.isMeshStandardMaterial && oe.envMap === null && Q.environment !== null && (vn.envMapIntensity.value = Q.environmentIntensity), vn.dfgLUT !== void 0 && (vn.dfgLUT.value = c_()), Tn && (Tt.setValue(I, "toneMappingExposure", M.toneMappingExposure), Xe.needsLights && xg(vn, qr), Ee && oe.fog === !0 && Te.refreshFogUniforms(vn, Ee), Te.refreshMaterialUniforms(vn, oe, ie, j, v.state.transmissionRenderTarget[z.id]), fl.upload(I, Eu(Xe), vn, q)), oe.isShaderMaterial && oe.uniformsNeedUpdate === !0 && (fl.upload(I, Eu(Xe), vn, q), oe.uniformsNeedUpdate = !1), oe.isSpriteMaterial && Tt.setValue(I, "center", ne.center), Tt.setValue(I, "modelViewMatrix", ne.modelViewMatrix), Tt.setValue(I, "normalMatrix", ne.normalMatrix), Tt.setValue(I, "modelMatrix", ne.matrixWorld), oe.isShaderMaterial || oe.isRawShaderMaterial) {
|
|
28636
28636
|
const hn = oe.uniformsGroups;
|
|
28637
28637
|
for (let bn = 0, ec = hn.length; bn < ec; bn++) {
|
|
28638
28638
|
const ps = hn[bn];
|
|
@@ -28660,14 +28660,14 @@ class au {
|
|
|
28660
28660
|
const ae = J.get(z);
|
|
28661
28661
|
ae.__webglFramebuffer = Q, ae.__useDefaultFramebuffer = Q === void 0;
|
|
28662
28662
|
};
|
|
28663
|
-
const bg =
|
|
28663
|
+
const bg = I.createFramebuffer();
|
|
28664
28664
|
this.setRenderTarget = function(z, Q = 0, ae = 0) {
|
|
28665
28665
|
E = z, R = Q, w = ae;
|
|
28666
28666
|
let oe = !0, ne = null, Ee = !1, Le = !1;
|
|
28667
28667
|
if (z) {
|
|
28668
28668
|
const Ne = J.get(z);
|
|
28669
28669
|
if (Ne.__useDefaultFramebuffer !== void 0)
|
|
28670
|
-
F.bindFramebuffer(
|
|
28670
|
+
F.bindFramebuffer(I.FRAMEBUFFER, null), oe = !1;
|
|
28671
28671
|
else if (Ne.__webglFramebuffer === void 0)
|
|
28672
28672
|
q.setupRenderTarget(z);
|
|
28673
28673
|
else if (Ne.__hasExternalTextures)
|
|
@@ -28686,20 +28686,20 @@ class au {
|
|
|
28686
28686
|
z.isWebGLCubeRenderTarget ? (Array.isArray(Ze[Q]) ? ne = Ze[Q][ae] : ne = Ze[Q], Ee = !0) : z.samples > 0 && q.useMultisampledRTT(z) === !1 ? ne = J.get(z).__webglMultisampledFramebuffer : Array.isArray(Ze) ? ne = Ze[ae] : ne = Ze, B.copy(z.viewport), S.copy(z.scissor), U = z.scissorTest;
|
|
28687
28687
|
} else
|
|
28688
28688
|
B.copy(ue).multiplyScalar(ie).floor(), S.copy(pe).multiplyScalar(ie).floor(), U = fe;
|
|
28689
|
-
if (ae !== 0 && (ne = bg), F.bindFramebuffer(
|
|
28689
|
+
if (ae !== 0 && (ne = bg), F.bindFramebuffer(I.FRAMEBUFFER, ne) && oe && F.drawBuffers(z, ne), F.viewport(B), F.scissor(S), F.setScissorTest(U), Ee) {
|
|
28690
28690
|
const Ne = J.get(z.texture);
|
|
28691
|
-
|
|
28691
|
+
I.framebufferTexture2D(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_CUBE_MAP_POSITIVE_X + Q, Ne.__webglTexture, ae);
|
|
28692
28692
|
} else if (Le) {
|
|
28693
28693
|
const Ne = Q;
|
|
28694
28694
|
for (let je = 0; je < z.textures.length; je++) {
|
|
28695
28695
|
const Ze = J.get(z.textures[je]);
|
|
28696
|
-
|
|
28696
|
+
I.framebufferTextureLayer(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0 + je, Ze.__webglTexture, ae, Ne);
|
|
28697
28697
|
}
|
|
28698
28698
|
} else if (z !== null && ae !== 0) {
|
|
28699
28699
|
const Ne = J.get(z.texture);
|
|
28700
|
-
|
|
28700
|
+
I.framebufferTexture2D(I.FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_2D, Ne.__webglTexture, ae);
|
|
28701
28701
|
}
|
|
28702
|
-
|
|
28702
|
+
D = -1;
|
|
28703
28703
|
}, this.readRenderTargetPixels = function(z, Q, ae, oe, ne, Ee, Le, ze = 0) {
|
|
28704
28704
|
if (!(z && z.isWebGLRenderTarget)) {
|
|
28705
28705
|
et("WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");
|
|
@@ -28707,7 +28707,7 @@ class au {
|
|
|
28707
28707
|
}
|
|
28708
28708
|
let Ne = J.get(z).__webglFramebuffer;
|
|
28709
28709
|
if (z.isWebGLCubeRenderTarget && Le !== void 0 && (Ne = Ne[Le]), Ne) {
|
|
28710
|
-
F.bindFramebuffer(
|
|
28710
|
+
F.bindFramebuffer(I.FRAMEBUFFER, Ne);
|
|
28711
28711
|
try {
|
|
28712
28712
|
const je = z.textures[ze], Ze = je.format, We = je.type;
|
|
28713
28713
|
if (!k.textureFormatReadable(Ze)) {
|
|
@@ -28718,10 +28718,10 @@ class au {
|
|
|
28718
28718
|
et("WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
28719
28719
|
return;
|
|
28720
28720
|
}
|
|
28721
|
-
Q >= 0 && Q <= z.width - oe && ae >= 0 && ae <= z.height - ne && (z.textures.length > 1 &&
|
|
28721
|
+
Q >= 0 && Q <= z.width - oe && ae >= 0 && ae <= z.height - ne && (z.textures.length > 1 && I.readBuffer(I.COLOR_ATTACHMENT0 + ze), I.readPixels(Q, ae, oe, ne, Ge.convert(Ze), Ge.convert(We), Ee));
|
|
28722
28722
|
} finally {
|
|
28723
28723
|
const je = E !== null ? J.get(E).__webglFramebuffer : null;
|
|
28724
|
-
F.bindFramebuffer(
|
|
28724
|
+
F.bindFramebuffer(I.FRAMEBUFFER, je);
|
|
28725
28725
|
}
|
|
28726
28726
|
}
|
|
28727
28727
|
}, this.readRenderTargetPixelsAsync = async function(z, Q, ae, oe, ne, Ee, Le, ze = 0) {
|
|
@@ -28730,25 +28730,25 @@ class au {
|
|
|
28730
28730
|
let Ne = J.get(z).__webglFramebuffer;
|
|
28731
28731
|
if (z.isWebGLCubeRenderTarget && Le !== void 0 && (Ne = Ne[Le]), Ne)
|
|
28732
28732
|
if (Q >= 0 && Q <= z.width - oe && ae >= 0 && ae <= z.height - ne) {
|
|
28733
|
-
F.bindFramebuffer(
|
|
28733
|
+
F.bindFramebuffer(I.FRAMEBUFFER, Ne);
|
|
28734
28734
|
const je = z.textures[ze], Ze = je.format, We = je.type;
|
|
28735
28735
|
if (!k.textureFormatReadable(Ze))
|
|
28736
28736
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");
|
|
28737
28737
|
if (!k.textureTypeReadable(We))
|
|
28738
28738
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
28739
|
-
const it =
|
|
28740
|
-
|
|
28739
|
+
const it = I.createBuffer();
|
|
28740
|
+
I.bindBuffer(I.PIXEL_PACK_BUFFER, it), I.bufferData(I.PIXEL_PACK_BUFFER, Ee.byteLength, I.STREAM_READ), z.textures.length > 1 && I.readBuffer(I.COLOR_ATTACHMENT0 + ze), I.readPixels(Q, ae, oe, ne, Ge.convert(Ze), Ge.convert(We), 0);
|
|
28741
28741
|
const pt = E !== null ? J.get(E).__webglFramebuffer : null;
|
|
28742
|
-
F.bindFramebuffer(
|
|
28743
|
-
const Pt =
|
|
28744
|
-
return
|
|
28742
|
+
F.bindFramebuffer(I.FRAMEBUFFER, pt);
|
|
28743
|
+
const Pt = I.fenceSync(I.SYNC_GPU_COMMANDS_COMPLETE, 0);
|
|
28744
|
+
return I.flush(), await hx(I, Pt, 4), I.bindBuffer(I.PIXEL_PACK_BUFFER, it), I.getBufferSubData(I.PIXEL_PACK_BUFFER, 0, Ee), I.deleteBuffer(it), I.deleteSync(Pt), Ee;
|
|
28745
28745
|
} else
|
|
28746
28746
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.");
|
|
28747
28747
|
}, this.copyFramebufferToTexture = function(z, Q = null, ae = 0) {
|
|
28748
28748
|
const oe = Math.pow(2, -ae), ne = Math.floor(z.image.width * oe), Ee = Math.floor(z.image.height * oe), Le = Q !== null ? Q.x : 0, ze = Q !== null ? Q.y : 0;
|
|
28749
|
-
q.setTexture2D(z, 0),
|
|
28749
|
+
q.setTexture2D(z, 0), I.copyTexSubImage2D(I.TEXTURE_2D, ae, 0, 0, Le, ze, ne, Ee), F.unbindTexture();
|
|
28750
28750
|
};
|
|
28751
|
-
const yg =
|
|
28751
|
+
const yg = I.createFramebuffer(), _g = I.createFramebuffer();
|
|
28752
28752
|
this.copyTextureToTexture = function(z, Q, ae = null, oe = null, ne = 0, Ee = null) {
|
|
28753
28753
|
Ee === null && (ne !== 0 ? (Na("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), Ee = ne, ne = 0) : Ee = 0);
|
|
28754
28754
|
let Le, ze, Ne, je, Ze, We, it, pt, Pt;
|
|
@@ -28762,25 +28762,25 @@ class au {
|
|
|
28762
28762
|
oe !== null ? (it = oe.x, pt = oe.y, Pt = oe.z) : (it = 0, pt = 0, Pt = 0);
|
|
28763
28763
|
const xt = Ge.convert(Q.format), Xe = Ge.convert(Q.type);
|
|
28764
28764
|
let Ct;
|
|
28765
|
-
Q.isData3DTexture ? (q.setTexture3D(Q, 0), Ct =
|
|
28766
|
-
const ot =
|
|
28767
|
-
|
|
28765
|
+
Q.isData3DTexture ? (q.setTexture3D(Q, 0), Ct = I.TEXTURE_3D) : Q.isDataArrayTexture || Q.isCompressedArrayTexture ? (q.setTexture2DArray(Q, 0), Ct = I.TEXTURE_2D_ARRAY) : (q.setTexture2D(Q, 0), Ct = I.TEXTURE_2D), I.pixelStorei(I.UNPACK_FLIP_Y_WEBGL, Q.flipY), I.pixelStorei(I.UNPACK_PREMULTIPLY_ALPHA_WEBGL, Q.premultiplyAlpha), I.pixelStorei(I.UNPACK_ALIGNMENT, Q.unpackAlignment);
|
|
28766
|
+
const ot = I.getParameter(I.UNPACK_ROW_LENGTH), Cn = I.getParameter(I.UNPACK_IMAGE_HEIGHT), js = I.getParameter(I.UNPACK_SKIP_PIXELS), Tn = I.getParameter(I.UNPACK_SKIP_ROWS), qr = I.getParameter(I.UNPACK_SKIP_IMAGES);
|
|
28767
|
+
I.pixelStorei(I.UNPACK_ROW_LENGTH, Rt.width), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Rt.height), I.pixelStorei(I.UNPACK_SKIP_PIXELS, je), I.pixelStorei(I.UNPACK_SKIP_ROWS, Ze), I.pixelStorei(I.UNPACK_SKIP_IMAGES, We);
|
|
28768
28768
|
const Tt = z.isDataArrayTexture || z.isData3DTexture, vn = Q.isDataArrayTexture || Q.isData3DTexture;
|
|
28769
28769
|
if (z.isDepthTexture) {
|
|
28770
28770
|
const kn = J.get(z), hn = J.get(Q), bn = J.get(kn.__renderTarget), ec = J.get(hn.__renderTarget);
|
|
28771
|
-
F.bindFramebuffer(
|
|
28771
|
+
F.bindFramebuffer(I.READ_FRAMEBUFFER, bn.__webglFramebuffer), F.bindFramebuffer(I.DRAW_FRAMEBUFFER, ec.__webglFramebuffer);
|
|
28772
28772
|
for (let ps = 0; ps < Ne; ps++)
|
|
28773
|
-
Tt && (
|
|
28774
|
-
F.bindFramebuffer(
|
|
28773
|
+
Tt && (I.framebufferTextureLayer(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, J.get(z).__webglTexture, ne, We + ps), I.framebufferTextureLayer(I.DRAW_FRAMEBUFFER, I.COLOR_ATTACHMENT0, J.get(Q).__webglTexture, Ee, Pt + ps)), I.blitFramebuffer(je, Ze, Le, ze, it, pt, Le, ze, I.DEPTH_BUFFER_BIT, I.NEAREST);
|
|
28774
|
+
F.bindFramebuffer(I.READ_FRAMEBUFFER, null), F.bindFramebuffer(I.DRAW_FRAMEBUFFER, null);
|
|
28775
28775
|
} else if (ne !== 0 || z.isRenderTargetTexture || J.has(z)) {
|
|
28776
28776
|
const kn = J.get(z), hn = J.get(Q);
|
|
28777
|
-
F.bindFramebuffer(
|
|
28777
|
+
F.bindFramebuffer(I.READ_FRAMEBUFFER, yg), F.bindFramebuffer(I.DRAW_FRAMEBUFFER, _g);
|
|
28778
28778
|
for (let bn = 0; bn < Ne; bn++)
|
|
28779
|
-
Tt ?
|
|
28780
|
-
F.bindFramebuffer(
|
|
28779
|
+
Tt ? I.framebufferTextureLayer(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, kn.__webglTexture, ne, We + bn) : I.framebufferTexture2D(I.READ_FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_2D, kn.__webglTexture, ne), vn ? I.framebufferTextureLayer(I.DRAW_FRAMEBUFFER, I.COLOR_ATTACHMENT0, hn.__webglTexture, Ee, Pt + bn) : I.framebufferTexture2D(I.DRAW_FRAMEBUFFER, I.COLOR_ATTACHMENT0, I.TEXTURE_2D, hn.__webglTexture, Ee), ne !== 0 ? I.blitFramebuffer(je, Ze, Le, ze, it, pt, Le, ze, I.COLOR_BUFFER_BIT, I.NEAREST) : vn ? I.copyTexSubImage3D(Ct, Ee, it, pt, Pt + bn, je, Ze, Le, ze) : I.copyTexSubImage2D(Ct, Ee, it, pt, je, Ze, Le, ze);
|
|
28780
|
+
F.bindFramebuffer(I.READ_FRAMEBUFFER, null), F.bindFramebuffer(I.DRAW_FRAMEBUFFER, null);
|
|
28781
28781
|
} else
|
|
28782
|
-
vn ? z.isDataTexture || z.isData3DTexture ?
|
|
28783
|
-
|
|
28782
|
+
vn ? z.isDataTexture || z.isData3DTexture ? I.texSubImage3D(Ct, Ee, it, pt, Pt, Le, ze, Ne, xt, Xe, Rt.data) : Q.isCompressedArrayTexture ? I.compressedTexSubImage3D(Ct, Ee, it, pt, Pt, Le, ze, Ne, xt, Rt.data) : I.texSubImage3D(Ct, Ee, it, pt, Pt, Le, ze, Ne, xt, Xe, Rt) : z.isDataTexture ? I.texSubImage2D(I.TEXTURE_2D, Ee, it, pt, Le, ze, xt, Xe, Rt.data) : z.isCompressedTexture ? I.compressedTexSubImage2D(I.TEXTURE_2D, Ee, it, pt, Rt.width, Rt.height, xt, Rt.data) : I.texSubImage2D(I.TEXTURE_2D, Ee, it, pt, Le, ze, xt, Xe, Rt);
|
|
28783
|
+
I.pixelStorei(I.UNPACK_ROW_LENGTH, ot), I.pixelStorei(I.UNPACK_IMAGE_HEIGHT, Cn), I.pixelStorei(I.UNPACK_SKIP_PIXELS, js), I.pixelStorei(I.UNPACK_SKIP_ROWS, Tn), I.pixelStorei(I.UNPACK_SKIP_IMAGES, qr), Ee === 0 && Q.generateMipmaps && I.generateMipmap(Ct), F.unbindTexture();
|
|
28784
28784
|
}, this.initRenderTarget = function(z) {
|
|
28785
28785
|
J.get(z).__webglFramebuffer === void 0 && q.setupRenderTarget(z);
|
|
28786
28786
|
}, this.initTexture = function(z) {
|
|
@@ -28992,13 +28992,13 @@ class p_ {
|
|
|
28992
28992
|
alpha: !0,
|
|
28993
28993
|
premultipliedAlpha: !1,
|
|
28994
28994
|
stencil: !0
|
|
28995
|
-
}), this.renderer.setClearColor(0, 0), this.renderer.setSize(e, t), this.renderer.setPixelRatio(window.devicePixelRatio), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = _m, this.renderer.localClippingEnabled = !0, this.renderer.outputColorSpace =
|
|
28995
|
+
}), this.renderer.setClearColor(0, 0), this.renderer.setSize(e, t), this.renderer.setPixelRatio(window.devicePixelRatio), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = _m, this.renderer.localClippingEnabled = !0, this.renderer.outputColorSpace = Dt, this.engine.container.appendChild(this.renderer.domElement), this.renderer;
|
|
28996
28996
|
}
|
|
28997
28997
|
disposeRenderer() {
|
|
28998
28998
|
this.renderer?.dispose();
|
|
28999
28999
|
}
|
|
29000
29000
|
}
|
|
29001
|
-
const Jp = { type: "change" }, ou = { type: "start" }, b0 = { type: "end" }, Po = new cs(), Qp = new
|
|
29001
|
+
const Jp = { type: "change" }, ou = { type: "start" }, b0 = { type: "end" }, Po = new cs(), Qp = new It(), f_ = Math.cos(70 * Ht.DEG2RAD), Ft = new P(), yn = 0.25 * Math.PI, ft = {
|
|
29002
29002
|
NONE: -1,
|
|
29003
29003
|
ROTATE: 0,
|
|
29004
29004
|
DOLLY: 1,
|
|
@@ -29960,11 +29960,11 @@ function lu(s) {
|
|
|
29960
29960
|
Z: U[0].Z * 0.5 + U[1].Z * 0.5
|
|
29961
29961
|
});
|
|
29962
29962
|
});
|
|
29963
|
-
let T = [..._[2].map((U) => U[0]), ...M], R = "face", w = [], E = [],
|
|
29963
|
+
let T = [..._[2].map((U) => U[0]), ...M], R = "face", w = [], E = [], D = 10;
|
|
29964
29964
|
if (T.forEach((U) => {
|
|
29965
29965
|
if (U != null) {
|
|
29966
29966
|
let H = new P(U.X, U.Z, -U.Y), G = s.worldToScreen.worldToScreen(H), Z = Math.sqrt(Math.pow(G.x - x.offsetX, 2) + Math.pow(G.y - x.offsetY, 2));
|
|
29967
|
-
Z <
|
|
29967
|
+
Z < D && (D = Z, w.push({
|
|
29968
29968
|
point: H,
|
|
29969
29969
|
distance: Z,
|
|
29970
29970
|
pointxy: G
|
|
@@ -29973,7 +29973,7 @@ function lu(s) {
|
|
|
29973
29973
|
}), w.length > 0 ? (w.sort((U, H) => U.distance - H.distance), R = "point") : (_[2].forEach((U) => {
|
|
29974
29974
|
if (U[0] != null && U[1] != null) {
|
|
29975
29975
|
let H = new P(U[0].X, U[0].Z, -U[0].Y), G = new P(U[1].X, U[1].Z, -U[1].Y), Z = s.worldToScreen.worldToScreen(H), j = s.worldToScreen.worldToScreen(G), ie = A(new he(x.offsetX, x.offsetY), Z, j);
|
|
29976
|
-
if (ie <
|
|
29976
|
+
if (ie < D) {
|
|
29977
29977
|
let X = B(new he(x.offsetX, x.offsetY), Z, j), $ = S(X, H, G);
|
|
29978
29978
|
E.push({
|
|
29979
29979
|
distance: ie,
|
|
@@ -30308,7 +30308,7 @@ class tf extends Gs {
|
|
|
30308
30308
|
this.inverse ? (a = 0, o = 1) : (a = 1, o = 0), r.buffers.stencil.setTest(!0), r.buffers.stencil.setOp(i.REPLACE, i.REPLACE, i.REPLACE), r.buffers.stencil.setFunc(i.ALWAYS, a, 4294967295), r.buffers.stencil.setClear(o), r.buffers.stencil.setLocked(!0), e.setRenderTarget(n), this.clear && e.clear(), e.render(this.scene, this.camera), e.setRenderTarget(t), this.clear && e.clear(), e.render(this.scene, this.camera), r.buffers.color.setLocked(!1), r.buffers.depth.setLocked(!1), r.buffers.color.setMask(!0), r.buffers.depth.setMask(!0), r.buffers.stencil.setLocked(!1), r.buffers.stencil.setFunc(i.EQUAL, 1, 4294967295), r.buffers.stencil.setOp(i.KEEP, i.KEEP, i.KEEP), r.buffers.stencil.setLocked(!0);
|
|
30309
30309
|
}
|
|
30310
30310
|
}
|
|
30311
|
-
class
|
|
30311
|
+
class D_ extends Gs {
|
|
30312
30312
|
/**
|
|
30313
30313
|
* Constructs a new clear mask pass.
|
|
30314
30314
|
*/
|
|
@@ -30330,7 +30330,7 @@ class I_ extends Gs {
|
|
|
30330
30330
|
e.state.buffers.stencil.setLocked(!1), e.state.buffers.stencil.setTest(!1);
|
|
30331
30331
|
}
|
|
30332
30332
|
}
|
|
30333
|
-
class
|
|
30333
|
+
class I_ {
|
|
30334
30334
|
/**
|
|
30335
30335
|
* Constructs a new effect composer.
|
|
30336
30336
|
*
|
|
@@ -30412,7 +30412,7 @@ class D_ {
|
|
|
30412
30412
|
}
|
|
30413
30413
|
this.swapBuffers();
|
|
30414
30414
|
}
|
|
30415
|
-
tf !== void 0 && (a instanceof tf ? n = !0 : a instanceof
|
|
30415
|
+
tf !== void 0 && (a instanceof tf ? n = !0 : a instanceof D_ && (n = !1));
|
|
30416
30416
|
}
|
|
30417
30417
|
}
|
|
30418
30418
|
this.renderer.setRenderTarget(t);
|
|
@@ -30510,9 +30510,9 @@ const Ro = {
|
|
|
30510
30510
|
resolution: { value: new he() },
|
|
30511
30511
|
cameraNear: { value: null },
|
|
30512
30512
|
cameraFar: { value: null },
|
|
30513
|
-
cameraProjectionMatrix: { value: new
|
|
30514
|
-
cameraProjectionMatrixInverse: { value: new
|
|
30515
|
-
cameraWorldMatrix: { value: new
|
|
30513
|
+
cameraProjectionMatrix: { value: new De() },
|
|
30514
|
+
cameraProjectionMatrixInverse: { value: new De() },
|
|
30515
|
+
cameraWorldMatrix: { value: new De() },
|
|
30516
30516
|
radius: { value: 0.25 },
|
|
30517
30517
|
distanceExponent: { value: 1 },
|
|
30518
30518
|
thickness: { value: 1 },
|
|
@@ -30796,7 +30796,7 @@ function B_(s = 5) {
|
|
|
30796
30796
|
i[a * 4] = (c.x * 0.5 + 0.5) * 255, i[a * 4 + 1] = (c.y * 0.5 + 0.5) * 255, i[a * 4 + 2] = 127, i[a * 4 + 3] = 255;
|
|
30797
30797
|
}
|
|
30798
30798
|
const r = new Fs(i, e, e);
|
|
30799
|
-
return r.wrapS =
|
|
30799
|
+
return r.wrapS = In, r.wrapT = In, r.needsUpdate = !0, r;
|
|
30800
30800
|
}
|
|
30801
30801
|
function k_(s) {
|
|
30802
30802
|
const e = Math.floor(s) % 2 === 0 ? Math.floor(s) + 1 : Math.floor(s), t = e * e, n = Array(t).fill(0);
|
|
@@ -30811,7 +30811,7 @@ function k_(s) {
|
|
|
30811
30811
|
}
|
|
30812
30812
|
return n;
|
|
30813
30813
|
}
|
|
30814
|
-
const
|
|
30814
|
+
const Do = {
|
|
30815
30815
|
defines: {
|
|
30816
30816
|
SAMPLES: 16,
|
|
30817
30817
|
SAMPLE_VECTORS: y0(16, 2, 1),
|
|
@@ -30824,7 +30824,7 @@ const Io = {
|
|
|
30824
30824
|
tDepth: { value: null },
|
|
30825
30825
|
tNoise: { value: null },
|
|
30826
30826
|
resolution: { value: new he() },
|
|
30827
|
-
cameraProjectionMatrixInverse: { value: new
|
|
30827
|
+
cameraProjectionMatrixInverse: { value: new De() },
|
|
30828
30828
|
lumaPhi: { value: 5 },
|
|
30829
30829
|
depthPhi: { value: 5 },
|
|
30830
30830
|
normalPhi: { value: 5 },
|
|
@@ -31146,8 +31146,8 @@ class _0 {
|
|
|
31146
31146
|
let x, m;
|
|
31147
31147
|
g > f ? (x = 1, m = 0) : (x = 0, m = 1);
|
|
31148
31148
|
const b = g - x + h, v = f - m + h, y = g - 1 + 2 * h, _ = f - 1 + 2 * h, M = l & 255, T = c & 255, R = this.perm[M + this.perm[T]] % 12, w = this.perm[M + x + this.perm[T + m]] % 12, E = this.perm[M + 1 + this.perm[T + 1]] % 12;
|
|
31149
|
-
let
|
|
31150
|
-
|
|
31149
|
+
let D = 0.5 - g * g - f * f;
|
|
31150
|
+
D < 0 ? n = 0 : (D *= D, n = D * D * this._dot(this.grad3[R], g, f));
|
|
31151
31151
|
let A = 0.5 - b * b - v * v;
|
|
31152
31152
|
A < 0 ? i = 0 : (A *= A, i = A * A * this._dot(this.grad3[w], b, v));
|
|
31153
31153
|
let B = 0.5 - y * y - _ * _;
|
|
@@ -31166,11 +31166,11 @@ class _0 {
|
|
|
31166
31166
|
const l = (e + t + n) * 0.3333333333333333, c = Math.floor(e + l), h = Math.floor(t + l), d = Math.floor(n + l), p = 1 / 6, u = (c + h + d) * p, g = c - u, f = h - u, x = d - u, m = e - g, b = t - f, v = n - x;
|
|
31167
31167
|
let y, _, M, T, R, w;
|
|
31168
31168
|
m >= b ? b >= v ? (y = 1, _ = 0, M = 0, T = 1, R = 1, w = 0) : m >= v ? (y = 1, _ = 0, M = 0, T = 1, R = 0, w = 1) : (y = 0, _ = 0, M = 1, T = 1, R = 0, w = 1) : b < v ? (y = 0, _ = 0, M = 1, T = 0, R = 1, w = 1) : m < v ? (y = 0, _ = 1, M = 0, T = 0, R = 1, w = 1) : (y = 0, _ = 1, M = 0, T = 1, R = 1, w = 0);
|
|
31169
|
-
const E = m - y + p,
|
|
31169
|
+
const E = m - y + p, D = b - _ + p, A = v - M + p, B = m - T + 2 * p, S = b - R + 2 * p, U = v - w + 2 * p, H = m - 1 + 3 * p, G = b - 1 + 3 * p, Z = v - 1 + 3 * p, j = c & 255, ie = h & 255, X = d & 255, $ = this.perm[j + this.perm[ie + this.perm[X]]] % 12, ue = this.perm[j + y + this.perm[ie + _ + this.perm[X + M]]] % 12, pe = this.perm[j + T + this.perm[ie + R + this.perm[X + w]]] % 12, fe = this.perm[j + 1 + this.perm[ie + 1 + this.perm[X + 1]]] % 12;
|
|
31170
31170
|
let se = 0.6 - m * m - b * b - v * v;
|
|
31171
31171
|
se < 0 ? i = 0 : (se *= se, i = se * se * this._dot3(this.grad3[$], m, b, v));
|
|
31172
|
-
let ce = 0.6 - E * E -
|
|
31173
|
-
ce < 0 ? r = 0 : (ce *= ce, r = ce * ce * this._dot3(this.grad3[ue], E,
|
|
31172
|
+
let ce = 0.6 - E * E - D * D - A * A;
|
|
31173
|
+
ce < 0 ? r = 0 : (ce *= ce, r = ce * ce * this._dot3(this.grad3[ue], E, D, A));
|
|
31174
31174
|
let me = 0.6 - B * B - S * S - U * U;
|
|
31175
31175
|
me < 0 ? a = 0 : (me *= me, a = me * me * this._dot3(this.grad3[pe], B, S, U));
|
|
31176
31176
|
let be = 0.6 - H * H - G * G - Z * Z;
|
|
@@ -31188,11 +31188,11 @@ class _0 {
|
|
|
31188
31188
|
noise4d(e, t, n, i) {
|
|
31189
31189
|
const r = this.grad4, a = this.simplex, o = this.perm, l = (Math.sqrt(5) - 1) / 4, c = (5 - Math.sqrt(5)) / 20;
|
|
31190
31190
|
let h, d, p, u, g;
|
|
31191
|
-
const f = (e + t + n + i) * l, x = Math.floor(e + f), m = Math.floor(t + f), b = Math.floor(n + f), v = Math.floor(i + f), y = (x + m + b + v) * c, _ = x - y, M = m - y, T = b - y, R = v - y, w = e - _, E = t - M,
|
|
31192
|
-
let Ae = 0.6 - w * w - E * E -
|
|
31193
|
-
Ae < 0 ? h = 0 : (Ae *= Ae, h = Ae * Ae * this._dot4(r[
|
|
31194
|
-
let Ge = 0.6 - $e * $e - ke * ke - C * C -
|
|
31195
|
-
Ge < 0 ? d = 0 : (Ge *= Ge, d = Ge * Ge * this._dot4(r[de], $e, ke, C,
|
|
31191
|
+
const f = (e + t + n + i) * l, x = Math.floor(e + f), m = Math.floor(t + f), b = Math.floor(n + f), v = Math.floor(i + f), y = (x + m + b + v) * c, _ = x - y, M = m - y, T = b - y, R = v - y, w = e - _, E = t - M, D = n - T, A = i - R, B = w > E ? 32 : 0, S = w > D ? 16 : 0, U = E > D ? 8 : 0, H = w > A ? 4 : 0, G = E > A ? 2 : 0, Z = D > A ? 1 : 0, j = B + S + U + H + G + Z, ie = a[j][0] >= 3 ? 1 : 0, X = a[j][1] >= 3 ? 1 : 0, $ = a[j][2] >= 3 ? 1 : 0, ue = a[j][3] >= 3 ? 1 : 0, pe = a[j][0] >= 2 ? 1 : 0, fe = a[j][1] >= 2 ? 1 : 0, se = a[j][2] >= 2 ? 1 : 0, ce = a[j][3] >= 2 ? 1 : 0, me = a[j][0] >= 1 ? 1 : 0, be = a[j][1] >= 1 ? 1 : 0, Se = a[j][2] >= 1 ? 1 : 0, Be = a[j][3] >= 1 ? 1 : 0, $e = w - ie + c, ke = E - X + c, C = D - $ + c, I = A - ue + c, W = w - pe + 2 * c, O = E - fe + 2 * c, k = D - se + 2 * c, F = A - ce + 2 * c, ee = w - me + 3 * c, J = E - be + 3 * c, q = D - Se + 3 * c, N = A - Be + 3 * c, L = w - 1 + 4 * c, V = E - 1 + 4 * c, K = D - 1 + 4 * c, le = A - 1 + 4 * c, te = x & 255, Te = m & 255, ye = b & 255, Re = v & 255, Ie = o[te + o[Te + o[ye + o[Re]]]] % 32, de = o[te + ie + o[Te + X + o[ye + $ + o[Re + ue]]]] % 32, _e = o[te + pe + o[Te + fe + o[ye + se + o[Re + ce]]]] % 32, Ve = o[te + me + o[Te + be + o[ye + Se + o[Re + Be]]]] % 32, Ue = o[te + 1 + o[Te + 1 + o[ye + 1 + o[Re + 1]]]] % 32;
|
|
31192
|
+
let Ae = 0.6 - w * w - E * E - D * D - A * A;
|
|
31193
|
+
Ae < 0 ? h = 0 : (Ae *= Ae, h = Ae * Ae * this._dot4(r[Ie], w, E, D, A));
|
|
31194
|
+
let Ge = 0.6 - $e * $e - ke * ke - C * C - I * I;
|
|
31195
|
+
Ge < 0 ? d = 0 : (Ge *= Ge, d = Ge * Ge * this._dot4(r[de], $e, ke, C, I));
|
|
31196
31196
|
let Y = 0.6 - W * W - O * O - k * k - F * F;
|
|
31197
31197
|
Y < 0 ? p = 0 : (Y *= Y, p = Y * Y * this._dot4(r[_e], W, O, k, F));
|
|
31198
31198
|
let Ce = 0.6 - ee * ee - J * J - q * q - N * N;
|
|
@@ -31233,10 +31233,10 @@ class Mn extends Gs {
|
|
|
31233
31233
|
depthTest: !1,
|
|
31234
31234
|
depthWrite: !1
|
|
31235
31235
|
}), this.gtaoMaterial.defines.PERSPECTIVE_CAMERA = this.camera.isPerspectiveCamera ? 1 : 0, this.gtaoMaterial.uniforms.tNoise.value = this.gtaoNoiseTexture, this.gtaoMaterial.uniforms.resolution.value.set(this.width, this.height), this.gtaoMaterial.uniforms.cameraNear.value = this.camera.near, this.gtaoMaterial.uniforms.cameraFar.value = this.camera.far, this.normalMaterial = new h0(), this.normalMaterial.blending = St, this.pdMaterial = new Nt({
|
|
31236
|
-
defines: Object.assign({},
|
|
31237
|
-
uniforms: Hn.clone(
|
|
31238
|
-
vertexShader:
|
|
31239
|
-
fragmentShader:
|
|
31236
|
+
defines: Object.assign({}, Do.defines),
|
|
31237
|
+
uniforms: Hn.clone(Do.uniforms),
|
|
31238
|
+
vertexShader: Do.vertexShader,
|
|
31239
|
+
fragmentShader: Do.fragmentShader,
|
|
31240
31240
|
depthTest: !1,
|
|
31241
31241
|
depthWrite: !1
|
|
31242
31242
|
}), this.pdMaterial.uniforms.tDiffuse.value = this.gtaoRenderTarget.texture, this.pdMaterial.uniforms.tNoise.value = this.pdNoiseTexture, this.pdMaterial.uniforms.resolution.value.set(this.width, this.height), this.pdMaterial.uniforms.lumaPhi.value = 10, this.pdMaterial.uniforms.depthPhi.value = 2, this.pdMaterial.uniforms.normalPhi.value = 3, this.pdMaterial.uniforms.radius.value = 8, this.depthRenderMaterial = new Nt({
|
|
@@ -31411,7 +31411,7 @@ class Mn extends Gs {
|
|
|
31411
31411
|
i[(a * e + o) * 4] = (t.noise(l, c) * 0.5 + 0.5) * 255, i[(a * e + o) * 4 + 1] = (t.noise(l + e, c) * 0.5 + 0.5) * 255, i[(a * e + o) * 4 + 2] = (t.noise(l, c + e) * 0.5 + 0.5) * 255, i[(a * e + o) * 4 + 3] = (t.noise(l + e, c + e) * 0.5 + 0.5) * 255;
|
|
31412
31412
|
}
|
|
31413
31413
|
const r = new Fs(i, e, e, wn, ii);
|
|
31414
|
-
return r.wrapS =
|
|
31414
|
+
return r.wrapS = In, r.wrapT = In, r.needsUpdate = !0, r;
|
|
31415
31415
|
}
|
|
31416
31416
|
}
|
|
31417
31417
|
Mn.OUTPUT = {
|
|
@@ -31423,7 +31423,7 @@ Mn.OUTPUT = {
|
|
|
31423
31423
|
AO: 4,
|
|
31424
31424
|
Denoise: 5
|
|
31425
31425
|
};
|
|
31426
|
-
const
|
|
31426
|
+
const Io = {
|
|
31427
31427
|
defines: {
|
|
31428
31428
|
PERSPECTIVE_CAMERA: 1,
|
|
31429
31429
|
KERNEL_SIZE: 32
|
|
@@ -31436,8 +31436,8 @@ const Do = {
|
|
|
31436
31436
|
cameraNear: { value: null },
|
|
31437
31437
|
cameraFar: { value: null },
|
|
31438
31438
|
resolution: { value: new he() },
|
|
31439
|
-
cameraProjectionMatrix: { value: new
|
|
31440
|
-
cameraInverseProjectionMatrix: { value: new
|
|
31439
|
+
cameraProjectionMatrix: { value: new De() },
|
|
31440
|
+
cameraInverseProjectionMatrix: { value: new De() },
|
|
31441
31441
|
kernelRadius: { value: 8 },
|
|
31442
31442
|
minDistance: { value: 5e-3 },
|
|
31443
31443
|
maxDistance: { value: 0.05 }
|
|
@@ -31696,10 +31696,10 @@ class Li extends Gs {
|
|
|
31696
31696
|
type: mn,
|
|
31697
31697
|
depthTexture: a
|
|
31698
31698
|
}), this.ssaoRenderTarget = new Nn(this.width, this.height, { type: mn }), this.blurRenderTarget = this.ssaoRenderTarget.clone(), this.ssaoMaterial = new Nt({
|
|
31699
|
-
defines: Object.assign({},
|
|
31700
|
-
uniforms: Hn.clone(
|
|
31701
|
-
vertexShader:
|
|
31702
|
-
fragmentShader:
|
|
31699
|
+
defines: Object.assign({}, Io.defines),
|
|
31700
|
+
uniforms: Hn.clone(Io.uniforms),
|
|
31701
|
+
vertexShader: Io.vertexShader,
|
|
31702
|
+
fragmentShader: Io.fragmentShader,
|
|
31703
31703
|
blending: St
|
|
31704
31704
|
}), this.ssaoMaterial.defines.KERNEL_SIZE = r, this.ssaoMaterial.uniforms.tNormal.value = this.normalRenderTarget.texture, this.ssaoMaterial.uniforms.tDepth.value = this.normalRenderTarget.depthTexture, this.ssaoMaterial.uniforms.tNoise.value = this.noiseTexture, this.ssaoMaterial.uniforms.kernel.value = this.kernel, this.ssaoMaterial.uniforms.cameraNear.value = this.camera.near, this.ssaoMaterial.uniforms.cameraFar.value = this.camera.far, this.ssaoMaterial.uniforms.resolution.value.set(this.width, this.height), this.ssaoMaterial.uniforms.cameraProjectionMatrix.value.copy(this.camera.projectionMatrix), this.ssaoMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse), this.normalMaterial = new h0(), this.normalMaterial.blending = St, this.blurMaterial = new Nt({
|
|
31705
31705
|
defines: Object.assign({}, Bo.defines),
|
|
@@ -31801,7 +31801,7 @@ class Li extends Gs {
|
|
|
31801
31801
|
const r = Math.random() * 2 - 1, a = Math.random() * 2 - 1, o = 0;
|
|
31802
31802
|
n[i] = e.noise3d(r, a, o);
|
|
31803
31803
|
}
|
|
31804
|
-
this.noiseTexture = new Fs(n, 4, 4, Fl, fn), this.noiseTexture.wrapS =
|
|
31804
|
+
this.noiseTexture = new Fs(n, 4, 4, Fl, fn), this.noiseTexture.wrapS = In, this.noiseTexture.wrapT = In, this.noiseTexture.needsUpdate = !0;
|
|
31805
31805
|
}
|
|
31806
31806
|
_overrideVisibility() {
|
|
31807
31807
|
const e = this.scene, t = this._visibilityCache;
|
|
@@ -32286,7 +32286,7 @@ class H_ {
|
|
|
32286
32286
|
samples: 4
|
|
32287
32287
|
// 启用多重采样抗锯齿
|
|
32288
32288
|
});
|
|
32289
|
-
this.composer = new
|
|
32289
|
+
this.composer = new I_(r, o), this.composer.setPixelRatio(a), this.composer.setSize(e, t);
|
|
32290
32290
|
const l = new N_(n, i);
|
|
32291
32291
|
this.composer.addPass(l), this.gtaoPass = new Mn(n, i, e, t), this.gtaoPass.output = Mn.OUTPUT.Default, this.gtaoPass.blendIntensity = 0.3, this.gtaoPass.enabled = !1, this.gtaoPass.updateGtaoMaterial && this.gtaoPass.updateGtaoMaterial({
|
|
32292
32292
|
radius: 1,
|
|
@@ -32422,7 +32422,7 @@ function V_() {
|
|
|
32422
32422
|
return x;
|
|
32423
32423
|
}
|
|
32424
32424
|
function a(u, g, f, x, m, b) {
|
|
32425
|
-
var v, y, _ = u.file, M = u.compression, T = b !== c.utf8encode, R = o.transformTo("string", b(_.name)), w = o.transformTo("string", c.utf8encode(_.name)), E = _.comment,
|
|
32425
|
+
var v, y, _ = u.file, M = u.compression, T = b !== c.utf8encode, R = o.transformTo("string", b(_.name)), w = o.transformTo("string", c.utf8encode(_.name)), E = _.comment, D = o.transformTo("string", b(E)), A = o.transformTo("string", c.utf8encode(E)), B = w.length !== _.name.length, S = A.length !== E.length, U = "", H = "", G = "", Z = _.dir, j = _.date, ie = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
32426
32426
|
g && !f || (ie.crc32 = u.crc32, ie.compressedSize = u.compressedSize, ie.uncompressedSize = u.uncompressedSize);
|
|
32427
32427
|
var X = 0;
|
|
32428
32428
|
g && (X |= 8), T || !B && !S || (X |= 2048);
|
|
@@ -32432,10 +32432,10 @@ function V_() {
|
|
|
32432
32432
|
return fe || (ce = se ? 16893 : 33204), (65535 & ce) << 16;
|
|
32433
32433
|
})(_.unixPermissions, Z)) : (ue = 20, $ |= (function(fe) {
|
|
32434
32434
|
return 63 & (fe || 0);
|
|
32435
|
-
})(_.dosPermissions)), v = j.getUTCHours(), v <<= 6, v |= j.getUTCMinutes(), v <<= 5, v |= j.getUTCSeconds() / 2, y = j.getUTCFullYear() - 1980, y <<= 4, y |= j.getUTCMonth() + 1, y <<= 5, y |= j.getUTCDate(), B && (H = r(1, 1) + r(h(R), 4) + w, U += "up" + r(H.length, 2) + H), S && (G = r(1, 1) + r(h(
|
|
32435
|
+
})(_.dosPermissions)), v = j.getUTCHours(), v <<= 6, v |= j.getUTCMinutes(), v <<= 5, v |= j.getUTCSeconds() / 2, y = j.getUTCFullYear() - 1980, y <<= 4, y |= j.getUTCMonth() + 1, y <<= 5, y |= j.getUTCDate(), B && (H = r(1, 1) + r(h(R), 4) + w, U += "up" + r(H.length, 2) + H), S && (G = r(1, 1) + r(h(D), 4) + A, U += "uc" + r(G.length, 2) + G);
|
|
32436
32436
|
var pe = "";
|
|
32437
32437
|
return pe += `
|
|
32438
|
-
\0`, pe += r(X, 2), pe += M.magic, pe += r(v, 2), pe += r(y, 2), pe += r(ie.crc32, 4), pe += r(ie.compressedSize, 4), pe += r(ie.uncompressedSize, 4), pe += r(R.length, 2), pe += r(U.length, 2), { fileRecord: d.LOCAL_FILE_HEADER + pe + R + U, dirRecord: d.CENTRAL_FILE_HEADER + r(ue, 2) + pe + r(
|
|
32438
|
+
\0`, pe += r(X, 2), pe += M.magic, pe += r(v, 2), pe += r(y, 2), pe += r(ie.crc32, 4), pe += r(ie.compressedSize, 4), pe += r(ie.uncompressedSize, 4), pe += r(R.length, 2), pe += r(U.length, 2), { fileRecord: d.LOCAL_FILE_HEADER + pe + R + U, dirRecord: d.CENTRAL_FILE_HEADER + r(ue, 2) + pe + r(D.length, 2) + "\0\0\0\0" + r($, 4) + r(x, 4) + R + U + D };
|
|
32439
32439
|
}
|
|
32440
32440
|
var o = t("../utils"), l = t("../stream/GenericWorker"), c = t("../utf8"), h = t("../crc32"), d = t("../signature");
|
|
32441
32441
|
function p(u, g, f, x) {
|
|
@@ -32606,8 +32606,8 @@ function V_() {
|
|
|
32606
32606
|
function r(_, M, T) {
|
|
32607
32607
|
var R, w = o.getTypeOf(M), E = o.extend(T || {}, h);
|
|
32608
32608
|
E.date = E.date || /* @__PURE__ */ new Date(), E.compression !== null && (E.compression = E.compression.toUpperCase()), typeof E.unixPermissions == "string" && (E.unixPermissions = parseInt(E.unixPermissions, 8)), E.unixPermissions && 16384 & E.unixPermissions && (E.dir = !0), E.dosPermissions && 16 & E.dosPermissions && (E.dir = !0), E.dir && (_ = m(_)), E.createFolders && (R = x(_)) && b.call(this, R, !0);
|
|
32609
|
-
var
|
|
32610
|
-
T && T.binary !== void 0 || (E.binary = !
|
|
32609
|
+
var D = w === "string" && E.binary === !1 && E.base64 === !1;
|
|
32610
|
+
T && T.binary !== void 0 || (E.binary = !D), (M instanceof d && M.uncompressedSize === 0 || E.dir || !M || M.length === 0) && (E.base64 = !1, E.binary = !0, M = "", E.compression = "STORE", w = "string");
|
|
32611
32611
|
var A = null;
|
|
32612
32612
|
A = M instanceof d || M instanceof l ? M : g.isNode && g.isStream(M) ? new f(_, M) : o.prepareContent(_, M, E.binary, E.optimizedBinaryString, E.base64);
|
|
32613
32613
|
var B = new p(_, A, E);
|
|
@@ -32639,8 +32639,8 @@ function V_() {
|
|
|
32639
32639
|
if (arguments.length !== 1) return _ = this.root + _, r.call(this, _, M, T), this;
|
|
32640
32640
|
if (v(_)) {
|
|
32641
32641
|
var R = _;
|
|
32642
|
-
return this.filter(function(E,
|
|
32643
|
-
return !
|
|
32642
|
+
return this.filter(function(E, D) {
|
|
32643
|
+
return !D.dir && R.test(E);
|
|
32644
32644
|
});
|
|
32645
32645
|
}
|
|
32646
32646
|
var w = this.files[this.root + _];
|
|
@@ -32914,7 +32914,7 @@ function V_() {
|
|
|
32914
32914
|
return r.transformTo(T, R);
|
|
32915
32915
|
}
|
|
32916
32916
|
})(y, (function(T, R) {
|
|
32917
|
-
var w, E = 0,
|
|
32917
|
+
var w, E = 0, D = null, A = 0;
|
|
32918
32918
|
for (w = 0; w < R.length; w++) A += R[w].length;
|
|
32919
32919
|
switch (T) {
|
|
32920
32920
|
case "string":
|
|
@@ -32922,8 +32922,8 @@ function V_() {
|
|
|
32922
32922
|
case "array":
|
|
32923
32923
|
return Array.prototype.concat.apply([], R);
|
|
32924
32924
|
case "uint8array":
|
|
32925
|
-
for (
|
|
32926
|
-
return
|
|
32925
|
+
for (D = new Uint8Array(A), w = 0; w < R.length; w++) D.set(R[w], E), E += R[w].length;
|
|
32926
|
+
return D;
|
|
32927
32927
|
case "nodebuffer":
|
|
32928
32928
|
return Buffer.concat(R);
|
|
32929
32929
|
default:
|
|
@@ -33468,9 +33468,9 @@ function V_() {
|
|
|
33468
33468
|
if (!v) return this.resolve([]);
|
|
33469
33469
|
for (var _ = new Array(v), M = 0, T = -1, R = new this(a); ++T < v; ) w(m[T], T);
|
|
33470
33470
|
return R;
|
|
33471
|
-
function w(E,
|
|
33471
|
+
function w(E, D) {
|
|
33472
33472
|
b.resolve(E).then(function(A) {
|
|
33473
|
-
_[
|
|
33473
|
+
_[D] = A, ++M !== v || y || (y = !0, o.resolve(R, _));
|
|
33474
33474
|
}, function(A) {
|
|
33475
33475
|
y || (y = !0, o.reject(R, A));
|
|
33476
33476
|
});
|
|
@@ -33659,133 +33659,133 @@ function V_() {
|
|
|
33659
33659
|
return -1 ^ a;
|
|
33660
33660
|
};
|
|
33661
33661
|
}, {}], 46: [function(t, n, i) {
|
|
33662
|
-
var r, a = t("../utils/common"), o = t("./trees"), l = t("./adler32"), c = t("./crc32"), h = t("./messages"), d = 0, p = 4, u = 0, g = -2, f = -1, x = 4, m = 2, b = 8, v = 9, y = 286, _ = 30, M = 19, T = 2 * y + 1, R = 15, w = 3, E = 258,
|
|
33663
|
-
function Z(C,
|
|
33664
|
-
return C.msg = h[
|
|
33662
|
+
var r, a = t("../utils/common"), o = t("./trees"), l = t("./adler32"), c = t("./crc32"), h = t("./messages"), d = 0, p = 4, u = 0, g = -2, f = -1, x = 4, m = 2, b = 8, v = 9, y = 286, _ = 30, M = 19, T = 2 * y + 1, R = 15, w = 3, E = 258, D = E + w + 1, A = 42, B = 113, S = 1, U = 2, H = 3, G = 4;
|
|
33663
|
+
function Z(C, I) {
|
|
33664
|
+
return C.msg = h[I], I;
|
|
33665
33665
|
}
|
|
33666
33666
|
function j(C) {
|
|
33667
33667
|
return (C << 1) - (4 < C ? 9 : 0);
|
|
33668
33668
|
}
|
|
33669
33669
|
function ie(C) {
|
|
33670
|
-
for (var
|
|
33670
|
+
for (var I = C.length; 0 <= --I; ) C[I] = 0;
|
|
33671
33671
|
}
|
|
33672
33672
|
function X(C) {
|
|
33673
|
-
var
|
|
33674
|
-
W > C.avail_out && (W = C.avail_out), W !== 0 && (a.arraySet(C.output,
|
|
33673
|
+
var I = C.state, W = I.pending;
|
|
33674
|
+
W > C.avail_out && (W = C.avail_out), W !== 0 && (a.arraySet(C.output, I.pending_buf, I.pending_out, W, C.next_out), C.next_out += W, I.pending_out += W, C.total_out += W, C.avail_out -= W, I.pending -= W, I.pending === 0 && (I.pending_out = 0));
|
|
33675
33675
|
}
|
|
33676
|
-
function $(C,
|
|
33677
|
-
o._tr_flush_block(C, 0 <= C.block_start ? C.block_start : -1, C.strstart - C.block_start,
|
|
33676
|
+
function $(C, I) {
|
|
33677
|
+
o._tr_flush_block(C, 0 <= C.block_start ? C.block_start : -1, C.strstart - C.block_start, I), C.block_start = C.strstart, X(C.strm);
|
|
33678
33678
|
}
|
|
33679
|
-
function ue(C,
|
|
33680
|
-
C.pending_buf[C.pending++] =
|
|
33679
|
+
function ue(C, I) {
|
|
33680
|
+
C.pending_buf[C.pending++] = I;
|
|
33681
33681
|
}
|
|
33682
|
-
function pe(C,
|
|
33683
|
-
C.pending_buf[C.pending++] =
|
|
33682
|
+
function pe(C, I) {
|
|
33683
|
+
C.pending_buf[C.pending++] = I >>> 8 & 255, C.pending_buf[C.pending++] = 255 & I;
|
|
33684
33684
|
}
|
|
33685
|
-
function fe(C,
|
|
33686
|
-
var W, O, k = C.max_chain_length, F = C.strstart, ee = C.prev_length, J = C.nice_match, q = C.strstart > C.w_size -
|
|
33685
|
+
function fe(C, I) {
|
|
33686
|
+
var W, O, k = C.max_chain_length, F = C.strstart, ee = C.prev_length, J = C.nice_match, q = C.strstart > C.w_size - D ? C.strstart - (C.w_size - D) : 0, N = C.window, L = C.w_mask, V = C.prev, K = C.strstart + E, le = N[F + ee - 1], te = N[F + ee];
|
|
33687
33687
|
C.prev_length >= C.good_match && (k >>= 2), J > C.lookahead && (J = C.lookahead);
|
|
33688
33688
|
do
|
|
33689
|
-
if (N[(W =
|
|
33689
|
+
if (N[(W = I) + ee] === te && N[W + ee - 1] === le && N[W] === N[F] && N[++W] === N[F + 1]) {
|
|
33690
33690
|
F += 2, W++;
|
|
33691
33691
|
do
|
|
33692
33692
|
;
|
|
33693
33693
|
while (N[++F] === N[++W] && N[++F] === N[++W] && N[++F] === N[++W] && N[++F] === N[++W] && N[++F] === N[++W] && N[++F] === N[++W] && N[++F] === N[++W] && N[++F] === N[++W] && F < K);
|
|
33694
33694
|
if (O = E - (K - F), F = K - E, ee < O) {
|
|
33695
|
-
if (C.match_start =
|
|
33695
|
+
if (C.match_start = I, J <= (ee = O)) break;
|
|
33696
33696
|
le = N[F + ee - 1], te = N[F + ee];
|
|
33697
33697
|
}
|
|
33698
33698
|
}
|
|
33699
|
-
while ((
|
|
33699
|
+
while ((I = V[I & L]) > q && --k != 0);
|
|
33700
33700
|
return ee <= C.lookahead ? ee : C.lookahead;
|
|
33701
33701
|
}
|
|
33702
33702
|
function se(C) {
|
|
33703
|
-
var
|
|
33703
|
+
var I, W, O, k, F, ee, J, q, N, L, V = C.w_size;
|
|
33704
33704
|
do {
|
|
33705
|
-
if (k = C.window_size - C.lookahead - C.strstart, C.strstart >= V + (V -
|
|
33706
|
-
for (a.arraySet(C.window, C.window, V, V, 0), C.match_start -= V, C.strstart -= V, C.block_start -= V,
|
|
33707
|
-
for (
|
|
33705
|
+
if (k = C.window_size - C.lookahead - C.strstart, C.strstart >= V + (V - D)) {
|
|
33706
|
+
for (a.arraySet(C.window, C.window, V, V, 0), C.match_start -= V, C.strstart -= V, C.block_start -= V, I = W = C.hash_size; O = C.head[--I], C.head[I] = V <= O ? O - V : 0, --W; ) ;
|
|
33707
|
+
for (I = W = V; O = C.prev[--I], C.prev[I] = V <= O ? O - V : 0, --W; ) ;
|
|
33708
33708
|
k += V;
|
|
33709
33709
|
}
|
|
33710
33710
|
if (C.strm.avail_in === 0) break;
|
|
33711
33711
|
if (ee = C.strm, J = C.window, q = C.strstart + C.lookahead, N = k, L = void 0, L = ee.avail_in, N < L && (L = N), W = L === 0 ? 0 : (ee.avail_in -= L, a.arraySet(J, ee.input, ee.next_in, L, q), ee.state.wrap === 1 ? ee.adler = l(ee.adler, J, L, q) : ee.state.wrap === 2 && (ee.adler = c(ee.adler, J, L, q)), ee.next_in += L, ee.total_in += L, L), C.lookahead += W, C.lookahead + C.insert >= w) for (F = C.strstart - C.insert, C.ins_h = C.window[F], C.ins_h = (C.ins_h << C.hash_shift ^ C.window[F + 1]) & C.hash_mask; C.insert && (C.ins_h = (C.ins_h << C.hash_shift ^ C.window[F + w - 1]) & C.hash_mask, C.prev[F & C.w_mask] = C.head[C.ins_h], C.head[C.ins_h] = F, F++, C.insert--, !(C.lookahead + C.insert < w)); ) ;
|
|
33712
|
-
} while (C.lookahead <
|
|
33712
|
+
} while (C.lookahead < D && C.strm.avail_in !== 0);
|
|
33713
33713
|
}
|
|
33714
|
-
function ce(C,
|
|
33714
|
+
function ce(C, I) {
|
|
33715
33715
|
for (var W, O; ; ) {
|
|
33716
|
-
if (C.lookahead <
|
|
33717
|
-
if (se(C), C.lookahead <
|
|
33716
|
+
if (C.lookahead < D) {
|
|
33717
|
+
if (se(C), C.lookahead < D && I === d) return S;
|
|
33718
33718
|
if (C.lookahead === 0) break;
|
|
33719
33719
|
}
|
|
33720
|
-
if (W = 0, C.lookahead >= w && (C.ins_h = (C.ins_h << C.hash_shift ^ C.window[C.strstart + w - 1]) & C.hash_mask, W = C.prev[C.strstart & C.w_mask] = C.head[C.ins_h], C.head[C.ins_h] = C.strstart), W !== 0 && C.strstart - W <= C.w_size -
|
|
33720
|
+
if (W = 0, C.lookahead >= w && (C.ins_h = (C.ins_h << C.hash_shift ^ C.window[C.strstart + w - 1]) & C.hash_mask, W = C.prev[C.strstart & C.w_mask] = C.head[C.ins_h], C.head[C.ins_h] = C.strstart), W !== 0 && C.strstart - W <= C.w_size - D && (C.match_length = fe(C, W)), C.match_length >= w) if (O = o._tr_tally(C, C.strstart - C.match_start, C.match_length - w), C.lookahead -= C.match_length, C.match_length <= C.max_lazy_match && C.lookahead >= w) {
|
|
33721
33721
|
for (C.match_length--; C.strstart++, C.ins_h = (C.ins_h << C.hash_shift ^ C.window[C.strstart + w - 1]) & C.hash_mask, W = C.prev[C.strstart & C.w_mask] = C.head[C.ins_h], C.head[C.ins_h] = C.strstart, --C.match_length != 0; ) ;
|
|
33722
33722
|
C.strstart++;
|
|
33723
33723
|
} else C.strstart += C.match_length, C.match_length = 0, C.ins_h = C.window[C.strstart], C.ins_h = (C.ins_h << C.hash_shift ^ C.window[C.strstart + 1]) & C.hash_mask;
|
|
33724
33724
|
else O = o._tr_tally(C, 0, C.window[C.strstart]), C.lookahead--, C.strstart++;
|
|
33725
33725
|
if (O && ($(C, !1), C.strm.avail_out === 0)) return S;
|
|
33726
33726
|
}
|
|
33727
|
-
return C.insert = C.strstart < w - 1 ? C.strstart : w - 1,
|
|
33727
|
+
return C.insert = C.strstart < w - 1 ? C.strstart : w - 1, I === p ? ($(C, !0), C.strm.avail_out === 0 ? H : G) : C.last_lit && ($(C, !1), C.strm.avail_out === 0) ? S : U;
|
|
33728
33728
|
}
|
|
33729
|
-
function me(C,
|
|
33729
|
+
function me(C, I) {
|
|
33730
33730
|
for (var W, O, k; ; ) {
|
|
33731
|
-
if (C.lookahead <
|
|
33732
|
-
if (se(C), C.lookahead <
|
|
33731
|
+
if (C.lookahead < D) {
|
|
33732
|
+
if (se(C), C.lookahead < D && I === d) return S;
|
|
33733
33733
|
if (C.lookahead === 0) break;
|
|
33734
33734
|
}
|
|
33735
|
-
if (W = 0, C.lookahead >= w && (C.ins_h = (C.ins_h << C.hash_shift ^ C.window[C.strstart + w - 1]) & C.hash_mask, W = C.prev[C.strstart & C.w_mask] = C.head[C.ins_h], C.head[C.ins_h] = C.strstart), C.prev_length = C.match_length, C.prev_match = C.match_start, C.match_length = w - 1, W !== 0 && C.prev_length < C.max_lazy_match && C.strstart - W <= C.w_size -
|
|
33735
|
+
if (W = 0, C.lookahead >= w && (C.ins_h = (C.ins_h << C.hash_shift ^ C.window[C.strstart + w - 1]) & C.hash_mask, W = C.prev[C.strstart & C.w_mask] = C.head[C.ins_h], C.head[C.ins_h] = C.strstart), C.prev_length = C.match_length, C.prev_match = C.match_start, C.match_length = w - 1, W !== 0 && C.prev_length < C.max_lazy_match && C.strstart - W <= C.w_size - D && (C.match_length = fe(C, W), C.match_length <= 5 && (C.strategy === 1 || C.match_length === w && 4096 < C.strstart - C.match_start) && (C.match_length = w - 1)), C.prev_length >= w && C.match_length <= C.prev_length) {
|
|
33736
33736
|
for (k = C.strstart + C.lookahead - w, O = o._tr_tally(C, C.strstart - 1 - C.prev_match, C.prev_length - w), C.lookahead -= C.prev_length - 1, C.prev_length -= 2; ++C.strstart <= k && (C.ins_h = (C.ins_h << C.hash_shift ^ C.window[C.strstart + w - 1]) & C.hash_mask, W = C.prev[C.strstart & C.w_mask] = C.head[C.ins_h], C.head[C.ins_h] = C.strstart), --C.prev_length != 0; ) ;
|
|
33737
33737
|
if (C.match_available = 0, C.match_length = w - 1, C.strstart++, O && ($(C, !1), C.strm.avail_out === 0)) return S;
|
|
33738
33738
|
} else if (C.match_available) {
|
|
33739
33739
|
if ((O = o._tr_tally(C, 0, C.window[C.strstart - 1])) && $(C, !1), C.strstart++, C.lookahead--, C.strm.avail_out === 0) return S;
|
|
33740
33740
|
} else C.match_available = 1, C.strstart++, C.lookahead--;
|
|
33741
33741
|
}
|
|
33742
|
-
return C.match_available && (O = o._tr_tally(C, 0, C.window[C.strstart - 1]), C.match_available = 0), C.insert = C.strstart < w - 1 ? C.strstart : w - 1,
|
|
33742
|
+
return C.match_available && (O = o._tr_tally(C, 0, C.window[C.strstart - 1]), C.match_available = 0), C.insert = C.strstart < w - 1 ? C.strstart : w - 1, I === p ? ($(C, !0), C.strm.avail_out === 0 ? H : G) : C.last_lit && ($(C, !1), C.strm.avail_out === 0) ? S : U;
|
|
33743
33743
|
}
|
|
33744
|
-
function be(C,
|
|
33745
|
-
this.good_length = C, this.max_lazy =
|
|
33744
|
+
function be(C, I, W, O, k) {
|
|
33745
|
+
this.good_length = C, this.max_lazy = I, this.nice_length = W, this.max_chain = O, this.func = k;
|
|
33746
33746
|
}
|
|
33747
33747
|
function Se() {
|
|
33748
33748
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = b, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new a.Buf16(2 * T), this.dyn_dtree = new a.Buf16(2 * (2 * _ + 1)), this.bl_tree = new a.Buf16(2 * (2 * M + 1)), ie(this.dyn_ltree), ie(this.dyn_dtree), ie(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new a.Buf16(R + 1), this.heap = new a.Buf16(2 * y + 1), ie(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new a.Buf16(2 * y + 1), ie(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
33749
33749
|
}
|
|
33750
33750
|
function Be(C) {
|
|
33751
|
-
var
|
|
33752
|
-
return C && C.state ? (C.total_in = C.total_out = 0, C.data_type = m, (
|
|
33751
|
+
var I;
|
|
33752
|
+
return C && C.state ? (C.total_in = C.total_out = 0, C.data_type = m, (I = C.state).pending = 0, I.pending_out = 0, I.wrap < 0 && (I.wrap = -I.wrap), I.status = I.wrap ? A : B, C.adler = I.wrap === 2 ? 0 : 1, I.last_flush = d, o._tr_init(I), u) : Z(C, g);
|
|
33753
33753
|
}
|
|
33754
33754
|
function $e(C) {
|
|
33755
|
-
var
|
|
33756
|
-
return
|
|
33755
|
+
var I = Be(C);
|
|
33756
|
+
return I === u && (function(W) {
|
|
33757
33757
|
W.window_size = 2 * W.w_size, ie(W.head), W.max_lazy_match = r[W.level].max_lazy, W.good_match = r[W.level].good_length, W.nice_match = r[W.level].nice_length, W.max_chain_length = r[W.level].max_chain, W.strstart = 0, W.block_start = 0, W.lookahead = 0, W.insert = 0, W.match_length = W.prev_length = w - 1, W.match_available = 0, W.ins_h = 0;
|
|
33758
|
-
})(C.state),
|
|
33758
|
+
})(C.state), I;
|
|
33759
33759
|
}
|
|
33760
|
-
function ke(C,
|
|
33760
|
+
function ke(C, I, W, O, k, F) {
|
|
33761
33761
|
if (!C) return g;
|
|
33762
33762
|
var ee = 1;
|
|
33763
|
-
if (
|
|
33763
|
+
if (I === f && (I = 6), O < 0 ? (ee = 0, O = -O) : 15 < O && (ee = 2, O -= 16), k < 1 || v < k || W !== b || O < 8 || 15 < O || I < 0 || 9 < I || F < 0 || x < F) return Z(C, g);
|
|
33764
33764
|
O === 8 && (O = 9);
|
|
33765
33765
|
var J = new Se();
|
|
33766
|
-
return (C.state = J).strm = C, J.wrap = ee, J.gzhead = null, J.w_bits = O, J.w_size = 1 << J.w_bits, J.w_mask = J.w_size - 1, J.hash_bits = k + 7, J.hash_size = 1 << J.hash_bits, J.hash_mask = J.hash_size - 1, J.hash_shift = ~~((J.hash_bits + w - 1) / w), J.window = new a.Buf8(2 * J.w_size), J.head = new a.Buf16(J.hash_size), J.prev = new a.Buf16(J.w_size), J.lit_bufsize = 1 << k + 6, J.pending_buf_size = 4 * J.lit_bufsize, J.pending_buf = new a.Buf8(J.pending_buf_size), J.d_buf = 1 * J.lit_bufsize, J.l_buf = 3 * J.lit_bufsize, J.level =
|
|
33766
|
+
return (C.state = J).strm = C, J.wrap = ee, J.gzhead = null, J.w_bits = O, J.w_size = 1 << J.w_bits, J.w_mask = J.w_size - 1, J.hash_bits = k + 7, J.hash_size = 1 << J.hash_bits, J.hash_mask = J.hash_size - 1, J.hash_shift = ~~((J.hash_bits + w - 1) / w), J.window = new a.Buf8(2 * J.w_size), J.head = new a.Buf16(J.hash_size), J.prev = new a.Buf16(J.w_size), J.lit_bufsize = 1 << k + 6, J.pending_buf_size = 4 * J.lit_bufsize, J.pending_buf = new a.Buf8(J.pending_buf_size), J.d_buf = 1 * J.lit_bufsize, J.l_buf = 3 * J.lit_bufsize, J.level = I, J.strategy = F, J.method = W, $e(C);
|
|
33767
33767
|
}
|
|
33768
|
-
r = [new be(0, 0, 0, 0, function(C,
|
|
33768
|
+
r = [new be(0, 0, 0, 0, function(C, I) {
|
|
33769
33769
|
var W = 65535;
|
|
33770
33770
|
for (W > C.pending_buf_size - 5 && (W = C.pending_buf_size - 5); ; ) {
|
|
33771
33771
|
if (C.lookahead <= 1) {
|
|
33772
|
-
if (se(C), C.lookahead === 0 &&
|
|
33772
|
+
if (se(C), C.lookahead === 0 && I === d) return S;
|
|
33773
33773
|
if (C.lookahead === 0) break;
|
|
33774
33774
|
}
|
|
33775
33775
|
C.strstart += C.lookahead, C.lookahead = 0;
|
|
33776
33776
|
var O = C.block_start + W;
|
|
33777
|
-
if ((C.strstart === 0 || C.strstart >= O) && (C.lookahead = C.strstart - O, C.strstart = O, $(C, !1), C.strm.avail_out === 0) || C.strstart - C.block_start >= C.w_size -
|
|
33777
|
+
if ((C.strstart === 0 || C.strstart >= O) && (C.lookahead = C.strstart - O, C.strstart = O, $(C, !1), C.strm.avail_out === 0) || C.strstart - C.block_start >= C.w_size - D && ($(C, !1), C.strm.avail_out === 0)) return S;
|
|
33778
33778
|
}
|
|
33779
|
-
return C.insert = 0,
|
|
33780
|
-
}), new be(4, 4, 8, 4, ce), new be(4, 5, 16, 8, ce), new be(4, 6, 32, 32, ce), new be(4, 4, 16, 16, me), new be(8, 16, 32, 32, me), new be(8, 16, 128, 128, me), new be(8, 32, 128, 256, me), new be(32, 128, 258, 1024, me), new be(32, 258, 258, 4096, me)], i.deflateInit = function(C,
|
|
33781
|
-
return ke(C,
|
|
33782
|
-
}, i.deflateInit2 = ke, i.deflateReset = $e, i.deflateResetKeep = Be, i.deflateSetHeader = function(C,
|
|
33783
|
-
return C && C.state ? C.state.wrap !== 2 ? g : (C.state.gzhead =
|
|
33784
|
-
}, i.deflate = function(C,
|
|
33779
|
+
return C.insert = 0, I === p ? ($(C, !0), C.strm.avail_out === 0 ? H : G) : (C.strstart > C.block_start && ($(C, !1), C.strm.avail_out), S);
|
|
33780
|
+
}), new be(4, 4, 8, 4, ce), new be(4, 5, 16, 8, ce), new be(4, 6, 32, 32, ce), new be(4, 4, 16, 16, me), new be(8, 16, 32, 32, me), new be(8, 16, 128, 128, me), new be(8, 32, 128, 256, me), new be(32, 128, 258, 1024, me), new be(32, 258, 258, 4096, me)], i.deflateInit = function(C, I) {
|
|
33781
|
+
return ke(C, I, b, 15, 8, 0);
|
|
33782
|
+
}, i.deflateInit2 = ke, i.deflateReset = $e, i.deflateResetKeep = Be, i.deflateSetHeader = function(C, I) {
|
|
33783
|
+
return C && C.state ? C.state.wrap !== 2 ? g : (C.state.gzhead = I, u) : g;
|
|
33784
|
+
}, i.deflate = function(C, I) {
|
|
33785
33785
|
var W, O, k, F;
|
|
33786
|
-
if (!C || !C.state || 5 <
|
|
33787
|
-
if (O = C.state, !C.output || !C.input && C.avail_in !== 0 || O.status === 666 &&
|
|
33788
|
-
if (O.strm = C, W = O.last_flush, O.last_flush =
|
|
33786
|
+
if (!C || !C.state || 5 < I || I < 0) return C ? Z(C, g) : g;
|
|
33787
|
+
if (O = C.state, !C.output || !C.input && C.avail_in !== 0 || O.status === 666 && I !== p) return Z(C, C.avail_out === 0 ? -5 : g);
|
|
33788
|
+
if (O.strm = C, W = O.last_flush, O.last_flush = I, O.status === A) if (O.wrap === 2) C.adler = 0, ue(O, 31), ue(O, 139), ue(O, 8), O.gzhead ? (ue(O, (O.gzhead.text ? 1 : 0) + (O.gzhead.hcrc ? 2 : 0) + (O.gzhead.extra ? 4 : 0) + (O.gzhead.name ? 8 : 0) + (O.gzhead.comment ? 16 : 0)), ue(O, 255 & O.gzhead.time), ue(O, O.gzhead.time >> 8 & 255), ue(O, O.gzhead.time >> 16 & 255), ue(O, O.gzhead.time >> 24 & 255), ue(O, O.level === 9 ? 2 : 2 <= O.strategy || O.level < 2 ? 4 : 0), ue(O, 255 & O.gzhead.os), O.gzhead.extra && O.gzhead.extra.length && (ue(O, 255 & O.gzhead.extra.length), ue(O, O.gzhead.extra.length >> 8 & 255)), O.gzhead.hcrc && (C.adler = c(C.adler, O.pending_buf, O.pending, 0)), O.gzindex = 0, O.status = 69) : (ue(O, 0), ue(O, 0), ue(O, 0), ue(O, 0), ue(O, 0), ue(O, O.level === 9 ? 2 : 2 <= O.strategy || O.level < 2 ? 4 : 0), ue(O, 3), O.status = B);
|
|
33789
33789
|
else {
|
|
33790
33790
|
var ee = b + (O.w_bits - 8 << 4) << 8;
|
|
33791
33791
|
ee |= (2 <= O.strategy || O.level < 2 ? 0 : O.level < 6 ? 1 : O.level === 6 ? 2 : 3) << 6, O.strstart !== 0 && (ee |= 32), ee += 31 - ee % 31, O.status = B, pe(O, ee), O.strstart !== 0 && (pe(O, C.adler >>> 16), pe(O, 65535 & C.adler)), C.adler = 1;
|
|
@@ -33818,9 +33818,9 @@ function V_() {
|
|
|
33818
33818
|
} else O.status = 103;
|
|
33819
33819
|
if (O.status === 103 && (O.gzhead.hcrc ? (O.pending + 2 > O.pending_buf_size && X(C), O.pending + 2 <= O.pending_buf_size && (ue(O, 255 & C.adler), ue(O, C.adler >> 8 & 255), C.adler = 0, O.status = B)) : O.status = B), O.pending !== 0) {
|
|
33820
33820
|
if (X(C), C.avail_out === 0) return O.last_flush = -1, u;
|
|
33821
|
-
} else if (C.avail_in === 0 && j(
|
|
33821
|
+
} else if (C.avail_in === 0 && j(I) <= j(W) && I !== p) return Z(C, -5);
|
|
33822
33822
|
if (O.status === 666 && C.avail_in !== 0) return Z(C, -5);
|
|
33823
|
-
if (C.avail_in !== 0 || O.lookahead !== 0 ||
|
|
33823
|
+
if (C.avail_in !== 0 || O.lookahead !== 0 || I !== d && O.status !== 666) {
|
|
33824
33824
|
var J = O.strategy === 2 ? (function(q, N) {
|
|
33825
33825
|
for (var L; ; ) {
|
|
33826
33826
|
if (q.lookahead === 0 && (se(q), q.lookahead === 0)) {
|
|
@@ -33830,7 +33830,7 @@ function V_() {
|
|
|
33830
33830
|
if (q.match_length = 0, L = o._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++, L && ($(q, !1), q.strm.avail_out === 0)) return S;
|
|
33831
33831
|
}
|
|
33832
33832
|
return q.insert = 0, N === p ? ($(q, !0), q.strm.avail_out === 0 ? H : G) : q.last_lit && ($(q, !1), q.strm.avail_out === 0) ? S : U;
|
|
33833
|
-
})(O,
|
|
33833
|
+
})(O, I) : O.strategy === 3 ? (function(q, N) {
|
|
33834
33834
|
for (var L, V, K, le, te = q.window; ; ) {
|
|
33835
33835
|
if (q.lookahead <= E) {
|
|
33836
33836
|
if (se(q), q.lookahead <= E && N === d) return S;
|
|
@@ -33846,18 +33846,18 @@ function V_() {
|
|
|
33846
33846
|
if (q.match_length >= w ? (L = o._tr_tally(q, 1, q.match_length - w), q.lookahead -= q.match_length, q.strstart += q.match_length, q.match_length = 0) : (L = o._tr_tally(q, 0, q.window[q.strstart]), q.lookahead--, q.strstart++), L && ($(q, !1), q.strm.avail_out === 0)) return S;
|
|
33847
33847
|
}
|
|
33848
33848
|
return q.insert = 0, N === p ? ($(q, !0), q.strm.avail_out === 0 ? H : G) : q.last_lit && ($(q, !1), q.strm.avail_out === 0) ? S : U;
|
|
33849
|
-
})(O,
|
|
33849
|
+
})(O, I) : r[O.level].func(O, I);
|
|
33850
33850
|
if (J !== H && J !== G || (O.status = 666), J === S || J === H) return C.avail_out === 0 && (O.last_flush = -1), u;
|
|
33851
|
-
if (J === U && (
|
|
33851
|
+
if (J === U && (I === 1 ? o._tr_align(O) : I !== 5 && (o._tr_stored_block(O, 0, 0, !1), I === 3 && (ie(O.head), O.lookahead === 0 && (O.strstart = 0, O.block_start = 0, O.insert = 0))), X(C), C.avail_out === 0)) return O.last_flush = -1, u;
|
|
33852
33852
|
}
|
|
33853
|
-
return
|
|
33853
|
+
return I !== p ? u : O.wrap <= 0 ? 1 : (O.wrap === 2 ? (ue(O, 255 & C.adler), ue(O, C.adler >> 8 & 255), ue(O, C.adler >> 16 & 255), ue(O, C.adler >> 24 & 255), ue(O, 255 & C.total_in), ue(O, C.total_in >> 8 & 255), ue(O, C.total_in >> 16 & 255), ue(O, C.total_in >> 24 & 255)) : (pe(O, C.adler >>> 16), pe(O, 65535 & C.adler)), X(C), 0 < O.wrap && (O.wrap = -O.wrap), O.pending !== 0 ? u : 1);
|
|
33854
33854
|
}, i.deflateEnd = function(C) {
|
|
33855
|
-
var
|
|
33856
|
-
return C && C.state ? (
|
|
33857
|
-
}, i.deflateSetDictionary = function(C,
|
|
33858
|
-
var W, O, k, F, ee, J, q, N, L =
|
|
33855
|
+
var I;
|
|
33856
|
+
return C && C.state ? (I = C.state.status) !== A && I !== 69 && I !== 73 && I !== 91 && I !== 103 && I !== B && I !== 666 ? Z(C, g) : (C.state = null, I === B ? Z(C, -3) : u) : g;
|
|
33857
|
+
}, i.deflateSetDictionary = function(C, I) {
|
|
33858
|
+
var W, O, k, F, ee, J, q, N, L = I.length;
|
|
33859
33859
|
if (!C || !C.state || (F = (W = C.state).wrap) === 2 || F === 1 && W.status !== A || W.lookahead) return g;
|
|
33860
|
-
for (F === 1 && (C.adler = l(C.adler,
|
|
33860
|
+
for (F === 1 && (C.adler = l(C.adler, I, L, 0)), W.wrap = 0, L >= W.w_size && (F === 0 && (ie(W.head), W.strstart = 0, W.block_start = 0, W.insert = 0), N = new a.Buf8(W.w_size), a.arraySet(N, I, L - W.w_size, W.w_size, 0), I = N, L = W.w_size), ee = C.avail_in, J = C.next_in, q = C.input, C.avail_in = L, C.next_in = 0, C.input = I, se(W); W.lookahead >= w; ) {
|
|
33861
33861
|
for (O = W.strstart, k = W.lookahead - (w - 1); W.ins_h = (W.ins_h << W.hash_shift ^ W.window[O + w - 1]) & W.hash_mask, W.prev[O & W.w_mask] = W.head[W.ins_h], W.head[W.ins_h] = O, O++, --k; ) ;
|
|
33862
33862
|
W.strstart = O, W.lookahead = w - 1, se(W);
|
|
33863
33863
|
}
|
|
@@ -33869,7 +33869,7 @@ function V_() {
|
|
|
33869
33869
|
};
|
|
33870
33870
|
}, {}], 48: [function(t, n, i) {
|
|
33871
33871
|
n.exports = function(r, a) {
|
|
33872
|
-
var o, l, c, h, d, p, u, g, f, x, m, b, v, y, _, M, T, R, w, E,
|
|
33872
|
+
var o, l, c, h, d, p, u, g, f, x, m, b, v, y, _, M, T, R, w, E, D, A, B, S, U;
|
|
33873
33873
|
o = r.state, l = r.next_in, S = r.input, c = l + (r.avail_in - 5), h = r.next_out, U = r.output, d = h - (a - r.avail_out), p = h + (r.avail_out - 257), u = o.dmax, g = o.wsize, f = o.whave, x = o.wnext, m = o.window, b = o.hold, v = o.bits, y = o.lencode, _ = o.distcode, M = (1 << o.lenbits) - 1, T = (1 << o.distbits) - 1;
|
|
33874
33874
|
e: do {
|
|
33875
33875
|
v < 15 && (b += S[l++] << v, v += 8, b += S[l++] << v, v += 8), R = y[b & M];
|
|
@@ -33898,36 +33898,36 @@ function V_() {
|
|
|
33898
33898
|
r.msg = "invalid distance code", o.mode = 30;
|
|
33899
33899
|
break e;
|
|
33900
33900
|
}
|
|
33901
|
-
if (
|
|
33901
|
+
if (D = 65535 & R, v < (w &= 15) && (b += S[l++] << v, (v += 8) < w && (b += S[l++] << v, v += 8)), u < (D += b & (1 << w) - 1)) {
|
|
33902
33902
|
r.msg = "invalid distance too far back", o.mode = 30;
|
|
33903
33903
|
break e;
|
|
33904
33904
|
}
|
|
33905
|
-
if (b >>>= w, v -= w, (w = h - d) <
|
|
33906
|
-
if (f < (w =
|
|
33905
|
+
if (b >>>= w, v -= w, (w = h - d) < D) {
|
|
33906
|
+
if (f < (w = D - w) && o.sane) {
|
|
33907
33907
|
r.msg = "invalid distance too far back", o.mode = 30;
|
|
33908
33908
|
break e;
|
|
33909
33909
|
}
|
|
33910
33910
|
if (B = m, (A = 0) === x) {
|
|
33911
33911
|
if (A += g - w, w < E) {
|
|
33912
33912
|
for (E -= w; U[h++] = m[A++], --w; ) ;
|
|
33913
|
-
A = h -
|
|
33913
|
+
A = h - D, B = U;
|
|
33914
33914
|
}
|
|
33915
33915
|
} else if (x < w) {
|
|
33916
33916
|
if (A += g + x - w, (w -= x) < E) {
|
|
33917
33917
|
for (E -= w; U[h++] = m[A++], --w; ) ;
|
|
33918
33918
|
if (A = 0, x < E) {
|
|
33919
33919
|
for (E -= w = x; U[h++] = m[A++], --w; ) ;
|
|
33920
|
-
A = h -
|
|
33920
|
+
A = h - D, B = U;
|
|
33921
33921
|
}
|
|
33922
33922
|
}
|
|
33923
33923
|
} else if (A += x - w, w < E) {
|
|
33924
33924
|
for (E -= w; U[h++] = m[A++], --w; ) ;
|
|
33925
|
-
A = h -
|
|
33925
|
+
A = h - D, B = U;
|
|
33926
33926
|
}
|
|
33927
33927
|
for (; 2 < E; ) U[h++] = B[A++], U[h++] = B[A++], U[h++] = B[A++], E -= 3;
|
|
33928
33928
|
E && (U[h++] = B[A++], 1 < E && (U[h++] = B[A++]));
|
|
33929
33929
|
} else {
|
|
33930
|
-
for (A = h -
|
|
33930
|
+
for (A = h - D; U[h++] = U[A++], U[h++] = U[A++], U[h++] = U[A++], 2 < (E -= 3); ) ;
|
|
33931
33931
|
E && (U[h++] = U[A++], 1 < E && (U[h++] = U[A++]));
|
|
33932
33932
|
}
|
|
33933
33933
|
break;
|
|
@@ -33975,16 +33975,16 @@ function V_() {
|
|
|
33975
33975
|
}
|
|
33976
33976
|
A.lencode = T, A.lenbits = 9, A.distcode = R, A.distbits = 5;
|
|
33977
33977
|
}
|
|
33978
|
-
function
|
|
33978
|
+
function D(A, B, S, U) {
|
|
33979
33979
|
var H, G = A.state;
|
|
33980
33980
|
return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new r.Buf8(G.wsize)), U >= G.wsize ? (r.arraySet(G.window, B, S - G.wsize, G.wsize, 0), G.wnext = 0, G.whave = G.wsize) : (U < (H = G.wsize - G.wnext) && (H = U), r.arraySet(G.window, B, S - U, H, G.wnext), (U -= H) ? (r.arraySet(G.window, B, S - U, U, 0), G.wnext = U, G.whave = G.wsize) : (G.wnext += H, G.wnext === G.wsize && (G.wnext = 0), G.whave < G.wsize && (G.whave += H))), 0;
|
|
33981
33981
|
}
|
|
33982
33982
|
i.inflateReset = y, i.inflateReset2 = _, i.inflateResetKeep = v, i.inflateInit = function(A) {
|
|
33983
33983
|
return M(A, 15);
|
|
33984
33984
|
}, i.inflateInit2 = M, i.inflate = function(A, B) {
|
|
33985
|
-
var S, U, H, G, Z, j, ie, X, $, ue, pe, fe, se, ce, me, be, Se, Be, $e, ke, C,
|
|
33985
|
+
var S, U, H, G, Z, j, ie, X, $, ue, pe, fe, se, ce, me, be, Se, Be, $e, ke, C, I, W, O, k = 0, F = new r.Buf8(4), ee = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
33986
33986
|
if (!A || !A.state || !A.output || !A.input && A.avail_in !== 0) return u;
|
|
33987
|
-
(S = A.state).mode === 12 && (S.mode = 13), Z = A.next_out, H = A.output, ie = A.avail_out, G = A.next_in, U = A.input, j = A.avail_in, X = S.hold, $ = S.bits, ue = j, pe = ie,
|
|
33987
|
+
(S = A.state).mode === 12 && (S.mode = 13), Z = A.next_out, H = A.output, ie = A.avail_out, G = A.next_in, U = A.input, j = A.avail_in, X = S.hold, $ = S.bits, ue = j, pe = ie, I = p;
|
|
33988
33988
|
e: for (; ; ) switch (S.mode) {
|
|
33989
33989
|
case g:
|
|
33990
33990
|
if (S.wrap === 0) {
|
|
@@ -34155,7 +34155,7 @@ function V_() {
|
|
|
34155
34155
|
S.lens[ee[S.have++]] = 7 & X, X >>>= 3, $ -= 3;
|
|
34156
34156
|
}
|
|
34157
34157
|
for (; S.have < 19; ) S.lens[ee[S.have++]] = 0;
|
|
34158
|
-
if (S.lencode = S.lendyn, S.lenbits = 7, W = { bits: S.lenbits },
|
|
34158
|
+
if (S.lencode = S.lendyn, S.lenbits = 7, W = { bits: S.lenbits }, I = c(0, S.lens, 0, 19, S.lencode, 0, S.work, W), S.lenbits = W.bits, I) {
|
|
34159
34159
|
A.msg = "invalid code lengths set", S.mode = 30;
|
|
34160
34160
|
break;
|
|
34161
34161
|
}
|
|
@@ -34203,11 +34203,11 @@ function V_() {
|
|
|
34203
34203
|
A.msg = "invalid code -- missing end-of-block", S.mode = 30;
|
|
34204
34204
|
break;
|
|
34205
34205
|
}
|
|
34206
|
-
if (S.lenbits = 9, W = { bits: S.lenbits },
|
|
34206
|
+
if (S.lenbits = 9, W = { bits: S.lenbits }, I = c(h, S.lens, 0, S.nlen, S.lencode, 0, S.work, W), S.lenbits = W.bits, I) {
|
|
34207
34207
|
A.msg = "invalid literal/lengths set", S.mode = 30;
|
|
34208
34208
|
break;
|
|
34209
34209
|
}
|
|
34210
|
-
if (S.distbits = 6, S.distcode = S.distdyn, W = { bits: S.distbits },
|
|
34210
|
+
if (S.distbits = 6, S.distcode = S.distdyn, W = { bits: S.distbits }, I = c(d, S.lens, S.nlen, S.ndist, S.distcode, 0, S.work, W), S.distbits = W.bits, I) {
|
|
34211
34211
|
A.msg = "invalid distances set", S.mode = 30;
|
|
34212
34212
|
break;
|
|
34213
34213
|
}
|
|
@@ -34325,10 +34325,10 @@ function V_() {
|
|
|
34325
34325
|
}
|
|
34326
34326
|
S.mode = 29;
|
|
34327
34327
|
case 29:
|
|
34328
|
-
|
|
34328
|
+
I = 1;
|
|
34329
34329
|
break e;
|
|
34330
34330
|
case 30:
|
|
34331
|
-
|
|
34331
|
+
I = -3;
|
|
34332
34332
|
break e;
|
|
34333
34333
|
case 31:
|
|
34334
34334
|
return -4;
|
|
@@ -34336,7 +34336,7 @@ function V_() {
|
|
|
34336
34336
|
default:
|
|
34337
34337
|
return u;
|
|
34338
34338
|
}
|
|
34339
|
-
return A.next_out = Z, A.avail_out = ie, A.next_in = G, A.avail_in = j, S.hold = X, S.bits = $, (S.wsize || pe !== A.avail_out && S.mode < 30 && (S.mode < 27 || B !== 4)) &&
|
|
34339
|
+
return A.next_out = Z, A.avail_out = ie, A.next_in = G, A.avail_in = j, S.hold = X, S.bits = $, (S.wsize || pe !== A.avail_out && S.mode < 30 && (S.mode < 27 || B !== 4)) && D(A, A.output, A.next_out, pe - A.avail_out) ? (S.mode = 31, -4) : (ue -= A.avail_in, pe -= A.avail_out, A.total_in += ue, A.total_out += pe, S.total += pe, S.wrap && pe && (A.adler = S.check = S.flags ? o(S.check, H, pe, A.next_out - pe) : a(S.check, H, pe, A.next_out - pe)), A.data_type = S.bits + (S.last ? 64 : 0) + (S.mode === 12 ? 128 : 0) + (S.mode === 20 || S.mode === 15 ? 256 : 0), (ue == 0 && pe === 0 || B === 4) && I === p && (I = -5), I);
|
|
34340
34340
|
}, i.inflateEnd = function(A) {
|
|
34341
34341
|
if (!A || !A.state) return u;
|
|
34342
34342
|
var B = A.state;
|
|
@@ -34346,15 +34346,15 @@ function V_() {
|
|
|
34346
34346
|
return A && A.state ? (2 & (S = A.state).wrap) == 0 ? u : ((S.head = B).done = !1, p) : u;
|
|
34347
34347
|
}, i.inflateSetDictionary = function(A, B) {
|
|
34348
34348
|
var S, U = B.length;
|
|
34349
|
-
return A && A.state ? (S = A.state).wrap !== 0 && S.mode !== 11 ? u : S.mode === 11 && a(1, B, U, 0) !== S.check ? -3 :
|
|
34349
|
+
return A && A.state ? (S = A.state).wrap !== 0 && S.mode !== 11 ? u : S.mode === 11 && a(1, B, U, 0) !== S.check ? -3 : D(A, B, U, U) ? (S.mode = 31, -4) : (S.havedict = 1, p) : u;
|
|
34350
34350
|
}, i.inflateInfo = "pako inflate (from Nodeca project)";
|
|
34351
34351
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, n, i) {
|
|
34352
34352
|
var r = t("../utils/common"), a = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], l = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], c = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
34353
34353
|
n.exports = function(h, d, p, u, g, f, x, m) {
|
|
34354
|
-
var b, v, y, _, M, T, R, w, E,
|
|
34354
|
+
var b, v, y, _, M, T, R, w, E, D = m.bits, A = 0, B = 0, S = 0, U = 0, H = 0, G = 0, Z = 0, j = 0, ie = 0, X = 0, $ = null, ue = 0, pe = new r.Buf16(16), fe = new r.Buf16(16), se = null, ce = 0;
|
|
34355
34355
|
for (A = 0; A <= 15; A++) pe[A] = 0;
|
|
34356
34356
|
for (B = 0; B < u; B++) pe[d[p + B]]++;
|
|
34357
|
-
for (H =
|
|
34357
|
+
for (H = D, U = 15; 1 <= U && pe[U] === 0; U--) ;
|
|
34358
34358
|
if (U < H && (H = U), U === 0) return g[f++] = 20971520, g[f++] = 20971520, m.bits = 1, 0;
|
|
34359
34359
|
for (S = 1; S < U && pe[S] === 0; S++) ;
|
|
34360
34360
|
for (H < S && (H = S), A = j = 1; A <= 15; A++) if (j <<= 1, (j -= pe[A]) < 0) return -1;
|
|
@@ -34384,8 +34384,8 @@ function V_() {
|
|
|
34384
34384
|
function l(k) {
|
|
34385
34385
|
for (var F = k.length; 0 <= --F; ) k[F] = 0;
|
|
34386
34386
|
}
|
|
34387
|
-
var c = 0, h = 29, d = 256, p = d + 1 + h, u = 30, g = 19, f = 2 * p + 1, x = 15, m = 16, b = 7, v = 256, y = 16, _ = 17, M = 18, T = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], R = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], w = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], E = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15],
|
|
34388
|
-
l(
|
|
34387
|
+
var c = 0, h = 29, d = 256, p = d + 1 + h, u = 30, g = 19, f = 2 * p + 1, x = 15, m = 16, b = 7, v = 256, y = 16, _ = 17, M = 18, T = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], R = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], w = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], E = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], D = new Array(2 * (p + 2));
|
|
34388
|
+
l(D);
|
|
34389
34389
|
var A = new Array(2 * u);
|
|
34390
34390
|
l(A);
|
|
34391
34391
|
var B = new Array(512);
|
|
@@ -34455,7 +34455,7 @@ function V_() {
|
|
|
34455
34455
|
for (F.max_code = le, ee = k.heap_len >> 1; 1 <= ee; ee--) Be(k, N, ee);
|
|
34456
34456
|
for (q = K; ee = k.heap[1], k.heap[1] = k.heap[k.heap_len--], Be(k, N, 1), J = k.heap[1], k.heap[--k.heap_max] = ee, k.heap[--k.heap_max] = J, N[2 * q] = N[2 * ee] + N[2 * J], k.depth[q] = (k.depth[ee] >= k.depth[J] ? k.depth[ee] : k.depth[J]) + 1, N[2 * ee + 1] = N[2 * J + 1] = q, k.heap[1] = q++, Be(k, N, 1), 2 <= k.heap_len; ) ;
|
|
34457
34457
|
k.heap[--k.heap_max] = k.heap[1], (function(te, Te) {
|
|
34458
|
-
var ye, Re,
|
|
34458
|
+
var ye, Re, Ie, de, _e, Ve, Ue = Te.dyn_tree, Ae = Te.max_code, Ge = Te.stat_desc.static_tree, Y = Te.stat_desc.has_stree, Ce = Te.stat_desc.extra_bits, Me = Te.stat_desc.extra_base, we = Te.stat_desc.max_length, ve = 0;
|
|
34459
34459
|
for (de = 0; de <= x; de++) te.bl_count[de] = 0;
|
|
34460
34460
|
for (Ue[2 * te.heap[te.heap_max] + 1] = 0, ye = te.heap_max + 1; ye < f; ye++) we < (de = Ue[2 * Ue[2 * (Re = te.heap[ye]) + 1] + 1] + 1) && (de = we, ve++), Ue[2 * Re + 1] = de, Ae < Re || (te.bl_count[de]++, _e = 0, Me <= Re && (_e = Ce[Re - Me]), Ve = Ue[2 * Re], te.opt_len += Ve * (de + _e), Y && (te.static_len += Ve * (Ge[2 * Re + 1] + _e)));
|
|
34461
34461
|
if (ve !== 0) {
|
|
@@ -34463,7 +34463,7 @@ function V_() {
|
|
|
34463
34463
|
for (de = we - 1; te.bl_count[de] === 0; ) de--;
|
|
34464
34464
|
te.bl_count[de]--, te.bl_count[de + 1] += 2, te.bl_count[we]--, ve -= 2;
|
|
34465
34465
|
} while (0 < ve);
|
|
34466
|
-
for (de = we; de !== 0; de--) for (Re = te.bl_count[de]; Re !== 0; ) Ae < (
|
|
34466
|
+
for (de = we; de !== 0; de--) for (Re = te.bl_count[de]; Re !== 0; ) Ae < (Ie = te.heap[--ye]) || (Ue[2 * Ie + 1] !== de && (te.opt_len += (de - Ue[2 * Ie + 1]) * Ue[2 * Ie], Ue[2 * Ie + 1] = de), Re--);
|
|
34467
34467
|
}
|
|
34468
34468
|
})(k, F), ce(N, le, k.bl_count);
|
|
34469
34469
|
}
|
|
@@ -34471,7 +34471,7 @@ function V_() {
|
|
|
34471
34471
|
var J, q, N = -1, L = F[1], V = 0, K = 7, le = 4;
|
|
34472
34472
|
for (L === 0 && (K = 138, le = 3), F[2 * (ee + 1) + 1] = 65535, J = 0; J <= ee; J++) q = L, L = F[2 * (J + 1) + 1], ++V < K && q === L || (V < le ? k.bl_tree[2 * q] += V : q !== 0 ? (q !== N && k.bl_tree[2 * q]++, k.bl_tree[2 * y]++) : V <= 10 ? k.bl_tree[2 * _]++ : k.bl_tree[2 * M]++, N = q, le = (V = 0) === L ? (K = 138, 3) : q === L ? (K = 6, 3) : (K = 7, 4));
|
|
34473
34473
|
}
|
|
34474
|
-
function
|
|
34474
|
+
function I(k, F, ee) {
|
|
34475
34475
|
var J, q, N = -1, L = F[1], V = 0, K = 7, le = 4;
|
|
34476
34476
|
for (L === 0 && (K = 138, le = 3), J = 0; J <= ee; J++) if (q = L, L = F[2 * (J + 1) + 1], !(++V < K && q === L)) {
|
|
34477
34477
|
if (V < le) for (; fe(k, q, k.bl_tree), --V != 0; ) ;
|
|
@@ -34493,12 +34493,12 @@ function V_() {
|
|
|
34493
34493
|
for (S[J - 1] = q, q = N = 0; q < 16; q++) for (j[q] = N, F = 0; F < 1 << R[q]; F++) B[N++] = q;
|
|
34494
34494
|
for (N >>= 7; q < u; q++) for (j[q] = N << 7, F = 0; F < 1 << R[q] - 7; F++) B[256 + N++] = q;
|
|
34495
34495
|
for (ee = 0; ee <= x; ee++) L[ee] = 0;
|
|
34496
|
-
for (F = 0; F <= 143; )
|
|
34497
|
-
for (; F <= 255; )
|
|
34498
|
-
for (; F <= 279; )
|
|
34499
|
-
for (; F <= 287; )
|
|
34500
|
-
for (ce(
|
|
34501
|
-
H = new ie(
|
|
34496
|
+
for (F = 0; F <= 143; ) D[2 * F + 1] = 8, F++, L[8]++;
|
|
34497
|
+
for (; F <= 255; ) D[2 * F + 1] = 9, F++, L[9]++;
|
|
34498
|
+
for (; F <= 279; ) D[2 * F + 1] = 7, F++, L[7]++;
|
|
34499
|
+
for (; F <= 287; ) D[2 * F + 1] = 8, F++, L[8]++;
|
|
34500
|
+
for (ce(D, p + 1, L), F = 0; F < u; F++) A[2 * F + 1] = 5, A[2 * F] = se(F, 5);
|
|
34501
|
+
H = new ie(D, T, d + 1, p, x), G = new ie(A, R, 0, u, x), Z = new ie(new Array(0), w, 0, g, b);
|
|
34502
34502
|
})(), W = !0), k.l_desc = new X(k.dyn_ltree, H), k.d_desc = new X(k.dyn_dtree, G), k.bl_desc = new X(k.bl_tree, Z), k.bi_buf = 0, k.bi_valid = 0, me(k);
|
|
34503
34503
|
}, i._tr_stored_block = O, i._tr_flush_block = function(k, F, ee, J) {
|
|
34504
34504
|
var q, N, L = 0;
|
|
@@ -34512,15 +34512,15 @@ function V_() {
|
|
|
34512
34512
|
var K;
|
|
34513
34513
|
for (C(V, V.dyn_ltree, V.l_desc.max_code), C(V, V.dyn_dtree, V.d_desc.max_code), ke(V, V.bl_desc), K = g - 1; 3 <= K && V.bl_tree[2 * E[K] + 1] === 0; K--) ;
|
|
34514
34514
|
return V.opt_len += 3 * (K + 1) + 5 + 5 + 4, K;
|
|
34515
|
-
})(k), q = k.opt_len + 3 + 7 >>> 3, (N = k.static_len + 3 + 7 >>> 3) <= q && (q = N)) : q = N = ee + 5, ee + 4 <= q && F !== -1 ? O(k, F, ee, J) : k.strategy === 4 || N === q ? (pe(k, 2 + (J ? 1 : 0), 3), $e(k,
|
|
34515
|
+
})(k), q = k.opt_len + 3 + 7 >>> 3, (N = k.static_len + 3 + 7 >>> 3) <= q && (q = N)) : q = N = ee + 5, ee + 4 <= q && F !== -1 ? O(k, F, ee, J) : k.strategy === 4 || N === q ? (pe(k, 2 + (J ? 1 : 0), 3), $e(k, D, A)) : (pe(k, 4 + (J ? 1 : 0), 3), (function(V, K, le, te) {
|
|
34516
34516
|
var Te;
|
|
34517
34517
|
for (pe(V, K - 257, 5), pe(V, le - 1, 5), pe(V, te - 4, 4), Te = 0; Te < te; Te++) pe(V, V.bl_tree[2 * E[Te] + 1], 3);
|
|
34518
|
-
|
|
34518
|
+
I(V, V.dyn_ltree, K - 1), I(V, V.dyn_dtree, le - 1);
|
|
34519
34519
|
})(k, k.l_desc.max_code + 1, k.d_desc.max_code + 1, L + 1), $e(k, k.dyn_ltree, k.dyn_dtree)), me(k), J && be(k);
|
|
34520
34520
|
}, i._tr_tally = function(k, F, ee) {
|
|
34521
34521
|
return k.pending_buf[k.d_buf + 2 * k.last_lit] = F >>> 8 & 255, k.pending_buf[k.d_buf + 2 * k.last_lit + 1] = 255 & F, k.pending_buf[k.l_buf + k.last_lit] = 255 & ee, k.last_lit++, F === 0 ? k.dyn_ltree[2 * ee]++ : (k.matches++, F--, k.dyn_ltree[2 * (S[ee] + d + 1)]++, k.dyn_dtree[2 * $(F)]++), k.last_lit === k.lit_bufsize - 1;
|
|
34522
34522
|
}, i._tr_align = function(k) {
|
|
34523
|
-
pe(k, 2, 3), fe(k, v,
|
|
34523
|
+
pe(k, 2, 3), fe(k, v, D), (function(F) {
|
|
34524
34524
|
F.bi_valid === 16 ? (ue(F, F.bi_buf), F.bi_buf = 0, F.bi_valid = 0) : 8 <= F.bi_valid && (F.pending_buf[F.pending++] = 255 & F.bi_buf, F.bi_buf >>= 8, F.bi_valid -= 8);
|
|
34525
34525
|
})(k);
|
|
34526
34526
|
};
|
|
@@ -34872,7 +34872,7 @@ re.inherits(Je, Error, {
|
|
|
34872
34872
|
};
|
|
34873
34873
|
}
|
|
34874
34874
|
});
|
|
34875
|
-
const
|
|
34875
|
+
const D0 = Je.prototype, I0 = {};
|
|
34876
34876
|
[
|
|
34877
34877
|
"ERR_BAD_OPTION_VALUE",
|
|
34878
34878
|
"ERR_BAD_OPTION",
|
|
@@ -34888,12 +34888,12 @@ const I0 = Je.prototype, D0 = {};
|
|
|
34888
34888
|
"ERR_INVALID_URL"
|
|
34889
34889
|
// eslint-disable-next-line func-names
|
|
34890
34890
|
].forEach((s) => {
|
|
34891
|
-
|
|
34891
|
+
I0[s] = { value: s };
|
|
34892
34892
|
});
|
|
34893
|
-
Object.defineProperties(Je,
|
|
34894
|
-
Object.defineProperty(
|
|
34893
|
+
Object.defineProperties(Je, I0);
|
|
34894
|
+
Object.defineProperty(D0, "isAxiosError", { value: !0 });
|
|
34895
34895
|
Je.from = (s, e, t, n, i, r) => {
|
|
34896
|
-
const a = Object.create(
|
|
34896
|
+
const a = Object.create(D0);
|
|
34897
34897
|
re.toFlatObject(s, a, function(c) {
|
|
34898
34898
|
return c !== Error.prototype;
|
|
34899
34899
|
}, (c) => c !== "isAxiosError");
|
|
@@ -35010,13 +35010,13 @@ B0.toString = function(s) {
|
|
|
35010
35010
|
return e(t[0]) + "=" + e(t[1]);
|
|
35011
35011
|
}, "").join("&");
|
|
35012
35012
|
};
|
|
35013
|
-
function
|
|
35013
|
+
function DM(s) {
|
|
35014
35014
|
return encodeURIComponent(s).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
35015
35015
|
}
|
|
35016
35016
|
function k0(s, e, t) {
|
|
35017
35017
|
if (!e)
|
|
35018
35018
|
return s;
|
|
35019
|
-
const n = t && t.encode ||
|
|
35019
|
+
const n = t && t.encode || DM;
|
|
35020
35020
|
re.isFunction(t) && (t = {
|
|
35021
35021
|
serialize: t
|
|
35022
35022
|
});
|
|
@@ -35086,10 +35086,10 @@ const U0 = {
|
|
|
35086
35086
|
silentJSONParsing: !0,
|
|
35087
35087
|
forcedJSONParsing: !0,
|
|
35088
35088
|
clarifyTimeoutError: !1
|
|
35089
|
-
},
|
|
35089
|
+
}, IM = typeof URLSearchParams < "u" ? URLSearchParams : hu, NM = typeof FormData < "u" ? FormData : null, BM = typeof Blob < "u" ? Blob : null, kM = {
|
|
35090
35090
|
isBrowser: !0,
|
|
35091
35091
|
classes: {
|
|
35092
|
-
URLSearchParams:
|
|
35092
|
+
URLSearchParams: IM,
|
|
35093
35093
|
FormData: NM,
|
|
35094
35094
|
Blob: BM
|
|
35095
35095
|
},
|
|
@@ -35840,7 +35840,7 @@ const V0 = (s) => {
|
|
|
35840
35840
|
headers: R,
|
|
35841
35841
|
withCredentials: w = "same-origin",
|
|
35842
35842
|
fetchOptions: E
|
|
35843
|
-
} = V0(g),
|
|
35843
|
+
} = V0(g), D = e || fetch;
|
|
35844
35844
|
T = T ? (T + "").toLowerCase() : "text";
|
|
35845
35845
|
let A = aw([b, v && v.toAbortSignal()], y), B = null;
|
|
35846
35846
|
const S = A && A.unsubscribe && (() => {
|
|
@@ -35873,7 +35873,7 @@ const V0 = (s) => {
|
|
|
35873
35873
|
credentials: H ? w : void 0
|
|
35874
35874
|
};
|
|
35875
35875
|
B = r && new t(f, G);
|
|
35876
|
-
let Z = await (r ?
|
|
35876
|
+
let Z = await (r ? D(B, E) : D(f, G));
|
|
35877
35877
|
const j = h && (T === "stream" || T === "response");
|
|
35878
35878
|
if (h && (_ || j && S)) {
|
|
35879
35879
|
const X = {};
|
|
@@ -36053,7 +36053,7 @@ const vl = {
|
|
|
36053
36053
|
assertOptions: mw,
|
|
36054
36054
|
validators: Kl
|
|
36055
36055
|
}, oi = vl.validators;
|
|
36056
|
-
let
|
|
36056
|
+
let Ds = class {
|
|
36057
36057
|
constructor(s) {
|
|
36058
36058
|
this.defaults = s || {}, this.interceptors = {
|
|
36059
36059
|
request: new lf(),
|
|
@@ -36154,7 +36154,7 @@ let Is = class {
|
|
|
36154
36154
|
}
|
|
36155
36155
|
};
|
|
36156
36156
|
re.forEach(["delete", "get", "head", "options"], function(s) {
|
|
36157
|
-
|
|
36157
|
+
Ds.prototype[s] = function(e, t) {
|
|
36158
36158
|
return this.request(Os(t || {}, {
|
|
36159
36159
|
method: s,
|
|
36160
36160
|
url: e,
|
|
@@ -36175,7 +36175,7 @@ re.forEach(["post", "put", "patch"], function(s) {
|
|
|
36175
36175
|
}));
|
|
36176
36176
|
};
|
|
36177
36177
|
}
|
|
36178
|
-
|
|
36178
|
+
Ds.prototype[s] = e(), Ds.prototype[s + "Form"] = e(!0);
|
|
36179
36179
|
});
|
|
36180
36180
|
let gw = class j0 {
|
|
36181
36181
|
constructor(e) {
|
|
@@ -36333,13 +36333,13 @@ Object.entries(yd).forEach(([s, e]) => {
|
|
|
36333
36333
|
yd[e] = s;
|
|
36334
36334
|
});
|
|
36335
36335
|
function q0(s) {
|
|
36336
|
-
const e = new
|
|
36337
|
-
return re.extend(t,
|
|
36336
|
+
const e = new Ds(s), t = S0(Ds.prototype.request, e);
|
|
36337
|
+
return re.extend(t, Ds.prototype, e, { allOwnKeys: !0 }), re.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
36338
36338
|
return q0(Os(s, n));
|
|
36339
36339
|
}, t;
|
|
36340
36340
|
}
|
|
36341
36341
|
const kt = q0(Xa);
|
|
36342
|
-
kt.Axios =
|
|
36342
|
+
kt.Axios = Ds;
|
|
36343
36343
|
kt.CanceledError = jr;
|
|
36344
36344
|
kt.CancelToken = gw;
|
|
36345
36345
|
kt.isCancel = z0;
|
|
@@ -36374,7 +36374,7 @@ const {
|
|
|
36374
36374
|
HttpStatusCode: P4,
|
|
36375
36375
|
formToJSON: R4,
|
|
36376
36376
|
getAdapter: L4,
|
|
36377
|
-
mergeConfig:
|
|
36377
|
+
mergeConfig: D4
|
|
36378
36378
|
} = kt;
|
|
36379
36379
|
function _f(s, e) {
|
|
36380
36380
|
var t;
|
|
@@ -36521,7 +36521,7 @@ class yw extends ds {
|
|
|
36521
36521
|
*/
|
|
36522
36522
|
parse(e, t, n = () => {
|
|
36523
36523
|
}) {
|
|
36524
|
-
this.decodeDracoFile(e, t, null, null,
|
|
36524
|
+
this.decodeDracoFile(e, t, null, null, Dt, n).catch(n);
|
|
36525
36525
|
}
|
|
36526
36526
|
//
|
|
36527
36527
|
decodeDracoFile(e, t, n, i, r = nn, a = () => {
|
|
@@ -36573,10 +36573,10 @@ class yw extends ds {
|
|
|
36573
36573
|
return t;
|
|
36574
36574
|
}
|
|
36575
36575
|
_assignVertexColorSpace(e, t) {
|
|
36576
|
-
if (t !==
|
|
36576
|
+
if (t !== Dt) return;
|
|
36577
36577
|
const n = new Fe();
|
|
36578
36578
|
for (let i = 0, r = e.count; i < r; i++)
|
|
36579
|
-
n.fromBufferAttribute(e, i), st.colorSpaceToWorking(n,
|
|
36579
|
+
n.fromBufferAttribute(e, i), st.colorSpaceToWorking(n, Dt), e.setXYZ(i, n.r, n.g, n.b);
|
|
36580
36580
|
}
|
|
36581
36581
|
_loadLibrary(e, t) {
|
|
36582
36582
|
const n = new Oa(this.manager);
|
|
@@ -36747,7 +36747,7 @@ function _w() {
|
|
|
36747
36747
|
}
|
|
36748
36748
|
var ss = /* @__PURE__ */ ((s) => (s.ModelLoadStart = "model-load-start", s.ModelLoadProgress = "model-load-progress", s.ModelLoaded = "model-loaded", s.ModelError = "model-error", s.SelectionChanged = "selection-changed", s.HoverChanged = "hover-changed", s.Click = "click", s.MouseMove = "mouse-move", s.CameraChanged = "camera-changed", s.CameraIdle = "camera-idle", s.ViewportResize = "viewport-resize", s.EngineFree = "engine-free", s.EngineBusy = "engine-busy", s.MeasureChanged = "measure-changed", s.SectionMove = "section-move", s))(ss || {});
|
|
36749
36749
|
function Mw(s, e, t, n) {
|
|
36750
|
-
let i = 0, r = 0, a = 0, o = s.models.find((u) => u.url == t), l = e.circularMeps, c = e.rectMeps
|
|
36750
|
+
let i = 0, r = 0, a = 0, o = s.models.find((u) => u.url == t), l = e.circularMeps, c = e.rectMeps?.filter((u) => u.type === "风管"), h = e.rectMeps?.filter((u) => u.type === "桥架"), d = e.ellipseMeps, p = s.scene;
|
|
36751
36751
|
if (new Vt(), new gt(), l && l.length) {
|
|
36752
36752
|
let u = [], g = 0;
|
|
36753
36753
|
for (let f of l)
|
|
@@ -36856,13 +36856,13 @@ function Fo(s, e, t, n, i) {
|
|
|
36856
36856
|
}
|
|
36857
36857
|
} else
|
|
36858
36858
|
v = (f.clone().sub(g.clone()).cross(new P(0, 0, 1)).y > 0 ? -1 : 1) * f.clone().sub(g.clone()).angleTo(new P(0, 0, 1)), b = (u.startPoint.Z > u.endPoint.Z ? 1 : -1) * f.clone().sub(g.clone()).angleTo(m.clone().sub(x.clone()));
|
|
36859
|
-
let _ = new
|
|
36859
|
+
let _ = new De();
|
|
36860
36860
|
const M = new Bn(b, v, y, "YXZ");
|
|
36861
36861
|
let T = _.clone().makeRotationFromEuler(M), R, w;
|
|
36862
36862
|
s === "Circle" ? (R = u.diameter, w = u.diameter) : (R = u.width, w = u.height);
|
|
36863
36863
|
let E = _.clone().makeScale(R, w, u.length);
|
|
36864
36864
|
_.multiplyMatrices(T, E), _.setPosition(u.position.x, u.position.y, u.position.z), r.setMatrixAt(h, _.clone()), r.setColorAt(h, u.color), r.geometry.computeBoundingBox();
|
|
36865
|
-
let
|
|
36865
|
+
let D = r.geometry.boundingBox.min.clone().applyMatrix4(_.clone()), A = r.geometry.boundingBox.max.clone().applyMatrix4(_.clone()), B = new P(Math.min(D.x, A.x), Math.min(D.y, A.y), Math.min(D.z, A.z)), S = new P(Math.max(D.x, A.x), Math.max(D.y, A.y), Math.max(D.z, A.z)), U = B.clone().add(S.clone()).multiplyScalar(0.5), H = {
|
|
36866
36866
|
name: u.name,
|
|
36867
36867
|
min: B,
|
|
36868
36868
|
max: S,
|
|
@@ -37069,10 +37069,10 @@ class ww extends ds {
|
|
|
37069
37069
|
return new Fw(t);
|
|
37070
37070
|
}), this.register(function(t) {
|
|
37071
37071
|
return new Lw(t);
|
|
37072
|
-
}), this.register(function(t) {
|
|
37073
|
-
return new Iw(t);
|
|
37074
37072
|
}), this.register(function(t) {
|
|
37075
37073
|
return new Dw(t);
|
|
37074
|
+
}), this.register(function(t) {
|
|
37075
|
+
return new Iw(t);
|
|
37076
37076
|
}), this.register(function(t) {
|
|
37077
37077
|
return new Nw(t);
|
|
37078
37078
|
}), this.register(function(t) {
|
|
@@ -37319,7 +37319,7 @@ class Ew {
|
|
|
37319
37319
|
const c = a.range !== void 0 ? a.range : 0;
|
|
37320
37320
|
switch (a.type) {
|
|
37321
37321
|
case "directional":
|
|
37322
|
-
o = new
|
|
37322
|
+
o = new Ii(l), o.target.position.set(0, 0, -1), o.add(o.target);
|
|
37323
37323
|
break;
|
|
37324
37324
|
case "point":
|
|
37325
37325
|
o = new lv(l), o.distance = c;
|
|
@@ -37359,7 +37359,7 @@ class Cw {
|
|
|
37359
37359
|
const a = r.baseColorFactor;
|
|
37360
37360
|
e.color.setRGB(a[0], a[1], a[2], nn), e.opacity = a[3];
|
|
37361
37361
|
}
|
|
37362
|
-
r.baseColorTexture !== void 0 && i.push(n.assignTexture(e, "map", r.baseColorTexture,
|
|
37362
|
+
r.baseColorTexture !== void 0 && i.push(n.assignTexture(e, "map", r.baseColorTexture, Dt));
|
|
37363
37363
|
}
|
|
37364
37364
|
return Promise.all(i);
|
|
37365
37365
|
}
|
|
@@ -37447,10 +37447,10 @@ class Lw {
|
|
|
37447
37447
|
const o = a.sheenColorFactor;
|
|
37448
37448
|
t.sheenColor.setRGB(o[0], o[1], o[2], nn);
|
|
37449
37449
|
}
|
|
37450
|
-
return a.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = a.sheenRoughnessFactor), a.sheenColorTexture !== void 0 && r.push(n.assignTexture(t, "sheenColorMap", a.sheenColorTexture,
|
|
37450
|
+
return a.sheenRoughnessFactor !== void 0 && (t.sheenRoughness = a.sheenRoughnessFactor), a.sheenColorTexture !== void 0 && r.push(n.assignTexture(t, "sheenColorMap", a.sheenColorTexture, Dt)), a.sheenRoughnessTexture !== void 0 && r.push(n.assignTexture(t, "sheenRoughnessMap", a.sheenRoughnessTexture)), Promise.all(r);
|
|
37451
37451
|
}
|
|
37452
37452
|
}
|
|
37453
|
-
class
|
|
37453
|
+
class Dw {
|
|
37454
37454
|
constructor(e) {
|
|
37455
37455
|
this.parser = e, this.name = nt.KHR_MATERIALS_TRANSMISSION;
|
|
37456
37456
|
}
|
|
@@ -37466,7 +37466,7 @@ class Iw {
|
|
|
37466
37466
|
return a.transmissionFactor !== void 0 && (t.transmission = a.transmissionFactor), a.transmissionTexture !== void 0 && r.push(n.assignTexture(t, "transmissionMap", a.transmissionTexture)), Promise.all(r);
|
|
37467
37467
|
}
|
|
37468
37468
|
}
|
|
37469
|
-
class
|
|
37469
|
+
class Iw {
|
|
37470
37470
|
constructor(e) {
|
|
37471
37471
|
this.parser = e, this.name = nt.KHR_MATERIALS_VOLUME;
|
|
37472
37472
|
}
|
|
@@ -37515,7 +37515,7 @@ class Bw {
|
|
|
37515
37515
|
const r = [], a = i.extensions[this.name];
|
|
37516
37516
|
t.specularIntensity = a.specularFactor !== void 0 ? a.specularFactor : 1, a.specularTexture !== void 0 && r.push(n.assignTexture(t, "specularIntensityMap", a.specularTexture));
|
|
37517
37517
|
const o = a.specularColorFactor || [1, 1, 1];
|
|
37518
|
-
return t.specularColor = new Fe().setRGB(o[0], o[1], o[2], nn), a.specularColorTexture !== void 0 && r.push(n.assignTexture(t, "specularColorMap", a.specularColorTexture,
|
|
37518
|
+
return t.specularColor = new Fe().setRGB(o[0], o[1], o[2], nn), a.specularColorTexture !== void 0 && r.push(n.assignTexture(t, "specularColorMap", a.specularColorTexture, Dt)), Promise.all(r);
|
|
37519
37519
|
}
|
|
37520
37520
|
}
|
|
37521
37521
|
class kw {
|
|
@@ -37645,7 +37645,7 @@ class Vw {
|
|
|
37645
37645
|
return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(e)), Promise.all(a).then((l) => {
|
|
37646
37646
|
const c = l.pop(), h = c.isGroup ? c.children : [c], d = l[0].count, p = [];
|
|
37647
37647
|
for (const u of h) {
|
|
37648
|
-
const g = new
|
|
37648
|
+
const g = new De(), f = new P(), x = new qn(), m = new P(1, 1, 1), b = new Ot(u.geometry, u.material, d);
|
|
37649
37649
|
for (let v = 0; v < d; v++)
|
|
37650
37650
|
o.TRANSLATION && f.fromBufferAttribute(o.TRANSLATION, v), o.ROTATION && x.fromBufferAttribute(o.ROTATION, v), o.SCALE && m.fromBufferAttribute(o.SCALE, v), b.setMatrixAt(v, g.compose(f, x, m));
|
|
37651
37651
|
for (const v in o)
|
|
@@ -37787,7 +37787,7 @@ const zn = {
|
|
|
37787
37787
|
}, Cf = {
|
|
37788
37788
|
33071: Vn,
|
|
37789
37789
|
33648: Cl,
|
|
37790
|
-
10497:
|
|
37790
|
+
10497: In
|
|
37791
37791
|
}, jc = {
|
|
37792
37792
|
SCALAR: 1,
|
|
37793
37793
|
VEC2: 2,
|
|
@@ -37816,7 +37816,7 @@ const zn = {
|
|
|
37816
37816
|
CUBICSPLINE: void 0,
|
|
37817
37817
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
37818
37818
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
37819
|
-
LINEAR:
|
|
37819
|
+
LINEAR: Da,
|
|
37820
37820
|
STEP: La
|
|
37821
37821
|
}, qc = {
|
|
37822
37822
|
OPAQUE: "OPAQUE",
|
|
@@ -37919,7 +37919,7 @@ function Md(s) {
|
|
|
37919
37919
|
function eS(s) {
|
|
37920
37920
|
return s.search(/\.jpe?g($|\?)/i) > 0 || s.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : s.search(/\.webp($|\?)/i) > 0 || s.search(/^data\:image\/webp/) === 0 ? "image/webp" : s.search(/\.ktx2($|\?)/i) > 0 || s.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
|
|
37921
37921
|
}
|
|
37922
|
-
const tS = new
|
|
37922
|
+
const tS = new De();
|
|
37923
37923
|
class nS {
|
|
37924
37924
|
constructor(e = {}, t = {}) {
|
|
37925
37925
|
this.json = e, this.extensions = {}, this.plugins = {}, this.options = t, this.cache = new Sw(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
|
|
@@ -38218,7 +38218,7 @@ class nS {
|
|
|
38218
38218
|
const c = this.loadImageSource(t, n).then(function(h) {
|
|
38219
38219
|
h.flipY = !1, h.name = a.name || o.name || "", h.name === "" && typeof o.uri == "string" && o.uri.startsWith("data:image/") === !1 && (h.name = o.uri);
|
|
38220
38220
|
const d = (r.samplers || {})[a.sampler] || {};
|
|
38221
|
-
return h.magFilter = Ef[d.magFilter] || Bt, h.minFilter = Ef[d.minFilter] || hi, h.wrapS = Cf[d.wrapS] ||
|
|
38221
|
+
return h.magFilter = Ef[d.magFilter] || Bt, h.minFilter = Ef[d.minFilter] || hi, h.wrapS = Cf[d.wrapS] || In, h.wrapT = Cf[d.wrapT] || In, h.generateMipmaps = !h.isCompressedTexture && h.minFilter !== jt && h.minFilter !== Bt, i.associations.set(h, { textures: e }), h;
|
|
38222
38222
|
}).catch(function() {
|
|
38223
38223
|
return null;
|
|
38224
38224
|
});
|
|
@@ -38294,11 +38294,11 @@ class nS {
|
|
|
38294
38294
|
if (e.isPoints) {
|
|
38295
38295
|
const o = "PointsMaterial:" + n.uuid;
|
|
38296
38296
|
let l = this.cache.get(o);
|
|
38297
|
-
l || (l = new Jm(),
|
|
38297
|
+
l || (l = new Jm(), Dn.prototype.copy.call(l, n), l.color.copy(n.color), l.map = n.map, l.sizeAttenuation = !1, this.cache.add(o, l)), n = l;
|
|
38298
38298
|
} else if (e.isLine) {
|
|
38299
38299
|
const o = "LineBasicMaterial:" + n.uuid;
|
|
38300
38300
|
let l = this.cache.get(o);
|
|
38301
|
-
l || (l = new Hs(),
|
|
38301
|
+
l || (l = new Hs(), Dn.prototype.copy.call(l, n), l.color.copy(n.color), l.map = n.map, this.cache.add(o, l)), n = l;
|
|
38302
38302
|
}
|
|
38303
38303
|
if (i || r || a) {
|
|
38304
38304
|
let o = "ClonedMaterial:" + n.uuid + ":";
|
|
@@ -38331,7 +38331,7 @@ class nS {
|
|
|
38331
38331
|
const p = d.baseColorFactor;
|
|
38332
38332
|
o.color.setRGB(p[0], p[1], p[2], nn), o.opacity = p[3];
|
|
38333
38333
|
}
|
|
38334
|
-
d.baseColorTexture !== void 0 && c.push(t.assignTexture(o, "map", d.baseColorTexture,
|
|
38334
|
+
d.baseColorTexture !== void 0 && c.push(t.assignTexture(o, "map", d.baseColorTexture, Dt)), o.metalness = d.metallicFactor !== void 0 ? d.metallicFactor : 1, o.roughness = d.roughnessFactor !== void 0 ? d.roughnessFactor : 1, d.metallicRoughnessTexture !== void 0 && (c.push(t.assignTexture(o, "metalnessMap", d.metallicRoughnessTexture)), c.push(t.assignTexture(o, "roughnessMap", d.metallicRoughnessTexture))), a = this._invokeOne(function(p) {
|
|
38335
38335
|
return p.getMaterialType && p.getMaterialType(e);
|
|
38336
38336
|
}), c.push(Promise.all(this._invokeAll(function(p) {
|
|
38337
38337
|
return p.extendMaterialParams && p.extendMaterialParams(e, o);
|
|
@@ -38347,7 +38347,7 @@ class nS {
|
|
|
38347
38347
|
const d = r.emissiveFactor;
|
|
38348
38348
|
o.emissive = new Fe().setRGB(d[0], d[1], d[2], nn);
|
|
38349
38349
|
}
|
|
38350
|
-
return r.emissiveTexture !== void 0 && a !== Vt && c.push(t.assignTexture(o, "emissiveMap", r.emissiveTexture,
|
|
38350
|
+
return r.emissiveTexture !== void 0 && a !== Vt && c.push(t.assignTexture(o, "emissiveMap", r.emissiveTexture, Dt)), Promise.all(c).then(function() {
|
|
38351
38351
|
const d = new a(o);
|
|
38352
38352
|
return r.name && (d.name = r.name), li(d, r), t.associations.set(d, { materials: e }), r.extensions && ys(i, d, r), d;
|
|
38353
38353
|
});
|
|
@@ -38471,7 +38471,7 @@ class nS {
|
|
|
38471
38471
|
const d = a[c];
|
|
38472
38472
|
if (d) {
|
|
38473
38473
|
o.push(d);
|
|
38474
|
-
const p = new
|
|
38474
|
+
const p = new De();
|
|
38475
38475
|
r !== null && p.fromArray(r.array, c * 16), l.push(p);
|
|
38476
38476
|
} else
|
|
38477
38477
|
console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', t.joints[c]);
|
|
@@ -38506,8 +38506,8 @@ class nS {
|
|
|
38506
38506
|
_.updateMatrix && _.updateMatrix();
|
|
38507
38507
|
const E = n._createAnimationTracks(_, M, T, R, w);
|
|
38508
38508
|
if (E)
|
|
38509
|
-
for (let
|
|
38510
|
-
m.push(E[
|
|
38509
|
+
for (let D = 0; D < E.length; D++)
|
|
38510
|
+
m.push(E[D]);
|
|
38511
38511
|
}
|
|
38512
38512
|
const b = new K1(r, void 0, m);
|
|
38513
38513
|
return li(b, i), b;
|
|
@@ -38571,7 +38571,7 @@ class nS {
|
|
|
38571
38571
|
for (let d = 0, p = c.length; d < p; d++)
|
|
38572
38572
|
h.add(c[d]);
|
|
38573
38573
|
if (r.name && (h.userData.name = r.name, h.name = a), li(h, r), r.extensions && ys(n, h, r), r.matrix !== void 0) {
|
|
38574
|
-
const d = new
|
|
38574
|
+
const d = new De();
|
|
38575
38575
|
d.fromArray(r.matrix), h.applyMatrix4(d);
|
|
38576
38576
|
} else
|
|
38577
38577
|
r.translation !== void 0 && h.position.fromArray(r.translation), r.rotation !== void 0 && h.quaternion.fromArray(r.rotation), r.scale !== void 0 && h.scale.fromArray(r.scale);
|
|
@@ -38603,7 +38603,7 @@ class nS {
|
|
|
38603
38603
|
const c = (h) => {
|
|
38604
38604
|
const d = /* @__PURE__ */ new Map();
|
|
38605
38605
|
for (const [p, u] of i.associations)
|
|
38606
|
-
(p instanceof
|
|
38606
|
+
(p instanceof Dn || p instanceof Wt) && d.set(p, u);
|
|
38607
38607
|
return h.traverse((p) => {
|
|
38608
38608
|
const u = i.associations.get(p);
|
|
38609
38609
|
u != null && d.set(p, u);
|
|
@@ -38642,7 +38642,7 @@ class nS {
|
|
|
38642
38642
|
}
|
|
38643
38643
|
break;
|
|
38644
38644
|
}
|
|
38645
|
-
const h = i.interpolation !== void 0 ? Yw[i.interpolation] :
|
|
38645
|
+
const h = i.interpolation !== void 0 ? Yw[i.interpolation] : Da, d = this._getArrayFromAccessor(n);
|
|
38646
38646
|
for (let p = 0, u = l.length; p < u; p++) {
|
|
38647
38647
|
const g = new c(
|
|
38648
38648
|
l[p] + "." + ji[r.path],
|
|
@@ -38798,7 +38798,7 @@ function aS(s, e) {
|
|
|
38798
38798
|
a.nodesMap.has(l) && a.nodesMap.get(l).infos.forEach((c) => {
|
|
38799
38799
|
let h = n.glbs[c.glb][c.mesh];
|
|
38800
38800
|
if (h != null && h.geometry != null && h.material != null) {
|
|
38801
|
-
let d = new
|
|
38801
|
+
let d = new De();
|
|
38802
38802
|
d.elements = c.matrix;
|
|
38803
38803
|
let p = new at(h.geometry.clone().applyMatrix4(d), h.material), u = new mt().setFromObject(p);
|
|
38804
38804
|
c.box = u, c.mesh = p, p.name = l, p.glb = c.glb, p.url = e.url, h.geometry.attributes.position != null && r.push(p);
|
|
@@ -38876,13 +38876,13 @@ function lS(s, e, t, n, i) {
|
|
|
38876
38876
|
r.instanceColor = new Rl(a, 3);
|
|
38877
38877
|
let o = [];
|
|
38878
38878
|
for (let l = 0; l < i.length; l++) {
|
|
38879
|
-
let c = i[l], h = new
|
|
38879
|
+
let c = i[l], h = new De();
|
|
38880
38880
|
h.elements = c.matrix, r.setMatrixAt(l, h), r.matrixs || (r.matrixs = []), r.matrixs.push(h.clone()), o.push(h.clone()), t.models.find((d) => d.url == s).nodesMap.has(c.id) ? (t.models.find((d) => d.url == s).nodesMap.get(c.id).indexes == null && (t.models.find((d) => d.url == s).nodesMap.get(c.id).indexes = []), t.models.find((d) => d.url == s).nodesMap.get(c.id).indexes.push([t.scene.children.length - 1, l, 0, 0])) : t.models.find((d) => d.url == s).nodesMap.set(c.id, { instance: !0, info: c, indexes: [[t.scene.children.length - 1, l, 0, 0]] });
|
|
38881
38881
|
}
|
|
38882
38882
|
r.index = t.scene.children.length - 1, r.materialClone = n.material, r.url = s, r.glb = n.glb, r.ids = i.map((l) => l.id), r.matrixsClone = o;
|
|
38883
38883
|
}
|
|
38884
38884
|
function cS(s) {
|
|
38885
|
-
return s.map != null && (s.map.colorSpace =
|
|
38885
|
+
return s.map != null && (s.map.colorSpace = Dt, s.map.needsUpdate = !0), s.shadowSide = jn, s.side = s.side, s;
|
|
38886
38886
|
}
|
|
38887
38887
|
class hS {
|
|
38888
38888
|
engine;
|
|
@@ -38992,13 +38992,13 @@ class pS {
|
|
|
38992
38992
|
}
|
|
38993
38993
|
// 加入场景基本光照
|
|
38994
38994
|
init() {
|
|
38995
|
-
const e = new
|
|
38995
|
+
const e = new Ii(16777215, 1);
|
|
38996
38996
|
e.position.set(100, 200, 100), e.castShadow = !0, e.shadow.mapSize.width = 2048, e.shadow.mapSize.height = 2048, e.shadow.camera.near = 0.1, e.shadow.camera.far = 5e3, e.shadow.bias = -5e-5, e.shadow.normalBias = 0.02;
|
|
38997
38997
|
const t = 50;
|
|
38998
38998
|
e.shadow.camera.left = -t, e.shadow.camera.right = t, e.shadow.camera.top = t, e.shadow.camera.bottom = -t, e.shadow.radius = 2;
|
|
38999
|
-
const n = new
|
|
38999
|
+
const n = new Ii(16777215, 2);
|
|
39000
39000
|
this.engine.scene.add(e), this.engine.scene.add(n), this.engine.scene.dirLight = n;
|
|
39001
|
-
const i = new
|
|
39001
|
+
const i = new Il(16777215, 1);
|
|
39002
39002
|
this.engine.scene.add(i);
|
|
39003
39003
|
}
|
|
39004
39004
|
}
|
|
@@ -39029,38 +39029,41 @@ class fS {
|
|
|
39029
39029
|
handelKeyCtrlDown() {
|
|
39030
39030
|
this.isCtrlDown = !0;
|
|
39031
39031
|
}
|
|
39032
|
-
// 监听鼠标按下
|
|
39032
|
+
// 监听鼠标按下
|
|
39033
39033
|
hoverOldId = null;
|
|
39034
|
+
timeOutEvent;
|
|
39034
39035
|
// 鼠标移动时,触发模型高亮
|
|
39035
39036
|
handleMouseMove(e) {
|
|
39036
|
-
if (
|
|
39037
|
+
if (this.timeOutEvent != null && (clearTimeout(this.timeOutEvent), this.timeOutEvent = null), e.catch != null && (this.engine.hoverHighLight.showModelNameTag(null, null), this.timeOutEvent = setTimeout(() => {
|
|
39038
|
+
this.hoverOldId = null;
|
|
39039
|
+
let n = this.getCatchMeshs(e, !0);
|
|
39040
|
+
n.length > 0 && this.engine.hoverHighLight.showModelNameTag({ url: n[0].url, ids: [n[0].name] }, e.catch.point);
|
|
39041
|
+
}, 1e3)), !this.engine.engineStatus.isFree) {
|
|
39037
39042
|
this.engine.hoverHighLight.clearHighlight();
|
|
39038
39043
|
return;
|
|
39039
39044
|
}
|
|
39040
39045
|
let t = this.getCatchMeshs(e);
|
|
39041
39046
|
t != null ? t.length > 0 && this.engine.hoverHighLight.hightMesh(t) : this.engine.hoverHighLight.clearHighlight();
|
|
39042
39047
|
}
|
|
39043
|
-
getCatchMeshs(e) {
|
|
39048
|
+
getCatchMeshs(e, t = !1) {
|
|
39044
39049
|
if (e.catch == null)
|
|
39045
39050
|
return this.hoverOldId = null, null;
|
|
39046
39051
|
if (e.catch.object.isInstance) {
|
|
39047
|
-
let
|
|
39048
|
-
|
|
39049
|
-
this.engine.scene.children[
|
|
39052
|
+
let n = e.catch.object, i = e.catch.object.id, r = this.engine.models.find((l) => l.url == n.url).nodesMap.get(i), a = /* @__PURE__ */ new Map();
|
|
39053
|
+
r?.indexes.forEach((l) => {
|
|
39054
|
+
this.engine.scene.children[l[0]] instanceof Ot && (a.has(l[0]) ? a.get(l[0])?.push(l[1]) : a.set(l[0], [l[1]]));
|
|
39050
39055
|
});
|
|
39051
|
-
let
|
|
39052
|
-
return
|
|
39053
|
-
let
|
|
39054
|
-
|
|
39055
|
-
let
|
|
39056
|
-
|
|
39056
|
+
let o = [];
|
|
39057
|
+
return a.forEach((l, c) => {
|
|
39058
|
+
let h = this.engine.scene.children[c];
|
|
39059
|
+
l.forEach((d) => {
|
|
39060
|
+
let p = h.geometry.clone();
|
|
39061
|
+
p.applyMatrix4(h.matrixs[d]), o.push(new at(p, h.material));
|
|
39057
39062
|
});
|
|
39058
|
-
}), this.hoverOldId ==
|
|
39063
|
+
}), this.hoverOldId == i ? [] : (this.hoverOldId = i, t || this.engine.hoverHighLight.clearHighlight(), o);
|
|
39059
39064
|
} else {
|
|
39060
|
-
|
|
39061
|
-
t.
|
|
39062
|
-
let n = t.object, i = n.name, r = this.engine.models.find((a) => a.url === n.url).nodesMap.get(i).infos.map((a) => a.mesh);
|
|
39063
|
-
return this.hoverOldId == i ? [] : (this.hoverOldId = i, this.engine.hoverHighLight.clearHighlight(), r);
|
|
39065
|
+
let n = e.catch.object, i = n.name, r = this.engine.models.find((a) => a.url === n.url).nodesMap.get(i).infos.map((a) => a.mesh);
|
|
39066
|
+
return this.hoverOldId == i ? [] : (this.hoverOldId = i, t || this.engine.hoverHighLight.clearHighlight(), r);
|
|
39064
39067
|
}
|
|
39065
39068
|
}
|
|
39066
39069
|
// 业务功能-监听鼠标谈起,点选模型
|
|
@@ -39076,10 +39079,10 @@ class fS {
|
|
|
39076
39079
|
handleMouseDoubleClick(e) {
|
|
39077
39080
|
if (e.catch) {
|
|
39078
39081
|
const n = e.catch;
|
|
39079
|
-
n.object;
|
|
39080
39082
|
let i = n.object, r = this.engine.models.find((a) => a.url === i.url).nodesMap.get(i.name);
|
|
39081
39083
|
if (n.object.isInstance) {
|
|
39082
|
-
let a = n.matrix
|
|
39084
|
+
let a = n.matrix;
|
|
39085
|
+
const o = [];
|
|
39083
39086
|
r.indexes.forEach((c) => {
|
|
39084
39087
|
let h = c[0], d = this.engine.scene.children[h].geometry.boundingSphere;
|
|
39085
39088
|
const p = new mt(), u = d.center.clone().applyMatrix4(a), g = d.radius, f = new P();
|
|
@@ -39098,7 +39101,8 @@ class fS {
|
|
|
39098
39101
|
let l = t(o);
|
|
39099
39102
|
this.engine.viewCube.zoomToModel(l);
|
|
39100
39103
|
} else {
|
|
39101
|
-
|
|
39104
|
+
const a = r.infos.map((l) => l.box);
|
|
39105
|
+
let o = t(a);
|
|
39102
39106
|
this.engine.viewCube.zoomToModel(o);
|
|
39103
39107
|
}
|
|
39104
39108
|
}
|
|
@@ -39361,7 +39365,7 @@ function gS(s, e) {
|
|
|
39361
39365
|
// 双面渲染
|
|
39362
39366
|
}), o = new Ot(r, a, t.length);
|
|
39363
39367
|
o.name = "highlightModel", o.key = n;
|
|
39364
|
-
const l = /* @__PURE__ */ new Map(), c = new
|
|
39368
|
+
const l = /* @__PURE__ */ new Map(), c = new De(), h = new De();
|
|
39365
39369
|
h.makeScale(0, 0, 0), t.forEach((d, p) => {
|
|
39366
39370
|
i.getMatrixAt(d, c), l.set(d, c.clone()), i.setMatrixAt(d, h), o.setMatrixAt(p, c);
|
|
39367
39371
|
}), i.instanceMatrix.needsUpdate = !0, o.instanceMatrix.needsUpdate = !0, e.scene.add(o);
|
|
@@ -39394,7 +39398,7 @@ function xS(s, e) {
|
|
|
39394
39398
|
// 双面渲染
|
|
39395
39399
|
}), o = new Ot(r, a, t.length);
|
|
39396
39400
|
o.name = "translucentModel", o.key = n;
|
|
39397
|
-
const l = /* @__PURE__ */ new Map(), c = new
|
|
39401
|
+
const l = /* @__PURE__ */ new Map(), c = new De(), h = new De();
|
|
39398
39402
|
h.makeScale(0, 0, 0), t.forEach((d, p) => {
|
|
39399
39403
|
i.getMatrixAt(d, c), l.set(d, c.clone()), i.setMatrixAt(d, h), o.setMatrixAt(p, c);
|
|
39400
39404
|
}), i.instanceMatrix.needsUpdate = !0, o.instanceMatrix.needsUpdate = !0, e.scene.add(o);
|
|
@@ -39407,7 +39411,7 @@ function vS(s, e) {
|
|
|
39407
39411
|
const i = e.scene.children[n];
|
|
39408
39412
|
if (!(i instanceof Ot))
|
|
39409
39413
|
return;
|
|
39410
|
-
const r = /* @__PURE__ */ new Map(), a = new
|
|
39414
|
+
const r = /* @__PURE__ */ new Map(), a = new De(), o = new De();
|
|
39411
39415
|
o.makeScale(0, 0, 0), t.forEach((l, c) => {
|
|
39412
39416
|
i.getMatrixAt(l, a), r.set(l, a.clone()), i.setMatrixAt(l, o);
|
|
39413
39417
|
}), i.instanceMatrix.needsUpdate = !0;
|
|
@@ -39510,7 +39514,7 @@ class bS {
|
|
|
39510
39514
|
setShadows(e) {
|
|
39511
39515
|
this.engine.renderer && (this.engine.renderer.shadowMap.enabled = e);
|
|
39512
39516
|
const t = this.engine.scene?.children.find(
|
|
39513
|
-
(n) => n instanceof
|
|
39517
|
+
(n) => n instanceof Ii
|
|
39514
39518
|
);
|
|
39515
39519
|
t && (t.castShadow = e), this.engine.scene?.traverse((n) => {
|
|
39516
39520
|
n.material && (n.castShadow !== void 0 && (n.castShadow = e), n.receiveShadow !== void 0 && (n.receiveShadow = e));
|
|
@@ -39577,7 +39581,7 @@ class bS {
|
|
|
39577
39581
|
*/
|
|
39578
39582
|
setShadowQuality(e) {
|
|
39579
39583
|
const t = this.engine.scene?.children.find(
|
|
39580
|
-
(i) => i instanceof
|
|
39584
|
+
(i) => i instanceof Ii
|
|
39581
39585
|
), n = {
|
|
39582
39586
|
low: 1024,
|
|
39583
39587
|
medium: 2048,
|
|
@@ -39616,8 +39620,27 @@ class Bl {
|
|
|
39616
39620
|
animStartTime = 0;
|
|
39617
39621
|
static FADE_IN_MS = 200;
|
|
39618
39622
|
static FADE_OUT_MS = 150;
|
|
39623
|
+
tagDiv;
|
|
39619
39624
|
constructor(e) {
|
|
39620
39625
|
this.engine = e, this.init();
|
|
39626
|
+
const t = document.createElement("div");
|
|
39627
|
+
this.tagDiv = t, t.className = "tagDiv", t.style.position = "absolute", t.style.top = "0px", t.style.left = "0px", t.style.borderRadius = "10px", t.style.pointerEvents = "none", this.engine.container.appendChild(this.tagDiv);
|
|
39628
|
+
}
|
|
39629
|
+
// 生成悬浮框显示模型名称
|
|
39630
|
+
showModelNameTag(e, t) {
|
|
39631
|
+
if (e == null) {
|
|
39632
|
+
this.tagDiv.style.display = "none";
|
|
39633
|
+
return;
|
|
39634
|
+
}
|
|
39635
|
+
let n = this.engine.models.find((a) => a.url == e.url);
|
|
39636
|
+
if (n == null) {
|
|
39637
|
+
this.tagDiv.style.display = "none";
|
|
39638
|
+
return;
|
|
39639
|
+
}
|
|
39640
|
+
let i = n.nodesMap.get(e.ids[0]);
|
|
39641
|
+
i.infos && i.infos.length > 0 && (this.tagDiv.innerHTML = i.infos[0].name);
|
|
39642
|
+
const r = this.engine.worldToScreen.worldToScreen(t);
|
|
39643
|
+
this.tagDiv ? (this.tagDiv.style.left = r.x + 10 + this.engine.reactBoundingClientRect.left + "px", this.tagDiv.style.top = r.y - 10 + this.engine.reactBoundingClientRect.top + "px", this.tagDiv.style.display = "block") : this.tagDiv && (this.tagDiv.style.display = "none");
|
|
39621
39644
|
}
|
|
39622
39645
|
init() {
|
|
39623
39646
|
this.overlayMaterial = new Vt({
|
|
@@ -40188,16 +40211,16 @@ class CS extends sv {
|
|
|
40188
40211
|
let E = b;
|
|
40189
40212
|
for (; E > 0 && M < x.byteLength; ) {
|
|
40190
40213
|
M + 4 > x.byteLength && t(1), R[0] = x[M++], R[1] = x[M++], R[2] = x[M++], R[3] = x[M++], (R[0] != 2 || R[1] != 2 || (R[2] << 8 | R[3]) != v) && t(3, "bad rgbe scanline format");
|
|
40191
|
-
let
|
|
40192
|
-
for (;
|
|
40214
|
+
let D = 0, A;
|
|
40215
|
+
for (; D < T && M < x.byteLength; ) {
|
|
40193
40216
|
A = x[M++];
|
|
40194
40217
|
const S = A > 128;
|
|
40195
|
-
if (S && (A -= 128), (A === 0 ||
|
|
40218
|
+
if (S && (A -= 128), (A === 0 || D + A > T) && t(3, "bad scanline data"), S) {
|
|
40196
40219
|
const U = x[M++];
|
|
40197
40220
|
for (let H = 0; H < A; H++)
|
|
40198
|
-
w[
|
|
40221
|
+
w[D++] = U;
|
|
40199
40222
|
} else
|
|
40200
|
-
w.set(x.subarray(M, M + A),
|
|
40223
|
+
w.set(x.subarray(M, M + A), D), D += A, M += A;
|
|
40201
40224
|
}
|
|
40202
40225
|
const B = v;
|
|
40203
40226
|
for (let S = 0; S < B; S++) {
|
|
@@ -40345,8 +40368,8 @@ function PS(s, e, t) {
|
|
|
40345
40368
|
new P(g.min.x, g.max.y, g.max.z),
|
|
40346
40369
|
new P(g.max.x, g.max.y, g.max.z)
|
|
40347
40370
|
], T = 1 / 0, R = -1 / 0, w = 1 / 0, E = -1 / 0;
|
|
40348
|
-
for (var
|
|
40349
|
-
var A =
|
|
40371
|
+
for (var D of M) {
|
|
40372
|
+
var A = D.dot(y), B = D.dot(_);
|
|
40350
40373
|
T = Math.min(T, A), R = Math.max(R, A), w = Math.min(w, B), E = Math.max(E, B);
|
|
40351
40374
|
}
|
|
40352
40375
|
var S = (R - T) / 2, U = (E - w) / 2, H = (e.camera.right - e.camera.left) / 2, G = (e.camera.top - e.camera.bottom) / 2;
|
|
@@ -40508,7 +40531,7 @@ function PS(s, e, t) {
|
|
|
40508
40531
|
alpha: !0
|
|
40509
40532
|
});
|
|
40510
40533
|
b.setSize(x, m), b.setClearAlpha(0), n.sceneOrtho.renderer = b;
|
|
40511
|
-
let v = new
|
|
40534
|
+
let v = new Il(16777215, 0.8);
|
|
40512
40535
|
n.sceneOrtho.add(v), AS(r, b);
|
|
40513
40536
|
}
|
|
40514
40537
|
function d() {
|
|
@@ -40767,7 +40790,7 @@ function PS(s, e, t) {
|
|
|
40767
40790
|
color: "blue",
|
|
40768
40791
|
transparent: !0,
|
|
40769
40792
|
opacity: 0.01
|
|
40770
|
-
}), m = new
|
|
40793
|
+
}), m = new De().makeTranslation(g.point.x, g.point.y, g.point.z);
|
|
40771
40794
|
let b = f.applyMatrix4(m), v = new at(b, x);
|
|
40772
40795
|
return v.name = g.name, n.sceneOrtho.add(v), v;
|
|
40773
40796
|
}
|
|
@@ -40871,7 +40894,7 @@ function LS(s) {
|
|
|
40871
40894
|
}
|
|
40872
40895
|
}, e;
|
|
40873
40896
|
}
|
|
40874
|
-
class
|
|
40897
|
+
class DS {
|
|
40875
40898
|
engine;
|
|
40876
40899
|
// 绘制状态
|
|
40877
40900
|
isDrawing = !1;
|
|
@@ -41046,7 +41069,7 @@ class IS {
|
|
|
41046
41069
|
}
|
|
41047
41070
|
}
|
|
41048
41071
|
}
|
|
41049
|
-
class
|
|
41072
|
+
class IS {
|
|
41050
41073
|
engine;
|
|
41051
41074
|
ground = null;
|
|
41052
41075
|
// 地面对象
|
|
@@ -41068,7 +41091,7 @@ class DS {
|
|
|
41068
41091
|
*/
|
|
41069
41092
|
setAmbientLightIntensity(e) {
|
|
41070
41093
|
const t = this.engine.scene.children.find(
|
|
41071
|
-
(n) => n instanceof
|
|
41094
|
+
(n) => n instanceof Il
|
|
41072
41095
|
);
|
|
41073
41096
|
t && (t.intensity = e);
|
|
41074
41097
|
}
|
|
@@ -41078,7 +41101,7 @@ class DS {
|
|
|
41078
41101
|
*/
|
|
41079
41102
|
setAmbientLightColor(e) {
|
|
41080
41103
|
const t = this.engine.scene.children.find(
|
|
41081
|
-
(n) => n instanceof
|
|
41104
|
+
(n) => n instanceof Il
|
|
41082
41105
|
);
|
|
41083
41106
|
t && t.color.set(e);
|
|
41084
41107
|
}
|
|
@@ -41088,7 +41111,7 @@ class DS {
|
|
|
41088
41111
|
*/
|
|
41089
41112
|
setDirectionalLightIntensity(e) {
|
|
41090
41113
|
const t = this.engine.scene.children.find(
|
|
41091
|
-
(n) => n instanceof
|
|
41114
|
+
(n) => n instanceof Ii
|
|
41092
41115
|
);
|
|
41093
41116
|
t && (t.intensity = e);
|
|
41094
41117
|
}
|
|
@@ -41098,7 +41121,7 @@ class DS {
|
|
|
41098
41121
|
*/
|
|
41099
41122
|
setDirectionalLightColor(e) {
|
|
41100
41123
|
const t = this.engine.scene.children.find(
|
|
41101
|
-
(n) => n instanceof
|
|
41124
|
+
(n) => n instanceof Ii
|
|
41102
41125
|
);
|
|
41103
41126
|
t && t.color.set(e);
|
|
41104
41127
|
}
|
|
@@ -41108,7 +41131,7 @@ class DS {
|
|
|
41108
41131
|
*/
|
|
41109
41132
|
setShadowQuality(e) {
|
|
41110
41133
|
const t = this.engine.scene.children.find(
|
|
41111
|
-
(n) => n instanceof
|
|
41134
|
+
(n) => n instanceof Ii
|
|
41112
41135
|
);
|
|
41113
41136
|
if (t?.shadow) {
|
|
41114
41137
|
const n = {
|
|
@@ -41126,7 +41149,7 @@ class DS {
|
|
|
41126
41149
|
*/
|
|
41127
41150
|
setDirectionalLightShadow(e) {
|
|
41128
41151
|
const t = this.engine.scene.children.find(
|
|
41129
|
-
(n) => n instanceof
|
|
41152
|
+
(n) => n instanceof Ii
|
|
41130
41153
|
);
|
|
41131
41154
|
t && (t.castShadow = e), this.engine.renderer && (this.engine.renderer.shadowMap.enabled = e);
|
|
41132
41155
|
}
|
|
@@ -42056,7 +42079,7 @@ class VS {
|
|
|
42056
42079
|
this.isActive && this.tools.drawNormalAnnotation();
|
|
42057
42080
|
}
|
|
42058
42081
|
}
|
|
42059
|
-
const Q0 = 0, GS = 1, WS = 2, Lf = 2, Yc = 1.25,
|
|
42082
|
+
const Q0 = 0, GS = 1, WS = 2, Lf = 2, Yc = 1.25, Df = 1, gn = 32, Kt = gn / 4, eg = 65535, XS = Math.pow(2, -24), $c = Symbol("SKIP_GENERATION");
|
|
42060
42083
|
function jS(s) {
|
|
42061
42084
|
return s.index ? s.index.count : s.attributes.position.count;
|
|
42062
42085
|
}
|
|
@@ -42081,7 +42104,7 @@ function tg(s, e) {
|
|
|
42081
42104
|
count: Math.floor(o)
|
|
42082
42105
|
}];
|
|
42083
42106
|
}
|
|
42084
|
-
function
|
|
42107
|
+
function If(s, e) {
|
|
42085
42108
|
if (!s.groups || !s.groups.length)
|
|
42086
42109
|
return tg(s, e);
|
|
42087
42110
|
const t = [], n = e || s.drawRange, i = n.start / 3, r = (n.start + n.count) / 3, a = Ws(s), o = [];
|
|
@@ -42106,8 +42129,8 @@ function Kc(s, e, t, n, i) {
|
|
|
42106
42129
|
for (let b = (e - m) * 6, v = (e + t - m) * 6; b < v; b += 6) {
|
|
42107
42130
|
const y = s[b + 0], _ = s[b + 1], M = y - _, T = y + _;
|
|
42108
42131
|
M < r && (r = M), T > l && (l = T), y < d && (d = y), y > g && (g = y);
|
|
42109
|
-
const R = s[b + 2], w = s[b + 3], E = R - w,
|
|
42110
|
-
E < a && (a = E),
|
|
42132
|
+
const R = s[b + 2], w = s[b + 3], E = R - w, D = R + w;
|
|
42133
|
+
E < a && (a = E), D > c && (c = D), R < p && (p = R), R > f && (f = R);
|
|
42111
42134
|
const A = s[b + 4], B = s[b + 5], S = A - B, U = A + B;
|
|
42112
42135
|
S < o && (o = S), U > h && (h = U), A < u && (u = A), A > x && (x = A);
|
|
42113
42136
|
}
|
|
@@ -42134,8 +42157,8 @@ function Nf(s, e, t = null, n = null, i = null) {
|
|
|
42134
42157
|
M < R && (R = M), T < R && (R = T);
|
|
42135
42158
|
let w = _;
|
|
42136
42159
|
M > w && (w = M), T > w && (w = T);
|
|
42137
|
-
const E = (w - R) / 2,
|
|
42138
|
-
i[x +
|
|
42160
|
+
const E = (w - R) / 2, D = y * 2;
|
|
42161
|
+
i[x + D + 0] = R + E, i[x + D + 1] = E + (Math.abs(R) + E) * XS;
|
|
42139
42162
|
}
|
|
42140
42163
|
}
|
|
42141
42164
|
return i;
|
|
@@ -42226,8 +42249,8 @@ function $S(s, e, t, n, i, r) {
|
|
|
42226
42249
|
_ !== 0 && (w = ca(T) / l);
|
|
42227
42250
|
let E = 0;
|
|
42228
42251
|
M !== 0 && (E = ca(R) / l);
|
|
42229
|
-
const
|
|
42230
|
-
|
|
42252
|
+
const D = Df + Yc * (w * _ + E * M);
|
|
42253
|
+
D < c && (a = u, c = D, o = y.candidate);
|
|
42231
42254
|
}
|
|
42232
42255
|
} else {
|
|
42233
42256
|
for (let b = 0; b < Ai; b++) {
|
|
@@ -42257,7 +42280,7 @@ function $S(s, e, t, n, i, r) {
|
|
|
42257
42280
|
m !== 0 && (T = ca(Go) / l);
|
|
42258
42281
|
const w = i - m;
|
|
42259
42282
|
w !== 0 && (R = ca(M) / l);
|
|
42260
|
-
const E =
|
|
42283
|
+
const E = Df + Yc * (T * m + R * w);
|
|
42261
42284
|
E < c && (a = u, c = E, o = v.candidate);
|
|
42262
42285
|
}
|
|
42263
42286
|
}
|
|
@@ -42375,14 +42398,14 @@ function iE(s, e, t, n, i) {
|
|
|
42375
42398
|
const E = $S(_.boundingData, R, e, M, T, l);
|
|
42376
42399
|
if (E.axis === -1)
|
|
42377
42400
|
return v(M + T), _.offset = M, _.count = T, _;
|
|
42378
|
-
const
|
|
42379
|
-
if (
|
|
42401
|
+
const D = g(d, u, e, M, T, E);
|
|
42402
|
+
if (D === M || D === M + T)
|
|
42380
42403
|
v(M + T), _.offset = M, _.count = T;
|
|
42381
42404
|
else {
|
|
42382
42405
|
_.splitAxis = E.axis;
|
|
42383
|
-
const A = new Jc(), B = M, S =
|
|
42406
|
+
const A = new Jc(), B = M, S = D - M;
|
|
42384
42407
|
_.left = A, Kc(e, B, S, A.boundingData, x), y(A, B, S, x, w + 1);
|
|
42385
|
-
const U = new Jc(), H =
|
|
42408
|
+
const U = new Jc(), H = D, G = T - S;
|
|
42386
42409
|
_.right = U, Kc(e, H, G, U.boundingData, x), y(U, H, G, x, w + 1);
|
|
42387
42410
|
}
|
|
42388
42411
|
return _;
|
|
@@ -42392,12 +42415,12 @@ function sE(s, e) {
|
|
|
42392
42415
|
const t = e.useSharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer, n = s.geometry;
|
|
42393
42416
|
let i, r;
|
|
42394
42417
|
if (e.indirect) {
|
|
42395
|
-
const a =
|
|
42418
|
+
const a = If(n, e.range), o = nE(n, e.useSharedArrayBuffer, a);
|
|
42396
42419
|
s._indirectBuffer = o, i = Nf(n, 0, o.length, o), r = [{ offset: 0, count: o.length }];
|
|
42397
42420
|
} else {
|
|
42398
42421
|
ZS(n, e);
|
|
42399
42422
|
const a = tg(n, e.range)[0];
|
|
42400
|
-
i = Nf(n, a.offset, a.count), r =
|
|
42423
|
+
i = Nf(n, a.offset, a.count), r = If(n, e.range);
|
|
42401
42424
|
}
|
|
42402
42425
|
s._roots = r.map((a) => {
|
|
42403
42426
|
const o = iE(s, i, a.offset, a.count, e), l = Td(o), c = new t(gn * l);
|
|
@@ -42482,7 +42505,7 @@ const rE = /* @__PURE__ */ (function() {
|
|
|
42482
42505
|
}
|
|
42483
42506
|
};
|
|
42484
42507
|
})(), aE = /* @__PURE__ */ (function() {
|
|
42485
|
-
const s = /* @__PURE__ */ new P(), e = /* @__PURE__ */ new P(), t = /* @__PURE__ */ new
|
|
42508
|
+
const s = /* @__PURE__ */ new P(), e = /* @__PURE__ */ new P(), t = /* @__PURE__ */ new It(), n = /* @__PURE__ */ new Zn();
|
|
42486
42509
|
return function(i, r) {
|
|
42487
42510
|
const { radius: a, center: o } = i, { a: l, b: c, c: h } = r;
|
|
42488
42511
|
if (n.start = l, n.end = c, n.closestPointToPoint(o, !0, s).distanceTo(o) <= a || (n.start = l, n.end = h, n.closestPointToPoint(o, !0, s).distanceTo(o) <= a) || (n.start = c, n.end = h, n.closestPointToPoint(o, !0, s).distanceTo(o) <= a)) return !0;
|
|
@@ -42499,7 +42522,7 @@ function On(s) {
|
|
|
42499
42522
|
}
|
|
42500
42523
|
class Yn extends vt {
|
|
42501
42524
|
constructor(...e) {
|
|
42502
|
-
super(...e), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new P()), this.satBounds = new Array(4).fill().map(() => new ki()), this.points = [this.a, this.b, this.c], this.plane = new
|
|
42525
|
+
super(...e), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new P()), this.satBounds = new Array(4).fill().map(() => new ki()), this.points = [this.a, this.b, this.c], this.plane = new It(), this.isDegenerateIntoSegment = !1, this.isDegenerateIntoPoint = !1, this.degenerateSegment = new Zn(), this.needsUpdate = !0;
|
|
42503
42526
|
}
|
|
42504
42527
|
intersectsSphere(e) {
|
|
42505
42528
|
return aE(e, this);
|
|
@@ -42539,28 +42562,28 @@ Yn.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
|
42539
42562
|
const B = R[A], S = w[A];
|
|
42540
42563
|
if (e.setFromPoints(S, y.points), B.isSeparated(e) || (a.copy(T).cross(S), e.setFromPoints(a, v.points), t.setFromPoints(a, y.points), e.isSeparated(t))) return !1;
|
|
42541
42564
|
}
|
|
42542
|
-
const E = y.satBounds,
|
|
42565
|
+
const E = y.satBounds, D = y.satAxes;
|
|
42543
42566
|
for (let A = 1; A < 4; A++) {
|
|
42544
|
-
const B = E[A], S =
|
|
42567
|
+
const B = E[A], S = D[A];
|
|
42545
42568
|
if (e.setFromPoints(S, v.points), B.isSeparated(e) || (a.crossVectors(T, S), e.setFromPoints(a, v.points), t.setFromPoints(a, y.points), e.isSeparated(t))) return !1;
|
|
42546
42569
|
}
|
|
42547
42570
|
return _ && (M || console.warn("ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0."), _.start.set(0, 0, 0), _.end.set(0, 0, 0)), !0;
|
|
42548
42571
|
}
|
|
42549
|
-
function u(v, y, _, M, T, R, w, E,
|
|
42572
|
+
function u(v, y, _, M, T, R, w, E, D, A, B) {
|
|
42550
42573
|
let S = w / (w - E);
|
|
42551
|
-
A.x = M + (T - M) * S, B.start.subVectors(y, v).multiplyScalar(S).add(v), S = w / (w -
|
|
42574
|
+
A.x = M + (T - M) * S, B.start.subVectors(y, v).multiplyScalar(S).add(v), S = w / (w - D), A.y = M + (R - M) * S, B.end.subVectors(_, v).multiplyScalar(S).add(v);
|
|
42552
42575
|
}
|
|
42553
|
-
function g(v, y, _, M, T, R, w, E,
|
|
42576
|
+
function g(v, y, _, M, T, R, w, E, D, A, B) {
|
|
42554
42577
|
if (T > 0)
|
|
42555
|
-
u(v.c, v.a, v.b, M, y, _,
|
|
42578
|
+
u(v.c, v.a, v.b, M, y, _, D, w, E, A, B);
|
|
42556
42579
|
else if (R > 0)
|
|
42557
|
-
u(v.b, v.a, v.c, _, y, M, E, w,
|
|
42558
|
-
else if (E *
|
|
42559
|
-
u(v.a, v.b, v.c, y, _, M, w, E,
|
|
42580
|
+
u(v.b, v.a, v.c, _, y, M, E, w, D, A, B);
|
|
42581
|
+
else if (E * D > 0 || w != 0)
|
|
42582
|
+
u(v.a, v.b, v.c, y, _, M, w, E, D, A, B);
|
|
42560
42583
|
else if (E != 0)
|
|
42561
|
-
u(v.b, v.a, v.c, _, y, M, E, w,
|
|
42562
|
-
else if (
|
|
42563
|
-
u(v.c, v.a, v.b, M, y, _,
|
|
42584
|
+
u(v.b, v.a, v.c, _, y, M, E, w, D, A, B);
|
|
42585
|
+
else if (D != 0)
|
|
42586
|
+
u(v.c, v.a, v.b, M, y, _, D, w, E, A, B);
|
|
42564
42587
|
else
|
|
42565
42588
|
return !0;
|
|
42566
42589
|
return !1;
|
|
@@ -42582,10 +42605,10 @@ Yn.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
|
42582
42605
|
if (y.isDegenerateIntoSegment) {
|
|
42583
42606
|
const T = v.degenerateSegment, R = y.degenerateSegment, w = i, E = r;
|
|
42584
42607
|
T.delta(w), R.delta(E);
|
|
42585
|
-
const
|
|
42608
|
+
const D = n.subVectors(R.start, T.start), A = w.x * E.y - w.y * E.x;
|
|
42586
42609
|
if (On(A))
|
|
42587
42610
|
return !1;
|
|
42588
|
-
const B = (
|
|
42611
|
+
const B = (D.x * E.y - D.y * E.x) / A, S = -(w.x * D.y - w.y * D.x) / A;
|
|
42589
42612
|
if (B < 0 || B > 1 || S < 0 || S > 1)
|
|
42590
42613
|
return !1;
|
|
42591
42614
|
const U = T.start.z + w.z * B, H = R.start.z + E.z * S;
|
|
@@ -42606,9 +42629,9 @@ Yn.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
|
42606
42629
|
if (M !== void 0)
|
|
42607
42630
|
return M;
|
|
42608
42631
|
const T = this.plane, R = v.plane;
|
|
42609
|
-
let w = R.distanceToPoint(this.a), E = R.distanceToPoint(this.b),
|
|
42610
|
-
On(w) && (w = 0), On(E) && (E = 0), On(
|
|
42611
|
-
const A = w * E, B = w *
|
|
42632
|
+
let w = R.distanceToPoint(this.a), E = R.distanceToPoint(this.b), D = R.distanceToPoint(this.c);
|
|
42633
|
+
On(w) && (w = 0), On(E) && (E = 0), On(D) && (D = 0);
|
|
42634
|
+
const A = w * E, B = w * D;
|
|
42612
42635
|
if (A > 0 && B > 0)
|
|
42613
42636
|
return !1;
|
|
42614
42637
|
let S = T.distanceToPoint(v.a), U = T.distanceToPoint(v.b), H = T.distanceToPoint(v.c);
|
|
@@ -42622,7 +42645,7 @@ Yn.prototype.intersectsTriangle = /* @__PURE__ */ (function() {
|
|
|
42622
42645
|
const $ = Math.abs(j.y);
|
|
42623
42646
|
$ > X && (X = $, ie = 1), Math.abs(j.z) > X && (ie = 2);
|
|
42624
42647
|
const ue = oE[ie], pe = this.a[ue], fe = this.b[ue], se = this.c[ue], ce = v.a[ue], me = v.b[ue], be = v.c[ue];
|
|
42625
|
-
if (g(this, pe, fe, se, A, B, w, E,
|
|
42648
|
+
if (g(this, pe, fe, se, A, B, w, E, D, h, o))
|
|
42626
42649
|
return p(this, v, y, _);
|
|
42627
42650
|
if (g(v, ce, me, be, G, Z, S, U, H, d, l))
|
|
42628
42651
|
return p(this, v, y, _);
|
|
@@ -42672,7 +42695,7 @@ Yn.prototype.distanceToTriangle = /* @__PURE__ */ (function() {
|
|
|
42672
42695
|
})();
|
|
42673
42696
|
class xn {
|
|
42674
42697
|
constructor(e, t, n) {
|
|
42675
|
-
this.isOrientedBox = !0, this.min = new P(), this.max = new P(), this.matrix = new
|
|
42698
|
+
this.isOrientedBox = !0, this.min = new P(), this.max = new P(), this.matrix = new De(), this.invMatrix = new De(), this.points = new Array(8).fill().map(() => new P()), this.satAxes = new Array(3).fill().map(() => new P()), this.satBounds = new Array(3).fill().map(() => new ki()), this.alignedSatBounds = new Array(3).fill().map(() => new ki()), this.needsUpdate = !1, e && this.min.copy(e), t && this.max.copy(t), n && this.matrix.copy(n);
|
|
42676
42699
|
}
|
|
42677
42700
|
set(e, t, n) {
|
|
42678
42701
|
this.min.copy(e), this.max.copy(t), this.matrix.copy(n), this.needsUpdate = !0;
|
|
@@ -42768,7 +42791,7 @@ xn.prototype.distanceToBox = /* @__PURE__ */ (function() {
|
|
|
42768
42791
|
for (let m = 0; m <= 1; m++) {
|
|
42769
42792
|
const b = (f + 1) % 3, v = (f + 2) % 3, y = x << b | m << v, _ = 1 << f | x << b | m << v, M = p[y], T = p[_];
|
|
42770
42793
|
e[g].set(M, T);
|
|
42771
|
-
const R = s[f], w = s[b], E = s[v],
|
|
42794
|
+
const R = s[f], w = s[b], E = s[v], D = t[g], A = D.start, B = D.end;
|
|
42772
42795
|
A[R] = h[R], A[w] = x ? h[w] : d[w], A[E] = m ? h[E] : d[w], B[R] = d[R], B[w] = x ? h[w] : d[w], B[E] = m ? h[E] : d[w], g++;
|
|
42773
42796
|
}
|
|
42774
42797
|
for (let f = 0; f <= 1; f++)
|
|
@@ -42858,32 +42881,32 @@ function Pd(s, e, t, n, i = null, r = 0, a = 0) {
|
|
|
42858
42881
|
const d = Ln(s, c), p = Wn(h, l);
|
|
42859
42882
|
return Lt(s, o, ts), n(d, p, !1, a, r + s / Kt, ts);
|
|
42860
42883
|
} else {
|
|
42861
|
-
let d = function(
|
|
42884
|
+
let d = function(D) {
|
|
42862
42885
|
const { uint16Array: A, uint32Array: B } = wt;
|
|
42863
|
-
let S =
|
|
42886
|
+
let S = D * 2;
|
|
42864
42887
|
for (; !Jt(S, A); )
|
|
42865
|
-
|
|
42866
|
-
return Ln(
|
|
42867
|
-
}, p = function(
|
|
42888
|
+
D = Qt(D), S = D * 2;
|
|
42889
|
+
return Ln(D, B);
|
|
42890
|
+
}, p = function(D) {
|
|
42868
42891
|
const { uint16Array: A, uint32Array: B } = wt;
|
|
42869
|
-
let S =
|
|
42892
|
+
let S = D * 2;
|
|
42870
42893
|
for (; !Jt(S, A); )
|
|
42871
|
-
|
|
42872
|
-
return Ln(
|
|
42894
|
+
D = en(D, B), S = D * 2;
|
|
42895
|
+
return Ln(D, B) + Wn(S, A);
|
|
42873
42896
|
};
|
|
42874
42897
|
const u = Qt(s), g = en(s, c);
|
|
42875
42898
|
let f = u, x = g, m, b, v, y;
|
|
42876
42899
|
if (i && (v = ts, y = Er, Lt(f, o, v), Lt(x, o, y), m = i(v), b = i(y), b < m)) {
|
|
42877
42900
|
f = g, x = u;
|
|
42878
|
-
const
|
|
42879
|
-
m = b, b =
|
|
42901
|
+
const D = m;
|
|
42902
|
+
m = b, b = D, v = y;
|
|
42880
42903
|
}
|
|
42881
42904
|
v || (v = ts, Lt(f, o, v));
|
|
42882
42905
|
const _ = Jt(f * 2, l), M = t(v, _, m, a + 1, r + f / Kt);
|
|
42883
42906
|
let T;
|
|
42884
42907
|
if (M === Lf) {
|
|
42885
|
-
const
|
|
42886
|
-
T = n(
|
|
42908
|
+
const D = d(f), A = p(f) - D;
|
|
42909
|
+
T = n(D, A, !0, a + 1, r + f / Kt, v);
|
|
42887
42910
|
} else
|
|
42888
42911
|
T = M && Pd(
|
|
42889
42912
|
f,
|
|
@@ -42899,8 +42922,8 @@ function Pd(s, e, t, n, i = null, r = 0, a = 0) {
|
|
|
42899
42922
|
const R = Jt(x * 2, l), w = t(y, R, b, a + 1, r + x / Kt);
|
|
42900
42923
|
let E;
|
|
42901
42924
|
if (w === Lf) {
|
|
42902
|
-
const
|
|
42903
|
-
E = n(
|
|
42925
|
+
const D = d(x), A = p(x) - D;
|
|
42926
|
+
E = n(D, A, !0, a + 1, r + x / Kt, y);
|
|
42904
42927
|
} else
|
|
42905
42928
|
E = w && Pd(
|
|
42906
42929
|
x,
|
|
@@ -43049,8 +43072,8 @@ function xE(s, e = null) {
|
|
|
43049
43072
|
let b = 1 / 0, v = 1 / 0, y = 1 / 0, _ = -1 / 0, M = -1 / 0, T = -1 / 0;
|
|
43050
43073
|
for (let R = 3 * x, w = 3 * (x + m); R < w; R++) {
|
|
43051
43074
|
let E = n[R];
|
|
43052
|
-
const
|
|
43053
|
-
|
|
43075
|
+
const D = i.getX(E), A = i.getY(E), B = i.getZ(E);
|
|
43076
|
+
D < b && (b = D), D > _ && (_ = D), A < v && (v = A), A > M && (M = A), B < y && (y = B), B > T && (T = B);
|
|
43054
43077
|
}
|
|
43055
43078
|
return l[p + 0] !== b || l[p + 1] !== v || l[p + 2] !== y || l[p + 3] !== _ || l[p + 4] !== M || l[p + 5] !== T ? (l[p + 0] = b, l[p + 1] = v, l[p + 2] = y, l[p + 3] = _, l[p + 4] = M, l[p + 5] = T, !0) : !1;
|
|
43056
43079
|
} else {
|
|
@@ -43058,8 +43081,8 @@ function xE(s, e = null) {
|
|
|
43058
43081
|
let b = g, v = !1, y = !1;
|
|
43059
43082
|
if (e) {
|
|
43060
43083
|
if (!b) {
|
|
43061
|
-
const E = x / Kt + u / gn,
|
|
43062
|
-
v = e.has(E), y = e.has(
|
|
43084
|
+
const E = x / Kt + u / gn, D = m / Kt + u / gn;
|
|
43085
|
+
v = e.has(E), y = e.has(D), b = !v && !y;
|
|
43063
43086
|
}
|
|
43064
43087
|
} else
|
|
43065
43088
|
v = !0, y = !0;
|
|
@@ -43071,7 +43094,7 @@ function xE(s, e = null) {
|
|
|
43071
43094
|
const w = T || R;
|
|
43072
43095
|
if (w)
|
|
43073
43096
|
for (let E = 0; E < 3; E++) {
|
|
43074
|
-
const
|
|
43097
|
+
const D = x + E, A = m + E, B = l[D], S = l[D + 3], U = l[A], H = l[A + 3];
|
|
43075
43098
|
l[p + E] = B < U ? B : U, l[p + E + 3] = S > H ? S : H;
|
|
43076
43099
|
}
|
|
43077
43100
|
return w;
|
|
@@ -43153,13 +43176,13 @@ function Ld(s, e, t, n, i, r) {
|
|
|
43153
43176
|
return f && x ? f.distance <= x.distance ? f : x : f || x || null;
|
|
43154
43177
|
}
|
|
43155
43178
|
}
|
|
43156
|
-
const Yo = /* @__PURE__ */ new mt(), gr = /* @__PURE__ */ new Yn(), xr = /* @__PURE__ */ new Yn(), ua = /* @__PURE__ */ new
|
|
43179
|
+
const Yo = /* @__PURE__ */ new mt(), gr = /* @__PURE__ */ new Yn(), xr = /* @__PURE__ */ new Yn(), ua = /* @__PURE__ */ new De(), Wf = /* @__PURE__ */ new xn(), $o = /* @__PURE__ */ new xn();
|
|
43157
43180
|
function SE(s, e, t, n) {
|
|
43158
43181
|
wt.setBuffer(s._roots[e]);
|
|
43159
|
-
const i =
|
|
43182
|
+
const i = Dd(0, s, t, n);
|
|
43160
43183
|
return wt.clearBuffer(), i;
|
|
43161
43184
|
}
|
|
43162
|
-
function
|
|
43185
|
+
function Dd(s, e, t, n, i = null) {
|
|
43163
43186
|
const { float32Array: r, uint16Array: a, uint32Array: o } = wt;
|
|
43164
43187
|
let l = s * 2;
|
|
43165
43188
|
if (i === null && (t.boundingBox || t.computeBoundingBox(), Wf.set(t.boundingBox.min, t.boundingBox.max, n), i = Wf), Jt(l, a)) {
|
|
@@ -43186,10 +43209,10 @@ function Id(s, e, t, n, i = null) {
|
|
|
43186
43209
|
}
|
|
43187
43210
|
} else {
|
|
43188
43211
|
const c = Qt(s), h = en(s, o);
|
|
43189
|
-
return Lt(c, r, Yo), !!(i.intersectsBox(Yo) &&
|
|
43212
|
+
return Lt(c, r, Yo), !!(i.intersectsBox(Yo) && Dd(c, e, t, n, i) || (Lt(h, r, Yo), i.intersectsBox(Yo) && Dd(h, e, t, n, i)));
|
|
43190
43213
|
}
|
|
43191
43214
|
}
|
|
43192
|
-
const Ko = /* @__PURE__ */ new
|
|
43215
|
+
const Ko = /* @__PURE__ */ new De(), eh = /* @__PURE__ */ new xn(), pa = /* @__PURE__ */ new xn(), EE = /* @__PURE__ */ new P(), CE = /* @__PURE__ */ new P(), TE = /* @__PURE__ */ new P(), AE = /* @__PURE__ */ new P();
|
|
43193
43216
|
function PE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
|
|
43194
43217
|
e.boundingBox || e.computeBoundingBox(), eh.set(e.boundingBox.min, e.boundingBox.max, t), eh.needsUpdate = !0;
|
|
43195
43218
|
const o = s.geometry, l = o.attributes.position, c = o.index, h = e.attributes.position, d = e.index, p = Gn.getPrimitive(), u = Gn.getPrimitive();
|
|
@@ -43208,10 +43231,10 @@ function PE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
|
|
|
43208
43231
|
intersectsRange: (T, R) => {
|
|
43209
43232
|
for (let w = T, E = T + R; w < E; w++) {
|
|
43210
43233
|
Gt(u, 3 * w, d, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
43211
|
-
for (let
|
|
43212
|
-
Gt(p, 3 *
|
|
43234
|
+
for (let D = _, A = _ + M; D < A; D++) {
|
|
43235
|
+
Gt(p, 3 * D, c, l), p.needsUpdate = !0;
|
|
43213
43236
|
const B = p.distanceToTriangle(u, g, x);
|
|
43214
|
-
if (B < b && (f.copy(g), m && m.copy(x), b = B, v =
|
|
43237
|
+
if (B < b && (f.copy(g), m && m.copy(x), b = B, v = D, y = w), B < r)
|
|
43215
43238
|
return !0;
|
|
43216
43239
|
}
|
|
43217
43240
|
}
|
|
@@ -43221,7 +43244,7 @@ function PE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
|
|
|
43221
43244
|
const T = Ws(e);
|
|
43222
43245
|
for (let R = 0, w = T; R < w; R++) {
|
|
43223
43246
|
Gt(u, 3 * R, d, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
43224
|
-
for (let E = _,
|
|
43247
|
+
for (let E = _, D = _ + M; E < D; E++) {
|
|
43225
43248
|
Gt(p, 3 * E, c, l), p.needsUpdate = !0;
|
|
43226
43249
|
const A = p.distanceToTriangle(u, g, x);
|
|
43227
43250
|
if (A < b && (f.copy(g), m && m.copy(x), b = A, v = E, y = R), A < r)
|
|
@@ -43247,8 +43270,8 @@ function RE(s, e = null) {
|
|
|
43247
43270
|
let b = 1 / 0, v = 1 / 0, y = 1 / 0, _ = -1 / 0, M = -1 / 0, T = -1 / 0;
|
|
43248
43271
|
for (let R = x, w = x + m; R < w; R++) {
|
|
43249
43272
|
const E = 3 * s.resolveTriangleIndex(R);
|
|
43250
|
-
for (let
|
|
43251
|
-
let A = E +
|
|
43273
|
+
for (let D = 0; D < 3; D++) {
|
|
43274
|
+
let A = E + D;
|
|
43252
43275
|
A = n ? n[A] : A;
|
|
43253
43276
|
const B = i.getX(A), S = i.getY(A), U = i.getZ(A);
|
|
43254
43277
|
B < b && (b = B), B > _ && (_ = B), S < v && (v = S), S > M && (M = S), U < y && (y = U), U > T && (T = U);
|
|
@@ -43260,8 +43283,8 @@ function RE(s, e = null) {
|
|
|
43260
43283
|
let b = g, v = !1, y = !1;
|
|
43261
43284
|
if (e) {
|
|
43262
43285
|
if (!b) {
|
|
43263
|
-
const E = x / Kt + u / gn,
|
|
43264
|
-
v = e.has(E), y = e.has(
|
|
43286
|
+
const E = x / Kt + u / gn, D = m / Kt + u / gn;
|
|
43287
|
+
v = e.has(E), y = e.has(D), b = !v && !y;
|
|
43265
43288
|
}
|
|
43266
43289
|
} else
|
|
43267
43290
|
v = !0, y = !0;
|
|
@@ -43273,7 +43296,7 @@ function RE(s, e = null) {
|
|
|
43273
43296
|
const w = T || R;
|
|
43274
43297
|
if (w)
|
|
43275
43298
|
for (let E = 0; E < 3; E++) {
|
|
43276
|
-
const
|
|
43299
|
+
const D = x + E, A = m + E, B = l[D], S = l[D + 3], U = l[A], H = l[A + 3];
|
|
43277
43300
|
l[p + E] = B < U ? B : U, l[p + E + 3] = S > H ? S : H;
|
|
43278
43301
|
}
|
|
43279
43302
|
return w;
|
|
@@ -43281,22 +43304,22 @@ function RE(s, e = null) {
|
|
|
43281
43304
|
}
|
|
43282
43305
|
}
|
|
43283
43306
|
function LE(s, e, t, n, i, r, a) {
|
|
43284
|
-
wt.setBuffer(s._roots[e]),
|
|
43307
|
+
wt.setBuffer(s._roots[e]), Id(0, s, t, n, i, r, a), wt.clearBuffer();
|
|
43285
43308
|
}
|
|
43286
|
-
function
|
|
43309
|
+
function Id(s, e, t, n, i, r, a) {
|
|
43287
43310
|
const { float32Array: o, uint16Array: l, uint32Array: c } = wt, h = s * 2;
|
|
43288
43311
|
if (Jt(h, l)) {
|
|
43289
43312
|
const d = Ln(s, c), p = Wn(h, l);
|
|
43290
43313
|
vE(e, t, n, d, p, i, r, a);
|
|
43291
43314
|
} else {
|
|
43292
43315
|
const d = Qt(s);
|
|
43293
|
-
ls(d, o, n, r, a) &&
|
|
43316
|
+
ls(d, o, n, r, a) && Id(d, e, t, n, i, r, a);
|
|
43294
43317
|
const p = en(s, c);
|
|
43295
|
-
ls(p, o, n, r, a) &&
|
|
43318
|
+
ls(p, o, n, r, a) && Id(p, e, t, n, i, r, a);
|
|
43296
43319
|
}
|
|
43297
43320
|
}
|
|
43298
|
-
const
|
|
43299
|
-
function
|
|
43321
|
+
const DE = ["x", "y", "z"];
|
|
43322
|
+
function IE(s, e, t, n, i, r) {
|
|
43300
43323
|
wt.setBuffer(s._roots[e]);
|
|
43301
43324
|
const a = Nd(0, s, t, n, i, r);
|
|
43302
43325
|
return wt.clearBuffer(), a;
|
|
@@ -43308,7 +43331,7 @@ function Nd(s, e, t, n, i, r) {
|
|
|
43308
43331
|
const h = Ln(s, l), d = Wn(c, o);
|
|
43309
43332
|
return bE(e, t, n, h, d, i, r);
|
|
43310
43333
|
} else {
|
|
43311
|
-
const h = mu(s, l), d =
|
|
43334
|
+
const h = mu(s, l), d = DE[h], p = n.direction[d] >= 0;
|
|
43312
43335
|
let u, g;
|
|
43313
43336
|
p ? (u = Qt(s), g = en(s, l)) : (u = en(s, l), g = Qt(s));
|
|
43314
43337
|
const f = ls(u, a, n, i, r) ? Nd(u, e, t, n, i, r) : null;
|
|
@@ -43324,7 +43347,7 @@ function Nd(s, e, t, n, i, r) {
|
|
|
43324
43347
|
return f && x ? f.distance <= x.distance ? f : x : f || x || null;
|
|
43325
43348
|
}
|
|
43326
43349
|
}
|
|
43327
|
-
const Jo = /* @__PURE__ */ new mt(), vr = /* @__PURE__ */ new Yn(), br = /* @__PURE__ */ new Yn(), fa = /* @__PURE__ */ new
|
|
43350
|
+
const Jo = /* @__PURE__ */ new mt(), vr = /* @__PURE__ */ new Yn(), br = /* @__PURE__ */ new Yn(), fa = /* @__PURE__ */ new De(), Xf = /* @__PURE__ */ new xn(), Qo = /* @__PURE__ */ new xn();
|
|
43328
43351
|
function NE(s, e, t, n) {
|
|
43329
43352
|
wt.setBuffer(s._roots[e]);
|
|
43330
43353
|
const i = Bd(0, s, t, n);
|
|
@@ -43361,7 +43384,7 @@ function Bd(s, e, t, n, i = null) {
|
|
|
43361
43384
|
return Lt(c, r, Jo), !!(i.intersectsBox(Jo) && Bd(c, e, t, n, i) || (Lt(h, r, Jo), i.intersectsBox(Jo) && Bd(h, e, t, n, i)));
|
|
43362
43385
|
}
|
|
43363
43386
|
}
|
|
43364
|
-
const el = /* @__PURE__ */ new
|
|
43387
|
+
const el = /* @__PURE__ */ new De(), th = /* @__PURE__ */ new xn(), ma = /* @__PURE__ */ new xn(), BE = /* @__PURE__ */ new P(), kE = /* @__PURE__ */ new P(), UE = /* @__PURE__ */ new P(), OE = /* @__PURE__ */ new P();
|
|
43365
43388
|
function zE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
|
|
43366
43389
|
e.boundingBox || e.computeBoundingBox(), th.set(e.boundingBox.min, e.boundingBox.max, t), th.needsUpdate = !0;
|
|
43367
43390
|
const o = s.geometry, l = o.attributes.position, c = o.index, h = e.attributes.position, d = e.index, p = Gn.getPrimitive(), u = Gn.getPrimitive();
|
|
@@ -43379,7 +43402,7 @@ function zE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
|
|
|
43379
43402
|
boundsTraverseOrder: (R) => ma.distanceToBox(R),
|
|
43380
43403
|
intersectsBounds: (R, w, E) => E < b && E < a,
|
|
43381
43404
|
intersectsRange: (R, w) => {
|
|
43382
|
-
for (let E = R,
|
|
43405
|
+
for (let E = R, D = R + w; E < D; E++) {
|
|
43383
43406
|
const A = T.resolveTriangleIndex(E);
|
|
43384
43407
|
Gt(u, 3 * A, d, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
43385
43408
|
for (let B = _, S = _ + M; B < S; B++) {
|
|
@@ -43396,7 +43419,7 @@ function zE(s, e, t, n = {}, i = {}, r = 0, a = 1 / 0) {
|
|
|
43396
43419
|
const T = Ws(e);
|
|
43397
43420
|
for (let R = 0, w = T; R < w; R++) {
|
|
43398
43421
|
Gt(u, 3 * R, d, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
43399
|
-
for (let E = _,
|
|
43422
|
+
for (let E = _, D = _ + M; E < D; E++) {
|
|
43400
43423
|
const A = s.resolveTriangleIndex(E);
|
|
43401
43424
|
Gt(p, 3 * A, c, l), p.needsUpdate = !0;
|
|
43402
43425
|
const B = p.distanceToTriangle(u, g, x);
|
|
@@ -43420,7 +43443,7 @@ function HE(s, e, t, n) {
|
|
|
43420
43443
|
sh = !0;
|
|
43421
43444
|
const i = s._roots, r = e._roots;
|
|
43422
43445
|
let a, o = 0, l = 0;
|
|
43423
|
-
const c = new
|
|
43446
|
+
const c = new De().copy(t).invert();
|
|
43424
43447
|
for (let h = 0, d = i.length; h < d; h++) {
|
|
43425
43448
|
Ca.setBuffer(i[h]), l = 0;
|
|
43426
43449
|
const p = $i.getPrimitive();
|
|
@@ -43473,8 +43496,8 @@ function ei(s, e, t, n, i, r = 0, a = 0, o = 0, l = 0, c = null, h = !1) {
|
|
|
43473
43496
|
Lt(e, x, R), R.applyMatrix4(t);
|
|
43474
43497
|
const w = Qt(s), E = en(s, g);
|
|
43475
43498
|
Lt(w, u, yr), Lt(E, u, _r);
|
|
43476
|
-
const
|
|
43477
|
-
T =
|
|
43499
|
+
const D = R.intersectsBox(yr), A = R.intersectsBox(_r);
|
|
43500
|
+
T = D && ei(
|
|
43478
43501
|
e,
|
|
43479
43502
|
w,
|
|
43480
43503
|
n,
|
|
@@ -43502,8 +43525,8 @@ function ei(s, e, t, n, i, r = 0, a = 0, o = 0, l = 0, c = null, h = !1) {
|
|
|
43502
43525
|
} else {
|
|
43503
43526
|
const R = Qt(e), w = en(e, m);
|
|
43504
43527
|
Lt(R, x, nh), Lt(w, x, ih);
|
|
43505
|
-
const E = c.intersectsBox(nh),
|
|
43506
|
-
if (E &&
|
|
43528
|
+
const E = c.intersectsBox(nh), D = c.intersectsBox(ih);
|
|
43529
|
+
if (E && D)
|
|
43507
43530
|
T = ei(
|
|
43508
43531
|
s,
|
|
43509
43532
|
R,
|
|
@@ -43576,7 +43599,7 @@ function ei(s, e, t, n, i, r = 0, a = 0, o = 0, l = 0, c = null, h = !1) {
|
|
|
43576
43599
|
!h
|
|
43577
43600
|
), $i.releasePrimitive(A);
|
|
43578
43601
|
}
|
|
43579
|
-
else if (
|
|
43602
|
+
else if (D)
|
|
43580
43603
|
if (_)
|
|
43581
43604
|
T = ei(
|
|
43582
43605
|
s,
|
|
@@ -43740,7 +43763,7 @@ class gu {
|
|
|
43740
43763
|
raycastFirst(e, t = jn, n = 0, i = 1 / 0) {
|
|
43741
43764
|
const r = this._roots;
|
|
43742
43765
|
let a = null;
|
|
43743
|
-
const o = this.indirect ?
|
|
43766
|
+
const o = this.indirect ? IE : wE;
|
|
43744
43767
|
for (let l = 0, c = r.length; l < c; l++) {
|
|
43745
43768
|
const h = o(this, l, t, e, n, i);
|
|
43746
43769
|
h != null && (a == null || h.distance < a.distance) && (a = h);
|
|
@@ -44053,10 +44076,10 @@ class oC {
|
|
|
44053
44076
|
h && (R = h.getX(R)), lh[T] = a(R);
|
|
44054
44077
|
}
|
|
44055
44078
|
for (let T = 0; T < 3; T++) {
|
|
44056
|
-
const R = (T + 1) % 3, w = lh[T], E = lh[R],
|
|
44057
|
-
if (o.has(
|
|
44058
|
-
const A = M + T, B = o.get(
|
|
44059
|
-
f[A] = B, f[B] = A, o.delete(
|
|
44079
|
+
const R = (T + 1) % 3, w = lh[T], E = lh[R], D = `${E}_${w}`;
|
|
44080
|
+
if (o.has(D)) {
|
|
44081
|
+
const A = M + T, B = o.get(D);
|
|
44082
|
+
f[A] = B, f[B] = A, o.delete(D), x += 2, m.delete(B);
|
|
44060
44083
|
} else {
|
|
44061
44084
|
const A = `${w}_${E}`, B = M + T;
|
|
44062
44085
|
o.set(A, B), m.add(B);
|
|
@@ -44103,7 +44126,7 @@ class oC {
|
|
|
44103
44126
|
}
|
|
44104
44127
|
class Ul extends at {
|
|
44105
44128
|
constructor(...e) {
|
|
44106
|
-
super(...e), this.isBrush = !0, this._previousMatrix = new
|
|
44129
|
+
super(...e), this.isBrush = !0, this._previousMatrix = new De(), this._previousMatrix.elements.fill(0);
|
|
44107
44130
|
}
|
|
44108
44131
|
markUpdated() {
|
|
44109
44132
|
this._previousMatrix.copy(this.matrix);
|
|
@@ -44145,7 +44168,7 @@ function Qi(s, e = lC) {
|
|
|
44145
44168
|
const t = ch.angleTo(Jf), n = ch.angleTo(Qf), i = Math.PI - t - n;
|
|
44146
44169
|
return Math.abs(t) < e || Math.abs(n) < e || Math.abs(i) < e || s.a.distanceToSquared(s.b) < e || s.a.distanceToSquared(s.c) < e || s.b.distanceToSquared(s.c) < e;
|
|
44147
44170
|
}
|
|
44148
|
-
const hh = 1e-10, ga = 1e-10, cC = 1e-10, Si = new Zn(), Ut = new Zn(), Ei = new P(), dh = new P(), em = new P(), il = new
|
|
44171
|
+
const hh = 1e-10, ga = 1e-10, cC = 1e-10, Si = new Zn(), Ut = new Zn(), Ei = new P(), dh = new P(), em = new P(), il = new It(), uh = new Yn();
|
|
44149
44172
|
class hC {
|
|
44150
44173
|
constructor() {
|
|
44151
44174
|
this._pool = [], this._index = 0;
|
|
@@ -44382,7 +44405,7 @@ class nm {
|
|
|
44382
44405
|
n[e] || (n[e] = [], i.push(e)), n[e].push(t);
|
|
44383
44406
|
}
|
|
44384
44407
|
}
|
|
44385
|
-
const fC = 0, mC = 1, gC = 2, og = 3, xC = 4, lg = 5, cg = 6, Fn = new cs(), im = new
|
|
44408
|
+
const fC = 0, mC = 1, gC = 2, og = 3, xC = 4, lg = 5, cg = 6, Fn = new cs(), im = new De(), un = new vt(), Ci = new P(), sm = new tt(), rm = new tt(), am = new tt(), ph = new tt(), sl = new tt(), rl = new tt(), om = new Zn(), fh = new P(), mh = 1e-8, vC = 1e-15, Ts = -1, As = 1, yl = -2, _l = 2, Ta = 0, Ss = 1, vu = 2, bC = 1e-14;
|
|
44386
44409
|
let Ml = null;
|
|
44387
44410
|
function lm(s) {
|
|
44388
44411
|
Ml = s;
|
|
@@ -44580,14 +44603,14 @@ class EC {
|
|
|
44580
44603
|
this.enabled && lm(null);
|
|
44581
44604
|
}
|
|
44582
44605
|
}
|
|
44583
|
-
const ns = new
|
|
44606
|
+
const ns = new De(), Ol = new Ke(), Es = new vt(), al = new vt(), Zi = new vt(), ol = new vt(), ni = [], Is = [];
|
|
44584
44607
|
function CC(s) {
|
|
44585
44608
|
for (const e of s) return e;
|
|
44586
44609
|
}
|
|
44587
44610
|
function TC(s, e, t, n, i, r = {}) {
|
|
44588
44611
|
const { useGroups: a = !0 } = r, { aIntersections: o, bIntersections: l } = _C(s, e), c = [];
|
|
44589
44612
|
let h = null, d;
|
|
44590
|
-
return d = a ? 0 : -1, hm(s, e, o, t, !1, n, i, d), dm(s, e, o, t, !1, i, d), t.findIndex((p) => p !== cg && p !== lg) !== -1 && (d = a ? s.geometry.groups.length || 1 : -1, hm(e, s, l, t, !0, n, i, d), dm(e, s, l, t, !0, i, d)), ni.length = 0,
|
|
44613
|
+
return d = a ? 0 : -1, hm(s, e, o, t, !1, n, i, d), dm(s, e, o, t, !1, i, d), t.findIndex((p) => p !== cg && p !== lg) !== -1 && (d = a ? s.geometry.groups.length || 1 : -1, hm(e, s, l, t, !0, n, i, d), dm(e, s, l, t, !0, i, d)), ni.length = 0, Is.length = 0, {
|
|
44591
44614
|
groups: c,
|
|
44592
44615
|
materials: h
|
|
44593
44616
|
};
|
|
@@ -44600,22 +44623,22 @@ function hm(s, e, t, n, i, r, a, o = 0) {
|
|
|
44600
44623
|
const v = f[m], y = o === -1 ? 0 : c[v] + o, _ = 3 * v, M = h.getX(_ + 0), T = h.getX(_ + 1), R = h.getX(_ + 2);
|
|
44601
44624
|
Es.a.fromBufferAttribute(d, M).applyMatrix4(ns), Es.b.fromBufferAttribute(d, T).applyMatrix4(ns), Es.c.fromBufferAttribute(d, R).applyMatrix4(ns), r.reset(), r.initialize(Es);
|
|
44602
44625
|
const w = x[v];
|
|
44603
|
-
for (let
|
|
44604
|
-
const B = 3 * w[
|
|
44626
|
+
for (let D = 0, A = w.length; D < A; D++) {
|
|
44627
|
+
const B = 3 * w[D], S = u.getX(B + 0), U = u.getX(B + 1), H = u.getX(B + 2);
|
|
44605
44628
|
al.a.fromBufferAttribute(g, S), al.b.fromBufferAttribute(g, U), al.c.fromBufferAttribute(g, H), r.splitByTriangle(al);
|
|
44606
44629
|
}
|
|
44607
44630
|
const E = r.triangles;
|
|
44608
|
-
for (let
|
|
44609
|
-
const B = E[
|
|
44610
|
-
ni.length = 0,
|
|
44631
|
+
for (let D = 0, A = E.length; D < A; D++) {
|
|
44632
|
+
const B = E[D], S = r.coplanarTriangleUsed ? yC(B, p) : hg(B, p);
|
|
44633
|
+
ni.length = 0, Is.length = 0;
|
|
44611
44634
|
for (let U = 0, H = n.length; U < H; U++) {
|
|
44612
44635
|
const G = dg(n[U], S, i);
|
|
44613
|
-
G !== vu && (
|
|
44636
|
+
G !== vu && (Is.push(G), ni.push(a[U].getGroupAttrSet(y)));
|
|
44614
44637
|
}
|
|
44615
44638
|
if (ni.length !== 0) {
|
|
44616
44639
|
Es.getBarycoord(B.a, ol.a), Es.getBarycoord(B.b, ol.b), Es.getBarycoord(B.c, ol.c);
|
|
44617
44640
|
for (let U = 0, H = ni.length; U < H; U++) {
|
|
44618
|
-
const G = ni[U], Z =
|
|
44641
|
+
const G = ni[U], Z = Is[U] === Ta;
|
|
44619
44642
|
MC(v, ol, s.geometry, s.matrixWorld, Ol, G, l !== Z);
|
|
44620
44643
|
}
|
|
44621
44644
|
}
|
|
@@ -44635,10 +44658,10 @@ function dm(s, e, t, n, i, r, a = 0) {
|
|
|
44635
44658
|
const b = 3 * m, v = h.getX(b + 0), y = h.getX(b + 1), _ = h.getX(b + 2);
|
|
44636
44659
|
Zi.a.fromBufferAttribute(p, v).applyMatrix4(ns), Zi.b.fromBufferAttribute(p, y).applyMatrix4(ns), Zi.c.fromBufferAttribute(p, _).applyMatrix4(ns);
|
|
44637
44660
|
const M = hg(Zi, l);
|
|
44638
|
-
|
|
44661
|
+
Is.length = 0, ni.length = 0;
|
|
44639
44662
|
for (let T = 0, R = n.length; T < R; T++) {
|
|
44640
44663
|
const w = dg(n[T], M, i);
|
|
44641
|
-
w !== vu && (
|
|
44664
|
+
w !== vu && (Is.push(w), ni.push(r[T]));
|
|
44642
44665
|
}
|
|
44643
44666
|
for (; u.length > 0; ) {
|
|
44644
44667
|
const T = u.pop();
|
|
@@ -44647,11 +44670,11 @@ function dm(s, e, t, n, i, r, a = 0) {
|
|
|
44647
44670
|
w !== -1 && f.has(w) && (u.push(w), f.delete(w));
|
|
44648
44671
|
}
|
|
44649
44672
|
if (ni.length !== 0) {
|
|
44650
|
-
const R = 3 * T, w = h.getX(R + 0), E = h.getX(R + 1),
|
|
44651
|
-
if (Zi.a.fromBufferAttribute(p, w), Zi.b.fromBufferAttribute(p, E), Zi.c.fromBufferAttribute(p,
|
|
44673
|
+
const R = 3 * T, w = h.getX(R + 0), E = h.getX(R + 1), D = h.getX(R + 2), A = a === -1 ? 0 : c[T] + a;
|
|
44674
|
+
if (Zi.a.fromBufferAttribute(p, w), Zi.b.fromBufferAttribute(p, E), Zi.c.fromBufferAttribute(p, D), !Qi(Zi))
|
|
44652
44675
|
for (let B = 0, S = ni.length; B < S; B++) {
|
|
44653
|
-
const U =
|
|
44654
|
-
wC(w, E,
|
|
44676
|
+
const U = Is[B], H = ni[B].getGroupAttrSet(A), G = U === Ta;
|
|
44677
|
+
wC(w, E, D, d, s.matrixWorld, Ol, H, G !== o);
|
|
44655
44678
|
}
|
|
44656
44679
|
}
|
|
44657
44680
|
}
|
|
@@ -44800,7 +44823,7 @@ class LC {
|
|
|
44800
44823
|
this.triangleSplitter.reset();
|
|
44801
44824
|
}
|
|
44802
44825
|
}
|
|
44803
|
-
class
|
|
44826
|
+
class DC {
|
|
44804
44827
|
engine;
|
|
44805
44828
|
planeObjects = [];
|
|
44806
44829
|
planes = [];
|
|
@@ -45153,7 +45176,7 @@ class IC {
|
|
|
45153
45176
|
return t ? (t.visible = !t.visible, t.visible) : !1;
|
|
45154
45177
|
}
|
|
45155
45178
|
}
|
|
45156
|
-
class
|
|
45179
|
+
class IC {
|
|
45157
45180
|
engine;
|
|
45158
45181
|
isActive = !1;
|
|
45159
45182
|
box;
|
|
@@ -45176,7 +45199,7 @@ class DC {
|
|
|
45176
45199
|
* 初始化 CSG 剖切补面
|
|
45177
45200
|
*/
|
|
45178
45201
|
initCsgClipping() {
|
|
45179
|
-
this.csgClipping = new
|
|
45202
|
+
this.csgClipping = new DC(this.engine, {
|
|
45180
45203
|
updateThrottleTime: 150,
|
|
45181
45204
|
cacheExpireTime: 45e3
|
|
45182
45205
|
}), this.csgClipping.planes = this.engine.sectionPlane, this.csgClipping.init();
|
|
@@ -45246,11 +45269,11 @@ class DC {
|
|
|
45246
45269
|
min: this.box.min.clone(),
|
|
45247
45270
|
max: this.box.max.clone()
|
|
45248
45271
|
}, this.pickNormal.y == 0) {
|
|
45249
|
-
const n = new
|
|
45272
|
+
const n = new It();
|
|
45250
45273
|
n.setFromNormalAndCoplanarPoint(new P(0, 1, 0), this.pickPoint), this.plane = n;
|
|
45251
45274
|
} else {
|
|
45252
45275
|
let n = new P(this.engine.camera.position.x, this.pickPoint.y, this.engine.camera.position.z);
|
|
45253
|
-
const i = new
|
|
45276
|
+
const i = new It();
|
|
45254
45277
|
i.setFromNormalAndCoplanarPoint(n.clone().sub(this.pickPoint.clone()).setLength(1), this.pickPoint), this.plane = i;
|
|
45255
45278
|
}
|
|
45256
45279
|
}
|
|
@@ -45514,7 +45537,7 @@ class NC {
|
|
|
45514
45537
|
), v = u.clone().add(o.clone().multiplyScalar(-m / 2)).add(l.clone().multiplyScalar(-b / 2)), y = u.clone().add(o.clone().multiplyScalar(m / 2)).add(l.clone().multiplyScalar(-b / 2)), _ = u.clone().add(o.clone().multiplyScalar(m / 2)).add(l.clone().multiplyScalar(b / 2)), M = u.clone().add(o.clone().multiplyScalar(-m / 2)).add(l.clone().multiplyScalar(b / 2));
|
|
45515
45538
|
v.add(c.clone().multiplyScalar(e)), y.add(c.clone().multiplyScalar(e)), _.add(c.clone().multiplyScalar(e)), M.add(c.clone().multiplyScalar(e)), this.current_center = u.clone().add(c.clone().multiplyScalar(e)), T([v, y, _, M], c, "face");
|
|
45516
45539
|
function T(R, w, E) {
|
|
45517
|
-
const
|
|
45540
|
+
const D = new gt(), A = new Float32Array([
|
|
45518
45541
|
R[0].x,
|
|
45519
45542
|
R[0].y,
|
|
45520
45543
|
R[0].z,
|
|
@@ -45541,7 +45564,7 @@ class NC {
|
|
|
45541
45564
|
3
|
|
45542
45565
|
// 第二个三角形
|
|
45543
45566
|
];
|
|
45544
|
-
|
|
45567
|
+
D.setAttribute("position", new bt(A, 3)), D.setIndex(B);
|
|
45545
45568
|
let S = t.meshs.find((j) => j.name == E);
|
|
45546
45569
|
if (S == null) {
|
|
45547
45570
|
const j = new Vt({
|
|
@@ -45553,10 +45576,10 @@ class NC {
|
|
|
45553
45576
|
// 双面渲染
|
|
45554
45577
|
});
|
|
45555
45578
|
j.polygonOffset = !0, j.polygonOffsetFactor = 1, j.polygonOffsetUnits = 4;
|
|
45556
|
-
const ie = new at(
|
|
45579
|
+
const ie = new at(D, j);
|
|
45557
45580
|
ie.normal = w, ie.name = E, n.add(ie), t.meshs.push(ie);
|
|
45558
45581
|
} else
|
|
45559
|
-
S.geometry =
|
|
45582
|
+
S.geometry = D;
|
|
45560
45583
|
const U = new Float32Array([
|
|
45561
45584
|
R[0].x,
|
|
45562
45585
|
R[0].y,
|
|
@@ -45594,11 +45617,11 @@ class NC {
|
|
|
45594
45617
|
min: this.box.min.clone(),
|
|
45595
45618
|
max: this.box.max.clone()
|
|
45596
45619
|
}, this.center = this.current_center.clone(), this.pickNormal.y == 0) {
|
|
45597
|
-
const n = new
|
|
45620
|
+
const n = new It();
|
|
45598
45621
|
n.setFromNormalAndCoplanarPoint(new P(0, 1, 0), this.pickPoint), this.plane = n;
|
|
45599
45622
|
} else {
|
|
45600
45623
|
let n = new P(this.engine.camera.position.x, this.pickPoint.y, this.engine.camera.position.z);
|
|
45601
|
-
const i = new
|
|
45624
|
+
const i = new It();
|
|
45602
45625
|
i.setFromNormalAndCoplanarPoint(n.clone().sub(this.pickPoint.clone()).setLength(1), this.pickPoint), this.plane = i;
|
|
45603
45626
|
}
|
|
45604
45627
|
}
|
|
@@ -45652,23 +45675,23 @@ class kC {
|
|
|
45652
45675
|
currentClippingMode = "";
|
|
45653
45676
|
constructor(e) {
|
|
45654
45677
|
this.engine = e;
|
|
45655
|
-
let t = new
|
|
45678
|
+
let t = new It(new P(0, 0, 1), 1e5);
|
|
45656
45679
|
t.name = "前";
|
|
45657
|
-
let n = new
|
|
45680
|
+
let n = new It(new P(0, 0, 1), 1e5);
|
|
45658
45681
|
n.name = "左";
|
|
45659
|
-
let i = new
|
|
45682
|
+
let i = new It(new P(0, 0, 1), 1e5);
|
|
45660
45683
|
i.name = "后";
|
|
45661
|
-
let r = new
|
|
45684
|
+
let r = new It(new P(0, 0, 1), 1e5);
|
|
45662
45685
|
r.name = "右";
|
|
45663
|
-
let a = new
|
|
45686
|
+
let a = new It(new P(0, 0, 1), 1e5);
|
|
45664
45687
|
a.name = "顶";
|
|
45665
|
-
let o = new
|
|
45688
|
+
let o = new It(new P(0, 0, 1), 1e5);
|
|
45666
45689
|
o.name = "底";
|
|
45667
|
-
let l = new
|
|
45690
|
+
let l = new It(new P(0, 0, 1), 1e5);
|
|
45668
45691
|
l.name = "face", this.engine.sectionPlane = [t, n, i, r, a, o, l];
|
|
45669
45692
|
}
|
|
45670
45693
|
init() {
|
|
45671
|
-
this.sectionBox = new
|
|
45694
|
+
this.sectionBox = new IC(this.engine), this.sectionFace = new NC(this.engine);
|
|
45672
45695
|
}
|
|
45673
45696
|
// 自动缩放适用的视图比例
|
|
45674
45697
|
scaleBox() {
|
|
@@ -47365,7 +47388,7 @@ class JC {
|
|
|
47365
47388
|
h && new nu().load(
|
|
47366
47389
|
h,
|
|
47367
47390
|
(d) => {
|
|
47368
|
-
d.wrapS = d.wrapT =
|
|
47391
|
+
d.wrapS = d.wrapT = In, d.repeat.set(8, 8), c.map = d, c.needsUpdate = !0;
|
|
47369
47392
|
},
|
|
47370
47393
|
void 0,
|
|
47371
47394
|
() => {
|
|
@@ -47606,14 +47629,14 @@ class tT {
|
|
|
47606
47629
|
// 业务数据
|
|
47607
47630
|
models = [];
|
|
47608
47631
|
reactBoundingClientRect = { left: 0, top: 0 };
|
|
47609
|
-
version = "2.1.
|
|
47632
|
+
version = "2.1.5";
|
|
47610
47633
|
versionEl = null;
|
|
47611
47634
|
// 引擎容器
|
|
47612
47635
|
container;
|
|
47613
47636
|
constructor(e) {
|
|
47614
47637
|
if (this.options = e, this.container = document.getElementById(e.containerId), !this.container)
|
|
47615
47638
|
throw new Error(`Container ${e.containerId} not found`);
|
|
47616
|
-
this.engineModelModule = new bS(this), this.engineModelModule.init(), this.ai = new GC(this), this.deviceModule = new u_(this), this.deviceType = this.deviceModule.getDeviceType(), this.cameraModule = new d_(this), this.sceneModule = new h_(this), this.scene = this.sceneModule.scene, this.renderModule = new p_(this), this.renderer = this.renderModule.createRenderer(), this.camera = this.cameraModule.orthographicCamera, this.scene.camera = this.camera, this.controlModule = new A_(this), this.controlModule.switchDefaultMode(), this.controls = this.controlModule.orbitControls, this.composerModule = new H_(this), this.composerModule.init(), this.events = new uS(), this.engineStatus = new dS(this), this.engineStatus.init(), this.loaderModule = new hS(this), this.lightModule = new pS(this), this.lightModule.init(), this.viewCube = new RS(this), this.viewCube.init(), this.options.showViewCube == !1 && this.viewCube.hide(), this.octreeBox = LS(this), this.rangeScale = new
|
|
47639
|
+
this.engineModelModule = new bS(this), this.engineModelModule.init(), this.ai = new GC(this), this.deviceModule = new u_(this), this.deviceType = this.deviceModule.getDeviceType(), this.cameraModule = new d_(this), this.sceneModule = new h_(this), this.scene = this.sceneModule.scene, this.renderModule = new p_(this), this.renderer = this.renderModule.createRenderer(), this.camera = this.cameraModule.orthographicCamera, this.scene.camera = this.camera, this.controlModule = new A_(this), this.controlModule.switchDefaultMode(), this.controls = this.controlModule.orbitControls, this.composerModule = new H_(this), this.composerModule.init(), this.events = new uS(), this.engineStatus = new dS(this), this.engineStatus.init(), this.loaderModule = new hS(this), this.lightModule = new pS(this), this.lightModule.init(), this.viewCube = new RS(this), this.viewCube.init(), this.options.showViewCube == !1 && this.viewCube.hide(), this.octreeBox = LS(this), this.rangeScale = new DS(this), this.rangeScale.init(), this.clipping = new kC(this), this.clipping.init(), this.setting = new IS(this), this.setting.init(), this.engineModelModule.init(), this.handelBehaved = lu(this), this.modelMapperBatch = new FC(this), this.measure = new VS(this), this.modelToolModule = new mS(this), this.modelProperties = new zC(this), this.interactionModule = new fS(this), this.interactionModule.init(), this.interactionModule.active(), this.hoverHighLight = new Bl(this), this.modelEdge = new HC(this), this.modelTree = new UC(this), this.engineInfo = new OC(this), this.pathRoaming = new WC(this), this.pathRoaming.init(), this.minMap = new XC(this), this.grid = new qC(this), this.level = new YC(this), this.text = new $C(this), this.hdr = new KC(this), this.ground = new JC(this), this.ground.init(), this.worldToScreen = new _n(this.camera, this.renderer, this.scene), this.options.showStats && (this.stats = new wS(), this.stats.showPanel(0), this.stats.dom.style.position = "absolute", this.stats.dom.style.top = "0px", this.stats.dom.style.left = "0px", this.stats.dom.style.zIndex = "1000", this.container.appendChild(this.stats.dom));
|
|
47617
47640
|
let t = document.createElement("div");
|
|
47618
47641
|
t.className = "versionText", this.versionEl = t, this.updateVersionDisplay(), this.container.appendChild(t);
|
|
47619
47642
|
let n = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
@@ -53163,7 +53186,7 @@ class LT {
|
|
|
53163
53186
|
this._isDestroyed || (this.unsubscribeTheme && (this.unsubscribeTheme(), this.unsubscribeTheme = null), this.unsubscribeLocale && (this.unsubscribeLocale(), this.unsubscribeLocale = null), this.element.remove(), this._isDestroyed = !0);
|
|
53164
53187
|
}
|
|
53165
53188
|
}
|
|
53166
|
-
class
|
|
53189
|
+
class DT {
|
|
53167
53190
|
/** AI 聊天组件实例 */
|
|
53168
53191
|
aiChat = null;
|
|
53169
53192
|
/** Manager 注册表 */
|
|
@@ -53308,7 +53331,7 @@ class IT {
|
|
|
53308
53331
|
this.aiChat && (this.aiChat.destroy(), this.aiChat = null), this.initialized = !1;
|
|
53309
53332
|
}
|
|
53310
53333
|
}
|
|
53311
|
-
class
|
|
53334
|
+
class IT {
|
|
53312
53335
|
/** 事件监听器映射表 */
|
|
53313
53336
|
events = /* @__PURE__ */ new Map();
|
|
53314
53337
|
/**
|
|
@@ -53353,7 +53376,7 @@ class DT {
|
|
|
53353
53376
|
}
|
|
53354
53377
|
class NT {
|
|
53355
53378
|
/** 事件发射器 */
|
|
53356
|
-
eventEmitter = new
|
|
53379
|
+
eventEmitter = new IT();
|
|
53357
53380
|
/** 主容器元素 */
|
|
53358
53381
|
container = null;
|
|
53359
53382
|
/** 包装容器元素 */
|
|
@@ -53428,7 +53451,7 @@ class NT {
|
|
|
53428
53451
|
this.eventEmitter.clear();
|
|
53429
53452
|
}
|
|
53430
53453
|
}
|
|
53431
|
-
class
|
|
53454
|
+
class I4 {
|
|
53432
53455
|
container;
|
|
53433
53456
|
wrapper = null;
|
|
53434
53457
|
sizeEl = null;
|
|
@@ -53480,7 +53503,7 @@ class D4 {
|
|
|
53480
53503
|
init() {
|
|
53481
53504
|
this.container.innerHTML = "", this.wrapper = document.createElement("div"), this.wrapper.className = "bim-engine-wrapper", this.container.appendChild(this.wrapper);
|
|
53482
53505
|
const e = document.createElement("div");
|
|
53483
|
-
e.className = "bim-engine-version", e.textContent = "v1.5.
|
|
53506
|
+
e.className = "bim-engine-version", e.textContent = "v1.5.1", this.wrapper.appendChild(e), this.sizeEl = document.createElement("div"), this.sizeEl.className = "bim-engine-size", this.wrapper.appendChild(this.sizeEl), this.updateClientSizeDisplay(), this.bindSizeObserver(), this.registry.container = this.container, this.registry.wrapper = this.wrapper, this.engine = new sT(this.wrapper, this.registry), this.dialog = new Lg(this.wrapper, this.registry), this.toolbar = new Ag(this.wrapper, this.registry), this.buttonGroup = new Pg(this.wrapper, this.registry), this.rightKey = new ug(this.wrapper, this.registry), this.constructTreeBtn = new hT(this.wrapper, this.registry), this.measure = new uT(this.registry), this.sectionPlane = new fT(this.registry), this.sectionAxis = new gT(this.registry), this.sectionBox = new vT(this.registry), this.walkControl = new MT(this.registry), this.walkControl.init(), this.engineInfo = new wT(this.registry), this.engineInfo.init(), this.registry.engine3d = this.engine, this.registry.dialog = this.dialog, this.registry.toolbar = this.toolbar, this.registry.buttonGroup = this.buttonGroup, this.registry.rightKey = this.rightKey, this.registry.constructTree = this.constructTreeBtn, this.registry.measure = this.measure, this.registry.sectionPlane = this.sectionPlane, this.registry.sectionAxis = this.sectionAxis, this.registry.sectionBox = this.sectionBox, this.registry.walkControl = this.walkControl, this.registry.engineInfo = this.engineInfo, this.componentDetail = new RT(this.registry), this.registry.componentDetail = this.componentDetail, this.componentDetail.init(), this.aiChat = new DT(this.registry), this.registry.aiChat = this.aiChat, this.aiChat.init(), this.setting = new AT(this.registry), this.registry.setting = this.setting, this.setting.init(), this.updateTheme(lt.getTheme()), lt.subscribe((t) => {
|
|
53484
53507
|
this.updateTheme(t);
|
|
53485
53508
|
});
|
|
53486
53509
|
}
|
|
@@ -55678,6 +55701,6 @@ BIM Engine SDK 提供了完整的 3D BIM 模型渲染和交互能力,主要特
|
|
|
55678
55701
|
default: m4
|
|
55679
55702
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
55680
55703
|
export {
|
|
55681
|
-
|
|
55704
|
+
I4 as BimEngine
|
|
55682
55705
|
};
|
|
55683
55706
|
//# sourceMappingURL=iflow-engine.es.js.map
|