vis-core 0.29.9 → 0.29.11
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/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.module.js +896 -890
- package/dist/version.d.ts +1 -1
- package/dist/vis/all/objects/Model.d.ts +1 -0
- package/dist/vis/base/index.d.ts +1 -0
- package/package.json +4 -4
package/dist/index.module.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document!="undefined"){var t=document.createElement("style");t.appendChild(document.createTextNode(".-translate-x-1\\/2,.-translate-y-1\\/2,.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1 }.shadow{--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000 }.invert,.filter{--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: }.visible{visibility:visible}.static{position:static}.absolute{position:absolute}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.resize{resize:both}.whitespace-nowrap{white-space:nowrap}.text-center{text-align:center}.text-sm{font-size:14px;line-height:20px}.leading-\\[1\\]{line-height:1}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-opacity-80{--tw-text-opacity: .8 }.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}")),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
var An = Object.defineProperty,
|
|
3
|
-
var
|
|
2
|
+
var An = Object.defineProperty, Fn = Object.defineProperties;
|
|
3
|
+
var Kn = Object.getOwnPropertyDescriptors;
|
|
4
4
|
var En = Object.getOwnPropertySymbols, Hn = Object.getPrototypeOf, Yn = Object.prototype.hasOwnProperty, Un = Object.prototype.propertyIsEnumerable, Bn = Reflect.get;
|
|
5
5
|
var Mn = (v, e) => (e = Symbol[v]) ? e : Symbol.for("Symbol." + v), On = (v) => {
|
|
6
6
|
throw TypeError(v);
|
|
@@ -11,7 +11,7 @@ var Mn = (v, e) => (e = Symbol[v]) ? e : Symbol.for("Symbol." + v), On = (v) =>
|
|
|
11
11
|
for (var n of En(e))
|
|
12
12
|
Un.call(e, n) && Wn(v, n, e[n]);
|
|
13
13
|
return v;
|
|
14
|
-
}, Ui = (v, e) =>
|
|
14
|
+
}, Ui = (v, e) => Fn(v, Kn(e));
|
|
15
15
|
var g0 = (v, e, n) => Wn(v, typeof e != "symbol" ? e + "" : e, n);
|
|
16
16
|
var gn = (v, e, n) => Bn(Hn(v), n, e);
|
|
17
17
|
var E0 = (v, e, n) => new Promise((r, C) => {
|
|
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
|
|
|
63
63
|
Array.prototype.at || (Array.prototype.at = function(v) {
|
|
64
64
|
return v < 0 && (v = this.length + v), this[v];
|
|
65
65
|
});
|
|
66
|
-
const version = "0.29.
|
|
66
|
+
const version = "0.29.11", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -5531,8 +5531,8 @@ class Matrix4 {
|
|
|
5531
5531
|
* @return {Matrix4} A reference to this matrix.
|
|
5532
5532
|
*/
|
|
5533
5533
|
multiplyMatrices(e, n) {
|
|
5534
|
-
const r = e.elements, C = n.elements, w = this.elements, E = r[0], O = r[4], le = r[8], fe = r[12], Se = r[1], ze = r[5], ke = r[9], Fe = r[13], mt = r[2], Lt = r[6], bt = r[10], Ue = r[14], Gt = r[3], xt = r[7], Xt = r[11], Zt = r[15], wt = C[0], Vt = C[4], Wt = C[8], It = C[12], Nt = C[1],
|
|
5535
|
-
return w[0] = E * wt + O * Nt + le * s0 + fe *
|
|
5534
|
+
const r = e.elements, C = n.elements, w = this.elements, E = r[0], O = r[4], le = r[8], fe = r[12], Se = r[1], ze = r[5], ke = r[9], Fe = r[13], mt = r[2], Lt = r[6], bt = r[10], Ue = r[14], Gt = r[3], xt = r[7], Xt = r[11], Zt = r[15], wt = C[0], Vt = C[4], Wt = C[8], It = C[12], Nt = C[1], Ft = C[5], jt = C[9], n0 = C[13], s0 = C[2], qt = C[6], Ht = C[10], $t = C[14], Kt = C[3], e0 = C[7], u0 = C[11], d0 = C[15];
|
|
5535
|
+
return w[0] = E * wt + O * Nt + le * s0 + fe * Kt, w[4] = E * Vt + O * Ft + le * qt + fe * e0, w[8] = E * Wt + O * jt + le * Ht + fe * u0, w[12] = E * It + O * n0 + le * $t + fe * d0, w[1] = Se * wt + ze * Nt + ke * s0 + Fe * Kt, w[5] = Se * Vt + ze * Ft + ke * qt + Fe * e0, w[9] = Se * Wt + ze * jt + ke * Ht + Fe * u0, w[13] = Se * It + ze * n0 + ke * $t + Fe * d0, w[2] = mt * wt + Lt * Nt + bt * s0 + Ue * Kt, w[6] = mt * Vt + Lt * Ft + bt * qt + Ue * e0, w[10] = mt * Wt + Lt * jt + bt * Ht + Ue * u0, w[14] = mt * It + Lt * n0 + bt * $t + Ue * d0, w[3] = Gt * wt + xt * Nt + Xt * s0 + Zt * Kt, w[7] = Gt * Vt + xt * Ft + Xt * qt + Zt * e0, w[11] = Gt * Wt + xt * jt + Xt * Ht + Zt * u0, w[15] = Gt * It + xt * n0 + Xt * $t + Zt * d0, this;
|
|
5536
5536
|
}
|
|
5537
5537
|
/**
|
|
5538
5538
|
* Multiplies every component of the matrix by the given scalar.
|
|
@@ -8836,8 +8836,8 @@ class BufferGeometry extends EventDispatcher {
|
|
|
8836
8836
|
const fe = new Vector3(), Se = new Vector3(), ze = new Vector3(), ke = new Vector2(), Fe = new Vector2(), mt = new Vector2(), Lt = new Vector3(), bt = new Vector3();
|
|
8837
8837
|
function Ue(Wt, It, Nt) {
|
|
8838
8838
|
fe.fromBufferAttribute(r, Wt), Se.fromBufferAttribute(r, It), ze.fromBufferAttribute(r, Nt), ke.fromBufferAttribute(w, Wt), Fe.fromBufferAttribute(w, It), mt.fromBufferAttribute(w, Nt), Se.sub(fe), ze.sub(fe), Fe.sub(ke), mt.sub(ke);
|
|
8839
|
-
const
|
|
8840
|
-
isFinite(
|
|
8839
|
+
const Ft = 1 / (Fe.x * mt.y - mt.x * Fe.y);
|
|
8840
|
+
isFinite(Ft) && (Lt.copy(Se).multiplyScalar(mt.y).addScaledVector(ze, -Fe.y).multiplyScalar(Ft), bt.copy(ze).multiplyScalar(Fe.x).addScaledVector(Se, -mt.x).multiplyScalar(Ft), O[Wt].add(Lt), O[It].add(Lt), O[Nt].add(Lt), le[Wt].add(bt), le[It].add(bt), le[Nt].add(bt));
|
|
8841
8841
|
}
|
|
8842
8842
|
let Gt = this.groups;
|
|
8843
8843
|
Gt.length === 0 && (Gt = [{
|
|
@@ -8845,8 +8845,8 @@ class BufferGeometry extends EventDispatcher {
|
|
|
8845
8845
|
count: e.count
|
|
8846
8846
|
}]);
|
|
8847
8847
|
for (let Wt = 0, It = Gt.length; Wt < It; ++Wt) {
|
|
8848
|
-
const Nt = Gt[Wt],
|
|
8849
|
-
for (let n0 =
|
|
8848
|
+
const Nt = Gt[Wt], Ft = Nt.start, jt = Nt.count;
|
|
8849
|
+
for (let n0 = Ft, s0 = Ft + jt; n0 < s0; n0 += 3)
|
|
8850
8850
|
Ue(
|
|
8851
8851
|
e.getX(n0 + 0),
|
|
8852
8852
|
e.getX(n0 + 1),
|
|
@@ -8858,12 +8858,12 @@ class BufferGeometry extends EventDispatcher {
|
|
|
8858
8858
|
Zt.fromBufferAttribute(C, Wt), wt.copy(Zt);
|
|
8859
8859
|
const It = O[Wt];
|
|
8860
8860
|
xt.copy(It), xt.sub(Zt.multiplyScalar(Zt.dot(It))).normalize(), Xt.crossVectors(wt, It);
|
|
8861
|
-
const
|
|
8862
|
-
E.setXYZW(Wt, xt.x, xt.y, xt.z,
|
|
8861
|
+
const Ft = Xt.dot(le[Wt]) < 0 ? -1 : 1;
|
|
8862
|
+
E.setXYZW(Wt, xt.x, xt.y, xt.z, Ft);
|
|
8863
8863
|
}
|
|
8864
8864
|
for (let Wt = 0, It = Gt.length; Wt < It; ++Wt) {
|
|
8865
|
-
const Nt = Gt[Wt],
|
|
8866
|
-
for (let n0 =
|
|
8865
|
+
const Nt = Gt[Wt], Ft = Nt.start, jt = Nt.count;
|
|
8866
|
+
for (let n0 = Ft, s0 = Ft + jt; n0 < s0; n0 += 3)
|
|
8867
8867
|
Vt(e.getX(n0 + 0)), Vt(e.getX(n0 + 1)), Vt(e.getX(n0 + 2));
|
|
8868
8868
|
}
|
|
8869
8869
|
}
|
|
@@ -9197,11 +9197,11 @@ class BoxGeometry extends BufferGeometry {
|
|
|
9197
9197
|
let ke = 0, Fe = 0;
|
|
9198
9198
|
mt("z", "y", "x", -1, -1, r, n, e, E, w, 0), mt("z", "y", "x", 1, -1, r, n, -e, E, w, 1), mt("x", "z", "y", 1, 1, e, r, n, C, E, 2), mt("x", "z", "y", 1, -1, e, r, -n, C, E, 3), mt("x", "y", "z", 1, -1, e, n, r, C, w, 4), mt("x", "y", "z", -1, -1, e, n, -r, C, w, 5), this.setIndex(le), this.setAttribute("position", new Float32BufferAttribute(fe, 3)), this.setAttribute("normal", new Float32BufferAttribute(Se, 3)), this.setAttribute("uv", new Float32BufferAttribute(ze, 2));
|
|
9199
9199
|
function mt(Lt, bt, Ue, Gt, xt, Xt, Zt, wt, Vt, Wt, It) {
|
|
9200
|
-
const Nt = Xt / Vt,
|
|
9201
|
-
let $t = 0,
|
|
9200
|
+
const Nt = Xt / Vt, Ft = Zt / Wt, jt = Xt / 2, n0 = Zt / 2, s0 = wt / 2, qt = Vt + 1, Ht = Wt + 1;
|
|
9201
|
+
let $t = 0, Kt = 0;
|
|
9202
9202
|
const e0 = new Vector3();
|
|
9203
9203
|
for (let u0 = 0; u0 < Ht; u0++) {
|
|
9204
|
-
const d0 = u0 *
|
|
9204
|
+
const d0 = u0 * Ft - n0;
|
|
9205
9205
|
for (let _0 = 0; _0 < qt; _0++) {
|
|
9206
9206
|
const J0 = _0 * Nt - jt;
|
|
9207
9207
|
e0[Lt] = J0 * Gt, e0[bt] = d0 * xt, e0[Ue] = s0, fe.push(e0.x, e0.y, e0.z), e0[Lt] = 0, e0[bt] = 0, e0[Ue] = wt > 0 ? 1 : -1, Se.push(e0.x, e0.y, e0.z), ze.push(_0 / Vt), ze.push(1 - u0 / Wt), $t += 1;
|
|
@@ -9210,9 +9210,9 @@ class BoxGeometry extends BufferGeometry {
|
|
|
9210
9210
|
for (let u0 = 0; u0 < Wt; u0++)
|
|
9211
9211
|
for (let d0 = 0; d0 < Vt; d0++) {
|
|
9212
9212
|
const _0 = ke + d0 + qt * u0, J0 = ke + d0 + qt * (u0 + 1), H0 = ke + (d0 + 1) + qt * (u0 + 1), bi = ke + (d0 + 1) + qt * u0;
|
|
9213
|
-
le.push(_0, J0, bi), le.push(J0, H0, bi),
|
|
9213
|
+
le.push(_0, J0, bi), le.push(J0, H0, bi), Kt += 6;
|
|
9214
9214
|
}
|
|
9215
|
-
O.addGroup(Fe,
|
|
9215
|
+
O.addGroup(Fe, Kt, It), Fe += Kt, ke += $t;
|
|
9216
9216
|
}
|
|
9217
9217
|
}
|
|
9218
9218
|
copy(e) {
|
|
@@ -12572,7 +12572,7 @@ class CapsuleGeometry extends BufferGeometry {
|
|
|
12572
12572
|
let Wt = 0;
|
|
12573
12573
|
Gt === 0 ? Wt = 0.5 / C : Gt === mt && (Wt = -0.5 / C);
|
|
12574
12574
|
for (let It = 0; It <= C; It++) {
|
|
12575
|
-
const Nt = It / C,
|
|
12575
|
+
const Nt = It / C, Ft = Nt * Math.PI * 2, jt = Math.sin(Ft), n0 = Math.cos(Ft);
|
|
12576
12576
|
Ue.x = -Zt * n0, Ue.y = Xt, Ue.z = Zt * jt, O.push(Ue.x, Ue.y, Ue.z), bt.set(
|
|
12577
12577
|
-Zt * n0,
|
|
12578
12578
|
wt,
|
|
@@ -12582,8 +12582,8 @@ class CapsuleGeometry extends BufferGeometry {
|
|
|
12582
12582
|
if (Gt > 0) {
|
|
12583
12583
|
const It = (Gt - 1) * Lt;
|
|
12584
12584
|
for (let Nt = 0; Nt < C; Nt++) {
|
|
12585
|
-
const
|
|
12586
|
-
E.push(
|
|
12585
|
+
const Ft = It + Nt, jt = It + Nt + 1, n0 = Gt * Lt + Nt, s0 = Gt * Lt + Nt + 1;
|
|
12586
|
+
E.push(Ft, jt, n0), E.push(jt, s0, n0);
|
|
12587
12587
|
}
|
|
12588
12588
|
}
|
|
12589
12589
|
}
|
|
@@ -12681,17 +12681,17 @@ class CylinderGeometry extends BufferGeometry {
|
|
|
12681
12681
|
let wt = 0;
|
|
12682
12682
|
const Vt = (n - e) / r;
|
|
12683
12683
|
for (let Wt = 0; Wt <= w; Wt++) {
|
|
12684
|
-
const It = [], Nt = Wt / w,
|
|
12684
|
+
const It = [], Nt = Wt / w, Ft = Nt * (n - e) + e;
|
|
12685
12685
|
for (let jt = 0; jt <= C; jt++) {
|
|
12686
12686
|
const n0 = jt / C, s0 = n0 * le + O, qt = Math.sin(s0), Ht = Math.cos(s0);
|
|
12687
|
-
Zt.x =
|
|
12687
|
+
Zt.x = Ft * qt, Zt.y = -Nt * r + bt, Zt.z = Ft * Ht, ze.push(Zt.x, Zt.y, Zt.z), Xt.set(qt, Vt, Ht).normalize(), ke.push(Xt.x, Xt.y, Xt.z), Fe.push(n0, 1 - Nt), It.push(mt++);
|
|
12688
12688
|
}
|
|
12689
12689
|
Lt.push(It);
|
|
12690
12690
|
}
|
|
12691
12691
|
for (let Wt = 0; Wt < C; Wt++)
|
|
12692
12692
|
for (let It = 0; It < w; It++) {
|
|
12693
|
-
const Nt = Lt[It][Wt],
|
|
12694
|
-
(e > 0 || It !== 0) && (Se.push(Nt,
|
|
12693
|
+
const Nt = Lt[It][Wt], Ft = Lt[It + 1][Wt], jt = Lt[It + 1][Wt + 1], n0 = Lt[It][Wt + 1];
|
|
12694
|
+
(e > 0 || It !== 0) && (Se.push(Nt, Ft, n0), wt += 3), (n > 0 || It !== w - 1) && (Se.push(Ft, jt, n0), wt += 3);
|
|
12695
12695
|
}
|
|
12696
12696
|
fe.addGroup(Ue, wt, 0), Ue += wt;
|
|
12697
12697
|
}
|
|
@@ -12701,13 +12701,13 @@ class CylinderGeometry extends BufferGeometry {
|
|
|
12701
12701
|
const It = Xt === !0 ? e : n, Nt = Xt === !0 ? 1 : -1;
|
|
12702
12702
|
for (let jt = 1; jt <= C; jt++)
|
|
12703
12703
|
ze.push(0, bt * Nt, 0), ke.push(0, Nt, 0), Fe.push(0.5, 0.5), mt++;
|
|
12704
|
-
const
|
|
12704
|
+
const Ft = mt;
|
|
12705
12705
|
for (let jt = 0; jt <= C; jt++) {
|
|
12706
12706
|
const s0 = jt / C * le + O, qt = Math.cos(s0), Ht = Math.sin(s0);
|
|
12707
12707
|
Vt.x = It * Ht, Vt.y = bt * Nt, Vt.z = It * qt, ze.push(Vt.x, Vt.y, Vt.z), ke.push(0, Nt, 0), wt.x = qt * 0.5 + 0.5, wt.y = Ht * 0.5 * Nt + 0.5, Fe.push(wt.x, wt.y), mt++;
|
|
12708
12708
|
}
|
|
12709
12709
|
for (let jt = 0; jt < C; jt++) {
|
|
12710
|
-
const n0 = Zt + jt, s0 =
|
|
12710
|
+
const n0 = Zt + jt, s0 = Ft + jt;
|
|
12711
12711
|
Xt === !0 ? Se.push(s0, s0 + 1, n0) : Se.push(s0 + 1, s0, n0), Wt += 3;
|
|
12712
12712
|
}
|
|
12713
12713
|
fe.addGroup(Ue, Wt, Xt === !0 ? 1 : 2), Ue += Wt;
|
|
@@ -12789,9 +12789,9 @@ class PolyhedronGeometry extends BufferGeometry {
|
|
|
12789
12789
|
const wt = Zt + 1, Vt = [];
|
|
12790
12790
|
for (let Wt = 0; Wt <= wt; Wt++) {
|
|
12791
12791
|
Vt[Wt] = [];
|
|
12792
|
-
const It = Gt.clone().lerp(Xt, Wt / wt), Nt = xt.clone().lerp(Xt, Wt / wt),
|
|
12793
|
-
for (let jt = 0; jt <=
|
|
12794
|
-
jt === 0 && Wt === wt ? Vt[Wt][jt] = It : Vt[Wt][jt] = It.clone().lerp(Nt, jt /
|
|
12792
|
+
const It = Gt.clone().lerp(Xt, Wt / wt), Nt = xt.clone().lerp(Xt, Wt / wt), Ft = wt - Wt;
|
|
12793
|
+
for (let jt = 0; jt <= Ft; jt++)
|
|
12794
|
+
jt === 0 && Wt === wt ? Vt[Wt][jt] = It : Vt[Wt][jt] = It.clone().lerp(Nt, jt / Ft);
|
|
12795
12795
|
}
|
|
12796
12796
|
for (let Wt = 0; Wt < wt; Wt++)
|
|
12797
12797
|
for (let It = 0; It < 2 * (wt - Wt) - 1; It++) {
|
|
@@ -12830,8 +12830,8 @@ class PolyhedronGeometry extends BufferGeometry {
|
|
|
12830
12830
|
const Gt = new Vector3(), xt = new Vector3(), Xt = new Vector3(), Zt = new Vector3(), wt = new Vector2(), Vt = new Vector2(), Wt = new Vector2();
|
|
12831
12831
|
for (let It = 0, Nt = 0; It < w.length; It += 9, Nt += 6) {
|
|
12832
12832
|
Gt.set(w[It + 0], w[It + 1], w[It + 2]), xt.set(w[It + 3], w[It + 4], w[It + 5]), Xt.set(w[It + 6], w[It + 7], w[It + 8]), wt.set(E[Nt + 0], E[Nt + 1]), Vt.set(E[Nt + 2], E[Nt + 3]), Wt.set(E[Nt + 4], E[Nt + 5]), Zt.copy(Gt).add(xt).add(Xt).divideScalar(3);
|
|
12833
|
-
const
|
|
12834
|
-
Lt(wt, Nt + 0, Gt,
|
|
12833
|
+
const Ft = bt(Zt);
|
|
12834
|
+
Lt(wt, Nt + 0, Gt, Ft), Lt(Vt, Nt + 2, xt, Ft), Lt(Wt, Nt + 4, Xt, Ft);
|
|
12835
12835
|
}
|
|
12836
12836
|
}
|
|
12837
12837
|
function Lt(Gt, xt, Xt, Zt) {
|
|
@@ -14538,16 +14538,16 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14538
14538
|
Ue && (xt = Ue.getSpacedPoints(Se), Xt = !0, ke = !1, Zt = Ue.computeFrenetFrames(Se, !1), wt = new Vector3(), Vt = new Vector3(), Wt = new Vector3()), ke || (bt = 0, Fe = 0, mt = 0, Lt = 0);
|
|
14539
14539
|
const It = O.extractPoints(fe);
|
|
14540
14540
|
let Nt = It.shape;
|
|
14541
|
-
const
|
|
14541
|
+
const Ft = It.holes;
|
|
14542
14542
|
if (!ShapeUtils.isClockWise(Nt)) {
|
|
14543
14543
|
Nt = Nt.reverse();
|
|
14544
|
-
for (let P0 = 0,
|
|
14545
|
-
const
|
|
14546
|
-
ShapeUtils.isClockWise(
|
|
14544
|
+
for (let P0 = 0, F0 = Ft.length; P0 < F0; P0++) {
|
|
14545
|
+
const K0 = Ft[P0];
|
|
14546
|
+
ShapeUtils.isClockWise(K0) && (Ft[P0] = K0.reverse());
|
|
14547
14547
|
}
|
|
14548
14548
|
}
|
|
14549
14549
|
function n0(P0) {
|
|
14550
|
-
const
|
|
14550
|
+
const K0 = 10000000000000001e-36;
|
|
14551
14551
|
let I0 = P0[0];
|
|
14552
14552
|
for (let Q0 = 1; Q0 <= P0.length; Q0++) {
|
|
14553
14553
|
const S0 = Q0 % P0.length, L0 = P0[S0], A0 = L0.x - I0.x, B0 = L0.y - I0.y, r0 = A0 * A0 + B0 * B0, t0 = Math.max(
|
|
@@ -14555,7 +14555,7 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14555
14555
|
Math.abs(L0.y),
|
|
14556
14556
|
Math.abs(I0.x),
|
|
14557
14557
|
Math.abs(I0.y)
|
|
14558
|
-
), m0 =
|
|
14558
|
+
), m0 = K0 * t0 * t0;
|
|
14559
14559
|
if (r0 <= m0) {
|
|
14560
14560
|
P0.splice(S0, 1), Q0--;
|
|
14561
14561
|
continue;
|
|
@@ -14563,21 +14563,21 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14563
14563
|
I0 = L0;
|
|
14564
14564
|
}
|
|
14565
14565
|
}
|
|
14566
|
-
n0(Nt),
|
|
14567
|
-
const s0 =
|
|
14566
|
+
n0(Nt), Ft.forEach(n0);
|
|
14567
|
+
const s0 = Ft.length, qt = Nt;
|
|
14568
14568
|
for (let P0 = 0; P0 < s0; P0++) {
|
|
14569
|
-
const
|
|
14570
|
-
Nt = Nt.concat(
|
|
14569
|
+
const F0 = Ft[P0];
|
|
14570
|
+
Nt = Nt.concat(F0);
|
|
14571
14571
|
}
|
|
14572
|
-
function Ht(P0,
|
|
14573
|
-
return
|
|
14572
|
+
function Ht(P0, F0, K0) {
|
|
14573
|
+
return F0 || console.error("THREE.ExtrudeGeometry: vec does not exist"), P0.clone().addScaledVector(F0, K0);
|
|
14574
14574
|
}
|
|
14575
14575
|
const $t = Nt.length;
|
|
14576
|
-
function
|
|
14576
|
+
function Kt(P0, F0, K0) {
|
|
14577
14577
|
let I0, Q0, S0;
|
|
14578
|
-
const L0 = P0.x -
|
|
14578
|
+
const L0 = P0.x - F0.x, A0 = P0.y - F0.y, B0 = K0.x - P0.x, r0 = K0.y - P0.y, t0 = L0 * L0 + A0 * A0, m0 = L0 * r0 - A0 * B0;
|
|
14579
14579
|
if (Math.abs(m0) > Number.EPSILON) {
|
|
14580
|
-
const v0 = Math.sqrt(t0), k0 = Math.sqrt(B0 * B0 + r0 * r0), C0 =
|
|
14580
|
+
const v0 = Math.sqrt(t0), k0 = Math.sqrt(B0 * B0 + r0 * r0), C0 = F0.x - A0 / v0, Ci = F0.y + L0 / v0, yi = K0.x - r0 / k0, wi = K0.y + B0 / k0, Ei = ((yi - C0) * r0 - (wi - Ci) * B0) / (L0 * r0 - A0 * B0);
|
|
14581
14581
|
I0 = C0 + L0 * Ei - P0.x, Q0 = Ci + A0 * Ei - P0.y;
|
|
14582
14582
|
const gi = I0 * I0 + Q0 * Q0;
|
|
14583
14583
|
if (gi <= 2)
|
|
@@ -14590,63 +14590,63 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14590
14590
|
return new Vector2(I0 / S0, Q0 / S0);
|
|
14591
14591
|
}
|
|
14592
14592
|
const e0 = [];
|
|
14593
|
-
for (let P0 = 0,
|
|
14594
|
-
|
|
14593
|
+
for (let P0 = 0, F0 = qt.length, K0 = F0 - 1, I0 = P0 + 1; P0 < F0; P0++, K0++, I0++)
|
|
14594
|
+
K0 === F0 && (K0 = 0), I0 === F0 && (I0 = 0), e0[P0] = Kt(qt[P0], qt[K0], qt[I0]);
|
|
14595
14595
|
const u0 = [];
|
|
14596
14596
|
let d0, _0 = e0.concat();
|
|
14597
|
-
for (let P0 = 0,
|
|
14598
|
-
const
|
|
14597
|
+
for (let P0 = 0, F0 = s0; P0 < F0; P0++) {
|
|
14598
|
+
const K0 = Ft[P0];
|
|
14599
14599
|
d0 = [];
|
|
14600
|
-
for (let I0 = 0, Q0 =
|
|
14601
|
-
S0 === Q0 && (S0 = 0), L0 === Q0 && (L0 = 0), d0[I0] =
|
|
14600
|
+
for (let I0 = 0, Q0 = K0.length, S0 = Q0 - 1, L0 = I0 + 1; I0 < Q0; I0++, S0++, L0++)
|
|
14601
|
+
S0 === Q0 && (S0 = 0), L0 === Q0 && (L0 = 0), d0[I0] = Kt(K0[I0], K0[S0], K0[L0]);
|
|
14602
14602
|
u0.push(d0), _0 = _0.concat(d0);
|
|
14603
14603
|
}
|
|
14604
14604
|
let J0;
|
|
14605
14605
|
if (bt === 0)
|
|
14606
|
-
J0 = ShapeUtils.triangulateShape(qt,
|
|
14606
|
+
J0 = ShapeUtils.triangulateShape(qt, Ft);
|
|
14607
14607
|
else {
|
|
14608
|
-
const P0 = [],
|
|
14609
|
-
for (let
|
|
14610
|
-
const I0 =
|
|
14608
|
+
const P0 = [], F0 = [];
|
|
14609
|
+
for (let K0 = 0; K0 < bt; K0++) {
|
|
14610
|
+
const I0 = K0 / bt, Q0 = Fe * Math.cos(I0 * Math.PI / 2), S0 = mt * Math.sin(I0 * Math.PI / 2) + Lt;
|
|
14611
14611
|
for (let L0 = 0, A0 = qt.length; L0 < A0; L0++) {
|
|
14612
14612
|
const B0 = Ht(qt[L0], e0[L0], S0);
|
|
14613
14613
|
Si(B0.x, B0.y, -Q0), I0 === 0 && P0.push(B0);
|
|
14614
14614
|
}
|
|
14615
14615
|
for (let L0 = 0, A0 = s0; L0 < A0; L0++) {
|
|
14616
|
-
const B0 =
|
|
14616
|
+
const B0 = Ft[L0];
|
|
14617
14617
|
d0 = u0[L0];
|
|
14618
14618
|
const r0 = [];
|
|
14619
14619
|
for (let t0 = 0, m0 = B0.length; t0 < m0; t0++) {
|
|
14620
14620
|
const v0 = Ht(B0[t0], d0[t0], S0);
|
|
14621
14621
|
Si(v0.x, v0.y, -Q0), I0 === 0 && r0.push(v0);
|
|
14622
14622
|
}
|
|
14623
|
-
I0 === 0 &&
|
|
14623
|
+
I0 === 0 && F0.push(r0);
|
|
14624
14624
|
}
|
|
14625
14625
|
}
|
|
14626
|
-
J0 = ShapeUtils.triangulateShape(P0,
|
|
14626
|
+
J0 = ShapeUtils.triangulateShape(P0, F0);
|
|
14627
14627
|
}
|
|
14628
14628
|
const H0 = J0.length, bi = mt + Lt;
|
|
14629
14629
|
for (let P0 = 0; P0 < $t; P0++) {
|
|
14630
|
-
const
|
|
14631
|
-
Xt ? (Vt.copy(Zt.normals[0]).multiplyScalar(
|
|
14630
|
+
const F0 = ke ? Ht(Nt[P0], _0[P0], bi) : Nt[P0];
|
|
14631
|
+
Xt ? (Vt.copy(Zt.normals[0]).multiplyScalar(F0.x), wt.copy(Zt.binormals[0]).multiplyScalar(F0.y), Wt.copy(xt[0]).add(Vt).add(wt), Si(Wt.x, Wt.y, Wt.z)) : Si(F0.x, F0.y, 0);
|
|
14632
14632
|
}
|
|
14633
14633
|
for (let P0 = 1; P0 <= Se; P0++)
|
|
14634
|
-
for (let
|
|
14635
|
-
const
|
|
14636
|
-
Xt ? (Vt.copy(Zt.normals[P0]).multiplyScalar(
|
|
14634
|
+
for (let F0 = 0; F0 < $t; F0++) {
|
|
14635
|
+
const K0 = ke ? Ht(Nt[F0], _0[F0], bi) : Nt[F0];
|
|
14636
|
+
Xt ? (Vt.copy(Zt.normals[P0]).multiplyScalar(K0.x), wt.copy(Zt.binormals[P0]).multiplyScalar(K0.y), Wt.copy(xt[P0]).add(Vt).add(wt), Si(Wt.x, Wt.y, Wt.z)) : Si(K0.x, K0.y, ze / Se * P0);
|
|
14637
14637
|
}
|
|
14638
14638
|
for (let P0 = bt - 1; P0 >= 0; P0--) {
|
|
14639
|
-
const
|
|
14639
|
+
const F0 = P0 / bt, K0 = Fe * Math.cos(F0 * Math.PI / 2), I0 = mt * Math.sin(F0 * Math.PI / 2) + Lt;
|
|
14640
14640
|
for (let Q0 = 0, S0 = qt.length; Q0 < S0; Q0++) {
|
|
14641
14641
|
const L0 = Ht(qt[Q0], e0[Q0], I0);
|
|
14642
|
-
Si(L0.x, L0.y, ze +
|
|
14642
|
+
Si(L0.x, L0.y, ze + K0);
|
|
14643
14643
|
}
|
|
14644
|
-
for (let Q0 = 0, S0 =
|
|
14645
|
-
const L0 =
|
|
14644
|
+
for (let Q0 = 0, S0 = Ft.length; Q0 < S0; Q0++) {
|
|
14645
|
+
const L0 = Ft[Q0];
|
|
14646
14646
|
d0 = u0[Q0];
|
|
14647
14647
|
for (let A0 = 0, B0 = L0.length; A0 < B0; A0++) {
|
|
14648
14648
|
const r0 = Ht(L0[A0], d0[A0], I0);
|
|
14649
|
-
Xt ? Si(r0.x, r0.y + xt[Se - 1].y, xt[Se - 1].x +
|
|
14649
|
+
Xt ? Si(r0.x, r0.y + xt[Se - 1].y, xt[Se - 1].x + K0) : Si(r0.x, r0.y, ze + K0);
|
|
14650
14650
|
}
|
|
14651
14651
|
}
|
|
14652
14652
|
}
|
|
@@ -14654,60 +14654,60 @@ class ExtrudeGeometry extends BufferGeometry {
|
|
|
14654
14654
|
function b0() {
|
|
14655
14655
|
const P0 = C.length / 3;
|
|
14656
14656
|
if (ke) {
|
|
14657
|
-
let
|
|
14657
|
+
let F0 = 0, K0 = $t * F0;
|
|
14658
14658
|
for (let I0 = 0; I0 < H0; I0++) {
|
|
14659
14659
|
const Q0 = J0[I0];
|
|
14660
|
-
q0(Q0[2] +
|
|
14660
|
+
q0(Q0[2] + K0, Q0[1] + K0, Q0[0] + K0);
|
|
14661
14661
|
}
|
|
14662
|
-
|
|
14662
|
+
F0 = Se + bt * 2, K0 = $t * F0;
|
|
14663
14663
|
for (let I0 = 0; I0 < H0; I0++) {
|
|
14664
14664
|
const Q0 = J0[I0];
|
|
14665
|
-
q0(Q0[0] +
|
|
14665
|
+
q0(Q0[0] + K0, Q0[1] + K0, Q0[2] + K0);
|
|
14666
14666
|
}
|
|
14667
14667
|
} else {
|
|
14668
|
-
for (let
|
|
14669
|
-
const
|
|
14670
|
-
q0(
|
|
14668
|
+
for (let F0 = 0; F0 < H0; F0++) {
|
|
14669
|
+
const K0 = J0[F0];
|
|
14670
|
+
q0(K0[2], K0[1], K0[0]);
|
|
14671
14671
|
}
|
|
14672
|
-
for (let
|
|
14673
|
-
const
|
|
14674
|
-
q0(
|
|
14672
|
+
for (let F0 = 0; F0 < H0; F0++) {
|
|
14673
|
+
const K0 = J0[F0];
|
|
14674
|
+
q0(K0[0] + $t * Se, K0[1] + $t * Se, K0[2] + $t * Se);
|
|
14675
14675
|
}
|
|
14676
14676
|
}
|
|
14677
14677
|
r.addGroup(P0, C.length / 3 - P0, 0);
|
|
14678
14678
|
}
|
|
14679
14679
|
function V0() {
|
|
14680
14680
|
const P0 = C.length / 3;
|
|
14681
|
-
let
|
|
14682
|
-
D0(qt,
|
|
14683
|
-
for (let
|
|
14684
|
-
const Q0 =
|
|
14685
|
-
D0(Q0,
|
|
14681
|
+
let F0 = 0;
|
|
14682
|
+
D0(qt, F0), F0 += qt.length;
|
|
14683
|
+
for (let K0 = 0, I0 = Ft.length; K0 < I0; K0++) {
|
|
14684
|
+
const Q0 = Ft[K0];
|
|
14685
|
+
D0(Q0, F0), F0 += Q0.length;
|
|
14686
14686
|
}
|
|
14687
14687
|
r.addGroup(P0, C.length / 3 - P0, 1);
|
|
14688
14688
|
}
|
|
14689
|
-
function D0(P0,
|
|
14690
|
-
let
|
|
14691
|
-
for (; --
|
|
14692
|
-
const I0 =
|
|
14693
|
-
let Q0 =
|
|
14689
|
+
function D0(P0, F0) {
|
|
14690
|
+
let K0 = P0.length;
|
|
14691
|
+
for (; --K0 >= 0; ) {
|
|
14692
|
+
const I0 = K0;
|
|
14693
|
+
let Q0 = K0 - 1;
|
|
14694
14694
|
Q0 < 0 && (Q0 = P0.length - 1);
|
|
14695
14695
|
for (let S0 = 0, L0 = Se + bt * 2; S0 < L0; S0++) {
|
|
14696
|
-
const A0 = $t * S0, B0 = $t * (S0 + 1), r0 =
|
|
14696
|
+
const A0 = $t * S0, B0 = $t * (S0 + 1), r0 = F0 + I0 + A0, t0 = F0 + Q0 + A0, m0 = F0 + Q0 + B0, v0 = F0 + I0 + B0;
|
|
14697
14697
|
Wi(r0, t0, m0, v0);
|
|
14698
14698
|
}
|
|
14699
14699
|
}
|
|
14700
14700
|
}
|
|
14701
|
-
function Si(P0,
|
|
14702
|
-
le.push(P0), le.push(
|
|
14701
|
+
function Si(P0, F0, K0) {
|
|
14702
|
+
le.push(P0), le.push(F0), le.push(K0);
|
|
14703
14703
|
}
|
|
14704
|
-
function q0(P0,
|
|
14705
|
-
Ai(P0), Ai(
|
|
14704
|
+
function q0(P0, F0, K0) {
|
|
14705
|
+
Ai(P0), Ai(F0), Ai(K0);
|
|
14706
14706
|
const I0 = C.length / 3, Q0 = Gt.generateTopUV(r, C, I0 - 3, I0 - 2, I0 - 1);
|
|
14707
14707
|
a0(Q0[0]), a0(Q0[1]), a0(Q0[2]);
|
|
14708
14708
|
}
|
|
14709
|
-
function Wi(P0,
|
|
14710
|
-
Ai(P0), Ai(
|
|
14709
|
+
function Wi(P0, F0, K0, I0) {
|
|
14710
|
+
Ai(P0), Ai(F0), Ai(I0), Ai(F0), Ai(K0), Ai(I0);
|
|
14711
14711
|
const Q0 = C.length / 3, S0 = Gt.generateSideWallUV(r, C, Q0 - 6, Q0 - 3, Q0 - 2, Q0 - 1);
|
|
14712
14712
|
a0(S0[0]), a0(S0[1]), a0(S0[3]), a0(S0[1]), a0(S0[2]), a0(S0[3]);
|
|
14713
14713
|
}
|
|
@@ -15394,8 +15394,8 @@ class TorusKnotGeometry extends BufferGeometry {
|
|
|
15394
15394
|
}
|
|
15395
15395
|
this.setIndex(O), this.setAttribute("position", new Float32BufferAttribute(le, 3)), this.setAttribute("normal", new Float32BufferAttribute(fe, 3)), this.setAttribute("uv", new Float32BufferAttribute(Se, 2));
|
|
15396
15396
|
function Gt(xt, Xt, Zt, wt, Vt) {
|
|
15397
|
-
const Wt = Math.cos(xt), It = Math.sin(xt), Nt = Zt / Xt * xt,
|
|
15398
|
-
Vt.x = wt * (2 +
|
|
15397
|
+
const Wt = Math.cos(xt), It = Math.sin(xt), Nt = Zt / Xt * xt, Ft = Math.cos(Nt);
|
|
15398
|
+
Vt.x = wt * (2 + Ft) * 0.5 * Wt, Vt.y = wt * (2 + Ft) * It * 0.5, Vt.z = wt * Math.sin(Nt) * 0.5;
|
|
15399
15399
|
}
|
|
15400
15400
|
}
|
|
15401
15401
|
copy(e) {
|
|
@@ -22548,9 +22548,9 @@ class ShapePath {
|
|
|
22548
22548
|
if (Ue.y === Vt.y) {
|
|
22549
22549
|
if (Ue.x === Vt.x) return !0;
|
|
22550
22550
|
} else {
|
|
22551
|
-
const
|
|
22552
|
-
if (
|
|
22553
|
-
if (
|
|
22551
|
+
const Ft = Nt * (Ue.x - Vt.x) - It * (Ue.y - Vt.y);
|
|
22552
|
+
if (Ft === 0) return !0;
|
|
22553
|
+
if (Ft < 0) continue;
|
|
22554
22554
|
Xt = !Xt;
|
|
22555
22555
|
}
|
|
22556
22556
|
} else {
|
|
@@ -27129,10 +27129,10 @@ function WebGLBackground(v, e, n, r, C, w, E) {
|
|
|
27129
27129
|
function WebGLBindingStates(v, e) {
|
|
27130
27130
|
const n = v.getParameter(v.MAX_VERTEX_ATTRIBS), r = {}, C = ke(null);
|
|
27131
27131
|
let w = C, E = !1;
|
|
27132
|
-
function O(Nt,
|
|
27132
|
+
function O(Nt, Ft, jt, n0, s0) {
|
|
27133
27133
|
let qt = !1;
|
|
27134
|
-
const Ht = ze(n0, jt,
|
|
27135
|
-
w !== Ht && (w = Ht, fe(w.object)), qt = Fe(Nt, n0, jt, s0), qt && mt(Nt, n0, jt, s0), s0 !== null && e.update(s0, v.ELEMENT_ARRAY_BUFFER), (qt || E) && (E = !1, Xt(Nt,
|
|
27134
|
+
const Ht = ze(n0, jt, Ft);
|
|
27135
|
+
w !== Ht && (w = Ht, fe(w.object)), qt = Fe(Nt, n0, jt, s0), qt && mt(Nt, n0, jt, s0), s0 !== null && e.update(s0, v.ELEMENT_ARRAY_BUFFER), (qt || E) && (E = !1, Xt(Nt, Ft, jt, n0), s0 !== null && v.bindBuffer(v.ELEMENT_ARRAY_BUFFER, e.get(s0).buffer));
|
|
27136
27136
|
}
|
|
27137
27137
|
function le() {
|
|
27138
27138
|
return v.createVertexArray();
|
|
@@ -27143,25 +27143,25 @@ function WebGLBindingStates(v, e) {
|
|
|
27143
27143
|
function Se(Nt) {
|
|
27144
27144
|
return v.deleteVertexArray(Nt);
|
|
27145
27145
|
}
|
|
27146
|
-
function ze(Nt,
|
|
27146
|
+
function ze(Nt, Ft, jt) {
|
|
27147
27147
|
const n0 = jt.wireframe === !0;
|
|
27148
27148
|
let s0 = r[Nt.id];
|
|
27149
27149
|
s0 === void 0 && (s0 = {}, r[Nt.id] = s0);
|
|
27150
|
-
let qt = s0[
|
|
27151
|
-
qt === void 0 && (qt = {}, s0[
|
|
27150
|
+
let qt = s0[Ft.id];
|
|
27151
|
+
qt === void 0 && (qt = {}, s0[Ft.id] = qt);
|
|
27152
27152
|
let Ht = qt[n0];
|
|
27153
27153
|
return Ht === void 0 && (Ht = ke(le()), qt[n0] = Ht), Ht;
|
|
27154
27154
|
}
|
|
27155
27155
|
function ke(Nt) {
|
|
27156
|
-
const
|
|
27156
|
+
const Ft = [], jt = [], n0 = [];
|
|
27157
27157
|
for (let s0 = 0; s0 < n; s0++)
|
|
27158
|
-
|
|
27158
|
+
Ft[s0] = 0, jt[s0] = 0, n0[s0] = 0;
|
|
27159
27159
|
return {
|
|
27160
27160
|
// for backward compatibility on non-VAO support browser
|
|
27161
27161
|
geometry: null,
|
|
27162
27162
|
program: null,
|
|
27163
27163
|
wireframe: !1,
|
|
27164
|
-
newAttributes:
|
|
27164
|
+
newAttributes: Ft,
|
|
27165
27165
|
enabledAttributes: jt,
|
|
27166
27166
|
attributeDivisors: n0,
|
|
27167
27167
|
object: Nt,
|
|
@@ -27169,58 +27169,58 @@ function WebGLBindingStates(v, e) {
|
|
|
27169
27169
|
index: null
|
|
27170
27170
|
};
|
|
27171
27171
|
}
|
|
27172
|
-
function Fe(Nt,
|
|
27173
|
-
const s0 = w.attributes, qt =
|
|
27172
|
+
function Fe(Nt, Ft, jt, n0) {
|
|
27173
|
+
const s0 = w.attributes, qt = Ft.attributes;
|
|
27174
27174
|
let Ht = 0;
|
|
27175
27175
|
const $t = jt.getAttributes();
|
|
27176
|
-
for (const
|
|
27177
|
-
if ($t[
|
|
27178
|
-
const u0 = s0[
|
|
27179
|
-
let d0 = qt[
|
|
27180
|
-
if (d0 === void 0 && (
|
|
27176
|
+
for (const Kt in $t)
|
|
27177
|
+
if ($t[Kt].location >= 0) {
|
|
27178
|
+
const u0 = s0[Kt];
|
|
27179
|
+
let d0 = qt[Kt];
|
|
27180
|
+
if (d0 === void 0 && (Kt === "instanceMatrix" && Nt.instanceMatrix && (d0 = Nt.instanceMatrix), Kt === "instanceColor" && Nt.instanceColor && (d0 = Nt.instanceColor)), u0 === void 0 || u0.attribute !== d0 || d0 && u0.data !== d0.data) return !0;
|
|
27181
27181
|
Ht++;
|
|
27182
27182
|
}
|
|
27183
27183
|
return w.attributesNum !== Ht || w.index !== n0;
|
|
27184
27184
|
}
|
|
27185
|
-
function mt(Nt,
|
|
27186
|
-
const s0 = {}, qt =
|
|
27185
|
+
function mt(Nt, Ft, jt, n0) {
|
|
27186
|
+
const s0 = {}, qt = Ft.attributes;
|
|
27187
27187
|
let Ht = 0;
|
|
27188
27188
|
const $t = jt.getAttributes();
|
|
27189
|
-
for (const
|
|
27190
|
-
if ($t[
|
|
27191
|
-
let u0 = qt[
|
|
27192
|
-
u0 === void 0 && (
|
|
27189
|
+
for (const Kt in $t)
|
|
27190
|
+
if ($t[Kt].location >= 0) {
|
|
27191
|
+
let u0 = qt[Kt];
|
|
27192
|
+
u0 === void 0 && (Kt === "instanceMatrix" && Nt.instanceMatrix && (u0 = Nt.instanceMatrix), Kt === "instanceColor" && Nt.instanceColor && (u0 = Nt.instanceColor));
|
|
27193
27193
|
const d0 = {};
|
|
27194
|
-
d0.attribute = u0, u0 && u0.data && (d0.data = u0.data), s0[
|
|
27194
|
+
d0.attribute = u0, u0 && u0.data && (d0.data = u0.data), s0[Kt] = d0, Ht++;
|
|
27195
27195
|
}
|
|
27196
27196
|
w.attributes = s0, w.attributesNum = Ht, w.index = n0;
|
|
27197
27197
|
}
|
|
27198
27198
|
function Lt() {
|
|
27199
27199
|
const Nt = w.newAttributes;
|
|
27200
|
-
for (let
|
|
27201
|
-
Nt[
|
|
27200
|
+
for (let Ft = 0, jt = Nt.length; Ft < jt; Ft++)
|
|
27201
|
+
Nt[Ft] = 0;
|
|
27202
27202
|
}
|
|
27203
27203
|
function bt(Nt) {
|
|
27204
27204
|
Ue(Nt, 0);
|
|
27205
27205
|
}
|
|
27206
|
-
function Ue(Nt,
|
|
27206
|
+
function Ue(Nt, Ft) {
|
|
27207
27207
|
const jt = w.newAttributes, n0 = w.enabledAttributes, s0 = w.attributeDivisors;
|
|
27208
|
-
jt[Nt] = 1, n0[Nt] === 0 && (v.enableVertexAttribArray(Nt), n0[Nt] = 1), s0[Nt] !==
|
|
27208
|
+
jt[Nt] = 1, n0[Nt] === 0 && (v.enableVertexAttribArray(Nt), n0[Nt] = 1), s0[Nt] !== Ft && (v.vertexAttribDivisor(Nt, Ft), s0[Nt] = Ft);
|
|
27209
27209
|
}
|
|
27210
27210
|
function Gt() {
|
|
27211
|
-
const Nt = w.newAttributes,
|
|
27212
|
-
for (let jt = 0, n0 =
|
|
27213
|
-
|
|
27211
|
+
const Nt = w.newAttributes, Ft = w.enabledAttributes;
|
|
27212
|
+
for (let jt = 0, n0 = Ft.length; jt < n0; jt++)
|
|
27213
|
+
Ft[jt] !== Nt[jt] && (v.disableVertexAttribArray(jt), Ft[jt] = 0);
|
|
27214
27214
|
}
|
|
27215
|
-
function xt(Nt,
|
|
27216
|
-
Ht === !0 ? v.vertexAttribIPointer(Nt,
|
|
27215
|
+
function xt(Nt, Ft, jt, n0, s0, qt, Ht) {
|
|
27216
|
+
Ht === !0 ? v.vertexAttribIPointer(Nt, Ft, jt, s0, qt) : v.vertexAttribPointer(Nt, Ft, jt, n0, s0, qt);
|
|
27217
27217
|
}
|
|
27218
|
-
function Xt(Nt,
|
|
27218
|
+
function Xt(Nt, Ft, jt, n0) {
|
|
27219
27219
|
Lt();
|
|
27220
|
-
const s0 = n0.attributes, qt = jt.getAttributes(), Ht =
|
|
27220
|
+
const s0 = n0.attributes, qt = jt.getAttributes(), Ht = Ft.defaultAttributeValues;
|
|
27221
27221
|
for (const $t in qt) {
|
|
27222
|
-
const
|
|
27223
|
-
if (
|
|
27222
|
+
const Kt = qt[$t];
|
|
27223
|
+
if (Kt.location >= 0) {
|
|
27224
27224
|
let e0 = s0[$t];
|
|
27225
27225
|
if (e0 === void 0 && ($t === "instanceMatrix" && Nt.instanceMatrix && (e0 = Nt.instanceMatrix), $t === "instanceColor" && Nt.instanceColor && (e0 = Nt.instanceColor)), e0 !== void 0) {
|
|
27226
27226
|
const u0 = e0.normalized, d0 = e0.itemSize, _0 = e.get(e0);
|
|
@@ -27229,40 +27229,40 @@ function WebGLBindingStates(v, e) {
|
|
|
27229
27229
|
if (e0.isInterleavedBufferAttribute) {
|
|
27230
27230
|
const V0 = e0.data, D0 = V0.stride, Si = e0.offset;
|
|
27231
27231
|
if (V0.isInstancedInterleavedBuffer) {
|
|
27232
|
-
for (let q0 = 0; q0 <
|
|
27233
|
-
Ue(
|
|
27232
|
+
for (let q0 = 0; q0 < Kt.locationSize; q0++)
|
|
27233
|
+
Ue(Kt.location + q0, V0.meshPerAttribute);
|
|
27234
27234
|
Nt.isInstancedMesh !== !0 && n0._maxInstanceCount === void 0 && (n0._maxInstanceCount = V0.meshPerAttribute * V0.count);
|
|
27235
27235
|
} else
|
|
27236
|
-
for (let q0 = 0; q0 <
|
|
27237
|
-
bt(
|
|
27236
|
+
for (let q0 = 0; q0 < Kt.locationSize; q0++)
|
|
27237
|
+
bt(Kt.location + q0);
|
|
27238
27238
|
v.bindBuffer(v.ARRAY_BUFFER, J0);
|
|
27239
|
-
for (let q0 = 0; q0 <
|
|
27239
|
+
for (let q0 = 0; q0 < Kt.locationSize; q0++)
|
|
27240
27240
|
xt(
|
|
27241
|
-
|
|
27242
|
-
d0 /
|
|
27241
|
+
Kt.location + q0,
|
|
27242
|
+
d0 / Kt.locationSize,
|
|
27243
27243
|
H0,
|
|
27244
27244
|
u0,
|
|
27245
27245
|
D0 * bi,
|
|
27246
|
-
(Si + d0 /
|
|
27246
|
+
(Si + d0 / Kt.locationSize * q0) * bi,
|
|
27247
27247
|
b0
|
|
27248
27248
|
);
|
|
27249
27249
|
} else {
|
|
27250
27250
|
if (e0.isInstancedBufferAttribute) {
|
|
27251
|
-
for (let V0 = 0; V0 <
|
|
27252
|
-
Ue(
|
|
27251
|
+
for (let V0 = 0; V0 < Kt.locationSize; V0++)
|
|
27252
|
+
Ue(Kt.location + V0, e0.meshPerAttribute);
|
|
27253
27253
|
Nt.isInstancedMesh !== !0 && n0._maxInstanceCount === void 0 && (n0._maxInstanceCount = e0.meshPerAttribute * e0.count);
|
|
27254
27254
|
} else
|
|
27255
|
-
for (let V0 = 0; V0 <
|
|
27256
|
-
bt(
|
|
27255
|
+
for (let V0 = 0; V0 < Kt.locationSize; V0++)
|
|
27256
|
+
bt(Kt.location + V0);
|
|
27257
27257
|
v.bindBuffer(v.ARRAY_BUFFER, J0);
|
|
27258
|
-
for (let V0 = 0; V0 <
|
|
27258
|
+
for (let V0 = 0; V0 < Kt.locationSize; V0++)
|
|
27259
27259
|
xt(
|
|
27260
|
-
|
|
27261
|
-
d0 /
|
|
27260
|
+
Kt.location + V0,
|
|
27261
|
+
d0 / Kt.locationSize,
|
|
27262
27262
|
H0,
|
|
27263
27263
|
u0,
|
|
27264
27264
|
d0 * bi,
|
|
27265
|
-
d0 /
|
|
27265
|
+
d0 / Kt.locationSize * V0 * bi,
|
|
27266
27266
|
b0
|
|
27267
27267
|
);
|
|
27268
27268
|
}
|
|
@@ -27271,16 +27271,16 @@ function WebGLBindingStates(v, e) {
|
|
|
27271
27271
|
if (u0 !== void 0)
|
|
27272
27272
|
switch (u0.length) {
|
|
27273
27273
|
case 2:
|
|
27274
|
-
v.vertexAttrib2fv(
|
|
27274
|
+
v.vertexAttrib2fv(Kt.location, u0);
|
|
27275
27275
|
break;
|
|
27276
27276
|
case 3:
|
|
27277
|
-
v.vertexAttrib3fv(
|
|
27277
|
+
v.vertexAttrib3fv(Kt.location, u0);
|
|
27278
27278
|
break;
|
|
27279
27279
|
case 4:
|
|
27280
|
-
v.vertexAttrib4fv(
|
|
27280
|
+
v.vertexAttrib4fv(Kt.location, u0);
|
|
27281
27281
|
break;
|
|
27282
27282
|
default:
|
|
27283
|
-
v.vertexAttrib1fv(
|
|
27283
|
+
v.vertexAttrib1fv(Kt.location, u0);
|
|
27284
27284
|
}
|
|
27285
27285
|
}
|
|
27286
27286
|
}
|
|
@@ -27290,30 +27290,30 @@ function WebGLBindingStates(v, e) {
|
|
|
27290
27290
|
function Zt() {
|
|
27291
27291
|
Wt();
|
|
27292
27292
|
for (const Nt in r) {
|
|
27293
|
-
const
|
|
27294
|
-
for (const jt in
|
|
27295
|
-
const n0 =
|
|
27293
|
+
const Ft = r[Nt];
|
|
27294
|
+
for (const jt in Ft) {
|
|
27295
|
+
const n0 = Ft[jt];
|
|
27296
27296
|
for (const s0 in n0)
|
|
27297
27297
|
Se(n0[s0].object), delete n0[s0];
|
|
27298
|
-
delete
|
|
27298
|
+
delete Ft[jt];
|
|
27299
27299
|
}
|
|
27300
27300
|
delete r[Nt];
|
|
27301
27301
|
}
|
|
27302
27302
|
}
|
|
27303
27303
|
function wt(Nt) {
|
|
27304
27304
|
if (r[Nt.id] === void 0) return;
|
|
27305
|
-
const
|
|
27306
|
-
for (const jt in
|
|
27307
|
-
const n0 =
|
|
27305
|
+
const Ft = r[Nt.id];
|
|
27306
|
+
for (const jt in Ft) {
|
|
27307
|
+
const n0 = Ft[jt];
|
|
27308
27308
|
for (const s0 in n0)
|
|
27309
27309
|
Se(n0[s0].object), delete n0[s0];
|
|
27310
|
-
delete
|
|
27310
|
+
delete Ft[jt];
|
|
27311
27311
|
}
|
|
27312
27312
|
delete r[Nt.id];
|
|
27313
27313
|
}
|
|
27314
27314
|
function Vt(Nt) {
|
|
27315
|
-
for (const
|
|
27316
|
-
const jt = r[
|
|
27315
|
+
for (const Ft in r) {
|
|
27316
|
+
const jt = r[Ft];
|
|
27317
27317
|
if (jt[Nt.id] === void 0) continue;
|
|
27318
27318
|
const n0 = jt[Nt.id];
|
|
27319
27319
|
for (const s0 in n0)
|
|
@@ -28239,10 +28239,10 @@ function WebGLMorphtargets(v, e, n) {
|
|
|
28239
28239
|
Vt.type = FloatType, Vt.needsUpdate = !0;
|
|
28240
28240
|
const Wt = xt * 4;
|
|
28241
28241
|
for (let Nt = 0; Nt < ze; Nt++) {
|
|
28242
|
-
const
|
|
28243
|
-
for (let qt = 0; qt <
|
|
28242
|
+
const Ft = bt[Nt], jt = Ue[Nt], n0 = Gt[Nt], s0 = Xt * Zt * 4 * Nt;
|
|
28243
|
+
for (let qt = 0; qt < Ft.count; qt++) {
|
|
28244
28244
|
const Ht = qt * Wt;
|
|
28245
|
-
Fe === !0 && (C.fromBufferAttribute(
|
|
28245
|
+
Fe === !0 && (C.fromBufferAttribute(Ft, qt), wt[s0 + Ht + 0] = C.x, wt[s0 + Ht + 1] = C.y, wt[s0 + Ht + 2] = C.z, wt[s0 + Ht + 3] = 0), mt === !0 && (C.fromBufferAttribute(jt, qt), wt[s0 + Ht + 4] = C.x, wt[s0 + Ht + 5] = C.y, wt[s0 + Ht + 6] = C.z, wt[s0 + Ht + 7] = 0), Lt === !0 && (C.fromBufferAttribute(n0, qt), wt[s0 + Ht + 8] = C.x, wt[s0 + Ht + 9] = C.y, wt[s0 + Ht + 10] = C.z, wt[s0 + Ht + 11] = n0.itemSize === 4 ? C.w : 1);
|
|
28246
28246
|
}
|
|
28247
28247
|
}
|
|
28248
28248
|
ke = {
|
|
@@ -29219,20 +29219,20 @@ function WebGLProgram(v, e, n, r) {
|
|
|
29219
29219
|
` + Ue);
|
|
29220
29220
|
const xt = Gt + bt + E, Xt = Gt + Ue + O, Zt = WebGLShader(C, C.VERTEX_SHADER, xt), wt = WebGLShader(C, C.FRAGMENT_SHADER, Xt);
|
|
29221
29221
|
C.attachShader(Lt, Zt), C.attachShader(Lt, wt), n.index0AttributeName !== void 0 ? C.bindAttribLocation(Lt, 0, n.index0AttributeName) : n.morphTargets === !0 && C.bindAttribLocation(Lt, 0, "position"), C.linkProgram(Lt);
|
|
29222
|
-
function Vt(
|
|
29222
|
+
function Vt(Ft) {
|
|
29223
29223
|
if (v.debug.checkShaderErrors) {
|
|
29224
29224
|
const jt = C.getProgramInfoLog(Lt) || "", n0 = C.getShaderInfoLog(Zt) || "", s0 = C.getShaderInfoLog(wt) || "", qt = jt.trim(), Ht = n0.trim(), $t = s0.trim();
|
|
29225
|
-
let
|
|
29225
|
+
let Kt = !0, e0 = !0;
|
|
29226
29226
|
if (C.getProgramParameter(Lt, C.LINK_STATUS) === !1)
|
|
29227
|
-
if (
|
|
29227
|
+
if (Kt = !1, typeof v.debug.onShaderError == "function")
|
|
29228
29228
|
v.debug.onShaderError(C, Lt, Zt, wt);
|
|
29229
29229
|
else {
|
|
29230
29230
|
const u0 = getShaderErrors(C, Zt, "vertex"), d0 = getShaderErrors(C, wt, "fragment");
|
|
29231
29231
|
console.error(
|
|
29232
29232
|
"THREE.WebGLProgram: Shader Error " + C.getError() + " - VALIDATE_STATUS " + C.getProgramParameter(Lt, C.VALIDATE_STATUS) + `
|
|
29233
29233
|
|
|
29234
|
-
Material Name: ` +
|
|
29235
|
-
Material Type: ` +
|
|
29234
|
+
Material Name: ` + Ft.name + `
|
|
29235
|
+
Material Type: ` + Ft.type + `
|
|
29236
29236
|
|
|
29237
29237
|
Program Info Log: ` + qt + `
|
|
29238
29238
|
` + u0 + `
|
|
@@ -29240,8 +29240,8 @@ Program Info Log: ` + qt + `
|
|
|
29240
29240
|
);
|
|
29241
29241
|
}
|
|
29242
29242
|
else qt !== "" ? console.warn("THREE.WebGLProgram: Program Info Log:", qt) : (Ht === "" || $t === "") && (e0 = !1);
|
|
29243
|
-
e0 && (
|
|
29244
|
-
runnable:
|
|
29243
|
+
e0 && (Ft.diagnostics = {
|
|
29244
|
+
runnable: Kt,
|
|
29245
29245
|
programLog: qt,
|
|
29246
29246
|
vertexShader: {
|
|
29247
29247
|
log: Ht,
|
|
@@ -29333,8 +29333,8 @@ function WebGLPrograms(v, e, n, r, C, w, E) {
|
|
|
29333
29333
|
function Lt(It) {
|
|
29334
29334
|
return fe.add(It), It === 0 ? "uv" : `uv${It}`;
|
|
29335
29335
|
}
|
|
29336
|
-
function bt(It, Nt,
|
|
29337
|
-
const s0 = jt.fog, qt = n0.geometry, Ht = It.isMeshStandardMaterial ? jt.environment : null, $t = (It.isMeshStandardMaterial ? n : e).get(It.envMap || Ht),
|
|
29336
|
+
function bt(It, Nt, Ft, jt, n0) {
|
|
29337
|
+
const s0 = jt.fog, qt = n0.geometry, Ht = It.isMeshStandardMaterial ? jt.environment : null, $t = (It.isMeshStandardMaterial ? n : e).get(It.envMap || Ht), Kt = $t && $t.mapping === CubeUVReflectionMapping ? $t.image.height : null, e0 = mt[It.type];
|
|
29338
29338
|
It.precision !== null && (Fe = C.getMaxPrecision(It.precision), Fe !== It.precision && console.warn("THREE.WebGLProgram.getParameters:", It.precision, "not supported, using", Fe, "instead."));
|
|
29339
29339
|
const u0 = qt.morphAttributes.position || qt.morphAttributes.normal || qt.morphAttributes.color, d0 = u0 !== void 0 ? u0.length : 0;
|
|
29340
29340
|
let _0 = 0;
|
|
@@ -29345,7 +29345,7 @@ function WebGLPrograms(v, e, n, r, C, w, E) {
|
|
|
29345
29345
|
J0 = Qi.vertexShader, H0 = Qi.fragmentShader;
|
|
29346
29346
|
} else
|
|
29347
29347
|
J0 = It.vertexShader, H0 = It.fragmentShader, le.update(It), bi = le.getVertexShaderID(It), b0 = le.getFragmentShaderID(It);
|
|
29348
|
-
const V0 = v.getRenderTarget(), D0 = v.state.buffers.depth.getReversed(), Si = n0.isInstancedMesh === !0, q0 = n0.isBatchedMesh === !0, Wi = !!It.map, Ai = !!It.matcap, a0 = !!$t, P0 = !!It.aoMap,
|
|
29348
|
+
const V0 = v.getRenderTarget(), D0 = v.state.buffers.depth.getReversed(), Si = n0.isInstancedMesh === !0, q0 = n0.isBatchedMesh === !0, Wi = !!It.map, Ai = !!It.matcap, a0 = !!$t, P0 = !!It.aoMap, F0 = !!It.lightMap, K0 = !!It.bumpMap, I0 = !!It.normalMap, Q0 = !!It.displacementMap, S0 = !!It.emissiveMap, L0 = !!It.metalnessMap, A0 = !!It.roughnessMap, B0 = It.anisotropy > 0, r0 = It.clearcoat > 0, t0 = It.dispersion > 0, m0 = It.iridescence > 0, v0 = It.sheen > 0, k0 = It.transmission > 0, C0 = B0 && !!It.anisotropyMap, Ci = r0 && !!It.clearcoatMap, yi = r0 && !!It.clearcoatNormalMap, wi = r0 && !!It.clearcoatRoughnessMap, Ei = m0 && !!It.iridescenceMap, gi = m0 && !!It.iridescenceThicknessMap, Ti = v0 && !!It.sheenColorMap, Ii = v0 && !!It.sheenRoughnessMap, Ni = !!It.specularMap, Gi = !!It.specularColorMap, zi = !!It.specularIntensityMap, f0 = k0 && !!It.transmissionMap, xi = k0 && !!It.thicknessMap, R0 = !!It.gradientMap, Pi = !!It.alphaMap, Mi = It.alphaTest > 0, j0 = !!It.alphaHash, ki = !!It.extensions;
|
|
29349
29349
|
let Oi = NoToneMapping;
|
|
29350
29350
|
It.toneMapped && (V0 === null || V0.isXRRenderTarget === !0) && (Oi = v.toneMapping);
|
|
29351
29351
|
const $i = {
|
|
@@ -29372,10 +29372,10 @@ function WebGLPrograms(v, e, n, r, C, w, E) {
|
|
|
29372
29372
|
matcap: Ai,
|
|
29373
29373
|
envMap: a0,
|
|
29374
29374
|
envMapMode: a0 && $t.mapping,
|
|
29375
|
-
envMapCubeUVHeight:
|
|
29375
|
+
envMapCubeUVHeight: Kt,
|
|
29376
29376
|
aoMap: P0,
|
|
29377
|
-
lightMap:
|
|
29378
|
-
bumpMap:
|
|
29377
|
+
lightMap: F0,
|
|
29378
|
+
bumpMap: K0,
|
|
29379
29379
|
normalMap: I0,
|
|
29380
29380
|
displacementMap: ke && Q0,
|
|
29381
29381
|
emissiveMap: S0,
|
|
@@ -29411,8 +29411,8 @@ function WebGLPrograms(v, e, n, r, C, w, E) {
|
|
|
29411
29411
|
//
|
|
29412
29412
|
mapUv: Wi && Lt(It.map.channel),
|
|
29413
29413
|
aoMapUv: P0 && Lt(It.aoMap.channel),
|
|
29414
|
-
lightMapUv:
|
|
29415
|
-
bumpMapUv:
|
|
29414
|
+
lightMapUv: F0 && Lt(It.lightMap.channel),
|
|
29415
|
+
bumpMapUv: K0 && Lt(It.bumpMap.channel),
|
|
29416
29416
|
normalMapUv: I0 && Lt(It.normalMap.channel),
|
|
29417
29417
|
displacementMapUv: Q0 && Lt(It.displacementMap.channel),
|
|
29418
29418
|
emissiveMapUv: S0 && Lt(It.emissiveMap.channel),
|
|
@@ -29464,7 +29464,7 @@ function WebGLPrograms(v, e, n, r, C, w, E) {
|
|
|
29464
29464
|
numClippingPlanes: E.numPlanes,
|
|
29465
29465
|
numClipIntersection: E.numIntersection,
|
|
29466
29466
|
dithering: It.dithering,
|
|
29467
|
-
shadowMapEnabled: v.shadowMap.enabled &&
|
|
29467
|
+
shadowMapEnabled: v.shadowMap.enabled && Ft.length > 0,
|
|
29468
29468
|
shadowMapType: v.shadowMap.type,
|
|
29469
29469
|
toneMapping: Oi,
|
|
29470
29470
|
decodeVideoTexture: Wi && It.map.isVideoTexture === !0 && ColorManagement.getTransfer(It.map.colorSpace) === SRGBTransfer,
|
|
@@ -29485,8 +29485,8 @@ function WebGLPrograms(v, e, n, r, C, w, E) {
|
|
|
29485
29485
|
function Ue(It) {
|
|
29486
29486
|
const Nt = [];
|
|
29487
29487
|
if (It.shaderID ? Nt.push(It.shaderID) : (Nt.push(It.customVertexShaderID), Nt.push(It.customFragmentShaderID)), It.defines !== void 0)
|
|
29488
|
-
for (const
|
|
29489
|
-
Nt.push(
|
|
29488
|
+
for (const Ft in It.defines)
|
|
29489
|
+
Nt.push(Ft), Nt.push(It.defines[Ft]);
|
|
29490
29490
|
return It.isRawShaderMaterial === !1 && (Gt(Nt, It), xt(Nt, It), Nt.push(v.outputColorSpace)), Nt.push(It.customProgramCacheKey), Nt.join();
|
|
29491
29491
|
}
|
|
29492
29492
|
function Gt(It, Nt) {
|
|
@@ -29497,24 +29497,24 @@ function WebGLPrograms(v, e, n, r, C, w, E) {
|
|
|
29497
29497
|
}
|
|
29498
29498
|
function Xt(It) {
|
|
29499
29499
|
const Nt = mt[It.type];
|
|
29500
|
-
let
|
|
29500
|
+
let Ft;
|
|
29501
29501
|
if (Nt) {
|
|
29502
29502
|
const jt = ShaderLib[Nt];
|
|
29503
|
-
|
|
29503
|
+
Ft = UniformsUtils.clone(jt.uniforms);
|
|
29504
29504
|
} else
|
|
29505
|
-
|
|
29506
|
-
return
|
|
29505
|
+
Ft = It.uniforms;
|
|
29506
|
+
return Ft;
|
|
29507
29507
|
}
|
|
29508
29508
|
function Zt(It, Nt) {
|
|
29509
|
-
let
|
|
29509
|
+
let Ft;
|
|
29510
29510
|
for (let jt = 0, n0 = Se.length; jt < n0; jt++) {
|
|
29511
29511
|
const s0 = Se[jt];
|
|
29512
29512
|
if (s0.cacheKey === Nt) {
|
|
29513
|
-
|
|
29513
|
+
Ft = s0, ++Ft.usedTimes;
|
|
29514
29514
|
break;
|
|
29515
29515
|
}
|
|
29516
29516
|
}
|
|
29517
|
-
return
|
|
29517
|
+
return Ft === void 0 && (Ft = new WebGLProgram(v, Nt, It, w), Se.push(Ft)), Ft;
|
|
29518
29518
|
}
|
|
29519
29519
|
function wt(It) {
|
|
29520
29520
|
if (--It.usedTimes === 0) {
|
|
@@ -29780,42 +29780,42 @@ function WebGLLights(v) {
|
|
|
29780
29780
|
let Fe = 0, mt = 0, Lt = 0, bt = 0, Ue = 0, Gt = 0, xt = 0, Xt = 0, Zt = 0, wt = 0, Vt = 0;
|
|
29781
29781
|
fe.sort(shadowCastingAndTexturingLightsFirst);
|
|
29782
29782
|
for (let It = 0, Nt = fe.length; It < Nt; It++) {
|
|
29783
|
-
const
|
|
29784
|
-
if (
|
|
29783
|
+
const Ft = fe[It], jt = Ft.color, n0 = Ft.intensity, s0 = Ft.distance, qt = Ft.shadow && Ft.shadow.map ? Ft.shadow.map.texture : null;
|
|
29784
|
+
if (Ft.isAmbientLight)
|
|
29785
29785
|
Se += jt.r * n0, ze += jt.g * n0, ke += jt.b * n0;
|
|
29786
|
-
else if (
|
|
29786
|
+
else if (Ft.isLightProbe) {
|
|
29787
29787
|
for (let Ht = 0; Ht < 9; Ht++)
|
|
29788
|
-
r.probe[Ht].addScaledVector(
|
|
29788
|
+
r.probe[Ht].addScaledVector(Ft.sh.coefficients[Ht], n0);
|
|
29789
29789
|
Vt++;
|
|
29790
|
-
} else if (
|
|
29791
|
-
const Ht = e.get(
|
|
29792
|
-
if (Ht.color.copy(
|
|
29793
|
-
const $t =
|
|
29794
|
-
|
|
29790
|
+
} else if (Ft.isDirectionalLight) {
|
|
29791
|
+
const Ht = e.get(Ft);
|
|
29792
|
+
if (Ht.color.copy(Ft.color).multiplyScalar(Ft.intensity), Ft.castShadow) {
|
|
29793
|
+
const $t = Ft.shadow, Kt = n.get(Ft);
|
|
29794
|
+
Kt.shadowIntensity = $t.intensity, Kt.shadowBias = $t.bias, Kt.shadowNormalBias = $t.normalBias, Kt.shadowRadius = $t.radius, Kt.shadowMapSize = $t.mapSize, r.directionalShadow[Fe] = Kt, r.directionalShadowMap[Fe] = qt, r.directionalShadowMatrix[Fe] = Ft.shadow.matrix, Gt++;
|
|
29795
29795
|
}
|
|
29796
29796
|
r.directional[Fe] = Ht, Fe++;
|
|
29797
|
-
} else if (
|
|
29798
|
-
const Ht = e.get(
|
|
29799
|
-
Ht.position.setFromMatrixPosition(
|
|
29800
|
-
const $t =
|
|
29801
|
-
if (
|
|
29802
|
-
const
|
|
29803
|
-
|
|
29797
|
+
} else if (Ft.isSpotLight) {
|
|
29798
|
+
const Ht = e.get(Ft);
|
|
29799
|
+
Ht.position.setFromMatrixPosition(Ft.matrixWorld), Ht.color.copy(jt).multiplyScalar(n0), Ht.distance = s0, Ht.coneCos = Math.cos(Ft.angle), Ht.penumbraCos = Math.cos(Ft.angle * (1 - Ft.penumbra)), Ht.decay = Ft.decay, r.spot[Lt] = Ht;
|
|
29800
|
+
const $t = Ft.shadow;
|
|
29801
|
+
if (Ft.map && (r.spotLightMap[Zt] = Ft.map, Zt++, $t.updateMatrices(Ft), Ft.castShadow && wt++), r.spotLightMatrix[Lt] = $t.matrix, Ft.castShadow) {
|
|
29802
|
+
const Kt = n.get(Ft);
|
|
29803
|
+
Kt.shadowIntensity = $t.intensity, Kt.shadowBias = $t.bias, Kt.shadowNormalBias = $t.normalBias, Kt.shadowRadius = $t.radius, Kt.shadowMapSize = $t.mapSize, r.spotShadow[Lt] = Kt, r.spotShadowMap[Lt] = qt, Xt++;
|
|
29804
29804
|
}
|
|
29805
29805
|
Lt++;
|
|
29806
|
-
} else if (
|
|
29807
|
-
const Ht = e.get(
|
|
29808
|
-
Ht.color.copy(jt).multiplyScalar(n0), Ht.halfWidth.set(
|
|
29809
|
-
} else if (
|
|
29810
|
-
const Ht = e.get(
|
|
29811
|
-
if (Ht.color.copy(
|
|
29812
|
-
const $t =
|
|
29813
|
-
|
|
29806
|
+
} else if (Ft.isRectAreaLight) {
|
|
29807
|
+
const Ht = e.get(Ft);
|
|
29808
|
+
Ht.color.copy(jt).multiplyScalar(n0), Ht.halfWidth.set(Ft.width * 0.5, 0, 0), Ht.halfHeight.set(0, Ft.height * 0.5, 0), r.rectArea[bt] = Ht, bt++;
|
|
29809
|
+
} else if (Ft.isPointLight) {
|
|
29810
|
+
const Ht = e.get(Ft);
|
|
29811
|
+
if (Ht.color.copy(Ft.color).multiplyScalar(Ft.intensity), Ht.distance = Ft.distance, Ht.decay = Ft.decay, Ft.castShadow) {
|
|
29812
|
+
const $t = Ft.shadow, Kt = n.get(Ft);
|
|
29813
|
+
Kt.shadowIntensity = $t.intensity, Kt.shadowBias = $t.bias, Kt.shadowNormalBias = $t.normalBias, Kt.shadowRadius = $t.radius, Kt.shadowMapSize = $t.mapSize, Kt.shadowCameraNear = $t.camera.near, Kt.shadowCameraFar = $t.camera.far, r.pointShadow[mt] = Kt, r.pointShadowMap[mt] = qt, r.pointShadowMatrix[mt] = Ft.shadow.matrix, xt++;
|
|
29814
29814
|
}
|
|
29815
29815
|
r.point[mt] = Ht, mt++;
|
|
29816
|
-
} else if (
|
|
29817
|
-
const Ht = e.get(
|
|
29818
|
-
Ht.skyColor.copy(
|
|
29816
|
+
} else if (Ft.isHemisphereLight) {
|
|
29817
|
+
const Ht = e.get(Ft);
|
|
29818
|
+
Ht.skyColor.copy(Ft.color).multiplyScalar(n0), Ht.groundColor.copy(Ft.groundColor).multiplyScalar(n0), r.hemi[Ue] = Ht, Ue++;
|
|
29819
29819
|
}
|
|
29820
29820
|
}
|
|
29821
29821
|
bt > 0 && (v.has("OES_texture_float_linear") === !0 ? (r.rectAreaLTC1 = UniformsLib.LTC_FLOAT_1, r.rectAreaLTC2 = UniformsLib.LTC_FLOAT_2) : (r.rectAreaLTC1 = UniformsLib.LTC_HALF_1, r.rectAreaLTC2 = UniformsLib.LTC_HALF_2)), r.ambient[0] = Se, r.ambient[1] = ze, r.ambient[2] = ke;
|
|
@@ -29956,36 +29956,36 @@ function WebGLShadowMap(v, e, n) {
|
|
|
29956
29956
|
let Ue = this.type;
|
|
29957
29957
|
this.render = function(wt, Vt, Wt) {
|
|
29958
29958
|
if (bt.enabled === !1 || bt.autoUpdate === !1 && bt.needsUpdate === !1 || wt.length === 0) return;
|
|
29959
|
-
const It = v.getRenderTarget(), Nt = v.getActiveCubeFace(),
|
|
29959
|
+
const It = v.getRenderTarget(), Nt = v.getActiveCubeFace(), Ft = v.getActiveMipmapLevel(), jt = v.state;
|
|
29960
29960
|
jt.setBlending(NoBlending), jt.buffers.depth.getReversed() === !0 ? jt.buffers.color.setClear(0, 0, 0, 0) : jt.buffers.color.setClear(1, 1, 1, 1), jt.buffers.depth.setTest(!0), jt.setScissorTest(!1);
|
|
29961
29961
|
const n0 = Ue !== VSMShadowMap && this.type === VSMShadowMap, s0 = Ue === VSMShadowMap && this.type !== VSMShadowMap;
|
|
29962
29962
|
for (let qt = 0, Ht = wt.length; qt < Ht; qt++) {
|
|
29963
|
-
const $t = wt[qt],
|
|
29964
|
-
if (
|
|
29963
|
+
const $t = wt[qt], Kt = $t.shadow;
|
|
29964
|
+
if (Kt === void 0) {
|
|
29965
29965
|
console.warn("THREE.WebGLShadowMap:", $t, "has no shadow.");
|
|
29966
29966
|
continue;
|
|
29967
29967
|
}
|
|
29968
|
-
if (
|
|
29969
|
-
C.copy(
|
|
29970
|
-
const e0 =
|
|
29971
|
-
if (C.multiply(e0), w.copy(
|
|
29968
|
+
if (Kt.autoUpdate === !1 && Kt.needsUpdate === !1) continue;
|
|
29969
|
+
C.copy(Kt.mapSize);
|
|
29970
|
+
const e0 = Kt.getFrameExtents();
|
|
29971
|
+
if (C.multiply(e0), w.copy(Kt.mapSize), (C.x > Se || C.y > Se) && (C.x > Se && (w.x = Math.floor(Se / e0.x), C.x = w.x * e0.x, Kt.mapSize.x = w.x), C.y > Se && (w.y = Math.floor(Se / e0.y), C.y = w.y * e0.y, Kt.mapSize.y = w.y)), Kt.map === null || n0 === !0 || s0 === !0) {
|
|
29972
29972
|
const d0 = this.type !== VSMShadowMap ? { minFilter: NearestFilter, magFilter: NearestFilter } : {};
|
|
29973
|
-
|
|
29973
|
+
Kt.map !== null && Kt.map.dispose(), Kt.map = new WebGLRenderTarget(C.x, C.y, d0), Kt.map.texture.name = $t.name + ".shadowMap", Kt.camera.updateProjectionMatrix();
|
|
29974
29974
|
}
|
|
29975
|
-
v.setRenderTarget(
|
|
29976
|
-
const u0 =
|
|
29975
|
+
v.setRenderTarget(Kt.map), v.clear();
|
|
29976
|
+
const u0 = Kt.getViewportCount();
|
|
29977
29977
|
for (let d0 = 0; d0 < u0; d0++) {
|
|
29978
|
-
const _0 =
|
|
29978
|
+
const _0 = Kt.getViewport(d0);
|
|
29979
29979
|
E.set(
|
|
29980
29980
|
w.x * _0.x,
|
|
29981
29981
|
w.y * _0.y,
|
|
29982
29982
|
w.x * _0.z,
|
|
29983
29983
|
w.y * _0.w
|
|
29984
|
-
), jt.viewport(E),
|
|
29984
|
+
), jt.viewport(E), Kt.updateMatrices($t, d0), r = Kt.getFrustum(), Xt(Vt, Wt, Kt.camera, $t, this.type);
|
|
29985
29985
|
}
|
|
29986
|
-
|
|
29986
|
+
Kt.isPointLightShadow !== !0 && this.type === VSMShadowMap && Gt(Kt, Wt), Kt.needsUpdate = !1;
|
|
29987
29987
|
}
|
|
29988
|
-
Ue = this.type, bt.needsUpdate = !1, v.setRenderTarget(It, Nt,
|
|
29988
|
+
Ue = this.type, bt.needsUpdate = !1, v.setRenderTarget(It, Nt, Ft);
|
|
29989
29989
|
};
|
|
29990
29990
|
function Gt(wt, Vt) {
|
|
29991
29991
|
const Wt = e.update(Lt);
|
|
@@ -29993,9 +29993,9 @@ function WebGLShadowMap(v, e, n) {
|
|
|
29993
29993
|
}
|
|
29994
29994
|
function xt(wt, Vt, Wt, It) {
|
|
29995
29995
|
let Nt = null;
|
|
29996
|
-
const
|
|
29997
|
-
if (
|
|
29998
|
-
Nt =
|
|
29996
|
+
const Ft = Wt.isPointLight === !0 ? wt.customDistanceMaterial : wt.customDepthMaterial;
|
|
29997
|
+
if (Ft !== void 0)
|
|
29998
|
+
Nt = Ft;
|
|
29999
29999
|
else if (Nt = Wt.isPointLight === !0 ? le : O, v.localClippingEnabled && Vt.clipShadows === !0 && Array.isArray(Vt.clippingPlanes) && Vt.clippingPlanes.length !== 0 || Vt.displacementMap && Vt.displacementScale !== 0 || Vt.alphaMap && Vt.alphaTest > 0 || Vt.map && Vt.alphaTest > 0 || Vt.alphaToCoverage === !0) {
|
|
30000
30000
|
const jt = Nt.uuid, n0 = Vt.uuid;
|
|
30001
30001
|
let s0 = fe[jt];
|
|
@@ -30017,10 +30017,10 @@ function WebGLShadowMap(v, e, n) {
|
|
|
30017
30017
|
if (Array.isArray(s0)) {
|
|
30018
30018
|
const qt = n0.groups;
|
|
30019
30019
|
for (let Ht = 0, $t = qt.length; Ht < $t; Ht++) {
|
|
30020
|
-
const
|
|
30020
|
+
const Kt = qt[Ht], e0 = s0[Kt.materialIndex];
|
|
30021
30021
|
if (e0 && e0.visible) {
|
|
30022
30022
|
const u0 = xt(wt, e0, It, Nt);
|
|
30023
|
-
wt.onBeforeShadow(v, wt, Vt, Wt, n0, u0,
|
|
30023
|
+
wt.onBeforeShadow(v, wt, Vt, Wt, n0, u0, Kt), v.renderBufferDirect(Wt, null, n0, u0, wt, Kt), wt.onAfterShadow(v, wt, Vt, Wt, n0, u0, Kt);
|
|
30024
30024
|
}
|
|
30025
30025
|
}
|
|
30026
30026
|
} else if (s0.visible) {
|
|
@@ -30162,11 +30162,11 @@ function WebGLState(v, e) {
|
|
|
30162
30162
|
};
|
|
30163
30163
|
}
|
|
30164
30164
|
const w = new n(), E = new r(), O = new C(), le = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap();
|
|
30165
|
-
let Se = {}, ze = {}, ke = /* @__PURE__ */ new WeakMap(), Fe = [], mt = null, Lt = !1, bt = null, Ue = null, Gt = null, xt = null, Xt = null, Zt = null, wt = null, Vt = new Color$1(0, 0, 0), Wt = 0, It = !1, Nt = null,
|
|
30165
|
+
let Se = {}, ze = {}, ke = /* @__PURE__ */ new WeakMap(), Fe = [], mt = null, Lt = !1, bt = null, Ue = null, Gt = null, xt = null, Xt = null, Zt = null, wt = null, Vt = new Color$1(0, 0, 0), Wt = 0, It = !1, Nt = null, Ft = null, jt = null, n0 = null, s0 = null;
|
|
30166
30166
|
const qt = v.getParameter(v.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
|
|
30167
30167
|
let Ht = !1, $t = 0;
|
|
30168
|
-
const
|
|
30169
|
-
|
|
30168
|
+
const Kt = v.getParameter(v.VERSION);
|
|
30169
|
+
Kt.indexOf("WebGL") !== -1 ? ($t = parseFloat(/^WebGL (\d)/.exec(Kt)[1]), Ht = $t >= 1) : Kt.indexOf("OpenGL ES") !== -1 && ($t = parseFloat(/^OpenGL ES (\d)/.exec(Kt)[1]), Ht = $t >= 2);
|
|
30170
30170
|
let e0 = null, u0 = {};
|
|
30171
30171
|
const d0 = v.getParameter(v.SCISSOR_BOX), _0 = v.getParameter(v.VIEWPORT), J0 = new Vector4().fromArray(d0), H0 = new Vector4().fromArray(_0);
|
|
30172
30172
|
function bi(f0, xi, R0, Pi) {
|
|
@@ -30177,7 +30177,7 @@ function WebGLState(v, e) {
|
|
|
30177
30177
|
return j0;
|
|
30178
30178
|
}
|
|
30179
30179
|
const b0 = {};
|
|
30180
|
-
b0[v.TEXTURE_2D] = bi(v.TEXTURE_2D, v.TEXTURE_2D, 1), b0[v.TEXTURE_CUBE_MAP] = bi(v.TEXTURE_CUBE_MAP, v.TEXTURE_CUBE_MAP_POSITIVE_X, 6), b0[v.TEXTURE_2D_ARRAY] = bi(v.TEXTURE_2D_ARRAY, v.TEXTURE_2D_ARRAY, 1, 1), b0[v.TEXTURE_3D] = bi(v.TEXTURE_3D, v.TEXTURE_3D, 1, 1), w.setClear(0, 0, 0, 1), E.setClear(1), O.setClear(0), V0(v.DEPTH_TEST), E.setFunc(LessEqualDepth),
|
|
30180
|
+
b0[v.TEXTURE_2D] = bi(v.TEXTURE_2D, v.TEXTURE_2D, 1), b0[v.TEXTURE_CUBE_MAP] = bi(v.TEXTURE_CUBE_MAP, v.TEXTURE_CUBE_MAP_POSITIVE_X, 6), b0[v.TEXTURE_2D_ARRAY] = bi(v.TEXTURE_2D_ARRAY, v.TEXTURE_2D_ARRAY, 1, 1), b0[v.TEXTURE_3D] = bi(v.TEXTURE_3D, v.TEXTURE_3D, 1, 1), w.setClear(0, 0, 0, 1), E.setClear(1), O.setClear(0), V0(v.DEPTH_TEST), E.setFunc(LessEqualDepth), K0(!1), I0(CullFaceBack), V0(v.CULL_FACE), P0(NoBlending);
|
|
30181
30181
|
function V0(f0) {
|
|
30182
30182
|
Se[f0] !== !0 && (v.enable(f0), Se[f0] = !0);
|
|
30183
30183
|
}
|
|
@@ -30276,18 +30276,18 @@ function WebGLState(v, e) {
|
|
|
30276
30276
|
}
|
|
30277
30277
|
Mi = Mi || xi, j0 = j0 || R0, ki = ki || Pi, (xi !== Ue || Mi !== Xt) && (v.blendEquationSeparate(Ai[xi], Ai[Mi]), Ue = xi, Xt = Mi), (R0 !== Gt || Pi !== xt || j0 !== Zt || ki !== wt) && (v.blendFuncSeparate(a0[R0], a0[Pi], a0[j0], a0[ki]), Gt = R0, xt = Pi, Zt = j0, wt = ki), (Oi.equals(Vt) === !1 || $i !== Wt) && (v.blendColor(Oi.r, Oi.g, Oi.b, $i), Vt.copy(Oi), Wt = $i), bt = f0, It = !1;
|
|
30278
30278
|
}
|
|
30279
|
-
function
|
|
30279
|
+
function F0(f0, xi) {
|
|
30280
30280
|
f0.side === DoubleSide ? D0(v.CULL_FACE) : V0(v.CULL_FACE);
|
|
30281
30281
|
let R0 = f0.side === BackSide;
|
|
30282
|
-
xi && (R0 = !R0),
|
|
30282
|
+
xi && (R0 = !R0), K0(R0), f0.blending === NormalBlending && f0.transparent === !1 ? P0(NoBlending) : P0(f0.blending, f0.blendEquation, f0.blendSrc, f0.blendDst, f0.blendEquationAlpha, f0.blendSrcAlpha, f0.blendDstAlpha, f0.blendColor, f0.blendAlpha, f0.premultipliedAlpha), E.setFunc(f0.depthFunc), E.setTest(f0.depthTest), E.setMask(f0.depthWrite), w.setMask(f0.colorWrite);
|
|
30283
30283
|
const Pi = f0.stencilWrite;
|
|
30284
30284
|
O.setTest(Pi), Pi && (O.setMask(f0.stencilWriteMask), O.setFunc(f0.stencilFunc, f0.stencilRef, f0.stencilFuncMask), O.setOp(f0.stencilFail, f0.stencilZFail, f0.stencilZPass)), S0(f0.polygonOffset, f0.polygonOffsetFactor, f0.polygonOffsetUnits), f0.alphaToCoverage === !0 ? V0(v.SAMPLE_ALPHA_TO_COVERAGE) : D0(v.SAMPLE_ALPHA_TO_COVERAGE);
|
|
30285
30285
|
}
|
|
30286
|
-
function
|
|
30286
|
+
function K0(f0) {
|
|
30287
30287
|
Nt !== f0 && (f0 ? v.frontFace(v.CW) : v.frontFace(v.CCW), Nt = f0);
|
|
30288
30288
|
}
|
|
30289
30289
|
function I0(f0) {
|
|
30290
|
-
f0 !== CullFaceNone ? (V0(v.CULL_FACE), f0 !==
|
|
30290
|
+
f0 !== CullFaceNone ? (V0(v.CULL_FACE), f0 !== Ft && (f0 === CullFaceBack ? v.cullFace(v.BACK) : f0 === CullFaceFront ? v.cullFace(v.FRONT) : v.cullFace(v.FRONT_AND_BACK))) : D0(v.CULL_FACE), Ft = f0;
|
|
30291
30291
|
}
|
|
30292
30292
|
function Q0(f0) {
|
|
30293
30293
|
f0 !== jt && (Ht && v.lineWidth(f0), jt = f0);
|
|
@@ -30397,7 +30397,7 @@ function WebGLState(v, e) {
|
|
|
30397
30397
|
le.get(xi) !== Pi && (v.uniformBlockBinding(xi, Pi, f0.__bindingPointIndex), le.set(xi, Pi));
|
|
30398
30398
|
}
|
|
30399
30399
|
function zi() {
|
|
30400
|
-
v.disable(v.BLEND), v.disable(v.CULL_FACE), v.disable(v.DEPTH_TEST), v.disable(v.POLYGON_OFFSET_FILL), v.disable(v.SCISSOR_TEST), v.disable(v.STENCIL_TEST), v.disable(v.SAMPLE_ALPHA_TO_COVERAGE), v.blendEquation(v.FUNC_ADD), v.blendFunc(v.ONE, v.ZERO), v.blendFuncSeparate(v.ONE, v.ZERO, v.ONE, v.ZERO), v.blendColor(0, 0, 0, 0), v.colorMask(!0, !0, !0, !0), v.clearColor(0, 0, 0, 0), v.depthMask(!0), v.depthFunc(v.LESS), E.setReversed(!1), v.clearDepth(1), v.stencilMask(4294967295), v.stencilFunc(v.ALWAYS, 0, 4294967295), v.stencilOp(v.KEEP, v.KEEP, v.KEEP), v.clearStencil(0), v.cullFace(v.BACK), v.frontFace(v.CCW), v.polygonOffset(0, 0), v.activeTexture(v.TEXTURE0), v.bindFramebuffer(v.FRAMEBUFFER, null), v.bindFramebuffer(v.DRAW_FRAMEBUFFER, null), v.bindFramebuffer(v.READ_FRAMEBUFFER, null), v.useProgram(null), v.lineWidth(1), v.scissor(0, 0, v.canvas.width, v.canvas.height), v.viewport(0, 0, v.canvas.width, v.canvas.height), Se = {}, e0 = null, u0 = {}, ze = {}, ke = /* @__PURE__ */ new WeakMap(), Fe = [], mt = null, Lt = !1, bt = null, Ue = null, Gt = null, xt = null, Xt = null, Zt = null, wt = null, Vt = new Color$1(0, 0, 0), Wt = 0, It = !1, Nt = null,
|
|
30400
|
+
v.disable(v.BLEND), v.disable(v.CULL_FACE), v.disable(v.DEPTH_TEST), v.disable(v.POLYGON_OFFSET_FILL), v.disable(v.SCISSOR_TEST), v.disable(v.STENCIL_TEST), v.disable(v.SAMPLE_ALPHA_TO_COVERAGE), v.blendEquation(v.FUNC_ADD), v.blendFunc(v.ONE, v.ZERO), v.blendFuncSeparate(v.ONE, v.ZERO, v.ONE, v.ZERO), v.blendColor(0, 0, 0, 0), v.colorMask(!0, !0, !0, !0), v.clearColor(0, 0, 0, 0), v.depthMask(!0), v.depthFunc(v.LESS), E.setReversed(!1), v.clearDepth(1), v.stencilMask(4294967295), v.stencilFunc(v.ALWAYS, 0, 4294967295), v.stencilOp(v.KEEP, v.KEEP, v.KEEP), v.clearStencil(0), v.cullFace(v.BACK), v.frontFace(v.CCW), v.polygonOffset(0, 0), v.activeTexture(v.TEXTURE0), v.bindFramebuffer(v.FRAMEBUFFER, null), v.bindFramebuffer(v.DRAW_FRAMEBUFFER, null), v.bindFramebuffer(v.READ_FRAMEBUFFER, null), v.useProgram(null), v.lineWidth(1), v.scissor(0, 0, v.canvas.width, v.canvas.height), v.viewport(0, 0, v.canvas.width, v.canvas.height), Se = {}, e0 = null, u0 = {}, ze = {}, ke = /* @__PURE__ */ new WeakMap(), Fe = [], mt = null, Lt = !1, bt = null, Ue = null, Gt = null, xt = null, Xt = null, Zt = null, wt = null, Vt = new Color$1(0, 0, 0), Wt = 0, It = !1, Nt = null, Ft = null, jt = null, n0 = null, s0 = null, J0.set(0, 0, v.canvas.width, v.canvas.height), H0.set(0, 0, v.canvas.width, v.canvas.height), w.reset(), E.reset(), O.reset();
|
|
30401
30401
|
}
|
|
30402
30402
|
return {
|
|
30403
30403
|
buffers: {
|
|
@@ -30411,8 +30411,8 @@ function WebGLState(v, e) {
|
|
|
30411
30411
|
drawBuffers: q0,
|
|
30412
30412
|
useProgram: Wi,
|
|
30413
30413
|
setBlending: P0,
|
|
30414
|
-
setMaterial:
|
|
30415
|
-
setFlipSided:
|
|
30414
|
+
setMaterial: F0,
|
|
30415
|
+
setFlipSided: K0,
|
|
30416
30416
|
setCullFace: I0,
|
|
30417
30417
|
setLineWidth: Q0,
|
|
30418
30418
|
setPolygonOffset: S0,
|
|
@@ -30544,13 +30544,13 @@ function WebGLTextures(v, e, n, r, C, w, E) {
|
|
|
30544
30544
|
}
|
|
30545
30545
|
r.remove(r0);
|
|
30546
30546
|
}
|
|
30547
|
-
let
|
|
30547
|
+
let Ft = 0;
|
|
30548
30548
|
function jt() {
|
|
30549
|
-
|
|
30549
|
+
Ft = 0;
|
|
30550
30550
|
}
|
|
30551
30551
|
function n0() {
|
|
30552
|
-
const r0 =
|
|
30553
|
-
return r0 >= C.maxTextures && console.warn("THREE.WebGLTextures: Trying to use " + r0 + " texture units while this GPU supports only " + C.maxTextures),
|
|
30552
|
+
const r0 = Ft;
|
|
30553
|
+
return r0 >= C.maxTextures && console.warn("THREE.WebGLTextures: Trying to use " + r0 + " texture units while this GPU supports only " + C.maxTextures), Ft += 1, r0;
|
|
30554
30554
|
}
|
|
30555
30555
|
function s0(r0) {
|
|
30556
30556
|
const t0 = [];
|
|
@@ -30587,7 +30587,7 @@ function WebGLTextures(v, e, n, r, C, w, E) {
|
|
|
30587
30587
|
}
|
|
30588
30588
|
n.bindTexture(v.TEXTURE_3D, m0.__webglTexture, v.TEXTURE0 + t0);
|
|
30589
30589
|
}
|
|
30590
|
-
function
|
|
30590
|
+
function Kt(r0, t0) {
|
|
30591
30591
|
const m0 = r.get(r0);
|
|
30592
30592
|
if (r0.version > 0 && m0.__version !== r0.version) {
|
|
30593
30593
|
V0(m0, r0, t0);
|
|
@@ -30973,7 +30973,7 @@ function WebGLTextures(v, e, n, r, C, w, E) {
|
|
|
30973
30973
|
}
|
|
30974
30974
|
}
|
|
30975
30975
|
}
|
|
30976
|
-
const
|
|
30976
|
+
const F0 = [], K0 = [];
|
|
30977
30977
|
function I0(r0) {
|
|
30978
30978
|
if (r0.samples > 0) {
|
|
30979
30979
|
if (S0(r0) === !1) {
|
|
@@ -30992,7 +30992,7 @@ function WebGLTextures(v, e, n, r, C, w, E) {
|
|
|
30992
30992
|
const gi = r.get(t0[Ei]).__webglTexture;
|
|
30993
30993
|
v.framebufferTexture2D(v.DRAW_FRAMEBUFFER, v.COLOR_ATTACHMENT0, v.TEXTURE_2D, gi, 0);
|
|
30994
30994
|
}
|
|
30995
|
-
v.blitFramebuffer(0, 0, m0, v0, 0, 0, m0, v0, k0, v.NEAREST), le === !0 && (
|
|
30995
|
+
v.blitFramebuffer(0, 0, m0, v0, 0, 0, m0, v0, k0, v.NEAREST), le === !0 && (F0.length = 0, K0.length = 0, F0.push(v.COLOR_ATTACHMENT0 + Ei), r0.depthBuffer && r0.resolveDepthBuffer === !1 && (F0.push(C0), K0.push(C0), v.invalidateFramebuffer(v.DRAW_FRAMEBUFFER, K0)), v.invalidateFramebuffer(v.READ_FRAMEBUFFER, F0));
|
|
30996
30996
|
}
|
|
30997
30997
|
if (n.bindFramebuffer(v.READ_FRAMEBUFFER, null), n.bindFramebuffer(v.DRAW_FRAMEBUFFER, null), yi)
|
|
30998
30998
|
for (let Ei = 0; Ei < t0.length; Ei++) {
|
|
@@ -31025,7 +31025,7 @@ function WebGLTextures(v, e, n, r, C, w, E) {
|
|
|
31025
31025
|
function B0(r0) {
|
|
31026
31026
|
return typeof HTMLImageElement != "undefined" && r0 instanceof HTMLImageElement ? (fe.width = r0.naturalWidth || r0.width, fe.height = r0.naturalHeight || r0.height) : typeof VideoFrame != "undefined" && r0 instanceof VideoFrame ? (fe.width = r0.displayWidth, fe.height = r0.displayHeight) : (fe.width = r0.width, fe.height = r0.height), fe;
|
|
31027
31027
|
}
|
|
31028
|
-
this.allocateTextureUnit = n0, this.resetTextureUnits = jt, this.setTexture2D = qt, this.setTexture2DArray = Ht, this.setTexture3D = $t, this.setTextureCube =
|
|
31028
|
+
this.allocateTextureUnit = n0, this.resetTextureUnits = jt, this.setTexture2D = qt, this.setTexture2DArray = Ht, this.setTexture3D = $t, this.setTextureCube = Kt, this.rebindTextures = Ai, this.setupRenderTarget = a0, this.updateRenderTargetMipmap = P0, this.updateMultisampleRenderTarget = I0, this.setupDepthRenderbuffer = Wi, this.setupFrameBufferTexture = D0, this.useMultisampledRTT = S0;
|
|
31029
31029
|
}
|
|
31030
31030
|
function WebGLUtils(v, e) {
|
|
31031
31031
|
function n(r, C = NoColorSpace) {
|
|
@@ -31219,7 +31219,7 @@ class WebXRManager extends EventDispatcher {
|
|
|
31219
31219
|
It.viewport = new Vector4();
|
|
31220
31220
|
const Nt = new PerspectiveCamera();
|
|
31221
31221
|
Nt.viewport = new Vector4();
|
|
31222
|
-
const
|
|
31222
|
+
const Ft = [It, Nt], jt = new ArrayCamera();
|
|
31223
31223
|
let n0 = null, s0 = null;
|
|
31224
31224
|
this.cameraAutoUpdate = !0, this.enabled = !1, this.isPresenting = !1, this.getController = function(b0) {
|
|
31225
31225
|
let V0 = Zt[b0];
|
|
@@ -31343,14 +31343,14 @@ class WebXRManager extends EventDispatcher {
|
|
|
31343
31343
|
q0 && q0.connect(D0);
|
|
31344
31344
|
}
|
|
31345
31345
|
}
|
|
31346
|
-
const
|
|
31346
|
+
const Kt = new Vector3(), e0 = new Vector3();
|
|
31347
31347
|
function u0(b0, V0, D0) {
|
|
31348
|
-
|
|
31349
|
-
const Si =
|
|
31348
|
+
Kt.setFromMatrixPosition(V0.matrixWorld), e0.setFromMatrixPosition(D0.matrixWorld);
|
|
31349
|
+
const Si = Kt.distanceTo(e0), q0 = V0.projectionMatrix.elements, Wi = D0.projectionMatrix.elements, Ai = q0[14] / (q0[10] - 1), a0 = q0[14] / (q0[10] + 1), P0 = (q0[9] + 1) / q0[5], F0 = (q0[9] - 1) / q0[5], K0 = (q0[8] - 1) / q0[0], I0 = (Wi[8] + 1) / Wi[0], Q0 = Ai * K0, S0 = Ai * I0, L0 = Si / (-K0 + I0), A0 = L0 * -K0;
|
|
31350
31350
|
if (V0.matrixWorld.decompose(b0.position, b0.quaternion, b0.scale), b0.translateX(A0), b0.translateZ(L0), b0.matrixWorld.compose(b0.position, b0.quaternion, b0.scale), b0.matrixWorldInverse.copy(b0.matrixWorld).invert(), q0[10] === -1)
|
|
31351
31351
|
b0.projectionMatrix.copy(V0.projectionMatrix), b0.projectionMatrixInverse.copy(V0.projectionMatrixInverse);
|
|
31352
31352
|
else {
|
|
31353
|
-
const B0 = Ai + L0, r0 = a0 + L0, t0 = Q0 - A0, m0 = S0 + (Si - A0), v0 = P0 * a0 / r0 * B0, k0 =
|
|
31353
|
+
const B0 = Ai + L0, r0 = a0 + L0, t0 = Q0 - A0, m0 = S0 + (Si - A0), v0 = P0 * a0 / r0 * B0, k0 = F0 * a0 / r0 * B0;
|
|
31354
31354
|
b0.projectionMatrix.makePerspective(t0, m0, v0, k0, B0, r0), b0.projectionMatrixInverse.copy(b0.projectionMatrix).invert();
|
|
31355
31355
|
}
|
|
31356
31356
|
}
|
|
@@ -31396,19 +31396,19 @@ class WebXRManager extends EventDispatcher {
|
|
|
31396
31396
|
D0.length !== jt.cameras.length && (jt.cameras.length = 0, Si = !0);
|
|
31397
31397
|
for (let a0 = 0; a0 < D0.length; a0++) {
|
|
31398
31398
|
const P0 = D0[a0];
|
|
31399
|
-
let
|
|
31399
|
+
let F0 = null;
|
|
31400
31400
|
if (Fe !== null)
|
|
31401
|
-
|
|
31401
|
+
F0 = Fe.getViewport(P0);
|
|
31402
31402
|
else {
|
|
31403
31403
|
const I0 = ze.getViewSubImage(ke, P0);
|
|
31404
|
-
|
|
31404
|
+
F0 = I0.viewport, a0 === 0 && (e.setRenderTargetTextures(
|
|
31405
31405
|
Xt,
|
|
31406
31406
|
I0.colorTexture,
|
|
31407
31407
|
I0.depthStencilTexture
|
|
31408
31408
|
), e.setRenderTarget(Xt));
|
|
31409
31409
|
}
|
|
31410
|
-
let
|
|
31411
|
-
|
|
31410
|
+
let K0 = Ft[a0];
|
|
31411
|
+
K0 === void 0 && (K0 = new PerspectiveCamera(), K0.layers.enable(a0), K0.viewport = new Vector4(), Ft[a0] = K0), K0.matrix.fromArray(P0.transform.matrix), K0.matrix.decompose(K0.position, K0.quaternion, K0.scale), K0.projectionMatrix.fromArray(P0.projectionMatrix), K0.projectionMatrixInverse.copy(K0.projectionMatrix).invert(), K0.viewport.set(F0.x, F0.y, F0.width, F0.height), a0 === 0 && (jt.matrix.copy(K0.matrix), jt.matrix.decompose(jt.position, jt.quaternion, jt.scale)), Si === !0 && jt.cameras.push(K0);
|
|
31412
31412
|
}
|
|
31413
31413
|
const q0 = C.enabledFeatures;
|
|
31414
31414
|
if (q0 && q0.includes("depth-sensing") && C.depthUsage == "gpu-optimized" && Lt) {
|
|
@@ -31421,10 +31421,10 @@ class WebXRManager extends EventDispatcher {
|
|
|
31421
31421
|
for (let a0 = 0; a0 < D0.length; a0++) {
|
|
31422
31422
|
const P0 = D0[a0].camera;
|
|
31423
31423
|
if (P0) {
|
|
31424
|
-
let
|
|
31425
|
-
|
|
31426
|
-
const
|
|
31427
|
-
|
|
31424
|
+
let F0 = Ue[P0];
|
|
31425
|
+
F0 || (F0 = new ExternalTexture(), Ue[P0] = F0);
|
|
31426
|
+
const K0 = ze.getCameraImage(P0);
|
|
31427
|
+
F0.sourceTexture = K0;
|
|
31428
31428
|
}
|
|
31429
31429
|
}
|
|
31430
31430
|
}
|
|
@@ -31527,15 +31527,15 @@ function WebGLUniformsGroups(v, e, n, r) {
|
|
|
31527
31527
|
for (let wt = 0, Vt = Xt.length; wt < Vt; wt++) {
|
|
31528
31528
|
const Wt = Array.isArray(Xt[wt]) ? Xt[wt] : [Xt[wt]];
|
|
31529
31529
|
for (let It = 0, Nt = Wt.length; It < Nt; It++) {
|
|
31530
|
-
const
|
|
31531
|
-
if (Fe(
|
|
31532
|
-
const jt =
|
|
31530
|
+
const Ft = Wt[It];
|
|
31531
|
+
if (Fe(Ft, wt, It, Zt) === !0) {
|
|
31532
|
+
const jt = Ft.__offset, n0 = Array.isArray(Ft.value) ? Ft.value : [Ft.value];
|
|
31533
31533
|
let s0 = 0;
|
|
31534
31534
|
for (let qt = 0; qt < n0.length; qt++) {
|
|
31535
31535
|
const Ht = n0[qt], $t = Lt(Ht);
|
|
31536
|
-
typeof Ht == "number" || typeof Ht == "boolean" ? (
|
|
31536
|
+
typeof Ht == "number" || typeof Ht == "boolean" ? (Ft.__data[0] = Ht, v.bufferSubData(v.UNIFORM_BUFFER, jt + s0, Ft.__data)) : Ht.isMatrix3 ? (Ft.__data[0] = Ht.elements[0], Ft.__data[1] = Ht.elements[1], Ft.__data[2] = Ht.elements[2], Ft.__data[3] = 0, Ft.__data[4] = Ht.elements[3], Ft.__data[5] = Ht.elements[4], Ft.__data[6] = Ht.elements[5], Ft.__data[7] = 0, Ft.__data[8] = Ht.elements[6], Ft.__data[9] = Ht.elements[7], Ft.__data[10] = Ht.elements[8], Ft.__data[11] = 0) : (Ht.toArray(Ft.__data, s0), s0 += $t.storage / Float32Array.BYTES_PER_ELEMENT);
|
|
31537
31537
|
}
|
|
31538
|
-
v.bufferSubData(v.UNIFORM_BUFFER, jt,
|
|
31538
|
+
v.bufferSubData(v.UNIFORM_BUFFER, jt, Ft.__data);
|
|
31539
31539
|
}
|
|
31540
31540
|
}
|
|
31541
31541
|
}
|
|
@@ -31561,10 +31561,10 @@ function WebGLUniformsGroups(v, e, n, r) {
|
|
|
31561
31561
|
const Zt = 16;
|
|
31562
31562
|
for (let Vt = 0, Wt = xt.length; Vt < Wt; Vt++) {
|
|
31563
31563
|
const It = Array.isArray(xt[Vt]) ? xt[Vt] : [xt[Vt]];
|
|
31564
|
-
for (let Nt = 0,
|
|
31564
|
+
for (let Nt = 0, Ft = It.length; Nt < Ft; Nt++) {
|
|
31565
31565
|
const jt = It[Nt], n0 = Array.isArray(jt.value) ? jt.value : [jt.value];
|
|
31566
31566
|
for (let s0 = 0, qt = n0.length; s0 < qt; s0++) {
|
|
31567
|
-
const Ht = n0[s0], $t = Lt(Ht),
|
|
31567
|
+
const Ht = n0[s0], $t = Lt(Ht), Kt = Xt % Zt, e0 = Kt % $t.boundary, u0 = Kt + e0;
|
|
31568
31568
|
Xt += e0, u0 !== 0 && Zt - u0 < $t.storage && (Xt += Zt - u0), jt.__data = new Float32Array($t.storage / Float32Array.BYTES_PER_ELEMENT), jt.__offset = Xt, Xt += $t.storage;
|
|
31569
31569
|
}
|
|
31570
31570
|
}
|
|
@@ -31645,10 +31645,10 @@ class WebGLRenderer {
|
|
|
31645
31645
|
let Zt = !1;
|
|
31646
31646
|
this._outputColorSpace = SRGBColorSpace;
|
|
31647
31647
|
let wt = 0, Vt = 0, Wt = null, It = -1, Nt = null;
|
|
31648
|
-
const
|
|
31648
|
+
const Ft = new Vector4(), jt = new Vector4();
|
|
31649
31649
|
let n0 = null;
|
|
31650
31650
|
const s0 = new Color$1(0);
|
|
31651
|
-
let qt = 0, Ht = n.width, $t = n.height,
|
|
31651
|
+
let qt = 0, Ht = n.width, $t = n.height, Kt = 1, e0 = null, u0 = null;
|
|
31652
31652
|
const d0 = new Vector4(0, 0, Ht, $t), _0 = new Vector4(0, 0, Ht, $t);
|
|
31653
31653
|
let J0 = !1;
|
|
31654
31654
|
const H0 = new Frustum();
|
|
@@ -31656,7 +31656,7 @@ class WebGLRenderer {
|
|
|
31656
31656
|
const V0 = new Matrix4(), D0 = new Vector3(), Si = new Vector4(), q0 = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
|
|
31657
31657
|
let Wi = !1;
|
|
31658
31658
|
function Ai() {
|
|
31659
|
-
return Wt === null ?
|
|
31659
|
+
return Wt === null ? Kt : 1;
|
|
31660
31660
|
}
|
|
31661
31661
|
let a0 = r;
|
|
31662
31662
|
function P0(kt, i0) {
|
|
@@ -31681,9 +31681,9 @@ class WebGLRenderer {
|
|
|
31681
31681
|
} catch (kt) {
|
|
31682
31682
|
throw console.error("THREE.WebGLRenderer: " + kt.message), kt;
|
|
31683
31683
|
}
|
|
31684
|
-
let
|
|
31684
|
+
let F0, K0, I0, Q0, S0, L0, A0, B0, r0, t0, m0, v0, k0, C0, Ci, yi, wi, Ei, gi, Ti, Ii, Ni, Gi, zi;
|
|
31685
31685
|
function f0() {
|
|
31686
|
-
|
|
31686
|
+
F0 = new WebGLExtensions(a0), F0.init(), Ni = new WebGLUtils(a0, F0), K0 = new WebGLCapabilities(a0, F0, e, Ni), I0 = new WebGLState(a0, F0), K0.reversedDepthBuffer && ke && I0.buffers.depth.setReversed(!0), Q0 = new WebGLInfo(a0), S0 = new WebGLProperties(), L0 = new WebGLTextures(a0, F0, I0, S0, K0, Ni, Q0), A0 = new WebGLCubeMaps(Xt), B0 = new WebGLCubeUVMaps(Xt), r0 = new WebGLAttributes(a0), Gi = new WebGLBindingStates(a0, r0), t0 = new WebGLGeometries(a0, r0, Q0, Gi), m0 = new WebGLObjects(a0, t0, r0, Q0), gi = new WebGLMorphtargets(a0, K0, L0), yi = new WebGLClipping(S0), v0 = new WebGLPrograms(Xt, A0, B0, F0, K0, Gi, yi), k0 = new WebGLMaterials(Xt, S0), C0 = new WebGLRenderLists(), Ci = new WebGLRenderStates(F0), Ei = new WebGLBackground(Xt, A0, B0, I0, m0, Fe, le), wi = new WebGLShadowMap(Xt, m0, K0), zi = new WebGLUniformsGroups(a0, Q0, K0, I0), Ti = new WebGLBufferRenderer(a0, F0, Q0), Ii = new WebGLIndexedBufferRenderer(a0, F0, Q0), Q0.programs = v0.programs, Xt.capabilities = K0, Xt.extensions = F0, Xt.properties = S0, Xt.renderLists = C0, Xt.shadowMap = wi, Xt.state = I0, Xt.info = Q0;
|
|
31687
31687
|
}
|
|
31688
31688
|
f0();
|
|
31689
31689
|
const xi = new WebXRManager(Xt, a0);
|
|
@@ -31692,15 +31692,15 @@ class WebGLRenderer {
|
|
|
31692
31692
|
}, this.getContextAttributes = function() {
|
|
31693
31693
|
return a0.getContextAttributes();
|
|
31694
31694
|
}, this.forceContextLoss = function() {
|
|
31695
|
-
const kt =
|
|
31695
|
+
const kt = F0.get("WEBGL_lose_context");
|
|
31696
31696
|
kt && kt.loseContext();
|
|
31697
31697
|
}, this.forceContextRestore = function() {
|
|
31698
|
-
const kt =
|
|
31698
|
+
const kt = F0.get("WEBGL_lose_context");
|
|
31699
31699
|
kt && kt.restoreContext();
|
|
31700
31700
|
}, this.getPixelRatio = function() {
|
|
31701
|
-
return
|
|
31701
|
+
return Kt;
|
|
31702
31702
|
}, this.setPixelRatio = function(kt) {
|
|
31703
|
-
kt !== void 0 && (
|
|
31703
|
+
kt !== void 0 && (Kt = kt, this.setSize(Ht, $t, !1));
|
|
31704
31704
|
}, this.getSize = function(kt) {
|
|
31705
31705
|
return kt.set(Ht, $t);
|
|
31706
31706
|
}, this.setSize = function(kt, i0, o0 = !0) {
|
|
@@ -31708,21 +31708,21 @@ class WebGLRenderer {
|
|
|
31708
31708
|
console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");
|
|
31709
31709
|
return;
|
|
31710
31710
|
}
|
|
31711
|
-
Ht = kt, $t = i0, n.width = Math.floor(kt *
|
|
31711
|
+
Ht = kt, $t = i0, n.width = Math.floor(kt * Kt), n.height = Math.floor(i0 * Kt), o0 === !0 && (n.style.width = kt + "px", n.style.height = i0 + "px"), this.setViewport(0, 0, kt, i0);
|
|
31712
31712
|
}, this.getDrawingBufferSize = function(kt) {
|
|
31713
|
-
return kt.set(Ht *
|
|
31713
|
+
return kt.set(Ht * Kt, $t * Kt).floor();
|
|
31714
31714
|
}, this.setDrawingBufferSize = function(kt, i0, o0) {
|
|
31715
|
-
Ht = kt, $t = i0,
|
|
31715
|
+
Ht = kt, $t = i0, Kt = o0, n.width = Math.floor(kt * o0), n.height = Math.floor(i0 * o0), this.setViewport(0, 0, kt, i0);
|
|
31716
31716
|
}, this.getCurrentViewport = function(kt) {
|
|
31717
|
-
return kt.copy(
|
|
31717
|
+
return kt.copy(Ft);
|
|
31718
31718
|
}, this.getViewport = function(kt) {
|
|
31719
31719
|
return kt.copy(d0);
|
|
31720
31720
|
}, this.setViewport = function(kt, i0, o0, c0) {
|
|
31721
|
-
kt.isVector4 ? d0.set(kt.x, kt.y, kt.z, kt.w) : d0.set(kt, i0, o0, c0), I0.viewport(
|
|
31721
|
+
kt.isVector4 ? d0.set(kt.x, kt.y, kt.z, kt.w) : d0.set(kt, i0, o0, c0), I0.viewport(Ft.copy(d0).multiplyScalar(Kt).round());
|
|
31722
31722
|
}, this.getScissor = function(kt) {
|
|
31723
31723
|
return kt.copy(_0);
|
|
31724
31724
|
}, this.setScissor = function(kt, i0, o0, c0) {
|
|
31725
|
-
kt.isVector4 ? _0.set(kt.x, kt.y, kt.z, kt.w) : _0.set(kt, i0, o0, c0), I0.scissor(jt.copy(_0).multiplyScalar(
|
|
31725
|
+
kt.isVector4 ? _0.set(kt.x, kt.y, kt.z, kt.w) : _0.set(kt, i0, o0, c0), I0.scissor(jt.copy(_0).multiplyScalar(Kt).round());
|
|
31726
31726
|
}, this.getScissorTest = function() {
|
|
31727
31727
|
return J0;
|
|
31728
31728
|
}, this.setScissorTest = function(kt) {
|
|
@@ -31812,18 +31812,18 @@ class WebGLRenderer {
|
|
|
31812
31812
|
if (h0.isBatchedMesh)
|
|
31813
31813
|
if (h0._multiDrawInstances !== null)
|
|
31814
31814
|
warnOnce("THREE.WebGLRenderer: renderMultiDrawInstances has been deprecated and will be removed in r184. Append to renderMultiDraw arguments and use indirection."), Vi.renderMultiDrawInstances(h0._multiDrawStarts, h0._multiDrawCounts, h0._multiDrawCount, h0._multiDrawInstances);
|
|
31815
|
-
else if (
|
|
31815
|
+
else if (F0.get("WEBGL_multi_draw"))
|
|
31816
31816
|
Vi.renderMultiDraw(h0._multiDrawStarts, h0._multiDrawCounts, h0._multiDrawCount);
|
|
31817
31817
|
else {
|
|
31818
|
-
const Zi = h0._multiDrawStarts,
|
|
31819
|
-
for (let ji = 0; ji <
|
|
31820
|
-
Hi.setValue(a0, "_gl_DrawID", ji), Vi.render(Zi[ji] / Di,
|
|
31818
|
+
const Zi = h0._multiDrawStarts, Ki = h0._multiDrawCounts, Fi = h0._multiDrawCount, Di = M0 ? r0.get(M0).bytesPerElement : 1, Hi = S0.get(c0).currentProgram.getUniforms();
|
|
31819
|
+
for (let ji = 0; ji < Fi; ji++)
|
|
31820
|
+
Hi.setValue(a0, "_gl_DrawID", ji), Vi.render(Zi[ji] / Di, Ki[ji]);
|
|
31821
31821
|
}
|
|
31822
31822
|
else if (h0.isInstancedMesh)
|
|
31823
31823
|
Vi.renderInstances($0, vi, h0.count);
|
|
31824
31824
|
else if (o0.isInstancedBufferGeometry) {
|
|
31825
|
-
const Zi = o0._maxInstanceCount !== void 0 ? o0._maxInstanceCount : 1 / 0,
|
|
31826
|
-
Vi.renderInstances($0, vi,
|
|
31825
|
+
const Zi = o0._maxInstanceCount !== void 0 ? o0._maxInstanceCount : 1 / 0, Ki = Math.min(o0.instanceCount, Zi);
|
|
31826
|
+
Vi.renderInstances($0, vi, Ki);
|
|
31827
31827
|
} else
|
|
31828
31828
|
Vi.render($0, vi);
|
|
31829
31829
|
};
|
|
@@ -31862,7 +31862,7 @@ class WebGLRenderer {
|
|
|
31862
31862
|
}
|
|
31863
31863
|
setTimeout(l0, 10);
|
|
31864
31864
|
}
|
|
31865
|
-
|
|
31865
|
+
F0.get("KHR_parallel_shader_compile") !== null ? l0() : setTimeout(l0, 10);
|
|
31866
31866
|
});
|
|
31867
31867
|
};
|
|
31868
31868
|
let Qi = null;
|
|
@@ -31940,14 +31940,14 @@ class WebGLRenderer {
|
|
|
31940
31940
|
}
|
|
31941
31941
|
function Ln(kt, i0, o0, c0) {
|
|
31942
31942
|
const h0 = kt.opaque, l0 = kt.transmissive, T0 = kt.transparent;
|
|
31943
|
-
Ue.setupLightsView(o0), bi === !0 && yi.setGlobalState(Xt.clippingPlanes, o0), c0 && I0.viewport(
|
|
31943
|
+
Ue.setupLightsView(o0), bi === !0 && yi.setGlobalState(Xt.clippingPlanes, o0), c0 && I0.viewport(Ft.copy(c0)), h0.length > 0 && fn(h0, i0, o0), l0.length > 0 && fn(l0, i0, o0), T0.length > 0 && fn(T0, i0, o0), I0.buffers.depth.setTest(!0), I0.buffers.depth.setMask(!0), I0.buffers.color.setMask(!0), I0.setPolygonOffset(!1);
|
|
31944
31944
|
}
|
|
31945
31945
|
function Tn(kt, i0, o0, c0) {
|
|
31946
31946
|
if ((o0.isScene === !0 ? o0.overrideMaterial : null) !== null)
|
|
31947
31947
|
return;
|
|
31948
31948
|
Ue.state.transmissionRenderTarget[c0.id] === void 0 && (Ue.state.transmissionRenderTarget[c0.id] = new WebGLRenderTarget(1, 1, {
|
|
31949
31949
|
generateMipmaps: !0,
|
|
31950
|
-
type:
|
|
31950
|
+
type: F0.has("EXT_color_buffer_half_float") || F0.has("EXT_color_buffer_float") ? HalfFloatType : UnsignedByteType,
|
|
31951
31951
|
minFilter: LinearMipmapLinearFilter,
|
|
31952
31952
|
samples: 4,
|
|
31953
31953
|
stencilBuffer: w,
|
|
@@ -31955,20 +31955,20 @@ class WebGLRenderer {
|
|
|
31955
31955
|
resolveStencilBuffer: !1,
|
|
31956
31956
|
colorSpace: ColorManagement.workingColorSpace
|
|
31957
31957
|
}));
|
|
31958
|
-
const l0 = Ue.state.transmissionRenderTarget[c0.id], T0 = c0.viewport ||
|
|
31958
|
+
const l0 = Ue.state.transmissionRenderTarget[c0.id], T0 = c0.viewport || Ft;
|
|
31959
31959
|
l0.setSize(T0.z * Xt.transmissionResolutionScale, T0.w * Xt.transmissionResolutionScale);
|
|
31960
31960
|
const G0 = Xt.getRenderTarget(), M0 = Xt.getActiveCubeFace(), w0 = Xt.getActiveMipmapLevel();
|
|
31961
31961
|
Xt.setRenderTarget(l0), Xt.getClearColor(s0), qt = Xt.getClearAlpha(), qt < 1 && Xt.setClearColor(16777215, 0.5), Xt.clear(), Wi && Ei.render(o0);
|
|
31962
31962
|
const U0 = Xt.toneMapping;
|
|
31963
31963
|
Xt.toneMapping = NoToneMapping;
|
|
31964
31964
|
const N0 = c0.viewport;
|
|
31965
|
-
if (c0.viewport !== void 0 && (c0.viewport = void 0), Ue.setupLightsView(c0), bi === !0 && yi.setGlobalState(Xt.clippingPlanes, c0), fn(kt, o0, c0), L0.updateMultisampleRenderTarget(l0), L0.updateRenderTargetMipmap(l0),
|
|
31965
|
+
if (c0.viewport !== void 0 && (c0.viewport = void 0), Ue.setupLightsView(c0), bi === !0 && yi.setGlobalState(Xt.clippingPlanes, c0), fn(kt, o0, c0), L0.updateMultisampleRenderTarget(l0), L0.updateRenderTargetMipmap(l0), F0.has("WEBGL_multisampled_render_to_texture") === !1) {
|
|
31966
31966
|
let $0 = !1;
|
|
31967
31967
|
for (let Ri = 0, vi = i0.length; Ri < vi; Ri++) {
|
|
31968
|
-
const Li = i0[Ri], Vi = Li.object, Zi = Li.geometry,
|
|
31969
|
-
if (
|
|
31970
|
-
const Di =
|
|
31971
|
-
|
|
31968
|
+
const Li = i0[Ri], Vi = Li.object, Zi = Li.geometry, Ki = Li.material, Fi = Li.group;
|
|
31969
|
+
if (Ki.side === DoubleSide && Vi.layers.test(c0.layers)) {
|
|
31970
|
+
const Di = Ki.side;
|
|
31971
|
+
Ki.side = BackSide, Ki.needsUpdate = !0, Cn(Vi, o0, c0, Zi, Ki, Fi), Ki.side = Di, Ki.needsUpdate = !0, $0 = !0;
|
|
31972
31972
|
}
|
|
31973
31973
|
}
|
|
31974
31974
|
$0 === !0 && (L0.updateMultisampleRenderTarget(l0), L0.updateRenderTargetMipmap(l0));
|
|
@@ -32016,21 +32016,21 @@ class WebGLRenderer {
|
|
|
32016
32016
|
const l0 = i0.fog, T0 = c0.isMeshStandardMaterial ? i0.environment : null, G0 = Wt === null ? Xt.outputColorSpace : Wt.isXRRenderTarget === !0 ? Wt.texture.colorSpace : LinearSRGBColorSpace, M0 = (c0.isMeshStandardMaterial ? B0 : A0).get(c0.envMap || T0), w0 = c0.vertexColors === !0 && !!o0.attributes.color && o0.attributes.color.itemSize === 4, U0 = !!o0.attributes.tangent && (!!c0.normalMap || c0.anisotropy > 0), N0 = !!o0.morphAttributes.position, $0 = !!o0.morphAttributes.normal, Ri = !!o0.morphAttributes.color;
|
|
32017
32017
|
let vi = NoToneMapping;
|
|
32018
32018
|
c0.toneMapped && (Wt === null || Wt.isXRRenderTarget === !0) && (vi = Xt.toneMapping);
|
|
32019
|
-
const Li = o0.morphAttributes.position || o0.morphAttributes.normal || o0.morphAttributes.color, Vi = Li !== void 0 ? Li.length : 0, Zi = S0.get(c0),
|
|
32019
|
+
const Li = o0.morphAttributes.position || o0.morphAttributes.normal || o0.morphAttributes.color, Vi = Li !== void 0 ? Li.length : 0, Zi = S0.get(c0), Ki = Ue.state.lights;
|
|
32020
32020
|
if (bi === !0 && (b0 === !0 || kt !== Nt)) {
|
|
32021
32021
|
const qi = kt === Nt && c0.id === It;
|
|
32022
32022
|
yi.setState(c0, kt, qi);
|
|
32023
32023
|
}
|
|
32024
|
-
let
|
|
32025
|
-
c0.version === Zi.__version ? (Zi.needsLights && Zi.lightsStateVersion !==
|
|
32024
|
+
let Fi = !1;
|
|
32025
|
+
c0.version === Zi.__version ? (Zi.needsLights && Zi.lightsStateVersion !== Ki.state.version || Zi.outputColorSpace !== G0 || h0.isBatchedMesh && Zi.batching === !1 || !h0.isBatchedMesh && Zi.batching === !0 || h0.isBatchedMesh && Zi.batchingColor === !0 && h0.colorTexture === null || h0.isBatchedMesh && Zi.batchingColor === !1 && h0.colorTexture !== null || h0.isInstancedMesh && Zi.instancing === !1 || !h0.isInstancedMesh && Zi.instancing === !0 || h0.isSkinnedMesh && Zi.skinning === !1 || !h0.isSkinnedMesh && Zi.skinning === !0 || h0.isInstancedMesh && Zi.instancingColor === !0 && h0.instanceColor === null || h0.isInstancedMesh && Zi.instancingColor === !1 && h0.instanceColor !== null || h0.isInstancedMesh && Zi.instancingMorph === !0 && h0.morphTexture === null || h0.isInstancedMesh && Zi.instancingMorph === !1 && h0.morphTexture !== null || Zi.envMap !== M0 || c0.fog === !0 && Zi.fog !== l0 || Zi.numClippingPlanes !== void 0 && (Zi.numClippingPlanes !== yi.numPlanes || Zi.numIntersection !== yi.numIntersection) || Zi.vertexAlphas !== w0 || Zi.vertexTangents !== U0 || Zi.morphTargets !== N0 || Zi.morphNormals !== $0 || Zi.morphColors !== Ri || Zi.toneMapping !== vi || Zi.morphTargetsCount !== Vi) && (Fi = !0) : (Fi = !0, Zi.__version = c0.version);
|
|
32026
32026
|
let Di = Zi.currentProgram;
|
|
32027
|
-
|
|
32027
|
+
Fi === !0 && (Di = yn(c0, i0, h0));
|
|
32028
32028
|
let Hi = !1, ji = !1, nn = !1;
|
|
32029
32029
|
const Yi = Di.getUniforms(), Bi = Zi.uniforms;
|
|
32030
32030
|
if (I0.useProgram(Di.program) && (Hi = !0, ji = !0, nn = !0), c0.id !== It && (It = c0.id, ji = !0), Hi || Nt !== kt) {
|
|
32031
32031
|
I0.buffers.depth.getReversed() && kt.reversedDepth !== !0 && (kt._reversedDepth = !0, kt.updateProjectionMatrix()), Yi.setValue(a0, "projectionMatrix", kt.projectionMatrix), Yi.setValue(a0, "viewMatrix", kt.matrixWorldInverse);
|
|
32032
32032
|
const on = Yi.map.cameraPosition;
|
|
32033
|
-
on !== void 0 && on.setValue(a0, D0.setFromMatrixPosition(kt.matrixWorld)),
|
|
32033
|
+
on !== void 0 && on.setValue(a0, D0.setFromMatrixPosition(kt.matrixWorld)), K0.logarithmicDepthBuffer && Yi.setValue(
|
|
32034
32034
|
a0,
|
|
32035
32035
|
"logDepthBufFC",
|
|
32036
32036
|
2 / (Math.log(kt.far + 1) / Math.LN2)
|
|
@@ -32043,7 +32043,7 @@ class WebGLRenderer {
|
|
|
32043
32043
|
}
|
|
32044
32044
|
h0.isBatchedMesh && (Yi.setOptional(a0, h0, "batchingTexture"), Yi.setValue(a0, "batchingTexture", h0._matricesTexture, L0), Yi.setOptional(a0, h0, "batchingIdTexture"), Yi.setValue(a0, "batchingIdTexture", h0._indirectTexture, L0), Yi.setOptional(a0, h0, "batchingColorTexture"), h0._colorsTexture !== null && Yi.setValue(a0, "batchingColorTexture", h0._colorsTexture, L0));
|
|
32045
32045
|
const Ji = o0.morphAttributes;
|
|
32046
|
-
if ((Ji.position !== void 0 || Ji.normal !== void 0 || Ji.color !== void 0) && gi.update(h0, o0, Di), (ji || Zi.receiveShadow !== h0.receiveShadow) && (Zi.receiveShadow = h0.receiveShadow, Yi.setValue(a0, "receiveShadow", h0.receiveShadow)), c0.isMeshGouraudMaterial && c0.envMap !== null && (Bi.envMap.value = M0, Bi.flipEnvMap.value = M0.isCubeTexture && M0.isRenderTargetTexture === !1 ? -1 : 1), c0.isMeshStandardMaterial && c0.envMap === null && i0.environment !== null && (Bi.envMapIntensity.value = i0.environmentIntensity), ji && (Yi.setValue(a0, "toneMappingExposure", Xt.toneMappingExposure), Zi.needsLights && Zn(Bi, nn), l0 && c0.fog === !0 && k0.refreshFogUniforms(Bi, l0), k0.refreshMaterialUniforms(Bi, c0,
|
|
32046
|
+
if ((Ji.position !== void 0 || Ji.normal !== void 0 || Ji.color !== void 0) && gi.update(h0, o0, Di), (ji || Zi.receiveShadow !== h0.receiveShadow) && (Zi.receiveShadow = h0.receiveShadow, Yi.setValue(a0, "receiveShadow", h0.receiveShadow)), c0.isMeshGouraudMaterial && c0.envMap !== null && (Bi.envMap.value = M0, Bi.flipEnvMap.value = M0.isCubeTexture && M0.isRenderTargetTexture === !1 ? -1 : 1), c0.isMeshStandardMaterial && c0.envMap === null && i0.environment !== null && (Bi.envMapIntensity.value = i0.environmentIntensity), ji && (Yi.setValue(a0, "toneMappingExposure", Xt.toneMappingExposure), Zi.needsLights && Zn(Bi, nn), l0 && c0.fog === !0 && k0.refreshFogUniforms(Bi, l0), k0.refreshMaterialUniforms(Bi, c0, Kt, $t, Ue.state.transmissionRenderTarget[kt.id]), WebGLUniforms.upload(a0, Xn(Zi), Bi, L0)), c0.isShaderMaterial && c0.uniformsNeedUpdate === !0 && (WebGLUniforms.upload(a0, Xn(Zi), Bi, L0), c0.uniformsNeedUpdate = !1), c0.isSpriteMaterial && Yi.setValue(a0, "center", h0.center), Yi.setValue(a0, "modelViewMatrix", h0.modelViewMatrix), Yi.setValue(a0, "normalMatrix", h0.normalMatrix), Yi.setValue(a0, "modelMatrix", h0.matrixWorld), c0.isShaderMaterial || c0.isRawShaderMaterial) {
|
|
32047
32047
|
const qi = c0.uniformsGroups;
|
|
32048
32048
|
for (let on = 0, ln = qi.length; on < ln; on++) {
|
|
32049
32049
|
const hn = qi[on];
|
|
@@ -32094,10 +32094,10 @@ class WebGLRenderer {
|
|
|
32094
32094
|
const w0 = kt.texture;
|
|
32095
32095
|
(w0.isData3DTexture || w0.isDataArrayTexture || w0.isCompressedArrayTexture) && (T0 = !0);
|
|
32096
32096
|
const U0 = S0.get(kt).__webglFramebuffer;
|
|
32097
|
-
kt.isWebGLCubeRenderTarget ? (Array.isArray(U0[i0]) ? h0 = U0[i0][o0] : h0 = U0[i0], l0 = !0) : kt.samples > 0 && L0.useMultisampledRTT(kt) === !1 ? h0 = S0.get(kt).__webglMultisampledFramebuffer : Array.isArray(U0) ? h0 = U0[o0] : h0 = U0,
|
|
32097
|
+
kt.isWebGLCubeRenderTarget ? (Array.isArray(U0[i0]) ? h0 = U0[i0][o0] : h0 = U0[i0], l0 = !0) : kt.samples > 0 && L0.useMultisampledRTT(kt) === !1 ? h0 = S0.get(kt).__webglMultisampledFramebuffer : Array.isArray(U0) ? h0 = U0[o0] : h0 = U0, Ft.copy(kt.viewport), jt.copy(kt.scissor), n0 = kt.scissorTest;
|
|
32098
32098
|
} else
|
|
32099
|
-
|
|
32100
|
-
if (o0 !== 0 && (h0 = mn), I0.bindFramebuffer(a0.FRAMEBUFFER, h0) && c0 && I0.drawBuffers(kt, h0), I0.viewport(
|
|
32099
|
+
Ft.copy(d0).multiplyScalar(Kt).floor(), jt.copy(_0).multiplyScalar(Kt).floor(), n0 = J0;
|
|
32100
|
+
if (o0 !== 0 && (h0 = mn), I0.bindFramebuffer(a0.FRAMEBUFFER, h0) && c0 && I0.drawBuffers(kt, h0), I0.viewport(Ft), I0.scissor(jt), I0.setScissorTest(n0), l0) {
|
|
32101
32101
|
const M0 = S0.get(kt.texture);
|
|
32102
32102
|
a0.framebufferTexture2D(a0.FRAMEBUFFER, a0.COLOR_ATTACHMENT0, a0.TEXTURE_CUBE_MAP_POSITIVE_X + i0, M0.__webglTexture, o0);
|
|
32103
32103
|
} else if (T0) {
|
|
@@ -32121,11 +32121,11 @@ class WebGLRenderer {
|
|
|
32121
32121
|
I0.bindFramebuffer(a0.FRAMEBUFFER, M0);
|
|
32122
32122
|
try {
|
|
32123
32123
|
const w0 = kt.textures[G0], U0 = w0.format, N0 = w0.type;
|
|
32124
|
-
if (!
|
|
32124
|
+
if (!K0.textureFormatReadable(U0)) {
|
|
32125
32125
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
|
|
32126
32126
|
return;
|
|
32127
32127
|
}
|
|
32128
|
-
if (!
|
|
32128
|
+
if (!K0.textureTypeReadable(N0)) {
|
|
32129
32129
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
32130
32130
|
return;
|
|
32131
32131
|
}
|
|
@@ -32144,9 +32144,9 @@ class WebGLRenderer {
|
|
|
32144
32144
|
if (i0 >= 0 && i0 <= kt.width - c0 && o0 >= 0 && o0 <= kt.height - h0) {
|
|
32145
32145
|
I0.bindFramebuffer(a0.FRAMEBUFFER, M0);
|
|
32146
32146
|
const w0 = kt.textures[G0], U0 = w0.format, N0 = w0.type;
|
|
32147
|
-
if (!
|
|
32147
|
+
if (!K0.textureFormatReadable(U0))
|
|
32148
32148
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");
|
|
32149
|
-
if (!
|
|
32149
|
+
if (!K0.textureTypeReadable(N0))
|
|
32150
32150
|
throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
32151
32151
|
const $0 = a0.createBuffer();
|
|
32152
32152
|
a0.bindBuffer(a0.PIXEL_PACK_BUFFER, $0), a0.bufferData(a0.PIXEL_PACK_BUFFER, l0.byteLength, a0.STREAM_READ), kt.textures.length > 1 && a0.readBuffer(a0.COLOR_ATTACHMENT0 + G0), a0.readPixels(i0, o0, c0, h0, Ni.convert(U0), Ni.convert(N0), 0);
|
|
@@ -32174,9 +32174,9 @@ class WebGLRenderer {
|
|
|
32174
32174
|
}
|
|
32175
32175
|
c0 !== null ? ($0 = c0.x, Ri = c0.y, vi = c0.z) : ($0 = 0, Ri = 0, vi = 0);
|
|
32176
32176
|
const Vi = Ni.convert(i0.format), Zi = Ni.convert(i0.type);
|
|
32177
|
-
let
|
|
32178
|
-
i0.isData3DTexture ? (L0.setTexture3D(i0, 0),
|
|
32179
|
-
const
|
|
32177
|
+
let Ki;
|
|
32178
|
+
i0.isData3DTexture ? (L0.setTexture3D(i0, 0), Ki = a0.TEXTURE_3D) : i0.isDataArrayTexture || i0.isCompressedArrayTexture ? (L0.setTexture2DArray(i0, 0), Ki = a0.TEXTURE_2D_ARRAY) : (L0.setTexture2D(i0, 0), Ki = a0.TEXTURE_2D), a0.pixelStorei(a0.UNPACK_FLIP_Y_WEBGL, i0.flipY), a0.pixelStorei(a0.UNPACK_PREMULTIPLY_ALPHA_WEBGL, i0.premultiplyAlpha), a0.pixelStorei(a0.UNPACK_ALIGNMENT, i0.unpackAlignment);
|
|
32179
|
+
const Fi = a0.getParameter(a0.UNPACK_ROW_LENGTH), Di = a0.getParameter(a0.UNPACK_IMAGE_HEIGHT), Hi = a0.getParameter(a0.UNPACK_SKIP_PIXELS), ji = a0.getParameter(a0.UNPACK_SKIP_ROWS), nn = a0.getParameter(a0.UNPACK_SKIP_IMAGES);
|
|
32180
32180
|
a0.pixelStorei(a0.UNPACK_ROW_LENGTH, Li.width), a0.pixelStorei(a0.UNPACK_IMAGE_HEIGHT, Li.height), a0.pixelStorei(a0.UNPACK_SKIP_PIXELS, w0), a0.pixelStorei(a0.UNPACK_SKIP_ROWS, U0), a0.pixelStorei(a0.UNPACK_SKIP_IMAGES, N0);
|
|
32181
32181
|
const Yi = kt.isDataArrayTexture || kt.isData3DTexture, Bi = i0.isDataArrayTexture || i0.isData3DTexture;
|
|
32182
32182
|
if (kt.isDepthTexture) {
|
|
@@ -32189,11 +32189,11 @@ class WebGLRenderer {
|
|
|
32189
32189
|
const Ji = S0.get(kt), qi = S0.get(i0);
|
|
32190
32190
|
I0.bindFramebuffer(a0.READ_FRAMEBUFFER, un), I0.bindFramebuffer(a0.DRAW_FRAMEBUFFER, Yt);
|
|
32191
32191
|
for (let on = 0; on < M0; on++)
|
|
32192
|
-
Yi ? a0.framebufferTextureLayer(a0.READ_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, Ji.__webglTexture, h0, N0 + on) : a0.framebufferTexture2D(a0.READ_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, a0.TEXTURE_2D, Ji.__webglTexture, h0), Bi ? a0.framebufferTextureLayer(a0.DRAW_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, qi.__webglTexture, l0, vi + on) : a0.framebufferTexture2D(a0.DRAW_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, a0.TEXTURE_2D, qi.__webglTexture, l0), h0 !== 0 ? a0.blitFramebuffer(w0, U0, T0, G0, $0, Ri, T0, G0, a0.COLOR_BUFFER_BIT, a0.NEAREST) : Bi ? a0.copyTexSubImage3D(
|
|
32192
|
+
Yi ? a0.framebufferTextureLayer(a0.READ_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, Ji.__webglTexture, h0, N0 + on) : a0.framebufferTexture2D(a0.READ_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, a0.TEXTURE_2D, Ji.__webglTexture, h0), Bi ? a0.framebufferTextureLayer(a0.DRAW_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, qi.__webglTexture, l0, vi + on) : a0.framebufferTexture2D(a0.DRAW_FRAMEBUFFER, a0.COLOR_ATTACHMENT0, a0.TEXTURE_2D, qi.__webglTexture, l0), h0 !== 0 ? a0.blitFramebuffer(w0, U0, T0, G0, $0, Ri, T0, G0, a0.COLOR_BUFFER_BIT, a0.NEAREST) : Bi ? a0.copyTexSubImage3D(Ki, l0, $0, Ri, vi + on, w0, U0, T0, G0) : a0.copyTexSubImage2D(Ki, l0, $0, Ri, w0, U0, T0, G0);
|
|
32193
32193
|
I0.bindFramebuffer(a0.READ_FRAMEBUFFER, null), I0.bindFramebuffer(a0.DRAW_FRAMEBUFFER, null);
|
|
32194
32194
|
} else
|
|
32195
|
-
Bi ? kt.isDataTexture || kt.isData3DTexture ? a0.texSubImage3D(
|
|
32196
|
-
a0.pixelStorei(a0.UNPACK_ROW_LENGTH,
|
|
32195
|
+
Bi ? kt.isDataTexture || kt.isData3DTexture ? a0.texSubImage3D(Ki, l0, $0, Ri, vi, T0, G0, M0, Vi, Zi, Li.data) : i0.isCompressedArrayTexture ? a0.compressedTexSubImage3D(Ki, l0, $0, Ri, vi, T0, G0, M0, Vi, Li.data) : a0.texSubImage3D(Ki, l0, $0, Ri, vi, T0, G0, M0, Vi, Zi, Li) : kt.isDataTexture ? a0.texSubImage2D(a0.TEXTURE_2D, l0, $0, Ri, T0, G0, Vi, Zi, Li.data) : kt.isCompressedTexture ? a0.compressedTexSubImage2D(a0.TEXTURE_2D, l0, $0, Ri, Li.width, Li.height, Vi, Li.data) : a0.texSubImage2D(a0.TEXTURE_2D, l0, $0, Ri, T0, G0, Vi, Zi, Li);
|
|
32196
|
+
a0.pixelStorei(a0.UNPACK_ROW_LENGTH, Fi), a0.pixelStorei(a0.UNPACK_IMAGE_HEIGHT, Di), a0.pixelStorei(a0.UNPACK_SKIP_PIXELS, Hi), a0.pixelStorei(a0.UNPACK_SKIP_ROWS, ji), a0.pixelStorei(a0.UNPACK_SKIP_IMAGES, nn), l0 === 0 && i0.generateMipmaps && a0.generateMipmap(Ki), I0.unbindTexture();
|
|
32197
32197
|
}, this.initRenderTarget = function(kt) {
|
|
32198
32198
|
S0.get(kt).__webglFramebuffer === void 0 && L0.setupRenderTarget(kt);
|
|
32199
32199
|
}, this.initTexture = function(kt) {
|
|
@@ -33872,14 +33872,14 @@ function polygonContains(v, e) {
|
|
|
33872
33872
|
for (var fe = 0, Se = v.length; fe < Se; ++fe)
|
|
33873
33873
|
if (ke = (ze = v[fe]).length)
|
|
33874
33874
|
for (var ze, ke, Fe = ze[ke - 1], mt = longitude(Fe), Lt = Fe[1] / 2 + quarterPi, bt = sin$2(Lt), Ue = cos$2(Lt), Gt = 0; Gt < ke; ++Gt, mt = Xt, bt = wt, Ue = Vt, Fe = xt) {
|
|
33875
|
-
var xt = ze[Gt], Xt = longitude(xt), Zt = xt[1] / 2 + quarterPi, wt = sin$2(Zt), Vt = cos$2(Zt), Wt = Xt - mt, It = Wt >= 0 ? 1 : -1, Nt = It * Wt,
|
|
33876
|
-
if (le.add(atan2$1(jt * It * sin$2(Nt), Ue * Vt + jt * cos$2(Nt))), E +=
|
|
33875
|
+
var xt = ze[Gt], Xt = longitude(xt), Zt = xt[1] / 2 + quarterPi, wt = sin$2(Zt), Vt = cos$2(Zt), Wt = Xt - mt, It = Wt >= 0 ? 1 : -1, Nt = It * Wt, Ft = Nt > pi$3, jt = bt * wt;
|
|
33876
|
+
if (le.add(atan2$1(jt * It * sin$2(Nt), Ue * Vt + jt * cos$2(Nt))), E += Ft ? Wt + It * tau$1 : Wt, Ft ^ mt >= n ^ Xt >= n) {
|
|
33877
33877
|
var n0 = cartesianCross$1(cartesian$1(Fe), cartesian$1(xt));
|
|
33878
33878
|
cartesianNormalizeInPlace(n0);
|
|
33879
33879
|
var s0 = cartesianCross$1(w, n0);
|
|
33880
33880
|
cartesianNormalizeInPlace(s0);
|
|
33881
|
-
var qt = (
|
|
33882
|
-
(r > qt || r === qt && (n0[0] || n0[1])) && (O +=
|
|
33881
|
+
var qt = (Ft ^ Wt >= 0 ? -1 : 1) * asin$1(s0[2]);
|
|
33882
|
+
(r > qt || r === qt && (n0[0] || n0[1])) && (O += Ft ^ Wt >= 0 ? 1 : -1);
|
|
33883
33883
|
}
|
|
33884
33884
|
}
|
|
33885
33885
|
return (E < -epsilon$3 || E < epsilon$3 && le < -epsilon2) ^ O & 1;
|
|
@@ -34022,15 +34022,15 @@ function clipCircle(v) {
|
|
|
34022
34022
|
if (!xt) return !ke && Se;
|
|
34023
34023
|
var Xt = e * Ue / xt, Zt = -e * Gt / xt, wt = cartesianCross$1(Lt, bt), Vt = cartesianScale(Lt, Xt), Wt = cartesianScale(bt, Zt);
|
|
34024
34024
|
cartesianAddInPlace(Vt, Wt);
|
|
34025
|
-
var It = wt, Nt = cartesianDot$1(Vt, It),
|
|
34025
|
+
var It = wt, Nt = cartesianDot$1(Vt, It), Ft = cartesianDot$1(It, It), jt = Nt * Nt - Ft * (cartesianDot$1(Vt, Vt) - 1);
|
|
34026
34026
|
if (!(jt < 0)) {
|
|
34027
|
-
var n0 = sqrt$2(jt), s0 = cartesianScale(It, (-Nt - n0) /
|
|
34027
|
+
var n0 = sqrt$2(jt), s0 = cartesianScale(It, (-Nt - n0) / Ft);
|
|
34028
34028
|
if (cartesianAddInPlace(s0, Vt), s0 = spherical$1(s0), !ke) return s0;
|
|
34029
|
-
var qt = Se[0], Ht = ze[0], $t = Se[1],
|
|
34029
|
+
var qt = Se[0], Ht = ze[0], $t = Se[1], Kt = ze[1], e0;
|
|
34030
34030
|
Ht < qt && (e0 = qt, qt = Ht, Ht = e0);
|
|
34031
34031
|
var u0 = Ht - qt, d0 = abs$1(u0 - pi$3) < epsilon$3, _0 = d0 || u0 < epsilon$3;
|
|
34032
|
-
if (!d0 &&
|
|
34033
|
-
var J0 = cartesianScale(It, (-Nt + n0) /
|
|
34032
|
+
if (!d0 && Kt < $t && (e0 = $t, $t = Kt, Kt = e0), _0 ? d0 ? $t + Kt > 0 ^ s0[1] < (abs$1(s0[0] - qt) < epsilon$3 ? $t : Kt) : $t <= s0[1] && s0[1] <= Kt : u0 > pi$3 ^ (qt <= s0[0] && s0[0] <= Ht)) {
|
|
34033
|
+
var J0 = cartesianScale(It, (-Nt + n0) / Ft);
|
|
34034
34034
|
return cartesianAddInPlace(J0, Vt), [s0, spherical$1(J0)];
|
|
34035
34035
|
}
|
|
34036
34036
|
}
|
|
@@ -34111,21 +34111,21 @@ function clipRectangle(v, e, n, r) {
|
|
|
34111
34111
|
lineStart: jt,
|
|
34112
34112
|
lineEnd: n0,
|
|
34113
34113
|
polygonStart: Nt,
|
|
34114
|
-
polygonEnd:
|
|
34114
|
+
polygonEnd: Ft
|
|
34115
34115
|
};
|
|
34116
34116
|
function Wt(qt, Ht) {
|
|
34117
34117
|
C(qt, Ht) && Se.point(qt, Ht);
|
|
34118
34118
|
}
|
|
34119
34119
|
function It() {
|
|
34120
34120
|
for (var qt = 0, Ht = 0, $t = Fe.length; Ht < $t; ++Ht)
|
|
34121
|
-
for (var
|
|
34122
|
-
_0 = H0, J0 = bi, d0 =
|
|
34121
|
+
for (var Kt = Fe[Ht], e0 = 1, u0 = Kt.length, d0 = Kt[0], _0, J0, H0 = d0[0], bi = d0[1]; e0 < u0; ++e0)
|
|
34122
|
+
_0 = H0, J0 = bi, d0 = Kt[e0], H0 = d0[0], bi = d0[1], J0 <= r ? bi > r && (H0 - _0) * (r - J0) > (bi - J0) * (v - _0) && ++qt : bi <= r && (H0 - _0) * (r - J0) < (bi - J0) * (v - _0) && --qt;
|
|
34123
34123
|
return qt;
|
|
34124
34124
|
}
|
|
34125
34125
|
function Nt() {
|
|
34126
34126
|
Se = ze, ke = [], Fe = [], wt = !0;
|
|
34127
34127
|
}
|
|
34128
|
-
function
|
|
34128
|
+
function Ft() {
|
|
34129
34129
|
var qt = It(), Ht = wt && qt, $t = (ke = merge(ke)).length;
|
|
34130
34130
|
(Ht || $t) && (fe.polygonStart(), Ht && (fe.lineStart(), w(null, null, 1, fe), fe.lineEnd()), $t && clipRejoin(ke, O, qt, w, fe), fe.polygonEnd()), Se = fe, ke = Fe = mt = null;
|
|
34131
34131
|
}
|
|
@@ -34141,8 +34141,8 @@ function clipRectangle(v, e, n, r) {
|
|
|
34141
34141
|
Lt = qt, bt = Ht, Ue = $t, Zt = !1, $t && (Se.lineStart(), Se.point(qt, Ht));
|
|
34142
34142
|
else if ($t && Xt) Se.point(qt, Ht);
|
|
34143
34143
|
else {
|
|
34144
|
-
var
|
|
34145
|
-
clipLine(
|
|
34144
|
+
var Kt = [Gt = Math.max(clipMin, Math.min(clipMax, Gt)), xt = Math.max(clipMin, Math.min(clipMax, xt))], e0 = [qt = Math.max(clipMin, Math.min(clipMax, qt)), Ht = Math.max(clipMin, Math.min(clipMax, Ht))];
|
|
34145
|
+
clipLine(Kt, e0, v, e, n, r) ? (Xt || (Se.lineStart(), Se.point(Kt[0], Kt[1])), Se.point(e0[0], e0[1]), $t || Se.lineEnd(), wt = !1) : $t && (Se.lineStart(), Se.point(qt, Ht), wt = !1);
|
|
34146
34146
|
}
|
|
34147
34147
|
Gt = qt, xt = Ht, Xt = $t;
|
|
34148
34148
|
}
|
|
@@ -34339,8 +34339,8 @@ function resample$1(v, e) {
|
|
|
34339
34339
|
function n(r, C, w, E, O, le, fe, Se, ze, ke, Fe, mt, Lt, bt) {
|
|
34340
34340
|
var Ue = fe - r, Gt = Se - C, xt = Ue * Ue + Gt * Gt;
|
|
34341
34341
|
if (xt > 4 * e && Lt--) {
|
|
34342
|
-
var Xt = E + ke, Zt = O + Fe, wt = le + mt, Vt = sqrt$2(Xt * Xt + Zt * Zt + wt * wt), Wt = asin$1(wt /= Vt), It = abs$1(abs$1(wt) - 1) < epsilon$3 || abs$1(w - ze) < epsilon$3 ? (w + ze) / 2 : atan2$1(Zt, Xt), Nt = v(It, Wt),
|
|
34343
|
-
(qt * qt / xt > e || abs$1((Ue * n0 + Gt * s0) / xt - 0.5) > 0.3 || E * ke + O * Fe + le * mt < cosMinDistance) && (n(r, C, w, E, O, le,
|
|
34342
|
+
var Xt = E + ke, Zt = O + Fe, wt = le + mt, Vt = sqrt$2(Xt * Xt + Zt * Zt + wt * wt), Wt = asin$1(wt /= Vt), It = abs$1(abs$1(wt) - 1) < epsilon$3 || abs$1(w - ze) < epsilon$3 ? (w + ze) / 2 : atan2$1(Zt, Xt), Nt = v(It, Wt), Ft = Nt[0], jt = Nt[1], n0 = Ft - r, s0 = jt - C, qt = Gt * n0 - Ue * s0;
|
|
34343
|
+
(qt * qt / xt > e || abs$1((Ue * n0 + Gt * s0) / xt - 0.5) > 0.3 || E * ke + O * Fe + le * mt < cosMinDistance) && (n(r, C, w, E, O, le, Ft, jt, It, Xt /= Vt, Zt /= Vt, wt, Lt, bt), bt.point(Ft, jt), n(Ft, jt, It, Xt, Zt, wt, fe, Se, ze, ke, Fe, mt, Lt, bt));
|
|
34344
34344
|
}
|
|
34345
34345
|
}
|
|
34346
34346
|
return function(r) {
|
|
@@ -34362,8 +34362,8 @@ function resample$1(v, e) {
|
|
|
34362
34362
|
ze = NaN, bt.point = xt, r.lineStart();
|
|
34363
34363
|
}
|
|
34364
34364
|
function xt(Wt, It) {
|
|
34365
|
-
var Nt = cartesian$1([Wt, It]),
|
|
34366
|
-
n(ze, ke, Se, Fe, mt, Lt, ze =
|
|
34365
|
+
var Nt = cartesian$1([Wt, It]), Ft = v(Wt, It);
|
|
34366
|
+
n(ze, ke, Se, Fe, mt, Lt, ze = Ft[0], ke = Ft[1], Se = Wt, Fe = Nt[0], mt = Nt[1], Lt = Nt[2], maxDepth, r), r.point(ze, ke);
|
|
34367
34367
|
}
|
|
34368
34368
|
function Xt() {
|
|
34369
34369
|
bt.point = Ue, r.lineEnd();
|
|
@@ -34418,56 +34418,56 @@ function projection(v) {
|
|
|
34418
34418
|
}
|
|
34419
34419
|
function projectionMutator(v) {
|
|
34420
34420
|
var e, n = 150, r = 480, C = 250, w = 0, E = 0, O = 0, le = 0, fe = 0, Se, ze = 0, ke = 1, Fe = 1, mt = null, Lt = clipAntimeridian, bt = null, Ue, Gt, xt, Xt = identity$2, Zt = 0.5, wt, Vt, Wt, It, Nt;
|
|
34421
|
-
function
|
|
34421
|
+
function Ft(qt) {
|
|
34422
34422
|
return Wt(qt[0] * radians$1, qt[1] * radians$1);
|
|
34423
34423
|
}
|
|
34424
34424
|
function jt(qt) {
|
|
34425
34425
|
return qt = Wt.invert(qt[0], qt[1]), qt && [qt[0] * degrees$1, qt[1] * degrees$1];
|
|
34426
34426
|
}
|
|
34427
|
-
|
|
34427
|
+
Ft.stream = function(qt) {
|
|
34428
34428
|
return It && Nt === qt ? It : It = transformRadians(transformRotate(Se)(Lt(wt(Xt(Nt = qt)))));
|
|
34429
|
-
},
|
|
34429
|
+
}, Ft.preclip = function(qt) {
|
|
34430
34430
|
return arguments.length ? (Lt = qt, mt = void 0, s0()) : Lt;
|
|
34431
|
-
},
|
|
34431
|
+
}, Ft.postclip = function(qt) {
|
|
34432
34432
|
return arguments.length ? (Xt = qt, bt = Ue = Gt = xt = null, s0()) : Xt;
|
|
34433
|
-
},
|
|
34433
|
+
}, Ft.clipAngle = function(qt) {
|
|
34434
34434
|
return arguments.length ? (Lt = +qt ? clipCircle(mt = qt * radians$1) : (mt = null, clipAntimeridian), s0()) : mt * degrees$1;
|
|
34435
|
-
},
|
|
34435
|
+
}, Ft.clipExtent = function(qt) {
|
|
34436
34436
|
return arguments.length ? (Xt = qt == null ? (bt = Ue = Gt = xt = null, identity$2) : clipRectangle(bt = +qt[0][0], Ue = +qt[0][1], Gt = +qt[1][0], xt = +qt[1][1]), s0()) : bt == null ? null : [[bt, Ue], [Gt, xt]];
|
|
34437
|
-
},
|
|
34437
|
+
}, Ft.scale = function(qt) {
|
|
34438
34438
|
return arguments.length ? (n = +qt, n0()) : n;
|
|
34439
|
-
},
|
|
34439
|
+
}, Ft.translate = function(qt) {
|
|
34440
34440
|
return arguments.length ? (r = +qt[0], C = +qt[1], n0()) : [r, C];
|
|
34441
|
-
},
|
|
34441
|
+
}, Ft.center = function(qt) {
|
|
34442
34442
|
return arguments.length ? (w = qt[0] % 360 * radians$1, E = qt[1] % 360 * radians$1, n0()) : [w * degrees$1, E * degrees$1];
|
|
34443
|
-
},
|
|
34443
|
+
}, Ft.rotate = function(qt) {
|
|
34444
34444
|
return arguments.length ? (O = qt[0] % 360 * radians$1, le = qt[1] % 360 * radians$1, fe = qt.length > 2 ? qt[2] % 360 * radians$1 : 0, n0()) : [O * degrees$1, le * degrees$1, fe * degrees$1];
|
|
34445
|
-
},
|
|
34445
|
+
}, Ft.angle = function(qt) {
|
|
34446
34446
|
return arguments.length ? (ze = qt % 360 * radians$1, n0()) : ze * degrees$1;
|
|
34447
|
-
},
|
|
34447
|
+
}, Ft.reflectX = function(qt) {
|
|
34448
34448
|
return arguments.length ? (ke = qt ? -1 : 1, n0()) : ke < 0;
|
|
34449
|
-
},
|
|
34449
|
+
}, Ft.reflectY = function(qt) {
|
|
34450
34450
|
return arguments.length ? (Fe = qt ? -1 : 1, n0()) : Fe < 0;
|
|
34451
|
-
},
|
|
34451
|
+
}, Ft.precision = function(qt) {
|
|
34452
34452
|
return arguments.length ? (wt = resample(Vt, Zt = qt * qt), s0()) : sqrt$2(Zt);
|
|
34453
|
-
},
|
|
34454
|
-
return fitExtent(
|
|
34455
|
-
},
|
|
34456
|
-
return fitSize(
|
|
34457
|
-
},
|
|
34458
|
-
return fitWidth(
|
|
34459
|
-
},
|
|
34460
|
-
return fitHeight(
|
|
34453
|
+
}, Ft.fitExtent = function(qt, Ht) {
|
|
34454
|
+
return fitExtent(Ft, qt, Ht);
|
|
34455
|
+
}, Ft.fitSize = function(qt, Ht) {
|
|
34456
|
+
return fitSize(Ft, qt, Ht);
|
|
34457
|
+
}, Ft.fitWidth = function(qt, Ht) {
|
|
34458
|
+
return fitWidth(Ft, qt, Ht);
|
|
34459
|
+
}, Ft.fitHeight = function(qt, Ht) {
|
|
34460
|
+
return fitHeight(Ft, qt, Ht);
|
|
34461
34461
|
};
|
|
34462
34462
|
function n0() {
|
|
34463
34463
|
var qt = scaleTranslateRotate(n, 0, 0, ke, Fe, ze).apply(null, e(w, E)), Ht = scaleTranslateRotate(n, r - qt[0], C - qt[1], ke, Fe, ze);
|
|
34464
34464
|
return Se = rotateRadians(O, le, fe), Vt = compose(e, Ht), Wt = compose(Se, Vt), wt = resample(Vt, Zt), s0();
|
|
34465
34465
|
}
|
|
34466
34466
|
function s0() {
|
|
34467
|
-
return It = Nt = null,
|
|
34467
|
+
return It = Nt = null, Ft;
|
|
34468
34468
|
}
|
|
34469
34469
|
return function() {
|
|
34470
|
-
return e = v.apply(this, arguments),
|
|
34470
|
+
return e = v.apply(this, arguments), Ft.invert = e.invert && jt, n0();
|
|
34471
34471
|
};
|
|
34472
34472
|
}
|
|
34473
34473
|
function azimuthalInvert(v) {
|
|
@@ -34932,13 +34932,13 @@ function vec(v) {
|
|
|
34932
34932
|
const ccwerrboundA = (3 + 16 * epsilon$1) * epsilon$1, ccwerrboundB = (2 + 12 * epsilon$1) * epsilon$1, ccwerrboundC = (9 + 64 * epsilon$1) * epsilon$1 * epsilon$1, B = vec(4), C1 = vec(8), C2 = vec(12), D$2 = vec(16), u$2 = vec(4);
|
|
34933
34933
|
function orient2dadapt(v, e, n, r, C, w, E) {
|
|
34934
34934
|
let O, le, fe, Se, ze, ke, Fe, mt, Lt, bt, Ue, Gt, xt, Xt, Zt, wt, Vt, Wt;
|
|
34935
|
-
const It = v - C, Nt = n - C,
|
|
34936
|
-
Xt = It * jt, ke = splitter * It, Fe = ke - (ke - It), mt = It - Fe, ke = splitter * jt, Lt = ke - (ke - jt), bt = jt - Lt, Zt = mt * bt - (Xt - Fe * Lt - mt * Lt - Fe * bt), wt =
|
|
34935
|
+
const It = v - C, Nt = n - C, Ft = e - w, jt = r - w;
|
|
34936
|
+
Xt = It * jt, ke = splitter * It, Fe = ke - (ke - It), mt = It - Fe, ke = splitter * jt, Lt = ke - (ke - jt), bt = jt - Lt, Zt = mt * bt - (Xt - Fe * Lt - mt * Lt - Fe * bt), wt = Ft * Nt, ke = splitter * Ft, Fe = ke - (ke - Ft), mt = Ft - Fe, ke = splitter * Nt, Lt = ke - (ke - Nt), bt = Nt - Lt, Vt = mt * bt - (wt - Fe * Lt - mt * Lt - Fe * bt), Ue = Zt - Vt, ze = Zt - Ue, B[0] = Zt - (Ue + ze) + (ze - Vt), Gt = Xt + Ue, ze = Gt - Xt, xt = Xt - (Gt - ze) + (Ue - ze), Ue = xt - wt, ze = xt - Ue, B[1] = xt - (Ue + ze) + (ze - wt), Wt = Gt + Ue, ze = Wt - Gt, B[2] = Gt - (Wt - ze) + (Ue - ze), B[3] = Wt;
|
|
34937
34937
|
let n0 = estimate(4, B), s0 = ccwerrboundB * E;
|
|
34938
|
-
if (n0 >= s0 || -n0 >= s0 || (ze = v - It, O = v - (It + ze) + (ze - C), ze = n - Nt, fe = n - (Nt + ze) + (ze - C), ze = e -
|
|
34938
|
+
if (n0 >= s0 || -n0 >= s0 || (ze = v - It, O = v - (It + ze) + (ze - C), ze = n - Nt, fe = n - (Nt + ze) + (ze - C), ze = e - Ft, le = e - (Ft + ze) + (ze - w), ze = r - jt, Se = r - (jt + ze) + (ze - w), O === 0 && le === 0 && fe === 0 && Se === 0) || (s0 = ccwerrboundC * E + resulterrbound * Math.abs(n0), n0 += It * Se + jt * O - (Ft * fe + Nt * le), n0 >= s0 || -n0 >= s0)) return n0;
|
|
34939
34939
|
Xt = O * jt, ke = splitter * O, Fe = ke - (ke - O), mt = O - Fe, ke = splitter * jt, Lt = ke - (ke - jt), bt = jt - Lt, Zt = mt * bt - (Xt - Fe * Lt - mt * Lt - Fe * bt), wt = le * Nt, ke = splitter * le, Fe = ke - (ke - le), mt = le - Fe, ke = splitter * Nt, Lt = ke - (ke - Nt), bt = Nt - Lt, Vt = mt * bt - (wt - Fe * Lt - mt * Lt - Fe * bt), Ue = Zt - Vt, ze = Zt - Ue, u$2[0] = Zt - (Ue + ze) + (ze - Vt), Gt = Xt + Ue, ze = Gt - Xt, xt = Xt - (Gt - ze) + (Ue - ze), Ue = xt - wt, ze = xt - Ue, u$2[1] = xt - (Ue + ze) + (ze - wt), Wt = Gt + Ue, ze = Wt - Gt, u$2[2] = Gt - (Wt - ze) + (Ue - ze), u$2[3] = Wt;
|
|
34940
34940
|
const qt = sum(4, B, 4, u$2, C1);
|
|
34941
|
-
Xt = It * Se, ke = splitter * It, Fe = ke - (ke - It), mt = It - Fe, ke = splitter * Se, Lt = ke - (ke - Se), bt = Se - Lt, Zt = mt * bt - (Xt - Fe * Lt - mt * Lt - Fe * bt), wt =
|
|
34941
|
+
Xt = It * Se, ke = splitter * It, Fe = ke - (ke - It), mt = It - Fe, ke = splitter * Se, Lt = ke - (ke - Se), bt = Se - Lt, Zt = mt * bt - (Xt - Fe * Lt - mt * Lt - Fe * bt), wt = Ft * fe, ke = splitter * Ft, Fe = ke - (ke - Ft), mt = Ft - Fe, ke = splitter * fe, Lt = ke - (ke - fe), bt = fe - Lt, Vt = mt * bt - (wt - Fe * Lt - mt * Lt - Fe * bt), Ue = Zt - Vt, ze = Zt - Ue, u$2[0] = Zt - (Ue + ze) + (ze - Vt), Gt = Xt + Ue, ze = Gt - Xt, xt = Xt - (Gt - ze) + (Ue - ze), Ue = xt - wt, ze = xt - Ue, u$2[1] = xt - (Ue + ze) + (ze - wt), Wt = Gt + Ue, ze = Wt - Gt, u$2[2] = Gt - (Wt - ze) + (Ue - ze), u$2[3] = Wt;
|
|
34942
34942
|
const Ht = sum(qt, C1, 4, u$2, C2);
|
|
34943
34943
|
Xt = O * Se, ke = splitter * O, Fe = ke - (ke - O), mt = O - Fe, ke = splitter * Se, Lt = ke - (ke - Se), bt = Se - Lt, Zt = mt * bt - (Xt - Fe * Lt - mt * Lt - Fe * bt), wt = le * fe, ke = splitter * le, Fe = ke - (ke - le), mt = le - Fe, ke = splitter * fe, Lt = ke - (ke - fe), bt = fe - Lt, Vt = mt * bt - (wt - Fe * Lt - mt * Lt - Fe * bt), Ue = Zt - Vt, ze = Zt - Ue, u$2[0] = Zt - (Ue + ze) + (ze - Vt), Gt = Xt + Ue, ze = Gt - Xt, xt = Xt - (Gt - ze) + (Ue - ze), Ue = xt - wt, ze = xt - Ue, u$2[1] = xt - (Ue + ze) + (ze - wt), Wt = Gt + Ue, ze = Wt - Gt, u$2[2] = Gt - (Wt - ze) + (Ue - ze), u$2[3] = Wt;
|
|
34944
34944
|
const $t = sum(Ht, C2, 4, u$2, D$2);
|
|
@@ -34969,20 +34969,20 @@ class Delaunator {
|
|
|
34969
34969
|
const { coords: e, _hullPrev: n, _hullNext: r, _hullTri: C, _hullHash: w } = this, E = e.length >> 1;
|
|
34970
34970
|
let O = 1 / 0, le = 1 / 0, fe = -1 / 0, Se = -1 / 0;
|
|
34971
34971
|
for (let It = 0; It < E; It++) {
|
|
34972
|
-
const Nt = e[2 * It],
|
|
34973
|
-
Nt < O && (O = Nt),
|
|
34972
|
+
const Nt = e[2 * It], Ft = e[2 * It + 1];
|
|
34973
|
+
Nt < O && (O = Nt), Ft < le && (le = Ft), Nt > fe && (fe = Nt), Ft > Se && (Se = Ft), this._ids[It] = It;
|
|
34974
34974
|
}
|
|
34975
34975
|
const ze = (O + fe) / 2, ke = (le + Se) / 2;
|
|
34976
34976
|
let Fe, mt, Lt;
|
|
34977
34977
|
for (let It = 0, Nt = 1 / 0; It < E; It++) {
|
|
34978
|
-
const
|
|
34979
|
-
|
|
34978
|
+
const Ft = dist(ze, ke, e[2 * It], e[2 * It + 1]);
|
|
34979
|
+
Ft < Nt && (Fe = It, Nt = Ft);
|
|
34980
34980
|
}
|
|
34981
34981
|
const bt = e[2 * Fe], Ue = e[2 * Fe + 1];
|
|
34982
34982
|
for (let It = 0, Nt = 1 / 0; It < E; It++) {
|
|
34983
34983
|
if (It === Fe) continue;
|
|
34984
|
-
const
|
|
34985
|
-
|
|
34984
|
+
const Ft = dist(bt, Ue, e[2 * It], e[2 * It + 1]);
|
|
34985
|
+
Ft < Nt && Ft > 0 && (mt = It, Nt = Ft);
|
|
34986
34986
|
}
|
|
34987
34987
|
let Gt = e[2 * mt], xt = e[2 * mt + 1], Xt = 1 / 0;
|
|
34988
34988
|
for (let It = 0; It < E; It++) {
|
|
@@ -34992,21 +34992,21 @@ class Delaunator {
|
|
|
34992
34992
|
}
|
|
34993
34993
|
let Zt = e[2 * Lt], wt = e[2 * Lt + 1];
|
|
34994
34994
|
if (Xt === 1 / 0) {
|
|
34995
|
-
for (let
|
|
34996
|
-
this._dists[
|
|
34995
|
+
for (let Ft = 0; Ft < E; Ft++)
|
|
34996
|
+
this._dists[Ft] = e[2 * Ft] - e[0] || e[2 * Ft + 1] - e[1];
|
|
34997
34997
|
quicksort(this._ids, this._dists, 0, E - 1);
|
|
34998
34998
|
const It = new Uint32Array(E);
|
|
34999
34999
|
let Nt = 0;
|
|
35000
|
-
for (let
|
|
35001
|
-
const n0 = this._ids[
|
|
35000
|
+
for (let Ft = 0, jt = -1 / 0; Ft < E; Ft++) {
|
|
35001
|
+
const n0 = this._ids[Ft], s0 = this._dists[n0];
|
|
35002
35002
|
s0 > jt && (It[Nt++] = n0, jt = s0);
|
|
35003
35003
|
}
|
|
35004
35004
|
this.hull = It.subarray(0, Nt), this.triangles = new Uint32Array(0), this.halfedges = new Uint32Array(0);
|
|
35005
35005
|
return;
|
|
35006
35006
|
}
|
|
35007
35007
|
if (orient2d(bt, Ue, Gt, xt, Zt, wt) < 0) {
|
|
35008
|
-
const It = mt, Nt = Gt,
|
|
35009
|
-
mt = Lt, Gt = Zt, xt = wt, Lt = It, Zt = Nt, wt =
|
|
35008
|
+
const It = mt, Nt = Gt, Ft = xt;
|
|
35009
|
+
mt = Lt, Gt = Zt, xt = wt, Lt = It, Zt = Nt, wt = Ft;
|
|
35010
35010
|
}
|
|
35011
35011
|
const Vt = circumcenter(bt, Ue, Gt, xt, Zt, wt);
|
|
35012
35012
|
this._cx = Vt.x, this._cy = Vt.y;
|
|
@@ -35015,9 +35015,9 @@ class Delaunator {
|
|
|
35015
35015
|
quicksort(this._ids, this._dists, 0, E - 1), this._hullStart = Fe;
|
|
35016
35016
|
let Wt = 3;
|
|
35017
35017
|
r[Fe] = n[Lt] = mt, r[mt] = n[Fe] = Lt, r[Lt] = n[mt] = Fe, C[Fe] = 0, C[mt] = 1, C[Lt] = 2, w.fill(-1), w[this._hashKey(bt, Ue)] = Fe, w[this._hashKey(Gt, xt)] = mt, w[this._hashKey(Zt, wt)] = Lt, this.trianglesLen = 0, this._addTriangle(Fe, mt, Lt, -1, -1, -1);
|
|
35018
|
-
for (let It = 0, Nt,
|
|
35018
|
+
for (let It = 0, Nt, Ft; It < this._ids.length; It++) {
|
|
35019
35019
|
const jt = this._ids[It], n0 = e[2 * jt], s0 = e[2 * jt + 1];
|
|
35020
|
-
if (It > 0 && Math.abs(n0 - Nt) <= EPSILON$2 && Math.abs(s0 -
|
|
35020
|
+
if (It > 0 && Math.abs(n0 - Nt) <= EPSILON$2 && Math.abs(s0 - Ft) <= EPSILON$2 || (Nt = n0, Ft = s0, jt === Fe || jt === mt || jt === Lt)) continue;
|
|
35021
35021
|
let qt = 0;
|
|
35022
35022
|
for (let u0 = 0, d0 = this._hashKey(n0, s0); u0 < this._hashSize && (qt = w[(d0 + u0) % this._hashSize], !(qt !== -1 && qt !== r[qt])); u0++)
|
|
35023
35023
|
;
|
|
@@ -35029,14 +35029,14 @@ class Delaunator {
|
|
|
35029
35029
|
break;
|
|
35030
35030
|
}
|
|
35031
35031
|
if (Ht === -1) continue;
|
|
35032
|
-
let
|
|
35033
|
-
C[jt] = this._legalize(
|
|
35032
|
+
let Kt = this._addTriangle(Ht, jt, r[Ht], -1, -1, C[Ht]);
|
|
35033
|
+
C[jt] = this._legalize(Kt + 2), C[Ht] = Kt, Wt++;
|
|
35034
35034
|
let e0 = r[Ht];
|
|
35035
35035
|
for (; $t = r[e0], orient2d(n0, s0, e[2 * e0], e[2 * e0 + 1], e[2 * $t], e[2 * $t + 1]) < 0; )
|
|
35036
|
-
|
|
35036
|
+
Kt = this._addTriangle(e0, jt, $t, C[jt], -1, C[e0]), C[jt] = this._legalize(Kt + 2), r[e0] = e0, Wt--, e0 = $t;
|
|
35037
35037
|
if (Ht === qt)
|
|
35038
35038
|
for (; $t = n[Ht], orient2d(n0, s0, e[2 * $t], e[2 * $t + 1], e[2 * Ht], e[2 * Ht + 1]) < 0; )
|
|
35039
|
-
|
|
35039
|
+
Kt = this._addTriangle($t, jt, Ht, -1, C[Ht], C[$t]), this._legalize(Kt + 2), C[$t] = Kt, r[Ht] = Ht, Wt--, Ht = $t;
|
|
35040
35040
|
this._hullStart = n[jt] = Ht, r[Ht] = n[e0] = jt, r[jt] = e0, w[this._hashKey(n0, s0)] = jt, w[this._hashKey(e[2 * Ht], e[2 * Ht + 1])] = Ht;
|
|
35041
35041
|
}
|
|
35042
35042
|
this.hull = new Uint32Array(Wt);
|
|
@@ -35274,18 +35274,18 @@ class Voronoi {
|
|
|
35274
35274
|
let w, E;
|
|
35275
35275
|
const O = this.circumcenters = this._circumcenters.subarray(0, r.length / 3 * 2);
|
|
35276
35276
|
for (let Lt = 0, bt = 0, Ue = r.length, Gt, xt; Lt < Ue; Lt += 3, bt += 2) {
|
|
35277
|
-
const Xt = r[Lt] * 2, Zt = r[Lt + 1] * 2, wt = r[Lt + 2] * 2, Vt = e[Xt], Wt = e[Xt + 1], It = e[Zt], Nt = e[Zt + 1],
|
|
35277
|
+
const Xt = r[Lt] * 2, Zt = r[Lt + 1] * 2, wt = r[Lt + 2] * 2, Vt = e[Xt], Wt = e[Xt + 1], It = e[Zt], Nt = e[Zt + 1], Ft = e[wt], jt = e[wt + 1], n0 = It - Vt, s0 = Nt - Wt, qt = Ft - Vt, Ht = jt - Wt, $t = (n0 * Ht - s0 * qt) * 2;
|
|
35278
35278
|
if (Math.abs($t) < 1e-9) {
|
|
35279
35279
|
if (w === void 0) {
|
|
35280
35280
|
w = E = 0;
|
|
35281
35281
|
for (const e0 of n) w += e[e0 * 2], E += e[e0 * 2 + 1];
|
|
35282
35282
|
w /= n.length, E /= n.length;
|
|
35283
35283
|
}
|
|
35284
|
-
const
|
|
35285
|
-
Gt = (Vt +
|
|
35284
|
+
const Kt = 1e9 * Math.sign((w - Vt) * Ht - (E - Wt) * qt);
|
|
35285
|
+
Gt = (Vt + Ft) / 2 - Kt * Ht, xt = (Wt + jt) / 2 + Kt * qt;
|
|
35286
35286
|
} else {
|
|
35287
|
-
const
|
|
35288
|
-
Gt = Vt + (Ht * e0 - s0 * u0) *
|
|
35287
|
+
const Kt = 1 / $t, e0 = n0 * n0 + s0 * s0, u0 = qt * qt + Ht * Ht;
|
|
35288
|
+
Gt = Vt + (Ht * e0 - s0 * u0) * Kt, xt = Wt + (n0 * u0 - qt * e0) * Kt;
|
|
35289
35289
|
}
|
|
35290
35290
|
O[bt] = Gt, O[bt + 1] = xt;
|
|
35291
35291
|
}
|
|
@@ -36587,38 +36587,38 @@ function formatLocale(v) {
|
|
|
36587
36587
|
Zt === "n" ? (Gt = !0, Zt = "g") : formatTypes[Zt] || (xt === void 0 && (xt = 12), Xt = !0, Zt = "g"), (bt || ke === "0" && Fe === "=") && (bt = !0, ke = "0", Fe = "=");
|
|
36588
36588
|
var wt = Lt === "$" ? n : Lt === "#" && /[boxX]/.test(Zt) ? "0" + Zt.toLowerCase() : "", Vt = Lt === "$" ? r : /[%p]/.test(Zt) ? E : "", Wt = formatTypes[Zt], It = /[defgprs%]/.test(Zt);
|
|
36589
36589
|
xt = xt === void 0 ? 6 : /[gprs]/.test(Zt) ? Math.max(1, Math.min(21, xt)) : Math.max(0, Math.min(20, xt));
|
|
36590
|
-
function Nt(
|
|
36590
|
+
function Nt(Ft) {
|
|
36591
36591
|
var jt = wt, n0 = Vt, s0, qt, Ht;
|
|
36592
36592
|
if (Zt === "c")
|
|
36593
|
-
n0 = Wt(
|
|
36593
|
+
n0 = Wt(Ft) + n0, Ft = "";
|
|
36594
36594
|
else {
|
|
36595
|
-
|
|
36596
|
-
var $t =
|
|
36597
|
-
if (
|
|
36598
|
-
for (s0 = -1, qt =
|
|
36599
|
-
if (Ht =
|
|
36600
|
-
n0 = (Ht === 46 ? C +
|
|
36595
|
+
Ft = +Ft;
|
|
36596
|
+
var $t = Ft < 0 || 1 / Ft < 0;
|
|
36597
|
+
if (Ft = isNaN(Ft) ? le : Wt(Math.abs(Ft), xt), Xt && (Ft = formatTrim(Ft)), $t && +Ft == 0 && mt !== "+" && ($t = !1), jt = ($t ? mt === "(" ? mt : O : mt === "-" || mt === "(" ? "" : mt) + jt, n0 = (Zt === "s" ? prefixes[8 + prefixExponent / 3] : "") + n0 + ($t && mt === "(" ? ")" : ""), It) {
|
|
36598
|
+
for (s0 = -1, qt = Ft.length; ++s0 < qt; )
|
|
36599
|
+
if (Ht = Ft.charCodeAt(s0), 48 > Ht || Ht > 57) {
|
|
36600
|
+
n0 = (Ht === 46 ? C + Ft.slice(s0 + 1) : Ft.slice(s0)) + n0, Ft = Ft.slice(0, s0);
|
|
36601
36601
|
break;
|
|
36602
36602
|
}
|
|
36603
36603
|
}
|
|
36604
36604
|
}
|
|
36605
|
-
Gt && !bt && (
|
|
36606
|
-
var
|
|
36607
|
-
switch (Gt && bt && (
|
|
36605
|
+
Gt && !bt && (Ft = e(Ft, 1 / 0));
|
|
36606
|
+
var Kt = jt.length + Ft.length + n0.length, e0 = Kt < Ue ? new Array(Ue - Kt + 1).join(ke) : "";
|
|
36607
|
+
switch (Gt && bt && (Ft = e(e0 + Ft, e0.length ? Ue - n0.length : 1 / 0), e0 = ""), Fe) {
|
|
36608
36608
|
case "<":
|
|
36609
|
-
|
|
36609
|
+
Ft = jt + Ft + n0 + e0;
|
|
36610
36610
|
break;
|
|
36611
36611
|
case "=":
|
|
36612
|
-
|
|
36612
|
+
Ft = jt + e0 + Ft + n0;
|
|
36613
36613
|
break;
|
|
36614
36614
|
case "^":
|
|
36615
|
-
|
|
36615
|
+
Ft = e0.slice(0, Kt = e0.length >> 1) + jt + Ft + n0 + e0.slice(Kt);
|
|
36616
36616
|
break;
|
|
36617
36617
|
default:
|
|
36618
|
-
|
|
36618
|
+
Ft = e0 + jt + Ft + n0;
|
|
36619
36619
|
break;
|
|
36620
36620
|
}
|
|
36621
|
-
return w(
|
|
36621
|
+
return w(Ft);
|
|
36622
36622
|
}
|
|
36623
36623
|
return Nt.toString = function() {
|
|
36624
36624
|
return ze + "";
|
|
@@ -37146,8 +37146,8 @@ function ct(v, { resolution: e = 1 / 0, bbox: n, projection: r } = {}) {
|
|
|
37146
37146
|
Xt.features.forEach((wt) => {
|
|
37147
37147
|
const Vt = wt.geometry.coordinates[0].slice(0, 3).reverse(), Wt = [];
|
|
37148
37148
|
if (Vt.forEach(([It, Nt]) => {
|
|
37149
|
-
const
|
|
37150
|
-
Zt.has(
|
|
37149
|
+
const Ft = `${It}-${Nt}`;
|
|
37150
|
+
Zt.has(Ft) && Wt.push(Zt.get(Ft));
|
|
37151
37151
|
}), Wt.length === 3) {
|
|
37152
37152
|
if (Wt.some((It) => It < w.length)) {
|
|
37153
37153
|
const It = wt.properties.circumcenter;
|
|
@@ -37167,7 +37167,7 @@ function ct(v, { resolution: e = 1 / 0, bbox: n, projection: r } = {}) {
|
|
|
37167
37167
|
const Vt = [2, 1, 0].map((It) => Xt.triangles[Zt + It]), Wt = Vt.map((It) => O[It]);
|
|
37168
37168
|
if (Vt.some((It) => It < w.length)) {
|
|
37169
37169
|
const It = [0, 1].map(
|
|
37170
|
-
(Nt) => mean(Wt, (
|
|
37170
|
+
(Nt) => mean(Wt, (Ft) => Ft[Nt])
|
|
37171
37171
|
);
|
|
37172
37172
|
if (!Y$2(
|
|
37173
37173
|
It,
|
|
@@ -37906,8 +37906,8 @@ function getBounds(v, e, n, r, C) {
|
|
|
37906
37906
|
Zt < w && (w = Zt), wt > le && (le = wt), xt < ze && (ze = xt), xt > mt && (mt = xt);
|
|
37907
37907
|
const Vt = v[Ue + 2], Wt = v[Ue + 3], It = Vt - Wt, Nt = Vt + Wt;
|
|
37908
37908
|
It < E && (E = It), Nt > fe && (fe = Nt), Vt < ke && (ke = Vt), Vt > Lt && (Lt = Vt);
|
|
37909
|
-
const
|
|
37910
|
-
n0 < O && (O = n0), s0 > Se && (Se = s0),
|
|
37909
|
+
const Ft = v[Ue + 4], jt = v[Ue + 5], n0 = Ft - jt, s0 = Ft + jt;
|
|
37910
|
+
n0 < O && (O = n0), s0 > Se && (Se = s0), Ft < Fe && (Fe = Ft), Ft > bt && (bt = Ft);
|
|
37911
37911
|
}
|
|
37912
37912
|
r[0] = w, r[1] = E, r[2] = O, r[3] = le, r[4] = fe, r[5] = Se, C[0] = ze, C[1] = ke, C[2] = Fe, C[3] = mt, C[4] = Lt, C[5] = bt;
|
|
37913
37913
|
}
|
|
@@ -38020,9 +38020,9 @@ function getOptimalSplit(v, e, n, r, C, w) {
|
|
|
38020
38020
|
const Zt = Ue[Xt], wt = Zt.count, Vt = C - Zt.count, Wt = Zt.leftCacheBounds, It = Zt.rightCacheBounds;
|
|
38021
38021
|
let Nt = 0;
|
|
38022
38022
|
wt !== 0 && (Nt = computeSurfaceArea(Wt) / le);
|
|
38023
|
-
let
|
|
38024
|
-
Vt !== 0 && (
|
|
38025
|
-
const jt = TRAVERSAL_COST + TRIANGLE_INTERSECT_COST * (Nt * wt +
|
|
38023
|
+
let Ft = 0;
|
|
38024
|
+
Vt !== 0 && (Ft = computeSurfaceArea(It) / le);
|
|
38025
|
+
const jt = TRAVERSAL_COST + TRIANGLE_INTERSECT_COST * (Nt * wt + Ft * Vt);
|
|
38026
38026
|
jt < fe && (E = ke, fe = jt, O = Zt.candidate);
|
|
38027
38027
|
}
|
|
38028
38028
|
} else {
|
|
@@ -38051,9 +38051,9 @@ function getOptimalSplit(v, e, n, r, C, w) {
|
|
|
38051
38051
|
Zt !== 0 && (Gt === 0 ? copyBounds(wt, leftBounds) : unionBounds(wt, leftBounds, leftBounds)), Gt += Zt;
|
|
38052
38052
|
let It = 0, Nt = 0;
|
|
38053
38053
|
Gt !== 0 && (It = computeSurfaceArea(leftBounds) / le);
|
|
38054
|
-
const
|
|
38055
|
-
|
|
38056
|
-
const jt = TRAVERSAL_COST + TRIANGLE_INTERSECT_COST * (It * Gt + Nt *
|
|
38054
|
+
const Ft = C - Gt;
|
|
38055
|
+
Ft !== 0 && (Nt = computeSurfaceArea(Wt) / le);
|
|
38056
|
+
const jt = TRAVERSAL_COST + TRIANGLE_INTERSECT_COST * (It * Gt + Nt * Ft);
|
|
38057
38057
|
jt < fe && (E = ke, fe = jt, O = Xt.candidate);
|
|
38058
38058
|
}
|
|
38059
38059
|
}
|
|
@@ -38196,14 +38196,14 @@ function buildTree(v, e, n, r, C) {
|
|
|
38196
38196
|
const Nt = getOptimalSplit(Zt.boundingData, Wt, e, wt, Vt, le);
|
|
38197
38197
|
if (Nt.axis === -1)
|
|
38198
38198
|
return xt(wt + Vt), Zt.offset = wt, Zt.count = Vt, Zt;
|
|
38199
|
-
const
|
|
38200
|
-
if (
|
|
38199
|
+
const Ft = mt(ze, Fe, e, wt, Vt, Nt);
|
|
38200
|
+
if (Ft === wt || Ft === wt + Vt)
|
|
38201
38201
|
xt(wt + Vt), Zt.offset = wt, Zt.count = Vt;
|
|
38202
38202
|
else {
|
|
38203
38203
|
Zt.splitAxis = Nt.axis;
|
|
38204
|
-
const jt = new MeshBVHNode(), n0 = wt, s0 =
|
|
38204
|
+
const jt = new MeshBVHNode(), n0 = wt, s0 = Ft - wt;
|
|
38205
38205
|
Zt.left = jt, getBounds(e, n0, s0, jt.boundingData, bt), Xt(jt, n0, s0, bt, It + 1);
|
|
38206
|
-
const qt = new MeshBVHNode(), Ht =
|
|
38206
|
+
const qt = new MeshBVHNode(), Ht = Ft, $t = Vt - s0;
|
|
38207
38207
|
Zt.right = qt, getBounds(e, Ht, $t, qt.boundingData, bt), Xt(qt, Ht, $t, bt, It + 1);
|
|
38208
38208
|
}
|
|
38209
38209
|
return Zt;
|
|
@@ -38377,19 +38377,19 @@ ExtendedTriangle.prototype.intersectsTriangle = function() {
|
|
|
38377
38377
|
const Zt = this.satBounds, wt = this.satAxes;
|
|
38378
38378
|
n[0] = bt.a, n[1] = bt.b, n[2] = bt.c;
|
|
38379
38379
|
for (let It = 0; It < 4; It++) {
|
|
38380
|
-
const Nt = Zt[It],
|
|
38381
|
-
if (r.setFromPoints(
|
|
38380
|
+
const Nt = Zt[It], Ft = wt[It];
|
|
38381
|
+
if (r.setFromPoints(Ft, n), Nt.isSeparated(r)) return !1;
|
|
38382
38382
|
}
|
|
38383
38383
|
const Vt = bt.satBounds, Wt = bt.satAxes;
|
|
38384
38384
|
e[0] = this.a, e[1] = this.b, e[2] = this.c;
|
|
38385
38385
|
for (let It = 0; It < 4; It++) {
|
|
38386
|
-
const Nt = Vt[It],
|
|
38387
|
-
if (r.setFromPoints(
|
|
38386
|
+
const Nt = Vt[It], Ft = Wt[It];
|
|
38387
|
+
if (r.setFromPoints(Ft, e), Nt.isSeparated(r)) return !1;
|
|
38388
38388
|
}
|
|
38389
38389
|
for (let It = 0; It < 4; It++) {
|
|
38390
38390
|
const Nt = wt[It];
|
|
38391
|
-
for (let
|
|
38392
|
-
const jt = Wt[
|
|
38391
|
+
for (let Ft = 0; Ft < 4; Ft++) {
|
|
38392
|
+
const jt = Wt[Ft];
|
|
38393
38393
|
if (w.crossVectors(Nt, jt), r.setFromPoints(w, e), C.setFromPoints(w, n), r.isSeparated(C)) return !1;
|
|
38394
38394
|
}
|
|
38395
38395
|
}
|
|
@@ -38409,8 +38409,8 @@ ExtendedTriangle.prototype.intersectsTriangle = function() {
|
|
|
38409
38409
|
let n0 = ke.start;
|
|
38410
38410
|
ke.start = ke.end, ke.end = n0;
|
|
38411
38411
|
}
|
|
38412
|
-
const Vt = ze.start.dot(O), Wt = ze.end.dot(O), It = ke.start.dot(O), Nt = ke.end.dot(O),
|
|
38413
|
-
return Vt !== Nt && It !== Wt &&
|
|
38412
|
+
const Vt = ze.start.dot(O), Wt = ze.end.dot(O), It = ke.start.dot(O), Nt = ke.end.dot(O), Ft = Wt < It, jt = Vt < Nt;
|
|
38413
|
+
return Vt !== Nt && It !== Wt && Ft === jt ? !1 : (Ue && (fe.subVectors(ze.start, ke.start), fe.dot(O) > 0 ? Ue.start.copy(ze.start) : Ue.start.copy(ke.start), fe.subVectors(ze.end, ke.end), fe.dot(O) < 0 ? Ue.end.copy(ze.end) : Ue.end.copy(ke.end)), !0);
|
|
38414
38414
|
}
|
|
38415
38415
|
};
|
|
38416
38416
|
}();
|
|
@@ -38545,8 +38545,8 @@ OrientedBox.prototype.distanceToBox = function() {
|
|
|
38545
38545
|
for (let Gt = 0; Gt <= 1; Gt++) {
|
|
38546
38546
|
const xt = (bt + 1) % 3, Xt = (bt + 2) % 3, Zt = Ue << xt | Gt << Xt, wt = 1 << bt | Ue << xt | Gt << Xt, Vt = Fe[Zt], Wt = Fe[wt];
|
|
38547
38547
|
e[Lt].set(Vt, Wt);
|
|
38548
|
-
const Nt = v[bt],
|
|
38549
|
-
s0[Nt] = ze[Nt], s0[
|
|
38548
|
+
const Nt = v[bt], Ft = v[xt], jt = v[Xt], n0 = n[Lt], s0 = n0.start, qt = n0.end;
|
|
38549
|
+
s0[Nt] = ze[Nt], s0[Ft] = Ue ? ze[Ft] : ke[Ft], s0[jt] = Gt ? ze[jt] : ke[Ft], qt[Nt] = ke[Nt], qt[Ft] = Ue ? ze[Ft] : ke[Ft], qt[jt] = Gt ? ze[jt] : ke[Ft], Lt++;
|
|
38550
38550
|
}
|
|
38551
38551
|
for (let bt = 0; bt <= 1; bt++)
|
|
38552
38552
|
for (let Ue = 0; Ue <= 1; Ue++)
|
|
@@ -38622,7 +38622,7 @@ function shapecastTraverse(v, e, n, r, C = null, w = 0, E = 0) {
|
|
|
38622
38622
|
for (; !IS_LEAF(qt, n0); )
|
|
38623
38623
|
jt = LEFT_NODE(jt), qt = jt * 2;
|
|
38624
38624
|
return OFFSET(jt, s0);
|
|
38625
|
-
},
|
|
38625
|
+
}, Ft = function(jt) {
|
|
38626
38626
|
const { uint16Array: n0, uint32Array: s0 } = BufferStack;
|
|
38627
38627
|
let qt = jt * 2;
|
|
38628
38628
|
for (; !IS_LEAF(qt, n0); )
|
|
@@ -38640,7 +38640,7 @@ function shapecastTraverse(v, e, n, r, C = null, w = 0, E = 0) {
|
|
|
38640
38640
|
const Xt = IS_LEAF(mt * 2, le), Zt = n(Gt, Xt, bt, E + 1, w + mt);
|
|
38641
38641
|
let wt;
|
|
38642
38642
|
if (Zt === CONTAINED) {
|
|
38643
|
-
const jt = Nt(mt), s0 =
|
|
38643
|
+
const jt = Nt(mt), s0 = Ft(mt) - jt;
|
|
38644
38644
|
wt = r(jt, s0, !0, E + 1, w + mt, Gt);
|
|
38645
38645
|
} else
|
|
38646
38646
|
wt = Zt && shapecastTraverse(
|
|
@@ -38657,7 +38657,7 @@ function shapecastTraverse(v, e, n, r, C = null, w = 0, E = 0) {
|
|
|
38657
38657
|
const Vt = IS_LEAF(Lt * 2, le), Wt = n(xt, Vt, Ue, E + 1, w + Lt);
|
|
38658
38658
|
let It;
|
|
38659
38659
|
if (Wt === CONTAINED) {
|
|
38660
|
-
const jt = Nt(Lt), s0 =
|
|
38660
|
+
const jt = Nt(Lt), s0 = Ft(Lt) - jt;
|
|
38661
38661
|
It = r(jt, s0, !0, E + 1, w + Lt, xt);
|
|
38662
38662
|
} else
|
|
38663
38663
|
It = Wt && shapecastTraverse(
|
|
@@ -38766,8 +38766,8 @@ function refit(v, e = null) {
|
|
|
38766
38766
|
const Ue = E[ke + 6], Gt = O[Lt + 14];
|
|
38767
38767
|
let xt = 1 / 0, Xt = 1 / 0, Zt = 1 / 0, wt = -1 / 0, Vt = -1 / 0, Wt = -1 / 0;
|
|
38768
38768
|
for (let It = 3 * Ue, Nt = 3 * (Ue + Gt); It < Nt; It++) {
|
|
38769
|
-
let
|
|
38770
|
-
const jt = C.getX(
|
|
38769
|
+
let Ft = r[It];
|
|
38770
|
+
const jt = C.getX(Ft), n0 = C.getY(Ft), s0 = C.getZ(Ft);
|
|
38771
38771
|
jt < xt && (xt = jt), jt > wt && (wt = jt), n0 < Xt && (Xt = n0), n0 > Vt && (Vt = n0), s0 < Zt && (Zt = s0), s0 > Wt && (Wt = s0);
|
|
38772
38772
|
}
|
|
38773
38773
|
return le[ke + 0] !== xt || le[ke + 1] !== Xt || le[ke + 2] !== Zt || le[ke + 3] !== wt || le[ke + 4] !== Vt || le[ke + 5] !== Wt ? (le[ke + 0] = xt, le[ke + 1] = Xt, le[ke + 2] = Zt, le[ke + 3] = wt, le[ke + 4] = Vt, le[ke + 5] = Wt, !0) : !1;
|
|
@@ -38778,13 +38778,13 @@ function refit(v, e = null) {
|
|
|
38778
38778
|
const Wt = Zt || wt, It = Zt || Vt;
|
|
38779
38779
|
let Nt = !1;
|
|
38780
38780
|
Wt && (Nt = ze(Ue, Fe, Zt));
|
|
38781
|
-
let
|
|
38782
|
-
It && (
|
|
38783
|
-
const jt = Nt ||
|
|
38781
|
+
let Ft = !1;
|
|
38782
|
+
It && (Ft = ze(Gt, Fe, Zt));
|
|
38783
|
+
const jt = Nt || Ft;
|
|
38784
38784
|
if (jt)
|
|
38785
38785
|
for (let n0 = 0; n0 < 3; n0++) {
|
|
38786
|
-
const s0 = Ue + n0, qt = Gt + n0, Ht = le[s0], $t = le[s0 + 3],
|
|
38787
|
-
le[ke + n0] = Ht <
|
|
38786
|
+
const s0 = Ue + n0, qt = Gt + n0, Ht = le[s0], $t = le[s0 + 3], Kt = le[qt], e0 = le[qt + 3];
|
|
38787
|
+
le[ke + n0] = Ht < Kt ? Ht : Kt, le[ke + n0 + 3] = $t > e0 ? $t : e0;
|
|
38788
38788
|
}
|
|
38789
38789
|
return jt;
|
|
38790
38790
|
}
|
|
@@ -38915,7 +38915,7 @@ function closestPointToGeometry(v, e, n, r = {}, C = {}, w = 0, E = 1 / 0) {
|
|
|
38915
38915
|
boundsTraverseOrder: (Wt) => obb2$2.distanceToBox(Wt),
|
|
38916
38916
|
intersectsBounds: (Wt, It, Nt) => Nt < Gt && Nt < E,
|
|
38917
38917
|
intersectsRange: (Wt, It) => {
|
|
38918
|
-
for (let Nt = Wt,
|
|
38918
|
+
for (let Nt = Wt, Ft = Wt + It; Nt < Ft; Nt++) {
|
|
38919
38919
|
setTriangle(Fe, 3 * Nt, ze, Se), Fe.a.applyMatrix4(n), Fe.b.applyMatrix4(n), Fe.c.applyMatrix4(n), Fe.needsUpdate = !0;
|
|
38920
38920
|
for (let jt = Zt, n0 = Zt + wt; jt < n0; jt++) {
|
|
38921
38921
|
setTriangle(ke, 3 * jt, fe, le), ke.needsUpdate = !0;
|
|
@@ -38930,7 +38930,7 @@ function closestPointToGeometry(v, e, n, r = {}, C = {}, w = 0, E = 1 / 0) {
|
|
|
38930
38930
|
const Vt = getTriCount$1(e);
|
|
38931
38931
|
for (let Wt = 0, It = Vt; Wt < It; Wt++) {
|
|
38932
38932
|
setTriangle(Fe, 3 * Wt, ze, Se), Fe.a.applyMatrix4(n), Fe.b.applyMatrix4(n), Fe.c.applyMatrix4(n), Fe.needsUpdate = !0;
|
|
38933
|
-
for (let Nt = Zt,
|
|
38933
|
+
for (let Nt = Zt, Ft = Zt + wt; Nt < Ft; Nt++) {
|
|
38934
38934
|
setTriangle(ke, 3 * Nt, fe, le), ke.needsUpdate = !0;
|
|
38935
38935
|
const jt = ke.distanceToTriangle(Fe, mt, bt);
|
|
38936
38936
|
if (jt < Gt && (Lt.copy(mt), Ue && Ue.copy(bt), Gt = jt, xt = Nt, Xt = Wt), jt < w)
|
|
@@ -38955,9 +38955,9 @@ function refit_indirect(v, e = null) {
|
|
|
38955
38955
|
const Ue = E[ke + 6], Gt = O[Lt + 14];
|
|
38956
38956
|
let xt = 1 / 0, Xt = 1 / 0, Zt = 1 / 0, wt = -1 / 0, Vt = -1 / 0, Wt = -1 / 0;
|
|
38957
38957
|
for (let It = Ue, Nt = Ue + Gt; It < Nt; It++) {
|
|
38958
|
-
const
|
|
38958
|
+
const Ft = 3 * v.resolveTriangleIndex(It);
|
|
38959
38959
|
for (let jt = 0; jt < 3; jt++) {
|
|
38960
|
-
let n0 =
|
|
38960
|
+
let n0 = Ft + jt;
|
|
38961
38961
|
n0 = r ? r[n0] : n0;
|
|
38962
38962
|
const s0 = C.getX(n0), qt = C.getY(n0), Ht = C.getZ(n0);
|
|
38963
38963
|
s0 < xt && (xt = s0), s0 > wt && (wt = s0), qt < Xt && (Xt = qt), qt > Vt && (Vt = qt), Ht < Zt && (Zt = Ht), Ht > Wt && (Wt = Ht);
|
|
@@ -38971,13 +38971,13 @@ function refit_indirect(v, e = null) {
|
|
|
38971
38971
|
const Wt = Zt || wt, It = Zt || Vt;
|
|
38972
38972
|
let Nt = !1;
|
|
38973
38973
|
Wt && (Nt = ze(Ue, Fe, Zt));
|
|
38974
|
-
let
|
|
38975
|
-
It && (
|
|
38976
|
-
const jt = Nt ||
|
|
38974
|
+
let Ft = !1;
|
|
38975
|
+
It && (Ft = ze(Gt, Fe, Zt));
|
|
38976
|
+
const jt = Nt || Ft;
|
|
38977
38977
|
if (jt)
|
|
38978
38978
|
for (let n0 = 0; n0 < 3; n0++) {
|
|
38979
|
-
const s0 = Ue + n0, qt = Gt + n0, Ht = le[s0], $t = le[s0 + 3],
|
|
38980
|
-
le[ke + n0] = Ht <
|
|
38979
|
+
const s0 = Ue + n0, qt = Gt + n0, Ht = le[s0], $t = le[s0 + 3], Kt = le[qt], e0 = le[qt + 3];
|
|
38980
|
+
le[ke + n0] = Ht < Kt ? Ht : Kt, le[ke + n0 + 3] = $t > e0 ? $t : e0;
|
|
38981
38981
|
}
|
|
38982
38982
|
return jt;
|
|
38983
38983
|
}
|
|
@@ -39079,7 +39079,7 @@ function closestPointToGeometry_indirect(v, e, n, r = {}, C = {}, w = 0, E = 1 /
|
|
|
39079
39079
|
boundsTraverseOrder: (Wt) => obb2.distanceToBox(Wt),
|
|
39080
39080
|
intersectsBounds: (Wt, It, Nt) => Nt < Gt && Nt < E,
|
|
39081
39081
|
intersectsRange: (Wt, It) => {
|
|
39082
|
-
for (let Nt = Wt,
|
|
39082
|
+
for (let Nt = Wt, Ft = Wt + It; Nt < Ft; Nt++) {
|
|
39083
39083
|
const jt = Vt.resolveTriangleIndex(Nt);
|
|
39084
39084
|
setTriangle(Fe, 3 * jt, ze, Se), Fe.a.applyMatrix4(n), Fe.b.applyMatrix4(n), Fe.c.applyMatrix4(n), Fe.needsUpdate = !0;
|
|
39085
39085
|
for (let n0 = Zt, s0 = Zt + wt; n0 < s0; n0++) {
|
|
@@ -39096,7 +39096,7 @@ function closestPointToGeometry_indirect(v, e, n, r = {}, C = {}, w = 0, E = 1 /
|
|
|
39096
39096
|
const Vt = getTriCount$1(e);
|
|
39097
39097
|
for (let Wt = 0, It = Vt; Wt < It; Wt++) {
|
|
39098
39098
|
setTriangle(Fe, 3 * Wt, ze, Se), Fe.a.applyMatrix4(n), Fe.b.applyMatrix4(n), Fe.c.applyMatrix4(n), Fe.needsUpdate = !0;
|
|
39099
|
-
for (let Nt = Zt,
|
|
39099
|
+
for (let Nt = Zt, Ft = Zt + wt; Nt < Ft; Nt++) {
|
|
39100
39100
|
const jt = v.resolveTriangleIndex(Nt);
|
|
39101
39101
|
setTriangle(ke, 3 * jt, fe, le), ke.needsUpdate = !0;
|
|
39102
39102
|
const n0 = ke.distanceToTriangle(Fe, mt, bt);
|
|
@@ -39173,8 +39173,8 @@ function _traverse(v, e, n, r, C, w = 0, E = 0, O = 0, le = 0, fe = null, Se = !
|
|
|
39173
39173
|
arrayToBox(e, bt, Wt), Wt.applyMatrix4(n);
|
|
39174
39174
|
const It = LEFT_NODE(v), Nt = RIGHT_NODE(v, mt);
|
|
39175
39175
|
arrayToBox(It, Fe, _leftBox1), arrayToBox(Nt, Fe, _rightBox1);
|
|
39176
|
-
const
|
|
39177
|
-
Vt =
|
|
39176
|
+
const Ft = Wt.intersectsBox(_leftBox1), jt = Wt.intersectsBox(_rightBox1);
|
|
39177
|
+
Vt = Ft && _traverse(
|
|
39178
39178
|
e,
|
|
39179
39179
|
It,
|
|
39180
39180
|
r,
|
|
@@ -39202,8 +39202,8 @@ function _traverse(v, e, n, r, C, w = 0, E = 0, O = 0, le = 0, fe = null, Se = !
|
|
|
39202
39202
|
} else {
|
|
39203
39203
|
const Wt = LEFT_NODE(e), It = RIGHT_NODE(e, Ue);
|
|
39204
39204
|
arrayToBox(Wt, bt, _leftBox2), arrayToBox(It, bt, _rightBox2);
|
|
39205
|
-
const Nt = fe.intersectsBox(_leftBox2),
|
|
39206
|
-
if (Nt &&
|
|
39205
|
+
const Nt = fe.intersectsBox(_leftBox2), Ft = fe.intersectsBox(_rightBox2);
|
|
39206
|
+
if (Nt && Ft)
|
|
39207
39207
|
Vt = _traverse(
|
|
39208
39208
|
v,
|
|
39209
39209
|
Wt,
|
|
@@ -39276,7 +39276,7 @@ function _traverse(v, e, n, r, C, w = 0, E = 0, O = 0, le = 0, fe = null, Se = !
|
|
|
39276
39276
|
!Se
|
|
39277
39277
|
), _boxPool.releasePrimitive(jt);
|
|
39278
39278
|
}
|
|
39279
|
-
else if (
|
|
39279
|
+
else if (Ft)
|
|
39280
39280
|
if (Zt)
|
|
39281
39281
|
Vt = _traverse(
|
|
39282
39282
|
v,
|
|
@@ -39731,10 +39731,10 @@ class HalfEdgeMap {
|
|
|
39731
39731
|
Se && (Wt = Se.getX(Wt)), _hashes[Vt] = E(Wt);
|
|
39732
39732
|
}
|
|
39733
39733
|
for (let Vt = 0; Vt < 3; Vt++) {
|
|
39734
|
-
const Wt = (Vt + 1) % 3, It = _hashes[Vt], Nt = _hashes[Wt],
|
|
39735
|
-
if (O.has(
|
|
39736
|
-
const jt = wt + Vt, n0 = O.get(
|
|
39737
|
-
Lt[jt] = n0, Lt[n0] = jt, O.delete(
|
|
39734
|
+
const Wt = (Vt + 1) % 3, It = _hashes[Vt], Nt = _hashes[Wt], Ft = `${Nt}_${It}`;
|
|
39735
|
+
if (O.has(Ft)) {
|
|
39736
|
+
const jt = wt + Vt, n0 = O.get(Ft);
|
|
39737
|
+
Lt[jt] = n0, Lt[n0] = jt, O.delete(Ft), bt += 2, Ue.delete(n0);
|
|
39738
39738
|
} else {
|
|
39739
39739
|
const jt = `${It}_${Nt}`, n0 = wt + Vt;
|
|
39740
39740
|
O.set(jt, n0), Ue.add(n0);
|
|
@@ -40278,13 +40278,13 @@ function performSplitTriangleOperations(v, e, n, r, C, w, E, O = 0) {
|
|
|
40278
40278
|
const xt = Lt[Ue], Xt = O === -1 ? 0 : fe[xt] + O, Zt = 3 * xt, wt = Se.getX(Zt + 0), Vt = Se.getX(Zt + 1), Wt = Se.getX(Zt + 2);
|
|
40279
40279
|
_triA.a.fromBufferAttribute(ze, wt).applyMatrix4(_matrix), _triA.b.fromBufferAttribute(ze, Vt).applyMatrix4(_matrix), _triA.c.fromBufferAttribute(ze, Wt).applyMatrix4(_matrix), w.reset(), w.initialize(_triA);
|
|
40280
40280
|
const It = bt[xt];
|
|
40281
|
-
for (let
|
|
40282
|
-
const n0 = 3 * It[
|
|
40281
|
+
for (let Ft = 0, jt = It.length; Ft < jt; Ft++) {
|
|
40282
|
+
const n0 = 3 * It[Ft], s0 = Fe.getX(n0 + 0), qt = Fe.getX(n0 + 1), Ht = Fe.getX(n0 + 2);
|
|
40283
40283
|
_triB.a.fromBufferAttribute(mt, s0), _triB.b.fromBufferAttribute(mt, qt), _triB.c.fromBufferAttribute(mt, Ht), w.splitByTriangle(_triB);
|
|
40284
40284
|
}
|
|
40285
40285
|
const Nt = w.triangles;
|
|
40286
|
-
for (let
|
|
40287
|
-
const n0 = Nt[
|
|
40286
|
+
for (let Ft = 0, jt = Nt.length; Ft < jt; Ft++) {
|
|
40287
|
+
const n0 = Nt[Ft], s0 = w.coplanarTriangleUsed ? getHitSideWithCoplanarCheck(n0, ke) : getHitSide(n0, ke);
|
|
40288
40288
|
_attr.length = 0, _actions.length = 0;
|
|
40289
40289
|
for (let qt = 0, Ht = r.length; qt < Ht; qt++) {
|
|
40290
40290
|
const $t = getOperationAction(r[qt], s0, C);
|
|
@@ -40325,11 +40325,11 @@ function performWholeTriangleOperations(v, e, n, r, C, w, E = 0) {
|
|
|
40325
40325
|
It !== -1 && Lt.has(It) && (Fe.push(It), Lt.delete(It));
|
|
40326
40326
|
}
|
|
40327
40327
|
if (_attr.length !== 0) {
|
|
40328
|
-
const Wt = 3 * Vt, It = Se.getX(Wt + 0), Nt = Se.getX(Wt + 1),
|
|
40329
|
-
if (_tri.a.fromBufferAttribute(ke, It), _tri.b.fromBufferAttribute(ke, Nt), _tri.c.fromBufferAttribute(ke,
|
|
40328
|
+
const Wt = 3 * Vt, It = Se.getX(Wt + 0), Nt = Se.getX(Wt + 1), Ft = Se.getX(Wt + 2), jt = E === -1 ? 0 : fe[Vt] + E;
|
|
40329
|
+
if (_tri.a.fromBufferAttribute(ke, It), _tri.b.fromBufferAttribute(ke, Nt), _tri.c.fromBufferAttribute(ke, Ft), !isTriDegenerate(_tri))
|
|
40330
40330
|
for (let n0 = 0, s0 = _attr.length; n0 < s0; n0++) {
|
|
40331
40331
|
const qt = _actions[n0], Ht = _attr[n0].getGroupAttrSet(jt), $t = qt === INVERT_TRI;
|
|
40332
|
-
appendAttributesFromIndices(It, Nt,
|
|
40332
|
+
appendAttributesFromIndices(It, Nt, Ft, ze, v.matrixWorld, _normalMatrix, Ht, $t !== O);
|
|
40333
40333
|
}
|
|
40334
40334
|
}
|
|
40335
40335
|
}
|
|
@@ -40837,8 +40837,8 @@ let K$1 = class zn extends BufferGeometry {
|
|
|
40837
40837
|
const ze = [], ke = n.curveSegments !== void 0 ? n.curveSegments : 12, Fe = n.steps !== void 0 ? n.steps : 1, mt = n.depth !== void 0 ? n.depth : 1;
|
|
40838
40838
|
let Lt = n.bevelEnabled !== void 0 ? n.bevelEnabled : !0, bt = n.bevelThickness !== void 0 ? n.bevelThickness : 0.2, Ue = n.bevelSize !== void 0 ? n.bevelSize : bt - 0.1, Gt = n.bevelOffset !== void 0 ? n.bevelOffset : 0, xt = n.bevelSegments !== void 0 ? n.bevelSegments : 3;
|
|
40839
40839
|
const Xt = n.extrudePath, Zt = n.UVGenerator !== void 0 ? n.UVGenerator : Ot$1, wt = (le = n.hasTop) != null ? le : !0, Vt = (fe = n.hasBottom) != null ? fe : !0, Wt = (Se = n.hasSide) != null ? Se : !0;
|
|
40840
|
-
let It, Nt = !1,
|
|
40841
|
-
Xt && (It = Xt.getSpacedPoints(Fe), Nt = !0, Lt = !1,
|
|
40840
|
+
let It, Nt = !1, Ft, jt, n0, s0;
|
|
40841
|
+
Xt && (It = Xt.getSpacedPoints(Fe), Nt = !0, Lt = !1, Ft = Xt.computeFrenetFrames(Fe, !1), jt = new Vector3(), n0 = new Vector3(), s0 = new Vector3()), Lt || (xt = 0, bt = 0, Ue = 0, Gt = 0);
|
|
40842
40842
|
const qt = O.extractPoints(ke);
|
|
40843
40843
|
let Ht = qt.shape;
|
|
40844
40844
|
const $t = qt.holes;
|
|
@@ -40849,7 +40849,7 @@ let K$1 = class zn extends BufferGeometry {
|
|
|
40849
40849
|
ShapeUtils.isClockWise(A0) && ($t[S0] = A0.reverse());
|
|
40850
40850
|
}
|
|
40851
40851
|
}
|
|
40852
|
-
function
|
|
40852
|
+
function Kt(S0) {
|
|
40853
40853
|
const L0 = 10000000000000001e-36;
|
|
40854
40854
|
let A0 = S0[0];
|
|
40855
40855
|
for (let B0 = 1; B0 <= S0.length; B0++) {
|
|
@@ -40866,7 +40866,7 @@ let K$1 = class zn extends BufferGeometry {
|
|
|
40866
40866
|
A0 = t0;
|
|
40867
40867
|
}
|
|
40868
40868
|
}
|
|
40869
|
-
|
|
40869
|
+
Kt(Ht), $t.forEach(Kt);
|
|
40870
40870
|
const e0 = $t.length, u0 = Ht;
|
|
40871
40871
|
for (let S0 = 0; S0 < e0; S0++) {
|
|
40872
40872
|
const L0 = $t[S0];
|
|
@@ -40936,12 +40936,12 @@ let K$1 = class zn extends BufferGeometry {
|
|
|
40936
40936
|
const Si = D0.length, q0 = Ue + Gt;
|
|
40937
40937
|
for (let S0 = 0; S0 < _0; S0++) {
|
|
40938
40938
|
const L0 = Lt ? d0(Ht[S0], V0[S0], q0) : Ht[S0];
|
|
40939
|
-
Nt ? (n0.copy(
|
|
40939
|
+
Nt ? (n0.copy(Ft.normals[0]).multiplyScalar(L0.x), jt.copy(Ft.binormals[0]).multiplyScalar(L0.y), s0.copy(It[0]).add(n0).add(jt), P0(s0.x, s0.y, s0.z)) : P0(L0.x, L0.y, 0);
|
|
40940
40940
|
}
|
|
40941
40941
|
for (let S0 = 1; S0 <= Fe; S0++)
|
|
40942
40942
|
for (let L0 = 0; L0 < _0; L0++) {
|
|
40943
40943
|
const A0 = Lt ? d0(Ht[L0], V0[L0], q0) : Ht[L0];
|
|
40944
|
-
Nt ? (n0.copy(
|
|
40944
|
+
Nt ? (n0.copy(Ft.normals[S0]).multiplyScalar(A0.x), jt.copy(Ft.binormals[S0]).multiplyScalar(A0.y), s0.copy(It[S0]).add(n0).add(jt), P0(s0.x, s0.y, s0.z)) : P0(A0.x, A0.y, mt / Fe * S0);
|
|
40945
40945
|
}
|
|
40946
40946
|
for (let S0 = xt - 1; S0 >= 0; S0--) {
|
|
40947
40947
|
const L0 = S0 / xt, A0 = bt * Math.cos(L0 * Math.PI / 2), B0 = Ue * Math.sin(L0 * Math.PI / 2) + Gt;
|
|
@@ -40970,23 +40970,23 @@ let K$1 = class zn extends BufferGeometry {
|
|
|
40970
40970
|
if (Vt)
|
|
40971
40971
|
for (let B0 = 0; B0 < Si; B0++) {
|
|
40972
40972
|
const r0 = D0[B0];
|
|
40973
|
-
|
|
40973
|
+
F0(r0[2] + A0, r0[1] + A0, r0[0] + A0);
|
|
40974
40974
|
}
|
|
40975
40975
|
if (L0 = Fe + xt * 2, A0 = _0 * L0, wt)
|
|
40976
40976
|
for (let B0 = 0; B0 < Si; B0++) {
|
|
40977
40977
|
const r0 = D0[B0];
|
|
40978
|
-
|
|
40978
|
+
F0(r0[0] + A0, r0[1] + A0, r0[2] + A0);
|
|
40979
40979
|
}
|
|
40980
40980
|
} else {
|
|
40981
40981
|
if (Vt)
|
|
40982
40982
|
for (let L0 = 0; L0 < Si; L0++) {
|
|
40983
40983
|
const A0 = D0[L0];
|
|
40984
|
-
|
|
40984
|
+
F0(A0[2], A0[1], A0[0]);
|
|
40985
40985
|
}
|
|
40986
40986
|
if (wt)
|
|
40987
40987
|
for (let L0 = 0; L0 < Si; L0++) {
|
|
40988
40988
|
const A0 = D0[L0];
|
|
40989
|
-
|
|
40989
|
+
F0(
|
|
40990
40990
|
A0[0] + _0 * Fe,
|
|
40991
40991
|
A0[1] + _0 * Fe,
|
|
40992
40992
|
A0[2] + _0 * Fe
|
|
@@ -41013,14 +41013,14 @@ let K$1 = class zn extends BufferGeometry {
|
|
|
41013
41013
|
r0 < 0 && (r0 = S0.length - 1);
|
|
41014
41014
|
for (let t0 = 0, m0 = Fe + xt * 2; t0 < m0; t0++) {
|
|
41015
41015
|
const v0 = _0 * t0, k0 = _0 * (t0 + 1), C0 = L0 + B0 + v0, Ci = L0 + r0 + v0, yi = L0 + r0 + k0, wi = L0 + B0 + k0;
|
|
41016
|
-
|
|
41016
|
+
K0(C0, Ci, yi, wi);
|
|
41017
41017
|
}
|
|
41018
41018
|
}
|
|
41019
41019
|
}
|
|
41020
41020
|
function P0(S0, L0, A0) {
|
|
41021
41021
|
ze.push(S0), ze.push(L0), ze.push(A0);
|
|
41022
41022
|
}
|
|
41023
|
-
function
|
|
41023
|
+
function F0(S0, L0, A0) {
|
|
41024
41024
|
I0(S0), I0(L0), I0(A0);
|
|
41025
41025
|
const B0 = C.length / 3, r0 = Zt.generateTopUV(
|
|
41026
41026
|
r,
|
|
@@ -41031,7 +41031,7 @@ let K$1 = class zn extends BufferGeometry {
|
|
|
41031
41031
|
);
|
|
41032
41032
|
Q0(r0[0]), Q0(r0[1]), Q0(r0[2]);
|
|
41033
41033
|
}
|
|
41034
|
-
function
|
|
41034
|
+
function K0(S0, L0, A0, B0) {
|
|
41035
41035
|
I0(S0), I0(L0), I0(B0), I0(L0), I0(A0), I0(B0);
|
|
41036
41036
|
const r0 = C.length / 3, t0 = Zt.generateSideWallUV(
|
|
41037
41037
|
r,
|
|
@@ -42586,8 +42586,8 @@ class SimplexNoise {
|
|
|
42586
42586
|
let bt, Ue;
|
|
42587
42587
|
mt > Lt ? (bt = 1, Ue = 0) : (bt = 0, Ue = 1);
|
|
42588
42588
|
const Gt = mt - bt + Se, xt = Lt - Ue + Se, Xt = mt - 1 + 2 * Se, Zt = Lt - 1 + 2 * Se, wt = le & 255, Vt = fe & 255, Wt = this.perm[wt + this.perm[Vt]] % 12, It = this.perm[wt + bt + this.perm[Vt + Ue]] % 12, Nt = this.perm[wt + 1 + this.perm[Vt + 1]] % 12;
|
|
42589
|
-
let
|
|
42590
|
-
|
|
42589
|
+
let Ft = 0.5 - mt * mt - Lt * Lt;
|
|
42590
|
+
Ft < 0 ? r = 0 : (Ft *= Ft, r = Ft * Ft * this._dot(this.grad3[Wt], mt, Lt));
|
|
42591
42591
|
let jt = 0.5 - Gt * Gt - xt * xt;
|
|
42592
42592
|
jt < 0 ? C = 0 : (jt *= jt, C = jt * jt * this._dot(this.grad3[It], Gt, xt));
|
|
42593
42593
|
let n0 = 0.5 - Xt * Xt - Zt * Zt;
|
|
@@ -42606,15 +42606,15 @@ class SimplexNoise {
|
|
|
42606
42606
|
const fe = (e + n + r) * 0.3333333333333333, Se = Math.floor(e + fe), ze = Math.floor(n + fe), ke = Math.floor(r + fe), Fe = 1 / 6, mt = (Se + ze + ke) * Fe, Lt = Se - mt, bt = ze - mt, Ue = ke - mt, Gt = e - Lt, xt = n - bt, Xt = r - Ue;
|
|
42607
42607
|
let Zt, wt, Vt, Wt, It, Nt;
|
|
42608
42608
|
Gt >= xt ? xt >= Xt ? (Zt = 1, wt = 0, Vt = 0, Wt = 1, It = 1, Nt = 0) : Gt >= Xt ? (Zt = 1, wt = 0, Vt = 0, Wt = 1, It = 0, Nt = 1) : (Zt = 0, wt = 0, Vt = 1, Wt = 1, It = 0, Nt = 1) : xt < Xt ? (Zt = 0, wt = 0, Vt = 1, Wt = 0, It = 1, Nt = 1) : Gt < Xt ? (Zt = 0, wt = 1, Vt = 0, Wt = 0, It = 1, Nt = 1) : (Zt = 0, wt = 1, Vt = 0, Wt = 1, It = 1, Nt = 0);
|
|
42609
|
-
const
|
|
42609
|
+
const Ft = Gt - Zt + Fe, jt = xt - wt + Fe, n0 = Xt - Vt + Fe, s0 = Gt - Wt + 2 * Fe, qt = xt - It + 2 * Fe, Ht = Xt - Nt + 2 * Fe, $t = Gt - 1 + 3 * Fe, Kt = xt - 1 + 3 * Fe, e0 = Xt - 1 + 3 * Fe, u0 = Se & 255, d0 = ze & 255, _0 = ke & 255, J0 = this.perm[u0 + this.perm[d0 + this.perm[_0]]] % 12, H0 = this.perm[u0 + Zt + this.perm[d0 + wt + this.perm[_0 + Vt]]] % 12, bi = this.perm[u0 + Wt + this.perm[d0 + It + this.perm[_0 + Nt]]] % 12, b0 = this.perm[u0 + 1 + this.perm[d0 + 1 + this.perm[_0 + 1]]] % 12;
|
|
42610
42610
|
let V0 = 0.6 - Gt * Gt - xt * xt - Xt * Xt;
|
|
42611
42611
|
V0 < 0 ? C = 0 : (V0 *= V0, C = V0 * V0 * this._dot3(this.grad3[J0], Gt, xt, Xt));
|
|
42612
|
-
let D0 = 0.6 -
|
|
42613
|
-
D0 < 0 ? w = 0 : (D0 *= D0, w = D0 * D0 * this._dot3(this.grad3[H0],
|
|
42612
|
+
let D0 = 0.6 - Ft * Ft - jt * jt - n0 * n0;
|
|
42613
|
+
D0 < 0 ? w = 0 : (D0 *= D0, w = D0 * D0 * this._dot3(this.grad3[H0], Ft, jt, n0));
|
|
42614
42614
|
let Si = 0.6 - s0 * s0 - qt * qt - Ht * Ht;
|
|
42615
42615
|
Si < 0 ? E = 0 : (Si *= Si, E = Si * Si * this._dot3(this.grad3[bi], s0, qt, Ht));
|
|
42616
|
-
let q0 = 0.6 - $t * $t -
|
|
42617
|
-
return q0 < 0 ? O = 0 : (q0 *= q0, O = q0 * q0 * this._dot3(this.grad3[b0], $t,
|
|
42616
|
+
let q0 = 0.6 - $t * $t - Kt * Kt - e0 * e0;
|
|
42617
|
+
return q0 < 0 ? O = 0 : (q0 *= q0, O = q0 * q0 * this._dot3(this.grad3[b0], $t, Kt, e0)), 32 * (C + w + E + O);
|
|
42618
42618
|
}
|
|
42619
42619
|
/**
|
|
42620
42620
|
* A 4D simplex noise method.
|
|
@@ -42628,13 +42628,13 @@ class SimplexNoise {
|
|
|
42628
42628
|
noise4d(e, n, r, C) {
|
|
42629
42629
|
const w = this.grad4, E = this.simplex, O = this.perm, le = (Math.sqrt(5) - 1) / 4, fe = (5 - Math.sqrt(5)) / 20;
|
|
42630
42630
|
let Se, ze, ke, Fe, mt;
|
|
42631
|
-
const Lt = (e + n + r + C) * le, bt = Math.floor(e + Lt), Ue = Math.floor(n + Lt), Gt = Math.floor(r + Lt), xt = Math.floor(C + Lt), Xt = (bt + Ue + Gt + xt) * fe, Zt = bt - Xt, wt = Ue - Xt, Vt = Gt - Xt, Wt = xt - Xt, It = e - Zt, Nt = n - wt,
|
|
42632
|
-
let Gi = 0.6 - It * It - Nt * Nt -
|
|
42633
|
-
Gi < 0 ? Se = 0 : (Gi *= Gi, Se = Gi * Gi * this._dot4(w[Ei], It, Nt,
|
|
42634
|
-
let zi = 0.6 - Ai * Ai - a0 * a0 - P0 * P0 -
|
|
42635
|
-
zi < 0 ? ze = 0 : (zi *= zi, ze = zi * zi * this._dot4(w[gi], Ai, a0, P0,
|
|
42636
|
-
let f0 = 0.6 -
|
|
42637
|
-
f0 < 0 ? ke = 0 : (f0 *= f0, ke = f0 * f0 * this._dot4(w[Ti],
|
|
42631
|
+
const Lt = (e + n + r + C) * le, bt = Math.floor(e + Lt), Ue = Math.floor(n + Lt), Gt = Math.floor(r + Lt), xt = Math.floor(C + Lt), Xt = (bt + Ue + Gt + xt) * fe, Zt = bt - Xt, wt = Ue - Xt, Vt = Gt - Xt, Wt = xt - Xt, It = e - Zt, Nt = n - wt, Ft = r - Vt, jt = C - Wt, n0 = It > Nt ? 32 : 0, s0 = It > Ft ? 16 : 0, qt = Nt > Ft ? 8 : 0, Ht = It > jt ? 4 : 0, $t = Nt > jt ? 2 : 0, Kt = Ft > jt ? 1 : 0, e0 = n0 + s0 + qt + Ht + $t + Kt, u0 = E[e0][0] >= 3 ? 1 : 0, d0 = E[e0][1] >= 3 ? 1 : 0, _0 = E[e0][2] >= 3 ? 1 : 0, J0 = E[e0][3] >= 3 ? 1 : 0, H0 = E[e0][0] >= 2 ? 1 : 0, bi = E[e0][1] >= 2 ? 1 : 0, b0 = E[e0][2] >= 2 ? 1 : 0, V0 = E[e0][3] >= 2 ? 1 : 0, D0 = E[e0][0] >= 1 ? 1 : 0, Si = E[e0][1] >= 1 ? 1 : 0, q0 = E[e0][2] >= 1 ? 1 : 0, Wi = E[e0][3] >= 1 ? 1 : 0, Ai = It - u0 + fe, a0 = Nt - d0 + fe, P0 = Ft - _0 + fe, F0 = jt - J0 + fe, K0 = It - H0 + 2 * fe, I0 = Nt - bi + 2 * fe, Q0 = Ft - b0 + 2 * fe, S0 = jt - V0 + 2 * fe, L0 = It - D0 + 3 * fe, A0 = Nt - Si + 3 * fe, B0 = Ft - q0 + 3 * fe, r0 = jt - Wi + 3 * fe, t0 = It - 1 + 4 * fe, m0 = Nt - 1 + 4 * fe, v0 = Ft - 1 + 4 * fe, k0 = jt - 1 + 4 * fe, C0 = bt & 255, Ci = Ue & 255, yi = Gt & 255, wi = xt & 255, Ei = O[C0 + O[Ci + O[yi + O[wi]]]] % 32, gi = O[C0 + u0 + O[Ci + d0 + O[yi + _0 + O[wi + J0]]]] % 32, Ti = O[C0 + H0 + O[Ci + bi + O[yi + b0 + O[wi + V0]]]] % 32, Ii = O[C0 + D0 + O[Ci + Si + O[yi + q0 + O[wi + Wi]]]] % 32, Ni = O[C0 + 1 + O[Ci + 1 + O[yi + 1 + O[wi + 1]]]] % 32;
|
|
42632
|
+
let Gi = 0.6 - It * It - Nt * Nt - Ft * Ft - jt * jt;
|
|
42633
|
+
Gi < 0 ? Se = 0 : (Gi *= Gi, Se = Gi * Gi * this._dot4(w[Ei], It, Nt, Ft, jt));
|
|
42634
|
+
let zi = 0.6 - Ai * Ai - a0 * a0 - P0 * P0 - F0 * F0;
|
|
42635
|
+
zi < 0 ? ze = 0 : (zi *= zi, ze = zi * zi * this._dot4(w[gi], Ai, a0, P0, F0));
|
|
42636
|
+
let f0 = 0.6 - K0 * K0 - I0 * I0 - Q0 * Q0 - S0 * S0;
|
|
42637
|
+
f0 < 0 ? ke = 0 : (f0 *= f0, ke = f0 * f0 * this._dot4(w[Ti], K0, I0, Q0, S0));
|
|
42638
42638
|
let xi = 0.6 - L0 * L0 - A0 * A0 - B0 * B0 - r0 * r0;
|
|
42639
42639
|
xi < 0 ? Fe = 0 : (xi *= xi, Fe = xi * xi * this._dot4(w[Ii], L0, A0, B0, r0));
|
|
42640
42640
|
let R0 = 0.6 - t0 * t0 - m0 * m0 - v0 * v0 - k0 * k0;
|
|
@@ -43454,13 +43454,13 @@ class ViewHelper extends Object3D {
|
|
|
43454
43454
|
Lt.rotation.z = Math.PI / 2, bt.rotation.y = -Math.PI / 2, this.add(mt), this.add(bt), this.add(Lt);
|
|
43455
43455
|
const Ue = _0(r), Gt = _0(C), xt = _0(w), Xt = _0(E), Zt = new Sprite$1(Ue), wt = new Sprite$1(Gt), Vt = new Sprite$1(xt), Wt = new Sprite$1(Xt), It = new Sprite$1(Xt), Nt = new Sprite$1(Xt);
|
|
43456
43456
|
Zt.position.x = 1, wt.position.y = 1, Vt.position.z = 1, Wt.position.x = -1, It.position.y = -1, Nt.position.z = -1, Wt.material.opacity = 0.2, It.material.opacity = 0.2, Nt.material.opacity = 0.2, Zt.userData.type = "posX", wt.userData.type = "posY", Vt.userData.type = "posZ", Wt.userData.type = "negX", It.userData.type = "negY", Nt.userData.type = "negZ", this.add(Zt), this.add(wt), this.add(Vt), this.add(Wt), this.add(It), this.add(Nt), le.push(Zt), le.push(wt), le.push(Vt), le.push(Wt), le.push(It), le.push(Nt);
|
|
43457
|
-
const
|
|
43457
|
+
const Ft = new Vector3(), jt = 128, n0 = 2 * Math.PI;
|
|
43458
43458
|
this.render = function(H0) {
|
|
43459
|
-
this.quaternion.copy(e.quaternion).invert(), this.updateMatrixWorld(),
|
|
43459
|
+
this.quaternion.copy(e.quaternion).invert(), this.updateMatrixWorld(), Ft.set(0, 0, 1), Ft.applyQuaternion(e.quaternion);
|
|
43460
43460
|
const bi = n.offsetWidth - jt, b0 = H0.isWebGPURenderer ? n.offsetHeight - jt : 0;
|
|
43461
|
-
H0.clearDepth(), H0.getViewport(
|
|
43461
|
+
H0.clearDepth(), H0.getViewport(Kt), H0.setViewport(bi, b0, jt, jt), H0.render(this, ke), H0.setViewport(Kt.x, Kt.y, Kt.z, Kt.w);
|
|
43462
43462
|
};
|
|
43463
|
-
const s0 = new Vector3(), qt = new Quaternion(), Ht = new Quaternion(), $t = new Quaternion(),
|
|
43463
|
+
const s0 = new Vector3(), qt = new Quaternion(), Ht = new Quaternion(), $t = new Quaternion(), Kt = new Vector4();
|
|
43464
43464
|
let e0 = 0;
|
|
43465
43465
|
this.handleClick = function(H0) {
|
|
43466
43466
|
if (this.animating === !0) return !1;
|
|
@@ -43975,23 +43975,23 @@ var flrm = /* @__PURE__ */ hMap(flt, 9, 1), fdrm = /* @__PURE__ */ hMap(fdt, 5,
|
|
|
43975
43975
|
else if (Gt == 2) {
|
|
43976
43976
|
var wt = bits(v, ze, 31) + 257, Vt = bits(v, ze + 10, 15) + 4, Wt = wt + bits(v, ze + 5, 31) + 1;
|
|
43977
43977
|
ze += 14;
|
|
43978
|
-
for (var It = new u8(Wt), Nt = new u8(19),
|
|
43979
|
-
Nt[clim[
|
|
43978
|
+
for (var It = new u8(Wt), Nt = new u8(19), Ft = 0; Ft < Vt; ++Ft)
|
|
43979
|
+
Nt[clim[Ft]] = bits(v, ze + Ft * 3, 7);
|
|
43980
43980
|
ze += Vt * 3;
|
|
43981
|
-
for (var jt = max(Nt), n0 = (1 << jt) - 1, s0 = hMap(Nt, jt, 1),
|
|
43981
|
+
for (var jt = max(Nt), n0 = (1 << jt) - 1, s0 = hMap(Nt, jt, 1), Ft = 0; Ft < Wt; ) {
|
|
43982
43982
|
var qt = s0[bits(v, ze, n0)];
|
|
43983
43983
|
ze += qt & 15;
|
|
43984
43984
|
var xt = qt >> 4;
|
|
43985
43985
|
if (xt < 16)
|
|
43986
|
-
It[
|
|
43986
|
+
It[Ft++] = xt;
|
|
43987
43987
|
else {
|
|
43988
43988
|
var Ht = 0, $t = 0;
|
|
43989
|
-
for (xt == 16 ? ($t = 3 + bits(v, ze, 3), ze += 2, Ht = It[
|
|
43990
|
-
It[
|
|
43989
|
+
for (xt == 16 ? ($t = 3 + bits(v, ze, 3), ze += 2, Ht = It[Ft - 1]) : xt == 17 ? ($t = 3 + bits(v, ze, 7), ze += 3) : xt == 18 && ($t = 11 + bits(v, ze, 127), ze += 7); $t--; )
|
|
43990
|
+
It[Ft++] = Ht;
|
|
43991
43991
|
}
|
|
43992
43992
|
}
|
|
43993
|
-
var
|
|
43994
|
-
Lt = max(
|
|
43993
|
+
var Kt = It.subarray(0, wt), e0 = It.subarray(wt);
|
|
43994
|
+
Lt = max(Kt), bt = max(e0), Fe = hMap(Kt, Lt, 1), mt = hMap(e0, bt, 1);
|
|
43995
43995
|
} else
|
|
43996
43996
|
err(1);
|
|
43997
43997
|
else {
|
|
@@ -44023,8 +44023,8 @@ var flrm = /* @__PURE__ */ hMap(flt, 9, 1), fdrm = /* @__PURE__ */ hMap(fdt, 5,
|
|
|
44023
44023
|
} else {
|
|
44024
44024
|
var H0 = J0 - 254;
|
|
44025
44025
|
if (J0 > 264) {
|
|
44026
|
-
var
|
|
44027
|
-
H0 = bits(v, ze, (1 << bi) - 1) + fl[
|
|
44026
|
+
var Ft = J0 - 257, bi = fleb[Ft];
|
|
44027
|
+
H0 = bits(v, ze, (1 << bi) - 1) + fl[Ft], ze += bi;
|
|
44028
44028
|
}
|
|
44029
44029
|
var b0 = mt[bits16(v, ze) & d0], V0 = b0 >> 4;
|
|
44030
44030
|
b0 || err(3), ze += b0 & 15;
|
|
@@ -44087,7 +44087,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44087
44087
|
for (; i0 < 65536; ) kt[i0++] = 0;
|
|
44088
44088
|
return o0;
|
|
44089
44089
|
}
|
|
44090
|
-
function
|
|
44090
|
+
function Ft(Yt) {
|
|
44091
44091
|
for (let kt = 0; kt < 16384; kt++)
|
|
44092
44092
|
Yt[kt] = {}, Yt[kt].len = 0, Yt[kt].lit = 0, Yt[kt].p = null;
|
|
44093
44093
|
}
|
|
@@ -44140,12 +44140,12 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44140
44140
|
function $t(Yt) {
|
|
44141
44141
|
return Yt & 63;
|
|
44142
44142
|
}
|
|
44143
|
-
function
|
|
44143
|
+
function Kt(Yt) {
|
|
44144
44144
|
return Yt >> 6;
|
|
44145
44145
|
}
|
|
44146
44146
|
function e0(Yt, kt, i0, o0) {
|
|
44147
44147
|
for (; kt <= i0; kt++) {
|
|
44148
|
-
const c0 =
|
|
44148
|
+
const c0 = Kt(Yt[kt]), h0 = $t(Yt[kt]);
|
|
44149
44149
|
if (c0 >> h0)
|
|
44150
44150
|
throw new Error("Invalid table entry");
|
|
44151
44151
|
if (h0 > 14) {
|
|
@@ -44215,13 +44215,13 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44215
44215
|
for (M0 >>= 1, w0 = M0, M0 >>= 1; M0 >= 1; ) {
|
|
44216
44216
|
U0 = 0;
|
|
44217
44217
|
const N0 = U0 + h0 * (c0 - w0), $0 = h0 * M0, Ri = h0 * w0, vi = o0 * M0, Li = o0 * w0;
|
|
44218
|
-
let Vi, Zi,
|
|
44218
|
+
let Vi, Zi, Ki, Fi;
|
|
44219
44219
|
for (; U0 <= N0; U0 += Ri) {
|
|
44220
44220
|
let Di = U0;
|
|
44221
44221
|
const Hi = U0 + o0 * (i0 - w0);
|
|
44222
44222
|
for (; Di <= Hi; Di += Li) {
|
|
44223
44223
|
const ji = Di + vi, nn = Di + $0, Yi = nn + vi;
|
|
44224
|
-
T0 ? (V0(Yt[Di + kt], Yt[nn + kt]), Vi = b0.a,
|
|
44224
|
+
T0 ? (V0(Yt[Di + kt], Yt[nn + kt]), Vi = b0.a, Ki = b0.b, V0(Yt[ji + kt], Yt[Yi + kt]), Zi = b0.a, Fi = b0.b, V0(Vi, Zi), Yt[Di + kt] = b0.a, Yt[ji + kt] = b0.b, V0(Ki, Fi), Yt[nn + kt] = b0.a, Yt[Yi + kt] = b0.b) : (D0(Yt[Di + kt], Yt[nn + kt]), Vi = b0.a, Ki = b0.b, D0(Yt[ji + kt], Yt[Yi + kt]), Zi = b0.a, Fi = b0.b, D0(Vi, Zi), Yt[Di + kt] = b0.a, Yt[ji + kt] = b0.b, D0(Ki, Fi), Yt[nn + kt] = b0.a, Yt[Yi + kt] = b0.b);
|
|
44225
44225
|
}
|
|
44226
44226
|
if (i0 & M0) {
|
|
44227
44227
|
const ji = Di + $0;
|
|
@@ -44256,7 +44256,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44256
44256
|
const Vi = $t(Yt[vi.p[Li]]);
|
|
44257
44257
|
for (; w0 < Vi && o0.value < N0; )
|
|
44258
44258
|
d0(M0, w0, i0, o0), M0 = u0.c, w0 = u0.lc;
|
|
44259
|
-
if (w0 >= Vi &&
|
|
44259
|
+
if (w0 >= Vi && Kt(Yt[vi.p[Li]]) == (M0 >> w0 - Vi & (1 << Vi) - 1)) {
|
|
44260
44260
|
w0 -= Vi, J0(vi.p[Li], h0, M0, w0, i0, o0, T0, G0, U0), M0 = _0.c, w0 = _0.lc;
|
|
44261
44261
|
break;
|
|
44262
44262
|
}
|
|
@@ -44282,7 +44282,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44282
44282
|
if (i0.value += 4, G0 < 0 || G0 >= 65537 || M0 < 0 || M0 >= 65537)
|
|
44283
44283
|
throw new Error("Something wrong with HUF_ENCSIZE");
|
|
44284
44284
|
const U0 = new Array(65537), N0 = new Array(16384);
|
|
44285
|
-
|
|
44285
|
+
Ft(N0);
|
|
44286
44286
|
const $0 = o0 - (i0.value - T0);
|
|
44287
44287
|
if (Ht(Yt, i0, $0, G0, M0, U0), w0 > 8 * (o0 - (i0.value - T0)))
|
|
44288
44288
|
throw new Error("Something wrong with hufUncompress");
|
|
@@ -44304,7 +44304,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44304
44304
|
for (; !(c0 > h0 || (kt[c0++] = Yt[i0++], c0 > h0)); )
|
|
44305
44305
|
kt[c0++] = Yt[o0++];
|
|
44306
44306
|
}
|
|
44307
|
-
function
|
|
44307
|
+
function F0(Yt) {
|
|
44308
44308
|
let kt = Yt.byteLength;
|
|
44309
44309
|
const i0 = new Array();
|
|
44310
44310
|
let o0 = 0;
|
|
@@ -44326,11 +44326,11 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44326
44326
|
}
|
|
44327
44327
|
return i0;
|
|
44328
44328
|
}
|
|
44329
|
-
function
|
|
44329
|
+
function K0(Yt, kt, i0, o0, c0, h0) {
|
|
44330
44330
|
let l0 = new DataView(h0.buffer);
|
|
44331
|
-
const T0 = i0[Yt.idx[0]].width, G0 = i0[Yt.idx[0]].height, M0 = 3, w0 = Math.floor(T0 / 8), U0 = Math.ceil(T0 / 8), N0 = Math.ceil(G0 / 8), $0 = T0 - (U0 - 1) * 8, Ri = G0 - (N0 - 1) * 8, vi = { value: 0 }, Li = new Array(M0), Vi = new Array(M0), Zi = new Array(M0),
|
|
44331
|
+
const T0 = i0[Yt.idx[0]].width, G0 = i0[Yt.idx[0]].height, M0 = 3, w0 = Math.floor(T0 / 8), U0 = Math.ceil(T0 / 8), N0 = Math.ceil(G0 / 8), $0 = T0 - (U0 - 1) * 8, Ri = G0 - (N0 - 1) * 8, vi = { value: 0 }, Li = new Array(M0), Vi = new Array(M0), Zi = new Array(M0), Ki = new Array(M0), Fi = new Array(M0);
|
|
44332
44332
|
for (let Hi = 0; Hi < M0; ++Hi)
|
|
44333
|
-
|
|
44333
|
+
Fi[Hi] = kt[Yt.idx[Hi]], Li[Hi] = Hi < 1 ? 0 : Li[Hi - 1] + U0 * N0, Vi[Hi] = new Float32Array(64), Zi[Hi] = new Uint16Array(64), Ki[Hi] = new Uint16Array(U0 * 64);
|
|
44334
44334
|
for (let Hi = 0; Hi < N0; ++Hi) {
|
|
44335
44335
|
let ji = 8;
|
|
44336
44336
|
Hi == N0 - 1 && (ji = Ri);
|
|
@@ -44341,23 +44341,23 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44341
44341
|
Zi[Ji].fill(0), Zi[Ji][0] = c0[Li[Ji]++], Q0(vi, o0, Zi[Ji]), S0(Zi[Ji], Vi[Ji]), L0(Vi[Ji]);
|
|
44342
44342
|
A0(Vi);
|
|
44343
44343
|
for (let Ji = 0; Ji < M0; ++Ji)
|
|
44344
|
-
B0(Vi[Ji],
|
|
44344
|
+
B0(Vi[Ji], Ki[Ji], Bi * 64);
|
|
44345
44345
|
}
|
|
44346
44346
|
let Yi = 0;
|
|
44347
44347
|
for (let Bi = 0; Bi < M0; ++Bi) {
|
|
44348
44348
|
const Ji = i0[Yt.idx[Bi]].type;
|
|
44349
44349
|
for (let qi = 8 * Hi; qi < 8 * Hi + ji; ++qi) {
|
|
44350
|
-
Yi =
|
|
44350
|
+
Yi = Fi[Bi][qi];
|
|
44351
44351
|
for (let on = 0; on < w0; ++on) {
|
|
44352
44352
|
const ln = on * 64 + (qi & 7) * 8;
|
|
44353
|
-
l0.setUint16(Yi + 0 * 2 * Ji,
|
|
44353
|
+
l0.setUint16(Yi + 0 * 2 * Ji, Ki[Bi][ln + 0], !0), l0.setUint16(Yi + 1 * 2 * Ji, Ki[Bi][ln + 1], !0), l0.setUint16(Yi + 2 * 2 * Ji, Ki[Bi][ln + 2], !0), l0.setUint16(Yi + 3 * 2 * Ji, Ki[Bi][ln + 3], !0), l0.setUint16(Yi + 4 * 2 * Ji, Ki[Bi][ln + 4], !0), l0.setUint16(Yi + 5 * 2 * Ji, Ki[Bi][ln + 5], !0), l0.setUint16(Yi + 6 * 2 * Ji, Ki[Bi][ln + 6], !0), l0.setUint16(Yi + 7 * 2 * Ji, Ki[Bi][ln + 7], !0), Yi += 8 * 2 * Ji;
|
|
44354
44354
|
}
|
|
44355
44355
|
}
|
|
44356
44356
|
if (w0 != U0)
|
|
44357
44357
|
for (let qi = 8 * Hi; qi < 8 * Hi + ji; ++qi) {
|
|
44358
|
-
const on =
|
|
44358
|
+
const on = Fi[Bi][qi] + 8 * w0 * 2 * Ji, ln = w0 * 64 + (qi & 7) * 8;
|
|
44359
44359
|
for (let hn = 0; hn < nn; ++hn)
|
|
44360
|
-
l0.setUint16(on + hn * 2 * Ji,
|
|
44360
|
+
l0.setUint16(on + hn * 2 * Ji, Ki[Bi][ln + hn], !0);
|
|
44361
44361
|
}
|
|
44362
44362
|
}
|
|
44363
44363
|
}
|
|
@@ -44368,7 +44368,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44368
44368
|
const ji = i0[Yt.idx[Hi]].type;
|
|
44369
44369
|
if (i0[Hi].type == 2)
|
|
44370
44370
|
for (let nn = 0; nn < G0; ++nn) {
|
|
44371
|
-
const Yi =
|
|
44371
|
+
const Yi = Fi[Hi][nn];
|
|
44372
44372
|
for (let Bi = 0; Bi < T0; ++Bi)
|
|
44373
44373
|
Di[Bi] = l0.getUint16(Yi + Bi * 2 * ji, !0);
|
|
44374
44374
|
for (let Bi = 0; Bi < T0; ++Bi)
|
|
@@ -44379,24 +44379,24 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44379
44379
|
function I0(Yt, kt, i0, o0, c0, h0) {
|
|
44380
44380
|
const l0 = new DataView(h0.buffer), T0 = i0[Yt], G0 = T0.width, M0 = T0.height, w0 = Math.ceil(G0 / 8), U0 = Math.ceil(M0 / 8), N0 = Math.floor(G0 / 8), $0 = G0 - (w0 - 1) * 8, Ri = M0 - (U0 - 1) * 8, vi = { value: 0 };
|
|
44381
44381
|
let Li = 0;
|
|
44382
|
-
const Vi = new Float32Array(64), Zi = new Uint16Array(64),
|
|
44383
|
-
for (let
|
|
44382
|
+
const Vi = new Float32Array(64), Zi = new Uint16Array(64), Ki = new Uint16Array(w0 * 64);
|
|
44383
|
+
for (let Fi = 0; Fi < U0; ++Fi) {
|
|
44384
44384
|
let Di = 8;
|
|
44385
|
-
|
|
44385
|
+
Fi == U0 - 1 && (Di = Ri);
|
|
44386
44386
|
for (let Hi = 0; Hi < w0; ++Hi)
|
|
44387
|
-
Zi.fill(0), Zi[0] = c0[Li++], Q0(vi, o0, Zi), S0(Zi, Vi), L0(Vi), B0(Vi,
|
|
44388
|
-
for (let Hi = 8 *
|
|
44387
|
+
Zi.fill(0), Zi[0] = c0[Li++], Q0(vi, o0, Zi), S0(Zi, Vi), L0(Vi), B0(Vi, Ki, Hi * 64);
|
|
44388
|
+
for (let Hi = 8 * Fi; Hi < 8 * Fi + Di; ++Hi) {
|
|
44389
44389
|
let ji = kt[Yt][Hi];
|
|
44390
44390
|
for (let nn = 0; nn < N0; ++nn) {
|
|
44391
44391
|
const Yi = nn * 64 + (Hi & 7) * 8;
|
|
44392
44392
|
for (let Bi = 0; Bi < 8; ++Bi)
|
|
44393
|
-
l0.setUint16(ji + Bi * 2 * T0.type,
|
|
44393
|
+
l0.setUint16(ji + Bi * 2 * T0.type, Ki[Yi + Bi], !0);
|
|
44394
44394
|
ji += 8 * 2 * T0.type;
|
|
44395
44395
|
}
|
|
44396
44396
|
if (w0 != N0) {
|
|
44397
44397
|
const nn = N0 * 64 + (Hi & 7) * 8;
|
|
44398
44398
|
for (let Yi = 0; Yi < $0; ++Yi)
|
|
44399
|
-
l0.setUint16(ji + Yi * 2 * T0.type,
|
|
44399
|
+
l0.setUint16(ji + Yi * 2 * T0.type, Ki[nn + Yi], !0);
|
|
44400
44400
|
}
|
|
44401
44401
|
}
|
|
44402
44402
|
}
|
|
@@ -44436,7 +44436,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44436
44436
|
return new DataView(Yt.array.buffer, Yt.offset.value, Yt.size);
|
|
44437
44437
|
}
|
|
44438
44438
|
function m0(Yt) {
|
|
44439
|
-
const kt = Yt.viewer.buffer.slice(Yt.offset.value, Yt.offset.value + Yt.size), i0 = new Uint8Array(
|
|
44439
|
+
const kt = Yt.viewer.buffer.slice(Yt.offset.value, Yt.offset.value + Yt.size), i0 = new Uint8Array(F0(kt)), o0 = new Uint8Array(i0.length);
|
|
44440
44440
|
return a0(i0), P0(i0, o0), new DataView(o0.buffer);
|
|
44441
44441
|
}
|
|
44442
44442
|
function v0(Yt) {
|
|
@@ -44525,11 +44525,11 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44525
44525
|
const h0 = new Array();
|
|
44526
44526
|
let l0 = Pi(kt, i0) - 2;
|
|
44527
44527
|
for (; l0 > 0; ) {
|
|
44528
|
-
const vi = yi(kt.buffer, i0), Li = Gi(kt, i0), Vi = Li >> 2 & 3, Zi = (Li >> 4) - 1,
|
|
44528
|
+
const vi = yi(kt.buffer, i0), Li = Gi(kt, i0), Vi = Li >> 2 & 3, Zi = (Li >> 4) - 1, Ki = new Int8Array([Zi])[0], Fi = Gi(kt, i0);
|
|
44529
44529
|
h0.push({
|
|
44530
44530
|
name: vi,
|
|
44531
|
-
index:
|
|
44532
|
-
type:
|
|
44531
|
+
index: Ki,
|
|
44532
|
+
type: Fi,
|
|
44533
44533
|
compression: Vi
|
|
44534
44534
|
}), l0 -= vi.length + 3;
|
|
44535
44535
|
}
|
|
@@ -44569,7 +44569,7 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44569
44569
|
}
|
|
44570
44570
|
if (c0.rleRawSize > 0) {
|
|
44571
44571
|
const vi = Yt.array.slice(i0.value, i0.value + c0.rleCompressedSize), Li = unzlibSync(vi);
|
|
44572
|
-
N0 =
|
|
44572
|
+
N0 = F0(Li.buffer), i0.value += c0.rleCompressedSize;
|
|
44573
44573
|
}
|
|
44574
44574
|
let $0 = 0;
|
|
44575
44575
|
const Ri = new Array(G0.length);
|
|
@@ -44578,18 +44578,18 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44578
44578
|
for (let vi = 0; vi < Yt.lines; ++vi)
|
|
44579
44579
|
for (let Li = 0; Li < G0.length; ++Li)
|
|
44580
44580
|
Ri[Li].push($0), $0 += G0[Li].width * Yt.type * 2;
|
|
44581
|
-
M0.idx[0] !== void 0 && G0[M0.idx[0]] &&
|
|
44581
|
+
M0.idx[0] !== void 0 && G0[M0.idx[0]] && K0(M0, Ri, G0, w0, U0, o0);
|
|
44582
44582
|
for (let vi = 0; vi < G0.length; ++vi) {
|
|
44583
44583
|
const Li = G0[vi];
|
|
44584
44584
|
if (!Li.decoded)
|
|
44585
44585
|
switch (Li.compression) {
|
|
44586
44586
|
case 2:
|
|
44587
44587
|
let Vi = 0, Zi = 0;
|
|
44588
|
-
for (let
|
|
44589
|
-
let
|
|
44588
|
+
for (let Ki = 0; Ki < Yt.lines; ++Ki) {
|
|
44589
|
+
let Fi = Ri[vi][Vi];
|
|
44590
44590
|
for (let Di = 0; Di < Li.width; ++Di) {
|
|
44591
44591
|
for (let Hi = 0; Hi < 2 * Li.type; ++Hi)
|
|
44592
|
-
o0[
|
|
44592
|
+
o0[Fi++] = N0[Zi + Hi * Li.width * Li.height];
|
|
44593
44593
|
Zi++;
|
|
44594
44594
|
}
|
|
44595
44595
|
Vi++;
|
|
@@ -44823,8 +44823,8 @@ class EXRLoader extends DataTextureLoader {
|
|
|
44823
44823
|
i0.value = N0 + vi;
|
|
44824
44824
|
const Vi = (Yt.height - (1 + T0 + U0)) * Yt.outLineWidth;
|
|
44825
44825
|
for (let Zi = 0; Zi < Yt.columns; Zi++) {
|
|
44826
|
-
const
|
|
44827
|
-
Yt.byteArray[
|
|
44826
|
+
const Ki = Vi + (Zi + l0) * Yt.outputChannels + Li;
|
|
44827
|
+
Yt.byteArray[Ki] = Yt.getter(w0, i0);
|
|
44828
44828
|
}
|
|
44829
44829
|
}
|
|
44830
44830
|
}
|
|
@@ -46523,8 +46523,8 @@ class GLTFParser {
|
|
|
46523
46523
|
Zt.updateMatrix && Zt.updateMatrix();
|
|
46524
46524
|
const Nt = r._createAnimationTracks(Zt, wt, Vt, Wt, It);
|
|
46525
46525
|
if (Nt)
|
|
46526
|
-
for (let
|
|
46527
|
-
Ue.push(Nt[
|
|
46526
|
+
for (let Ft = 0; Ft < Nt.length; Ft++)
|
|
46527
|
+
Ue.push(Nt[Ft]);
|
|
46528
46528
|
}
|
|
46529
46529
|
const Gt = new AnimationClip(w, void 0, Ue);
|
|
46530
46530
|
return assignExtrasToUserData(Gt, C), Gt;
|
|
@@ -46905,13 +46905,13 @@ if (typeof document != "undefined") {
|
|
|
46905
46905
|
return function(Fe, mt, Lt, bt) {
|
|
46906
46906
|
var Ue = (Fe[0] + "_" + Fe[1] + "_" + mt[0] + "_" + mt[1] + "_" + Lt[0] + "_" + Lt[1] + "_" + bt[0] + "_" + bt[1]).replace(/\./g, "p");
|
|
46907
46907
|
if (!ke[Ue]) {
|
|
46908
|
-
var Gt = getDefaultCurveSegments(), xt, Xt, Zt, wt, Vt, Wt = 0, It, Nt,
|
|
46908
|
+
var Gt = getDefaultCurveSegments(), xt, Xt, Zt, wt, Vt, Wt = 0, It, Nt, Ft = null;
|
|
46909
46909
|
Fe.length === 2 && (Fe[0] !== mt[0] || Fe[1] !== mt[1]) && e(Fe[0], Fe[1], mt[0], mt[1], Fe[0] + Lt[0], Fe[1] + Lt[1]) && e(Fe[0], Fe[1], mt[0], mt[1], mt[0] + bt[0], mt[1] + bt[1]) && (Gt = 2);
|
|
46910
46910
|
var jt = new w(Gt);
|
|
46911
46911
|
for (Zt = Lt.length, xt = 0; xt < Gt; xt += 1) {
|
|
46912
46912
|
for (Nt = createSizedArray(Zt), Vt = xt / (Gt - 1), It = 0, Xt = 0; Xt < Zt; Xt += 1)
|
|
46913
|
-
wt = bmPow(1 - Vt, 3) * Fe[Xt] + 3 * bmPow(1 - Vt, 2) * Vt * (Fe[Xt] + Lt[Xt]) + 3 * (1 - Vt) * bmPow(Vt, 2) * (mt[Xt] + bt[Xt]) + bmPow(Vt, 3) * mt[Xt], Nt[Xt] = wt,
|
|
46914
|
-
It = bmSqrt(It), Wt += It, jt.points[xt] = new E(It, Nt),
|
|
46913
|
+
wt = bmPow(1 - Vt, 3) * Fe[Xt] + 3 * bmPow(1 - Vt, 2) * Vt * (Fe[Xt] + Lt[Xt]) + 3 * (1 - Vt) * bmPow(Vt, 2) * (mt[Xt] + bt[Xt]) + bmPow(Vt, 3) * mt[Xt], Nt[Xt] = wt, Ft !== null && (It += bmPow(Nt[Xt] - Ft[Xt], 2));
|
|
46914
|
+
It = bmSqrt(It), Wt += It, jt.points[xt] = new E(It, Nt), Ft = Nt;
|
|
46915
46915
|
}
|
|
46916
46916
|
jt.segmentLength = Wt, ke[Ue] = jt;
|
|
46917
46917
|
}
|
|
@@ -46939,9 +46939,9 @@ if (typeof document != "undefined") {
|
|
|
46939
46939
|
bt < 0 ? bt = 0 : bt > 1 && (bt = 1);
|
|
46940
46940
|
var xt = le(bt, Gt);
|
|
46941
46941
|
Ue = Ue > 1 ? 1 : Ue;
|
|
46942
|
-
var Xt = le(Ue, Gt), Zt, wt = ke.length, Vt = 1 - xt, Wt = 1 - Xt, It = Vt * Vt * Vt, Nt = xt * Vt * Vt * 3,
|
|
46942
|
+
var Xt = le(Ue, Gt), Zt, wt = ke.length, Vt = 1 - xt, Wt = 1 - Xt, It = Vt * Vt * Vt, Nt = xt * Vt * Vt * 3, Ft = xt * xt * Vt * 3, jt = xt * xt * xt, n0 = Vt * Vt * Wt, s0 = xt * Vt * Wt + Vt * xt * Wt + Vt * Vt * Xt, qt = xt * xt * Wt + Vt * xt * Xt + xt * Vt * Xt, Ht = xt * xt * Xt, $t = Vt * Wt * Wt, Kt = xt * Wt * Wt + Vt * Xt * Wt + Vt * Wt * Xt, e0 = xt * Xt * Wt + Vt * Xt * Xt + xt * Wt * Xt, u0 = xt * Xt * Xt, d0 = Wt * Wt * Wt, _0 = Xt * Wt * Wt + Wt * Xt * Wt + Wt * Wt * Xt, J0 = Xt * Xt * Wt + Wt * Xt * Xt + Xt * Wt * Xt, H0 = Xt * Xt * Xt;
|
|
46943
46943
|
for (Zt = 0; Zt < wt; Zt += 1)
|
|
46944
|
-
Se[Zt * 4] = v.round((It * ke[Zt] + Nt * mt[Zt] +
|
|
46944
|
+
Se[Zt * 4] = v.round((It * ke[Zt] + Nt * mt[Zt] + Ft * Lt[Zt] + jt * Fe[Zt]) * 1e3) / 1e3, Se[Zt * 4 + 1] = v.round((n0 * ke[Zt] + s0 * mt[Zt] + qt * Lt[Zt] + Ht * Fe[Zt]) * 1e3) / 1e3, Se[Zt * 4 + 2] = v.round(($t * ke[Zt] + Kt * mt[Zt] + e0 * Lt[Zt] + u0 * Fe[Zt]) * 1e3) / 1e3, Se[Zt * 4 + 3] = v.round((d0 * ke[Zt] + _0 * mt[Zt] + J0 * Lt[Zt] + H0 * Fe[Zt]) * 1e3) / 1e3;
|
|
46945
46945
|
return Se;
|
|
46946
46946
|
}
|
|
46947
46947
|
return {
|
|
@@ -47466,20 +47466,20 @@ if (typeof document != "undefined") {
|
|
|
47466
47466
|
Xt.entropy ? [xt, Gt(v)] : xt === null ? Ue() : xt,
|
|
47467
47467
|
3
|
|
47468
47468
|
), wt), Wt = new Fe(wt), It = function() {
|
|
47469
|
-
for (var Nt = Wt.g(C),
|
|
47470
|
-
Nt = (Nt + jt) * r,
|
|
47469
|
+
for (var Nt = Wt.g(C), Ft = O, jt = 0; Nt < le; )
|
|
47470
|
+
Nt = (Nt + jt) * r, Ft *= r, jt = Wt.g(1);
|
|
47471
47471
|
for (; Nt >= fe; )
|
|
47472
|
-
Nt /= 2,
|
|
47473
|
-
return (Nt + jt) /
|
|
47472
|
+
Nt /= 2, Ft /= 2, jt >>>= 1;
|
|
47473
|
+
return (Nt + jt) / Ft;
|
|
47474
47474
|
};
|
|
47475
47475
|
return It.int32 = function() {
|
|
47476
47476
|
return Wt.g(4) | 0;
|
|
47477
47477
|
}, It.quick = function() {
|
|
47478
47478
|
return Wt.g(4) / 4294967296;
|
|
47479
|
-
}, It.double = It, bt(Gt(Wt.S), v), (Xt.pass || Zt || function(Nt,
|
|
47479
|
+
}, It.double = It, bt(Gt(Wt.S), v), (Xt.pass || Zt || function(Nt, Ft, jt, n0) {
|
|
47480
47480
|
return n0 && (n0.S && mt(n0, Wt), Nt.state = function() {
|
|
47481
47481
|
return mt(Wt, {});
|
|
47482
|
-
}), jt ? (e[E] = Nt,
|
|
47482
|
+
}), jt ? (e[E] = Nt, Ft) : Nt;
|
|
47483
47483
|
})(
|
|
47484
47484
|
It,
|
|
47485
47485
|
Vt,
|
|
@@ -47495,8 +47495,8 @@ if (typeof document != "undefined") {
|
|
|
47495
47495
|
for (Vt = 0; Vt < r; Vt++)
|
|
47496
47496
|
It[Vt] = It[Wt = Se & Wt + xt[Vt % Zt] + (Xt = It[Vt])], It[Wt] = Xt;
|
|
47497
47497
|
wt.g = function(Nt) {
|
|
47498
|
-
for (var
|
|
47499
|
-
|
|
47498
|
+
for (var Ft, jt = 0, n0 = wt.i, s0 = wt.j, qt = wt.S; Nt--; )
|
|
47499
|
+
Ft = qt[n0 = Se & n0 + 1], jt = jt * r + qt[Se & (qt[n0] = qt[s0 = Se & s0 + Ft]) + (qt[s0] = Ft)];
|
|
47500
47500
|
return wt.i = n0, wt.j = s0, jt;
|
|
47501
47501
|
};
|
|
47502
47502
|
}
|
|
@@ -47551,13 +47551,13 @@ if (typeof document != "undefined") {
|
|
|
47551
47551
|
if (Vt % 2 !== 0)
|
|
47552
47552
|
return this.getValueAtTime((Gt - (Lt - xt) % Gt + xt) / this.comp.globalData.frameRate, 0);
|
|
47553
47553
|
} else if (ke === "offset") {
|
|
47554
|
-
var Wt = this.getValueAtTime(xt / this.comp.globalData.frameRate, 0), It = this.getValueAtTime(Ue / this.comp.globalData.frameRate, 0), Nt = this.getValueAtTime(((Lt - xt) % Gt + xt) / this.comp.globalData.frameRate, 0),
|
|
47554
|
+
var Wt = this.getValueAtTime(xt / this.comp.globalData.frameRate, 0), It = this.getValueAtTime(Ue / this.comp.globalData.frameRate, 0), Nt = this.getValueAtTime(((Lt - xt) % Gt + xt) / this.comp.globalData.frameRate, 0), Ft = Math.floor((Lt - xt) / Gt);
|
|
47555
47555
|
if (this.pv.length) {
|
|
47556
47556
|
for (wt = new Array(Wt.length), Zt = wt.length, Xt = 0; Xt < Zt; Xt += 1)
|
|
47557
|
-
wt[Xt] = (It[Xt] - Wt[Xt]) *
|
|
47557
|
+
wt[Xt] = (It[Xt] - Wt[Xt]) * Ft + Nt[Xt];
|
|
47558
47558
|
return wt;
|
|
47559
47559
|
}
|
|
47560
|
-
return (It - Wt) *
|
|
47560
|
+
return (It - Wt) * Ft + Nt;
|
|
47561
47561
|
} else if (ke === "continue") {
|
|
47562
47562
|
var jt = this.getValueAtTime(Ue / this.comp.globalData.frameRate, 0), n0 = this.getValueAtTime((Ue - 1e-3) / this.comp.globalData.frameRate, 0);
|
|
47563
47563
|
if (this.pv.length) {
|
|
@@ -47584,13 +47584,13 @@ if (typeof document != "undefined") {
|
|
|
47584
47584
|
if (Vt % 2 === 0)
|
|
47585
47585
|
return this.getValueAtTime(((Ue - Lt) % Gt + Ue) / this.comp.globalData.frameRate, 0);
|
|
47586
47586
|
} else if (ke === "offset") {
|
|
47587
|
-
var Wt = this.getValueAtTime(Ue / this.comp.globalData.frameRate, 0), It = this.getValueAtTime(xt / this.comp.globalData.frameRate, 0), Nt = this.getValueAtTime((Gt - (Ue - Lt) % Gt + Ue) / this.comp.globalData.frameRate, 0),
|
|
47587
|
+
var Wt = this.getValueAtTime(Ue / this.comp.globalData.frameRate, 0), It = this.getValueAtTime(xt / this.comp.globalData.frameRate, 0), Nt = this.getValueAtTime((Gt - (Ue - Lt) % Gt + Ue) / this.comp.globalData.frameRate, 0), Ft = Math.floor((Ue - Lt) / Gt) + 1;
|
|
47588
47588
|
if (this.pv.length) {
|
|
47589
47589
|
for (wt = new Array(Wt.length), Zt = wt.length, Xt = 0; Xt < Zt; Xt += 1)
|
|
47590
|
-
wt[Xt] = Nt[Xt] - (It[Xt] - Wt[Xt]) *
|
|
47590
|
+
wt[Xt] = Nt[Xt] - (It[Xt] - Wt[Xt]) * Ft;
|
|
47591
47591
|
return wt;
|
|
47592
47592
|
}
|
|
47593
|
-
return Nt - (It - Wt) *
|
|
47593
|
+
return Nt - (It - Wt) * Ft;
|
|
47594
47594
|
} else if (ke === "continue") {
|
|
47595
47595
|
var jt = this.getValueAtTime(Ue / this.comp.globalData.frameRate, 0), n0 = this.getValueAtTime((Ue + 1e-3) / this.comp.globalData.frameRate, 0);
|
|
47596
47596
|
if (this.pv.length) {
|
|
@@ -47945,10 +47945,10 @@ if (typeof document != "undefined") {
|
|
|
47945
47945
|
r || (r = E(function(Fe) {
|
|
47946
47946
|
function mt() {
|
|
47947
47947
|
function bt(qt, Ht) {
|
|
47948
|
-
var $t,
|
|
47949
|
-
for (
|
|
47950
|
-
if ($t = qt[
|
|
47951
|
-
if ($t.completed = !0, $t.tt && (qt[
|
|
47948
|
+
var $t, Kt, e0 = qt.length, u0, d0, _0, J0;
|
|
47949
|
+
for (Kt = 0; Kt < e0; Kt += 1)
|
|
47950
|
+
if ($t = qt[Kt], "ks" in $t && !$t.completed) {
|
|
47951
|
+
if ($t.completed = !0, $t.tt && (qt[Kt - 1].td = $t.tt), $t.hasMask) {
|
|
47952
47952
|
var H0 = $t.masksProperties;
|
|
47953
47953
|
for (d0 = H0.length, u0 = 0; u0 < d0; u0 += 1)
|
|
47954
47954
|
if (H0[u0].pt.k.i)
|
|
@@ -47962,13 +47962,13 @@ if (typeof document != "undefined") {
|
|
|
47962
47962
|
}
|
|
47963
47963
|
function Ue(qt, Ht) {
|
|
47964
47964
|
if (qt) {
|
|
47965
|
-
var $t = 0,
|
|
47966
|
-
for ($t = 0; $t <
|
|
47965
|
+
var $t = 0, Kt = qt.length;
|
|
47966
|
+
for ($t = 0; $t < Kt; $t += 1)
|
|
47967
47967
|
qt[$t].t === 1 && (qt[$t].data.layers = xt(qt[$t].data.refId, Ht), bt(qt[$t].data.layers, Ht));
|
|
47968
47968
|
}
|
|
47969
47969
|
}
|
|
47970
47970
|
function Gt(qt, Ht) {
|
|
47971
|
-
for (var $t = 0,
|
|
47971
|
+
for (var $t = 0, Kt = Ht.length; $t < Kt; ) {
|
|
47972
47972
|
if (Ht[$t].id === qt)
|
|
47973
47973
|
return Ht[$t];
|
|
47974
47974
|
$t += 1;
|
|
@@ -47980,14 +47980,14 @@ if (typeof document != "undefined") {
|
|
|
47980
47980
|
return $t ? $t.layers.__used ? JSON.parse(JSON.stringify($t.layers)) : ($t.layers.__used = !0, $t.layers) : null;
|
|
47981
47981
|
}
|
|
47982
47982
|
function Xt(qt) {
|
|
47983
|
-
var Ht, $t = qt.length,
|
|
47983
|
+
var Ht, $t = qt.length, Kt, e0;
|
|
47984
47984
|
for (Ht = $t - 1; Ht >= 0; Ht -= 1)
|
|
47985
47985
|
if (qt[Ht].ty === "sh")
|
|
47986
47986
|
if (qt[Ht].ks.k.i)
|
|
47987
47987
|
Zt(qt[Ht].ks.k);
|
|
47988
47988
|
else
|
|
47989
|
-
for (e0 = qt[Ht].ks.k.length,
|
|
47990
|
-
qt[Ht].ks.k[
|
|
47989
|
+
for (e0 = qt[Ht].ks.k.length, Kt = 0; Kt < e0; Kt += 1)
|
|
47990
|
+
qt[Ht].ks.k[Kt].s && Zt(qt[Ht].ks.k[Kt].s[0]), qt[Ht].ks.k[Kt].e && Zt(qt[Ht].ks.k[Kt].e[0]);
|
|
47991
47991
|
else qt[Ht].ty === "gr" && Xt(qt[Ht].it);
|
|
47992
47992
|
}
|
|
47993
47993
|
function Zt(qt) {
|
|
@@ -48001,9 +48001,9 @@ if (typeof document != "undefined") {
|
|
|
48001
48001
|
}
|
|
48002
48002
|
var Vt = /* @__PURE__ */ function() {
|
|
48003
48003
|
var qt = [4, 4, 14];
|
|
48004
|
-
function Ht(
|
|
48005
|
-
var e0 =
|
|
48006
|
-
|
|
48004
|
+
function Ht(Kt) {
|
|
48005
|
+
var e0 = Kt.t.d;
|
|
48006
|
+
Kt.t.d = {
|
|
48007
48007
|
k: [
|
|
48008
48008
|
{
|
|
48009
48009
|
s: e0,
|
|
@@ -48012,24 +48012,24 @@ if (typeof document != "undefined") {
|
|
|
48012
48012
|
]
|
|
48013
48013
|
};
|
|
48014
48014
|
}
|
|
48015
|
-
function $t(
|
|
48016
|
-
var e0, u0 =
|
|
48015
|
+
function $t(Kt) {
|
|
48016
|
+
var e0, u0 = Kt.length;
|
|
48017
48017
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48018
|
-
|
|
48018
|
+
Kt[e0].ty === 5 && Ht(Kt[e0]);
|
|
48019
48019
|
}
|
|
48020
|
-
return function(
|
|
48021
|
-
if (wt(qt,
|
|
48022
|
-
var e0, u0 =
|
|
48020
|
+
return function(Kt) {
|
|
48021
|
+
if (wt(qt, Kt.v) && ($t(Kt.layers), Kt.assets)) {
|
|
48022
|
+
var e0, u0 = Kt.assets.length;
|
|
48023
48023
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48024
|
-
|
|
48024
|
+
Kt.assets[e0].layers && $t(Kt.assets[e0].layers);
|
|
48025
48025
|
}
|
|
48026
48026
|
};
|
|
48027
48027
|
}(), Wt = /* @__PURE__ */ function() {
|
|
48028
48028
|
var qt = [4, 7, 99];
|
|
48029
48029
|
return function(Ht) {
|
|
48030
48030
|
if (Ht.chars && !wt(qt, Ht.v)) {
|
|
48031
|
-
var $t,
|
|
48032
|
-
for ($t = 0; $t <
|
|
48031
|
+
var $t, Kt = Ht.chars.length;
|
|
48032
|
+
for ($t = 0; $t < Kt; $t += 1) {
|
|
48033
48033
|
var e0 = Ht.chars[$t];
|
|
48034
48034
|
e0.data && e0.data.shapes && (Xt(e0.data.shapes), e0.data.ip = 0, e0.data.op = 99999, e0.data.st = 0, e0.data.sr = 1, e0.data.ks = {
|
|
48035
48035
|
p: { k: [0, 0], a: 0 },
|
|
@@ -48058,8 +48058,8 @@ if (typeof document != "undefined") {
|
|
|
48058
48058
|
};
|
|
48059
48059
|
}(), It = /* @__PURE__ */ function() {
|
|
48060
48060
|
var qt = [5, 7, 15];
|
|
48061
|
-
function Ht(
|
|
48062
|
-
var e0 =
|
|
48061
|
+
function Ht(Kt) {
|
|
48062
|
+
var e0 = Kt.t.p;
|
|
48063
48063
|
typeof e0.a == "number" && (e0.a = {
|
|
48064
48064
|
a: 0,
|
|
48065
48065
|
k: e0.a
|
|
@@ -48071,61 +48071,61 @@ if (typeof document != "undefined") {
|
|
|
48071
48071
|
k: e0.r
|
|
48072
48072
|
});
|
|
48073
48073
|
}
|
|
48074
|
-
function $t(
|
|
48075
|
-
var e0, u0 =
|
|
48074
|
+
function $t(Kt) {
|
|
48075
|
+
var e0, u0 = Kt.length;
|
|
48076
48076
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48077
|
-
|
|
48077
|
+
Kt[e0].ty === 5 && Ht(Kt[e0]);
|
|
48078
48078
|
}
|
|
48079
|
-
return function(
|
|
48080
|
-
if (wt(qt,
|
|
48081
|
-
var e0, u0 =
|
|
48079
|
+
return function(Kt) {
|
|
48080
|
+
if (wt(qt, Kt.v) && ($t(Kt.layers), Kt.assets)) {
|
|
48081
|
+
var e0, u0 = Kt.assets.length;
|
|
48082
48082
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48083
|
-
|
|
48083
|
+
Kt.assets[e0].layers && $t(Kt.assets[e0].layers);
|
|
48084
48084
|
}
|
|
48085
48085
|
};
|
|
48086
48086
|
}(), Nt = /* @__PURE__ */ function() {
|
|
48087
48087
|
var qt = [4, 1, 9];
|
|
48088
|
-
function Ht(
|
|
48089
|
-
var e0, u0 =
|
|
48088
|
+
function Ht(Kt) {
|
|
48089
|
+
var e0, u0 = Kt.length, d0, _0;
|
|
48090
48090
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48091
|
-
if (
|
|
48092
|
-
Ht(
|
|
48093
|
-
else if (
|
|
48094
|
-
if (
|
|
48095
|
-
for (_0 =
|
|
48096
|
-
|
|
48091
|
+
if (Kt[e0].ty === "gr")
|
|
48092
|
+
Ht(Kt[e0].it);
|
|
48093
|
+
else if (Kt[e0].ty === "fl" || Kt[e0].ty === "st")
|
|
48094
|
+
if (Kt[e0].c.k && Kt[e0].c.k[0].i)
|
|
48095
|
+
for (_0 = Kt[e0].c.k.length, d0 = 0; d0 < _0; d0 += 1)
|
|
48096
|
+
Kt[e0].c.k[d0].s && (Kt[e0].c.k[d0].s[0] /= 255, Kt[e0].c.k[d0].s[1] /= 255, Kt[e0].c.k[d0].s[2] /= 255, Kt[e0].c.k[d0].s[3] /= 255), Kt[e0].c.k[d0].e && (Kt[e0].c.k[d0].e[0] /= 255, Kt[e0].c.k[d0].e[1] /= 255, Kt[e0].c.k[d0].e[2] /= 255, Kt[e0].c.k[d0].e[3] /= 255);
|
|
48097
48097
|
else
|
|
48098
|
-
|
|
48098
|
+
Kt[e0].c.k[0] /= 255, Kt[e0].c.k[1] /= 255, Kt[e0].c.k[2] /= 255, Kt[e0].c.k[3] /= 255;
|
|
48099
48099
|
}
|
|
48100
|
-
function $t(
|
|
48101
|
-
var e0, u0 =
|
|
48100
|
+
function $t(Kt) {
|
|
48101
|
+
var e0, u0 = Kt.length;
|
|
48102
48102
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48103
|
-
|
|
48103
|
+
Kt[e0].ty === 4 && Ht(Kt[e0].shapes);
|
|
48104
48104
|
}
|
|
48105
|
-
return function(
|
|
48106
|
-
if (wt(qt,
|
|
48107
|
-
var e0, u0 =
|
|
48105
|
+
return function(Kt) {
|
|
48106
|
+
if (wt(qt, Kt.v) && ($t(Kt.layers), Kt.assets)) {
|
|
48107
|
+
var e0, u0 = Kt.assets.length;
|
|
48108
48108
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48109
|
-
|
|
48109
|
+
Kt.assets[e0].layers && $t(Kt.assets[e0].layers);
|
|
48110
48110
|
}
|
|
48111
48111
|
};
|
|
48112
|
-
}(),
|
|
48112
|
+
}(), Ft = /* @__PURE__ */ function() {
|
|
48113
48113
|
var qt = [4, 4, 18];
|
|
48114
|
-
function Ht(
|
|
48115
|
-
var e0, u0 =
|
|
48114
|
+
function Ht(Kt) {
|
|
48115
|
+
var e0, u0 = Kt.length, d0, _0;
|
|
48116
48116
|
for (e0 = u0 - 1; e0 >= 0; e0 -= 1)
|
|
48117
|
-
if (
|
|
48118
|
-
if (
|
|
48119
|
-
|
|
48117
|
+
if (Kt[e0].ty === "sh")
|
|
48118
|
+
if (Kt[e0].ks.k.i)
|
|
48119
|
+
Kt[e0].ks.k.c = Kt[e0].closed;
|
|
48120
48120
|
else
|
|
48121
|
-
for (_0 =
|
|
48122
|
-
|
|
48123
|
-
else
|
|
48121
|
+
for (_0 = Kt[e0].ks.k.length, d0 = 0; d0 < _0; d0 += 1)
|
|
48122
|
+
Kt[e0].ks.k[d0].s && (Kt[e0].ks.k[d0].s[0].c = Kt[e0].closed), Kt[e0].ks.k[d0].e && (Kt[e0].ks.k[d0].e[0].c = Kt[e0].closed);
|
|
48123
|
+
else Kt[e0].ty === "gr" && Ht(Kt[e0].it);
|
|
48124
48124
|
}
|
|
48125
|
-
function $t(
|
|
48126
|
-
var e0, u0, d0 =
|
|
48125
|
+
function $t(Kt) {
|
|
48126
|
+
var e0, u0, d0 = Kt.length, _0, J0, H0, bi;
|
|
48127
48127
|
for (u0 = 0; u0 < d0; u0 += 1) {
|
|
48128
|
-
if (e0 =
|
|
48128
|
+
if (e0 = Kt[u0], e0.hasMask) {
|
|
48129
48129
|
var b0 = e0.masksProperties;
|
|
48130
48130
|
for (J0 = b0.length, _0 = 0; _0 < J0; _0 += 1)
|
|
48131
48131
|
if (b0[_0].pt.k.i)
|
|
@@ -48137,22 +48137,22 @@ if (typeof document != "undefined") {
|
|
|
48137
48137
|
e0.ty === 4 && Ht(e0.shapes);
|
|
48138
48138
|
}
|
|
48139
48139
|
}
|
|
48140
|
-
return function(
|
|
48141
|
-
if (wt(qt,
|
|
48142
|
-
var e0, u0 =
|
|
48140
|
+
return function(Kt) {
|
|
48141
|
+
if (wt(qt, Kt.v) && ($t(Kt.layers), Kt.assets)) {
|
|
48142
|
+
var e0, u0 = Kt.assets.length;
|
|
48143
48143
|
for (e0 = 0; e0 < u0; e0 += 1)
|
|
48144
|
-
|
|
48144
|
+
Kt.assets[e0].layers && $t(Kt.assets[e0].layers);
|
|
48145
48145
|
}
|
|
48146
48146
|
};
|
|
48147
48147
|
}();
|
|
48148
48148
|
function jt(qt) {
|
|
48149
|
-
qt.__complete || (Nt(qt), Vt(qt), Wt(qt), It(qt),
|
|
48149
|
+
qt.__complete || (Nt(qt), Vt(qt), Wt(qt), It(qt), Ft(qt), bt(qt.layers, qt.assets), Ue(qt.chars, qt.assets), qt.__complete = !0);
|
|
48150
48150
|
}
|
|
48151
48151
|
function n0(qt) {
|
|
48152
48152
|
qt.t.a.length === 0 && "m" in qt.t.p;
|
|
48153
48153
|
}
|
|
48154
48154
|
var s0 = {};
|
|
48155
|
-
return s0.completeData = jt, s0.checkColors = Nt, s0.checkChars = Wt, s0.checkPathProperties = It, s0.checkShapes =
|
|
48155
|
+
return s0.completeData = jt, s0.checkColors = Nt, s0.checkChars = Wt, s0.checkPathProperties = It, s0.checkShapes = Ft, s0.completeLayers = bt, s0;
|
|
48156
48156
|
}
|
|
48157
48157
|
if (w.dataManager || (w.dataManager = mt()), w.assetLoader || (w.assetLoader = /* @__PURE__ */ function() {
|
|
48158
48158
|
function bt(Gt) {
|
|
@@ -48697,25 +48697,25 @@ if (typeof document != "undefined") {
|
|
|
48697
48697
|
const animationManager = function() {
|
|
48698
48698
|
var v = {}, e = [], n = 0, r = 0, C = 0, w = !0, E = !1;
|
|
48699
48699
|
function O(Ht) {
|
|
48700
|
-
for (var $t = 0,
|
|
48701
|
-
e[$t].animation ===
|
|
48700
|
+
for (var $t = 0, Kt = Ht.target; $t < r; )
|
|
48701
|
+
e[$t].animation === Kt && (e.splice($t, 1), $t -= 1, r -= 1, Kt.isPaused || ze()), $t += 1;
|
|
48702
48702
|
}
|
|
48703
48703
|
function le(Ht, $t) {
|
|
48704
48704
|
if (!Ht)
|
|
48705
48705
|
return null;
|
|
48706
|
-
for (var
|
|
48707
|
-
if (e[
|
|
48708
|
-
return e[
|
|
48709
|
-
|
|
48706
|
+
for (var Kt = 0; Kt < r; ) {
|
|
48707
|
+
if (e[Kt].elem === Ht && e[Kt].elem !== null)
|
|
48708
|
+
return e[Kt].animation;
|
|
48709
|
+
Kt += 1;
|
|
48710
48710
|
}
|
|
48711
48711
|
var e0 = new AnimationItem();
|
|
48712
48712
|
return ke(e0, Ht), e0.setData(Ht, $t), e0;
|
|
48713
48713
|
}
|
|
48714
48714
|
function fe() {
|
|
48715
|
-
var Ht, $t = e.length,
|
|
48715
|
+
var Ht, $t = e.length, Kt = [];
|
|
48716
48716
|
for (Ht = 0; Ht < $t; Ht += 1)
|
|
48717
|
-
|
|
48718
|
-
return
|
|
48717
|
+
Kt.push(e[Ht].animation);
|
|
48718
|
+
return Kt;
|
|
48719
48719
|
}
|
|
48720
48720
|
function Se() {
|
|
48721
48721
|
C += 1, Nt();
|
|
@@ -48731,14 +48731,14 @@ if (typeof document != "undefined") {
|
|
|
48731
48731
|
return ke($t, null), $t.setParams(Ht), $t;
|
|
48732
48732
|
}
|
|
48733
48733
|
function mt(Ht, $t) {
|
|
48734
|
-
var
|
|
48735
|
-
for (
|
|
48736
|
-
e[
|
|
48734
|
+
var Kt;
|
|
48735
|
+
for (Kt = 0; Kt < r; Kt += 1)
|
|
48736
|
+
e[Kt].animation.setSpeed(Ht, $t);
|
|
48737
48737
|
}
|
|
48738
48738
|
function Lt(Ht, $t) {
|
|
48739
|
-
var
|
|
48740
|
-
for (
|
|
48741
|
-
e[
|
|
48739
|
+
var Kt;
|
|
48740
|
+
for (Kt = 0; Kt < r; Kt += 1)
|
|
48741
|
+
e[Kt].animation.setDirection(Ht, $t);
|
|
48742
48742
|
}
|
|
48743
48743
|
function bt(Ht) {
|
|
48744
48744
|
var $t;
|
|
@@ -48746,9 +48746,9 @@ if (typeof document != "undefined") {
|
|
|
48746
48746
|
e[$t].animation.play(Ht);
|
|
48747
48747
|
}
|
|
48748
48748
|
function Ue(Ht) {
|
|
48749
|
-
var $t = Ht - n,
|
|
48750
|
-
for (
|
|
48751
|
-
e[
|
|
48749
|
+
var $t = Ht - n, Kt;
|
|
48750
|
+
for (Kt = 0; Kt < r; Kt += 1)
|
|
48751
|
+
e[Kt].animation.advanceTime($t);
|
|
48752
48752
|
n = Ht, C && !E ? window.requestAnimationFrame(Ue) : w = !0;
|
|
48753
48753
|
}
|
|
48754
48754
|
function Gt(Ht) {
|
|
@@ -48759,10 +48759,10 @@ if (typeof document != "undefined") {
|
|
|
48759
48759
|
for ($t = 0; $t < r; $t += 1)
|
|
48760
48760
|
e[$t].animation.pause(Ht);
|
|
48761
48761
|
}
|
|
48762
|
-
function Xt(Ht, $t,
|
|
48762
|
+
function Xt(Ht, $t, Kt) {
|
|
48763
48763
|
var e0;
|
|
48764
48764
|
for (e0 = 0; e0 < r; e0 += 1)
|
|
48765
|
-
e[e0].animation.goToAndStop(Ht, $t,
|
|
48765
|
+
e[e0].animation.goToAndStop(Ht, $t, Kt);
|
|
48766
48766
|
}
|
|
48767
48767
|
function Zt(Ht) {
|
|
48768
48768
|
var $t;
|
|
@@ -48779,19 +48779,19 @@ if (typeof document != "undefined") {
|
|
|
48779
48779
|
for ($t = r - 1; $t >= 0; $t -= 1)
|
|
48780
48780
|
e[$t].animation.destroy(Ht);
|
|
48781
48781
|
}
|
|
48782
|
-
function Wt(Ht, $t,
|
|
48782
|
+
function Wt(Ht, $t, Kt) {
|
|
48783
48783
|
var e0 = [].concat(
|
|
48784
48784
|
[].slice.call(document.getElementsByClassName("lottie")),
|
|
48785
48785
|
[].slice.call(document.getElementsByClassName("bodymovin"))
|
|
48786
48786
|
), u0, d0 = e0.length;
|
|
48787
48787
|
for (u0 = 0; u0 < d0; u0 += 1)
|
|
48788
|
-
|
|
48788
|
+
Kt && e0[u0].setAttribute("data-bm-type", Kt), le(e0[u0], Ht);
|
|
48789
48789
|
if ($t && d0 === 0) {
|
|
48790
|
-
|
|
48790
|
+
Kt || (Kt = "svg");
|
|
48791
48791
|
var _0 = document.getElementsByTagName("body")[0];
|
|
48792
48792
|
_0.innerText = "";
|
|
48793
48793
|
var J0 = createTag("div");
|
|
48794
|
-
J0.style.width = "100%", J0.style.height = "100%", J0.setAttribute("data-bm-type",
|
|
48794
|
+
J0.style.width = "100%", J0.style.height = "100%", J0.setAttribute("data-bm-type", Kt), _0.appendChild(J0), le(J0, Ht);
|
|
48795
48795
|
}
|
|
48796
48796
|
}
|
|
48797
48797
|
function It() {
|
|
@@ -48802,16 +48802,16 @@ if (typeof document != "undefined") {
|
|
|
48802
48802
|
function Nt() {
|
|
48803
48803
|
!E && C && w && (window.requestAnimationFrame(Gt), w = !1);
|
|
48804
48804
|
}
|
|
48805
|
-
function
|
|
48805
|
+
function Ft() {
|
|
48806
48806
|
E = !0;
|
|
48807
48807
|
}
|
|
48808
48808
|
function jt() {
|
|
48809
48809
|
E = !1, Nt();
|
|
48810
48810
|
}
|
|
48811
48811
|
function n0(Ht, $t) {
|
|
48812
|
-
var
|
|
48813
|
-
for (
|
|
48814
|
-
e[
|
|
48812
|
+
var Kt;
|
|
48813
|
+
for (Kt = 0; Kt < r; Kt += 1)
|
|
48814
|
+
e[Kt].animation.setVolume(Ht, $t);
|
|
48815
48815
|
}
|
|
48816
48816
|
function s0(Ht) {
|
|
48817
48817
|
var $t;
|
|
@@ -48823,7 +48823,7 @@ if (typeof document != "undefined") {
|
|
|
48823
48823
|
for ($t = 0; $t < r; $t += 1)
|
|
48824
48824
|
e[$t].animation.unmute(Ht);
|
|
48825
48825
|
}
|
|
48826
|
-
return v.registerAnimation = le, v.loadAnimation = Fe, v.setSpeed = mt, v.setDirection = Lt, v.play = bt, v.pause = xt, v.stop = Zt, v.togglePause = wt, v.searchAnimations = Wt, v.resize = It, v.goToAndStop = Xt, v.destroy = Vt, v.freeze =
|
|
48826
|
+
return v.registerAnimation = le, v.loadAnimation = Fe, v.setSpeed = mt, v.setDirection = Lt, v.play = bt, v.pause = xt, v.stop = Zt, v.togglePause = wt, v.searchAnimations = Wt, v.resize = It, v.goToAndStop = Xt, v.destroy = Vt, v.freeze = Ft, v.unfreeze = jt, v.setVolume = n0, v.mute = s0, v.unmute = qt, v.getRegisteredAnimations = fe, v;
|
|
48827
48827
|
}(), BezierFactory = function() {
|
|
48828
48828
|
var v = {};
|
|
48829
48829
|
v.getBezierEasing = n;
|
|
@@ -48891,8 +48891,8 @@ if (typeof document != "undefined") {
|
|
|
48891
48891
|
for (var xt = this._p[0], Xt = this._p[2], Zt = this._mSampleValues, wt = 0, Vt = 1, Wt = O - 1; Vt !== Wt && Zt[Vt] <= Gt; ++Vt)
|
|
48892
48892
|
wt += le;
|
|
48893
48893
|
--Vt;
|
|
48894
|
-
var It = (Gt - Zt[Vt]) / (Zt[Vt + 1] - Zt[Vt]), Nt = wt + It * le,
|
|
48895
|
-
return
|
|
48894
|
+
var It = (Gt - Zt[Vt]) / (Zt[Vt + 1] - Zt[Vt]), Nt = wt + It * le, Ft = mt(Nt, xt, Xt);
|
|
48895
|
+
return Ft >= C ? bt(Gt, Nt, xt, Xt) : Ft === 0 ? Nt : Lt(Gt, wt, wt + le, xt, Xt);
|
|
48896
48896
|
}
|
|
48897
48897
|
}, v;
|
|
48898
48898
|
}(), pooling = /* @__PURE__ */ function() {
|
|
@@ -48957,25 +48957,25 @@ if (typeof document != "undefined") {
|
|
|
48957
48957
|
Zt < wt - 1 ? Zt += 1 : (Xt = 0, Vt = !1);
|
|
48958
48958
|
}
|
|
48959
48959
|
Nt = this.keyframesMetadata[Zt] || {};
|
|
48960
|
-
var
|
|
48960
|
+
var Ft, jt, n0, s0, qt, Ht, $t = It.t - Gt, Kt = Wt.t - Gt, e0;
|
|
48961
48961
|
if (Wt.to) {
|
|
48962
48962
|
Nt.bezierData || (Nt.bezierData = bez.buildBezierData(Wt.s, It.s || Wt.e, Wt.to, Wt.ti));
|
|
48963
48963
|
var u0 = Nt.bezierData;
|
|
48964
|
-
if (bt >= $t || bt <
|
|
48964
|
+
if (bt >= $t || bt < Kt) {
|
|
48965
48965
|
var d0 = bt >= $t ? u0.points.length - 1 : 0;
|
|
48966
|
-
for (jt = u0.points[d0].point.length,
|
|
48967
|
-
xt[
|
|
48966
|
+
for (jt = u0.points[d0].point.length, Ft = 0; Ft < jt; Ft += 1)
|
|
48967
|
+
xt[Ft] = u0.points[d0].point[Ft];
|
|
48968
48968
|
} else {
|
|
48969
|
-
Nt.__fnct ? Ht = Nt.__fnct : (Ht = BezierFactory.getBezierEasing(Wt.o.x, Wt.o.y, Wt.i.x, Wt.i.y, Wt.n).get, Nt.__fnct = Ht), n0 = Ht((bt -
|
|
48969
|
+
Nt.__fnct ? Ht = Nt.__fnct : (Ht = BezierFactory.getBezierEasing(Wt.o.x, Wt.o.y, Wt.i.x, Wt.i.y, Wt.n).get, Nt.__fnct = Ht), n0 = Ht((bt - Kt) / ($t - Kt));
|
|
48970
48970
|
var _0 = u0.segmentLength * n0, J0, H0 = Ue.lastFrame < bt && Ue._lastKeyframeIndex === Zt ? Ue._lastAddedLength : 0;
|
|
48971
48971
|
for (qt = Ue.lastFrame < bt && Ue._lastKeyframeIndex === Zt ? Ue._lastPoint : 0, Vt = !0, s0 = u0.points.length; Vt; ) {
|
|
48972
48972
|
if (H0 += u0.points[qt].partialLength, _0 === 0 || n0 === 0 || qt === u0.points.length - 1) {
|
|
48973
|
-
for (jt = u0.points[qt].point.length,
|
|
48974
|
-
xt[
|
|
48973
|
+
for (jt = u0.points[qt].point.length, Ft = 0; Ft < jt; Ft += 1)
|
|
48974
|
+
xt[Ft] = u0.points[qt].point[Ft];
|
|
48975
48975
|
break;
|
|
48976
48976
|
} else if (_0 >= H0 && _0 < H0 + u0.points[qt + 1].partialLength) {
|
|
48977
|
-
for (J0 = (_0 - H0) / u0.points[qt + 1].partialLength, jt = u0.points[qt].point.length,
|
|
48978
|
-
xt[
|
|
48977
|
+
for (J0 = (_0 - H0) / u0.points[qt + 1].partialLength, jt = u0.points[qt].point.length, Ft = 0; Ft < jt; Ft += 1)
|
|
48978
|
+
xt[Ft] = u0.points[qt].point[Ft] + (u0.points[qt + 1].point[Ft] - u0.points[qt].point[Ft]) * J0;
|
|
48979
48979
|
break;
|
|
48980
48980
|
}
|
|
48981
48981
|
qt < s0 - 1 ? qt += 1 : Vt = !1;
|
|
@@ -48987,29 +48987,29 @@ if (typeof document != "undefined") {
|
|
|
48987
48987
|
if (wt = Wt.s.length, e0 = It.s || Wt.e, this.sh && Wt.h !== 1)
|
|
48988
48988
|
if (bt >= $t)
|
|
48989
48989
|
xt[0] = e0[0], xt[1] = e0[1], xt[2] = e0[2];
|
|
48990
|
-
else if (bt <=
|
|
48990
|
+
else if (bt <= Kt)
|
|
48991
48991
|
xt[0] = Wt.s[0], xt[1] = Wt.s[1], xt[2] = Wt.s[2];
|
|
48992
48992
|
else {
|
|
48993
|
-
var q0 = w(Wt.s), Wi = w(e0), Ai = (bt -
|
|
48993
|
+
var q0 = w(Wt.s), Wi = w(e0), Ai = (bt - Kt) / ($t - Kt);
|
|
48994
48994
|
C(xt, r(q0, Wi, Ai));
|
|
48995
48995
|
}
|
|
48996
48996
|
else
|
|
48997
48997
|
for (Zt = 0; Zt < wt; Zt += 1)
|
|
48998
|
-
Wt.h !== 1 && (bt >= $t ? n0 = 1 : bt <
|
|
48998
|
+
Wt.h !== 1 && (bt >= $t ? n0 = 1 : bt < Kt ? n0 = 0 : (Wt.o.x.constructor === Array ? (Nt.__fnct || (Nt.__fnct = []), Nt.__fnct[Zt] ? Ht = Nt.__fnct[Zt] : (bi = Wt.o.x[Zt] === void 0 ? Wt.o.x[0] : Wt.o.x[Zt], b0 = Wt.o.y[Zt] === void 0 ? Wt.o.y[0] : Wt.o.y[Zt], V0 = Wt.i.x[Zt] === void 0 ? Wt.i.x[0] : Wt.i.x[Zt], D0 = Wt.i.y[Zt] === void 0 ? Wt.i.y[0] : Wt.i.y[Zt], Ht = BezierFactory.getBezierEasing(bi, b0, V0, D0).get, Nt.__fnct[Zt] = Ht)) : Nt.__fnct ? Ht = Nt.__fnct : (bi = Wt.o.x, b0 = Wt.o.y, V0 = Wt.i.x, D0 = Wt.i.y, Ht = BezierFactory.getBezierEasing(bi, b0, V0, D0).get, Wt.keyframeMetadata = Ht), n0 = Ht((bt - Kt) / ($t - Kt)))), e0 = It.s || Wt.e, Si = Wt.h === 1 ? Wt.s[Zt] : Wt.s[Zt] + (e0[Zt] - Wt.s[Zt]) * n0, this.propType === "multidimensional" ? xt[Zt] = Si : xt = Si;
|
|
48999
48999
|
}
|
|
49000
49000
|
return Ue.lastIndex = Xt, xt;
|
|
49001
49001
|
}
|
|
49002
49002
|
function r(bt, Ue, Gt) {
|
|
49003
|
-
var xt = [], Xt = bt[0], Zt = bt[1], wt = bt[2], Vt = bt[3], Wt = Ue[0], It = Ue[1], Nt = Ue[2],
|
|
49004
|
-
return n0 = Xt * Wt + Zt * It + wt * Nt + Vt *
|
|
49003
|
+
var xt = [], Xt = bt[0], Zt = bt[1], wt = bt[2], Vt = bt[3], Wt = Ue[0], It = Ue[1], Nt = Ue[2], Ft = Ue[3], jt, n0, s0, qt, Ht;
|
|
49004
|
+
return n0 = Xt * Wt + Zt * It + wt * Nt + Vt * Ft, n0 < 0 && (n0 = -n0, Wt = -Wt, It = -It, Nt = -Nt, Ft = -Ft), 1 - n0 > 1e-6 ? (jt = Math.acos(n0), s0 = Math.sin(jt), qt = Math.sin((1 - Gt) * jt) / s0, Ht = Math.sin(Gt * jt) / s0) : (qt = 1 - Gt, Ht = Gt), xt[0] = qt * Xt + Ht * Wt, xt[1] = qt * Zt + Ht * It, xt[2] = qt * wt + Ht * Nt, xt[3] = qt * Vt + Ht * Ft, xt;
|
|
49005
49005
|
}
|
|
49006
49006
|
function C(bt, Ue) {
|
|
49007
49007
|
var Gt = Ue[0], xt = Ue[1], Xt = Ue[2], Zt = Ue[3], wt = Math.atan2(2 * xt * Zt - 2 * Gt * Xt, 1 - 2 * xt * xt - 2 * Xt * Xt), Vt = Math.asin(2 * Gt * xt + 2 * Xt * Zt), Wt = Math.atan2(2 * Gt * Zt - 2 * xt * Xt, 1 - 2 * Gt * Gt - 2 * Xt * Xt);
|
|
49008
49008
|
bt[0] = wt / degToRads, bt[1] = Vt / degToRads, bt[2] = Wt / degToRads;
|
|
49009
49009
|
}
|
|
49010
49010
|
function w(bt) {
|
|
49011
|
-
var Ue = bt[0] * degToRads, Gt = bt[1] * degToRads, xt = bt[2] * degToRads, Xt = Math.cos(Ue / 2), Zt = Math.cos(Gt / 2), wt = Math.cos(xt / 2), Vt = Math.sin(Ue / 2), Wt = Math.sin(Gt / 2), It = Math.sin(xt / 2), Nt = Xt * Zt * wt - Vt * Wt * It,
|
|
49012
|
-
return [
|
|
49011
|
+
var Ue = bt[0] * degToRads, Gt = bt[1] * degToRads, xt = bt[2] * degToRads, Xt = Math.cos(Ue / 2), Zt = Math.cos(Gt / 2), wt = Math.cos(xt / 2), Vt = Math.sin(Ue / 2), Wt = Math.sin(Gt / 2), It = Math.sin(xt / 2), Nt = Xt * Zt * wt - Vt * Wt * It, Ft = Vt * Wt * wt + Xt * Zt * It, jt = Vt * Zt * wt + Xt * Wt * It, n0 = Xt * Wt * wt - Vt * Zt * It;
|
|
49012
|
+
return [Ft, jt, n0, Nt];
|
|
49013
49013
|
}
|
|
49014
49014
|
function E() {
|
|
49015
49015
|
var bt = this.comp.renderedFrame - this.offsetTime, Ue = this.keyframes[0].t - this.offsetTime, Gt = this.keyframes[this.keyframes.length - 1].t - this.offsetTime;
|
|
@@ -49200,29 +49200,29 @@ if (typeof document != "undefined") {
|
|
|
49200
49200
|
}(), ShapePropertyFactory = function() {
|
|
49201
49201
|
var v = -999999;
|
|
49202
49202
|
function e(Ue, Gt, xt) {
|
|
49203
|
-
var Xt = xt.lastIndex, Zt, wt, Vt, Wt, It, Nt,
|
|
49203
|
+
var Xt = xt.lastIndex, Zt, wt, Vt, Wt, It, Nt, Ft, jt, n0, s0 = this.keyframes;
|
|
49204
49204
|
if (Ue < s0[0].t - this.offsetTime)
|
|
49205
49205
|
Zt = s0[0].s[0], Vt = !0, Xt = 0;
|
|
49206
49206
|
else if (Ue >= s0[s0.length - 1].t - this.offsetTime)
|
|
49207
49207
|
Zt = s0[s0.length - 1].s ? s0[s0.length - 1].s[0] : s0[s0.length - 2].e[0], Vt = !0;
|
|
49208
49208
|
else {
|
|
49209
|
-
for (var qt = Xt, Ht = s0.length - 1, $t = !0,
|
|
49209
|
+
for (var qt = Xt, Ht = s0.length - 1, $t = !0, Kt, e0, u0; $t && (Kt = s0[qt], e0 = s0[qt + 1], !(e0.t - this.offsetTime > Ue)); )
|
|
49210
49210
|
qt < Ht - 1 ? qt += 1 : $t = !1;
|
|
49211
|
-
if (u0 = this.keyframesMetadata[qt] || {}, Vt =
|
|
49211
|
+
if (u0 = this.keyframesMetadata[qt] || {}, Vt = Kt.h === 1, Xt = qt, !Vt) {
|
|
49212
49212
|
if (Ue >= e0.t - this.offsetTime)
|
|
49213
49213
|
jt = 1;
|
|
49214
|
-
else if (Ue <
|
|
49214
|
+
else if (Ue < Kt.t - this.offsetTime)
|
|
49215
49215
|
jt = 0;
|
|
49216
49216
|
else {
|
|
49217
49217
|
var d0;
|
|
49218
|
-
u0.__fnct ? d0 = u0.__fnct : (d0 = BezierFactory.getBezierEasing(
|
|
49218
|
+
u0.__fnct ? d0 = u0.__fnct : (d0 = BezierFactory.getBezierEasing(Kt.o.x, Kt.o.y, Kt.i.x, Kt.i.y).get, u0.__fnct = d0), jt = d0((Ue - (Kt.t - this.offsetTime)) / (e0.t - this.offsetTime - (Kt.t - this.offsetTime)));
|
|
49219
49219
|
}
|
|
49220
|
-
wt = e0.s ? e0.s[0] :
|
|
49220
|
+
wt = e0.s ? e0.s[0] : Kt.e[0];
|
|
49221
49221
|
}
|
|
49222
|
-
Zt =
|
|
49222
|
+
Zt = Kt.s[0];
|
|
49223
49223
|
}
|
|
49224
|
-
for (Nt = Gt._length,
|
|
49225
|
-
for (It = 0; It <
|
|
49224
|
+
for (Nt = Gt._length, Ft = Zt.i[0].length, xt.lastIndex = Xt, Wt = 0; Wt < Nt; Wt += 1)
|
|
49225
|
+
for (It = 0; It < Ft; It += 1)
|
|
49226
49226
|
n0 = Vt ? Zt.i[Wt][It] : Zt.i[Wt][It] + (wt.i[Wt][It] - Zt.i[Wt][It]) * jt, Gt.i[Wt][It] = n0, n0 = Vt ? Zt.o[Wt][It] : Zt.o[Wt][It] + (wt.o[Wt][It] - Zt.o[Wt][It]) * jt, Gt.o[Wt][It] = n0, n0 = Vt ? Zt.v[Wt][It] : Zt.v[Wt][It] + (wt.v[Wt][It] - Zt.v[Wt][It]) * jt, Gt.v[Wt][It] = n0;
|
|
49227
49227
|
}
|
|
49228
49228
|
function n() {
|
|
@@ -49303,20 +49303,20 @@ if (typeof document != "undefined") {
|
|
|
49303
49303
|
this.elem.globalData.frameId !== this.frameId && (this.frameId = this.elem.globalData.frameId, this.iterateDynamicProperties(), this._mdf && this.convertToPath());
|
|
49304
49304
|
},
|
|
49305
49305
|
convertStarToPath: function() {
|
|
49306
|
-
var Gt = Math.floor(this.pt.v) * 2, xt = Math.PI * 2 / Gt, Xt = !0, Zt = this.or.v, wt = this.ir.v, Vt = this.os.v, Wt = this.is.v, It = 2 * Math.PI * Zt / (Gt * 2), Nt = 2 * Math.PI * wt / (Gt * 2),
|
|
49306
|
+
var Gt = Math.floor(this.pt.v) * 2, xt = Math.PI * 2 / Gt, Xt = !0, Zt = this.or.v, wt = this.ir.v, Vt = this.os.v, Wt = this.is.v, It = 2 * Math.PI * Zt / (Gt * 2), Nt = 2 * Math.PI * wt / (Gt * 2), Ft, jt, n0, s0, qt = -Math.PI / 2;
|
|
49307
49307
|
qt += this.r.v;
|
|
49308
49308
|
var Ht = this.data.d === 3 ? -1 : 1;
|
|
49309
|
-
for (this.v._length = 0,
|
|
49309
|
+
for (this.v._length = 0, Ft = 0; Ft < Gt; Ft += 1) {
|
|
49310
49310
|
jt = Xt ? Zt : wt, n0 = Xt ? Vt : Wt, s0 = Xt ? It : Nt;
|
|
49311
|
-
var $t = jt * Math.cos(qt),
|
|
49312
|
-
$t += +this.p.v[0],
|
|
49311
|
+
var $t = jt * Math.cos(qt), Kt = jt * Math.sin(qt), e0 = $t === 0 && Kt === 0 ? 0 : Kt / Math.sqrt($t * $t + Kt * Kt), u0 = $t === 0 && Kt === 0 ? 0 : -$t / Math.sqrt($t * $t + Kt * Kt);
|
|
49312
|
+
$t += +this.p.v[0], Kt += +this.p.v[1], this.v.setTripleAt($t, Kt, $t - e0 * s0 * n0 * Ht, Kt - u0 * s0 * n0 * Ht, $t + e0 * s0 * n0 * Ht, Kt + u0 * s0 * n0 * Ht, Ft, !0), Xt = !Xt, qt += xt * Ht;
|
|
49313
49313
|
}
|
|
49314
49314
|
},
|
|
49315
49315
|
convertPolygonToPath: function() {
|
|
49316
49316
|
var Gt = Math.floor(this.pt.v), xt = Math.PI * 2 / Gt, Xt = this.or.v, Zt = this.os.v, wt = 2 * Math.PI * Xt / (Gt * 4), Vt, Wt = -Math.PI * 0.5, It = this.data.d === 3 ? -1 : 1;
|
|
49317
49317
|
for (Wt += this.r.v, this.v._length = 0, Vt = 0; Vt < Gt; Vt += 1) {
|
|
49318
|
-
var Nt = Xt * Math.cos(Wt),
|
|
49319
|
-
Nt += +this.p.v[0],
|
|
49318
|
+
var Nt = Xt * Math.cos(Wt), Ft = Xt * Math.sin(Wt), jt = Nt === 0 && Ft === 0 ? 0 : Ft / Math.sqrt(Nt * Nt + Ft * Ft), n0 = Nt === 0 && Ft === 0 ? 0 : -Nt / Math.sqrt(Nt * Nt + Ft * Ft);
|
|
49319
|
+
Nt += +this.p.v[0], Ft += +this.p.v[1], this.v.setTripleAt(Nt, Ft, Nt - jt * wt * Zt * It, Ft - n0 * wt * Zt * It, Nt + jt * wt * Zt * It, Ft + n0 * wt * Zt * It, Vt, !0), Wt += xt * It;
|
|
49320
49320
|
}
|
|
49321
49321
|
this.paths.length = 0, this.paths[0] = this.v;
|
|
49322
49322
|
}
|
|
@@ -49369,144 +49369,144 @@ if (typeof document != "undefined") {
|
|
|
49369
49369
|
function w($t) {
|
|
49370
49370
|
if ($t === 0)
|
|
49371
49371
|
return this;
|
|
49372
|
-
var
|
|
49373
|
-
return this._t(
|
|
49372
|
+
var Kt = v($t), e0 = e($t);
|
|
49373
|
+
return this._t(Kt, -e0, 0, 0, e0, Kt, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
49374
49374
|
}
|
|
49375
49375
|
function E($t) {
|
|
49376
49376
|
if ($t === 0)
|
|
49377
49377
|
return this;
|
|
49378
|
-
var
|
|
49379
|
-
return this._t(1, 0, 0, 0, 0,
|
|
49378
|
+
var Kt = v($t), e0 = e($t);
|
|
49379
|
+
return this._t(1, 0, 0, 0, 0, Kt, -e0, 0, 0, e0, Kt, 0, 0, 0, 0, 1);
|
|
49380
49380
|
}
|
|
49381
49381
|
function O($t) {
|
|
49382
49382
|
if ($t === 0)
|
|
49383
49383
|
return this;
|
|
49384
|
-
var
|
|
49385
|
-
return this._t(
|
|
49384
|
+
var Kt = v($t), e0 = e($t);
|
|
49385
|
+
return this._t(Kt, 0, e0, 0, 0, 1, 0, 0, -e0, 0, Kt, 0, 0, 0, 0, 1);
|
|
49386
49386
|
}
|
|
49387
49387
|
function le($t) {
|
|
49388
49388
|
if ($t === 0)
|
|
49389
49389
|
return this;
|
|
49390
|
-
var
|
|
49391
|
-
return this._t(
|
|
49390
|
+
var Kt = v($t), e0 = e($t);
|
|
49391
|
+
return this._t(Kt, -e0, 0, 0, e0, Kt, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
49392
49392
|
}
|
|
49393
|
-
function fe($t,
|
|
49394
|
-
return this._t(1,
|
|
49393
|
+
function fe($t, Kt) {
|
|
49394
|
+
return this._t(1, Kt, $t, 1, 0, 0);
|
|
49395
49395
|
}
|
|
49396
|
-
function Se($t,
|
|
49397
|
-
return this.shear(n($t), n(
|
|
49396
|
+
function Se($t, Kt) {
|
|
49397
|
+
return this.shear(n($t), n(Kt));
|
|
49398
49398
|
}
|
|
49399
|
-
function ze($t,
|
|
49400
|
-
var e0 = v(
|
|
49399
|
+
function ze($t, Kt) {
|
|
49400
|
+
var e0 = v(Kt), u0 = e(Kt);
|
|
49401
49401
|
return this._t(e0, u0, 0, 0, -u0, e0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(1, 0, 0, 0, n($t), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)._t(e0, -u0, 0, 0, u0, e0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
|
|
49402
49402
|
}
|
|
49403
|
-
function ke($t,
|
|
49404
|
-
return !e0 && e0 !== 0 && (e0 = 1), $t === 1 &&
|
|
49403
|
+
function ke($t, Kt, e0) {
|
|
49404
|
+
return !e0 && e0 !== 0 && (e0 = 1), $t === 1 && Kt === 1 && e0 === 1 ? this : this._t($t, 0, 0, 0, 0, Kt, 0, 0, 0, 0, e0, 0, 0, 0, 0, 1);
|
|
49405
49405
|
}
|
|
49406
|
-
function Fe($t,
|
|
49407
|
-
return this.props[0] = $t, this.props[1] =
|
|
49406
|
+
function Fe($t, Kt, e0, u0, d0, _0, J0, H0, bi, b0, V0, D0, Si, q0, Wi, Ai) {
|
|
49407
|
+
return this.props[0] = $t, this.props[1] = Kt, this.props[2] = e0, this.props[3] = u0, this.props[4] = d0, this.props[5] = _0, this.props[6] = J0, this.props[7] = H0, this.props[8] = bi, this.props[9] = b0, this.props[10] = V0, this.props[11] = D0, this.props[12] = Si, this.props[13] = q0, this.props[14] = Wi, this.props[15] = Ai, this;
|
|
49408
49408
|
}
|
|
49409
|
-
function mt($t,
|
|
49410
|
-
return e0 = e0 || 0, $t !== 0 ||
|
|
49409
|
+
function mt($t, Kt, e0) {
|
|
49410
|
+
return e0 = e0 || 0, $t !== 0 || Kt !== 0 || e0 !== 0 ? this._t(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, $t, Kt, e0, 1) : this;
|
|
49411
49411
|
}
|
|
49412
|
-
function Lt($t,
|
|
49412
|
+
function Lt($t, Kt, e0, u0, d0, _0, J0, H0, bi, b0, V0, D0, Si, q0, Wi, Ai) {
|
|
49413
49413
|
var a0 = this.props;
|
|
49414
|
-
if ($t === 1 &&
|
|
49414
|
+
if ($t === 1 && Kt === 0 && e0 === 0 && u0 === 0 && d0 === 0 && _0 === 1 && J0 === 0 && H0 === 0 && bi === 0 && b0 === 0 && V0 === 1 && D0 === 0)
|
|
49415
49415
|
return a0[12] = a0[12] * $t + a0[15] * Si, a0[13] = a0[13] * _0 + a0[15] * q0, a0[14] = a0[14] * V0 + a0[15] * Wi, a0[15] *= Ai, this._identityCalculated = !1, this;
|
|
49416
|
-
var P0 = a0[0],
|
|
49417
|
-
return a0[0] = P0 * $t +
|
|
49416
|
+
var P0 = a0[0], F0 = a0[1], K0 = a0[2], I0 = a0[3], Q0 = a0[4], S0 = a0[5], L0 = a0[6], A0 = a0[7], B0 = a0[8], r0 = a0[9], t0 = a0[10], m0 = a0[11], v0 = a0[12], k0 = a0[13], C0 = a0[14], Ci = a0[15];
|
|
49417
|
+
return a0[0] = P0 * $t + F0 * d0 + K0 * bi + I0 * Si, a0[1] = P0 * Kt + F0 * _0 + K0 * b0 + I0 * q0, a0[2] = P0 * e0 + F0 * J0 + K0 * V0 + I0 * Wi, a0[3] = P0 * u0 + F0 * H0 + K0 * D0 + I0 * Ai, a0[4] = Q0 * $t + S0 * d0 + L0 * bi + A0 * Si, a0[5] = Q0 * Kt + S0 * _0 + L0 * b0 + A0 * q0, a0[6] = Q0 * e0 + S0 * J0 + L0 * V0 + A0 * Wi, a0[7] = Q0 * u0 + S0 * H0 + L0 * D0 + A0 * Ai, a0[8] = B0 * $t + r0 * d0 + t0 * bi + m0 * Si, a0[9] = B0 * Kt + r0 * _0 + t0 * b0 + m0 * q0, a0[10] = B0 * e0 + r0 * J0 + t0 * V0 + m0 * Wi, a0[11] = B0 * u0 + r0 * H0 + t0 * D0 + m0 * Ai, a0[12] = v0 * $t + k0 * d0 + C0 * bi + Ci * Si, a0[13] = v0 * Kt + k0 * _0 + C0 * b0 + Ci * q0, a0[14] = v0 * e0 + k0 * J0 + C0 * V0 + Ci * Wi, a0[15] = v0 * u0 + k0 * H0 + C0 * D0 + Ci * Ai, this._identityCalculated = !1, this;
|
|
49418
49418
|
}
|
|
49419
49419
|
function bt() {
|
|
49420
49420
|
return this._identityCalculated || (this._identity = !(this.props[0] !== 1 || this.props[1] !== 0 || this.props[2] !== 0 || this.props[3] !== 0 || this.props[4] !== 0 || this.props[5] !== 1 || this.props[6] !== 0 || this.props[7] !== 0 || this.props[8] !== 0 || this.props[9] !== 0 || this.props[10] !== 1 || this.props[11] !== 0 || this.props[12] !== 0 || this.props[13] !== 0 || this.props[14] !== 0 || this.props[15] !== 1), this._identityCalculated = !0), this._identity;
|
|
49421
49421
|
}
|
|
49422
49422
|
function Ue($t) {
|
|
49423
|
-
for (var
|
|
49424
|
-
if ($t.props[
|
|
49423
|
+
for (var Kt = 0; Kt < 16; ) {
|
|
49424
|
+
if ($t.props[Kt] !== this.props[Kt])
|
|
49425
49425
|
return !1;
|
|
49426
|
-
|
|
49426
|
+
Kt += 1;
|
|
49427
49427
|
}
|
|
49428
49428
|
return !0;
|
|
49429
49429
|
}
|
|
49430
49430
|
function Gt($t) {
|
|
49431
|
-
var
|
|
49432
|
-
for (
|
|
49433
|
-
$t.props[
|
|
49431
|
+
var Kt;
|
|
49432
|
+
for (Kt = 0; Kt < 16; Kt += 1)
|
|
49433
|
+
$t.props[Kt] = this.props[Kt];
|
|
49434
49434
|
return $t;
|
|
49435
49435
|
}
|
|
49436
49436
|
function xt($t) {
|
|
49437
|
-
var
|
|
49438
|
-
for (
|
|
49439
|
-
this.props[
|
|
49437
|
+
var Kt;
|
|
49438
|
+
for (Kt = 0; Kt < 16; Kt += 1)
|
|
49439
|
+
this.props[Kt] = $t[Kt];
|
|
49440
49440
|
}
|
|
49441
|
-
function Xt($t,
|
|
49441
|
+
function Xt($t, Kt, e0) {
|
|
49442
49442
|
return {
|
|
49443
|
-
x: $t * this.props[0] +
|
|
49444
|
-
y: $t * this.props[1] +
|
|
49445
|
-
z: $t * this.props[2] +
|
|
49443
|
+
x: $t * this.props[0] + Kt * this.props[4] + e0 * this.props[8] + this.props[12],
|
|
49444
|
+
y: $t * this.props[1] + Kt * this.props[5] + e0 * this.props[9] + this.props[13],
|
|
49445
|
+
z: $t * this.props[2] + Kt * this.props[6] + e0 * this.props[10] + this.props[14]
|
|
49446
49446
|
};
|
|
49447
49447
|
}
|
|
49448
|
-
function Zt($t,
|
|
49449
|
-
return $t * this.props[0] +
|
|
49448
|
+
function Zt($t, Kt, e0) {
|
|
49449
|
+
return $t * this.props[0] + Kt * this.props[4] + e0 * this.props[8] + this.props[12];
|
|
49450
49450
|
}
|
|
49451
|
-
function wt($t,
|
|
49452
|
-
return $t * this.props[1] +
|
|
49451
|
+
function wt($t, Kt, e0) {
|
|
49452
|
+
return $t * this.props[1] + Kt * this.props[5] + e0 * this.props[9] + this.props[13];
|
|
49453
49453
|
}
|
|
49454
|
-
function Vt($t,
|
|
49455
|
-
return $t * this.props[2] +
|
|
49454
|
+
function Vt($t, Kt, e0) {
|
|
49455
|
+
return $t * this.props[2] + Kt * this.props[6] + e0 * this.props[10] + this.props[14];
|
|
49456
49456
|
}
|
|
49457
49457
|
function Wt() {
|
|
49458
|
-
var $t = this.props[0] * this.props[5] - this.props[1] * this.props[4],
|
|
49459
|
-
return H0.props[0] =
|
|
49458
|
+
var $t = this.props[0] * this.props[5] - this.props[1] * this.props[4], Kt = this.props[5] / $t, e0 = -this.props[1] / $t, u0 = -this.props[4] / $t, d0 = this.props[0] / $t, _0 = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / $t, J0 = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / $t, H0 = new Matrix();
|
|
49459
|
+
return H0.props[0] = Kt, H0.props[1] = e0, H0.props[4] = u0, H0.props[5] = d0, H0.props[12] = _0, H0.props[13] = J0, H0;
|
|
49460
49460
|
}
|
|
49461
49461
|
function It($t) {
|
|
49462
|
-
var
|
|
49463
|
-
return
|
|
49462
|
+
var Kt = this.getInverseMatrix();
|
|
49463
|
+
return Kt.applyToPointArray($t[0], $t[1], $t[2] || 0);
|
|
49464
49464
|
}
|
|
49465
49465
|
function Nt($t) {
|
|
49466
|
-
var
|
|
49467
|
-
for (
|
|
49468
|
-
u0[
|
|
49466
|
+
var Kt, e0 = $t.length, u0 = [];
|
|
49467
|
+
for (Kt = 0; Kt < e0; Kt += 1)
|
|
49468
|
+
u0[Kt] = It($t[Kt]);
|
|
49469
49469
|
return u0;
|
|
49470
49470
|
}
|
|
49471
|
-
function
|
|
49471
|
+
function Ft($t, Kt, e0) {
|
|
49472
49472
|
var u0 = createTypedArray("float32", 6);
|
|
49473
49473
|
if (this.isIdentity())
|
|
49474
|
-
u0[0] = $t[0], u0[1] = $t[1], u0[2] =
|
|
49474
|
+
u0[0] = $t[0], u0[1] = $t[1], u0[2] = Kt[0], u0[3] = Kt[1], u0[4] = e0[0], u0[5] = e0[1];
|
|
49475
49475
|
else {
|
|
49476
49476
|
var d0 = this.props[0], _0 = this.props[1], J0 = this.props[4], H0 = this.props[5], bi = this.props[12], b0 = this.props[13];
|
|
49477
|
-
u0[0] = $t[0] * d0 + $t[1] * J0 + bi, u0[1] = $t[0] * _0 + $t[1] * H0 + b0, u0[2] =
|
|
49477
|
+
u0[0] = $t[0] * d0 + $t[1] * J0 + bi, u0[1] = $t[0] * _0 + $t[1] * H0 + b0, u0[2] = Kt[0] * d0 + Kt[1] * J0 + bi, u0[3] = Kt[0] * _0 + Kt[1] * H0 + b0, u0[4] = e0[0] * d0 + e0[1] * J0 + bi, u0[5] = e0[0] * _0 + e0[1] * H0 + b0;
|
|
49478
49478
|
}
|
|
49479
49479
|
return u0;
|
|
49480
49480
|
}
|
|
49481
|
-
function jt($t,
|
|
49481
|
+
function jt($t, Kt, e0) {
|
|
49482
49482
|
var u0;
|
|
49483
|
-
return this.isIdentity() ? u0 = [$t,
|
|
49484
|
-
$t * this.props[0] +
|
|
49485
|
-
$t * this.props[1] +
|
|
49486
|
-
$t * this.props[2] +
|
|
49483
|
+
return this.isIdentity() ? u0 = [$t, Kt, e0] : u0 = [
|
|
49484
|
+
$t * this.props[0] + Kt * this.props[4] + e0 * this.props[8] + this.props[12],
|
|
49485
|
+
$t * this.props[1] + Kt * this.props[5] + e0 * this.props[9] + this.props[13],
|
|
49486
|
+
$t * this.props[2] + Kt * this.props[6] + e0 * this.props[10] + this.props[14]
|
|
49487
49487
|
], u0;
|
|
49488
49488
|
}
|
|
49489
|
-
function n0($t,
|
|
49489
|
+
function n0($t, Kt) {
|
|
49490
49490
|
if (this.isIdentity())
|
|
49491
|
-
return $t + "," +
|
|
49491
|
+
return $t + "," + Kt;
|
|
49492
49492
|
var e0 = this.props;
|
|
49493
|
-
return Math.round(($t * e0[0] +
|
|
49493
|
+
return Math.round(($t * e0[0] + Kt * e0[4] + e0[12]) * 100) / 100 + "," + Math.round(($t * e0[1] + Kt * e0[5] + e0[13]) * 100) / 100;
|
|
49494
49494
|
}
|
|
49495
49495
|
function s0() {
|
|
49496
|
-
for (var $t = 0,
|
|
49497
|
-
e0 += r(
|
|
49496
|
+
for (var $t = 0, Kt = this.props, e0 = "matrix3d(", u0 = 1e4; $t < 16; )
|
|
49497
|
+
e0 += r(Kt[$t] * u0) / u0, e0 += $t === 15 ? ")" : ",", $t += 1;
|
|
49498
49498
|
return e0;
|
|
49499
49499
|
}
|
|
49500
49500
|
function qt($t) {
|
|
49501
|
-
var
|
|
49502
|
-
return $t < 1e-6 && $t > 0 || $t > -1e-6 && $t < 0 ? r($t *
|
|
49501
|
+
var Kt = 1e4;
|
|
49502
|
+
return $t < 1e-6 && $t > 0 || $t > -1e-6 && $t < 0 ? r($t * Kt) / Kt : $t;
|
|
49503
49503
|
}
|
|
49504
49504
|
function Ht() {
|
|
49505
|
-
var $t = this.props,
|
|
49506
|
-
return "matrix(" +
|
|
49505
|
+
var $t = this.props, Kt = qt($t[0]), e0 = qt($t[1]), u0 = qt($t[4]), d0 = qt($t[5]), _0 = qt($t[12]), J0 = qt($t[13]);
|
|
49506
|
+
return "matrix(" + Kt + "," + e0 + "," + u0 + "," + d0 + "," + _0 + "," + J0 + ")";
|
|
49507
49507
|
}
|
|
49508
49508
|
return function() {
|
|
49509
|
-
this.reset = C, this.rotate = w, this.rotateX = E, this.rotateY = O, this.rotateZ = le, this.skew = Se, this.skewFromAxis = ze, this.shear = fe, this.scale = ke, this.setTransform = Fe, this.translate = mt, this.transform = Lt, this.applyToPoint = Xt, this.applyToX = Zt, this.applyToY = wt, this.applyToZ = Vt, this.applyToPointArray = jt, this.applyToTriplePoints =
|
|
49509
|
+
this.reset = C, this.rotate = w, this.rotateX = E, this.rotateY = O, this.rotateZ = le, this.skew = Se, this.skewFromAxis = ze, this.shear = fe, this.scale = ke, this.setTransform = Fe, this.translate = mt, this.transform = Lt, this.applyToPoint = Xt, this.applyToX = Zt, this.applyToY = wt, this.applyToZ = Vt, this.applyToPointArray = jt, this.applyToTriplePoints = Ft, this.applyToPointStringified = n0, this.toCSS = s0, this.to2dCSS = Ht, this.clone = Gt, this.cloneFromProps = xt, this.equals = Ue, this.inversePoints = Nt, this.inversePoint = It, this.getInverseMatrix = Wt, this._t = this.transform, this.isIdentity = bt, this._identity = !0, this._identityCalculated = !1, this.props = createTypedArray("float32", 16), this.reset();
|
|
49510
49510
|
};
|
|
49511
49511
|
}();
|
|
49512
49512
|
var standalone = "__[STANDALONE]__", animationData = "__[ANIMATIONDATA]__", renderer = "";
|
|
@@ -49959,11 +49959,11 @@ if (typeof document != "undefined") {
|
|
|
49959
49959
|
var Nt = new OffscreenCanvas(500, 500).getContext("2d");
|
|
49960
49960
|
Nt.font = Wt.style + " " + Wt.weight + " 100px " + Xt.fFamily, Vt = Nt;
|
|
49961
49961
|
}
|
|
49962
|
-
function
|
|
49962
|
+
function Ft(jt) {
|
|
49963
49963
|
return wt === "svg" ? (Vt.textContent = jt, Vt.getComputedTextLength()) : Vt.measureText(jt).width;
|
|
49964
49964
|
}
|
|
49965
49965
|
return {
|
|
49966
|
-
measureText:
|
|
49966
|
+
measureText: Ft
|
|
49967
49967
|
};
|
|
49968
49968
|
}
|
|
49969
49969
|
function fe(Xt, Zt) {
|
|
@@ -49983,24 +49983,24 @@ if (typeof document != "undefined") {
|
|
|
49983
49983
|
}
|
|
49984
49984
|
var wt = Xt.list, Vt, Wt = wt.length, It = Wt;
|
|
49985
49985
|
for (Vt = 0; Vt < Wt; Vt += 1) {
|
|
49986
|
-
var Nt = !0,
|
|
49986
|
+
var Nt = !0, Ft, jt;
|
|
49987
49987
|
if (wt[Vt].loaded = !1, wt[Vt].monoCase = E(wt[Vt].fFamily, "monospace"), wt[Vt].sansCase = E(wt[Vt].fFamily, "sans-serif"), !wt[Vt].fPath)
|
|
49988
49988
|
wt[Vt].loaded = !0, It -= 1;
|
|
49989
49989
|
else if (wt[Vt].fOrigin === "p" || wt[Vt].origin === 3) {
|
|
49990
|
-
if (
|
|
49990
|
+
if (Ft = document.querySelectorAll('style[f-forigin="p"][f-family="' + wt[Vt].fFamily + '"], style[f-origin="3"][f-family="' + wt[Vt].fFamily + '"]'), Ft.length > 0 && (Nt = !1), Nt) {
|
|
49991
49991
|
var n0 = createTag("style");
|
|
49992
49992
|
n0.setAttribute("f-forigin", wt[Vt].fOrigin), n0.setAttribute("f-origin", wt[Vt].origin), n0.setAttribute("f-family", wt[Vt].fFamily), n0.type = "text/css", n0.innerText = "@font-face {font-family: " + wt[Vt].fFamily + "; font-style: normal; src: url('" + wt[Vt].fPath + "');}", Zt.appendChild(n0);
|
|
49993
49993
|
}
|
|
49994
49994
|
} else if (wt[Vt].fOrigin === "g" || wt[Vt].origin === 1) {
|
|
49995
|
-
for (
|
|
49996
|
-
|
|
49995
|
+
for (Ft = document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'), jt = 0; jt < Ft.length; jt += 1)
|
|
49996
|
+
Ft[jt].href.indexOf(wt[Vt].fPath) !== -1 && (Nt = !1);
|
|
49997
49997
|
if (Nt) {
|
|
49998
49998
|
var s0 = createTag("link");
|
|
49999
49999
|
s0.setAttribute("f-forigin", wt[Vt].fOrigin), s0.setAttribute("f-origin", wt[Vt].origin), s0.type = "text/css", s0.rel = "stylesheet", s0.href = wt[Vt].fPath, document.body.appendChild(s0);
|
|
50000
50000
|
}
|
|
50001
50001
|
} else if (wt[Vt].fOrigin === "t" || wt[Vt].origin === 2) {
|
|
50002
|
-
for (
|
|
50003
|
-
wt[Vt].fPath ===
|
|
50002
|
+
for (Ft = document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'), jt = 0; jt < Ft.length; jt += 1)
|
|
50003
|
+
wt[Vt].fPath === Ft[jt].src && (Nt = !1);
|
|
50004
50004
|
if (Nt) {
|
|
50005
50005
|
var qt = createTag("link");
|
|
50006
50006
|
qt.setAttribute("f-forigin", wt[Vt].fOrigin), qt.setAttribute("f-origin", wt[Vt].origin), qt.setAttribute("rel", "stylesheet"), qt.setAttribute("href", wt[Vt].fPath), Zt.appendChild(qt);
|
|
@@ -50034,8 +50034,8 @@ if (typeof document != "undefined") {
|
|
|
50034
50034
|
if (!Vt.cache[Wt + 1]) {
|
|
50035
50035
|
var It = Vt.helper;
|
|
50036
50036
|
if (Xt === " ") {
|
|
50037
|
-
var Nt = It.measureText("|" + Xt + "|"),
|
|
50038
|
-
Vt.cache[Wt + 1] = (Nt -
|
|
50037
|
+
var Nt = It.measureText("|" + Xt + "|"), Ft = It.measureText("||");
|
|
50038
|
+
Vt.cache[Wt + 1] = (Nt - Ft) / 100;
|
|
50039
50039
|
} else
|
|
50040
50040
|
Vt.cache[Wt + 1] = It.measureText(Xt) / 100;
|
|
50041
50041
|
}
|
|
@@ -51471,12 +51471,12 @@ if (typeof document != "undefined") {
|
|
|
51471
51471
|
if (ze.t === 1)
|
|
51472
51472
|
(ke.e._mdf || Fe) && (mt.setAttribute("x2", Ue[0]), mt.setAttribute("y2", Ue[1]), Lt && !ke.g._collapsable && (ke.of.setAttribute("x2", Ue[0]), ke.of.setAttribute("y2", Ue[1])));
|
|
51473
51473
|
else {
|
|
51474
|
-
var
|
|
51475
|
-
if ((ke.s._mdf || ke.e._mdf || Fe) && (
|
|
51476
|
-
|
|
51474
|
+
var Ft;
|
|
51475
|
+
if ((ke.s._mdf || ke.e._mdf || Fe) && (Ft = Math.sqrt(Math.pow(bt[0] - Ue[0], 2) + Math.pow(bt[1] - Ue[1], 2)), mt.setAttribute("r", Ft), Lt && !ke.g._collapsable && ke.of.setAttribute("r", Ft)), ke.e._mdf || ke.h._mdf || ke.a._mdf || Fe) {
|
|
51476
|
+
Ft || (Ft = Math.sqrt(Math.pow(bt[0] - Ue[0], 2) + Math.pow(bt[1] - Ue[1], 2)));
|
|
51477
51477
|
var jt = Math.atan2(Ue[1] - bt[1], Ue[0] - bt[0]), n0 = ke.h.v;
|
|
51478
51478
|
n0 >= 1 ? n0 = 0.99 : n0 <= -1 && (n0 = -0.99);
|
|
51479
|
-
var s0 =
|
|
51479
|
+
var s0 = Ft * n0, qt = Math.cos(jt + ke.a.v) * s0 + bt[0], Ht = Math.sin(jt + ke.a.v) * s0 + bt[1];
|
|
51480
51480
|
mt.setAttribute("fx", qt), mt.setAttribute("fy", Ht), Lt && !ke.g._collapsable && (ke.of.setAttribute("fx", qt), ke.of.setAttribute("fy", Ht));
|
|
51481
51481
|
}
|
|
51482
51482
|
}
|
|
@@ -51623,12 +51623,12 @@ if (typeof document != "undefined") {
|
|
|
51623
51623
|
v.fWeight = Zt.weight, v.fStyle = Zt.style, v.finalSize = v.s, v.finalText = this.buildFinalText(v.t), w = v.finalText.length, v.finalLineHeight = v.lh;
|
|
51624
51624
|
var wt = v.tr / 1e3 * v.finalSize, Vt;
|
|
51625
51625
|
if (v.sz)
|
|
51626
|
-
for (var Wt = !0, It = v.sz[0], Nt = v.sz[1],
|
|
51627
|
-
jt = this.buildFinalText(v.t),
|
|
51626
|
+
for (var Wt = !0, It = v.sz[0], Nt = v.sz[1], Ft, jt; Wt; ) {
|
|
51627
|
+
jt = this.buildFinalText(v.t), Ft = 0, mt = 0, w = jt.length, wt = v.tr / 1e3 * v.finalSize;
|
|
51628
51628
|
var n0 = -1;
|
|
51629
51629
|
for (C = 0; C < w; C += 1)
|
|
51630
|
-
Vt = jt[C].charCodeAt(0), E = !1, jt[C] === " " ? n0 = C : (Vt === 13 || Vt === 3) && (mt = 0, E = !0,
|
|
51631
|
-
|
|
51630
|
+
Vt = jt[C].charCodeAt(0), E = !1, jt[C] === " " ? n0 = C : (Vt === 13 || Vt === 3) && (mt = 0, E = !0, Ft += v.finalLineHeight || v.finalSize * 1.2), e.chars ? (xt = e.getCharData(jt[C], Gt.fStyle, Gt.fFamily), Xt = E ? 0 : xt.w * v.finalSize / 100) : Xt = e.measureText(jt[C], v.f, v.finalSize), mt + Xt > It && jt[C] !== " " ? (n0 === -1 ? w += 1 : C = n0, Ft += v.finalLineHeight || v.finalSize * 1.2, jt.splice(C, n0 === C ? 1 : 0, "\r"), n0 = -1, mt = 0) : (mt += Xt, mt += wt);
|
|
51631
|
+
Ft += Gt.ascent * v.finalSize / 100, this.canResize && v.finalSize > this.minimumFontSize && Nt < Ft ? (v.finalSize -= 1, v.finalLineHeight = v.finalSize * v.lh / v.s) : (v.finalText = jt, w = v.finalText.length, Wt = !1);
|
|
51632
51632
|
}
|
|
51633
51633
|
mt = -wt, Xt = 0;
|
|
51634
51634
|
var s0 = 0, qt;
|
|
@@ -51670,17 +51670,17 @@ if (typeof document != "undefined") {
|
|
|
51670
51670
|
v.justifyOffset = 0;
|
|
51671
51671
|
}
|
|
51672
51672
|
v.lineWidths = Fe;
|
|
51673
|
-
var Ht = n.a, $t,
|
|
51673
|
+
var Ht = n.a, $t, Kt;
|
|
51674
51674
|
Ue = Ht.length;
|
|
51675
51675
|
var e0, u0, d0 = [];
|
|
51676
51676
|
for (bt = 0; bt < Ue; bt += 1) {
|
|
51677
51677
|
for ($t = Ht[bt], $t.a.sc && (v.strokeColorAnim = !0), $t.a.sw && (v.strokeWidthAnim = !0), ($t.a.fc || $t.a.fh || $t.a.fs || $t.a.fb) && (v.fillColorAnim = !0), u0 = 0, e0 = $t.s.b, C = 0; C < w; C += 1)
|
|
51678
|
-
|
|
51678
|
+
Kt = r[C], Kt.anIndexes[bt] = u0, (e0 == 1 && Kt.val !== "" || e0 == 2 && Kt.val !== "" && Kt.val !== " " || e0 == 3 && (Kt.n || Kt.val == " " || C == w - 1) || e0 == 4 && (Kt.n || C == w - 1)) && ($t.s.rn === 1 && d0.push(u0), u0 += 1);
|
|
51679
51679
|
n.a[bt].s.totalChars = u0;
|
|
51680
51680
|
var _0 = -1, J0;
|
|
51681
51681
|
if ($t.s.rn === 1)
|
|
51682
51682
|
for (C = 0; C < w; C += 1)
|
|
51683
|
-
|
|
51683
|
+
Kt = r[C], _0 != Kt.anIndexes[bt] && (_0 = Kt.anIndexes[bt], J0 = d0.splice(Math.floor(Math.random() * d0.length), 1)[0]), Kt.anIndexes[bt] = J0;
|
|
51684
51684
|
}
|
|
51685
51685
|
v.yOffset = v.finalLineHeight || v.finalSize * 1.2, v.ls = v.ls || 0, v.ascent = Gt.ascent * v.finalSize / 100;
|
|
51686
51686
|
}, TextProperty.prototype.updateDocumentData = function(v, e) {
|
|
@@ -51763,10 +51763,10 @@ if (typeof document != "undefined") {
|
|
|
51763
51763
|
}, TextAnimatorProperty.prototype.getMeasures = function(v, e) {
|
|
51764
51764
|
if (this.lettersChangedFlag = e, !(!this._mdf && !this._isFirstFrame && !e && (!this._hasMaskedPath || !this._pathData.m._mdf))) {
|
|
51765
51765
|
this._isFirstFrame = !1;
|
|
51766
|
-
var n = this._moreOptions.alignment.v, r = this._animatorsData, C = this._textData, w = this.mHelper, E = this._renderType, O = this.renderedLetters.length, le, fe, Se, ze, ke = v.l, Fe, mt, Lt, bt, Ue, Gt, xt, Xt, Zt, wt, Vt, Wt, It, Nt,
|
|
51766
|
+
var n = this._moreOptions.alignment.v, r = this._animatorsData, C = this._textData, w = this.mHelper, E = this._renderType, O = this.renderedLetters.length, le, fe, Se, ze, ke = v.l, Fe, mt, Lt, bt, Ue, Gt, xt, Xt, Zt, wt, Vt, Wt, It, Nt, Ft;
|
|
51767
51767
|
if (this._hasMaskedPath) {
|
|
51768
|
-
if (
|
|
51769
|
-
var jt =
|
|
51768
|
+
if (Ft = this._pathData.m, !this._pathData.n || this._pathData._mdf) {
|
|
51769
|
+
var jt = Ft.v;
|
|
51770
51770
|
this._pathData.r.v && (jt = jt.reverse()), Fe = {
|
|
51771
51771
|
tLength: 0,
|
|
51772
51772
|
segments: []
|
|
@@ -51779,22 +51779,22 @@ if (typeof document != "undefined") {
|
|
|
51779
51779
|
[jt.o[Se][0] - jt.v[Se][0], jt.o[Se][1] - jt.v[Se][1]],
|
|
51780
51780
|
[jt.i[Se + 1][0] - jt.v[Se + 1][0], jt.i[Se + 1][1] - jt.v[Se + 1][1]]
|
|
51781
51781
|
), Fe.tLength += n0.segmentLength, Fe.segments.push(n0), Wt += n0.segmentLength;
|
|
51782
|
-
Se = ze,
|
|
51782
|
+
Se = ze, Ft.v.c && (n0 = bez.buildBezierData(
|
|
51783
51783
|
jt.v[Se],
|
|
51784
51784
|
jt.v[0],
|
|
51785
51785
|
[jt.o[Se][0] - jt.v[Se][0], jt.o[Se][1] - jt.v[Se][1]],
|
|
51786
51786
|
[jt.i[0][0] - jt.v[0][0], jt.i[0][1] - jt.v[0][1]]
|
|
51787
51787
|
), Fe.tLength += n0.segmentLength, Fe.segments.push(n0), Wt += n0.segmentLength), this._pathData.pi = Fe;
|
|
51788
51788
|
}
|
|
51789
|
-
if (Fe = this._pathData.pi, mt = this._pathData.f.v, xt = 0, Gt = 1, bt = 0, Ue = !0, wt = Fe.segments, mt < 0 &&
|
|
51789
|
+
if (Fe = this._pathData.pi, mt = this._pathData.f.v, xt = 0, Gt = 1, bt = 0, Ue = !0, wt = Fe.segments, mt < 0 && Ft.v.c)
|
|
51790
51790
|
for (Fe.tLength < Math.abs(mt) && (mt = -Math.abs(mt) % Fe.tLength), xt = wt.length - 1, Zt = wt[xt].points, Gt = Zt.length - 1; mt < 0; )
|
|
51791
51791
|
mt += Zt[Gt].partialLength, Gt -= 1, Gt < 0 && (xt -= 1, Zt = wt[xt].points, Gt = Zt.length - 1);
|
|
51792
51792
|
Zt = wt[xt].points, Xt = Zt[Gt - 1], Lt = Zt[Gt], Vt = Lt.partialLength;
|
|
51793
51793
|
}
|
|
51794
51794
|
ze = ke.length, le = 0, fe = 0;
|
|
51795
|
-
var s0 = v.finalSize * 1.2 * 0.714, qt = !0, Ht, $t,
|
|
51795
|
+
var s0 = v.finalSize * 1.2 * 0.714, qt = !0, Ht, $t, Kt, e0, u0;
|
|
51796
51796
|
e0 = r.length;
|
|
51797
|
-
var d0, _0 = -1, J0, H0, bi, b0 = mt, V0 = xt, D0 = Gt, Si = -1, q0, Wi, Ai, a0, P0,
|
|
51797
|
+
var d0, _0 = -1, J0, H0, bi, b0 = mt, V0 = xt, D0 = Gt, Si = -1, q0, Wi, Ai, a0, P0, F0, K0, I0, Q0 = "", S0 = this.defaultPropsArray, L0;
|
|
51798
51798
|
if (v.j === 2 || v.j === 1) {
|
|
51799
51799
|
var A0 = 0, B0 = 0, r0 = v.j === 2 ? -0.5 : -1, t0 = 0, m0 = !0;
|
|
51800
51800
|
for (Se = 0; Se < ze; Se += 1)
|
|
@@ -51803,8 +51803,8 @@ if (typeof document != "undefined") {
|
|
|
51803
51803
|
ke[t0].animatorJustifyOffset = A0, t0 += 1;
|
|
51804
51804
|
A0 = 0, m0 = !0;
|
|
51805
51805
|
} else {
|
|
51806
|
-
for (
|
|
51807
|
-
Ht = r[
|
|
51806
|
+
for (Kt = 0; Kt < e0; Kt += 1)
|
|
51807
|
+
Ht = r[Kt].a, Ht.t.propType && (m0 && v.j === 2 && (B0 += Ht.t.v * r0), $t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), d0.length ? A0 += Ht.t.v * d0[0] * r0 : A0 += Ht.t.v * d0 * r0);
|
|
51808
51808
|
m0 = !1;
|
|
51809
51809
|
}
|
|
51810
51810
|
for (A0 && (A0 += B0); t0 < Se; )
|
|
@@ -51812,7 +51812,7 @@ if (typeof document != "undefined") {
|
|
|
51812
51812
|
}
|
|
51813
51813
|
for (Se = 0; Se < ze; Se += 1) {
|
|
51814
51814
|
if (w.reset(), q0 = 1, ke[Se].n)
|
|
51815
|
-
le = 0, fe += v.yOffset, fe += qt ? 1 : 0, mt = b0, qt = !1, this._hasMaskedPath && (xt = V0, Gt = D0, Zt = wt[xt].points, Xt = Zt[Gt - 1], Lt = Zt[Gt], Vt = Lt.partialLength, bt = 0), Q0 = "", I0 = "",
|
|
51815
|
+
le = 0, fe += v.yOffset, fe += qt ? 1 : 0, mt = b0, qt = !1, this._hasMaskedPath && (xt = V0, Gt = D0, Zt = wt[xt].points, Xt = Zt[Gt - 1], Lt = Zt[Gt], Vt = Lt.partialLength, bt = 0), Q0 = "", I0 = "", F0 = "", L0 = "", S0 = this.defaultPropsArray;
|
|
51816
51816
|
else {
|
|
51817
51817
|
if (this._hasMaskedPath) {
|
|
51818
51818
|
if (Si !== ke[Se].line) {
|
|
@@ -51828,21 +51828,21 @@ if (typeof document != "undefined") {
|
|
|
51828
51828
|
}
|
|
51829
51829
|
_0 !== ke[Se].ind && (ke[_0] && (mt += ke[_0].extra), mt += ke[Se].an / 2, _0 = ke[Se].ind), mt += n[0] * ke[Se].an * 5e-3;
|
|
51830
51830
|
var v0 = 0;
|
|
51831
|
-
for (
|
|
51832
|
-
Ht = r[
|
|
51831
|
+
for (Kt = 0; Kt < e0; Kt += 1)
|
|
51832
|
+
Ht = r[Kt].a, Ht.p.propType && ($t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), d0.length ? v0 += Ht.p.v[0] * d0[0] : v0 += Ht.p.v[0] * d0), Ht.a.propType && ($t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), d0.length ? v0 += Ht.a.v[0] * d0[0] : v0 += Ht.a.v[0] * d0);
|
|
51833
51833
|
for (Ue = !0, this._pathData.a.v && (mt = ke[0].an * 0.5 + (Wt - this._pathData.f.v - ke[0].an * 0.5 - ke[ke.length - 1].an * 0.5) * _0 / (ze - 1), mt += this._pathData.f.v); Ue; )
|
|
51834
|
-
bt + Vt >= mt + v0 || !Zt ? (It = (mt + v0 - bt) / Lt.partialLength, H0 = Xt.point[0] + (Lt.point[0] - Xt.point[0]) * It, bi = Xt.point[1] + (Lt.point[1] - Xt.point[1]) * It, w.translate(-n[0] * ke[Se].an * 5e-3, -(n[1] * s0) * 0.01), Ue = !1) : Zt && (bt += Lt.partialLength, Gt += 1, Gt >= Zt.length && (Gt = 0, xt += 1, wt[xt] ? Zt = wt[xt].points :
|
|
51834
|
+
bt + Vt >= mt + v0 || !Zt ? (It = (mt + v0 - bt) / Lt.partialLength, H0 = Xt.point[0] + (Lt.point[0] - Xt.point[0]) * It, bi = Xt.point[1] + (Lt.point[1] - Xt.point[1]) * It, w.translate(-n[0] * ke[Se].an * 5e-3, -(n[1] * s0) * 0.01), Ue = !1) : Zt && (bt += Lt.partialLength, Gt += 1, Gt >= Zt.length && (Gt = 0, xt += 1, wt[xt] ? Zt = wt[xt].points : Ft.v.c ? (Gt = 0, xt = 0, Zt = wt[xt].points) : (bt -= Lt.partialLength, Zt = null)), Zt && (Xt = Lt, Lt = Zt[Gt], Vt = Lt.partialLength));
|
|
51835
51835
|
J0 = ke[Se].an / 2 - ke[Se].add, w.translate(-J0, 0, 0);
|
|
51836
51836
|
} else
|
|
51837
51837
|
J0 = ke[Se].an / 2 - ke[Se].add, w.translate(-J0, 0, 0), w.translate(-n[0] * ke[Se].an * 5e-3, -n[1] * s0 * 0.01, 0);
|
|
51838
|
-
for (
|
|
51839
|
-
Ht = r[
|
|
51840
|
-
for (v.strokeWidthAnim && (Ai = v.sw || 0), v.strokeColorAnim && (v.sc ? Wi = [v.sc[0], v.sc[1], v.sc[2]] : Wi = [0, 0, 0]), v.fillColorAnim && v.fc && (a0 = [v.fc[0], v.fc[1], v.fc[2]]),
|
|
51841
|
-
Ht = r[
|
|
51842
|
-
for (
|
|
51843
|
-
Ht = r[
|
|
51844
|
-
for (
|
|
51845
|
-
if (Ht = r[
|
|
51838
|
+
for (Kt = 0; Kt < e0; Kt += 1)
|
|
51839
|
+
Ht = r[Kt].a, Ht.t.propType && ($t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), (le !== 0 || v.j !== 0) && (this._hasMaskedPath ? d0.length ? mt += Ht.t.v * d0[0] : mt += Ht.t.v * d0 : d0.length ? le += Ht.t.v * d0[0] : le += Ht.t.v * d0));
|
|
51840
|
+
for (v.strokeWidthAnim && (Ai = v.sw || 0), v.strokeColorAnim && (v.sc ? Wi = [v.sc[0], v.sc[1], v.sc[2]] : Wi = [0, 0, 0]), v.fillColorAnim && v.fc && (a0 = [v.fc[0], v.fc[1], v.fc[2]]), Kt = 0; Kt < e0; Kt += 1)
|
|
51841
|
+
Ht = r[Kt].a, Ht.a.propType && ($t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), d0.length ? w.translate(-Ht.a.v[0] * d0[0], -Ht.a.v[1] * d0[1], Ht.a.v[2] * d0[2]) : w.translate(-Ht.a.v[0] * d0, -Ht.a.v[1] * d0, Ht.a.v[2] * d0));
|
|
51842
|
+
for (Kt = 0; Kt < e0; Kt += 1)
|
|
51843
|
+
Ht = r[Kt].a, Ht.s.propType && ($t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), d0.length ? w.scale(1 + (Ht.s.v[0] - 1) * d0[0], 1 + (Ht.s.v[1] - 1) * d0[1], 1) : w.scale(1 + (Ht.s.v[0] - 1) * d0, 1 + (Ht.s.v[1] - 1) * d0, 1));
|
|
51844
|
+
for (Kt = 0; Kt < e0; Kt += 1) {
|
|
51845
|
+
if (Ht = r[Kt].a, $t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), Ht.sk.propType && (d0.length ? w.skewFromAxis(-Ht.sk.v * d0[0], Ht.sa.v * d0[1]) : w.skewFromAxis(-Ht.sk.v * d0, Ht.sa.v * d0)), Ht.r.propType && (d0.length ? w.rotateZ(-Ht.r.v * d0[2]) : w.rotateZ(-Ht.r.v * d0)), Ht.ry.propType && (d0.length ? w.rotateY(Ht.ry.v * d0[1]) : w.rotateY(Ht.ry.v * d0)), Ht.rx.propType && (d0.length ? w.rotateX(Ht.rx.v * d0[0]) : w.rotateX(Ht.rx.v * d0)), Ht.o.propType && (d0.length ? q0 += (Ht.o.v * d0[0] - q0) * d0[0] : q0 += (Ht.o.v * d0 - q0) * d0), v.strokeWidthAnim && Ht.sw.propType && (d0.length ? Ai += Ht.sw.v * d0[0] : Ai += Ht.sw.v * d0), v.strokeColorAnim && Ht.sc.propType)
|
|
51846
51846
|
for (P0 = 0; P0 < 3; P0 += 1)
|
|
51847
51847
|
d0.length ? Wi[P0] += (Ht.sc.v[P0] - Wi[P0]) * d0[0] : Wi[P0] += (Ht.sc.v[P0] - Wi[P0]) * d0;
|
|
51848
51848
|
if (v.fillColorAnim && v.fc) {
|
|
@@ -51852,9 +51852,9 @@ if (typeof document != "undefined") {
|
|
|
51852
51852
|
Ht.fh.propType && (d0.length ? a0 = addHueToRGB(a0, Ht.fh.v * d0[0]) : a0 = addHueToRGB(a0, Ht.fh.v * d0)), Ht.fs.propType && (d0.length ? a0 = addSaturationToRGB(a0, Ht.fs.v * d0[0]) : a0 = addSaturationToRGB(a0, Ht.fs.v * d0)), Ht.fb.propType && (d0.length ? a0 = addBrightnessToRGB(a0, Ht.fb.v * d0[0]) : a0 = addBrightnessToRGB(a0, Ht.fb.v * d0));
|
|
51853
51853
|
}
|
|
51854
51854
|
}
|
|
51855
|
-
for (
|
|
51856
|
-
Ht = r[
|
|
51857
|
-
if (v.strokeWidthAnim && (
|
|
51855
|
+
for (Kt = 0; Kt < e0; Kt += 1)
|
|
51856
|
+
Ht = r[Kt].a, Ht.p.propType && ($t = r[Kt].s, d0 = $t.getMult(ke[Se].anIndexes[Kt], C.a[Kt].s.totalChars), this._hasMaskedPath ? d0.length ? w.translate(0, Ht.p.v[1] * d0[0], -Ht.p.v[2] * d0[1]) : w.translate(0, Ht.p.v[1] * d0, -Ht.p.v[2] * d0) : d0.length ? w.translate(Ht.p.v[0] * d0[0], Ht.p.v[1] * d0[1], -Ht.p.v[2] * d0[2]) : w.translate(Ht.p.v[0] * d0, Ht.p.v[1] * d0, -Ht.p.v[2] * d0));
|
|
51857
|
+
if (v.strokeWidthAnim && (F0 = Ai < 0 ? 0 : Ai), v.strokeColorAnim && (K0 = "rgb(" + Math.round(Wi[0] * 255) + "," + Math.round(Wi[1] * 255) + "," + Math.round(Wi[2] * 255) + ")"), v.fillColorAnim && v.fc && (I0 = "rgb(" + Math.round(a0[0] * 255) + "," + Math.round(a0[1] * 255) + "," + Math.round(a0[2] * 255) + ")"), this._hasMaskedPath) {
|
|
51858
51858
|
if (w.translate(0, -v.ls), w.translate(0, n[1] * s0 * 0.01 + fe, 0), this._pathData.p.v) {
|
|
51859
51859
|
Nt = (Lt.point[1] - Xt.point[1]) / (Lt.point[0] - Xt.point[0]);
|
|
51860
51860
|
var k0 = Math.atan(Nt) * 180 / Math.PI;
|
|
@@ -51874,7 +51874,7 @@ if (typeof document != "undefined") {
|
|
|
51874
51874
|
}
|
|
51875
51875
|
E === "html" ? Q0 = w.toCSS() : E === "svg" ? Q0 = w.to2dCSS() : S0 = [w.props[0], w.props[1], w.props[2], w.props[3], w.props[4], w.props[5], w.props[6], w.props[7], w.props[8], w.props[9], w.props[10], w.props[11], w.props[12], w.props[13], w.props[14], w.props[15]], L0 = q0;
|
|
51876
51876
|
}
|
|
51877
|
-
O <= Se ? (u0 = new LetterProps(L0,
|
|
51877
|
+
O <= Se ? (u0 = new LetterProps(L0, F0, K0, I0, Q0, S0), this.renderedLetters.push(u0), O += 1, this.lettersChangedFlag = !0) : (u0 = this.renderedLetters[Se], this.lettersChangedFlag = u0.update(L0, F0, K0, I0, Q0, S0) || this.lettersChangedFlag);
|
|
51878
51878
|
}
|
|
51879
51879
|
}
|
|
51880
51880
|
}, TextAnimatorProperty.prototype.getValue = function() {
|
|
@@ -53536,7 +53536,7 @@ class TransformControlsGizmo extends Object3D {
|
|
|
53536
53536
|
E: [
|
|
53537
53537
|
[new Mesh(new TorusGeometry(0.75, 0.1, 2, 24), r)]
|
|
53538
53538
|
]
|
|
53539
|
-
},
|
|
53539
|
+
}, Ft = {
|
|
53540
53540
|
X: [
|
|
53541
53541
|
[new Mesh(bt, w), [0.5, 0, 0], [0, 0, -Math.PI / 2]],
|
|
53542
53542
|
[new Mesh(Gt, w), [0, 0, 0], [0, 0, -Math.PI / 2]],
|
|
@@ -53603,15 +53603,15 @@ class TransformControlsGizmo extends Object3D {
|
|
|
53603
53603
|
function s0(qt) {
|
|
53604
53604
|
const Ht = new Object3D();
|
|
53605
53605
|
for (const $t in qt)
|
|
53606
|
-
for (let
|
|
53607
|
-
const e0 = qt[$t][
|
|
53606
|
+
for (let Kt = qt[$t].length; Kt--; ) {
|
|
53607
|
+
const e0 = qt[$t][Kt][0].clone(), u0 = qt[$t][Kt][1], d0 = qt[$t][Kt][2], _0 = qt[$t][Kt][3], J0 = qt[$t][Kt][4];
|
|
53608
53608
|
e0.name = $t, e0.tag = J0, u0 && e0.position.set(u0[0], u0[1], u0[2]), d0 && e0.rotation.set(d0[0], d0[1], d0[2]), _0 && e0.scale.set(_0[0], _0[1], _0[2]), e0.updateMatrix();
|
|
53609
53609
|
const H0 = e0.geometry.clone();
|
|
53610
53610
|
H0.applyMatrix4(e0.matrix), e0.geometry = H0, e0.renderOrder = 1 / 0, e0.position.set(0, 0, 0), e0.rotation.set(0, 0, 0), e0.scale.set(1, 1, 1), Ht.add(e0);
|
|
53611
53611
|
}
|
|
53612
53612
|
return Ht;
|
|
53613
53613
|
}
|
|
53614
|
-
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = s0(Zt)), this.add(this.gizmo.rotate = s0(Wt)), this.add(this.gizmo.scale = s0(
|
|
53614
|
+
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = s0(Zt)), this.add(this.gizmo.rotate = s0(Wt)), this.add(this.gizmo.scale = s0(Ft)), this.add(this.picker.translate = s0(wt)), this.add(this.picker.rotate = s0(Nt)), this.add(this.picker.scale = s0(jt)), this.add(this.helper.translate = s0(Vt)), this.add(this.helper.rotate = s0(It)), this.add(this.helper.scale = s0(n0)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
|
|
53615
53615
|
}
|
|
53616
53616
|
// updateMatrixWorld will update transformations and appearance of individual handles
|
|
53617
53617
|
updateMatrixWorld(e) {
|
|
@@ -53780,8 +53780,8 @@ function je(v, e, n, r, C = 1 / 0, w, E) {
|
|
|
53780
53780
|
Se = v.x - Fe, ze = v.y - mt, ke = v.z - Lt;
|
|
53781
53781
|
const wt = (n.x + O * Fe) * w, Vt = (n.y + O * mt) * w, Wt = (n.z + O * Lt) * w;
|
|
53782
53782
|
n.x = (n.x - O * wt) * fe, n.y = (n.y - O * Vt) * fe, n.z = (n.z - O * Wt) * fe, E.x = Se + (Fe + wt) * fe, E.y = ze + (mt + Vt) * fe, E.z = ke + (Lt + Wt) * fe;
|
|
53783
|
-
const It = bt - v.x, Nt = Ue - v.y,
|
|
53784
|
-
return It * jt + Nt * n0 +
|
|
53783
|
+
const It = bt - v.x, Nt = Ue - v.y, Ft = Gt - v.z, jt = E.x - bt, n0 = E.y - Ue, s0 = E.z - Gt;
|
|
53784
|
+
return It * jt + Nt * n0 + Ft * s0 > 0 && (E.x = bt, E.y = Ue, E.z = Gt, n.x = (E.x - bt) / w, n.y = (E.y - Ue) / w, n.z = (E.z - Gt) / w), E;
|
|
53785
53785
|
}
|
|
53786
53786
|
function Ee(v, e) {
|
|
53787
53787
|
e.set(0, 0), v.forEach((n) => {
|
|
@@ -58031,6 +58031,13 @@ class Model extends pe$1 {
|
|
|
58031
58031
|
this.setClips(w), this.options.autoPlay && this.clips.length > 0 && this.playAllClips();
|
|
58032
58032
|
});
|
|
58033
58033
|
}
|
|
58034
|
+
render() {
|
|
58035
|
+
this.traverse((n) => {
|
|
58036
|
+
var C;
|
|
58037
|
+
const r = (C = n.object3d) == null ? void 0 : C.material;
|
|
58038
|
+
r && (r.userData.textureDisableFlipY = !0);
|
|
58039
|
+
});
|
|
58040
|
+
}
|
|
58034
58041
|
/**
|
|
58035
58042
|
* Set animation clips for the model
|
|
58036
58043
|
* @param clips Array of animation clips from GLTF
|
|
@@ -61101,7 +61108,7 @@ class Editor {
|
|
|
61101
61108
|
setObjectMaterial(e, n, r) {
|
|
61102
61109
|
if (!e) return;
|
|
61103
61110
|
let C = e.material;
|
|
61104
|
-
Array.isArray(e.material) && n !== void 0 ? (C = e.material[n], e.material[n] = r) : e.material = r, C != null && C.onBeforeCompile && (r.onBeforeCompile = C.onBeforeCompile), C != null && C.name && !r.name && (r.name = C.name);
|
|
61111
|
+
Array.isArray(e.material) && n !== void 0 ? (C = e.material[n], e.material[n] = r) : e.material = r, C != null && C.onBeforeCompile && (r.onBeforeCompile = C.onBeforeCompile), C != null && C.name && !r.name && (r.name = C.name), C != null && C.userData.textureDisableFlipY && (r.userData.textureDisableFlipY = !0);
|
|
61105
61112
|
}
|
|
61106
61113
|
uuidByObject(e) {
|
|
61107
61114
|
var n;
|
|
@@ -61489,7 +61496,6 @@ class Camera extends Event {
|
|
|
61489
61496
|
const IS_DEV = !1;
|
|
61490
61497
|
class Base extends Camera {
|
|
61491
61498
|
constructor(n) {
|
|
61492
|
-
var r;
|
|
61493
61499
|
super();
|
|
61494
61500
|
g0(this, "playing", !0);
|
|
61495
61501
|
g0(this, "leftTruck", !0);
|
|
@@ -61521,45 +61527,23 @@ class Base extends Camera {
|
|
|
61521
61527
|
logarithmicDepthBuffer: !0,
|
|
61522
61528
|
observeParentScale: !0
|
|
61523
61529
|
}, n), !this.options.assetsPrefix) {
|
|
61524
|
-
let
|
|
61525
|
-
|
|
61530
|
+
let r = "/";
|
|
61531
|
+
r === "/" && (r = ""), this.options.assetsPrefix = r;
|
|
61526
61532
|
}
|
|
61527
61533
|
this.options.workerOnce !== void 0 && (this.workerOnce = this.options.workerOnce);
|
|
61528
61534
|
try {
|
|
61529
|
-
const
|
|
61530
|
-
if (
|
|
61531
|
-
const
|
|
61532
|
-
this.options.logarithmicDepthBuffer =
|
|
61535
|
+
const r = window.location.search.match(/v_ldb=(\d+)/);
|
|
61536
|
+
if (r) {
|
|
61537
|
+
const C = !!+r[1];
|
|
61538
|
+
this.options.logarithmicDepthBuffer = C;
|
|
61533
61539
|
}
|
|
61534
|
-
} catch (
|
|
61535
|
-
console.error(
|
|
61536
|
-
}
|
|
61537
|
-
if (this.options.editor) {
|
|
61538
|
-
const C = detect();
|
|
61539
|
-
let w = (r = this.options.tier) != null ? r : C.tier;
|
|
61540
|
-
try {
|
|
61541
|
-
const E = window.location.search.match(/v_tier=(\d+)/);
|
|
61542
|
-
E && (w = +E[1]);
|
|
61543
|
-
} catch (E) {
|
|
61544
|
-
console.error(E);
|
|
61545
|
-
}
|
|
61546
|
-
this.tier0 = w !== 3, this.editor = new Editor({
|
|
61547
|
-
assetsPrefix: this.options.assetsPrefix,
|
|
61548
|
-
visFactories: this
|
|
61549
|
-
}), console.info(
|
|
61550
|
-
"vis-core:detect",
|
|
61551
|
-
version,
|
|
61552
|
-
JSON.stringify(
|
|
61553
|
-
Ui(O0({}, C), {
|
|
61554
|
-
ldb: this.options.logarithmicDepthBuffer,
|
|
61555
|
-
tier0: this.tier0
|
|
61556
|
-
}),
|
|
61557
|
-
null,
|
|
61558
|
-
2
|
|
61559
|
-
)
|
|
61560
|
-
);
|
|
61540
|
+
} catch (r) {
|
|
61541
|
+
console.error(r);
|
|
61561
61542
|
}
|
|
61562
|
-
this.
|
|
61543
|
+
this.options.editor && (this.editor = new Editor({
|
|
61544
|
+
assetsPrefix: this.options.assetsPrefix,
|
|
61545
|
+
visFactories: this
|
|
61546
|
+
}), this.showDetectRes()), this.visName = this.constructor.VisName;
|
|
61563
61547
|
}
|
|
61564
61548
|
get loader() {
|
|
61565
61549
|
return this.pencil.loader;
|
|
@@ -61567,6 +61551,29 @@ class Base extends Camera {
|
|
|
61567
61551
|
get worker() {
|
|
61568
61552
|
return this.pencil.installPlugins.get("worker");
|
|
61569
61553
|
}
|
|
61554
|
+
showDetectRes() {
|
|
61555
|
+
var C;
|
|
61556
|
+
const n = detect();
|
|
61557
|
+
let r = (C = this.options.tier) != null ? C : n.tier;
|
|
61558
|
+
try {
|
|
61559
|
+
const w = window.location.search.match(/v_tier=(\d+)/);
|
|
61560
|
+
w && (r = +w[1]);
|
|
61561
|
+
} catch (w) {
|
|
61562
|
+
console.error(w);
|
|
61563
|
+
}
|
|
61564
|
+
this.tier0 = r !== 3, console.info(
|
|
61565
|
+
"vis-core:detect",
|
|
61566
|
+
version,
|
|
61567
|
+
JSON.stringify(
|
|
61568
|
+
Ui(O0({}, n), {
|
|
61569
|
+
ldb: this.options.logarithmicDepthBuffer,
|
|
61570
|
+
tier0: this.tier0
|
|
61571
|
+
}),
|
|
61572
|
+
null,
|
|
61573
|
+
2
|
|
61574
|
+
)
|
|
61575
|
+
);
|
|
61576
|
+
}
|
|
61570
61577
|
setOptions(n) {
|
|
61571
61578
|
this.options = O0(O0({}, this.options), n);
|
|
61572
61579
|
}
|
|
@@ -61677,14 +61684,13 @@ class Base extends Camera {
|
|
|
61677
61684
|
if (Ue.material) {
|
|
61678
61685
|
const Gt = Ue.material;
|
|
61679
61686
|
(Array.isArray(Gt) ? Gt : [Gt]).forEach((Xt) => {
|
|
61680
|
-
!Lt.has(Xt) && Xt.name && (Lt.set(Xt, Xt.name), Xt.name = "");
|
|
61687
|
+
!Lt.has(Xt) && Xt.name && (Lt.set(Xt, Xt.name), Xt.name = ""), Xt.transparent && Xt.alphaTest === 0 && (Xt.alphaTest = 0.01, Xt.needsUpdate = !0);
|
|
61681
61688
|
});
|
|
61682
61689
|
}
|
|
61683
61690
|
});
|
|
61684
61691
|
}), ke.event.on("render", () => {
|
|
61685
61692
|
[...Lt.keys()].forEach((bt) => {
|
|
61686
|
-
|
|
61687
|
-
Ue && (bt.name = Ue);
|
|
61693
|
+
Lt.has(bt) && (bt.name = Lt.get(bt));
|
|
61688
61694
|
}), Lt.clear();
|
|
61689
61695
|
});
|
|
61690
61696
|
}
|
|
@@ -141069,7 +141075,7 @@ const objs$2 = Ui(O0({}, objs$3), {
|
|
|
141069
141075
|
});
|
|
141070
141076
|
It.uniforms.mirrorSampler.value = Vt.texture, It.uniforms.textureMatrix.value = Zt, It.uniforms.alpha.value = C, It.uniforms.normalSampler.value = w, It.uniforms.waterColor.value = E, It.uniforms.distortionScale.value = le, It.uniforms.eye.value = O;
|
|
141071
141077
|
const Nt = v.material;
|
|
141072
|
-
v.material = It, v.onBeforeRender = function(
|
|
141078
|
+
v.material = It, v.onBeforeRender = function(Ft, jt, n0) {
|
|
141073
141079
|
Nt.color !== It.uniforms.waterColor.value && (It.uniforms.waterColor.value = Nt.color), Fe.setFromMatrixPosition(v.matrixWorld), mt.setFromMatrixPosition(n0.matrixWorld), Lt.extractRotation(v.matrixWorld), ke.set(0, 0, 1), ke.applyMatrix4(Lt), Gt.subVectors(Fe, mt), n0.updateMatrix(), n0.updateMatrixWorld(), v.updateMatrix(), v.updateMatrixWorld();
|
|
141074
141080
|
const s0 = new Frustum(), qt = new Matrix4();
|
|
141075
141081
|
if (qt.multiplyMatrices(
|
|
@@ -141102,10 +141108,10 @@ const objs$2 = Ui(O0({}, objs$3), {
|
|
|
141102
141108
|
);
|
|
141103
141109
|
const Ht = wt.projectionMatrix;
|
|
141104
141110
|
Xt.x = (Math.sign(Ue.x) + Ht.elements[8]) / Ht.elements[0], Xt.y = (Math.sign(Ue.y) + Ht.elements[9]) / Ht.elements[5], Xt.z = -1, Xt.w = (1 + Ht.elements[10]) / Ht.elements[14], Ue.multiplyScalar(2 / Ue.dot(Xt)), Ht.elements[2] = Ue.x, Ht.elements[6] = Ue.y, Ht.elements[10] = Ue.z + 1, Ht.elements[14] = Ue.w, O.setFromMatrixPosition(n0.matrixWorld);
|
|
141105
|
-
const $t =
|
|
141106
|
-
v.visible = !1,
|
|
141111
|
+
const $t = Ft.getRenderTarget(), Kt = Ft.xr.enabled, e0 = Ft.shadowMap.autoUpdate;
|
|
141112
|
+
v.visible = !1, Ft.xr.enabled = !1, Ft.shadowMap.autoUpdate = !1, Ft.setRenderTarget(Vt), Ft.state.buffers.depth.setMask(!0), Ft.autoClear === !1 && Ft.clear(), Ft.render(jt, wt), v.visible = !0, Ft.xr.enabled = Kt, Ft.shadowMap.autoUpdate = e0, Ft.setRenderTarget($t);
|
|
141107
141113
|
const u0 = n0.viewport;
|
|
141108
|
-
u0 !== void 0 &&
|
|
141114
|
+
u0 !== void 0 && Ft.state.viewport(u0);
|
|
141109
141115
|
};
|
|
141110
141116
|
};
|
|
141111
141117
|
class City$1 extends Base {
|
|
@@ -141598,9 +141604,9 @@ let PlaneMap$1 = class extends pe$1 {
|
|
|
141598
141604
|
if (w) {
|
|
141599
141605
|
const Wt = yield Promise.all(
|
|
141600
141606
|
n.features.map((It) => E0(this, null, function* () {
|
|
141601
|
-
const { properties: Nt } = It,
|
|
141607
|
+
const { properties: Nt } = It, Ft = `${this.getPropertiesKey(Nt)}`, jt = yield ze.draw("Group", {
|
|
141602
141608
|
target: this,
|
|
141603
|
-
key:
|
|
141609
|
+
key: Ft
|
|
141604
141610
|
});
|
|
141605
141611
|
return jt.object3d.name = (Nt == null ? void 0 : Nt.adcode) === "100000_JD" ? "十段线" : Nt == null ? void 0 : Nt.name, jt.userData = O0({}, Nt), jt;
|
|
141606
141612
|
}))
|
|
@@ -143702,18 +143708,18 @@ const getLabelElement = (v) => {
|
|
|
143702
143708
|
}), bt) {
|
|
143703
143709
|
const xt = this.options.plateInCenter && (this.mapHistory.length < 1 || this.options.drillDownPlateInCenter);
|
|
143704
143710
|
if ((fe = this.options.fixGeojson) != null && fe[n]) {
|
|
143705
|
-
const
|
|
143706
|
-
if (
|
|
143707
|
-
const e0 = +
|
|
143711
|
+
const Kt = (Se = this.options.fixGeojson) == null ? void 0 : Se[n];
|
|
143712
|
+
if (Kt.startsWith("-")) {
|
|
143713
|
+
const e0 = +Kt.slice(1);
|
|
143708
143714
|
bt.features = bt.features.filter((u0) => u0.properties.adcode !== e0);
|
|
143709
143715
|
}
|
|
143710
143716
|
}
|
|
143711
143717
|
let Xt = findAdcodeInfo(n).b;
|
|
143712
143718
|
const Zt = [...Xt];
|
|
143713
|
-
this.mapHistory.length === 1 && !this.options.drillDownSecondLevelMats ? Xt = findAdcodeInfo(this.mapInfo.adcode).b : this.mapHistory.length === 2 && !this.options.drillDownThirdLevelMats && (this.options.drillDownSecondLevelMats ? Xt = findAdcodeInfo(this.mapInfo.adcode).b : Xt = findAdcodeInfo(this.mapHistory[0].mapInfo.adcode).b), this.eraseLabels(), this.map && (this.options.drillDownHideParent && this.parentBg.forEach((
|
|
143714
|
-
|
|
143719
|
+
this.mapHistory.length === 1 && !this.options.drillDownSecondLevelMats ? Xt = findAdcodeInfo(this.mapInfo.adcode).b : this.mapHistory.length === 2 && !this.options.drillDownThirdLevelMats && (this.options.drillDownSecondLevelMats ? Xt = findAdcodeInfo(this.mapInfo.adcode).b : Xt = findAdcodeInfo(this.mapHistory[0].mapInfo.adcode).b), this.eraseLabels(), this.map && (this.options.drillDownHideParent && this.parentBg.forEach((Kt) => {
|
|
143720
|
+
Kt.hide();
|
|
143715
143721
|
}), this.options.showOneLevel ? this.map.hide() : this.map.deactive(), w && this.saveCamvasState("userControls", -1));
|
|
143716
|
-
const wt = this.mapHistory.length, Vt = wt - 1, Wt = this.getDepth(n, Zt), It = (ze = this.mapHistory[Vt]) == null ? void 0 : ze.depth, Nt = wt === 0 || this.options.showOneLevel ? 0 : this.mapHistory[Vt].z + It,
|
|
143722
|
+
const wt = this.mapHistory.length, Vt = wt - 1, Wt = this.getDepth(n, Zt), It = (ze = this.mapHistory[Vt]) == null ? void 0 : ze.depth, Nt = wt === 0 || this.options.showOneLevel ? 0 : this.mapHistory[Vt].z + It, Ft = wt === 0 || this.options.showOneLevel ? 0 : Nt - Wt, jt = center(bt).geometry.coordinates, [n0, s0] = this.projection(jt), qt = yield this.drawPlaneMap({
|
|
143717
143723
|
geojson: bt,
|
|
143718
143724
|
extrudeLineGeojson: Ue,
|
|
143719
143725
|
depth: Wt,
|
|
@@ -143721,11 +143727,11 @@ const getLabelElement = (v) => {
|
|
|
143721
143727
|
adcode: n,
|
|
143722
143728
|
extrudelineBloom: E
|
|
143723
143729
|
});
|
|
143724
|
-
Fe == null || Fe.hide(), qt.position.setZ(
|
|
143730
|
+
Fe == null || Fe.hide(), qt.position.setZ(Ft);
|
|
143725
143731
|
const Ht = qt.position.z, $t = () => E0(this, null, function* () {
|
|
143726
143732
|
yield sinusoidalInOut({
|
|
143727
|
-
onUpdate: (
|
|
143728
|
-
Nt !== Ht && (qt.position.z = Ht + (Nt - Ht) *
|
|
143733
|
+
onUpdate: (Kt) => {
|
|
143734
|
+
Nt !== Ht && (qt.position.z = Ht + (Nt - Ht) * Kt);
|
|
143729
143735
|
}
|
|
143730
143736
|
}).start({
|
|
143731
143737
|
duration: r
|
|
@@ -143733,13 +143739,13 @@ const getLabelElement = (v) => {
|
|
|
143733
143739
|
});
|
|
143734
143740
|
if (xt)
|
|
143735
143741
|
if (this.fixNear(n), qt.position.z = Nt, C) {
|
|
143736
|
-
const
|
|
143742
|
+
const Kt = (ke = this.mapHistory.at(-1)) == null ? void 0 : ke.controls;
|
|
143737
143743
|
yield this.fitTo(qt, {
|
|
143738
143744
|
z: Nt + Wt,
|
|
143739
143745
|
adcode: n,
|
|
143740
143746
|
enableTransition: r !== 0,
|
|
143741
|
-
polarAngle:
|
|
143742
|
-
azimuthAngle:
|
|
143747
|
+
polarAngle: Kt == null ? void 0 : Kt.polarAngle,
|
|
143748
|
+
azimuthAngle: Kt == null ? void 0 : Kt.azimuthAngle,
|
|
143743
143749
|
handleStart: () => E0(this, null, function* () {
|
|
143744
143750
|
qt.position.z = Ht, yield $t();
|
|
143745
143751
|
})
|
|
@@ -143949,9 +143955,9 @@ const getLabelElement = (v) => {
|
|
|
143949
143955
|
}
|
|
143950
143956
|
else {
|
|
143951
143957
|
const { continent: Fe, country: mt, province: Lt, city: bt, district: Ue } = n.reduce(
|
|
143952
|
-
(Nt,
|
|
143953
|
-
const jt = this.getAdcodeShowLevel(
|
|
143954
|
-
return Nt[jt] =
|
|
143958
|
+
(Nt, Ft) => {
|
|
143959
|
+
const jt = this.getAdcodeShowLevel(Ft);
|
|
143960
|
+
return Nt[jt] = Ft, Nt;
|
|
143955
143961
|
},
|
|
143956
143962
|
{}
|
|
143957
143963
|
), {
|
|
@@ -143961,9 +143967,9 @@ const getLabelElement = (v) => {
|
|
|
143961
143967
|
city: Zt,
|
|
143962
143968
|
district: wt
|
|
143963
143969
|
} = w.reduce(
|
|
143964
|
-
(Nt,
|
|
143965
|
-
const jt = this.getAdcodeShowLevel(
|
|
143966
|
-
return Nt[jt] =
|
|
143970
|
+
(Nt, Ft) => {
|
|
143971
|
+
const jt = this.getAdcodeShowLevel(Ft);
|
|
143972
|
+
return Nt[jt] = Ft, Nt;
|
|
143967
143973
|
},
|
|
143968
143974
|
{}
|
|
143969
143975
|
), Vt = Fe || Gt, Wt = (le = (O = (E = this.map) == null ? void 0 : E.extrudelineArr) == null ? void 0 : O[0]) == null ? void 0 : le.object3d.userData.bloom, It = this.compareLocations(
|
|
@@ -143972,14 +143978,14 @@ const getLabelElement = (v) => {
|
|
|
143972
143978
|
);
|
|
143973
143979
|
try {
|
|
143974
143980
|
for (var fe = Nn(It.entries()), Se, ze, ke; Se = !(ze = yield fe.next()).done; Se = !1) {
|
|
143975
|
-
const [Nt,
|
|
143981
|
+
const [Nt, Ft] = ze.value;
|
|
143976
143982
|
const jt = Nt === It.length - 1 ? r : 0, n0 = Nt === It.length - 1;
|
|
143977
|
-
|
|
143983
|
+
Ft === -1 ? yield this.handleBack({
|
|
143978
143984
|
duration: jt,
|
|
143979
143985
|
handleLookBack: n0,
|
|
143980
143986
|
keepOne: !Vt
|
|
143981
143987
|
}) : yield this.handleDrillDown({
|
|
143982
|
-
adcode:
|
|
143988
|
+
adcode: Ft,
|
|
143983
143989
|
duration: jt,
|
|
143984
143990
|
handleLook: n0,
|
|
143985
143991
|
saveBackCamvasState: It.includes(-1) ? !1 : this.options.handleBackKeepCamvasState,
|