shop-components 0.1.29 → 0.1.30
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
|
@@ -192,9 +192,9 @@ const za = {
|
|
|
192
192
|
normalize: Me,
|
|
193
193
|
denormalize: Zi
|
|
194
194
|
};
|
|
195
|
-
class
|
|
195
|
+
class uA {
|
|
196
196
|
constructor(A = 0, e = 0) {
|
|
197
|
-
|
|
197
|
+
uA.prototype.isVector2 = !0, this.x = A, this.y = e;
|
|
198
198
|
}
|
|
199
199
|
get width() {
|
|
200
200
|
return this.x;
|
|
@@ -748,7 +748,7 @@ function Qd(n) {
|
|
|
748
748
|
}
|
|
749
749
|
let fM = 0, ct = class $u extends Gs {
|
|
750
750
|
constructor(A = $u.DEFAULT_IMAGE, e = $u.DEFAULT_MAPPING, t = it, i = it, r = we, s = Qi, o = _e, a = en, l = $u.DEFAULT_ANISOTROPY, u = Yn) {
|
|
751
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: fM++ }), this.uuid = Li(), this.name = "", this.source = new rd(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = r, this.minFilter = s, this.anisotropy = l, this.format = o, this.internalFormat = null, this.type = a, this.offset = new
|
|
751
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: fM++ }), this.uuid = Li(), this.name = "", this.source = new rd(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = r, this.minFilter = s, this.anisotropy = l, this.format = o, this.internalFormat = null, this.type = a, this.offset = new uA(0, 0), this.repeat = new uA(1, 1), this.center = new uA(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new le(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = u, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.pmremVersion = 0;
|
|
752
752
|
}
|
|
753
753
|
get image() {
|
|
754
754
|
return this.source.data;
|
|
@@ -3381,7 +3381,7 @@ function MM(n) {
|
|
|
3381
3381
|
const ri = {
|
|
3382
3382
|
toHalfFloat: SM,
|
|
3383
3383
|
fromHalfFloat: MM
|
|
3384
|
-
}, et = /* @__PURE__ */ new O(), fh = /* @__PURE__ */ new
|
|
3384
|
+
}, et = /* @__PURE__ */ new O(), fh = /* @__PURE__ */ new uA();
|
|
3385
3385
|
class he {
|
|
3386
3386
|
constructor(A, e, t = !1) {
|
|
3387
3387
|
if (Array.isArray(A))
|
|
@@ -3657,7 +3657,7 @@ class Re extends Gs {
|
|
|
3657
3657
|
const s = this.getAttribute("tangent"), o = [], a = [];
|
|
3658
3658
|
for (let S = 0; S < t.count; S++)
|
|
3659
3659
|
o[S] = new O(), a[S] = new O();
|
|
3660
|
-
const l = new O(), u = new O(), c = new O(), h = new
|
|
3660
|
+
const l = new O(), u = new O(), c = new O(), h = new uA(), f = new uA(), p = new uA(), m = new O(), d = new O();
|
|
3661
3661
|
function g(S, b, I) {
|
|
3662
3662
|
l.fromBufferAttribute(t, S), u.fromBufferAttribute(t, b), c.fromBufferAttribute(t, I), h.fromBufferAttribute(r, S), f.fromBufferAttribute(r, b), p.fromBufferAttribute(r, I), u.sub(l), c.sub(l), f.sub(h), p.sub(h);
|
|
3663
3663
|
const D = 1 / (f.x * p.y - p.x * f.y);
|
|
@@ -3832,7 +3832,7 @@ class Re extends Gs {
|
|
|
3832
3832
|
this.dispatchEvent({ type: "dispose" });
|
|
3833
3833
|
}
|
|
3834
3834
|
}
|
|
3835
|
-
const aw = /* @__PURE__ */ new zA(), ns = /* @__PURE__ */ new Hs(), dh = /* @__PURE__ */ new hi(), lw = /* @__PURE__ */ new O(), uo = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), hp = /* @__PURE__ */ new O(), ph = /* @__PURE__ */ new O(), gh = /* @__PURE__ */ new
|
|
3835
|
+
const aw = /* @__PURE__ */ new zA(), ns = /* @__PURE__ */ new Hs(), dh = /* @__PURE__ */ new hi(), lw = /* @__PURE__ */ new O(), uo = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), hp = /* @__PURE__ */ new O(), ph = /* @__PURE__ */ new O(), gh = /* @__PURE__ */ new uA(), mh = /* @__PURE__ */ new uA(), vh = /* @__PURE__ */ new uA(), cw = /* @__PURE__ */ new O(), hw = /* @__PURE__ */ new O(), uw = /* @__PURE__ */ new O(), yh = /* @__PURE__ */ new O(), wh = /* @__PURE__ */ new O();
|
|
3836
3836
|
let Pe = class extends Ie {
|
|
3837
3837
|
constructor(A = new Re(), e = new Ii()) {
|
|
3838
3838
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
@@ -3924,7 +3924,7 @@ function Ch(n, A, e, t, i, r, s, o, a, l) {
|
|
|
3924
3924
|
n.getVertexPosition(o, uo), n.getVertexPosition(a, fo), n.getVertexPosition(l, po);
|
|
3925
3925
|
const u = TM(n, A, e, t, uo, fo, po, yh);
|
|
3926
3926
|
if (u) {
|
|
3927
|
-
i && (gh.fromBufferAttribute(i, o), mh.fromBufferAttribute(i, a), vh.fromBufferAttribute(i, l), u.uv = Ze.getInterpolation(yh, uo, fo, po, gh, mh, vh, new
|
|
3927
|
+
i && (gh.fromBufferAttribute(i, o), mh.fromBufferAttribute(i, a), vh.fromBufferAttribute(i, l), u.uv = Ze.getInterpolation(yh, uo, fo, po, gh, mh, vh, new uA())), r && (gh.fromBufferAttribute(r, o), mh.fromBufferAttribute(r, a), vh.fromBufferAttribute(r, l), u.uv1 = Ze.getInterpolation(yh, uo, fo, po, gh, mh, vh, new uA())), s && (cw.fromBufferAttribute(s, o), hw.fromBufferAttribute(s, a), uw.fromBufferAttribute(s, l), u.normal = Ze.getInterpolation(yh, uo, fo, po, cw, hw, uw, new O()), u.normal.dot(t.direction) > 0 && u.normal.multiplyScalar(-1));
|
|
3928
3928
|
const c = {
|
|
3929
3929
|
a: o,
|
|
3930
3930
|
b: a,
|
|
@@ -4086,7 +4086,7 @@ class I2 extends Ie {
|
|
|
4086
4086
|
return new this.constructor().copy(this);
|
|
4087
4087
|
}
|
|
4088
4088
|
}
|
|
4089
|
-
const pr = /* @__PURE__ */ new O(), fw = /* @__PURE__ */ new
|
|
4089
|
+
const pr = /* @__PURE__ */ new O(), fw = /* @__PURE__ */ new uA(), dw = /* @__PURE__ */ new uA();
|
|
4090
4090
|
class yt extends I2 {
|
|
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();
|
|
@@ -8319,7 +8319,7 @@ void main() {
|
|
|
8319
8319
|
normalmap: {
|
|
8320
8320
|
normalMap: { value: null },
|
|
8321
8321
|
normalMapTransform: { value: /* @__PURE__ */ new le() },
|
|
8322
|
-
normalScale: { value: /* @__PURE__ */ new
|
|
8322
|
+
normalScale: { value: /* @__PURE__ */ new uA(1, 1) }
|
|
8323
8323
|
},
|
|
8324
8324
|
displacementmap: {
|
|
8325
8325
|
displacementMap: { value: null },
|
|
@@ -8426,7 +8426,7 @@ void main() {
|
|
|
8426
8426
|
sprite: {
|
|
8427
8427
|
diffuse: { value: /* @__PURE__ */ new FA(16777215) },
|
|
8428
8428
|
opacity: { value: 1 },
|
|
8429
|
-
center: { value: /* @__PURE__ */ new
|
|
8429
|
+
center: { value: /* @__PURE__ */ new uA(0.5, 0.5) },
|
|
8430
8430
|
rotation: { value: 0 },
|
|
8431
8431
|
map: { value: null },
|
|
8432
8432
|
mapTransform: { value: /* @__PURE__ */ new le() },
|
|
@@ -8667,7 +8667,7 @@ pn.physical = {
|
|
|
8667
8667
|
clearcoatMapTransform: { value: /* @__PURE__ */ new le() },
|
|
8668
8668
|
clearcoatNormalMap: { value: null },
|
|
8669
8669
|
clearcoatNormalMapTransform: { value: /* @__PURE__ */ new le() },
|
|
8670
|
-
clearcoatNormalScale: { value: /* @__PURE__ */ new
|
|
8670
|
+
clearcoatNormalScale: { value: /* @__PURE__ */ new uA(1, 1) },
|
|
8671
8671
|
clearcoatRoughness: { value: 0 },
|
|
8672
8672
|
clearcoatRoughnessMap: { value: null },
|
|
8673
8673
|
clearcoatRoughnessMapTransform: { value: /* @__PURE__ */ new le() },
|
|
@@ -8690,7 +8690,7 @@ pn.physical = {
|
|
|
8690
8690
|
transmission: { value: 0 },
|
|
8691
8691
|
transmissionMap: { value: null },
|
|
8692
8692
|
transmissionMapTransform: { value: /* @__PURE__ */ new le() },
|
|
8693
|
-
transmissionSamplerSize: { value: /* @__PURE__ */ new
|
|
8693
|
+
transmissionSamplerSize: { value: /* @__PURE__ */ new uA() },
|
|
8694
8694
|
transmissionSamplerMap: { value: null },
|
|
8695
8695
|
thickness: { value: 0 },
|
|
8696
8696
|
thicknessMap: { value: null },
|
|
@@ -8703,7 +8703,7 @@ pn.physical = {
|
|
|
8703
8703
|
specularIntensity: { value: 1 },
|
|
8704
8704
|
specularIntensityMap: { value: null },
|
|
8705
8705
|
specularIntensityMapTransform: { value: /* @__PURE__ */ new le() },
|
|
8706
|
-
anisotropyVector: { value: /* @__PURE__ */ new
|
|
8706
|
+
anisotropyVector: { value: /* @__PURE__ */ new uA() },
|
|
8707
8707
|
anisotropyMap: { value: null },
|
|
8708
8708
|
anisotropyMapTransform: { value: /* @__PURE__ */ new le() }
|
|
8709
8709
|
}
|
|
@@ -8887,7 +8887,7 @@ function yP(n, A) {
|
|
|
8887
8887
|
continue;
|
|
8888
8888
|
const X = Y.buffer, j = Y.type, G = Y.bytesPerElement, V = j === n.INT || j === n.UNSIGNED_INT || U.gpuType === rc;
|
|
8889
8889
|
if (U.isInterleavedBufferAttribute) {
|
|
8890
|
-
const J = U.data, tA = J.stride,
|
|
8890
|
+
const J = U.data, tA = J.stride, dA = U.offset;
|
|
8891
8891
|
if (J.isInstancedInterleavedBuffer) {
|
|
8892
8892
|
for (let H = 0; H < K.locationSize; H++)
|
|
8893
8893
|
g(K.location + H, J.meshPerAttribute);
|
|
@@ -8903,7 +8903,7 @@ function yP(n, A) {
|
|
|
8903
8903
|
j,
|
|
8904
8904
|
k,
|
|
8905
8905
|
tA * G,
|
|
8906
|
-
(
|
|
8906
|
+
(dA + N / K.locationSize * H) * G,
|
|
8907
8907
|
V
|
|
8908
8908
|
);
|
|
8909
8909
|
} else {
|
|
@@ -9944,7 +9944,7 @@ function EP(n, A, e) {
|
|
|
9944
9944
|
h = {
|
|
9945
9945
|
count: c,
|
|
9946
9946
|
texture: x,
|
|
9947
|
-
size: new
|
|
9947
|
+
size: new uA(w, C)
|
|
9948
9948
|
}, t.set(o, h), o.addEventListener("dispose", b);
|
|
9949
9949
|
}
|
|
9950
9950
|
if (s.isInstancedMesh === !0 && s.morphTexture !== null)
|
|
@@ -11077,7 +11077,7 @@ function UT(n, A, e, t, i, r, s) {
|
|
|
11077
11077
|
X = NA.vertexShader, j = NA.fragmentShader;
|
|
11078
11078
|
} else
|
|
11079
11079
|
X = b.vertexShader, j = b.fragmentShader, a.update(b), G = a.getVertexShaderID(b), V = a.getFragmentShaderID(b);
|
|
11080
|
-
const J = n.getRenderTarget(), tA = M.isInstancedMesh === !0,
|
|
11080
|
+
const J = n.getRenderTarget(), tA = M.isInstancedMesh === !0, dA = M.isBatchedMesh === !0, H = !!b.map, aA = !!b.matcap, AA = !!W, TA = !!b.aoMap, vA = !!b.lightMap, mA = !!b.bumpMap, yA = !!b.normalMap, _A = !!b.displacementMap, gA = !!b.emissiveMap, R = !!b.metalnessMap, L = !!b.roughnessMap, F = b.anisotropy > 0, iA = b.clearcoat > 0, eA = b.dispersion > 0, nA = b.iridescence > 0, fA = b.sheen > 0, wA = b.transmission > 0, cA = F && !!b.anisotropyMap, xA = iA && !!b.clearcoatMap, lA = iA && !!b.clearcoatNormalMap, IA = iA && !!b.clearcoatRoughnessMap, GA = nA && !!b.iridescenceMap, qA = nA && !!b.iridescenceThicknessMap, CA = fA && !!b.sheenColorMap, DA = fA && !!b.sheenRoughnessMap, SA = !!b.specularMap, XA = !!b.specularColorMap, KA = !!b.specularIntensityMap, E = wA && !!b.transmissionMap, Q = wA && !!b.thicknessMap, Z = !!b.gradientMap, hA = !!b.alphaMap, MA = b.alphaTest > 0, RA = !!b.alphaHash, EA = !!b.extensions;
|
|
11081
11081
|
let ne = Ar;
|
|
11082
11082
|
b.toneMapped && (J === null || J.isXRRenderTarget === !0) && (ne = n.toneMapping);
|
|
11083
11083
|
const oe = {
|
|
@@ -11092,7 +11092,7 @@ function UT(n, A, e, t, i, r, s) {
|
|
|
11092
11092
|
isRawShaderMaterial: b.isRawShaderMaterial === !0,
|
|
11093
11093
|
glslVersion: b.glslVersion,
|
|
11094
11094
|
precision: f,
|
|
11095
|
-
batching:
|
|
11095
|
+
batching: dA,
|
|
11096
11096
|
instancing: tA,
|
|
11097
11097
|
instancingColor: tA && M.instanceColor !== null,
|
|
11098
11098
|
instancingMorph: tA && M.morphTexture !== null,
|
|
@@ -11124,7 +11124,7 @@ function UT(n, A, e, t, i, r, s) {
|
|
|
11124
11124
|
iridescence: nA,
|
|
11125
11125
|
iridescenceMap: GA,
|
|
11126
11126
|
iridescenceThicknessMap: qA,
|
|
11127
|
-
sheen:
|
|
11127
|
+
sheen: fA,
|
|
11128
11128
|
sheenColorMap: CA,
|
|
11129
11129
|
sheenRoughnessMap: DA,
|
|
11130
11130
|
specularMap: SA,
|
|
@@ -11429,7 +11429,7 @@ function QT() {
|
|
|
11429
11429
|
shadowBias: 0,
|
|
11430
11430
|
shadowNormalBias: 0,
|
|
11431
11431
|
shadowRadius: 1,
|
|
11432
|
-
shadowMapSize: new
|
|
11432
|
+
shadowMapSize: new uA()
|
|
11433
11433
|
};
|
|
11434
11434
|
break;
|
|
11435
11435
|
case "SpotLight":
|
|
@@ -11437,7 +11437,7 @@ function QT() {
|
|
|
11437
11437
|
shadowBias: 0,
|
|
11438
11438
|
shadowNormalBias: 0,
|
|
11439
11439
|
shadowRadius: 1,
|
|
11440
|
-
shadowMapSize: new
|
|
11440
|
+
shadowMapSize: new uA()
|
|
11441
11441
|
};
|
|
11442
11442
|
break;
|
|
11443
11443
|
case "PointLight":
|
|
@@ -11445,7 +11445,7 @@ function QT() {
|
|
|
11445
11445
|
shadowBias: 0,
|
|
11446
11446
|
shadowNormalBias: 0,
|
|
11447
11447
|
shadowRadius: 1,
|
|
11448
|
-
shadowMapSize: new
|
|
11448
|
+
shadowMapSize: new uA(),
|
|
11449
11449
|
shadowCameraNear: 1,
|
|
11450
11450
|
shadowCameraFar: 1e3
|
|
11451
11451
|
};
|
|
@@ -11673,13 +11673,13 @@ void main() {
|
|
|
11673
11673
|
}`;
|
|
11674
11674
|
function nD(n, A, e) {
|
|
11675
11675
|
let t = new tv();
|
|
11676
|
-
const i = new
|
|
11676
|
+
const i = new uA(), r = new uA(), s = new me(), o = new nv({ depthPacking: V0 }), a = new L2(), l = {}, u = e.maxTextureSize, c = { [Ft]: Ct, [Ct]: Ft, [ot]: ot }, h = new $e({
|
|
11677
11677
|
defines: {
|
|
11678
11678
|
VSM_SAMPLES: 8
|
|
11679
11679
|
},
|
|
11680
11680
|
uniforms: {
|
|
11681
11681
|
shadow_pass: { value: null },
|
|
11682
|
-
resolution: { value: new
|
|
11682
|
+
resolution: { value: new uA() },
|
|
11683
11683
|
radius: { value: 4 }
|
|
11684
11684
|
},
|
|
11685
11685
|
vertexShader: tD,
|
|
@@ -11912,7 +11912,7 @@ function rD(n) {
|
|
|
11912
11912
|
function tA(E, Q) {
|
|
11913
11913
|
return u[E] !== Q ? (n.bindFramebuffer(E, Q), u[E] = Q, E === n.DRAW_FRAMEBUFFER && (u[n.FRAMEBUFFER] = Q), E === n.FRAMEBUFFER && (u[n.DRAW_FRAMEBUFFER] = Q), !0) : !1;
|
|
11914
11914
|
}
|
|
11915
|
-
function
|
|
11915
|
+
function dA(E, Q) {
|
|
11916
11916
|
let Z = h, hA = !1;
|
|
11917
11917
|
if (E) {
|
|
11918
11918
|
Z = c.get(Q), Z === void 0 && (Z = [], c.set(Q, Z));
|
|
@@ -12049,7 +12049,7 @@ function rD(n) {
|
|
|
12049
12049
|
console.error("THREE.WebGLState:", E);
|
|
12050
12050
|
}
|
|
12051
12051
|
}
|
|
12052
|
-
function
|
|
12052
|
+
function fA() {
|
|
12053
12053
|
try {
|
|
12054
12054
|
n.texSubImage2D.apply(n, arguments);
|
|
12055
12055
|
} catch (E) {
|
|
@@ -12133,7 +12133,7 @@ function rD(n) {
|
|
|
12133
12133
|
enable: V,
|
|
12134
12134
|
disable: J,
|
|
12135
12135
|
bindFramebuffer: tA,
|
|
12136
|
-
drawBuffers:
|
|
12136
|
+
drawBuffers: dA,
|
|
12137
12137
|
useProgram: H,
|
|
12138
12138
|
setBlending: TA,
|
|
12139
12139
|
setMaterial: vA,
|
|
@@ -12153,7 +12153,7 @@ function rD(n) {
|
|
|
12153
12153
|
uniformBlockBinding: XA,
|
|
12154
12154
|
texStorage2D: lA,
|
|
12155
12155
|
texStorage3D: IA,
|
|
12156
|
-
texSubImage2D:
|
|
12156
|
+
texSubImage2D: fA,
|
|
12157
12157
|
texSubImage3D: wA,
|
|
12158
12158
|
compressedTexSubImage2D: cA,
|
|
12159
12159
|
compressedTexSubImage3D: xA,
|
|
@@ -12163,7 +12163,7 @@ function rD(n) {
|
|
|
12163
12163
|
};
|
|
12164
12164
|
}
|
|
12165
12165
|
function sD(n, A, e, t, i, r, s) {
|
|
12166
|
-
const o = A.has("WEBGL_multisampled_render_to_texture") ? A.get("WEBGL_multisampled_render_to_texture") : null, a = typeof navigator > "u" ? !1 : /OculusBrowser/g.test(navigator.userAgent), l = new
|
|
12166
|
+
const o = A.has("WEBGL_multisampled_render_to_texture") ? A.get("WEBGL_multisampled_render_to_texture") : null, a = typeof navigator > "u" ? !1 : /OculusBrowser/g.test(navigator.userAgent), l = new uA(), u = /* @__PURE__ */ new WeakMap();
|
|
12167
12167
|
let c;
|
|
12168
12168
|
const h = /* @__PURE__ */ new WeakMap();
|
|
12169
12169
|
let f = !1;
|
|
@@ -12182,10 +12182,10 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12182
12182
|
const eA = gA(R);
|
|
12183
12183
|
if ((eA.width > F || eA.height > F) && (iA = F / Math.max(eA.width, eA.height)), iA < 1)
|
|
12184
12184
|
if (typeof HTMLImageElement < "u" && R instanceof HTMLImageElement || typeof HTMLCanvasElement < "u" && R instanceof HTMLCanvasElement || typeof ImageBitmap < "u" && R instanceof ImageBitmap || typeof VideoFrame < "u" && R instanceof VideoFrame) {
|
|
12185
|
-
const nA = Math.floor(iA * eA.width),
|
|
12186
|
-
c === void 0 && (c = p(nA,
|
|
12187
|
-
const wA = L ? p(nA,
|
|
12188
|
-
return wA.width = nA, wA.height =
|
|
12185
|
+
const nA = Math.floor(iA * eA.width), fA = Math.floor(iA * eA.height);
|
|
12186
|
+
c === void 0 && (c = p(nA, fA));
|
|
12187
|
+
const wA = L ? p(nA, fA) : c;
|
|
12188
|
+
return wA.width = nA, wA.height = fA, wA.getContext("2d").drawImage(R, 0, 0, nA, fA), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + eA.width + "x" + eA.height + ") to (" + nA + "x" + fA + ")."), wA;
|
|
12189
12189
|
} else
|
|
12190
12190
|
return "data" in R && console.warn("THREE.WebGLRenderer: Image in DataTexture is too big (" + eA.width + "x" + eA.height + ")."), R;
|
|
12191
12191
|
return R;
|
|
@@ -12204,8 +12204,8 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12204
12204
|
}
|
|
12205
12205
|
let nA = L;
|
|
12206
12206
|
if (L === n.RED && (F === n.FLOAT && (nA = n.R32F), F === n.HALF_FLOAT && (nA = n.R16F), F === n.UNSIGNED_BYTE && (nA = n.R8)), L === n.RED_INTEGER && (F === n.UNSIGNED_BYTE && (nA = n.R8UI), F === n.UNSIGNED_SHORT && (nA = n.R16UI), F === n.UNSIGNED_INT && (nA = n.R32UI), F === n.BYTE && (nA = n.R8I), F === n.SHORT && (nA = n.R16I), F === n.INT && (nA = n.R32I)), L === n.RG && (F === n.FLOAT && (nA = n.RG32F), F === n.HALF_FLOAT && (nA = n.RG16F), F === n.UNSIGNED_BYTE && (nA = n.RG8)), L === n.RG_INTEGER && (F === n.UNSIGNED_BYTE && (nA = n.RG8UI), F === n.UNSIGNED_SHORT && (nA = n.RG16UI), F === n.UNSIGNED_INT && (nA = n.RG32UI), F === n.BYTE && (nA = n.RG8I), F === n.SHORT && (nA = n.RG16I), F === n.INT && (nA = n.RG32I)), L === n.RGB && F === n.UNSIGNED_INT_5_9_9_9_REV && (nA = n.RGB9_E5), L === n.RGBA) {
|
|
12207
|
-
const
|
|
12208
|
-
F === n.FLOAT && (nA = n.RGBA32F), F === n.HALF_FLOAT && (nA = n.RGBA16F), F === n.UNSIGNED_BYTE && (nA =
|
|
12207
|
+
const fA = eA ? Cf : be.getTransfer(iA);
|
|
12208
|
+
F === n.FLOAT && (nA = n.RGBA32F), F === n.HALF_FLOAT && (nA = n.RGBA16F), F === n.UNSIGNED_BYTE && (nA = fA === Ee ? n.SRGB8_ALPHA8 : n.RGBA8), F === n.UNSIGNED_SHORT_4_4_4_4 && (nA = n.RGBA4), F === n.UNSIGNED_SHORT_5_5_5_1 && (nA = n.RGB5_A1);
|
|
12209
12209
|
}
|
|
12210
12210
|
return (nA === n.R16F || nA === n.R32F || nA === n.RG16F || nA === n.RG32F || nA === n.RGBA16F || nA === n.RGBA32F) && A.get("EXT_color_buffer_float"), nA;
|
|
12211
12211
|
}
|
|
@@ -12360,8 +12360,8 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12360
12360
|
texture: n.createTexture(),
|
|
12361
12361
|
usedTimes: 0
|
|
12362
12362
|
}, s.memory.textures++, F = !0), eA[nA].usedTimes++;
|
|
12363
|
-
const
|
|
12364
|
-
|
|
12363
|
+
const fA = eA[R.__cacheKey];
|
|
12364
|
+
fA !== void 0 && (eA[R.__cacheKey].usedTimes--, fA.usedTimes === 0 && x(L)), R.__cacheKey = nA, R.__webglTexture = eA[nA].texture;
|
|
12365
12365
|
}
|
|
12366
12366
|
return F;
|
|
12367
12367
|
}
|
|
@@ -12370,8 +12370,8 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12370
12370
|
(L.isDataArrayTexture || L.isCompressedArrayTexture) && (iA = n.TEXTURE_2D_ARRAY), L.isData3DTexture && (iA = n.TEXTURE_3D);
|
|
12371
12371
|
const eA = N(R, L), nA = L.source;
|
|
12372
12372
|
e.bindTexture(iA, R.__webglTexture, n.TEXTURE0 + F);
|
|
12373
|
-
const
|
|
12374
|
-
if (nA.version !==
|
|
12373
|
+
const fA = t.get(nA);
|
|
12374
|
+
if (nA.version !== fA.__version || eA === !0) {
|
|
12375
12375
|
e.activeTexture(n.TEXTURE0 + F);
|
|
12376
12376
|
const wA = be.getPrimaries(be.workingColorSpace), cA = L.colorSpace === Yn ? null : be.getPrimaries(L.colorSpace), xA = L.colorSpace === Yn || wA === cA ? n.NONE : n.BROWSER_DEFAULT_WEBGL;
|
|
12377
12377
|
n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, L.flipY), n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL, L.premultiplyAlpha), n.pixelStorei(n.UNPACK_ALIGNMENT, L.unpackAlignment), n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL, xA);
|
|
@@ -12381,7 +12381,7 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12381
12381
|
let qA = y(L.internalFormat, IA, GA, L.colorSpace, L.isVideoTexture);
|
|
12382
12382
|
k(iA, L);
|
|
12383
12383
|
let CA;
|
|
12384
|
-
const DA = L.mipmaps, SA = L.isVideoTexture !== !0, XA =
|
|
12384
|
+
const DA = L.mipmaps, SA = L.isVideoTexture !== !0, XA = fA.__version === void 0 || eA === !0, KA = nA.dataReady, E = v(L, lA);
|
|
12385
12385
|
if (L.isDepthTexture)
|
|
12386
12386
|
qA = n.DEPTH_COMPONENT16, L.type === Se ? qA = n.DEPTH_COMPONENT32F : L.type === Vi ? qA = n.DEPTH_COMPONENT24 : L.type === jc && (qA = n.DEPTH24_STENCIL8), XA && (SA ? e.texStorage2D(n.TEXTURE_2D, 1, qA, lA.width, lA.height) : e.texImage2D(n.TEXTURE_2D, 0, qA, lA.width, lA.height, 0, IA, GA, null));
|
|
12387
12387
|
else if (L.isDataTexture)
|
|
@@ -12431,7 +12431,7 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12431
12431
|
KA && e.texSubImage2D(n.TEXTURE_2D, 0, 0, 0, IA, GA, lA);
|
|
12432
12432
|
} else
|
|
12433
12433
|
e.texImage2D(n.TEXTURE_2D, 0, qA, IA, GA, lA);
|
|
12434
|
-
d(L) && g(iA),
|
|
12434
|
+
d(L) && g(iA), fA.__version = nA.version, L.onUpdate && L.onUpdate(L);
|
|
12435
12435
|
}
|
|
12436
12436
|
R.__version = L.version;
|
|
12437
12437
|
}
|
|
@@ -12443,7 +12443,7 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12443
12443
|
const nA = t.get(eA);
|
|
12444
12444
|
if (eA.version !== nA.__version || iA === !0) {
|
|
12445
12445
|
e.activeTexture(n.TEXTURE0 + F);
|
|
12446
|
-
const
|
|
12446
|
+
const fA = be.getPrimaries(be.workingColorSpace), wA = L.colorSpace === Yn ? null : be.getPrimaries(L.colorSpace), cA = L.colorSpace === Yn || fA === wA ? n.NONE : n.BROWSER_DEFAULT_WEBGL;
|
|
12447
12447
|
n.pixelStorei(n.UNPACK_FLIP_Y_WEBGL, L.flipY), n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL, L.premultiplyAlpha), n.pixelStorei(n.UNPACK_ALIGNMENT, L.unpackAlignment), n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL, cA);
|
|
12448
12448
|
const xA = L.isCompressedTexture || L.image[0].isCompressedTexture, lA = L.image[0] && L.image[0].isDataTexture, IA = [];
|
|
12449
12449
|
for (let Z = 0; Z < 6; Z++)
|
|
@@ -12487,10 +12487,10 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12487
12487
|
R.__version = L.version;
|
|
12488
12488
|
}
|
|
12489
12489
|
function j(R, L, F, iA, eA, nA) {
|
|
12490
|
-
const
|
|
12490
|
+
const fA = r.convert(F.format, F.colorSpace), wA = r.convert(F.type), cA = y(F.internalFormat, fA, wA, F.colorSpace);
|
|
12491
12491
|
if (!t.get(L).__hasExternalTextures) {
|
|
12492
12492
|
const lA = Math.max(1, L.width >> nA), IA = Math.max(1, L.height >> nA);
|
|
12493
|
-
eA === n.TEXTURE_3D || eA === n.TEXTURE_2D_ARRAY ? e.texImage3D(eA, nA, cA, lA, IA, L.depth, 0,
|
|
12493
|
+
eA === n.TEXTURE_3D || eA === n.TEXTURE_2D_ARRAY ? e.texImage3D(eA, nA, cA, lA, IA, L.depth, 0, fA, wA, null) : e.texImage2D(eA, nA, cA, lA, IA, 0, fA, wA, null);
|
|
12494
12494
|
}
|
|
12495
12495
|
e.bindFramebuffer(n.FRAMEBUFFER, R), mA(L) ? o.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER, iA, eA, t.get(F).__webglTexture, 0, vA(L)) : (eA === n.TEXTURE_2D || eA >= n.TEXTURE_CUBE_MAP_POSITIVE_X && eA <= n.TEXTURE_CUBE_MAP_NEGATIVE_Z) && n.framebufferTexture2D(n.FRAMEBUFFER, iA, eA, t.get(F).__webglTexture, nA), e.bindFramebuffer(n.FRAMEBUFFER, null);
|
|
12496
12496
|
}
|
|
@@ -12511,7 +12511,7 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12511
12511
|
} else {
|
|
12512
12512
|
const iA = L.textures;
|
|
12513
12513
|
for (let eA = 0; eA < iA.length; eA++) {
|
|
12514
|
-
const nA = iA[eA],
|
|
12514
|
+
const nA = iA[eA], fA = r.convert(nA.format, nA.colorSpace), wA = r.convert(nA.type), cA = y(nA.internalFormat, fA, wA, nA.colorSpace), xA = vA(L);
|
|
12515
12515
|
F && mA(L) === !1 ? n.renderbufferStorageMultisample(n.RENDERBUFFER, xA, cA, L.width, L.height) : mA(L) ? o.renderbufferStorageMultisampleEXT(n.RENDERBUFFER, xA, cA, L.width, L.height) : n.renderbufferStorage(n.RENDERBUFFER, cA, L.width, L.height);
|
|
12516
12516
|
}
|
|
12517
12517
|
}
|
|
@@ -12549,11 +12549,11 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12549
12549
|
const iA = t.get(R);
|
|
12550
12550
|
L !== void 0 && j(iA.__webglFramebuffer, R, R.texture, n.COLOR_ATTACHMENT0, n.TEXTURE_2D, 0), F !== void 0 && J(R);
|
|
12551
12551
|
}
|
|
12552
|
-
function
|
|
12552
|
+
function dA(R) {
|
|
12553
12553
|
const L = R.texture, F = t.get(R), iA = t.get(L);
|
|
12554
12554
|
R.addEventListener("dispose", C);
|
|
12555
|
-
const eA = R.textures, nA = R.isWebGLCubeRenderTarget === !0,
|
|
12556
|
-
if (
|
|
12555
|
+
const eA = R.textures, nA = R.isWebGLCubeRenderTarget === !0, fA = eA.length > 1;
|
|
12556
|
+
if (fA || (iA.__webglTexture === void 0 && (iA.__webglTexture = n.createTexture()), iA.__version = L.version, s.memory.textures++), nA) {
|
|
12557
12557
|
F.__webglFramebuffer = [];
|
|
12558
12558
|
for (let wA = 0; wA < 6; wA++)
|
|
12559
12559
|
if (L.mipmaps && L.mipmaps.length > 0) {
|
|
@@ -12569,7 +12569,7 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12569
12569
|
F.__webglFramebuffer[wA] = n.createFramebuffer();
|
|
12570
12570
|
} else
|
|
12571
12571
|
F.__webglFramebuffer = n.createFramebuffer();
|
|
12572
|
-
if (
|
|
12572
|
+
if (fA)
|
|
12573
12573
|
for (let wA = 0, cA = eA.length; wA < cA; wA++) {
|
|
12574
12574
|
const xA = t.get(eA[wA]);
|
|
12575
12575
|
xA.__webglTexture === void 0 && (xA.__webglTexture = n.createTexture(), s.memory.textures++);
|
|
@@ -12594,7 +12594,7 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12594
12594
|
else
|
|
12595
12595
|
j(F.__webglFramebuffer[wA], R, L, n.COLOR_ATTACHMENT0, n.TEXTURE_CUBE_MAP_POSITIVE_X + wA, 0);
|
|
12596
12596
|
d(L) && g(n.TEXTURE_CUBE_MAP), e.unbindTexture();
|
|
12597
|
-
} else if (
|
|
12597
|
+
} else if (fA) {
|
|
12598
12598
|
for (let wA = 0, cA = eA.length; wA < cA; wA++) {
|
|
12599
12599
|
const xA = eA[wA], lA = t.get(xA);
|
|
12600
12600
|
e.bindTexture(n.TEXTURE_2D, lA.__webglTexture), k(n.TEXTURE_2D, xA), j(F.__webglFramebuffer, R, xA, n.COLOR_ATTACHMENT0 + wA, n.TEXTURE_2D, 0), d(xA) && g(n.TEXTURE_2D);
|
|
@@ -12616,8 +12616,8 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12616
12616
|
for (let F = 0, iA = L.length; F < iA; F++) {
|
|
12617
12617
|
const eA = L[F];
|
|
12618
12618
|
if (d(eA)) {
|
|
12619
|
-
const nA = R.isWebGLCubeRenderTarget ? n.TEXTURE_CUBE_MAP : n.TEXTURE_2D,
|
|
12620
|
-
e.bindTexture(nA,
|
|
12619
|
+
const nA = R.isWebGLCubeRenderTarget ? n.TEXTURE_CUBE_MAP : n.TEXTURE_2D, fA = t.get(eA).__webglTexture;
|
|
12620
|
+
e.bindTexture(nA, fA), g(nA), e.unbindTexture();
|
|
12621
12621
|
}
|
|
12622
12622
|
}
|
|
12623
12623
|
}
|
|
@@ -12627,14 +12627,14 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12627
12627
|
if (mA(R) === !1) {
|
|
12628
12628
|
const L = R.textures, F = R.width, iA = R.height;
|
|
12629
12629
|
let eA = n.COLOR_BUFFER_BIT;
|
|
12630
|
-
const nA = R.stencilBuffer ? n.DEPTH_STENCIL_ATTACHMENT : n.DEPTH_ATTACHMENT,
|
|
12630
|
+
const nA = R.stencilBuffer ? n.DEPTH_STENCIL_ATTACHMENT : n.DEPTH_ATTACHMENT, fA = t.get(R), wA = L.length > 1;
|
|
12631
12631
|
if (wA)
|
|
12632
12632
|
for (let cA = 0; cA < L.length; cA++)
|
|
12633
|
-
e.bindFramebuffer(n.FRAMEBUFFER,
|
|
12634
|
-
e.bindFramebuffer(n.READ_FRAMEBUFFER,
|
|
12633
|
+
e.bindFramebuffer(n.FRAMEBUFFER, fA.__webglMultisampledFramebuffer), n.framebufferRenderbuffer(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0 + cA, n.RENDERBUFFER, null), e.bindFramebuffer(n.FRAMEBUFFER, fA.__webglFramebuffer), n.framebufferTexture2D(n.DRAW_FRAMEBUFFER, n.COLOR_ATTACHMENT0 + cA, n.TEXTURE_2D, null, 0);
|
|
12634
|
+
e.bindFramebuffer(n.READ_FRAMEBUFFER, fA.__webglMultisampledFramebuffer), e.bindFramebuffer(n.DRAW_FRAMEBUFFER, fA.__webglFramebuffer);
|
|
12635
12635
|
for (let cA = 0; cA < L.length; cA++) {
|
|
12636
12636
|
if (R.resolveDepthBuffer && (R.depthBuffer && (eA |= n.DEPTH_BUFFER_BIT), R.stencilBuffer && R.resolveStencilBuffer && (eA |= n.STENCIL_BUFFER_BIT)), wA) {
|
|
12637
|
-
n.framebufferRenderbuffer(n.READ_FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.RENDERBUFFER,
|
|
12637
|
+
n.framebufferRenderbuffer(n.READ_FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.RENDERBUFFER, fA.__webglColorRenderbuffer[cA]);
|
|
12638
12638
|
const xA = t.get(L[cA]).__webglTexture;
|
|
12639
12639
|
n.framebufferTexture2D(n.DRAW_FRAMEBUFFER, n.COLOR_ATTACHMENT0, n.TEXTURE_2D, xA, 0);
|
|
12640
12640
|
}
|
|
@@ -12642,11 +12642,11 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12642
12642
|
}
|
|
12643
12643
|
if (e.bindFramebuffer(n.READ_FRAMEBUFFER, null), e.bindFramebuffer(n.DRAW_FRAMEBUFFER, null), wA)
|
|
12644
12644
|
for (let cA = 0; cA < L.length; cA++) {
|
|
12645
|
-
e.bindFramebuffer(n.FRAMEBUFFER,
|
|
12645
|
+
e.bindFramebuffer(n.FRAMEBUFFER, fA.__webglMultisampledFramebuffer), n.framebufferRenderbuffer(n.FRAMEBUFFER, n.COLOR_ATTACHMENT0 + cA, n.RENDERBUFFER, fA.__webglColorRenderbuffer[cA]);
|
|
12646
12646
|
const xA = t.get(L[cA]).__webglTexture;
|
|
12647
|
-
e.bindFramebuffer(n.FRAMEBUFFER,
|
|
12647
|
+
e.bindFramebuffer(n.FRAMEBUFFER, fA.__webglFramebuffer), n.framebufferTexture2D(n.DRAW_FRAMEBUFFER, n.COLOR_ATTACHMENT0 + cA, n.TEXTURE_2D, xA, 0);
|
|
12648
12648
|
}
|
|
12649
|
-
e.bindFramebuffer(n.DRAW_FRAMEBUFFER,
|
|
12649
|
+
e.bindFramebuffer(n.DRAW_FRAMEBUFFER, fA.__webglMultisampledFramebuffer);
|
|
12650
12650
|
} else if (R.depthBuffer && R.resolveDepthBuffer === !1 && a) {
|
|
12651
12651
|
const L = R.stencilBuffer ? n.DEPTH_STENCIL_ATTACHMENT : n.DEPTH_ATTACHMENT;
|
|
12652
12652
|
n.invalidateFramebuffer(n.DRAW_FRAMEBUFFER, [L]);
|
|
@@ -12671,7 +12671,7 @@ function sD(n, A, e, t, i, r, s) {
|
|
|
12671
12671
|
function gA(R) {
|
|
12672
12672
|
return typeof HTMLImageElement < "u" && R instanceof HTMLImageElement ? (l.width = R.naturalWidth || R.width, l.height = R.naturalHeight || R.height) : typeof VideoFrame < "u" && R instanceof VideoFrame ? (l.width = R.displayWidth, l.height = R.displayHeight) : (l.width = R.width, l.height = R.height), l;
|
|
12673
12673
|
}
|
|
12674
|
-
this.allocateTextureUnit = D, this.resetTextureUnits = I, this.setTexture2D = M, this.setTexture2DArray = T, this.setTexture3D = q, this.setTextureCube = B, this.rebindTextures = tA, this.setupRenderTarget =
|
|
12674
|
+
this.allocateTextureUnit = D, this.resetTextureUnits = I, this.setTexture2D = M, this.setTexture2DArray = T, this.setTexture3D = q, this.setTextureCube = B, this.rebindTextures = tA, this.setupRenderTarget = dA, this.updateRenderTargetMipmap = H, this.updateMultisampleRenderTarget = TA, this.setupDepthRenderbuffer = J, this.setupFrameBufferTexture = j, this.useMultisampledRTT = mA;
|
|
12675
12675
|
}
|
|
12676
12676
|
function oD(n, A) {
|
|
12677
12677
|
function e(t, i = Yn) {
|
|
@@ -12962,7 +12962,7 @@ class fD extends Gs {
|
|
|
12962
12962
|
let i = null, r = 1, s = null, o = "local-floor", a = 1, l = null, u = null, c = null, h = null, f = null, p = null;
|
|
12963
12963
|
const m = new uD(), d = e.getContextAttributes();
|
|
12964
12964
|
let g = null, y = null;
|
|
12965
|
-
const v = [], w = [], C = new
|
|
12965
|
+
const v = [], w = [], C = new uA();
|
|
12966
12966
|
let _ = null;
|
|
12967
12967
|
const x = new yt();
|
|
12968
12968
|
x.layers.enable(1), x.viewport = new me();
|
|
@@ -13069,12 +13069,12 @@ class fD extends Gs {
|
|
|
13069
13069
|
const V = j.added[G];
|
|
13070
13070
|
let J = w.indexOf(V);
|
|
13071
13071
|
if (J === -1) {
|
|
13072
|
-
for (let
|
|
13073
|
-
if (
|
|
13074
|
-
w.push(V), J =
|
|
13072
|
+
for (let dA = 0; dA < v.length; dA++)
|
|
13073
|
+
if (dA >= w.length) {
|
|
13074
|
+
w.push(V), J = dA;
|
|
13075
13075
|
break;
|
|
13076
|
-
} else if (w[
|
|
13077
|
-
w[
|
|
13076
|
+
} else if (w[dA] === null) {
|
|
13077
|
+
w[dA] = V, J = dA;
|
|
13078
13078
|
break;
|
|
13079
13079
|
}
|
|
13080
13080
|
if (J === -1)
|
|
@@ -13087,10 +13087,10 @@ class fD extends Gs {
|
|
|
13087
13087
|
const B = new O(), W = new O();
|
|
13088
13088
|
function K(j, G, V) {
|
|
13089
13089
|
B.setFromMatrixPosition(G.matrixWorld), W.setFromMatrixPosition(V.matrixWorld);
|
|
13090
|
-
const J = B.distanceTo(W), tA = G.projectionMatrix.elements,
|
|
13090
|
+
const J = B.distanceTo(W), tA = G.projectionMatrix.elements, dA = V.projectionMatrix.elements, H = tA[14] / (tA[10] - 1), aA = tA[14] / (tA[10] + 1), AA = (tA[9] + 1) / tA[5], TA = (tA[9] - 1) / tA[5], vA = (tA[8] - 1) / tA[0], mA = (dA[8] + 1) / dA[0], yA = H * vA, _A = H * mA, gA = J / (-vA + mA), R = gA * -vA;
|
|
13091
13091
|
G.matrixWorld.decompose(j.position, j.quaternion, j.scale), j.translateX(R), j.translateZ(gA), j.matrixWorld.compose(j.position, j.quaternion, j.scale), j.matrixWorldInverse.copy(j.matrixWorld).invert();
|
|
13092
|
-
const L = H + gA, F = aA + gA, iA = yA - R, eA = _A + (J - R), nA = AA * aA / F * L,
|
|
13093
|
-
j.projectionMatrix.makePerspective(iA, eA, nA,
|
|
13092
|
+
const L = H + gA, F = aA + gA, iA = yA - R, eA = _A + (J - R), nA = AA * aA / F * L, fA = TA * aA / F * L;
|
|
13093
|
+
j.projectionMatrix.makePerspective(iA, eA, nA, fA, L, F), j.projectionMatrixInverse.copy(j.projectionMatrix).invert();
|
|
13094
13094
|
}
|
|
13095
13095
|
function U(j, G) {
|
|
13096
13096
|
G === null ? j.matrixWorld.copy(j.matrix) : j.matrixWorld.multiplyMatrices(G.matrixWorld, j.matrix), j.matrixWorldInverse.copy(j.matrixWorld).invert();
|
|
@@ -13128,26 +13128,26 @@ class fD extends Gs {
|
|
|
13128
13128
|
f !== null && (A.setRenderTargetFramebuffer(y, f.framebuffer), A.setRenderTarget(y));
|
|
13129
13129
|
let J = !1;
|
|
13130
13130
|
V.length !== I.cameras.length && (I.cameras.length = 0, J = !0);
|
|
13131
|
-
for (let
|
|
13132
|
-
const H = V[
|
|
13131
|
+
for (let dA = 0; dA < V.length; dA++) {
|
|
13132
|
+
const H = V[dA];
|
|
13133
13133
|
let aA = null;
|
|
13134
13134
|
if (f !== null)
|
|
13135
13135
|
aA = f.getViewport(H);
|
|
13136
13136
|
else {
|
|
13137
13137
|
const TA = c.getViewSubImage(h, H);
|
|
13138
|
-
aA = TA.viewport,
|
|
13138
|
+
aA = TA.viewport, dA === 0 && (A.setRenderTargetTextures(
|
|
13139
13139
|
y,
|
|
13140
13140
|
TA.colorTexture,
|
|
13141
13141
|
h.ignoreDepthValues ? void 0 : TA.depthStencilTexture
|
|
13142
13142
|
), A.setRenderTarget(y));
|
|
13143
13143
|
}
|
|
13144
|
-
let AA = b[
|
|
13145
|
-
AA === void 0 && (AA = new yt(), AA.layers.enable(
|
|
13144
|
+
let AA = b[dA];
|
|
13145
|
+
AA === void 0 && (AA = new yt(), AA.layers.enable(dA), AA.viewport = new me(), b[dA] = AA), AA.matrix.fromArray(H.transform.matrix), AA.matrix.decompose(AA.position, AA.quaternion, AA.scale), AA.projectionMatrix.fromArray(H.projectionMatrix), AA.projectionMatrixInverse.copy(AA.projectionMatrix).invert(), AA.viewport.set(aA.x, aA.y, aA.width, aA.height), dA === 0 && (I.matrix.copy(AA.matrix), I.matrix.decompose(I.position, I.quaternion, I.scale)), J === !0 && I.cameras.push(AA);
|
|
13146
13146
|
}
|
|
13147
13147
|
const tA = i.enabledFeatures;
|
|
13148
13148
|
if (tA && tA.includes("depth-sensing")) {
|
|
13149
|
-
const
|
|
13150
|
-
|
|
13149
|
+
const dA = c.getDepthInformation(V[0]);
|
|
13150
|
+
dA && dA.isValid && dA.texture && m.init(A, dA, i.renderState);
|
|
13151
13151
|
}
|
|
13152
13152
|
}
|
|
13153
13153
|
for (let V = 0; V < v.length; V++) {
|
|
@@ -13372,7 +13372,7 @@ class O2 {
|
|
|
13372
13372
|
const X = new tv();
|
|
13373
13373
|
let j = !1, G = !1;
|
|
13374
13374
|
const V = new zA(), J = new O(), tA = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
|
|
13375
|
-
function
|
|
13375
|
+
function dA() {
|
|
13376
13376
|
return x === null ? W : 1;
|
|
13377
13377
|
}
|
|
13378
13378
|
let H = t;
|
|
@@ -13398,9 +13398,9 @@ class O2 {
|
|
|
13398
13398
|
} catch (z) {
|
|
13399
13399
|
throw console.error("THREE.WebGLRenderer: " + z.message), z;
|
|
13400
13400
|
}
|
|
13401
|
-
let AA, TA, vA, mA, yA, _A, gA, R, L, F, iA, eA, nA,
|
|
13401
|
+
let AA, TA, vA, mA, yA, _A, gA, R, L, F, iA, eA, nA, fA, wA, cA, xA, lA, IA, GA, qA, CA, DA, SA;
|
|
13402
13402
|
function XA() {
|
|
13403
|
-
AA = new MP(H), AA.init(), CA = new oD(H, AA), TA = new CP(H, AA, A, CA), vA = new rD(H), mA = new DP(H), yA = new WT(), _A = new sD(H, AA, vA, yA, TA, CA, mA), gA = new IP(v), R = new SP(v), L = new zM(H), DA = new yP(H, L), F = new PP(H, L, mA, DA), iA = new LP(H, F, L, mA), IA = new EP(H, TA, _A), cA = new xP(yA), eA = new UT(v, gA, R, AA, TA, DA, cA), nA = new pD(v, yA),
|
|
13403
|
+
AA = new MP(H), AA.init(), CA = new oD(H, AA), TA = new CP(H, AA, A, CA), vA = new rD(H), mA = new DP(H), yA = new WT(), _A = new sD(H, AA, vA, yA, TA, CA, mA), gA = new IP(v), R = new SP(v), L = new zM(H), DA = new yP(H, L), F = new PP(H, L, mA, DA), iA = new LP(H, F, L, mA), IA = new EP(H, TA, _A), cA = new xP(yA), eA = new UT(v, gA, R, AA, TA, DA, cA), nA = new pD(v, yA), fA = new ZT(), wA = new eD(AA), lA = new vP(v, gA, R, vA, iA, h, a), xA = new nD(v, iA, TA), SA = new gD(H, mA, TA, vA), GA = new wP(H, AA, mA), qA = new TP(H, AA, mA), mA.programs = eA.programs, v.capabilities = TA, v.extensions = AA, v.properties = yA, v.renderLists = fA, v.shadowMap = xA, v.state = vA, v.info = mA;
|
|
13404
13404
|
}
|
|
13405
13405
|
XA();
|
|
13406
13406
|
const KA = new fD(v, H);
|
|
@@ -13478,7 +13478,7 @@ class O2 {
|
|
|
13478
13478
|
}, this.clearStencil = function() {
|
|
13479
13479
|
this.clear(!1, !1, !0);
|
|
13480
13480
|
}, this.dispose = function() {
|
|
13481
|
-
e.removeEventListener("webglcontextlost", E, !1), e.removeEventListener("webglcontextrestored", Q, !1), e.removeEventListener("webglcontextcreationerror", Z, !1),
|
|
13481
|
+
e.removeEventListener("webglcontextlost", E, !1), e.removeEventListener("webglcontextrestored", Q, !1), e.removeEventListener("webglcontextcreationerror", Z, !1), fA.dispose(), wA.dispose(), yA.dispose(), gA.dispose(), R.dispose(), iA.dispose(), DA.dispose(), SA.dispose(), eA.dispose(), KA.dispose(), KA.removeEventListener("sessionstart", NA), KA.removeEventListener("sessionend", ie), ce.stop();
|
|
13482
13482
|
};
|
|
13483
13483
|
function E(z) {
|
|
13484
13484
|
z.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), w = !0;
|
|
@@ -13523,10 +13523,10 @@ class O2 {
|
|
|
13523
13523
|
DA.setup(sA, rA, UA, oA, QA);
|
|
13524
13524
|
let pi, ye = GA;
|
|
13525
13525
|
if (QA !== null && (pi = L.get(QA), ye = qA, ye.setIndex(pi)), sA.isMesh)
|
|
13526
|
-
rA.wireframe === !0 ? (vA.setLineWidth(rA.wireframeLinewidth *
|
|
13526
|
+
rA.wireframe === !0 ? (vA.setLineWidth(rA.wireframeLinewidth * dA()), ye.setMode(H.LINES)) : ye.setMode(H.TRIANGLES);
|
|
13527
13527
|
else if (sA.isLine) {
|
|
13528
13528
|
let Ae = rA.linewidth;
|
|
13529
|
-
Ae === void 0 && (Ae = 1), vA.setLineWidth(Ae *
|
|
13529
|
+
Ae === void 0 && (Ae = 1), vA.setLineWidth(Ae * dA()), sA.isLineSegments ? ye.setMode(H.LINES) : sA.isLineLoop ? ye.setMode(H.LINE_LOOP) : ye.setMode(H.LINE_STRIP);
|
|
13530
13530
|
} else
|
|
13531
13531
|
sA.isPoints ? ye.setMode(H.POINTS) : sA.isSprite && ye.setMode(H.TRIANGLES);
|
|
13532
13532
|
if (sA.isBatchedMesh)
|
|
@@ -13595,7 +13595,7 @@ class O2 {
|
|
|
13595
13595
|
}
|
|
13596
13596
|
if (w === !0)
|
|
13597
13597
|
return;
|
|
13598
|
-
z.matrixWorldAutoUpdate === !0 && z.updateMatrixWorld(), $.parent === null && $.matrixWorldAutoUpdate === !0 && $.updateMatrixWorld(), KA.enabled === !0 && KA.isPresenting === !0 && (KA.cameraAutoUpdate === !0 && KA.updateCamera($), $ = KA.getCamera()), z.isScene === !0 && z.onBeforeRender(v, z, $, x), d = wA.get(z, y.length), d.init($), y.push(d), V.multiplyMatrices($.projectionMatrix, $.matrixWorldInverse), X.setFromProjectionMatrix(V), G = this.localClippingEnabled, j = cA.init(this.clippingPlanes, G), m =
|
|
13598
|
+
z.matrixWorldAutoUpdate === !0 && z.updateMatrixWorld(), $.parent === null && $.matrixWorldAutoUpdate === !0 && $.updateMatrixWorld(), KA.enabled === !0 && KA.isPresenting === !0 && (KA.cameraAutoUpdate === !0 && KA.updateCamera($), $ = KA.getCamera()), z.isScene === !0 && z.onBeforeRender(v, z, $, x), d = wA.get(z, y.length), d.init($), y.push(d), V.multiplyMatrices($.projectionMatrix, $.matrixWorldInverse), X.setFromProjectionMatrix(V), G = this.localClippingEnabled, j = cA.init(this.clippingPlanes, G), m = fA.get(z, g.length), m.init(), g.push(m), Le(z, $, 0, v.sortObjects), m.finish(), v.sortObjects === !0 && m.sort(K, U);
|
|
13599
13599
|
const oA = KA.enabled === !1 || KA.isPresenting === !1 || KA.hasDepthSensing() === !1;
|
|
13600
13600
|
oA && lA.addToRenderList(m, z), this.info.render.frame++, j === !0 && cA.beginShadows();
|
|
13601
13601
|
const rA = d.state.shadowsArray;
|
|
@@ -14543,7 +14543,7 @@ class Sn {
|
|
|
14543
14543
|
getTangent(A, e) {
|
|
14544
14544
|
let i = A - 1e-4, r = A + 1e-4;
|
|
14545
14545
|
i < 0 && (i = 0), r > 1 && (r = 1);
|
|
14546
|
-
const s = this.getPoint(i), o = this.getPoint(r), a = e || (s.isVector2 ? new
|
|
14546
|
+
const s = this.getPoint(i), o = this.getPoint(r), a = e || (s.isVector2 ? new uA() : new O());
|
|
14547
14547
|
return a.copy(o).sub(s).normalize(), a;
|
|
14548
14548
|
}
|
|
14549
14549
|
getTangentAt(A, e) {
|
|
@@ -14604,7 +14604,7 @@ class av extends Sn {
|
|
|
14604
14604
|
constructor(A = 0, e = 0, t = 1, i = 1, r = 0, s = Math.PI * 2, o = !1, a = 0) {
|
|
14605
14605
|
super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = A, this.aY = e, this.xRadius = t, this.yRadius = i, this.aStartAngle = r, this.aEndAngle = s, this.aClockwise = o, this.aRotation = a;
|
|
14606
14606
|
}
|
|
14607
|
-
getPoint(A, e = new
|
|
14607
|
+
getPoint(A, e = new uA()) {
|
|
14608
14608
|
const t = e, i = Math.PI * 2;
|
|
14609
14609
|
let r = this.aEndAngle - this.aStartAngle;
|
|
14610
14610
|
const s = Math.abs(r) < Number.EPSILON;
|
|
@@ -14741,10 +14741,10 @@ function ac(n, A, e, t, i) {
|
|
|
14741
14741
|
return ED(n, A) + LD(n, e) + OD(n, t) + qD(n, i);
|
|
14742
14742
|
}
|
|
14743
14743
|
class B2 extends Sn {
|
|
14744
|
-
constructor(A = new
|
|
14744
|
+
constructor(A = new uA(), e = new uA(), t = new uA(), i = new uA()) {
|
|
14745
14745
|
super(), this.isCubicBezierCurve = !0, this.type = "CubicBezierCurve", this.v0 = A, this.v1 = e, this.v2 = t, this.v3 = i;
|
|
14746
14746
|
}
|
|
14747
|
-
getPoint(A, e = new
|
|
14747
|
+
getPoint(A, e = new uA()) {
|
|
14748
14748
|
const t = e, i = this.v0, r = this.v1, s = this.v2, o = this.v3;
|
|
14749
14749
|
return t.set(
|
|
14750
14750
|
ac(A, i.x, r.x, s.x, o.x),
|
|
@@ -14786,10 +14786,10 @@ class ND extends Sn {
|
|
|
14786
14786
|
}
|
|
14787
14787
|
}
|
|
14788
14788
|
class z2 extends Sn {
|
|
14789
|
-
constructor(A = new
|
|
14789
|
+
constructor(A = new uA(), e = new uA()) {
|
|
14790
14790
|
super(), this.isLineCurve = !0, this.type = "LineCurve", this.v1 = A, this.v2 = e;
|
|
14791
14791
|
}
|
|
14792
|
-
getPoint(A, e = new
|
|
14792
|
+
getPoint(A, e = new uA()) {
|
|
14793
14793
|
const t = e;
|
|
14794
14794
|
return A === 1 ? t.copy(this.v2) : (t.copy(this.v2).sub(this.v1), t.multiplyScalar(A).add(this.v1)), t;
|
|
14795
14795
|
}
|
|
@@ -14797,7 +14797,7 @@ class z2 extends Sn {
|
|
|
14797
14797
|
getPointAt(A, e) {
|
|
14798
14798
|
return this.getPoint(A, e);
|
|
14799
14799
|
}
|
|
14800
|
-
getTangent(A, e = new
|
|
14800
|
+
getTangent(A, e = new uA()) {
|
|
14801
14801
|
return e.subVectors(this.v2, this.v1).normalize();
|
|
14802
14802
|
}
|
|
14803
14803
|
getTangentAt(A, e) {
|
|
@@ -14844,10 +14844,10 @@ class BD extends Sn {
|
|
|
14844
14844
|
}
|
|
14845
14845
|
}
|
|
14846
14846
|
class R2 extends Sn {
|
|
14847
|
-
constructor(A = new
|
|
14847
|
+
constructor(A = new uA(), e = new uA(), t = new uA()) {
|
|
14848
14848
|
super(), this.isQuadraticBezierCurve = !0, this.type = "QuadraticBezierCurve", this.v0 = A, this.v1 = e, this.v2 = t;
|
|
14849
14849
|
}
|
|
14850
|
-
getPoint(A, e = new
|
|
14850
|
+
getPoint(A, e = new uA()) {
|
|
14851
14851
|
const t = e, i = this.v0, r = this.v1, s = this.v2;
|
|
14852
14852
|
return t.set(
|
|
14853
14853
|
oc(A, i.x, r.x, s.x),
|
|
@@ -14892,7 +14892,7 @@ class k2 extends Sn {
|
|
|
14892
14892
|
constructor(A = []) {
|
|
14893
14893
|
super(), this.isSplineCurve = !0, this.type = "SplineCurve", this.points = A;
|
|
14894
14894
|
}
|
|
14895
|
-
getPoint(A, e = new
|
|
14895
|
+
getPoint(A, e = new uA()) {
|
|
14896
14896
|
const t = e, i = this.points, r = (i.length - 1) * A, s = Math.floor(r), o = r - s, a = i[s === 0 ? s : s - 1], l = i[s], u = i[s > i.length - 2 ? i.length - 1 : s + 1], c = i[s > i.length - 3 ? i.length - 1 : s + 2];
|
|
14897
14897
|
return t.set(
|
|
14898
14898
|
Qw(o, a.x, l.x, u.x, c.x),
|
|
@@ -14920,7 +14920,7 @@ class k2 extends Sn {
|
|
|
14920
14920
|
super.fromJSON(A), this.points = [];
|
|
14921
14921
|
for (let e = 0, t = A.points.length; e < t; e++) {
|
|
14922
14922
|
const i = A.points[e];
|
|
14923
|
-
this.points.push(new
|
|
14923
|
+
this.points.push(new uA().fromArray(i));
|
|
14924
14924
|
}
|
|
14925
14925
|
return this;
|
|
14926
14926
|
}
|
|
@@ -15040,7 +15040,7 @@ class RD extends Sn {
|
|
|
15040
15040
|
}
|
|
15041
15041
|
class dm extends RD {
|
|
15042
15042
|
constructor(A) {
|
|
15043
|
-
super(), this.type = "Path", this.currentPoint = new
|
|
15043
|
+
super(), this.type = "Path", this.currentPoint = new uA(), A && this.setFromPoints(A);
|
|
15044
15044
|
}
|
|
15045
15045
|
setFromPoints(A) {
|
|
15046
15046
|
this.moveTo(A[0].x, A[0].y);
|
|
@@ -15052,23 +15052,23 @@ class dm extends RD {
|
|
|
15052
15052
|
return this.currentPoint.set(A, e), this;
|
|
15053
15053
|
}
|
|
15054
15054
|
lineTo(A, e) {
|
|
15055
|
-
const t = new z2(this.currentPoint.clone(), new
|
|
15055
|
+
const t = new z2(this.currentPoint.clone(), new uA(A, e));
|
|
15056
15056
|
return this.curves.push(t), this.currentPoint.set(A, e), this;
|
|
15057
15057
|
}
|
|
15058
15058
|
quadraticCurveTo(A, e, t, i) {
|
|
15059
15059
|
const r = new R2(
|
|
15060
15060
|
this.currentPoint.clone(),
|
|
15061
|
-
new
|
|
15062
|
-
new
|
|
15061
|
+
new uA(A, e),
|
|
15062
|
+
new uA(t, i)
|
|
15063
15063
|
);
|
|
15064
15064
|
return this.curves.push(r), this.currentPoint.set(t, i), this;
|
|
15065
15065
|
}
|
|
15066
15066
|
bezierCurveTo(A, e, t, i, r, s) {
|
|
15067
15067
|
const o = new B2(
|
|
15068
15068
|
this.currentPoint.clone(),
|
|
15069
|
-
new
|
|
15070
|
-
new
|
|
15071
|
-
new
|
|
15069
|
+
new uA(A, e),
|
|
15070
|
+
new uA(t, i),
|
|
15071
|
+
new uA(r, s)
|
|
15072
15072
|
);
|
|
15073
15073
|
return this.curves.push(o), this.currentPoint.set(r, s), this;
|
|
15074
15074
|
}
|
|
@@ -15492,7 +15492,7 @@ class Pf extends Re {
|
|
|
15492
15492
|
}, t = Math.max(3, t), i = Math.max(1, i);
|
|
15493
15493
|
const o = [], a = [], l = [], u = [];
|
|
15494
15494
|
let c = A;
|
|
15495
|
-
const h = (e - A) / i, f = new O(), p = new
|
|
15495
|
+
const h = (e - A) / i, f = new O(), p = new uA();
|
|
15496
15496
|
for (let m = 0; m <= i; m++) {
|
|
15497
15497
|
for (let d = 0; d <= t; d++) {
|
|
15498
15498
|
const g = r + d / t * s;
|
|
@@ -15523,7 +15523,7 @@ class tE extends $e {
|
|
|
15523
15523
|
}
|
|
15524
15524
|
class Gc extends yn {
|
|
15525
15525
|
constructor(A) {
|
|
15526
|
-
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new FA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new FA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = p2, this.normalScale = new
|
|
15526
|
+
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new FA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new FA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = p2, this.normalScale = new uA(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new xn(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
|
|
15527
15527
|
}
|
|
15528
15528
|
copy(A) {
|
|
15529
15529
|
return super.copy(A), this.defines = { STANDARD: "" }, this.color.copy(A.color), this.roughness = A.roughness, this.metalness = A.metalness, this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.roughnessMap = A.roughnessMap, this.metalnessMap = A.metalnessMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapRotation.copy(A.envMapRotation), this.envMapIntensity = A.envMapIntensity, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.flatShading = A.flatShading, this.fog = A.fog, this;
|
|
@@ -15534,7 +15534,7 @@ class Mn extends Gc {
|
|
|
15534
15534
|
super(), this.isMeshPhysicalMaterial = !0, this.defines = {
|
|
15535
15535
|
STANDARD: "",
|
|
15536
15536
|
PHYSICAL: ""
|
|
15537
|
-
}, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new
|
|
15537
|
+
}, this.type = "MeshPhysicalMaterial", this.anisotropyRotation = 0, this.anisotropyMap = null, this.clearcoatMap = null, this.clearcoatRoughness = 0, this.clearcoatRoughnessMap = null, this.clearcoatNormalScale = new uA(1, 1), this.clearcoatNormalMap = null, this.ior = 1.5, Object.defineProperty(this, "reflectivity", {
|
|
15538
15538
|
get: function() {
|
|
15539
15539
|
return Ve(2.5 * (this.ior - 1) / (this.ior + 1), 0, 1);
|
|
15540
15540
|
},
|
|
@@ -16458,7 +16458,7 @@ class hv extends Ie {
|
|
|
16458
16458
|
const Tp = /* @__PURE__ */ new zA(), i1 = /* @__PURE__ */ new O(), n1 = /* @__PURE__ */ new O();
|
|
16459
16459
|
class uv {
|
|
16460
16460
|
constructor(A) {
|
|
16461
|
-
this.camera = A, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new
|
|
16461
|
+
this.camera = A, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new uA(512, 512), this.map = null, this.mapPass = null, this.matrix = new zA(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new tv(), this._frameExtents = new uA(1, 1), this._viewportCount = 1, this._viewports = [
|
|
16462
16462
|
new me(0, 0, 1, 1)
|
|
16463
16463
|
];
|
|
16464
16464
|
}
|
|
@@ -16541,7 +16541,7 @@ class mE extends hv {
|
|
|
16541
16541
|
const r1 = /* @__PURE__ */ new zA(), xl = /* @__PURE__ */ new O(), Dp = /* @__PURE__ */ new O();
|
|
16542
16542
|
class vE extends uv {
|
|
16543
16543
|
constructor() {
|
|
16544
|
-
super(new yt(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new
|
|
16544
|
+
super(new yt(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new uA(4, 2), this._viewportCount = 6, this._viewports = [
|
|
16545
16545
|
// These viewports map a cube-map onto a 2D texture with the
|
|
16546
16546
|
// following orientation:
|
|
16547
16547
|
//
|
|
@@ -17474,7 +17474,7 @@ const X2 = {
|
|
|
17474
17474
|
};
|
|
17475
17475
|
class Zn extends Qa {
|
|
17476
17476
|
constructor(A, e, t, i) {
|
|
17477
|
-
super(), this.renderScene = e, this.renderCamera = t, this.selectedObjects = i !== void 0 ? i : [], this.visibleEdgeColor = new FA(1, 1, 1), this.hiddenEdgeColor = new FA(0.1, 0.04, 0.02), this.edgeGlow = 0, this.usePatternTexture = !1, this.edgeThickness = 1, this.edgeStrength = 3, this.downSampleRatio = 2, this.pulsePeriod = 0, this._visibilityCache = /* @__PURE__ */ new Map(), this.resolution = A !== void 0 ? new
|
|
17477
|
+
super(), this.renderScene = e, this.renderCamera = t, this.selectedObjects = i !== void 0 ? i : [], this.visibleEdgeColor = new FA(1, 1, 1), this.hiddenEdgeColor = new FA(0.1, 0.04, 0.02), this.edgeGlow = 0, this.usePatternTexture = !1, this.edgeThickness = 1, this.edgeStrength = 3, this.downSampleRatio = 2, this.pulsePeriod = 0, this._visibilityCache = /* @__PURE__ */ new Map(), this.resolution = A !== void 0 ? new uA(A.x, A.y) : new uA(256, 256);
|
|
17478
17478
|
const r = Math.round(this.resolution.x / this.downSampleRatio), s = Math.round(this.resolution.y / this.downSampleRatio);
|
|
17479
17479
|
this.renderTargetMaskBuffer = new Xe(this.resolution.x, this.resolution.y), this.renderTargetMaskBuffer.texture.name = "OutlinePass.mask", this.renderTargetMaskBuffer.texture.generateMipmaps = !1, this.depthMaterial = new nv(), this.depthMaterial.side = ot, this.depthMaterial.depthPacking = V0, this.depthMaterial.blending = Et, this.prepareMaskMaterial = this.getPrepareMaskMaterial(), this.prepareMaskMaterial.side = ot, this.prepareMaskMaterial.fragmentShader = u(this.prepareMaskMaterial.fragmentShader, this.renderCamera), this.renderTargetDepthBuffer = new Xe(this.resolution.x, this.resolution.y, { type: Oe }), this.renderTargetDepthBuffer.texture.name = "OutlinePass.depth", this.renderTargetDepthBuffer.texture.generateMipmaps = !1, this.renderTargetMaskDownSampleBuffer = new Xe(r, s, { type: Oe }), this.renderTargetMaskDownSampleBuffer.texture.name = "OutlinePass.depthDownSample", this.renderTargetMaskDownSampleBuffer.texture.generateMipmaps = !1, this.renderTargetBlurBuffer1 = new Xe(r, s, { type: Oe }), this.renderTargetBlurBuffer1.texture.name = "OutlinePass.blur1", this.renderTargetBlurBuffer1.texture.generateMipmaps = !1, this.renderTargetBlurBuffer2 = new Xe(Math.round(r / 2), Math.round(s / 2), { type: Oe }), this.renderTargetBlurBuffer2.texture.name = "OutlinePass.blur2", this.renderTargetBlurBuffer2.texture.generateMipmaps = !1, this.edgeDetectionMaterial = this.getEdgeDetectionMaterial(), this.renderTargetEdgeBuffer1 = new Xe(r, s, { type: Oe }), this.renderTargetEdgeBuffer1.texture.name = "OutlinePass.edge1", this.renderTargetEdgeBuffer1.texture.generateMipmaps = !1, this.renderTargetEdgeBuffer2 = new Xe(Math.round(r / 2), Math.round(s / 2), { type: Oe }), this.renderTargetEdgeBuffer2.texture.name = "OutlinePass.edge2", this.renderTargetEdgeBuffer2.texture.generateMipmaps = !1;
|
|
17480
17480
|
const o = 4, a = 4;
|
|
@@ -17571,7 +17571,7 @@ class Zn extends Qa {
|
|
|
17571
17571
|
return new $e({
|
|
17572
17572
|
uniforms: {
|
|
17573
17573
|
depthTexture: { value: null },
|
|
17574
|
-
cameraNearFar: { value: new
|
|
17574
|
+
cameraNearFar: { value: new uA(0.5, 0.5) },
|
|
17575
17575
|
textureMatrix: { value: null }
|
|
17576
17576
|
},
|
|
17577
17577
|
vertexShader: `#include <morphtarget_pars_vertex>
|
|
@@ -17624,7 +17624,7 @@ class Zn extends Qa {
|
|
|
17624
17624
|
return new $e({
|
|
17625
17625
|
uniforms: {
|
|
17626
17626
|
maskTexture: { value: null },
|
|
17627
|
-
texSize: { value: new
|
|
17627
|
+
texSize: { value: new uA(0.5, 0.5) },
|
|
17628
17628
|
visibleEdgeColor: { value: new O(1, 1, 1) },
|
|
17629
17629
|
hiddenEdgeColor: { value: new O(1, 1, 1) }
|
|
17630
17630
|
},
|
|
@@ -17666,8 +17666,8 @@ class Zn extends Qa {
|
|
|
17666
17666
|
},
|
|
17667
17667
|
uniforms: {
|
|
17668
17668
|
colorTexture: { value: null },
|
|
17669
|
-
texSize: { value: new
|
|
17670
|
-
direction: { value: new
|
|
17669
|
+
texSize: { value: new uA(0.5, 0.5) },
|
|
17670
|
+
direction: { value: new uA(0.5, 0.5) },
|
|
17671
17671
|
kernelRadius: { value: 1 }
|
|
17672
17672
|
},
|
|
17673
17673
|
vertexShader: `varying vec2 vUv;
|
|
@@ -17753,8 +17753,8 @@ class Zn extends Qa {
|
|
|
17753
17753
|
});
|
|
17754
17754
|
}
|
|
17755
17755
|
}
|
|
17756
|
-
Zn.BlurDirectionX = new
|
|
17757
|
-
Zn.BlurDirectionY = new
|
|
17756
|
+
Zn.BlurDirectionX = new uA(1, 0);
|
|
17757
|
+
Zn.BlurDirectionY = new uA(0, 1);
|
|
17758
17758
|
class Q2 extends Qa {
|
|
17759
17759
|
constructor(A, e) {
|
|
17760
17760
|
super(), this.textureID = e !== void 0 ? e : "tDiffuse", A instanceof $e ? (this.uniforms = A.uniforms, this.material = A) : A && (this.uniforms = Kc.clone(A.uniforms), this.material = new $e({
|
|
@@ -17776,7 +17776,7 @@ const jE = {
|
|
|
17776
17776
|
name: "FXAAShader",
|
|
17777
17777
|
uniforms: {
|
|
17778
17778
|
tDiffuse: { value: null },
|
|
17779
|
-
resolution: { value: new
|
|
17779
|
+
resolution: { value: new uA(1 / 1024, 1 / 512) }
|
|
17780
17780
|
},
|
|
17781
17781
|
vertexShader: (
|
|
17782
17782
|
/* glsl */
|
|
@@ -18114,7 +18114,7 @@ class FE extends Gs {
|
|
|
18114
18114
|
let r = i.NONE;
|
|
18115
18115
|
const s = 1e-6, o = new vm(), a = new vm();
|
|
18116
18116
|
let l = 1;
|
|
18117
|
-
const u = new O(), c = new
|
|
18117
|
+
const u = new O(), c = new uA(), h = new uA(), f = new uA(), p = new uA(), m = new uA(), d = new uA(), g = new uA(), y = new uA(), v = new uA(), w = new O(), C = new uA();
|
|
18118
18118
|
let _ = !1;
|
|
18119
18119
|
const x = [], S = {};
|
|
18120
18120
|
let b = !1;
|
|
@@ -18211,7 +18211,7 @@ class FE extends Gs {
|
|
|
18211
18211
|
}
|
|
18212
18212
|
Q && (E.preventDefault(), t.update());
|
|
18213
18213
|
}
|
|
18214
|
-
function
|
|
18214
|
+
function dA(E) {
|
|
18215
18215
|
if (x.length === 1)
|
|
18216
18216
|
c.set(E.pageX, E.pageY);
|
|
18217
18217
|
else {
|
|
@@ -18235,7 +18235,7 @@ class FE extends Gs {
|
|
|
18235
18235
|
t.enableZoom && aA(E), t.enablePan && H(E);
|
|
18236
18236
|
}
|
|
18237
18237
|
function TA(E) {
|
|
18238
|
-
t.enableZoom && aA(E), t.enableRotate &&
|
|
18238
|
+
t.enableZoom && aA(E), t.enableRotate && dA(E);
|
|
18239
18239
|
}
|
|
18240
18240
|
function vA(E) {
|
|
18241
18241
|
if (x.length == 1)
|
|
@@ -18354,9 +18354,9 @@ class FE extends Gs {
|
|
|
18354
18354
|
}
|
|
18355
18355
|
}
|
|
18356
18356
|
function nA(E) {
|
|
18357
|
-
t.enabled === !1 || t.enableZoom === !1 || r !== i.NONE || (E.preventDefault(), t.dispatchEvent(Ep), J(
|
|
18357
|
+
t.enabled === !1 || t.enableZoom === !1 || r !== i.NONE || (E.preventDefault(), t.dispatchEvent(Ep), J(fA(E)), t.dispatchEvent(h1));
|
|
18358
18358
|
}
|
|
18359
|
-
function
|
|
18359
|
+
function fA(E) {
|
|
18360
18360
|
const Q = E.deltaMode, Z = {
|
|
18361
18361
|
clientX: E.clientX,
|
|
18362
18362
|
clientY: E.clientY,
|
|
@@ -18388,7 +18388,7 @@ class FE extends Gs {
|
|
|
18388
18388
|
case Ao.ROTATE:
|
|
18389
18389
|
if (t.enableRotate === !1)
|
|
18390
18390
|
return;
|
|
18391
|
-
|
|
18391
|
+
dA(E), r = i.TOUCH_ROTATE;
|
|
18392
18392
|
break;
|
|
18393
18393
|
case Ao.PAN:
|
|
18394
18394
|
if (t.enablePan === !1)
|
|
@@ -18468,7 +18468,7 @@ class FE extends Gs {
|
|
|
18468
18468
|
}
|
|
18469
18469
|
function SA(E) {
|
|
18470
18470
|
let Q = S[E.pointerId];
|
|
18471
|
-
Q === void 0 && (Q = new
|
|
18471
|
+
Q === void 0 && (Q = new uA(), S[E.pointerId] = Q), Q.set(E.pageX, E.pageY);
|
|
18472
18472
|
}
|
|
18473
18473
|
function XA(E) {
|
|
18474
18474
|
const Q = E.pointerId === x[0] ? x[1] : x[0];
|
|
@@ -18995,7 +18995,7 @@ const sL = function() {
|
|
|
18995
18995
|
d !== 0 ? g = (c * h - p * f) / d : g = 0, y = (c + g * h) / f, s.x = g, s.y = y;
|
|
18996
18996
|
};
|
|
18997
18997
|
}(), mv = function() {
|
|
18998
|
-
const n = new
|
|
18998
|
+
const n = new uA(), A = new O(), e = new O();
|
|
18999
18999
|
return function(i, r, s, o) {
|
|
19000
19000
|
sL(i, r, n);
|
|
19001
19001
|
let a = n.x, l = n.y;
|
|
@@ -19427,7 +19427,7 @@ function uL(n, A, e = {}, t = 0, i = 1 / 0) {
|
|
|
19427
19427
|
const l = Math.sqrt(o);
|
|
19428
19428
|
return e.point ? e.point.copy(zp) : e.point = zp.clone(), e.distance = l, e.faceIndex = a, e;
|
|
19429
19429
|
}
|
|
19430
|
-
const Co = /* @__PURE__ */ new O(), xo = /* @__PURE__ */ new O(), Io = /* @__PURE__ */ new O(), Gh = /* @__PURE__ */ new
|
|
19430
|
+
const Co = /* @__PURE__ */ new O(), xo = /* @__PURE__ */ new O(), Io = /* @__PURE__ */ new O(), Gh = /* @__PURE__ */ new uA(), Hh = /* @__PURE__ */ new uA(), Yh = /* @__PURE__ */ new uA(), v1 = /* @__PURE__ */ new O(), y1 = /* @__PURE__ */ new O(), w1 = /* @__PURE__ */ new O(), Uh = /* @__PURE__ */ new O();
|
|
19431
19431
|
function fL(n, A, e, t, i, r, s, o) {
|
|
19432
19432
|
let a;
|
|
19433
19433
|
if (r === Ct ? a = n.intersectTriangle(t, e, A, !0, i) : a = n.intersectTriangle(A, e, t, r !== ot, i), a === null)
|
|
@@ -19442,7 +19442,7 @@ function dL(n, A, e, t, i, r, s, o, a, l, u) {
|
|
|
19442
19442
|
Co.fromBufferAttribute(A, r), xo.fromBufferAttribute(A, s), Io.fromBufferAttribute(A, o);
|
|
19443
19443
|
const c = fL(n, Co, xo, Io, Uh, a, l, u);
|
|
19444
19444
|
if (c) {
|
|
19445
|
-
t && (Gh.fromBufferAttribute(t, r), Hh.fromBufferAttribute(t, s), Yh.fromBufferAttribute(t, o), c.uv = Ze.getInterpolation(Uh, Co, xo, Io, Gh, Hh, Yh, new
|
|
19445
|
+
t && (Gh.fromBufferAttribute(t, r), Hh.fromBufferAttribute(t, s), Yh.fromBufferAttribute(t, o), c.uv = Ze.getInterpolation(Uh, Co, xo, Io, Gh, Hh, Yh, new uA())), i && (Gh.fromBufferAttribute(i, r), Hh.fromBufferAttribute(i, s), Yh.fromBufferAttribute(i, o), c.uv1 = Ze.getInterpolation(Uh, Co, xo, Io, Gh, Hh, Yh, new uA())), e && (v1.fromBufferAttribute(e, r), y1.fromBufferAttribute(e, s), w1.fromBufferAttribute(e, o), c.normal = Ze.getInterpolation(Uh, Co, xo, Io, v1, y1, w1, new O()), c.normal.dot(n.direction) > 0 && c.normal.multiplyScalar(-1));
|
|
19446
19446
|
const h = {
|
|
19447
19447
|
a: r,
|
|
19448
19448
|
b: s,
|
|
@@ -21477,7 +21477,7 @@ class w7 extends wv {
|
|
|
21477
21477
|
super({
|
|
21478
21478
|
blending: Et,
|
|
21479
21479
|
uniforms: {
|
|
21480
|
-
resolution: { value: new
|
|
21480
|
+
resolution: { value: new uA() }
|
|
21481
21481
|
},
|
|
21482
21482
|
vertexShader: (
|
|
21483
21483
|
/* glsl */
|
|
@@ -25170,7 +25170,7 @@ class MO extends wv {
|
|
|
25170
25170
|
},
|
|
25171
25171
|
uniforms: {
|
|
25172
25172
|
// path trace uniforms
|
|
25173
|
-
resolution: { value: new
|
|
25173
|
+
resolution: { value: new uA() },
|
|
25174
25174
|
opacity: { value: 1 },
|
|
25175
25175
|
bounces: { value: 10 },
|
|
25176
25176
|
transmissiveBounces: { value: 10 },
|
|
@@ -25749,7 +25749,7 @@ class F1 {
|
|
|
25749
25749
|
return !!this._compilePromise;
|
|
25750
25750
|
}
|
|
25751
25751
|
constructor(A) {
|
|
25752
|
-
this.camera = null, this.tiles = new
|
|
25752
|
+
this.camera = null, this.tiles = new uA(3, 3), this.stableNoise = !1, this.stableTiles = !0, this.samples = 0, this._subframe = new me(0, 0, 1, 1), this._opacityFactor = 1, this._renderer = A, this._alpha = !1, this._fsQuad = new tr(new MO()), this._blendQuad = new tr(new m7()), this._task = null, this._currentTile = 0, this._compilePromise = null, this._sobolTarget = new C7().generate(A), this._primaryTarget = new Xe(1, 1, {
|
|
25753
25753
|
format: _e,
|
|
25754
25754
|
type: Se,
|
|
25755
25755
|
magFilter: ue,
|
|
@@ -25800,7 +25800,7 @@ class F1 {
|
|
|
25800
25800
|
this.material.onBeforeRender(), !this.isCompiling && (this._task || (this._task = PO.call(this)), this._task.next());
|
|
25801
25801
|
}
|
|
25802
25802
|
}
|
|
25803
|
-
const hs = new
|
|
25803
|
+
const hs = new uA(), G1 = new uA(), nu = new vm(), ru = new FA();
|
|
25804
25804
|
class TO extends Kt {
|
|
25805
25805
|
constructor(A = 512, e = 512) {
|
|
25806
25806
|
super(
|
|
@@ -26003,7 +26003,7 @@ class Y1 {
|
|
|
26003
26003
|
function OO(n) {
|
|
26004
26004
|
return n.extensions.get("EXT_float_blend");
|
|
26005
26005
|
}
|
|
26006
|
-
const Lo = new
|
|
26006
|
+
const Lo = new uA();
|
|
26007
26007
|
class qO {
|
|
26008
26008
|
get multipleImportanceSampling() {
|
|
26009
26009
|
return !!this._pathTracer.material.defines.FEATURE_MIS;
|
|
@@ -26053,7 +26053,7 @@ class qO {
|
|
|
26053
26053
|
transparent: !0,
|
|
26054
26054
|
blending: Et,
|
|
26055
26055
|
premultipliedAlpha: A.getContextAttributes().premultipliedAlpha
|
|
26056
|
-
})), this._materials = null, this._previousEnvironment = null, this._previousBackground = null, this._internalBackground = null, this.renderDelay = 100, this.minSamples = 5, this.fadeDuration = 500, this.enablePathTracing = !0, this.pausePathTracing = !1, this.dynamicLowRes = !1, this.lowResScale = 0.25, this.renderScale = 1, this.synchronizeRenderSize = !0, this.rasterizeScene = !0, this.renderToCanvas = !0, this.textureSize = new
|
|
26056
|
+
})), this._materials = null, this._previousEnvironment = null, this._previousBackground = null, this._internalBackground = null, this.renderDelay = 100, this.minSamples = 5, this.fadeDuration = 500, this.enablePathTracing = !0, this.pausePathTracing = !1, this.dynamicLowRes = !1, this.lowResScale = 0.25, this.renderScale = 1, this.synchronizeRenderSize = !0, this.rasterizeScene = !0, this.renderToCanvas = !0, this.textureSize = new uA(1024, 1024), this.rasterizeSceneCallback = (e, t) => {
|
|
26057
26057
|
this._renderer.render(e, t);
|
|
26058
26058
|
}, this.renderToCanvasCallback = (e, t, i) => {
|
|
26059
26059
|
const r = t.autoClear;
|
|
@@ -26191,7 +26191,7 @@ class NO extends Qa {
|
|
|
26191
26191
|
class BO {
|
|
26192
26192
|
constructor(A, e) {
|
|
26193
26193
|
if (this.renderer = A, this._pixelRatio = A.getPixelRatio(), e === void 0) {
|
|
26194
|
-
const t = A.getSize(new
|
|
26194
|
+
const t = A.getSize(new uA());
|
|
26195
26195
|
this._width = t.width, this._height = t.height, e = new Xe(this._width * this._pixelRatio, this._height * this._pixelRatio, { type: Oe }), e.texture.name = "EffectComposer.rt1";
|
|
26196
26196
|
} else
|
|
26197
26197
|
this._width = e.width, this._height = e.height;
|
|
@@ -26238,7 +26238,7 @@ class BO {
|
|
|
26238
26238
|
}
|
|
26239
26239
|
reset(A) {
|
|
26240
26240
|
if (A === void 0) {
|
|
26241
|
-
const e = this.renderer.getSize(new
|
|
26241
|
+
const e = this.renderer.getSize(new uA());
|
|
26242
26242
|
this._pixelRatio = this.renderer.getPixelRatio(), this._width = e.width, this._height = e.height, A = this.renderTarget1.clone(), A.setSize(this._width * this._pixelRatio, this._height * this._pixelRatio);
|
|
26243
26243
|
}
|
|
26244
26244
|
this.renderTarget1.dispose(), this.renderTarget2.dispose(), this.renderTarget1 = A, this.renderTarget2 = A.clone(), this.writeBuffer = this.renderTarget1, this.readBuffer = this.renderTarget2;
|
|
@@ -26259,7 +26259,7 @@ class BO {
|
|
|
26259
26259
|
}
|
|
26260
26260
|
class xv extends Ie {
|
|
26261
26261
|
constructor(A = document.createElement("div")) {
|
|
26262
|
-
super(), this.isCSS2DObject = !0, this.element = A, this.element.style.position = "absolute", this.element.style.userSelect = "none", this.element.setAttribute("draggable", !1), this.center = new
|
|
26262
|
+
super(), this.isCSS2DObject = !0, this.element = A, this.element.style.position = "absolute", this.element.style.userSelect = "none", this.element.setAttribute("draggable", !1), this.center = new uA(0.5, 0.5), this.addEventListener("removed", function() {
|
|
26263
26263
|
this.traverse(function(e) {
|
|
26264
26264
|
e.element instanceof Element && e.element.parentNode !== null && e.element.parentNode.removeChild(e.element);
|
|
26265
26265
|
});
|
|
@@ -28836,18 +28836,18 @@ Df.exports;
|
|
|
28836
28836
|
return C(X + (w + 1) * k / (k + c));
|
|
28837
28837
|
}
|
|
28838
28838
|
function B(k) {
|
|
28839
|
-
var N = [], Y = k.length, X, j = 0, G = p, V = f, J, tA,
|
|
28839
|
+
var N = [], Y = k.length, X, j = 0, G = p, V = f, J, tA, dA, H, aA, AA, TA, vA, mA;
|
|
28840
28840
|
for (J = k.lastIndexOf(m), J < 0 && (J = 0), tA = 0; tA < J; ++tA)
|
|
28841
28841
|
k.charCodeAt(tA) >= 128 && S("not-basic"), N.push(k.charCodeAt(tA));
|
|
28842
|
-
for (
|
|
28843
|
-
for (H = j, aA = 1, AA = a;
|
|
28842
|
+
for (dA = J > 0 ? J + 1 : 0; dA < Y; ) {
|
|
28843
|
+
for (H = j, aA = 1, AA = a; dA >= Y && S("invalid-input"), TA = M(k.charCodeAt(dA++)), (TA >= a || TA > C((o - j) / aA)) && S("overflow"), j += TA * aA, vA = AA <= V ? l : AA >= V + u ? u : AA - V, !(TA < vA); AA += a)
|
|
28844
28844
|
mA = a - vA, aA > C(o / mA) && S("overflow"), aA *= mA;
|
|
28845
28845
|
X = N.length + 1, V = q(j - H, X, H == 0), C(j / X) > o - G && S("overflow"), G += C(j / X), j %= X, N.splice(j++, 0, G);
|
|
28846
28846
|
}
|
|
28847
28847
|
return P(N);
|
|
28848
28848
|
}
|
|
28849
28849
|
function W(k) {
|
|
28850
|
-
var N, Y, X, j, G, V, J, tA,
|
|
28850
|
+
var N, Y, X, j, G, V, J, tA, dA, H, aA, AA = [], TA, vA, mA, yA;
|
|
28851
28851
|
for (k = D(k), TA = k.length, N = p, Y = 0, G = f, V = 0; V < TA; ++V)
|
|
28852
28852
|
aA = k[V], aA < 128 && AA.push(_(aA));
|
|
28853
28853
|
for (X = j = AA.length, j && AA.push(m); X < TA; ) {
|
|
@@ -28855,7 +28855,7 @@ Df.exports;
|
|
|
28855
28855
|
aA = k[V], aA >= N && aA < J && (J = aA);
|
|
28856
28856
|
for (vA = X + 1, J - N > C((o - Y) / vA) && S("overflow"), Y += (J - N) * vA, N = J, V = 0; V < TA; ++V)
|
|
28857
28857
|
if (aA = k[V], aA < N && ++Y > o && S("overflow"), aA == N) {
|
|
28858
|
-
for (tA = Y,
|
|
28858
|
+
for (tA = Y, dA = a; H = dA <= G ? l : dA >= G + u ? u : dA - G, !(tA < H); dA += a)
|
|
28859
28859
|
yA = tA - H, mA = a - H, AA.push(
|
|
28860
28860
|
_(T(H + yA % mA, 0))
|
|
28861
28861
|
), tA = C(yA / mA);
|
|
@@ -47179,9 +47179,9 @@ function R9(n, A) {
|
|
|
47179
47179
|
));
|
|
47180
47180
|
continue;
|
|
47181
47181
|
}
|
|
47182
|
-
const G = (-x + g) * (-S + w) - (-x + v) * (-S + y), V = (-b + C) * (-I + w) - (-b + v) * (-I + _), J = (K * V - k * G) / X, tA = (N * G - U * V) / X,
|
|
47182
|
+
const G = (-x + g) * (-S + w) - (-x + v) * (-S + y), V = (-b + C) * (-I + w) - (-b + v) * (-I + _), J = (K * V - k * G) / X, tA = (N * G - U * V) / X, dA = (J - v) * (J - v) + (tA - w) * (tA - w), H = v + (J - v) * M, aA = w + (tA - w) * M, AA = v - (J - v) * T, TA = w - (tA - w) * T, vA = Math.min(K * K + U * U, k * k + N * N), mA = j ? M : T, yA = vA + mA * mA * m, _A = dA <= yA;
|
|
47183
47183
|
let gA = r.join;
|
|
47184
|
-
if (gA === xi.MITER &&
|
|
47184
|
+
if (gA === xi.MITER && dA / m > d && (gA = xi.BEVEL), _A)
|
|
47185
47185
|
switch (gA) {
|
|
47186
47186
|
case xi.MITER: {
|
|
47187
47187
|
u.push(
|
|
@@ -53593,7 +53593,7 @@ let ER = class {
|
|
|
53593
53593
|
const r = [], s = i.extensions[this.name];
|
|
53594
53594
|
if (s.clearcoatFactor !== void 0 && (e.clearcoat = s.clearcoatFactor), s.clearcoatTexture !== void 0 && r.push(t.assignTexture(e, "clearcoatMap", s.clearcoatTexture)), s.clearcoatRoughnessFactor !== void 0 && (e.clearcoatRoughness = s.clearcoatRoughnessFactor), s.clearcoatRoughnessTexture !== void 0 && r.push(t.assignTexture(e, "clearcoatRoughnessMap", s.clearcoatRoughnessTexture)), s.clearcoatNormalTexture !== void 0 && (r.push(t.assignTexture(e, "clearcoatNormalMap", s.clearcoatNormalTexture)), s.clearcoatNormalTexture.scale !== void 0)) {
|
|
53595
53595
|
const o = s.clearcoatNormalTexture.scale;
|
|
53596
|
-
e.clearcoatNormalScale = new
|
|
53596
|
+
e.clearcoatNormalScale = new uA(o, o);
|
|
53597
53597
|
}
|
|
53598
53598
|
return Promise.all(r);
|
|
53599
53599
|
}
|
|
@@ -54539,7 +54539,7 @@ class ok {
|
|
|
54539
54539
|
}
|
|
54540
54540
|
r.doubleSided === !0 && (o.side = ot);
|
|
54541
54541
|
const u = r.alphaMode || Eg.OPAQUE;
|
|
54542
|
-
if (u === Eg.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, u === Eg.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !== Ii && (l.push(e.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new
|
|
54542
|
+
if (u === Eg.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, u === Eg.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !== Ii && (l.push(e.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new uA(1, 1), r.normalTexture.scale !== void 0)) {
|
|
54543
54543
|
const c = r.normalTexture.scale;
|
|
54544
54544
|
o.normalScale.set(c, c);
|
|
54545
54545
|
}
|
|
@@ -57567,7 +57567,7 @@ class E0 extends xv {
|
|
|
57567
57567
|
const e = this.element.style.transform, t = /translate\(-?\d*\.?\d*%?,?\s-?\d*\.?\d*%?\)\s*translate\((-?\d*\.?\d*)px,\s*(-?\d*\.?\d*)px\)/.exec(e);
|
|
57568
57568
|
if (!t)
|
|
57569
57569
|
return;
|
|
57570
|
-
const i = new
|
|
57570
|
+
const i = new uA(parseFloat(t[1]), parseFloat(t[2])), r = A.mousePos.distanceTo(i);
|
|
57571
57571
|
let s = 12, o = 24, a = 30;
|
|
57572
57572
|
if (this._canInstall && (s = 34, o = 60, a = 60), r < a) {
|
|
57573
57573
|
let l = (a - r) * 1 + s;
|
|
@@ -57957,8 +57957,8 @@ function bS() {
|
|
|
57957
57957
|
V.x = J * J * U + 2 * J * G * N + G * G * X, V.y = J * J * k + 2 * J * G * Y + G * G * j;
|
|
57958
57958
|
}
|
|
57959
57959
|
function t(U, k, N, Y, X, j, G, V, J, tA) {
|
|
57960
|
-
var
|
|
57961
|
-
tA.x =
|
|
57960
|
+
var dA = 1 - J;
|
|
57961
|
+
tA.x = dA * dA * dA * U + 3 * dA * dA * J * N + 3 * dA * J * J * X + J * J * J * G, tA.y = dA * dA * dA * k + 3 * dA * dA * J * Y + 3 * dA * J * J * j + J * J * J * V;
|
|
57962
57962
|
}
|
|
57963
57963
|
function i(U, k) {
|
|
57964
57964
|
for (var N = /([MLQCZ])([^MLQCZ]*)/g, Y, X, j, G, V; Y = N.exec(U); ) {
|
|
@@ -57989,7 +57989,7 @@ function bS() {
|
|
|
57989
57989
|
function r(U, k, N) {
|
|
57990
57990
|
N === void 0 && (N = 16);
|
|
57991
57991
|
var Y = { x: 0, y: 0 };
|
|
57992
|
-
i(U, function(X, j, G, V, J, tA,
|
|
57992
|
+
i(U, function(X, j, G, V, J, tA, dA, H, aA) {
|
|
57993
57993
|
switch (X) {
|
|
57994
57994
|
case "L":
|
|
57995
57995
|
k(j, G, V, J);
|
|
@@ -58000,7 +58000,7 @@ function bS() {
|
|
|
58000
58000
|
j,
|
|
58001
58001
|
G,
|
|
58002
58002
|
tA,
|
|
58003
|
-
|
|
58003
|
+
dA,
|
|
58004
58004
|
V,
|
|
58005
58005
|
J,
|
|
58006
58006
|
vA / (N - 1),
|
|
@@ -58014,7 +58014,7 @@ function bS() {
|
|
|
58014
58014
|
j,
|
|
58015
58015
|
G,
|
|
58016
58016
|
tA,
|
|
58017
|
-
|
|
58017
|
+
dA,
|
|
58018
58018
|
H,
|
|
58019
58019
|
aA,
|
|
58020
58020
|
V,
|
|
@@ -58036,7 +58036,7 @@ function bS() {
|
|
|
58036
58036
|
function u(U, k) {
|
|
58037
58037
|
var N = U.getContext ? U.getContext("webgl", l) : U, Y = a.get(N);
|
|
58038
58038
|
if (!Y) {
|
|
58039
|
-
let
|
|
58039
|
+
let dA = function(mA) {
|
|
58040
58040
|
var yA = j[mA];
|
|
58041
58041
|
if (!yA && (yA = j[mA] = N.getExtension(mA), !yA))
|
|
58042
58042
|
throw new Error(mA + " not supported");
|
|
@@ -58051,20 +58051,20 @@ function bS() {
|
|
|
58051
58051
|
program: F,
|
|
58052
58052
|
transaction: function(eA) {
|
|
58053
58053
|
N.useProgram(F), eA({
|
|
58054
|
-
setUniform: function(
|
|
58054
|
+
setUniform: function(fA, wA) {
|
|
58055
58055
|
for (var cA = [], xA = arguments.length - 2; xA-- > 0; )
|
|
58056
58056
|
cA[xA] = arguments[xA + 2];
|
|
58057
58057
|
var lA = L[wA] || (L[wA] = N.getUniformLocation(F, wA));
|
|
58058
|
-
N["uniform" +
|
|
58058
|
+
N["uniform" + fA].apply(N, [lA].concat(cA));
|
|
58059
58059
|
},
|
|
58060
|
-
setAttribute: function(
|
|
58061
|
-
var IA = R[
|
|
58062
|
-
IA || (IA = R[
|
|
58060
|
+
setAttribute: function(fA, wA, cA, xA, lA) {
|
|
58061
|
+
var IA = R[fA];
|
|
58062
|
+
IA || (IA = R[fA] = {
|
|
58063
58063
|
buf: N.createBuffer(),
|
|
58064
58064
|
// TODO should we destroy our buffers?
|
|
58065
|
-
loc: N.getAttribLocation(F,
|
|
58065
|
+
loc: N.getAttribLocation(F, fA),
|
|
58066
58066
|
data: null
|
|
58067
|
-
}), N.bindBuffer(N.ARRAY_BUFFER, IA.buf), N.vertexAttribPointer(IA.loc, wA, N.FLOAT, !1, 0, 0), N.enableVertexAttribArray(IA.loc), X ? N.vertexAttribDivisor(IA.loc, xA) :
|
|
58067
|
+
}), N.bindBuffer(N.ARRAY_BUFFER, IA.buf), N.vertexAttribPointer(IA.loc, wA, N.FLOAT, !1, 0, 0), N.enableVertexAttribArray(IA.loc), X ? N.vertexAttribDivisor(IA.loc, xA) : dA("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(IA.loc, xA), lA !== IA.data && (N.bufferData(N.ARRAY_BUFFER, lA, cA), IA.data = lA);
|
|
58068
58068
|
}
|
|
58069
58069
|
});
|
|
58070
58070
|
}
|
|
@@ -58097,7 +58097,7 @@ function bS() {
|
|
|
58097
58097
|
}, !1), a.set(N, Y = {
|
|
58098
58098
|
gl: N,
|
|
58099
58099
|
isWebGL2: X,
|
|
58100
|
-
getExtension:
|
|
58100
|
+
getExtension: dA,
|
|
58101
58101
|
withProgram: aA,
|
|
58102
58102
|
withTexture: AA,
|
|
58103
58103
|
withTextureFramebuffer: TA,
|
|
@@ -58108,9 +58108,9 @@ function bS() {
|
|
|
58108
58108
|
}
|
|
58109
58109
|
function c(U, k, N, Y, X, j, G, V) {
|
|
58110
58110
|
G === void 0 && (G = 15), V === void 0 && (V = null), u(U, function(J) {
|
|
58111
|
-
var tA = J.gl,
|
|
58111
|
+
var tA = J.gl, dA = J.withProgram, H = J.withTexture;
|
|
58112
58112
|
H("copy", function(aA, AA) {
|
|
58113
|
-
tA.texImage2D(tA.TEXTURE_2D, 0, tA.RGBA, X, j, 0, tA.RGBA, tA.UNSIGNED_BYTE, k),
|
|
58113
|
+
tA.texImage2D(tA.TEXTURE_2D, 0, tA.RGBA, X, j, 0, tA.RGBA, tA.UNSIGNED_BYTE, k), dA("copy", s, o, function(TA) {
|
|
58114
58114
|
var vA = TA.setUniform, mA = TA.setAttribute;
|
|
58115
58115
|
mA("aUV", 2, tA.STATIC_DRAW, 0, new Float32Array([0, 0, 2, 0, 0, 2])), vA("1i", "image", AA), tA.bindFramebuffer(tA.FRAMEBUFFER, V || null), tA.disable(tA.BLEND), tA.colorMask(G & 8, G & 4, G & 2, G & 1), tA.viewport(N, Y, X, j), tA.scissor(N, Y, X, j), tA.drawArrays(tA.TRIANGLES, 0, 3);
|
|
58116
58116
|
});
|
|
@@ -58147,13 +58147,13 @@ function bS() {
|
|
|
58147
58147
|
}), tA.sort(function(mA, yA) {
|
|
58148
58148
|
return mA.maxX - yA.maxX;
|
|
58149
58149
|
});
|
|
58150
|
-
for (var
|
|
58150
|
+
for (var dA = 0; dA < U; dA++)
|
|
58151
58151
|
for (var H = 0; H < k; H++) {
|
|
58152
58152
|
var aA = TA(
|
|
58153
|
-
Y[0] + V * (
|
|
58153
|
+
Y[0] + V * (dA + 0.5) / U,
|
|
58154
58154
|
Y[1] + J * (H + 0.5) / k
|
|
58155
58155
|
), AA = Math.pow(1 - Math.abs(aA) / X, j) / 2;
|
|
58156
|
-
aA < 0 && (AA = 1 - AA), AA = Math.max(0, Math.min(255, Math.round(AA * 255))), G[H * U +
|
|
58156
|
+
aA < 0 && (AA = 1 - AA), AA = Math.max(0, Math.min(255, Math.round(AA * 255))), G[H * U + dA] = AA;
|
|
58157
58157
|
}
|
|
58158
58158
|
return G;
|
|
58159
58159
|
function TA(mA, yA) {
|
|
@@ -58182,15 +58182,15 @@ function bS() {
|
|
|
58182
58182
|
function m(U, k, N, Y, X, j, G, V, J, tA) {
|
|
58183
58183
|
j === void 0 && (j = 1), V === void 0 && (V = 0), J === void 0 && (J = 0), tA === void 0 && (tA = 0), d(U, k, N, Y, X, j, G, null, V, J, tA);
|
|
58184
58184
|
}
|
|
58185
|
-
function d(U, k, N, Y, X, j, G, V, J, tA,
|
|
58186
|
-
j === void 0 && (j = 1), J === void 0 && (J = 0), tA === void 0 && (tA = 0),
|
|
58185
|
+
function d(U, k, N, Y, X, j, G, V, J, tA, dA) {
|
|
58186
|
+
j === void 0 && (j = 1), J === void 0 && (J = 0), tA === void 0 && (tA = 0), dA === void 0 && (dA = 0);
|
|
58187
58187
|
for (var H = p(U, k, N, Y, X, j), aA = new Uint8Array(H.length * 4), AA = 0; AA < H.length; AA++)
|
|
58188
|
-
aA[AA * 4 +
|
|
58189
|
-
c(G, aA, J, tA, U, k, 1 << 3 -
|
|
58188
|
+
aA[AA * 4 + dA] = H[AA];
|
|
58189
|
+
c(G, aA, J, tA, U, k, 1 << 3 - dA, V);
|
|
58190
58190
|
}
|
|
58191
58191
|
function g(U, k, N, Y, X, j) {
|
|
58192
|
-
var G = X - N, V = j - Y, J = G * G + V * V, tA = J ? Math.max(0, Math.min(1, ((U - N) * G + (k - Y) * V) / J)) : 0,
|
|
58193
|
-
return
|
|
58192
|
+
var G = X - N, V = j - Y, J = G * G + V * V, tA = J ? Math.max(0, Math.min(1, ((U - N) * G + (k - Y) * V) / J)) : 0, dA = U - (N + tA * G), H = k - (Y + tA * V);
|
|
58193
|
+
return dA * dA + H * H;
|
|
58194
58194
|
}
|
|
58195
58195
|
var y = /* @__PURE__ */ Object.freeze({
|
|
58196
58196
|
__proto__: null,
|
|
@@ -58232,15 +58232,15 @@ function bS() {
|
|
|
58232
58232
|
});
|
|
58233
58233
|
});
|
|
58234
58234
|
});
|
|
58235
|
-
for (var tA = new Uint8Array(U * k),
|
|
58236
|
-
tA[H++] = J[
|
|
58235
|
+
for (var tA = new Uint8Array(U * k), dA = 0, H = 0; dA < J.length; dA += 4)
|
|
58236
|
+
tA[H++] = J[dA];
|
|
58237
58237
|
return tA;
|
|
58238
58238
|
}
|
|
58239
58239
|
function M(U, k, N, Y, X, j, G, V, J, tA) {
|
|
58240
58240
|
j === void 0 && (j = 1), V === void 0 && (V = 0), J === void 0 && (J = 0), tA === void 0 && (tA = 0), T(U, k, N, Y, X, j, G, null, V, J, tA);
|
|
58241
58241
|
}
|
|
58242
|
-
function T(U, k, N, Y, X, j, G, V, J, tA,
|
|
58243
|
-
j === void 0 && (j = 1), J === void 0 && (J = 0), tA === void 0 && (tA = 0),
|
|
58242
|
+
function T(U, k, N, Y, X, j, G, V, J, tA, dA) {
|
|
58243
|
+
j === void 0 && (j = 1), J === void 0 && (J = 0), tA === void 0 && (tA = 0), dA === void 0 && (dA = 0), D(G);
|
|
58244
58244
|
var H = [];
|
|
58245
58245
|
r(N, function(aA, AA, TA, vA) {
|
|
58246
58246
|
H.push(aA, AA, TA, vA);
|
|
@@ -58258,12 +58258,12 @@ function bS() {
|
|
|
58258
58258
|
AA.UNSIGNED_BYTE,
|
|
58259
58259
|
null
|
|
58260
58260
|
), mA("main", v, w, function(F) {
|
|
58261
|
-
var iA = F.setAttribute, eA = F.setUniform, nA = !TA && vA("ANGLE_instanced_arrays"),
|
|
58261
|
+
var iA = F.setAttribute, eA = F.setUniform, nA = !TA && vA("ANGLE_instanced_arrays"), fA = !TA && vA("EXT_blend_minmax");
|
|
58262
58262
|
iA("aUV", 2, AA.STATIC_DRAW, 0, _), iA("aLineSegment", 4, AA.DYNAMIC_DRAW, 1, H), eA.apply(void 0, ["4f", "uGlyphBounds"].concat(Y)), eA("1f", "uMaxDistance", X), eA("1f", "uExponent", j), _A(R, L, function(wA) {
|
|
58263
|
-
AA.enable(AA.BLEND), AA.colorMask(!0, !0, !0, !0), AA.viewport(0, 0, U, k), AA.scissor(0, 0, U, k), AA.blendFunc(AA.ONE, AA.ONE), AA.blendEquationSeparate(AA.FUNC_ADD, TA ? AA.MAX :
|
|
58263
|
+
AA.enable(AA.BLEND), AA.colorMask(!0, !0, !0, !0), AA.viewport(0, 0, U, k), AA.scissor(0, 0, U, k), AA.blendFunc(AA.ONE, AA.ONE), AA.blendEquationSeparate(AA.FUNC_ADD, TA ? AA.MAX : fA.MAX_EXT), AA.clear(AA.COLOR_BUFFER_BIT), TA ? AA.drawArraysInstanced(AA.TRIANGLES, 0, 3, H.length / 4) : nA.drawArraysInstancedANGLE(AA.TRIANGLES, 0, 3, H.length / 4);
|
|
58264
58264
|
});
|
|
58265
58265
|
}), mA("post", s, C, function(F) {
|
|
58266
|
-
F.setAttribute("aUV", 2, AA.STATIC_DRAW, 0, _), F.setUniform("1i", "tex", L), AA.bindFramebuffer(AA.FRAMEBUFFER, V), AA.disable(AA.BLEND), AA.colorMask(
|
|
58266
|
+
F.setAttribute("aUV", 2, AA.STATIC_DRAW, 0, _), F.setUniform("1i", "tex", L), AA.bindFramebuffer(AA.FRAMEBUFFER, V), AA.disable(AA.BLEND), AA.colorMask(dA === 0, dA === 1, dA === 2, dA === 3), AA.viewport(J, tA, U, k), AA.scissor(J, tA, U, k), AA.drawArrays(AA.TRIANGLES, 0, 3);
|
|
58267
58267
|
});
|
|
58268
58268
|
}), AA.isContextLost())
|
|
58269
58269
|
throw gA(), new Error("webgl context lost");
|
|
@@ -58330,8 +58330,8 @@ function bS() {
|
|
|
58330
58330
|
X === void 0 && (X = Math.max(Y[2] - Y[0], Y[3] - Y[1]) / 2), j === void 0 && (j = 1), V === void 0 && (V = 0), J === void 0 && (J = 0), tA === void 0 && (tA = 0);
|
|
58331
58331
|
try {
|
|
58332
58332
|
return M.apply(B, arguments);
|
|
58333
|
-
} catch (
|
|
58334
|
-
return console.info("WebGL SDF generation failed, falling back to JS",
|
|
58333
|
+
} catch (dA) {
|
|
58334
|
+
return console.info("WebGL SDF generation failed, falling back to JS", dA), m.apply(y, arguments);
|
|
58335
58335
|
}
|
|
58336
58336
|
}
|
|
58337
58337
|
return A.forEachPathCommand = i, A.generate = W, A.generateIntoCanvas = K, A.javascript = y, A.pathToLineSegments = r, A.webgl = B, A.webglUtils = f, Object.defineProperty(A, "__esModule", { value: !0 }), A;
|
|
@@ -58375,9 +58375,9 @@ function dj() {
|
|
|
58375
58375
|
if (e.hasOwnProperty(L)) {
|
|
58376
58376
|
var F = 0;
|
|
58377
58377
|
e[L].split(",").forEach(function(iA) {
|
|
58378
|
-
var eA = iA.split("+"), nA = eA[0],
|
|
58379
|
-
nA = parseInt(nA, 36),
|
|
58380
|
-
for (var wA = 0; wA <
|
|
58378
|
+
var eA = iA.split("+"), nA = eA[0], fA = eA[1];
|
|
58379
|
+
nA = parseInt(nA, 36), fA = fA ? parseInt(fA, 36) : 0, u.set(F += nA, t[L]);
|
|
58380
|
+
for (var wA = 0; wA < fA; wA++)
|
|
58381
58381
|
u.set(++F, t[L]);
|
|
58382
58382
|
});
|
|
58383
58383
|
}
|
|
@@ -58398,10 +58398,10 @@ function dj() {
|
|
|
58398
58398
|
};
|
|
58399
58399
|
function m(gA, R) {
|
|
58400
58400
|
var L = 36, F = 0, iA = /* @__PURE__ */ new Map(), eA = R && /* @__PURE__ */ new Map(), nA;
|
|
58401
|
-
return gA.split(",").forEach(function
|
|
58401
|
+
return gA.split(",").forEach(function fA(wA) {
|
|
58402
58402
|
if (wA.indexOf("+") !== -1)
|
|
58403
58403
|
for (var cA = +wA; cA--; )
|
|
58404
|
-
|
|
58404
|
+
fA(nA);
|
|
58405
58405
|
else {
|
|
58406
58406
|
nA = wA;
|
|
58407
58407
|
var xA = wA.split(">"), lA = xA[0], IA = xA[1];
|
|
@@ -58426,7 +58426,7 @@ function dj() {
|
|
|
58426
58426
|
return v(), y.get(gA) || null;
|
|
58427
58427
|
}
|
|
58428
58428
|
var x = t.L, S = t.R, b = t.EN, I = t.ES, D = t.ET, P = t.AN, M = t.CS, T = t.B, q = t.S, B = t.ON, W = t.BN, K = t.NSM, U = t.AL, k = t.LRO, N = t.RLO, Y = t.LRE, X = t.RLE, j = t.PDF, G = t.LRI, V = t.RLI, J = t.FSI, tA = t.PDI;
|
|
58429
|
-
function
|
|
58429
|
+
function dA(gA, R) {
|
|
58430
58430
|
for (var L = 125, F = new Uint32Array(gA.length), iA = 0; iA < gA.length; iA++)
|
|
58431
58431
|
F[iA] = h(gA[iA]);
|
|
58432
58432
|
var eA = /* @__PURE__ */ new Map();
|
|
@@ -58434,7 +58434,7 @@ function dj() {
|
|
|
58434
58434
|
var Ut = F[Yt];
|
|
58435
58435
|
F[Yt] = zi, eA.set(Ut, eA.get(Ut) - 1), Ut & o && eA.set(o, eA.get(o) - 1), eA.set(zi, (eA.get(zi) || 0) + 1), zi & o && eA.set(o, (eA.get(o) || 0) + 1);
|
|
58436
58436
|
}
|
|
58437
|
-
for (var
|
|
58437
|
+
for (var fA = new Uint8Array(gA.length), wA = /* @__PURE__ */ new Map(), cA = [], xA = null, lA = 0; lA < gA.length; lA++)
|
|
58438
58438
|
xA || cA.push(xA = {
|
|
58439
58439
|
start: lA,
|
|
58440
58440
|
end: gA.length - 1,
|
|
@@ -58459,7 +58459,7 @@ function dj() {
|
|
|
58459
58459
|
var Z = F[Q];
|
|
58460
58460
|
if (SA = DA[DA.length - 1], eA.set(Z, (eA.get(Z) || 0) + 1), Z & o && eA.set(o, (eA.get(o) || 0) + 1), Z & IA)
|
|
58461
58461
|
if (Z & (X | Y)) {
|
|
58462
|
-
|
|
58462
|
+
fA[Q] = SA._level;
|
|
58463
58463
|
var hA = (Z === X ? qA : GA)(SA._level);
|
|
58464
58464
|
hA <= L && !XA && !KA ? DA.push({
|
|
58465
58465
|
_level: hA,
|
|
@@ -58467,7 +58467,7 @@ function dj() {
|
|
|
58467
58467
|
_isolate: 0
|
|
58468
58468
|
}) : XA || KA++;
|
|
58469
58469
|
} else if (Z & (N | k)) {
|
|
58470
|
-
|
|
58470
|
+
fA[Q] = SA._level;
|
|
58471
58471
|
var MA = (Z === N ? qA : GA)(SA._level);
|
|
58472
58472
|
MA <= L && !XA && !KA ? DA.push({
|
|
58473
58473
|
_level: MA,
|
|
@@ -58475,7 +58475,7 @@ function dj() {
|
|
|
58475
58475
|
_isolate: 0
|
|
58476
58476
|
}) : XA || KA++;
|
|
58477
58477
|
} else if (Z & r) {
|
|
58478
|
-
Z & J && (Z = uy(Q + 1, !0) === 1 ? V : G),
|
|
58478
|
+
Z & J && (Z = uy(Q + 1, !0) === 1 ? V : G), fA[Q] = SA._level, SA._override && nA(Q, SA._override);
|
|
58479
58479
|
var RA = (Z === V ? qA : GA)(SA._level);
|
|
58480
58480
|
RA <= L && XA === 0 && KA === 0 ? (E++, DA.push({
|
|
58481
58481
|
_level: RA,
|
|
@@ -58492,16 +58492,16 @@ function dj() {
|
|
|
58492
58492
|
var EA = DA[DA.length - 1]._isolInitIndex;
|
|
58493
58493
|
EA != null && (wA.set(EA, Q), wA.set(Q, EA)), DA.pop(), E--;
|
|
58494
58494
|
}
|
|
58495
|
-
SA = DA[DA.length - 1],
|
|
58495
|
+
SA = DA[DA.length - 1], fA[Q] = SA._level, SA._override && nA(Q, SA._override);
|
|
58496
58496
|
} else
|
|
58497
|
-
Z & j ? (XA === 0 && (KA > 0 ? KA-- : !SA._isolate && DA.length > 1 && (DA.pop(), SA = DA[DA.length - 1])),
|
|
58497
|
+
Z & j ? (XA === 0 && (KA > 0 ? KA-- : !SA._isolate && DA.length > 1 && (DA.pop(), SA = DA[DA.length - 1])), fA[Q] = SA._level) : Z & T && (fA[Q] = xA.level);
|
|
58498
58498
|
else
|
|
58499
|
-
|
|
58499
|
+
fA[Q] = SA._level, SA._override && Z !== W && nA(Q, SA._override);
|
|
58500
58500
|
}
|
|
58501
58501
|
for (var ne = [], oe = null, NA = xA.start; NA <= xA.end; NA++) {
|
|
58502
58502
|
var ie = F[NA];
|
|
58503
58503
|
if (!(ie & a)) {
|
|
58504
|
-
var ce =
|
|
58504
|
+
var ce = fA[NA], Le = ie & r, xe = ie === tA;
|
|
58505
58505
|
oe && ce === oe._level ? (oe._end = NA, oe._endsWithIsolInit = Le) : ne.push(oe = {
|
|
58506
58506
|
_start: NA,
|
|
58507
58507
|
_end: NA,
|
|
@@ -58523,16 +58523,16 @@ function dj() {
|
|
|
58523
58523
|
for (var xt = [], Dn = 0; Dn < $t.length; Dn++)
|
|
58524
58524
|
for (var Xc = $t[Dn], z = Xc._start; z <= Xc._end; z++)
|
|
58525
58525
|
xt.push(z);
|
|
58526
|
-
for (var $ =
|
|
58526
|
+
for (var $ = fA[xt[0]], oA = xA.level, rA = xt[0] - 1; rA >= 0; rA--)
|
|
58527
58527
|
if (!(F[rA] & a)) {
|
|
58528
|
-
oA =
|
|
58528
|
+
oA = fA[rA];
|
|
58529
58529
|
break;
|
|
58530
58530
|
}
|
|
58531
|
-
var sA = xt[xt.length - 1], BA =
|
|
58531
|
+
var sA = xt[xt.length - 1], BA = fA[sA], YA = xA.level;
|
|
58532
58532
|
if (!(F[sA] & r)) {
|
|
58533
58533
|
for (var UA = sA + 1; UA <= xA.end; UA++)
|
|
58534
58534
|
if (!(F[UA] & a)) {
|
|
58535
|
-
YA =
|
|
58535
|
+
YA = fA[UA];
|
|
58536
58536
|
break;
|
|
58537
58537
|
}
|
|
58538
58538
|
}
|
|
@@ -58544,7 +58544,7 @@ function dj() {
|
|
|
58544
58544
|
}
|
|
58545
58545
|
}
|
|
58546
58546
|
for (var QA = 0; QA < At.length; QA++) {
|
|
58547
|
-
var ee = At[QA], bA = ee._seqIndices, re = ee._sosType, Ye = ee._eosType, je =
|
|
58547
|
+
var ee = At[QA], bA = ee._seqIndices, re = ee._sosType, Ye = ee._eosType, je = fA[bA[0]] & 1 ? S : x;
|
|
58548
58548
|
if (eA.get(K))
|
|
58549
58549
|
for (var dt = 0; dt < bA.length; dt++) {
|
|
58550
58550
|
var pi = bA[dt];
|
|
@@ -58698,14 +58698,14 @@ function dj() {
|
|
|
58698
58698
|
}
|
|
58699
58699
|
}
|
|
58700
58700
|
for (var ei = xA.start; ei <= xA.end; ei++) {
|
|
58701
|
-
var ZS =
|
|
58702
|
-
if (ZS & 1 ? th & (x | b | P) &&
|
|
58701
|
+
var ZS = fA[ei], th = F[ei];
|
|
58702
|
+
if (ZS & 1 ? th & (x | b | P) && fA[ei]++ : th & S ? fA[ei]++ : th & (P | b) && (fA[ei] += 2), th & a && (fA[ei] = ei === 0 ? xA.level : fA[ei - 1]), ei === xA.end || h(gA[ei]) & (q | T))
|
|
58703
58703
|
for (var ih = ei; ih >= 0 && h(gA[ih]) & l; ih--)
|
|
58704
|
-
|
|
58704
|
+
fA[ih] = xA.level;
|
|
58705
58705
|
}
|
|
58706
58706
|
}
|
|
58707
58707
|
return {
|
|
58708
|
-
levels:
|
|
58708
|
+
levels: fA,
|
|
58709
58709
|
paragraphs: cA
|
|
58710
58710
|
};
|
|
58711
58711
|
function uy(Yt, zi) {
|
|
@@ -58753,8 +58753,8 @@ function dj() {
|
|
|
58753
58753
|
L = Math.max(0, L == null ? 0 : +L), F = Math.min(iA - 1, F == null ? iA - 1 : +F);
|
|
58754
58754
|
for (var eA = /* @__PURE__ */ new Map(), nA = L; nA <= F; nA++)
|
|
58755
58755
|
if (R[nA] & 1) {
|
|
58756
|
-
var
|
|
58757
|
-
|
|
58756
|
+
var fA = TA(gA[nA]);
|
|
58757
|
+
fA !== null && eA.set(nA, fA);
|
|
58758
58758
|
}
|
|
58759
58759
|
return eA;
|
|
58760
58760
|
}
|
|
@@ -58763,9 +58763,9 @@ function dj() {
|
|
|
58763
58763
|
L = Math.max(0, L == null ? 0 : +L), F = Math.min(iA - 1, F == null ? iA - 1 : +F);
|
|
58764
58764
|
var eA = [];
|
|
58765
58765
|
return R.paragraphs.forEach(function(nA) {
|
|
58766
|
-
var
|
|
58767
|
-
if (
|
|
58768
|
-
for (var cA = R.levels.slice(
|
|
58766
|
+
var fA = Math.max(L, nA.start), wA = Math.min(F, nA.end);
|
|
58767
|
+
if (fA < wA) {
|
|
58768
|
+
for (var cA = R.levels.slice(fA, wA + 1), xA = wA; xA >= fA && h(gA[xA]) & l; xA--)
|
|
58769
58769
|
cA[xA] = nA.level;
|
|
58770
58770
|
for (var lA = nA.level, IA = 1 / 0, GA = 0; GA < cA.length; GA++) {
|
|
58771
58771
|
var qA = cA[GA];
|
|
@@ -58776,26 +58776,26 @@ function dj() {
|
|
|
58776
58776
|
if (cA[DA] >= CA) {
|
|
58777
58777
|
for (var SA = DA; DA + 1 < cA.length && cA[DA + 1] >= CA; )
|
|
58778
58778
|
DA++;
|
|
58779
|
-
DA > SA && eA.push([SA +
|
|
58779
|
+
DA > SA && eA.push([SA + fA, DA + fA]);
|
|
58780
58780
|
}
|
|
58781
58781
|
}
|
|
58782
58782
|
}), eA;
|
|
58783
58783
|
}
|
|
58784
58784
|
function yA(gA, R, L, F) {
|
|
58785
58785
|
var iA = _A(gA, R, L, F), eA = [].concat(gA);
|
|
58786
|
-
return iA.forEach(function(nA,
|
|
58787
|
-
eA[
|
|
58786
|
+
return iA.forEach(function(nA, fA) {
|
|
58787
|
+
eA[fA] = (R.levels[nA] & 1 ? TA(gA[nA]) : null) || gA[nA];
|
|
58788
58788
|
}), eA.join("");
|
|
58789
58789
|
}
|
|
58790
58790
|
function _A(gA, R, L, F) {
|
|
58791
58791
|
for (var iA = mA(gA, R, L, F), eA = [], nA = 0; nA < gA.length; nA++)
|
|
58792
58792
|
eA[nA] = nA;
|
|
58793
|
-
return iA.forEach(function(
|
|
58794
|
-
for (var wA =
|
|
58793
|
+
return iA.forEach(function(fA) {
|
|
58794
|
+
for (var wA = fA[0], cA = fA[1], xA = eA.slice(wA, cA + 1), lA = xA.length; lA--; )
|
|
58795
58795
|
eA[cA - lA] = xA[lA];
|
|
58796
58796
|
}), eA;
|
|
58797
58797
|
}
|
|
58798
|
-
return A.closingToOpeningBracket = C, A.getBidiCharType = h, A.getBidiCharTypeName = f, A.getCanonicalBracket = _, A.getEmbeddingLevels =
|
|
58798
|
+
return A.closingToOpeningBracket = C, A.getBidiCharType = h, A.getBidiCharTypeName = f, A.getCanonicalBracket = _, A.getEmbeddingLevels = dA, A.getMirroredCharacter = TA, A.getMirroredCharactersMap = vA, A.getReorderSegments = mA, A.getReorderedIndices = _A, A.getReorderedString = yA, A.openingToClosingBracket = w, Object.defineProperty(A, "__esModule", { value: !0 }), A;
|
|
58799
58799
|
}({});
|
|
58800
58800
|
return n;
|
|
58801
58801
|
}
|
|
@@ -60158,12 +60158,12 @@ function Ij() {
|
|
|
60158
60158
|
T.f = k = C(P, N, 1);
|
|
60159
60159
|
var tA = C(P, N + 1, 3);
|
|
60160
60160
|
if (N += 3, !tA) {
|
|
60161
|
-
var
|
|
60161
|
+
var dA = P[(L = ((K = N) / 8 | 0) + (7 & K && 1) + 4) - 4] | P[L - 3] << 8, H = L + dA;
|
|
60162
60162
|
if (H > q) {
|
|
60163
60163
|
W && S(0);
|
|
60164
60164
|
break;
|
|
60165
60165
|
}
|
|
60166
|
-
B && U(Y +
|
|
60166
|
+
B && U(Y + dA), M.set(P.subarray(L, H), Y), T.b = Y += dA, T.p = N = 8 * H;
|
|
60167
60167
|
continue;
|
|
60168
60168
|
}
|
|
60169
60169
|
if (tA == 1)
|
|
@@ -60185,8 +60185,8 @@ function Ij() {
|
|
|
60185
60185
|
vA[yA++] = iA;
|
|
60186
60186
|
}
|
|
60187
60187
|
}
|
|
60188
|
-
var nA = vA.subarray(0, aA),
|
|
60189
|
-
G = w(nA), V = w(
|
|
60188
|
+
var nA = vA.subarray(0, aA), fA = vA.subarray(aA);
|
|
60189
|
+
G = w(nA), V = w(fA), X = m(nA, G, 1), j = m(fA, V, 1);
|
|
60190
60190
|
} else
|
|
60191
60191
|
S(1);
|
|
60192
60192
|
if (N > J) {
|
|
@@ -60214,13 +60214,13 @@ function Ij() {
|
|
|
60214
60214
|
IA = C(P, N, (1 << GA) - 1) + l[yA], N += GA;
|
|
60215
60215
|
}
|
|
60216
60216
|
var qA = j[_(P, N) & cA], CA = qA >>> 4;
|
|
60217
|
-
if (qA || S(3), N += 15 & qA,
|
|
60217
|
+
if (qA || S(3), N += 15 & qA, fA = c[CA], CA > 3 && (GA = r[CA], fA += _(P, N) & (1 << GA) - 1, N += GA), N > J) {
|
|
60218
60218
|
W && S(0);
|
|
60219
60219
|
break;
|
|
60220
60220
|
}
|
|
60221
60221
|
B && U(Y + 131072);
|
|
60222
60222
|
for (var DA = Y + IA; Y < DA; Y += 4)
|
|
60223
|
-
M[Y] = M[Y -
|
|
60223
|
+
M[Y] = M[Y - fA], M[Y + 1] = M[Y + 1 - fA], M[Y + 2] = M[Y + 2 - fA], M[Y + 3] = M[Y + 3 - fA];
|
|
60224
60224
|
Y = DA;
|
|
60225
60225
|
}
|
|
60226
60226
|
}
|
|
@@ -60247,10 +60247,10 @@ function Ij() {
|
|
|
60247
60247
|
return T += 4, aA;
|
|
60248
60248
|
}
|
|
60249
60249
|
function W(aA) {
|
|
60250
|
-
|
|
60250
|
+
dA.setUint16(H, aA), H += 2;
|
|
60251
60251
|
}
|
|
60252
60252
|
function K(aA) {
|
|
60253
|
-
|
|
60253
|
+
dA.setUint32(H, aA), H += 4;
|
|
60254
60254
|
}
|
|
60255
60255
|
for (var U = { signature: B(), flavor: B(), length: B(), numTables: q(), reserved: q(), totalSfntSize: B(), majorVersion: q(), minorVersion: q(), metaOffset: B(), metaLength: B(), metaOrigLength: B(), privOffset: B(), privLength: B() }, k = 0; Math.pow(2, k) <= U.numTables; )
|
|
60256
60256
|
k++;
|
|
@@ -60259,7 +60259,7 @@ function Ij() {
|
|
|
60259
60259
|
j.push({ tag: B(), offset: B(), compLength: B(), origLength: B(), origChecksum: B() }), X += 16;
|
|
60260
60260
|
var V, J = new Uint8Array(12 + 16 * j.length + j.reduce(function(aA, AA) {
|
|
60261
60261
|
return aA + AA.origLength + 4;
|
|
60262
|
-
}, 0)), tA = J.buffer,
|
|
60262
|
+
}, 0)), tA = J.buffer, dA = new DataView(tA), H = 0;
|
|
60263
60263
|
return K(U.flavor), W(U.numTables), W(N), W(k), W(Y), j.forEach(function(aA) {
|
|
60264
60264
|
K(aA.tag), K(aA.origChecksum), K(X), K(aA.origLength), aA.outOffset = X, (X += aA.origLength) % 4 != 0 && (X += 4 - X % 4);
|
|
60265
60265
|
}), j.forEach(function(aA) {
|
|
@@ -60469,12 +60469,12 @@ function bj(n, A) {
|
|
|
60469
60469
|
let G = S[X];
|
|
60470
60470
|
if (!G) {
|
|
60471
60471
|
const { cmds: V, crds: J } = n.U.glyphToPath(x, X);
|
|
60472
|
-
let tA = "",
|
|
60472
|
+
let tA = "", dA = 0;
|
|
60473
60473
|
for (let vA = 0, mA = V.length; vA < mA; vA++) {
|
|
60474
60474
|
const yA = e[V[vA]];
|
|
60475
60475
|
tA += V[vA];
|
|
60476
60476
|
for (let _A = 1; _A <= yA; _A++)
|
|
60477
|
-
tA += (_A > 1 ? "," : "") + J[
|
|
60477
|
+
tA += (_A > 1 ? "," : "") + J[dA++];
|
|
60478
60478
|
}
|
|
60479
60479
|
let H, aA, AA, TA;
|
|
60480
60480
|
if (J.length) {
|
|
@@ -60653,8 +60653,8 @@ function Sj() {
|
|
|
60653
60653
|
for (var N = function(X) {
|
|
60654
60654
|
var j = v.codePointAt(X), G = null, V = l[q[X]], J = void 0;
|
|
60655
60655
|
for (var tA in V) {
|
|
60656
|
-
var
|
|
60657
|
-
if (
|
|
60656
|
+
var dA = T[tA];
|
|
60657
|
+
if (dA === void 0 && (dA = T[tA] = new RegExp(tA).test(_ || "en")), dA) {
|
|
60658
60658
|
for (var H in J = tA, V[tA])
|
|
60659
60659
|
if (s(j, V[tA][H])) {
|
|
60660
60660
|
G = H;
|
|
@@ -60689,8 +60689,8 @@ function Sj() {
|
|
|
60689
60689
|
Y = u[q[X]];
|
|
60690
60690
|
var G = M[Y.id];
|
|
60691
60691
|
if (!G) {
|
|
60692
|
-
var V = Y.typeforms, J = d(V, x, "sans-serif"), tA = d(V[J], S, "normal"),
|
|
60693
|
-
G = M[Y.id] = I + "/font-files/" + Y.id + "/" + J + "." + tA + "." +
|
|
60692
|
+
var V = Y.typeforms, J = d(V, x, "sans-serif"), tA = d(V[J], S, "normal"), dA = g((N = V[J]) === null || N === void 0 ? void 0 : N[tA], b);
|
|
60693
|
+
G = M[Y.id] = I + "/font-files/" + Y.id + "/" + J + "." + tA + "." + dA + ".woff";
|
|
60694
60694
|
}
|
|
60695
60695
|
var H = D.get(G);
|
|
60696
60696
|
H == null && (H = D.size, D.set(G, H)), P[X] = H;
|
|
@@ -60886,7 +60886,7 @@ function Tj(n, A) {
|
|
|
60886
60886
|
}, (j) => {
|
|
60887
60887
|
X.fontLoad = c() - Y;
|
|
60888
60888
|
const G = isFinite(x);
|
|
60889
|
-
let V = null, J = null, tA = null,
|
|
60889
|
+
let V = null, J = null, tA = null, dA = null, H = null, aA = null, AA = null, TA = null, vA = 0, mA = 0, yA = D !== "nowrap";
|
|
60890
60890
|
const _A = /* @__PURE__ */ new Map(), gA = c();
|
|
60891
60891
|
let R = I, L = 0, F = new h();
|
|
60892
60892
|
const iA = [F];
|
|
@@ -60956,10 +60956,10 @@ function Tj(n, A) {
|
|
|
60956
60956
|
}
|
|
60957
60957
|
cA.baseline -= eA, cA.cap -= eA, cA.ex -= eA, eA += cA.lineHeight;
|
|
60958
60958
|
});
|
|
60959
|
-
let nA = 0,
|
|
60960
|
-
if (M && (typeof M == "number" ? nA = -M : typeof M == "string" && (nA = -vA * (M === "left" ? 0 : M === "center" ? 0.5 : M === "right" ? 1 : l(M)))), T && (typeof T == "number" ?
|
|
60959
|
+
let nA = 0, fA = 0;
|
|
60960
|
+
if (M && (typeof M == "number" ? nA = -M : typeof M == "string" && (nA = -vA * (M === "left" ? 0 : M === "center" ? 0.5 : M === "right" ? 1 : l(M)))), T && (typeof T == "number" ? fA = -T : typeof T == "string" && (fA = T === "top" ? 0 : T === "top-baseline" ? -iA[0].baseline : T === "top-cap" ? -iA[0].cap : T === "top-ex" ? -iA[0].ex : T === "middle" ? eA / 2 : T === "bottom" ? eA : T === "bottom-baseline" ? -iA[iA.length - 1].baseline : l(T) * eA)), !q) {
|
|
60961
60961
|
const cA = A.getEmbeddingLevels(p, S);
|
|
60962
|
-
V = new Uint16Array(mA), J = new Uint8Array(mA), tA = new Float32Array(mA * 2),
|
|
60962
|
+
V = new Uint16Array(mA), J = new Uint8Array(mA), tA = new Float32Array(mA * 2), dA = {}, AA = [1 / 0, 1 / 0, -1 / 0, -1 / 0], TA = [], K && (aA = new Float32Array(p.length * 4)), k && (H = new Uint8Array(mA * 3));
|
|
60963
60963
|
let xA = 0, lA = -1, IA = -1, GA, qA;
|
|
60964
60964
|
if (iA.forEach((CA, DA) => {
|
|
60965
60965
|
let { count: SA, width: XA } = CA;
|
|
@@ -61023,7 +61023,7 @@ function Tj(n, A) {
|
|
|
61023
61023
|
}
|
|
61024
61024
|
if (K) {
|
|
61025
61025
|
const { charIndex: NA, fontData: ie } = EA, ce = EA.x + nA, Le = EA.x + EA.width + nA;
|
|
61026
|
-
aA[NA * 4] = oe ? Le : ce, aA[NA * 4 + 1] = oe ? ce : Le, aA[NA * 4 + 2] = CA.baseline + ie.caretBottom +
|
|
61026
|
+
aA[NA * 4] = oe ? Le : ce, aA[NA * 4 + 1] = oe ? ce : Le, aA[NA * 4 + 2] = CA.baseline + ie.caretBottom + fA, aA[NA * 4 + 3] = CA.baseline + ie.caretTop + fA;
|
|
61027
61027
|
const xe = NA - lA;
|
|
61028
61028
|
xe > 1 && u(aA, lA, xe), lA = NA;
|
|
61029
61029
|
}
|
|
@@ -61033,12 +61033,12 @@ function Tj(n, A) {
|
|
|
61033
61033
|
IA++, k.hasOwnProperty(IA) && (qA = k[IA]);
|
|
61034
61034
|
}
|
|
61035
61035
|
if (!hA.isWhitespace && !hA.isEmpty) {
|
|
61036
|
-
const NA = xA++, { fontSizeMult: ie, src: ce, index: Le } = EA.fontData, xe =
|
|
61036
|
+
const NA = xA++, { fontSizeMult: ie, src: ce, index: Le } = EA.fontData, xe = dA[ce] || (dA[ce] = {});
|
|
61037
61037
|
xe[ne] || (xe[ne] = {
|
|
61038
61038
|
path: hA.path,
|
|
61039
61039
|
pathBounds: [hA.xMin, hA.yMin, hA.xMax, hA.yMax]
|
|
61040
61040
|
});
|
|
61041
|
-
const At = EA.x + nA, ft = EA.y + CA.baseline +
|
|
61041
|
+
const At = EA.x + nA, ft = EA.y + CA.baseline + fA;
|
|
61042
61042
|
tA[NA * 2] = At, tA[NA * 2 + 1] = ft;
|
|
61043
61043
|
const Nt = At + hA.xMin * ie, $t = ft + hA.yMin * ie, sn = At + hA.xMax * ie, di = ft + hA.yMax * ie;
|
|
61044
61044
|
Nt < AA[0] && (AA[0] = Nt), $t < AA[1] && (AA[1] = $t), sn > AA[2] && (AA[2] = sn), di > AA[3] && (AA[3] = di), NA % U === 0 && (GA = { start: NA, end: NA, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, TA.push(GA)), GA.end++;
|
|
@@ -61065,7 +61065,7 @@ function Tj(n, A) {
|
|
|
61065
61065
|
//index into fontData for each glyph
|
|
61066
61066
|
glyphPositions: tA,
|
|
61067
61067
|
//x,y of each glyph's origin in layout
|
|
61068
|
-
glyphData:
|
|
61068
|
+
glyphData: dA,
|
|
61069
61069
|
//dict holding data about each glyph appearing in the text
|
|
61070
61070
|
fontData: wA,
|
|
61071
61071
|
//data about each font used in the text
|
|
@@ -61078,14 +61078,14 @@ function Tj(n, A) {
|
|
|
61078
61078
|
//total rects per (n=chunkedBoundsSize) consecutive glyphs
|
|
61079
61079
|
fontSize: y,
|
|
61080
61080
|
//calculated em height
|
|
61081
|
-
topBaseline:
|
|
61081
|
+
topBaseline: fA + iA[0].baseline,
|
|
61082
61082
|
//y coordinate of the top line's baseline
|
|
61083
61083
|
blockBounds: [
|
|
61084
61084
|
//bounds for the whole block of text, including vertical padding for lineHeight
|
|
61085
61085
|
nA,
|
|
61086
|
-
|
|
61086
|
+
fA - eA,
|
|
61087
61087
|
nA + vA,
|
|
61088
|
-
|
|
61088
|
+
fA
|
|
61089
61089
|
],
|
|
61090
61090
|
visibleBounds: AA,
|
|
61091
61091
|
//total bounds of visible text paths, may be larger or smaller than blockBounds
|
|
@@ -61662,7 +61662,7 @@ function Vj(n) {
|
|
|
61662
61662
|
},
|
|
61663
61663
|
uniforms: {
|
|
61664
61664
|
uTroikaSDFTexture: { value: null },
|
|
61665
|
-
uTroikaSDFTextureSize: { value: new
|
|
61665
|
+
uTroikaSDFTextureSize: { value: new uA() },
|
|
61666
61666
|
uTroikaSDFGlyphSize: { value: 0 },
|
|
61667
61667
|
uTroikaSDFExponent: { value: 0 },
|
|
61668
61668
|
uTroikaTotalBounds: { value: new me(0, 0, 0, 0) },
|
|
@@ -61670,7 +61670,7 @@ function Vj(n) {
|
|
|
61670
61670
|
uTroikaDistanceOffset: { value: 0 },
|
|
61671
61671
|
uTroikaOutlineOpacity: { value: 0 },
|
|
61672
61672
|
uTroikaFillOpacity: { value: 1 },
|
|
61673
|
-
uTroikaPositionOffset: { value: new
|
|
61673
|
+
uTroikaPositionOffset: { value: new uA() },
|
|
61674
61674
|
uTroikaCurveRadius: { value: 0 },
|
|
61675
61675
|
uTroikaBlurRadius: { value: 0 },
|
|
61676
61676
|
uTroikaStrokeWidth: { value: 0 },
|
|
@@ -61937,7 +61937,7 @@ class LS extends Pe {
|
|
|
61937
61937
|
/**
|
|
61938
61938
|
* Translate a point in local space to an x/y in the text plane.
|
|
61939
61939
|
*/
|
|
61940
|
-
localPositionToTextCoords(A, e = new
|
|
61940
|
+
localPositionToTextCoords(A, e = new uA()) {
|
|
61941
61941
|
e.copy(A);
|
|
61942
61942
|
const t = this.curveRadius;
|
|
61943
61943
|
return t && (e.x = Math.atan2(A.x, Math.abs(t) - Math.abs(A.z)) * Math.abs(t)), e;
|
|
@@ -61945,7 +61945,7 @@ class LS extends Pe {
|
|
|
61945
61945
|
/**
|
|
61946
61946
|
* Translate a point in world space to an x/y in the text plane.
|
|
61947
61947
|
*/
|
|
61948
|
-
worldPositionToTextCoords(A, e = new
|
|
61948
|
+
worldPositionToTextCoords(A, e = new uA()) {
|
|
61949
61949
|
return Ou.copy(A), this.localPositionToTextCoords(this.worldToLocal(Ou), e);
|
|
61950
61950
|
}
|
|
61951
61951
|
/**
|
|
@@ -62159,7 +62159,7 @@ new zA();
|
|
|
62159
62159
|
class sK extends rK {
|
|
62160
62160
|
constructor(A) {
|
|
62161
62161
|
const e = document.createElement("div");
|
|
62162
|
-
super(e), this.props = A, this._scale = 0.01, this._emitter = new Vr(), this.addEventListener = this._emitter.on.bind(this._emitter), this.removeEventListener = this._emitter.on.bind(this._emitter), this._mouseStart = new
|
|
62162
|
+
super(e), this.props = A, this._scale = 0.01, this._emitter = new Vr(), this.addEventListener = this._emitter.on.bind(this._emitter), this.removeEventListener = this._emitter.on.bind(this._emitter), this._mouseStart = new uA(), this._targetSize = new uA(), this._caches = [], this._sizeFlag = "width", this._direction = 1, this._lines = [], this._pointerdown = (a) => {
|
|
62163
62163
|
const { pageX: l, pageY: u } = a;
|
|
62164
62164
|
this.endNode.setPointerCapture(a.pointerId), this._mouseStart.set(l, u), this._targetSize.setX(parseFloat(this.endNode.parentElement.style.width)), this._targetSize.setY(parseFloat(this.endNode.parentElement.style.height));
|
|
62165
62165
|
}, this._pointermove = (a) => {
|
|
@@ -62461,7 +62461,7 @@ class _I extends Ie {
|
|
|
62461
62461
|
new J2();
|
|
62462
62462
|
class pK extends Ie {
|
|
62463
62463
|
constructor(A) {
|
|
62464
|
-
super(), this._props = A, this._emitter = new Vr(), this.addEventListener = this._emitter.addListener.bind(this._emitter), this._container = new Dt(), this.sizeBox = new cK(), this._goodsSize = new bd(0, 0, 0), this._slots = [], this._logos = [], this._skins = [], this._levels = /* @__PURE__ */ new Map(), this._bodyOpacity = 1, this._masts = /* @__PURE__ */ new Map(), this._liftMaxHeight = 0, this._jackMaxHeight = 0, this._forkMaxHeight = 0, this.controllers = [], this.goods = [], this._breathLights = [], this._shelves = /* @__PURE__ */ new Map(), this._shelveAnimateTimes = [], this._url = "", this._showController = !0, this._shapeKeys = /* @__PURE__ */ new Map(), this._materialsCache = /* @__PURE__ */ new Map(), this.opacityCache = void 0, this._url = A.url || "", this._url && this.load(this._url).then(), this.add(this._container), this._props.showSizeBox && this.add(this.sizeBox), this.showController = typeof A.showController == "boolean" ? A.showController : !0;
|
|
62464
|
+
super(), this._props = A, this._emitter = new Vr(), this.addEventListener = this._emitter.addListener.bind(this._emitter), this._container = new Dt(), this.sizeBox = new cK(), this._goodsSize = new bd(0, 0, 0), this._slots = [], this._logos = [], this._skins = [], this._levels = /* @__PURE__ */ new Map(), this._bodyOpacity = 1, this._masts = /* @__PURE__ */ new Map(), this._liftMaxHeight = 0, this._jackMaxHeight = 0, this._forkMaxHeight = 0, this.controllers = [], this.goods = [], this._breathLights = [], this._shelves = /* @__PURE__ */ new Map(), this._shelfMaxLevel = 1, this._shelveAnimateTimes = [], this._url = "", this._showController = !0, this._shapeKeys = /* @__PURE__ */ new Map(), this._materialsCache = /* @__PURE__ */ new Map(), this.opacityCache = void 0, this._url = A.url || "", this._url && this.load(this._url).then(), this.add(this._container), this._props.showSizeBox && this.add(this.sizeBox), this.showController = typeof A.showController == "boolean" ? A.showController : !0;
|
|
62465
62465
|
}
|
|
62466
62466
|
get shapeKeys() {
|
|
62467
62467
|
return this._shapeKeys;
|
|
@@ -62544,7 +62544,7 @@ class pK extends Ie {
|
|
|
62544
62544
|
A && (A.change(e), this._app && this._app.usePathTracing && (this._app.sampleCount = 0, this._app.pathTracer.reset(), this._app.pathTracer.updateMaterials()));
|
|
62545
62545
|
}
|
|
62546
62546
|
changeLogo(A, e) {
|
|
62547
|
-
A.change(e.url, e.
|
|
62547
|
+
A.change(e.url, new uA(e.scaleX, e.scaleY), new uA(
|
|
62548
62548
|
e.ox,
|
|
62549
62549
|
e.oy
|
|
62550
62550
|
)), this._app && this._app.usePathTracing && (this._app.usePathTracing = !1, setTimeout(() => {
|
|
@@ -62657,7 +62657,7 @@ class pK extends Ie {
|
|
|
62657
62657
|
this.shapeKeys.has(s) && (this.sizeBox.follow = s, this.sizeBox.followOrigin = this._shapeKeys.get(s) || 0, this.sizeBox.followScale = e.userData[r]);
|
|
62658
62658
|
}
|
|
62659
62659
|
});
|
|
62660
|
-
}), A.updateMatrixWorld(!0), this._container.add(A), this.sizeBox.generate(A), this.sizeBox.show()
|
|
62660
|
+
}), A.updateMatrixWorld(!0), this._container.add(A), this.sizeBox.generate(A), this.sizeBox.show();
|
|
62661
62661
|
}
|
|
62662
62662
|
// 设置长宽高,针对可配置的车体生效
|
|
62663
62663
|
setHeight(A) {
|
|
@@ -62673,7 +62673,7 @@ class pK extends Ie {
|
|
|
62673
62673
|
this.name === "SFL-CDD14" && (A > 1.6 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0)), this.name === "SFL-CDD15" && (A > 2.43 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0)), ["SFL-CPD20-Y", "SFL-CPD30-Y"].includes(this.name) && (A > 3.5 ? this.setShapeKey("mast", 2) : A > 3 ? this.setShapeKey("mast", 1) : this.setShapeKey("mast", 0));
|
|
62674
62674
|
}
|
|
62675
62675
|
setForkHeight(A) {
|
|
62676
|
-
if (this._fork &&
|
|
62676
|
+
if (this._fork && (A > this._forkMaxHeight && (A = this._forkMaxHeight), this._fork.position.y = A, this._masts.size === 1)) {
|
|
62677
62677
|
const e = this._masts.get(2), t = (e == null ? void 0 : e.userData.startHeight) || 0.1;
|
|
62678
62678
|
e && (e.position.y = (A - t) * 0.5);
|
|
62679
62679
|
}
|
|
@@ -62684,7 +62684,7 @@ class pK extends Ie {
|
|
|
62684
62684
|
}), this._fork && this.forkHeight > this._forkMaxHeight && this.setForkHeight(A));
|
|
62685
62685
|
}
|
|
62686
62686
|
setLiftHeight(A) {
|
|
62687
|
-
this._lift && (A > this._liftMaxHeight
|
|
62687
|
+
this._lift && (A > this._liftMaxHeight && (A = this._liftMaxHeight), this._lift.position.y = A);
|
|
62688
62688
|
}
|
|
62689
62689
|
setLiftMaxHeight(A) {
|
|
62690
62690
|
this._lift && (this._liftMaxHeight = A, this.limitValue(A), this.controllers.forEach((e) => {
|
|
@@ -62697,7 +62697,7 @@ class pK extends Ie {
|
|
|
62697
62697
|
}), this.jackHeight > this._jackMaxHeight && this.setJackHeight(A));
|
|
62698
62698
|
}
|
|
62699
62699
|
setJackHeight(A) {
|
|
62700
|
-
this._jack && (A > this._jackMaxHeight
|
|
62700
|
+
this._jack && (A > this._jackMaxHeight && (A = this._jackMaxHeight), this._jack.position.y = A);
|
|
62701
62701
|
}
|
|
62702
62702
|
setLevel(A) {
|
|
62703
62703
|
this._levels.forEach((e) => {
|
|
@@ -62718,12 +62718,13 @@ class pK extends Ie {
|
|
|
62718
62718
|
setGoodsSize(A) {
|
|
62719
62719
|
this._goodsSize.length = A.length, this._goodsSize.width = A.width, this._goodsSize.height = A.height, this._levels.forEach((e) => {
|
|
62720
62720
|
e.setGoodsSize(A);
|
|
62721
|
-
}), this.setShelfLevel(this.
|
|
62721
|
+
}), this.setShelfLevel(this._shelfMaxLevel);
|
|
62722
62722
|
}
|
|
62723
62723
|
// 设置料箱料斗层数
|
|
62724
62724
|
setShelfLevel(A = 3) {
|
|
62725
62725
|
if (!this._shelf)
|
|
62726
62726
|
return;
|
|
62727
|
+
this._shelfMaxLevel = A;
|
|
62727
62728
|
const e = this._goodsSize.height + 0.12;
|
|
62728
62729
|
this._shelves.delete(0), this._shelves.forEach((t) => {
|
|
62729
62730
|
_n(t), t.parent && t.removeFromParent();
|
|
@@ -63293,7 +63294,7 @@ const OK = function() {
|
|
|
63293
63294
|
d !== 0 ? g = (c * h - p * f) / d : g = 0, y = (c + g * h) / f, s.x = g, s.y = y;
|
|
63294
63295
|
};
|
|
63295
63296
|
}(), Xv = function() {
|
|
63296
|
-
const n = new
|
|
63297
|
+
const n = new uA(), A = new O(), e = new O();
|
|
63297
63298
|
return function(i, r, s, o) {
|
|
63298
63299
|
OK(i, r, n);
|
|
63299
63300
|
let a = n.x, l = n.y;
|
|
@@ -63726,7 +63727,7 @@ function kK(n, A, e = {}, t = 0, i = 1 / 0) {
|
|
|
63726
63727
|
const l = Math.sqrt(o);
|
|
63727
63728
|
return e.point ? e.point.copy(Vg) : e.point = Vg.clone(), e.distance = l, e.faceIndex = a, e;
|
|
63728
63729
|
}
|
|
63729
|
-
const Fo = /* @__PURE__ */ new O(), Go = /* @__PURE__ */ new O(), Ho = /* @__PURE__ */ new O(), zu = /* @__PURE__ */ new
|
|
63730
|
+
const Fo = /* @__PURE__ */ new O(), Go = /* @__PURE__ */ new O(), Ho = /* @__PURE__ */ new O(), zu = /* @__PURE__ */ new uA(), Ru = /* @__PURE__ */ new uA(), ku = /* @__PURE__ */ new uA(), EI = /* @__PURE__ */ new O(), LI = /* @__PURE__ */ new O(), OI = /* @__PURE__ */ new O(), ju = /* @__PURE__ */ new O();
|
|
63730
63731
|
function jK(n, A, e, t, i, r, s, o) {
|
|
63731
63732
|
let a;
|
|
63732
63733
|
if (r === Ct ? a = n.intersectTriangle(t, e, A, !0, i) : a = n.intersectTriangle(A, e, t, r !== ot, i), a === null)
|
|
@@ -63741,7 +63742,7 @@ function KK(n, A, e, t, i, r, s, o, a, l, u) {
|
|
|
63741
63742
|
Fo.fromBufferAttribute(A, r), Go.fromBufferAttribute(A, s), Ho.fromBufferAttribute(A, o);
|
|
63742
63743
|
const c = jK(n, Fo, Go, Ho, ju, a, l, u);
|
|
63743
63744
|
if (c) {
|
|
63744
|
-
t && (zu.fromBufferAttribute(t, r), Ru.fromBufferAttribute(t, s), ku.fromBufferAttribute(t, o), c.uv = Ze.getInterpolation(ju, Fo, Go, Ho, zu, Ru, ku, new
|
|
63745
|
+
t && (zu.fromBufferAttribute(t, r), Ru.fromBufferAttribute(t, s), ku.fromBufferAttribute(t, o), c.uv = Ze.getInterpolation(ju, Fo, Go, Ho, zu, Ru, ku, new uA())), i && (zu.fromBufferAttribute(i, r), Ru.fromBufferAttribute(i, s), ku.fromBufferAttribute(i, o), c.uv1 = Ze.getInterpolation(ju, Fo, Go, Ho, zu, Ru, ku, new uA())), e && (EI.fromBufferAttribute(e, r), LI.fromBufferAttribute(e, s), OI.fromBufferAttribute(e, o), c.normal = Ze.getInterpolation(ju, Fo, Go, Ho, EI, LI, OI, new O()), c.normal.dot(n.direction) > 0 && c.normal.multiplyScalar(-1));
|
|
63745
63746
|
const h = {
|
|
63746
63747
|
a: r,
|
|
63747
63748
|
b: s,
|
|
@@ -64977,13 +64978,13 @@ class VI {
|
|
|
64977
64978
|
clear() {
|
|
64978
64979
|
this.change();
|
|
64979
64980
|
}
|
|
64980
|
-
change(A, e = 1, t = new
|
|
64981
|
+
change(A, e = new uA(1, 1), t = new uA()) {
|
|
64981
64982
|
var s;
|
|
64982
64983
|
this.imageUrl = A;
|
|
64983
64984
|
let i;
|
|
64984
64985
|
if (A) {
|
|
64985
64986
|
const o = new Image();
|
|
64986
|
-
o.crossOrigin = "anonymous", i = new ct(o), i.colorSpace = ke, i.wrapS = i.wrapT = it,
|
|
64987
|
+
o.crossOrigin = "anonymous", i = new ct(o), i.colorSpace = ke, i.wrapS = i.wrapT = it, i.repeat.set(1 / e.x, 1 / e.y), i.offset.set(t.x, t.y), o.onload = () => {
|
|
64987
64988
|
i && (i.flipY = !1, i.needsUpdate = !0);
|
|
64988
64989
|
}, o.src = A;
|
|
64989
64990
|
}
|
|
@@ -65026,12 +65027,12 @@ class nH {
|
|
|
65026
65027
|
logarithmicDepthBuffer: !0,
|
|
65027
65028
|
powerPreference: "high-performance",
|
|
65028
65029
|
preserveDrawingBuffer: !0
|
|
65029
|
-
}), this.css2dRenderer = new zO(), this.mousePos = new
|
|
65030
|
+
}), this.css2dRenderer = new zO(), this.mousePos = new uA(), this.mouseCoord = new uA(), this.offset = new uA(), this.size = new uA(), this.amr = new pK({ showSizeBox: !0, showController: !0 }), this.camera = new yt(
|
|
65030
65031
|
60,
|
|
65031
65032
|
window.innerWidth / window.innerHeight,
|
|
65032
65033
|
0.1,
|
|
65033
65034
|
1e4
|
|
65034
|
-
), this._container = new Dt(), this._raycaster = new OE(), this._selected = [], this._pointerDownTimeout = 0, this.lines = new Wa(new
|
|
65035
|
+
), this._container = new Dt(), this._raycaster = new OE(), this._selected = [], this._pointerDownTimeout = 0, this.lines = new Wa(new uA(-108, 0)), this._dragging = !1, this.maxSample = 1024 * 2, this.sampleCount = 0, this._usePathTracing = !1, this._fpsCache = [], this._fpsCacheMax = 20, this._emitter = new Vr(), this.sound = new bR(), this._ground = new Pe(
|
|
65035
65036
|
new or(100, 100),
|
|
65036
65037
|
new Gc({
|
|
65037
65038
|
color: new FA("#aaa"),
|
|
@@ -65117,7 +65118,7 @@ class nH {
|
|
|
65117
65118
|
this.pathTracer = new qO(this.renderer), this.pathTracer.filterGlossyFactor = 0.6, this.pathTracer.renderScale = window.devicePixelRatio, this.pathTracer.bounces = 10, this.pathTracer.transmissiveBounces = 8, this.pathTracer.tiles.set(e, e), this.pathTracer.fadeDuration = 0, this.pathTracer.setBVHWorker(new vF()), this.controls.addEventListener("change", () => {
|
|
65118
65119
|
var t;
|
|
65119
65120
|
this.sampleCount = 0, (t = this.pathTracer) == null || t.updateCamera();
|
|
65120
|
-
}), this._composer = new BO(this.renderer), this._composer.setPixelRatio(window.devicePixelRatio), this._composer.addPass(new kE(this.scene, this.camera)), this._composer.addPass(new HE()), this._outlinePass = new Zn(new
|
|
65121
|
+
}), this._composer = new BO(this.renderer), this._composer.setPixelRatio(window.devicePixelRatio), this._composer.addPass(new kE(this.scene, this.camera)), this._composer.addPass(new HE()), this._outlinePass = new Zn(new uA(window.innerWidth, window.innerHeight), this.scene, this.camera), this._outlinePass.visibleEdgeColor.set(26367), this._outlinePass.edgeThickness = 0.5, this._outlinePass.hiddenEdgeColor.set(26367), this._outlinePass.edgeStrength = 3, this._outlinePass.edgeGlow = 0, this._composer.addPass(this._outlinePass), this._outlinePassError = new Zn(new uA(window.innerWidth, window.innerHeight), this.scene, this.camera), this._outlinePassError.visibleEdgeColor.set(16711680), this._outlinePassError.edgeThickness = 0.5, this._outlinePassError.hiddenEdgeColor.set(16711680), this._outlinePassError.edgeStrength = 3, this._outlinePassError.edgeGlow = 0, this._composer.addPass(this._outlinePassError), this._composer.renderTarget1.texture.colorSpace = ke, this._composer.renderTarget2.texture.colorSpace = ke, this._fxaaPass = new Q2(jE), this._composer.addPass(this._fxaaPass), this._container.add(this.amr), this.scene.add(this._container), this.ticker(), this._loadEnv(), this._initEvents(), this._ground.rotateX(-Math.PI / 2), this.scene.add(this._ground);
|
|
65121
65122
|
}
|
|
65122
65123
|
get usePathTracing() {
|
|
65123
65124
|
return this._usePathTracing;
|
|
@@ -66673,14 +66674,28 @@ let Xr = class extends Yr {
|
|
|
66673
66674
|
}, this.logoSize = {
|
|
66674
66675
|
width: 0,
|
|
66675
66676
|
height: 0
|
|
66676
|
-
}, this._imageUrl = "", this._canvasScale = 1, this.texture = new ct(this.app.view), this._timer = 0, this.
|
|
66677
|
-
const { screenWidth: n, screenHeight: A } = this.viewport
|
|
66677
|
+
}, this._imageUrl = "", this._canvasScale = 1, this.texture = new ct(this.app.view), this._timer = 0, this._loading = !1, this.pathD = "", this.getConfigs = () => {
|
|
66678
|
+
const { screenWidth: n, screenHeight: A } = this.viewport;
|
|
66679
|
+
if (!this._sprite)
|
|
66680
|
+
return {
|
|
66681
|
+
canvasWidth: n,
|
|
66682
|
+
canvasHeight: A,
|
|
66683
|
+
scaleX: 1,
|
|
66684
|
+
scaleY: 1,
|
|
66685
|
+
ox: 0,
|
|
66686
|
+
oy: 0,
|
|
66687
|
+
x: 0,
|
|
66688
|
+
y: 0,
|
|
66689
|
+
url: this._imageUrl
|
|
66690
|
+
};
|
|
66691
|
+
const e = n / this._sprite.width, t = A / this._sprite.height, i = this.viewport.scale.x / e, r = this.viewport.scale.x / t, s = this._sprite.toGlobal(new uA(-this._sprite.width / 2, -this._sprite.height / 2)), o = -s.x / (this._sprite.width * this.viewport.scale.x), a = -s.y / (this._sprite.height * this.viewport.scale.y);
|
|
66678
66692
|
return {
|
|
66679
66693
|
canvasWidth: n,
|
|
66680
66694
|
canvasHeight: A,
|
|
66681
|
-
|
|
66682
|
-
|
|
66683
|
-
|
|
66695
|
+
scaleX: i,
|
|
66696
|
+
scaleY: r,
|
|
66697
|
+
ox: o,
|
|
66698
|
+
oy: a,
|
|
66684
66699
|
x: this.viewport.position.x,
|
|
66685
66700
|
y: this.viewport.position.y,
|
|
66686
66701
|
url: this._imageUrl
|
|
@@ -66735,11 +66750,14 @@ let Xr = class extends Yr {
|
|
|
66735
66750
|
canvasWidth: n,
|
|
66736
66751
|
x: A,
|
|
66737
66752
|
y: e,
|
|
66738
|
-
|
|
66753
|
+
scaleX: t,
|
|
66739
66754
|
url: i
|
|
66740
66755
|
}) => {
|
|
66756
|
+
var o;
|
|
66741
66757
|
const { screenWidth: r } = this.viewport;
|
|
66742
|
-
this._canvasScale = r / n, await this.add(i, this.logoSize)
|
|
66758
|
+
this._canvasScale = r / n, await this.add(i, this.logoSize);
|
|
66759
|
+
const s = t * r / (((o = this._sprite) == null ? void 0 : o.width) || 1);
|
|
66760
|
+
this.viewport.scale.set(s * this._canvasScale), this.viewport.position.set(A * this._canvasScale, e * this._canvasScale);
|
|
66743
66761
|
}, this.app.stage.addChild(this.viewport), this.viewport.drag({}).pinch().wheel().decelerate({
|
|
66744
66762
|
friction: 0,
|
|
66745
66763
|
bounce: 1
|
|
@@ -66761,6 +66779,8 @@ let Xr = class extends Yr {
|
|
|
66761
66779
|
return this.app.view;
|
|
66762
66780
|
}
|
|
66763
66781
|
get imageScale() {
|
|
66782
|
+
if (!this._sprite)
|
|
66783
|
+
return { x: 0, y: 0 };
|
|
66764
66784
|
const { screenWidth: n, screenHeight: A } = this.viewport, e = this.viewport.scale.x, t = this._sprite.width * e / 2, i = this._sprite.height * e / 2, r = this._domBoundingRect.width / t * (t / n), s = this._domBoundingRect.height / i * (i / A);
|
|
66765
66785
|
return { x: r, y: s };
|
|
66766
66786
|
}
|
|
@@ -66775,7 +66795,7 @@ let Xr = class extends Yr {
|
|
|
66775
66795
|
}
|
|
66776
66796
|
firstUpdated(n) {
|
|
66777
66797
|
var A;
|
|
66778
|
-
super.firstUpdated(n), this.container && ((A = this.container) == null || A.append(this.app.view), this.app.resizeTo = this.container
|
|
66798
|
+
super.firstUpdated(n), this.container && ((A = this.container) == null || A.append(this.app.view), this.app.resizeTo = this.container);
|
|
66779
66799
|
}
|
|
66780
66800
|
setUV(n) {
|
|
66781
66801
|
const { screenWidth: A, screenHeight: e } = this.viewport, t = n.attributes.uv, i = n.index;
|
|
@@ -66794,18 +66814,23 @@ let Xr = class extends Yr {
|
|
|
66794
66814
|
}), r = [], this.pathD = s;
|
|
66795
66815
|
}
|
|
66796
66816
|
async add(n, A) {
|
|
66797
|
-
this.
|
|
66817
|
+
this.clear(), this._imageUrl = n, this.logoSize = A, this._loading = !0;
|
|
66818
|
+
const e = await HA.fromURL(n);
|
|
66819
|
+
this._sprite = new Zs(e), this.viewport.addChild(this._sprite), this.imageSize.width = this._sprite.texture.width, this.imageSize.height = this._sprite.texture.height, this.fit(), this._loading = !1;
|
|
66798
66820
|
}
|
|
66799
66821
|
clear() {
|
|
66800
|
-
|
|
66822
|
+
var n, A;
|
|
66823
|
+
(n = this._sprite) == null || n.texture.destroy(!0), (A = this._sprite) == null || A.removeFromParent(), this.boundRect && (this.boundRect.style.left = "0px", this.boundRect.style.top = "0px", this.boundRect.style.width = "0px", this.boundRect.style.height = "0px");
|
|
66801
66824
|
}
|
|
66802
66825
|
fit() {
|
|
66826
|
+
if (!this._sprite)
|
|
66827
|
+
return;
|
|
66803
66828
|
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);
|
|
66804
66829
|
const n = this.viewport.screenWidth, A = this.viewport.screenHeight, e = this._sprite.width / n, t = this._sprite.height / A, i = Math.max(e, t);
|
|
66805
66830
|
this.viewport.scale.set(1 / i, 1 / i);
|
|
66806
66831
|
}
|
|
66807
66832
|
disconnectedCallback() {
|
|
66808
|
-
super.disconnectedCallback(), this.viewport.destroy({
|
|
66833
|
+
super.disconnectedCallback(), this.clear(), this.viewport.destroy({
|
|
66809
66834
|
children: !0,
|
|
66810
66835
|
texture: !0,
|
|
66811
66836
|
baseTexture: !0
|
|
@@ -66820,7 +66845,7 @@ let Xr = class extends Yr {
|
|
|
66820
66845
|
<div class="axios-y"></div>
|
|
66821
66846
|
<div class="cross"></div>
|
|
66822
66847
|
<svg class="uv-mask" viewBox="0 0 ${n} ${A}">
|
|
66823
|
-
<path d=${this.pathD} stroke-width="1" stroke="
|
|
66848
|
+
<path d=${this.pathD} stroke-width="1" stroke="#898989" stroke-opacity="1" fill="none"></path>
|
|
66824
66849
|
</svg>
|
|
66825
66850
|
</div>
|
|
66826
66851
|
`;
|