shop-components 0.1.14 → 0.1.16
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/shop-components.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2010-2024 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
|
-
const Ad = "164", Vs = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, $s = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, QS = 0, py = 1, VS = 2, r2 = 1, $S = 2, Rn = 3, Kt = 0, Ct = 1, st = 2, Dt = 0,
|
|
6
|
+
const Ad = "164", Vs = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, $s = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, QS = 0, py = 1, VS = 2, r2 = 1, $S = 2, Rn = 3, Kt = 0, Ct = 1, st = 2, Dt = 0, jr = 1, vf = 2, gy = 3, my = 4, A_ = 5, Is = 100, e_ = 101, t_ = 102, i_ = 103, n_ = 104, r_ = 200, s_ = 201, o_ = 202, a_ = 203, sm = 204, om = 205, l_ = 206, c_ = 207, h_ = 208, u_ = 209, f_ = 210, d_ = 211, p_ = 212, g_ = 213, m_ = 214, v_ = 0, y_ = 1, w_ = 2, yf = 3, C_ = 4, x_ = 5, I_ = 6, b_ = 7, s2 = 0, S_ = 1, __ = 2, Qn = 0, o2 = 1, a2 = 2, l2 = 3, W0 = 4, M_ = 5, c2 = 6, h2 = 7, vy = "attached", P_ = "detached", u2 = 300, Da = 301, Ea = 302, La = 303, am = 304, ed = 306, kt = 1e3, ot = 1001, xc = 1002, ue = 1003, J0 = 1004, la = 1005, we = 1006, ic = 1007, Wi = 1008, T_ = 1008, Vi = 1009, lm = 1010, f2 = 1011, Z0 = 1012, nc = 1013, Zi = 1014, Se = 1015, Oe = 1016, d2 = 1017, p2 = 1018, kc = 1020, D_ = 35902, E_ = 1021, L_ = 1022, _e = 1023, O_ = 1024, q_ = 1025, ma = 1026, Ic = 1027, Oa = 1028, X0 = 1029, Q0 = 1030, td = 1031, bc = 1033, Gd = 33776, Yd = 33777, Hd = 33778, Ud = 33779, yy = 35840, wy = 35841, Cy = 35842, xy = 35843, Iy = 36196, by = 37492, Sy = 37496, _y = 37808, My = 37809, Py = 37810, Ty = 37811, Dy = 37812, Ey = 37813, Ly = 37814, Oy = 37815, qy = 37816, Ny = 37817, By = 37818, zy = 37819, Ry = 37820, ky = 37821, Wd = 36492, jy = 36494, Ky = 36495, N_ = 36283, Fy = 36284, Gy = 36285, Yy = 36286, qa = 2300, Ns = 2301, Jd = 2302, Hy = 2400, Uy = 2401, Wy = 2402, B_ = 2500, z_ = 0, g2 = 1, cm = 2, R_ = 3200, V0 = 3201, m2 = 0, k_ = 1, Fn = "", ke = "srgb", lt = "srgb-linear", $0 = "display-p3", id = "display-p3-linear", wf = "linear", Ee = "srgb", Cf = "rec709", xf = "p3", Ao = 7680, Jy = 519, j_ = 512, K_ = 513, F_ = 514, v2 = 515, G_ = 516, Y_ = 517, H_ = 518, U_ = 519, hm = 35044, Zy = "300 es", Hn = 2e3, If = 2001;
|
|
7
7
|
class Fs {
|
|
8
8
|
addEventListener(A, e) {
|
|
9
9
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -1696,37 +1696,37 @@ class ve {
|
|
|
1696
1696
|
intersectsTriangle(A) {
|
|
1697
1697
|
if (this.isEmpty())
|
|
1698
1698
|
return !1;
|
|
1699
|
-
this.getCenter(dl), rh.subVectors(this.max, dl), to.subVectors(A.a, dl), io.subVectors(A.b, dl), no.subVectors(A.c, dl),
|
|
1699
|
+
this.getCenter(dl), rh.subVectors(this.max, dl), to.subVectors(A.a, dl), io.subVectors(A.b, dl), no.subVectors(A.c, dl), lr.subVectors(io, to), cr.subVectors(no, io), es.subVectors(to, no);
|
|
1700
1700
|
let e = [
|
|
1701
|
-
0,
|
|
1702
|
-
-ar.z,
|
|
1703
|
-
ar.y,
|
|
1704
1701
|
0,
|
|
1705
1702
|
-lr.z,
|
|
1706
1703
|
lr.y,
|
|
1707
1704
|
0,
|
|
1705
|
+
-cr.z,
|
|
1706
|
+
cr.y,
|
|
1707
|
+
0,
|
|
1708
1708
|
-es.z,
|
|
1709
1709
|
es.y,
|
|
1710
|
-
ar.z,
|
|
1711
|
-
0,
|
|
1712
|
-
-ar.x,
|
|
1713
1710
|
lr.z,
|
|
1714
1711
|
0,
|
|
1715
1712
|
-lr.x,
|
|
1713
|
+
cr.z,
|
|
1714
|
+
0,
|
|
1715
|
+
-cr.x,
|
|
1716
1716
|
es.z,
|
|
1717
1717
|
0,
|
|
1718
1718
|
-es.x,
|
|
1719
|
-
-ar.y,
|
|
1720
|
-
ar.x,
|
|
1721
|
-
0,
|
|
1722
1719
|
-lr.y,
|
|
1723
1720
|
lr.x,
|
|
1724
1721
|
0,
|
|
1722
|
+
-cr.y,
|
|
1723
|
+
cr.x,
|
|
1724
|
+
0,
|
|
1725
1725
|
-es.y,
|
|
1726
1726
|
es.x,
|
|
1727
1727
|
0
|
|
1728
1728
|
];
|
|
1729
|
-
return !$d(e, to, io, no, rh) || (e = [1, 0, 0, 0, 1, 0, 0, 0, 1], !$d(e, to, io, no, rh)) ? !1 : (sh.crossVectors(
|
|
1729
|
+
return !$d(e, to, io, no, rh) || (e = [1, 0, 0, 0, 1, 0, 0, 0, 1], !$d(e, to, io, no, rh)) ? !1 : (sh.crossVectors(lr, cr), e = [sh.x, sh.y, sh.z], $d(e, to, io, no, rh));
|
|
1730
1730
|
}
|
|
1731
1731
|
clampPoint(A, e) {
|
|
1732
1732
|
return e.copy(A).clamp(this.min, this.max);
|
|
@@ -1762,7 +1762,7 @@ const Tn = [
|
|
|
1762
1762
|
/* @__PURE__ */ new O(),
|
|
1763
1763
|
/* @__PURE__ */ new O(),
|
|
1764
1764
|
/* @__PURE__ */ new O()
|
|
1765
|
-
], Ni = /* @__PURE__ */ new O(), nh = /* @__PURE__ */ new ve(), to = /* @__PURE__ */ new O(), io = /* @__PURE__ */ new O(), no = /* @__PURE__ */ new O(),
|
|
1765
|
+
], Ni = /* @__PURE__ */ new O(), nh = /* @__PURE__ */ new ve(), to = /* @__PURE__ */ new O(), io = /* @__PURE__ */ new O(), no = /* @__PURE__ */ new O(), lr = /* @__PURE__ */ new O(), cr = /* @__PURE__ */ new O(), es = /* @__PURE__ */ new O(), dl = /* @__PURE__ */ new O(), rh = /* @__PURE__ */ new O(), sh = /* @__PURE__ */ new O(), ts = /* @__PURE__ */ new O();
|
|
1766
1766
|
function $d(n, A, e, t, i) {
|
|
1767
1767
|
for (let r = 0, s = n.length - 3; r <= s; r += 3) {
|
|
1768
1768
|
ts.fromArray(n, r);
|
|
@@ -1847,7 +1847,7 @@ class hi {
|
|
|
1847
1847
|
return new this.constructor().copy(this);
|
|
1848
1848
|
}
|
|
1849
1849
|
}
|
|
1850
|
-
const Dn = /* @__PURE__ */ new O(), ep = /* @__PURE__ */ new O(), oh = /* @__PURE__ */ new O(),
|
|
1850
|
+
const Dn = /* @__PURE__ */ new O(), ep = /* @__PURE__ */ new O(), oh = /* @__PURE__ */ new O(), hr = /* @__PURE__ */ new O(), tp = /* @__PURE__ */ new O(), ah = /* @__PURE__ */ new O(), ip = /* @__PURE__ */ new O();
|
|
1851
1851
|
class Gs {
|
|
1852
1852
|
constructor(A = new O(), e = new O(0, 0, -1)) {
|
|
1853
1853
|
this.origin = A, this.direction = e;
|
|
@@ -1880,8 +1880,8 @@ class Gs {
|
|
|
1880
1880
|
return e < 0 ? this.origin.distanceToSquared(A) : (Dn.copy(this.origin).addScaledVector(this.direction, e), Dn.distanceToSquared(A));
|
|
1881
1881
|
}
|
|
1882
1882
|
distanceSqToSegment(A, e, t, i) {
|
|
1883
|
-
ep.copy(A).add(e).multiplyScalar(0.5), oh.copy(e).sub(A).normalize(),
|
|
1884
|
-
const r = A.distanceTo(e) * 0.5, s = -this.direction.dot(oh), o =
|
|
1883
|
+
ep.copy(A).add(e).multiplyScalar(0.5), oh.copy(e).sub(A).normalize(), hr.copy(this.origin).sub(ep);
|
|
1884
|
+
const r = A.distanceTo(e) * 0.5, s = -this.direction.dot(oh), o = hr.dot(this.direction), a = -hr.dot(oh), l = hr.lengthSq(), u = Math.abs(1 - s * s);
|
|
1885
1885
|
let c, h, f, p;
|
|
1886
1886
|
if (u > 0)
|
|
1887
1887
|
if (c = s * a - o, h = s * o - a, p = r * u, c >= 0)
|
|
@@ -1944,14 +1944,14 @@ class Gs {
|
|
|
1944
1944
|
o = -1, s = -s;
|
|
1945
1945
|
else
|
|
1946
1946
|
return null;
|
|
1947
|
-
|
|
1948
|
-
const a = o * this.direction.dot(ah.crossVectors(
|
|
1947
|
+
hr.subVectors(this.origin, A);
|
|
1948
|
+
const a = o * this.direction.dot(ah.crossVectors(hr, ah));
|
|
1949
1949
|
if (a < 0)
|
|
1950
1950
|
return null;
|
|
1951
|
-
const l = o * this.direction.dot(tp.cross(
|
|
1951
|
+
const l = o * this.direction.dot(tp.cross(hr));
|
|
1952
1952
|
if (l < 0 || a + l > s)
|
|
1953
1953
|
return null;
|
|
1954
|
-
const u = -o *
|
|
1954
|
+
const u = -o * hr.dot(ip);
|
|
1955
1955
|
return u < 0 ? null : this.at(u / s, r);
|
|
1956
1956
|
}
|
|
1957
1957
|
applyMatrix4(A) {
|
|
@@ -2096,7 +2096,7 @@ class zA {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
lookAt(A, e, t) {
|
|
2098
2098
|
const i = this.elements;
|
|
2099
|
-
return ei.subVectors(A, e), ei.lengthSq() === 0 && (ei.z = 1), ei.normalize(),
|
|
2099
|
+
return ei.subVectors(A, e), ei.lengthSq() === 0 && (ei.z = 1), ei.normalize(), ur.crossVectors(t, ei), ur.lengthSq() === 0 && (Math.abs(t.z) === 1 ? ei.x += 1e-4 : ei.z += 1e-4, ei.normalize(), ur.crossVectors(t, ei)), ur.normalize(), lh.crossVectors(ei, ur), i[0] = ur.x, i[4] = lh.x, i[8] = ei.x, i[1] = ur.y, i[5] = lh.y, i[9] = ei.y, i[2] = ur.z, i[6] = lh.z, i[10] = ei.z, this;
|
|
2100
2100
|
}
|
|
2101
2101
|
multiply(A) {
|
|
2102
2102
|
return this.multiplyMatrices(this, A);
|
|
@@ -2352,7 +2352,7 @@ class zA {
|
|
|
2352
2352
|
return A[e] = t[0], A[e + 1] = t[1], A[e + 2] = t[2], A[e + 3] = t[3], A[e + 4] = t[4], A[e + 5] = t[5], A[e + 6] = t[6], A[e + 7] = t[7], A[e + 8] = t[8], A[e + 9] = t[9], A[e + 10] = t[10], A[e + 11] = t[11], A[e + 12] = t[12], A[e + 13] = t[13], A[e + 14] = t[14], A[e + 15] = t[15], A;
|
|
2353
2353
|
}
|
|
2354
2354
|
}
|
|
2355
|
-
const ro = /* @__PURE__ */ new O(), Bi = /* @__PURE__ */ new zA(), vM = /* @__PURE__ */ new O(0, 0, 0), yM = /* @__PURE__ */ new O(1, 1, 1),
|
|
2355
|
+
const ro = /* @__PURE__ */ new O(), Bi = /* @__PURE__ */ new zA(), vM = /* @__PURE__ */ new O(0, 0, 0), yM = /* @__PURE__ */ new O(1, 1, 1), ur = /* @__PURE__ */ new O(), lh = /* @__PURE__ */ new O(), ei = /* @__PURE__ */ new O(), ew = /* @__PURE__ */ new zA(), tw = /* @__PURE__ */ new li();
|
|
2356
2356
|
class wn {
|
|
2357
2357
|
constructor(A = 0, e = 0, t = 0, i = wn.DEFAULT_ORDER) {
|
|
2358
2358
|
this.isEuler = !0, this._x = A, this._y = e, this._z = t, this._order = i;
|
|
@@ -3032,7 +3032,7 @@ const C2 = {
|
|
|
3032
3032
|
whitesmoke: 16119285,
|
|
3033
3033
|
yellow: 16776960,
|
|
3034
3034
|
yellowgreen: 10145074
|
|
3035
|
-
},
|
|
3035
|
+
}, fr = { h: 0, s: 0, l: 0 }, hh = { h: 0, s: 0, l: 0 };
|
|
3036
3036
|
function lp(n, A, e) {
|
|
3037
3037
|
return e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? n + (A - n) * 6 * e : e < 1 / 2 ? A : e < 2 / 3 ? n + (A - n) * 6 * (2 / 3 - e) : n;
|
|
3038
3038
|
}
|
|
@@ -3182,7 +3182,7 @@ let YA = class {
|
|
|
3182
3182
|
return A !== ke ? `color(${A} ${e.toFixed(3)} ${t.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(e * 255)},${Math.round(t * 255)},${Math.round(i * 255)})`;
|
|
3183
3183
|
}
|
|
3184
3184
|
offsetHSL(A, e, t) {
|
|
3185
|
-
return this.getHSL(
|
|
3185
|
+
return this.getHSL(fr), this.setHSL(fr.h + A, fr.s + e, fr.l + t);
|
|
3186
3186
|
}
|
|
3187
3187
|
add(A) {
|
|
3188
3188
|
return this.r += A.r, this.g += A.g, this.b += A.b, this;
|
|
@@ -3209,8 +3209,8 @@ let YA = class {
|
|
|
3209
3209
|
return this.r = A.r + (e.r - A.r) * t, this.g = A.g + (e.g - A.g) * t, this.b = A.b + (e.b - A.b) * t, this;
|
|
3210
3210
|
}
|
|
3211
3211
|
lerpHSL(A, e) {
|
|
3212
|
-
this.getHSL(
|
|
3213
|
-
const t = rc(
|
|
3212
|
+
this.getHSL(fr), A.getHSL(hh);
|
|
3213
|
+
const t = rc(fr.h, hh.h, e), i = rc(fr.s, hh.s, e), r = rc(fr.l, hh.l, e);
|
|
3214
3214
|
return this.setHSL(t, i, r), this;
|
|
3215
3215
|
}
|
|
3216
3216
|
setFromVector3(A) {
|
|
@@ -3244,7 +3244,7 @@ YA.NAMES = C2;
|
|
|
3244
3244
|
let bM = 0;
|
|
3245
3245
|
class mn extends Fs {
|
|
3246
3246
|
constructor() {
|
|
3247
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: bM++ }), this.uuid = Ti(), this.name = "", this.type = "Material", this.blending =
|
|
3247
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: bM++ }), this.uuid = Ti(), this.name = "", this.type = "Material", this.blending = jr, this.side = Kt, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = sm, this.blendDst = om, this.blendEquation = Is, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new YA(0, 0, 0), this.blendAlpha = 0, this.depthFunc = yf, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Jy, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ao, this.stencilZFail = Ao, this.stencilZPass = Ao, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3248
3248
|
}
|
|
3249
3249
|
get alphaTest() {
|
|
3250
3250
|
return this._alphaTest;
|
|
@@ -3290,7 +3290,7 @@ class mn extends Fs {
|
|
|
3290
3290
|
generator: "Material.toJSON"
|
|
3291
3291
|
}
|
|
3292
3292
|
};
|
|
3293
|
-
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen !== void 0 && (t.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (t.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (t.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (t.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (t.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(A).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(A).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(A).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (t.dispersion = this.dispersion), this.iridescence !== void 0 && (t.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (t.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (t.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (t.iridescenceMap = this.iridescenceMap.toJSON(A).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (t.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(A).uuid), this.anisotropy !== void 0 && (t.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (t.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (t.anisotropyMap = this.anisotropyMap.toJSON(A).uuid), this.map && this.map.isTexture && (t.map = this.map.toJSON(A).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(A).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(A).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(A).uuid, t.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(A).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(A).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(A).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(A).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(A).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(A).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(A).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(A).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (t.specularIntensityMap = this.specularIntensityMap.toJSON(A).uuid), this.specularColorMap && this.specularColorMap.isTexture && (t.specularColorMap = this.specularColorMap.toJSON(A).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(A).uuid, this.combine !== void 0 && (t.combine = this.combine)), this.envMapRotation !== void 0 && (t.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (t.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (t.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(A).uuid), this.transmission !== void 0 && (t.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (t.transmissionMap = this.transmissionMap.toJSON(A).uuid), this.thickness !== void 0 && (t.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (t.thicknessMap = this.thicknessMap.toJSON(A).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (t.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (t.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (t.size = this.size), this.shadowSide !== null && (t.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !==
|
|
3293
|
+
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen !== void 0 && (t.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (t.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (t.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (t.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (t.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(A).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(A).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(A).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (t.dispersion = this.dispersion), this.iridescence !== void 0 && (t.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (t.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (t.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (t.iridescenceMap = this.iridescenceMap.toJSON(A).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (t.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(A).uuid), this.anisotropy !== void 0 && (t.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (t.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (t.anisotropyMap = this.anisotropyMap.toJSON(A).uuid), this.map && this.map.isTexture && (t.map = this.map.toJSON(A).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(A).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(A).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(A).uuid, t.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(A).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(A).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(A).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(A).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(A).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(A).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(A).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(A).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (t.specularIntensityMap = this.specularIntensityMap.toJSON(A).uuid), this.specularColorMap && this.specularColorMap.isTexture && (t.specularColorMap = this.specularColorMap.toJSON(A).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(A).uuid, this.combine !== void 0 && (t.combine = this.combine)), this.envMapRotation !== void 0 && (t.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (t.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (t.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(A).uuid), this.transmission !== void 0 && (t.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (t.transmissionMap = this.transmissionMap.toJSON(A).uuid), this.thickness !== void 0 && (t.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (t.thicknessMap = this.thicknessMap.toJSON(A).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (t.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (t.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (t.size = this.size), this.shadowSide !== null && (t.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !== jr && (t.blending = this.blending), this.side !== Kt && (t.side = this.side), this.vertexColors === !0 && (t.vertexColors = !0), this.opacity < 1 && (t.opacity = this.opacity), this.transparent === !0 && (t.transparent = !0), this.blendSrc !== sm && (t.blendSrc = this.blendSrc), this.blendDst !== om && (t.blendDst = this.blendDst), this.blendEquation !== Is && (t.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (t.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (t.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (t.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (t.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (t.blendAlpha = this.blendAlpha), this.depthFunc !== yf && (t.depthFunc = this.depthFunc), this.depthTest === !1 && (t.depthTest = this.depthTest), this.depthWrite === !1 && (t.depthWrite = this.depthWrite), this.colorWrite === !1 && (t.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (t.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Jy && (t.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (t.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (t.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== Ao && (t.stencilFail = this.stencilFail), this.stencilZFail !== Ao && (t.stencilZFail = this.stencilZFail), this.stencilZPass !== Ao && (t.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (t.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (t.rotation = this.rotation), this.polygonOffset === !0 && (t.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (t.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (t.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (t.linewidth = this.linewidth), this.dashSize !== void 0 && (t.dashSize = this.dashSize), this.gapSize !== void 0 && (t.gapSize = this.gapSize), this.scale !== void 0 && (t.scale = this.scale), this.dithering === !0 && (t.dithering = !0), this.alphaTest > 0 && (t.alphaTest = this.alphaTest), this.alphaHash === !0 && (t.alphaHash = !0), this.alphaToCoverage === !0 && (t.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (t.premultipliedAlpha = !0), this.forceSinglePass === !0 && (t.forceSinglePass = !0), this.wireframe === !0 && (t.wireframe = !0), this.wireframeLinewidth > 1 && (t.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (t.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (t.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (t.flatShading = !0), this.visible === !1 && (t.visible = !1), this.toneMapped === !1 && (t.toneMapped = !1), this.fog === !1 && (t.fog = !1), Object.keys(this.userData).length > 0 && (t.userData = this.userData);
|
|
3294
3294
|
function i(r) {
|
|
3295
3295
|
const s = [];
|
|
3296
3296
|
for (const o in r) {
|
|
@@ -4086,7 +4086,7 @@ class S2 extends be {
|
|
|
4086
4086
|
return new this.constructor().copy(this);
|
|
4087
4087
|
}
|
|
4088
4088
|
}
|
|
4089
|
-
const
|
|
4089
|
+
const dr = /* @__PURE__ */ new O(), dw = /* @__PURE__ */ new dA(), pw = /* @__PURE__ */ new dA();
|
|
4090
4090
|
class yt extends S2 {
|
|
4091
4091
|
constructor(A = 50, e = 1, t = 0.1, i = 2e3) {
|
|
4092
4092
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = A, this.zoom = 1, this.near = t, this.far = i, this.focus = 10, this.aspect = e, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
@@ -4129,7 +4129,7 @@ class yt extends S2 {
|
|
|
4129
4129
|
* Sets minTarget and maxTarget to the coordinates of the lower-left and upper-right corners of the view rectangle.
|
|
4130
4130
|
*/
|
|
4131
4131
|
getViewBounds(A, e, t) {
|
|
4132
|
-
|
|
4132
|
+
dr.set(-1, -1, 0.5).applyMatrix4(this.projectionMatrixInverse), e.set(dr.x, dr.y).multiplyScalar(-A / dr.z), dr.set(1, 1, 0.5).applyMatrix4(this.projectionMatrixInverse), t.set(dr.x, dr.y).multiplyScalar(-A / dr.z);
|
|
4133
4133
|
}
|
|
4134
4134
|
/**
|
|
4135
4135
|
* Computes the width and height of the camera's viewable rectangle at a given distance along the viewing direction.
|
|
@@ -4573,7 +4573,7 @@ function zM(n) {
|
|
|
4573
4573
|
update: s
|
|
4574
4574
|
};
|
|
4575
4575
|
}
|
|
4576
|
-
class
|
|
4576
|
+
class rr extends Re {
|
|
4577
4577
|
constructor(A = 1, e = 1, t = 1, i = 1) {
|
|
4578
4578
|
super(), this.type = "PlaneGeometry", this.parameters = {
|
|
4579
4579
|
width: A,
|
|
@@ -4600,7 +4600,7 @@ class nr extends Re {
|
|
|
4600
4600
|
return super.copy(A), this.parameters = Object.assign({}, A.parameters), this;
|
|
4601
4601
|
}
|
|
4602
4602
|
static fromJSON(A) {
|
|
4603
|
-
return new
|
|
4603
|
+
return new rr(A.width, A.height, A.widthSegments, A.heightSegments);
|
|
4604
4604
|
}
|
|
4605
4605
|
}
|
|
4606
4606
|
var RM = `#ifdef USE_ALPHAHASH
|
|
@@ -8747,7 +8747,7 @@ function vP(n, A, e, t, i, r, s) {
|
|
|
8747
8747
|
return this.uniforms.envMap.value;
|
|
8748
8748
|
}
|
|
8749
8749
|
}), i.update(u)), rs.copy(v.backgroundRotation), rs.x *= -1, rs.y *= -1, rs.z *= -1, w.isCubeTexture && w.isRenderTargetTexture === !1 && (rs.y *= -1, rs.z *= -1), u.material.uniforms.envMap.value = w, u.material.uniforms.flipEnvMap.value = w.isCubeTexture && w.isRenderTargetTexture === !1 ? -1 : 1, u.material.uniforms.backgroundBlurriness.value = v.backgroundBlurriness, u.material.uniforms.backgroundIntensity.value = v.backgroundIntensity, u.material.uniforms.backgroundRotation.value.setFromMatrix4(mP.makeRotationFromEuler(rs)), u.material.toneMapped = Ie.getTransfer(w.colorSpace) !== Ee, (c !== w || h !== w.version || f !== n.toneMapping) && (u.material.needsUpdate = !0, c = w, h = w.version, f = n.toneMapping), u.layers.enableAll(), y.unshift(u, u.geometry, u.material, 0, 0, null)) : w && w.isTexture && (l === void 0 && (l = new De(
|
|
8750
|
-
new
|
|
8750
|
+
new rr(2, 2),
|
|
8751
8751
|
new $e({
|
|
8752
8752
|
name: "BackgroundMaterial",
|
|
8753
8753
|
uniforms: za(fn.background.uniforms),
|
|
@@ -11134,7 +11134,7 @@ function UT(n, A, e, t, i, r, s) {
|
|
|
11134
11134
|
transmissionMap: E,
|
|
11135
11135
|
thicknessMap: Q,
|
|
11136
11136
|
gradientMap: Z,
|
|
11137
|
-
opaque: b.transparent === !1 && b.blending ===
|
|
11137
|
+
opaque: b.transparent === !1 && b.blending === jr && b.alphaToCoverage === !1,
|
|
11138
11138
|
alphaMap: hA,
|
|
11139
11139
|
alphaTest: MA,
|
|
11140
11140
|
alphaHash: RA,
|
|
@@ -11961,7 +11961,7 @@ function rD(n) {
|
|
|
11961
11961
|
if (E !== m || NA !== _) {
|
|
11962
11962
|
if ((d !== Is || v !== Is) && (n.blendEquation(n.FUNC_ADD), d = Is, v = Is), NA)
|
|
11963
11963
|
switch (E) {
|
|
11964
|
-
case
|
|
11964
|
+
case jr:
|
|
11965
11965
|
n.blendFuncSeparate(n.ONE, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
11966
11966
|
break;
|
|
11967
11967
|
case vf:
|
|
@@ -11979,7 +11979,7 @@ function rD(n) {
|
|
|
11979
11979
|
}
|
|
11980
11980
|
else
|
|
11981
11981
|
switch (E) {
|
|
11982
|
-
case
|
|
11982
|
+
case jr:
|
|
11983
11983
|
n.blendFuncSeparate(n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
11984
11984
|
break;
|
|
11985
11985
|
case vf:
|
|
@@ -12004,7 +12004,7 @@ function rD(n) {
|
|
|
12004
12004
|
function vA(E, Q) {
|
|
12005
12005
|
E.side === st ? J(n.CULL_FACE) : V(n.CULL_FACE);
|
|
12006
12006
|
let Z = E.side === Ct;
|
|
12007
|
-
Q && (Z = !Z), mA(Z), E.blending ===
|
|
12007
|
+
Q && (Z = !Z), mA(Z), E.blending === jr && E.transparent === !1 ? TA(Dt) : TA(E.blending, E.blendEquation, E.blendSrc, E.blendDst, E.blendEquationAlpha, E.blendSrcAlpha, E.blendDstAlpha, E.blendColor, E.blendAlpha, E.premultipliedAlpha), r.setFunc(E.depthFunc), r.setTest(E.depthTest), r.setMask(E.depthWrite), i.setMask(E.colorWrite);
|
|
12008
12008
|
const hA = E.stencilWrite;
|
|
12009
12009
|
s.setTest(hA), hA && (s.setMask(E.stencilWriteMask), s.setFunc(E.stencilFunc, E.stencilRef, E.stencilFuncMask), s.setOp(E.stencilFail, E.stencilZFail, E.stencilZPass)), gA(E.polygonOffset, E.polygonOffsetFactor, E.polygonOffsetUnits), E.alphaToCoverage === !0 ? V(n.SAMPLE_ALPHA_TO_COVERAGE) : J(n.SAMPLE_ALPHA_TO_COVERAGE);
|
|
12010
12010
|
}
|
|
@@ -12946,7 +12946,7 @@ class uD {
|
|
|
12946
12946
|
depthHeight: { value: t.w }
|
|
12947
12947
|
}
|
|
12948
12948
|
});
|
|
12949
|
-
this.mesh = new De(new
|
|
12949
|
+
this.mesh = new De(new rr(20, 20), i);
|
|
12950
12950
|
}
|
|
12951
12951
|
A.render(this.mesh, e);
|
|
12952
12952
|
}
|
|
@@ -16194,7 +16194,7 @@ function fE(n) {
|
|
|
16194
16194
|
}
|
|
16195
16195
|
return A.parse !== void 0 ? A.parse(n) : new A(n.name, n.times, n.values, n.interpolation);
|
|
16196
16196
|
}
|
|
16197
|
-
const
|
|
16197
|
+
const qr = {
|
|
16198
16198
|
enabled: !1,
|
|
16199
16199
|
files: {},
|
|
16200
16200
|
add: function(n, A) {
|
|
@@ -16285,7 +16285,7 @@ class Dc extends Xr {
|
|
|
16285
16285
|
}
|
|
16286
16286
|
load(A, e, t, i) {
|
|
16287
16287
|
A === void 0 && (A = ""), this.path !== void 0 && (A = this.path + A), A = this.manager.resolveURL(A);
|
|
16288
|
-
const r =
|
|
16288
|
+
const r = qr.get(A);
|
|
16289
16289
|
if (r !== void 0)
|
|
16290
16290
|
return this.manager.itemStart(A), setTimeout(() => {
|
|
16291
16291
|
e && e(r), this.manager.itemEnd(A);
|
|
@@ -16356,7 +16356,7 @@ class Dc extends Xr {
|
|
|
16356
16356
|
}
|
|
16357
16357
|
}
|
|
16358
16358
|
}).then((l) => {
|
|
16359
|
-
|
|
16359
|
+
qr.add(A, l);
|
|
16360
16360
|
const u = qn[A];
|
|
16361
16361
|
delete qn[A];
|
|
16362
16362
|
for (let c = 0, h = u.length; c < h; c++) {
|
|
@@ -16390,14 +16390,14 @@ class gE extends Xr {
|
|
|
16390
16390
|
}
|
|
16391
16391
|
load(A, e, t, i) {
|
|
16392
16392
|
this.path !== void 0 && (A = this.path + A), A = this.manager.resolveURL(A);
|
|
16393
|
-
const r = this, s =
|
|
16393
|
+
const r = this, s = qr.get(A);
|
|
16394
16394
|
if (s !== void 0)
|
|
16395
16395
|
return r.manager.itemStart(A), setTimeout(function() {
|
|
16396
16396
|
e && e(s), r.manager.itemEnd(A);
|
|
16397
16397
|
}, 0), s;
|
|
16398
16398
|
const o = Sc("img");
|
|
16399
16399
|
function a() {
|
|
16400
|
-
u(),
|
|
16400
|
+
u(), qr.add(A, this), e && e(this), r.manager.itemEnd(A);
|
|
16401
16401
|
}
|
|
16402
16402
|
function l(c) {
|
|
16403
16403
|
u(), i && i(c), r.manager.itemError(A), r.manager.itemEnd(A);
|
|
@@ -16662,7 +16662,7 @@ class SE extends Xr {
|
|
|
16662
16662
|
}
|
|
16663
16663
|
load(A, e, t, i) {
|
|
16664
16664
|
A === void 0 && (A = ""), this.path !== void 0 && (A = this.path + A), A = this.manager.resolveURL(A);
|
|
16665
|
-
const r = this, s =
|
|
16665
|
+
const r = this, s = qr.get(A);
|
|
16666
16666
|
if (s !== void 0) {
|
|
16667
16667
|
if (r.manager.itemStart(A), s.then) {
|
|
16668
16668
|
s.then((l) => {
|
|
@@ -16683,11 +16683,11 @@ class SE extends Xr {
|
|
|
16683
16683
|
}).then(function(l) {
|
|
16684
16684
|
return createImageBitmap(l, Object.assign(r.options, { colorSpaceConversion: "none" }));
|
|
16685
16685
|
}).then(function(l) {
|
|
16686
|
-
return
|
|
16686
|
+
return qr.add(A, l), e && e(l), r.manager.itemEnd(A), l;
|
|
16687
16687
|
}).catch(function(l) {
|
|
16688
|
-
i && i(l),
|
|
16688
|
+
i && i(l), qr.remove(A), r.manager.itemError(A), r.manager.itemEnd(A);
|
|
16689
16689
|
});
|
|
16690
|
-
|
|
16690
|
+
qr.add(A, a), r.manager.itemStart(A);
|
|
16691
16691
|
}
|
|
16692
16692
|
}
|
|
16693
16693
|
class Z2 {
|
|
@@ -18577,7 +18577,7 @@ class UE extends Qa {
|
|
|
18577
18577
|
this.material.dispose(), this.fsQuad.dispose();
|
|
18578
18578
|
}
|
|
18579
18579
|
}
|
|
18580
|
-
const V2 = 0, WE = 1, $2 = 2, d1 = 2, Lp = 1.25, p1 = 1,
|
|
18580
|
+
const V2 = 0, WE = 1, $2 = 2, d1 = 2, Lp = 1.25, p1 = 1, Kr = 6 * 4 + 4 + 4, hd = 65535, JE = Math.pow(2, -24), Op = Symbol("SKIP_GENERATION");
|
|
18581
18581
|
function Ab(n) {
|
|
18582
18582
|
return n.index ? n.index.count : n.attributes.position.count;
|
|
18583
18583
|
}
|
|
@@ -18696,7 +18696,7 @@ function xl(n) {
|
|
|
18696
18696
|
const A = n[3] - n[0], e = n[4] - n[1], t = n[5] - n[2];
|
|
18697
18697
|
return 2 * (A * e + e * t + t * A);
|
|
18698
18698
|
}
|
|
18699
|
-
const kn = 32, VE = (n, A) => n.candidate - A.candidate,
|
|
18699
|
+
const kn = 32, VE = (n, A) => n.candidate - A.candidate, pr = new Array(kn).fill().map(() => ({
|
|
18700
18700
|
count: 0,
|
|
18701
18701
|
bounds: new Float32Array(6),
|
|
18702
18702
|
rightCacheBounds: new Float32Array(6),
|
|
@@ -18716,7 +18716,7 @@ function $E(n, A, e, t, i, r) {
|
|
|
18716
18716
|
for (let h = 0; h < 3; h++) {
|
|
18717
18717
|
const f = A[h], d = (A[h + 3] - f) / kn;
|
|
18718
18718
|
if (i < kn / 4) {
|
|
18719
|
-
const g = [...
|
|
18719
|
+
const g = [...pr];
|
|
18720
18720
|
g.length = i;
|
|
18721
18721
|
let y = 0;
|
|
18722
18722
|
for (let w = u; w < c; w += 6, y++) {
|
|
@@ -18756,7 +18756,7 @@ function $E(n, A, e, t, i, r) {
|
|
|
18756
18756
|
}
|
|
18757
18757
|
} else {
|
|
18758
18758
|
for (let v = 0; v < kn; v++) {
|
|
18759
|
-
const w =
|
|
18759
|
+
const w = pr[v];
|
|
18760
18760
|
w.count = 0, w.candidate = f + d + v * d;
|
|
18761
18761
|
const C = w.bounds;
|
|
18762
18762
|
for (let S = 0; S < 3; S++)
|
|
@@ -18765,18 +18765,18 @@ function $E(n, A, e, t, i, r) {
|
|
|
18765
18765
|
for (let v = u; v < c; v += 6) {
|
|
18766
18766
|
let S = ~~((e[v + 2 * h] - f) / d);
|
|
18767
18767
|
S >= kn && (S = kn - 1);
|
|
18768
|
-
const x =
|
|
18768
|
+
const x = pr[S];
|
|
18769
18769
|
x.count++, kh(v, e, x.bounds);
|
|
18770
18770
|
}
|
|
18771
|
-
const g =
|
|
18771
|
+
const g = pr[kn - 1];
|
|
18772
18772
|
m1(g.bounds, g.rightCacheBounds);
|
|
18773
18773
|
for (let v = kn - 2; v >= 0; v--) {
|
|
18774
|
-
const w =
|
|
18774
|
+
const w = pr[v], C = pr[v + 1];
|
|
18775
18775
|
v1(w.bounds, C.rightCacheBounds, w.rightCacheBounds);
|
|
18776
18776
|
}
|
|
18777
18777
|
let y = 0;
|
|
18778
18778
|
for (let v = 0; v < kn - 1; v++) {
|
|
18779
|
-
const w =
|
|
18779
|
+
const w = pr[v], C = w.count, S = w.bounds, _ = pr[v + 1].rightCacheBounds;
|
|
18780
18780
|
C !== 0 && (y === 0 ? m1(S, jh) : v1(S, jh, jh)), y += C;
|
|
18781
18781
|
let b = 0, I = 0;
|
|
18782
18782
|
y !== 0 && (b = xl(jh) / a);
|
|
@@ -18878,19 +18878,19 @@ function wm(n, A) {
|
|
|
18878
18878
|
if (A.buffer) {
|
|
18879
18879
|
const s = A.buffer;
|
|
18880
18880
|
rb.set(new Uint8Array(s), n);
|
|
18881
|
-
for (let o = n, a = n + s.byteLength; o < a; o +=
|
|
18881
|
+
for (let o = n, a = n + s.byteLength; o < a; o += Kr) {
|
|
18882
18882
|
const l = o / 2;
|
|
18883
18883
|
Bt(l, Af) || (Ul[o / 4 + 6] += e);
|
|
18884
18884
|
}
|
|
18885
18885
|
return n + s.byteLength;
|
|
18886
18886
|
} else {
|
|
18887
18887
|
const s = A.offset, o = A.count;
|
|
18888
|
-
return Ul[e + 6] = s, Af[t + 14] = o, Af[t + 15] = hd, n +
|
|
18888
|
+
return Ul[e + 6] = s, Af[t + 14] = o, Af[t + 15] = hd, n + Kr;
|
|
18889
18889
|
}
|
|
18890
18890
|
else {
|
|
18891
18891
|
const s = A.left, o = A.right, a = A.splitAxis;
|
|
18892
18892
|
let l;
|
|
18893
|
-
if (l = wm(n +
|
|
18893
|
+
if (l = wm(n + Kr, s), l / 4 > iL)
|
|
18894
18894
|
throw new Error("MeshBVH: Cannot store child pointer greater than 32 bits.");
|
|
18895
18895
|
return Ul[e + 6] = l / 4, l = wm(l, o), Ul[e + 7] = a, l;
|
|
18896
18896
|
}
|
|
@@ -18942,7 +18942,7 @@ function oL(n, A) {
|
|
|
18942
18942
|
)), n._indirectBuffer || ZE(e, A);
|
|
18943
18943
|
const t = A.useSharedArrayBuffer ? SharedArrayBuffer : ArrayBuffer, i = QE(e), r = A.indirect ? tb(e) : ib(e);
|
|
18944
18944
|
n._roots = r.map((s) => {
|
|
18945
|
-
const o = sL(n, i, s.offset, s.count, A), a = ym(o), l = new t(
|
|
18945
|
+
const o = sL(n, i, s.offset, s.count, A), a = ym(o), l = new t(Kr * a);
|
|
18946
18946
|
return nL(0, o, l), l;
|
|
18947
18947
|
});
|
|
18948
18948
|
}
|
|
@@ -19335,21 +19335,21 @@ let uL = class {
|
|
|
19335
19335
|
}
|
|
19336
19336
|
};
|
|
19337
19337
|
const Ne = new uL();
|
|
19338
|
-
let
|
|
19338
|
+
let Nr, ua;
|
|
19339
19339
|
const yo = [], Kh = /* @__PURE__ */ new vv(() => new ve());
|
|
19340
19340
|
function fL(n, A, e, t, i, r) {
|
|
19341
|
-
|
|
19341
|
+
Nr = Kh.getPrimitive(), ua = Kh.getPrimitive(), yo.push(Nr, ua), Ne.setBuffer(n._roots[A]);
|
|
19342
19342
|
const s = Cm(0, n.geometry, e, t, i, r);
|
|
19343
|
-
Ne.clearBuffer(), Kh.releasePrimitive(
|
|
19343
|
+
Ne.clearBuffer(), Kh.releasePrimitive(Nr), Kh.releasePrimitive(ua), yo.pop(), yo.pop();
|
|
19344
19344
|
const o = yo.length;
|
|
19345
|
-
return o > 0 && (ua = yo[o - 1],
|
|
19345
|
+
return o > 0 && (ua = yo[o - 1], Nr = yo[o - 2]), s;
|
|
19346
19346
|
}
|
|
19347
19347
|
function Cm(n, A, e, t, i = null, r = 0, s = 0) {
|
|
19348
19348
|
const { float32Array: o, uint16Array: a, uint32Array: l } = Ne;
|
|
19349
19349
|
let u = n * 2;
|
|
19350
19350
|
if (Bt(u, a)) {
|
|
19351
19351
|
const h = Zt(n, l), f = ri(u, a);
|
|
19352
|
-
return We(n, o,
|
|
19352
|
+
return We(n, o, Nr), t(h, f, !1, s, r + n, Nr);
|
|
19353
19353
|
} else {
|
|
19354
19354
|
let I = function(P) {
|
|
19355
19355
|
const { uint16Array: M, uint32Array: T } = Ne;
|
|
@@ -19366,12 +19366,12 @@ function Cm(n, A, e, t, i = null, r = 0, s = 0) {
|
|
|
19366
19366
|
};
|
|
19367
19367
|
const h = Ci(n), f = si(n, l);
|
|
19368
19368
|
let p = h, m = f, d, g, y, v;
|
|
19369
|
-
if (i && (y =
|
|
19369
|
+
if (i && (y = Nr, v = ua, We(p, o, y), We(m, o, v), d = i(y), g = i(v), g < d)) {
|
|
19370
19370
|
p = f, m = h;
|
|
19371
19371
|
const P = d;
|
|
19372
19372
|
d = g, g = P, y = v;
|
|
19373
19373
|
}
|
|
19374
|
-
y || (y =
|
|
19374
|
+
y || (y = Nr, We(p, o, y));
|
|
19375
19375
|
const w = Bt(p * 2, a), C = e(y, w, d, s + 1, r + p);
|
|
19376
19376
|
let S;
|
|
19377
19377
|
if (C === d1) {
|
|
@@ -19527,7 +19527,7 @@ function wL(n, A = null) {
|
|
|
19527
19527
|
}
|
|
19528
19528
|
}
|
|
19529
19529
|
}
|
|
19530
|
-
function
|
|
19530
|
+
function Hr(n, A, e, t, i) {
|
|
19531
19531
|
let r, s, o, a, l, u;
|
|
19532
19532
|
const c = 1 / e.direction.x, h = 1 / e.direction.y, f = 1 / e.direction.z, p = e.origin.x, m = e.origin.y, d = e.origin.z;
|
|
19533
19533
|
let g = A[n], y = A[n + 3], v = A[n + 1], w = A[n + 3 + 1], C = A[n + 2], S = A[n + 3 + 2];
|
|
@@ -19568,9 +19568,9 @@ function xm(n, A, e, t, i, r, s) {
|
|
|
19568
19568
|
mL(A, e, t, h, f, i, r, s);
|
|
19569
19569
|
} else {
|
|
19570
19570
|
const h = Ci(n);
|
|
19571
|
-
|
|
19571
|
+
Hr(h, o, t, r, s) && xm(h, A, e, t, i, r, s);
|
|
19572
19572
|
const f = si(n, l);
|
|
19573
|
-
|
|
19573
|
+
Hr(f, o, t, r, s) && xm(f, A, e, t, i, r, s);
|
|
19574
19574
|
}
|
|
19575
19575
|
}
|
|
19576
19576
|
const SL = ["x", "y", "z"];
|
|
@@ -19589,7 +19589,7 @@ function Im(n, A, e, t, i, r) {
|
|
|
19589
19589
|
const c = gv(n, a), h = SL[c], p = t.direction[h] >= 0;
|
|
19590
19590
|
let m, d;
|
|
19591
19591
|
p ? (m = Ci(n), d = si(n, a)) : (m = si(n, a), d = Ci(n));
|
|
19592
|
-
const y =
|
|
19592
|
+
const y = Hr(m, s, t, i, r) ? Im(m, A, e, t, i, r) : null;
|
|
19593
19593
|
if (y) {
|
|
19594
19594
|
const C = y.point[h];
|
|
19595
19595
|
if (p ? C <= s[d + c] : (
|
|
@@ -19598,7 +19598,7 @@ function Im(n, A, e, t, i, r) {
|
|
|
19598
19598
|
))
|
|
19599
19599
|
return y;
|
|
19600
19600
|
}
|
|
19601
|
-
const w =
|
|
19601
|
+
const w = Hr(d, s, t, i, r) ? Im(d, A, e, t, i, r) : null;
|
|
19602
19602
|
return y && w ? y.distance <= w.distance ? y : w : y || w || null;
|
|
19603
19603
|
}
|
|
19604
19604
|
}
|
|
@@ -19730,9 +19730,9 @@ function Sm(n, A, e, t, i, r, s) {
|
|
|
19730
19730
|
CL(A, e, t, h, f, i, r, s);
|
|
19731
19731
|
} else {
|
|
19732
19732
|
const h = Ci(n);
|
|
19733
|
-
|
|
19733
|
+
Hr(h, o, t, r, s) && Sm(h, A, e, t, i, r, s);
|
|
19734
19734
|
const f = si(n, l);
|
|
19735
|
-
|
|
19735
|
+
Hr(f, o, t, r, s) && Sm(f, A, e, t, i, r, s);
|
|
19736
19736
|
}
|
|
19737
19737
|
}
|
|
19738
19738
|
const NL = ["x", "y", "z"];
|
|
@@ -19751,7 +19751,7 @@ function _m(n, A, e, t, i, r) {
|
|
|
19751
19751
|
const c = gv(n, a), h = NL[c], p = t.direction[h] >= 0;
|
|
19752
19752
|
let m, d;
|
|
19753
19753
|
p ? (m = Ci(n), d = si(n, a)) : (m = si(n, a), d = Ci(n));
|
|
19754
|
-
const y =
|
|
19754
|
+
const y = Hr(m, s, t, i, r) ? _m(m, A, e, t, i, r) : null;
|
|
19755
19755
|
if (y) {
|
|
19756
19756
|
const C = y.point[h];
|
|
19757
19757
|
if (p ? C <= s[d + c] : (
|
|
@@ -19760,7 +19760,7 @@ function _m(n, A, e, t, i, r) {
|
|
|
19760
19760
|
))
|
|
19761
19761
|
return y;
|
|
19762
19762
|
}
|
|
19763
|
-
const w =
|
|
19763
|
+
const w = Hr(d, s, t, i, r) ? _m(d, A, e, t, i, r) : null;
|
|
19764
19764
|
return y && w ? y.distance <= w.distance ? y : w : y || w || null;
|
|
19765
19765
|
}
|
|
19766
19766
|
}
|
|
@@ -19849,7 +19849,7 @@ function FL(n, A, e, t = {}, i = {}, r = 0, s = 1 / 0) {
|
|
|
19849
19849
|
function GL() {
|
|
19850
19850
|
return typeof SharedArrayBuffer < "u";
|
|
19851
19851
|
}
|
|
19852
|
-
const lc = new Ne.constructor(), Pf = new Ne.constructor(),
|
|
19852
|
+
const lc = new Ne.constructor(), Pf = new Ne.constructor(), Mr = new vv(() => new ve()), Mo = new ve(), Po = new ve(), jp = new ve(), Kp = new ve();
|
|
19853
19853
|
let Fp = !1;
|
|
19854
19854
|
function YL(n, A, e, t) {
|
|
19855
19855
|
if (Fp)
|
|
@@ -19860,7 +19860,7 @@ function YL(n, A, e, t) {
|
|
|
19860
19860
|
const l = new zA().copy(e).invert();
|
|
19861
19861
|
for (let u = 0, c = i.length; u < c; u++) {
|
|
19862
19862
|
lc.setBuffer(i[u]), a = 0;
|
|
19863
|
-
const h =
|
|
19863
|
+
const h = Mr.getPrimitive();
|
|
19864
19864
|
We(0, lc.float32Array, h), h.applyMatrix4(l);
|
|
19865
19865
|
for (let f = 0, p = r.length; f < p && (Pf.setBuffer(r[u]), s = Ki(
|
|
19866
19866
|
0,
|
|
@@ -19875,7 +19875,7 @@ function YL(n, A, e, t) {
|
|
|
19875
19875
|
h
|
|
19876
19876
|
), Pf.clearBuffer(), a += r[f].length, !s); f++)
|
|
19877
19877
|
;
|
|
19878
|
-
if (
|
|
19878
|
+
if (Mr.releasePrimitive(h), lc.clearBuffer(), o += i[u].length, s)
|
|
19879
19879
|
break;
|
|
19880
19880
|
}
|
|
19881
19881
|
return Fp = !1, s;
|
|
@@ -19906,7 +19906,7 @@ function Ki(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
19906
19906
|
s + A
|
|
19907
19907
|
);
|
|
19908
19908
|
else if (S) {
|
|
19909
|
-
const _ =
|
|
19909
|
+
const _ = Mr.getPrimitive();
|
|
19910
19910
|
We(A, d, _), _.applyMatrix4(e);
|
|
19911
19911
|
const b = Ci(n), I = si(n, p);
|
|
19912
19912
|
We(b, f, Mo), We(I, f, Po);
|
|
@@ -19935,7 +19935,7 @@ function Ki(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
19935
19935
|
o + 1,
|
|
19936
19936
|
_,
|
|
19937
19937
|
!u
|
|
19938
|
-
),
|
|
19938
|
+
), Mr.releasePrimitive(_);
|
|
19939
19939
|
} else {
|
|
19940
19940
|
const _ = Ci(A), b = si(A, g);
|
|
19941
19941
|
We(_, d, jp), We(b, d, Kp);
|
|
@@ -19982,7 +19982,7 @@ function Ki(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
19982
19982
|
u
|
|
19983
19983
|
);
|
|
19984
19984
|
else {
|
|
19985
|
-
const P =
|
|
19985
|
+
const P = Mr.getPrimitive();
|
|
19986
19986
|
P.copy(jp).applyMatrix4(e);
|
|
19987
19987
|
const M = Ci(n), T = si(n, p);
|
|
19988
19988
|
We(M, f, Mo), We(T, f, Po);
|
|
@@ -20011,7 +20011,7 @@ function Ki(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
20011
20011
|
o + 1,
|
|
20012
20012
|
P,
|
|
20013
20013
|
!u
|
|
20014
|
-
),
|
|
20014
|
+
), Mr.releasePrimitive(P);
|
|
20015
20015
|
}
|
|
20016
20016
|
else if (D)
|
|
20017
20017
|
if (C)
|
|
@@ -20029,7 +20029,7 @@ function Ki(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
20029
20029
|
u
|
|
20030
20030
|
);
|
|
20031
20031
|
else {
|
|
20032
|
-
const P =
|
|
20032
|
+
const P = Mr.getPrimitive();
|
|
20033
20033
|
P.copy(Kp).applyMatrix4(e);
|
|
20034
20034
|
const M = Ci(n), T = si(n, p);
|
|
20035
20035
|
We(M, f, Mo), We(T, f, Po);
|
|
@@ -20058,7 +20058,7 @@ function Ki(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
20058
20058
|
o + 1,
|
|
20059
20059
|
P,
|
|
20060
20060
|
!u
|
|
20061
|
-
),
|
|
20061
|
+
), Mr.releasePrimitive(P);
|
|
20062
20062
|
}
|
|
20063
20063
|
}
|
|
20064
20064
|
return x;
|
|
@@ -20138,7 +20138,7 @@ let sb = class ob {
|
|
|
20138
20138
|
const c = i[o + 6], h = r[l + 14];
|
|
20139
20139
|
A(a, u, new Float32Array(t, o * 4, 6), c, h);
|
|
20140
20140
|
} else {
|
|
20141
|
-
const c = o +
|
|
20141
|
+
const c = o + Kr / 4, h = i[o + 6], f = i[o + 7];
|
|
20142
20142
|
A(a, u, new Float32Array(t, o * 4, 6), f) || (s(c, a + 1), s(h, a + 1));
|
|
20143
20143
|
}
|
|
20144
20144
|
}
|
|
@@ -20409,16 +20409,16 @@ function XL(n, A, e) {
|
|
|
20409
20409
|
const t = n._roots;
|
|
20410
20410
|
if (t.length !== 1)
|
|
20411
20411
|
throw new Error("MeshBVHUniformStruct: Multi-root BVHs not supported.");
|
|
20412
|
-
const i = t[0], r = new Uint16Array(i), s = new Uint32Array(i), o = new Float32Array(i), a = i.byteLength /
|
|
20412
|
+
const i = t[0], r = new Uint16Array(i), s = new Uint32Array(i), o = new Float32Array(i), a = i.byteLength / Kr, l = 2 * Math.ceil(Math.sqrt(a / 2)), u = new Float32Array(4 * l * l), c = Math.ceil(Math.sqrt(a)), h = new Uint32Array(2 * c * c);
|
|
20413
20413
|
for (let f = 0; f < a; f++) {
|
|
20414
|
-
const p = f *
|
|
20414
|
+
const p = f * Kr / 4, m = p * 2, d = p;
|
|
20415
20415
|
for (let g = 0; g < 3; g++)
|
|
20416
20416
|
u[8 * f + 0 + g] = o[d + 0 + g], u[8 * f + 4 + g] = o[d + 3 + g];
|
|
20417
20417
|
if (Bt(m, r)) {
|
|
20418
20418
|
const g = ri(m, r), y = Zt(p, s), v = 4294901760 | g;
|
|
20419
20419
|
h[f * 2 + 0] = v, h[f * 2 + 1] = y;
|
|
20420
20420
|
} else {
|
|
20421
|
-
const g = 4 * si(p, s) /
|
|
20421
|
+
const g = 4 * si(p, s) / Kr, y = gv(p, s);
|
|
20422
20422
|
h[f * 2 + 0] = y, h[f * 2 + 1] = g;
|
|
20423
20423
|
}
|
|
20424
20424
|
}
|
|
@@ -25699,7 +25699,7 @@ function* D5() {
|
|
|
25699
25699
|
} = this, l = new me(), u = new me(), c = e.material;
|
|
25700
25700
|
let [h, f] = i;
|
|
25701
25701
|
for (; ; ) {
|
|
25702
|
-
o ? (c.opacity = this._opacityFactor / (this.samples + 1), a.blending = Dt, a.opacity = 1) : (a.opacity = this._opacityFactor / (this.samples + 1), a.blending =
|
|
25702
|
+
o ? (c.opacity = this._opacityFactor / (this.samples + 1), a.blending = Dt, a.opacity = 1) : (a.opacity = this._opacityFactor / (this.samples + 1), a.blending = jr);
|
|
25703
25703
|
const [p, m, d, g] = s, y = t.width, v = t.height;
|
|
25704
25704
|
a.resolution.set(y * d, v * g), a.sobolTexture = r.texture, a.stratifiedTexture.init(20, a.bounces + a.transmissiveBounces + 5), a.stratifiedTexture.next(), a.seed++;
|
|
25705
25705
|
const w = this.tiles.x || 1, C = this.tiles.y || 1, S = w * C, x = Math.ceil(y * d), _ = Math.ceil(v * g), b = Math.floor(p * y), I = Math.floor(m * v), D = Math.ceil(x / w), P = Math.ceil(_ / C);
|
|
@@ -26149,7 +26149,7 @@ class B5 {
|
|
|
26149
26149
|
}
|
|
26150
26150
|
(!this.dynamicLowRes && this.rasterizeScene || this.dynamicLowRes && this.isCompiling) && this.rasterizeSceneCallback(this.scene, this.camera);
|
|
26151
26151
|
}
|
|
26152
|
-
this.enablePathTracing && r.material.opacity > 0 && (r.material.opacity < 1 && (r.material.blending = this.dynamicLowRes ? vf :
|
|
26152
|
+
this.enablePathTracing && r.material.opacity > 0 && (r.material.opacity < 1 && (r.material.blending = this.dynamicLowRes ? vf : jr), r.material.map = e.target.texture, this.renderToCanvasCallback(e.target, a, r), r.material.blending = Dt);
|
|
26153
26153
|
}
|
|
26154
26154
|
}
|
|
26155
26155
|
reset() {
|
|
@@ -28347,7 +28347,7 @@ cc.Panel = function(n, A, e) {
|
|
|
28347
28347
|
}
|
|
28348
28348
|
};
|
|
28349
28349
|
};
|
|
28350
|
-
var Hs = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Hs || {}), yb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(yb || {}), Em = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Em || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), gn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(gn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), Ca = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(Ca || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Wn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Wn || {}),
|
|
28350
|
+
var Hs = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Hs || {}), yb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(yb || {}), Em = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Em || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), gn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(gn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), Ca = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(Ca || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Wn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Wn || {}), Fr = /* @__PURE__ */ ((n) => (n[n.CLAMP = 33071] = "CLAMP", n[n.REPEAT = 10497] = "REPEAT", n[n.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", n))(Fr || {}), xn = /* @__PURE__ */ ((n) => (n[n.OFF = 0] = "OFF", n[n.POW2 = 1] = "POW2", n[n.ON = 2] = "ON", n[n.ON_MANUAL = 3] = "ON_MANUAL", n))(xn || {}), Xt = /* @__PURE__ */ ((n) => (n[n.NPM = 0] = "NPM", n[n.UNPACK = 1] = "UNPACK", n[n.PMA = 2] = "PMA", n[n.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", n[n.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", n[n.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", n))(Xt || {}), dn = /* @__PURE__ */ ((n) => (n[n.NO = 0] = "NO", n[n.YES = 1] = "YES", n[n.AUTO = 2] = "AUTO", n[n.BLEND = 0] = "BLEND", n[n.CLEAR = 1] = "CLEAR", n[n.BLIT = 2] = "BLIT", n))(dn || {}), Sv = /* @__PURE__ */ ((n) => (n[n.AUTO = 0] = "AUTO", n[n.MANUAL = 1] = "MANUAL", n))(Sv || {}), Ii = /* @__PURE__ */ ((n) => (n.LOW = "lowp", n.MEDIUM = "mediump", n.HIGH = "highp", n))(Ii || {}), rt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.SCISSOR = 1] = "SCISSOR", n[n.STENCIL = 2] = "STENCIL", n[n.SPRITE = 3] = "SPRITE", n[n.COLOR = 4] = "COLOR", n))(rt || {}), tt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.LOW = 2] = "LOW", n[n.MEDIUM = 4] = "MEDIUM", n[n.HIGH = 8] = "HIGH", n))(tt || {}), vn = /* @__PURE__ */ ((n) => (n[n.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", n[n.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", n[n.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", n))(vn || {});
|
|
28351
28351
|
const pO = {
|
|
28352
28352
|
/**
|
|
28353
28353
|
* Creates a canvas element of the given size.
|
|
@@ -29382,7 +29382,7 @@ const Iq = {}, bq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
29382
29382
|
__proto__: null,
|
|
29383
29383
|
default: Iq
|
|
29384
29384
|
}, Symbol.toStringTag, { value: "Module" })), Sq = /* @__PURE__ */ fO(bq);
|
|
29385
|
-
var Tv = typeof Map == "function" && Map.prototype, Qp = Object.getOwnPropertyDescriptor && Tv ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Lf = Tv && Qp && typeof Qp.get == "function" ? Qp.get : null, xC = Tv && Map.prototype.forEach, Dv = typeof Set == "function" && Set.prototype, Vp = Object.getOwnPropertyDescriptor && Dv ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Of = Dv && Vp && typeof Vp.get == "function" ? Vp.get : null, IC = Dv && Set.prototype.forEach, _q = typeof WeakMap == "function" && WeakMap.prototype, uc = _q ? WeakMap.prototype.has : null, Mq = typeof WeakSet == "function" && WeakSet.prototype, fc = Mq ? WeakSet.prototype.has : null, Pq = typeof WeakRef == "function" && WeakRef.prototype, bC = Pq ? WeakRef.prototype.deref : null, Tq = Boolean.prototype.valueOf, Dq = Object.prototype.toString, Eq = Function.prototype.toString, Lq = String.prototype.match, Ev = String.prototype.slice,
|
|
29385
|
+
var Tv = typeof Map == "function" && Map.prototype, Qp = Object.getOwnPropertyDescriptor && Tv ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Lf = Tv && Qp && typeof Qp.get == "function" ? Qp.get : null, xC = Tv && Map.prototype.forEach, Dv = typeof Set == "function" && Set.prototype, Vp = Object.getOwnPropertyDescriptor && Dv ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Of = Dv && Vp && typeof Vp.get == "function" ? Vp.get : null, IC = Dv && Set.prototype.forEach, _q = typeof WeakMap == "function" && WeakMap.prototype, uc = _q ? WeakMap.prototype.has : null, Mq = typeof WeakSet == "function" && WeakSet.prototype, fc = Mq ? WeakSet.prototype.has : null, Pq = typeof WeakRef == "function" && WeakRef.prototype, bC = Pq ? WeakRef.prototype.deref : null, Tq = Boolean.prototype.valueOf, Dq = Object.prototype.toString, Eq = Function.prototype.toString, Lq = String.prototype.match, Ev = String.prototype.slice, Br = String.prototype.replace, Oq = String.prototype.toUpperCase, SC = String.prototype.toLowerCase, Eb = RegExp.prototype.test, _C = Array.prototype.concat, pn = Array.prototype.join, qq = Array.prototype.slice, MC = Math.floor, zm = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $p = Object.getOwnPropertySymbols, Rm = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Ka = typeof Symbol == "function" && typeof Symbol.iterator == "object", Lt = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Ka || !0) ? Symbol.toStringTag : null, Lb = Object.prototype.propertyIsEnumerable, PC = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
|
|
29386
29386
|
return n.__proto__;
|
|
29387
29387
|
} : null);
|
|
29388
29388
|
function TC(n, A) {
|
|
@@ -29393,23 +29393,23 @@ function TC(n, A) {
|
|
|
29393
29393
|
var t = n < 0 ? -MC(-n) : MC(n);
|
|
29394
29394
|
if (t !== n) {
|
|
29395
29395
|
var i = String(t), r = Ev.call(A, i.length + 1);
|
|
29396
|
-
return
|
|
29396
|
+
return Br.call(i, e, "$&_") + "." + Br.call(Br.call(r, /([0-9]{3})/g, "$&_"), /_$/, "");
|
|
29397
29397
|
}
|
|
29398
29398
|
}
|
|
29399
|
-
return
|
|
29399
|
+
return Br.call(A, e, "$&_");
|
|
29400
29400
|
}
|
|
29401
29401
|
var km = Sq, DC = km.custom, EC = qb(DC) ? DC : null, Nq = function n(A, e, t, i) {
|
|
29402
29402
|
var r = e || {};
|
|
29403
|
-
if (
|
|
29403
|
+
if (Pr(r, "quoteStyle") && r.quoteStyle !== "single" && r.quoteStyle !== "double")
|
|
29404
29404
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
29405
|
-
if (
|
|
29405
|
+
if (Pr(r, "maxStringLength") && (typeof r.maxStringLength == "number" ? r.maxStringLength < 0 && r.maxStringLength !== 1 / 0 : r.maxStringLength !== null))
|
|
29406
29406
|
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
29407
|
-
var s =
|
|
29407
|
+
var s = Pr(r, "customInspect") ? r.customInspect : !0;
|
|
29408
29408
|
if (typeof s != "boolean" && s !== "symbol")
|
|
29409
29409
|
throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
|
|
29410
|
-
if (
|
|
29410
|
+
if (Pr(r, "indent") && r.indent !== null && r.indent !== " " && !(parseInt(r.indent, 10) === r.indent && r.indent > 0))
|
|
29411
29411
|
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
29412
|
-
if (
|
|
29412
|
+
if (Pr(r, "numericSeparator") && typeof r.numericSeparator != "boolean")
|
|
29413
29413
|
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
29414
29414
|
var o = r.numericSeparator;
|
|
29415
29415
|
if (typeof A > "u")
|
|
@@ -29443,7 +29443,7 @@ var km = Sq, DC = km.custom, EC = qb(DC) ? DC : null, Nq = function n(A, e, t, i
|
|
|
29443
29443
|
var B = {
|
|
29444
29444
|
depth: r.depth
|
|
29445
29445
|
};
|
|
29446
|
-
return
|
|
29446
|
+
return Pr(r, "quoteStyle") && (B.quoteStyle = r.quoteStyle), n(M, B, t + 1, i);
|
|
29447
29447
|
}
|
|
29448
29448
|
return n(M, r, t + 1, i);
|
|
29449
29449
|
}
|
|
@@ -29452,7 +29452,7 @@ var km = Sq, DC = km.custom, EC = qb(DC) ? DC : null, Nq = function n(A, e, t, i
|
|
|
29452
29452
|
return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (p.length > 0 ? " { " + pn.call(p, ", ") + " }" : "");
|
|
29453
29453
|
}
|
|
29454
29454
|
if (qb(A)) {
|
|
29455
|
-
var m = Ka ?
|
|
29455
|
+
var m = Ka ? Br.call(String(A), /^(Symbol\(.*\))_[^)]*$/, "$1") : Rm.call(A);
|
|
29456
29456
|
return typeof A == "object" && !Ka ? Pl(m) : m;
|
|
29457
29457
|
}
|
|
29458
29458
|
if (Xq(A)) {
|
|
@@ -29517,7 +29517,7 @@ function Ob(n, A, e) {
|
|
|
29517
29517
|
return t + n + t;
|
|
29518
29518
|
}
|
|
29519
29519
|
function Bq(n) {
|
|
29520
|
-
return
|
|
29520
|
+
return Br.call(String(n), /"/g, """);
|
|
29521
29521
|
}
|
|
29522
29522
|
function jm(n) {
|
|
29523
29523
|
return Qr(n) === "[object Array]" && (!Lt || !(typeof n == "object" && Lt in n));
|
|
@@ -29565,7 +29565,7 @@ function Fq(n) {
|
|
|
29565
29565
|
var Gq = Object.prototype.hasOwnProperty || function(n) {
|
|
29566
29566
|
return n in this;
|
|
29567
29567
|
};
|
|
29568
|
-
function
|
|
29568
|
+
function Pr(n, A) {
|
|
29569
29569
|
return Gq.call(n, A);
|
|
29570
29570
|
}
|
|
29571
29571
|
function Qr(n) {
|
|
@@ -29662,7 +29662,7 @@ function Bb(n, A) {
|
|
|
29662
29662
|
var e = n.length - A.maxStringLength, t = "... " + e + " more character" + (e > 1 ? "s" : "");
|
|
29663
29663
|
return Bb(Ev.call(n, 0, A.maxStringLength), A) + t;
|
|
29664
29664
|
}
|
|
29665
|
-
var i =
|
|
29665
|
+
var i = Br.call(Br.call(n, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Qq);
|
|
29666
29666
|
return Ob(i, "single", A);
|
|
29667
29667
|
}
|
|
29668
29668
|
function Qq(n) {
|
|
@@ -29718,7 +29718,7 @@ function au(n, A) {
|
|
|
29718
29718
|
if (e) {
|
|
29719
29719
|
t.length = n.length;
|
|
29720
29720
|
for (var i = 0; i < n.length; i++)
|
|
29721
|
-
t[i] =
|
|
29721
|
+
t[i] = Pr(n, i) ? A(n[i], n) : "";
|
|
29722
29722
|
}
|
|
29723
29723
|
var r = typeof $p == "function" ? $p(n) : [], s;
|
|
29724
29724
|
if (Ka) {
|
|
@@ -29727,7 +29727,7 @@ function au(n, A) {
|
|
|
29727
29727
|
s["$" + r[o]] = r[o];
|
|
29728
29728
|
}
|
|
29729
29729
|
for (var a in n)
|
|
29730
|
-
|
|
29730
|
+
Pr(n, a) && (e && String(Number(a)) === a && a < n.length || Ka && s["$" + a] instanceof Symbol || (Eb.call(/[^\w$]/, a) ? t.push(A(a, n) + ": " + A(n[a], n)) : t.push(a + ": " + A(n[a], n))));
|
|
29731
29731
|
if (typeof $p == "function")
|
|
29732
29732
|
for (var l = 0; l < r.length; l++)
|
|
29733
29733
|
Lb.call(n, r[l]) && t.push("[" + A(r[l]) + "]: " + A(n[r[l]], n));
|
|
@@ -31233,7 +31233,7 @@ function ba(n, A, e) {
|
|
|
31233
31233
|
n[i] = n[i + e];
|
|
31234
31234
|
n.length = r;
|
|
31235
31235
|
}
|
|
31236
|
-
function
|
|
31236
|
+
function zr(n) {
|
|
31237
31237
|
return n === 0 ? 0 : n < 0 ? -1 : 1;
|
|
31238
31238
|
}
|
|
31239
31239
|
let yN = 0;
|
|
@@ -31265,7 +31265,7 @@ const Jm = class {
|
|
|
31265
31265
|
};
|
|
31266
31266
|
Jm.EMPTY = new Jm(0, 0, 0, 0);
|
|
31267
31267
|
let ZC = Jm;
|
|
31268
|
-
const XC = {}, an = /* @__PURE__ */ Object.create(null),
|
|
31268
|
+
const XC = {}, an = /* @__PURE__ */ Object.create(null), gr = /* @__PURE__ */ Object.create(null);
|
|
31269
31269
|
class wN {
|
|
31270
31270
|
/**
|
|
31271
31271
|
* @param width - the width for the newly created canvas
|
|
@@ -32096,7 +32096,7 @@ const MN = {
|
|
|
32096
32096
|
* @fires PIXI.BaseTexture#destroyed
|
|
32097
32097
|
*/
|
|
32098
32098
|
destroy() {
|
|
32099
|
-
this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete
|
|
32099
|
+
this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete gr[this.cacheId], delete an[this.cacheId], this.cacheId = null), this.valid = !1, this.dispose(), ea.removeFromCache(this), this.textureCacheIds = null, this.destroyed = !0, this.emit("destroyed", this), this.removeAllListeners();
|
|
32100
32100
|
}
|
|
32101
32101
|
/**
|
|
32102
32102
|
* Frees the texture from WebGL memory without destroying this texture object.
|
|
@@ -32136,7 +32136,7 @@ const MN = {
|
|
|
32136
32136
|
}
|
|
32137
32137
|
r = A._pixiId;
|
|
32138
32138
|
}
|
|
32139
|
-
let s =
|
|
32139
|
+
let s = gr[r];
|
|
32140
32140
|
if (i && t && !s)
|
|
32141
32141
|
throw new Error(`The cacheId "${r}" does not exist in BaseTextureCache.`);
|
|
32142
32142
|
return s || (s = new ea(A, e), s.cacheId = r, ea.addToCache(s, r)), s;
|
|
@@ -32171,7 +32171,7 @@ const MN = {
|
|
|
32171
32171
|
* @param {string} id - The id that the BaseTexture will be stored against.
|
|
32172
32172
|
*/
|
|
32173
32173
|
static addToCache(A, e) {
|
|
32174
|
-
e && (A.textureCacheIds.includes(e) || A.textureCacheIds.push(e),
|
|
32174
|
+
e && (A.textureCacheIds.includes(e) || A.textureCacheIds.push(e), gr[e] && gr[e] !== A && console.warn(`BaseTexture added to the cache with an id [${e}] that already had an entry`), gr[e] = A);
|
|
32175
32175
|
}
|
|
32176
32176
|
/**
|
|
32177
32177
|
* Remove a BaseTexture from the global BaseTextureCache.
|
|
@@ -32180,14 +32180,14 @@ const MN = {
|
|
|
32180
32180
|
*/
|
|
32181
32181
|
static removeFromCache(A) {
|
|
32182
32182
|
if (typeof A == "string") {
|
|
32183
|
-
const e =
|
|
32183
|
+
const e = gr[A];
|
|
32184
32184
|
if (e) {
|
|
32185
32185
|
const t = e.textureCacheIds.indexOf(A);
|
|
32186
|
-
return t > -1 && e.textureCacheIds.splice(t, 1), delete
|
|
32186
|
+
return t > -1 && e.textureCacheIds.splice(t, 1), delete gr[A], e;
|
|
32187
32187
|
}
|
|
32188
32188
|
} else if (A != null && A.textureCacheIds) {
|
|
32189
32189
|
for (let e = 0; e < A.textureCacheIds.length; ++e)
|
|
32190
|
-
delete
|
|
32190
|
+
delete gr[A.textureCacheIds[e]];
|
|
32191
32191
|
return A.textureCacheIds.length = 0, A;
|
|
32192
32192
|
}
|
|
32193
32193
|
return null;
|
|
@@ -32213,7 +32213,7 @@ Vm.defaultOptions = {
|
|
|
32213
32213
|
* @type {PIXI.WRAP_MODES}
|
|
32214
32214
|
* @default PIXI.WRAP_MODES.CLAMP
|
|
32215
32215
|
*/
|
|
32216
|
-
wrapMode:
|
|
32216
|
+
wrapMode: Fr.CLAMP,
|
|
32217
32217
|
/**
|
|
32218
32218
|
* Pre multiply the image alpha
|
|
32219
32219
|
* @type {PIXI.ALPHA_MODES}
|
|
@@ -32359,7 +32359,7 @@ const LN = {
|
|
|
32359
32359
|
Uint8Array,
|
|
32360
32360
|
Uint16Array
|
|
32361
32361
|
};
|
|
32362
|
-
class
|
|
32362
|
+
class Ur {
|
|
32363
32363
|
/**
|
|
32364
32364
|
* @param buffers - An array of buffers. optional.
|
|
32365
32365
|
* @param attributes - Of the geometry, optional structure of the attributes layout
|
|
@@ -32466,7 +32466,7 @@ class Hr {
|
|
|
32466
32466
|
* @returns - A new clone of this geometry.
|
|
32467
32467
|
*/
|
|
32468
32468
|
clone() {
|
|
32469
|
-
const A = new
|
|
32469
|
+
const A = new Ur();
|
|
32470
32470
|
for (let e = 0; e < this.buffers.length; e++)
|
|
32471
32471
|
A.buffers[e] = new Qe(this.buffers[e].data.slice(0));
|
|
32472
32472
|
for (const e in this.attributes) {
|
|
@@ -32491,7 +32491,7 @@ class Hr {
|
|
|
32491
32491
|
* @returns - Shiny new geometry!
|
|
32492
32492
|
*/
|
|
32493
32493
|
static merge(A) {
|
|
32494
|
-
const e = new
|
|
32494
|
+
const e = new Ur(), t = [], i = [], r = [];
|
|
32495
32495
|
let s;
|
|
32496
32496
|
for (let o = 0; o < A.length; o++) {
|
|
32497
32497
|
s = A[o];
|
|
@@ -32527,7 +32527,7 @@ class Hr {
|
|
|
32527
32527
|
return e;
|
|
32528
32528
|
}
|
|
32529
32529
|
}
|
|
32530
|
-
class Zb extends
|
|
32530
|
+
class Zb extends Ur {
|
|
32531
32531
|
/**
|
|
32532
32532
|
* @param {boolean} [_static=false] - Optimization flag, where `false`
|
|
32533
32533
|
* is updated every frame, `true` doesn't change frame-to-frame.
|
|
@@ -35742,7 +35742,7 @@ class n3 {
|
|
|
35742
35742
|
}
|
|
35743
35743
|
}
|
|
35744
35744
|
n3.SCREEN_KEY = -1;
|
|
35745
|
-
class eB extends
|
|
35745
|
+
class eB extends Ur {
|
|
35746
35746
|
constructor() {
|
|
35747
35747
|
super(), this.addAttribute("aVertexPosition", new Float32Array([
|
|
35748
35748
|
0,
|
|
@@ -35756,7 +35756,7 @@ class eB extends Hr {
|
|
|
35756
35756
|
])).addIndex([0, 1, 3, 2]);
|
|
35757
35757
|
}
|
|
35758
35758
|
}
|
|
35759
|
-
class r3 extends
|
|
35759
|
+
class r3 extends Ur {
|
|
35760
35760
|
constructor() {
|
|
35761
35761
|
super(), this.vertices = new Float32Array([
|
|
35762
35762
|
-1,
|
|
@@ -38233,7 +38233,7 @@ class C3 {
|
|
|
38233
38233
|
updateTextureStyle(A) {
|
|
38234
38234
|
var t;
|
|
38235
38235
|
const e = A._glTextures[this.CONTEXT_UID];
|
|
38236
|
-
e && ((A.mipmap === xn.POW2 || this.webGLVersion !== 2) && !A.isPowerOfTwo ? e.mipmap = !1 : e.mipmap = A.mipmap >= 1, this.webGLVersion !== 2 && !A.isPowerOfTwo ? e.wrapMode =
|
|
38236
|
+
e && ((A.mipmap === xn.POW2 || this.webGLVersion !== 2) && !A.isPowerOfTwo ? e.mipmap = !1 : e.mipmap = A.mipmap >= 1, this.webGLVersion !== 2 && !A.isPowerOfTwo ? e.wrapMode = Fr.CLAMP : e.wrapMode = A.wrapMode, (t = A.resource) != null && t.style(this.renderer, A, e) || this.setStyle(A, e), e.dirtyStyleId = A.dirtyStyleId);
|
|
38237
38237
|
}
|
|
38238
38238
|
/**
|
|
38239
38239
|
* Set style for texture
|
|
@@ -40972,7 +40972,7 @@ class Js extends Di {
|
|
|
40972
40972
|
}
|
|
40973
40973
|
/** When the texture is updated, this event will fire to update the scale and frame. */
|
|
40974
40974
|
_onTextureUpdate() {
|
|
40975
|
-
this._textureID = -1, this._textureTrimmedID = -1, this._cachedTint = 16777215, this._width && (this.scale.x =
|
|
40975
|
+
this._textureID = -1, this._textureTrimmedID = -1, this._cachedTint = 16777215, this._width && (this.scale.x = zr(this.scale.x) * this._width / this._texture.orig.width), this._height && (this.scale.y = zr(this.scale.y) * this._height / this._texture.orig.height);
|
|
40976
40976
|
}
|
|
40977
40977
|
/** Called when the anchor position updates. */
|
|
40978
40978
|
_onAnchorUpdate() {
|
|
@@ -41091,7 +41091,7 @@ class Js extends Di {
|
|
|
41091
41091
|
return Math.abs(this.scale.x) * this._texture.orig.width;
|
|
41092
41092
|
}
|
|
41093
41093
|
set width(A) {
|
|
41094
|
-
const e =
|
|
41094
|
+
const e = zr(this.scale.x) || 1;
|
|
41095
41095
|
this.scale.x = e * A / this._texture.orig.width, this._width = A;
|
|
41096
41096
|
}
|
|
41097
41097
|
/** The height of the sprite, setting this will actually modify the scale to achieve the value set. */
|
|
@@ -41099,7 +41099,7 @@ class Js extends Di {
|
|
|
41099
41099
|
return Math.abs(this.scale.y) * this._texture.orig.height;
|
|
41100
41100
|
}
|
|
41101
41101
|
set height(A) {
|
|
41102
|
-
const e =
|
|
41102
|
+
const e = zr(this.scale.y) || 1;
|
|
41103
41103
|
this.scale.y = e * A / this._texture.orig.height, this._height = A;
|
|
41104
41104
|
}
|
|
41105
41105
|
/**
|
|
@@ -42747,7 +42747,7 @@ class lz {
|
|
|
42747
42747
|
this._deltaTime += A, !(this._deltaTime < this.interactionFrequency) && (this._deltaTime = 0, this.update());
|
|
42748
42748
|
}
|
|
42749
42749
|
}
|
|
42750
|
-
const
|
|
42750
|
+
const Lr = new lz();
|
|
42751
42751
|
class Hc {
|
|
42752
42752
|
/**
|
|
42753
42753
|
* @param manager - The event boundary which manages this event. Propagation can only occur
|
|
@@ -43013,7 +43013,7 @@ class uz {
|
|
|
43013
43013
|
* @param y
|
|
43014
43014
|
*/
|
|
43015
43015
|
hitTest(A, e) {
|
|
43016
|
-
|
|
43016
|
+
Lr.pauseUpdate = !0;
|
|
43017
43017
|
const t = this._isPointerMoveEvent && this.enableGlobalMoveEvents ? "hitTestMoveRecursive" : "hitTestRecursive", i = this[t](
|
|
43018
43018
|
this.rootTarget,
|
|
43019
43019
|
this.rootTarget.eventMode,
|
|
@@ -43080,7 +43080,7 @@ class uz {
|
|
|
43080
43080
|
let o = !1;
|
|
43081
43081
|
if (this._interactivePrune(A))
|
|
43082
43082
|
return null;
|
|
43083
|
-
if ((A.eventMode === "dynamic" || e === "dynamic") && (
|
|
43083
|
+
if ((A.eventMode === "dynamic" || e === "dynamic") && (Lr.pauseUpdate = !1), A.interactiveChildren && A.children) {
|
|
43084
43084
|
const u = A.children;
|
|
43085
43085
|
for (let c = u.length - 1; c >= 0; c--) {
|
|
43086
43086
|
const h = u[c], f = this.hitTestMoveRecursive(
|
|
@@ -43119,7 +43119,7 @@ class uz {
|
|
|
43119
43119
|
hitTestRecursive(A, e, t, i, r) {
|
|
43120
43120
|
if (this._interactivePrune(A) || r(A, t))
|
|
43121
43121
|
return null;
|
|
43122
|
-
if ((A.eventMode === "dynamic" || e === "dynamic") && (
|
|
43122
|
+
if ((A.eventMode === "dynamic" || e === "dynamic") && (Lr.pauseUpdate = !1), A.interactiveChildren && A.children) {
|
|
43123
43123
|
const a = A.children;
|
|
43124
43124
|
for (let l = a.length - 1; l >= 0; l--) {
|
|
43125
43125
|
const u = a[l], c = this.hitTestRecursive(
|
|
@@ -43576,7 +43576,7 @@ const fz = 1, dz = {
|
|
|
43576
43576
|
* @param {PIXI.Renderer} renderer
|
|
43577
43577
|
*/
|
|
43578
43578
|
constructor(A) {
|
|
43579
|
-
this.supportsTouchEvents = "ontouchstart" in globalThis, this.supportsPointerEvents = !!globalThis.PointerEvent, this.domElement = null, this.resolution = 1, this.renderer = A, this.rootBoundary = new uz(null),
|
|
43579
|
+
this.supportsTouchEvents = "ontouchstart" in globalThis, this.supportsPointerEvents = !!globalThis.PointerEvent, this.domElement = null, this.resolution = 1, this.renderer = A, this.rootBoundary = new uz(null), Lr.init(this), this.autoPreventDefault = !0, this.eventsAdded = !1, this.rootPointerEvent = new Gi(null), this.rootWheelEvent = new _a(null), this.cursorStyles = {
|
|
43580
43580
|
default: "inherit",
|
|
43581
43581
|
pointer: "pointer"
|
|
43582
43582
|
}, this.features = new Proxy({ ...g0.defaultEventFeatures }, {
|
|
@@ -43669,7 +43669,7 @@ const fz = 1, dz = {
|
|
|
43669
43669
|
onPointerMove(A) {
|
|
43670
43670
|
if (!this.features.move)
|
|
43671
43671
|
return;
|
|
43672
|
-
this.rootBoundary.rootTarget = this.renderer.lastObjectRendered,
|
|
43672
|
+
this.rootBoundary.rootTarget = this.renderer.lastObjectRendered, Lr.pointerMoved();
|
|
43673
43673
|
const e = this.normalizeToPointerData(A);
|
|
43674
43674
|
for (let t = 0, i = e.length; t < i; t++) {
|
|
43675
43675
|
const r = this.bootstrapEvent(this.rootPointerEvent, e[t]);
|
|
@@ -43726,13 +43726,13 @@ const fz = 1, dz = {
|
|
|
43726
43726
|
* @param element - The new DOM element.
|
|
43727
43727
|
*/
|
|
43728
43728
|
setTargetElement(A) {
|
|
43729
|
-
this.removeEvents(), this.domElement = A,
|
|
43729
|
+
this.removeEvents(), this.domElement = A, Lr.domElement = A, this.addEvents();
|
|
43730
43730
|
}
|
|
43731
43731
|
/** Register event listeners on {@link PIXI.Renderer#domElement this.domElement}. */
|
|
43732
43732
|
addEvents() {
|
|
43733
43733
|
if (this.eventsAdded || !this.domElement)
|
|
43734
43734
|
return;
|
|
43735
|
-
|
|
43735
|
+
Lr.addTickerListener();
|
|
43736
43736
|
const A = this.domElement.style;
|
|
43737
43737
|
A && (globalThis.navigator.msPointerEnabled ? (A.msContentZooming = "none", A.msTouchAction = "none") : this.supportsPointerEvents && (A.touchAction = "none")), this.supportsPointerEvents ? (globalThis.document.addEventListener("pointermove", this.onPointerMove, !0), this.domElement.addEventListener("pointerdown", this.onPointerDown, !0), this.domElement.addEventListener("pointerleave", this.onPointerOverOut, !0), this.domElement.addEventListener("pointerover", this.onPointerOverOut, !0), globalThis.addEventListener("pointerup", this.onPointerUp, !0)) : (globalThis.document.addEventListener("mousemove", this.onPointerMove, !0), this.domElement.addEventListener("mousedown", this.onPointerDown, !0), this.domElement.addEventListener("mouseout", this.onPointerOverOut, !0), this.domElement.addEventListener("mouseover", this.onPointerOverOut, !0), globalThis.addEventListener("mouseup", this.onPointerUp, !0), this.supportsTouchEvents && (this.domElement.addEventListener("touchstart", this.onPointerDown, !0), this.domElement.addEventListener("touchend", this.onPointerUp, !0), this.domElement.addEventListener("touchmove", this.onPointerMove, !0))), this.domElement.addEventListener("wheel", this.onWheel, {
|
|
43738
43738
|
passive: !0,
|
|
@@ -43743,7 +43743,7 @@ const fz = 1, dz = {
|
|
|
43743
43743
|
removeEvents() {
|
|
43744
43744
|
if (!this.eventsAdded || !this.domElement)
|
|
43745
43745
|
return;
|
|
43746
|
-
|
|
43746
|
+
Lr.removeTickerListener();
|
|
43747
43747
|
const A = this.domElement.style;
|
|
43748
43748
|
globalThis.navigator.msPointerEnabled ? (A.msContentZooming = "", A.msTouchAction = "") : this.supportsPointerEvents && (A.touchAction = ""), this.supportsPointerEvents ? (globalThis.document.removeEventListener("pointermove", this.onPointerMove, !0), this.domElement.removeEventListener("pointerdown", this.onPointerDown, !0), this.domElement.removeEventListener("pointerleave", this.onPointerOverOut, !0), this.domElement.removeEventListener("pointerover", this.onPointerOverOut, !0), globalThis.removeEventListener("pointerup", this.onPointerUp, !0)) : (globalThis.document.removeEventListener("mousemove", this.onPointerMove, !0), this.domElement.removeEventListener("mousedown", this.onPointerDown, !0), this.domElement.removeEventListener("mouseout", this.onPointerOverOut, !0), this.domElement.removeEventListener("mouseover", this.onPointerOverOut, !0), globalThis.removeEventListener("mouseup", this.onPointerUp, !0), this.supportsTouchEvents && (this.domElement.removeEventListener("touchstart", this.onPointerDown, !0), this.domElement.removeEventListener("touchend", this.onPointerUp, !0), this.domElement.removeEventListener("touchmove", this.onPointerMove, !0))), this.domElement.removeEventListener("wheel", this.onWheel, !0), this.domElement = null, this.eventsAdded = !1;
|
|
43749
43749
|
}
|
|
@@ -46987,7 +46987,7 @@ const G3 = {
|
|
|
46987
46987
|
Hf.triangulate(n, A);
|
|
46988
46988
|
}
|
|
46989
46989
|
};
|
|
46990
|
-
var wi = /* @__PURE__ */ ((n) => (n.MITER = "miter", n.BEVEL = "bevel", n.ROUND = "round", n))(wi || {}),
|
|
46990
|
+
var wi = /* @__PURE__ */ ((n) => (n.MITER = "miter", n.BEVEL = "bevel", n.ROUND = "round", n))(wi || {}), Rr = /* @__PURE__ */ ((n) => (n.BUTT = "butt", n.ROUND = "round", n.SQUARE = "square", n))(Rr || {});
|
|
46991
46991
|
const Ga = {
|
|
46992
46992
|
adaptive: !0,
|
|
46993
46993
|
maxLength: 10,
|
|
@@ -47211,7 +47211,7 @@ function Y9(n, A) {
|
|
|
47211
47211
|
let g = t[0], y = t[1], v = t[2], w = t[3], C = 0, S = 0, x = -(y - w), _ = g - v, b = 0, I = 0, D = Math.sqrt(x * x + _ * _);
|
|
47212
47212
|
x /= D, _ /= D, x *= p, _ *= p;
|
|
47213
47213
|
const P = r.alignment, M = (1 - P) * 2, T = P * 2;
|
|
47214
|
-
a || (r.cap ===
|
|
47214
|
+
a || (r.cap === Rr.ROUND ? h += us(
|
|
47215
47215
|
g - x * (M - T) * 0.5,
|
|
47216
47216
|
y - _ * (M - T) * 0.5,
|
|
47217
47217
|
g - x * M,
|
|
@@ -47220,7 +47220,7 @@ function Y9(n, A) {
|
|
|
47220
47220
|
y + _ * T,
|
|
47221
47221
|
u,
|
|
47222
47222
|
!0
|
|
47223
|
-
) + 2 : r.cap ===
|
|
47223
|
+
) + 2 : r.cap === Rr.SQUARE && (h += Sx(g, y, x, _, M, T, !0, u))), u.push(
|
|
47224
47224
|
g - x * M,
|
|
47225
47225
|
y - _ * M,
|
|
47226
47226
|
g + x * T,
|
|
@@ -47397,7 +47397,7 @@ function Y9(n, A) {
|
|
|
47397
47397
|
w - _ * M,
|
|
47398
47398
|
v + x * T,
|
|
47399
47399
|
w + _ * T
|
|
47400
|
-
), a || (r.cap ===
|
|
47400
|
+
), a || (r.cap === Rr.ROUND ? h += us(
|
|
47401
47401
|
v - x * (M - T) * 0.5,
|
|
47402
47402
|
w - _ * (M - T) * 0.5,
|
|
47403
47403
|
v - x * M,
|
|
@@ -47406,7 +47406,7 @@ function Y9(n, A) {
|
|
|
47406
47406
|
w + _ * T,
|
|
47407
47407
|
u,
|
|
47408
47408
|
!1
|
|
47409
|
-
) + 2 : r.cap ===
|
|
47409
|
+
) + 2 : r.cap === Rr.SQUARE && (h += Sx(v, w, x, _, M, T, !1, u)));
|
|
47410
47410
|
const q = A.indices, B = Ga.epsilon * Ga.epsilon;
|
|
47411
47411
|
for (let W = f; W < h + f - 2; ++W)
|
|
47412
47412
|
g = u[W * 2], y = u[W * 2 + 1], v = u[(W + 1) * 2], w = u[(W + 1) * 2 + 1], C = u[(W + 2) * 2], S = u[(W + 2) * 2 + 1], !(Math.abs(g * (w - S) + v * (S - y) + C * (y - w)) < B) && q.push(W, W + 1, W + 2);
|
|
@@ -47616,7 +47616,7 @@ const zo = new VA(), Y3 = class H3 extends Zb {
|
|
|
47616
47616
|
if (!f.visible)
|
|
47617
47617
|
continue;
|
|
47618
47618
|
const p = f.texture.baseTexture, m = this.indices.length, d = this.points.length / 2;
|
|
47619
|
-
p.wrapMode =
|
|
47619
|
+
p.wrapMode = Fr.REPEAT, h === 0 ? this.processFill(l) : this.processLine(l);
|
|
47620
47620
|
const g = this.points.length / 2 - d;
|
|
47621
47621
|
g !== 0 && (t && !this._compareStyles(i, f) && (t.end(m, d), t = null), t || (t = Mx.pop() || new G9(), t.begin(f, m, d), this.batches.push(t), i = f), this.addUvs(this.points, A, f.texture, d, g, f.matrix));
|
|
47622
47622
|
}
|
|
@@ -47686,7 +47686,7 @@ const zo = new VA(), Y3 = class H3 extends Zb {
|
|
|
47686
47686
|
this.drawCalls.push(i);
|
|
47687
47687
|
for (let c = 0; c < this.batches.length; c++) {
|
|
47688
47688
|
const h = this.batches[c], f = 8, p = h.style, m = p.texture.baseTexture;
|
|
47689
|
-
a !== !!p.native && (a = !!p.native, l = a ? gn.LINES : gn.TRIANGLES, s = null, r = f, A++), s !== m && (s = m, m._batchEnabled !== A && (r === f && (A++, r = 0, i.size > 0 && (i = _u.pop(), i || (i = new $m(), i.texArray = new i0()), this.drawCalls.push(i)), i.start = u, i.size = 0, i.texArray.count = 0, i.type = l), m.touched = 1, m._batchEnabled = A, m._batchLocation = r, m.wrapMode =
|
|
47689
|
+
a !== !!p.native && (a = !!p.native, l = a ? gn.LINES : gn.TRIANGLES, s = null, r = f, A++), s !== m && (s = m, m._batchEnabled !== A && (r === f && (A++, r = 0, i.size > 0 && (i = _u.pop(), i || (i = new $m(), i.texArray = new i0()), this.drawCalls.push(i)), i.start = u, i.size = 0, i.texArray.count = 0, i.type = l), m.touched = 1, m._batchEnabled = A, m._batchLocation = r, m.wrapMode = Fr.REPEAT, i.texArray.elements[i.texArray.count++] = m, r++)), i.size += h.size, u += h.size, o = m._batchLocation, this.addColors(e, p.color, p.alpha, h.attribSize, h.attribStart), this.addTextureIds(t, o, h.attribSize, h.attribStart);
|
|
47690
47690
|
}
|
|
47691
47691
|
se._globalBatch = A, this.packAttributes();
|
|
47692
47692
|
}
|
|
@@ -47829,7 +47829,7 @@ class xd {
|
|
|
47829
47829
|
}
|
|
47830
47830
|
class Kv extends xd {
|
|
47831
47831
|
constructor() {
|
|
47832
|
-
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap =
|
|
47832
|
+
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Rr.BUTT, this.join = wi.MITER, this.miterLimit = 10;
|
|
47833
47833
|
}
|
|
47834
47834
|
/** Clones the object. */
|
|
47835
47835
|
clone() {
|
|
@@ -47838,7 +47838,7 @@ class Kv extends xd {
|
|
|
47838
47838
|
}
|
|
47839
47839
|
/** Reset the line style to default. */
|
|
47840
47840
|
reset() {
|
|
47841
|
-
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap =
|
|
47841
|
+
super.reset(), this.color = 0, this.alignment = 0.5, this.width = 0, this.native = !1, this.cap = Rr.BUTT, this.join = wi.MITER, this.miterLimit = 10;
|
|
47842
47842
|
}
|
|
47843
47843
|
}
|
|
47844
47844
|
const bg = {}, x0 = class lf extends Di {
|
|
@@ -47932,7 +47932,7 @@ const bg = {}, x0 = class lf extends Di {
|
|
|
47932
47932
|
matrix: null,
|
|
47933
47933
|
alignment: 0.5,
|
|
47934
47934
|
native: !1,
|
|
47935
|
-
cap:
|
|
47935
|
+
cap: Rr.BUTT,
|
|
47936
47936
|
join: wi.MITER,
|
|
47937
47937
|
miterLimit: 10
|
|
47938
47938
|
};
|
|
@@ -48583,7 +48583,7 @@ const Sg = new VA(), Px = new Ls(), W3 = class J3 extends Di {
|
|
|
48583
48583
|
};
|
|
48584
48584
|
W3.BATCHABLE_SIZE = 100;
|
|
48585
48585
|
let Tx = W3;
|
|
48586
|
-
class J9 extends
|
|
48586
|
+
class J9 extends Ur {
|
|
48587
48587
|
/**
|
|
48588
48588
|
* @param {Float32Array|number[]} [vertices] - Positional data on geometry.
|
|
48589
48589
|
* @param {Float32Array|number[]} [uvs] - Texture UVs.
|
|
@@ -48702,7 +48702,7 @@ class Ex {
|
|
|
48702
48702
|
* @param {number} size - The size of the batch.
|
|
48703
48703
|
*/
|
|
48704
48704
|
constructor(A, e, t) {
|
|
48705
|
-
this.geometry = new
|
|
48705
|
+
this.geometry = new Ur(), this.indexBuffer = null, this.size = t, this.dynamicProperties = [], this.staticProperties = [];
|
|
48706
48706
|
for (let i = 0; i < A.length; ++i) {
|
|
48707
48707
|
let r = A[i];
|
|
48708
48708
|
r = {
|
|
@@ -49431,7 +49431,7 @@ cn._breakingSpaces = [
|
|
|
49431
49431
|
12288
|
|
49432
49432
|
// ideographic space
|
|
49433
49433
|
];
|
|
49434
|
-
let
|
|
49434
|
+
let Tr = cn;
|
|
49435
49435
|
const $9 = [
|
|
49436
49436
|
"serif",
|
|
49437
49437
|
"sans-serif",
|
|
@@ -49860,7 +49860,7 @@ X3.defaultStyle = {
|
|
|
49860
49860
|
/** See {@link PIXI.TextStyle.wordWrapWidth} */
|
|
49861
49861
|
wordWrapWidth: 100
|
|
49862
49862
|
};
|
|
49863
|
-
let
|
|
49863
|
+
let Wr = X3;
|
|
49864
49864
|
function _g(n) {
|
|
49865
49865
|
const A = qe.shared, e = (t) => {
|
|
49866
49866
|
const i = A.setValue(t);
|
|
@@ -49904,13 +49904,13 @@ const eR = {
|
|
|
49904
49904
|
* @deprecated since 7.1.0
|
|
49905
49905
|
*/
|
|
49906
49906
|
static get experimentalLetterSpacing() {
|
|
49907
|
-
return
|
|
49907
|
+
return Tr.experimentalLetterSpacing;
|
|
49908
49908
|
}
|
|
49909
49909
|
static set experimentalLetterSpacing(A) {
|
|
49910
49910
|
de(
|
|
49911
49911
|
"7.1.0",
|
|
49912
49912
|
"Text.experimentalLetterSpacing is deprecated, use TextMetrics.experimentalLetterSpacing"
|
|
49913
|
-
),
|
|
49913
|
+
), Tr.experimentalLetterSpacing = A;
|
|
49914
49914
|
}
|
|
49915
49915
|
/**
|
|
49916
49916
|
* Renders text to its canvas, and updates its texture.
|
|
@@ -49925,7 +49925,7 @@ const eR = {
|
|
|
49925
49925
|
if (this.localStyleID !== e.styleID && (this.dirty = !0, this.localStyleID = e.styleID), !this.dirty && A)
|
|
49926
49926
|
return;
|
|
49927
49927
|
this._font = this._style.toFontString();
|
|
49928
|
-
const t = this.context, i =
|
|
49928
|
+
const t = this.context, i = Tr.measureText(this._text || " ", this._style, this._style.wordWrap, this.canvas), r = i.width, s = i.height, o = i.lines, a = i.lineHeight, l = i.lineWidths, u = i.maxLineWidth, c = i.fontProperties;
|
|
49929
49929
|
this.canvas.width = Math.ceil(Math.ceil(Math.max(1, r) + e.padding * 2) * this._resolution), this.canvas.height = Math.ceil(Math.ceil(Math.max(1, s) + e.padding * 2) * this._resolution), t.scale(this._resolution, this._resolution), t.clearRect(0, 0, this.canvas.width, this.canvas.height), t.font = this._font, t.lineWidth = e.strokeThickness, t.textBaseline = e.textBaseline, t.lineJoin = e.lineJoin, t.miterLimit = e.miterLimit;
|
|
49930
49930
|
let h, f;
|
|
49931
49931
|
const p = e.dropShadow ? 2 : 1;
|
|
@@ -49964,12 +49964,12 @@ const eR = {
|
|
|
49964
49964
|
drawLetterSpacing(A, e, t, i = !1) {
|
|
49965
49965
|
const r = this._style.letterSpacing;
|
|
49966
49966
|
let s = !1;
|
|
49967
|
-
if (
|
|
49967
|
+
if (Tr.experimentalLetterSpacingSupported && (Tr.experimentalLetterSpacing ? (this.context.letterSpacing = `${r}px`, this.context.textLetterSpacing = `${r}px`, s = !0) : (this.context.letterSpacing = "0px", this.context.textLetterSpacing = "0px")), r === 0 || s) {
|
|
49968
49968
|
i ? this.context.strokeText(A, e, t) : this.context.fillText(A, e, t);
|
|
49969
49969
|
return;
|
|
49970
49970
|
}
|
|
49971
49971
|
let o = e;
|
|
49972
|
-
const a =
|
|
49972
|
+
const a = Tr.graphemeSegmenter(A);
|
|
49973
49973
|
let l = this.context.measureText(A).width, u = 0;
|
|
49974
49974
|
for (let c = 0; c < a.length; ++c) {
|
|
49975
49975
|
const h = a[c];
|
|
@@ -50090,7 +50090,7 @@ const eR = {
|
|
|
50090
50090
|
}
|
|
50091
50091
|
set width(A) {
|
|
50092
50092
|
this.updateText(!0);
|
|
50093
|
-
const e =
|
|
50093
|
+
const e = zr(this.scale.x) || 1;
|
|
50094
50094
|
this.scale.x = e * A / this._texture.orig.width, this._width = A;
|
|
50095
50095
|
}
|
|
50096
50096
|
/** The height of the Text, setting this will actually modify the scale to achieve the value set. */
|
|
@@ -50099,7 +50099,7 @@ const eR = {
|
|
|
50099
50099
|
}
|
|
50100
50100
|
set height(A) {
|
|
50101
50101
|
this.updateText(!0);
|
|
50102
|
-
const e =
|
|
50102
|
+
const e = zr(this.scale.y) || 1;
|
|
50103
50103
|
this.scale.y = e * A / this._texture.orig.height, this._height = A;
|
|
50104
50104
|
}
|
|
50105
50105
|
/**
|
|
@@ -50113,7 +50113,7 @@ const eR = {
|
|
|
50113
50113
|
return this._style;
|
|
50114
50114
|
}
|
|
50115
50115
|
set style(A) {
|
|
50116
|
-
A = A || {}, A instanceof
|
|
50116
|
+
A = A || {}, A instanceof Wr ? this._style = A : this._style = new Wr(A), this.localStyleID = -1, this.dirty = !0;
|
|
50117
50117
|
}
|
|
50118
50118
|
/** Set the copy for the text object. To split a line you can use '\n'. */
|
|
50119
50119
|
get text() {
|
|
@@ -50186,9 +50186,9 @@ function sR(n, A) {
|
|
|
50186
50186
|
return A instanceof V3 ? (A.updateText(!0), !0) : !1;
|
|
50187
50187
|
}
|
|
50188
50188
|
function oR(n, A) {
|
|
50189
|
-
if (A instanceof
|
|
50189
|
+
if (A instanceof Wr) {
|
|
50190
50190
|
const e = A.toFontString();
|
|
50191
|
-
return
|
|
50191
|
+
return Tr.measureFont(e), !0;
|
|
50192
50192
|
}
|
|
50193
50193
|
return !1;
|
|
50194
50194
|
}
|
|
@@ -50201,7 +50201,7 @@ function aR(n, A) {
|
|
|
50201
50201
|
return !1;
|
|
50202
50202
|
}
|
|
50203
50203
|
function lR(n, A) {
|
|
50204
|
-
return n instanceof
|
|
50204
|
+
return n instanceof Wr ? (A.includes(n) || A.push(n), !0) : !1;
|
|
50205
50205
|
}
|
|
50206
50206
|
const $3 = class AS {
|
|
50207
50207
|
/**
|
|
@@ -50488,7 +50488,7 @@ class iS extends wd {
|
|
|
50488
50488
|
i = t.uvs, i[0] = i[6] = -r, i[1] = i[3] = -s, i[2] = i[4] = 1 - r, i[5] = i[7] = 1 - s, t.invalidate();
|
|
50489
50489
|
const o = A._texture, a = o.baseTexture, l = a.alphaMode > 0, u = A.tileTransform.localTransform, c = A.uvMatrix;
|
|
50490
50490
|
let h = a.isPowerOfTwo && o.frame.width === a.width && o.frame.height === a.height;
|
|
50491
|
-
h && (a._glTextures[e.CONTEXT_UID] ? h = a.wrapMode !==
|
|
50491
|
+
h && (a._glTextures[e.CONTEXT_UID] ? h = a.wrapMode !== Fr.CLAMP : a.wrapMode === Fr.CLAMP && (a.wrapMode = Fr.REPEAT));
|
|
50492
50492
|
const f = h ? this.simpleShader : this.shader, p = o.width, m = o.height, d = A._width, g = A._height;
|
|
50493
50493
|
Pu.set(
|
|
50494
50494
|
u.a * p / d,
|
|
@@ -50958,7 +50958,7 @@ function CR(n) {
|
|
|
50958
50958
|
throw new Error("[BitmapFont]: Empty set when resolving characters.");
|
|
50959
50959
|
return A;
|
|
50960
50960
|
}
|
|
50961
|
-
const
|
|
50961
|
+
const Sr = class hn {
|
|
50962
50962
|
/**
|
|
50963
50963
|
* @param data
|
|
50964
50964
|
* @param textures
|
|
@@ -51091,7 +51091,7 @@ const br = class hn {
|
|
|
51091
51091
|
textureWidth: o,
|
|
51092
51092
|
textureHeight: a,
|
|
51093
51093
|
...l
|
|
51094
|
-
} = Object.assign({}, hn.defaultOptions, t), u = CR(i), c = e instanceof
|
|
51094
|
+
} = Object.assign({}, hn.defaultOptions, t), u = CR(i), c = e instanceof Wr ? e : new Wr(e), h = o, f = new Wf();
|
|
51095
51095
|
f.info[0] = {
|
|
51096
51096
|
face: c.fontFamily,
|
|
51097
51097
|
size: c.fontSize
|
|
@@ -51105,7 +51105,7 @@ const br = class hn {
|
|
|
51105
51105
|
id: w.length - 1,
|
|
51106
51106
|
file: ""
|
|
51107
51107
|
}));
|
|
51108
|
-
const x = u[S], _ =
|
|
51108
|
+
const x = u[S], _ = Tr.measureText(x, c, !1, d), b = _.width, I = Math.ceil(_.height), D = Math.ceil((c.fontStyle === "italic" ? 2 : 1) * b);
|
|
51109
51109
|
if (m >= a - I * s) {
|
|
51110
51110
|
if (m === 0)
|
|
51111
51111
|
throw new Error(`[BitmapFont] textureHeight ${a}px is too small (fontFamily: '${c.fontFamily}', fontSize: ${c.fontSize}px, char: '${x}')`);
|
|
@@ -51148,22 +51148,22 @@ const br = class hn {
|
|
|
51148
51148
|
return hn.available[A] !== void 0 && hn.uninstall(A), hn.available[A] = C, C;
|
|
51149
51149
|
}
|
|
51150
51150
|
};
|
|
51151
|
-
|
|
51151
|
+
Sr.ALPHA = [["a", "z"], ["A", "Z"], " "], /**
|
|
51152
51152
|
* This character set includes all decimal digits (from 0 to 9).
|
|
51153
51153
|
* @type {string[][]}
|
|
51154
51154
|
* @example
|
|
51155
51155
|
* BitmapFont.from('ExampleFont', style, { chars: BitmapFont.NUMERIC })
|
|
51156
51156
|
*/
|
|
51157
|
-
|
|
51157
|
+
Sr.NUMERIC = [["0", "9"]], /**
|
|
51158
51158
|
* This character set is the union of `BitmapFont.ALPHA` and `BitmapFont.NUMERIC`.
|
|
51159
51159
|
* @type {string[][]}
|
|
51160
51160
|
*/
|
|
51161
|
-
|
|
51161
|
+
Sr.ALPHANUMERIC = [["a", "z"], ["A", "Z"], ["0", "9"], " "], /**
|
|
51162
51162
|
* This character set consists of all the ASCII table.
|
|
51163
51163
|
* @member {string[][]}
|
|
51164
51164
|
* @see http://www.asciitable.com/
|
|
51165
51165
|
*/
|
|
51166
|
-
|
|
51166
|
+
Sr.ASCII = [[" ", "~"]], /**
|
|
51167
51167
|
* Collection of default options when using `BitmapFont.from`.
|
|
51168
51168
|
* @property {number} [resolution=1] -
|
|
51169
51169
|
* @property {number} [textureWidth=512] -
|
|
@@ -51171,15 +51171,15 @@ br.ASCII = [[" ", "~"]], /**
|
|
|
51171
51171
|
* @property {number} [padding=4] -
|
|
51172
51172
|
* @property {string|string[]|string[][]} chars = PIXI.BitmapFont.ALPHANUMERIC
|
|
51173
51173
|
*/
|
|
51174
|
-
|
|
51174
|
+
Sr.defaultOptions = {
|
|
51175
51175
|
resolution: 1,
|
|
51176
51176
|
textureWidth: 512,
|
|
51177
51177
|
textureHeight: 512,
|
|
51178
51178
|
padding: 4,
|
|
51179
|
-
chars:
|
|
51179
|
+
chars: Sr.ALPHANUMERIC
|
|
51180
51180
|
}, /** Collection of available/installed fonts. */
|
|
51181
|
-
|
|
51182
|
-
let
|
|
51181
|
+
Sr.available = {};
|
|
51182
|
+
let _r = Sr;
|
|
51183
51183
|
var xR = `// Pixi texture info\r
|
|
51184
51184
|
varying vec2 vTextureCoord;\r
|
|
51185
51185
|
uniform sampler2D uSampler;\r
|
|
@@ -51255,7 +51255,7 @@ const qx = [], Nx = [], Bx = [], bR = class oS extends Di {
|
|
|
51255
51255
|
oS.styleDefaults,
|
|
51256
51256
|
e
|
|
51257
51257
|
);
|
|
51258
|
-
if (!
|
|
51258
|
+
if (!_r.available[o])
|
|
51259
51259
|
throw new Error(`Missing BitmapFont "${o}"`);
|
|
51260
51260
|
this._activePagesMeshData = [], this._textWidth = 0, this._textHeight = 0, this._align = t, this._tintColor = new qe(i), this._font = void 0, this._fontName = o, this._fontSize = a, this.text = A, this._maxWidth = r, this._maxLineHeight = 0, this._letterSpacing = s, this._anchor = new Zn(() => {
|
|
51261
51261
|
this.dirty = !0;
|
|
@@ -51264,7 +51264,7 @@ const qx = [], Nx = [], Bx = [], bR = class oS extends Di {
|
|
|
51264
51264
|
/** Renders text and updates it when needed. This should only be called if the BitmapFont is regenerated. */
|
|
51265
51265
|
updateText() {
|
|
51266
51266
|
var D;
|
|
51267
|
-
const A =
|
|
51267
|
+
const A = _r.available[this._fontName], e = this.fontSize, t = e / A.size, i = new VA(), r = [], s = [], o = [], a = this._text.replace(/(?:\r\n|\r)/g, `
|
|
51268
51268
|
`) || " ", l = sS(a), u = this._maxWidth * A.size / e, c = A.distanceFieldType === "none" ? qx : Nx;
|
|
51269
51269
|
let h = null, f = 0, p = 0, m = 0, d = -1, g = 0, y = 0, v = 0, w = 0;
|
|
51270
51270
|
for (let P = 0; P < l.length; P++) {
|
|
@@ -51372,7 +51372,7 @@ const qx = [], Nx = [], Bx = [], bR = class oS extends Di {
|
|
|
51372
51372
|
}
|
|
51373
51373
|
_render(A) {
|
|
51374
51374
|
this._autoResolution && this._resolution !== A.resolution && (this._resolution = A.resolution, this.dirty = !0);
|
|
51375
|
-
const { distanceFieldRange: e, distanceFieldType: t, size: i } =
|
|
51375
|
+
const { distanceFieldRange: e, distanceFieldType: t, size: i } = _r.available[this._fontName];
|
|
51376
51376
|
if (t !== "none") {
|
|
51377
51377
|
const { a: r, b: s, c: o, d: a } = this.worldTransform, l = Math.sqrt(r * r + s * s), u = Math.sqrt(o * o + a * a), c = (Math.abs(l) + Math.abs(u)) / 2, h = this.fontSize / i, f = A._view.resolution;
|
|
51378
51378
|
for (const p of this._activePagesMeshData)
|
|
@@ -51392,7 +51392,7 @@ const qx = [], Nx = [], Bx = [], bR = class oS extends Di {
|
|
|
51392
51392
|
* @private
|
|
51393
51393
|
*/
|
|
51394
51394
|
validate() {
|
|
51395
|
-
const A =
|
|
51395
|
+
const A = _r.available[this._fontName];
|
|
51396
51396
|
if (!A)
|
|
51397
51397
|
throw new Error(`Missing BitmapFont "${this._fontName}"`);
|
|
51398
51398
|
this._font !== A && (this.dirty = !0), this.dirty && this.updateText();
|
|
@@ -51427,13 +51427,13 @@ const qx = [], Nx = [], Bx = [], bR = class oS extends Di {
|
|
|
51427
51427
|
return this._fontName;
|
|
51428
51428
|
}
|
|
51429
51429
|
set fontName(A) {
|
|
51430
|
-
if (!
|
|
51430
|
+
if (!_r.available[A])
|
|
51431
51431
|
throw new Error(`Missing BitmapFont "${A}"`);
|
|
51432
51432
|
this._fontName !== A && (this._fontName = A, this.dirty = !0);
|
|
51433
51433
|
}
|
|
51434
51434
|
/** The size of the font to display. */
|
|
51435
51435
|
get fontSize() {
|
|
51436
|
-
return this._fontSize ??
|
|
51436
|
+
return this._fontSize ?? _r.available[this._fontName].size;
|
|
51437
51437
|
}
|
|
51438
51438
|
set fontSize(A) {
|
|
51439
51439
|
this._fontSize !== A && (this._fontSize = A, this.dirty = !0);
|
|
@@ -51528,7 +51528,7 @@ const qx = [], Nx = [], Bx = [], bR = class oS extends Di {
|
|
|
51528
51528
|
this._autoResolution = !1, this._resolution !== A && (this._resolution = A, this.dirty = !0);
|
|
51529
51529
|
}
|
|
51530
51530
|
destroy(A) {
|
|
51531
|
-
const { _textureCache: e } = this, t =
|
|
51531
|
+
const { _textureCache: e } = this, t = _r.available[this._fontName].distanceFieldType === "none" ? qx : Nx;
|
|
51532
51532
|
t.push(...this._activePagesMeshData);
|
|
51533
51533
|
for (const i of this._activePagesMeshData)
|
|
51534
51534
|
this.removeChild(i.mesh);
|
|
@@ -51566,7 +51566,7 @@ const SR = [".xml", ".fnt"], _R = {
|
|
|
51566
51566
|
c = y0(c, i), s.push(c);
|
|
51567
51567
|
}
|
|
51568
51568
|
const o = await e.load(s), a = s.map((l) => o[l]);
|
|
51569
|
-
return
|
|
51569
|
+
return _r.install(t, a, !0);
|
|
51570
51570
|
},
|
|
51571
51571
|
async load(n, A) {
|
|
51572
51572
|
return (await jA.ADAPTER.fetch(n)).text();
|
|
@@ -51576,7 +51576,7 @@ const SR = [".xml", ".fnt"], _R = {
|
|
|
51576
51576
|
}
|
|
51577
51577
|
};
|
|
51578
51578
|
WA.add(_R);
|
|
51579
|
-
const M0 = class na extends
|
|
51579
|
+
const M0 = class na extends Wr {
|
|
51580
51580
|
constructor() {
|
|
51581
51581
|
super(...arguments), this._fonts = [], this._overrides = [], this._stylesheet = "", this.fontsDirty = !1;
|
|
51582
51582
|
}
|
|
@@ -51986,7 +51986,7 @@ const Tu = class ra extends Js {
|
|
|
51986
51986
|
}
|
|
51987
51987
|
set width(A) {
|
|
51988
51988
|
this.updateText(!0);
|
|
51989
|
-
const e =
|
|
51989
|
+
const e = zr(this.scale.x) || 1;
|
|
51990
51990
|
this.scale.x = e * A / this._image.width / this.resolution, this._width = A;
|
|
51991
51991
|
}
|
|
51992
51992
|
/**
|
|
@@ -51998,7 +51998,7 @@ const Tu = class ra extends Js {
|
|
|
51998
51998
|
}
|
|
51999
51999
|
set height(A) {
|
|
52000
52000
|
this.updateText(!0);
|
|
52001
|
-
const e =
|
|
52001
|
+
const e = zr(this.scale.y) || 1;
|
|
52002
52002
|
this.scale.y = e * A / this._image.height / this.resolution, this._height = A;
|
|
52003
52003
|
}
|
|
52004
52004
|
/** The base style to render with text. */
|
|
@@ -52006,7 +52006,7 @@ const Tu = class ra extends Js {
|
|
|
52006
52006
|
return this._style;
|
|
52007
52007
|
}
|
|
52008
52008
|
set style(A) {
|
|
52009
|
-
this._style !== A && (A = A || {}, A instanceof Tg ? (this.ownsStyle = !1, this._style = A) : A instanceof
|
|
52009
|
+
this._style !== A && (A = A || {}, A instanceof Tg ? (this.ownsStyle = !1, this._style = A) : A instanceof Wr ? (console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"), this.ownsStyle = !0, this._style = Tg.from(A)) : (this.ownsStyle = !0, this._style = new Tg(A)), this.localStyleID = -1, this.dirty = !0);
|
|
52010
52010
|
}
|
|
52011
52011
|
/**
|
|
52012
52012
|
* Contents of text. This can be HTML text and include tags.
|
|
@@ -53293,10 +53293,10 @@ let DR = class {
|
|
|
53293
53293
|
this.sound.play();
|
|
53294
53294
|
}
|
|
53295
53295
|
};
|
|
53296
|
-
const
|
|
53296
|
+
const ir = (n) => {
|
|
53297
53297
|
var A, e;
|
|
53298
53298
|
for (; n.children.length > 0; )
|
|
53299
|
-
|
|
53299
|
+
ir(n.children[0]), (A = n.children[0]) == null || A.removeFromParent();
|
|
53300
53300
|
if (n instanceof De)
|
|
53301
53301
|
try {
|
|
53302
53302
|
(e = n.geometry) == null || e.dispose();
|
|
@@ -53607,7 +53607,7 @@ class BR {
|
|
|
53607
53607
|
default:
|
|
53608
53608
|
throw new Error("THREE.GLTFLoader: Unexpected light type: " + a.type);
|
|
53609
53609
|
}
|
|
53610
|
-
return l.position.set(0, 0, 0), l.decay = 2,
|
|
53610
|
+
return l.position.set(0, 0, 0), l.decay = 2, Dr(l, a), a.intensity !== void 0 && (l.intensity = a.intensity), l.name = e.createUniqueName(a.name || "light_" + A), i = Promise.resolve(l), e.cache.add(t, i), i;
|
|
53611
53611
|
}
|
|
53612
53612
|
getDependency(A, e) {
|
|
53613
53613
|
if (A === "light")
|
|
@@ -54114,7 +54114,7 @@ const yi = {
|
|
|
54114
54114
|
COLOR_0: "color",
|
|
54115
54115
|
WEIGHTS_0: "skinWeight",
|
|
54116
54116
|
JOINTS_0: "skinIndex"
|
|
54117
|
-
},
|
|
54117
|
+
}, mr = {
|
|
54118
54118
|
scale: "scale",
|
|
54119
54119
|
translation: "position",
|
|
54120
54120
|
rotation: "quaternion",
|
|
@@ -54145,7 +54145,7 @@ function fs(n, A, e) {
|
|
|
54145
54145
|
for (const t in e.extensions)
|
|
54146
54146
|
n[t] === void 0 && (A.userData.gltfExtensions = A.userData.gltfExtensions || {}, A.userData.gltfExtensions[t] = e.extensions[t]);
|
|
54147
54147
|
}
|
|
54148
|
-
function
|
|
54148
|
+
function Dr(n, A) {
|
|
54149
54149
|
A.extras !== void 0 && (typeof A.extras == "object" ? Object.assign(n.userData, A.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + A.extras));
|
|
54150
54150
|
}
|
|
54151
54151
|
function ak(n, A, e) {
|
|
@@ -54263,7 +54263,7 @@ class fk {
|
|
|
54263
54263
|
parser: t,
|
|
54264
54264
|
userData: {}
|
|
54265
54265
|
};
|
|
54266
|
-
return fs(r, o, i),
|
|
54266
|
+
return fs(r, o, i), Dr(o, i), Promise.all(t._invokeAll(function(a) {
|
|
54267
54267
|
return a.afterRoot && a.afterRoot(o);
|
|
54268
54268
|
})).then(function() {
|
|
54269
54269
|
for (const a of o.scenes)
|
|
@@ -54622,7 +54622,7 @@ class fk {
|
|
|
54622
54622
|
}
|
|
54623
54623
|
return r.emissiveTexture !== void 0 && s !== Ji && l.push(e.assignTexture(o, "emissiveMap", r.emissiveTexture, ke)), Promise.all(l).then(function() {
|
|
54624
54624
|
const c = new s(o);
|
|
54625
|
-
return r.name && (c.name = r.name),
|
|
54625
|
+
return r.name && (c.name = r.name), Dr(c, r), e.associations.set(c, { materials: A }), r.extensions && fs(i, c, r), c;
|
|
54626
54626
|
});
|
|
54627
54627
|
}
|
|
54628
54628
|
/** When Object3D instances are targeted by animation, they need unique names. */
|
|
@@ -54686,7 +54686,7 @@ class fk {
|
|
|
54686
54686
|
g = new bD(m, y);
|
|
54687
54687
|
else
|
|
54688
54688
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + d.mode);
|
|
54689
|
-
Object.keys(g.geometry.morphAttributes).length > 0 && lk(g, r), g.name = e.createUniqueName(r.name || "mesh_" + A),
|
|
54689
|
+
Object.keys(g.geometry.morphAttributes).length > 0 && lk(g, r), g.name = e.createUniqueName(r.name || "mesh_" + A), Dr(g, r), d.extensions && fs(i, g, d), e.assignFinalMaterial(g), c.push(g);
|
|
54690
54690
|
}
|
|
54691
54691
|
for (let f = 0, p = c.length; f < p; f++)
|
|
54692
54692
|
e.associations.set(c[f], {
|
|
@@ -54714,7 +54714,7 @@ class fk {
|
|
|
54714
54714
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
54715
54715
|
return;
|
|
54716
54716
|
}
|
|
54717
|
-
return t.type === "perspective" ? e = new yt(Ba.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : t.type === "orthographic" && (e = new sd(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), t.name && (e.name = this.createUniqueName(t.name)),
|
|
54717
|
+
return t.type === "perspective" ? e = new yt(Ba.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : t.type === "orthographic" && (e = new sd(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), t.name && (e.name = this.createUniqueName(t.name)), Dr(e, t), Promise.resolve(e);
|
|
54718
54718
|
}
|
|
54719
54719
|
/**
|
|
54720
54720
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -54826,7 +54826,7 @@ class fk {
|
|
|
54826
54826
|
if (r.isBone === !0 ? u = new B2() : l.length > 1 ? u = new zt() : l.length === 1 ? u = l[0] : u = new be(), u !== l[0])
|
|
54827
54827
|
for (let c = 0, h = l.length; c < h; c++)
|
|
54828
54828
|
u.add(l[c]);
|
|
54829
|
-
if (r.name && (u.userData.name = r.name, u.name = s),
|
|
54829
|
+
if (r.name && (u.userData.name = r.name, u.name = s), Dr(u, r), r.extensions && fs(t, u, r), r.matrix !== void 0) {
|
|
54830
54830
|
const c = new zA();
|
|
54831
54831
|
c.fromArray(r.matrix), u.applyMatrix4(c);
|
|
54832
54832
|
} else
|
|
@@ -54841,7 +54841,7 @@ class fk {
|
|
|
54841
54841
|
*/
|
|
54842
54842
|
loadScene(A) {
|
|
54843
54843
|
const e = this.extensions, t = this.json.scenes[A], i = this, r = new zt();
|
|
54844
|
-
t.name && (r.name = i.createUniqueName(t.name)),
|
|
54844
|
+
t.name && (r.name = i.createUniqueName(t.name)), Dr(r, t), t.extensions && fs(e, r, t);
|
|
54845
54845
|
const s = t.nodes || [], o = [];
|
|
54846
54846
|
for (let a = 0, l = s.length; a < l; a++)
|
|
54847
54847
|
o.push(i.getDependency("node", s[a]));
|
|
@@ -54862,19 +54862,19 @@ class fk {
|
|
|
54862
54862
|
}
|
|
54863
54863
|
_createAnimationTracks(A, e, t, i, r) {
|
|
54864
54864
|
const s = [], o = A.name ? A.name : A.uuid, a = [];
|
|
54865
|
-
|
|
54865
|
+
mr[r.path] === mr.weights ? A.traverse(function(h) {
|
|
54866
54866
|
h.morphTargetInfluences && a.push(h.name ? h.name : h.uuid);
|
|
54867
54867
|
}) : a.push(o);
|
|
54868
54868
|
let l;
|
|
54869
|
-
switch (
|
|
54870
|
-
case
|
|
54869
|
+
switch (mr[r.path]) {
|
|
54870
|
+
case mr.weights:
|
|
54871
54871
|
l = Ra;
|
|
54872
54872
|
break;
|
|
54873
|
-
case
|
|
54873
|
+
case mr.rotation:
|
|
54874
54874
|
l = zs;
|
|
54875
54875
|
break;
|
|
54876
|
-
case
|
|
54877
|
-
case
|
|
54876
|
+
case mr.position:
|
|
54877
|
+
case mr.scale:
|
|
54878
54878
|
l = ka;
|
|
54879
54879
|
break;
|
|
54880
54880
|
default:
|
|
@@ -54893,7 +54893,7 @@ class fk {
|
|
|
54893
54893
|
const u = i.interpolation !== void 0 ? sk[i.interpolation] : Ns, c = this._getArrayFromAccessor(t);
|
|
54894
54894
|
for (let h = 0, f = a.length; h < f; h++) {
|
|
54895
54895
|
const p = new l(
|
|
54896
|
-
a[h] + "." +
|
|
54896
|
+
a[h] + "." + mr[r.path],
|
|
54897
54897
|
e.array,
|
|
54898
54898
|
c,
|
|
54899
54899
|
u
|
|
@@ -54977,7 +54977,7 @@ function Yx(n, A, e) {
|
|
|
54977
54977
|
});
|
|
54978
54978
|
i.push(s);
|
|
54979
54979
|
}
|
|
54980
|
-
return Ie.workingColorSpace !== lt && "COLOR_0" in t && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Ie.workingColorSpace}" not supported.`),
|
|
54980
|
+
return Ie.workingColorSpace !== lt && "COLOR_0" in t && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Ie.workingColorSpace}" not supported.`), Dr(n, A), dk(n, A, e), Promise.all(i).then(function() {
|
|
54981
54981
|
return A.targets !== void 0 ? ak(n, A.targets, e) : n;
|
|
54982
54982
|
});
|
|
54983
54983
|
}
|
|
@@ -55303,7 +55303,7 @@ ui.TEX_COORD = 3;
|
|
|
55303
55303
|
ui.GENERIC = 4;
|
|
55304
55304
|
let ql, qg, Ro, Du;
|
|
55305
55305
|
function Ng(n, A = 1 / 0, e = null) {
|
|
55306
|
-
qg || (qg = new
|
|
55306
|
+
qg || (qg = new rr(2, 2, 1, 1)), Ro || (Ro = new $e({
|
|
55307
55307
|
uniforms: { blitTexture: new pv(n) },
|
|
55308
55308
|
vertexShader: `
|
|
55309
55309
|
varying vec2 vUv;
|
|
@@ -56728,7 +56728,7 @@ const dS = (n) => new fS(typeof n == "string" ? n : n + "", void 0, Yv), Sd = (n
|
|
|
56728
56728
|
* Copyright 2017 Google LLC
|
|
56729
56729
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56730
56730
|
*/
|
|
56731
|
-
const { is: Gk, defineProperty: Yk, getOwnPropertyDescriptor: Hk, getOwnPropertyNames: Uk, getOwnPropertySymbols: Wk, getPrototypeOf: Jk } = Object,
|
|
56731
|
+
const { is: Gk, defineProperty: Yk, getOwnPropertyDescriptor: Hk, getOwnPropertyNames: Uk, getOwnPropertySymbols: Wk, getPrototypeOf: Jk } = Object, Gr = globalThis, eI = Gr.trustedTypes, Zk = eI ? eI.emptyScript : "", Rg = Gr.reactiveElementPolyfillSupport, gc = (n, A) => n, Xf = { toAttribute(n, A) {
|
|
56732
56732
|
switch (A) {
|
|
56733
56733
|
case Boolean:
|
|
56734
56734
|
n = n ? Zk : null;
|
|
@@ -56757,7 +56757,7 @@ const { is: Gk, defineProperty: Yk, getOwnPropertyDescriptor: Hk, getOwnProperty
|
|
|
56757
56757
|
}
|
|
56758
56758
|
return e;
|
|
56759
56759
|
} }, Hv = (n, A) => !Gk(n, A), tI = { attribute: !0, type: String, converter: Xf, reflect: !1, hasChanged: Hv };
|
|
56760
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
56760
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Gr.litPropertyMetadata ?? (Gr.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
56761
56761
|
let sa = class extends HTMLElement {
|
|
56762
56762
|
static addInitializer(A) {
|
|
56763
56763
|
this._$Ei(), (this.l ?? (this.l = [])).push(A);
|
|
@@ -56969,13 +56969,13 @@ let sa = class extends HTMLElement {
|
|
|
56969
56969
|
firstUpdated(A) {
|
|
56970
56970
|
}
|
|
56971
56971
|
};
|
|
56972
|
-
sa.elementStyles = [], sa.shadowRootOptions = { mode: "open" }, sa[gc("elementProperties")] = /* @__PURE__ */ new Map(), sa[gc("finalized")] = /* @__PURE__ */ new Map(), Rg == null || Rg({ ReactiveElement: sa }), (
|
|
56972
|
+
sa.elementStyles = [], sa.shadowRootOptions = { mode: "open" }, sa[gc("elementProperties")] = /* @__PURE__ */ new Map(), sa[gc("finalized")] = /* @__PURE__ */ new Map(), Rg == null || Rg({ ReactiveElement: sa }), (Gr.reactiveElementVersions ?? (Gr.reactiveElementVersions = [])).push("2.0.3");
|
|
56973
56973
|
/**
|
|
56974
56974
|
* @license
|
|
56975
56975
|
* Copyright 2017 Google LLC
|
|
56976
56976
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
56977
56977
|
*/
|
|
56978
|
-
const mc = globalThis, Qf = mc.trustedTypes, iI = Qf ? Qf.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, pS = "$lit$",
|
|
56978
|
+
const mc = globalThis, Qf = mc.trustedTypes, iI = Qf ? Qf.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, pS = "$lit$", Or = `lit$${(Math.random() + "").slice(9)}$`, gS = "?" + Or, Xk = `<${gS}>`, Ks = document, Bc = () => Ks.createComment(""), zc = (n) => n === null || typeof n != "object" && typeof n != "function", mS = Array.isArray, Qk = (n) => mS(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", kg = `[
|
|
56979
56979
|
\f\r]`, Nl = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, nI = /-->/g, rI = />/g, ds = RegExp(`>|${kg}(?:([^\\s"'>=/]+)(${kg}*=${kg}*(?:[^
|
|
56980
56980
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), sI = /'/g, oI = /"/g, vS = /^(?:script|style|textarea|title)$/i, yS = (n) => (A, ...e) => ({ _$litType$: n, strings: A, values: e }), Uv = yS(1), aI = yS(2), Ya = Symbol.for("lit-noChange"), wt = Symbol.for("lit-nothing"), lI = /* @__PURE__ */ new WeakMap(), Ps = Ks.createTreeWalker(Ks, 129);
|
|
56981
56981
|
function wS(n, A) {
|
|
@@ -56992,7 +56992,7 @@ const Vk = (n, A) => {
|
|
|
56992
56992
|
for (; h < a.length && (s.lastIndex = h, u = s.exec(a), u !== null); )
|
|
56993
56993
|
h = s.lastIndex, s === Nl ? u[1] === "!--" ? s = nI : u[1] !== void 0 ? s = rI : u[2] !== void 0 ? (vS.test(u[2]) && (i = RegExp("</" + u[2], "g")), s = ds) : u[3] !== void 0 && (s = ds) : s === ds ? u[0] === ">" ? (s = i ?? Nl, c = -1) : u[1] === void 0 ? c = -2 : (c = s.lastIndex - u[2].length, l = u[1], s = u[3] === void 0 ? ds : u[3] === '"' ? oI : sI) : s === oI || s === sI ? s = ds : s === nI || s === rI ? s = Nl : (s = ds, i = void 0);
|
|
56994
56994
|
const f = s === ds && n[o + 1].startsWith("/>") ? " " : "";
|
|
56995
|
-
r += s === Nl ? a + Xk : c >= 0 ? (t.push(l), a.slice(0, c) + pS + a.slice(c) +
|
|
56995
|
+
r += s === Nl ? a + Xk : c >= 0 ? (t.push(l), a.slice(0, c) + pS + a.slice(c) + Or + f) : a + Or + (c === -2 ? o : f);
|
|
56996
56996
|
}
|
|
56997
56997
|
return [wS(n, r + (n[e] || "<?>") + (A === 2 ? "</svg>" : "")), t];
|
|
56998
56998
|
};
|
|
@@ -57011,12 +57011,12 @@ let D0 = class CS {
|
|
|
57011
57011
|
if (i.hasAttributes())
|
|
57012
57012
|
for (const c of i.getAttributeNames())
|
|
57013
57013
|
if (c.endsWith(pS)) {
|
|
57014
|
-
const h = u[s++], f = i.getAttribute(c).split(
|
|
57014
|
+
const h = u[s++], f = i.getAttribute(c).split(Or), p = /([.?@])?(.*)/.exec(h);
|
|
57015
57015
|
a.push({ type: 1, index: r, name: p[2], strings: f, ctor: p[1] === "." ? Aj : p[1] === "?" ? ej : p[1] === "@" ? tj : _d }), i.removeAttribute(c);
|
|
57016
57016
|
} else
|
|
57017
|
-
c.startsWith(
|
|
57017
|
+
c.startsWith(Or) && (a.push({ type: 6, index: r }), i.removeAttribute(c));
|
|
57018
57018
|
if (vS.test(i.tagName)) {
|
|
57019
|
-
const c = i.textContent.split(
|
|
57019
|
+
const c = i.textContent.split(Or), h = c.length - 1;
|
|
57020
57020
|
if (h > 0) {
|
|
57021
57021
|
i.textContent = Qf ? Qf.emptyScript : "";
|
|
57022
57022
|
for (let f = 0; f < h; f++)
|
|
@@ -57029,8 +57029,8 @@ let D0 = class CS {
|
|
|
57029
57029
|
a.push({ type: 2, index: r });
|
|
57030
57030
|
else {
|
|
57031
57031
|
let c = -1;
|
|
57032
|
-
for (; (c = i.data.indexOf(
|
|
57033
|
-
a.push({ type: 7, index: r }), c +=
|
|
57032
|
+
for (; (c = i.data.indexOf(Or, c + 1)) !== -1; )
|
|
57033
|
+
a.push({ type: 7, index: r }), c += Or.length - 1;
|
|
57034
57034
|
}
|
|
57035
57035
|
r++;
|
|
57036
57036
|
}
|
|
@@ -57221,7 +57221,7 @@ const nj = (n, A, e) => {
|
|
|
57221
57221
|
* Copyright 2017 Google LLC
|
|
57222
57222
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57223
57223
|
*/
|
|
57224
|
-
class
|
|
57224
|
+
class Yr extends sa {
|
|
57225
57225
|
constructor() {
|
|
57226
57226
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
57227
57227
|
}
|
|
@@ -57247,9 +57247,9 @@ class Gr extends sa {
|
|
|
57247
57247
|
}
|
|
57248
57248
|
}
|
|
57249
57249
|
var n2;
|
|
57250
|
-
|
|
57250
|
+
Yr._$litElement$ = !0, Yr.finalized = !0, (n2 = globalThis.litElementHydrateSupport) == null || n2.call(globalThis, { LitElement: Yr });
|
|
57251
57251
|
const Kg = globalThis.litElementPolyfillSupport;
|
|
57252
|
-
Kg == null || Kg({ LitElement:
|
|
57252
|
+
Kg == null || Kg({ LitElement: Yr });
|
|
57253
57253
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.3");
|
|
57254
57254
|
/**
|
|
57255
57255
|
* @license
|
|
@@ -57338,12 +57338,12 @@ function Jc(n, A) {
|
|
|
57338
57338
|
};
|
|
57339
57339
|
}
|
|
57340
57340
|
const oj = "*{box-sizing:border-box}.slot-item-container .main{pointer-events:auto;cursor:pointer;font-size:12px;color:#fff;width:12px;height:12px;background:#fff0;border:1px solid #fff;border-radius:50%;transition:background .2s,width .14s,height .14s,border .14s}.slot-item-container .main.disable{cursor:not-allowed}.slot-item-container .main.hidden{display:none}.slot-item-container .main.drag-over{border-color:red}.slot-item-container .main.can-install{position:relative;width:34px;height:34px;background:#0066ff1a;border-color:#06f}.slot-item-container .main.filled{border-color:#00ff95}.slot-item-container .main.selected{border-width:4px}.slot-item-container .main.selected+.info{pointer-events:auto;overflow:visible;width:auto}.slot-item-container .main.has-error{border-color:red}.slot-item-container .main:after{pointer-events:none;content:attr(data-name);transition:all .2s .3s;opacity:0;position:absolute;left:50%;bottom:100%;transform:translate3d(-50%,5px,0);white-space:nowrap;font-size:12px;color:#000;padding:2px 8px;border-radius:2px;background:#fff}.slot-item-container .main:hover{background:#ffffff80}.slot-item-container .main:hover+.info{pointer-events:auto;overflow:visible;width:auto}.slot-item-container .name{margin-top:-10px;white-space:nowrap;font-size:12px;color:#000;padding:2px 8px;border-radius:2px;background:#fff}.slot-item-container .info{overflow:hidden;margin-left:-2px;margin-top:-19px;position:absolute;left:100%;top:50%;transform:translateY(-50%);width:0;display:flex;align-items:flex-start;transition:all .3s}.slot-item-container .info img{flex:0 0 auto;width:53px;height:29px}", aj = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA7CAYAAAB8MXT7AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGTSURBVHic7dxLbQNBEIThnigADGEhxAwcBoZgCIZgBoZgCIZgCIaQMIgZVC4daw/xXPLoqdX/3fbW0milUtfutMCdpCkiLhEx1U6CLkkvkt4k7atnQYekfR7US/Us6JB0yIOaqmfBA5JWks6SrhzUwCRN+TYdq2dBx+ygDtWzoEPSNg9qVz0LOmZBgsQ3sqUkvufqAf6SpFVEnCPiFhHr1tqteCR8hyBhYrY6OlTPgo5cHX1I2lbPgo6lBInFk3Rc+uroqXqAn8ogcc3H19bae+U8eIDEZ0LSJoMEZeHIWB2ZIPEZoCw0QVlogsRnYlYWsjoaGUHCRK6OOKiRfa2OMvWtqufBAwQJE5SFJmZl4aZ6FnSQ+Azk6mjxZeFv+/fycfbDWrTW1pSFgyLxmcjVEWXh6CgLTZD4DMzKwguro4ERJEywOjIhaUdZaIAgYYKy0ABloQkSnwlxKZUHcSmVBxKfgVwdnSgLB8d35iZIfCYoC01QFpog8Y3rftFWrotO+cilVKMiSJigLDSS30hQFhr4BEcKZN0LNhDxAAAAAElFTkSuQmCC";
|
|
57341
|
-
var lj = Object.defineProperty, cj = Object.getOwnPropertyDescriptor,
|
|
57341
|
+
var lj = Object.defineProperty, cj = Object.getOwnPropertyDescriptor, sr = (n, A, e, t) => {
|
|
57342
57342
|
for (var i = t > 1 ? void 0 : t ? cj(A, e) : A, r = n.length - 1, s; r >= 0; r--)
|
|
57343
57343
|
(s = n[r]) && (i = (t ? s(A, e, i) : s(i)) || i);
|
|
57344
57344
|
return t && i && lj(A, e, i), i;
|
|
57345
57345
|
};
|
|
57346
|
-
let Ei = class extends
|
|
57346
|
+
let Ei = class extends Yr {
|
|
57347
57347
|
constructor(n) {
|
|
57348
57348
|
super(), this.props = n, this._size = 12, this.selected = !1, this.hasError = !1, this.canInstall = !1, this.hide = !1, this.disable = !1, this.filled = !1;
|
|
57349
57349
|
}
|
|
@@ -57378,31 +57378,31 @@ let Ei = class extends Gr {
|
|
|
57378
57378
|
}
|
|
57379
57379
|
};
|
|
57380
57380
|
Ei.styles = Sd([oj]);
|
|
57381
|
-
|
|
57381
|
+
sr([
|
|
57382
57382
|
Wc()
|
|
57383
57383
|
], Ei.prototype, "_size", 2);
|
|
57384
|
-
|
|
57384
|
+
sr([
|
|
57385
57385
|
$r({ type: Boolean })
|
|
57386
57386
|
], Ei.prototype, "selected", 2);
|
|
57387
|
-
|
|
57387
|
+
sr([
|
|
57388
57388
|
$r({ type: Boolean })
|
|
57389
57389
|
], Ei.prototype, "hasError", 2);
|
|
57390
|
-
|
|
57390
|
+
sr([
|
|
57391
57391
|
$r({ type: Boolean })
|
|
57392
57392
|
], Ei.prototype, "canInstall", 2);
|
|
57393
|
-
|
|
57393
|
+
sr([
|
|
57394
57394
|
$r({ type: Boolean })
|
|
57395
57395
|
], Ei.prototype, "hide", 2);
|
|
57396
|
-
|
|
57396
|
+
sr([
|
|
57397
57397
|
$r({ type: Boolean })
|
|
57398
57398
|
], Ei.prototype, "disable", 2);
|
|
57399
|
-
|
|
57399
|
+
sr([
|
|
57400
57400
|
$r({ type: Boolean })
|
|
57401
57401
|
], Ei.prototype, "filled", 2);
|
|
57402
|
-
|
|
57402
|
+
sr([
|
|
57403
57403
|
$r()
|
|
57404
57404
|
], Ei.prototype, "slot", 2);
|
|
57405
|
-
Ei =
|
|
57405
|
+
Ei = sr([
|
|
57406
57406
|
Md("slot-item")
|
|
57407
57407
|
], Ei);
|
|
57408
57408
|
const un = {
|
|
@@ -57504,7 +57504,7 @@ class E0 extends xv {
|
|
|
57504
57504
|
}
|
|
57505
57505
|
clearSlot() {
|
|
57506
57506
|
this._bracketSlots = [], this._slotContainer.children.forEach((A) => {
|
|
57507
|
-
A.removeFromParent(),
|
|
57507
|
+
A.removeFromParent(), ir(A);
|
|
57508
57508
|
}), this._slotUI.filled = !1, this.deviceInfo = void 0;
|
|
57509
57509
|
}
|
|
57510
57510
|
enable() {
|
|
@@ -57546,7 +57546,7 @@ class E0 extends xv {
|
|
|
57546
57546
|
this._canInstall = A, this._slotUI.canInstall = A;
|
|
57547
57547
|
}
|
|
57548
57548
|
dispose() {
|
|
57549
|
-
cancelAnimationFrame(this._timer), this.clearSlot(), this._emitter.removeAllListeners(),
|
|
57549
|
+
cancelAnimationFrame(this._timer), this.clearSlot(), this._emitter.removeAllListeners(), ir(this._slotContainer), this.element.remove();
|
|
57550
57550
|
}
|
|
57551
57551
|
render(A) {
|
|
57552
57552
|
const e = this.element.style.transform, t = /translate\(-?\d*\.?\d*%?,?\s-?\d*\.?\d*%?\)\s*translate\((-?\d*\.?\d*)px,\s*(-?\d*\.?\d*)px\)/.exec(e);
|
|
@@ -57577,7 +57577,7 @@ class oY {
|
|
|
57577
57577
|
this.start = A.clone(), this.end = e.clone();
|
|
57578
57578
|
}
|
|
57579
57579
|
}
|
|
57580
|
-
let Ua = class extends
|
|
57580
|
+
let Ua = class extends Yr {
|
|
57581
57581
|
constructor(n, A = 0) {
|
|
57582
57582
|
super(), this.offset = n, this.heightOffset = A, this.lines = /* @__PURE__ */ new Map(), this.setOffset(this.offset.x, this.offset.y);
|
|
57583
57583
|
}
|
|
@@ -58660,16 +58660,16 @@ function wj() {
|
|
|
58660
58660
|
}
|
|
58661
58661
|
}
|
|
58662
58662
|
}
|
|
58663
|
-
for (var
|
|
58664
|
-
if (F[bA[
|
|
58665
|
-
for (var hy =
|
|
58663
|
+
for (var or = 0; or < bA.length; or++)
|
|
58664
|
+
if (F[bA[or]] & o) {
|
|
58665
|
+
for (var hy = or, jd = or, Kd = re, ul = or - 1; ul >= 0; ul--)
|
|
58666
58666
|
if (F[bA[ul]] & a)
|
|
58667
58667
|
hy = ul;
|
|
58668
58668
|
else {
|
|
58669
58669
|
Kd = F[bA[ul]] & ol ? _ : x;
|
|
58670
58670
|
break;
|
|
58671
58671
|
}
|
|
58672
|
-
for (var uy = He, fl =
|
|
58672
|
+
for (var uy = He, fl = or + 1; fl < bA.length; fl++)
|
|
58673
58673
|
if (F[bA[fl]] & (o | a))
|
|
58674
58674
|
jd = fl;
|
|
58675
58675
|
else {
|
|
@@ -58678,7 +58678,7 @@ function wj() {
|
|
|
58678
58678
|
}
|
|
58679
58679
|
for (var Fd = hy; Fd <= jd; Fd++)
|
|
58680
58680
|
F[bA[Fd]] = Kd === uy ? Kd : je;
|
|
58681
|
-
|
|
58681
|
+
or = jd;
|
|
58682
58682
|
}
|
|
58683
58683
|
}
|
|
58684
58684
|
}
|
|
@@ -58695,12 +58695,12 @@ function wj() {
|
|
|
58695
58695
|
};
|
|
58696
58696
|
function fy(Yt, qi) {
|
|
58697
58697
|
for (var Ht = Yt; Ht < gA.length; Ht++) {
|
|
58698
|
-
var
|
|
58699
|
-
if (
|
|
58698
|
+
var ar = F[Ht];
|
|
58699
|
+
if (ar & (_ | U))
|
|
58700
58700
|
return 1;
|
|
58701
|
-
if (
|
|
58701
|
+
if (ar & (T | x) || qi && ar === tA)
|
|
58702
58702
|
return 0;
|
|
58703
|
-
if (
|
|
58703
|
+
if (ar & r) {
|
|
58704
58704
|
var dy = XS(Ht);
|
|
58705
58705
|
Ht = dy === -1 ? gA.length : dy;
|
|
58706
58706
|
}
|
|
@@ -58709,14 +58709,14 @@ function wj() {
|
|
|
58709
58709
|
}
|
|
58710
58710
|
function XS(Yt) {
|
|
58711
58711
|
for (var qi = 1, Ht = Yt + 1; Ht < gA.length; Ht++) {
|
|
58712
|
-
var
|
|
58713
|
-
if (
|
|
58712
|
+
var ar = F[Ht];
|
|
58713
|
+
if (ar & T)
|
|
58714
58714
|
break;
|
|
58715
|
-
if (
|
|
58715
|
+
if (ar & tA) {
|
|
58716
58716
|
if (--qi === 0)
|
|
58717
58717
|
return Ht;
|
|
58718
58718
|
} else
|
|
58719
|
-
|
|
58719
|
+
ar & r && qi++;
|
|
58720
58720
|
}
|
|
58721
58721
|
return -1;
|
|
58722
58722
|
}
|
|
@@ -61373,7 +61373,7 @@ const Jj = /* @__PURE__ */ el({
|
|
|
61373
61373
|
function Xj(n) {
|
|
61374
61374
|
let A = CI[n];
|
|
61375
61375
|
if (!A) {
|
|
61376
|
-
const e = new
|
|
61376
|
+
const e = new rr(1, 1, n, n), t = e.clone(), i = e.attributes, r = t.attributes, s = new Re(), o = i.uv.count;
|
|
61377
61377
|
for (let a = 0; a < o; a++)
|
|
61378
61378
|
r.position.array[a * 3] *= -1, r.normal.array[a * 3 + 2] *= -1;
|
|
61379
61379
|
["position", "normal", "uv"].forEach((a) => {
|
|
@@ -61703,13 +61703,13 @@ function SI(n) {
|
|
|
61703
61703
|
}
|
|
61704
61704
|
let TS = () => {
|
|
61705
61705
|
const n = new De(
|
|
61706
|
-
new
|
|
61706
|
+
new rr(1, 1),
|
|
61707
61707
|
Zv
|
|
61708
61708
|
);
|
|
61709
61709
|
return TS = () => n, n;
|
|
61710
61710
|
}, DS = () => {
|
|
61711
61711
|
const n = new De(
|
|
61712
|
-
new
|
|
61712
|
+
new rr(1, 1, 32, 1),
|
|
61713
61713
|
Zv
|
|
61714
61714
|
);
|
|
61715
61715
|
return DS = () => n, n;
|
|
@@ -62005,6 +62005,9 @@ class pf extends be {
|
|
|
62005
62005
|
let t = (e == null ? void 0 : e.distanceTo(A)) || 1;
|
|
62006
62006
|
t *= 1.2, t < 5 && (t = 5), this._tw && this._tw.isPlaying() && this._tw.stop(), this._tw = new Ts.Tween(this._text).to({ fontSize: t / 100 }).duration(300).easing(Ts.Easing.Quintic.InOut).start();
|
|
62007
62007
|
}
|
|
62008
|
+
dispose() {
|
|
62009
|
+
this._tw.stop(), this._text.dispose(), ir(this);
|
|
62010
|
+
}
|
|
62008
62011
|
}
|
|
62009
62012
|
class OS extends be {
|
|
62010
62013
|
constructor(A, e) {
|
|
@@ -62190,7 +62193,7 @@ class pK extends be {
|
|
|
62190
62193
|
}
|
|
62191
62194
|
dispose() {
|
|
62192
62195
|
var A;
|
|
62193
|
-
(A = this._app) == null || A.controls.removeEventListener("change", this._change);
|
|
62196
|
+
(A = this._app) == null || A.controls.removeEventListener("change", this._change), this._line11.dispose(), this._line12.dispose(), this._line13.dispose();
|
|
62194
62197
|
}
|
|
62195
62198
|
update(A = 0) {
|
|
62196
62199
|
if (!this._object)
|
|
@@ -62209,7 +62212,7 @@ class pK extends be {
|
|
|
62209
62212
|
C.z -= p / 3, this._line13.update(w, C);
|
|
62210
62213
|
}
|
|
62211
62214
|
}
|
|
62212
|
-
let Rc = class extends
|
|
62215
|
+
let Rc = class extends Yr {
|
|
62213
62216
|
constructor(n, A = !1) {
|
|
62214
62217
|
super(), this.text = "", this.active = !1, this.text = (n * 1e3).toFixed(0), this.active = A;
|
|
62215
62218
|
}
|
|
@@ -62318,7 +62321,7 @@ class MI extends qS {
|
|
|
62318
62321
|
height: t
|
|
62319
62322
|
}) {
|
|
62320
62323
|
var o;
|
|
62321
|
-
this._goodsSize.length = A, this._goodsSize.width = e, this._goodsSize.height = t, this._goods && (
|
|
62324
|
+
this._goodsSize.length = A, this._goodsSize.width = e, this._goodsSize.height = t, this._goods && (ir(this._goods), this._goods.removeFromParent()), this.size.length = A + this._goodsLengthGap * 2 + 0.04, this.size.height = t + 0.115, this.size.width = e + this._goodsWidthGap * 2 + 0.07, this.setShapeKey("goodsWidth", e + this._goodsWidthGap * 2), this.setShapeKey("goodsLength", A + this._goodsLengthGap * 2), this._emitter.emit("size-change", this.size);
|
|
62322
62325
|
const i = new Wa(this._goodsSize.width, t, this._goodsSize.length);
|
|
62323
62326
|
i.translate(0, t / 2, 0);
|
|
62324
62327
|
const r = new kD(i);
|
|
@@ -62342,7 +62345,7 @@ class MI extends qS {
|
|
|
62342
62345
|
});
|
|
62343
62346
|
}
|
|
62344
62347
|
destroy() {
|
|
62345
|
-
this._emitter.removeAllListeners(), this._emitter = null,
|
|
62348
|
+
this._emitter.removeAllListeners(), this._emitter = null, ir(this);
|
|
62346
62349
|
}
|
|
62347
62350
|
}
|
|
62348
62351
|
class yK extends qS {
|
|
@@ -62376,7 +62379,7 @@ class yK extends qS {
|
|
|
62376
62379
|
this._row.items.forEach((e) => e.setGoodsSize(A));
|
|
62377
62380
|
}
|
|
62378
62381
|
destroy() {
|
|
62379
|
-
this._emitter.removeAllListeners(), this._row.destroy(),
|
|
62382
|
+
this._emitter.removeAllListeners(), this._row.destroy(), ir(this);
|
|
62380
62383
|
}
|
|
62381
62384
|
}
|
|
62382
62385
|
new J2();
|
|
@@ -62473,10 +62476,10 @@ class wK extends be {
|
|
|
62473
62476
|
if (e.material)
|
|
62474
62477
|
if (Array.isArray(e.material))
|
|
62475
62478
|
e.material.forEach((i) => {
|
|
62476
|
-
i.userData.changeColor && this.skins.push(new e2({
|
|
62479
|
+
i.userData.changeColor && (this.skins.find((r) => r.name === i.userData.name) || this.skins.push(new e2({
|
|
62477
62480
|
name: i.userData.name,
|
|
62478
62481
|
target: i
|
|
62479
|
-
}));
|
|
62482
|
+
})));
|
|
62480
62483
|
});
|
|
62481
62484
|
else {
|
|
62482
62485
|
if (e.material.userData.isBreathLight && e.material.emissiveIntensity) {
|
|
@@ -62486,10 +62489,10 @@ class wK extends be {
|
|
|
62486
62489
|
}).easing(Ts.Easing.Quintic.InOut).duration(1e3).start().yoyo(!0).repeat(1 / 0);
|
|
62487
62490
|
this._breathLights.push(i);
|
|
62488
62491
|
}
|
|
62489
|
-
e.material.userData.changeColor && this.skins.push(new e2({
|
|
62492
|
+
e.material.userData.changeColor && (this.skins.find((i) => i.name === e.material.userData.name) || this.skins.push(new e2({
|
|
62490
62493
|
name: e.material.userData.name,
|
|
62491
62494
|
target: e.material
|
|
62492
|
-
}));
|
|
62495
|
+
})));
|
|
62493
62496
|
}
|
|
62494
62497
|
if (e.material)
|
|
62495
62498
|
if (Array.isArray(e.material))
|
|
@@ -62602,7 +62605,7 @@ class wK extends be {
|
|
|
62602
62605
|
return;
|
|
62603
62606
|
const { shelfLevel: e, levelOffset: t } = this._shelf.userData || {};
|
|
62604
62607
|
this._shelves.delete(e), this._shelves.forEach((i) => {
|
|
62605
|
-
|
|
62608
|
+
ir(i);
|
|
62606
62609
|
}), this._shelves.clear(), this._shelves.set(e, this._shelf);
|
|
62607
62610
|
for (let i = e; i < A; i++)
|
|
62608
62611
|
setTimeout(() => {
|
|
@@ -62724,10 +62727,10 @@ class wK extends be {
|
|
|
62724
62727
|
}
|
|
62725
62728
|
}
|
|
62726
62729
|
clean() {
|
|
62727
|
-
this._emitter.removeAllListeners(),
|
|
62730
|
+
this._emitter.removeAllListeners(), ir(this._container), this._levels.forEach((A) => A.destroy()), this._levels.clear(), this._slots = [], this._logos = [], this._skins = [], this._materialsCache.clear(), this.opacityCache = void 0, this._breathLights.forEach((A) => A.stop()), this._breathLights = [], this.sizeBox.reset();
|
|
62728
62731
|
}
|
|
62729
62732
|
destroy() {
|
|
62730
|
-
this.clean();
|
|
62733
|
+
this.clean(), this.sizeBox.dispose();
|
|
62731
62734
|
}
|
|
62732
62735
|
}
|
|
62733
62736
|
const NS = 0, CK = 1, xK = 2, PI = 2, Wg = 1.25, TI = 1, wc = 6 * 4 + 4 + 4, Td = 65535, IK = Math.pow(2, -24), Jg = Symbol("SKIP_GENERATION");
|
|
@@ -62849,7 +62852,7 @@ function zl(n) {
|
|
|
62849
62852
|
const A = n[3] - n[0], e = n[4] - n[1], t = n[5] - n[2];
|
|
62850
62853
|
return 2 * (A * e + e * t + t * A);
|
|
62851
62854
|
}
|
|
62852
|
-
const jn = 32, PK = (n, A) => n.candidate - A.candidate,
|
|
62855
|
+
const jn = 32, PK = (n, A) => n.candidate - A.candidate, vr = new Array(jn).fill().map(() => ({
|
|
62853
62856
|
count: 0,
|
|
62854
62857
|
bounds: new Float32Array(6),
|
|
62855
62858
|
rightCacheBounds: new Float32Array(6),
|
|
@@ -62869,7 +62872,7 @@ function TK(n, A, e, t, i, r) {
|
|
|
62869
62872
|
for (let h = 0; h < 3; h++) {
|
|
62870
62873
|
const f = A[h], d = (A[h + 3] - f) / jn;
|
|
62871
62874
|
if (i < jn / 4) {
|
|
62872
|
-
const g = [...
|
|
62875
|
+
const g = [...vr];
|
|
62873
62876
|
g.length = i;
|
|
62874
62877
|
let y = 0;
|
|
62875
62878
|
for (let w = u; w < c; w += 6, y++) {
|
|
@@ -62909,7 +62912,7 @@ function TK(n, A, e, t, i, r) {
|
|
|
62909
62912
|
}
|
|
62910
62913
|
} else {
|
|
62911
62914
|
for (let v = 0; v < jn; v++) {
|
|
62912
|
-
const w =
|
|
62915
|
+
const w = vr[v];
|
|
62913
62916
|
w.count = 0, w.candidate = f + d + v * d;
|
|
62914
62917
|
const C = w.bounds;
|
|
62915
62918
|
for (let S = 0; S < 3; S++)
|
|
@@ -62918,18 +62921,18 @@ function TK(n, A, e, t, i, r) {
|
|
|
62918
62921
|
for (let v = u; v < c; v += 6) {
|
|
62919
62922
|
let S = ~~((e[v + 2 * h] - f) / d);
|
|
62920
62923
|
S >= jn && (S = jn - 1);
|
|
62921
|
-
const x =
|
|
62924
|
+
const x = vr[S];
|
|
62922
62925
|
x.count++, Ou(v, e, x.bounds);
|
|
62923
62926
|
}
|
|
62924
|
-
const g =
|
|
62927
|
+
const g = vr[jn - 1];
|
|
62925
62928
|
EI(g.bounds, g.rightCacheBounds);
|
|
62926
62929
|
for (let v = jn - 2; v >= 0; v--) {
|
|
62927
|
-
const w =
|
|
62930
|
+
const w = vr[v], C = vr[v + 1];
|
|
62928
62931
|
LI(w.bounds, C.rightCacheBounds, w.rightCacheBounds);
|
|
62929
62932
|
}
|
|
62930
62933
|
let y = 0;
|
|
62931
62934
|
for (let v = 0; v < jn - 1; v++) {
|
|
62932
|
-
const w =
|
|
62935
|
+
const w = vr[v], C = w.count, S = w.bounds, _ = vr[v + 1].rightCacheBounds;
|
|
62933
62936
|
C !== 0 && (y === 0 ? EI(S, qu) : LI(S, qu, qu)), y += C;
|
|
62934
62937
|
let b = 0, I = 0;
|
|
62935
62938
|
y !== 0 && (b = zl(qu) / a);
|
|
@@ -63099,7 +63102,7 @@ function zK(n, A) {
|
|
|
63099
63102
|
return qK(0, o, l), l;
|
|
63100
63103
|
});
|
|
63101
63104
|
}
|
|
63102
|
-
class
|
|
63105
|
+
class nr {
|
|
63103
63106
|
constructor() {
|
|
63104
63107
|
this.min = 1 / 0, this.max = -1 / 0;
|
|
63105
63108
|
}
|
|
@@ -63123,7 +63126,7 @@ class ir {
|
|
|
63123
63126
|
return this.min > A.max || A.min > this.max;
|
|
63124
63127
|
}
|
|
63125
63128
|
}
|
|
63126
|
-
|
|
63129
|
+
nr.prototype.setFromBox = function() {
|
|
63127
63130
|
const n = new O();
|
|
63128
63131
|
return function(e, t) {
|
|
63129
63132
|
const i = t.min, r = t.max;
|
|
@@ -63196,7 +63199,7 @@ function Qg(n) {
|
|
|
63196
63199
|
}
|
|
63197
63200
|
class $i extends Ze {
|
|
63198
63201
|
constructor(...A) {
|
|
63199
|
-
super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new
|
|
63202
|
+
super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new nr()), this.points = [this.a, this.b, this.c], this.sphere = new hi(), this.plane = new Wt(), this.needsUpdate = !0;
|
|
63200
63203
|
}
|
|
63201
63204
|
intersectsSphere(A) {
|
|
63202
63205
|
return kK(A, this);
|
|
@@ -63225,7 +63228,7 @@ $i.prototype.closestPointToSegment = function() {
|
|
|
63225
63228
|
};
|
|
63226
63229
|
}();
|
|
63227
63230
|
$i.prototype.intersectsTriangle = function() {
|
|
63228
|
-
const n = new $i(), A = new Array(3), e = new Array(3), t = new
|
|
63231
|
+
const n = new $i(), A = new Array(3), e = new Array(3), t = new nr(), i = new nr(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Pe(), c = new Pe(), h = new Pe(), f = new O();
|
|
63229
63232
|
function p(m, d, g) {
|
|
63230
63233
|
const y = m.points;
|
|
63231
63234
|
let v = 0, w = -1;
|
|
@@ -63333,7 +63336,7 @@ $i.prototype.distanceToTriangle = function() {
|
|
|
63333
63336
|
}();
|
|
63334
63337
|
class Gt {
|
|
63335
63338
|
constructor(A, e, t) {
|
|
63336
|
-
this.isOrientedBox = !0, this.min = new O(), this.max = new O(), this.matrix = new zA(), this.invMatrix = new zA(), this.points = new Array(8).fill().map(() => new O()), this.satAxes = new Array(3).fill().map(() => new O()), this.satBounds = new Array(3).fill().map(() => new
|
|
63339
|
+
this.isOrientedBox = !0, this.min = new O(), this.max = new O(), this.matrix = new zA(), this.invMatrix = new zA(), this.points = new Array(8).fill().map(() => new O()), this.satAxes = new Array(3).fill().map(() => new O()), this.satBounds = new Array(3).fill().map(() => new nr()), this.alignedSatBounds = new Array(3).fill().map(() => new nr()), this.needsUpdate = !1, A && this.min.copy(A), e && this.max.copy(e), t && this.matrix.copy(t);
|
|
63337
63340
|
}
|
|
63338
63341
|
set(A, e, t) {
|
|
63339
63342
|
this.min.copy(A), this.max.copy(e), this.matrix.copy(t), this.needsUpdate = !0;
|
|
@@ -63361,7 +63364,7 @@ Gt.prototype.update = /* @__PURE__ */ function() {
|
|
|
63361
63364
|
};
|
|
63362
63365
|
}();
|
|
63363
63366
|
Gt.prototype.intersectsBox = function() {
|
|
63364
|
-
const n = new
|
|
63367
|
+
const n = new nr();
|
|
63365
63368
|
return function(e) {
|
|
63366
63369
|
this.needsUpdate && this.update();
|
|
63367
63370
|
const t = e.min, i = e.max, r = this.satBounds, s = this.satAxes, o = this.alignedSatBounds;
|
|
@@ -63376,7 +63379,7 @@ Gt.prototype.intersectsBox = function() {
|
|
|
63376
63379
|
};
|
|
63377
63380
|
}();
|
|
63378
63381
|
Gt.prototype.intersectsTriangle = function() {
|
|
63379
|
-
const n = new $i(), A = new Array(3), e = new
|
|
63382
|
+
const n = new $i(), A = new Array(3), e = new nr(), t = new nr(), i = new O();
|
|
63380
63383
|
return function(s) {
|
|
63381
63384
|
this.needsUpdate && this.update(), s.isExtendedTriangle ? s.needsUpdate && s.update() : (n.copy(s), n.update(), s = n);
|
|
63382
63385
|
const o = this.satBounds, a = this.satAxes;
|
|
@@ -63489,21 +63492,21 @@ class FK {
|
|
|
63489
63492
|
}
|
|
63490
63493
|
}
|
|
63491
63494
|
const ze = new FK();
|
|
63492
|
-
let
|
|
63495
|
+
let kr, ga;
|
|
63493
63496
|
const jo = [], Nu = /* @__PURE__ */ new Vv(() => new ve());
|
|
63494
63497
|
function GK(n, A, e, t, i, r) {
|
|
63495
|
-
|
|
63498
|
+
kr = Nu.getPrimitive(), ga = Nu.getPrimitive(), jo.push(kr, ga), ze.setBuffer(n._roots[A]);
|
|
63496
63499
|
const s = R0(0, n.geometry, e, t, i, r);
|
|
63497
|
-
ze.clearBuffer(), Nu.releasePrimitive(
|
|
63500
|
+
ze.clearBuffer(), Nu.releasePrimitive(kr), Nu.releasePrimitive(ga), jo.pop(), jo.pop();
|
|
63498
63501
|
const o = jo.length;
|
|
63499
|
-
return o > 0 && (ga = jo[o - 1],
|
|
63502
|
+
return o > 0 && (ga = jo[o - 1], kr = jo[o - 2]), s;
|
|
63500
63503
|
}
|
|
63501
63504
|
function R0(n, A, e, t, i = null, r = 0, s = 0) {
|
|
63502
63505
|
const { float32Array: o, uint16Array: a, uint32Array: l } = ze;
|
|
63503
63506
|
let u = n * 2;
|
|
63504
63507
|
if (Jt(u, a)) {
|
|
63505
63508
|
const h = ai(n, l), f = Si(u, a);
|
|
63506
|
-
return Je(n, o,
|
|
63509
|
+
return Je(n, o, kr), t(h, f, !1, s, r + n, kr);
|
|
63507
63510
|
} else {
|
|
63508
63511
|
let I = function(P) {
|
|
63509
63512
|
const { uint16Array: M, uint32Array: T } = ze;
|
|
@@ -63520,12 +63523,12 @@ function R0(n, A, e, t, i = null, r = 0, s = 0) {
|
|
|
63520
63523
|
};
|
|
63521
63524
|
const h = _i(n), f = Mi(n, l);
|
|
63522
63525
|
let p = h, m = f, d, g, y, v;
|
|
63523
|
-
if (i && (y =
|
|
63526
|
+
if (i && (y = kr, v = ga, Je(p, o, y), Je(m, o, v), d = i(y), g = i(v), g < d)) {
|
|
63524
63527
|
p = f, m = h;
|
|
63525
63528
|
const P = d;
|
|
63526
63529
|
d = g, g = P, y = v;
|
|
63527
63530
|
}
|
|
63528
|
-
y || (y =
|
|
63531
|
+
y || (y = kr, Je(p, o, y));
|
|
63529
63532
|
const w = Jt(p * 2, a), C = e(y, w, d, s + 1, r + p);
|
|
63530
63533
|
let S;
|
|
63531
63534
|
if (C === PI) {
|
|
@@ -64019,7 +64022,7 @@ function RI(n, A) {
|
|
|
64019
64022
|
return new Uint8Array(e).set(new Uint8Array(n)), e;
|
|
64020
64023
|
}
|
|
64021
64024
|
}
|
|
64022
|
-
const Cc = new ze.constructor(), Vf = new ze.constructor(),
|
|
64025
|
+
const Cc = new ze.constructor(), Vf = new ze.constructor(), Er = new Vv(() => new ve()), Jo = new ve(), Zo = new ve(), em = new ve(), tm = new ve();
|
|
64023
64026
|
let im = !1;
|
|
64024
64027
|
function yF(n, A, e, t) {
|
|
64025
64028
|
if (im)
|
|
@@ -64030,7 +64033,7 @@ function yF(n, A, e, t) {
|
|
|
64030
64033
|
const l = new zA().copy(e).invert();
|
|
64031
64034
|
for (let u = 0, c = i.length; u < c; u++) {
|
|
64032
64035
|
Cc.setBuffer(i[u]), a = 0;
|
|
64033
|
-
const h =
|
|
64036
|
+
const h = Er.getPrimitive();
|
|
64034
64037
|
Je(0, Cc.float32Array, h), h.applyMatrix4(l);
|
|
64035
64038
|
for (let f = 0, p = r.length; f < p && (Vf.setBuffer(r[u]), s = Yi(
|
|
64036
64039
|
0,
|
|
@@ -64045,7 +64048,7 @@ function yF(n, A, e, t) {
|
|
|
64045
64048
|
h
|
|
64046
64049
|
), Vf.clearBuffer(), a += r[f].length, !s); f++)
|
|
64047
64050
|
;
|
|
64048
|
-
if (
|
|
64051
|
+
if (Er.releasePrimitive(h), Cc.clearBuffer(), o += i[u].length, s)
|
|
64049
64052
|
break;
|
|
64050
64053
|
}
|
|
64051
64054
|
return im = !1, s;
|
|
@@ -64076,7 +64079,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
64076
64079
|
s + A
|
|
64077
64080
|
);
|
|
64078
64081
|
else if (S) {
|
|
64079
|
-
const _ =
|
|
64082
|
+
const _ = Er.getPrimitive();
|
|
64080
64083
|
Je(A, d, _), _.applyMatrix4(e);
|
|
64081
64084
|
const b = _i(n), I = Mi(n, p);
|
|
64082
64085
|
Je(b, f, Jo), Je(I, f, Zo);
|
|
@@ -64105,7 +64108,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
64105
64108
|
o + 1,
|
|
64106
64109
|
_,
|
|
64107
64110
|
!u
|
|
64108
|
-
),
|
|
64111
|
+
), Er.releasePrimitive(_);
|
|
64109
64112
|
} else {
|
|
64110
64113
|
const _ = _i(A), b = Mi(A, g);
|
|
64111
64114
|
Je(_, d, em), Je(b, d, tm);
|
|
@@ -64152,7 +64155,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
64152
64155
|
u
|
|
64153
64156
|
);
|
|
64154
64157
|
else {
|
|
64155
|
-
const P =
|
|
64158
|
+
const P = Er.getPrimitive();
|
|
64156
64159
|
P.copy(em).applyMatrix4(e);
|
|
64157
64160
|
const M = _i(n), T = Mi(n, p);
|
|
64158
64161
|
Je(M, f, Jo), Je(T, f, Zo);
|
|
@@ -64181,7 +64184,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
64181
64184
|
o + 1,
|
|
64182
64185
|
P,
|
|
64183
64186
|
!u
|
|
64184
|
-
),
|
|
64187
|
+
), Er.releasePrimitive(P);
|
|
64185
64188
|
}
|
|
64186
64189
|
else if (D)
|
|
64187
64190
|
if (C)
|
|
@@ -64199,7 +64202,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
64199
64202
|
u
|
|
64200
64203
|
);
|
|
64201
64204
|
else {
|
|
64202
|
-
const P =
|
|
64205
|
+
const P = Er.getPrimitive();
|
|
64203
64206
|
P.copy(tm).applyMatrix4(e);
|
|
64204
64207
|
const M = _i(n), T = Mi(n, p);
|
|
64205
64208
|
Je(M, f, Jo), Je(T, f, Zo);
|
|
@@ -64228,7 +64231,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
64228
64231
|
o + 1,
|
|
64229
64232
|
P,
|
|
64230
64233
|
!u
|
|
64231
|
-
),
|
|
64234
|
+
), Er.releasePrimitive(P);
|
|
64232
64235
|
}
|
|
64233
64236
|
}
|
|
64234
64237
|
return x;
|
|
@@ -64627,7 +64630,7 @@ function _F(n, A = SF, e = 1) {
|
|
|
64627
64630
|
}
|
|
64628
64631
|
return t;
|
|
64629
64632
|
}
|
|
64630
|
-
const
|
|
64633
|
+
const yr = /* @__PURE__ */ new Pe();
|
|
64631
64634
|
function US(n) {
|
|
64632
64635
|
n.sort((A, e) => A[0] - e[0]);
|
|
64633
64636
|
for (let A = 1; A < n.length; A++) {
|
|
@@ -64644,31 +64647,31 @@ function MF(n, A, e = []) {
|
|
|
64644
64647
|
}
|
|
64645
64648
|
for (let i = 0, r = t.length; i < r; i++) {
|
|
64646
64649
|
const { start: s, end: o } = n;
|
|
64647
|
-
|
|
64648
|
-
|
|
64649
|
-
|
|
64650
|
-
|
|
64651
|
-
|
|
64652
|
-
|
|
64653
|
-
|
|
64650
|
+
yr.start.lerpVectors(s, o, t[i][0]), yr.end.lerpVectors(s, o, t[i][1]), e.push(new Float32Array([
|
|
64651
|
+
yr.start.x,
|
|
64652
|
+
yr.start.y,
|
|
64653
|
+
yr.start.z,
|
|
64654
|
+
yr.end.x,
|
|
64655
|
+
yr.end.y,
|
|
64656
|
+
yr.end.z
|
|
64654
64657
|
]));
|
|
64655
64658
|
}
|
|
64656
64659
|
return e;
|
|
64657
64660
|
}
|
|
64658
|
-
const nm = 1e-16, PF = /* @__PURE__ */ new O(0, 1, 0),
|
|
64661
|
+
const nm = 1e-16, PF = /* @__PURE__ */ new O(0, 1, 0), wr = /* @__PURE__ */ new Wt(), Gl = /* @__PURE__ */ new O(), YI = /* @__PURE__ */ new O();
|
|
64659
64662
|
function TF(n, A, e) {
|
|
64660
64663
|
if (HS(n))
|
|
64661
64664
|
return !1;
|
|
64662
|
-
n.needsUpdate && n.update(),
|
|
64663
|
-
const t =
|
|
64664
|
-
if (A.delta(YI).normalize(), Math.abs(
|
|
64665
|
+
n.needsUpdate && n.update(), wr.copy(n.plane), wr.normal.dot(PF) < 0 && (wr.normal.multiplyScalar(-1), wr.constant *= -1);
|
|
64666
|
+
const t = wr.distanceToPoint(A.start), i = wr.distanceToPoint(A.end), r = Math.abs(t) < nm, s = Math.abs(i) < nm, o = t < 0, a = i < 0;
|
|
64667
|
+
if (A.delta(YI).normalize(), Math.abs(wr.normal.dot(YI)) < nm)
|
|
64665
64668
|
return r || !o ? !1 : (e.copy(A), !0);
|
|
64666
64669
|
if (o && a)
|
|
64667
64670
|
return e.copy(A), !0;
|
|
64668
64671
|
if (!o && !a)
|
|
64669
64672
|
return !1;
|
|
64670
64673
|
{
|
|
64671
|
-
let l =
|
|
64674
|
+
let l = wr.intersectLine(A, Gl);
|
|
64672
64675
|
if (l || (r && (Gl.copy(A.start), l = !0), s && (Gl.copy(A.end), l = !0)), l) {
|
|
64673
64676
|
if (o)
|
|
64674
64677
|
return e.start.copy(A.start), e.end.copy(Gl), !0;
|
|
@@ -64678,13 +64681,13 @@ function TF(n, A, e) {
|
|
|
64678
64681
|
}
|
|
64679
64682
|
return !1;
|
|
64680
64683
|
}
|
|
64681
|
-
const DF = 1e-16, HI = 1e-16, Zu = /* @__PURE__ */ new Wt(), Xo = /* @__PURE__ */ new Pe(), Xu = /* @__PURE__ */ new O(), rm = /* @__PURE__ */ new O(),
|
|
64684
|
+
const DF = 1e-16, HI = 1e-16, Zu = /* @__PURE__ */ new Wt(), Xo = /* @__PURE__ */ new Pe(), Xu = /* @__PURE__ */ new O(), rm = /* @__PURE__ */ new O(), Cr = /* @__PURE__ */ new ci(), vi = /* @__PURE__ */ new Pe(), zn = /* @__PURE__ */ new Pe(), xr = /* @__PURE__ */ new O(), UI = /* @__PURE__ */ new O();
|
|
64682
64685
|
function EF(n, A, e = new Pe()) {
|
|
64683
|
-
if (
|
|
64686
|
+
if (Cr.copy(A), Cr.a.y = 0, Cr.b.y = 0, Cr.c.y = 0, Cr.update(), vi.copy(n), vi.start.y = 0, vi.end.y = 0, Cr.getArea() <= DF)
|
|
64684
64687
|
return null;
|
|
64685
|
-
vi.delta(
|
|
64688
|
+
vi.delta(xr).normalize(), xr.cross(Cr.plane.normal).normalize(), Zu.setFromNormalAndCoplanarPoint(xr, vi.start);
|
|
64686
64689
|
let t = 0;
|
|
64687
|
-
const { points: i } =
|
|
64690
|
+
const { points: i } = Cr;
|
|
64688
64691
|
for (let r = 0; r < 3; r++) {
|
|
64689
64692
|
const s = i[r], o = i[(r + 1) % 3];
|
|
64690
64693
|
Xo.start.copy(s), Xo.end.copy(o);
|
|
@@ -64693,11 +64696,11 @@ function EF(n, A, e = new Pe()) {
|
|
|
64693
64696
|
break;
|
|
64694
64697
|
}
|
|
64695
64698
|
if (t === 2) {
|
|
64696
|
-
if (vi.delta(
|
|
64699
|
+
if (vi.delta(xr).normalize(), zn.delta(UI).normalize(), xr.dot(UI) < 0) {
|
|
64697
64700
|
let c = zn.start;
|
|
64698
64701
|
zn.start = zn.end, zn.end = c;
|
|
64699
64702
|
}
|
|
64700
|
-
const r = 0, s = rm.subVectors(vi.end, vi.start).dot(
|
|
64703
|
+
const r = 0, s = rm.subVectors(vi.end, vi.start).dot(xr), o = rm.subVectors(zn.start, vi.start).dot(xr), a = rm.subVectors(zn.end, vi.start).dot(xr), l = s <= o, u = a <= r;
|
|
64701
64704
|
return l || u ? null : (n.at(
|
|
64702
64705
|
Math.max(r, o) / vi.distance(),
|
|
64703
64706
|
e.start
|
|
@@ -64715,20 +64718,20 @@ function OF(n, A, e) {
|
|
|
64715
64718
|
let i = JI.length() / t, r = ZI.length() / t;
|
|
64716
64719
|
return i = Math.min(Math.max(i, 0), 1), r = Math.min(Math.max(r, 0), 1), Math.abs(i - r) <= LF ? !1 : (e.push(new Float32Array([i, r])), !0);
|
|
64717
64720
|
}
|
|
64718
|
-
const XI = 1e-6,
|
|
64721
|
+
const XI = 1e-6, Ir = new ci(), Qo = new Pe();
|
|
64719
64722
|
function* qF(n, A = 30) {
|
|
64720
64723
|
const e = [], t = n.geometry, i = t.index, r = t.attributes.position, s = i ? i.count : r;
|
|
64721
64724
|
let o = performance.now();
|
|
64722
64725
|
for (let a = 0; a < s; a += 3) {
|
|
64723
64726
|
let l = a + 0, u = a + 1, c = a + 2;
|
|
64724
64727
|
i && (l = i.getX(l), u = i.getX(u), c = i.getX(c));
|
|
64725
|
-
const { a: h, b: f, c: p } =
|
|
64726
|
-
h.fromBufferAttribute(r, l), f.fromBufferAttribute(r, u), p.fromBufferAttribute(r, c),
|
|
64727
|
-
intersectsBounds: (d) => d.intersectsTriangle(
|
|
64728
|
+
const { a: h, b: f, c: p } = Ir;
|
|
64729
|
+
h.fromBufferAttribute(r, l), f.fromBufferAttribute(r, u), p.fromBufferAttribute(r, c), Ir.needsUpdate = !0, Ir.update(), n.shapecast({
|
|
64730
|
+
intersectsBounds: (d) => d.intersectsTriangle(Ir),
|
|
64728
64731
|
intersectsTriangle: (d) => {
|
|
64729
|
-
if (
|
|
64732
|
+
if (Ir.equals(d) || (d.needsUpdate && d.update(), Math.abs(Ir.plane.normal.dot(d.plane.normal)) > 1 - 1e-6))
|
|
64730
64733
|
return !1;
|
|
64731
|
-
|
|
64734
|
+
Ir.intersectsTriangle(d, Qo, !0) && !H0(Ir, Qo) && !H0(d, Qo) && (Qo.start.y += XI, Qo.end.y += XI, e.push(Qo.clone()));
|
|
64732
64735
|
}
|
|
64733
64736
|
}), performance.now() - o > A && (yield, o = performance.now());
|
|
64734
64737
|
}
|
|
@@ -64829,18 +64832,24 @@ class A2 {
|
|
|
64829
64832
|
get size() {
|
|
64830
64833
|
return this._props.size;
|
|
64831
64834
|
}
|
|
64835
|
+
clear() {
|
|
64836
|
+
this.change();
|
|
64837
|
+
}
|
|
64832
64838
|
change(A) {
|
|
64833
|
-
var
|
|
64839
|
+
var i;
|
|
64834
64840
|
this.imageUrl = A;
|
|
64835
|
-
|
|
64836
|
-
|
|
64837
|
-
|
|
64838
|
-
|
|
64839
|
-
|
|
64840
|
-
|
|
64841
|
-
|
|
64842
|
-
|
|
64843
|
-
|
|
64841
|
+
let e;
|
|
64842
|
+
if (A) {
|
|
64843
|
+
const r = new Image();
|
|
64844
|
+
e = new ct(r), e.colorSpace = ke, r.onload = () => {
|
|
64845
|
+
e && (e.flipY = !1, e.needsUpdate = !0);
|
|
64846
|
+
}, r.src = A;
|
|
64847
|
+
}
|
|
64848
|
+
const t = this._props.target;
|
|
64849
|
+
t.material && (Array.isArray(t.material) ? t.material.forEach((r) => {
|
|
64850
|
+
var s;
|
|
64851
|
+
(s = r.map) == null || s.dispose(), e ? (r.map = e, r.opacity = 1) : r.opacity = 0;
|
|
64852
|
+
}) : ((i = t.material.map) == null || i.dispose(), e ? (t.material.map = e, t.material.opacity = 1) : t.material.opacity = 0));
|
|
64844
64853
|
}
|
|
64845
64854
|
reset() {
|
|
64846
64855
|
this._props = this._defaults, this.name = this._props.name, this.imageUrl = this._props.imageUrl, this.target = this._props.target, this.change(this.imageUrl || "");
|
|
@@ -64881,7 +64890,7 @@ class lY {
|
|
|
64881
64890
|
0.1,
|
|
64882
64891
|
1e4
|
|
64883
64892
|
), this._container = new zt(), this._raycaster = new NE(), this._selected = [], this._pointerDownTimeout = 0, this.lines = new Ua(new dA(-108, 0)), this._dragging = !1, this.maxSample = 1024, this.sampleCount = 0, this._usePathTracing = !1, this._fpsCache = [], this._fpsCacheMax = 20, this._emitter = new Ys(), this.sound = new DR(), this._ground = new De(
|
|
64884
|
-
new
|
|
64893
|
+
new rr(100, 100),
|
|
64885
64894
|
new Kc({
|
|
64886
64895
|
color: new YA("#aaa"),
|
|
64887
64896
|
metalness: 0.6,
|
|
@@ -65499,7 +65508,7 @@ const $F = {
|
|
|
65499
65508
|
friction: 0.98,
|
|
65500
65509
|
bounce: 0.8,
|
|
65501
65510
|
minSpeed: 0.01
|
|
65502
|
-
},
|
|
65511
|
+
}, br = 16;
|
|
65503
65512
|
class AG extends Li {
|
|
65504
65513
|
constructor(A, e = {}) {
|
|
65505
65514
|
super(A), pA(this, "options"), pA(this, "x"), pA(this, "y"), pA(this, "percentChangeX"), pA(this, "percentChangeY"), pA(this, "saved"), pA(this, "timeSinceRelease"), this.options = Object.assign({}, $F, e), this.saved = [], this.timeSinceRelease = 0, this.reset(), this.parent.on("moved", (t) => this.handleMoved(t));
|
|
@@ -65543,11 +65552,11 @@ class AG extends Li {
|
|
|
65543
65552
|
const e = this.x || this.y, t = this.timeSinceRelease, i = this.timeSinceRelease + A;
|
|
65544
65553
|
if (this.x) {
|
|
65545
65554
|
const r = this.percentChangeX, s = Math.log(r);
|
|
65546
|
-
this.parent.x += this.x *
|
|
65555
|
+
this.parent.x += this.x * br / s * (Math.pow(r, i / br) - Math.pow(r, t / br)), this.x *= Math.pow(this.percentChangeX, A / br);
|
|
65547
65556
|
}
|
|
65548
65557
|
if (this.y) {
|
|
65549
65558
|
const r = this.percentChangeY, s = Math.log(r);
|
|
65550
|
-
this.parent.y += this.y *
|
|
65559
|
+
this.parent.y += this.y * br / s * (Math.pow(r, i / br) - Math.pow(r, t / br)), this.y *= Math.pow(this.percentChangeY, A / br);
|
|
65551
65560
|
}
|
|
65552
65561
|
this.timeSinceRelease += A, this.x && this.y ? Math.abs(this.x) < this.options.minSpeed && Math.abs(this.y) < this.options.minSpeed && (this.x = 0, this.y = 0) : (Math.abs(this.x || 0) < this.options.minSpeed && (this.x = 0), Math.abs(this.y || 0) < this.options.minSpeed && (this.y = 0)), e && this.parent.emit("moved", { viewport: this.parent, type: "decelerate" });
|
|
65553
65562
|
}
|
|
@@ -66499,7 +66508,7 @@ var wG = Object.defineProperty, CG = Object.getOwnPropertyDescriptor, il = (n, A
|
|
|
66499
66508
|
(s = n[r]) && (i = (t ? s(A, e, i) : s(i)) || i);
|
|
66500
66509
|
return t && i && wG(A, e, i), i;
|
|
66501
66510
|
};
|
|
66502
|
-
let Zr = class extends
|
|
66511
|
+
let Zr = class extends Yr {
|
|
66503
66512
|
constructor() {
|
|
66504
66513
|
super(), this._domBoundingRect = {
|
|
66505
66514
|
x: 0,
|
|
@@ -66638,6 +66647,9 @@ let Zr = class extends Gr {
|
|
|
66638
66647
|
async add(n, A) {
|
|
66639
66648
|
this._imageUrl = n, this.logoSize = A, this._sprite.texture = await GA.fromURL(n), this.imageSize.width = this._sprite.texture.width, this.imageSize.height = this._sprite.texture.height, this.fit();
|
|
66640
66649
|
}
|
|
66650
|
+
clear() {
|
|
66651
|
+
this._sprite.texture.destroy(!0), this.boundRect && (this.boundRect.style.left = "0px", this.boundRect.style.top = "0px", this.boundRect.style.width = "0px", this.boundRect.style.height = "0px");
|
|
66652
|
+
}
|
|
66641
66653
|
fit() {
|
|
66642
66654
|
this.viewport.scale.set(1, 1), this._sprite.anchor.set(0.5, 0.5), this.viewport.moveCenter(this._sprite.position.x, this._sprite.position.y);
|
|
66643
66655
|
const n = this.viewport.screenWidth, A = this.viewport.screenHeight, e = this._sprite.width / n, t = this._sprite.height / A, i = Math.max(e, t);
|